:root {
  --bg: #f3f4f1;
  --bg-deep: #0d1110;
  --surface: #ffffff;
  --surface-soft: #f7f8f4;
  --surface-warm: #fbfaf6;
  --ink: #151917;
  --muted: #636a66;
  --faint: #929a94;
  --line: #dde2dc;
  --line-strong: #c5cec7;
  --black: #0f1412;
  --charcoal: #171b18;
  --jade: #0d756a;
  --jade-deep: #07564f;
  --jade-soft: #e2f1ed;
  --gold: #c59b4b;
  --gold-soft: #f3ead7;
  --rose: #ad493c;
  --rose-soft: #f7e7e3;
  --blue: #366f96;
  --blue-soft: #e6eef4;
  --violet: #625ca7;
  --violet-soft: #eceaf6;
  --shadow: 0 24px 70px rgba(13, 17, 16, 0.14);
  --soft-shadow: 0 12px 34px rgba(13, 17, 16, 0.08);
  --inner-line: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    linear-gradient(180deg, #fbfcf9 0%, #f0f2ed 44%, #e9eee9 100%),
    var(--bg);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.22;
}

.kicker {
  margin: 0 0 8px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background 0.18s var(--ease),
    transform 0.18s var(--ease);
}

textarea {
  min-height: 104px;
  padding-top: 11px;
  resize: vertical;
  line-height: 1.55;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(13, 117, 106, 0.62);
  box-shadow: 0 0 0 4px rgba(13, 117, 106, 0.12);
  background: #fff;
}

.error {
  min-height: 18px;
  display: block;
  margin-top: 10px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
}

.primary-btn,
.line-btn,
.danger-btn,
.icon-btn,
.status-btn,
.row-btn {
  min-height: 40px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    border-color 0.18s var(--ease),
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}

.primary-btn {
  position: relative;
  overflow: hidden;
  padding: 0 17px;
  color: #fff;
  background:
    linear-gradient(135deg, #070a09 0%, #111916 48%, #060807 100%);
  font-weight: 880;
  box-shadow: 0 15px 32px rgba(13, 17, 16, 0.2);
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.2) 42%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.58s var(--ease);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(13, 17, 16, 0.24);
  outline: none;
}

.primary-btn:hover::after,
.primary-btn:focus-visible::after {
  transform: translateX(130%);
}

.line-btn,
.icon-btn,
.row-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-weight: 840;
}

.line-btn {
  padding: 0 14px;
}

.line-btn:hover,
.icon-btn:hover,
.row-btn:hover,
.line-btn:focus-visible,
.icon-btn:focus-visible,
.row-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(13, 117, 106, 0.32);
  box-shadow: 0 10px 22px rgba(13, 17, 16, 0.08);
  outline: none;
}

.icon-btn {
  width: 40px;
  padding: 0;
}

.icon-btn.quiet {
  color: var(--muted);
}

.danger-btn {
  padding: 0 13px;
  color: var(--rose);
  border: 1px solid rgba(173, 73, 60, 0.22);
  background: var(--rose-soft);
  font-weight: 860;
}

[data-icon] {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 18px;
}

[data-icon] svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.brand,
.commandbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid rgba(197, 155, 75, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, #121815, #080c0b);
  color: #e7ca82;
  font-weight: 950;
  box-shadow:
    0 12px 24px rgba(13, 17, 16, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}

.login > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: contrast(1.08) saturate(0.9);
  animation: photo-drift 18s var(--ease) infinite alternate;
}

.login::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 12, 11, 0.9), rgba(9, 12, 11, 0.5) 48%, rgba(9, 12, 11, 0.34)),
    linear-gradient(180deg, rgba(197, 155, 75, 0.14), transparent 34%);
}

.login-panel {
  width: min(430px, 100%);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  animation: panel-rise 0.7s var(--ease) both;
}

.login-panel h1 {
  margin-bottom: 8px;
  font-size: 34px;
}

.login-panel label + label {
  margin-top: 0;
}

.login-panel .primary-btn {
  width: 100%;
  margin-top: 4px;
}

.app {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 18px 22px 30px;
  position: relative;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 17, 16, 0.04), transparent 30%),
    linear-gradient(120deg, rgba(197, 155, 75, 0.06), transparent 36%, rgba(13, 117, 106, 0.045));
}

.topbar {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(280px, 560px) auto;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 9px 0;
  background: rgba(243, 244, 241, 0.82);
  backdrop-filter: blur(22px);
  animation: top-slide 0.55s var(--ease) both;
}

