/* 공통 화면 스타일. 라이트 전용(다크 미디어쿼리 없음).
   2026-11-10: 규칙 한 줄씩 풀어 씀. 화면 공유(1280px)에서 읽히도록 글씨를 올림 —
   표 본문 14px, 보조 글 12px 이상, 버튼 13~13.5px, 배지 12px. 빈 공간(통계 카드·보드 열·빈 상태)을 줄임. */
:root{--paper:#fff;--bg:#fafbf9;--ink:#21312f;--muted:#7a8581;--line:#e5eae5;--navy:#203b43;--teal:#27766c;--teal-pale:#eef6f1;--amber:#946b24;--red:#ae4f45;--radius:13px;--shadow:0 5px 22px #203b4305;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;font-size:14px;line-height:1.6;background:var(--bg)}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #57a89a;outline-offset:3px}
button{color:inherit}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}
.app-shell{display:flex;min-height:100vh}
.sidebar{width:236px;position:fixed;top:0;left:0;bottom:0;background:#fff;border-right:1px solid var(--line);padding:30px 19px 22px;display:flex;flex-direction:column;z-index:10;overflow-y:auto}
.brand{display:flex;align-items:center;gap:12px;padding:0 12px;font-size:25px;font-weight:750;letter-spacing:-1.2px;line-height:1.05}
.brand-mark{display:flex;align-items:center;justify-content:center;background:var(--navy);color:#fff;width:36px;height:38px;border-radius:9px;font-size:29px;position:relative;font-weight:650;flex-shrink:0}
.brand-mark>span{position:absolute;width:5px;height:5px;background:#93bca6;right:5px;bottom:6px;border-radius:1px}
.brand-sub{display:block;font-size:12px;color:var(--muted);letter-spacing:1px;font-weight:550;margin-top:7px}
.workspace{display:flex;align-items:center;gap:10px;margin:26px 0 24px;border:1px solid var(--line);border-radius:10px;padding:10px 11px;font-size:13px;font-weight:650}
.workspace small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:1px}
.workspace-icon{background:#eff1ec;color:var(--teal);width:29px;height:29px;display:grid;place-items:center;border-radius:7px;font-weight:700;flex-shrink:0}
.local-dot{width:6px;height:6px;border-radius:50%;background:#67a58a;display:inline-block;flex-shrink:0}
.workspace>.local-dot{margin-left:auto}
.nav-label{font-size:12px;letter-spacing:1.2px;color:#8f9993;padding:0 13px;margin-bottom:10px;font-weight:600}
nav{display:flex;flex-direction:column;gap:3px}
.nav-item{display:flex;align-items:center;gap:11px;padding:9px 13px;border-radius:8px;font-size:14px;color:#66726c;transition:background .15s,color .15s}
.nav-item svg{width:18px;height:18px;stroke-width:1.6}
.nav-item:hover{background:#f7f8f5;color:var(--ink)}
.nav-item.active{background:var(--teal-pale);color:var(--teal);font-weight:650}
.nav-count{font-size:12px;margin-left:auto;background:#fff;border:1px solid #dde9df;border-radius:5px;min-width:22px;text-align:center;padding:0 4px}
.nav-divider{height:1px;background:var(--line);margin:12px 12px}
.sidebar-bottom{margin-top:auto;padding:22px 12px 0}
.privacy-note{display:flex;gap:8px;align-items:baseline;font-size:12px;font-weight:550;color:#64736a;margin-bottom:18px}
.privacy-note small{display:block;font-size:12px;color:#8a948c;font-weight:400;margin-top:2px}
.sidebar-bottom>a{font-size:12px;color:#7d8780;display:flex;justify-content:space-between;margin:8px 0}
.main-shell{margin-left:236px;flex:1;min-width:0}
.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 42px;background:#ffffffb3}
.breadcrumb{font-size:13px;color:#7f8982;display:flex;gap:14px;align-items:center}
.breadcrumb>span{color:#c1c7c1}
.breadcrumb strong{font-weight:500;color:#586b61}
.top-actions{display:flex;align-items:center;gap:17px}
.connection{font-size:12px;color:#5f8069;display:flex;align-items:center;gap:5px}
.connection:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.connection.offline{color:var(--red)}
.avatar{width:29px;height:29px;border:1px solid #e1e6de;border-radius:50%;display:grid;place-items:center;font-size:12px;background:#eff2e9;color:#5f6e52}
.icon-button{width:32px;height:32px;display:inline-grid;place-items:center;background:transparent;border:1px solid transparent;border-radius:7px;color:#8b958d}
.icon-button:hover{background:#f2f5f0;border-color:var(--line)}
.icon-button svg{width:17px;height:17px}
main{padding:28px 42px 42px;max-width:1720px;margin:auto;min-height:calc(100vh - 129px)}
.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}
.eyebrow{font-size:12px;font-weight:650;letter-spacing:1.4px;color:#7c8f80;display:block;margin-bottom:5px}
.page-head h1{font-size:26px;letter-spacing:-1px;margin:0;font-weight:650;line-height:1.4}
.page-head p{font-size:14px;color:var(--muted);margin:5px 0 0}
.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:8px 13px;border-radius:7px;border:1px solid #dfe5df;background:#fff;color:#4f6055;font-size:13.5px;font-weight:550;white-space:nowrap}
.button svg{width:15px;height:15px}
.button:hover{background:#f5f8f3;border-color:#bfcfc3}
.button.primary{color:#fff;background:var(--navy);border-color:var(--navy)}
.button.primary:hover{background:#32535a}
.button.subtle{border-color:transparent;background:transparent;color:var(--teal)}
.button.danger{color:var(--red)}
.button.small{font-size:13px;min-height:31px;padding:5px 10px}
.date-chip{font-size:12px;color:#6f7d72;display:flex;align-items:center;gap:6px}
.date-chip svg{width:14px;height:14px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.stat{border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);padding:16px 20px;box-shadow:var(--shadow);min-height:0;min-width:0}
.stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#738578;font-size:12px}
.stat-icon{color:#799284;background:#f4f7f0;border-radius:7px;padding:6px;display:grid;place-items:center}
.stat-icon svg{width:15px;height:15px}
.stat-value{font-size:30px;letter-spacing:-1px;font-weight:600;line-height:1.3;margin-top:6px;color:#263d35;overflow-wrap:anywhere}
.stat-value small{font-size:13px;letter-spacing:0;margin-left:5px;font-weight:450;color:#77867c}
.stat-foot{font-size:12px;color:#99a197;margin-top:6px}
.stat-foot .accent{color:var(--teal)}
.content-grid{display:grid;grid-template-columns:1.56fr 1fr;gap:20px;margin-bottom:20px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;overflow:hidden}
.panel-head{padding:16px 22px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0ea}
.panel-head h2,.panel-title{margin:0;font-size:16px;font-weight:650;letter-spacing:-.2px}
.panel-head p{font-size:12px;color:var(--muted);margin:3px 0 0}
.panel-body{padding:18px 22px}
.text-link{font-size:13px;color:#6f7d74;display:flex;gap:7px;align-items:center}
.text-link:hover{color:var(--teal)}
.text-link svg{width:12px;height:12px}
.pipeline-list{display:grid;gap:16px}
.pipeline-item{display:grid;grid-template-columns:70px 1fr 44px;gap:13px;align-items:center;font-size:13px;color:#5e7063}
.pipeline-item strong{font-size:13.5px;text-align:right;color:#3a5547}
.bar-track{height:7px;background:#f2f5ef;border-radius:6px;overflow:hidden}
.bar-fill{height:100%;background:#719985;border-radius:6px;min-width:0}
.pipeline-item:nth-child(2) .bar-fill{background:#557f74}
.pipeline-item:nth-child(3) .bar-fill{background:#315f59}
.pipeline-item:nth-child(4) .bar-fill{background:#9eaf90}
.panel-foot{padding:12px 22px;border-top:1px solid #eef1ec;font-size:12px;color:#9aa398;display:flex;justify-content:space-between}
.task-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid #edf0ea}
.task-row:last-child{border-bottom:0}
.task-check{border:1px solid #cdd9cc;border-radius:5px;width:18px;height:18px;flex-shrink:0;background:#fff;margin-top:2px;padding:0;color:var(--teal);font-size:12px;line-height:1}
.task-check.done{background:var(--teal-pale);border-color:#a5c4ac}
.task-title{font-size:14px;color:#405b4b;font-weight:500;line-height:1.5}
.task-title.done{text-decoration:line-through;color:#8a9589}
.task-meta{font-size:12px;color:#9ba597;margin-top:4px}
.task-side{margin-left:auto;text-align:right;flex-shrink:0}
.badge{font-size:12px;padding:2px 7px;border-radius:5px;background:#f2f4ef;color:#809078;display:inline-block;white-space:nowrap;line-height:1.5;font-weight:500}
.badge.teal{background:#edf6ef;color:#4e8466}
.badge.blue{background:#edf3f6;color:#557885}
.badge.amber{background:#fbf5e9;color:#a5833e}
.badge.red{background:#fbefec;color:#af7160}
.badge.gray{background:#f1f2f1;color:#91988d}
.badge.navy{background:#eaf0ef;color:#375e59}
.small-text{font-size:12px;color:var(--muted)}
.muted{color:var(--muted)}
.recent-row{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #edf0ea;align-items:flex-start}
.recent-row:last-child{border:0}
.activity-dot{width:30px;height:30px;display:grid;place-items:center;border:1px solid #e7ede4;background:#f7f9f4;border-radius:8px;color:#7e9582;flex-shrink:0}
.activity-dot svg{width:14px;height:14px}
.recent-row p{margin:0;font-size:13px;color:#5f7565}
.recent-row strong{font-weight:600;color:#3c5847}
.recent-row time{font-size:12px;color:#8e968a;margin-left:auto;flex-shrink:0;padding-top:2px}
.recent-row small{font-size:12px;color:#7d8a7f;display:block;margin-top:3px;white-space:pre-wrap;overflow-wrap:anywhere}
.opportunity-row{padding:12px 0;border-bottom:1px solid #edf0ea;display:flex;align-items:center;gap:11px}
.opportunity-row:last-child{border:0}
.company-avatar{width:34px;height:34px;border:1px solid #e1e8dd;background:#f3f6ee;color:#718267;display:grid;place-items:center;border-radius:8px;font-size:12px;font-weight:600;flex-shrink:0}
.opportunity-row strong{display:block;font-size:14px;font-weight:550;color:#47604f}
.opportunity-row small{font-size:12px;color:#808b7e}
.opportunity-row>.badge{margin-left:auto}
.welcome-strip{display:flex;align-items:center;gap:16px;background:#f1f5ee;border:1px solid #e3eadf;border-radius:var(--radius);padding:16px 22px;margin-top:20px}
.welcome-strip>svg{color:#7d967a;width:24px;height:24px}
.welcome-strip strong{font-size:14px;font-weight:600;display:block;color:#4c6650}
.welcome-strip p{margin:3px 0 0;font-size:13px;color:#73836f}
.welcome-strip .button{margin-left:auto;background:#fff}
.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.search-field{position:relative;flex:1;min-width:200px}
.search-field svg{position:absolute;left:12px;top:12px;width:15px;height:15px;color:#9aa597}
.search-field input{padding-left:36px;width:100%;background:#fff}
.toolbar input,.toolbar select,.field input,.field select,.field textarea{border:1px solid #dfe5dd;border-radius:7px;background:#fff;padding:9px 11px;color:#3d5347;min-height:39px;font-size:14px}
.toolbar select{min-width:118px}
.toolbar .result-count{font-size:13px;color:#7c8775}
.table-wrap{overflow:auto}
table{border-collapse:collapse;width:100%;text-align:left;font-size:14px;white-space:nowrap}
th{padding:11px 16px;background:#fafbf8;font-size:12.5px;letter-spacing:.1px;font-weight:600;color:#95a08e;border-bottom:1px solid var(--line)}
td{padding:12px 16px;border-bottom:1px solid #edf0e9;color:#657b68}
tr:last-child td{border-bottom:0}
tr[data-action]{cursor:pointer}
tr[data-action]:hover td{background:#fafcf7}
tr.selected td{background:#f0f6ed}
td strong{color:#3e5a46;font-weight:550}
td small{display:block;color:#7d8776;font-size:12px;margin-top:2px}
td .actions{flex-wrap:nowrap}
.table-footer{padding:12px 18px;border-top:1px solid var(--line);font-size:12px;color:#7d8775}
.master-detail{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:20px;align-items:start}
.detail-panel{position:sticky;top:20px}
.detail-company{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:13px}
.detail-company .company-avatar{width:43px;height:43px;font-size:15px}
.detail-company h2{font-size:18px;margin:0;letter-spacing:-.4px}
.detail-company p{font-size:13px;color:#7b8879;margin:3px 0 0}
.detail-company .actions{margin-left:auto}
.detail-section{padding:16px 22px;border-bottom:1px solid var(--line)}
.detail-section:last-child{border-bottom:0}
.detail-section h3{font-size:14px;font-weight:650;margin:0 0 12px}
.detail-section .section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.detail-section .section-title h3{margin:0}
.detail-data{display:grid;grid-template-columns:76px 1fr;gap:8px;font-size:13px;overflow-wrap:anywhere}
.detail-data dt{color:#9aa592}
.detail-data dd{margin:0;color:#5a735b}
.detail-data a{color:var(--teal)}
.detail-section p{font-size:13px;white-space:pre-wrap;color:#66765f;line-height:1.75;margin:6px 0}
.tags{display:flex;gap:5px;flex-wrap:wrap}
.timeline{padding-left:13px;border-left:1px solid #dfe9dc;margin:16px 0 0 5px}
.timeline-item{position:relative;margin:0 0 18px;padding-left:6px}
.timeline-item:before{content:"";position:absolute;left:-17px;top:6px;width:6px;height:6px;border-radius:50%;background:#80a18b;border:2px solid #fff}
.timeline-item small{font-size:12px;color:#7f8975}
.timeline-item p{font-size:13px;line-height:1.75;margin:5px 0}
.timeline-item .actions{margin-top:4px}
.contact-row{border-top:1px solid #edf0e8;padding:12px 0;font-size:13px;overflow-wrap:anywhere}
.contact-row strong{font-weight:600;color:#526d50}
.contact-row p{font-size:13px;margin:2px 0}
.contact-row .actions{margin-top:6px}
.board{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:14px;overflow:auto;padding-bottom:5px}
.board-column{background:#f2f5ef;border:1px solid #e6ebe1;border-radius:11px;padding:12px;min-height:150px}
.board-title{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;padding:3px 2px 12px}
.board-title:before{content:"";width:6px;height:6px;border-radius:50%;background:#7d9e83;flex-shrink:0}
.board-title span{font-size:12px;font-weight:400;color:#7f8a74;margin-left:auto}
.board-card{border:1px solid #e1e8dc;border-radius:8px;background:#fff;padding:12px;margin-bottom:9px;box-shadow:0 2px 5px #223c3003}
.board-card strong{font-size:14px;font-weight:600;display:block;overflow-wrap:anywhere}
.board-card p{font-size:12.5px;color:#7b8770;margin:5px 0 10px}
.board-card select{font-size:12.5px;max-width:100%;width:100%;background:#fafcf7;border:1px solid #e3e9dd;border-radius:5px;padding:6px;color:#6e8368}
.empty-state{padding:22px 18px;text-align:center;color:#7f8a76;font-size:13px}
.empty-state>svg{display:block;width:28px;height:28px;margin:0 auto 10px;color:#b5c0ac}
.empty-state strong{display:block;font-size:14px;color:#6e8366;font-weight:550;margin-bottom:5px}
.empty-state p{margin:5px 0 12px;font-size:13px;line-height:1.7}
.empty-state.compact{padding:18px 14px}
.empty-state .button{margin-top:6px}
.notice{border:1px solid #e5eadd;background:#f7f9f2;border-radius:8px;padding:12px 15px;font-size:13px;line-height:1.75;color:#859574;margin:0 0 18px}
.notice strong{color:#5e7853;font-weight:600}
.notice.error{background:#fff4f1;border-color:#efd6d0;color:#a54c3b}
.campaign-layout{display:grid;grid-template-columns:300px 1fr;gap:20px;align-items:start}
.campaign-item{display:block;width:100%;text-align:left;padding:16px 20px;border:0;border-bottom:1px solid #e8eee1;background:#fff}
.campaign-item:last-child{border:0}
.campaign-item.active{background:#f0f6ea;box-shadow:inset 3px 0 var(--teal)}
.campaign-item strong{font-size:13.5px;display:block;font-weight:600;margin-bottom:5px}
.campaign-item small{display:block;color:#7e8973;font-size:12px;margin-top:6px}
.campaign-copy{white-space:pre-wrap;line-height:1.85;font-size:13px;color:#5f7055;overflow-wrap:anywhere}
.event-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px}
.event-metric{background:#f8faf5;border:1px solid #e7edde;border-radius:8px;padding:12px}
.event-metric span{font-size:12px;color:#7e8973;display:block}
.event-metric strong{font-size:23px;font-weight:550;color:#47653f;display:block;margin-top:3px}
.stack{display:grid;gap:20px}
.chart-group{display:grid;gap:14px}
.chart-row{display:grid;grid-template-columns:100px 1fr 48px;gap:14px;align-items:center;font-size:13px;color:#677a5c}
.chart-row strong{text-align:right;font-size:13px;color:#566f4e}
.chart-row .bar-track{height:10px}
.chart-caption{font-size:12px;color:#9ca48e;margin:16px 0 0;line-height:1.75}
.two-column{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.import-steps{display:flex;gap:0;margin:0 0 22px;border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden}
.import-step{flex:1;padding:13px 18px;color:#7d8873;font-size:13px;border-right:1px solid var(--line);min-width:0}
.import-step:last-child{border:0}
.import-step strong{border:1px solid #dce5d3;width:22px;height:22px;border-radius:50%;display:inline-grid;place-items:center;margin-right:8px;font-size:13px;font-weight:500}
.import-step.active{background:#f0f7eb;color:#557e4a}
.import-step.active strong{border-color:#c8dbbb;background:#fff}
.dropzone{border:1px dashed #b8c9aa;border-radius:10px;background:#fafcf7;text-align:center;padding:24px 20px;margin-bottom:16px}
.dropzone svg{width:28px;height:28px;color:#90a67d;display:block;margin:0 auto 10px}
.dropzone strong{font-size:13.5px;font-weight:550;display:block}
.dropzone p{font-size:13px;color:#7d8873;margin:7px 0 14px}
.dropzone input{max-width:100%;font-size:12px}
.code-block{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#f5f7f1;border:1px solid #e4eadd;padding:13px;border-radius:7px;font-size:12px;color:#5c7149;white-space:pre-wrap;overflow-wrap:anywhere}
.report-text{border:1px solid #e2e8d9;background:#fafcf7;border-radius:8px;padding:16px;white-space:pre-wrap;font-size:13px;line-height:1.85;color:#5e7550;max-height:55vh;overflow:auto}
.integration-card{padding:20px}
.integration-brand{display:flex;align-items:center;gap:13px;margin-bottom:13px}
.integration-logo{width:39px;height:39px;border-radius:10px;display:grid;place-items:center;background:#f0f4e8;border:1px solid #e1e8d4;color:#5b7950;font-size:16px;font-weight:650;flex-shrink:0}
.integration-brand h3{margin:0;font-size:14px}
.integration-brand p{margin:2px 0 0;color:#7f8a73;font-size:12px}
.integration-card>p{font-size:13px;color:#6f7f63;line-height:1.8;min-height:0}
.automation-row{padding:14px 0;border-top:1px solid #e7edde;display:flex;align-items:center;gap:12px}
.automation-row strong{font-size:13.5px;font-weight:550}
.automation-row small{display:block;font-size:12px;color:#7e8a72}
.automation-row .actions{margin-left:auto}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field.full{grid-column:1/-1}
.field label,.field>span{font-size:12.5px;font-weight:550;color:#6e8061}
.field label .required{color:#b37961}
.field input,.field select,.field textarea{width:100%;min-width:0}
.field textarea{min-height:90px;resize:vertical;line-height:1.7}
.field small{font-size:12px;color:#9ba58e}
.field .checkbox-list{max-height:180px;overflow:auto;border:1px solid #dfe5d6;border-radius:7px;padding:10px}
.checkbox-list label{display:flex;align-items:center;gap:9px;padding:7px;font-weight:400}
.checkbox-list input{width:14px;min-height:14px}
.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.form-error{padding:12px;background:#fff1ee;border:1px solid #edd3cc;border-radius:7px;color:#b25542;font-size:13px;margin-bottom:16px}
.delete-confirm p{font-size:13px;color:#6f7e65;line-height:1.85}
.delete-confirm strong{color:#5f7654}
dialog{width:min(620px,calc(100vw - 32px));max-height:90vh;border:1px solid #dfe6d6;border-radius:15px;padding:0;box-shadow:0 25px 100px #243c3533;color:var(--ink);background:#fff}
dialog::backdrop{background:#263c3044;backdrop-filter:blur(3px)}
.dialog-head{padding:20px 25px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}
.dialog-head h2{margin:0;font-size:19px;font-weight:600;letter-spacing:-.6px}
.dialog-head .eyebrow{font-size:12px;margin-bottom:4px}
#dialog-body{padding:20px 25px}
dialog.wide{width:min(820px,calc(100vw - 32px))}
#toast{position:fixed;bottom:28px;left:calc(50% + 118px);transform:translate(-50%,15px);padding:12px 20px;border-radius:9px;color:#fff;background:var(--navy);box-shadow:0 7px 25px #203b4322;font-size:13.5px;opacity:0;pointer-events:none;transition:.2s;z-index:100;max-width:calc(100vw - 40px)}
#toast.show{opacity:1;transform:translate(-50%,0)}
#toast.error{background:#a55342}
footer{padding:16px 42px;border-top:1px solid var(--line);font-size:12px;letter-spacing:.4px;color:#848c7d;display:flex;gap:9px}
footer .footer-note{margin-left:auto;letter-spacing:0}
.loading-state{padding:80px 0;text-align:center;color:#7d8873;font-size:13px}
.skip-link{position:fixed;top:-60px;left:20px;background:#fff;border:2px solid var(--teal);padding:10px;z-index:200}
.skip-link:focus{top:10px}
.money{font-variant-numeric:tabular-nums}
.nowrap{white-space:nowrap}
.source-link{color:#5f8864;font-size:12px}
.section-space{margin-top:20px}
.report-actions{display:flex;gap:8px;margin-top:15px}
.filter-tabs{display:flex;gap:5px;flex-wrap:wrap}
.filter-tab{background:transparent;border:1px solid transparent;border-radius:6px;padding:6px 11px;color:#6f7e64;font-size:13px}
.filter-tab.active{background:#fff;border-color:#dce6d3;color:#507549;font-weight:600}
.tasks-toolbar{justify-content:space-between}
.row-link{border:0;background:none;padding:0;font-size:inherit;color:inherit;text-align:left}
.row-link:hover{color:var(--teal);text-decoration:underline}
.numeric{text-align:right}
.danger-text{color:var(--red)}
.horizontal-scroll{overflow:auto}
.campaign-targets{display:flex;gap:5px;flex-wrap:wrap;margin:14px 0}
.list-caption{font-size:12px;color:#7e8973;margin:0 0 12px}
.section-divider{border:0;border-top:1px solid var(--line);margin:20px 0}
@media(min-width:1550px) {
  main{padding-top:36px}
  .stats{gap:18px}
  .stat{padding:20px 22px}
  .content-grid{gap:22px}
  .panel-head{padding:20px 25px 17px}
  .panel-body{padding:21px 25px}
  .task-row{padding:15px 0}
}
@media(max-width:1200px) {
  .sidebar{width:210px;padding-left:14px;padding-right:14px}
  .main-shell{margin-left:210px}
  main{padding:24px 28px}
  .topbar{padding:0 28px}
  .stats{gap:11px}
  .stat{padding:15px 16px}
  .stat-value{font-size:27px}
  .content-grid{grid-template-columns:1.25fr 1fr;gap:16px}
  .master-detail{grid-template-columns:minmax(0,1.1fr) minmax(280px,1fr);gap:15px}
  .master-detail th,.master-detail td{padding-left:12px;padding-right:12px}
  .campaign-layout{grid-template-columns:250px 1fr}
  #toast{left:calc(50% + 105px)}
}
@media(max-width:1000px) {
  .sidebar{width:75px;padding:24px 10px}
  .brand{padding:0;justify-content:center}
  .brand>span:last-child,.workspace,.nav-label,.nav-item>span,.sidebar-bottom,.nav-divider{display:none}
  .brand-mark{width:34px;height:36px}
  .nav-item{justify-content:center;padding:12px;margin-top:2px}
  .sidebar nav{margin-top:30px}
  .nav-item svg{width:20px;height:20px}
  .main-shell{margin-left:75px}
  .content-grid{grid-template-columns:1fr 1fr}
  .master-detail{grid-template-columns:1fr}
  .detail-panel{position:static}
  .campaign-layout{grid-template-columns:230px 1fr}
  .page-head h1{font-size:24px}
  .event-metrics{grid-template-columns:repeat(2,1fr)}
  #toast{left:calc(50% + 37px)}
}
@media(max-width:760px) {
  main{padding:20px 16px}
  .topbar{height:60px;padding:0 16px}
  .page-head{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:18px}
  .page-head .actions{width:100%}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .stat{min-height:0}
  .stat-value{font-size:26px}
  .content-grid,.two-column,.campaign-layout{grid-template-columns:1fr}
  .content-grid{gap:16px}
  .welcome-strip{padding:14px;align-items:flex-start;flex-wrap:wrap}
  .welcome-strip .button{margin-left:40px}
  .panel-head{padding:14px 16px;flex-wrap:wrap}
  .panel-body{padding:16px}
  .campaign-list{max-height:210px;overflow:auto}
  .form-grid{gap:12px}
  .connection{display:none}
  .breadcrumb{font-size:12px;gap:10px}
  footer{padding:14px 16px;flex-wrap:wrap}
  .footer-note{display:none}
  .import-step{padding:12px 8px;font-size:12px}
  .import-step strong{width:19px;height:19px;margin-right:3px}
  .chart-row{grid-template-columns:76px 1fr 40px;gap:10px}
  .recent-row time{font-size:12px}
  .master-detail .table-wrap{max-height:430px}
  .board{grid-template-columns:repeat(5,210px)}
  .date-chip{display:none}
  .top-actions{gap:10px}
}
@media(max-width:480px) {
  .sidebar{width:58px;padding:20px 6px}
  .brand-mark{width:31px;height:33px;font-size:25px}
  .nav-item{padding:11px 8px}
  .nav-item svg{width:19px;height:19px}
  .main-shell{margin-left:58px}
  main{padding:18px 12px}
  .topbar{padding:0 12px}
  .stats{gap:8px}
  .stat{padding:12px;min-height:0}
  .stat-top{font-size:12px}
  .stat-value{font-size:23px}
  .stat-foot{font-size:12px}
  .stat-icon{padding:4px}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .dialog-head,#dialog-body{padding:16px}
  .page-head h1{font-size:22px}
  .toolbar{gap:8px}
  .toolbar select{flex:1;min-width:90px}
  .toolbar .search-field{min-width:100%;width:100%}
  .event-metric strong{font-size:21px}
  #toast{left:calc(50% + 29px);font-size:12.5px;width:calc(100vw - 88px)}
  .notice{font-size:12.5px}
  .import-step{line-height:1.6}
  .import-step strong{display:block;margin-bottom:4px}
  .integration-card{padding:16px}
  .connection{display:none}
  .top-actions{gap:5px}
}
@media(prefers-reduced-motion:reduce) {
  *{scroll-behavior:auto!important;transition:none!important}
}
[hidden]{display:none!important}
.user-identity{display:flex;flex-direction:column;text-align:right;line-height:1.45}
.user-identity strong{font-size:13px;font-weight:550;color:#566c4e}
.user-identity small{font-size:12px;color:#7f8c75}
.logout-button{font-size:12.5px;min-height:28px;padding:4px 8px;color:#738264}
.role-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.role-guide>div{border:1px solid #e2e9d9;background:#fff;border-radius:9px;padding:12px 15px;min-width:0}
.role-guide strong{font-size:13px;color:#5b744d;display:block;font-weight:600}
.role-guide span{font-size:12px;color:#7d8a70;display:block;margin-top:3px}
@media(max-width:760px) {
  .role-guide{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .role-guide>div{padding:10px 12px}
  .top-actions{gap:8px}
  .topbar .avatar{display:none}
  .user-identity strong{font-size:12px;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .user-identity small{font-size:12px}
  .logout-button{font-size:12px;padding:4px 6px}
}
@media(max-width:480px) {
  .breadcrumb{max-width:125px;overflow:hidden;white-space:nowrap}
  .breadcrumb>span{display:none}
  .breadcrumb{gap:7px}
  .breadcrumb strong{font-size:12px}
  .topbar{padding:0 10px}
  .top-actions{gap:3px}
  .topbar #refresh{width:25px}
  .user-identity strong{max-width:60px}
}
.table-scroll-hint{display:none;font-size:12px;color:#6f8162;background:#f7faf3;border-bottom:1px solid #e5ecdd;padding:7px 16px;position:sticky;left:0;white-space:normal}
.table-wrap.can-scroll .table-scroll-hint{display:block}
.field input[readonly]{background:#f8faf5;color:#7f8d73}
/* Order operations, work queue and approval inbox */
.queue-toolbar{padding:14px 20px;border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.queue-toolbar select{border:1px solid #dce5d6;border-radius:6px;padding:6px 10px;font-size:13px;color:#63765a;background:#fff}
.queue-items{padding:0 22px}
.queue-item{display:flex;align-items:flex-start;gap:15px;padding:16px 0;border-bottom:1px solid #eaf0e3}
.queue-item:last-child{border:0}
.queue-kind{min-width:95px}
.queue-item-content{min-width:0;flex:1}
.queue-item-content>strong{font-size:14px;font-weight:550;color:#47613e}
.queue-item-content p{font-size:13px;color:#92a084;margin:4px 0;overflow-wrap:anywhere}
.queue-item-content small{font-size:12px;color:#a1ad92}
.order-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.order-summary>div{border:1px solid var(--line);background:#fff;border-radius:10px;padding:15px 16px;min-width:0}
.order-summary span{display:block;color:#92a181;font-size:12.5px}
.order-summary strong{display:block;font-size:21px;font-weight:550;color:#405e35;margin-top:6px;overflow-wrap:anywhere}
.order-status-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.order-tabs{display:flex;gap:5px;border-bottom:1px solid #dce7d3;margin:20px 0 18px;overflow:auto}
.order-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:11px 16px;font-size:13.5px;color:#6f7f5f;white-space:nowrap}
.order-tabs button.active{border-color:var(--teal);color:var(--teal);font-weight:600}
.version-list{display:flex;gap:10px;overflow:auto;padding-bottom:4px}
.version-button{min-width:120px;text-align:left;border:1px solid #dfe8d5;border-radius:8px;background:#fff;padding:11px 14px;color:#62794f}
.version-button.active{border-color:#89ad77;background:#f5f9ef}
.version-button strong{display:block;font-size:13.5px;font-weight:600}
.version-button small{display:block;font-size:12px;color:#9eac8d;margin:4px 0 6px}
.order-total{display:flex;gap:17px;justify-content:flex-end;align-items:center;padding:18px 0 0;font-size:13px;color:#6f7f5f;flex-wrap:wrap}
.order-total strong{font-size:20px;font-weight:550;color:#527645}
.promise-date{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;color:#748562}
.promise-date strong{font-size:20px;font-weight:550;color:#577b49}
.money-summary{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.money-summary span{font-size:12.5px;color:#748562}
.money-summary strong{display:block;color:#4f7440;font-size:19px;font-weight:550;margin-top:5px}
.completion-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f0f6e9;border:1px solid #dae8cd;border-radius:10px;padding:16px 20px;margin-top:20px}
.completion-strip strong{font-size:14px;font-weight:600}
.completion-strip p{font-size:12px;color:#96a784;margin:4px 0 0}
.quote-edit-row{display:grid;grid-template-columns:1.5fr .75fr .65fr 1fr;gap:10px;border:1px solid #dfe9d3;border-radius:8px;padding:14px;margin-bottom:12px;background:#fbfdf8}
.quote-edit-row input{min-width:0;width:100%;border:1px solid #dce6cf;border-radius:5px;padding:8px;font-size:13.5px;color:#4b6a3b}
.quote-edit-row .field label{font-size:12px}
.quote-edit-row .checkbox-field{grid-column:1/4}
.quote-edit-row .danger{justify-self:end}
.checkbox-field{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#6f8460}
.checkbox-field input{width:14px;min-height:14px}
.checkbox-field.field{flex-direction:row}
.delivery-lines{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:14px;border:1px solid #dfe8d4;border-radius:8px}
.approval-values{display:grid;grid-template-columns:minmax(85px,.65fr) 1.35fr;gap:9px;font-size:13px;line-height:1.85;margin:14px 0;overflow-wrap:anywhere}
.approval-values dt{color:#9baa89}
.approval-values dd{margin:0;color:#5c7a47;min-width:0;white-space:pre-wrap}
.approval-array{display:grid;gap:10px;white-space:normal;min-width:180px}
.approval-array>div{border-bottom:1px solid #e7eedf;padding-bottom:9px}
.approval-array span{display:block;font-size:12.5px}
.approval-array b{font-size:12px;font-weight:500;color:#9eae8c}
.request-reason{white-space:pre-wrap;font-size:13px;color:#677f52;line-height:1.85}
.conflict-panel>strong{font-size:13.5px}
.conflict-panel>p{font-size:12.5px;margin:6px 0 12px}
.conflict-panel .actions .button{font-size:13px;background:#fff}
.conflict-comparison{max-height:320px;overflow:auto;margin-top:15px}
.conflict-comparison h3{font-size:14px;font-weight:550}
.conflict-comparison table{background:#fff}
.preserved-draft{grid-column:1/-1;border:1px solid #dfe8d5;background:#f9fcf5;border-radius:8px;padding:12px;margin:14px 0;font-size:12.5px;color:#6f8460}
.preserved-draft summary{cursor:pointer}
.order-detail-error{font-size:13px;color:var(--red)}
@media(max-width:760px) {
  .order-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .order-summary>div{padding:13px}
  .order-summary strong{font-size:18px}
  .queue-items{padding:0 16px}
  .queue-item{gap:10px;flex-wrap:wrap;padding:14px 0}
  .queue-kind{min-width:auto}
  .queue-item-content{min-width:55%}
  .queue-item>.actions{margin-left:auto}
  .queue-toolbar{padding:12px 14px}
  .queue-toolbar .filter-tabs{gap:3px}
  .queue-toolbar .filter-tab{font-size:12.5px;padding:5px 7px}
  .order-tabs button{padding:10px 12px;font-size:13px}
  .delivery-lines{grid-template-columns:1fr}
  .completion-strip{padding:15px;flex-wrap:wrap}
  .quote-edit-row{grid-template-columns:1fr 1fr}
  .quote-edit-row .checkbox-field{grid-column:1/2}
  .order-total{justify-content:flex-start}
  .money-summary{gap:15px}
  .money-summary strong{font-size:17px}
  .approval-values{grid-template-columns:90px 1fr}
  .version-button{min-width:110px}
}
.insights-filter{display:flex;gap:13px;align-items:flex-end;flex-wrap:wrap}
.insights-filter .field{min-width:165px}
.insights-filter .button{margin-bottom:1px}
.insight-period{font-size:13px;color:#5f7155;margin:16px 0 12px}
.insight-stage-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0}
.insight-stage-cards button{border:1px solid #dfe8d5;border-radius:9px;background:#fff;padding:12px 14px;text-align:left;min-width:0}
.insight-stage-cards button.active{background:#eef6e6;border-color:#8caf79}
.insight-stage-cards span{display:block;color:#637759;font-size:12.5px}
.insight-stage-cards strong{display:block;font-size:24px;color:#3e6033;font-weight:550;margin-top:4px}
.insight-stage-cards small{font-size:12px;margin-left:5px}
.insight-scope-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}
.decision-latest-content{max-height:260px;overflow:auto}
/* Important explanations and input labels meet readable contrast on white. */
.page-head p{font-size:14px;color:#5e6e64}
.stat-foot{font-size:12.5px;color:#63705f;line-height:1.6}
.panel-head p,.panel-foot,.chart-caption,.notice,.field small,.small-text,.detail-data dt,.task-meta,.table-scroll-hint,.approval-values dt,.approval-array b,.request-reason,.version-button small,.completion-strip p,.queue-item-content p,.queue-item-content small,.order-summary span{color:#61725a}
.panel-head p,.panel-foot,.field small,.small-text,.task-meta,.table-scroll-hint,.queue-item-content small{font-size:12.5px;line-height:1.65}
.queue-item-content p,.notice{font-size:13px;line-height:1.7}
.field label,.field>span,.quote-edit-row .field label,.checkbox-field{font-size:12.5px;color:#5f7155}
th{font-size:12.5px;color:#55664c}
@media(max-width:760px) {
  .insight-stage-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .insights-filter .field{min-width:110px;flex:1}
  .insights-filter .button{width:100%}
  .stat-foot{font-size:12px}
}
.stat-top{font-size:12.5px;color:#5f7155}
td{color:#4f6551}
.badge{font-size:12px;color:#5f7151}
.badge.teal{color:#3f6e51}
.badge.blue{color:#405f6b}
.badge.amber{color:#7f6024}
.badge.red{color:#934b3b}
.badge.gray{color:#626c5d}

/* ---------- 공용 도우미(2026-11-10). 주문·시즌 화면에서 함께 쓴다. ---------- */
/* 이름-값 2열 요약. <dl class="kv-grid"><dt>규격</dt><dd>…</dd></dl> */
.kv-grid{display:grid;grid-template-columns:minmax(96px,max-content) minmax(0,1fr);gap:6px 16px;margin:0;font-size:13px;line-height:1.6}
.kv-grid dt{color:#61725a;font-weight:500}
.kv-grid dd{margin:0;color:var(--ink);min-width:0;overflow-wrap:anywhere}
/* 경고 줄. 기본은 회색 안내, warn은 확인 필요, danger는 기한 지남·보류 */
.alert-row{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;margin:0 0 8px;border:1px solid var(--line);border-radius:8px;background:#f7f9f6;color:#3f4f47;font-size:13px;line-height:1.6}
.alert-row svg{width:16px;height:16px;margin-top:2px}
.alert-row strong{font-weight:650}
.alert-row .actions{margin-left:auto}
.alert-row.warn{background:#fdf7ea;border-color:#efdfb8;color:#6f5219}
.alert-row.danger{background:#fdf1ee;border-color:#efd0c8;color:#8f3f33}
/* 다운 규격 한 줄(예: 화이트 덕 · 솜털 90%·깃털 10% · 충전도 650 cuin/oz) */
.spec-line{display:block;font-size:12px;color:#5f6f66;line-height:1.55;overflow-wrap:anywhere}
/* 납품량 / 검수 통과량 / 검수 보류량 3칸 */
.qty-split{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.qty-split>div{border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px 12px;min-width:0}
.qty-split span{display:block;font-size:12px;color:#61725a}
.qty-split strong{display:block;margin-top:2px;font-size:17px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.qty-split .pass strong{color:var(--teal)}
.qty-split .hold strong{color:var(--red)}
/* 이전 값 대비 변화. 좋고 나쁨을 단정하지 않고 방향만 표시한다. */
.delta{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.delta.up{color:#8a5a12}
.delta.up::before{content:"▲ "}
.delta.down{color:#2f5f7a}
.delta.down::before{content:"▼ "}
@media(max-width:480px) {
  .kv-grid{grid-template-columns:1fr;gap:2px}
  .kv-grid dd{margin-bottom:6px}
  .qty-split{grid-template-columns:1fr}
}

/* 기본 small 글씨가 12px 아래로 내려가지 않게 한다. */
:where(main,#dialog,.sidebar) small{font-size:12px}
