:root {
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17323f;
  background: #f4f7f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #0b4057;
  --navy-2: #09384c;
  --blue: #1179a5;
  --teal: #0d8b8a;
  --cyan: #1db7bd;
  --ink: #17323f;
  --muted: #6d818a;
  --line: #dfe8eb;
  --surface: #ffffff;
  --surface-soft: #f7fafb;
  --green: #16805d;
  --orange: #c8721a;
  --red: #c44848;
  --purple: #7250a3;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 14px 42px rgba(15, 52, 69, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background:
    radial-gradient(circle at 92% 6%, rgba(29, 183, 189, 0.07), transparent 23rem),
    #f4f7f8;
}

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

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(17, 121, 165, 0.2);
  outline-offset: 2px;
}


.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: none;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: 160ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.button--primary {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(11, 64, 87, 0.16);
  color: #fff;
}

.button--primary:hover {
  border-color: var(--blue);
  background: var(--blue);
}

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

.button--secondary:hover {
  border-color: #bdcdd3;
  background: #f9fbfb;
}

.button--small {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 12px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.align-left {
  justify-content: flex-start;
  padding-left: 0;
}

.icon-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  background: #eef4f5;
}


.brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(9, 56, 76, 0.18);
}

.brand-logo strong,
.brand-logo span {
  display: block;
}

.brand-logo strong {
  color: var(--navy);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-logo span {
  margin-top: 2px;
  color: #78909a;
  font-size: 10px;
  font-weight: 650;
}

.brand-logo--compact .brand-logo__mark {
  width: 34px;
  height: 34px;
}


/* Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 254px;
  flex-direction: column;
  border-right: 1px solid #dce7ea;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.sidebar__brand {
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  border-bottom: 1px solid #edf2f3;
}

.sidebar__close {
  display: none;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 22px 14px;
}

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

.nav-group > span {
  display: block;
  padding: 0 12px 8px;
  color: #9aacb3;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-group button {
  position: relative;
  display: flex;
  height: 43px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 10px;
  color: #526b75;
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
  transition: 140ms ease;
}

.nav-group button + a {
  margin-top: 3px;
}

.nav-group button:hover {
  background: #f1f6f7;
  color: var(--navy);
}

.nav-group button.active {
  background: linear-gradient(90deg, #e6f2f5, #eff8f8);
  color: var(--navy);
  font-weight: 800;
}

.nav-group button.active::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--teal);
  content: "";
}

.nav-group button.active svg {
  color: var(--teal);
}

.sidebar__footer {
  padding: 17px 24px;
  border-top: 1px solid #edf2f3;
}

.product-version {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8ca0a8;
  font-size: 10px;
  font-weight: 700;
}

.product-version i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ab77c;
  box-shadow: 0 0 0 4px #e4f5ec;
}

.product-version span {
  margin-left: auto;
  font-size: 9px;
}

.workspace {
  width: calc(100% - 254px);
  min-height: 100vh;
  margin-left: 254px;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 78px;
  align-items: center;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(216, 229, 233, 0.9);
  background: rgba(247, 250, 251, 0.88);
  backdrop-filter: blur(16px);
}

.topbar__menu {
  display: none;
}

.global-search {
  position: relative;
  display: flex;
  width: min(570px, 50vw);
  height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #dce6e9;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
  color: #8ba0a8;
}


.global-search kbd {
  padding: 3px 6px;
  border: 1px solid #e1e9eb;
  border-radius: 6px;
  background: #f6f8f9;
  color: #91a2a9;
  font-family: inherit;
  font-size: 9px;
}


.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.notification-button {
  position: relative;
}

.notification-button > i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid #f7fafb;
  border-radius: 50%;
  background: #ec6a5f;
}

.account {
  position: relative;
}

.account__button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 4px 3px 3px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.account__button:hover {
  background: #eef4f5;
}

.account__button > span:nth-child(2) {
  min-width: 76px;
  text-align: left;
}

.account__button strong,
.account__button small {
  display: block;
}

.account__button strong {
  color: #324d59;
  font-size: 11px;
}

.account__button small {
  margin-top: 2px;
  color: #91a3aa;
  font-size: 9px;
}

.avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #e5f0f3;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

.avatar--A {
  background: #fbe5e5;
  color: #bc3d3d;
}

.avatar--B {
  background: #fff0dd;
  color: #ac6117;
}

.avatar--C {
  background: #e5f2f7;
  color: #0a729d;
}


.main-content {
  width: 100%;
  max-width: 1540px;
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 34px clamp(24px, 3vw, 48px) 70px;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-header {
  display: flex;
  min-height: 78px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 4px;
}

.page-header__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.page-header h1 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

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

.page-header__actions,
.header-button-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel {
  overflow: hidden;
  border: 1px solid rgba(218, 230, 233, 0.92);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(14, 54, 70, 0.035);
}

.panel__header {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 21px;
  border-bottom: 1px solid #edf2f3;
}

.panel__header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.panel__header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

/* Dashboard */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #dee8eb;
  border-radius: 16px;
  background: #fff;
}

