:root {
  color-scheme: dark;
  --bg: #0d1014;
  --bg-deep: #090b0e;
  --surface: #14191f;
  --surface-raised: #1a2027;
  --surface-soft: #202831;
  --line: #2a333d;
  --line-strong: #3a4652;
  --text: #f2f5f7;
  --muted: #929da8;
  --muted-strong: #b8c0c8;
  --mint: #6fe0b5;
  --mint-deep: #3fb88a;
  --blue: #76a8ff;
  --amber: #efc66e;
  --rose: #ff8390;
  --danger: #ff6f7e;
  --radius: 8px;
  --sidebar: 252px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, Inter, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
summary,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
summary {
  cursor: pointer;
}

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

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.eyebrow {
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(111, 224, 181, 0.55);
  border-radius: 8px;
  background: #101a18;
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 29px;
  font-style: italic;
  font-weight: 700;
}

.brand-mark-small {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 20px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button-primary {
  background: var(--mint);
  color: #07110e;
}

.button-primary:hover {
  background: #8ae9c5;
}

.button-secondary {
  border-color: #416255;
  background: #17231f;
  color: #a9f0d5;
}

.button-secondary:hover {
  border-color: var(--mint);
}

.button-ghost,
.button-quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted-strong);
}

.button-quiet {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.button-ghost:hover,
.button-quiet:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.button-danger {
  border-color: rgba(255, 111, 126, 0.32);
  background: rgba(255, 111, 126, 0.08);
  color: #ff9da6;
}

.button-wide {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 17px;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.field {
  display: grid;
  gap: 7px;
}

.field > span,
.field legend {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #10151a;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #626c76;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 3px rgba(111, 224, 181, 0.1);
}

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

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

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 12px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--mint);
}