.commandbar {
  justify-content: flex-end;
}

.search {
  width: 100%;
  position: relative;
}

.search [data-icon] {
  position: absolute;
  left: 13px;
  top: 14px;
  color: var(--faint);
}

.search input {
  padding-left: 42px;
  background: rgba(255, 255, 255, 0.9);
}

.summary-band {
  min-height: 158px;
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(560px, 1fr);
  gap: 14px;
  margin: 14px 0;
}

.summary-copy {
  position: relative;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(15, 20, 18, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 20, 18, 0.96), rgba(28, 35, 31, 0.94)),
    var(--charcoal);
  color: #fff;
  box-shadow: var(--shadow);
  animation: panel-rise 0.55s var(--ease) both 0.04s;
}

.summary-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent, rgba(197, 155, 75, 0.18), transparent);
  transform: translateX(-120%);
  animation: slow-sheen 4.8s var(--ease) infinite 1s;
}

.summary-copy > * {
  position: relative;
  z-index: 1;
}

.summary-copy .kicker {
  color: #e9ca7d;
}

.summary-copy h1 {
  color: #fff;
}

.workbench-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.workbench-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(233, 202, 125, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 840;
}

.sms-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 820;
}

.sms-status.ok {
  color: #9de2d6;
}

.sms-status.warn {
  color: #f0c981;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: 10px;
}

.stat {
  min-height: 158px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--soft-shadow), var(--inner-line);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  animation: panel-rise 0.52s var(--ease) both;
}

.stat:nth-child(2) { animation-delay: 0.05s; }
.stat:nth-child(3) { animation-delay: 0.1s; }
.stat:nth-child(4) { animation-delay: 0.15s; }
.stat:nth-child(5) { animation-delay: 0.2s; }

.stat:hover,
.stat:focus {
  transform: translateY(-3px);
  border-color: rgba(13, 117, 106, 0.32);
  box-shadow: 0 20px 46px rgba(13, 17, 16, 0.12), var(--inner-line);
  outline: none;
}

.stat.dark {
  background:
    linear-gradient(150deg, #111715, #1c251f);
  border-color: #0f1412;
  color: #fff;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 880;
}

.stat.dark span {
  color: rgba(255, 255, 255, 0.68);
}

.stat strong {
  font-size: 38px;
  line-height: 1;
}

.stat small {
  color: var(--faint);
  font-size: 12px;
  font-weight: 760;
}

.stat.dark small {
  color: rgba(255, 255, 255, 0.58);
}

.operations {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.focus-stack {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 88px;
}

.focus-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  box-shadow: var(--soft-shadow), var(--inner-line);
  animation: panel-rise 0.54s var(--ease) both 0.12s;
}

.focus-block.attention {
  animation-delay: 0.18s;
}

.focus-block header {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.focus-block header [data-icon] {
  color: var(--jade);
}

.focus-block.attention header [data-icon] {
  color: var(--gold);
}

.focus-list {
  display: grid;
  gap: 0;
}

.focus-item {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.focus-item:last-child {
  border-bottom: 0;
}

.focus-item:hover,
.focus-item:focus-visible {
  background: rgba(13, 117, 106, 0.055);
  transform: translateX(2px);
  outline: none;
}

.focus-time {
  min-width: 60px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 920;
}

.focus-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.focus-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.focus-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.focus-empty {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.workspace {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow), var(--inner-line);
  overflow: hidden;
  animation: panel-rise 0.6s var(--ease) both 0.16s;
}

.workspace > header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 248, 0.96));
}

.stage-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.stage-tabs::-webkit-scrollbar {
  display: none;
}

.stage-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 860;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.stage-tab:hover,
.stage-tab:focus-visible {
  background: rgba(13, 117, 106, 0.075);
  color: var(--ink);
  outline: none;
}

.stage-tab small {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #edf1ed;
  color: var(--muted);
  font-size: 12px;
}

.stage-tab.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 17, 16, 0.18);
}

