:root {
  --navy-950: #071624;
  --navy-900: #0b2033;
  --navy-800: #12334b;
  --navy-700: #1a4665;
  --ink: #172735;
  --ink-soft: #526476;
  --muted: #7c8b99;
  --line: #e4e9ee;
  --line-strong: #d6dee6;
  --surface: #ffffff;
  --canvas: #f3f6f8;
  --teal: #0e8c86;
  --teal-dark: #086f6a;
  --teal-soft: #e5f5f3;
  --blue: #3f76c9;
  --blue-soft: #eaf1fc;
  --amber: #be7a17;
  --amber-soft: #fff3de;
  --red: #c84d4d;
  --red-soft: #fcecec;
  --green: #31855f;
  --green-soft: #e8f5ee;
  --violet: #6b62b8;
  --violet-soft: #f0eefb;
  --slate: #637587;
  --slate-soft: #edf1f4;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .04), 0 6px 20px rgba(16, 42, 67, .04);
  --shadow-md: 0 16px 40px rgba(10, 35, 55, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(14, 140, 134, .45);
  outline-offset: 2px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  color: #dce8f0;
  background:
    radial-gradient(circle at 0 0, rgba(33, 123, 133, .18), transparent 34%),
    linear-gradient(180deg, var(--navy-950), #0b1e2e 55%, #081826);
  border-right: 1px solid rgba(255, 255, 255, .05);
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 60%);
}

.brand {
  position: relative;
  height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(102, 216, 206, .52);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(20, 150, 143, .25), rgba(20, 150, 143, .04));
  box-shadow: inset 0 0 18px rgba(45, 199, 185, .08);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  right: -3px;
  top: -3px;
  border-radius: 50%;
  background: #5ed2c6;
  box-shadow: 0 0 0 4px rgba(94, 210, 198, .12);
}

.brand-mark span {
  color: #d7fffa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .7px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  color: #f5fbfd;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: .01em;
  white-space: nowrap;
}

.brand-copy span {
  color: #8ea8ba;
  font-size: 10px;
  letter-spacing: .1em;
}

.sidebar-project {
  position: relative;
  margin: 18px 16px 8px;
}

.eyebrow {
  display: block;
  color: #8ba7b9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sidebar-project > .eyebrow {
  margin: 0 8px 8px;
}

.project-switch {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 11px;
  color: #dfeaf1;
  background: rgba(255, 255, 255, .055);
  padding: 0 10px;
  text-align: left;
  transition: background .2s, border-color .2s;
}

.project-switch:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .15);
}

.project-switch .project-switch-name {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}

.project-switch .icon {
  width: 15px;
  height: 15px;
  color: #7f9aae;
}

.project-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4bc8b9;
  box-shadow: 0 0 0 4px rgba(75, 200, 185, .1);
}

.nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 12px;
  overflow-y: auto;
}

.nav::-webkit-scrollbar {
  width: 0;
}

.nav-label {
  margin: 18px 10px 6px;
  color: #658195;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
}

.nav-item {
  position: relative;
  width: 100%;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #a9becc;
  background: transparent;
  font-size: 13px;
  text-align: left;
  transition: .2s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #5ed2c6;
  opacity: 0;
  transform: scaleY(.5);
  transition: .2s ease;
}

.nav-item:hover {
  color: #e9f4f8;
  background: rgba(255, 255, 255, .055);
}

.nav-item.active {
  color: #f2ffff;
  background: linear-gradient(90deg, rgba(14, 140, 134, .23), rgba(14, 140, 134, .07));
}

.nav-item.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item.active .icon {
  color: #6ed8cd;
}

.nav-item em {
  margin-left: auto;
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 10px;
  color: #7f9caf;
  background: rgba(255, 255, 255, .06);
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

.sidebar-footer {
  position: relative;
  margin-top: auto;
  padding: 14px 16px 17px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .1);
}

