@font-face {
  font-family: Inter;
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sidebar: #0e2438;
  --sidebar-2: #0b1d2e;
  --ink: #17294a;
  --heading: #14284a;
  --muted: #6d7c90;
  --faint: #8b99a8;
  --line: #e5edf4;
  --line-strong: #d5deea;
  --bg: #f3f6fa;
  --blue: #1e4f8c;
  --blue-dark: #183f70;
  --red: #e11d2e;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16, 39, 68, 0.04);
  --sans: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }

.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon svg { width: 18px; height: 18px; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.noscript { padding: 24px; }

#app { display: flex; align-items: stretch; min-height: 100vh; width: 100%; }

.sidebar {
  width: 252px;
  flex: none;
  background: var(--sidebar);
  color: white;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand { padding: 18px 16px 6px; }
.brand-nutek { height: 44px; width: auto; display: block; }
.brand-gs {
  margin-top: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 7px 10px 6px;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand-gs img { height: 28px; width: auto; display: block; }
.brand-label {
  margin: 16px 18px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.48);
}
.nav { display: flex; flex-direction: column; padding: 4px 0 12px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 18px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
}
.nav-link .icon { color: rgba(255, 255, 255, 0.72); }
.nav-link:hover { background: rgba(255, 255, 255, 0.04); color: white; }
.nav-link.active {
  background: rgba(255, 255, 255, 0.07);
  color: white;
  border-left-color: var(--red);
}
.nav-link.active .icon { color: white; }
.nav-count {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}
.side-foot { margin-top: auto; padding: 8px 0 14px; }
.ws-card {
  margin: 0 12px 8px;
  padding: 12px 12px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}
.ws-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
}
.ws-dot { width: 8px; height: 8px; border-radius: 50%; background: #e39b2e; flex: none; }
.ws-sub { margin: 4px 0 0 16px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 4px;
  position: relative;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d9e3ee;
  color: #173056;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.user-meta { min-width: 0; flex: 1; }
.user-name { font-size: 13.5px; font-weight: 600; color: white; line-height: 1.2; }
.user-role { font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.icon-btn {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px;
  border-radius: 8px;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.popover {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 58px;
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  z-index: 5;
}
.popover.open { display: block; }
.popover strong { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.popover .email { display: block; margin: 4px 0 8px; font-size: 13.5px; word-break: break-all; }
.popover p { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.popover a { font-weight: 600; font-size: 13.5px; text-decoration: none; }
.popover a:hover { text-decoration: underline; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 28px 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.top-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--heading); min-width: 0; }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumb-sep { color: #c0cad4; }
.top-right { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; flex: none; }
.private-label { display: inline-flex; align-items: center; white-space: nowrap; }
.priv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8aa0b5;
  display: inline-block;
  margin-right: 6px;
}
.top-avatar { width: 32px; height: 32px; font-size: 11px; }
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--ink);
}
.scrim { display: none; }

.content { flex: 1; }
.content-wrap { padding: 26px 32px 36px; max-width: 1180px; }
.page-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 28px 18px;
  color: #9aa8b6;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-top: 1px solid transparent;
}
.page-footer .mid { letter-spacing: 0.12em; text-align: center; }
.page-footer .right { text-align: right; letter-spacing: 0; font-size: 12.5px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--heading);
  font-weight: 700;
}
.lede { margin-top: 6px; color: var(--muted); font-size: 15px; }
h2 { font-size: 16px; color: var(--heading); font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--blue);
  color: white;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn .icon svg { width: 16px; height: 16px; }
.btn-secondary { background: white; color: #1c334f; border-color: var(--line-strong); }
.btn-secondary:hover { background: #f4f7fb; }
.text-btn {
  background: none;
  border: 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  padding: 0;
}
.text-btn:hover { text-decoration: underline; }
.btn-danger-text {
  background: none;
  border: 0;
  color: #b42318;
  font-weight: 600;
  padding: 8px 0;
}
.quiet-link { color: var(--blue); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; }
.inline-links { display: flex; align-items: center; gap: 12px; }

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7f9fb;
  border: 1px solid #e4ebf3;
  border-radius: 12px;
  padding: 11px 14px;
}
.banner-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.info-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #9aabbc;
  color: #607286;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.banner strong { color: var(--heading); font-size: 14px; }
.banner .status { color: var(--muted); }
.dot-sep { color: #b7c3cf; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 22px;
}
.stat, .panel, .project-card, .list-card, .note-card, .ref-card, .folder-card, .table-card, .notice {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.stat { padding: 16px 16px 14px; min-height: 118px; }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.stat-label { font-weight: 600; font-size: 14px; color: var(--heading); }
.stat .icon { color: #b7c2ce; }
.stat-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 8px;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-caption { color: var(--faint); font-size: 13px; margin-top: 6px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 12px;
}
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { padding: 16px 18px 12px; }
.kicker-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kicker { font-size: 12px; color: var(--faint); letter-spacing: 0.02em; }
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #415066;
}
.badge.Planning { background: #f6e7c3; color: #8a6232; }
.badge.Design { background: #e3eef8; color: #1d4e89; }
.badge.Build { background: #e7e4f6; color: #533e8c; }
.badge.Testing { background: #f8eadc; color: #8a4e16; }
.badge.Complete { background: #e3f2e8; color: #1d6b42; }
.project-card h3 { font-size: 16.5px; margin: 10px 0 2px; letter-spacing: -0.015em; color: var(--heading); }
.customer { color: var(--muted); font-size: 14px; }
.divider { height: 1px; background: #eef2f6; margin: 12px 0 10px; }
.progress-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.bar { height: 4px; background: #e6edf3; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}
.when { display: inline-flex; align-items: center; gap: 6px; }
.when .icon svg { width: 15px; height: 15px; }

.split { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 16px; margin-top: 16px; }
.panel { padding: 16px 18px 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.panel .view-all { display: inline-block; margin-top: 12px; }
.docs-empty { width: 100%; background: transparent; border: 0; padding: 8px 0 0; text-align: center; color: inherit; }
.docs-empty-hint { display: block; color: var(--faint); font-size: 14px; margin: 14px 0 12px; }
.dashed-box {
  display: block;
  border: 1px dashed #d5deea;
  border-radius: 10px;
  padding: 16px 14px;
  color: var(--faint);
  font-size: 13.5px;
  background: #fbfcfe;
  line-height: 1.45;
}
.docs-empty:hover .dashed-box { border-color: #9eb4cc; background: #f7fafc; }
.mini-docs { list-style: none; margin: 8px 0 0; padding: 0; }
.mini-docs li { padding: 8px 0; border-top: 1px solid #f0f4f8; }
.mini-docs a { font-weight: 600; text-decoration: none; }
.mini-docs a:hover { text-decoration: underline; }
.mini-docs span { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; }

.toolbar { display: flex; gap: 12px; align-items: center; margin: 4px 0 16px; flex-wrap: wrap; }
.search { position: relative; width: min(360px, 100%); }
.search input, .filter, .field input, .field select, .field textarea, .cell-input {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: white;
  padding: 10px 12px;
}
.search input { width: 100%; height: 42px; padding-left: 36px; }
.search .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.filter { height: 42px; width: 190px; padding-right: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 13px; font-weight: 600; color: var(--heading); }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }
.form-error { color: #a11d2e; font-size: 13px; margin: 0 0 8px; }
.form-error:empty { display: none; }

.list-card { padding: 4px 16px; }
.task-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 2px 10px;
  align-items: center;
  padding: 13px 2px;
}
.task-row + .task-row { border-top: 1px solid #eef2f6; }
.task-row input[type="checkbox"] { grid-row: 1 / span 2; width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.task-title { font-weight: 600; font-size: 14.5px; color: #17305a; }
.task-row.done .task-title { color: #8b97a6; text-decoration: line-through; }
.task-meta { grid-column: 2; color: var(--faint); font-size: 13px; }
.task-edit { grid-column: 3; grid-row: 1; }

.folder-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.folder-card h2 { margin-bottom: 12px; }
.folder-status { color: #2f7d4e; font-size: 13px; font-weight: 600; margin: -6px 0 10px; }

.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.cards .empty-copy { grid-column: 1 / -1; margin: 12px 0; }
td { padding: 14px 16px; border-bottom: 1px solid #f2f5f8; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.doc-name { font-weight: 600; color: var(--blue); text-decoration: none; }
.doc-name:hover { text-decoration: underline; }
.doc-name.plain { color: var(--heading); }
.empty-cell { text-align: center; color: var(--faint); padding: 28px 16px; }
.callout {
  margin-top: 14px;
  border: 1px dashed #d5deea;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--faint);
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.55);
}
.empty-copy { text-align: center; color: var(--faint); margin: 56px 16px; font-size: 14.5px; }
.filter-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.note-list { display: flex; flex-direction: column; gap: 12px; }
.note-card { padding: 16px 18px; }
.note-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.kind {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.kind.decision { background: #e5eef8; color: #1d4e89; }
.kind.question { background: #f6e7c3; color: #8a6232; }
.kind.note { background: #eef2f6; color: #415066; }
.note-card h2 { font-size: 16.5px; margin-bottom: 6px; }
.note-body { white-space: pre-wrap; color: #24344d; }
.note-meta { margin-top: 10px; color: var(--faint); font-size: 12.5px; }

.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ref-card {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 188px;
}
.ref-card .icon { color: #243b5c; }
.ref-card .icon svg { width: 22px; height: 22px; }
.ref-card h2 { margin-top: 4px; }
.ref-card p { color: var(--muted); font-size: 14px; flex: 1; }
.template-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.save-status { color: var(--faint); font-size: 13px; margin-top: 6px; }
.check-list { display: flex; flex-direction: column; }
.check-item { padding: 12px 0; border-top: 1px solid #eef2f6; }
.check-item:first-child { border-top: 0; }
.check-line { display: flex; gap: 10px; align-items: flex-start; }
.check-line input { margin-top: 3px; accent-color: var(--blue); }
.check-item textarea { width: 100%; margin: 8px 0 0; min-height: 58px; }
.item-label-input { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.section-card h2 { margin-bottom: 4px; }
.hint { color: var(--faint); font-size: 13px; margin-bottom: 8px; }
.section-card textarea { width: 100%; min-height: 110px; }
.register-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cell-input { width: 100%; min-width: 90px; padding: 8px 10px; border-radius: 8px; }
.row-x {
  background: none;
  border: 0;
  color: #8b99a8;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
}
.row-x:hover { color: #b42318; }
.back-link { display: inline-flex; margin-bottom: 12px; }

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 32, 51, 0.46);
}
.modal {
  width: min(560px, 100%);
  background: white;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 80px rgba(10, 24, 40, 0.28);
  max-height: min(88vh, 840px);
  overflow: auto;
}
.modal h2 { margin-bottom: 14px; font-size: 20px; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 6px; }
.modal-actions .btn-danger-text { margin-right: auto; }
.notice { padding: 28px 24px; max-width: 560px; }
.notice h1 { font-size: 26px; margin-bottom: 8px; }
.notice p { color: var(--muted); margin-bottom: 16px; }
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #13283f;
  color: white;
  padding: 12px 14px;
  border-radius: 10px;
  z-index: 70;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 1100px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .cards, .split, .ref-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .sidebar {
    position: fixed;
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 30, 0.45);
    z-index: 25;
  }
  .content-wrap { padding: 18px 16px 28px; }
  .topbar { padding: 0 14px; }
  .private-label { display: none; }
  .banner { align-items: flex-start; flex-direction: column; }
  .page-head, .folder-card, .template-head, .field-row { flex-direction: column; grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .toolbar .search, .toolbar .filter { width: 100%; }
  .page-footer { grid-template-columns: 1fr; text-align: center; }
  .page-footer .right { text-align: center; }
  .hide-sm { display: none; }
}
