:root {
  --ink: #153129;
  --ink-soft: #4f625c;
  --green-950: #071f19;
  --green-900: #0b2a22;
  --green-800: #123d32;
  --green-700: #1b5748;
  --copper: #c76241;
  --copper-dark: #a8472e;
  --cream: #f4f0e7;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #dedbd2;
  --line-strong: #c8c4ba;
  --success: #16734f;
  --warning: #a96517;
  --danger: #a33c33;
  --shadow: 0 12px 32px rgba(10, 35, 28, .08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -100px; padding: 10px 14px; background: var(--white); color: var(--green-900); border-radius: 6px; }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 8px; color: var(--copper-dark); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.light { color: #e68c69; }
.muted { color: var(--ink-soft); }
.mono, code { font-family: "Courier New", monospace; }

.primary-button, .secondary-button, .quiet-button, .inline-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 7px; padding: 0 18px; border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.primary-button { color: var(--white); background: var(--green-800); }
.primary-button:hover { background: var(--green-700); }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { color: var(--green-800); background: var(--white); border-color: var(--line-strong); }
.secondary-button:hover { border-color: var(--green-700); background: #f7f6f2; }
.quiet-button { min-height: 34px; padding: 0 11px; background: transparent; color: var(--ink-soft); border-color: var(--line); font-size: 12px; }
.quiet-button:hover { color: var(--ink); border-color: var(--line-strong); }
.compact { min-height: 39px; padding: 0 14px; font-size: 13px; }
.mini { min-height: 34px; padding: 0 12px; font-size: 12px; }
.inline-button { width: auto; }
.full-width { width: 100%; }
.text-link { color: var(--green-700); font-weight: 700; font-size: 13px; text-decoration: none; border-bottom: 1px solid currentColor; }

.alert { margin: 0 0 18px; border-radius: 8px; padding: 12px 15px; border: 1px solid; font-size: 14px; }
.alert-error { background: #fcedea; color: #7e3029; border-color: #e6b5ae; }
.alert-success { background: #edf8f2; color: #145f43; border-color: #b9ddcb; }

.auth-page { min-height: 100vh; background: var(--green-950); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.06fr) minmax(430px, .94fr); }
.auth-brand-panel { min-height: 100vh; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 54px clamp(42px, 7vw, 96px) 48px; color: var(--white); background: radial-gradient(circle at 88% 16%, rgba(203, 102, 67, .2), transparent 26%), linear-gradient(145deg, #0d3429, #061a15 74%); }
.auth-brand-panel::before, .auth-brand-panel::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(221, 121, 82, .28); border-radius: 50%; }
.auth-brand-panel::before { width: 500px; height: 500px; right: -270px; top: -210px; }
.auth-brand-panel::after { width: 370px; height: 370px; right: -205px; top: -145px; }
.auth-logo { position: relative; z-index: 1; width: 270px; }
.auth-logo img { width: 100%; height: auto; object-fit: contain; }
.auth-intro { position: relative; z-index: 1; max-width: 600px; margin: auto 0; padding: 58px 0; }
.auth-intro h1 { max-width: 550px; margin: 0 0 12px; font: 400 clamp(42px, 4.8vw, 68px)/1.06 Georgia, serif; letter-spacing: -.035em; }
.auth-subtitle { margin: 0; color: #c9d5d1; font-size: 18px; line-height: 1.6; }
.publisher-quote { max-width: 530px; margin: 38px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.publisher-quote blockquote { margin: 0; }
.publisher-quote blockquote p { margin: 0; color: #e0e8e3; font: 400 clamp(22px, 2.3vw, 30px)/1.4 Georgia, serif; }
.publisher-quote figcaption { margin-top: 16px; color: #e68c69; font-size: 13px; font-weight: 700; }
.publisher-quote a { text-decoration: none; }
.publisher-quote a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-support { position: relative; z-index: 1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.auth-support p { margin: 0 0 5px; color: #aebeb8; font-size: 12px; }
.auth-support a { color: #e0e8e3; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.auth-support a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-form-panel { display: grid; place-items: center; padding: 40px; background: var(--paper); }
.auth-form-card { width: min(100%, 430px); }
.auth-form-card h2 { margin: 0 0 10px; font: 400 40px/1.1 Georgia, serif; letter-spacing: -.02em; }
.auth-form-card > .muted { margin: 0 0 28px; font-size: 14px; line-height: 1.6; }
.stack-form { display: flex; flex-direction: column; gap: 10px; }
.stack-form label, .filter-field label, .assign-form label, .inline-form label { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.stack-form input, .filter-field input, .filter-field select, .assign-form input, .assign-form select, .inline-form select { width: 100%; height: 44px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 0 12px; color: var(--ink); background: var(--white); outline: none; }
.stack-form input:focus, .filter-field input:focus, .filter-field select:focus, .assign-form input:focus, .assign-form select:focus, .inline-form select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(27, 87, 72, .12); }
.stack-form .primary-button { margin-top: 8px; }
.key-icon { display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .76); border-radius: 50%; color: transparent; position: relative; }
.key-icon::after { content: ""; position: absolute; width: 8px; height: 2px; right: -7px; background: currentColor; color: rgba(255, 255, 255, .76); box-shadow: 3px 3px 0 currentColor; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: #87938f; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.fine-print { margin: 22px 0 0; color: #6b7974; font-size: 12px; line-height: 1.55; }
.form-error { min-height: 20px; margin: 4px 0 0; color: var(--danger); font-size: 12px; }

.compact-auth { background: var(--cream); }
.code-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.code-card { width: min(100%, 480px); padding: 38px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.code-logo { width: 210px; height: auto; margin: 30px 0 38px; object-fit: contain; }
.back-link { color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.code-card h1 { margin: 0 0 10px; font: 400 34px/1.15 Georgia, serif; }
.code-card > p { color: var(--ink-soft); }
.code-input { font: 700 26px/1 "Courier New", monospace !important; letter-spacing: .28em; text-align: center; }

.app-page { min-height: 100vh; background: var(--cream); }
.app-header { min-height: 78px; display: grid; grid-template-columns: 268px 1fr auto; align-items: center; gap: 26px; padding: 0 clamp(20px, 4vw, 58px); color: var(--white); background: var(--green-950); border-bottom: 1px solid rgba(255, 255, 255, .11); }
.portal-brand { display: flex; flex-direction: column; justify-content: center; width: 232px; text-decoration: none; }
.portal-brand img { width: 192px; height: auto; object-fit: contain; }
.portal-brand span { margin-top: 2px; color: #a9bbb5; font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.app-nav { height: 78px; display: flex; align-items: stretch; gap: 24px; }
.app-nav a { display: flex; align-items: center; position: relative; color: #b9c8c3; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.app-nav a:hover { color: var(--white); }
.app-nav a.is-current { color: var(--white); }
.app-nav a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--copper); }
.account-menu { display: flex; align-items: center; gap: 16px; }
.account-menu > div { text-align: right; line-height: 1.25; }
.account-menu strong, .account-menu small { display: block; }
.account-menu strong { font-size: 12px; }
.account-menu small { max-width: 190px; margin-top: 3px; color: #91a49e; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-header .quiet-button { color: #c7d2cf; border-color: rgba(255, 255, 255, .18); }
.mobile-menu { display: none; }

.page-shell { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 70px; }
.narrow-page { max-width: 960px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 0 0 30px; }
.page-heading h1 { margin: 0 0 8px; font: 400 42px/1.1 Georgia, serif; letter-spacing: -.025em; }
.page-heading p:last-child { max-width: 730px; margin: 0; color: var(--ink-soft); }
.access-clock { min-width: 290px; padding: 13px 16px; background: #e8eee9; border-left: 3px solid var(--success); }
.access-clock span, .access-clock strong { display: block; }
.access-clock span { color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.access-clock strong { margin-top: 4px; font-size: 13px; }

.filter-bar { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 22px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 4px 12px rgba(10, 35, 28, .035); }
.filter-field { width: 150px; }
.filter-field label { display: block; margin-bottom: 5px; }
.wide-filter { width: 270px; }
.filter-bar small { align-self: center; margin-left: auto; color: var(--ink-soft); font-size: 11px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; }
.stat-card > span { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.stat-card > strong { margin: 8px 0; font: 400 36px/1 Georgia, serif; }
.stat-card small, .stat-card a { color: #73807c; font-size: 11px; }
.stat-card a { width: fit-content; color: var(--green-700); text-decoration: none; border-bottom: 1px solid #9ab6ad; }
.warning-stat { border-top: 3px solid #d39346; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(10, 35, 28, .035); }
.panel-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font: 400 22px/1.2 Georgia, serif; }
.panel-heading p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
.privacy-note { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; color: var(--green-700); background: #edf5f1; border-radius: 100px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.privacy-note i { width: 7px; height: 7px; background: var(--success); border-radius: 50%; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 10px 16px; color: #71807b; background: #f6f4ef; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid #ebe8e1; font-size: 13px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfaf6; }
.data-table td strong, .data-table td small { display: block; }
.data-table td small { margin-top: 3px; color: #74817d; font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; font-size: 12px; font-weight: 700; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #89938f; }
.status-connected i { background: var(--success); }
.status-missed i { background: var(--danger); }
.status-dropped i { background: var(--warning); }
.status-voicemail i { background: #6b5da8; }
.play-button { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--green-800); background: transparent; border: 1px solid #b9cec6; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.play-button span { font-size: 9px; }
.play-button:hover { color: var(--white); background: var(--green-800); border-color: var(--green-800); }
.muted-label { color: #87928e; font-size: 11px; }
.call-table code { padding: 3px 5px; color: #62706b; background: #f1f0eb; border-radius: 4px; font-size: 10px; }

.empty-state { padding: 80px 24px; text-align: center; }
.empty-state.small { padding: 40px 24px; }
.empty-state .empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 14px; color: var(--copper); border: 1px solid #d8a18d; border-radius: 50%; font-size: 23px; }
.empty-state h2, .empty-state h3 { margin: 0 0 8px; font: 400 26px/1.2 Georgia, serif; }
.empty-state h3 { font-size: 20px; }
.empty-state p { max-width: 560px; margin: 0 auto; color: var(--ink-soft); }
.scope-note { display: grid; grid-template-columns: 190px 1fr; gap: 24px; margin-top: 18px; padding: 18px 20px; color: #bdcbc7; background: var(--green-900); border-radius: 9px; }
.scope-note strong { color: var(--white); font-family: Georgia, serif; font-size: 16px; font-weight: 400; }
.scope-note p { margin: 0; font-size: 12px; line-height: 1.65; }

.audio-dialog { width: min(520px, calc(100% - 28px)); padding: 0; color: var(--ink); background: var(--white); border: 0; border-radius: 12px; box-shadow: 0 28px 90px rgba(0, 0, 0, .35); }
.audio-dialog::backdrop { background: rgba(4, 19, 15, .72); backdrop-filter: blur(2px); }
.audio-heading { display: flex; justify-content: space-between; align-items: center; padding: 20px; color: var(--white); background: var(--green-900); }
.audio-heading span, .audio-heading strong { display: block; }
.audio-heading span { color: #9db0aa; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.audio-heading strong { margin-top: 4px; font-size: 15px; }
.audio-heading button { width: 34px; height: 34px; color: var(--white); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; font-size: 23px; cursor: pointer; }
.audio-dialog audio { width: calc(100% - 40px); margin: 28px 20px 16px; }
.audio-dialog > p { margin: 0; padding: 0 20px 24px; color: var(--ink-soft); font-size: 11px; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr); gap: 18px; }
.deadline-list { padding: 4px 0; }
.deadline-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 20px; text-decoration: none; border-bottom: 1px solid #ebe8e1; }
.deadline-item:last-child { border-bottom: 0; }
.deadline-item:hover { background: #fbfaf6; }
.deadline-item strong, .deadline-item small { display: block; }
.deadline-item small { margin-top: 3px; color: var(--ink-soft); font-size: 11px; }
.deadline-item > span { min-width: 68px; padding: 5px 8px; color: var(--success); background: #eaf5ef; border-radius: 100px; font-size: 10px; font-weight: 800; text-align: center; }
.deadline-item > span.is-expired { color: var(--danger); background: #faece9; }
.sync-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 5px rgba(169, 101, 23, .12); }
.sync-dot.is-good { background: var(--success); box-shadow: 0 0 0 5px rgba(22, 115, 79, .12); }
.sync-summary { padding: 24px 20px; }
.sync-summary strong { font: 400 20px/1.2 Georgia, serif; }
.sync-summary p { margin: 8px 0; color: var(--ink-soft); font-size: 12px; }
.sync-summary small { color: #7c8783; font-size: 10px; }
.integration-card form { padding: 0 20px 20px; }
.admin-scope { margin-top: 18px; }

.publishers-layout { grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr); align-items: start; }
.invite-panel .stack-form { padding: 20px; }
.publisher-list { padding: 4px 0; }
.publisher-row { display: grid; grid-template-columns: 42px minmax(180px, 1fr) minmax(150px, .75fr) auto auto; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #ebe8e1; }
.publisher-row:last-child { border-bottom: 0; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; color: var(--white); background: var(--green-800); border-radius: 8px; font: 700 12px/1 Arial, sans-serif; letter-spacing: .06em; }
.publisher-identity strong, .publisher-identity span, .publisher-identity small, .publisher-access strong, .publisher-access span, .publisher-access small { display: block; }
.publisher-identity span, .publisher-access span { color: var(--ink-soft); font-size: 11px; }
.publisher-identity small, .publisher-access small { margin-top: 2px; color: #7b8783; font-size: 10px; }
.publisher-access > strong { display: inline; margin-right: 3px; font: 400 20px/1 Georgia, serif; }
.publisher-access > span { display: inline; }
.badge { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 100px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.badge-good { color: #126343; background: #e8f4ed; }
.badge-danger { color: #8d342d; background: #f9e9e6; }
.badge-neutral { color: #5c6965; background: #efefeb; }

.number-list { padding: 0; }
.number-row { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(270px, 1fr) minmax(280px, 1.1fr); align-items: center; gap: 24px; min-height: 132px; padding: 18px 20px; border-bottom: 1px solid #e8e5de; }
.number-row:last-child { border-bottom: 0; }
.number-row.is-disabled { opacity: .6; background: #f7f6f2; }
.number-main strong, .number-main span, .number-main small { display: block; }
.number-main strong { font: 400 21px/1.2 "Courier New", monospace; }
.number-main span { margin-top: 4px; color: var(--ink-soft); font-size: 12px; }
.number-main small { margin-top: 7px; color: #7b8783; font-size: 10px; }
.assignment-details { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.assignment-details > .badge { grid-row: 1 / span 2; }
.assignment-details > strong, .assignment-details > small { display: block; }
.assignment-details > small { color: var(--ink-soft); font-size: 10px; }
.assignment-details p { grid-column: 1 / -1; margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.assignment-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.inline-form { display: flex; align-items: center; gap: 7px; }
.inline-form select { width: 100px; height: 34px; }
.danger-link { padding: 0; color: var(--danger); background: transparent; border: 0; font-size: 11px; text-decoration: underline; cursor: pointer; }
.assign-form { grid-column: 2 / 4; display: grid; grid-template-columns: minmax(180px, 1fr) 160px 130px auto; align-items: end; gap: 9px; }
.assign-form label { display: block; margin-bottom: 5px; }
.assign-form input, .assign-form select { height: 38px; font-size: 12px; }

.number-schedule-card { border-bottom: 1px solid var(--line-strong); }
.number-schedule-card:last-child { border-bottom: 0; }
.number-schedule-card.is-disabled { opacity: .62; background: #f7f6f2; }
.number-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; background: #faf9f5; border-bottom: 1px solid var(--line); }
.coverage-summary { min-width: 92px; text-align: right; }
.coverage-summary strong, .coverage-summary span { display: block; }
.coverage-summary strong { font: 400 25px/1 Georgia, serif; }
.coverage-summary span { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.shift-row { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(310px, 1.2fr) minmax(260px, .8fr); gap: 20px; align-items: center; padding: 17px 20px; border-bottom: 1px solid #e9e6de; }
.shift-publisher strong, .shift-publisher small, .shift-window span, .shift-window strong, .shift-window small { display: block; }
.shift-publisher strong { margin-top: 7px; }
.shift-publisher small, .shift-window small { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.shift-window > span { color: #73807c; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.shift-window > strong { margin-top: 3px; font-size: 13px; }
.shift-links { display: flex; align-items: center; gap: 14px; }
.shift-links form { display: inline-flex; }
.edit-hours-button { padding: 0; color: var(--green-700); background: transparent; border: 0; font-size: 11px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.schedule-editor { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 12px; padding: 14px; background: #f4f3ee; border-radius: 8px; }
.schedule-editor[hidden] { display: none; }
.schedule-editor > small { align-self: center; max-width: 190px; color: var(--ink-soft); font-size: 9px; }
.day-picker { display: flex; gap: 4px; }
.day-picker label { cursor: pointer; }
.day-picker input { position: absolute; opacity: 0; pointer-events: none; }
.day-picker span { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-soft); background: var(--white); border: 1px solid var(--line-strong); border-radius: 5px; font-size: 10px; font-weight: 800; }
.day-picker input:checked + span { color: var(--white); background: var(--green-800); border-color: var(--green-800); }
.day-picker input:focus-visible + span { box-shadow: 0 0 0 3px rgba(27, 87, 72, .16); }
.all-day-check { min-height: 30px; display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 700; white-space: nowrap; }
.time-field label { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.time-field input { width: 112px; height: 34px; padding: 0 8px; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: 6px; }
.time-field input:disabled { opacity: .45; background: #e8e7e1; }
.no-shifts { padding: 22px 20px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 12px; }
.add-shift { padding: 0 20px 18px; }
.add-shift summary { width: fit-content; padding: 13px 0 4px; color: var(--green-700); font-size: 12px; font-weight: 800; cursor: pointer; }
.assign-schedule-form { margin-top: 10px; padding: 15px; background: #f4f3ee; border: 1px solid var(--line); border-radius: 8px; }
.schedule-basics { display: grid; grid-template-columns: minmax(220px, 1fr) 170px 130px; gap: 10px; }
.schedule-basics label { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.schedule-basics input, .schedule-basics select { width: 100%; height: 36px; padding: 0 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: 6px; }
.schedule-hours { display: flex; align-items: flex-end; gap: 12px; margin-top: 13px; }
.schedule-help { margin: 10px 0 0; color: var(--ink-soft); font-size: 10px; }

.audit-table td { max-width: 300px; }
.event-name { display: inline-block; color: var(--green-700); font-size: 11px; font-weight: 800; text-transform: capitalize; }
.event-details { color: var(--ink-soft); font-size: 10px !important; overflow-wrap: anywhere; }

.security-panel { margin-bottom: 18px; }
.security-list { padding: 0 20px; }
.security-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.security-item:last-child { border-bottom: 0; }
.passkey-mark { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green-700); background: #eaf2ee; border-radius: 50%; }
.security-item strong, .security-item small { display: block; }
.security-item small { margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.session-note > div { display: flex; align-items: center; gap: 16px; padding: 20px; }
.session-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--white); background: var(--copper); border-radius: 50%; font: 400 18px/1 Georgia, serif; }
.session-note h2 { margin: 0; font: 400 20px/1.2 Georgia, serif; }
.session-note p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }

.app-footer { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 clamp(20px, 4vw, 58px); color: #82928d; background: var(--green-950); font-size: 10px; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: 360px; padding: 12px 16px; color: var(--white); background: var(--green-900); border-radius: 7px; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.error-page { min-height: 100vh; background: var(--cream); }
.error-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.error-shell img { width: 230px; height: auto; margin-bottom: 38px; object-fit: contain; }
.error-code { color: var(--copper); font: 400 62px/1 Georgia, serif; }
.error-shell h1 { margin: 12px 0 8px; font: 400 34px/1.2 Georgia, serif; }
.error-shell p { margin: 0 0 24px; color: var(--ink-soft); }

@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: 1fr 1fr; }
  .auth-brand-panel { padding: 42px; }
  .app-header { grid-template-columns: 220px 1fr auto; gap: 16px; padding: 0 24px; }
  .app-nav { gap: 15px; }
  .app-nav a { font-size: 11px; }
  .account-menu > div { display: none; }
  .number-row { grid-template-columns: minmax(210px, .7fr) 1fr; }
  .assignment-actions { grid-column: 2; }
  .assign-form { grid-column: 2; grid-template-columns: 1fr 150px; }
  .publisher-row { grid-template-columns: 42px 1fr auto auto; }
  .publisher-access { display: none; }
  .shift-row { grid-template-columns: minmax(170px, .65fr) 1fr; }
  .assignment-actions { grid-column: 2; }
  .schedule-editor { flex-wrap: wrap; }
}

@media (max-width: 800px) {
  .auth-shell { display: block; background: var(--paper); }
  .auth-brand-panel { min-height: 0; padding: 30px 24px; }
  .auth-intro { margin: 0; padding: 40px 0 28px; }
  .auth-intro h1 { font-size: 42px; }
  .auth-subtitle { font-size: 16px; }
  .publisher-quote { margin-top: 26px; padding-top: 22px; }
  .publisher-quote blockquote p { font-size: 23px; }
  .auth-support { padding-top: 20px; }
  .auth-form-panel { padding: 44px 24px 60px; }
  .app-header { min-height: 70px; grid-template-columns: 1fr auto; position: relative; }
  .portal-brand { width: 210px; }
  .mobile-menu { display: block; width: 52px; height: 34px; color: #c7d2cf; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; font-size: 11px; }
  .app-nav { display: none; position: absolute; z-index: 20; top: 70px; left: 0; right: 0; height: auto; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--green-950); box-shadow: 0 14px 25px rgba(0, 0, 0, .18); }
  .app-nav.is-open { display: flex; }
  .app-nav a { min-height: 42px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .app-nav a.is-current::after { left: auto; width: 3px; height: 24px; bottom: 9px; }
  .account-menu { display: none; }
  .page-shell { width: min(100% - 28px, 1480px); padding: 34px 0 54px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .page-heading h1 { font-size: 34px; }
  .access-clock { width: 100%; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-field, .wide-filter { width: 100%; }
  .wide-filter { grid-column: 1 / -1; }
  .filter-bar small { margin: 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid, .publishers-layout { grid-template-columns: 1fr; }
  .call-table thead { display: none; }
  .call-table, .call-table tbody, .call-table tr, .call-table td { display: block; width: 100%; }
  .call-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 16px; border-bottom: 1px solid var(--line); }
  .call-table td { position: relative; padding: 0; border: 0; }
  .call-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #75817d; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .scope-note { grid-template-columns: 1fr; gap: 8px; }
  .number-row { grid-template-columns: 1fr; gap: 16px; }
  .assignment-actions, .assign-form { grid-column: 1; }
  .assign-form { grid-template-columns: 1fr 1fr; }
  .shift-row { grid-template-columns: 1fr; }
  .assignment-actions { grid-column: 1; }
  .schedule-editor { grid-column: 1; align-items: flex-start; }
  .schedule-basics { grid-template-columns: 1fr 1fr; }
  .schedule-basics > div:first-child { grid-column: 1 / -1; }
  .schedule-hours { flex-wrap: wrap; }
  .publisher-row { grid-template-columns: 42px 1fr auto; }
  .publisher-row form { grid-column: 2 / 4; }
  .app-footer { align-items: flex-start; flex-direction: column; padding-top: 18px; padding-bottom: 18px; }
}

@media (max-width: 520px) {
  .auth-logo { width: 220px; }
  .auth-intro h1 { font-size: 35px; }
  .code-card { padding: 28px 22px; }
  .filter-bar { grid-template-columns: 1fr; }
  .wide-filter { grid-column: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 118px; padding: 14px; }
  .stat-card > strong { font-size: 29px; }
  .panel-heading { align-items: flex-start; }
  .privacy-note { display: none; }
  .call-table tr { grid-template-columns: 1fr; }
  .assign-form { grid-template-columns: 1fr; }
  .number-card-heading { align-items: flex-start; }
  .schedule-basics { grid-template-columns: 1fr; }
  .schedule-basics > div:first-child { grid-column: 1; }
  .day-picker { width: 100%; }
  .day-picker span { width: 28px; }
  .inline-form { align-items: flex-start; flex-wrap: wrap; }
  .publisher-row { grid-template-columns: 38px 1fr; }
  .publisher-row > .badge { grid-column: 2; }
  .publisher-row form { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