.integrity-badge {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.integrity-badge .icon {
  width: 17px;
  height: 17px;
  color: #5ed2c6;
}

.integrity-badge div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.integrity-badge strong {
  color: #d6e6ee;
  font-size: 10px;
}

.integrity-badge span {
  color: #698597;
  font-size: 8px;
}

.storage-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: #6c8799;
  font-size: 8px;
}

.storage-track {
  height: 3px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
}

.storage-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #50bbae;
  transition: width .5s ease;
}

.company-line {
  margin-top: 12px;
  color: #506e82;
  font-size: 8px;
  text-align: center;
  letter-spacing: .06em;
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 30px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #90a0ad;
  font-size: 12px;
}

.breadcrumb b {
  color: #cbd4db;
  font-weight: 400;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.today-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.today-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.top-action {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 11px;
}

.top-action:hover {
  color: var(--teal-dark);
  border-color: #b9ddd9;
  background: #f9fffe;
}

.top-action .icon {
  width: 15px;
  height: 15px;
}

.operator {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.operator-avatar {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--teal), #135f76);
  font-size: 13px;
  box-shadow: 0 5px 14px rgba(14, 140, 134, .18);
}

.operator div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.operator strong {
  font-size: 11px;
}

.operator span {
  color: var(--muted);
  font-size: 9px;
}

.mobile-menu {
  display: none;
}

.content {
  max-width: 1660px;
  min-height: calc(100vh - 70px);
  margin: 0 auto;
  padding: 28px 30px 52px;
}

.page {
  display: none;
  animation: page-in .35s ease;
}

.page.active {
  display: block;
}

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

.hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 34%, rgba(79, 207, 192, .15), transparent 25%),
    linear-gradient(120deg, #102d43 0%, #123b51 55%, #0d5b62 100%);
  box-shadow: 0 20px 48px rgba(12, 41, 61, .17);
}

.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -65px;
  bottom: -165px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, .025), 0 0 0 90px rgba(255, 255, 255, .018);
}

.hero-pattern {
  position: absolute;
  inset: 0 0 0 55%;
  opacity: .23;
  background-image:
    linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, .1) 46%, rgba(255, 255, 255, .1) 47%, transparent 48%),
    linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, .07) 46%, rgba(255, 255, 255, .07) 47%, transparent 48%);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, transparent, black);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 70%;
  padding: 38px 40px;
}

.hero-kicker {
  display: block;
  margin-bottom: 14px;
  color: #7ed9d0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(25px, 2.35vw, 36px);
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: .02em;
}

.hero p {
  max-width: 670px;
  margin: 0;
  color: #aec6d3;
  font-size: 12px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 9px;
  margin-top: 23px;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  color: #fff;
  border-color: var(--teal);
  background: linear-gradient(135deg, #129a93, #0b787c);
  box-shadow: 0 8px 18px rgba(14, 140, 134, .16);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f8e88, #086c70);
  box-shadow: 0 10px 24px rgba(14, 140, 134, .22);
}

.btn-secondary {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: #fff;
}

.btn-secondary:hover {
  color: var(--teal-dark);
  border-color: #aad5d1;
  background: #fbfffe;
}

.btn-light {
  color: var(--navy-900);
  background: #f6fffe;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.btn-light:hover {
  background: #fff;
}

.btn-glass {
  color: #e5f6f6;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(5px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, .13);
}

.btn-sm {
  min-height: 33px;
  padding: 0 11px;
  font-size: 10px;
}

.btn-block {
  width: 100%;
}

.btn-danger-ghost {
  color: #a93f3f;
  border-color: #efcece;
  background: #fff9f9;
}

.btn-danger-ghost:hover {
  background: #fff1f1;
}

.btn[disabled] {
  cursor: wait;
  opacity: .68;
}

.hero-score {
  position: relative;
  z-index: 1;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 45px;
}

.score-ring {
  --score: 0;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(#65d6c9 calc(var(--score) * 1%), rgba(255, 255, 255, .1) 0);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), inset 0 0 50px rgba(5, 25, 38, .35);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  background: rgba(12, 44, 58, .94);
}

.score-ring > div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: center;
}

.score-ring strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 500;
}

