/* D3 — tm-* 토큰 통일: portal 팔레트를 index 헌장(DESIGN.md §1)에 정렬.
   기존 --ink/--muted/--paper/--green/--line 등 변수명은 유지, 값만 tm-* 실측치로 교체.
   추가 tm-* 별칭은 향후 portal-* → tm-* 마이그레이션과 새 컴포넌트용. */
:root {
  --tm-ink: #163438;
  --tm-ink-soft: #5A6B66;
  --tm-green: #2F5D45;
  --tm-green-soft: #E4ECE2;
  --tm-accent: #C2672F;
  --tm-accent-soft: #F7E5D4;
  --tm-card: #FBF8F1;
  --tm-card-soft: #F1EBDD;
  --tm-line: #E6DFCC;
  --tm-rlg: 28px;
  --tm-rmd: 20px;
  --tm-rsm: 14px;
  --tm-sh: 0 1px 2px rgba(22, 52, 56, 0.04), 0 6px 18px -8px rgba(22, 52, 56, 0.08);
  --tm-ease: cubic-bezier(.22, .8, .32, 1);

  --ink: #163438;
  --muted: #5A6B66;
  --soft: #F1EBDD;
  --paper: #F4EEE3;
  --surface: #FBF8F1;
  --surface-2: #F1EBDD;
  --line: #E6DFCC;
  --line-strong: #C7BFA9;
  --asphalt: #272b2f;
  --green: #2F5D45;
  --green-2: #E4ECE2;
  --yellow: #f1c84b;
  --blue: #2b679d;
  --blue-2: #e6eef8;
  --red: #9d3e31;
  --red-2: #f3e2de;
  --warning: #735400;
  --warning-2: #fff1bd;
  --shadow: 0 1px 2px rgba(22, 52, 56, 0.04), 0 6px 18px -8px rgba(22, 52, 56, 0.08);
  --shadow-soft: 0 1px 2px rgba(22, 52, 56, 0.04);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(39, 43, 47, 0.04), rgba(39, 43, 47, 0) 220px),
    var(--paper);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* D3 — 타이포 v2 (DESIGN.md §2, §7): portal 스코프 = display L 금지, 헤딩 L(22) 상한 */
h1 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 30;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 900;
}

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

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(16px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.portal-brand,
.portal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-brand {
  min-width: 0;
  flex: 1 1 auto;
}

.portal-brand img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.portal-brand span {
  display: grid;
  min-width: 0;
}

.portal-brand strong,
.portal-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-brand strong {
  line-height: 1.12;
  font-weight: 900;
}

.portal-brand small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.portal-nav {
  flex: 0 0 auto;
}

.portal-nav a,
.portal-nav button,
.top-call,
.call-button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.top-call,
.call-button {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.primary-button {
  min-height: 54px;
  background: var(--yellow);
  border-color: #d9ab22;
  color: #1e1b10;
}

.secondary-button {
  min-height: 50px;
  background: var(--asphalt);
  border-color: var(--asphalt);
  color: #fff;
}

.ghost-button {
  min-height: 42px;
  background: transparent;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
}

textarea {
  min-height: 116px;
  padding-top: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-copy,
.workspace-note,
.section-note,
.form-state,
.fine-note,
.empty-state,
.portal-intro p,
.panel-header p {
  color: var(--muted);
  font-weight: 800;
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 18px;
  align-items: start;
  min-height: calc(100vh - 74px);
  padding: clamp(16px, 3vw, 34px);
}

.portal-intro,
.access-panel,
.portal-section,
.dashboard-strip article,
.member-card,
.template-card,
.selection-panel,
.admin-row,
.kanban-column,
.kanban-card,
.slot-card,
.mini-member,
.rail-card,
.rail-help {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.portal-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(90deg, rgba(241, 200, 75, 0.14), rgba(255, 255, 255, 0) 38%),
    #fff;
}

.portal-intro .lead-copy {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
}

.intro-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 900px;
  margin: 0 0 18px;
}

.intro-steps article {
  display: grid;
  gap: 7px;
  min-height: 148px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.intro-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--asphalt);
  color: #fff;
  font-weight: 900;
}

.intro-steps strong {
  font-size: 18px;
  font-weight: 900;
}

.intro-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.intro-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.intro-metrics span {
  display: grid;
  gap: 2px;
  min-height: 76px;
  padding: 14px 16px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.intro-metrics strong {
  color: var(--ink);
  font-size: 18px;
}

.access-panel,
.selection-panel {
  padding: 22px;
}

.panel-header {
  margin-bottom: 18px;
}

.compact-header {
  margin-bottom: 8px;
}

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

.compact-form {
  gap: 12px;
}

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

.check-line input {
  width: 22px;
  min-height: 22px;
}

.app-workspace {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  padding: clamp(14px, 2.4vw, 28px);
}

.app-main,
.app-rail,
.portal-section,
.split-section,
.split-section > div,
.split-section > aside {
  min-width: 0;
}

.app-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}

.rail-card,
.rail-help {
  padding: 16px;
}

.rail-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.rail-card strong,
.rail-help strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
}

.rail-card p,
.rail-help p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rail-help a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green);
  font-weight: 900;
}

.warning-help {
  border-color: #e4cc74;
  background: #fff9df;
}

.warning-help .ghost-button {
  width: 100%;
  margin-top: 12px;
  background: #fff;
}

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

.rail-nav a,
.rail-nav button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.rail-nav button.is-active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.workspace-head,
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

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

.workspace-note {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 16px;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-strip article {
  min-height: 88px;
  padding: 16px;
}

.dashboard-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 27px;
  line-height: 1;
}

