:root {
  --ink: #142127;
  --ink-soft: #33464d;
  --mist: #eef3f2;
  --paper: #fbfdfc;
  --line: #c8d3d0;
  --line-dark: #8fa09b;
  --cobalt: #2457f5;
  --cobalt-deep: #173bb2;
  --teal: #0ca58d;
  --teal-soft: #d9f4ed;
  --amber: #f2b51d;
  --amber-soft: #fff4ce;
  --coral: #d34f46;
  --white: #fff;
  --shadow: 0 22px 60px rgba(20, 33, 39, .11);
  --utility: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: "Arial Narrow", "Roboto Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select { font: inherit; }

button { color: inherit; }

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(36, 87, 245, .38);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cobalt);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }

.button:disabled { cursor: not-allowed; opacity: .5; }

.button-primary {
  background: var(--cobalt);
  box-shadow: 0 9px 24px rgba(36, 87, 245, .22);
  color: #fff;
}

.button-primary:hover:not(:disabled) { background: var(--cobalt-deep); }

.button-secondary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button-buffer {
  border-color: #d89a00;
  background: var(--amber-soft);
  color: #765400;
}

.text-button,
.icon-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}

.login-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr);
  min-height: 100vh;
  overflow: hidden;
  background: var(--ink);
}

.login-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0, transparent 75%);
}

.login-mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(42px, 8vw, 110px);
  color: #fff;
}

.login-mark span {
  font-family: var(--display);
  font-size: clamp(96px, 14vw, 210px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -.085em;
  line-height: .75;
}

.login-mark i {
  width: min(320px, 90%);
  height: 12px;
  margin: 34px 0 18px;
  background: linear-gradient(90deg, var(--teal) 0 63%, var(--amber) 63% 82%, var(--cobalt) 82%);
}

.login-mark small {
  font-family: var(--utility);
  font-weight: 800;
  letter-spacing: .24em;
}

.login-panel {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(560px, calc(100% - 48px));
  margin: 48px auto;
  padding: clamp(34px, 6vw, 74px);
  border: 1px solid rgba(255,255,255,.28);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 72px);
  font-stretch: condensed;
  letter-spacing: -.045em;
  line-height: .96;
}

.login-copy {
  max-width: 30rem;
  margin: 22px 0 32px;
  color: var(--ink-soft);
  font-size: 17px;
}

.stack-form { display: grid; gap: 18px; }

.stack-form label,
.field { display: grid; gap: 7px; }

.stack-form label > span,
.field > span {
  font-size: 13px;
  font-weight: 750;
}

.field > span small {
  margin-left: 7px;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input,
select { height: 46px; padding: 9px 12px; }

textarea {
  min-height: 92px;
  padding: 11px 12px;
  line-height: 1.65;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(36,87,245,.11);
  outline: 0;
}

input[readonly] {
  background: #edf1f0;
  color: var(--ink-soft);
}

.security-note {
  display: flex;
  gap: 10px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.security-note span { color: var(--teal); }

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 650;
}

.form-message.success { color: #087966; }

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.app-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 18px;
  background: var(--ink);
  color: #fff;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  color: #fff;
  text-decoration: none;
}

.brand-block {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--teal);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.05em;
}

.app-brand > span:last-child { display: grid; }
.app-brand strong { font-size: 16px; }
.app-brand small {
  color: rgba(255,255,255,.48);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.app-rail nav { display: grid; gap: 5px; }

.rail-link {
  display: flex;
  gap: 13px;
  align-items: center;
  min-height: 46px;
  padding: 10px 11px;
  width: 100%;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.62);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  text-align: left;
}

.rail-link span {
  color: rgba(255,255,255,.34);
  font-family: var(--utility);
  font-size: 10px;
}

.rail-link:hover,
.rail-link.current {
  border-left-color: var(--teal);
  background: rgba(255,255,255,.06);
  color: #fff;
}

.rail-foot {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

.operator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operator-dot,
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(12,165,141,.14);
}

.operator div { display: grid; }
.operator small { color: rgba(255,255,255,.45); font-size: 10px; }
.operator strong { font-size: 13px; }
.rail-foot .text-button { justify-self: start; padding: 0; color: rgba(255,255,255,.58); }