.score-ring span {
  margin-left: 2px;
  color: #87cfc8;
  font-size: 14px;
}

.score-ring small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: #82a5b6;
  font-size: 9px;
  text-align: center;
  letter-spacing: .12em;
}

.score-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: #8db1c0;
  font-size: 9px;
}

.score-caption .icon {
  width: 14px;
  height: 14px;
  color: #5ed2c6;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
}

.stat-icon .icon {
  width: 20px;
  height: 20px;
}

.stat-icon.teal { color: var(--teal); background: var(--teal-soft); }
.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon.amber { color: var(--amber); background: var(--amber-soft); }
.stat-icon.red { color: var(--red); background: var(--red-soft); }
.stat-icon.green { color: var(--green); background: var(--green-soft); }
.stat-icon.violet { color: var(--violet); background: var(--violet-soft); }
.stat-icon.slate { color: var(--slate); background: var(--slate-soft); }

.stat-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat-copy span {
  color: var(--muted);
  font-size: 10px;
}

.stat-copy strong {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.1;
}

.stat-copy small {
  color: #96a3ae;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-grid.lower {
  grid-template-columns: minmax(0, 1.25fr) minmax(400px, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 21px 14px;
}

.card-header h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 650;
}

.card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.text-btn {
  padding: 3px;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  font-size: 10px;
}

.text-btn span {
  margin-left: 3px;
}

.text-btn:hover {
  color: var(--navy-700);
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-size: 9px;
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34b3a5;
  box-shadow: 0 0 0 4px rgba(52, 179, 165, .09);
}

.completeness-card {
  min-height: 320px;
}

.module-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  padding: 3px 21px 16px;
}

.module-check {
  position: relative;
  padding: 16px 13px 13px;
  overflow: hidden;
  border: 1px solid #e9edf1;
  border-radius: 12px;
  background: #fafcfd;
}

.module-check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--check-color);
  opacity: .8;
}

.check-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.check-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--check-color);
  background: var(--check-bg);
}

.check-icon .icon {
  width: 16px;
  height: 16px;
}

.check-state {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--check-color);
}

.check-state .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
}

.check-state.pending {
  color: #a2afba;
  background: #edf1f4;
}

.module-check h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 650;
}

.module-check p {
  height: 28px;
  margin: 0;
  color: #8a98a5;
  font-size: 8px;
  line-height: 1.7;
}

.mini-progress {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: #edf1f3;
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--check-color);
}

.check-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 21px 18px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #7a8a97;
  background: #f7f9fa;
  font-size: 8px;
}

.check-footnote .icon {
  width: 13px;
  height: 13px;
  color: #5a9e96;
}

.todo-card {
  min-height: 320px;
}

.todo-list {
  padding: 0 16px 16px;
}

.todo-item {
  display: flex;
  gap: 10px;
  padding: 13px 5px;
  border-top: 1px solid #eef1f3;
}

.todo-item:first-child {
  border-top: 0;
}

.todo-bullet {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 5px;
  border: 2px solid var(--todo-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--todo-color) 10%, transparent);
}

.todo-copy {
  flex: 1;
  min-width: 0;
}

.todo-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.todo-copy span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.todo-item button {
  align-self: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 8px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 165px;
  padding: 25px;
  color: var(--muted);
  text-align: center;
}

.empty-state .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
  color: #b2c0ca;
}