.dashboard-strip span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.portal-section {
  margin-bottom: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.section-note {
  margin: -5px 0 14px;
  font-size: 14px;
}

.compact-row {
  align-items: flex-start;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-track article {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.flow-track span {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.flow-track strong {
  font-size: 17px;
  font-weight: 900;
}

.flow-track p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.split-section > div,
.split-section > aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
}

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

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

.toolbar {
  display: flex;
  gap: 10px;
  min-width: min(560px, 100%);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-filters button,
.template-card button,
.member-card__foot a,
.member-card__foot button,
.selected-list button,
.row-actions button,
.kanban-card button,
.mini-member button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.quick-filters .is-active,
.member-card__foot .is-on {
  border-color: var(--green);
  background: var(--green-2);
  color: var(--green);
}

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

.member-proof-head {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.member-card,
.template-card {
  display: grid;
  gap: 12px;
  min-height: 304px;
  padding: 16px;
  box-shadow: none;
}

.member-card.is-selected {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}

.member-card__top,
.member-card__foot,
.template-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.code-pill,
.trust-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  font-style: normal;
}

.code-pill {
  background: var(--asphalt);
  color: #fff;
}

.trust-pill,
.status-chip {
  background: var(--soft);
  color: var(--green);
}

.trust-core,
.trust-trusted,
.status-approved,
.status-confirmed {
  background: var(--green-2);
  color: var(--green);
}

.trust-standard,
.status-reviewing,
.status-coordinating,
.status-submitted,
.status-pending_confirm,
.status-working {
  background: var(--blue-2);
  color: var(--blue);
}

.trust-low,
.status-blocked,
.status-revoked,
.status-cancelled {
  background: var(--red-2);
  color: var(--red);
}

.status-pending {
  background: var(--warning-2);
  color: var(--warning);
}

.status-closed {
  background: #e7e8e4;
  color: #50555a;
}

.member-card h3,
.template-card h3 {
  margin-bottom: 0;
}

.member-card p,
.template-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.member-role {
  color: var(--green) !important;
  font-weight: 900 !important;
}

.member-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.member-facts div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.member-facts dt,
.member-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.member-facts dt {
  color: var(--muted);
}

.member-facts dd {
  color: var(--ink);
}

.tag-row,
.role-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.role-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.member-card__foot {
  margin-top: auto;
}

.member-card__foot a,
.member-card__foot button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
}

.member-card__foot a {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.selected-list,
.request-list,
.admin-table,
.mini-member-list {
  display: grid;
  gap: 10px;
}

.selected-list button {
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
}

.selected-list span {
  color: var(--red);
  font-size: 14px;
}

.compact {
  margin: 0;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.request-item,
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  box-shadow: none;
}

.request-item p,
.request-item small,
.request-item span,
.admin-row span,
.admin-row p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.admin-row.is-selected,
.request-admin-row.is-selected {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green-2);
}

.request-admin-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.request-admin-row .row-actions {
  grid-column: 1 / -1;
}

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

.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(210px, 240px));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

.kanban-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  padding: 12px;
  box-shadow: none;
}

.kanban-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kanban-column header strong {
  font-weight: 900;
}

.kanban-column header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--soft);
  font-weight: 900;
}

.kanban-list {
  display: grid;
  gap: 8px;
}

.kanban-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  box-shadow: none;
}

.kanban-card.is-selected {
  border-color: var(--green);
}

.kanban-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kanban-card h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.kanban-card p,
.kanban-card small {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.fill-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece6;
}

.fill-bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.builder-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.builder-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.slot-card {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 14px;
  box-shadow: none;
}

.slot-card.is-filled {
  border-color: var(--green);
}

.slot-card h3 {
  margin: 8px 0 0;
}

.slot-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.assigned-person {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--green-2);
}

.assigned-person span {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.mini-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  box-shadow: none;
}

.mini-member span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.slim-panel {
  align-self: start;
}