.alert,
.toast {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

.alert-error,
.toast.alert-error {
  border-color: rgba(255, 111, 126, 0.36);
  background: rgba(255, 111, 126, 0.08);
  color: #ffc2c8;
}

.alert-success,
.toast.alert-success {
  border-color: rgba(111, 224, 181, 0.36);
  background: rgba(111, 224, 181, 0.08);
  color: #b5f3dc;
}

.auth-page {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.auth-shell {
  display: grid;
  width: min(1080px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 9vw, 128px);
  padding: 64px 0;
}

.auth-shell-compact {
  width: min(980px, calc(100% - 40px));
}

.auth-intro {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.auth-intro h1 {
  max-width: 680px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
}

.auth-intro > p:last-of-type {
  max-width: 540px;
  color: var(--muted-strong);
  font-size: 16px;
}

.auth-card {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 25, 31, 0.94);
  box-shadow: var(--shadow);
}

.auth-card > h2,
.auth-card-head h2 {
  margin-top: 4px;
  font-size: 27px;
}

.auth-card .form-stack {
  margin-top: 26px;
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-badge {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid #416255;
  border-radius: 6px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.form-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.auth-switch {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.auth-switch a {
  color: var(--mint);
  font-weight: 700;
}

.auth-schedule {
  display: grid;
  min-width: 260px;
  gap: 3px;
  padding: 18px 20px;
  border-left: 2px solid var(--mint);
  background: rgba(111, 224, 181, 0.05);
}

.auth-schedule span,
.auth-schedule small {
  color: var(--muted);
  font-size: 11px;
}

.auth-schedule strong {
  font-size: 19px;
}

.waiting-shell {
  display: grid;
  width: min(660px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  place-content: center;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.waiting-shell h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.16;
}

.waiting-shell > p:not(.eyebrow) {
  max-width: 530px;
  color: var(--muted-strong);
}

.waiting-status {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid #416255;
  border-radius: 50%;
  background: #12201a;
}

.waiting-status span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(111, 224, 181, 0.09);
}

.waiting-actions {
  display: flex;
  gap: 10px;
}

.app-page {
  background: var(--bg);
}

.app-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 100vh;
  min-height: 640px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #101419;
}

.sidebar-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 24px 22px;
}

.sidebar-brand > span:last-child {
  display: grid;
  min-width: 0;
}

.sidebar-brand strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-brand small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border-top: 1px solid var(--line);
}

.nav-link {
  display: grid;
  min-height: 45px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.nav-link:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-link.is-active {
  border-color: #33453e;
  background: #17201d;
  color: #c7f5e4;
}

.nav-icon {
  color: var(--muted);
  font-size: 17px;
  text-align: center;
}

.nav-link.is-active .nav-icon {
  color: var(--mint);
}

.nav-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 10px;
  background: var(--rose);
  color: #1a080a;
  font-size: 10px;
}

.sidebar-project {
  margin: auto 14px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.sidebar-project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.sidebar-project-head strong {
  color: var(--text);
}

.progress-track,
.stat-bar {
  overflow: hidden;
  height: 5px;
  margin: 11px 0;
  border-radius: 3px;
  background: #283039;
}

.progress-track span,
.stat-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

.sidebar-project p {
  color: var(--muted);
  font-size: 10px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.user-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
}

.user-link > span:last-child {
  display: grid;
  min-width: 0;
}

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

.user-link strong {
  font-size: 12px;
}

.user-link small {
  color: var(--muted);
  font-size: 10px;
}

.avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid #3c5149;
  border-radius: 50%;
  background: #1a2923;
  color: #b8f4dd;
  font-size: 13px;
  font-weight: 800;
}

.app-main {
  min-width: 0;
  padding: 40px clamp(24px, 4vw, 64px) 30px;
}

.mobile-header {
  display: none;
}

.page-header {
  display: flex;
  min-height: 112px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.page-header h1 {
  margin-top: 6px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.page-header > div:first-child > p:last-child {
  margin-top: 9px;
  color: var(--muted);
}

.project-dday,
.header-fact {
  display: grid;
  min-width: 190px;
  justify-items: end;
}

.project-dday span,
.header-fact span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.project-dday strong,
.header-fact strong {
  color: var(--mint);
  font-size: 34px;
  line-height: 1.12;
}

.header-fact strong {
  color: var(--text);
  font-size: 24px;
}

.project-dday small,
.header-fact small {
  color: var(--muted);
  font-size: 11px;
}

.header-fact.is-alert strong {
  color: var(--rose);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-item {
  display: grid;
  min-width: 0;
  min-height: 120px;
  align-content: center;
  gap: 4px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.metric-item:last-child {
  border-right: 0;
}

.metric-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.metric-item strong {
  overflow: hidden;
  font-size: clamp(18px, 2vw, 24px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header.compact {
  min-height: 68px;
}

.panel-header h2 {
  margin-top: 2px;
  font-size: 18px;
}

.text-link {
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.72fr);
  gap: 20px;
}

.dashboard-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.calendar-panel {
  min-width: 0;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  height: 36px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.calendar-weekdays span:first-child {
  color: #d98b94;
}

.calendar-cell {
  position: relative;
  min-width: 0;
  min-height: 104px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #12171c;
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-cell.is-outside {
  background: #101419;
  color: #505861;
}

.calendar-cell.is-past {
  background: #11151a;
  color: #69727b;
}

.calendar-cell.is-today::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(111, 224, 181, 0.52);
  border-radius: 5px;
  content: "";
  pointer-events: none;
}

.calendar-day-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 750;
}

.calendar-cell.is-today .calendar-day-number {
  background: var(--mint);
  color: #09120f;
}

.calendar-events {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  margin-top: 5px;
}

.calendar-event {
  display: block;
  overflow: hidden;
  padding: 3px 5px;
  border-left: 2px solid var(--mint);
  border-radius: 2px;
  background: #1b2924;
  color: #c3efdf;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.milestone-event {
  border-left-color: var(--blue);
  background: #1a2230;
  color: #c7d7f5;
}

.calendar-event.color-amber {
  border-left-color: var(--amber);
  background: #282318;
  color: #ead7aa;
}

.calendar-event.color-rose {
  border-left-color: var(--rose);
  background: #2a1b20;
  color: #f0bdc4;
}

.calendar-event.color-mint {
  border-left-color: var(--mint);
}

.calendar-cell.is-past .calendar-event {
  border-left-color: #5c646c;
  background: #1a1e23;
  color: #7e8790;
}

.calendar-more {
  color: var(--muted);
  font-size: 9px;
}

.calendar-legend {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.legend-dot.milestone {
  background: var(--blue);
}

.legend-dot.past {
  background: #555e67;
}

.next-panel,
.phase-panel {
  overflow: hidden;
}

.next-panel > h3,
.next-panel > .session-time,
.next-panel > form,
.next-panel > .next-date,
.phase-panel > h3,
.phase-panel > p,
.phase-panel > strong,
.phase-panel > span:not(.phase-state),
.phase-panel > .phase-state {
  margin-right: 20px;
  margin-left: 20px;
}

.next-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.next-date strong {
  font-size: 42px;
  line-height: 1;
}

.next-date span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.next-panel > h3 {
  margin-top: 18px;
  font-size: 18px;
}

.session-time {
  color: var(--muted);
  font-size: 11px;
}

.quick-attendance {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101419;
}

.segmented-control label {
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.segmented-control span {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.segmented-control input:checked + span {
  border-color: #385448;
  background: #1b2924;
  color: #bcf1dc;
}

.reason-field {
  display: none;
}

.reason-field.is-visible {
  display: grid;
}

.phase-accent {
  height: 3px;
  background: var(--mint);
}

.color-mint {
  --item-color: var(--mint);
}

.color-blue {
  --item-color: var(--blue);
}

.color-amber {
  --item-color: var(--amber);
}

.color-rose {
  --item-color: var(--rose);
}

.phase-accent.color-mint,
.color-swatch.color-mint,
.milestone-index.color-mint {
  background: var(--mint);
}

.phase-accent.color-blue,
.color-swatch.color-blue,
.milestone-index.color-blue {
  background: var(--blue);
}

.phase-accent.color-amber,
.color-swatch.color-amber,
.milestone-index.color-amber {
  background: var(--amber);
}

.phase-accent.color-rose,
.color-swatch.color-rose,
.milestone-index.color-rose {
  background: var(--rose);
}

.phase-panel .phase-state {
  display: block;
  margin-top: 18px;
}

.phase-state {
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.phase-panel h3 {
  margin-top: 5px;
  font-size: 20px;
}

.phase-panel p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.phase-dday {
  display: block;
  margin-top: 16px;
  margin-bottom: 20px;
  color: var(--mint);
  font-size: 27px;
}

.empty-state {
  display: grid;
  min-height: 130px;
  place-content: center;
  gap: 4px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--muted-strong);
}

.empty-state p {
  font-size: 11px;
}

.upcoming-strip {
  margin-top: 20px;
}

.upcoming-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.upcoming-item {
  display: grid;
  min-width: 0;
  min-height: 86px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-right: 1px solid var(--line);
  transition: background-color 150ms ease;
}

.upcoming-item:last-child {
  border-right: 0;
}

.upcoming-item:hover {
  background: var(--surface-raised);
}

.upcoming-item time {
  color: var(--mint);
  font-size: 17px;
  font-weight: 800;
}

.upcoming-item > span {
  display: grid;
  min-width: 0;
}

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

.upcoming-item strong {
  font-size: 11px;
}

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

.upcoming-item .status-pill {
  grid-column: 1 / -1;
  justify-self: start;
}

.status-pill {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.status-upcoming,
.status-approved,
.status-attending {
  border-color: rgba(111, 224, 181, 0.32);
  background: rgba(111, 224, 181, 0.08);
  color: #a7eed3;
}

.status-absent,
.status-rejected,
.status-suspended {
  border-color: rgba(255, 131, 144, 0.3);
  background: rgba(255, 131, 144, 0.07);
  color: #ffabb4;
}

.status-pending {
  border-color: rgba(239, 198, 110, 0.3);
  background: rgba(239, 198, 110, 0.08);
  color: #f2d89f;
}

.status-past,
.status-empty {
  border-color: var(--line);
  background: #191f25;
  color: var(--muted);
}

.attendance-list {
  display: grid;
  gap: 12px;
}

.attendance-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 92px minmax(220px, 1fr) minmax(310px, 420px);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 20px;
  transition: border-color 150ms ease, transform 150ms ease;
}

.attendance-row:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.attendance-row.is-past {
  background: #12161b;
  color: #858e97;
}

.attendance-date {
  display: grid;
  place-content: center;
  justify-items: center;
  border-right: 1px solid var(--line);
}

.attendance-date span,
.attendance-date small {
  color: var(--muted);
  font-size: 9px;
}

.attendance-date strong {
  font-size: 30px;
  line-height: 1.1;
}

.attendance-info {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 20px;
}

.attendance-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.attendance-title-line h2 {
  font-size: 17px;
}

.attendance-title-line p,
.meeting-note {
  color: var(--muted);
  font-size: 10px;
}

.team-responses {
  display: flex;
  gap: 5px;
}

.response-person {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #171c22;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.response-person.is-attending {
  border-color: #3d6a58;
  background: #1b2b25;
  color: var(--mint);
}

.response-person.is-absent {
  border-color: #6c3e45;
  background: #2a1c20;
  color: var(--rose);
}

.attendance-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.85fr) auto;
  align-items: end;
  gap: 9px;
  padding: 18px;
  border-left: 1px solid var(--line);
}

.attendance-form .segmented-control {
  align-self: end;
}

.create-panel {
  margin-bottom: 24px;
}

.create-panel > summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  list-style: none;
}

.create-panel > summary::-webkit-details-marker,
.management-row > summary::-webkit-details-marker,
.inline-editor > summary::-webkit-details-marker {
  display: none;
}

.create-panel > summary > span {
  display: flex;
  align-items: center;
  gap: 13px;
}

.create-panel > summary b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #406253;
  border-radius: 6px;
  color: var(--mint);
  font-size: 18px;
}

.create-panel > summary span span {
  display: grid;
}

.create-panel > summary small,
.create-panel > summary i {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.create-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}

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

.field-span-2 {
  grid-column: 1 / -1;
}

.mode-control {
  margin-top: 7px;
}

.input-unit {
  position: relative;
  display: block;
}

.input-unit input {
  padding-right: 38px;
}

.input-unit i {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  transform: translateY(-50%);
}

.color-options {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.color-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.color-swatch {
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.color-options input:checked + .color-swatch {
  box-shadow: 0 0 0 2px var(--text);
}

.roadmap-board {
  padding: 4px 0 20px;
}

.roadmap-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.roadmap-scale b {
  color: var(--muted-strong);
  letter-spacing: 0.14em;
}

.roadmap-line {
  position: relative;
  height: 5px;
  margin: 16px 0 28px;
  border-radius: 3px;
  background: #252d35;
}

.roadmap-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-deep);
}

.roadmap-line i {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--mint);
  transform: translate(-50%, -50%);
}

.milestone-list {
  display: grid;
  gap: 12px;
}

.milestone-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.milestone-item.is-active {
  border-color: #426356;
}

.milestone-item.is-past {
  background: #12161a;
  color: #777f87;
}

.milestone-index {
  display: grid;
  place-items: center;
  background: var(--mint);
  color: #101412;
  font-size: 17px;
  font-weight: 900;
}

.milestone-item.is-past .milestone-index {
  background: #4b535b;
  color: #c2c7cc;
}

.milestone-content {
  min-width: 0;
  padding: 20px 22px;
}

.milestone-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.milestone-heading h2 {
  margin-top: 2px;
  font-size: 21px;
}

.milestone-heading > strong {
  color: var(--mint);
  font-size: 20px;
}

.milestone-item.is-past .milestone-heading > strong,
.milestone-item.is-past .phase-state {
  color: #777f87;
}

.milestone-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
}

.milestone-meta i {
  font-style: normal;
}

.milestone-meta b {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 9px;
}

.milestone-content > p {
  margin-top: 11px;
  color: var(--muted-strong);
  font-size: 12px;
}

.inline-editor {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.inline-editor > summary {
  width: max-content;
  padding: 12px 0 0;
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  list-style: none;
}

.inline-editor .schedule-form {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #10151a;
}

.inline-editor > form:last-child {
  margin-top: 8px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.member-stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.member-stat-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.member-stat-head h2 {
  font-size: 16px;
}

.member-stat-head p {
  color: var(--muted);
  font-size: 10px;
}

.member-stat-head > strong {
  color: var(--mint);
  font-size: 25px;
}

.member-stat dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.member-stat dl div {
  display: grid;
  gap: 2px;
  padding-top: 13px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.member-stat dl div:last-child {
  border-right: 0;
}

.member-stat dt {
  color: var(--muted);
  font-size: 9px;
}

.member-stat dd {
  font-size: 14px;
  font-weight: 800;
}

.reason-panel,
.admin-attendance-panel,
.pending-panel,
.management-panel {
  margin-top: 20px;
}

.reason-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

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

.empty-cell {
  height: 110px;
  color: var(--muted);
  text-align: center !important;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 20px;
}

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

.admin-grid .panel > .form-stack {
  padding: 20px;
}

.weekday-options {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 7px;
}

.weekday-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.weekday-options span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #10151a;
  color: var(--muted);
  font-size: 11px;
}

.weekday-options input:checked + span {
  border-color: #426356;
  background: #1b2924;
  color: var(--mint);
}

.request-list,
.management-list {
  display: grid;
}

.request-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.request-row:last-child {
  border-bottom: 0;
}

.request-row > div:nth-child(2) {
  display: grid;
}

.request-row > div span {
  color: var(--muted);
  font-size: 10px;
}

.request-actions,
.member-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.management-row {
  border-bottom: 1px solid var(--line);
}

.management-row:last-child {
  border-bottom: 0;
}

.management-row > summary {
  display: grid;
  min-height: 66px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  list-style: none;
}

.management-row > summary > span:nth-child(2) {
  display: grid;
}

.management-row > summary small,
.management-row > summary i {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.management-row > summary time {
  width: 42px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.management-row[open] > summary {
  background: var(--surface-raised);
}

.management-editor {
  padding: 0 20px 20px;
  background: var(--surface-raised);
}

.management-editor .inline-form {
  padding: 18px 0;
}

.account-panel {
  width: min(620px, 100%);
  padding: 24px;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.avatar-large {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  font-size: 19px;
}

.account-summary h2 {
  font-size: 21px;
}

.account-summary p {
  color: var(--muted);
  font-size: 11px;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.toast {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 80;
  display: flex;
  max-width: min(420px, calc(100vw - 40px));
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
}

.toast button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 220px;
  }

  .app-main {
    padding-right: 26px;
    padding-left: 26px;
  }

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

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

  .metric-item:nth-child(2) {
    border-right: 0;
  }

  .metric-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .upcoming-item:nth-child(3) {
    border-right: 0;
  }

  .attendance-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .attendance-form {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .inline-form .button {
    align-self: end;
  }
}

@media (max-width: 900px) {
  .app-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-102%);
    width: min(290px, calc(100vw - 48px));
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .app-main {
    padding-top: 0;
  }

  .mobile-header {
    display: flex;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    margin: 0 -26px 24px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: #101419;
  }

  .mobile-header .sidebar-brand {
    padding: 0;
  }

  .dashboard-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .calendar-cell {
    min-height: 92px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 48px 0;
  }

  .auth-intro h1 {
    font-size: 46px;
  }

  .auth-intro > p:last-of-type {
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .app-main {
    padding-right: 15px;
    padding-left: 15px;
  }

  .mobile-header {
    margin-right: -15px;
    margin-left: -15px;
  }

  .page-header {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }

  .page-header h1 {
    font-size: 34px;
  }

  .project-dday,
  .header-fact {
    width: 100%;
    min-width: 0;
    justify-items: start;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
  }

  .project-dday strong {
    font-size: 28px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-item {
    min-height: 106px;
    padding: 15px;
  }

  .metric-item strong {
    font-size: 18px;
    white-space: normal;
  }

  .metric-item small {
    white-space: normal;
  }

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

  .calendar-controls {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-cell {
    min-height: 70px;
    padding: 4px;
  }

  .calendar-event {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--mint);
    color: transparent;
  }

  .calendar-event.milestone-event {
    background: var(--blue);
  }

  .calendar-events {
    display: flex;
    flex-wrap: wrap;
  }

  .calendar-more {
    font-size: 8px;
  }

  .calendar-legend {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .dashboard-side {
    grid-template-columns: 1fr;
  }

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

  .upcoming-item,
  .upcoming-item:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .upcoming-item:last-child {
    border-bottom: 0;
  }

  .attendance-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .attendance-info {
    padding: 15px;
  }

  .attendance-title-line {
    flex-direction: column;
    gap: 7px;
  }

  .attendance-form {
    grid-template-columns: 1fr;
  }

  .schedule-form,
  .form-grid-2,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .roadmap-scale b {
    display: none;
  }

  .milestone-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .milestone-content {
    padding: 17px;
  }

  .milestone-heading h2 {
    font-size: 18px;
  }

  .milestone-heading > strong {
    font-size: 16px;
  }

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

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

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

  .management-row > summary > i {
    display: none;
  }

  .auth-shell,
  .auth-shell-compact {
    width: min(100% - 28px, 520px);
  }

  .auth-intro {
    gap: 16px;
  }

  .auth-intro h1 {
    font-size: 37px;
  }

  .auth-card {
    padding: 24px 19px;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

/* Workspace 2.0 */
.app-page {
  --workspace-accent: #6ea8fe;
  --workspace-accent-strong: #8bb8ff;
  --workspace-accent-soft: rgba(110, 168, 254, 0.12);
  --success: #5ed39a;
  --warning: #f0b85a;
  --workspace-danger: #ff747f;
}

.app-page .button-primary {
  background: var(--workspace-accent);
  color: #07111f;
}

.app-page .button-primary:hover {
  background: var(--workspace-accent-strong);
}

.app-page .button-secondary {
  border-color: #385982;
  background: #142237;
  color: #b8d4ff;
}

.app-page .button-secondary:hover {
  border-color: var(--workspace-accent);
}

.workspace-sidebar {
  background: #0b0f15;
}

.workspace-sidebar .sidebar-brand {
  flex: 0 0 auto;
  padding-top: 20px;
  padding-bottom: 18px;
}

.workspace-sidebar .brand-mark {
  border-color: rgba(110, 168, 254, 0.55);
  background: #101a2a;
  color: var(--workspace-accent);
}

.workspace-nav {
  display: block;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 10px 18px;
  scrollbar-width: thin;
}

.nav-group + .nav-group {
  margin-top: 16px;
}

.nav-group h2 {
  margin: 0 10px 5px;
  color: #697786;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.workspace-nav .nav-link {
  min-height: 36px;
  margin: 2px 0;
  font-size: 12px;
}

.workspace-nav .nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 850;
}

.workspace-nav .nav-link.is-active {
  border-color: #29466a;
  background: #132139;
  color: #e6efff;
}

.workspace-nav .nav-link.is-active .nav-icon {
  border-color: #3b6392;
  background: #1d3655;
  color: var(--workspace-accent-strong);
}

.nav-group-admin .nav-link.is-active {
  border-color: #62512d;
  background: #211c12;
  color: #f8dfad;
}

.workspace-sidebar .sidebar-project,
.workspace-sidebar .sidebar-user {
  flex: 0 0 auto;
}

.workspace-sidebar .progress-track span {
  background: var(--workspace-accent);
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -40px calc(clamp(24px, 4vw, 64px) * -1) 24px;
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid rgba(42, 51, 61, 0.82);
  background: rgba(13, 16, 20, 0.95);
  backdrop-filter: blur(12px);
}

.mobile-menu-button,
.mobile-wordmark {
  display: none;
}

.workspace-search-trigger {
  display: flex;
  width: min(460px, 45vw);
  height: 36px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #11161d;
  color: var(--muted);
  text-align: left;
}

.workspace-search-trigger span:nth-child(2) {
  flex: 1;
}

kbd {
  padding: 2px 6px;
  border: 1px solid #37414d;
  border-radius: 4px;
  background: #181e26;
  color: #9facb9;
  font: 10px/1.4 inherit;
}

.topbar-actions,
.header-actions,
.form-actions,
.table-actions,
.conversion-actions,
.vote-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-button,
.topbar-avatar {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #141a22;
  color: var(--muted);
}

.notification-button.has-unread {
  color: var(--workspace-accent);
}

.notification-button b {
  position: absolute;
  top: -6px;
  right: -7px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 9px;
  background: var(--workspace-danger);
  color: #1b0709;
  font-size: 9px;
}

.topbar-avatar {
  border-color: #3c5c85;
  background: #182944;
  color: #c5dcff;
  font-size: 12px;
  font-weight: 800;
}

.workspace-page-header {
  min-height: 94px;
  align-items: center;
}

.workspace-page-header .eyebrow,
.workspace-card .eyebrow {
  color: var(--workspace-accent);
}

.workspace-page-header h1 {
  font-size: clamp(30px, 3.2vw, 42px);
}

.workspace-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #12171e;
}

.workspace-card > header,
.document-block-editor > header,
.mindmap-properties > header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.workspace-card > header h2,
.document-block-editor > header h2,
.mindmap-properties > header h2 {
  font-size: 16px;
}

.workspace-card > header > a,
.workspace-card > header > span {
  color: var(--workspace-accent);
  font-size: 12px;
}

.workspace-metrics {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #11161d;
}

.workspace-metrics > a {
  display: grid;
  min-height: 118px;
  align-content: center;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workspace-metrics > a:nth-child(4n) {
  border-right: 0;
}

.workspace-metrics > a:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.workspace-metrics span {
  color: var(--muted);
  font-size: 11px;
}

.workspace-metrics strong {
  margin: 4px 0 1px;
  color: #f3f7ff;
  font-size: 27px;
  line-height: 1.15;
}

.workspace-metrics .metric-text {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-metrics small {
  color: #718090;
  font-size: 10px;
}

.workspace-metrics .metric-danger strong,
.text-danger,
.is-overdue time,
.is-overdue > [data-label="마감일"] {
  color: var(--workspace-danger);
}

.workspace-metrics .metric-warning strong {
  color: var(--warning);
}

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

.dashboard-span-2 {
  grid-column: span 2;
}

.dashboard-lower {
  margin-top: 16px;
}

.compact-list,
.activity-mini-list,
.audit-mini-list,
.search-result-list {
  display: grid;
}

.compact-list > a,
.activity-mini-list > a,
.audit-mini-list > a,
.search-result-list > a {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #222b35;
}

.compact-list > a:last-child,
.activity-mini-list > a:last-child,
.audit-mini-list > a:last-child,
.search-result-list > a:last-child {
  border-bottom: 0;
}

.compact-list > a:hover,
.activity-mini-list > a:hover,
.audit-mini-list > a:hover,
.search-result-list > a:hover {
  background: #171e27;
}

.compact-list > a > span:nth-child(2),
.activity-mini-list > a > span:last-child,
.audit-mini-list > a > span:last-child {
  display: grid;
  min-width: 0;
  flex: 1;
}

.compact-list strong,
.activity-mini-list > a > span:last-child,
.audit-mini-list strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-list small,
.activity-mini-list small,
.audit-mini-list small {
  color: var(--muted);
  font-size: 10px;
}

.compact-list b {
  color: var(--muted-strong);
  font-size: 11px;
}

.compact-list-dates time {
  min-width: 44px;
  color: var(--workspace-accent);
  font-size: 11px;
  font-weight: 800;
}

.workspace-empty {
  display: grid;
  min-height: 116px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.workspace-empty strong {
  color: var(--muted-strong);
}

.workspace-empty a:not(.button) {
  color: var(--workspace-accent);
}

.workspace-empty-page {
  min-height: 300px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #6d7884;
}

.status-in_progress,
.status-confirmed,
.status-developing,
.status-fixing {
  background: var(--workspace-accent);
}

.status-done,
.status-resolved,
.status-approved,
.status-adopted,
.status-mitigated,
.status-converted {
  background: var(--success);
}

.status-review,
.status-testing,
.status-proposed,
.status-monitoring {
  background: var(--warning);
}

.status-cancelled,
.status-discarded,
.status-rejected,
.status-critical {
  background: var(--workspace-danger);
}

.status-chip,
.priority-chip,
.blocker-chip {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #36414c;
  border-radius: 5px;
  background: #191f27;
  color: #b5c0cb;
  font-size: 10px;
  font-weight: 750;
}

.status-chip.status-in_progress,
.status-chip.status-fixing {
  border-color: #365e92;
  background: #172a45;
  color: #b9d5ff;
}

.status-chip.status-done,
.status-chip.status-resolved,
.status-chip.status-converted {
  border-color: #315e4b;
  background: #14291f;
  color: #a4e8c8;
}

.priority-urgent,
.blocker-chip {
  border-color: #70404a;
  background: #2a181d;
  color: #ffadb4;
}

.priority-high {
  border-color: #735b31;
  background: #2a2215;
  color: #f4d18b;
}

.priority-low {
  color: #7f8b98;
}

.blocker-mark,
.severity-badge {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: #2a181d;
  color: #ff9ca6;
  font-size: 10px;
  font-weight: 900;
}

.severity-badge {
  width: auto;
  padding: 0 7px;
}

.severity-normal,
.severity-low,
.severity-trivial {
  background: #1b2531;
  color: #aac7e8;
}

.severity-high {
  background: #302515;
  color: #f4cb79;
}

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

.team-load-grid article {
  display: flex;
  min-width: 0;
  gap: 12px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.team-load-grid article:last-child {
  border-right: 0;
}

.team-load-grid article > div {
  display: grid;
  min-width: 0;
}

.team-load-grid small,
.team-load-grid p {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-small {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.document-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #355b88;
  border-radius: 5px;
  background: #14243a;
  color: #a7caff;
  font-size: 8px;
  font-weight: 900;
}

.health-summary,
.roadmap-summary {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.health-summary p {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.health-summary strong {
  color: var(--text);
}

.card-copy {
  min-height: 120px;
  padding: 18px;
  color: var(--muted-strong);
  white-space: pre-line;
}

.view-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.view-tabs a {
  padding: 10px 15px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.view-tabs a.is-active {
  border-bottom-color: var(--workspace-accent);
  color: #dbe9ff;
}

.filter-bar {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #11161d;
}

.filter-bar label {
  display: grid;
  min-width: 120px;
  gap: 4px;
}

.filter-bar label:first-of-type {
  min-width: 180px;
  flex: 1;
}

.filter-bar label span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.filter-bar input,
.filter-bar select,
.workspace-form input,
.workspace-form select,
.workspace-form textarea,
.inline-create-form input,
.inline-create-form select,
.global-search-form input,
.document-block-row select,
.document-block-row textarea,
.mindmap-title input {
  width: 100%;
  border: 1px solid #303a45;
  border-radius: 5px;
  outline: 0;
  background: #0f141a;
}

.filter-bar input,
.filter-bar select {
  height: 36px;
  padding: 0 9px;
  font-size: 12px;
}

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

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

.workspace-form .field > span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.workspace-form input,
.workspace-form select {
  min-height: 40px;
  padding: 0 10px;
}

.workspace-form textarea {
  min-height: 86px;
  padding: 9px 10px;
  resize: vertical;
}

.field-span-2 {
  grid-column: span 2;
}

.workspace-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid #384656;
  border-radius: 8px;
  background: #121820;
  color: var(--text);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
}

.workspace-dialog::backdrop {
  background: rgba(2, 5, 9, 0.76);
  backdrop-filter: blur(3px);
}

.workspace-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.workspace-dialog > .workspace-form {
  padding: 18px;
}

.compact-dialog {
  width: min(560px, calc(100vw - 32px));
}

.table-card {
  overflow: hidden;
}

.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.table-meta a {
  color: var(--workspace-accent);
}

.responsive-table {
  overflow-x: auto;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.responsive-table th,
.responsive-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #232c36;
  text-align: left;
  font-size: 11px;
}

.responsive-table th {
  color: #7f8b98;
  font-size: 9px;
  text-transform: uppercase;
}

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

.task-title-link {
  display: flex;
  min-width: 230px;
  align-items: center;
  gap: 8px;
}

.task-title-link > span {
  display: grid;
}

.task-title-link small {
  color: var(--muted);
}

.mini-progress {
  display: inline-block;
  overflow: hidden;
  width: 48px;
  height: 4px;
  margin-right: 4px;
  border-radius: 2px;
  background: #26303b;
  vertical-align: middle;
}

.mini-progress span {
  display: block;
  height: 100%;
  background: var(--workspace-accent);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 14px;
}

.pagination a {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
}

.pagination a.is-active {
  border-color: var(--workspace-accent);
  background: #172b47;
  color: #d6e6ff;
}

.kanban-board {
  display: grid;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 12px;
  grid-template-columns: repeat(5, minmax(250px, 1fr));
}

.kanban-column {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #10151b;
}

.kanban-column > header {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.kanban-column > header h2 {
  flex: 1;
  font-size: 12px;
}

.kanban-column > header b {
  color: var(--muted);
  font-size: 10px;
}

.kanban-dropzone {
  min-height: 470px;
  padding: 8px;
}

.kanban-column.is-drag-over {
  border-color: var(--workspace-accent);
  background: #111d2c;
}

.kanban-card {
  margin-bottom: 8px;
  border: 1px solid #2c3743;
  border-radius: 6px;
  background: #171d25;
  transition: border-color 150ms ease, transform 150ms ease;
}

.kanban-card:hover {
  border-color: #476384;
  transform: translateY(-1px);
}

.kanban-card.is-dragging {
  opacity: 0.45;
}

.kanban-card a {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.kanban-card h3 {
  font-size: 13px;
}

.kanban-card p {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kanban-card footer {
  display: flex;
  justify-content: space-between;
  color: #8793a0;
  font-size: 9px;
}

.board-note {
  color: var(--muted);
  font-size: 10px;
}

.task-calendar-list,
.meeting-list,
.meeting-actions-list,
.notification-list,
.activity-feed {
  display: grid;
  gap: 10px;
}

.calendar-list-header,
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px;
}

.task-calendar-list > a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.task-calendar-list time {
  display: grid;
  width: 42px;
  color: var(--workspace-accent);
  text-align: center;
}

.task-calendar-list > a > span {
  display: grid;
}

.task-calendar-list small {
  color: var(--muted);
}

.task-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.task-editor-form,
.meeting-note-form,
.document-meta-form {
  padding: 18px;
}

.task-side-stack {
  display: grid;
  align-content: start;
  gap: 16px;
}

.task-progress-card > header > strong {
  color: var(--workspace-accent);
  font-size: 24px;
}

.progress-large {
  margin: 18px;
}

.task-progress-card dl,
.document-sidebar dl {
  padding: 0 18px 18px;
}

.task-progress-card dl div,
.document-sidebar dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #242d37;
  font-size: 11px;
}

.task-progress-card dt,
.document-sidebar dt {
  color: var(--muted);
}

.task-progress-card dd,
.document-sidebar dd {
  text-align: right;
}

.danger-zone {
  padding: 16px;
}

.danger-zone h2 {
  color: var(--workspace-danger);
  font-size: 14px;
}

.danger-zone p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 10px;
}

.checklist-card {
  margin-top: 16px;
}

.checklist-list > div,
.global-checklist > a {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #232c36;
}

.dependency-list > div {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #232c36;
}

.dependency-list > div > a {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}

.dependency-list > div > a > span:last-child {
  display: grid;
}

.checklist-list > div > span:nth-child(2),
.global-checklist > a > span:last-child {
  display: grid;
  flex: 1;
}

.checklist-list .is-complete {
  color: #6f7a86;
  text-decoration: line-through;
}

.check-button {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid #46525f;
  border-radius: 4px;
  background: #11171e;
  color: #06130d;
  font-size: 11px;
}

.check-button.is-complete {
  border-color: var(--success);
  background: var(--success);
  text-decoration: none;
}

.inline-create-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}

.inline-create-form input,
.inline-create-form select {
  min-width: 0;
  height: 40px;
  flex: 1;
  padding: 0 10px;
}

.two-column-grid,
.my-task-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.my-task-grid .workspace-card > header {
  min-height: 50px;
}

.full-calendar {
  overflow: hidden;
}

.full-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  min-height: 132px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #12171e;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-past {
  background: #0f1318;
  color: #65707b;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 1px var(--workspace-accent);
}

.calendar-day > time {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 750;
}

.calendar-event {
  display: block;
  overflow: hidden;
  margin: 3px 0;
  padding: 3px 5px;
  border-left: 2px solid var(--workspace-accent);
  border-radius: 3px;
  background: #17263a;
  color: #c1d8fb;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.meeting {
  border-left-color: #b58cff;
  background: #211a34;
  color: #d9c4ff;
}

.calendar-event.milestone {
  border-left-color: var(--warning);
  background: #292214;
  color: #f1d79f;
}

.document-grid,
.mindmap-grid,
.resource-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-card > a,
.mindmap-card {
  display: grid;
  min-height: 210px;
  align-content: space-between;
  gap: 16px;
  padding: 18px;
}

.document-card:hover,
.mindmap-card:hover,
.resource-card:hover {
  border-color: #415a78;
  transform: translateY(-1px);
}

.document-icon-large {
  width: 48px;
  height: 48px;
}

.document-type {
  color: var(--workspace-accent);
  font-size: 9px;
  font-weight: 800;
}

.document-card h2,
.mindmap-card h2,
.resource-card h2 {
  margin-top: 5px;
  font-size: 17px;
}

.document-card p,
.mindmap-card p,
.resource-card p {
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.document-card footer,
.mindmap-card footer {
  display: flex;
  justify-content: space-between;
  color: #788593;
  font-size: 10px;
}

.document-page-header h1 > span {
  color: var(--workspace-accent);
  font-size: 16px;
}

.document-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.document-rendered {
  min-height: 600px;
  padding: clamp(24px, 5vw, 64px);
}

.rendered-block + .rendered-block {
  margin-top: 14px;
}

.doc-heading {
  margin: 24px 0 10px;
  line-height: 1.3;
}

.doc-paragraph,
.doc-list,
.doc-quote,
.doc-callout,
.doc-toggle {
  color: #cad2da;
  white-space: normal;
}

.doc-code,
.audit-diff pre {
  overflow: auto;
  padding: 14px;
  border: 1px solid #2d3b4c;
  border-radius: 6px;
  background: #0b1016;
  color: #bad3f7;
  font: 12px/1.6 Consolas, monospace;
}

.doc-quote {
  padding-left: 15px;
  border-left: 3px solid var(--workspace-accent);
}

.doc-callout {
  padding: 14px;
  border: 1px solid #375679;
  border-radius: 6px;
  background: #142236;
}

.doc-divider {
  border: 0;
  border-top: 1px solid var(--line);
}

.doc-image img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
}

.doc-table-wrap {
  overflow-x: auto;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  padding: 8px;
  border: 1px solid var(--line);
  text-align: left;
}

.doc-reference {
  display: block;
  padding: 10px 12px;
  border: 1px solid #31527b;
  border-radius: 5px;
  background: #132239;
  color: #b8d4ff;
}

.document-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.document-sidebar .workspace-card > h2 {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.document-block-editor {
  position: relative;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #11161d;
}

.document-blocks {
  padding: 10px;
}

.document-block-row {
  display: grid;
  align-items: start;
  gap: 8px;
  padding: 8px;
  grid-template-columns: 26px 130px minmax(0, 1fr) 34px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.document-block-row:focus-within {
  border-color: #35577e;
  background: #141c26;
}

.document-block-row select,
.document-block-row textarea {
  min-height: 38px;
  padding: 8px;
  resize: vertical;
}

.block-move {
  display: grid;
}

.block-move button {
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.block-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 10px;
}

.slash-menu {
  position: fixed;
  z-index: 80;
  display: grid;
  width: 220px;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #3b4857;
  border-radius: 7px;
  background: #151b23;
  box-shadow: var(--shadow);
}

.slash-menu[hidden] {
  display: none;
}

.slash-menu button {
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  font-size: 11px;
}

.slash-menu button:hover {
  background: #202a36;
  color: var(--text);
}

.sticky-save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #334152;
  border-radius: 7px;
  background: rgba(15, 20, 27, 0.96);
  color: var(--muted);
  font-size: 10px;
}

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

.meeting-card.is-past {
  opacity: 0.72;
}

.meeting-date-block {
  display: flex;
  align-items: center;
  gap: 9px;
}

.meeting-date-block > strong {
  color: var(--workspace-accent);
  font-size: 28px;
}

.meeting-date-block span,
.meeting-card-content small {
  color: var(--muted);
  font-size: 10px;
}

.meeting-card-content h2 {
  margin-top: 6px;
  font-size: 16px;
}

.meeting-card-content p {
  overflow: hidden;
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-actions-list article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.meeting-actions-list article > div {
  display: grid;
  min-width: 0;
  flex: 1;
}

.meeting-actions-list small {
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  align-items: start;
  gap: 16px;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
}

.catalog-list {
  overflow: hidden;
}

.catalog-list .compact-list > a.is-selected,
.idea-list > a.is-selected,
.bug-list > a.is-selected,
.risk-list > a.is-selected {
  background: #17243a;
  box-shadow: inset 3px 0 var(--workspace-accent);
}

.catalog-editor > .workspace-form,
.catalog-editor > form.workspace-form {
  padding: 18px;
}

.idea-list,
.bug-list,
.risk-list {
  display: grid;
}

.idea-list > a,
.bug-list > a,
.risk-list > a {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid #232c36;
}

.idea-list > a > div {
  display: flex;
  justify-content: space-between;
}

.idea-list p {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idea-list small,
.bug-list small,
.risk-list small {
  color: var(--muted);
  font-size: 10px;
}

.idea-rating {
  color: var(--warning);
  font-size: 9px;
}

.conversion-actions,
.vote-control {
  padding: 0 18px 18px;
}

.compact-metrics {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.compact-metrics > a {
  min-height: 88px;
  border-bottom: 0;
}

.compact-metrics > a:last-child {
  border-right: 0;
}

.bug-list > a,
.risk-list > a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bug-list > a > div,
.risk-list > a > span {
  display: grid;
  min-width: 0;
}

.risk-score {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 6px;
  background: #192630;
  color: #b7d2e5;
}

.risk-score.score-high {
  background: #351a20;
  color: #ff9fa9;
}

.risk-score.score-medium {
  background: #302615;
  color: #f1ca77;
}

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

.resource-card {
  min-height: 180px;
  padding: 16px;
}

.resource-card > header,
.resource-card > footer {
  display: flex;
  justify-content: space-between;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 10px;
}

.resource-card footer {
  margin-top: 16px;
}

.resource-card footer a {
  color: var(--workspace-accent);
}

.mindmap-preview {
  position: relative;
  height: 90px;
  border-bottom: 1px solid var(--line);
}

.mindmap-preview span {
  position: absolute;
  width: 54px;
  height: 24px;
  border: 1px solid #3e6a9d;
  border-radius: 5px;
  background: #172a44;
}

.mindmap-preview span:nth-child(1) { top: 32px; left: 50%; transform: translateX(-50%); }
.mindmap-preview span:nth-child(2) { top: 3px; left: 9%; }
.mindmap-preview span:nth-child(3) { right: 9%; bottom: 3px; }
.mindmap-preview i,
.mindmap-preview b { position: absolute; width: 30%; height: 1px; background: #365477; transform-origin: left; }
.mindmap-preview i { top: 27px; left: 29%; transform: rotate(17deg); }
.mindmap-preview b { top: 57px; left: 54%; transform: rotate(15deg); }

.mindmap-page {
  margin: -12px calc(clamp(24px, 4vw, 64px) * -1) -30px;
  background: #0c1117;
}

.mindmap-toolbar {
  display: grid;
  height: 62px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  grid-template-columns: minmax(220px, 1fr) auto minmax(80px, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #11171e;
}

.mindmap-title,
.mindmap-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mindmap-title > div {
  display: grid;
}

.mindmap-title input {
  height: 28px;
  padding: 0 7px;
  font-weight: 750;
}

.mindmap-title small {
  color: var(--muted);
  font-size: 9px;
}

.mindmap-tools > span {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.mindmap-tools > b {
  min-width: 40px;
  color: var(--muted-strong);
  font-size: 10px;
  text-align: center;
}

.save-indicator {
  justify-self: end;
  color: var(--muted);
  font-size: 10px;
}

.mindmap-workarea {
  position: relative;
  display: grid;
  height: calc(100vh - 120px);
  min-height: 600px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.mindmap-canvas {
  position: relative;
  overflow: hidden;
  cursor: grab;
  background-color: #0c1117;
  background-image: radial-gradient(circle, rgba(128, 151, 176, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
  touch-action: none;
}

.mindmap-canvas:active {
  cursor: grabbing;
}

.mindmap-world {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  transform-origin: 0 0;
}

.mindmap-edges {
  position: absolute;
  left: -20000px;
  top: -20000px;
  width: 40000px;
  height: 40000px;
  overflow: visible;
  pointer-events: none;
}

.mindmap-edges path {
  fill: none;
  stroke: #3b5878;
  stroke-width: 2;
}

.mindmap-nodes {
  position: absolute;
  inset: 0;
}

.mindmap-node {
  position: absolute;
  display: grid;
  width: 160px;
  min-height: 80px;
  align-content: center;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #3e628c;
  border-radius: 7px;
  outline: 0;
  background: #17283d;
  color: #edf4ff;
  text-align: left;
  touch-action: none;
  user-select: none;
}

.mindmap-node strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.mindmap-node small {
  color: #91a9c6;
  font-size: 9px;
}

.mindmap-node.is-selected {
  box-shadow: 0 0 0 2px #8bb8ff, 0 12px 28px rgba(0, 0, 0, 0.34);
}

.mindmap-node.color-green { border-color: #397458; background: #152c22; }
.mindmap-node.color-amber { border-color: #806536; background: #2b2417; }
.mindmap-node.color-red { border-color: #80444c; background: #2d191e; }
.mindmap-node.color-gray { border-color: #4b5763; background: #20262d; }
.mindmap-node.color-violet { border-color: #664f91; background: #241d36; }

.mindmap-help {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(10, 14, 19, 0.78);
  color: #778491;
  font-size: 9px;
  pointer-events: none;
}

.mindmap-properties {
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #11171e;
}

.mindmap-properties .workspace-form {
  display: grid;
  grid-template-columns: 1fr;
  padding: 14px;
}

.color-swatches {
  display: flex;
  gap: 8px;
}

.color-swatches button {
  width: 26px;
  height: 26px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #5d8fd0;
}

.color-swatches .color-green { background: #4ca575; }
.color-swatches .color-amber { background: #cf9f49; }
.color-swatches .color-red { background: #cf626e; }
.color-swatches .color-gray { background: #71808e; }
.color-swatches .color-violet { background: #906ed0; }
.color-swatches button.is-active { border-color: #fff; }

.activity-feed,
.notification-list {
  gap: 0;
}

.activity-feed article,
.notification-list article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #232c36;
}

.activity-feed article > div,
.notification-list article > div {
  display: grid;
  min-width: 0;
  flex: 1;
}

.activity-feed p,
.notification-list p {
  color: var(--muted-strong);
  font-size: 12px;
}

.activity-feed small,
.notification-list small {
  color: var(--muted);
  font-size: 9px;
}

.notification-list article.is-unread {
  background: #132036;
}

.notification-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #596674;
}

.notification-list .is-unread .notification-dot {
  background: var(--workspace-accent);
}

.global-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #3a4b60;
  border-radius: 8px;
  background: #121820;
}

.global-search-form input {
  height: 44px;
  flex: 1;
  padding: 0 12px;
}

.search-summary {
  margin-bottom: 14px;
  color: var(--muted);
}

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

.search-result-list a {
  display: grid;
  align-content: center;
}

.search-result-list p {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-metrics > a:nth-child(4n) {
  border-right: 1px solid var(--line);
}

.admin-metrics > a:nth-child(5n) {
  border-right: 0;
}

.admin-metrics > a:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.audit-filter {
  flex-wrap: wrap;
}

.audit-filter label,
.audit-filter label:first-of-type {
  min-width: 130px;
  flex: 1 1 130px;
}

.audit-log-list details {
  border-bottom: 1px solid var(--line);
}

.audit-log-list summary {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  grid-template-columns: 130px minmax(0, 1fr) minmax(100px, 220px);
  list-style: none;
}

.audit-log-list summary time,
.audit-log-list summary small,
.audit-log-list summary b {
  color: var(--muted);
  font-size: 9px;
}

.audit-log-list summary > span {
  display: grid;
}

.audit-log-list summary b {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-diff {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #29333e;
  background: #0e1319;
}

.audit-diff h3 {
  margin-bottom: 6px;
  font-size: 11px;
}

.audit-diff pre {
  max-height: 300px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.audit-diff > p {
  grid-column: span 2;
  color: var(--muted);
  font-size: 9px;
}

.backup-guide {
  margin-bottom: 16px;
  padding: 18px;
}

.backup-guide h2 {
  margin-bottom: 7px;
  font-size: 15px;
}

.backup-guide p {
  color: var(--muted-strong);
  font-size: 11px;
}

.backup-guide code,
.backup-list code {
  color: #b9d4fb;
  overflow-wrap: anywhere;
}

.command-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding-top: min(14vh, 120px);
  background: rgba(2, 5, 9, 0.72);
  backdrop-filter: blur(4px);
}

.command-overlay[hidden] {
  display: none;
}

.command-palette {
  width: min(620px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #3a4858;
  border-radius: 8px;
  background: #141a22;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.command-palette > header {
  display: grid;
  height: 56px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
}

.command-palette input {
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
}

.command-results {
  max-height: 410px;
  overflow-y: auto;
  padding: 8px;
}

.command-group-label {
  padding: 8px 10px 4px;
  color: #6f7b88;
  font-size: 9px;
  font-weight: 800;
}

.command-results a {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-radius: 5px;
  color: var(--muted-strong);
  font-size: 12px;
}

.command-results a:hover {
  background: #202a36;
  color: var(--text);
}

.command-search-form {
  padding: 8px;
  border-top: 1px solid var(--line);
}

.command-search-form button {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: #1a2b43;
  color: #bed8ff;
}

.has-modal {
  overflow: hidden;
}

@media (max-width: 1280px) {
  .workspace-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .admin-metrics > a:nth-child(5n),
  .admin-metrics > a:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .admin-metrics > a:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .workspace-topbar {
    height: 62px;
    margin: 0 -26px 22px;
    padding: 0 18px;
  }

  .mobile-menu-button,
  .mobile-wordmark {
    display: inline-grid;
  }

  .mobile-wordmark {
    color: #dbe9ff;
    font-size: 12px;
    font-weight: 850;
  }

  .workspace-search-trigger {
    width: auto;
    margin-left: auto;
  }

  .workspace-search-trigger span:nth-child(2),
  .workspace-search-trigger kbd,
  .quick-create-button {
    display: none;
  }

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

  .workspace-metrics > a:nth-child(2n) {
    border-right: 0;
  }

  .workspace-metrics > a:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .workspace-metrics > a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .filter-bar {
    overflow-x: auto;
    align-items: end;
  }

  .filter-bar label,
  .filter-bar label:first-of-type {
    min-width: 150px;
    flex: 0 0 150px;
  }

  .task-detail-grid,
  .document-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-column: auto;
  }

  .mindmap-workarea {
    grid-template-columns: 1fr;
  }

  .mindmap-properties {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 12;
    width: min(320px, 92vw);
    height: 76%;
    border-top: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform 180ms ease;
  }

  .mindmap-properties.is-open {
    transform: translateX(0);
  }

  .mindmap-toolbar {
    grid-template-columns: minmax(150px, 1fr) auto;
  }

  .mindmap-tools {
    overflow-x: auto;
  }

  .save-indicator {
    display: none;
  }
}

@media (max-width: 680px) {
  .workspace-topbar {
    margin-right: -15px;
    margin-left: -15px;
    padding: 0 12px;
  }

  .workspace-page-header {
    min-height: 0;
    align-items: stretch;
  }

  .workspace-page-header > div:first-child {
    width: 100%;
    min-width: 0;
  }

  .workspace-page-header h1,
  .workspace-page-header > div:first-child > p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .header-actions {
    width: 100%;
    min-width: 0;
  }

  .header-actions .button {
    min-width: 0;
    flex: 1;
    white-space: normal;
    text-align: center;
  }

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

  .workspace-metrics > a {
    min-height: 98px;
    padding: 14px;
  }

  .workspace-metrics strong {
    font-size: 22px;
  }

  .workspace-dashboard-grid,
  .two-column-grid,
  .my-task-grid,
  .search-groups,
  .document-grid,
  .mindmap-grid,
  .resource-grid,
  .team-load-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-span-2 {
    grid-column: auto;
  }

  .team-load-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .view-tabs {
    overflow-x: auto;
  }

  .view-tabs a {
    flex: 0 0 auto;
  }

  .filter-bar {
    overflow: visible;
    flex-wrap: wrap;
  }

  .filter-bar label,
  .filter-bar label:first-of-type {
    min-width: 0;
    flex: 1 1 100%;
  }

  .filter-bar .button {
    flex: 1 1 auto;
  }

  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  .responsive-table td {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border: 0;
    white-space: normal;
  }

  .responsive-table td::before {
    content: attr(data-label);
    flex: 0 0 72px;
    color: var(--muted);
    font-size: 9px;
  }

  .task-title-link {
    min-width: 0;
    text-align: right;
  }

  .workspace-form {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .kanban-board {
    grid-template-columns: repeat(5, 82vw);
  }

  .full-calendar-grid {
    display: block;
  }

  .full-calendar .calendar-weekdays {
    display: none;
  }

  .calendar-day,
  .calendar-day.is-blank {
    display: grid;
    min-height: 64px;
    gap: 10px;
    padding: 9px 12px;
    grid-template-columns: 28px minmax(0, 1fr);
    border-right: 0;
  }

  .calendar-day.is-blank {
    display: none;
  }

  .document-block-row {
    grid-template-columns: 24px minmax(0, 1fr) 32px;
  }

  .document-block-row select {
    grid-column: 2;
  }

  .document-block-row textarea {
    grid-column: 2;
  }

  .document-block-row > .icon-button {
    grid-column: 3;
    grid-row: 1;
  }

  .meeting-card {
    align-items: start;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .meeting-card > .button {
    grid-column: 1 / -1;
  }

  .inline-create-form,
  .meeting-actions-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .mindmap-page {
    margin-right: -15px;
    margin-left: -15px;
  }

  .mindmap-toolbar {
    height: auto;
    min-height: 100px;
    align-content: center;
    grid-template-columns: 1fr;
  }

  .mindmap-tools {
    justify-content: flex-start;
  }

  .mindmap-workarea {
    height: calc(100vh - 162px);
    min-height: 480px;
  }

  .audit-log-list summary {
    grid-template-columns: 1fr;
  }

  .audit-log-list summary b {
    text-align: left;
  }

  .audit-diff {
    grid-template-columns: 1fr;
  }

  .audit-diff > p {
    grid-column: auto;
  }

  .activity-feed article,
  .notification-list article {
    align-items: flex-start;
  }
}

/* ============================================================
   2026-07-31 개선분: 빠른 작업 기록, 회의 준비 요약, 제출 중 버튼
   ============================================================ */

.command-quick-task {
  display: flex;
  gap: 8px;
  padding: 4px 10px 10px;
}

.command-quick-task input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #10151c;
  font-size: 13px;
}

.command-quick-task input:focus {
  border-color: var(--blue);
  outline: none;
}

.command-quick-task .button {
  flex-shrink: 0;
}

.meeting-prep {
  margin-bottom: 18px;
  padding: 0;
}

.meeting-prep > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 16px 20px;
  border-radius: var(--radius);
  list-style: none;
}

.meeting-prep > summary::-webkit-details-marker {
  display: none;
}

.meeting-prep > summary::before {
  content: "▸";
  color: var(--muted);
}

.meeting-prep[open] > summary::before {
  content: "▾";
}

.meeting-prep > summary strong {
  font-size: 14px;
}

.meeting-prep > summary span {
  color: var(--muted);
  font-size: 12px;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 20px 20px;
}

.prep-grid h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.prep-grid h3 b {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 11px;
  text-align: center;
}

button.is-loading,
input.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 680px) {
  .prep-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .command-quick-task {
    flex-direction: column;
  }

  .command-quick-task .button {
    width: 100%;
  }
}