.empty-state strong {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.empty-state span {
  max-width: 360px;
  font-size: 9px;
  line-height: 1.7;
}

.timeline {
  padding: 0 21px 19px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 39px;
  bottom: -10px;
  width: 1px;
  background: #e6ebef;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 10px;
  color: var(--timeline-color);
  background: var(--timeline-bg);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #edf0f2;
}

.timeline-icon .icon {
  width: 15px;
  height: 15px;
}

.timeline-copy strong {
  display: block;
  margin: 2px 0 4px;
  font-size: 10px;
  font-weight: 600;
}

.timeline-copy span {
  color: var(--muted);
  font-size: 8px;
}

.timeline-item time {
  color: #9ba7b1;
  font-size: 8px;
}

.quick-entry-card {
  padding-bottom: 18px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 2px 18px 0;
}

.quick-grid button {
  min-height: 95px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #e9edf0;
  border-radius: 11px;
  background: #fbfcfd;
  text-align: left;
  transition: .2s ease;
}

.quick-grid button:hover {
  border-color: #cbdcdd;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 54, 77, .07);
}

.quick-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 8px;
}

.quick-icon .icon {
  width: 15px;
  height: 15px;
}

.quick-icon.teal { color: var(--teal); background: var(--teal-soft); }
.quick-icon.blue { color: var(--blue); background: var(--blue-soft); }
.quick-icon.amber { color: var(--amber); background: var(--amber-soft); }
.quick-icon.red { color: var(--red); background: var(--red-soft); }
.quick-icon.violet { color: var(--violet); background: var(--violet-soft); }
.quick-icon.slate { color: var(--slate); background: var(--slate-soft); }

.quick-grid strong {
  margin-bottom: 3px;
  font-size: 9px;
}

.quick-grid small {
  color: var(--muted);
  font-size: 7px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 2px 0 22px;
}

.page-heading .eyebrow.dark {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 8px;
}

.page-heading h1 {
  margin: 0 0 7px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: .03em;
}

.page-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.metric-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.metric-box > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--metric-color);
  background: var(--metric-bg);
}

.metric-box > span .icon {
  width: 16px;
  height: 16px;
}

.metric-box div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-box strong {
  font-size: 17px;
  line-height: 1;
}

.metric-box small {
  color: var(--muted);
  font-size: 8px;
}

.module-card {
  overflow: hidden;
}

.module-toolbar {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}

.toolbar-spacer {
  flex: 1;
}