@media (max-width: 1220px) {
  .app-workspace {
    grid-template-columns: 1fr;
  }

  .app-rail {
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }

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

  .split-section,
  .portal-shell,
  .member-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .portal-topbar {
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .portal-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .portal-nav a,
  .portal-nav button,
  .top-call {
    min-height: 40px;
    padding: 0 10px;
    font-size: 14px;
  }

  .portal-shell,
  .app-workspace {
    padding: 12px;
  }

  .portal-intro,
  .access-panel,
  .portal-section,
  .split-section > div,
  .split-section > aside {
    padding: 14px;
  }

  .portal-intro {
    min-height: auto;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  .intro-steps,
  .intro-metrics,
  .flow-track,
  .request-form-grid,
  .member-grid,
  .template-grid,
  .slot-list {
    grid-template-columns: 1fr;
  }

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

  .workspace-head,
  .section-title-row,
  .toolbar,
  .builder-head {
    display: grid;
    align-items: stretch;
  }

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

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

  .admin-row,
  .request-item,
  .mini-member {
    grid-template-columns: 1fr;
  }

  .member-card {
    min-height: auto;
  }
}

@media (max-width: 430px) {
  .portal-brand img {
    width: 36px;
    height: 36px;
  }

  .portal-brand small {
    display: none;
  }

  .dashboard-strip article {
    min-height: 78px;
    padding: 12px;
  }

  .dashboard-strip strong {
    font-size: 23px;
  }

  .rail-nav {
    grid-template-columns: 1fr;
  }

  .member-card__foot {
    display: grid;
  }
}

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

/* v3: promotional-site tone, bottom-dock workspace */
:root {
  --ink: #10243a;
  --muted: #646a61;
  --soft: #f4f1ea;
  --paper: #efe2d0;
  --surface: #fffdf8;
  --surface-2: #f8f5ee;
  --line: rgba(45, 49, 43, 0.12);
  --line-strong: rgba(45, 49, 43, 0.2);
  --asphalt: #10243a;
  --green: #2f6045;
  --green-2: #e6efe2;
  --yellow: #f2c25a;
  --blue: #385f74;
  --blue-2: #e8f0f2;
  --red: #a63f34;
  --red-2: #f1e1dc;
  --warning: #8a6114;
  --warning-2: #fff1cf;
  --shadow: 0 10px 24px rgba(16, 36, 58, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 6px 18px rgba(16, 36, 58, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  --radius: 18px;
  --control-radius: 12px;
  --ease: cubic-bezier(.22, .8, .32, 1);
  --dock-clearance: calc(88px + env(safe-area-inset-bottom));
}

html,
body,
button,
input,
select,
textarea {
  color-scheme: only light !important;
}

body.portal-page,
body.admin-page {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 197, 126, 0.3), transparent 34%),
    linear-gradient(180deg, #fff7ea 0%, #efe1d0 100%) !important;
  color: var(--ink);
  font-family: "Noto Sans KR", "Noto Sans", "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
  letter-spacing: 0;
}

.portal-topbar {
  top: 0;
  width: min(100%, 980px);
  min-height: auto;
  margin: 0 auto;
  padding: 16px 18px 8px;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.portal-brand {
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(250, 247, 240, .98));
  box-shadow: var(--shadow);
}

.portal-brand img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(55, 36, 15, .08);
}

.portal-brand strong {
  color: var(--ink);
  font-size: 19px;
}

.portal-brand small {
  color: var(--green);
  font-weight: 800;
}

.portal-nav a,
.portal-nav button,
.top-call,
.call-button,
.primary-button,
.secondary-button,
.ghost-button {
  min-height: 46px;
  border-radius: var(--control-radius);
  border-color: var(--line);
  box-shadow: none;
  transition: transform 140ms var(--ease), background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.portal-nav a,
.portal-nav button,
.ghost-button {
  background: rgba(255, 253, 248, .94);
}

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

.primary-button {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

:where(.portal-nav a, .portal-nav button, .top-call, .call-button, .primary-button, .secondary-button, .ghost-button):active {
  transform: translateY(1px) scale(.99);
}

input,
select,
textarea {
  min-height: 48px;
  border-radius: var(--control-radius);
  border-color: var(--line-strong);
  background: #fffdf8;
  font-weight: 750;
}

textarea {
  min-height: 92px;
}

label {
  gap: 6px;
  color: rgba(16, 36, 58, .68);
  font-size: 14px;
  letter-spacing: 0;
}

.portal-shell {
  width: min(100%, 980px);
  min-height: calc(100vh - 88px);
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  gap: 14px;
}

.portal-intro,
.access-panel,
.portal-section,
.dashboard-strip article,
.member-card,
.template-card,
.selection-panel,
.admin-row,
.kanban-column,
.kanban-card,
.slot-card,
.mini-member,
.rail-card,
.rail-help {
  border-color: var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(250, 247, 240, .98));
  box-shadow: var(--shadow);
}

.portal-intro {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .92), rgba(250, 247, 240, .98)),
    url("../inline/d97757b6269171bc.jpg") center / cover;
}

.portal-intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(239, 226, 208, .9));
}

.eyebrow {
  color: var(--green);
  font-size: 14px;
  letter-spacing: 0;
}

.lead-copy,
.workspace-note,
.section-note,
.form-state,
.fine-note,
.empty-state,
.portal-intro p,
.panel-header p {
  color: var(--muted);
  font-weight: 700;
}

.ops-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 10px;
  border: 1px solid rgba(255, 253, 248, .18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(16, 36, 58, .96), rgba(47, 96, 69, .92));
  color: #fffdf8;
  box-shadow: 0 16px 34px rgba(16, 36, 58, .14);
}

.ops-status-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 253, 248, .1);
  color: rgba(255, 253, 248, .86);
  font-size: 14px;
  font-weight: 900;
}

.ops-status-strip strong {
  margin-right: 4px;
  color: #fff;
  font-weight: 950;
}

.senior-action-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.senior-action-list span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .92);
  font-size: 16px;
  font-weight: 950;
}

.senior-action-list strong {
  color: var(--green);
  font-size: 15px;
}

.date-summary-card {
  background:
    linear-gradient(180deg, rgba(16, 36, 58, .96), rgba(47, 96, 69, .94)) !important;
  color: #fffdf8;
}

.date-summary-card strong,
.date-summary-card span {
  color: #fffdf8 !important;
}

label.is-invalid {
  color: var(--red);
}

label.is-invalid input,
label.is-invalid select,
label.is-invalid textarea,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: linear-gradient(180deg, #fffdf8, #fff4f1);
  box-shadow: 0 0 0 3px rgba(166, 63, 52, .12);
}

.field-error {
  display: block;
  margin-top: 3px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.intro-steps,
.intro-metrics {
  gap: 8px;
  background: transparent;
  border: 0;
}

.intro-steps article,
.intro-metrics span,
.compact {
  border-color: var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .9);
  box-shadow: none;
}

.intro-steps article {
  min-height: 136px;
}

.intro-steps span {
  background: var(--green);
}

.app-workspace {
  display: block;
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 8px 18px calc(var(--dock-clearance) + 24px);
  scroll-margin-top: 90px;
}

.app-rail {
  display: none !important;
}

.app-main {
  display: grid;
  gap: 12px;
}

.workspace-head {
  margin: 0;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(250, 247, 240, .98));
  box-shadow: var(--shadow);
}

.workspace-head h1 {
  margin-bottom: 4px;
  font-size: clamp(24px, 4vw, 34px);
}

#companyView .workspace-note,
#adminView .workspace-note,
#companyView .section-note,
#companyView .fine-note,
#adminView .section-note {
  display: block;
  margin: 4px 0 0;
  color: rgba(100, 106, 97, .86);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.dashboard-strip {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin: 0;
}

