/* OpenHQ design foundation — shared by marketing, account, work and documents.
   --blue / --nav remain compatible with each HQ's existing brand settings. */
:root {
  --hq-font:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --blue:#315cff; --blue2:#6d86ff; --blue-hover:#2346d9; --primary:var(--blue);
  --nav:#0b1838; --nav2:#102557; --navy:var(--nav); --secondary:var(--nav);
  --text:#182b46; --ink:var(--text); --muted:#64748b;
  --bg:#f5f7fb; --soft:var(--bg); --card:#fff; --paper:#fff; --pale:#edf2ff;
  --line:#e0e7f0; --green:#087f63; --greenbg:#eaf8f2;
  --amber:#99600e; --orange:var(--amber); --amberbg:#fff6e7;
  --red:#c53e50; --redbg:#fff0f2;
  --radius:16px; --control-radius:10px;
  --shadow:0 4px 16px rgba(18,36,75,.035);
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-6:24px; --space-8:32px;
  --width:1200px;
}
*,*::before,*::after{box-sizing:border-box}
body{font-family:var(--hq-font);font-size:14px;line-height:1.65;color:var(--text);-webkit-font-smoothing:antialiased;letter-spacing:-.025em}
button,input,select,textarea{font-family:inherit}
a{color:inherit}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
button:disabled{cursor:not-allowed;opacity:.5;box-shadow:none}
:is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #8ba7ff;outline-offset:3px}
.btn{min-height:42px;height:auto;padding:10px 16px;border:1px solid var(--line);border-radius:var(--control-radius);font-size:14px;font-weight:600;line-height:1.4;background:#fff;color:var(--text);box-shadow:none;gap:8px;text-decoration:none;transition:background .15s,border-color .15s;white-space:normal;text-align:center}
.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:none}
.btn.primary:hover{background:var(--primary);filter:brightness(.94)}
.btn.light{background:#fff;color:var(--text);border-color:var(--line)}
.btn.soft{background:var(--pale);color:var(--primary);border-color:transparent}
.btn.dark{background:var(--nav);border-color:var(--nav);color:#fff}
.btn.danger{background:var(--redbg);color:var(--red);border-color:transparent}
.btn.full{min-height:48px;font-size:16px}
.hq-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.hq-logo{display:block;width:36px;height:36px;flex:none}
.hq-word-accent{color:var(--blue)}
.hq-wordmark{display:inline-flex;align-items:center;text-decoration:none;font-size:25px;font-weight:800;letter-spacing:-1.1px;line-height:1;color:var(--nav)}
.hq-wordmark img{width:36px;height:36px;margin-right:9px}.hq-wordmark span{color:var(--blue)}

/* Account pages share the same tone and controls as the application. */
.auth-shell{grid-template-columns:44% minmax(0,56%);min-height:100svh}
.auth-brand{min-height:100svh;padding:clamp(32px,4vw,64px);background:linear-gradient(155deg,var(--nav),#142e60);gap:52px}
.auth-main{padding:48px 40px;background:#fff}
.auth-card{width:min(500px,100%)}
.auth-card h2{font-size:30px;font-weight:700;line-height:1.4;letter-spacing:-1px}
.auth-card>p{font-size:14px;line-height:1.75;margin:10px 0 28px;color:var(--muted)}
.auth-hero h1{font-size:clamp(32px,3.1vw,48px);font-weight:700;line-height:1.38;letter-spacing:-.05em;margin:18px 0 24px;word-break:keep-all}
.auth-hero p{font-size:16px;line-height:1.9;color:#bfcee7;word-break:keep-all}
.auth-kicker{font-size:13px;letter-spacing:.02em;color:#a8bcff;font-weight:600}
.brand-word{font-size:26px;font-weight:800}.brand-word .hq{background:none;color:#72aaff}
.brand-tagline{font-size:11px;letter-spacing:0;color:#aabddd;margin-top:8px;font-weight:500}
.brand-mark{filter:none}
.auth-proof{grid-template-columns:1fr;gap:0;margin-top:30px;border-top:1px solid #ffffff21}
.auth-proof>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;background:none;border:0;border-bottom:1px solid #ffffff21;border-radius:0}
.auth-proof b{font-size:14px;font-weight:600;white-space:nowrap}
.auth-proof span{font-size:12px;color:#aabddd;margin:0;text-align:right;word-break:keep-all}
.auth-foot{font-size:12px;color:#aabddd}.auth-foot a{color:#bfcee7!important;text-underline-offset:3px}
.tabs{padding:4px;border:1px solid var(--line);background:var(--bg);border-radius:12px;margin-bottom:24px}
.tabs button{height:42px;font-size:14px;font-weight:600;color:var(--muted)}
.tabs button.active{color:var(--text);box-shadow:0 2px 6px #10234c0a}
.field{min-width:0;margin-bottom:18px}
.field label{font-size:14px;font-weight:500;color:#43536a;line-height:1.5;margin-bottom:8px}
.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:var(--control-radius);padding:11px 13px;font-size:14px;min-height:44px;line-height:1.6;color:var(--text);background:#fff;max-width:100%}
.field input::placeholder,.field textarea::placeholder{color:#8190a5}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #315cff12}
.field textarea{min-height:100px;resize:vertical}
.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.auth-card input{font-size:16px;min-height:46px}
.auth-optional{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:4px 0 18px;padding:13px 0}
.auth-optional summary{cursor:pointer;font-size:14px;color:#43536a;font-weight:500}
.auth-optional summary span{font-size:12px;color:var(--muted);margin-left:6px}
.auth-optional[open] summary{margin-bottom:18px}.auth-optional .form-row:last-child .field{margin-bottom:0}
.terms-check{font-size:12px;line-height:1.7;gap:9px;align-items:flex-start;margin:18px 0}
.terms-check input{width:16px;height:16px;min-height:16px;margin:3px 0 0;accent-color:var(--blue);flex:none}
.auth-error{padding:13px 15px;font-size:14px;line-height:1.6;border:1px solid #f4d5dc;border-radius:10px;margin-bottom:18px}

/* App shell and reusable workplace components. */
.hq-app .app{grid-template-columns:248px minmax(0,1fr)}
.hq-app .side{background:var(--nav);padding:24px 16px;gap:0;overflow-y:auto}
.side-brand{padding:0 8px 22px}.brand-lockup.compact .brand-word{font-size:22px}
.workspace-card{padding:12px;margin-bottom:20px;border-radius:12px;flex:none}
.workspace-card small{font-size:11px;letter-spacing:0;color:#93a7c9;font-weight:500}
.workspace-card b{font-size:13px;font-weight:600;max-width:150px}
.nav-title{font-size:11px;letter-spacing:.03em;color:#8199bd;margin:0 12px 9px;font-weight:500}
.nav{gap:4px}.nav button{height:44px;min-height:44px;padding:0 12px;font-size:14px;font-weight:500;color:#afbdd5;gap:12px;flex:none}
.nav button:hover{background:#ffffff0c;color:#fff}
.nav button.active{background:#ffffff12;box-shadow:inset 3px 0 #829cff;color:#fff;font-weight:600}
.nav-ico{width:20px;display:grid;place-items:center}
.nav-count{font-size:11px}.side-bottom{padding-top:24px}
.plan-card{padding:14px;background:#ffffff05;border-color:#ffffff18;box-shadow:none;border-radius:12px}
.plan-card span{font-size:11px;letter-spacing:0;font-weight:500;color:#9dafff}
.plan-card b{font-size:13px;font-weight:600;line-height:1.7}.plan-card p{font-size:12px;color:#97a9c5;line-height:1.7}
.powered{font-size:10px;color:#8196b8}.plan-meter{margin:14px 0 4px}
.top{height:80px;padding:0 32px;background:#fff;backdrop-filter:none}
.top-left small{font-size:12px;color:var(--muted);line-height:1.4}.top-left h1{font-size:18px;margin-top:5px;line-height:1.4;font-weight:600}
.top-actions{gap:10px}.search{height:40px;width:210px;border-radius:10px;background:var(--bg)}.search input{font-size:13px}
.mini-btn{height:40px;width:40px;border-radius:10px;flex:none}.badge-dot{font-size:10px;min-width:18px;height:18px}
.avatar{width:36px;height:36px;border-radius:10px;font-size:12px;font-weight:600;background:var(--pale);color:var(--blue)}
.user-pill b{font-size:13px;font-weight:600}.user-pill span{font-size:11px;color:var(--muted)}
.content{max-width:1512px;padding:32px 32px 56px}
.page-head{gap:20px;margin-bottom:24px;align-items:center}.eyebrow{font-size:11px;letter-spacing:.03em;font-weight:600;color:var(--blue)}
.page-head h2{font-size:28px;line-height:1.4;letter-spacing:-1px;font-weight:700;margin-top:7px}
.page-head p{font-size:14px;line-height:1.75;color:var(--muted);margin-top:8px;word-break:keep-all}
.page-actions{gap:8px;flex:none}
.hq-app .hero{border-radius:var(--radius);background:linear-gradient(120deg,var(--nav),var(--nav2));box-shadow:none;margin-bottom:20px;grid-template-columns:minmax(0,1.2fr) minmax(340px,1fr);min-height:180px}
.hero-main{padding:28px}.hero-main h3{font-size:24px;line-height:1.45;margin:10px 0;font-weight:600;word-break:keep-all}.hero-main p{font-size:14px;line-height:1.8;color:#b7c6e2}
.hero-stat{padding:24px 18px;min-width:0}.hero-stat span{font-size:12px;color:#b7c6e2}.hero-stat b{font-size:30px;font-weight:600}.hero-stat small{font-size:11px;color:#91a7cd}
.kpis,.dashboard-ops,.finance-hero,.ops-kpis{gap:16px;margin:0 0 24px;grid-template-columns:repeat(4,minmax(0,1fr))}
.kpi,.ops-card,.finance-box,.ops-kpi{padding:20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}
.kpi-label,.ops-card small,.finance-box>span,.ops-kpi small{font-size:13px;font-weight:500;color:var(--muted)}
.kpi b,.ops-card b,.finance-box b,.ops-kpi strong{font-size:28px;line-height:1.3;font-weight:700;letter-spacing:-1px;margin:10px 0 6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.kpi small,.ops-card em,.ops-kpi span{font-size:12px;color:var(--muted);line-height:1.6}
.grid{grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:20px}
.panel,.settings-panel,.store-card,.brand-card,.ops-card-box,.ops-table-wrap,.ops-empty,.subcard{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:#fff}
.panel-head{padding:18px 20px;min-height:76px}.panel-head h3,.subcard h3,.settings-section h3,.store-card h3,.ops-card-box h3{font-size:16px;line-height:1.5;font-weight:600}
.panel-head p,.settings-section>p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:5px}
.project-row{grid-template-columns:minmax(160px,1.2fr) 80px 80px 80px 80px;gap:12px;padding:16px 20px}
.store b{font-size:14px;font-weight:600}.store span,.tiny{font-size:12px;color:var(--muted)}.store-icon{width:40px;height:40px;font-size:13px;flex:none}
.full-row,.table-head{grid-template-columns:minmax(190px,1.4fr) 100px 110px 100px 95px 80px;gap:12px;padding:16px 20px}
.table-head{font-size:12px;color:var(--muted);font-weight:500;background:var(--bg)}
.open-date{font-size:13px;font-weight:500}.dday{font-size:12px}.progress{height:6px}.progress i,.report-progress i{background:var(--blue)}
.status,.invoice-status,.v9-badge,.brand-pill,.ops-pill{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;line-height:1.5;padding:4px 9px;border-radius:6px;white-space:nowrap}
.risk-copy b{font-size:14px;font-weight:600}.risk-copy p{font-size:12px;line-height:1.7}.risk-item{gap:14px;padding:16px 0}.risk-dot{flex:none;margin-top:8px}
.empty,.ops-empty{padding:40px 24px;font-size:14px;line-height:1.8;color:var(--muted)}.ops-empty{border-style:dashed}
.toolbar{gap:10px}.select,.brand-select{height:40px;font-size:13px;border-radius:10px;color:#43536a}
.brand-scope-bar{border-radius:12px;padding:14px 16px;margin-bottom:24px;box-shadow:none;flex-wrap:wrap}
.brand-scope-copy b{font-size:14px;font-weight:600}.brand-scope-copy span{font-size:12px;color:var(--muted)}.brand-select{min-width:180px;max-width:100%}
.brand-grid,.store-grid{gap:16px}.brand-card,.store-card{padding:20px}.brand-card h4{font-size:16px;font-weight:600}.brand-card p,.store-card p{font-size:13px;color:var(--muted);line-height:1.7}.store-meta{gap:10px;margin:16px 0}.store-meta div{background:var(--bg);border-radius:10px;padding:12px}.store-meta span{font-size:12px;color:var(--muted)}.store-meta b{font-size:14px;font-weight:600}
.v9-kanban{gap:14px;grid-template-columns:repeat(6,minmax(224px,1fr))}.v9-col{padding:12px;background:#eef2f8;border-radius:var(--radius)}.v9-col-head{padding:6px 2px 12px}.v9-col-head b{font-size:13px;font-weight:600}.v9-col-head span{font-size:12px}.lead-card{padding:16px;border-radius:12px;box-shadow:none}.lead-card b{font-size:14px}.lead-card p{font-size:12px;line-height:1.8}.lead-card button{height:auto;min-height:34px;font-size:12px;padding:7px 10px}
.v9-table,.ops-table{font-size:14px}.v9-table th,.ops-table th{font-size:12px;font-weight:500;color:var(--muted);background:var(--bg);padding:14px 16px}.v9-table td,.ops-table td{font-size:14px;line-height:1.7;padding:16px;border-color:var(--line)}.ops-table td small{font-size:12px;color:var(--muted)}.ops-table .btn,.v9-table .btn{min-height:36px;font-size:12px;padding:8px 12px}.v9-scroll,.ops-table-wrap{overscroll-behavior-x:contain}
.ops-tabs{position:static;gap:8px;padding:0 0 20px;background:transparent}.ops-tabs button{border-color:var(--line);padding:10px 16px;border-radius:10px;font-size:14px;min-height:42px;font-weight:500}.ops-tabs button.active{background:var(--pale);border-color:#cbd7ff;color:var(--blue);font-weight:600}
.ops-toolbar{gap:12px;margin:0 0 24px}.ops-grid{gap:20px}.ops-card-box{padding:24px}.ops-card-box p,.ops-text,.ops-message p{font-size:14px;color:#52637b;line-height:1.8}.ops-meta{gap:8px;margin:16px 0}.ops-card-actions{gap:8px;margin-top:20px}.ops-center{margin-bottom:28px}.ops-center h3{font-size:20px;font-weight:600;margin:0 0 8px}.ops-center>p{font-size:14px;line-height:1.7;color:var(--muted)}.ops-center .ops-kpis{margin-top:18px}
.ops-note,.v9-note,.brand-template-note,.usage-box{font-size:13px;line-height:1.8;border-radius:10px;background:var(--bg);color:#52637b;padding:16px}.ops-warn{background:var(--amberbg);color:var(--amber)}.ops-subtle,.ops-history{font-size:12px;color:var(--muted)}.ops-form label{font-size:14px}.ops-form legend{font-size:14px;font-weight:600}.ops-checklist label{font-size:14px;min-height:36px}.ops-form-grid{gap:16px}.ops-form input[type=file]{font-size:13px}.ops-message small{font-size:12px}.ops-section-title{font-size:16px;font-weight:600;margin:24px 0 14px}.ops-error{font-size:14px}
.report-line{grid-template-columns:minmax(160px,1fr) minmax(70px,.65fr) auto;padding:16px 0}.report-line b{font-size:14px;font-weight:600}.report-line span{font-size:12px}.report-line strong{font-size:12px;font-weight:500}.report-progress{height:6px}
.settings-grid{grid-template-columns:200px minmax(0,1fr);gap:20px}.settings-menu{padding:8px;border-radius:12px}.settings-menu button{font-size:14px;height:44px;font-weight:500}.settings-menu button.active{font-weight:600;color:var(--blue)}.settings-section{padding:24px}.settings-section>p{font-size:13px;margin-bottom:20px}.settings-section .form-row{gap:20px}.color-field span{font-size:12px}.scope-checks label{font-size:13px}
.plan-grid{grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:16px}.price-card{padding:20px;border-radius:14px;min-width:0}.price-card.featured{background:#fff;box-shadow:none}.price-card b{font-size:25px}.price-card h4{font-size:18px}.price-card p,.price-card .unit{font-size:13px;line-height:1.75}.price-card .tag{font-size:11px}.usage-box b{font-size:16px}.usage-box span{font-size:13px;line-height:1.75}
.drawer{width:min(860px,100%)}.drawer-head{padding:24px;position:relative}.drawer-tabs{top:0;padding:12px 24px}.drawer-title h2{font-size:24px;font-weight:600}.drawer-title p{font-size:13px}.drawer-body{padding:24px}.detail-summary>div{padding:14px;border-radius:10px}.detail-summary span{font-size:12px;color:var(--muted)}.detail-summary b{font-size:16px}.drawer-tabs button{font-size:14px;min-height:40px;font-weight:500}
.task-row{grid-template-columns:28px minmax(140px,1fr) 106px 112px 88px;padding:14px 16px;gap:10px}.task-name b{font-size:14px;font-weight:500}.task-name span{font-size:12px}.due-input,.assignee-input{height:36px;font-size:12px;border-radius:8px}.check{width:22px;height:22px}.gantt-head{font-size:12px}.subcard{padding:20px}.member b,.comment b,.approval-copy b{font-size:14px;font-weight:600}.member span,.comment span,.approval-copy p{font-size:12px;line-height:1.7}.comment p{font-size:14px}.comment-box input{font-size:14px;height:42px;min-width:0}.activity-item b{font-size:13px;font-weight:500}.activity-item span{font-size:12px}.upload b{font-size:16px}.upload p{font-size:13px}.file-row b{font-size:14px}.file-row span{font-size:12px}.file-row{flex-wrap:wrap}.approval{padding:16px}.approval-copy{min-width:0}
.modal-back{padding:24px;background:#08162d66;align-items:center}.modal{width:min(660px,100%);max-height:calc(100svh - 48px);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 24px 80px #0b183829}.modal-head{padding:20px 24px;gap:16px}.modal-head h3{font-size:20px;font-weight:600;line-height:1.5}.modal-body{padding:24px}.modal-foot{gap:10px;margin-top:24px}.close{width:40px;height:40px;flex:none}.toast{font-size:14px;line-height:1.7;padding:14px 18px;border-radius:10px}.notification-row b{font-size:14px;font-weight:600}.notification-row p{font-size:12px;line-height:1.7}.notification-row{padding:16px 20px}
.trial-banner{padding:16px;margin-bottom:24px;background:var(--pale);border-radius:12px}.trial-banner b{font-size:14px;font-weight:600}.trial-banner span{font-size:13px;line-height:1.7}.onboarding h3{font-size:26px;font-weight:600}.onboarding p{font-size:14px}.onboarding-steps span{font-size:13px}.onboarding-badge{font-size:11px}

/* Public landing keeps marketing hierarchy, using the same identity and primitives. */
.hq-landing{font-family:var(--hq-font);font-size:16px;letter-spacing:-.025em}
.hq-landing .wordmark{font-size:25px;font-weight:800;gap:8px;letter-spacing:-1px}.hq-landing .wordmark>span{display:flex}
.hq-landing .desktop-nav,.hq-landing .login{font-size:14px}.hq-landing .btn{min-height:48px}.hq-landing .btn.small{min-height:42px;font-size:13px}
.hq-landing .hero-tag{font-size:13px;padding:6px 12px}.hq-landing .hero h1{font-weight:700;font-size:52px}.hq-landing .hero-lead{font-size:16px}.hq-landing .hero-note{font-size:12px}
.hq-landing .heading{font-weight:700}.hq-landing .feature-copy p{font-size:15px}.hq-landing .check-list{font-size:14px}.hq-landing .description{font-size:16px}
.hq-landing .workflow-paper,.hq-landing .feature-visual,.hq-landing .pricing-card,.hq-landing .brand-tile,.hq-landing .app-frame{border-radius:var(--radius)}
.hq-landing .mini-sidebar{background:var(--nav);border-right:0}.hq-landing .mini-company{color:#e3eafa}.hq-landing .mini-company small{color:#99accb}.hq-landing .mini-nav-item{color:#aabbd6}.hq-landing .mini-nav-item.active{background:#ffffff15;color:#fff}
.hq-landing .mini-stat,.hq-landing .mini-list{border-radius:10px}.hq-landing .status{border-radius:5px}
.hq-landing .review-bar{font-size:11px;padding:7px 16px}.hq-landing .product-caption,.hq-landing .visual-caption{color:var(--muted);font-size:11px}

/* Shared branded document styling; values and print calculations are unchanged. */
.hq-invoice{background:var(--bg);color:var(--text);font-family:var(--hq-font)}
.hq-invoice .wrap{max-width:960px;margin:32px auto;padding:0 20px}.hq-invoice .paper{padding:40px;border-radius:var(--radius);border-color:var(--line);box-shadow:var(--shadow)}
.hq-invoice .brandhead{padding-bottom:24px;margin-bottom:24px;border-bottom:2px solid var(--secondary);gap:24px}.hq-invoice .logo{border-radius:12px}.hq-invoice .brandlock b{font-size:20px;font-weight:700}.hq-invoice .brandlock span{font-size:13px;color:var(--muted)}
.hq-invoice .doc-title h1{font-size:26px;letter-spacing:.03em;white-space:nowrap}.hq-invoice .doc-title span{font-size:12px;color:var(--muted)}
.hq-invoice .meta{border:1px solid var(--line);border-radius:12px;overflow:hidden}.hq-invoice .box{border-color:var(--line);padding:20px}.hq-invoice .box h3{font-size:13px;color:var(--muted);font-weight:500}.hq-invoice .box p{font-size:14px;line-height:1.7}
.hq-invoice .summary{border-color:var(--line);border-radius:12px;overflow:hidden;margin:24px 0}.hq-invoice .summary div{padding:14px 16px;min-width:0}.hq-invoice .summary span{font-size:12px;color:var(--muted)}.hq-invoice .summary b{font-size:14px;overflow-wrap:anywhere}
.hq-invoice .tablewrap{border:1px solid var(--line);border-radius:12px;overflow:auto}.hq-invoice th,.hq-invoice td{border:0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.7;padding:14px 12px}.hq-invoice th{background:var(--bg);font-weight:500;color:var(--muted)}.hq-invoice tr:last-child td{border-bottom:0}
.hq-invoice .totals{margin-top:24px;width:360px;max-width:100%}.hq-invoice .totals div{font-size:14px;padding:9px 0}.hq-invoice .totals .grand{font-size:20px;margin-top:8px;padding-top:16px}.hq-invoice .account{font-size:14px;line-height:1.75;border-color:var(--line);background:var(--bg);padding:16px}.hq-invoice .note{font-size:12px;line-height:1.8;color:var(--muted)}.hq-invoice .actions{gap:10px;margin-top:28px}

.hq-legal{margin:0;background:var(--bg);padding:0 24px 64px;font-size:16px;line-height:1.9}
.hq-legal-header{max-width:880px;margin:0 auto;height:96px;display:flex;align-items:center;justify-content:space-between}.hq-legal-header>a:last-child{font-size:14px;text-decoration:none;color:var(--muted)}
.hq-legal-paper{max-width:880px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:48px;box-shadow:var(--shadow)}.hq-legal h1{font-size:30px;line-height:1.45;margin:0 0 32px;letter-spacing:-1px}.hq-legal h2{font-size:18px;font-weight:600;margin:32px 0 10px}.hq-legal p{color:#52637b;margin:8px 0}

@media(min-width:981px) and (max-width:1280px){
 .content{padding:24px}.top{padding:0 24px}.top-actions .search{display:none}.top-actions #globalShareBtn{display:none}
 .grid{grid-template-columns:1fr}.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hq-app .hero{grid-template-columns:1fr}.hero-stats{border-top:1px solid #ffffff18;border-left:0}.hero-stat{padding:18px 24px}
 .kpi b,.ops-card b,.finance-box b,.ops-kpi strong{font-size:25px}.kpi,.ops-card,.finance-box,.ops-kpi{padding:16px}
}
@media(max-width:980px){
 .auth-shell{grid-template-columns:1fr}.auth-brand{min-height:auto;padding:24px;gap:0}.auth-hero,.auth-foot{display:none}.auth-main{padding:32px 24px;min-height:calc(100svh - 92px);align-items:start}.auth-card{width:min(500px,100%)}
 .hq-app .app{display:block}.hq-app .side,.hq-app .top{display:none}.mobile-top{height:68px;padding:0 20px;background:var(--nav)}.mobile-top .side-brand{padding:0}.mobile-top .brand-word{font-size:19px}.mobile-actions button{height:38px;width:38px}
 .content{padding:24px 20px calc(100px + env(safe-area-inset-bottom))}.page-head h2{font-size:25px}.page-head{flex-wrap:wrap;gap:16px}.page-head p{font-size:13px}.page-actions{display:flex;width:100%;flex-wrap:wrap}.page-actions .btn{min-height:42px}.hq-app .hero{grid-template-columns:1fr}.hero-main{padding:22px}.hero-main h3{font-size:22px}.hero-stat{padding:18px 16px}.hero-stat b{font-size:27px}
 .kpis,.dashboard-ops,.finance-hero,.ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid{grid-template-columns:1fr}.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-grid{grid-template-columns:1fr}
 .project-row{grid-template-columns:minmax(0,1fr) 75px 82px;padding:16px}.project-row>*:nth-child(3),.project-row>*:nth-child(4){display:none}.project-row>*:nth-child(5){display:block}.full-row{grid-template-columns:minmax(0,1fr) 80px 80px;padding:16px}.full-row>*:nth-child(3),.full-row>*:nth-child(4),.full-row>*:nth-child(5){display:none}.table-head{display:none}
 .mobile-nav{height:calc(72px + env(safe-area-inset-bottom));padding:5px 4px calc(5px + env(safe-area-inset-bottom));background:#fff;backdrop-filter:none}.mobile-nav button{font-size:11px;font-weight:500;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;line-height:1.3}.mobile-nav button span{margin:0;font-size:20px}.mobile-nav button.active{font-weight:600}.mobile-nav .hq-icon{width:21px;height:21px}
 .settings-grid{grid-template-columns:1fr}.settings-menu{display:flex;gap:4px;overflow-x:auto}.settings-menu button{flex:none;width:auto;min-width:100px}.drawer-head{padding:20px}.drawer-tabs{top:0;padding:10px 16px}.drawer-body{padding:20px}.detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.task-row{grid-template-columns:28px minmax(0,1fr) 100px}.task-row>*:nth-child(4),.task-row>*:nth-child(5){display:none}.collab-grid{grid-template-columns:1fr}.toast{bottom:calc(86px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:none}
 .brand-select{min-width:150px;max-width:100%}.brand-scope-copy span{display:none}
}
@media(max-width:600px){
 .auth-brand{padding:20px 24px}.auth-main{padding:28px 24px 40px}.auth-card h2{font-size:26px}.auth-card>p{font-size:14px;margin-bottom:24px}.auth-card .form-row{grid-template-columns:1fr;gap:0}.auth-card .field{margin-bottom:16px}.auth-card .brand-tagline{font-size:11px}.terms-check{font-size:12px}
 .form-row,.ops-form-grid{grid-template-columns:1fr;gap:0}.content{padding:22px 16px calc(98px + env(safe-area-inset-bottom))}.page-head h2{font-size:24px}.page-head{margin-bottom:20px}.page-head .eyebrow{font-size:11px}.brand-scope-bar{padding:12px;gap:10px;margin-bottom:20px}.brand-scope-copy b{font-size:13px}.brand-select{font-size:12px;min-width:140px;max-width:100%}
 .hero-main p{font-size:13px}.hero-stat span{font-size:11px}.hero-stat small{font-size:10px}.hero-stat{padding:16px 12px}.hero-stat b{font-size:26px}.hero-main h3{font-size:21px}.hero-main{padding:20px}
 .kpi,.ops-card,.finance-box,.ops-kpi{padding:16px}.kpi b,.ops-card b,.finance-box b,.ops-kpi strong{font-size:24px}.kpi small,.ops-card em,.ops-kpi span{font-size:11px}.kpi-label,.ops-card small,.finance-box>span,.ops-kpi small{font-size:12px}
 .ops-center h3{font-size:18px}.ops-center>p{font-size:13px}.ops-tabs{gap:6px;padding-bottom:16px}.ops-tabs button{font-size:13px;padding:10px 14px}.ops-card-box{padding:20px}.ops-card-box p{font-size:13px}.ops-grid{gap:16px}.ops-toolbar .field{min-width:130px}.ops-toolbar .btn{width:100%}.ops-form input,.ops-form select,.ops-form textarea,.field input,.field select,.field textarea{font-size:16px}.ops-form-grid{gap:16px}.ops-note{font-size:13px}.ops-table-wrap{max-width:100%}
 .store-grid{grid-template-columns:1fr}.panel-head{padding:16px;gap:12px}.panel-head h3{font-size:15px}.panel-head .btn{font-size:12px;padding:8px 12px;min-height:36px}.project-row,.full-row{grid-template-columns:minmax(0,1fr) 60px 70px;gap:8px;padding:14px}.store b{font-size:13px}.store span{font-size:11px;white-space:normal;line-height:1.5}.store-icon{width:34px;height:34px;font-size:11px}.project-row .btn,.full-row .btn{font-size:12px;padding:8px;min-height:36px}.status{font-size:10px;padding:4px 7px}.risk-copy b{font-size:13px}.report-line{grid-template-columns:minmax(0,1fr) 70px 42px;gap:10px}.report-line b{font-size:13px}.report-line span{font-size:11px}
 .settings-section{padding:20px}.settings-section .form-row{gap:0}.plan-grid{grid-template-columns:1fr}.color-row{grid-template-columns:1fr}.template-row{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) 50px 30px;gap:5px}.template-row input{min-width:0;font-size:12px;padding:5px}
 .modal-back{padding:12px}.modal{width:100%;max-width:100%;max-height:calc(100svh - 24px);border-radius:16px}.modal-head{padding:18px 20px}.modal-head h3{font-size:18px}.modal-body{padding:20px}.modal-foot{flex-wrap:wrap}.modal-foot .btn{flex:1}.drawer-head{padding:20px 16px}.drawer-body{padding:20px 16px}.drawer-title h2{font-size:22px}.drawer-tabs button{font-size:13px;padding:0 12px}.detail-summary>div{padding:12px}.task-row{padding:14px 10px;grid-template-columns:24px minmax(0,1fr) 92px;gap:8px}.task-name b{font-size:13px}.task-name span{font-size:11px}.due-input{font-size:11px}.approval{flex-wrap:wrap}.approval-copy{flex:1;min-width:180px}.statement-lines{overflow-x:auto}.statement-line{min-width:500px}.notification-row{grid-template-columns:20px minmax(0,1fr) auto;padding:16px;gap:10px}
 .hq-landing .container{width:calc(100% - 40px)}.hq-landing .hero h1{font-size:39px;letter-spacing:-1.8px}.hq-landing .hero-lead{font-size:14px}.hq-landing .hero-tag{font-size:11px}.hq-landing .hero-note{font-size:11px;flex-wrap:wrap}.hq-landing .hero-actions .btn{font-size:13px}.hq-landing .feature-copy p{font-size:14px}.hq-landing .check-list{font-size:13px}.hq-landing .description{font-size:14px}.hq-landing .header-inner{gap:10px}.hq-landing .wordmark{font-size:21px}.hq-landing .hq-logo{width:30px;height:30px}.hq-landing .header-actions{gap:8px}.hq-landing .btn.small{font-size:12px;padding:9px 12px}.hq-landing .review-bar{font-size:10px}.hq-landing .product-caption,.hq-landing .visual-caption{font-size:10px}
 .hq-invoice .wrap{margin:16px auto;padding:0 12px}.hq-invoice .paper{padding:24px 18px}.hq-invoice .brandhead{flex-wrap:wrap;gap:18px}.hq-invoice .brandlock b{font-size:18px}.hq-invoice .doc-title{text-align:left;width:100%}.hq-invoice .doc-title h1{font-size:24px}.hq-invoice .meta{grid-template-columns:1fr}.hq-invoice .box{border-right:0;border-bottom:1px solid var(--line);padding:18px}.hq-invoice .summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hq-invoice .summary div{padding:12px}.hq-invoice .summary b{font-size:13px}.hq-invoice .summary div:nth-child(-n+2){border-bottom:1px solid var(--line)}.hq-invoice .totals{width:100%}.hq-invoice .note{font-size:11px}.hq-invoice .actions .btn{flex:1}
 .hq-legal{padding:0 16px 40px;font-size:14px}.hq-legal-header{height:80px}.hq-legal-paper{padding:28px 24px}.hq-legal h1{font-size:26px}.hq-legal h2{font-size:17px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
.ops-tabs{scrollbar-width:none}.ops-tabs::-webkit-scrollbar{display:none}
@media(max-width:600px){
 .mobile-nav button{white-space:nowrap;font-size:11px}
 .brand-scope-bar{flex-wrap:nowrap;gap:8px}
 .brand-scope-copy{flex:1;min-width:0}
 .brand-scope-copy .brand-scope-logo,.brand-scope-copy b{display:none}
 .brand-scope-copy::after{content:'브랜드 범위';font-size:12px;color:var(--muted);white-space:nowrap}
 .brand-select{width:180px;min-width:0;max-width:72%}
 .ops-toolbar .btn{width:auto;min-width:110px}
 .ops-toolbar .field{min-width:150px}
}
@media print{
 .hq-invoice{background:#fff}.hq-invoice .wrap{max-width:none;margin:0;padding:0}.hq-invoice .paper{padding:12mm;border:0;box-shadow:none;border-radius:0}.hq-invoice .actions{display:none}.hq-invoice .tablewrap{overflow:visible}.hq-invoice table{min-width:0}.hq-invoice th,.hq-invoice td{font-size:10px;padding:8px}.hq-invoice tr{break-inside:avoid}.hq-invoice .brandhead,.hq-invoice .meta,.hq-invoice .totals{break-inside:avoid}
}