.search-box {
  width: 270px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.search-box:focus-within {
  border-color: #a8d2ce;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 140, 134, .06);
}

.search-box .icon {
  width: 15px;
  height: 15px;
  color: #95a4b0;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
}

.module-toolbar select {
  height: 34px;
  min-width: 125px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 10px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.data-table th {
  height: 39px;
  padding: 0 12px;
  color: #7d8c98;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  min-height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f2;
  color: var(--ink-soft);
  font-size: 9px;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background .15s;
}

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

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

.data-table td strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.data-table td small {
  display: block;
  margin-top: 3px;
  color: #97a4ae;
  font-size: 8px;
}

.cell-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-mini {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 10px;
  font-weight: 650;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge.success { color: #277653; background: var(--green-soft); }
.badge.warning { color: #a56a13; background: var(--amber-soft); }
.badge.danger { color: #b04444; background: var(--red-soft); }
.badge.info { color: #3470b6; background: var(--blue-soft); }
.badge.neutral { color: #687b89; background: var(--slate-soft); }
.badge.violet { color: #655cb0; background: var(--violet-soft); }

.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.attachment-pill .icon {
  width: 13px;
  height: 13px;
  color: #6f8797;
}

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

.row-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #728391;
  background: #fff;
}

.row-action:hover {
  color: var(--teal-dark);
  border-color: #b6d9d5;
  background: #f8fffe;
}

.row-action.danger:hover {
  color: var(--red);
  border-color: #eccaca;
  background: #fff8f8;
}

.row-action .icon {
  width: 14px;
  height: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 15px;
}

.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.image-card:hover {
  transform: translateY(-2px);
  border-color: #ccdce2;
  box-shadow: 0 11px 25px rgba(12, 45, 65, .09);
}

.image-visual {
  position: relative;
  height: 170px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 60, 83, .93), rgba(9, 103, 102, .76)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 9px);
}

.image-visual img,
.image-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.image-card:hover .image-visual img,
.image-card:hover .image-visual video {
  transform: scale(1.035);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, .75);
}

.image-placeholder .icon {
  width: 31px;
  height: 31px;
}

.image-placeholder span {
  font-size: 8px;
}

.image-stage {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(7, 28, 43, .7);
  backdrop-filter: blur(6px);
  font-size: 8px;
}

.hidden-tag {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  color: #ffe6bc;
  background: rgba(140, 84, 7, .72);
  backdrop-filter: blur(6px);
  font-size: 7px;
}

.hidden-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffc05b;
}

.image-body {
  padding: 13px 14px 11px;
}

.image-body h3 {
  margin: 0 0 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 650;
}

.image-body p {
  height: 30px;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.75;
}

.image-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #93a0aa;
  font-size: 8px;
}

.image-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.image-meta .icon {
  width: 12px;
  height: 12px;
}

.image-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-top: 1px solid #eef1f3;
}

.image-footer .attachment-pill {
  color: #6d8290;
}

.progress-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.progress-summary {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.progress-summary header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 9px;
}

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

.dual-progress {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dual-row {
  display: grid;
  grid-template-columns: 31px 1fr 30px;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 7px;
}

.dual-row .track {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: #edf1f3;
}

.dual-row .track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dual-row.plan .track i { background: #9aabb8; }
.dual-row.actual .track i { background: var(--teal); }

.progress-cell {
  min-width: 145px;
}

.progress-cell .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 5px;
}

.progress-cell .top span {
  color: var(--muted);
  font-size: 7px;
}

.progress-cell .top strong {
  display: inline;
  font-size: 9px;
}

.progress-cell .bar {
  height: 5px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf1f3;
}

.progress-cell .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.progress-cell .bar i.lag {
  background: var(--amber);
}

.archive-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 23px 28px;
  margin-bottom: 16px;
  border: 1px solid #dce6e8;
  border-radius: 17px;
  background:
    radial-gradient(circle at 90% 40%, rgba(20, 154, 146, .08), transparent 25%),
    linear-gradient(110deg, #f7fbfb, #fff);
  box-shadow: var(--shadow-sm);
}

.archive-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.archive-seal {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid #c5dfdc;
  border-radius: 18px;
  color: var(--teal);
  background: linear-gradient(145deg, #e7f6f4, #f7fcfb);
}

.archive-seal .icon {
  width: 30px;
  height: 30px;
}

.archive-hero-left span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.archive-hero-left strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.archive-hero-left p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.archive-hero-right {
  display: flex;
  gap: 35px;
}

.archive-hero-right div {
  min-width: 80px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.archive-hero-right strong {
  font-size: 17px;
}

.archive-hero-right span {
  color: var(--muted);
  font-size: 8px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.status-label {
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 8px;
  font-weight: 600;
}

.archive-checks {
  padding: 0 20px 8px;
}

.archive-check-row {
  display: grid;
  grid-template-columns: 37px 1fr 78px 50px;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #edf0f2;
}

.archive-check-row:first-child {
  border-top: 0;
}

.archive-check-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--check-color);
  background: var(--check-bg);
}

.archive-check-icon .icon {
  width: 16px;
  height: 16px;
}

.archive-check-main strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
}

.archive-check-main span {
  color: var(--muted);
  font-size: 8px;
}

.archive-check-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1f3;
}

.archive-check-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--check-color);
}

.archive-check-state {
  font-size: 8px;
  font-weight: 600;
  text-align: right;
}

.archive-check-state.ok { color: var(--green); }
.archive-check-state.no { color: var(--red); }

.archive-note {
  margin: 6px 20px 20px;
  padding: 12px 13px;
  border-left: 3px solid #aececb;
  border-radius: 0 8px 8px 0;
  background: #f7fafb;
}

.archive-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.archive-note p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.75;
}

.handover-card {
  padding-bottom: 20px;
}