.dashboard-strip article {
  min-height: 66px;
  padding: 10px 12px;
}

.dashboard-strip strong {
  margin: 0;
  color: var(--ink);
  font-size: clamp(21px, 4vw, 27px);
}

.dashboard-strip span {
  color: rgba(41, 45, 42, .72);
  font-size: 14px;
}

.portal-section {
  margin: 0;
  padding: 18px;
  scroll-margin-bottom: var(--dock-clearance);
}

/* 패널 전환마다 튀는 애니 제거 — 초기 진입 stagger는 아래 orchestration 블록이 담당 */


.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(260px, .86fr);
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.split-section > div,
.split-section > aside {
  border-color: var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(250, 247, 240, .98));
  box-shadow: var(--shadow);
  padding: 18px;
}

.placement-board {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(250, 247, 240, .98));
}

.placement-board-head,
.placement-section-head,
.team-row,
.role-roster-row,
.placement-call,
.team-row a {
  display: flex;
  align-items: center;
}

.placement-board-head {
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.placement-board-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 36px);
}

.placement-board-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.placement-call,
.team-row a,
.request-status-summary a,
.request-status-row button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}

.placement-call--head {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-height: 52px;
}

.placement-section {
  display: grid;
  gap: 10px;
}

.placement-section + .placement-section {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.placement-section-head {
  gap: 8px;
}

.placement-section-head span {
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.placement-section-head h3 {
  margin: 0;
  font-size: 20px;
}

.available-team-list,
.role-roster-list {
  display: grid;
  gap: 8px;
}

.team-row,
.role-roster-row {
  min-height: 54px;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .74);
}

.team-row strong {
  flex: 0 0 70px;
  color: var(--green);
  font-size: 16px;
  font-weight: 950;
}

.team-row span {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.team-row em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.team-row mark,
.person-chip small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(23, 106, 85, .12);
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.team-row small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.team-row a,
.request-status-summary a,
.request-status-row button {
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

.availability-checking mark,
.availability-checking.person-chip small {
  background: rgba(178, 125, 52, .14);
  color: #8c5f1f;
}

.availability-assigned mark,
.availability-assigned.person-chip small {
  background: rgba(39, 43, 47, .1);
  color: var(--muted);
}

.role-roster-row {
  align-items: flex-start;
}

.role-roster-row strong {
  flex: 0 0 92px;
  padding-top: 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.role-roster-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.person-chip,
.role-roster-row > div > span,
.role-roster-row em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 241, 234, .86);
  color: var(--ink);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.person-chip {
  gap: 6px;
  min-height: 34px;
  padding: 3px 4px 3px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.person-chip > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.role-roster-row em {
  color: var(--muted);
}

.placement-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.placement-call {
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 4px;
  font-size: 16px;
}

.placement-call strong {
  font-size: 21px;
}

.placement-call em {
  opacity: .78;
  font-style: normal;
  font-size: 14px;
}

.request-status-section {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.request-status-summary {
  display: grid;
  gap: 8px;
}

.request-status-empty,
.request-status-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .74);
}

.request-status-empty {
  grid-template-columns: minmax(0, 1fr) auto;
}

.request-status-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.request-status-empty span,
.request-status-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.request-status-empty span {
  grid-column: 1;
}

.request-status-empty a {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.section-title-row {
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3.4vw, 28px);
}

.coordination-preview {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(16, 36, 58, .12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(16, 36, 58, .97), rgba(28, 58, 50, .95));
  color: #fffdf8;
  box-shadow: 0 12px 28px rgba(16, 36, 58, .12);
}

.member-proof-preview {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.member-proof-preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.member-proof-preview__head h2 {
  margin-bottom: 0;
  font-size: clamp(21px, 3vw, 26px);
}

.member-proof-preview__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.member-proof-preview__head button,
.member-proof-row a,
.member-proof-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.role-proof-summary,
.member-proof-list {
  display: grid;
  gap: 7px;
}

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

.role-proof-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(244, 241, 234, .84);
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.member-proof-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .74);
}

.member-proof-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.member-proof-row strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.member-proof-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-proof-row .code-pill {
  width: fit-content;
}

.member-proof-row a {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

.member-proof-row button.is-on {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.coordination-preview__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.coordination-preview h3,
.coordination-preview strong,
.coordination-preview p,
.coordination-preview .eyebrow,
.coordination-preview .fine-note {
  margin: 0;
  color: inherit;
}

.coordination-preview h3 {
  font-size: 18px;
  line-height: 1.25;
}

.coordination-preview > strong {
  font-size: 19px;
  line-height: 1.35;
}

.coordination-preview > p,
.coordination-preview .fine-note {
  color: rgba(255, 253, 248, .76);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.coordination-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 2px 0 0;
}

.coordination-facts div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 253, 248, .12);
  border-radius: 12px;
  background: rgba(255, 253, 248, .08);
}

.coordination-facts dt,
.coordination-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.coordination-facts dt {
  color: rgba(255, 253, 248, .62);
  font-weight: 900;
}

.coordination-facts dd {
  color: #fffdf8;
  font-weight: 950;
}

.role-stack--preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-stack--preview span {
  justify-content: center;
  min-height: 32px;
  background: rgba(255, 253, 248, .11);
  border-color: rgba(255, 253, 248, .15);
  color: #fffdf8;
}

.role-stack--preview span.is-required {
  background: rgba(242, 194, 90, .22);
  border-color: rgba(242, 194, 90, .48);
  color: #fff7dd;
}

.coordination-ladder,
.admin-flow-strip {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.coordination-ladder {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coordination-ladder article,
.admin-flow-strip span {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .76);
  box-shadow: var(--shadow-soft);
}

.coordination-ladder article {
  display: grid;
  gap: 6px;
  min-height: 128px;
  padding: 14px;
}

.coordination-ladder article span,
.admin-flow-strip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 950;
}

.coordination-ladder strong {
  color: var(--ink);
  font-size: 16px;
}

.coordination-ladder p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-flow-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-flow-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

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

.command-center {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-color: rgba(16, 36, 58, .1);
}

.command-top,
.request-item__top,
.tray-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.command-top h2,
.tray-head h3 {
  margin: 0;
}

.command-top p,
.request-command-card p,
.tray-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.request-command-card,
.tracking-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.request-command-meta,
.request-actions,
.condition-chips,
.candidate-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.request-command-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(244, 241, 234, .9);
  color: rgba(16, 36, 58, .72);
  font-size: 14px;
  font-weight: 900;
}

.request-command-meta strong {
  margin-left: 4px;
  color: var(--ink);
}

.status-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.status-track span {
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, .72);
  color: rgba(16, 36, 58, .52);
  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

.status-track i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(16, 36, 58, .1);
  color: rgba(16, 36, 58, .58);
  font-style: normal;
}