main {
  min-width: 0;
  padding: 36px clamp(24px, 4vw, 60px) 70px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  max-width: 1500px;
  margin: 0 auto 26px;
}

.topbar h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 62px);
  font-stretch: condensed;
  letter-spacing: -.04em;
  line-height: .96;
}

.topbar p:last-child { margin: 14px 0 0; color: var(--ink-soft); }

.service-state {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 150px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.62);
}

.service-state div { display: grid; }
.service-state small { color: var(--ink-soft); font-size: 10px; }
.service-state strong { font-family: var(--utility); font-size: 12px; letter-spacing: .08em; }

.new-talk-bar {
  display: flex;
  justify-content: flex-end;
  max-width: 1500px;
  margin: 0 auto 26px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.55fr) minmax(330px, .75fr);
  gap: 26px;
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}

.editor-panel,
.queue-panel {
  border: 1px solid var(--line);
  background: var(--paper);
}

.editor-panel { padding: clamp(22px, 3vw, 38px); }

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.panel-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -.025em;
}

.edit-state,
.model-chip {
  padding: 5px 9px;
  border: 1px solid var(--line-dark);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.intake-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: -4px 0 28px;
  padding: 22px 22px 22px 26px;
  overflow: hidden;
  border: 1px solid #aebbdc;
  border-left: 6px solid var(--cobalt);
  background:
    linear-gradient(115deg, rgba(36,87,245,.095), transparent 58%),
    #f7f9ff;
}

.intake-box::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 5px;
  background: linear-gradient(90deg, var(--cobalt) 0 48%, var(--teal) 48% 76%, var(--amber) 76%);
  content: "";
}

.intake-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.intake-heading .eyebrow { margin: 0; }
.intake-box h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(23px, 3vw, 34px);
  letter-spacing: -.03em;
  line-height: 1.04;
}

.intake-copy > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.intake-control { display: grid; gap: 8px; }
.intake-control > label { font-size: 12px; font-weight: 750; }
.intake-control textarea { min-height: 156px; background: rgba(255,255,255,.9); }
.intake-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.intake-actions .button { min-height: 42px; }
.intake-actions small { color: var(--ink-soft); font-size: 10px; }
.intake-control .form-message { margin: 0; }

.field-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-wide { grid-column: 1 / -1; }
.field b { color: var(--coral); }
.field small { color: var(--ink-soft); font-size: 11px; }

.paper-lookup {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #aebbdc;
  border-left: 5px solid var(--cobalt);
  background: linear-gradient(110deg, rgba(36,87,245,.07), transparent 56%), #f9fbff;
}

.button-danger {
  border-color: #a6322b;
  background: #fff4f2;
  color: #a6322b;
}

.button-danger:hover:not(:disabled) { background: #ffe6e2; }

.paper-match-header,
.speaker-homepage-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.paper-match-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(70, 91, 143, .24);
}