.handover-info {
  display: grid;
  grid-template-columns: 93px 1fr;
  gap: 10px 5px;
  margin: 0 20px 17px;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafb;
  font-size: 9px;
}

.handover-info dt {
  color: var(--muted);
}

.handover-info dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}

.archive-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
}

.file-tree {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px 25px;
  padding: 0 21px 21px;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 9px;
}

.tree-row:hover {
  background: #f8fafb;
}

.tree-row.folder {
  color: var(--ink);
  font-weight: 600;
}

.tree-row .icon {
  width: 15px;
  height: 15px;
  color: #d29c43;
}

.tree-row.file .icon {
  color: #7e95a5;
}

.tree-row small {
  margin-left: auto;
  color: #9aa7b1;
  font-size: 7px;
}

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

.settings-card {
  display: flex;
  gap: 17px;
  padding: 22px;
}

.settings-card.wide {
  grid-column: 1 / -1;
}

.settings-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
}

.settings-icon .icon {
  width: 19px;
  height: 19px;
}

.settings-icon.teal { color: var(--teal); background: var(--teal-soft); }
.settings-icon.blue { color: var(--blue); background: var(--blue-soft); }
.settings-icon.amber { color: var(--amber); background: var(--amber-soft); }
.settings-icon.violet { color: var(--violet); background: var(--violet-soft); }
.settings-icon.slate { color: var(--slate); background: var(--slate-soft); }

.settings-main {
  min-width: 0;
  flex: 1;
}

.settings-main h2 {
  margin: 0 0 5px;
  font-size: 14px;
}

.settings-main > p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

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

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.settings-form label,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.settings-form label > span,
.form-field > span,
.form-label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.settings-form input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
}

.form-field textarea {
  height: 74px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.6;
}

.settings-form input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #9dcdc8;
  box-shadow: 0 0 0 3px rgba(14, 140, 134, .06);
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 13px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #8a681f;
  background: #fff8e9;
  font-size: 8px;
  line-height: 1.6;
}

.notice-line .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfd;
}

.project-row.active {
  border-color: #badad7;
  background: #f5fbfa;
}

.project-row-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--teal);
  background: var(--teal-soft);
}

.project-row-icon .icon {
  width: 15px;
  height: 15px;
}

.project-row-copy {
  min-width: 0;
  flex: 1;
}

.project-row-copy strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 9px;
}

.project-row-copy span {
  color: var(--muted);
  font-size: 8px;
}

.project-row .badge {
  flex: 0 0 auto;
}

.audit-list {
  max-height: 330px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.audit-row {
  display: grid;
  grid-template-columns: 126px 1fr 100px;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  border-bottom: 1px solid #eef1f3;
  font-size: 8px;
}

.audit-row time {
  color: #8f9da8;
}

.audit-row strong {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 500;
}

.audit-row span {
  color: var(--muted);
  text-align: right;
}

.modal-root:empty {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 20, 31, .58);
  backdrop-filter: blur(4px);
  animation: fade-in .2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 14, 23, .28);
  animation: modal-in .25s cubic-bezier(.2, .8, .2, 1);
}

.modal.wide {
  width: min(940px, 100%);
}