.status-track .is-done,
.status-track .is-active {
  color: var(--ink);
}

.status-track .is-done i {
  background: var(--green-2);
  color: var(--green);
}

.status-track .is-active {
  border-color: rgba(47, 96, 69, .22);
  background: linear-gradient(180deg, rgba(230, 239, 226, .96), rgba(255, 253, 248, .88));
}

.status-track .is-active i {
  background: var(--green);
  color: #fff;
}

.next-action-box {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(47, 96, 69, .16);
  border-radius: 14px;
  background: var(--green-2);
}

.next-action-box span {
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.next-action-box strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.42;
}

.request-actions button,
.request-actions a,
.condition-chips button,
.candidate-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, .92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.request-actions a {
  background: var(--green);
  color: #fff;
}

.secondary-call {
  border-color: rgba(255, 253, 248, .28);
  background: rgba(255, 253, 248, .16);
  color: #fffdf8;
}

.duplicate-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(138, 97, 20, .24);
  border-radius: 12px;
  background: var(--warning-2);
  color: #6c4a09;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.condition-chips {
  margin-bottom: 10px;
}

.condition-chips button.is-active,
.candidate-toolbar button.is-active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.request-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.request-detail-grid div {
  display: grid;
  gap: 3px;
  min-height: 56px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 245, 238, .78);
}

.request-detail-grid span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
}

.request-detail-grid strong {
  font-size: 14px;
  line-height: 1.35;
}

.form-state.is-success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(47, 96, 69, .18);
  border-radius: 14px;
  background: var(--green-2);
  color: var(--green);
}

.form-state.is-success a,
.form-state.is-success button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--green);
  border: 0;
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}

.toolbar {
  gap: 8px;
}

.quick-filters {
  margin-bottom: 10px;
  gap: 6px;
}

.quick-filters button,
.template-card button,
.member-card__foot a,
.member-card__foot button,
.selected-list button,
.row-actions button,
.kanban-card button,
.mini-member button {
  min-height: 38px;
  border-radius: 12px;
  border-color: var(--line);
  background: rgba(255, 253, 248, .92);
  font-size: 14px;
  transition: transform 140ms var(--ease), background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.quick-filters button:active,
.template-card button:active,
.member-card__foot a:active,
.member-card__foot button:active,
.selected-list button:active,
.row-actions button:active,
.kanban-card button:active,
.mini-member button:active {
  transform: translateY(1px) scale(.99);
}

.quick-filters .is-active,
.member-card__foot .is-on {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.member-grid,
.template-grid {
  grid-template-columns: repeat(auto-fit, minmax(246px, 1fr));
  gap: 10px;
}

.member-card,
.template-card {
  min-height: auto;
  padding: 14px;
  gap: 9px;
  box-shadow: var(--shadow-soft);
}

.member-card p,
.template-card p {
  font-size: 14px;
  line-height: 1.48;
}

.member-facts {
  display: none;
}

.tag-row,
.role-stack {
  gap: 5px;
}

.tag-row span,
.role-stack span {
  min-height: 26px;
  background: rgba(244, 241, 234, .88);
  border-color: var(--line);
}

.code-pill,
.trust-pill,
.status-chip {
  min-height: 27px;
  font-size: 14px;
}

.request-item,
.admin-row,
.mini-member {
  border-radius: 14px;
}

.kanban-board {
  grid-template-columns: repeat(6, minmax(196px, 220px));
  gap: 8px;
}

.kanban-column {
  min-height: 240px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}

.kanban-card {
  border-radius: 14px;
  box-shadow: none;
}

.request-code-line,
.card-next-action {
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
}

.card-next-action {
  display: block;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(230, 239, 226, .72);
}

.dispatch-workspace-head,
.intake-tray,
.audit-timeline {
  margin-bottom: 12px;
}

.setup-checklist-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

.setup-checklist-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .36fr);
  gap: 12px;
  align-items: center;
}

.setup-checklist-head h2 {
  margin: 0;
  font-size: 26px;
}

.setup-next-action {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: var(--asphalt);
  color: #fff;
}

.setup-next-action span,
.setup-next-action em {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
}

.setup-next-action strong {
  font-size: 17px;
  line-height: 1.32;
}

.setup-next-action button {
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.setup-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 245, 238, .66);
}

.setup-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(39, 43, 47, .12);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.setup-step strong,
.setup-step small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-step strong {
  font-size: 14px;
  font-weight: 950;
}

.setup-step small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.setup-step.is-done {
  border-color: rgba(47, 96, 69, .22);
  background: var(--green-2);
}

