/* ==========================================================================
   Logical Worship admin portal — shared shell and components.
   --------------------------------------------------------------------------
   Built strictly on layer 1 of css/tokens.css (the FileUploader UI).
   Rules carried over from the FileUploader design doc:

     - admin pages are wide: max-width 980px, 36px top padding, and the
       hero wash is DROPPED (body:has(.page-wide)) — a wash behind dense
       tables is a distraction when you are working rather than arriving
     - buttons are font-weight 400, radius 980px
     - panels separate by tonal step (gradient), not borders
     - tables are 14px, sentence-case muted headers, 16px 14px cells
     - sentence case everywhere, no uppercase kickers
     - purple means "the primary action here", nothing else

   The login page is the one arriving page: it keeps the hero wash and
   the narrow centred frame. Everything after login is .page-wide.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--hero-wash), var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 25px;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Admin screens are for working, not arriving at: no wash. */
body:has(.page-wide) {
  background: var(--bg);
}

h1 {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 44px;
  font-weight: 600;
  letter-spacing: normal;
  margin: 0;
}

h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0.216px;
  margin: 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: normal;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- brand header (same as the file uploader) -------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
}

.brand-name {
  font-size: 17px;
  line-height: 21px;
  font-weight: 600;
  letter-spacing: -0.374px;
}

.brand-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

a.brand {
  color: var(--text);
}

a.brand:hover {
  text-decoration: none;
}

/* Hamburger menu: everything that is not a primary tab lives here. */
.menu-wrap {
  position: relative;
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
}

.menu a:hover {
  background: var(--raised);
  color: var(--text);
  text-decoration: none;
}

/* ---------- primary tabs (FileUploader tab rule: 14px, underline in
   --text when active, not the accent) ------------------------------------ */

/* Primary tabs: centered and big — Jo asked twice (Nov 11, 2026) for
   ~300% of the original 14px bar, then asked for 80% of that size, and
   for the bar to sit higher on the page (less space above it). Final:
   29px type (80% of 36px), tighter padding, bar raised via the reduced
   .page-wide top padding and .brand-row margin below. */
.tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.tabs a {
  padding: 12px 6px 16px;
  color: var(--muted);
  font-size: 29px;
  line-height: 35px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.tabs a:hover {
  color: var(--text);
  text-decoration: none;
}

.tabs a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--text);
}

/* Sub-tabs inside a section page (Files: Upload links / Media Scrape). */
.subtabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.subtabs button {
  padding: 10px 2px 13px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 25px;
  letter-spacing: -0.374px;
  cursor: pointer;
}

.subtabs button[aria-selected="true"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--text);
}

/* Stat strip on section pages. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border-radius: var(--radius);
  padding: 14px 18px;
}

.stat .value {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.216px;
}

.stat .label {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.224px;
  margin-top: 2px;
}

/* ---------- frames -------------------------------------------------------- */

.page {
  max-width: 692px;
  margin: 0 auto;
  padding: var(--space-page) 24px 120px;
}

.page-wide {
  max-width: 980px;
  /* Was 72px — Jo (Nov 11, 2026) wanted the tab bar higher on the page,
     and the per-page title/description block under the brand is gone,
     so the header is just brand + tabs now. */
  padding-top: 36px;
}

/* ---------- content frame -------------------------------------------------- */

.content {
  min-width: 0;
}

/* Status board on the home page: two glanceable panels side by side. */
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.board .panel {
  margin-bottom: 0;
}

.content-head {
  margin-bottom: 32px;
}

.content-head h1 {
  margin-bottom: 8px;
}

.content-head p {
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}

/* ---------- panels and cards ---------------------------------------------- */