.modal.small {
  width: min(520px, 100%);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 23px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.modal-close {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #80909c;
  background: #f5f7f9;
}

.modal-close:hover {
  color: var(--ink);
  background: #edf1f3;
}

.modal-close .icon {
  width: 17px;
  height: 17px;
}

.modal-body {
  overflow-y: auto;
  padding: 20px 23px 23px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 23px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

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

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

.form-grid .third {
  grid-column: span 1;
}

.required::after {
  content: " *";
  color: #cf5555;
}

.field-help {
  margin-top: -2px;
  color: #99a6b0;
  font-size: 8px;
  line-height: 1.5;
}

.batch-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-file-summary {
  grid-column: 1 / -1;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid #e5ecee;
  border-radius: 8px;
  color: #80909b;
  background: #fbfcfd;
  font-size: 8px;
  line-height: 1.7;
}

.batch-file-summary > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.batch-file-summary > div + div {
  border-top: 1px solid #edf1f3;
}

.batch-file-summary small {
  margin-left: auto;
  color: #7b8b96;
  font-size: 8px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  font-size: 9px;
}

.check-field input {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}

.field-group-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  padding-bottom: 7px;
  border-bottom: 1px solid #eef1f3;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}

.field-group-title::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 3px;
  background: var(--teal);
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 15px;
  border: 1px dashed #b9cdd1;
  border-radius: 10px;
  color: var(--ink-soft);
  background: #f9fcfc;
  text-align: center;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: #83bbb5;
  background: #f5fbfa;
}

.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-zone .icon {
  width: 25px;
  height: 25px;
  margin-bottom: 7px;
  color: #67a9a3;
}

.upload-zone strong {
  margin-bottom: 3px;
  font-size: 9px;
}

.upload-zone span {
  color: var(--muted);
  font-size: 8px;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #e7ecef;
  border-radius: 8px;
  background: #fbfcfd;
}

.attachment-item .file-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: #6c8291;
  background: #eef2f4;
}

.attachment-item .file-icon .icon {
  width: 14px;
  height: 14px;
}

.attachment-item div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.attachment-item strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 8px;
}

.attachment-item small {
  color: var(--muted);
  font-size: 7px;
}

.file-remove {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #9b6870;
  background: transparent;
}

.file-remove:hover {
  background: var(--red-soft);
}

.file-remove .icon {
  width: 13px;
  height: 13px;
}

.form-error {
  margin: 12px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #a43d3d;
  background: #fff0f0;
  font-size: 9px;
}

.confirm-copy {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.confirm-copy strong {
  color: var(--ink);
}

.project-picker {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.project-option:hover,
.project-option.active {
  border-color: #abd3cf;
  background: #f7fcfb;
}

.project-option div {
  min-width: 0;
  flex: 1;
}

.project-option strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
}

.project-option span {
  color: var(--muted);
  font-size: 8px;
}

.project-option .icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.detail-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 11px;
  margin: 0;
  font-size: 10px;
}

.detail-grid dt {
  color: var(--muted);
}

.detail-grid dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  word-break: break-word;
}

.detail-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 11px;
  font-size: 11px;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.detail-gallery a,
.detail-gallery .detail-file {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f6f8f9;
  text-decoration: none;
}

.detail-gallery img,
.detail-gallery > video {
  width: 100%;
  height: 115px;
  display: block;
  object-fit: cover;
  background: #081826;
}

.detail-file {
  min-height: 70px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.detail-file .icon {
  width: 22px;
  height: 22px;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 250px;
  max-width: 390px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #dce5e8;
  border-radius: 10px;
  color: var(--ink-soft);
  background: #fff;
  box-shadow: 0 15px 35px rgba(7, 30, 45, .15);
  font-size: 9px;
  line-height: 1.65;
  animation: toast-in .25s ease;
  pointer-events: auto;
}

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

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }

.toast .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.toast.success .icon { color: var(--green); }
.toast.error .icon { color: var(--red); }
.toast.info .icon { color: var(--blue); }