.setup-step.is-done span {
  background: var(--green);
  color: #fff;
}

.setup-step.is-next {
  border-color: rgba(157, 62, 49, .28);
  background: var(--red-2);
}

.setup-step.is-next span {
  background: var(--red);
  color: #fff;
}

.ops-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, .78);
  box-shadow: var(--shadow-soft);
}

.ops-summary-card h3 {
  margin: 0;
}

.ops-summary-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.ops-next-action {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--green-2);
}

.ops-next-action span {
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
}

.ops-next-action strong {
  font-size: 15px;
  line-height: 1.35;
}

.enterprise-empty-state {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.enterprise-empty-state.wide {
  grid-column: 1 / -1;
}

.enterprise-empty-state strong {
  font-size: 20px;
  line-height: 1.25;
}

.enterprise-empty-state p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.enterprise-empty-state button {
  justify-self: start;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--asphalt);
  border-radius: var(--radius);
  background: var(--asphalt);
  color: #fff;
  font-weight: 950;
}

.intake-tray {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 245, 238, .8);
}

.queue-toolbar {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.queue-toolbar button {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.queue-toolbar button.is-active {
  border-color: var(--green);
  background: var(--green-2);
  color: var(--green);
}

.queue-toolbar strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(39, 43, 47, .1);
  color: inherit;
  font-size: 14px;
}

.queue-table {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.queue-row {
  display: grid;
  grid-template-columns: 76px 122px 150px 120px minmax(150px, 1fr) 86px 128px 88px minmax(130px, .8fr);
  gap: 8px;
  align-items: center;
  min-width: 1080px;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.queue-row.is-selected {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(23, 106, 85, .18);
}

.queue-row span,
.queue-row strong,
.queue-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.queue-row b,
.priority-cell {
  font-weight: 950;
}

.priority-cell {
  color: var(--red);
}

.tray-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.tray-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tray-list button {
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.tray-list button.is-selected {
  border-color: rgba(47, 96, 69, .28);
  background: var(--green-2);
}

.tray-list span,
.tray-list small,
.audit-event span,
.audit-event small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.tray-list strong {
  font-size: 14px;
  line-height: 1.32;
}

.admin-next-action {
  margin-top: 8px;
}

.audit-timeline {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 245, 238, .78);
}

.audit-event {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 253, 248, .86);
}

.audit-event strong {
  font-size: 14px;
}

.role-slot-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.role-slot-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(244, 241, 234, .88);
  color: rgba(16, 36, 58, .72);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.role-slot-strip span.is-required {
  border-color: rgba(138, 97, 20, .28);
  background: var(--warning-2);
  color: var(--warning);
}

.role-slot-strip span.is-pending {
  border-color: rgba(56, 95, 116, .2);
  background: var(--blue-2);
  color: var(--blue);
}

.role-slot-strip span.is-filled {
  border-color: rgba(47, 96, 69, .18);
  background: var(--green-2);
  color: var(--green);
}

.admin-page .app-workspace {
  width: min(100% - 24px, 1240px);
}

.admin-page .portal-topbar {
  width: min(100% - 24px, 1240px);
}

.admin-page .kanban-board {
  grid-template-columns: repeat(6, minmax(176px, 1fr));
  overflow-x: visible;
}

.builder-gap-summary,
.admin-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.builder-gap-summary span,
.admin-badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 241, 234, .9);
  color: rgba(16, 36, 58, .72);
  font-size: 14px;
  font-weight: 950;
}

.admin-badge-row .is-ok {
  border-color: rgba(47, 96, 69, .18);
  background: var(--green-2);
  color: var(--green);
}

.admin-badge-row .is-warn {
  border-color: rgba(138, 97, 20, .24);
  background: var(--warning-2);
  color: var(--warning);
}

.admin-badge-row .is-muted {
  color: var(--muted);
}

.row-actions button:disabled,
.mini-member button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.builder-head {
  border-color: var(--line);
  border-radius: 14px;
  background: rgba(248, 245, 238, .9);
}

.slot-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.slot-card {
  min-height: 150px;
  border-radius: 14px;
}

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: min(calc(100% - 24px), 520px);
  padding: 7px;
  border: 1px solid rgba(15, 35, 55, .08);
  border-radius: 22px;
  background: rgba(255, 253, 248, .96);
  box-shadow: 0 8px 24px rgba(16, 36, 58, .12), inset 0 1px 0 rgba(255, 255, 255, .76);
  transform: translate3d(-50%, 0, 0);
}

.bottom-dock button,
.bottom-dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  padding: 0 6px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(16, 36, 58, .72);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform 140ms var(--ease), background 220ms var(--ease), color 180ms ease;
}

.bottom-dock button.is-active {
  background: var(--ink);
  color: #fff;
}

.bottom-dock a {
  background: var(--green);
  color: #fff;
}

.bottom-dock button:active,
.bottom-dock a:active {
  transform: translateY(1px) scale(.985);
}

.portal-page #loginView .portal-intro {
  min-height: 430px;
}

.portal-shell.login-shell {
  display: flex;
  width: min(100%, 520px);
  min-height: auto;
  justify-content: center;
  padding: 18px 14px 32px;
}

.login-gate {
  width: min(100%, 420px);
  padding: 18px;
}

.login-gate .panel-header {
  margin-bottom: 12px;
}

.login-gate h1 {
  font-size: clamp(24px, 3vw, 31px);
}

.login-gate .stack-form {
  gap: 12px;
}

.login-gate input {
  min-height: 56px;
  font-size: 18px;
}

.login-gate .primary-button {
  min-height: 54px;
  font-size: 16px;
}

.login-gate .form-state:empty {
  display: none;
}