.stage-tab.active small {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.candidate-surface {
  min-height: 520px;
  background:
    linear-gradient(180deg, #fbfcfa, var(--surface-soft));
}

.queue-list {
  display: grid;
}

.queue-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(240px, 1.28fr) minmax(118px, 0.66fr) minmax(170px, 0.84fr) minmax(112px, 0.58fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    transform 0.16s var(--ease);
  animation: row-in 0.42s var(--ease) both;
}

.queue-row:hover,
.queue-row:focus {
  background: #fff;
  box-shadow: inset 4px 0 0 var(--jade), 0 12px 24px rgba(13, 17, 16, 0.06);
  transform: translateY(-1px);
  outline: none;
}

.queue-row.updating {
  opacity: 0.62;
}

.candidate-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.candidate-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, #edf5f1, #fff);
  color: var(--jade);
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(13, 117, 106, 0.12);
}

.candidate-meta {
  min-width: 0;
}

.candidate-meta strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.2;
}

.candidate-meta span,
.candidate-meta small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-meta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.candidate-meta small {
  margin-top: 3px;
  color: var(--faint);
  font-size: 12px;
}

.status-badge,
.badge {
  min-height: 27px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf1ed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 880;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.status-badge.new,
.status-badge.contacted,
.badge.new,
.badge.contacted {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-badge.interview_scheduled,
.status-badge.trial_scheduled,
.badge.interview_scheduled,
.badge.trial_scheduled {
  background: var(--gold-soft);
  color: #8e6823;
}

.status-badge.interviewed,
.status-badge.trialing,
.status-badge.hired,
.badge.interviewed,
.badge.trialing,
.badge.hired {
  background: var(--jade-soft);
  color: var(--jade-deep);
}

.status-badge.interview_no_show,
.status-badge.trial_no_show,
.status-badge.rejected,
.badge.interview_no_show,
.badge.trial_no_show,
.badge.rejected {
  background: var(--rose-soft);
  color: var(--rose);
}

.status-badge.withdrawn,
.badge.withdrawn {
  background: #ecefeb;
  color: var(--muted);
}

.timing-cell,
.owner-cell {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.timing-cell span,
.owner-cell span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 820;
}

.timing-cell strong,
.owner-cell strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.timing-cell.overdue strong {
  color: var(--rose);
}

.timing-cell.today strong {
  color: var(--jade);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.row-btn {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.row-btn.primary-step {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.empty-state {
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 17px;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: min(560px, 100vw);
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 90px rgba(13, 17, 16, 0.22);
  overflow-y: auto;
  animation: drawer-in 0.32s var(--ease) both;
}

.drawer-inner {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 23px;
}

.drawer-head,
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #fbfcfa, #f4f6f2);
}

.status-btn {
  min-width: 0;
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 860;
}

.status-btn:hover,
.status-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(13, 117, 106, 0.28);
  outline: none;
}

.status-btn.primary-step,
.status-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.status-btn.sms-step::after {
  content: "短信";
  margin-left: 2px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 10px;
  font-weight: 920;
}

.online-room {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(13, 117, 106, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(226, 241, 237, 0.68), rgba(255, 255, 255, 0.94));
}

.online-room header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.online-room header > span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 12px;
  font-weight: 860;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-room-messages {
  max-height: 190px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
}

.admin-room-messages .message {
  max-width: 100%;
  box-shadow: none;
}

.room-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.follow-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 9px;
}

.event {
  padding: 11px 12px;
  border-left: 3px solid var(--jade);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #f7f9f5;
  animation: row-in 0.32s var(--ease) both;
}

.event.sms {
  border-left-color: var(--blue);
}

.event strong {
  display: block;
  font-size: 13px;
}

.event span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.event p {
  margin: 7px 0 0;
  color: #3b413d;
  font-size: 13px;
  line-height: 1.48;
  white-space: pre-wrap;
}

.drawer-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  position: sticky;
  bottom: 0;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), #fff);
}

.modal {
  width: min(660px, calc(100vw - 22px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(13, 17, 16, 0.56);
  backdrop-filter: blur(5px);
}

.modal form {
  display: grid;
  gap: 16px;
  padding: 23px;
  background: #fff;
}

.switch-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9f5;
}

.switch-row span,
.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row strong {
  color: var(--ink);
  font-size: 14px;
}

.switch-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.switch-row input {
  width: 48px;
  min-height: 28px;
  flex: 0 0 48px;
  accent-color: var(--jade);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 36px));
}

.toast {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--soft-shadow);
  animation: toast-in 0.18s var(--ease) both;
}

.toast strong {
  font-size: 14px;
}

.toast span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.toast.success {
  border-color: rgba(13, 117, 106, 0.24);
}

.toast.warn {
  border-color: rgba(197, 155, 75, 0.32);
}

.toast.error {
  border-color: rgba(173, 73, 60, 0.28);
}

.apply-page {
  min-height: 100vh;
  background: var(--bg-deep);
}