.panel {
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.panel-body {
  padding: 28px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 24px 26px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border-radius: var(--radius);
  color: var(--text);
}

.card:hover {
  text-decoration: none;
}

.card h2 {
  font-size: 17px;
  line-height: 25px;
  letter-spacing: -0.374px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
  margin: 0;
}

/* ---------- buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 15px rgba(125, 75, 212, 0.24);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 25px;
  font-weight: 400;
  letter-spacing: -0.374px;
  cursor: pointer;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 17px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--link);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: -0.224px;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- forms ----------------------------------------------------------- */

.field {
  display: block;
  margin-bottom: 18px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
}

.input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0c0813; /* the FileUploader's input well */
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 25px;
  letter-spacing: -0.374px;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

.input::placeholder {
  color: var(--muted);
}

/* The 6-digit code field: mono, centred, tracked out. */
.input-code {
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 6px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

/* ---------- tables ------------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
}

th {
  text-align: left;
  color: var(--muted);
  font-weight: 400;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

td .sub {
  color: var(--muted);
}

/* ---------- status ------------------------------------------------------------ */

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.dot-ok {
  background: var(--online);
}

.dot-err {
  background: var(--offline);
}

.dot-idle {
  background: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Overview status rows */
.status-rows {
  display: grid;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: none;
}

.status-row .who {
  min-width: 0;
}

.status-row .name {
  font-size: 17px;
  line-height: 25px;
}

.status-row .detail {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
}

.status-row .state {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
  white-space: nowrap;
}

/* ---------- login ---------------------------------------------------------------- */

.login-frame {
  max-width: 440px;
  margin: 0 auto;
}

.login-frame .brand {
  margin-bottom: 48px;
}

.login-panel {
  padding: 32px;
}

.login-panel h1 {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 0.216px;
  margin-bottom: 8px;
}

.login-panel .lede {
  color: var(--muted);
  margin: 0 0 28px;
}

.login-foot {
  text-align: center;
  margin-top: 24px;
}

/* Sample-data notice: a panel surface, muted text, no coloured rule. */
.notice {
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
  margin-bottom: 28px;
}

/* ---------- responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .board,
  .cards,
  .stats {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 28px;
    overflow-x: auto;
  }
  .tabs a {
    font-size: 24px;
    line-height: 30px;
    padding: 14px 4px 16px;
    white-space: nowrap;
  }
  h1 {
    font-size: 32px;
    line-height: 38px;
  }
}

/* Organization drill-down (Remote Desktop). */
.org-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-align: left;
}

.org-link:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.org-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}

.org-head .content-head {
  margin: 0;
}

#org-detail-view .panel {
  margin-bottom: 20px;
}

/* Smaller page title (Jo, Nov 11, 2026 — the Files hero heading). */
.title-sm {
  font-size: 40px;
  line-height: 44px;
}

/* Calendar settings: four grouped slots, two by two. */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 700px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 28px;
}

.setting-row .s-name {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
}

.setting-row .s-value {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
  text-align: right;
}

/* There is deliberately no per-page title/description block: Jo had the
   header title tried (Nov 11, 2026) and then removed — the brand row and
   the tab bar are the whole header, and pages open into their content. */

/* ---------- overlay + modal (link management) ------------------------------
   Click a link's name, manage it in place. The backdrop dims the page
   (dark, not greyed) so the pop-up holds focus — Jo, Nov 11, 2026. The
   modal itself is the standard panel: gradient surface, 18px corners. */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 1, 4, 0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.modal {
  width: min(560px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.modal-body {
  padding: 24px 28px 8px;
}

.modal-body .field {
  margin-top: 18px;
}

.lm-rows {
  margin: 0 -28px;
}

.lm-rows .setting-row {
  padding: 10px 28px;
}

.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 28px 24px;
}

.btn-danger {
  color: var(--offline);
}

.btn-danger:hover {
  color: var(--offline);
  border-color: var(--offline);
}

#lm-msg {
  min-height: 20px;
  margin: 14px 0 8px;
}

/* Org detail top bar: back arrow in a gray rounded square (Jo, Nov 11,
   2026 — replaces the "‹ Organizations" pill), Manage on the right.
   No org-name hero above it; he asked for that gone. */
.detail-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.back-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  color: var(--text);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex: none;
}

.back-btn:hover {
  background: var(--line);
}

/* Join button inside the Next-event pill (Calendar). */
.stat-join {
  margin-top: 10px;
  padding: 4px 14px;
  font-size: 12px;
  text-decoration: none;
}

/* Booking-field rows inside the event-type pop-up: label + type on one
   line, required toggle + remove under it. */