.access-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.access-help a {
  color: var(--green);
  font-weight: 950;
}

.portal-page:not(.is-company-session) .portal-topbar {
  width: min(100%, 520px);
  justify-content: center;
  padding: 16px 14px 0;
}

.portal-page:not(.is-company-session) .portal-brand {
  flex: 0 1 420px;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 16px;
}

.portal-page:not(.is-company-session) .portal-brand img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.portal-page:not(.is-company-session) .portal-nav {
  display: none;
}

.workflow-benchmark-strip,
.account-scope-strip,
.empty-ticket-grid {
  display: grid;
  gap: 8px;
}

.workflow-benchmark-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
}

.workflow-benchmark-strip span,
.account-scope-strip article,
.empty-ticket-grid span {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .86);
}

.workflow-benchmark-strip span {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.workflow-benchmark-strip strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

body.portal-page.is-company-session {
  background:
    linear-gradient(180deg, rgba(39, 43, 47, .06), rgba(39, 43, 47, 0) 190px),
    #f4f5f0;
}

.portal-page.is-company-session .portal-topbar {
  min-height: 66px;
  padding-top: 10px;
  padding-bottom: 4px;
  border-bottom-color: rgba(39, 43, 47, .12);
}

.portal-page.is-company-session .portal-brand {
  min-height: 56px;
  padding: 8px 10px;
}

.portal-page.is-company-session .portal-brand img {
  width: 40px;
  height: 40px;
}

#companyView .workspace-head,
#companyView .portal-section,
#companyView .dashboard-strip article,
#companyView .member-card,
#companyView .template-card,
#companyView .selection-panel,
#companyView .request-builder,
#companyView .rail-card,
#companyView .rail-help {
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(25, 30, 34, .06);
}

#companyView .workspace-head {
  padding: 14px 16px;
  border-color: rgba(39, 43, 47, .12);
  background:
    linear-gradient(90deg, rgba(39, 43, 47, .96), rgba(23, 106, 85, .9));
  color: #fffdf8;
}

#companyView .app-main {
  gap: 8px;
}

#companyView .workspace-head .eyebrow,
#companyView .workspace-head h1,
#companyView .workspace-head .workspace-note {
  color: #fffdf8;
}

#companyView .workspace-head .workspace-note {
  opacity: .78;
}

#adminView .dashboard-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

#adminView .dashboard-strip article {
  min-height: 76px;
  padding: 12px 10px;
}

#adminView .dashboard-strip strong {
  font-size: 23px;
}

#adminView .dashboard-strip span {
  font-size: 14px;
  line-height: 1.25;
}

.account-scope-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  background: #fffdf8;
}

.account-scope-strip span,
.account-scope-strip small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.account-scope-strip strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
  word-break: keep-all;
}

.account-scope-strip small {
  grid-column: 2;
}

.empty-ticket-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empty-ticket-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.empty-ticket-grid strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
}

.request-actions--history {
  margin-top: 2px;
}

#teamTemplates .member-card h3 {
  word-break: keep-all;
}

@media (min-width: 1040px) {
  #companyView.app-workspace,
  #adminView.app-workspace {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 14px;
    width: min(100%, 1180px);
  }

  #companyView.app-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 10px;
    width: min(100%, 1120px);
    padding-top: 4px;
  }

  #companyView .app-rail,
  #adminView .app-rail {
    position: sticky;
    top: 84px;
    display: grid !important;
    align-self: start;
    gap: 12px;
  }

  #companyView .bottom-dock,
  #adminView .bottom-dock {
    display: none;
  }
}