.apply-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 548px);
  color: #fff;
}

.apply-hero {
  min-height: 100vh;
  display: grid;
  align-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.apply-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 8, 0.95) 0%, rgba(6, 9, 8, 0.78) 44%, rgba(6, 9, 8, 0.26) 100%),
    linear-gradient(180deg, rgba(197, 155, 75, 0.16), transparent 30%),
    url("/static/pet-shop-workspace.png") center / cover;
  transform: scale(1.02);
  animation: photo-drift 22s var(--ease) infinite alternate;
}

.apply-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-140%);
  animation: slow-sheen 6.6s var(--ease) infinite 1.2s;
}

.apply-hero > * {
  position: relative;
  z-index: 1;
}

.apply-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: top-slide 0.65s var(--ease) both;
}

.apply-nav .brand span {
  color: rgba(255, 255, 255, 0.68);
}

.admin-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 13px;
  font-weight: 840;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.admin-link:hover,
.admin-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
}

.apply-copy {
  width: min(720px, 100%);
  padding-bottom: 1vh;
  animation: hero-copy-in 0.85s var(--ease) both 0.08s;
}

.apply-copy .kicker {
  color: #e9ca7d;
}

.apply-copy h1 {
  max-width: 650px;
  font-size: clamp(38px, 4.25vw, 56px);
  line-height: 0.98;
  color: #fff;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.apply-copy p:not(.kicker) {
  max-width: 600px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.apply-signature {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(233, 202, 125, 0.32);
  color: rgba(255, 255, 255, 0.78);
  animation: panel-rise 0.85s var(--ease) both 0.16s;
}

.apply-signature span,
.apply-signature strong {
  display: block;
}

.apply-signature span {
  color: #e9ca7d;
  font-size: 12px;
  font-weight: 920;
}

.apply-signature strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 820;
  text-align: right;
}

.apply-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(780px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(7, 10, 9, 0.28);
  backdrop-filter: blur(16px);
}

.apply-proof article {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  animation: panel-rise 0.72s var(--ease) both;
}

.apply-proof article:last-child {
  border-right: 0;
}

.apply-proof article:nth-child(2) { animation-delay: 0.12s; }
.apply-proof article:nth-child(3) { animation-delay: 0.2s; }

.apply-proof article::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(233, 202, 125, 0.9), transparent);
  animation: line-scan 3.8s var(--ease) infinite;
}

.apply-proof em {
  color: rgba(233, 202, 125, 0.82);
  font-size: 11px;
  font-style: normal;
  font-weight: 880;
}

.apply-proof strong {
  color: #fff;
  font-size: 28px;
}

.apply-proof span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.52;
}

.apply-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -28px;
  animation: panel-rise 0.75s var(--ease) both 0.18s;
}

.apply-flow span {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 830;
}

.apply-panel {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 244, 0.96));
  color: var(--ink);
}

.apply-form,
.apply-success {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(15, 20, 18, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 84px rgba(13, 17, 16, 0.16), var(--inner-line);
  animation: panel-rise 0.72s var(--ease) both 0.14s;
}

.apply-form header,
.apply-success {
  text-align: left;
}

.apply-form header span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.apply-grid .wide {
  grid-column: 1 / -1;
}

.apply-submit {
  width: 100%;
  min-height: 48px;
}

.apply-success {
  align-content: center;
  min-height: 430px;
}

.apply-success p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.interview-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fbfcf8 0%, #eef2ed 100%),
    var(--bg);
}

.interview-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 18px 22px 30px;
}

.interview-top {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 9px 0;
  background: rgba(251, 252, 248, 0.84);
  backdrop-filter: blur(22px);
  animation: top-slide 0.55s var(--ease) both;
}

.interview-brief {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow), var(--inner-line);
  animation: panel-rise 0.58s var(--ease) both 0.06s;
}

.interview-brief span {
  color: var(--jade);
  font-size: 12px;
  font-weight: 900;
}

.interview-brief strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.interview-brief em {
  color: var(--faint);
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
}

.interview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(430px, 1.25fr) minmax(320px, 0.92fr);
  gap: 14px;
  align-items: stretch;
}

.store-story,
.video-panel,
.chat-panel {
  min-height: 690px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow), var(--inner-line);
  overflow: hidden;
  animation: panel-rise 0.64s var(--ease) both;
}

