:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9e0ea;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --brand: #0b6b64;
  --brand-strong: #07554f;
  --accent: #315c96;
  --warn: #a25712;
  --danger: #a12b2b;
  --ok: #257246;
}


* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f4f6f8;
  color: var(--ink);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 18px 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: 23px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
.topbar p, .toolbar p, .section-title p, .login-copy p, .import-panel p { margin-top: 6px; color: var(--muted); font-size: 14px; }

.user-panel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.active-role-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e6f5fc; }
.active-role-switch select { width: auto; min-height: 38px; background: white; color: #12344a; padding: 6px 10px; border-radius: 6px; }
.role-choices { min-width: 175px; margin: 0; padding: 8px 10px; border: 1px solid #d5e0e7; border-radius: 6px; }
.role-choices legend { font-size: 12px; color: #445b6a; padding: 0 4px; }
.role-choices label { display: flex; align-items: center; gap: 7px; margin: 5px 0; white-space: nowrap; font-size: 13px; }
.role-choices input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; }
.shell { max-width: 1280px; margin: 0 auto; padding: 22px; }
.hidden { display: none !important; }
.room-import-panel { margin: 16px 0; }
.room-import-panel > p { margin: 12px 0; line-height: 1.6; }
.room-import-panel .import-panel { display: grid; gap: 10px; padding: 8px 0; min-width: 0; }
.room-import-panel input[type="file"] { width: 100%; min-width: 0; box-sizing: border-box; }
.room-import-panel textarea { width: 100%; box-sizing: border-box; min-height: 130px; max-height: 300px; font-family: inherit; }
.room-import-errors { color: #9d2437; overflow-wrap: anywhere; padding-left: 22px; }

.login-band, .workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-band {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(420px, 1.6fr);
  gap: 20px;
  padding: 24px;
}

.login-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px 0;
}

.login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-box, .form-section, .import-panel, .compact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.login-box { display: grid; gap: 12px; }

.tabs {
  display: flex;
  gap: 6px;
  padding: 12px 14px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  white-space: nowrap;
}

.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; padding: 20px; }
.tab-panel.active { display: block; }

button, .primary-link {
  min-height: 38px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .primary-link:hover { background: var(--brand-strong); }
button.ghost { background: #fff; color: var(--brand); }
button.ghost:hover { background: #edf7f6; }
button.small { min-height: 30px; padding: 4px 10px; font-size: 13px; }
.reject { background: #fff; color: var(--danger); border-color: var(--danger); }
.reject:hover { background: #fbe8e8; }

.notice {
  border: 1px solid #efd2ad;
  background: #fff8ee;
  border-radius: 8px;
  color: #7a4518;
  padding: 12px;
  line-height: 1.6;
}

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.searchbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.apply-layout { display: grid; gap: 16px; }
.form-section { display: grid; gap: 14px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-form { margin-bottom: 16px; background: #f8fafc; }
.full { grid-column: 1 / -1; }

label { display: grid; gap: 7px; color: #344054; font-weight: 600; }
.checkline { display: flex; align-items: center; gap: 8px; }
.checkline input { width: auto; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
  font-weight: 400;
}

textarea { min-height: 104px; resize: vertical; }

.room-summary { min-height: 82px; }
.room-placeholder {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: var(--soft);
}

.room-card {
  display: grid;
  grid-template-columns: 1.4fr auto auto 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid #bfd8d5;
  border-radius: 8px;
  background: #f3fbfa;
  padding: 14px;
}

.room-card p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.room-managers { display: grid; gap: 3px; }
.room-managers small { color: var(--muted); }
.inline-select { grid-column: 1 / -1; }

.signature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.signature-box { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfcfe; }
.signature-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.signature-pad { width: 100%; height: 180px; border: 1px solid var(--line); border-radius: 8px; background: #fff; touch-action: none; }

.sticky-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
  background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0));
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #edf1f6;
  color: var(--muted);
  padding: 3px 9px;
  font-size: 13px;
  white-space: nowrap;
}
.pill.ok { color: var(--ok); background: #e7f4eb; }
.pill.warn { color: var(--warn); background: #fff1e7; }
.pill.danger { color: var(--danger); background: #fbe8e8; }

.experiment-list { display: grid; gap: 12px; }
.audit-history-title { margin: 24px 0 10px; color: var(--navy); font-size: 18px; }
.wecom-identity-rules { display: grid; gap: 14px; margin: 0 0 18px; padding: 18px; border: 1px solid #b8d6e5; border-radius: 10px; background: #f3f9fc; }
.wecom-identity-rules h3 { margin: 0; color: var(--navy); font-size: 17px; }
.wecom-identity-rules p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.experiment-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 16px; }
.experiment-summary-actions { margin-top: 2px; }
.experiment-full-details { margin-top: 14px; }
.flow-timeline { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border-left: 3px solid #69a8c7; background: #f7fbfd; }
.flow-timeline h4 { margin: 0; color: var(--navy); }
.flow-timeline > p { margin: 0; color: var(--muted); }
.flow-item { position: relative; display: grid; gap: 3px; padding: 0 0 10px 14px; border-bottom: 1px solid #dce9ef; }
.flow-item:last-child { padding-bottom: 0; border-bottom: 0; }
.flow-item::before { position: absolute; top: 5px; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); content: ""; }
.flow-item span { color: var(--muted); font-size: 12px; }
.flow-item p { margin: 0; white-space: pre-wrap; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filter-tabs button { min-height: 34px; padding: 6px 12px; border: 1px solid #a9c6d8; background: #fff; color: var(--brand-strong); }
.filter-tabs button.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.team-members-panel { display: grid; gap: 12px; padding: 14px; border: 1px solid #c9dce7; border-radius: 10px; background: #f8fcfe; }
.team-members-panel .signature-head { margin: 0; }
.team-members-panel .signature-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.team-member-list { display: grid; gap: 12px; }
.team-member-card { padding: 12px; border: 1px solid #d5e4ed; border-radius: 8px; background: #fff; }
.team-member-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.team-member-fields label { display: grid; gap: 5px; min-width: 0; font-size: 13px; color: var(--navy); }
.team-member-picker { position: relative; display: grid; gap: 5px; grid-column: span 2; min-width: 0; font-size: 13px; color: var(--navy); }
.team-member-results { top: calc(100% + 2px); }
.card-head, .meta-row, .review-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-head { margin-bottom: 12px; }
.card-head h3 { font-size: 18px; }
.card-head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.meta-row { flex-wrap: wrap; justify-content: flex-start; color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail { background: #f8fafc; border: 1px solid #e6ebf1; border-radius: 6px; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail strong { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.detail-wide { grid-column: span 2; }
.risk-focus { border: 2px solid #d94a4a; background: #fff1f1; color: #8d1f1f; }
.risk-focus strong { color: #c52626; font-size: 15px; font-weight: 900; }
.signature-review { margin-top: 14px; padding: 14px; border: 1px solid #c8dce8; border-radius: 8px; background: #f7fbfd; }
.signature-review h4 { margin: 0 0 10px; color: var(--navy); font-size: 14px; }
.signature-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.signature-preview { display: grid; gap: 8px; margin: 0; padding: 10px; border: 1px solid #d8e6ee; border-radius: 6px; background: #fff; }
.signature-preview figcaption { color: #4d6c80; font-size: 13px; font-weight: 700; }
.signature-preview img { display: block; width: 100%; height: 110px; object-fit: contain; border: 1px solid #e0e9ee; border-radius: 4px; background: #fff; }
.signature-preview span { color: var(--muted); font-size: 13px; }
.review-row { align-items: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-actions { display: flex; gap: 8px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.import-panel { display: grid; gap: 12px; }
.import-panel textarea { min-height: 260px; font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.result-box { min-height: 80px; margin-top: 16px; border-radius: 8px; background: #17202a; color: #fff; padding: 14px; overflow: auto; }

.data-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; min-width: 820px; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: 14px; }
th { background: #f3f6fa; color: #334155; white-space: nowrap; }
td { overflow-wrap: anywhere; }
.empty { border: 1px dashed var(--line); border-radius: 8px; background: #fff; color: var(--muted); padding: 28px; text-align: center; }

@media (max-width: 900px) {
  .topbar, .toolbar, .section-title, .card-head, .review-row { align-items: stretch; flex-direction: column; }
  .topbar { padding: 16px; }
  .shell { padding: 12px; }
  .login-band, .login-grid, .form-grid, .form-grid.three, .signature-grid, .detail-grid, .split, .room-card { grid-template-columns: 1fr; }
  .detail-wide { grid-column: auto; }
  .tab-panel { padding: 14px; }
  .full { grid-column: auto; }
  .searchbar { justify-content: stretch; }
  .searchbar button { width: 100%; }
  .sticky-actions button { width: 100%; }
  .review-actions button { flex: 1; }
  .signature-pad { height: 150px; }
}

/* Forms stay readable while users type long safety details. */
textarea { min-height: 120px; resize: vertical; overflow: hidden; line-height: 1.7; }
.commitment-box { display: grid; gap: 10px; padding: 16px; border: 2px solid #d85a5a; border-radius: 10px; background: #fff7f7; color: #a12b2b; }
.commitment-box strong { font-size: 17px; color: #a12b2b; }
.commitment-box p { margin: 0; color: #a12b2b; font-weight: 700; line-height: 1.8; }
.commitment-box textarea { min-height: 170px; border-color: #e8aaaa; color: #7d2020; background: #fff; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.verification-row button { white-space: nowrap; }
.mentor-picker { grid-column: span 1; }
.mentor-picker { position: relative; display: grid; gap: 7px; }
/* Keep candidate lists in the form flow so rounded sections cannot clip them. */
.mentor-results { position: static; min-width: 0; max-height: 280px; overflow-y: auto; overscroll-behavior-y: contain; border: 1px solid #9fc5d8; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(8, 43, 73, .12); }
.review-status:not(:empty) { padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; background: #eef8fc; }
.review-status[data-error="true"] { color: #8d1f1f; background: #fff1f1; }
.review-actions { flex-wrap: wrap; width: 100%; }
.review-actions button { min-height: 44px; }
.member-progress, .member-confirmation { margin-block: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f6fbfd; }
.member-progress-row { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-progress-row small { color: var(--muted); }
.member-progress-row p { flex-basis: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-confirmation { display: grid; gap: 16px; }
.member-confirmation .commitment-box p { white-space: pre-wrap; }
.member-owner-actions, .experiment-summary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.team-member-card input { min-width: 0; }
@media (max-width: 700px) { .mentor-results { max-height: min(280px, 40dvh); } }
.mentor-result { display: grid; width: 100%; min-height: 0; gap: 3px; padding: 11px 13px; border: 0; border-bottom: 1px solid #e2edf3; border-radius: 0; background: #fff; color: var(--ink); box-shadow: none; text-align: left; }
.mentor-result:hover { background: #edf8fc; color: var(--ink); }
.mentor-result strong { color: var(--navy); }
.mentor-result span { color: var(--muted); font-size: 12px; font-weight: 400; }
.mentor-empty { padding: 14px; color: #765216; background: #fff8e8; font-size: 13px; line-height: 1.6; }
.commitment-confirm { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid #e49a9a; border-radius: 8px; background: #fff; color: #8f2424; font-weight: 800; line-height: 1.6; }
.commitment-confirm input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: #a12b2b; }
.member-signatures-panel { grid-column: 1 / -1; display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #f7fbfd; }
.member-signatures-panel > .signature-head p { margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 400; }
.member-signature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member-signature-pad { height: 240px; }
.signature-actions { display: flex; gap: 8px; }
.settings-hint { margin: 0; color: #526f82; font-size: 13px; line-height: 1.6; }
.tabs { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; touch-action: pan-x; }
.tab { flex: 0 0 auto; white-space: nowrap; }
.sticky-actions { position: static; z-index: auto; margin-top: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.sticky-actions button { width: 100%; }

@media (max-width: 900px) {
  .login-grid { max-height: calc(100vh - 150px); overflow-y: auto; }
  .verification-row { grid-template-columns: 1fr; }
  .verification-row button { width: 100%; }
  .mentor-picker { grid-column: auto; }
  .member-signature-list { grid-template-columns: 1fr; }
  .member-signature-pad { height: 220px; }
  .member-signatures-panel > .signature-head { align-items: stretch; flex-direction: column; }
  .member-signatures-panel > .signature-head button { width: 100%; }
  .tabs { margin-inline: -14px; padding-inline: 14px; }
  .tab { min-height: 46px; padding-inline: 14px; }
  .form-section textarea { min-height: 150px; }
  .commitment-box textarea { min-height: 220px; }
}

/* Full-bleed academy landing screen with QR-first sign-in. */
.topbar { background: rgba(8, 43, 73, .94); }
.login-band {
  position: relative;
  display: block;
  min-height: calc(100vh - 88px);
  margin: -26px clamp(-40px, -3vw, -12px) -44px;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background-color: #5b9fca;
  background-image: url("/assets/academy-building-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  box-shadow: none;
}
.login-band::before {
  position: absolute;
  inset: 0;
  background: rgba(5, 35, 62, .18);
  content: "";
}
.login-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  padding: 0;
  background: transparent;
}
.login-copy::before, .login-copy::after, .login-copy h2, .login-copy > p { display: none; }
.access-links {
  right: 32px;
  bottom: 26px;
}
.access-links #showEmailLogin { display: none; }
.access-links #showRegister {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(8, 43, 73, .7);
  color: #fff;
}
.login-grid {
  position: relative;
  z-index: 2;
  display: block;
  width: min(430px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 34px 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 54px rgba(5, 35, 62, .24);
  transform: translateY(9vh);
}
.login-grid > .login-box:first-child {
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.login-grid > .login-box:first-child h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 22px;
  text-align: center;
}
.login-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #6b8293;
  font-size: 13px;
}
.login-switch .text-action { padding: 4px 8px; color: var(--brand); }
.qr-wrap { display: grid; justify-items: center; gap: 12px; }
.qr-code { display: grid; place-items: center; min-height: 236px; min-width: 236px; padding: 8px; border: 1px solid #dcebf2; border-radius: 10px; background: #fff; }
.qr-code img { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.qr-fallback { color: #6b8293; font-size: 12px; text-decoration: none; }
.qr-fallback:hover { color: var(--brand-strong); text-decoration: underline; }
#emailLoginForm, #registerForm { margin-top: 16px; padding: 18px; border: 1px solid #dbe8ef; background: #f7fbfd; }

@media (max-width: 900px) {
  .login-band { min-height: calc(100vh - 112px); margin: -12px -12px -44px; background-position: 58% center; }
  .login-grid { width: min(390px, calc(100% - 24px)); padding: 26px 22px 24px; transform: translateY(6vh); }
  .qr-code { min-height: 210px; min-width: 210px; }
  .qr-code img { width: 194px; height: 194px; }
  .access-links { right: 16px; bottom: 18px; }
}

/* Clean sign-in surface: one primary path, secondary access on demand. */
.login-band {
  position: relative;
  grid-template-columns: minmax(300px, .92fr) minmax(360px, .88fr);
  min-height: 540px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 43, 73, .11);
}
.login-copy {
  position: relative;
  min-height: 540px;
  padding: 66px 48px 54px;
  overflow: hidden;
  background: #e6f6fc;
}
.login-copy::before { width: 62px; height: 5px; margin-bottom: 28px; background: var(--gold); }
.login-copy::after {
  position: absolute;
  right: -38px;
  bottom: 82px;
  width: 255px;
  height: 132px;
  border-top: 2px solid rgba(18, 107, 163, .42);
  border-right: 2px solid rgba(18, 107, 163, .42);
  border-radius: 0 132px 0 0;
  content: "";
  transform: rotate(-12deg);
}
.login-copy h2 { position: relative; z-index: 1; max-width: 360px; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.login-copy p { position: relative; z-index: 1; max-width: 360px; margin-top: 18px; color: #4c7188; font-size: 15px; line-height: 1.9; }
.access-links { position: absolute; right: 34px; bottom: 28px; z-index: 2; display: flex; gap: 8px; }
.text-action { min-height: 32px; padding: 5px 10px; border: 0; background: transparent; color: #2e6f92; box-shadow: none; font-size: 13px; }
.text-action:hover { background: rgba(255, 255, 255, .65); color: var(--brand-strong); }
.login-grid { display: block; padding: 54px 58px; }
.login-grid > .login-box:first-child { display: grid; align-content: center; min-height: 300px; padding: 0; border: 0; box-shadow: none; }
.login-grid > .login-box:first-child h3 { margin-bottom: 20px; color: var(--navy); font-size: 24px; }
#wecomLogin .primary-link { display: flex; align-items: center; justify-content: center; min-height: 54px; width: 100%; border-radius: 9px; font-size: 16px; }
#emailLoginForm, #registerForm { display: none; margin-top: 18px; padding: 18px; background: #f7fbfd; box-shadow: none; }
#emailLoginForm.is-open, #registerForm.is-open { display: grid; }
.login-grid > .login-box:first-child.is-hidden { display: none; }
#devLoginBox { display: none !important; }

@media (max-width: 900px) {
  .login-band { grid-template-columns: 1fr; min-height: 0; }
  .login-copy { min-height: 290px; padding: 34px 24px 68px; }
  .login-copy h2 { font-size: 32px; }
  .login-copy p { max-width: 310px; margin-top: 12px; font-size: 13px; }
  .login-copy::after { right: -80px; bottom: 24px; width: 210px; height: 90px; }
  .access-links { right: 20px; bottom: 18px; }
  .login-grid { padding: 26px 22px 30px; }
  .login-grid > .login-box:first-child { min-height: 190px; }
}

/* Aerospace safety workspace visual system */
:root {
  --ink: #102b43;
  --muted: #607489;
  --line: #d9e6ef;
  --surface: #ffffff;
  --soft: #f3f8fc;
  --brand: #126ba3;
  --brand-strong: #084a78;
  --accent: #43a9cf;
  --navy: #082b49;
  --gold: #d39a2f;
  --warn: #a76816;
  --danger: #b33a42;
  --ok: #1e7a63;
}

body {
  background: #eef5f9;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

.topbar {
  position: relative;
  min-height: 88px;
  padding: 18px clamp(16px, 4vw, 56px);
  background: var(--navy);
  border-bottom: 0;
  color: #fff;
  overflow: hidden;
}

.topbar::after {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 36%;
  height: 4px;
  background: var(--gold);
  content: "";
}

.topbar h1 { color: #fff; letter-spacing: .02em; font-size: clamp(20px, 2.2vw, 28px); }
.topbar p { color: #b9d2e4; }
.brand-lockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.academy-logo { width: min(420px, 38vw); height: auto; max-height: 64px; object-fit: contain; object-position: left center; mix-blend-mode: normal; }
.brand-copy { min-width: 0; padding-left: 18px; border-left: 1px solid rgba(185, 210, 228, .4); }
.brand-copy h1 { font-size: clamp(17px, 1.8vw, 25px); }
.brand-copy p { margin-top: 5px; font-size: 12px; }
.user-panel { position: relative; z-index: 1; }
.user-panel .pill { background: #174968; color: #e5f3fb; }
.user-panel button.ghost { background: transparent; border-color: #7fb9d8; color: #e6f5fc; }
.user-panel button.ghost:hover { background: #174968; }

.shell { max-width: 1400px; padding: 26px clamp(12px, 3vw, 40px) 44px; }
.login-band, .workspace { border: 0; border-radius: 14px; box-shadow: 0 18px 50px rgba(8, 43, 73, .08); }
.login-band { grid-template-columns: minmax(260px, .86fr) minmax(420px, 1.5fr); gap: 30px; padding: 30px; background: #fff; }
.login-copy { padding: 18px 8px; }
.login-copy h2 { color: var(--navy); font-size: 28px; }
.login-copy::before { display: block; width: 52px; height: 5px; margin-bottom: 24px; background: var(--gold); content: ""; }
.login-grid { gap: 14px; }
.login-box, .form-section, .import-panel, .compact-form { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(8, 43, 73, .04); }
.login-box h3 { color: var(--navy); }

.workspace { background: transparent; box-shadow: none; }
.tabs { gap: 4px; padding: 10px 12px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; }
.tab { padding: 13px 17px; border-bottom-width: 3px; color: #6d8295; font-weight: 700; }
.tab.active { color: var(--brand); border-bottom-color: var(--gold); }
.tab:hover { color: var(--brand-strong); background: #f2f8fc; }
.tab-panel { padding: 26px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: #fff; }

button, .primary-link { min-height: 40px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); box-shadow: 0 5px 12px rgba(18, 107, 163, .14); font-weight: 700; }
button:hover, .primary-link:hover { background: var(--brand-strong); }
button.ghost { border-color: #a9c6d8; background: #fff; color: var(--brand-strong); box-shadow: none; }
button.ghost:hover { background: #edf7fc; }
.reject { border-color: #d98287; color: var(--danger); }
.reject:hover { background: #fff1f1; }

.dashboard-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  margin: -2px -26px 26px;
  padding: 32px clamp(22px, 4vw, 46px);
  background: #dff2fb;
  border-bottom: 1px solid #c7e5f2;
  color: var(--navy);
}
.dashboard-copy { max-width: 680px; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--brand-strong); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.dashboard-copy h2 { margin-bottom: 9px; color: var(--navy); font-size: clamp(25px, 3.3vw, 38px); line-height: 1.15; }
.dashboard-copy p { max-width: 580px; color: #45677e; font-size: 15px; line-height: 1.8; }
.dashboard-signals { display: grid; gap: 9px; min-width: 190px; }
.dashboard-signals span { display: flex; align-items: center; gap: 10px; color: #2f5c73; font-size: 13px; font-weight: 700; }
.dashboard-signals b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand); font-size: 11px; box-shadow: 0 3px 9px rgba(8, 43, 73, .08); }

.toolbar { align-items: flex-end; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.toolbar h2 { color: var(--navy); font-size: 22px; }
.toolbar p, .section-title p, .import-panel p { color: var(--muted); line-height: 1.65; }
.searchbar input, .searchbar select { min-width: 170px; }
input, select, textarea { border-color: #c8d9e5; border-radius: 7px; background: #fbfdff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(67, 169, 207, .18); border-color: var(--accent); }
label { color: #31536a; }
.form-section { gap: 18px; padding: 22px; }
.section-title { border-bottom-color: var(--line); }
.section-title h2 { color: var(--navy); }
.room-card { border-color: #a9d7e9; background: #edf9fd; }
.room-placeholder { border-color: #b6d5e5; background: #f5fbfe; }
.signature-box { border-color: #c8dce8; background: #f7fbfd; }
.signature-pad { border-color: #aacbdb; background: #fff; }
.sticky-actions { background: #fff; }

.notice { border-color: #e8cb84; background: #fff8e8; color: #765216; }
.pill { background: #edf3f7; color: #557085; }
.pill.ok { background: #e4f5ee; color: var(--ok); }
.pill.warn { background: #fff3db; color: #98641b; }
.pill.danger { background: #ffebed; color: var(--danger); }
.experiment-list { gap: 14px; }
.experiment-card { position: relative; border-color: #d5e3eb; border-radius: 10px; padding: 20px; box-shadow: 0 8px 20px rgba(8, 43, 73, .045); }
.experiment-card::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; border-radius: 10px 0 0 10px; background: #8fcbe0; content: ""; }
.card-head h3 { color: var(--navy); }
.detail { border-color: #dbe8ef; background: #f6fafc; }
.detail strong { color: #658096; }
.review-row { border-top-color: var(--line); }

.data-table { border-color: #cbdde7; border-radius: 10px; }
table { background: #fff; }
th { background: #eaf5fa; color: #28536c; font-weight: 800; }
th, td { border-bottom-color: #e1ebf1; }
tbody tr:hover { background: #f5fbfe; }
.empty { border-color: #bfd8e5; background: #f8fcfe; }
.result-box { background: var(--navy); }

@media (max-width: 900px) {
  .topbar { min-height: 112px; }
  .brand-lockup { align-items: flex-start; gap: 10px; }
  .academy-logo { width: 170px; max-height: 42px; }
  .brand-copy { padding-left: 10px; }
  .brand-copy h1 { font-size: 16px; line-height: 1.35; }
  .brand-copy p { display: none; }
  .topbar::after { right: 0; width: 52%; }
  .login-band { grid-template-columns: 1fr; padding: 22px; }
  .dashboard-intro { align-items: flex-start; flex-direction: column; min-height: 0; margin: -14px -14px 20px; padding: 26px 20px; }
  .dashboard-signals { grid-template-columns: repeat(3, 1fr); width: 100%; min-width: 0; }
  .dashboard-signals span { display: grid; justify-items: start; gap: 5px; font-size: 11px; }
  .tab-panel { padding: 14px; }
  .toolbar { align-items: stretch; }
  .searchbar { display: grid; grid-template-columns: 1fr; }
  .searchbar input, .searchbar select, .searchbar button { width: 100%; min-width: 0; }
  .form-section { padding: 16px; }
.experiment-card { padding: 17px 15px 17px 19px; }
}

/* Final landing override: keep the academy image as the page, not a card. */
.login-band {
  position: relative;
  display: block;
  min-height: calc(100vh - 88px);
  margin: -26px clamp(-40px, -3vw, -12px) -44px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: #5b9fca;
  background-image: url("/assets/academy-building-banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  box-shadow: none;
}
.login-band::before { position: absolute; inset: 0; background: rgba(5, 35, 62, .18); content: ""; }
.login-copy { position: absolute; inset: 0; z-index: 1; min-height: 0; padding: 0; background: transparent; }
.login-copy::before, .login-copy::after, .login-copy h2, .login-copy > p { display: none; }
.access-links { right: 32px; bottom: 26px; z-index: 3; }
.access-links #showEmailLogin { display: none; }
.access-links #showRegister { border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(8,43,73,.72); color: #fff; }
.login-grid { position: relative; z-index: 2; display: flex; flex-direction: column; width: min(430px, calc(100% - 32px)); margin: 0 auto; padding: 38px 34px 30px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 22px 54px rgba(5,35,62,.24); transform: translateY(9vh); }
.login-grid > .login-box:first-child { display: grid; align-content: start; min-height: 0; padding: 0; border: 0; box-shadow: none; }
.login-grid > .login-box:first-child { order: 2; }
.login-grid > .login-box:first-child h3 { margin-bottom: 10px; color: var(--navy); font-size: 22px; text-align: center; }
.login-switch { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; color: #6b8293; font-size: 13px; }
.login-switch .text-action { padding: 4px 8px; color: var(--brand); }
.qr-wrap { display: grid; justify-items: center; gap: 12px; }
.qr-code { display: grid; place-items: center; min-width: 236px; min-height: 236px; padding: 8px; border: 1px solid #dcebf2; border-radius: 10px; background: #fff; }
.qr-code img { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.qr-fallback { color: #6b8293; font-size: 12px; text-decoration: none; }
.qr-fallback:hover { color: var(--brand-strong); text-decoration: underline; }
#emailLoginForm, #registerForm { display: none; margin-top: 16px; padding: 18px; border: 1px solid #dbe8ef; background: #f7fbfd; box-shadow: none; }
#emailLoginForm.is-open, #registerForm.is-open { display: grid; }
#emailLoginForm.is-open { order: 1; }
#registerForm.is-open { order: 3; }
#devLoginBox { display: none !important; }

@media (max-width: 900px) {
  .login-band { min-height: calc(100vh - 112px); margin: -12px -12px -44px; background-position: 58% center; }
  .login-grid { width: min(390px, calc(100% - 24px)); padding: 26px 22px 24px; transform: translateY(6vh); }
  .qr-code { min-width: 210px; min-height: 210px; }
  .qr-code img { width: 194px; height: 194px; }
  .access-links { right: 16px; bottom: 18px; }
}

/* Authoritative full-viewport login layout. */
body.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #5b9fca;
}
body.login-page .shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.login-page .login-band {
  display: grid;
  grid-template-columns: 1fr;
  place-items: start center;
  width: 100%;
  min-height: calc(100vh - 88px);
  min-height: calc(100dvh - 88px);
  margin: 0;
  padding: clamp(28px, 7vh, 72px) 16px 40px;
  background-position: center center;
  background-size: cover;
}
body.login-page .login-grid {
  width: min(430px, 100%);
  margin: 0;
  transform: none;
}
.qr-code svg {
  display: block;
  width: 220px;
  height: 220px;
}
.qr-status {
  margin: 0;
  color: #47697e;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 900px) {
  body.login-page .login-band {
    min-height: calc(100vh - 112px);
    min-height: calc(100dvh - 112px);
    margin: 0;
    padding: 24px 12px 36px;
    background-position: 58% center;
  }
  body.login-page .login-grid {
    width: min(390px, 100%);
    padding: 26px 22px 24px;
    transform: none;
  }
  .qr-code svg { width: 194px; height: 194px; }
  .team-member-fields { grid-template-columns: 1fr; }
  .team-member-picker { grid-column: auto; }
}

/* Prominent external-registration entry and submission feedback. */
.access-links #showRegister {
  min-height: 46px;
  padding: 10px 20px;
  border: 2px solid #fff3c4;
  border-radius: 999px;
  background: #f5b83b;
  color: #18364a;
  box-shadow: 0 10px 28px rgba(5, 35, 62, .34);
  font-size: 16px;
  font-weight: 900;
}
.access-links #showRegister:hover { background: #ffd267; color: #0d2f45; }
.external-register-cta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e6bd61;
  border-radius: 10px;
  background: #fff8e8;
  color: #684814;
  text-align: center;
}
.external-register-cta span { font-size: 13px; font-weight: 700; }
.external-register-cta button { background: #d99518; border-color: #d99518; }
.external-register-cta button:hover { background: #b9760b; }
#submitRegisterBtn { min-height: 48px; font-size: 16px; }
.form-status { min-height: 22px; margin: 0; color: #315f78; font-size: 13px; line-height: 1.6; }

/* Button-based workspace and high-clarity application form. */
.workspace-nav { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 10px 18px; border: 1px solid #c7dbe7; border-bottom: 0; border-radius: 16px 16px 0 0; background: linear-gradient(120deg, #073b58, #0c6982); color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.workspace-nav .tab { min-height: 38px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; padding: 7px 15px; box-shadow: none; }
.workspace-nav .tab:hover, .workspace-nav .tab.active { border-color: #fff; background: #fff; color: #09516c; }
.workspace > .tab-panel { border-radius: 0 0 16px 16px; }
#homeTab { padding: 0; overflow: hidden; }
#homeTab .dashboard-intro { margin: 0; border-radius: 0; padding: 38px 34px 32px; background: radial-gradient(circle at 85% 10%, rgba(99,210,225,.44), transparent 30%), linear-gradient(115deg, #063c5b, #0c6f86); color: #fff; }
#homeTab .dashboard-copy h2 { color: #fff; }
#homeTab .dashboard-copy p { color: rgba(255,255,255,.84); }
#homeTab .eyebrow { color: #9be5f1; }
#homeTab .dashboard-signals span { color: #e6fbff; }
#homeTab .dashboard-signals b { background: rgba(255,255,255,.15); color: #fff; box-shadow: none; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 28px 34px 34px; background: #f5f9fc; }
.module-card { display: grid; min-height: 154px; grid-template-rows: auto auto 1fr; align-content: start; gap: 9px; border: 1px solid #d2e1eb; border-radius: 14px; background: #fff; color: #123f57; padding: 19px; box-shadow: 0 7px 18px rgba(10, 59, 82, .06); text-align: left; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.module-card:hover { border-color: #4baec6; background: #fff; color: #073e58; box-shadow: 0 14px 28px rgba(7, 76, 104, .15); transform: translateY(-3px); }
.module-card strong { font-size: 17px; }
.module-card small { color: #668196; font-size: 13px; font-weight: 400; line-height: 1.6; }
.module-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e5f5fa; color: #0b7794; font-size: 22px; font-weight: 700; }
.primary-module { border-color: #0c7994; background: linear-gradient(145deg, #087795, #07516d); color: #fff; }
.primary-module:hover { border-color: #07516d; background: linear-gradient(145deg, #086d88, #063f59); color: #fff; }
.primary-module small { color: rgba(255,255,255,.84); }
.primary-module .module-icon { background: #fff; color: #087795; }
.searchbar input[type="date"] { min-width: 148px; }
/* The application list has its own layout, separate from admin toolbars. */
.experiment-list-tools { display: grid; gap: 18px; margin-bottom: 22px; }
.experiment-list-heading h2 { color: var(--navy); font-size: 24px; line-height: 1.4; }
.experiment-list-heading p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.75; }
#searchForm.experiment-filters {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) minmax(110px, .8fr) repeat(2, minmax(140px, 1fr)) minmax(160px, 1fr) auto;
  grid-template-areas: "keyword applicant from to status actions";
  align-items: end;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dce7ef;
  border-radius: 12px;
  background: #f6f9fc;
}
.experiment-filters .filter-keyword { grid-area: keyword; }
.experiment-filters .filter-applicant { grid-area: applicant; }
.experiment-filters .filter-from { grid-area: from; }
.experiment-filters .filter-to { grid-area: to; }
.experiment-filters .filter-status { grid-area: status; }
.experiment-filters label { min-width: 0; gap: 8px; color: #526b7e; font-size: 13px; font-weight: 600; }
#searchForm input, #searchForm select { width: 100%; min-width: 0; max-width: 100%; height: 44px; padding: 10px; background: #fff; font-size: 14px; }
#searchForm input::placeholder { color: #80909e; }
.experiment-filters .filter-actions { grid-area: actions; display: flex; gap: 8px; }
#searchForm .filter-actions button { width: auto; min-width: 64px; min-height: 44px; padding: 10px 14px; font-size: 14px; white-space: nowrap; box-shadow: none; }
@media (max-width: 1200px) {
  #searchForm.experiment-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "keyword keyword applicant status" "from to actions actions"; }
  .experiment-filters .filter-actions { justify-content: flex-end; }
}
@media (max-width: 900px) {
  .experiment-list-tools { gap: 14px; margin-bottom: 18px; }
  .experiment-list-heading h2 { font-size: 22px; }
  .experiment-list-heading p { font-size: 13px; }
  #searchForm.experiment-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "keyword keyword" "applicant status" "from to" "actions actions"; gap: 14px 12px; padding: 14px; }
  .experiment-filters .filter-actions { padding-top: 2px; }
  #searchForm .filter-actions button { flex: 1; }
}
@media (max-width: 380px) {
  #searchForm.experiment-filters { grid-template-areas: "keyword keyword" "applicant status" "from from" "to to" "actions actions"; }
}
.people-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px; }
.people-search { flex: 1; margin: 0; }
.people-search input { width: 100%; max-width: 520px; }
.page-size-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.page-size-control select { min-width: 94px; }
.pagination-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); }
.pagination-controls > div { display: flex; align-items: center; gap: 10px; }
.pagination-controls button:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 700px) { .people-list-tools, .pagination-controls { align-items: stretch; flex-direction: column; } .pagination-controls > div { justify-content: space-between; } }
.experiment-delete-action { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f3; }

#newTabPanel { background: #f4f8fb; }
.apply-layout { counter-reset: application-step; gap: 20px; max-width: 1120px; margin: 0 auto; }
.apply-layout > .form-section { position: relative; counter-increment: application-step; gap: 20px; overflow: hidden; border: 1px solid #cfdfeb; border-radius: 14px; background: #fff; padding: 25px 24px 24px; box-shadow: 0 10px 24px rgba(10, 59, 82, .055); }
.apply-layout > .form-section::before { position: absolute; top: 0; left: 0; width: 58px; height: 56px; border-radius: 0 0 18px 0; background: #0d718c; color: #fff; content: "0" counter(application-step); display: grid; place-items: center; font-size: 15px; font-weight: 900; letter-spacing: .06em; }
.apply-layout > .form-section:nth-child(2)::before { background: #1a7798; }
.apply-layout > .form-section:nth-child(3)::before { background: #27708a; }
.apply-layout > .form-section:nth-child(4)::before { background: #a15a24; }
.apply-layout .section-title { min-height: 43px; align-items: center; padding: 0 0 15px 50px; border-bottom: 1px solid #d9e7ef; }
.apply-layout .section-title h2 { font-size: 20px; }
.apply-layout .section-title p { max-width: 600px; font-size: 13px; }
.apply-layout .form-grid { gap: 17px; }
.apply-layout label { padding: 1px 0; }
.apply-layout .emergency-contact-field { align-self: start; align-content: start; }
.apply-layout input, .apply-layout select, .apply-layout textarea { border-color: #bfd5e2; background: #fcfeff; }
.apply-layout input:focus, .apply-layout select:focus, .apply-layout textarea:focus { background: #fff; box-shadow: 0 0 0 4px rgba(28, 144, 180, .13); }
.apply-layout textarea[name="hazard"] { border: 2px solid #d0715d; background: #fff8f6; }
.apply-layout textarea[name="protection"] { border: 2px solid #4d9a77; background: #f5fcf8; }
.apply-layout .team-members-panel { border-color: #b9dbe8; background: #f5fbfe; }
.apply-layout .commitment-box { border-color: #e2b28c; box-shadow: inset 4px 0 #bd6a2c; }
.apply-layout .sticky-actions { margin-top: 2px; padding: 16px 0 0; }
.apply-layout .sticky-actions button { min-width: 220px; min-height: 48px; border-radius: 10px; font-size: 16px; }

@media (max-width: 1050px) { .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .workspace-nav { border-radius: 12px 12px 0 0; padding: 9px 13px; } .workspace-nav span { display: none; } #homeTab .dashboard-intro { padding: 28px 20px; } .module-grid { grid-template-columns: 1fr; gap: 12px; padding: 18px; } .module-card { min-height: 126px; } .apply-layout > .form-section { padding: 20px 15px 18px; border-radius: 11px; } .apply-layout .section-title { min-height: 48px; padding-left: 48px; } .apply-layout .section-title h2 { font-size: 18px; } .apply-layout .section-title p { font-size: 12px; } }


/* Personal workspace, additive to the established login and administration styles. */
body:not(.login-page) { --brand: #126e91; --brand-strong: #0a526f; }
.workspace-nav { flex-wrap: wrap; }
.workspace-nav .tab { white-space: nowrap; }
#homeTab .dashboard-intro { padding: 25px 30px; background: #edf6fb; color: #123f57; }
#homeTab .dashboard-copy h2 { color: #123f57; font-size: 23px; }
#homeTab .dashboard-copy p { color: #476a80; }
#homeTab .eyebrow { color: #48788d; }
.workspace-counts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding: 20px 30px; }
.count-card { display: grid; justify-items: start; gap: 7px; border: 1px solid #ccdee8; border-radius: 12px; background: #fff; color: #24536d; padding: 17px 20px; text-align: left; }
.count-card:hover { background: #edf6fb; color: #0a526f; }
.count-card strong { font-size: 30px; line-height: 1.2; }
.count-card span { font-size: 14px; }
.workspace-recent { padding: 0 30px 20px; }
.workspace-recent .section-title { align-items: center; margin-bottom: 10px; }
.recent-list { display: grid; gap: 9px; }
.recent-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; border: 1px solid #dbe6ed; border-radius: 10px; padding: 14px 16px; background: #fff; color: #24465d; text-align: left; }
button.recent-item:hover { background: #f1f7fa; color: #174e6b; }
.recent-item > span:first-child { min-width: 0; display: grid; gap: 6px; }
.recent-item strong { overflow-wrap: anywhere; font-size: 15px; }
.recent-item small { color: #607b8c; line-height: 1.6; }
.recent-item .pill { flex-shrink: 0; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#homeTab .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px 30px 28px; }
#homeTab .module-card { min-height: 114px; padding: 16px; gap: 7px; box-shadow: none; }
#homeTab .module-icon { width: 28px; height: 28px; font-size: 20px; }
.record-number { color: #6c8190; font-size: 12px; }
.compact-experiment { padding: 18px; box-shadow: none; }
.compact-experiment h3 { margin-top: 6px; overflow-wrap: anywhere; }
.summary-facts { display: grid; gap: 5px; margin: 13px 0; font-size: 13px; color: #607486; line-height: 1.6; }
.next-person { margin: 0 0 13px; color: #285d77; font-size: 14px; line-height: 1.7; }
.summary-detail { margin-top: 18px; padding-top: 16px; border-top: 1px solid #dce6ed; }
.summary-detail > .experiment-card { padding: 0; border: 0; box-shadow: none; background: transparent; }
.summary-detail > .experiment-card::before { content: none; display: none; }
.copy-application-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.copy-application-actions button, .experiment-summary-actions button { white-space: nowrap; }
.copy-application-actions .settings-hint { margin: 0; flex: 1 1 200px; }
.copy-application-actions button:disabled, .experiment-summary-actions button:disabled { max-width: 100%; white-space: normal; }
.summary-detail .signature-review, .summary-detail .flow-timeline { margin-top: 0; border: 0; padding: 8px 0; background: transparent; }
.summary-detail .review-row { padding-bottom: 0; }
.summary-detail .review-actions { position: sticky; bottom: 0; z-index: 3; padding: 13px 0; background: #fff; border-top: 1px solid #dce6ed; }
.summary-detail .member-confirmation .review-actions { background: #f5fbfe; }
.summary-detail:focus-within .review-actions { position: static; }
.record-disclosure { margin: 13px 0; padding: 12px 14px; border: 1px solid #dbe6ed; border-radius: 10px; background: #fbfdff; }
.record-disclosure > summary { cursor: pointer; color: #234e68; font-size: 14px; font-weight: 700; }
.record-disclosure[open] > summary { margin-bottom: 12px; }
.version-select { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #566f80; font-size: 13px; }
.version-select select { min-width: 160px; max-width: 100%; }
.approval-progress { margin: 16px 0; padding: 16px; border-radius: 10px; background: #f0f6fa; }
.approval-progress ol { display: grid; grid-template-columns: repeat(var(--approval-step-count, 4),minmax(0,1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.approval-progress li { display: grid; justify-items: center; align-content: start; gap: 7px; color: #70818d; text-align: center; font-size: 12px; line-height: 1.5; }
.approval-progress li span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #dde7ee; }
.approval-progress li.done { color: #24714c; }
.approval-progress li.done span { background: #d8efdf; }
.approval-progress li.current { color: #126e91; font-weight: 700; }
.approval-progress li.current span { background: #126e91; color: #fff; }
.approval-progress p { margin-top: 15px; font-size: 13px; line-height: 1.7; color: #345e77; }
.draft-toolbar { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.application-help { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: #517085; font-size: 14px; }
.room-management-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid #c7dce7; border-radius: 10px; background: #f2f8fb; font-size: 14px; line-height: 1.7; color: #446779; }
.room-management-note p { flex: 1 1 280px; }
.room-directory-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 20px 0 12px; }
.room-directory-tools label { flex: 1 1 270px; max-width: 500px; }
.room-directory-tools button { min-height: 44px; }
.room-directory-tools p, .directory-count { width: 100%; margin: 0 0 10px; color: #526e80; font-size: 14px; line-height: 1.7; }
#roomsTable th:first-child, #roomsTable td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #dbe5ec; }
#roomsTable th:first-child { background: #f2f7fa; }
#roomsTable [data-edit-room] { min-width: 52px; min-height: 40px; white-space: nowrap; }
.room-editor { margin: 0 0 16px; border: 1px solid #c7dce7; border-radius: 10px; overflow: hidden; }
.room-editor summary { padding: 14px 16px; background: #f2f8fb; color: #24556e; cursor: pointer; font-weight: 700; }
.room-editor form { margin: 16px; }
.application-help button { flex-shrink: 0; }
.user-guide { width: min(680px, calc(100% - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #c7dbe7; border-radius: 18px; color: #203e50; background: #fff; box-shadow: 0 18px 70px rgba(7, 36, 55, .25); overflow: hidden; }
.user-guide[open] { display: flex; flex-direction: column; }
.user-guide::backdrop { background: rgba(7, 29, 45, .55); }
.user-guide-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 20px 24px; border-bottom: 1px solid #dbe7ee; background: #f4f9fc; }
.user-guide-header p { color: #597687; font-size: 12px; margin-bottom: 4px; }
.user-guide-header h2 { font-size: 22px; }
.user-guide-header button { min-height: 44px; flex-shrink: 0; white-space: nowrap; }
.user-guide-body { padding: 22px 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; font-size: 15px; line-height: 1.8; }
.user-guide-overview { padding: 16px; border: 1px solid #bcdce7; border-radius: 12px; background: #edf7fa; }
.user-guide-overview strong { color: #0b5c75; }
.user-guide-overview p { margin: 8px 0; }
.user-guide-overview small { display: block; font-size: 13px; color: #546a76; }
.user-guide-hint { margin: 16px 0 10px; color: #607987; font-size: 13px; }
.user-guide details { margin-top: 10px; border: 1px solid #d4e2e9; border-radius: 10px; overflow: hidden; }
.user-guide summary { padding: 14px 16px; cursor: pointer; font-weight: 700; color: #1b4e66; background: #f7fafc; }
.user-guide summary:focus-visible { outline: 2px solid #167b9b; outline-offset: -3px; }
.user-guide details[open] summary { border-bottom: 1px solid #e0eaf0; }
.user-guide-content { padding: 14px 16px; overflow-wrap: anywhere; }
.user-guide-content ol { margin: 0; padding-left: 22px; }
.user-guide-content li + li, .user-guide-content p + p, .user-guide-content ol + p { margin-top: 10px; }
.user-guide-footer { margin-top: 18px; text-align: center; color: #607987; font-size: 13px; }
@media (max-width: 700px) {
  .user-guide-header { padding: 16px; }
  .user-guide-body { padding: 16px; }
  .user-guide-header h2 { font-size: 20px; }
  .user-guide-header button { padding: 9px 12px; }
}
.draft-toolbar span { font-size: 13px; line-height: 1.6; color: #58778c; }
.draft-toolbar button { flex-shrink: 0; }
.application-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.application-steps button { background: #fff; color: #517085; border-color: #cfdee7; font-size: 14px; padding: 12px 7px; }
.application-steps button.active { color: #fff; background: #126e91; border-color: #126e91; }
.step-hidden { display: none !important; }
#applyForm > .form-section:nth-of-type(1)::before { content: "01"; }
#applyForm > .form-section:nth-of-type(2)::before { content: "02"; }
#applyForm > .form-section:nth-of-type(3)::before { content: "03"; }
#applyForm > .form-section:nth-of-type(4)::before { content: "04"; }
#applicationStepStatus { padding: 0 0 8px; color: #ac3833; }
.field-required { margin-left: 5px; color: #bd2823; font-weight: 800; }
.application-field-label { display: inline; }
.application-required-note { margin: 0 0 16px; padding: 10px 14px; background: #f5f9fc; border-radius: 8px; font-size: 14px; line-height: 1.7; color: #526e80; }
#applicationStepStatus.has-errors { margin: 0 0 18px; padding: 15px 16px; border: 1px solid #e4aaa5; border-radius: 10px; background: #fff5f3; color: #922e26; line-height: 1.7; scroll-margin-top: 16px; }
#applicationStepStatus.has-errors p { margin: 4px 0; font-size: 13px; }
#applicationStepStatus.has-errors ul { margin: 8px 0 0; padding-left: 20px; }
#applicationStepStatus [data-application-error] { display: inline; min-height: 32px; margin: 0; padding: 3px 0; border: 0; border-radius: 0; background: transparent; color: #922e26; font-size: 14px; text-align: left; line-height: 1.6; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
#applyForm [aria-invalid="true"] { border-color: #bd3931; outline: 2px solid rgba(189,57,49,.17); outline-offset: 1px; }
#applyForm .application-field-error { display: block; flex-basis: 100%; margin-top: 5px; font-size: 13px; line-height: 1.6; color: #a52b24; font-weight: 400; letter-spacing: normal; }
#applyForm .commitment-confirm { display: grid; grid-template-columns: 20px minmax(0,1fr); }
#applyForm .commitment-confirm > .application-field-error { grid-column: 1 / -1; }
#applyForm .sticky-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; padding-bottom: 12px; }
#applyForm .sticky-actions button { min-width: 130px; }
@media (max-width:700px) {
  #homeTab .dashboard-intro { padding: 20px 18px; }
  #homeTab .dashboard-copy h2 { font-size: 20px; }
  .workspace-counts { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 16px; gap: 10px; }
  .count-card { padding: 13px 16px; }
  .count-card strong { font-size: 26px; }
  .workspace-recent { padding: 0 16px 16px; }
  #homeTab .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 16px; }
  #homeTab .module-card { min-height: 120px; padding: 13px; }
  #homeTab .module-card strong { font-size: 15px; }
  #homeTab .module-card small { font-size: 12px; }
  .workspace-nav { gap: 6px; }
  .workspace-nav .tab { font-size: 13px; padding: 7px 10px; }
  .compact-experiment { padding: 14px; }
  .recent-item { padding: 12px; flex-wrap: wrap; }
  .recent-item .pill { font-size: 12px; }
  .application-steps { gap: 5px; }
  .application-steps button { padding: 10px 3px; font-size: 12px; }
  .draft-toolbar { align-items: flex-start; }
  #applyForm .team-members-panel > .signature-head { align-items: stretch; flex-direction: column; }
  #addTeamMemberBtn { width: 100%; white-space: nowrap; }
  .summary-detail .detail-grid { grid-template-columns: 1fr; }
  .summary-detail .detail-grid .detail { min-width: 0; overflow-wrap: anywhere; }
  .summary-detail .signature-preview-grid { grid-template-columns: 1fr; }
  .summary-detail .member-confirmation { padding: 12px; }
  .summary-detail .member-confirmation .signature-pad { height: 180px; }
  .summary-detail .signature-head button { white-space: nowrap; }
  .summary-detail .review-actions { gap: 8px; }
  .summary-detail .review-actions button { flex: 1; font-size: 14px; }
  .version-select { display: grid; }
}

/* A quiet home page: primary actions, actual tasks, then optional detail. */
#homeTab { padding: 26px 30px 18px; }
.home-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.home-welcome h2 { color: #163f53; font-size: 24px; line-height: 1.3; }
.home-welcome p { margin-top: 6px; color: #6a7d87; font-size: 14px; }
.home-welcome button { flex-shrink: 0; }
.home-start { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid #d6e5e9; border-radius: 12px; background: #f2f8fa; }
.home-start h3 { font-size: 17px; color: #173f51; }
.home-start p { margin-top: 8px; color: #627a86; font-size: 13px; line-height: 1.6; }
.home-start-actions { display: flex; gap: 10px; flex-shrink: 0; }
.home-start-actions button { min-height: 44px; padding: 10px 18px; box-shadow: none; white-space: nowrap; }
.home-tasks { margin: 24px 0; }
.home-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.home-section-heading h3 { font-size: 15px; color: #344f5e; }
button.home-text-link { min-height: 40px; padding: 6px 0 6px 10px; background: transparent; border: 0; box-shadow: none; color: #24647a; font-size: 13px; }
button.home-text-link:hover { color: #083e53; text-decoration: underline; }
.home-task-list { display: grid; gap: 8px; }
button.home-task-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 48px; padding: 11px 16px; border: 1px solid #dbe6eb; background: #fff; color: #254957; box-shadow: none; text-align: left; font-size: 14px; }
button.home-task-row:hover { background: #f3f8fa; border-color: #8fb6c3; }
.home-task-end { display: flex; align-items: center; gap: 16px; color: #6b8b96; }
.home-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; min-height: 23px; padding: 2px 7px; border-radius: 12px; background: #e6f0f3; color: #225b6e; font-size: 12px; }
.home-task-empty { padding: 15px 16px; border-radius: 8px; background: #f6f8fa; color: #627683; font-size: 14px; line-height: 1.6; }
.home-task-empty > span { margin-right: 7px; color: #5b8d7d; }
.home-shortcuts { display: grid; grid-template-columns: repeat(auto-fit,minmax(185px,1fr)); gap: 10px; margin-bottom: 22px; }
.home-shortcuts > button { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 86px; min-width: 0; padding: 15px 16px; border: 1px solid #e0e8ed; border-radius: 9px; background: #fff; color: #284b5c; text-align: left; box-shadow: none; }
.home-shortcuts > button:hover { border-color: #9fbfca; background: #f7fafb; }
.home-shortcuts strong { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.home-shortcuts small { color: #72818a; font-size: 12px; line-height: 1.5; font-weight: 400; }
.home-disclosure { border-top: 1px solid #e3eaee; }
.home-disclosure > summary { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 14px 2px; cursor: pointer; list-style: none; }
.home-disclosure > summary::-webkit-details-marker { display: none; }
.home-disclosure > summary::after { content: "⌄"; margin-left: auto; color: #6a8693; font-size: 20px; }
.home-disclosure[open] > summary::after { transform: rotate(180deg); }
.home-disclosure > summary strong { color: #3e5967; font-size: 14px; font-weight: 600; }
.home-disclosure > summary > span { color: #83919a; font-size: 12px; }
.home-disclosure > summary:focus-visible, #homeTab button:focus-visible { outline: 2px solid #1681a0; outline-offset: 3px; }
.home-management-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-bottom: 18px; }
.home-management-links button { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border: 1px solid #e0e8ed; background: #f8fafb; color: #36576a; box-shadow: none; font-size: 14px; text-align: left; }
.home-management-links button:hover { background: #edf5f8; }
.home-management-links button span { color: #8299a4; }
.home-disclosure .recent-list { padding-bottom: 18px; }
@media (max-width:700px) {
  #homeTab { padding: 20px 16px 8px; }
  .home-welcome { margin-bottom: 16px; gap: 10px; }
  .home-welcome h2 { font-size: 21px; }
  .home-welcome p { font-size: 13px; }
  .home-start { align-items: stretch; flex-direction: column; gap: 16px; padding: 17px; }
  .home-start p { font-size: 12px; }
  .home-start-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .home-start-actions button { padding: 10px 6px; font-size: 13px; }
  .home-tasks { margin: 18px 0; }
  .home-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 16px; }
  .home-shortcuts > button { padding: 12px; min-height: 86px; }
  .home-shortcuts small { font-size: 11px; }
  .home-disclosure > summary { gap: 10px; min-height: 55px; }
  .home-disclosure > summary > span { font-size: 11px; }
  .home-management-links { grid-template-columns: 1fr; }
}

/* Compact, actionable room-manager review; original application fields remain accessible. */
.approval-list-card { padding: 0; overflow: hidden; border-radius: 12px; }
.approval-list-card::before { display: none; }
.approval-card-open { display: grid; width: 100%; gap: 9px; padding: 18px; text-align: left; border: 0; border-radius: 0; background: #fff; box-shadow: none; color: #25495e; }
.approval-card-open:hover { background: #f8fbfe; box-shadow: none; }
.approval-card-open:focus-visible { outline: 3px solid #2087b2; outline-offset: -3px; }
.approval-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.approval-card-heading > strong { color: #163e56; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.approval-card-heading .pill { flex-shrink: 0; font-size: 12px; }
.approval-card-line { display: flex; gap: 6px; min-width: 0; font-size: 13px; line-height: 1.6; font-weight: 400; }
.approval-card-line > span:first-child { color: #6c7f8d; flex-shrink: 0; }
.approval-card-value { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.approval-card-place { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.approval-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 8px; color: #627b8c; font-size: 12px; font-weight: 400; border-top: 1px solid #eef3f6; }
.approval-card-footer > span:last-child { margin-left: auto; color: #1c6b91; }
.approval-list-copy:empty { display: none; }
.approval-list-copy:not(:empty) { padding: 0 18px 12px; }
.approval-back { margin-bottom: 14px; }
.approval-search-panel { margin-bottom: 14px; }
.approval-search-panel > summary { display: list-item; cursor: pointer; color: #24536c; padding: 10px 0; font-size: 14px; }
.approval-search-panel > summary > span { color: #7a8c98; font-size: 12px; margin-left: 10px; }
.approval-search-panel[open] > summary { margin-bottom: 8px; }
.approval-detail-card { background: #fff; border: 0; border-radius: 0; padding: 4px 0; min-width: 0; }
.approval-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.approval-detail-heading h2 { margin: 0; font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.approval-detail-heading p,.approval-submitted { color: #728594; font-size: 13px; line-height: 1.6; margin: 6px 0 0; }
.approval-detail-heading > .pill { flex-shrink: 0; }
.approval-submitted { margin: 14px 0 20px; }
.approval-detail-tabs { display: flex; border-bottom: 1px solid #dbe6ee; margin-bottom: 20px; gap: 18px; }
.approval-detail-tabs button { flex: 1; min-height: 48px; padding: 8px; border: 0; border-radius: 0; color: #6b8190; background: transparent; box-shadow: none; }
.approval-detail-tabs button[aria-selected="true"] { color: #126b96; border-bottom: 3px solid #1585b8; }
.approval-fields { display: grid; margin: 0; }
.approval-field { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 6px; padding: 9px 0; border: 0; }
.approval-field dt { color: #748592; font-size: 14px; line-height: 1.7; white-space: nowrap; }
.approval-field dt::after { content: '：'; }
.approval-field dd { min-width: 0; margin: 0; font-size: 15px; color: #213f51; line-height: 1.7; }
.approval-field dd > p { white-space: normal; }
.approval-field p,.approval-text-block { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.approval-full-text > summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; cursor: pointer; list-style: none; }
.approval-full-text > summary > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.approval-full-text > summary::-webkit-details-marker { display: none; }
.approval-expand-label { color: #147ca9; font-size: 13px; white-space: nowrap; }
.approval-full-text[open] > summary { margin-bottom: 12px; }
.approval-full-text[open] > summary > span:first-child { display: none; }
.approval-field:has(.approval-full-text[open]) { grid-template-columns: minmax(0,1fr); }
.approval-detail-card [role="tabpanel"] > h3 { font-size: 16px; margin: 22px 0 12px; }
.approval-detail-tools { display: flex; gap: 8px; margin: 18px 0 0; flex-wrap: wrap; }
.approval-review-dock { position: sticky; bottom: 0; z-index: 4; display: block; padding: 12px 0 calc(12px + env(safe-area-inset-bottom,0px)); margin-top: 18px; background: #fff; border-top: 1px solid #d7e5ed; }
.approval-review-dock label { display: grid; gap: 6px; font-size: 12px; color: #6a8190; }
.approval-review-dock textarea { min-height: 44px; height: 44px; max-height: 120px; overflow-y: auto; }
.approval-review-dock .review-actions { width: 100%; flex-wrap: nowrap; }
.approval-review-dock .review-actions button { flex: 1; }
.approval-review-dock button { white-space: nowrap; }
.approval-decision-dialog { width: min(480px,calc(100% - 32px)); padding: 22px; border: 1px solid #c7dce7; border-radius: 12px; color: #23485e; }
.approval-decision-dialog::backdrop { background: rgba(12,36,52,.4); }
.approval-decision-dialog form { display: grid; gap: 12px; }
.approval-decision-dialog h3,.approval-decision-dialog p { margin: 0; }
.approval-decision-dialog p { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.approval-decision-dialog label { font-size: 13px; }
#approvalDecisionError { color: #a32232; }
@media(max-width:600px) {
  .approval-detail-card { padding: 0; }
  .approval-detail-heading h2 { font-size: 18px; }
  .approval-detail-heading .pill { font-size: 11px; }
  .approval-field { grid-template-columns: max-content minmax(0,1fr); gap: 4px; padding: 8px 0; }
  .approval-field dt,.approval-field dd { font-size: 13px; }
  .approval-expand-label { font-size: 12px; }
  .approval-review-dock { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .approval-review-dock .review-actions { width: 100%; }
  .approval-card-open { padding: 16px; }
}
.manager-review-card .card-head { margin-bottom: 10px; }
.manager-review-card .card-head h3 { overflow-wrap: anywhere; }
.manager-review-facts { display: grid; grid-template-columns: 1fr 2fr; gap: 8px 16px; font-size: 14px; }
.manager-review-facts p { margin: 0; min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.manager-review-facts strong { margin-right: 8px; color: #617888; font-size: 12px; }
.manager-review-place { grid-column: 1 / -1; }
.manager-review-status { margin: 10px 0 14px; color: #526e7f; font-size: 13px; line-height: 1.6; }
.manager-review-content { display: grid; gap: 10px; }
.manager-review-core { background: #f7fafc; }
.manager-review-risks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.manager-review-card .detail { line-height: 1.65; font-size: 14px; }
.manager-review-card .record-disclosure { margin: 8px 0; padding: 11px 12px; }
.manager-review-card .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.manager-review-card .detail-wide { grid-column: 1 / -1; }
.manager-review-card .member-progress { margin-top: 10px; }
.manager-review-team { margin: 10px 0; font-size: 14px; overflow-wrap: anywhere; }
.manager-review-footnote { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #607586; font-size: 12px; margin: 12px 0 0; }
.manager-review-card > .manager-review-dock { position: sticky; bottom: 0; z-index: 4; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; margin: 14px 0 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom,0px)); background: #fff; border-top: 1px solid #c8dbe6; box-shadow: 0 -6px 12px rgba(21,62,84,.045); }
.manager-review-dock label { display: grid; gap: 5px; min-width: 0; font-size: 12px; color: #526e7f; }
.manager-review-dock label.full { grid-column: auto; }
.manager-review-dock textarea { min-height: 44px; height: 44px; max-height: 130px; resize: vertical; overflow-y: auto; font-size: 14px; }
.manager-review-card .manager-review-dock .review-actions { position: static; width: auto; padding: 0; border: 0; background: transparent; flex-wrap: nowrap; }
.manager-review-dock .review-actions button { white-space: nowrap; }
.compact-experiment:has(> .summary-detail:not(.hidden) > .manager-review-card) > :is(.card-head,.summary-facts,.period-badge,.next-person) { display: none; }
@media(max-width:600px) {
  .manager-review-facts, .manager-review-risks, .manager-review-card .detail-grid { grid-template-columns: minmax(0,1fr); }
  .manager-review-card > .manager-review-dock { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .manager-review-card .manager-review-dock .review-actions { width: 100%; }
  .manager-review-card .card-head { flex-direction: row; align-items: flex-start; gap: 8px; }
  .manager-review-card .card-head h3 { font-size: 16px; }
  .manager-review-card .card-head .pill { flex-shrink: 0; font-size: 11px; }
}
