/* 이윤서 · 고객과 생산을 연결하는 업무 공간 */
:root,body[data-theme="apricot"]{--bg:#f4f5f7;--surface:#fff;--surface2:#f5f6f8;--ink:#20242b;--muted:#6e7783;--line:#e6e8ec;--accent:#d95729;--accent-soft:#fdeee7;--sidebar:#fff;--sidebar-ink:#545d69;--radius:14px;--shadow:0 1px 2px #20242b05,0 4px 16px #20242b08;--font:"Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;--side-width:230px;--head-font:var(--font)}
body[data-theme="slate"]{--bg:#edf1f5;--surface:#fff;--surface2:#f4f6f9;--ink:#182538;--muted:#65758c;--line:#dde4ed;--accent:#305ce8;--accent-soft:#eaf0ff;--sidebar:#152334;--sidebar-ink:#c2d0e3;--radius:9px;--shadow:0 3px 10px #1c355306;--side-width:244px}
body[data-theme="sage"]{--bg:#f1f3ed;--surface:#fffefa;--surface2:#eaf0e8;--ink:#233a32;--muted:#65796d;--line:#dce4d7;--accent:#347354;--accent-soft:#e0efdf;--sidebar:#e8eee2;--sidebar-ink:#415a49;--radius:22px;--shadow:0 8px 24px #355a3810;--side-width:240px}
body[data-theme="editorial"]{--bg:#f3efe7;--surface:#fffcf6;--surface2:#eee8de;--ink:#392f29;--muted:#7b7065;--line:#d8cfc1;--accent:#8d4434;--accent-soft:#f2dfd4;--sidebar:#fffcf6;--sidebar-ink:#665348;--radius:2px;--shadow:none;--side-width:220px;--head-font:"Iowan Old Style","Noto Serif KR",Georgia,serif}
body[data-theme="blueprint"]{--bg:#eaf1fa;--surface:#fff;--surface2:#eef4fc;--ink:#153657;--muted:#587293;--line:#d3e1f1;--accent:#1462b2;--accent-soft:#dceeff;--sidebar:#f8fbff;--sidebar-ink:#375775;--radius:5px;--shadow:none;--side-width:218px}
body[data-theme="night"]{color-scheme:dark;--bg:#111a21;--surface:#1a2731;--surface2:#233440;--ink:#eef4f6;--muted:#a0b5c0;--line:#344955;--accent:#8fddba;--accent-soft:#243f37;--sidebar:#14212a;--sidebar-ink:#b9cbd4;--radius:13px;--shadow:0 8px 24px #0002;--side-width:234px}
*{box-sizing:border-box}body{--surface-2:var(--surface2);margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}a{color:var(--accent);text-decoration:none}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{font-family:var(--head-font);line-height:1.3;letter-spacing:-.035em}h1{font-size:29px;margin-bottom:8px}h2{font-size:19px}h3{font-size:15px}p{margin-bottom:12px}small{font-size:11px}svg{vertical-align:middle;flex-shrink:0}button svg,a svg{width:18px;height:18px}.app-shell{display:grid;grid-template-columns:var(--side-width) minmax(0,1fr);min-height:100vh}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);position:sticky;top:0;height:100vh;overflow:auto;display:flex;flex-direction:column;padding:0 12px 16px;color:var(--sidebar-ink)}.brand{padding:27px 12px 26px;display:flex;align-items:center;gap:10px;color:var(--ink);font-size:19px;font-weight:750;letter-spacing:-.04em}.brand .logo,.brand-mark{width:36px;height:36px;border-radius:11px;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:19px;font-weight:700}.brand small,.brand-sub{display:block;font-size:10px;font-weight:500;letter-spacing:.03em;color:var(--muted)}.nav{display:flex;flex-direction:column;gap:3px}.nav-group{font-size:10px;font-weight:700;letter-spacing:.08em;padding:21px 13px 7px;color:var(--muted)}.nav a,.nav button,.nav-item{width:100%;display:flex;align-items:center;gap:11px;padding:10px 13px;border:0;border-radius:9px;color:var(--sidebar-ink);background:transparent;text-align:left;font-size:12px;font-weight:600}.nav a:hover,.nav button:hover,.nav-item:hover{background:var(--accent-soft);color:var(--accent)}.nav a.active,.nav button.active,.nav-item.active{background:var(--accent);color:#fff}.nav .count{margin-left:auto;font-size:10px;background:#ffffff30;border-radius:5px;padding:0 5px}.sidebar-foot{margin-top:auto;padding:30px 12px 0;font-size:11px;color:var(--muted)}.workspace{min-width:0}.topbar{min-height:72px;padding:15px 32px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:20}.topbar .crumb,.breadcrumb{font-size:12px;color:var(--muted)}.page{padding:30px 32px 60px;max-width:1580px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.page-head p{font-size:12px;color:var(--muted);margin:0}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.14em;color:var(--accent);margin-bottom:8px}.spacer{flex:1}.muted,.hint{color:var(--muted)}.hint{font-size:11px}.grid{display:grid;gap:18px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.card,.stat{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);min-width:0}.card.p,.card-body{padding:21px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 21px;border-bottom:1px solid var(--line)}.card-head h2,.card-head h3{margin:0}.stat{padding:21px}.stat .label,.stat-label{color:var(--muted);font-size:11px;font-weight:600}.stat strong,.stat-value{display:block;font-size:32px;line-height:1.3;font-weight:650;margin:8px 0;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.stat small{color:var(--muted)}.stat .trend{color:var(--accent)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:9px 13px;font-size:12px;font-weight:650;white-space:nowrap;line-height:1.5}.btn:hover{border-color:var(--accent);color:var(--accent)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.ghost{background:transparent}.btn.sm{padding:6px 10px;font-size:11px}.btn.danger{color:#b74437}.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:6px;font-size:10px;font-weight:650;white-space:nowrap;background:var(--surface2);color:var(--muted)}.badge.success,.badge.green{background:#e5f2e9;color:#287047}.badge.warn,.badge.warning,.badge.orange{background:#fff1d9;color:#965f0d}.badge.danger,.badge.red{background:#fce8e5;color:#a93c37}.badge.info,.badge.blue{background:#e9effd;color:#315faa}.badge.accent{background:var(--accent-soft);color:var(--accent)}.table-wrap{overflow:auto;border-radius:var(--radius)}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;letter-spacing:.02em;color:var(--muted);font-weight:600;background:var(--surface2);white-space:nowrap}th,td{padding:13px 17px;border-bottom:1px solid var(--line)}td{vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--surface2)}td small{display:block;color:var(--muted);margin-top:3px}.filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto}.tabs button,.tabs a{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);padding:13px 2px;font-weight:600;font-size:12px;white-space:nowrap}.tabs .active{border-color:var(--accent);color:var(--accent)}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label,.field>span{font-size:11px;font-weight:650}.field input,.field select,.field textarea,input.inp,select.inp,textarea.inp,.filters input,.filters select,.topbar select{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);min-height:40px}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--accent);outline:2px solid var(--accent-soft)}.field textarea{min-height:86px;resize:vertical}.field small{color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid .full{grid-column:1/-1}.task-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.task-row:last-child{border-bottom:0}.task-row input{accent-color:var(--accent);width:17px;height:17px}.task-row strong{font-size:12px}.task-row small{display:block;color:var(--muted)}.task-row .badge{margin-left:auto}.progress{height:5px;border-radius:3px;background:var(--surface2);overflow:hidden}.progress>i,.progress>span{display:block;height:100%;background:var(--accent);border-radius:3px}.avatar{width:28px;height:28px;display:inline-grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:50%;font-size:10px;font-weight:700}.callout,.notice{border:1px solid var(--line);border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:8px;padding:14px 17px;font-size:12px;color:var(--ink);margin-bottom:20px}.empty{padding:55px 20px;text-align:center;color:var(--muted)}.drawer{position:fixed;right:0;top:0;bottom:0;width:min(650px,96vw);background:var(--surface);box-shadow:-12px 0 70px #0002;z-index:70;overflow:auto;padding:28px}.modal{position:fixed;inset:0;z-index:80;background:#13222d80;display:grid;place-items:center;padding:20px;backdrop-filter:blur(3px)}.modal>.card,.modal>.modal-content{width:min(740px,100%);max-height:90vh;overflow:auto;background:var(--surface);border-radius:var(--radius);padding:25px}.modal[hidden],.drawer[hidden]{display:none}.mobile-nav{display:none}.timeline{overflow:auto}.timeline table{min-width:850px}.timeline th:not(:first-child),.timeline td:not(:first-child){text-align:center;min-width:70px}.timeline .bar{background:var(--accent-soft);color:var(--accent);padding:8px;border-radius:5px;font-size:10px}.timeline .bar.fill{background:var(--accent);color:#fff}.timeline .weekend{background:var(--surface2);color:var(--muted)}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:12px 20px;border-radius:10px;z-index:100;box-shadow:var(--shadow)}
body[data-theme="slate"] .brand{color:#fff}body[data-theme="slate"] .sidebar .muted,body[data-theme="slate"] .sidebar .nav-group,body[data-theme="slate"] .sidebar-foot,body[data-theme="slate"] .brand small{color:#9eafc6}body[data-theme="slate"] .nav .active{box-shadow:0 4px 15px #0002}body[data-theme="slate"] .stat{border-top:3px solid var(--accent)}body[data-theme="slate"] .topbar{min-height:64px}body[data-theme="sage"] .page{padding:36px 38px}body[data-theme="sage"] .topbar{background:transparent;border-bottom:0}body[data-theme="sage"] .sidebar{border-right:0;padding-inline:16px}body[data-theme="sage"] .btn,body[data-theme="sage"] .nav a,body[data-theme="sage"] .nav button{border-radius:24px}body[data-theme="sage"] .stat{border:0}body[data-theme="sage"] .brand .logo{border-radius:50%}body[data-theme="editorial"] .topbar{background:var(--bg);border-bottom:2px solid var(--ink)}body[data-theme="editorial"] h1{font-size:34px}body[data-theme="editorial"] .nav a,body[data-theme="editorial"] .nav button,body[data-theme="editorial"] .btn,body[data-theme="editorial"] input,body[data-theme="editorial"] select,body[data-theme="editorial"] .badge{border-radius:0}body[data-theme="editorial"] .stat{background:transparent;border:0;border-top:1px solid var(--ink);padding-inline:2px}body[data-theme="editorial"] .page-head{border-bottom:1px solid var(--line);padding-bottom:24px}body[data-theme="editorial"] .brand{border-bottom:1px solid var(--line);margin-bottom:15px}body[data-theme="blueprint"] .topbar{background:var(--accent);color:#fff;min-height:60px}body[data-theme="blueprint"] .topbar .crumb,body[data-theme="blueprint"] .topbar .muted{color:#d7eaff}body[data-theme="blueprint"] .nav .active{background:var(--accent-soft);color:var(--accent);border-left:3px solid var(--accent)}body[data-theme="blueprint"] .card-head{background:var(--surface2)}body[data-theme="blueprint"] .stat strong{font-family:ui-monospace,monospace}body[data-theme="blueprint"] .page{padding-top:25px}body[data-theme="night"] .btn.primary,body[data-theme="night"] .nav .active,body[data-theme="night"] .brand .logo{color:#17352b}body[data-theme="night"] .stat{border-top:2px solid #517f70}body[data-theme="night"] .badge.success{background:#203e32;color:#a1e3b9}body[data-theme="night"] .badge.warn,body[data-theme="night"] .badge.warning{background:#493c25;color:#f0ce8d}body[data-theme="night"] .badge.danger{background:#4a2a2a;color:#ffb1ab}body[data-theme="night"] .badge.info{background:#263e56;color:#a1c5f5}
body[data-role="production"] .app-shell{display:block}body[data-role="production"] .sidebar{display:none}body[data-role="production"] .workspace{max-width:1000px;margin:auto}body[data-role="production"] .page{padding-bottom:100px}body[data-role="production"] .topbar{border-radius:0 0 16px 16px}body[data-role="production"] .btn{min-height:46px}body[data-role="production"] .mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);justify-content:center;gap:25px;padding:12px 15px calc(12px + env(safe-area-inset-bottom))}body[data-role="production"] .mobile-nav button{border:0;background:none;color:var(--muted);padding:8px;font-weight:650}body[data-role="production"] .mobile-nav .active{color:var(--accent)}
@media(min-width:1600px){.page{padding-top:38px}.grid{gap:22px}}@media(max-width:1100px){:root,body[data-theme]{--side-width:205px}.page,body[data-theme="sage"] .page{padding:25px 22px 55px}.topbar{padding-inline:22px}.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:relative;height:auto;padding:0 15px 12px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:15px 0}.nav{flex-direction:row;overflow:auto;gap:5px}.nav-group,.sidebar-foot{display:none}.nav a,.nav button,.nav-item{width:auto;white-space:nowrap;padding:9px 12px}.topbar{position:relative;padding:12px 16px;gap:8px;flex-wrap:wrap;min-height:60px}.topbar .crumb{display:none}.page,body[data-theme="sage"] .page{padding:22px 16px 85px}h1,body[data-theme="editorial"] h1{font-size:25px}.page-head{align-items:flex-start;flex-wrap:wrap;gap:14px}.g2,.g3{grid-template-columns:1fr}.g4{gap:10px}.stat{padding:16px}.stat strong{font-size:27px}.form-grid{grid-template-columns:1fr}.btn{white-space:normal}.card-head,.card-body,.card.p{padding:16px}.filters>*{flex:1;min-width:130px}.drawer{padding:20px}.modal{padding:10px}.task-row{align-items:flex-start}.task-row .badge{white-space:normal}.page-head>.btn{margin-left:0}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}@media print{.sidebar,.topbar,.mobile-nav,.btn,.toast{display:none!important}.app-shell{display:block}.page{padding:0}.card,.stat{box-shadow:none;break-inside:avoid}body{background:#fff;color:#000}}