.bf-row {
  background: var(--raised);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.bf-top {
  display: flex;
  gap: 10px;
}

.bf-top .input {
  flex: 1;
  min-width: 0;
}

.bf-top select.input {
  flex: 0 0 128px;
}

.bf-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.bf-required {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.bf-remove {
  color: #ff6961;
}

/* Editable Destination inside the link pop-up's info rows: sized to sit
   where the read-only value sat, right-aligned like the other values. */
.lm-dest-input {
  width: 280px;
  max-width: 62%;
  text-align: right;
  padding: 6px 12px;
}

/* Join button centered in the Next-event pill (Jo, Nov 11, 2026). */
.stat-join {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* Calendar side pills: label on top, the number BIG and centered,
   filling the pill (Jo, Nov 11, 2026). */
.stat-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-num .label {
  margin-top: 0;
  font-size: 14px;
}

.stat-num .value {
  font-size: 44px;
  line-height: 50px;
  margin-top: 4px;
}

/* Click-to-copy booking page links (event types table + event pop-up). */
.copy-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.copy-link:hover {
  color: var(--accent-text);
}

/* Event-type pop-up: even vertical rhythm — the same padding above the
   title as below the Save row (Jo, Nov 11, 2026: "same amount of padding
   on top as the bottom"; the length stays). Scoped so the Files pop-up,
   which he approved as-is, is untouched. */
.modal-event .modal-body {
  padding-bottom: 24px;
}

.modal-event .modal-foot {
  padding-top: 24px;
}

/* Destination cell (third row of the link pop-up): gray value with a
   folder-icon button right below it, right-aligned (Jo, Nov 11, 2026). */
.lm-dest-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}

.btn-icon-small {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  color: var(--text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-icon-small:hover {
  background: var(--line);
}

/* Home is an icon in the tab bar, immediately left of Remote Desktop
   (Jo, Nov 11, 2026 — an icon, not a "Home" text tab). It takes the
   same current-page underline as the text tabs. */
.tabs .tab-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tabs .tab-home svg {
  display: block;
}

/* Section pages (Jo, Nov 11, 2026): the main tab bar exists only on
   Home. Inside a section, this bar replaces it — back button (the gray
   rounded square, home) + section icon + section name on the left,
   the section's own tabs opposite. No descriptions anywhere: Jo knows
   what he's doing; descriptions may return when other people are
   added to the live portal. */
/* Icons only, no wording (Jo, Nov 11, 2026): the section-id is just the
   back button and the section's icon. The section's own tabs sit in the
   TRUE center of the bar — a 1fr / auto / 1fr grid, so the tabs center
   on the page, not in whatever space the left cell leaves. */
.section-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 36px;
}

.section-id {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.section-icon {
  display: inline-flex;
  color: var(--text);
}

.section-bar .subtabs {
  border-bottom: none;
  margin-bottom: 0;
  justify-self: center;
}

a.back-btn {
  text-decoration: none;
  flex: none;
}

/* Home tab bar destinations are ICONS ONLY (monitor / folder / calendar /
   key) — no text names, scrunched toward the middle (Jo, Nov 11, 2026).
   The name survives as each link's aria-label. The Security key icon is
   a placeholder: Jo doesn't like it and will pick the one he wants. */
.tabs a.tab-ic {
  display: inline-flex;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
}

.tabs a.tab-ic svg {
  display: block;
}

/* Stat pills with a data-detail breakdown open the pop-up (Jo, Nov 11, 2026). */
.stat[data-detail] { cursor: pointer; }

/* Grouped manager pop-up (Remote Desktop org / computer / engineer
   Manage): the same purple panel, with headed groups of rows — label
   left, control right — mirroring the real console's manager dialogs.
   Rows are tonal, no borders, sentence case, like everything else. */
.mgr-group {
  margin-top: 22px;
}

.mgr-group:first-child {
  margin-top: 4px;
}

.mgr-head {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
  margin-bottom: 6px;
}

.mgr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
}

.mgr-row .m-name {
  font-size: 15px;
  line-height: 22px;
  flex: none;
}

.mgr-row .m-ctl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mgr-row .input {
  width: 250px;
  max-width: 56vw;
  padding: 8px 12px;
  font-size: 15px;
  line-height: 22px;
}

.mgr-row .m-value {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
  text-align: right;
}

.mgr-row .mono {
  color: var(--text);
}

.btn-danger-solid {
  color: var(--offline);
  border-color: var(--offline);
}

/* ---------- switches, dropdowns, checkbox sets ------------------------------
   Control types match the real products (Jo, Nov 11, 2026 — "some of
   those new entries should be drop downs or switches"): a boolean is
   a SWITCH, a fixed set of choices is a DROPDOWN, free values stay
   text/number inputs. The FileUploader's own admin literally calls its
   boolean rows "toggles"; the switch below is that idea in the token
   system — pill track in --line, accent fill when on, white knob. */

.switch {
  position: relative;
  width: 46px;
  height: 28px;
  flex: none;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch[aria-checked="true"] {
  background: var(--accent);
}

.switch[aria-checked="true"] .knob {
  transform: translateX(18px);
}

.switch:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* The On/Off word that sits beside a switch in the pop-ups. */
.switch-state {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
  min-width: 34px;
  text-align: right;
}

/* Dropdowns: the .input well plus a chevron, so a select never renders
   as the browser's grey default. */
select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* A compact select that sits in a row where a read-only value sat
   (the event-type pop-up's Location row). */
.input-inline {
  width: 210px;
  max-width: 56vw;
  padding: 7px 36px 7px 12px;
  font-size: 14px;
  line-height: 20px;
}

/* Generic pop-up rows that are not stacked label-over-input: switches
   sit label-left / control-right, like the manager rows. */
.ctl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.ctl-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.224px;
}

.ctl-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* Checkbox sets (token scopes, calendars checked for conflicts): the
   real products use plain checkboxes for pick-many lists. */
.checks {
  display: grid;
  gap: 9px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
}

.check-row input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  margin: 0;
  flex: none;
  cursor: pointer;
}

/* Expiry as the real uploader does it: a number and a unit dropdown
   side by side (hours / days / never expires). */
.ttl-wrap {
  display: flex;
  gap: 10px;
}

.ttl-wrap input[type="number"] {
  width: 110px;
  flex: none;
}

.ttl-wrap select {
  flex: 1;
  min-width: 0;
}

.ttl-wrap input:disabled {
  opacity: 0.45;
}
