/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --font-display: "BIZ UDPMincho",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "HGS明朝E",
    serif;
  --font-body: "BIZ UDPGothic",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    sans-serif;
  --bg: #eff1ed;
  --bg-secondary: #e4e6e1;
  --bg-tertiary: #d5d8d2;
  --surface: #fcfbf7;
  --surface-strong: #1b2732;
  --surface-muted: #fff;
  --line: #1b27321f;
  --line-strong: #4f5d5347;
  --text: #1d2833;
  --text-subtle: #61707d;
  --accent: #72684f;
  --accent-strong: #504933;
  --accent-soft: #72684f1f;
  --danger: #b24f44;
  --danger-soft: #b24f441f;
  --warning: #9d6f1b;
  --warning-soft: #c58a2824;
  --success: #2f7a59;
  --success-soft: #2f7a591f;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body), sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}

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

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

button {
  cursor: pointer;
}

.workspace-shell, .public-shell {
  z-index: 1;
  width: min(1220px, 100vw - 36px);
  margin: 0 auto;
  padding: 30px 0 76px;
  position: relative;
}

.workspace-shell {
  gap: 16px;
  display: grid;
}

.public-shell {
  align-content: start;
  gap: 18px;
  display: grid;
}

.workspace-hero, .public-card {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  color: #f6f2ea;
  border: 1px solid #ffffff1a;
  gap: 14px;
  padding: 32px 34px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.workspace-hero > *, .public-card > *, .panel > * {
  z-index: 1;
  position: relative;
}

.workspace-hero {
  grid-template-columns: minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
}

.workspace-hero h1, .public-card h1, .page-header h2 {
  font-family: var(--font-display), serif;
  letter-spacing: -.035em;
  text-wrap: balance;
  margin: 0;
}

.workspace-hero h1 {
  max-width: none;
  font-size: clamp(.9rem, 1.35vw, 1.18rem);
  line-height: 1.12;
}

.page-header h2 {
  font-size: clamp(1.55rem, 2.55vw, 2.2rem);
  line-height: 1.16;
}

.public-card h1 {
  max-width: 15ch;
  font-size: clamp(1.95rem, 3.7vw, 2.85rem);
  line-height: 1.12;
}

.hero-copy, .page-header p, .muted-copy, .table-subcopy, .panel-subcopy, .form-caption {
  text-wrap: pretty;
  margin: 0;
  line-height: 1.75;
}

.hero-copy {
  color: #f6f2ead6;
  max-width: 38ch;
  line-height: 1.7;
}

.page-header p, .muted-copy, .table-subcopy, .panel-subcopy, .form-caption {
  color: var(--text-subtle);
}

.public-card .muted-copy {
  color: #f6f2eacc;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #d7c19a;
  margin: 0 0 6px;
  font-size: .44rem;
  font-weight: 700;
}

.hero-copy-block {
  gap: 8px;
  display: grid;
}

.public-hero-copy-block {
  gap: 6px;
  max-width: 34rem;
}

.hero-aside {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

.hero-chip, .helper-chip {
  color: #f6f2eaeb;
  background: #2b3844;
  border: 1px solid #ffffff29;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: .72rem;
  display: inline-flex;
}

.workspace-nav {
  z-index: 20;
  background: #fcfbf7;
  border: 1px solid #1b27321a;
  border-radius: 999px;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  display: flex;
  position: sticky;
  top: 12px;
}

.workspace-nav-primary, .workspace-nav-more-panel {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.workspace-nav-primary {
  flex: auto;
  min-width: 0;
}

.workspace-nav-more {
  align-items: center;
  display: flex;
}

.workspace-nav > .workspace-nav-more-trigger {
  color: var(--surface-strong);
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  display: none;
}

.workspace-nav-more-trigger:after {
  content: "▾";
  font-size: .78em;
  line-height: 1;
  transition: transform .18s;
}

.workspace-nav-more-trigger[aria-expanded="true"]:after {
  transform: rotate(180deg);
}

.workspace-nav-more-panel {
  flex-wrap: wrap;
  align-items: center;
  display: flex;
}

.nav-link, .button-link, .button-muted {
  border: 1px solid var(--line);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  transition: transform .18s, border-color .18s, background .18s, color .18s;
  display: inline-flex;
}

.nav-link, .button-muted {
  color: var(--text);
  background: #fffffff0;
}

.button-link {
  color: var(--surface-strong);
  background: #d8d0bd;
  border-color: #50493338;
}

.nav-link:hover, .button-link:hover, .button-muted:hover {
  transform: translateY(-1px);
}

.nav-link:disabled, .button-link:disabled, .button-muted:disabled {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
}

.nav-link:hover, .button-muted:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.button-link:hover {
  background: #e1d9c9;
  border-color: #50493357;
}

.workspace-main {
  gap: 18px;
  display: grid;
}

.page-header {
  border-bottom: 1px solid #1b27321f;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 2px 2px 18px;
  display: flex;
}

.page-header-actions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.grid-2, .grid-3, .kpi-grid, .detail-grid, .form-grid {
  gap: 18px;
  display: grid;
}

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

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

.panel {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid #1b273214;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.panel-dark {
  color: #f6f2ea;
  background: #263440;
  border-color: #ffffff1a;
}

.panel-dark .panel-subcopy, .panel-dark .small-copy, .panel-dark .metric-meta, .panel-dark .table-note, .panel-dark .hero-copy {
  color: #f6f2eacc;
}

.panel h3, .panel h4 {
  font-family: var(--font-display), serif;
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.3rem;
}

.panel-header, .stack-header {
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
  display: flex;
}

.dashboard-page {
  gap: 18px;
  display: grid;
}

.dashboard-page-header .page-header {
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
}

.dashboard-page-header .page-header p {
  max-width: 62ch;
  line-height: 1.6;
}

.dashboard-page-header .page-header-actions {
  gap: 8px;
}

.dashboard-page-header .button-link, .dashboard-page-header .button-muted {
  min-height: 40px;
  padding: 10px 16px;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.dashboard-metric-card {
  min-height: 0;
  padding: 18px 18px 16px;
}

.dashboard-metric-card:after {
  display: none;
}

.dashboard-metric-card .metric-label {
  letter-spacing: .1em;
  margin-bottom: 8px;
  font-size: .76rem;
}

.dashboard-metric-card .metric-value {
  font-size: clamp(1.9rem, 3vw, 2.85rem);
}

.dashboard-metric-card .metric-meta {
  margin-top: 10px;
  font-size: .82rem;
  line-height: 1.55;
}

.dashboard-tabs {
  padding: 20px;
}

.dashboard-tabs-top {
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
  display: flex;
}

.dashboard-section-label {
  color: var(--accent-strong);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: .76rem;
}

.dashboard-tab-list {
  background: #ffffffb8;
  border: 1px solid #1b273214;
  border-radius: 999px;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  display: inline-flex;
}

.dashboard-tab-button {
  min-height: 40px;
  color: var(--text-subtle);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  transition: background .18s, color .18s, transform .18s;
}

.dashboard-tab-button:hover {
  transform: translateY(-1px);
}

.dashboard-tab-button.active {
  color: var(--surface-strong);
  background: #d8d0bd;
}

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

.dashboard-snapshot-card {
  background: #ffffffc7;
  border: 1px solid #1b273214;
  border-radius: 16px;
  gap: 6px;
  padding: 12px 14px;
  display: grid;
}

.dashboard-snapshot-label {
  color: var(--text-subtle);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
}

.dashboard-snapshot-value {
  color: var(--surface-strong);
  font-family: var(--font-display), serif;
  letter-spacing: -.03em;
  font-size: 1.28rem;
}

.dashboard-snapshot-value.warning {
  color: var(--warning);
}

.dashboard-snapshot-value.danger {
  color: var(--danger);
}

.dashboard-snapshot-value.success {
  color: var(--success);
}

.dashboard-tab-panel {
  min-height: 460px;
}

.dashboard-priority-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 460px;
  display: grid;
}

.dashboard-analysis-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  gap: 12px;
  min-height: 460px;
  display: grid;
}

.dashboard-side-stack {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  display: grid;
}

.dashboard-subpanel, .dashboard-phase-card {
  background: #fcfbf7e0;
  border: 1px solid #1b273214;
  border-radius: 18px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 16px;
  display: grid;
}

.dashboard-subpanel-emphasis {
  background: #2b3944;
}

.dashboard-subpanel-emphasis .dashboard-subpanel-title, .dashboard-subpanel-emphasis .panel-subcopy, .dashboard-subpanel-emphasis .small-copy, .dashboard-subpanel-emphasis strong {
  color: #f6f2ea;
}

.dashboard-subpanel-emphasis .dashboard-count-badge {
  color: #f6f2eaeb;
  background: #ffffff1f;
  border-color: #ffffff24;
}

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

.dashboard-subpanel-title {
  font-family: var(--font-display), serif;
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.08rem;
}

.dashboard-count-badge {
  min-width: 56px;
  color: var(--surface-strong);
  background: #f3eee6eb;
  border: 1px solid #1b273214;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 7px 10px;
  font-size: .82rem;
  font-weight: 700;
  display: inline-flex;
}

.dashboard-scroll-area {
  min-height: 0;
  padding-right: 4px;
  overflow: auto;
}

.dashboard-list, .dashboard-ranking-list, .dashboard-project-list {
  gap: 10px;
  display: grid;
}

.dashboard-list-card, .dashboard-project-row, .dashboard-rank-row {
  background: #ffffffe6;
  border: 1px solid #1b273214;
  border-radius: 16px;
  gap: 8px;
  padding: 14px;
  transition: transform .18s, border-color .18s, background .18s;
  display: grid;
}

.dashboard-list-card:hover, .dashboard-project-row:hover, .dashboard-rank-row:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.dashboard-row {
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  display: flex;
}

.dashboard-row-main {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.dashboard-row-main strong {
  color: var(--surface-strong);
}

.dashboard-row-main span, .dashboard-list-card p, .dashboard-project-row p, .dashboard-rank-row p {
  word-break: break-word;
}

.dashboard-row-meta, .dashboard-project-meta {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.dashboard-inline-pill {
  color: var(--text);
  background: #f3eee6eb;
  border: 1px solid #1b273214;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: .82rem;
  line-height: 1.3;
  display: inline-flex;
}

.dashboard-inline-pill.warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: #9d6f1b29;
}

.dashboard-inline-pill.neutral {
  color: var(--text-subtle);
  background: #1b27320f;
  border-color: #1b273214;
}

.dashboard-rank-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.dashboard-rank-value {
  color: var(--accent-strong);
  font-family: var(--font-display), serif;
  letter-spacing: -.04em;
  font-size: 1.55rem;
}

.dashboard-project-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.dashboard-phase-card {
  background: #72684f14;
  grid-template-rows: auto auto;
}

.dashboard-phase-copy {
  color: var(--text-subtle);
  margin: 0;
  line-height: 1.55;
}

.dashboard-empty-state {
  padding: 14px;
}

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

.stack-tight {
  gap: 10px;
  display: grid;
}

.kpi-card {
  min-height: 174px;
}

.kpi-card:after {
  display: none;
}

.metric-label {
  color: var(--text-subtle);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-size: .82rem;
  display: block;
}

.metric-value {
  font-family: var(--font-display), serif;
  letter-spacing: -.04em;
  color: var(--accent-strong);
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1;
}

.metric-meta {
  color: var(--text-subtle);
  margin-top: 12px;
  font-size: .92rem;
  line-height: 1.7;
}

.metric-highlight {
  color: var(--accent-strong);
}

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

.token-stat-card {
  background: #fcfbf7b8;
  border: 1px solid #1b273214;
  border-radius: 16px;
  gap: 5px;
  padding: 14px 16px;
  display: grid;
}

.token-stat-card .metric-label, .token-stat-card .metric-meta {
  margin: 0;
}

.token-stat-card .metric-label {
  letter-spacing: .08em;
  font-size: .72rem;
}

.token-stat-card .metric-meta {
  font-size: .82rem;
  line-height: 1.5;
}

.token-stat-value {
  color: var(--accent-strong);
  font-family: var(--font-display), serif;
  font-size: 1.52rem;
  line-height: 1;
}

.request-create-section {
  gap: 14px;
  display: grid;
}

.request-create-header {
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  display: flex;
}

.request-create-header h3 {
  font-family: var(--font-display), serif;
  margin: 0 0 6px;
  font-size: 1.35rem;
}

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

.request-method-radio {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
}

.request-method-tab {
  cursor: pointer;
  background: #ffffffc7;
  border: 1px solid #1b27321a;
  border-radius: 18px;
  gap: 6px;
  min-height: 112px;
  padding: 16px 18px;
  transition: border-color .18s, background .18s, transform .18s;
  display: grid;
}

.request-method-tab:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.request-method-radio:focus-visible + .request-method-tab {
  outline-offset: 2px;
  outline: 4px solid #72684f24;
}

.request-method-radio:checked + .request-method-tab {
  background: #72684f1f;
  border-color: #50493357;
}

.request-method-kicker {
  color: var(--accent-strong);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 700;
  display: inline-flex;
}

.request-method-radio:checked + .request-method-tab .request-method-kicker:after {
  content: "選択中";
  color: var(--accent-strong);
  background: #50493329;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .72rem;
}

.request-method-title {
  color: var(--surface-strong);
  font-size: 1.05rem;
  font-weight: 700;
}

.request-method-copy {
  color: var(--text-subtle);
  font-size: .88rem;
  line-height: 1.55;
}

.request-method-content {
  display: grid;
}

.request-method-panel-quick, .request-method-panel-standing {
  display: none;
}

.request-create-section:has(#request-method-quick:checked) .request-method-panel-existing {
  display: none;
}

.request-create-section:has(#request-method-quick:checked) .request-method-panel-quick {
  display: block;
}

:is(.request-create-section:has(#request-method-standing:checked) .request-method-panel-existing, .request-create-section:has(#request-method-standing:checked) .request-method-panel-quick) {
  display: none;
}

.request-create-section:has(#request-method-standing:checked) .request-method-panel-standing {
  display: block;
}

.status-badge {
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: .85rem;
  display: inline-flex;
}

.status-red, .tone-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #b24f4429;
}

.status-yellow, .tone-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: #9d6f1b29;
}

.status-green, .tone-success {
  background: var(--success-soft);
  color: var(--success);
  border-color: #2f7a5929;
}

.tone-neutral {
  color: var(--text);
  background: #1b27320f;
  border-color: #1b27321a;
}

.alert-list, .card-list, .record-list, .survey-record-list, .timeline, .definition-list {
  gap: 12px;
  display: grid;
}

.request-project-list {
  gap: 14px;
  display: grid;
}

.request-project-record {
  background: #ffffffb8;
  border: 1px solid #1b27321a;
  border-radius: 8px;
  grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  display: grid;
}

.request-project-subject {
  border-right: 1px solid #1b27321a;
  align-content: start;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.request-project-subject strong {
  color: var(--surface-strong);
  font-size: 1rem;
}

.request-project-subject > span:not(.metric-label) {
  color: var(--text-subtle);
  line-height: 1.45;
}

.request-project-counts {
  color: var(--text-subtle);
  gap: 4px;
  font-size: .84rem;
  display: grid;
}

.request-project-body {
  min-width: 0;
}

.alert-item, .list-card, .timeline-item {
  border-radius: var(--radius-sm);
  background: #ffffffe6;
  border: 1px solid #1b273214;
  padding: 16px 18px;
  transition: transform .18s, border-color .18s, background .18s;
}

.user-management-card {
  gap: 16px;
  display: grid;
}

.alert-item:hover, .list-card:hover, .timeline-item:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.survey-record {
  border-radius: var(--radius-sm);
  background: #ffffffeb;
  border: 1px solid #1b273214;
  transition: border-color .18s, background .18s;
}

.survey-record[open] {
  background: #fff;
  border-color: #5049333d;
}

.management-record {
  background: #ffffffeb;
  border: 1px solid #1b273214;
  border-radius: 8px;
  transition: border-color .18s, background .18s, transform .18s;
  overflow: hidden;
}

.management-record:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.management-record[open] {
  background: #fff;
  border-color: #5049333d;
}

.management-record-summary {
  cursor: pointer;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 12px 18px;
  min-height: 70px;
  padding: 14px 16px;
  list-style: none;
  display: grid;
}

.management-record-summary::-webkit-details-marker {
  display: none;
}

.management-record-summary:after {
  content: "詳細";
  min-width: 54px;
  color: var(--text-subtle);
  text-align: center;
  border: 1px solid #1b27321f;
  border-radius: 999px;
  justify-self: end;
  padding: 6px 10px;
  font-size: .82rem;
  line-height: 1;
}

.management-record[open] .management-record-summary:after {
  content: "閉じる";
}

.management-record-main {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.management-record-main strong, .management-record-main span, .management-record-meta > span:not(.status-badge) {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.management-record-main strong {
  color: var(--surface-strong);
  line-height: 1.35;
}

.management-record-main span {
  color: var(--text-subtle);
  font-size: .9rem;
}

.management-record-meta {
  min-width: 0;
  color: var(--text-subtle);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  display: flex;
}

.management-record-meta > span:not(.status-badge) {
  max-width: 18ch;
}

.management-record-detail {
  gap: 16px;
  padding: 0 16px 16px;
  display: grid;
}

.survey-record-summary {
  cursor: pointer;
  grid-template-columns: minmax(260px, 1.1fr) minmax(360px, 1.8fr);
  align-items: center;
  gap: 12px 18px;
  min-height: 76px;
  padding: 16px 18px;
  list-style: none;
  display: grid;
}

.survey-record-summary::-webkit-details-marker {
  display: none;
}

.survey-record-summary:after {
  content: "詳細";
  color: var(--text-subtle);
  border: 1px solid #1b27321f;
  border-radius: 999px;
  place-self: center end;
  padding: 6px 10px;
  font-size: .82rem;
  line-height: 1;
}

.survey-record[open] .survey-record-summary:after {
  content: "閉じる";
}

.survey-record-main {
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.survey-record-title {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.survey-record-title strong, .survey-record-title span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.survey-record-title span {
  color: var(--text-subtle);
  font-size: .9rem;
}

.survey-record-meta {
  color: var(--text-subtle);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  font-size: .86rem;
  line-height: 1.45;
  display: grid;
}

.survey-record-meta span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.survey-record-detail {
  gap: 16px;
  padding: 0 18px 18px;
  display: grid;
}

.survey-record-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.survey-record-detail-block {
  border-radius: var(--radius-sm);
  background: #fcfbf79e;
  border: 1px solid #1b273214;
  gap: 10px;
  padding: 14px 16px;
  display: grid;
}

.survey-record-detail-block h4 {
  color: var(--surface-strong);
  margin: 0;
  font-size: 1rem;
}

.survey-record-definition {
  gap: 9px;
  margin: 0;
  display: grid;
}

.survey-record-definition div {
  grid-template-columns: minmax(96px, .4fr) minmax(0, 1fr);
  gap: 12px;
  display: grid;
}

.survey-record-definition dt {
  color: var(--text-subtle);
  font-size: .84rem;
}

.survey-record-definition dd {
  overflow-wrap: anywhere;
  min-width: 0;
  color: var(--text);
  margin: 0;
  font-size: .92rem;
}

.alert-item {
  gap: 10px;
  display: grid;
}

.panel-dark .alert-item, .panel-dark .alert-item:hover {
  color: var(--text);
  background: #fcfbf7f5;
  border-color: #1b273214;
}

.panel-dark .alert-item strong {
  color: var(--surface-strong);
}

.panel-dark .alert-item .small-copy, .panel-dark .alert-item .inline-row > span:not(.status-badge) {
  color: var(--text-subtle);
}

.alert-meta, .inline-meta, .table-note, .small-copy {
  color: var(--text-subtle);
  font-size: .92rem;
  line-height: 1.72;
}

.inline-row, .label-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  display: flex;
}

.label-row strong {
  font-weight: 700;
}

.table-wrap {
  background: #ffffffb8;
  border: 1px solid #1b273214;
  border-radius: 18px;
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
}

.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #1b273214;
  padding: 14px;
}

.data-table th {
  color: var(--text-subtle);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 600;
}

.data-table tbody tr:nth-child(2n) {
  background: #f4eee59e;
}

.data-table tbody tr:hover {
  background: #efe5d6b8;
}

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

.project-link {
  color: var(--surface-strong);
  align-items: center;
  gap: 6px;
  font-weight: 700;
  display: inline-flex;
}

.project-link:hover {
  color: var(--accent-strong);
}

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

.form-field {
  gap: 8px;
  display: grid;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label, .group-label {
  color: #22303b;
  font-size: .94rem;
  font-weight: 700;
}

.field-optional {
  color: var(--text-subtle);
  margin-left: 6px;
  font-size: .82rem;
  font-weight: 700;
}

.text-input, .text-area, .select-input {
  width: 100%;
  color: var(--text);
  background: #fffffff0;
  border: 1px solid #1b27321f;
  border-radius: 14px;
  padding: 13px 14px;
  transition: border-color .18s, background .18s;
}

.text-input::placeholder, .text-area::placeholder {
  color: #61707db8;
}

.text-input:focus, .text-area:focus, .select-input:focus {
  background: #fff;
  border-color: #50493370;
  outline: 4px solid #72684f1a;
}

.mono-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: .9rem;
}

.text-area {
  resize: vertical;
  min-height: 126px;
}

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

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

.choice-option {
  position: relative;
}

.choice-option input {
  opacity: 0;
  position: absolute;
  inset: 0;
}

.choice-option > span {
  text-align: center;
  background: #ffffffe0;
  border: 1px solid #1b27321a;
  border-radius: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 82px;
  padding: 12px 10px;
  transition: border-color .18s, transform .18s, background .18s;
  display: flex;
}

.choice-option input:checked + span {
  background: #72684f24;
  border-color: #50493357;
  transform: translateY(-1px);
}

.choice-caption {
  color: var(--text-subtle);
  font-size: .82rem;
}

.choice-option-verbose > span {
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 114px;
}

.choice-option-verbose strong {
  font-size: 1.18rem;
  line-height: 1;
}

.choice-option-verbose .choice-caption {
  line-height: 1.55;
}

.actions-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}

.pending-submit {
  justify-items: start;
  gap: 8px;
  max-width: 100%;
  display: inline-grid;
}

.submit-status {
  max-width: min(36rem, 100%);
  color: var(--accent-strong);
  background: #ffffffd1;
  border: 1px solid #5049332e;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: .88rem;
  line-height: 1.45;
  display: inline-flex;
}

.submit-status-spinner {
  border: 2px solid #72684f38;
  border-top-color: var(--accent-strong);
  border-radius: 999px;
  flex: none;
  width: .78rem;
  height: .78rem;
  animation: .76s linear infinite submit-spin;
}

.loading-panel {
  align-items: center;
  gap: 14px;
  display: flex;
}

.loading-panel .submit-status-spinner {
  width: 1.15rem;
  height: 1.15rem;
}

.banner {
  border: 1px solid #1b273214;
  border-radius: 16px;
  padding: 14px 16px;
}

.banner-success {
  background: #2f7a591f;
  border-color: #2f7a5929;
}

.banner-error {
  background: #b24f441f;
  border-color: #b24f4429;
}

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

.definition-item {
  background: #ffffffe0;
  border: 1px solid #1b273214;
  border-radius: 16px;
  padding: 14px 16px;
}

.definition-item dt {
  color: var(--text-subtle);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: .82rem;
}

.definition-item dd {
  color: var(--surface-strong);
  margin: 0;
  font-weight: 700;
}

.timeline-item {
  gap: 6px;
  display: grid;
}

.pill-list {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.pill {
  color: var(--text);
  background: #ffffffd6;
  border: 1px solid #1b273214;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: .88rem;
}

.empty-state {
  color: var(--text-subtle);
  background: #ffffff8f;
  border: 1px dashed #1b273224;
  border-radius: 18px;
  padding: 18px;
}

.public-card {
  width: min(820px, 100%);
}

.survey-shell {
  gap: 14px;
  width: min(760px, 100vw - 32px);
}

.survey-header {
  width: 100%;
  color: var(--text);
  background: #fff;
  border-color: #0f172a14;
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 18px 50px #0f172a14;
}

.survey-header h1 {
  max-width: none;
  font-family: var(--font-body), sans-serif;
  letter-spacing: 0;
  font-size: 1.72rem;
  line-height: 1.28;
}

.survey-header .eyebrow {
  color: #2563eb;
  letter-spacing: .06em;
  font-size: .68rem;
  line-height: 1.35;
}

.survey-header .hero-copy {
  color: var(--text-subtle);
}

.survey-header .hero-chip {
  color: var(--text);
  background: #eff6ff;
  border-color: #2563eb24;
}

.survey-layout {
  gap: 16px;
  display: grid;
}

.survey-panel, .survey-reference-panel {
  width: 100%;
}

.survey-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 50px #0f172a14;
}

.survey-panel .panel-header {
  margin-bottom: 16px;
}

.survey-panel h3, .survey-panel h4 {
  font-family: var(--font-body), sans-serif;
  letter-spacing: 0;
  font-size: 1.34rem;
  line-height: 1.35;
}

.survey-form {
  grid-template-columns: 1fr;
  gap: 20px;
}

.survey-form .form-field {
  border-bottom: none;
  padding-bottom: 0;
}

.survey-progress {
  background: #f8fafc;
  border: 1px solid #0f172a14;
  border-radius: 8px;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 14px;
  display: grid;
}

.survey-progress-copy {
  color: #475569;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
  line-height: 1.5;
  display: flex;
}

.survey-progress-copy strong {
  color: #1e293b;
}

.survey-progress-track {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.survey-progress-track span {
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #059669);
  block-size: 100%;
  inline-size: 20%;
  transition: inline-size .18s;
  display: block;
}

.survey-step-error {
  color: #8f332b;
  background: #b24f441a;
  border: 1px solid #b24f443d;
  border-radius: 8px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1.55;
}

.survey-step-error[hidden] {
  display: none;
}

.survey-step {
  grid-column: 1 / -1;
  gap: 18px;
  display: grid;
}

.survey-step[hidden] {
  display: none;
}

.survey-step-card {
  gap: 18px;
  min-width: 0;
  display: grid;
}

.survey-step-kicker {
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  width: fit-content;
  padding: 4px 9px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
}

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

.survey-step-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
  display: flex;
}

.survey-step-actions .button-link, .survey-step-actions .button-muted {
  min-width: 132px;
  min-height: 48px;
}

.survey-step-actions .pending-submit {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.survey-step-actions .submit-status {
  overflow-wrap: anywhere;
  min-width: 0;
}

.survey-step-actions .button-link {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb42;
}

.survey-step-actions .button-link:hover {
  background: #1d4ed8;
  border-color: #2563eb66;
}

.survey-step-actions .button-muted {
  background: #f8fafc;
  border-color: #0f172a1a;
}

.survey-form .text-input, .survey-form .text-area, .survey-form .select-input {
  background: #fff;
  border-radius: 8px;
  min-height: 48px;
}

.survey-form .text-input:focus, .survey-form .text-area:focus, .survey-form .select-input:focus {
  border-color: #2563eb80;
  outline-color: #2563eb24;
}

.survey-form .text-area {
  min-height: 144px;
}

.survey-form .choice-grid.compact {
  grid-template-columns: 1fr;
}

.survey-form .choice-option > span {
  text-align: left;
  border-radius: 8px;
  align-items: flex-start;
  min-height: 0;
  padding: 16px;
}

.survey-form .choice-option input:focus-visible + span {
  border-color: #2563eb75;
  outline: 4px solid #2563eb24;
}

.survey-form .choice-option input:checked + span {
  background: #eff6ff;
  border-color: #2563eb6b;
}

.survey-form .choice-grid:not(.compact):not(.score-choice-grid) .choice-option > span {
  text-align: center;
  align-items: center;
  min-height: 76px;
}

.survey-form .survey-member-grid {
  gap: 8px;
}

.survey-edit-fields {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: 18px;
  display: grid;
}

.survey-edit-fields[hidden] {
  display: none;
}

.survey-response-fields {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: 18px;
  display: grid;
}

.survey-response-fields[hidden], .survey-response-placeholder[hidden] {
  display: none;
}

.survey-response-placeholder .empty-state {
  margin: 0;
}

.survey-confirmation {
  grid-column: 1 / -1;
  gap: 18px;
  display: grid;
}

.survey-confirmation[hidden] {
  display: none;
}

.compact-panel-header {
  margin-bottom: 0;
}

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

.survey-confirm-list > div {
  background: #fff;
  border: 1px solid #1b273214;
  border-radius: 8px;
  min-width: 0;
  padding: 14px 16px;
}

.survey-confirm-list > div.survey-confirm-item-answer {
  background: #f8fafc;
  border-color: #2563eb14;
}

.survey-confirm-list dt {
  color: var(--text-subtle);
  margin: 0 0 7px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}

.survey-confirm-list dd {
  color: var(--surface-strong);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}

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

.survey-readonly-field {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.survey-readonly-field dt {
  color: var(--text-subtle);
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}

.survey-readonly-field dd {
  color: var(--surface-strong);
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}

.survey-form .survey-member-option > span {
  text-align: left;
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 14px 16px;
}

.survey-member-check {
  background: #ffffffdb;
  border: 2px solid #2563eb42;
  border-radius: 999px;
  flex: 0 0 20px;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  display: inline-flex;
  position: relative;
}

.survey-member-option input:checked + span .survey-member-check {
  background: #2563eb;
  border-color: #2563eb;
}

.survey-member-option input:checked + span .survey-member-check:after {
  content: "";
  background: #fff;
  border-radius: 999px;
  width: 8px;
  height: 8px;
}

.survey-member-text {
  flex-wrap: wrap;
  flex: 180px;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  display: inline-flex;
}

.survey-member-role {
  color: var(--text-subtle);
  font-size: .9rem;
  line-height: 1.35;
}

.survey-member-role:after {
  content: "：";
  margin-left: 2px;
}

.survey-member-option strong {
  color: var(--surface-strong);
  font-size: 1rem;
  line-height: 1.35;
}

.survey-member-hint {
  color: var(--text-subtle);
  flex-basis: 100%;
  font-size: .84rem;
  line-height: 1.4;
}

.survey-member-status {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
  display: inline-flex;
}

.survey-member-status .status-badge {
  padding: 5px 9px;
  font-size: .76rem;
  line-height: 1.2;
}

.survey-member-last-response {
  color: var(--text-subtle);
  white-space: nowrap;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
}

.survey-edit-confirmation, .survey-edit-status {
  background: #eff6ff;
  border: 1px solid #2563eb2e;
  border-radius: 8px;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 14px 16px;
  display: grid;
}

.survey-edit-confirmation[hidden], .survey-edit-status[hidden] {
  display: none;
}

.survey-edit-confirmation strong, .survey-edit-status strong {
  color: var(--surface-strong);
  line-height: 1.35;
}

.survey-edit-confirmation p, .survey-edit-status span {
  color: var(--text-subtle);
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
}

.survey-form .survey-scale-grid, .survey-form .score-choice-grid.survey-scale-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.survey-form .survey-scale-grid .choice-option {
  min-width: 0;
  display: flex;
}

.survey-form .survey-scale-grid .choice-option > span, .survey-form .score-choice-grid.survey-scale-grid .choice-option-verbose > span {
  text-align: center;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 116px;
  padding: 12px 10px;
}

.survey-form .survey-scale-grid .choice-option strong {
  font-size: 1.35rem;
  line-height: 1;
}

.survey-form .survey-scale-grid .choice-caption {
  overflow-wrap: anywhere;
  white-space: pre-line;
  line-height: 1.45;
}

.survey-reference-panel .panel-header {
  margin-bottom: 14px;
}

.spotlight-box {
  background: #72684f14;
  border: 1px solid #50493324;
  border-radius: 20px;
  padding: 20px;
}

.form-guidance-box {
  gap: 8px;
  display: grid;
}

.survey-error-banner {
  border-radius: 8px;
  gap: 4px;
  display: grid;
}

.survey-completion-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  display: grid;
}

.survey-completion-mark {
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  font-size: .92rem;
  font-weight: 700;
  display: inline-flex;
}

.survey-completion-note {
  background: #f8fafc;
  border-radius: 8px;
}

.history-list {
  gap: 10px;
  display: grid;
}

.history-more-disclosure, .history-disclosure {
  background: #ffffffc7;
  border: 1px solid #1b273214;
  border-radius: 16px;
  overflow: hidden;
}

.history-more-disclosure {
  background: #fffcf7b8;
}

.history-more-disclosure[open], .history-disclosure[open] {
  border-color: #5049333d;
}

.history-more-summary, .history-summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  list-style: none;
  display: flex;
}

.history-more-summary::-webkit-details-marker {
  display: none;
}

.history-summary::-webkit-details-marker {
  display: none;
}

.history-more-summary {
  color: var(--accent-strong);
  justify-content: center;
  font-weight: 700;
}

.history-summary-text {
  color: var(--surface-strong);
  font-weight: 700;
  line-height: 1.55;
}

.history-summary-meta {
  color: var(--accent-strong);
  white-space: nowrap;
  font-size: .86rem;
}

.history-detail {
  border-top: 1px solid #1b273214;
  gap: 10px;
  padding: 0 16px 16px;
  display: grid;
}

.history-detail-block {
  gap: 4px;
  display: grid;
}

.history-detail-block strong {
  color: var(--surface-strong);
  font-size: .92rem;
}

.history-more-content {
  padding: 0 14px 14px;
}

.subtle-separator {
  background: #1b273214;
  height: 1px;
  margin: 4px 0;
}

.exit-eval-guidance, .exit-eval-form-disclosure {
  background: #ffffffb8;
  border: 1px solid #1b273214;
  border-radius: 18px;
  overflow: hidden;
}

.exit-eval-guidance > summary, .exit-eval-form-disclosure > summary {
  color: var(--surface-strong);
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
}

.exit-eval-guidance-body {
  gap: 14px;
  padding: 0 18px 18px;
  display: grid;
}

.exit-eval-rule-grid, .exit-eval-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.exit-eval-rule-card, .exit-eval-summary-card {
  background: #ffffffd1;
  border: 1px solid #1b273214;
  border-radius: 16px;
  gap: 6px;
  padding: 14px;
  display: grid;
}

.exit-eval-rule-card span, .exit-eval-summary-card span, .exit-eval-summary-card div {
  overflow-wrap: anywhere;
}

.exit-eval-cap-rule-section {
  gap: 10px;
  display: grid;
}

.exit-eval-cap-rule-section h4 {
  color: var(--surface-strong);
  font-family: var(--font-body), sans-serif;
  letter-spacing: 0;
  margin: 0 0 4px;
  font-size: 1rem;
}

.exit-eval-cap-rule-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.exit-eval-cap-rule-card {
  background: #ffffffe0;
  border: 1px solid #1b273214;
  border-radius: 16px;
  align-content: start;
  gap: 6px;
  min-height: 128px;
  padding: 14px;
  display: grid;
}

.exit-eval-cap-rule-label {
  color: var(--text-subtle);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 700;
}

.exit-eval-cap-rule-condition {
  color: var(--surface-strong);
  line-height: 1.5;
}

.exit-eval-cap-rule-limit {
  width: fit-content;
  min-height: 32px;
  padding: 6px 10px;
}

.exit-eval-form {
  gap: 12px;
  padding: 0 14px 14px;
  display: grid;
}

.exit-eval-criterion {
  background: #fcfbf7e0;
  border: 1px solid #1b273214;
  border-radius: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 14px;
  display: grid;
}

.exit-eval-criterion legend {
  color: var(--surface-strong);
  padding: 0 8px;
  font-weight: 700;
}

.exit-eval-criterion .history-disclosure, .exit-eval-criterion .form-field.full, .exit-eval-detail-disclosure {
  grid-column: 1 / -1;
}

.exit-eval-detail-disclosure {
  background: #ffffffbd;
  border: 1px solid #1b273214;
  border-radius: 16px;
  overflow: hidden;
}

.exit-eval-detail-disclosure[open] {
  background: #ffffffe6;
  border-color: #5049332e;
}

.exit-eval-detail-summary {
  min-height: 46px;
  color: var(--surface-strong);
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 700;
  display: flex;
}

.exit-eval-detail-summary:hover {
  background: #72684f1a;
}

.exit-eval-detail-meta {
  color: var(--text-subtle);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
}

.exit-eval-detail-body {
  gap: 10px;
  padding: 0 14px 14px;
  display: grid;
}

.exit-eval-score-guide {
  background: #ffffffe6;
}

.exit-eval-score-guide[open] {
  background: #72684f14;
  border-color: #5049333d;
}

.exit-eval-score-guide-summary {
  border-radius: 16px;
  min-height: 44px;
  transition: background .18s, color .18s;
}

.exit-eval-score-guide-summary:hover {
  background: #72684f1f;
}

.exit-eval-score-guide-summary .history-summary-text {
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

.exit-eval-score-guide-summary .history-summary-text:before {
  content: "";
  background: var(--accent-strong);
  border-radius: 999px;
  width: 8px;
  height: 8px;
}

.exit-eval-score-guide-actions {
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

.exit-eval-score-guide .history-detail {
  gap: 6px;
  padding: 10px 14px 12px;
}

.exit-eval-score-guide-row {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  display: flex;
}

.exit-eval-score-guide-row strong, .exit-eval-score-guide-row span {
  line-height: 1.35;
}

.exit-eval-score-guide-line strong {
  color: var(--surface-strong);
}

.exit-eval-disclosure-icon {
  width: 30px;
  height: 30px;
  color: var(--accent-strong);
  background: #ffffffeb;
  border: 1px solid #50493333;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  display: inline-flex;
}

.exit-eval-disclosure-icon:before {
  content: "+";
}

.exit-eval-score-guide[open] .exit-eval-disclosure-icon {
  background: var(--accent-strong);
  color: #fff;
}

.exit-eval-score-guide[open] .exit-eval-disclosure-icon:before {
  content: "-";
}

.exit-eval-score-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.exit-eval-score-grid .choice-option > span {
  min-height: 76px;
  padding: 10px 8px;
}

.exit-eval-checkbox-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  display: grid;
}

.exit-eval-checkbox {
  background: #ffffffd6;
  border: 1px solid #1b273214;
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
}

.exit-eval-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-strong);
  margin-top: 2px;
}

.exit-eval-checkbox span {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.exit-eval-checkbox small {
  color: var(--text-subtle);
  line-height: 1.4;
}

.exit-eval-auto-confidence {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.exit-eval-confidence-label {
  color: var(--text-subtle);
  font-size: .86rem;
  font-weight: 700;
}

.exit-eval-confidence-high, .exit-eval-confidence-medium, .exit-eval-confidence-low {
  min-height: 32px;
  padding: 6px 10px;
  display: none;
}

.exit-eval-criterion .exit-eval-confidence-low {
  display: inline-flex;
}

:is(.exit-eval-criterion:has(.exit-eval-evidence-medium:checked) .exit-eval-confidence-low, .exit-eval-criterion:has(.exit-eval-evidence-high:checked) .exit-eval-confidence-low, .exit-eval-criterion:has(.exit-eval-evidence-high:checked) .exit-eval-confidence-medium) {
  display: none;
}

:is(.exit-eval-criterion:has(.exit-eval-evidence-medium:checked):not(:has(.exit-eval-evidence-high:checked)) .exit-eval-confidence-medium, .exit-eval-criterion:has(.exit-eval-evidence-high:checked) .exit-eval-confidence-high) {
  display: inline-flex;
}

.exit-eval-validation-list {
  gap: 4px;
  display: grid;
}

.exit-eval-validation-list p {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #b24f4429;
  border-radius: 12px;
  margin: 0;
  padding: 8px 10px;
  font-size: .86rem;
  line-height: 1.45;
}

.exit-eval-validation-list p[hidden] {
  display: none;
}

.exit-eval-form .form-field {
  gap: 6px;
}

.exit-eval-form .text-area {
  min-height: 82px;
}

.exit-eval-form .text-input, .exit-eval-form .text-area, .exit-eval-form .select-input {
  padding: 11px 12px;
}

.exit-eval-form .spotlight-box {
  border-radius: 16px;
  padding: 14px 16px;
}

@media (max-width: 980px) {
  .workspace-shell, .public-shell {
    width: min(100vw - 22px, 100%);
    padding-top: 22px;
  }

  .workspace-hero, .grid-2, .grid-3, .kpi-grid, .detail-grid, .form-grid, .definition-list, .dashboard-kpi-grid, .dashboard-snapshot-strip, .dashboard-priority-grid, .dashboard-analysis-grid, .request-token-summary, .request-project-record, .request-method-switcher, .survey-record-summary, .survey-record-detail-grid, .exit-eval-rule-grid, .exit-eval-summary-grid, .exit-eval-cap-rule-grid, .exit-eval-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-side-stack {
    grid-template-rows: auto;
  }

  .dashboard-tab-panel, .dashboard-priority-grid, .dashboard-analysis-grid {
    min-height: 0;
  }

  .page-header {
    flex-direction: column;
    align-items: start;
  }

  .hero-aside {
    justify-content: flex-start;
  }

  .request-create-header {
    flex-direction: column;
    align-items: start;
  }

  .request-project-subject {
    border-bottom: 1px solid #1b27321a;
    border-right: 0;
  }

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

@media (max-width: 640px) {
  .workspace-shell, .public-shell {
    width: calc(100vw - 16px);
    padding-bottom: 42px;
  }

  .survey-shell {
    width: calc(100vw - 16px);
  }

  .workspace-hero, .public-card, .panel {
    border-radius: 22px;
    padding: 22px;
  }

  .public-card.survey-header, .panel.survey-panel {
    border-radius: 8px;
  }

  .survey-header h1 {
    font-size: 1.55rem;
  }

  .survey-step-grid, .survey-progress-copy, .survey-completion-card {
    grid-template-columns: 1fr;
  }

  .survey-progress-copy {
    gap: 3px;
    display: grid;
  }

  .survey-step-actions {
    z-index: 2;
    background: linear-gradient(#fff0, #fff 28%);
    grid-template-columns: 1fr;
    padding: 12px 0 0;
    display: grid;
    position: sticky;
    bottom: 0;
  }

  .request-method-tab {
    min-height: 0;
  }

  .survey-record-summary {
    padding: 14px;
  }

  .survey-record-summary:after, .management-record-summary:after {
    justify-self: start;
  }

  .management-record-summary {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .management-record-meta > span:not(.status-badge) {
    max-width: 100%;
  }

  .management-record-detail {
    padding: 0 14px 14px;
  }

  .survey-record-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .survey-record-meta, .survey-record-definition div {
    grid-template-columns: 1fr;
  }

  .survey-record-detail {
    padding: 0 14px 14px;
  }

  .workspace-nav {
    border-radius: 20px;
    gap: 8px;
    padding: 10px;
    display: grid;
    top: 10px;
  }

  .workspace-nav-primary {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    display: grid;
  }

  .workspace-nav-primary .nav-link {
    text-align: center;
    white-space: nowrap;
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    font-size: .76rem;
    line-height: 1.2;
  }

  .workspace-nav-more {
    grid-column: 1 / -1;
    gap: 8px;
    display: grid;
  }

  .workspace-nav > .workspace-nav-more-trigger {
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    display: inline-flex;
  }

  .workspace-nav-more-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 2px;
    display: none;
  }

  .workspace-nav-more-panel.open {
    display: grid;
  }

  .workspace-nav-more-panel .nav-link, .workspace-nav-more-panel .button-muted {
    width: 100%;
  }

  .dashboard-page-header .page-header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    display: grid;
  }

  .dashboard-page-header .page-header-actions > :last-child {
    grid-column: 1 / -1;
  }

  .dashboard-page-header .button-link, .dashboard-page-header .button-muted {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
  }

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

  .dashboard-metric-card {
    padding: 14px 14px 12px;
  }

  .dashboard-metric-card .metric-label {
    letter-spacing: .08em;
    margin-bottom: 6px;
    font-size: .68rem;
  }

  .dashboard-metric-card .metric-value {
    font-size: clamp(1.4rem, 5.8vw, 1.9rem);
  }

  .dashboard-metric-card .metric-meta {
    margin-top: 8px;
    font-size: .74rem;
    line-height: 1.45;
  }

  .dashboard-tabs {
    padding: 16px;
  }

  .dashboard-tabs-top {
    flex-direction: column;
  }

  .dashboard-tab-list {
    width: 100%;
  }

  .dashboard-tab-button {
    flex: 1 1 0;
  }

  .dashboard-project-row, .dashboard-rank-row {
    grid-template-columns: 1fr;
  }

  .nav-link, .button-link, .button-muted, .pending-submit {
    width: 100%;
  }

  .survey-step-actions .pending-submit {
    justify-items: stretch;
    display: grid;
  }

  .survey-step-actions .submit-status {
    border-radius: 8px;
    justify-content: center;
    width: 100%;
  }

  .choice-grid, .choice-grid.compact, .exit-eval-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .score-choice-grid, .survey-confirm-list {
    grid-template-columns: 1fr;
  }

  .survey-form .survey-scale-grid, .survey-form .score-choice-grid.survey-scale-grid {
    flex-direction: column-reverse;
    padding-bottom: 0;
    display: flex;
    overflow-x: visible;
  }

  .survey-form .survey-scale-grid .choice-option > span, .survey-form .score-choice-grid.survey-scale-grid .choice-option-verbose > span {
    text-align: center;
    align-items: center;
    min-height: 58px;
  }

  .survey-readonly-list {
    grid-template-columns: 1fr;
  }

  .survey-member-status {
    flex-basis: calc(100% - 30px);
    align-items: flex-start;
    margin-left: 30px;
  }

  .survey-member-last-response {
    white-space: normal;
  }

  .survey-member-action {
    margin-left: auto;
  }

  .history-summary {
    flex-direction: column;
    align-items: start;
  }

  .data-table {
    min-width: 620px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .panel, .workspace-hero, .public-card {
    animation: .42s fade-up;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

/*# sourceMappingURL=src_app_globals_0p2ml0n.css.map*/