.metric-card::after {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.035;
}

.metric-card__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: currentColor;
}

.metric-card__icon svg {
  color: #fff;
}

.metric-card > span,
.metric-card > strong,
.metric-card > small {
  display: block;
}

.metric-card > span {
  color: #667c85;
  font-size: 11px;
  font-weight: 700;
}

.metric-card > strong {
  margin-top: 14px;
  color: var(--navy);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.metric-card > small {
  margin-top: 10px;
  color: #96a6ac;
  font-size: 9px;
}

.metric-card--blue {
  color: var(--blue);
}

.metric-card--green {
  color: var(--green);
}

.metric-card--orange {
  color: var(--orange);
}

.metric-card--red {
  color: var(--red);
}

.metric-card--teal {
  color: var(--teal);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}


/* Workspace components */
:root { --muted: #586f7a; --line: #dce7ea; --sidebar: 246px; --topbar: 74px; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }
button:not([class]), button[class=""], .primary, .danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy); font-size: 14px; font-weight: 700;
}
.button { border-color: var(--line); background: white; color: var(--navy); }
button.primary { color: white; background: var(--navy); border-color: var(--navy); box-shadow: 0 6px 16px #0b40571a; }
button.primary:hover { background: var(--navy-2); }
button.danger { color: #ab3131; }
button.ghost { border: 0; background: transparent; font-weight: 600; color: var(--muted); }
.text-button .icon { width: 15px; height: 15px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.sidebar { width: var(--sidebar); }
.sidebar__brand, .topbar { height: var(--topbar); flex-shrink: 0; }
.sidebar__brand { padding: 0 17px; }
.brand-button { padding: 0; border: 0; background: none; text-align: left; }
.brand-logo > span { margin: 0; }
.sidebar__nav { padding: 22px 8px; }
.nav-group > span { font-size: 11px; letter-spacing: .025em; color: #6a818b; }
.nav-group button, .nav-group button:not([class]) {
  display: flex; width: 100%; justify-content: flex-start; background: transparent; border: 0; font-weight: 650; font-size: 14px;
}
.nav-group b { margin-left: auto; border-radius: 9px; background: #e6f2f5; color: var(--navy); padding: 1px 7px; font-size: 12px; }
.nav-group button.active { background: linear-gradient(90deg,#e6f2f5,#eff8f8); }
.product-version { font-size: 11px; color: #617b86; }
.product-version span { font-size: 11px; }
.workspace { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); min-width: 0; }
.global-search { text-align: left; color: #607984; font-size: 14px; }
.global-search kbd { margin-left: auto; font-size: 11px; }
.topbar__actions { min-width: 0; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.account__button strong { font-size: 13px; max-width: 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account__button small { font-size: 11px; color: #5e7780; }
.account__button > .icon { width: 14px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 9px); z-index: 5; min-width: 170px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.account-menu strong { display: block; font-size: 14px; padding: 6px 4px 12px; overflow-wrap: anywhere; }
.account-menu button { width: 100%; }
.scrim, .sidebar__close, .topbar__menu { display: none; }
.main-content { padding-top: 34px; }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.page-header { align-items: flex-end; }
.page-header > div:first-child { min-width: 0; }
.page-header h1 { overflow-wrap: anywhere; line-height: 1.25; }
.page-header p, .panel__header p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.page-header__eyebrow { font-size: 12px; letter-spacing: normal; }
.metric-card { text-align: left; }
.metric-card > span { font-size: 13px; padding-right: 41px; color: #506d79; }
.metric-card > strong { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric-card > small { font-size: 12px; color: #637d88; }
.metric-card:hover { border-color: #a8c3ce; }
.dashboard-grid > *, .panel, .metric-card { min-width: 0; }
.panel { align-self: stretch; }
.panel__header h2, .topline h2 { font-size: 17px; color: var(--navy); }
.panel__header .text-button { flex-shrink: 0; }
.panel__header { min-height: 74px; }
.panel-body { padding: 8px 14px 12px; }
.entry {
  display: grid; width: 100%; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 12px; padding: 13px 8px; border: 0; border-radius: 9px;
  background: transparent; text-align: left; color: var(--ink);
}
.entry + .entry { border-top: 1px solid #edf2f4; }
button.entry:hover { background: #f3f8f9; }
.entry strong { display: block; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.entry small, .row-meta time { display: block; color: var(--muted); font-size: 12px; font-weight: 450; margin-top: 4px; line-height: 1.55; }
.row-meta { text-align: right; }
.row-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--blue); background: #eaf4f8; }
.row-icon.resolved { background: #e6f5ee; color: var(--green); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 20px; background: #edf2f4; color: #4b626c; white-space: nowrap; }
.tag.red { background: #fce9e9; color: #ad3131; }
.tag.green, .tag.teal { background: #e1f3ee; color: #117358; }
.empty { padding: 22px 8px; display: flex; align-items: center; min-height: 66px; font-size: 14px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.filters button, .filters button[class=""] { min-height: 35px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--muted); font-size: 13px; }
.filters button.on { color: var(--navy); background: #e8f3f5; border-color: #bfdbe1; font-weight: 750; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; color: #38545f; }
input,select,textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #ccdce1; border-radius: 9px; background: #fff; color: var(--ink); font-size: 16px; }
textarea { min-height: 90px; resize: vertical; }
form,.stack { display: grid; gap: 15px; }
.stack { padding: 12px 6px; }
.stack p,.wrap,.case-note p { overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.65; }
.pair,.info { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.info { margin: 10px 4px; padding: 16px; border-radius: 11px; background: #f6f9fa; border: 1px solid #e6eef0; }
.info small,.case-note small { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.info div { overflow-wrap: anywhere; }
.case-note { padding: 10px 8px; }
.search,.search-label { margin: 10px 0 15px; }
.search { max-width: 380px; }
.timeline { padding: 10px 8px 12px 14px; }
.event { position: relative; padding: 4px 0 16px 18px; border-left: 2px solid #d6e7eb; }
.event:before { content: ''; position: absolute; left: -5px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.event:last-child { padding-bottom: 4px; }
.event strong { font-size: 15px; }
.event p { margin: 3px 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }
.event small,.sub { color: var(--muted); font-size: 13px; }
dialog { width: min(540px,94vw); max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 18px; padding: 24px; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: #0b293b65; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
dialog h3 { font-size: 16px; }
#global-results h3 { margin: 18px 4px 5px; font-size: 13px; color: var(--teal); }
.code { display: block; user-select: all; overflow-wrap: anywhere; border-radius: 8px; background: #eff6f8; padding: 12px; font-size: 15px; }
.error { color: #ac3434; font-size: 14px; line-height: 1.55; }
.error:empty,#toast:empty { display: none; }
#toast { position: fixed; z-index: 60; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: 90%; padding: 12px 18px; border-radius: 10px; background: var(--navy); color: white; font-size: 14px; }
hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

/* Company sign-in, based on the supplied two-column composition. */
.auth-page { display: grid; grid-template-rows: 1fr auto; min-height: 100dvh; background: white; color: #252a31; }
.auth-layout { display: grid; grid-template-columns: minmax(270px,400px) minmax(0,460px); gap: clamp(40px,5vw,80px); align-items: center; justify-content: center; width: 100%; padding: 50px 32px 65px; }
.auth-form { width: 100%; }
.company-logo { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto 38px; }
.office-photo { display: block; width: 100%; height: auto; }
.auth-form form { gap: 20px; }
.auth-form label { font-size: 13px; gap: 3px; color: #4f5760; }
.auth-form input { border: 0; border-bottom: 1px solid #cbd0d4; border-radius: 0; padding: 9px 0 11px; background: transparent; font-size: 16px; }
.auth-form input:focus { outline: none; box-shadow: 0 2px #0b4057; border-color: #0b4057; }
.auth-form input::placeholder { color: #808991; font-weight: 400; }
.auth-form button.primary { margin-top: 6px; min-height: 54px; border: 0; border-radius: 4px; background: #4e535b; box-shadow: none; color: white; font-size: 16px; }
.auth-form button.primary:hover { background: #323942; }
.auth-links { display: flex; justify-content: center; margin-top: 11px; }
.auth-links button { min-height: 42px; padding: 7px; font-size: 14px; }
.auth-heading { font-size: 23px; margin: 0 0 6px; }
.auth-note,.setup-guide p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-note { margin-bottom: 22px; }
.setup-guide { display: grid; gap: 8px; }
.setup-guide strong { font-size: 14px; }
.auth-page footer { padding: 18px 12px max(30px,env(safe-area-inset-bottom)); text-align: center; color: #6a7680; font-size: 12px; }
.auth-page footer span { margin: 0 5px; }

@media (max-width: 1150px) {
  .main-content { padding-inline: 24px; }
  .metric-card { padding: 16px; }
  .metric-card__icon { width: 30px; height: 30px; top: 13px; right: 12px; }
  .metric-card > span { padding-right: 29px; }
}
@media (max-width: 975px) {
  .sidebar { display: none; }
  .workspace { width: 100%; margin-left: 0; }
  .menu-open .sidebar { display: flex; z-index: 42; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 41; border: 0; background: #122b3e55; }
  .sidebar__close, .topbar__menu { display: inline-flex; }
  .topbar { height: 62px; padding: 0 15px; gap: 10px; }
}
@media (max-width: 740px) {
  .main-content { padding: 22px 15px max(50px,env(safe-area-inset-bottom)); }
  .page-stack { gap: 15px; }
  .page-header { min-height: 0; align-items: flex-start; flex-direction: column; gap: 13px; }
  .page-header h1 { font-size: clamp(22px,5.5vw,29px); }
  .page-header .actions { width: 100%; }
  .page-header .actions button { flex: 1; min-height: 44px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .metric-card { min-height: 128px; }
  .metric-card > small { margin-top: 7px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .global-search { width: auto; flex: 1; min-width: 0; gap: 6px; }
  .global-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .global-search kbd, .account__button > span:nth-child(2), .account__button > .icon { display: none; }
  .topbar { gap: 5px; padding-inline: 8px; }
  .topbar__actions { gap: 2px; }
  .panel__header { min-height: 67px; padding: 14px 16px; gap: 9px; }
  .panel-body { padding-inline: 9px; }
  .pair { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: minmax(0,400px); padding: 45px 26px; align-content: center; }
  .office-photo { display: none; }
  .company-logo { margin-bottom: 34px; }
  .entry { gap: 8px; }
  .entry:has(.actions) { grid-template-columns: auto minmax(0,1fr); }
  .entry > .actions { grid-column: 2; }
  dialog { padding: 18px; max-height: 90dvh; }
}
@media (max-width: 375px) {
  .metric-card { padding: 13px 10px; }
  .metric-card > span { font-size: 12px; }
  .metric-card__icon { width: 26px; height: 26px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; } }

.task-pair { grid-template-columns: repeat(2,minmax(0,1fr)); }
.task-pair .panel__header { display: grid; grid-template-columns: minmax(48px,1fr) auto minmax(48px,1fr); gap: 5px; }
.task-pair .panel__header > div { grid-column: 2; text-align: center; }
.task-pair .text-button { justify-self: end; white-space: nowrap; }
.task-pair .empty { justify-content: center; text-align: center; }
a.button { text-decoration: none; }
a.button.primary { background: var(--navy); color: white; border-color: var(--navy); }
.sign-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 8px; }
.sign-row + .sign-row { border-top: 1px solid var(--line); }
.sign-row strong { overflow-wrap: anywhere; }
.sign-row small { display: block; color: var(--muted); margin-top: 5px; }
.sign-open { margin: 15px 0; }
@media (max-width: 740px) { .task-pair { grid-template-columns: minmax(0,1fr); } }
.auth-links { flex-wrap: wrap; }
.auth-form .passkey-button { width: 100%; min-height: 46px; margin-top: 10px; color: #153c51; background: white; border: 1px solid #bccbd2; }
.login-otp:not([hidden]) { display: grid; gap: 12px; }
label.trust-choice { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
label.trust-choice input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: #0b4057; }
:root{--navy:#172543;--muted:#5e6678;--line:#dfded9;--teal:#223757;--brand:#172543;color:#172543}
body,.workspace,.board{background:#f5f3ef;color:#172543}
.topbar,.sidebar{background:#fcfbf8;border-color:var(--line)}
.brand-logo__mark,.company-logo{border-radius:0;box-shadow:none}
.page-header h1,.panel h2,.entry strong,.metric-card strong,.brand-logo strong{color:#172543}
.page-header__eyebrow,.text-button,.tel,.rrn-reveal summary{color:#334668}
.sidebar__nav button.active{background:#e9e9e6;color:#172543}
.sidebar__nav button.active:before{background:#ca432a}
button.primary,.button.primary{background:#192844;color:white;border-color:#192844}
.metric-card,.panel{border-color:#dddcd7;border-radius:13px;box-shadow:0 3px 12px #17254305}
.metric-card::after{border-radius:1px;transform:rotate(0);width:48px;height:48px;background:#f4f2ed}
.metric-card__icon{border-radius:7px;background:#243654}.metric-card--red .metric-card__icon{background:#bd402b}
.metric-card--green .metric-card__icon,.metric-card--teal .metric-card__icon{background:#566477}
.panel__header{border-color:#e9e7e2}.tag.teal,.row-icon,.avatar{color:#233557;background:#eeede9}
.version-link{border:0;background:transparent;color:#394a6b;text-decoration:underline;text-underline-offset:3px}
dialog[aria-label="사건 등록"],dialog[aria-label="사건 수정"],dialog[aria-label="계약 전환"],dialog[aria-label^="상담"]{width:min(640px,94vw)}
.record-grid,.fee-select,.record-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}.record-grid>*{min-width:0}
.section-rule,.wc-block h3{margin:16px 0 4px}.type-select,.fee-box,.wc-block,.rrn-reveal{border:1px solid var(--line);padding:12px;border-radius:8px;margin:10px 0}
.type-select summary,.rrn-reveal summary{cursor:pointer;font-weight:650}.type-select summary span{color:var(--muted);font-size:13px;margin-left:8px}
.check-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px}.check-item{display:flex!important;flex-direction:row;align-items:center;gap:5px;margin:0}.check-item input{width:18px;height:18px}
.fee-box legend{font-weight:650}.wc-block{background:#f3f0e9}.source-note,.record-details dt{font-size:12px;color:var(--muted)}
.record-details,.source-note,.rrn-reveal{margin:14px 18px}.record-details dd{margin:3px 0 6px;white-space:pre-wrap;overflow-wrap:anywhere;color:#172543}
.consult-row,.audit-row{display:grid;align-items:center;gap:12px;padding:13px 18px;border-bottom:1px solid #eeeae4}.consult-row{grid-template-columns:minmax(0,1fr) auto auto}.audit-row{grid-template-columns:100px minmax(65px,.4fr) 1fr minmax(80px,.6fr)}
.record-link{display:grid;text-align:left;border:0;background:none;padding:0}.consult-row small,.audit-row small{overflow-wrap:anywhere;color:var(--muted)}
.edited{display:block}.tel{text-decoration:underline;text-underline-offset:3px;padding:7px 0}.login-page .company-logo{object-fit:contain}
@media(max-width:600px){.record-grid,.fee-select{gap:8px}.consult-row{grid-template-columns:1fr auto}.consult-row .tel{grid-column:1/-1}.audit-row{grid-template-columns:85px 1fr}.audit-row span,.audit-row small:last-child{grid-column:1/-1}.record-details{gap:8px}.task-pair .panel__header{grid-template-columns:minmax(42px,1fr) auto minmax(42px,1fr)}}
[hidden]{display:none!important}
.journal-grid{margin:0 18px 18px;border:1px solid #dbe0e5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:10px;overflow:hidden}.journal-grid>div{display:grid;grid-template-columns:minmax(80px,31%) 1fr;border-bottom:1px solid #e4e6e9}.journal-grid dt,.journal-grid dd{margin:0;padding:9px 10px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.journal-grid dt{background:#f5f4f0;font-weight:600}.journal-types,.case-team,.policy-totals p{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.journal-types{margin:14px 18px}.case-team span,.journal-types span{padding:5px 10px;border:1px solid #d8dce2;border-radius:6px;font-size:13px}.table-scroll{overflow-x:auto}.ledger-table{width:100%;border-collapse:collapse;white-space:nowrap}.ledger-table th,.ledger-table td{padding:9px;border-bottom:1px solid #e2e5e9;text-align:left;font-size:13px}.ledger-table th{background:#f6f5f1}.policy-totals,.ledger-memo{padding:4px 18px}.policy-totals p{justify-content:space-between}.policy-row{border:1px solid #d8dde4;border-radius:8px;margin:8px 0;padding:10px}.signed-pages img{display:block;width:100%;margin:12px 0;border:1px solid #ddd}
@media(max-width:650px){.journal-grid{grid-template-columns:1fr}.case-team{gap:3px}.case-team span{padding:4px}.journal-grid,.journal-types{margin-left:10px;margin-right:10px}}
.hospital-filters,.hospital-choice,.map-key{padding:12px 16px}.hospital-filters label{display:grid;gap:4px}.hospital-filters input,.hospital-filters select{width:100%}.hospitals-table small,.picker-results small{display:block;color:#5c687b}.rating{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.dot{display:inline-block;width:11px;height:11px;border-radius:50%;border:1px solid #0003}.dot.green{background:#20825b}.dot.yellow{background:#edbc37}.dot.red{background:#d9513e}.map-host iframe,.location-map iframe{display:block;width:100%;height:clamp(350px,55vh,630px);border:0}.location-map iframe{height:320px}.hospital-picker{max-width:450px}.picker-results{display:grid;max-height:52vh;overflow:auto;gap:6px;margin:10px 0}.picker-results button{text-align:left}.hospital-choice{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.hospital-filters>label{margin-top:8px}.hospitals-table td{vertical-align:middle}.hospital-choice strong{font-size:14px}.event p{white-space:pre-wrap}