.paper-match-header p {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.paper-priority {
  display: inline-block;
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.paper-match-header .button,
.speaker-homepage-action .button { min-height: 46px; white-space: nowrap; }
.paper-match-message { min-height: 0; }

.speaker-homepage-lookup { display: grid; gap: 8px; }
.speaker-homepage-message { min-height: 0; }

.speaker-photo-uploader {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-dark);
  background: #f6f8f7;
}

.speaker-photo-preview {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(45deg, #edf0ef 25%, transparent 25%, transparent 75%, #edf0ef 75%),
    linear-gradient(45deg, #edf0ef 25%, #fff 25%, #fff 75%, #edf0ef 75%);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
}

.speaker-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.speaker-photo-preview span { max-width: 70px; color: var(--ink-soft); font-size: 11px; text-align: center; }
.speaker-photo-actions { display: grid; justify-items: start; gap: 9px; }
.speaker-photo-actions .button { min-height: 42px; }
.speaker-photo-actions:focus-within .button { box-shadow: 0 0 0 3px rgba(36,87,245,.11); }
#speaker-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.schedule-box {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line-dark);
}

.schedule-box legend {
  padding: 0 9px;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.schedule-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 11px 13px;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
}

.schedule-alert > span {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid #9c7000;
  border-radius: 50%;
  color: #765400;
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 900;
}

.schedule-alert p { margin: 0; color: #6b510d; font-size: 12px; }

.schedule-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.schedule-grid .field-wide { grid-column: span 2; }

.copy-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.copy-heading h2 { margin: 0; font-family: var(--display); font-size: 30px; }
.model-chip { border-color: var(--teal); color: #087966; }

.copy-tool-grid {
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(520px, 1.28fr);
  gap: 26px;
  max-width: 1500px;
  margin: 0 auto;
}

.copy-source-panel,
.copy-output-panel {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.copy-source-panel {
  align-self: start;
  border-top: 7px solid var(--teal);
}

.copy-output-panel {
  border-top: 7px solid var(--cobalt);
  box-shadow: var(--shadow);
}

.copy-eligibility-note,
.copy-output-panel > p {
  color: var(--ink-soft);
  font-size: 12px;
}

.copy-eligibility-note { margin: 14px 0 22px; }
.copy-output-panel > p { margin: 10px 0 18px; }
.copy-output-panel textarea { min-height: 420px; background: #fff; }

.copy-source-summary {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(145deg, rgba(12,165,141,.1), transparent 62%),
    #f7fbfa;
}

.copy-source-summary h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.18;
}

.copy-source-summary dl { display: grid; gap: 10px; margin: 0; }
.copy-source-summary dl div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(20,33,39,.12);
}
.copy-source-summary dt { color: var(--ink-soft); font-size: 11px; }
.copy-source-summary dd { margin: 0; font-size: 12px; font-weight: 700; }

.link-tool-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.18fr) minmax(280px, .62fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.link-tool-panel,
.link-guide {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.link-tool-panel {
  display: grid;
  gap: 20px;
  border-top: 7px solid var(--cobalt);
  box-shadow: var(--shadow);
}

.link-tool-panel .panel-heading { margin-bottom: 2px; }
.link-tool-panel .button { justify-self: start; }
.link-guide {
  align-self: start;
  border-top: 7px solid var(--teal);
  background: linear-gradient(145deg, rgba(12,165,141,.1), transparent 62%), #f7fbfa;
}
.link-guide.video-guide {
  border-top-color: var(--amber);
  background: linear-gradient(145deg, rgba(226,165,34,.13), transparent 62%), #fffdf6;
}
.link-guide h2 { margin: 0 0 14px; font-family: var(--display); font-size: 30px; line-height: 1.08; }
.link-guide p:last-child { margin: 0; color: var(--ink-soft); }

.copy-actions,
.publish-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.publish-bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.publish-bar > div:first-child { display: grid; gap: 5px; }
.publish-bar small { max-width: 560px; color: var(--ink-soft); }

.queue-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.sticky-heading {
  position: sticky;
  z-index: 3;
  top: 0;
  margin: 0;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(251,253,252,.96);
  backdrop-filter: blur(12px);
}

.talk-lane { padding: 20px; }
.talk-lane + .talk-lane { border-top: 1px solid var(--line); }

.friday-reminder {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
}

.friday-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.friday-heading h3 { margin: 0; font-size: 14px; }
.friday-heading select { width: auto; min-height: 36px; padding: 5px 8px; font-size: 12px; }
.friday-summary { margin: 14px 0 4px; font-size: 13px; font-weight: 750; }
.friday-summary.complete { color: #087966; }
.friday-range { margin: 0; color: var(--ink-soft); font-size: 11px; }
.friday-gaps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 7px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.friday-gaps li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--amber);
  background: var(--paper);
}

.friday-gaps time { font-family: var(--utility); font-size: 11px; white-space: nowrap; }
.friday-gaps span { color: #765400; font-size: 10px; white-space: nowrap; }
.friday-note { margin: 12px 0 0; color: var(--ink-soft); font-size: 11px; }

.talk-lane > header {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 9px;
  align-items: center;
  margin-bottom: 13px;
}

.talk-lane > header > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.buffer-lane > header > span { background: var(--amber); }
.published-lane > header > span { background: var(--teal); }
.talk-lane h3 { margin: 0; font-size: 14px; }
.talk-lane header small { color: var(--ink-soft); font-size: 10px; }
.talk-list { display: grid; gap: 10px; }

.talk-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 13px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.buffer-lane .talk-card { border-style: dashed; }

.talk-card:hover { border-color: var(--cobalt); }

.talk-date {
  display: grid;
  place-content: center;
  min-height: 98px;
  padding: 8px;
  border-right: 1px solid var(--line);
  background: #edf2f1;
  text-align: center;
}

.buffer-lane .talk-date { background: var(--amber-soft); color: #765400; }
.published-lane .talk-date { background: var(--teal-soft); color: #087966; }
.talk-date strong { font-family: var(--display); font-size: 24px; line-height: 1; }
.talk-date small { font-family: var(--utility); font-size: 9px; text-transform: uppercase; }

.talk-card-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 12px 12px 0;
}

.talk-card-copy strong,
.talk-card-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talk-card-copy strong { font-size: 13px; }
.talk-card-copy span { color: var(--ink-soft); font-size: 11px; }
.talk-card-copy small { color: var(--cobalt); font-family: var(--utility); font-size: 9px; }

.empty-lane {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line-dark);
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.password-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20,33,39,.82);
  backdrop-filter: blur(10px);
}

.password-panel {
  display: grid;
  gap: 18px;
  width: min(520px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border-top: 8px solid var(--amber);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.password-panel h2 { margin: 0; font-family: var(--display); font-size: 34px; }
.password-panel > p:not(.eyebrow):not(.form-message) { margin: -7px 0 4px; color: var(--ink-soft); }

.toast-region {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 44px));
}

.toast {
  padding: 13px 15px;
  border-left: 4px solid var(--teal);
  background: var(--ink);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 13px;
}

.toast.error { border-left-color: var(--coral); }

@media (max-width: 1180px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .copy-tool-grid { grid-template-columns: minmax(0, 1fr); }
  .link-tool-grid { grid-template-columns: minmax(0, 1fr); }
  .queue-panel { position: static; max-height: none; }
}

@media (max-width: 820px) {
  .login-stage { grid-template-columns: 1fr; }
  .login-mark { min-height: 240px; padding: 54px 30px 26px; }
  .login-mark span { font-size: 100px; }
  .login-panel { margin: 0 auto 32px; }
  .app-shell { display: block; }
  .app-rail { position: static; display: grid; grid-template-columns: 1fr auto; height: auto; padding: 15px 18px; }
  .app-brand { margin: 0; }
  .app-rail nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }
  .rail-link { justify-content: center; border-left: 0; border-bottom: 2px solid transparent; }
  .rail-link:hover,
  .rail-link.current { border-bottom-color: var(--teal); }
  .rail-foot { display: flex; margin: 0; padding: 0; border: 0; }
  .operator { display: none; }
  main { padding: 28px 16px 54px; }
  .topbar { display: block; }
  .service-state { margin-top: 20px; }
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publish-bar { align-items: stretch; flex-direction: column; }
}

@media (max-width: 580px) {
  .login-panel { width: calc(100% - 24px); padding: 30px 22px; }
  .two-columns,
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-grid .field-wide { grid-column: 1; }
  .speaker-photo-uploader { grid-template-columns: 84px minmax(0, 1fr); }
  .speaker-photo-preview { width: 84px; }
  .new-talk-bar .button { width: 100%; }
  .publish-actions,
  .copy-actions { align-items: stretch; flex-direction: column; }
  .publish-actions .button,
  .copy-actions .button { width: 100%; }
  .copy-actions .text-button { min-height: 40px; }
  .intake-box { padding: 20px 17px 18px; }
  .intake-actions { align-items: stretch; flex-direction: column; }
  .intake-actions .button { width: 100%; }
  .paper-match-header,
  .speaker-homepage-action { grid-template-columns: 1fr; }
  .paper-match-header .button,
  .speaker-homepage-action .button { width: 100%; }
}

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