.store-story {
  display: grid;
  align-content: space-between;
  gap: 22px;
  position: relative;
  padding: 23px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(9, 12, 11, 0.32), rgba(9, 12, 11, 0.92)),
    url("/static/pet-shop-workspace.png") center / cover;
}

.store-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-140%);
  animation: slow-sheen 6s var(--ease) infinite 1s;
}

.store-story > * {
  position: relative;
  z-index: 1;
}

.store-story .kicker {
  color: #e9ca7d;
}

.store-story h1 {
  font-size: clamp(30px, 3vw, 40px);
  color: #fff;
}

.store-story p:not(.kicker) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.78;
}

.story-metrics {
  display: grid;
  gap: 10px;
}

.story-metrics article {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
  animation: row-in 0.5s var(--ease) both;
}

.story-metrics article:nth-child(2) { animation-delay: 0.1s; }
.story-metrics article:nth-child(3) { animation-delay: 0.18s; }

.story-metrics strong {
  color: #fff;
  font-size: 21px;
}

.story-metrics span {
  color: rgba(255, 255, 255, 0.73);
  font-size: 13px;
  line-height: 1.48;
}

.video-panel,
.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.video-panel {
  animation-delay: 0.08s;
}

.chat-panel {
  animation-delay: 0.16s;
}

.video-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 248, 0.96));
}

.video-head span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 12px;
  font-weight: 860;
}

.call-stage {
  position: relative;
  min-height: 618px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(197, 155, 75, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(6, 10, 9, 0.98), rgba(16, 23, 20, 0.99)),
    #0f1412;
}

.call-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-140%);
  animation: slow-sheen 5.8s var(--ease) infinite 0.8s;
}

.connection-bar {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
}

.role-badge {
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(233, 202, 125, 0.38);
  border-radius: 999px;
  color: #f0d58e;
  background: rgba(197, 155, 75, 0.12);
  font-size: 12px;
  font-weight: 920;
}

.connection-bar strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-bar em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
  text-align: right;
}

.video-grid {
  min-height: 0;
  display: grid;
  position: relative;
  z-index: 1;
  padding: 14px;
}

.video-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, #070a09, #111a17);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.video-tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #090d0c;
}

.remote-tile {
  min-height: 480px;
}

.local-tile {
  width: min(250px, 29vw);
  min-height: 156px;
  aspect-ratio: 16 / 10;
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  border-color: rgba(233, 202, 125, 0.32);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(233, 202, 125, 0.14), transparent 25%),
    linear-gradient(145deg, rgba(12, 17, 15, 0.86), rgba(8, 12, 11, 0.96));
}

.video-placeholder::before {
  content: "";
  width: 68px;
  height: 68px;
  border: 1px solid rgba(233, 202, 125, 0.42);
  border-radius: 999px;
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.025);
  animation: quiet-pulse 2.4s var(--ease) infinite;
}

.video-placeholder span {
  color: #e9ca7d;
  font-size: 11px;
  font-weight: 920;
}

.video-placeholder strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.tile-label {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(5, 8, 7, 0.68);
  backdrop-filter: blur(12px);
}

.tile-label strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-label span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.video-controls .primary-btn,
.video-controls .line-btn {
  min-height: 40px;
}

.video-controls .line-btn {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
}

.video-controls .line-btn:hover,
.video-controls .line-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(233, 202, 125, 0.36);
}

.chat-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.message-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  background:
    linear-gradient(180deg, #f8faf5, #f1f4ef);
}

.message {
  max-width: 92%;
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 22px rgba(13, 17, 16, 0.05);
  animation: message-in 0.24s var(--ease) both;
}

.chat-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed rgba(13, 117, 106, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  text-align: center;
  animation: panel-rise 0.42s var(--ease) both;
}

.chat-empty strong,
.chat-empty span {
  display: block;
}

.chat-empty strong {
  color: var(--ink);
  font-size: 15px;
}

.chat-empty span {
  max-width: 260px;
  font-size: 13px;
  line-height: 1.55;
}

.message.mine {
  justify-self: end;
  background:
    linear-gradient(145deg, #0f1412, #18221f);
  color: #fff;
  border-color: var(--black);
}

.message strong {
  font-size: 12px;
}

.message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.message span {
  color: var(--faint);
  font-size: 11px;
}

.message.mine span {
  color: rgba(255, 255, 255, 0.58);
}

.message-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes top-slide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-sheen {
  0%,
  45% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

@keyframes line-scan {
  0%,
  35% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(70%);
  }
}

@keyframes photo-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.4%, -0.8%, 0);
  }
}