.loading-block {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid #dfe8eb;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

@media (max-width: 1220px) {
  :root { --sidebar-width: 260px; }
  .content { padding: 24px 22px 46px; }
  .topbar { padding: 0 22px; }
  .hero-copy { width: 68%; padding: 32px; }
  .hero-score { width: 32%; padding-right: 28px; }
  .module-checks { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid.lower { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-card.wide { grid-column: auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 0px; }
  .sidebar {
    width: 252px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: 20px 0 50px rgba(0, 0, 0, .2);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-menu { display: grid; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-copy { width: 70%; }
  .hero-score { width: 30%; }
  .archive-layout { grid-template-columns: 1fr; }
  .file-tree { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .content { padding: 16px 13px 40px; }
  .topbar { height: 61px; padding: 0 13px; }
  .today-chip, .top-action, .operator > div:last-child, .breadcrumb > span, .breadcrumb > b { display: none; }
  .operator { padding-left: 9px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-copy { width: 100%; padding: 28px 24px 16px; }
  .hero-score { width: 100%; align-items: flex-start; padding: 4px 24px 25px; }
  .score-ring { width: 105px; height: 105px; }
  .score-ring strong { font-size: 30px; }
  .score-caption { margin-top: 9px; }
  .stat-grid, .metric-row, .progress-overview { grid-template-columns: repeat(2, 1fr); }
  .module-checks { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 23px; }
  .module-toolbar { align-items: stretch; flex-wrap: wrap; }
  .search-box { width: 100%; }
  .toolbar-spacer { display: none; }
  .module-toolbar select { flex: 1; }
  .gallery-grid { grid-template-columns: 1fr; }
  .settings-card { flex-direction: column; }
  .archive-hero { align-items: flex-start; flex-direction: column; }
  .archive-hero-right { width: 100%; justify-content: space-between; gap: 12px; }
  .archive-hero-right div { text-align: left; }
  .file-tree { grid-template-columns: 1fr; }
  .form-grid, .form-row { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: calc(100vh - 20px); border-radius: 14px; }
  .modal-header, .modal-body { padding-left: 17px; padding-right: 17px; }
  .modal-footer { padding-left: 17px; padding-right: 17px; }
  .audit-row { grid-template-columns: 100px 1fr; }
  .audit-row span { display: none; }
  .archive-check-row { grid-template-columns: 33px 1fr 50px; }
  .archive-check-bar { display: none; }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .page-heading .btn, .toast-stack, .modal-root { display: none !important; }
  .main { margin: 0; }
  .content { max-width: none; padding: 0; }
  .page { display: none !important; }
  .page.active { display: block !important; }
}

/* Readability pass for desktop field use */
.breadcrumb,
.today-chip,
.top-action,
.operator strong,
.hero p {
  font-size: 12px;
}

.operator span,
.hero-kicker,
.score-caption,
.stat-copy span,
.stat-copy small,
.card-header p,
.text-btn,
.section-subtitle,
.eyebrow,
.page-heading .eyebrow.dark {
  font-size: 10px;
}

.card-header h2 {
  font-size: 15px;
}

.stat-copy strong {
  font-size: 23px;
}

.module-check h3,
.todo-copy strong,
.timeline-copy strong,
.quick-grid strong,
.image-body h3,
.progress-summary header,
.settings-main h2 {
  font-size: 12px;
}

.module-check p,
.todo-copy span,
.timeline-copy span,
.quick-grid small,
.image-body p,
.image-meta,
.image-footer,
.check-footnote,
.archive-note p,
.settings-main > p,
.project-row-copy span,
.notice-line,
.tree-row,
.handover-info,
.form-label,
.settings-form label > span,
.form-field > span,
.form-field input,
.form-field select,
.form-field textarea,
.settings-form input,
.check-field,
.upload-zone span,
.attachment-item small,
.field-help {
  font-size: 10px;
}

.data-table th {
  font-size: 10px;
}

.data-table td {
  font-size: 11px;
}

.data-table td strong,
.data-table td small {
  font-size: 10px;
}

.badge,
.attachment-pill,
.tree-row small,
.audit-row,
.audit-row strong,
.detail-grid,
.confirm-copy,
.modal-header p,
.page-heading p {
  font-size: 10px;
}

.modal-header h2 {
  font-size: 19px;
}

.detail-grid {
  grid-template-columns: 140px 1fr;
  line-height: 1.75;
}

.quick-grid button {
  min-height: 101px;
}

.page-heading p {
  font-size: 12px;
}

@media (max-width: 720px) {
  .nav-item {
    font-size: 14px;
  }

  .data-table td {
    font-size: 12px;
  }
}
