  :root {
    color-scheme: light;
    --blue: #254eac;
    --ink: #252f3c;
    --muted: #526477;
    --line: #dbe2eb;
    --wash: #eef3fa;
    --orange: #923807;
    --orange-bg: #fff0e5;
  }
  * { box-sizing: border-box; }
  html { scroll-padding-top: 16px; }
  body { margin: 0; background: #f4f6f9; color: var(--ink); font: 15px/1.5 "Noto Sans KR", "맑은 고딕", Arial, sans-serif; }
  header { background: white; border-bottom: 1px solid var(--line); }
  .bar, main { max-width: 1320px; margin: auto; padding-inline: clamp(16px, 4vw, 48px); }
  .bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 64px; padding-block: 10px; }
  .logo { color: var(--blue); font-size: 23px; font-weight: 800; letter-spacing: .12em; }
  .identity { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
  main { padding-block: 24px 40px; }
  h1, h2, h3, p { margin: 0; }
  h1 { font-size: clamp(24px, 4vw, 31px); }
  h2 { font-size: 20px; }
  h3 { font-size: 16px; }
  section, aside { margin-top: 20px; }
  .heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .metrics, .teams, .bottom { display: grid; gap: 10px; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
  .teams { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .tile, .panel, .team { background: white; border: 1px solid var(--line); border-radius: 10px; }
  .tile { padding: 12px 15px; color: var(--blue); text-decoration: none; }
  .tile strong { display: block; font-size: 27px; }
  .tile:hover, .team:hover, .team[aria-pressed="true"] { border-color: var(--blue); background: var(--wash); }
  .panel { padding: 14px; min-width: 0; }
  .team { padding: 12px; display: grid; align-content: start; gap: 6px; width: 100%; text-align: left; }
  .team-name { font-size: 16px; font-weight: 750; }
  .muted, small { color: var(--muted); }
  .badge { display: inline-block; padding: 2px 8px; border-radius: 5px; color: var(--blue); background: var(--wash); font-size: 13px; font-weight: 700; }
  .alert { color: var(--orange); background: var(--orange-bg); }
  aside { border: 2px solid var(--orange); border-radius: 8px; padding: 10px 14px; }
  aside strong { margin-right: 8px; }
  button { min-height: 44px; cursor: pointer; color: inherit; font: inherit; }
  button.action { border: 1px solid var(--line); border-radius: 6px; padding-inline: 12px; background: white; font-weight: 700; }
  button.primary { border-color: var(--blue); color: white; background: var(--blue); }
  button.reject { color: var(--orange); }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
  .scroll { overflow-x: auto; }
  table { border-collapse: collapse; width: 100%; text-align: left; }
  th, td { padding: 7px 9px; border-bottom: 1px solid var(--line); }
  th { background: var(--wash); color: #465567; white-space: nowrap; font-size: 13px; }
  tr:last-child td { border-bottom: 0; }
  .nowrap, .actions { white-space: nowrap; }
  .actions button + button { margin-left: 4px; }
  .dots { display: flex; gap: 4px; margin-top: 3px; }
  .dots span { width: 12px; height: 5px; border-radius: 3px; background: var(--line); }
  .dots .done { background: var(--blue); }
  ul { margin: 6px 0 0; padding: 0; list-style: none; }
  li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  li:last-child { border-bottom: 0; }
  #confirmations { margin-top: 10px; }
  .approvals { min-width: 760px; }
  .comment { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--orange); background: var(--orange-bg); border-radius: 0 6px 6px 0; font-size: 14px; overflow-wrap: anywhere; }
  .comment b { color: var(--orange); }
  .overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(37, 47, 60, .45); }
  .overlay[hidden] { display: none; }
  .dialog { width: min(480px, 100%); background: white; border-radius: 12px; padding: 18px; display: grid; gap: 10px; }
  .dialog textarea { width: 100%; min-height: 96px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; resize: vertical; }
  .dialog .row { display: flex; justify-content: flex-end; gap: 8px; }
  .dialog .error { color: var(--orange); font-size: 14px; min-height: 1.5em; }
  button:disabled { opacity: .5; cursor: not-allowed; }
  .badge.blocked { color: white; background: var(--ink); }
  .team.has-blocked { border-left: 5px solid var(--ink); }
  .orders { min-width: 650px; }
  @media (max-width: 950px) {
    .teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bottom { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    .identity { margin-left: 0; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .teams, .bottom { grid-template-columns: 1fr; }
    .approvals { min-width: 0; }
    .approvals thead { display: none; }
    .approvals tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .approvals tr:last-child { border-bottom: 0; }
    .approvals td { padding: 0; border: 0; }
    .approvals .elapsed::before { content: '경과 '; color: var(--muted); }
    .approvals .actions { display: flex; gap: 8px; margin-top: 6px; }
    .approvals .actions button { flex: 1; }
    .actions button + button { margin-left: 0; }
  }
/* 믹스 시안 */
body { word-break: keep-all; display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-areas: "side top" "side main"; min-height: 100vh; }
.gw-side { grid-area: side; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.gw-side .brand { display: flex; align-items: baseline; gap: 8px; padding: 0 12px 18px; }
.gw-side .brand b { font-size: 22px; letter-spacing: .12em; }
.gw-side a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; text-decoration: none; color: inherit; border-radius: 12px; }
.gw-side a svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gw-side a em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; min-width: 22px; text-align: center; padding: 1px 7px; border-radius: 999px; }
.gw-side .extra { margin-top: auto; padding: 12px; display: grid; font-size: 12px; opacity: .8; }
header { grid-area: top; background: transparent; border: 0; }
header .logo, header .bar > b { display: none; }
.bar { max-width: 1240px; }
.search { flex: 1 1 260px; max-width: 420px; min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 16px; }
main { grid-area: main; width: 100%; max-width: 1240px; padding-top: 4px; }
main > h1 { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 26px 30px; margin-top: 6px; }
.hero .hello { font-size: 15px; margin-bottom: 4px; }
.hero-title { text-wrap: balance; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin-bottom: 6px; }
.hero-sub { font-size: 15px; margin-bottom: 14px; }
.hero-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.hero-art { width: 100%; max-height: 170px; }
.a-tick { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.approvals .elapsed::before { content: ''; }
@media (max-width: 800px) {
  body { display: block; padding-bottom: 84px; }
  .gw-side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 8; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 2px; }
  .gw-side .brand, .gw-side .extra, .gw-side .more { display: none; }
  .gw-side a { flex: 1; flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 2px; min-height: 54px; position: relative; justify-content: center; }
  .gw-side a em { position: absolute; top: 2px; right: 18%; margin: 0; padding: 0 5px; font-size: 10px; min-width: 0; }
  header .logo, header .bar > b { display: inline; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .hero { grid-template-columns: 1fr; padding: 20px; }
  .hero-art { display: none; }
}

:root { --blue: #254eac; --ink: #1f2328; --muted: #5f6670; --line: #e1e4e8; --wash: #f0f2f5; }
.a-sun { fill: #c9ced6; } .a-doc { fill: #fff; } .a-doc2 { fill: #d5d9df; } .a-line { fill: #e6e8ec; } .a-check { fill: #254eac; } .a-tick { stroke: #fff; }
.badge { border-radius: 999px; padding: 2px 10px; }

main > .metrics { display: none; }
.hero { padding: 20px 26px; } .hero-art { max-height: 120px; }
.launch { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.launch a { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 14px; text-align: center; }
.launch .sq { position: relative; width: 72px; height: 72px; border-radius: 24px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(31,35,40,.08); }
.launch a:first-child .sq { background: var(--ink); color: #fff; }
.launch svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.launch b { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13px; display: grid; place-items: center; }
.launch b:empty { display: none; }
.launch a:hover .sq { transform: translateY(-2px); }
@media (max-width: 1100px) { .launch { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .launch { gap: 14px 6px; } .launch .sq { width: 60px; height: 60px; border-radius: 20px; } .launch a { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .launch a:hover .sq { transform: none; } }

/* 질감: N 유리 (대비 보강) */
body { background: #eceef2; background-image: radial-gradient(42vw 42vw at 8% 0%, #dde3ee 0%, transparent 70%), radial-gradient(36vw 36vw at 96% 18%, #e8e9ed 0%, transparent 70%), radial-gradient(44vw 44vw at 60% 100%, #e0e5ec 0%, transparent 70%); background-attachment: fixed; }
:root { --muted: #4f5660; }
.gw-side, .hero, .panel, .team, .search, .launch-card { background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(31,35,40,.07); box-shadow: 0 8px 28px rgba(31,35,40,.07); }
.gw-side { margin: 12px 0 12px 12px; height: calc(100vh - 24px); top: 12px; border-radius: 26px; }
.gw-side a:hover { background: rgba(255,255,255,.9); }
.gw-side a.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 2px 10px rgba(31,35,40,.08); }
.gw-side a em { background: var(--ink); color: #fff; }
.hero { border-radius: 30px; color: var(--ink); }
.hero-title { font-weight: 800; }
.hero .hello, .hero-sub { color: var(--muted); }
.hero-btn { background: var(--ink); color: #fff; }
.panel, .team { border-radius: 24px; }
aside { border-radius: 20px; background: rgba(255,240,229,.92); }
button.action { border-radius: 999px; }
th { background: rgba(236,238,242,.9); }
.dialog { border-radius: 22px; }
/* 바로가기: U 앱 런처 */
main > .metrics { display: none; }
.launch-card { border-radius: 30px; padding: 20px 16px; }
.launch-card h2 { font-size: 15px; margin: 0 0 14px 6px; color: var(--muted); font-weight: 700; }
.launch { margin-top: 0 !important; }
.launch .sq { background: #fff; border: 1px solid rgba(31,35,40,.06); }
/* 배치: S 벤토 (PC) */
@media (min-width: 1000px) {
  main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1320px; }
  main > * { margin: 0 !important; }
  .hero { grid-column: 1 / 8; grid-row: 1; height: 100%; }
  .launch-card { grid-column: 8 / -1; grid-row: 1; }
  .launch-card .launch { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
  .launch-card .sq { width: 62px; height: 62px; border-radius: 20px; }
  .launch-card .launch a { font-size: 13px; }
  aside { grid-column: 1 / -1; grid-row: 2; }
  #approvals { grid-column: 1 / 8; grid-row: 3; }
  #rework { grid-column: 8 / -1; grid-row: 3 / 5; }
  #teams-sec { grid-column: 1 / 8; grid-row: 4; }
  #teams-sec .teams { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; }
  #teams-sec .team { flex: 0 0 210px; scroll-snap-align: start; }
  #orders { grid-column: 1 / -1; grid-row: 5; }
  .bottom { display: contents; }
  .bottom > section { grid-row: 6; grid-column: span 4; }
  main > section:last-child { grid-column: 1 / -1; grid-row: 7; }
}
.approvals { min-width: 0; } .approvals thead { display: none; }
.approvals tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.approvals td { padding: 0; border: 0; }
.approvals td:nth-child(1) { grid-column: 1; }
.approvals td:nth-child(2), .approvals td:nth-child(3), .approvals td:nth-child(4) { grid-column: 1; display: inline; }
.approvals td:nth-child(2) div, .approvals td:nth-child(2) small { display: inline; margin-right: 6px; }
.approvals .elapsed::before { content: '경과 '; color: var(--muted); }
.approvals .actions { grid-column: 2; grid-row: 1 / span 4; display: flex; gap: 8px; }
.approvals .actions button { min-width: 84px; }
@media (max-width: 600px) { .approvals tr { grid-template-columns: 1fr; } .approvals .actions { grid-column: 1; grid-row: auto; margin-top: 6px; } .approvals .actions button { flex: 1; } }
@media (max-width: 999px) { .launch-card { margin-top: 16px; } }
@media (max-width: 800px) { .gw-side { margin: 0; border-radius: 22px 22px 0 0; height: auto; top: auto; } .launch-card { padding: 16px 8px; } }
/* 색조합 C8 · 모노 · 일렉트릭 블루 */
:root { --blue: #2563eb; --ink: #111827; --muted: #4b5563; }
body { background-color: #f4f4f5; background-image: radial-gradient(42vw 42vw at 8% 0%, #e7e7ea 0%, transparent 70%), radial-gradient(36vw 36vw at 96% 18%, #ededf0 0%, transparent 70%), radial-gradient(44vw 44vw at 60% 100%, #e4e4e7 0%, transparent 70%); }
.gw-side .brand b, .gw-side a.on { color: #2563eb; }
.gw-side a em, .hero-btn, .launch a:first-child .sq, .launch b { background: #2563eb; color: #fff; }
button.primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.a-check { fill: #2563eb; } .a-tick { stroke: #fff; } .a-sun { fill: #ededf0; } .a-doc2 { fill: #e7e7ea; }

/* 대표 로고 적용 */
@media (min-width: 801px) { .gw-side .brand { display: grid; justify-items: start; gap: 8px; padding: 4px 12px 20px; } }
.gw-side .brand img { width: 104px; height: auto; display: block; }
.gw-side .brand span { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
header .logo-lockup { display: none; align-items: center; gap: 8px; }
header .logo-lockup .sym { height: 30px; width: auto; }
header .logo-lockup .word { height: 11px; width: auto; }
header .logo-lockup span { font-weight: 700; font-size: 15px; margin-left: 4px; }
@media (max-width: 800px) { header .logo-lockup { display: inline-flex; } header .bar > b.logo, header .bar > b.logo + b { display: none !important; } }

/* 다크 모드 (C8 계열: 무채색 다크 + 일렉트릭 블루) */
:root[data-theme="dark"] { color-scheme: dark; --blue: #60a5fa; --ink: #ecedef; --muted: #a9adb5; --line: #34373e; --wash: rgba(28,29,33,.9); --orange: #ffb38a; --orange-bg: #3a2a22; }
:root[data-theme="dark"] body { background-color: #111214; background-image: radial-gradient(42vw 42vw at 8% 0%, #16203a 0%, transparent 70%), radial-gradient(36vw 36vw at 96% 18%, #1a1b1f 0%, transparent 70%), radial-gradient(44vw 44vw at 60% 100%, #15171c 0%, transparent 70%); }
:root[data-theme="dark"] .gw-side, :root[data-theme="dark"] .hero, :root[data-theme="dark"] .panel, :root[data-theme="dark"] .team, :root[data-theme="dark"] .search, :root[data-theme="dark"] .launch-card, :root[data-theme="dark"] .dialog { background: rgba(28,29,33,.9); border-color: rgba(255,255,255,.07); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
:root[data-theme="dark"] .search { color: var(--ink); }
:root[data-theme="dark"] .gw-side a:hover { background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .gw-side a.on { background: rgba(255,255,255,.08); color: #60a5fa; box-shadow: none; }
:root[data-theme="dark"] .gw-side a em, :root[data-theme="dark"] .hero-btn, :root[data-theme="dark"] .launch a:first-child .sq, :root[data-theme="dark"] .launch b { background: #60a5fa; color: #111214; }
:root[data-theme="dark"] .launch .sq { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.07); color: var(--ink); }
:root[data-theme="dark"] .launch a { color: var(--ink); }
:root[data-theme="dark"] aside { background: rgba(58,42,34,.9); }
:root[data-theme="dark"] th { background: rgba(255,255,255,.05); color: #a9adb5; }
:root[data-theme="dark"] button.action { background: rgba(255,255,255,.05); color: var(--ink); border-color: #34373e; }
:root[data-theme="dark"] button.primary { background: #60a5fa; border-color: #60a5fa; color: #111214; }
:root[data-theme="dark"] button.reject { color: var(--orange); }
:root[data-theme="dark"] .badge.blocked { background: var(--ink); color: #111214; }
:root[data-theme="dark"] .team.has-blocked { border-left-color: var(--ink); }
:root[data-theme="dark"] .dots span { background: #34373e; }
:root[data-theme="dark"] .dialog textarea { background: #111214; color: var(--ink); }
:root[data-theme="dark"] .a-doc { fill: rgba(255,255,255,.12); }
:root[data-theme="dark"] .a-doc2 { fill: rgba(255,255,255,.07); }
:root[data-theme="dark"] .a-line { fill: rgba(255,255,255,.2); }
:root[data-theme="dark"] .a-sun { fill: #2a3a5c; }
:root[data-theme="dark"] .a-check { fill: #60a5fa; }
:root[data-theme="dark"] .a-tick { stroke: #111214; }
:root[data-theme="dark"] .overlay { background: rgba(0,0,0,.6); }
:root[data-theme="dark"] header, :root[data-theme="dark"] .tile, :root[data-theme="dark"] .badge { background: transparent; }
:root[data-theme="dark"] .badge { background: rgba(96,165,250,.14); color: #9cc3ff; }
:root[data-theme="dark"] .gw-side .brand span { color: #a9adb5; }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
:root[data-theme="dark"] header .logo-lockup img.logo-dark { display: inline-block !important; }
.theme-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.75); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
:root[data-theme="dark"] .theme-btn { background: rgba(255,255,255,.06); border-color: #34373e; }
.temp-note { font-size: 11px; color: var(--muted); }

/* ===== 실사용 버전 추가 (v1.0) ===== */
.orders { min-width: 760px; }
@media (min-width: 601px) { .approvals .actions { grid-row: 1 / span 5; } }
@media (min-width: 1000px) {
  #approvals { grid-column: 1 / 8; grid-row: 3; }
  #todos { grid-column: 8 / -1; grid-row: 3; }
  #teams-sec { grid-column: 1 / 8; grid-row: 4; }
  #rework { grid-column: 8 / -1; grid-row: 4; }
  #orders { grid-column: 1 / -1; grid-row: 5; }
  .bottom > section { grid-row: 6; }
  main > section[aria-labelledby="rules-title"] { grid-column: 1 / -1; grid-row: 7; }
}
header .bar { gap: 8px 12px; }
.identity .theme-btn { min-height: 40px; }
input, select, textarea { font: inherit; color: inherit; }
.dialog input:not([type="checkbox"]), .dialog select, .todo-add input, .stage-select, .due-input {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px;
}
.stage-select, .due-input { min-height: 38px; padding: 4px 10px; font-size: 14px; border-radius: 999px; }
.dialog .fields { display: grid; gap: 12px; }
.dialog .field { display: grid; gap: 4px; }
.dialog .field.check { display: flex; align-items: center; gap: 10px; }
.dialog .field.check input { width: 22px; height: 22px; }
.dialog .field label { font-size: 14px; font-weight: 700; color: var(--muted); }
.menu-list { display: grid; gap: 8px; }
.link-btn { min-height: 32px; border: 0; background: none; color: var(--blue); text-decoration: underline; padding: 0 4px; font-size: 14px; }
.memo { margin-top: 4px; font-size: 14px; color: var(--muted); white-space: pre-wrap; }
.warn { color: var(--orange); font-weight: 700; }
.mini-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-actions .action { min-height: 36px; font-size: 13px; }
.row-li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-li .action { min-height: 36px; flex: none; }
.todo-add { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.todo-add #todo-text { flex: 1 1 180px; }
.todo-add #todo-due { flex: 0 1 160px; }
.todo-list li { display: flex; align-items: center; gap: 8px; }
.todo-item { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.todo-item input { width: 22px; height: 22px; flex: none; accent-color: var(--blue); }
.todo-list li.done .todo-text { text-decoration: line-through; color: var(--muted); }
.icon-btn { min-height: 36px; border: 0; background: none; color: var(--muted); font-size: 13px; padding: 0 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 20; margin: 0 !important; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--orange); }
@media (max-width: 800px) { .toast { bottom: 96px; } }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
:root[data-theme="dark"] .dialog input:not([type="checkbox"]), :root[data-theme="dark"] .dialog select, :root[data-theme="dark"] .todo-add input, :root[data-theme="dark"] .stage-select, :root[data-theme="dark"] .due-input { background: #111214; color: var(--ink); border-color: #34373e; color-scheme: dark; }
:root[data-theme="dark"] .toast { background: #ecedef; color: #111214; }
:root[data-theme="dark"] .toast.is-error { background: #ffb38a; }
@media (max-width: 800px) {
  .identity { width: 100%; margin-left: 0; justify-content: space-between; }
  .identity time { display: none; }
}

/* 로그인 화면 */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-wrap { width: min(400px, 100%); padding: 0; }
.login-card { display: grid; gap: 10px; padding: 28px 24px; border-radius: 26px; background: rgba(255,255,255,.88); border: 1px solid rgba(31,35,40,.07); box-shadow: 0 8px 28px rgba(31,35,40,.07); }
.login-card h1 { display: block; font-size: 22px; margin-top: 6px; }
.login-logo { width: 110px; height: auto; }
.login-card label { font-size: 14px; font-weight: 700; color: var(--muted); }
.login-card input { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; width: 100%; }
.login-card #setup-fields, .login-card #confirm-field { display: grid; gap: 10px; }
.login-card [hidden] { display: none !important; }
.login-card .error { color: var(--orange); min-height: 1.4em; font-size: 14px; }
.login-card .action { min-height: 50px; border-radius: 999px; font-weight: 700; }
:root[data-theme="dark"] .login-card { background: rgba(28,29,33,.9); border-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .login-card input { background: #111214; border-color: #34373e; }
.login-page { grid-template-columns: 1fr; grid-template-areas: none; padding-bottom: 16px !important; }
.login-page main.login-wrap { display: block; grid-area: auto; max-width: 400px; padding: 0; }

/* 일정 달력 */
@media (min-width: 1000px) {
  #calendar { grid-column: 1 / -1; grid-row: 6; }
  .bottom > section { grid-row: 7; }
  main > section[aria-labelledby="rules-title"] { grid-row: 8; }
}
.cal-head { gap: 10px 16px; }
.cal-nav, .cal-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-nav strong { min-width: 7.5em; text-align: center; font-size: 17px; }
.cal-nav .action { min-height: 40px; min-width: 40px; padding-inline: 10px; }
#cal-prev, #cal-next { font-size: 20px; line-height: 1; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); }
.seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(31,35,40,.12); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 6px; }
.cal-wd { padding: 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); background: rgba(236,238,242,.9); border-bottom: 1px solid var(--line); }
.cal-wd:first-child { color: #c2410c; } .cal-wd:nth-child(7) { color: var(--blue); }
.cal-day { min-height: 108px; padding: 4px 5px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.cal-day:nth-child(7n+7) { border-right: 0; }
.cal-day:nth-last-child(-n+7) { border-bottom: 0; }
.cal-day:hover { background: rgba(37,99,235,.04); }
.cal-day.other { background: rgba(0,0,0,.02); }
.cal-day.other .cal-num { opacity: .45; }
.cal-num { align-self: flex-start; min-height: 30px; min-width: 30px; padding: 0 6px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 700; }
.cal-day.sun .cal-num { color: #c2410c; } .cal-day.sat .cal-num { color: var(--blue); }
.cal-day.is-today .cal-num { background: var(--blue); color: #fff; }
.cal-chips { display: grid; gap: 3px; min-width: 0; }
.chip { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 7px; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 1.5; text-align: left; border: 1px solid transparent; }
button.chip { min-height: 0; cursor: pointer; font-family: inherit; }
.chip.ev { background: #2563eb; color: #fff; }
.chip.od { background: #fff; color: var(--blue); border-color: rgba(37,99,235,.45); }
.chip.td { background: #ececef; color: #3f4650; }
.chip.done { text-decoration: line-through; opacity: .6; }
.chip.more { background: none; color: var(--muted); padding-left: 4px; }
.cal-dots { display: none; gap: 3px; justify-content: center; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: #2563eb; }
.cal-dots i.od { background: transparent; border: 1.5px solid #2563eb; }
.cal-dots i.td { background: #9ca3af; }
.cal-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px !important; }
.cal-legend .chip { display: inline-block; }
.cal-list { margin-top: 6px; }
.cal-list > li { display: grid; gap: 6px; padding: 10px 0; }
.cal-list-day { justify-self: start; min-height: 32px; border: 0; background: none; padding: 0; font-weight: 800; font-size: 15px; }
.cal-list > li.is-today .cal-list-day { color: var(--blue); }
.cal-list-items { display: grid; gap: 6px; }
.cal-list-row { display: grid; gap: 2px; }
.cal-list-row .chip { justify-self: start; font-size: 14px; padding: 4px 10px; white-space: normal; }
.day-list { display: grid; gap: 12px; }
.day-list ul { margin: 0; }
.day-list li .chip { display: inline-block; font-size: 14px; padding: 4px 10px; white-space: normal; }
@media (max-width: 600px) {
  .cal-day { min-height: 54px; padding: 2px; align-items: center; }
  .cal-num { align-self: center; font-size: 13px; min-height: 28px; min-width: 28px; }
  .cal-chips { display: none; }
  .cal-dots { display: flex; }
  .cal-grid { border-radius: 14px; }
  .cal-nav strong { min-width: 6.5em; }
}
:root[data-theme="dark"] .cal-wd { background: rgba(255,255,255,.05); }
:root[data-theme="dark"] .cal-day.other { background: rgba(255,255,255,.02); }
:root[data-theme="dark"] .cal-day:hover { background: rgba(96,165,250,.06); }
:root[data-theme="dark"] .cal-day.is-today .cal-num { background: #60a5fa; color: #111214; }
:root[data-theme="dark"] .chip.ev, :root[data-theme="dark"] .cal-dots i { background: #60a5fa; color: #111214; }
:root[data-theme="dark"] .chip.od { background: transparent; color: #9cc3ff; border-color: rgba(96,165,250,.5); }
:root[data-theme="dark"] .cal-dots i.od { background: transparent; border-color: #60a5fa; }
:root[data-theme="dark"] .chip.td { background: rgba(255,255,255,.1); color: #d4d6db; }
:root[data-theme="dark"] .cal-dots i.td { background: #6b7280; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: rgba(255,255,255,.12); color: var(--ink); }
:root[data-theme="dark"] .cal-wd:first-child, :root[data-theme="dark"] .cal-day.sun .cal-num { color: #fdba74; }
:root[data-theme="dark"] .dialog input[type="time"] { color-scheme: dark; }
.chip.lv { background: #fef3c7; color: #92400e; }
.cal-dots i.lv { background: #f59e0b; }
:root[data-theme="dark"] .chip.lv { background: rgba(245,158,11,.18); color: #fcd34d; }

/* 알림 · 메일 · 문서함 · 첨부 */
@media (min-width: 1000px) {
  #mail { grid-column: 1 / 6; grid-row: 7; }
  #files { grid-column: 6 / -1; grid-row: 7; }
  .bottom > section { grid-row: 8; }
  main > section[aria-labelledby="rules-title"] { grid-row: 9; }
}
.bell { position: relative; padding-inline: 10px; }
.bell svg { width: 20px; height: 20px; }
.bell b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 12px; display: grid; place-items: center; }
.bell b:empty { display: none; }
.mail-list li { padding: 0; }
.mail-row { width: 100%; display: grid; gap: 2px; text-align: left; border: 0; background: none; padding: 10px 4px; min-height: 0; }
.mail-top { display: flex; justify-content: space-between; gap: 8px; }
.mail-who { font-size: 14px; color: var(--muted); }
.mail-list li.unread .mail-subject { font-weight: 800; }
.mail-list li.unread .mail-who::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2563eb; margin-right: 6px; vertical-align: middle; }
.mail-view { display: grid; gap: 10px; }
.mail-body { white-space: pre-wrap; padding: 12px; border-radius: 14px; background: var(--wash); max-height: 50vh; overflow: auto; }
.recipients { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; display: grid; gap: 4px; margin: 0; }
.recipients legend { font-size: 14px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.check-row { display: flex; align-items: center; gap: 6px; min-height: 36px; }
.check-row input { width: 20px; height: 20px; }
.dialog input[type="file"] { padding: 8px 0; border: 0; min-height: 0; background: none; }
.dialog textarea#mail-body { min-height: 140px; }
.file-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.file-tools select, .file-tools input { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; }
.file-tools input { flex: 1 1 160px; }
.file-table td { vertical-align: middle; }
.file-table td:first-child { overflow-wrap: anywhere; }
.file-table .actions { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.file-link { color: var(--blue); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.file-link:hover { text-decoration: underline; }
.attach { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 4px; font-size: 13px; }
.attach .link-btn { font-size: 13px; min-height: 28px; }
.usage { font-size: 13px; margin-top: 8px !important; }
.noti-list li { padding: 0; }
.noti-row { width: 100%; display: grid; gap: 2px; text-align: left; border: 0; background: none; padding: 10px 2px; min-height: 0; }
.noti-list li.unread .noti-row span { font-weight: 800; }
.noti-list li.unread .noti-row span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2563eb; margin-right: 6px; vertical-align: middle; }
.dialog { max-height: calc(100vh - 32px); overflow-y: auto; }
#mail .seg { margin-bottom: 4px; }
:root[data-theme="dark"] .bell b, :root[data-theme="dark"] .mail-list li.unread .mail-who::before, :root[data-theme="dark"] .noti-list li.unread .noti-row span::before { background: #60a5fa; color: #111214; }
:root[data-theme="dark"] .file-tools select, :root[data-theme="dark"] .file-tools input { background: #111214; color: var(--ink); border-color: #34373e; }
@media (max-width: 800px) { .identity { flex-wrap: wrap; } }

/* 재무 (대표만) */
@media (min-width: 1000px) {
  #finance { grid-column: 1 / -1; grid-row: 7; }
  #mail { grid-row: 8; } #files { grid-row: 8; }
  .bottom > section { grid-row: 9; }
  main > section[aria-labelledby="rules-title"] { grid-row: 10; }
}
#finance h3 { font-size: 15px; margin: 14px 0 6px; color: var(--muted); }
#finance .heading h3 { margin: 0; }
#finance .heading { margin: 14px 0 6px; }
#finance-title small { font-size: 12px; font-weight: 600; }
a.as-btn { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: inherit; }
.fin-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.fin-card { padding: 14px 16px; border-radius: 20px; background: var(--wash); display: grid; gap: 2px; }
.fin-card strong { font-size: clamp(18px, 2.4vw, 26px); letter-spacing: -.01em; }
.fin-card.pos strong { color: #2563eb; } .fin-card.neg strong { color: var(--orange); }
.fin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
.fin-biz th { background: none; color: var(--ink); font-size: 14px; }
.fin-biz td { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.fin-biz td:nth-child(2) { color: #2563eb; } .fin-biz td:nth-child(3) { color: var(--muted); }
.fin-trend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 120px; align-items: end; }
.fin-bar { display: grid; grid-template-rows: 1fr auto; height: 100%; justify-items: center; gap: 4px; }
.fin-bar .bars { display: flex; align-items: end; gap: 3px; height: 100%; }
.fin-bar i { width: 10px; border-radius: 4px 4px 0 0; min-height: 2px; }
.fin-bar i.in { background: #2563eb; } .fin-bar i.out { background: #c4c7cd; }
.fin-list { max-height: 420px; overflow-y: auto; }
.fin-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.fin-row > div { display: grid; gap: 2px; min-width: 0; }
.fin-row .amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-row .amt.in { color: #2563eb; }
.chip.fx { background: #e0e7ff; color: #3730a3; }
.chip.tax { background: #fee2e2; color: #991b1b; }
.cal-dots i.fx { background: #6366f1; } .cal-dots i.tax { background: #ef4444; }
.dialog.wide { width: min(860px, 100%); }
.import-table { font-size: 13px; }
.import-table td, .import-table th { padding: 5px 6px; }
.import-box .scroll { max-height: 50vh; overflow: auto; }
@media (max-width: 700px) {
  .fin-grid { grid-template-columns: 1fr; gap: 4px; }
  .fin-cards { grid-template-columns: 1fr 1fr; }
  .fin-cards .fin-card:last-child { grid-column: 1 / -1; }
}
:root[data-theme="dark"] .fin-card.pos strong, :root[data-theme="dark"] .fin-biz td:nth-child(2), :root[data-theme="dark"] .fin-row .amt.in { color: #60a5fa; }
:root[data-theme="dark"] .fin-bar i.in { background: #60a5fa; } :root[data-theme="dark"] .fin-bar i.out { background: #4b5058; }
:root[data-theme="dark"] .chip.fx { background: rgba(99,102,241,.22); color: #c7d2fe; }
:root[data-theme="dark"] .chip.tax { background: rgba(239,68,68,.2); color: #fecaca; }
[hidden] { display: none !important; }
.fin-row > div > .link-btn, .fin-row .attach { justify-self: start; }
a.as-btn { border: 1px solid var(--line); border-radius: 999px; padding-inline: 12px; background: white; font-weight: 700; }
:root[data-theme="dark"] a.as-btn { background: rgba(255,255,255,.05); border-color: #34373e; }

/* ---------- 연도 · 월 고르기 · 고른 날짜 · 대시보드 미니 달력 ---------- */
select.ym { min-height: 40px; padding: 0 28px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); color: inherit; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.cal-day.is-picked { box-shadow: inset 0 0 0 2px #2563eb; background: rgba(37,99,235,.06); }
.day-panel { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.55); }
.day-panel .heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.day-panel h3 { margin: 0; font-size: 15px; }
.day-panel ul { display: grid; gap: 8px; }
.day-panel li.muted { font-size: 14px; }
#schedule .heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-nav { margin: 8px 0 4px; }
.mini-nav select.ym { min-height: 36px; font-size: 14px; padding: 0 24px 0 10px; }
.mini-nav .action { min-height: 36px; min-width: 36px; }
#mini-prev, #mini-next { font-size: 18px; line-height: 1; }
.cal-grid.mini .cal-day { min-height: 44px; padding: 2px; align-items: center; gap: 2px; }
.cal-grid.mini .cal-num { align-self: center; font-size: 13px; min-height: 28px; min-width: 28px; }
.cal-grid.mini .cal-dots { display: flex; }
.cal-grid.mini .cal-wd { padding: 4px; font-size: 12px; }
.deadline-note { display: grid; gap: 4px; margin: 6px 0 2px; font-size: 13px; color: var(--muted); }
.deadline-note .warn { color: #c2410c; font-weight: 700; }
:root[data-theme="dark"] select.ym { background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .cal-day.is-picked { box-shadow: inset 0 0 0 2px #60a5fa; background: rgba(96,165,250,.08); }
:root[data-theme="dark"] .day-panel { background: rgba(255,255,255,.03); }
:root[data-theme="dark"] .deadline-note .warn { color: #fdba74; }
.cal-nav select.ym { width: auto; flex: 0 0 auto; }
@media (max-width: 600px) {
  .cal-nav { flex-wrap: nowrap; gap: 4px; }
  .cal-nav select.ym { padding: 0 20px 0 8px; font-size: 14px; }
  .cal-nav .action { padding-inline: 8px; min-width: 36px; }
}

/* ---------- 조직도 · 임직원 ---------- */
@media (min-width: 1000px) {
  #org { grid-column: 1 / -1; grid-row: 9; }
  .bottom > section { grid-row: 10; }
  main > section[aria-labelledby="rules-title"] { grid-row: 11; }
}
.org-edit { display: inline-flex; gap: 6px; }
.org-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 12px; }
.org-tools input[type="search"] { flex: 1 1 260px; min-height: 44px; }
.org-top { display: grid; justify-items: center; gap: 6px; padding: 12px; margin-bottom: 12px; border-radius: 18px; background: rgba(37,99,235,.06); }
.org-top .org-uh h3 { margin: 0; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; align-items: start; }
.org-unit { border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; background: rgba(255,255,255,.6); display: grid; gap: 6px; }
.org-unit .org-unit { border: 0; border-left: 3px solid rgba(37,99,235,.25); border-radius: 0; padding: 2px 0 2px 10px; background: none; }
.org-uh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.org-uh h3, .org-uh h4 { margin: 0; font-size: 15px; }
.org-uh h4 { font-size: 14px; color: var(--muted); }
.org-uh .link-btn { margin-left: auto; font-size: 13px; }
.org-people { display: flex; flex-wrap: wrap; gap: 6px; }
.org-person { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card, #fff); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.org-person:hover { border-color: rgba(37,99,235,.5); }
.org-pt { display: grid; line-height: 1.25; }
.org-pt b { font-size: 14px; }
.org-pt small { font-size: 12px; color: var(--muted); }
.org-av { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2563eb; color: #fff; font-weight: 800; font-size: 14px; }
.org-av.ai { background: #e5e7eb; color: #374151; font-size: 11px; letter-spacing: .02em; }
.org-results { display: grid; gap: 8px; }
.org-results .org-person { border-radius: 16px; width: 100%; padding: 8px 12px 8px 8px; }
.org-profile { display: grid; gap: 12px; }
.org-ph { display: flex; align-items: center; gap: 12px; }
.org-ph .org-av { width: 52px; height: 52px; font-size: 20px; }
.org-ph .org-av.ai { font-size: 15px; }
.org-ph div { display: grid; }
.org-ph strong { font-size: 19px; }
.org-profile dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.org-profile dt { color: var(--muted); font-size: 14px; }
.org-profile dd { margin: 0; font-size: 15px; word-break: break-all; }
.org-profile .actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .org-grid { grid-template-columns: 1fr; } .org-profile .actions button { flex: 1 1 45%; } }
:root[data-theme="dark"] .org-top { background: rgba(96,165,250,.08); }
:root[data-theme="dark"] .org-unit { background: rgba(255,255,255,.03); }
:root[data-theme="dark"] .org-unit .org-unit { border-left-color: rgba(96,165,250,.3); }
:root[data-theme="dark"] .org-person { background: rgba(255,255,255,.05); }
:root[data-theme="dark"] .org-av { background: #60a5fa; color: #111214; }
:root[data-theme="dark"] .org-av.ai { background: rgba(255,255,255,.14); color: #e5e7eb; }
@media (min-width: 1000px) { .launch-card .launch { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 4px; } .launch-card .sq { width: 58px; height: 58px; } }
@media (max-width: 600px) { .launch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
input.org-q { padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card, #fff); font: inherit; font-size: 15px; color: inherit; }
:root[data-theme="dark"] .org-tools input.org-q { background: rgba(255,255,255,.06); }

/* ---------- 신청서 (워크플로우) ---------- */
@media (min-width: 1000px) {
  #forms { grid-column: 1 / -1; grid-row: 9; }
  #org { grid-row: 10; }
  .bottom > section { grid-row: 11; }
  main > section[aria-labelledby="rules-title"] { grid-row: 12; }
}
#forms-note { margin: 2px 0 8px; font-size: 13px; }
.forms { display: grid; gap: 14px; }
.form-group h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.form-card { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card, #fff); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.form-card:hover { border-color: rgba(37,99,235,.5); }
.form-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #eef2ff; color: #2563eb; }
.form-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.form-tx { display: grid; line-height: 1.3; min-width: 0; }
.form-tx b { font-size: 14px; }
.form-tx small { font-size: 12px; color: var(--muted); }
.form-card .badge { position: absolute; top: 6px; right: 8px; font-size: 11px; }
.form-card:has(.badge) .form-tx { padding-right: 56px; }
.forms-manage { display: grid; gap: 10px; }
.forms-manage small { font-size: 12px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
@media (min-width: 1000px) { .launch-card .launch { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 600px) { .launch { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 2px; } .launch .sq { width: 52px; height: 52px; border-radius: 18px; } .launch svg { width: 26px; height: 26px; } .launch a { font-size: 11px; } }
:root[data-theme="dark"] .form-card { background: rgba(255,255,255,.05); }
:root[data-theme="dark"] .form-ic { background: rgba(96,165,250,.15); color: #93c5fd; }
/* 양식 선택 (탭 · 검색 · 목록) */
.fpick { display: grid; gap: 6px; }
.fpick-top { display: grid; gap: 8px; background: inherit; }
.dialog .fpick-top { position: sticky; top: -18px; z-index: 2; margin: 0 -18px; padding: 4px 18px 0; background: #fff; }
.fpick-q { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card, #fff); font: inherit; font-size: 15px; color: inherit; }
.fpick-tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.fpick-tabs::-webkit-scrollbar { display: none; }
.fpick-tab { flex: none; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; }
.fpick-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.fpick-list { display: grid; gap: 4px 18px; }
.panel .fpick-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.fpick-group h3 { margin: 14px 0 4px; font-size: 15px; scroll-margin-top: 110px; }
.fpick-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 6px 4px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fpick-row:hover { background: rgba(37,99,235,.05); }
.fpick-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #f1f3f6; color: #1f2937; }
.fpick-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fpick-tx { display: grid; line-height: 1.3; min-width: 0; }
.fpick-tx b { font-size: 16px; }
.fpick-tx small { font-size: 13px; color: var(--muted); }
:root[data-theme="dark"] .dialog .fpick-top { background: rgb(28,29,33); }
:root[data-theme="dark"] .fpick-q { background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .fpick-tab[aria-selected="true"] { color: #f3f4f6; border-bottom-color: #f3f4f6; }
:root[data-theme="dark"] .fpick-ic { background: rgba(255,255,255,.08); color: #e5e7eb; }
:root[data-theme="dark"] .fpick-row:hover { background: rgba(96,165,250,.08); }

/* ---------- 아침 요약 · 백업 ---------- */
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-btn2 { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, #fff); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.brief { display: grid; gap: 12px; }
.brief-sec .heading { display: flex; align-items: center; justify-content: space-between; }
.brief-sec h3 { margin: 0; font-size: 15px; }
.brief-sec ul { display: grid; gap: 4px; margin-top: 4px; }
.brief-sec li { font-size: 14px; }
.brief-sec li small { color: var(--muted); }
.backup { display: grid; gap: 8px; }
.backup h3 { margin: 10px 0 0; font-size: 15px; }
.backup .as-btn { justify-self: start; }
.backup-list { display: grid; gap: 4px; }
:root[data-theme="dark"] .hero-btn2 { background: rgba(255,255,255,.06); }

/* ---------- 프로젝트 보드 · 거래처 ---------- */
@media (min-width: 1000px) {
  #board { grid-column: 1 / -1; grid-row: 9; }
  #clients { grid-column: 1 / -1; grid-row: 10; }
  #forms { grid-row: 11; }
  #org { grid-row: 12; }
  .bottom > section { grid-row: 13; }
  main > section[aria-labelledby="rules-title"] { grid-row: 14; }
}
.board-tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 12px; scrollbar-width: none; }
.board-tabs small { color: var(--muted); font-weight: 600; }
.board-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.board-col { border-radius: 16px; background: rgba(0,0,0,.03); padding: 8px; display: grid; align-content: start; gap: 6px; min-height: 120px; }
.board-col.over { outline: 2px dashed #2563eb; outline-offset: -2px; }
.board-ch { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.board-ch h3 { margin: 0; font-size: 14px; }
.board-ch .link-btn { margin-left: auto; font-size: 18px; min-width: 32px; min-height: 32px; }
.board-cards { display: grid; gap: 6px; }
.board-card { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 4px; cursor: grab; }
.board-card.dragging { opacity: .5; }
.board-card.done .board-title { text-decoration: line-through; color: var(--muted); }
.board-title { border: 0; background: none; padding: 0; text-align: left; font: inherit; font-weight: 700; font-size: 14px; color: inherit; cursor: pointer; min-height: 24px; }
.board-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.board-meta .warn, .client-side .warn { color: #c2410c; font-weight: 700; }
.board-move { display: flex; gap: 4px; justify-content: flex-end; }
.board-move .action { min-height: 30px; min-width: 34px; padding: 0 8px; font-size: 16px; }
.board-empty { font-size: 13px; padding: 4px; }
.board-hint { font-size: 12px; margin-top: 8px !important; }
@media (max-width: 900px) {
  .board-cols { grid-template-columns: repeat(4, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .board-col { scroll-snap-align: start; }
}
.client-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.client-tools input { flex: 1 1 240px; min-height: 44px; }
.client-tools select { min-height: 44px; border-radius: 999px; padding: 0 14px; border: 1px solid var(--line); background: var(--card, #fff); color: inherit; font: inherit; }
.client-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.client-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card, #fff); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.client-row:hover { border-color: rgba(37,99,235,.5); }
.client-main { display: grid; min-width: 0; }
.client-main b { font-size: 15px; }
.client-main small, .client-side small { font-size: 12px; color: var(--muted); }
.client-side { display: grid; justify-items: end; gap: 2px; flex: none; }
.badge.st-0 { background: #f3f4f6; color: #4b5563; } .badge.st-1 { background: #dbeafe; color: #1d4ed8; } .badge.st-2 { background: #dcfce7; color: #166534; } .badge.st-3 { background: #f3f4f6; color: #9ca3af; }
.client-detail h3 { margin: 6px 0 0; font-size: 15px; }
.client-detail .heading { display: flex; align-items: center; justify-content: space-between; }
.client-log-form { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; }
.client-log-form input { min-height: 40px; }
.client-logs li, .client-files li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.client-logs li > div { flex: 1; }
@media (max-width: 600px) { .client-log-form { grid-template-columns: 1fr 1fr; } .client-log-form input:nth-child(2) { grid-column: 1 / -1; grid-row: 1; } .client-list { grid-template-columns: 1fr; } }
@media (min-width: 1000px) { .launch-card .launch { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 2px; } .launch-card .sq { width: 52px; height: 52px; border-radius: 18px; } .launch-card .launch svg { width: 26px; height: 26px; } .launch-card .launch a { font-size: 12px; } }
@media (max-width: 600px) { .launch { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 4px; } .launch .sq { width: 56px; height: 56px; } }
:root[data-theme="dark"] .board-col { background: rgba(255,255,255,.04); }
:root[data-theme="dark"] .board-card, :root[data-theme="dark"] .client-row, :root[data-theme="dark"] .client-tools select { background: rgba(255,255,255,.05); }
:root[data-theme="dark"] .badge.st-1 { background: rgba(96,165,250,.18); color: #bfdbfe; } :root[data-theme="dark"] .badge.st-2 { background: rgba(34,197,94,.18); color: #bbf7d0; } :root[data-theme="dark"] .badge.st-0, :root[data-theme="dark"] .badge.st-3 { background: rgba(255,255,255,.08); color: #d1d5db; }

/* ---------- 넓은 모니터: 본문을 사이드바 옆부터 화면 끝까지 채운다 (배치는 같은 12칸, 폭만 넓힘) ---------- */
@media (min-width: 1500px) {
  .bar, main { max-width: none; margin: 0; }
  .bar { padding-right: clamp(16px, 2vw, 40px); }
  main { padding-right: clamp(16px, 2vw, 40px); }
  #teams-sec .teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); overflow: visible; }
  #teams-sec .team { flex: none; }
}
@media (min-width: 2400px) {
  body { font-size: 16px; }
  main { gap: 20px; }
}