@keyframes quiet-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .summary-band,
  .operations {
    grid-template-columns: 1fr;
  }

  .focus-stack {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .interview-grid {
    grid-template-columns: 1fr;
  }

  .video-panel {
    order: 1;
  }

  .chat-panel {
    order: 2;
  }

  .store-story {
    order: 3;
  }

  .store-story,
  .video-panel,
  .chat-panel {
    min-height: 520px;
  }

  .call-stage {
    min-height: 520px;
  }

  .remote-tile {
    min-height: 410px;
  }

  .apply-shell {
    grid-template-columns: 1fr;
  }

  .apply-hero {
    min-height: 62vh;
  }

  .apply-panel {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .app {
    padding: 14px;
  }

  .topbar {
    position: relative;
    grid-template-columns: 1fr;
  }

  .commandbar {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .commandbar .primary-btn {
    flex: 1 1 auto;
  }

  .summary-band {
    min-height: 0;
  }

  .summary-copy {
    min-height: 148px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    min-height: 108px;
  }

  .stat strong {
    font-size: 32px;
  }

  .focus-stack {
    grid-template-columns: 1fr;
  }

  .workspace > header {
    align-items: stretch;
    display: grid;
  }

  .queue-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .status-badge,
  .badge {
    width: fit-content;
  }

  .row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .drawer {
    width: 100vw;
  }

  .apply-hero,
  .apply-panel {
    padding: 18px;
  }

  .apply-hero {
    min-height: auto;
    gap: 24px;
  }

  .apply-copy h1 {
    font-size: 40px;
  }

  .apply-proof {
    grid-template-columns: 1fr;
  }

  .interview-shell {
    padding: 14px;
  }

  .interview-top {
    align-items: stretch;
    display: grid;
    position: relative;
  }

  .interview-brief {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
    padding: 13px 14px;
  }

  .interview-brief strong {
    white-space: normal;
    line-height: 1.45;
  }

  .call-stage {
    min-height: 460px;
  }

  .remote-tile {
    min-height: 360px;
  }

  .local-tile {
    width: min(220px, 34vw);
    right: 22px;
    bottom: 22px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  .login {
    padding: 14px;
  }

  .login-panel {
    padding: 24px;
  }

  .app {
    padding: 11px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .topbar .brand {
    align-items: flex-start;
  }

  .commandbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .commandbar .primary-btn {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .summary-copy,
  .workspace > header,
  .drawer-inner,
  .modal form {
    padding: 18px;
  }

  .stats,
  .form-grid,
  .status-actions,
  .follow-box,
  .drawer-actions,
  .room-reply {
    grid-template-columns: 1fr;
  }

  .drawer-actions span {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    min-height: 116px;
  }

  .stat.dark {
    grid-column: 1 / -1;
    min-height: 126px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .apply-nav {
    align-items: flex-start;
  }

  .admin-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .apply-copy h1 {
    max-width: 100%;
    font-size: 31px;
    line-height: 1.04;
  }

  .apply-copy,
  .apply-proof,
  .apply-flow {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    min-width: 0;
  }

  .apply-copy p:not(.kicker) {
    font-size: 15px;
    line-height: 1.68;
  }

  .apply-signature {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding-top: 13px;
  }

  .apply-signature strong {
    text-align: left;
    line-height: 1.45;
  }

  .apply-proof article {
    width: 100%;
    min-width: 0;
    min-height: 116px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .apply-proof article:last-child {
    border-bottom: 0;
  }

  .apply-grid {
    grid-template-columns: 1fr;
  }

  .apply-form,
  .apply-success {
    padding: 18px;
  }

  .apply-flow span {
    width: auto;
    min-width: 0;
    justify-content: center;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .apply-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -12px;
  }

  .interview-top .primary-btn {
    width: 100%;
    min-height: 44px;
  }

  .store-story,
  .video-panel,
  .chat-panel {
    min-height: auto;
  }

  .store-story {
    min-height: 560px;
  }

  .call-stage {
    min-height: auto;
  }

  .connection-bar {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .connection-bar em {
    text-align: left;
  }

  .video-grid {
    gap: 10px;
  }

  .remote-tile {
    min-height: 300px;
  }

  .local-tile {
    width: 100%;
    min-height: 178px;
    position: relative;
    right: auto;
    bottom: auto;
  }

  .video-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-controls .primary-btn {
    grid-column: 1 / -1;
  }

  .message {
    max-width: 96%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