@keyframes portalPanelRise {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(.992);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes portalDockRise {
  from {
    opacity: 0;
    transform: translate3d(-50%, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* 초기 진입 stagger — index의 어휘(tm-ease + 60ms 간격 순차 delay). rgpChipIn 리듬과 동일.
     dock-panel은 stagger에서 제외 — 패널 전환마다 재애니되면 산만함(모션 자제 lesson) */
  .portal-topbar {
    animation: portalPanelRise 360ms var(--ease) both;
  }

  .portal-shell,
  .workspace-head {
    animation: portalPanelRise 420ms var(--ease) 60ms both;
  }

  .dashboard-strip {
    animation: portalPanelRise 420ms var(--ease) 120ms both;
  }

  .bottom-dock {
    animation: portalDockRise 420ms var(--ease) 180ms both;
  }
}

@media (max-width: 820px) {
  .portal-page.is-company-session .portal-topbar,
  .admin-page .portal-topbar {
    position: static;
  }

  .portal-topbar {
    align-items: center;
    padding: 12px 12px 6px;
  }

  .portal-brand {
    min-height: 58px;
  }

  .portal-nav a:not(.top-call),
  .admin-page .portal-nav a,
  .portal-nav button[hidden] {
    display: none;
  }

  .portal-shell,
  .app-workspace {
    padding-inline: 12px;
  }

  .app-workspace {
    padding-bottom: 22px;
  }

  .bottom-dock {
    position: static;
    left: auto;
    bottom: auto;
    width: 100%;
    margin: 10px 0 0;
    animation: none !important;
    transform: none;
  }

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

  .workflow-benchmark-strip,
  .account-scope-strip {
    grid-template-columns: 1fr;
  }

  #companyView .account-scope-strip {
    display: none;
  }

  .portal-intro {
    min-height: auto;
    padding: 20px;
  }

  .intro-steps,
  .intro-metrics {
    grid-template-columns: 1fr;
  }

  .intro-steps article {
    min-height: auto;
  }

  .workspace-head {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  #companyView .workspace-head {
    gap: 8px;
    padding: 12px;
  }

  #companyView .workspace-head h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  #companyView .workspace-head .workspace-note {
    font-size: 14px;
    line-height: 1.45;
  }

  #companyView .command-center {
    margin-top: 8px;
  }

  .head-actions {
    display: none;
  }

  .head-actions > * {
    flex: 1 1 0;
  }

  .dashboard-strip {
    display: none;
  }

  .dashboard-strip article {
    min-height: 62px;
    padding: 9px 6px;
    text-align: center;
  }

  .dashboard-strip span {
    font-size: 14px;
    word-break: keep-all;
  }

  .placement-board {
    gap: 13px;
    padding: 14px;
  }

  .placement-board-head {
    display: grid;
    gap: 10px;
  }

  .placement-call--head {
    width: 100%;
  }

  .team-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 5px 10px;
  }

  .team-row strong {
    flex-basis: auto;
  }

  .team-row span {
    grid-column: 2 / -1;
    font-size: 14px;
  }

  .team-row em {
    grid-column: 2;
    justify-self: start;
  }

  .team-row mark,
  .team-row small {
    grid-column: auto;
    justify-self: start;
  }

  .team-row a {
    grid-column: 3;
    grid-row: 1;
    min-width: 58px;
  }

  .role-roster-row {
    display: grid;
    gap: 8px;
  }

  .role-roster-row strong {
    flex-basis: auto;
    padding-top: 0;
  }

  .placement-call {
    display: grid;
    gap: 3px;
    min-height: 68px;
    text-align: center;
  }

  .request-status-empty,
  .request-status-row {
    grid-template-columns: 1fr;
  }

  .request-status-empty a,
  .request-status-row button {
    grid-row: auto;
    width: 100%;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  #requestFormPanel .selection-panel {
    order: -1;
  }

  #requestFormPanel .selection-panel .coordination-preview,
  #requestFormPanel .selection-panel > .section-title-row,
  #requestFormPanel .selection-panel .selected-list,
  #requestFormPanel .selection-panel > .fine-note {
    display: none;
  }

  .portal-section,
  .split-section > div,
  .split-section > aside {
    padding: 14px;
  }

  .coordination-preview {
    margin-bottom: 10px;
    padding: 13px;
  }

  .setup-checklist-panel {
    padding: 12px;
  }

  .setup-checklist-head,
  .setup-steps {
    grid-template-columns: 1fr;
  }

  .setup-step {
    min-height: 58px;
  }

  .queue-toolbar {
    margin-bottom: 10px;
  }

  .coordination-ladder,
  .admin-flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coordination-ladder article {
    min-height: 54px;
    padding: 10px;
  }

  .coordination-ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .coordination-ladder p {
    display: none;
  }

  .admin-flow-strip span {
    min-height: 44px;
    padding: 8px 10px;
  }

  #requestFormPanel .request-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-page .kanban-board {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  #opsBoard .kanban-column {
    min-height: auto;
  }

  #opsBoard .kanban-column:not(:has(.kanban-card)) {
    display: none;
  }

  #teamTemplates .member-card {
    min-height: 104px;
  }

  #teamTemplates .member-card h3 {
    display: none;
  }

  #teamTemplates .tag-row {
    display: none;
  }

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

  #requestFormPanel label {
    gap: 4px;
    font-size: 14px;
  }

  #requestFormPanel input,
  #requestFormPanel select {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  #requestFormPanel textarea {
    min-height: 58px;
    padding: 9px 12px;
    font-size: 14px;
  }

  #requestFormPanel .primary-button {
    min-height: 48px;
  }

  #requestFormPanel .section-title-row {
    margin-bottom: 8px;
  }

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

  .status-track {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 4px;
  }

  .empty-ticket-grid {
    grid-template-columns: 1fr;
  }

  .status-track span {
    min-height: 50px;
    padding: 6px 3px;
    font-size: 14px;
  }

  .status-track i {
    width: 21px;
    height: 21px;
  }

  .request-detail-grid,
  .ops-summary-card,
  .tray-list,
  .audit-event {
    grid-template-columns: 1fr;
  }

  .request-command-meta,
  .request-actions,
  .condition-chips,
  .candidate-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-actions a,
  .request-actions button,
  .condition-chips button,
  .candidate-toolbar button {
    width: 100%;
  }

  .intake-tray {
    padding: 10px;
  }
}

@media (max-width: 430px) {
  .portal-brand img {
    width: 44px;
    height: 44px;
  }

  .portal-brand strong {
    font-size: 17px;
  }

  .portal-nav {
    gap: 0;
  }

  .portal-nav .top-call {
    min-height: 44px;
    padding: 0 12px;
  }

  .portal-shell h1,
  .workspace-head h1 {
    font-size: 24px;
  }

  .access-panel,
  .portal-intro,
  .workspace-head,
  .portal-section,
  .split-section > div,
  .split-section > aside {
    border-radius: 16px;
  }

  .bottom-dock {
    width: calc(100% - 18px);
    padding: 6px;
    border-radius: 20px;
    background: rgba(255, 253, 248, .99);
  }

  .bottom-dock button,
  .bottom-dock a {
    min-height: 48px;
    border-radius: 14px;
    font-size: 14px;
  }

  .coordination-preview__head {
    display: grid;
    gap: 2px;
  }

  .coordination-facts div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .role-stack--preview,
  .role-slot-strip {
    grid-template-columns: 1fr;
  }

  .status-track {
    grid-template-columns: 1fr;
  }

  .status-track span {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 38px;
    text-align: left;
  }

  .request-command-meta,
  .request-actions,
  .condition-chips,
  .candidate-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 374px) {
  .request-form-grid,
  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .bottom-dock button,
  .bottom-dock a {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-topbar,
  .portal-shell,
  .workspace-head,
  .dashboard-strip,
  .dock-panel,
  .bottom-dock {
    animation: none !important;
    transition: none !important;
  }
}
