:root{font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e6e6e8;background:#101114;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;width:230px;min-width:230px;height:100vh;background:#141518;border-right:1px solid #27282c;padding:28px 17px;display:flex;flex-direction:column}.brand{font-size:26px;font-weight:850;letter-spacing:-1.6px;margin:2px 12px 68px}.dot{color:#bdc1c8}.brand-sub{display:block;font-size:9px;font-weight:600;letter-spacing:2.3px;color:#707178;margin-top:4px}.nav{display:flex;flex-direction:column;gap:5px}.nav-link{width:100%;color:#9799a1;text-align:left;background:transparent;border:0;border-radius:8px;padding:14px 15px;display:flex;gap:13px;align-items:center}.nav-link span{font-size:13px}.nav-link.active,.nav-link:hover{color:#f6f6f7;background:#292a2f}.sidebar-bottom{margin-top:auto;padding:14px 12px;font-size:10px;letter-spacing:1.8px;color:#6d6e75}.sidebar-bottom small{font-size:10px;letter-spacing:0;color:#50515a}.main{flex:1;min-width:0}.topbar{height:65px;border-bottom:1px solid #27282c;display:flex;align-items:center;justify-content:space-between;padding:0 40px;color:#7b7d85;font-size:12px}.top-right{display:flex;align-items:center;gap:20px}.content{max-width:1500px;margin:auto;padding:48px 40px}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px;gap:16px}.eyebrow{display:block;font-weight:700;font-size:10px;letter-spacing:2.5px;color:#91939b}.heading h1{font-size:36px;font-weight:650;letter-spacing:-1.4px;margin:8px 0}.heading p{color:#858791;margin:0;font-size:13px}.primary,.secondary{border:1px solid #dedee2;background:#ebeced;color:#17181b;padding:11px 18px;border-radius:7px;font-weight:650}.primary:hover{background:white}.secondary{border-color:#3a3b40;background:#25262a;color:#dedee0}.text-button{color:#bcbec5;background:none;border:none;padding:8px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}.metric,.panel{border:1px solid #2d2e33;background:#191a1e;border-radius:10px}.metric{padding:22px}.metric .label{color:#93959d;font-size:12px}.metric .number{font-size:36px;letter-spacing:-1.5px;font-weight:550;margin:20px 0 4px}.metric .sub{font-size:11px;color:#777981}.layout-two{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.panel{padding:24px;margin-bottom:18px;min-width:0}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-title h2{font-size:16px;margin:0}.muted{color:#878993}.table-wrap{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:11px;font-weight:500;color:#858791;padding:12px 11px;border-bottom:1px solid #36373d}td{font-size:12px;padding:15px 11px;border-bottom:1px solid #292a30}tr:last-child td{border-bottom:0}td strong{font-weight:650}.status{font-size:11px;border-radius:30px;padding:5px 8px;background:#313238;color:#d3d3d7}.status.alert{background:#3c2727;color:#f5acac}.status.good{background:#25382e;color:#a2d7b8}.mini-button{padding:7px 9px;color:#e0e0e2;background:#292a2e;border:1px solid #3c3d43;border-radius:5px}.mini-button:hover{background:#38393e}.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:16px}.toolbar input,.toolbar select{background:#202125;border:1px solid #393a40;border-radius:7px;color:#ddd;padding:12px;width:100%;outline:none}.toolbar input:focus,input:focus,textarea:focus,select:focus{border-color:#8c8d93}.empty{color:#8e9098;text-align:center;padding:48px 12px}.login{display:grid;place-items:center;min-height:100vh;background:radial-gradient(ellipse at top right,#24252a,#101114 70%)}.login-box{width:min(440px,calc(100% - 40px));padding:34px}.brand-mark{display:block;font-size:43px;font-weight:800;letter-spacing:-3px;margin-bottom:46px}.login h1{font-size:36px;letter-spacing:-1.2px;line-height:1.25;margin:14px 0}.login p{color:#858791;margin-bottom:38px}.login label,.modal label{display:block;color:#b7b8c0;font-size:12px;margin:13px 0}.login input,.modal input,.modal textarea,.modal select{display:block;width:100%;margin-top:8px;background:#222328;border:1px solid #404148;color:#f0f0f0;padding:13px;border-radius:7px;outline:none}.login form .primary{width:100%;margin-top:15px;padding:14px}.error{color:#ff9f9f;min-height:24px;font-size:12px;margin-top:12px}.modal{position:fixed;inset:0;background:#000b;display:grid;place-items:center;padding:16px;z-index:50}.modal-panel{max-height:90vh;overflow:auto;width:min(530px,100%);background:#1e1f23;border:1px solid #393a41;border-radius:12px;padding:26px}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal-head h2{font-size:20px}.modal-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.full{grid-column:1 / -1}.modal textarea{resize:vertical;min-height:80px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;bottom:24px;right:24px;background:#e9eaec;color:#121316;border-radius:8px;padding:14px 18px;box-shadow:0 10px 40px #0007}.reminder-item{padding:18px 0;border-bottom:1px solid #323339}.reminder-item:last-child{border-bottom:none}.reminder-item .row{display:flex;justify-content:space-between;gap:12px;align-items:center}.reminder-item p{color:#8b8c94;font-size:12px;margin:7px 0}.reminder-item .actions{display:flex;gap:8px}.badge-count{border-radius:40px;background:#4b292a;color:#ffbcbc;padding:5px 9px;font-size:11px}.detail-note{font-size:12px;color:#92939b;line-height:1.8}.row-tags{display:flex;gap:8px;flex-wrap:wrap}.linklike{border:0;background:none;color:#e4e5e7;text-decoration:underline;text-underline-offset:4px;padding:0}@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-two{grid-template-columns:1fr}}@media(max-width:720px){.app{display:block}.sidebar{position:relative;width:100%;height:auto;padding:15px}.brand{margin:0 8px 14px;font-size:22px}.nav{flex-direction:row;overflow-x:auto}.nav-link{width:auto;white-space:nowrap;padding:10px}.sidebar-bottom{display:none}.topbar{padding:0 17px;height:52px}.top-right{gap:8px}.top-right #today{display:none}.content{padding:30px 16px}.heading h1{font-size:28px}.metrics{gap:9px}.metric{padding:15px}.metric .number{font-size:28px}.panel{padding:17px}.modal-fields{grid-template-columns:1fr}}
/* S2H Brand refresh, original logo accent #0089B3 */
:root{--s2h:#0089b3;--s2h-dark:#006f94;--s2h-light:#eaf6fa;--ink:#202c35;--muted:#7b8a94}
body{background:#f5f7f9;color:var(--ink)}
.sidebar{background:#17222b;border-right:1px solid #293742;width:244px;min-width:244px;padding:27px 15px}
.brand-logo{margin:7px 12px 43px;letter-spacing:initial}
.brand-logo img{width:146px;height:59px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1)}
.brand-logo .brand-sub{font-size:9px;margin-top:5px;letter-spacing:1.65px;color:#93aab7}
.nav-section{font-size:10px;letter-spacing:1.9px;color:#687e8b;margin:0 14px 11px;font-weight:700}
.nav-link{color:#a6b6c1;padding:13px 15px;border-radius:9px;transition:background .15s}
.nav-link.active{color:#fff;background:#075e79;border-left:3px solid #50c7ea}
.nav-link:hover{background:#263844;color:#fff}
.sidebar-bottom{color:#9fadb7}.sidebar-bottom small{color:#647984}
.topbar{background:#fff;border-bottom:1px solid #e9edf0;color:#73818d}
.top-right{gap:13px}.avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e1f2f7;color:#007aa0;font-weight:800}
.text-button{color:#637883}
.main{background:#f5f7f9}
.eyebrow{color:var(--s2h)}
.heading h1{color:#202b34;font-size:35px}.heading p{color:#7f8c95}
.primary{background:var(--s2h);border-color:var(--s2h);color:#fff}.primary:hover{background:var(--s2h-dark);border-color:var(--s2h-dark)}
.secondary{background:#fff;border-color:#e1e7ea;color:#566773}
.metric,.panel{background:#fff;border:1px solid #e9edf0;box-shadow:0 4px 22px #22374708;border-radius:14px}
.metric{padding:23px}.metric .label{color:#7d8a94;font-size:12px}.metric .number{color:#1c2d37;margin:16px 0 9px;font-weight:700}.metric .sub{color:#98a5ae}
.metric:first-child{border-top:3px solid var(--s2h)}
.panel-title h2{color:#28343d;font-size:15px}
th{background:#f8fafb;color:#7b8993;border-bottom:1px solid #e7ecef}
td{border-bottom:1px solid #edf1f3;color:#34444e}
.status{background:#f0f3f5;color:#637882}.status.alert{background:#fff0eb;color:#d57954}.status.good{background:#e8f7f0;color:#288463}
.mini-button{background:#fff;border:1px solid #dbe6eb;color:#007fa6}.mini-button:hover{background:#edf7fa}
.empty,.detail-note,.muted{color:#87959e}
.toolbar input,.toolbar select{background:#fff;border:1px solid #dce6eb;color:#24323b}
.login{background:#f5f7f9}.login-box{background:#fff;border:1px solid #e9edef;border-radius:18px;box-shadow:0 18px 60px #2035400b;padding:42px}.login h1{color:#263740}.login p{color:#7d8a94}
.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:33px}.login-brand img{width:140px;height:58px;object-fit:contain}.login-brand span{font-size:10px;font-weight:700;letter-spacing:1.4px;color:#748a95}
.login label,.modal label{color:#485b66}.login input{background:#f9fbfc;color:#23323b;border:1px solid #dce5ea}.login form .primary{padding:14px}
.modal-panel{background:#fff;border:1px solid #e3eaf0;color:#25333c}.modal input,.modal textarea,.modal select{background:#f8fafb;color:#22343f;border:1px solid #dce4e9}
.reminder-item{border-bottom:1px solid #e5ecef}.reminder-item p{color:#8a99a2}
.badge-count{background:#e7f5fa;color:#007da5}
.hero-summary{background:linear-gradient(112deg,#183746,#0a7394);color:white;padding:29px 34px;border-radius:14px;margin-bottom:20px;display:flex;justify-content:space-between;gap:15px;align-items:center;overflow:hidden;position:relative}
.hero-summary:after{content:"";position:absolute;right:-45px;top:-110px;border:1px solid #ffffff22;width:310px;height:310px;border-radius:50%;box-shadow:0 0 0 50px #ffffff08,0 0 0 105px #ffffff05}
.hero-summary h2{font-size:23px;font-weight:700;letter-spacing:-.6px;margin:5px 0 8px}.hero-summary p{margin:0;color:#bbdce7;font-size:12px}
.hero-summary .eyebrow{color:#9ad7e9}.hero-summary small{font-size:11px;color:#badce8}
.quick-actions{display:flex;gap:8px;flex-wrap:wrap;z-index:1}.quick-actions button{background:#fff2;border:1px solid #ffffff48;color:white;border-radius:7px;padding:11px 14px;font-size:12px}
.quick-actions button:hover{background:#fff3}
.dashboard-footer{margin-top:10px;color:#94a2aa;font-size:11px;text-align:right}
.data-chip{display:inline-block;background:#e9f5fa;color:#087da0;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:700}
@media(max-width:720px){.sidebar{width:100%;height:auto;padding:13px}.brand-logo{margin:0 8px 12px}.brand-logo img{width:100px;height:43px}.nav-section{display:none}.hero-summary{align-items:flex-start;flex-direction:column;padding:22px}.topbar{background:#fff}.heading{align-items:flex-start}.heading .primary{white-space:nowrap}.metrics{grid-template-columns:repeat(2,1fr)}}

/* S2H dashboard information architecture, 2026 */
.dashboard-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:0 0 22px}
.dashboard-heading h2{font-size:25px;letter-spacing:-.9px;margin:9px 0 7px;font-weight:750}
.dashboard-heading p{font-size:13px;line-height:1.6;color:#798b98;margin:0}
.date-pill{border:1px solid #dfe8ed;padding:9px 14px;background:#fff;border-radius:100px;color:#587383;font-size:11px;white-space:nowrap}
.dashboard-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;border:1px solid #e4eaf0;border-radius:13px;padding:18px 23px;margin-bottom:19px}
.dashboard-actions>div:first-child{display:flex;flex-direction:column;gap:4px}
.dashboard-actions strong{font-size:13px}.dashboard-actions span{color:#8b99a4;font-size:11px}
.dashboard-actions .quick-actions button{background:#eef7fa;border:1px solid #d9edf4;color:#087ca3;font-size:11px;font-weight:650}
.dashboard-actions .quick-actions button:first-child{background:#0089b3;color:white;border-color:#0089b3}
.metrics-dashboard{margin-bottom:20px}
.metrics-dashboard .metric{border-top:0;position:relative;overflow:hidden}
.metrics-dashboard .metric:before{content:"";width:28px;height:3px;background:#0089b3;position:absolute;top:0;left:23px;border-radius:0 0 5px 5px}
.metrics-dashboard .metric:nth-child(2):before{background:#df9167}
.metrics-dashboard .metric:nth-child(3):before{background:#59a787}
.metrics-dashboard .metric:nth-child(4):before{background:#7391bf}
.metrics-dashboard .metric .number{font-size:33px}
.panel-description{font-size:12px;color:#8999a4;margin:-5px 0 16px;line-height:1.65}
.panel-link{background:none;border:none;color:#0089b3;font-size:11px;font-weight:700}
.panel-note{font-size:10px;color:#9ba8b0;line-height:1.6;margin:16px 0 0}
.table-sub{display:block;margin-top:4px;color:#a0aab2;font-size:10px}
.opportunity-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid #edf0f3}
.opportunity-row:last-child{border-bottom:none}
.opportunity-row strong{font-size:12px}.opportunity-row small{display:block;color:#9ba7af;font-size:10px;margin-top:6px}
.opportunity-right{text-align:right}.opportunity-right small{margin-top:8px}
.activity-row{display:flex;align-items:start;gap:12px;border-bottom:1px solid #edf0f3;padding:14px 0}
.activity-row:last-child{border-bottom:none}
.activity-row strong{font-size:12px}.activity-row p{font-size:11px;color:#8a98a2;margin:5px 0;line-height:1.5}
.activity-row>small{color:#abb5bc;margin-left:auto;font-size:10px;white-space:nowrap}
.activity-dot{margin-top:4px;width:8px;height:8px;background:#0089b3;flex:0 0 8px;border-radius:50%;box-shadow:0 0 0 4px #e7f5fa}
.product-bar-row{margin:17px 0}.product-bar-row>div:first-child{display:flex;justify-content:space-between;font-size:12px;color:#627581;margin-bottom:8px}.product-bar-row strong{color:#1c4e62}
.product-track{background:#edf3f6;height:7px;border-radius:10px;overflow:hidden}.product-track span{height:100%;background:linear-gradient(90deg,#0089b3,#54c4d9);display:block;border-radius:10px}
.distribution-chart{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:16px 0}
.donut{--p:0%;width:153px;height:153px;min-width:153px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#0089b3 var(--p),#e4edf1 0)}
.donut>div{border-radius:50%;width:115px;height:115px;background:white;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut strong{font-size:25px;color:#243e4b}.donut small{color:#a2b0b9;font-size:10px}
.distribution-legend{flex:1;max-width:240px}.distribution-legend>div{display:flex;align-items:center;gap:7px;margin:13px 0;color:#82939d;font-size:11px}.distribution-legend strong{margin-left:auto;color:#2c4654}
.legend-dot{width:8px;height:8px;border-radius:50%;background:#0089b3}.legend-1{background:#dd916c}.legend-2{background:#659d8b}.legend-3{background:#a5b0bd}
.demo-banner{background:#fff3df;color:#9c6204;font-size:10px;font-weight:750;border-radius:100px;padding:7px 11px;margin-left:auto;margin-right:12px}
.demo-alert{background:#fff7e9;border:1px solid #f6e2b9;padding:13px 17px;color:#946716;margin-bottom:18px;border-radius:9px;font-size:12px}
.preview-button{display:block;width:100%;margin-top:10px;border:1px solid #d4e7ef;background:#e8f6fa;color:#006f94;padding:12px;border-radius:8px;font-weight:700}
.preview-hint{font-size:10px!important;line-height:1.6;color:#8fa0ab!important;margin:10px 0 0!important}
.pipeline-preview{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0}
.pipeline-preview>div{padding:24px 14px;background:#f7f9fb;border:1px solid #e6edf1;border-radius:10px;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center}
.pipeline-step{background:#e7f5fa;color:#0089b3;width:29px;height:29px;display:grid;place-items:center;border-radius:50%;font-weight:800}
.pipeline-preview strong{font-size:12px}.pipeline-preview small{color:#9aabb6;font-size:10px}
@media(max-width:1050px){.distribution-chart{flex-direction:column}.distribution-legend{width:100%;max-width:none}.pipeline-preview{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.dashboard-heading{display:block}.dashboard-heading h2{font-size:22px}.date-pill{display:inline-block;margin-top:14px}.dashboard-actions{align-items:stretch;flex-direction:column}.dashboard-actions .quick-actions{flex-direction:column}.dashboard-actions .quick-actions button{width:100%}.distribution-chart{flex-direction:row}.pipeline-preview{grid-template-columns:repeat(2,1fr)}.demo-banner{margin-left:0;margin-right:0}.topbar{gap:8px;flex-wrap:wrap;height:auto;min-height:52px;padding-top:10px;padding-bottom:10px}}

/* Monthly dashboard + ledger */
.month-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 14px}
.month-title{display:flex;flex-direction:column;gap:5px}
.month-title strong{font-size:15px;color:#304653}
.month-buttons{display:flex;align-items:center;gap:7px}
.month-buttons button{background:#fff;color:#44758a;border:1px solid #dbe6eb;border-radius:7px;padding:8px 12px;font-size:12px;min-height:35px}
.month-buttons button:first-child,.month-buttons button:nth-child(3){font-size:19px;padding:4px 12px}
.month-buttons input{background:white;color:#293f4c;border:1px solid #dbe6eb;border-radius:7px;font-size:12px;padding:8px 11px;height:35px}
.monthly-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#8b9ba5;margin:0 0 14px}
.schedule-switch{display:flex;align-items:center;background:#f1f5f7;border-radius:7px;padding:4px;gap:3px}
.schedule-switch button{border:0;background:transparent;color:#84939c;font-size:11px;padding:8px 12px;border-radius:5px}
.schedule-switch button.selected{background:#fff;color:#0089b3;box-shadow:0 1px 6px #1a404214}
.cal-scroll{overflow-x:auto}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);min-width:690px;border:1px solid #e5ebef;border-radius:8px;overflow:hidden}
.cal-week{background:#f3f7f9;font-size:11px;color:#7d8e9a;text-align:center;padding:12px;border-bottom:1px solid #e5ebef}
.cal-cell{min-height:94px;background:white;border-right:1px solid #edf1f3;border-bottom:1px solid #edf1f3;padding:9px}
.cal-cell b{font-size:12px;color:#385465}.cal-blank{background:#f7f9fb}
.cal-event{background:#e5f5fa;color:#077e9f;font-size:10px;border-left:2px solid #0089b3;border-radius:3px;padding:4px 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:5px}
.cal-cell small{font-size:10px;color:#8699a4}
@media(max-width:720px){.month-controls{align-items:flex-start;flex-direction:column}.month-buttons{width:100%;justify-content:space-between}.month-buttons input{max-width:150px}}

/* Private initial migration screen */
.import-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.import-guide>div{background:#f3f8fa;border:1px solid #e0eef3;border-radius:8px;padding:14px;font-size:12px;color:#43687a}
.import-label{display:block;font-size:12px;color:#5d7481;margin:20px 0}
.import-label input{display:block;background:white;border:1px solid #d7e4ea;border-radius:8px;margin-top:9px;padding:12px;width:100%;color:#344d59}
.import-buttons{display:flex;gap:10px;margin:17px 0}
.import-buttons button:disabled{opacity:.45;cursor:not-allowed}
#import-status,#seed-status{font-size:12px;line-height:1.7}
.import-status{color:#45748a}.import-error{color:#d65c53!important}
#seed-progress{height:9px;width:100%;accent-color:#0089b3}
@media(max-width:720px){.import-guide{grid-template-columns:1fr}}

/* Concise S2H business UI */
.topbar{justify-content:flex-end;min-height:58px;height:58px}
.content{padding-top:32px}
.heading{margin-bottom:24px}
.heading h1{font-size:28px;letter-spacing:-.8px;margin:0;font-weight:700}
.heading .eyebrow,.heading p{display:none}
.dashboard-heading{display:none}
.dashboard-actions{padding:14px 20px;margin-bottom:18px}
.dashboard-actions strong{font-size:13px}
.dashboard-actions>div:first-child>span{display:none}
.month-title .eyebrow{display:none}
.month-title strong{font-size:15px}
.nav{gap:3px}.nav-link{font-size:13px}
.brand-logo{margin-bottom:28px}
@media(max-width:720px){.content{padding-top:22px}.heading h1{font-size:24px}}

/* Spreadsheet-like monthly management */
.ledger-toolbar{display:flex;align-items:center;gap:12px;margin:12px 0 18px}
.ledger-toolbar input{flex:1;max-width:340px;min-width:160px;border-radius:7px;padding:10px 12px;background:#fff;border:1px solid #dbe6ec;color:#283f4c;font-size:12px}
.ledger-toolbar span{color:#84949f;font-size:12px}
.ledger-toolbar .schedule-switch{margin-left:auto}
.ledger-notes{max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.panel .table-wrap{overflow-x:auto}
.panel .table-wrap table{min-width:790px}
.panel .table-wrap table th,.panel .table-wrap table td{padding:13px 10px}
.panel .table-wrap table a{color:#0089b3;text-decoration:underline}

/* Seller archive and groupbuy edit controls */
.seller-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.seller-summary>div{display:flex;flex-direction:column;gap:9px;padding:14px;background:#f6f9fa;border-radius:8px;font-size:12px;color:#365161;overflow-wrap:anywhere}
.seller-summary>div>span{font-size:11px;color:#8a9aa4}
.seller-summary a{color:#0089b3}
.detail-nav{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px}
.ledger-toolbar>.primary{white-space:nowrap;padding:10px 15px}
@media(max-width:900px){.seller-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.seller-summary{grid-template-columns:1fr}.ledger-toolbar{flex-wrap:wrap}.ledger-toolbar>.primary{width:100%}}

/* Monthly groupbuy actions — compact, operational UI */
.monthly-actions{display:flex;align-items:center;gap:14px}
.monthly-actions .primary{font-size:11px;padding:9px 13px;white-space:nowrap}
.seller-cell{border:0;padding:0;background:transparent;text-align:left;color:#24465b;font-size:12px;font-weight:650;cursor:pointer}
.seller-cell:hover{color:#0089b3;text-decoration:underline;text-underline-offset:3px}
#seller-picker-search{width:100%;background:#f8fafb;border:1px solid #dce4e9;color:#22343f;padding:12px;border-radius:7px;outline:none}
#seller-picker-search:focus{border-color:#0089b3}
.monthly-tools{min-height:34px}
.monthly-actions .panel-link{white-space:nowrap}
@media(max-width:720px){.monthly-actions{gap:8px}.monthly-actions .primary{padding:8px 10px}}

/* Catalog and linked seller information in groupbuy registration */
#modal-fields [hidden]{display:none!important}
.seller-linked-data{padding:12px 14px;border:1px solid #dbe9ef;background:#f2f8fa;border-radius:7px;color:#5d7b8c;font-size:11px;line-height:1.7;overflow-wrap:anywhere}
#seller-picker-search,#product-picker-search{background:#fff;border:1px solid #dce5eb;color:#293d48}
#seller-picker-search:focus,#product-picker-search:focus{border-color:#0089b3;outline:none}
#modal-form select[name="productId"],#modal-form select[name="sellerId"]{width:100%}

/* Compact inline selection and side search */
.picker-inline{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(145px,1fr);gap:12px;align-items:end}
.picker-inline .picker-main{min-width:0}
.picker-inline .picker-main>label{margin:13px 0}
.picker-inline .picker-search{margin:13px 0;min-width:0;color:#7f929f;font-size:11px}
.picker-inline .picker-search input{width:100%;height:43px;margin-top:8px;padding:11px 12px}
.picker-inline .picker-main select{height:43px}
@media(max-width:540px){.picker-inline{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:8px}.picker-inline .picker-search input{font-size:12px;padding:10px 7px}}

/* Reminder copy options and verified contact completion */
.reminder-item .row{align-items:flex-start}
.reminder-item .actions{flex-wrap:wrap;justify-content:flex-end}
.reminder-templates{display:grid;gap:10px;margin:16px 0 3px;padding:15px;background:#f7fafb;border:1px solid #e5edf1;border-radius:10px}
.reminder-template{display:flex;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid #e7edf0;padding:8px 0 13px}
.reminder-template:last-child{border-bottom:0;padding-bottom:2px}
.reminder-template strong{display:block;font-size:12px;color:#2c4552}
.reminder-template p{font-size:12px;line-height:1.75;color:#657986;margin:7px 0 0;white-space:pre-wrap}
.reminder-template .mini-button{white-space:nowrap;flex-shrink:0}
.reminder-complete-intro{display:flex;flex-direction:column;gap:6px;background:#f1f8fa;border-radius:8px;padding:15px;margin:6px 0 10px;color:#31586a}
.reminder-complete-intro strong{font-size:14px}
.reminder-complete-intro span{font-size:11px;color:#7f98a4}
.reminder-ack{display:flex!important;align-items:center;gap:10px;background:#fff9ef;border:1px solid #f0e1c8;padding:13px;border-radius:7px;line-height:1.5}
.reminder-ack input{width:17px!important;height:17px!important;flex:0 0 17px;margin:0!important;accent-color:#0089b3}
.reminder-ack span{font-size:12px;color:#765d3c}
@media(max-width:650px){.reminder-item .row{flex-direction:column;align-items:stretch}.reminder-item .actions{justify-content:flex-start}.reminder-template{align-items:flex-start}.reminder-template p{font-size:11px}}

/* Calendar-first S2H dashboard */
.brand-home{display:flex;flex-direction:column;align-items:flex-start;width:calc(100% - 24px);background:none;border:0;text-align:left;cursor:pointer}
.brand-home:hover img{opacity:.8}
.brand-home:focus-visible{outline:2px solid #5fc5e0;outline-offset:5px;border-radius:4px}
.home-calendar-sub{display:flex;gap:15px;align-items:center;flex-wrap:wrap;color:#8798a3;font-size:12px;margin:0 0 17px}
.home-calendar-sub .panel-link{margin-left:auto}
.home-calendar-add{font-size:11px;padding:8px 12px}
.cal-scroll{width:100%}.cal-grid{min-width:760px;grid-template-columns:repeat(7,minmax(0,1fr))}
.cal-cell{min-height:132px;padding:9px 8px}
.cal-date-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}
.cal-date-head small{font-size:10px;color:#a4b2bb}
.cal-today{background:#edf8fc}
.cal-today .cal-date-head b{display:grid;place-items:center;background:#0089b3;color:white;width:22px;height:22px;border-radius:50%}
.cal-event{display:block;text-align:left;width:100%;border:0;border-left:2px solid #61b1ca;background:#eef7fa;padding:5px 6px;border-radius:3px;margin-top:4px;cursor:pointer}
.cal-event:hover{background:#d8edf5}
.cal-event-start{border-left-color:#0089b3;background:#e1f3f9}
.cal-more{border:0;background:transparent;padding:5px 0;color:#0089b3;font-size:10px;text-align:left;cursor:pointer}
@media(max-width:720px){.home-calendar-sub{gap:8px}.home-calendar-sub .panel-link{margin-left:0}.cal-cell{min-height:110px}}

/* Continuous groupbuy calendar — one event spans its start/end dates */
.cal-scroll{width:100%;overflow-x:auto;border:1px solid #dfe9ee;border-radius:10px;background:#fff}
.cal-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:840px;background:#f5f8fa}
.cal-weekdays .cal-week{border:0;border-bottom:1px solid #dfe9ee;padding:13px 5px;text-align:center;font-size:11px;color:#7d8e9a}
.cal-weeks{min-width:840px}
.cal-week-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:38px repeat(var(--cal-visible-rows),28px) 27px;position:relative;min-height:var(--cal-row-height);background:#fff;border-bottom:1px solid #e4ecf0}
.cal-week-row:last-child{border-bottom:0}
.cal-bg-day{z-index:0;min-width:0;border-right:1px solid #eaf0f3;padding:0 7px;background:#fff}
.cal-bg-day:nth-child(7){border-right:0}
.cal-bg-day.cal-outside{background:#f8fafb}
.cal-bg-day.cal-today{background:#eaf6fb}
.cal-date-head{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 3px}
.cal-date-head b{font-size:12px;color:#425a69}
.cal-today .cal-date-head b{display:grid;place-items:center;width:23px;height:23px;background:#0089b3;border-radius:50%;color:#fff}
.cal-date-head small{font-size:10px;color:#9cacb6}
.cal-range{z-index:1;min-width:0;height:23px;align-self:center;position:relative;border:0;border-left:3px solid #0089b3;border-radius:4px;background:#d9f0f8;padding:3px 9px;color:#176585;text-align:left;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;margin:0 3px;box-shadow:0 1px 2px #1f597015}
.cal-range:hover{background:#bee5f2;z-index:2}
.cal-range-continue{border-left:0;border-radius:0 4px 4px 0;background:#e1f2f8}
.cal-range-end{border-top-right-radius:5px;border-bottom-right-radius:5px}
.cal-range-start{border-top-left-radius:5px;border-bottom-left-radius:5px}
.cal-expand{z-index:2;justify-self:start;align-self:center;margin-left:10px;padding:4px 7px;border:0;background:transparent;color:#0089b3;text-align:left;font-size:11px;font-weight:700;cursor:pointer}
.cal-expand:hover{text-decoration:underline}
@media(max-width:850px){.cal-weekdays,.cal-weeks{min-width:840px}}

/* Week switching and full backup downloads */
.cal-display-controls{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;gap:14px;flex-wrap:wrap}
.cal-mode-switch{display:inline-flex;background:#edf3f6;padding:4px;border-radius:8px;gap:3px}
.cal-mode-switch button{border:0;background:transparent;border-radius:6px;padding:9px 17px;font-size:12px;color:#697e8b;cursor:pointer}
.cal-mode-switch button.selected{color:#067fa6;background:#fff;box-shadow:0 1px 5px #3d65701c;font-weight:700}
.cal-week-navigator{display:flex;align-items:center;gap:12px;font-size:12px;color:#466577}
.cal-week-navigator button{background:white;border:1px solid #dbe8ed;border-radius:6px;padding:5px 12px;font-size:19px;color:#0089b3;cursor:pointer}
.backup-export-panel{background:#f4fafc;border:1px solid #dcecf2;border-radius:12px;padding:23px;margin:8px 0 26px}
.backup-export-panel h3,.backup-import-separator h3{font-size:15px;margin:0 0 9px;color:#2c4b5b}
.backup-export-panel p,.backup-import-separator p{font-size:12px;color:#69828f;line-height:1.7}
#backup-export-status{margin-top:12px;font-size:11px}
.backup-import-separator{border-top:1px solid #e5ebef;padding:22px 0 8px}
@media(max-width:720px){.cal-display-controls{align-items:flex-start}.backup-export-panel .import-buttons{flex-wrap:wrap}}

/* Single-field autocomplete with matching suggestions and inline new records */
.combo-wrap{position:relative;min-width:0;margin:5px 0 9px}
.combo-wrap>label{display:block;font-size:12px;color:#536d7d;margin:0 0 7px}
.combo-wrap>input[type=text]{width:100%;margin:0;height:45px;background:#fff;border:1px solid #d9e3e9;border-radius:8px;padding:12px 14px;color:#1c3441;font-size:13px;outline:none}
.combo-wrap>input[type=text]:focus{border-color:#0089b3;box-shadow:0 0 0 3px #0089b313}
.combo-options{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:90;background:white;border:1px solid #d7e5eb;border-radius:9px;box-shadow:0 12px 30px #233e4c22;max-height:255px;overflow-y:auto;padding:5px}
.combo-option,.combo-create{display:block;width:100%;border:0;text-align:left;background:#fff;color:#344f5d;padding:11px 13px;font-size:12px;border-radius:5px;cursor:pointer}
.combo-option:hover,.combo-option:focus{background:#eaf6fa;color:#007da3}
.combo-empty{margin:0;padding:13px;color:#8a9ba5;font-size:12px}
.combo-create{color:#0089b3;font-weight:750;border-top:1px solid #ebf0f3;border-radius:0;margin-top:4px;padding-top:13px}
.combo-create:hover{background:#e9f6fa}
.inline-create{background:#f6fafb;border:1px solid #dceaf0;border-radius:10px;padding:17px;margin:0 0 9px}
.inline-create>strong{font-size:13px;color:#325a6b}
.inline-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
.inline-create label{display:block;color:#667d89;font-size:11px;margin:12px 0 0}
.inline-create input{display:block;width:100%;height:40px;padding:10px;margin-top:7px;border:1px solid #d9e5eb;border-radius:6px;background:#fff;color:#2a414d}
.inline-create-buttons{display:flex;gap:7px;justify-content:flex-end;margin-top:13px}
.inline-create-buttons button{font-size:12px;padding:9px 13px}
@media(max-width:540px){.inline-create-grid{grid-template-columns:1fr}}

/* Password visibility control */
.login .password-field{display:block;position:relative;margin-top:8px}
.login .password-field input{margin-top:0;padding-right:54px}
.password-toggle{position:absolute;top:50%;right:10px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:35px;height:35px;border:0;border-radius:6px;background:transparent;color:#82939f;cursor:pointer}
.password-toggle:hover{background:#eef5f8;color:#0089b3}
.password-toggle:focus-visible{outline:2px solid #0089b3;outline-offset:1px}

/* Product master management */
.product-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 20px;flex-wrap:wrap}
.product-toolbar>input{flex:1;max-width:420px;min-width:220px;min-height:42px;background:#fff;color:#283f4a;border:1px solid #dbe5ea;border-radius:8px;padding:10px 14px}
.product-toolbar>input:focus{outline:none;border-color:#0089b3;box-shadow:0 0 0 3px #0089b314}
.product-filters{display:flex;gap:3px;border-radius:8px;background:#f2f6f8;padding:4px}
.product-filters button{padding:9px 13px;border:0;border-radius:6px;background:transparent;color:#738894;font-size:11px;cursor:pointer}
.product-filters button.selected{background:#fff;color:#0089b3;box-shadow:0 1px 6px #294a5915;font-weight:700}
.product-archive-label{display:inline-block;margin-left:8px;background:#f1f1f3;color:#88929b;border-radius:4px;font-size:10px;font-weight:500;padding:3px 6px}
@media(max-width:780px){.product-toolbar{align-items:stretch;flex-direction:column}.product-toolbar>input{max-width:none;width:100%}.product-filters{width:max-content;max-width:100%;flex-wrap:wrap}}

/* Product insights: click product to inspect participating sellers */
.insight-product-link{border:0;background:transparent;color:#23536d;font-size:12px;font-weight:700;padding:4px 0;text-align:left;cursor:pointer}
.insight-product-link:hover{color:#0089b3;text-decoration:underline;text-underline-offset:3px}
.insight-seller-count{border:0;background:#e8f5fa;color:#007fa6;border-radius:5px;padding:6px 9px;font-size:11px;cursor:pointer}
.insight-seller-count:hover{background:#d9eff7}
.insight-summary{background:#f4f9fb;padding:17px;border-radius:8px;display:flex;flex-direction:column;gap:5px}
.insight-summary span{font-size:11px;color:#82949e}
.insight-summary strong{font-size:18px;color:#294b5e}
.insight-summary p{margin:5px 0 0;font-size:12px;color:#748e9c}
.insight-seller-table{overflow-x:auto;max-height:50vh;overflow-y:auto}
.insight-seller-table table{min-width:460px}
.insight-seller-table td,.insight-seller-table th{padding:12px 10px}

/* Verified product aliases and identical-account seller names */
.product-alias,.seller-alias{display:block;font-size:10px;font-weight:400;color:#8a9da9;margin-top:6px;white-space:normal;line-height:1.5}
.insight-alias-count{display:block;font-size:10px;color:#8b9ba5;margin-top:6px}
.seller-summary small{display:block;font-size:11px;color:#8b9ca6;margin-top:4px;line-height:1.5}

/* Data loading feedback and searchable seller export */
.app-loading{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:rgba(247,249,251,.88);backdrop-filter:blur(5px)}
.loading-inner{display:flex;align-items:center;flex-direction:column;gap:12px;color:#2a4452;font-size:13px}
.loading-inner strong{font-weight:800;font-size:21px;letter-spacing:-1px}
.loading-inner [data-loading-message]{font-size:12px;color:#8799a4}
.loading-spinner{width:35px;height:35px;border-radius:50%;border:3px solid #d1eaf3;border-top-color:#0089b3;animation:s2h-spin .75s linear infinite}
@keyframes s2h-spin{to{transform:rotate(360deg)}}
.seller-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 17px}
.seller-tools .seller-search{flex:1;min-width:210px}
.seller-tools input{margin:0;width:100%;background:#fff;border:1px solid #d9e5eb;border-radius:7px;padding:11px 14px;color:#283f4b;min-height:42px}
.seller-tools input:focus{outline:none;border-color:#0089b3}
.seller-tools .seller-results{font-size:12px;color:#83939f;white-space:nowrap}
.seller-tools button{font-size:12px;white-space:nowrap;padding:11px 15px}
@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none;border-top-color:#0089b3;border-right-color:#0089b3}}

/* Search and CSV export for a selected product's seller list */
.insight-list-toolbar{display:flex;align-items:center;gap:10px;margin:12px 0 14px;flex-wrap:wrap}
.insight-list-toolbar input{flex:1;min-width:195px;height:42px;padding:10px 13px;border:1px solid #dbe6eb;background:white;color:#2c4554;border-radius:7px;font-size:12px}
.insight-list-toolbar input:focus{outline:none;border-color:#0089b3;box-shadow:0 0 0 3px #0089b314}
.insight-list-toolbar span{font-size:12px;color:#7c91a0;white-space:nowrap}
.insight-list-toolbar button{white-space:nowrap;padding:10px 13px;font-size:12px}
.insight-seller-table{width:100%}
.insight-seller-table .table-wrap{overflow-x:auto}
.insight-seller-table table{min-width:420px}
@media(max-width:580px){.insight-list-toolbar input{width:100%;flex-basis:100%}}

/* Seller Instagram links: discoverable and keyboard accessible */
.instagram-profile-link{display:inline-flex;align-items:center;gap:5px;color:#0089b3;text-decoration:none;font-weight:600;white-space:nowrap}
.instagram-profile-link:hover{text-decoration:underline;color:#006c90}
.instagram-profile-link:focus-visible{outline:2px solid #0089b3;outline-offset:3px;border-radius:3px}
.instagram-profile-link span{font-size:11px;opacity:.75}

/* S2H CRM — refined navigation system */
.sidebar{width:236px;min-width:236px;padding:30px 16px 20px;background:#17232d;border-right:1px solid #22313b}
.sidebar .brand-home{margin:0 0 26px;padding:7px 13px 23px;width:100%;border-bottom:1px solid #ffffff12;text-align:left}
.sidebar .brand-logo img{display:block;width:130px;height:48px;object-fit:contain;object-position:left center}
.sidebar .brand-logo .brand-sub{font-size:9px;font-weight:600;letter-spacing:1.5px;line-height:1.4;margin-top:8px;color:#8fa6b2}
.sidebar .nav{display:flex;flex-direction:column;gap:19px;overflow-y:auto;min-height:0}
.sidebar .nav-group{display:flex;flex-direction:column;gap:3px}
.sidebar .nav-section{display:block;font-size:9px;line-height:1.3;font-weight:700;letter-spacing:1.45px;margin:0 13px 9px;color:#698290;user-select:none}
.sidebar .nav-link{height:42px;min-height:42px;display:flex;align-items:center;gap:13px;width:100%;padding:0 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:#a9bbc6;transition:background .15s ease,color .15s ease,border-color .15s ease;font-weight:500;line-height:1}
.sidebar .nav-link span{font-size:12.5px;font-weight:inherit;letter-spacing:-.2px}
.sidebar .nav-link .nav-icon{display:block;flex:none;width:17px;height:17px;color:#8da4b1;stroke:currentColor}
.sidebar .nav-link:hover{background:#263946;color:#fff;border-color:#ffffff09}
.sidebar .nav-link.active{background:#263e4c;border:1px solid #3a5666;color:#fff;font-weight:650;box-shadow:none}
.sidebar .nav-link.active .nav-icon{color:#60c5e1}
.sidebar .nav-link:focus-visible{outline:2px solid #62c9e5;outline-offset:2px}
.sidebar .sidebar-bottom{padding:17px 13px 0;margin-top:auto;border-top:1px solid #ffffff12;color:#78909c;font-size:9px;letter-spacing:1.55px}
@media(max-width:720px){
 .sidebar{width:100%;min-width:0;height:auto;padding:13px 15px 11px}
 .sidebar .brand-home{margin:0 0 8px;padding:2px 2px 10px;border-bottom:1px solid #ffffff12}
 .sidebar .brand-logo img{width:100px;height:37px}
 .sidebar .brand-logo .brand-sub{font-size:8px;margin-top:2px}
 .sidebar .nav{display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:12px;padding:1px 0 5px;scrollbar-width:thin}
 .sidebar .nav-group{flex-direction:row;gap:5px;flex:0 0 auto}
 .sidebar .nav-section{display:none}
 .sidebar .nav-link{width:auto;height:38px;min-height:38px;padding:0 11px;white-space:nowrap;gap:8px}
 .sidebar .nav-link span{font-size:12px}
 .sidebar .sidebar-bottom{display:none}
}
@media(prefers-reduced-motion:reduce){.sidebar .nav-link{transition:none}}

/* Phase 1: lightweight seller pagination and reliable save feedback */
.seller-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0 0;border-top:1px solid #e7eef2;margin-top:4px;color:#708592;font-size:12px}
.seller-pagination>div{display:flex;align-items:center;gap:12px}
.seller-pagination button{padding:8px 14px;min-height:34px;font-size:12px}
.seller-pagination button:disabled{opacity:.38;cursor:not-allowed}
.seller-page-current{min-width:45px;text-align:center;font-variant-numeric:tabular-nums;color:#3c5360;font-weight:600}
.modal-save-feedback{color:#b73738;font-size:12px;line-height:1.6;min-height:0;margin-top:8px}
.modal-save-feedback:empty{display:none}
@media(max-width:580px){.seller-pagination{align-items:flex-start;flex-direction:column}.seller-pagination>div{width:100%;justify-content:flex-end}}

/* Product list, insights and recoverable trash */
.product-view-tabs{display:flex;align-items:center;gap:4px;margin:0 0 18px;border-bottom:1px solid #e6edf1;padding-bottom:10px}
.product-view-tabs button{border:0;background:transparent;color:#748a98;font-size:13px;font-weight:600;padding:11px 17px;border-radius:7px;cursor:pointer}
.product-view-tabs button.selected{background:#e8f5fa;color:#007fa6}
.product-view-tabs button:hover:not(.selected){background:#f2f6f8;color:#315363}
.product-view-tabs button:focus-visible,.product-filters button:focus-visible{outline:2px solid #0089b3;outline-offset:2px}
/* Explicit input geometry avoids Korean glyphs being cropped in search fields */
#month-search,#product-search{height:44px;min-height:44px;line-height:normal;vertical-align:middle;padding:0 14px;display:block;appearance:auto;-webkit-appearance:auto;font-family:Pretendard,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px;font-weight:400;letter-spacing:normal;overflow:visible}
#month-search{flex:0 1 340px;width:min(340px,100%)}
.ledger-toolbar{min-height:44px;flex-wrap:wrap;align-items:center}
.ledger-toolbar .schedule-switch{flex-shrink:0}
.product-archive-label{background:#f1f4f6;color:#647b87}
@media(max-width:680px){.ledger-toolbar #month-search{flex:1 1 100%;width:100%;max-width:none}.ledger-toolbar .schedule-switch{margin-left:0}.product-view-tabs button{flex:1}}

/* 2026-11 calendar readability: larger actionable event lanes */
.cal-week-row{
 grid-template-rows:44px repeat(var(--cal-visible-rows),42px) 34px;
}
.cal-date-head{height:44px;padding:0 7px}
.cal-date-head b{font-size:13px;font-weight:750}
.cal-date-head small{font-size:11px;font-weight:550;color:#8b9eaa}
.cal-today .cal-date-head b{width:27px;height:27px}
.cal-range{
 display:flex;align-items:center;
 height:34px;min-height:34px;line-height:1.3;
 padding:0 12px;font-size:12px;font-weight:650;letter-spacing:-.15px;
 margin:0 4px;border-radius:7px;
 background:#dceff7;color:#195b75;
 box-shadow:inset 0 0 0 1px rgba(44,130,165,.08);
 transition:background .15s,box-shadow .15s;
}
.cal-range:hover{background:#c8e8f4;box-shadow:inset 0 0 0 1px rgba(0,137,179,.23);z-index:3}
.cal-range:focus-visible{outline:2px solid #0089b3;outline-offset:1px;z-index:4}
.cal-range-active{background:#c6e9f5;color:#075f81;border-left-color:#0089b3}
.cal-range-upcoming{background:#e2edf7;color:#365c79;border-left-color:#799cbb}
.cal-range-completed{background:#e6f1f5;color:#4a6b7c;border-left-color:#91b6c8}
.cal-range-continue{border-left-width:0;border-radius:5px}
.cal-range-start{border-top-left-radius:7px;border-bottom-left-radius:7px}
.cal-range-end{border-top-right-radius:7px;border-bottom-right-radius:7px}
.cal-expand{
 min-height:28px;padding:5px 10px;margin-left:6px;
 background:#f0f7fa;border-radius:6px;
 color:#087fa5;font-size:12px;
}
.cal-expand:hover{text-decoration:none;background:#e4f2f8}
.cal-bg-day{border-right-color:#e5edf1}
.cal-week-row{border-bottom-color:#dce6eb}
.cal-weekdays .cal-week{font-size:11px;font-weight:650}
@media(max-width:850px){.cal-weekdays,.cal-weeks{min-width:900px}}

/* Stable edit/register modal: fixed header/actions, one scrollable form body */
body.s2h-modal-open{overflow:hidden}
#modal.modal{
 display:flex;align-items:center;justify-content:center;
 padding:clamp(12px,3vh,30px) 16px;
 overflow:hidden;
 background:rgba(16,28,37,.66);
}
#modal .modal-panel{
 display:flex;flex-direction:column;
 width:min(720px,100%);height:auto;
 max-height:min(850px,calc(100dvh - 36px));
 min-height:0;overflow:hidden;
 padding:0;border:1px solid #e0e8ed;
 border-radius:16px;background:#fff;
 box-shadow:0 22px 70px rgba(19,42,56,.24);
}
#modal .modal-head{
 flex:0 0 auto;min-height:76px;
 padding:22px 28px 16px;
 border-bottom:1px solid #eaf0f3;
 background:#fff;
}
#modal .modal-head h2{margin:0;font-size:21px;letter-spacing:-.5px;color:#263944}
#modal #close-modal{width:35px;height:35px;display:grid;place-items:center;color:#718794;border-radius:7px}
#modal #close-modal:hover{background:#f1f5f7;color:#253d4b}
#modal #modal-form{
 display:flex;flex-direction:column;min-height:0;
 flex:1 1 auto;overflow:hidden;margin:0;
}
#modal #modal-fields{
 overflow-y:auto;overscroll-behavior:contain;
 min-height:0;flex:1 1 auto;
 padding:20px 28px 24px;
 scrollbar-width:thin;scrollbar-color:#bfced7 transparent;
}
#modal .modal-fields{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:start;column-gap:16px;row-gap:15px;
}
#modal .modal-fields>label,
#modal .modal-fields>.combo-wrap{min-width:0;margin:0}
#modal .modal-fields>label{
 color:#526c7c;font-size:12px;font-weight:650;line-height:1.5;
}
#modal .modal-fields label.full,
#modal .modal-fields>.full{grid-column:1 / -1}
#modal .modal-fields>label input,
#modal .modal-fields>label select,
#modal .modal-fields>label textarea{
 width:100%;margin-top:7px;
 border:1px solid #d9e5eb;border-radius:8px;
 background:#fbfcfd;color:#263f4e;
 font-size:13px;line-height:1.45;
}
#modal .modal-fields>label input,
#modal .modal-fields>label select{min-height:44px;padding:10px 12px}
#modal .modal-fields>label textarea{min-height:86px;padding:11px 12px}
#modal .modal-fields :is(input,select,textarea):focus{outline:none;border-color:#0089b3;box-shadow:0 0 0 3px rgba(0,137,179,.12)}
#modal .modal-fields>.combo-wrap>label{margin:0 0 7px;font-size:12px;font-weight:650}
#modal .modal-fields>.combo-wrap>input{height:45px}
#modal .modal-fields>.seller-linked-data{margin:0}
#modal .modal-actions{
 position:relative;z-index:2;flex:0 0 auto;
 margin:0;padding:16px 28px;
 border-top:1px solid #e7edf1;background:#fff;
 box-shadow:0 -5px 15px rgba(26,60,75,.035);
}
#modal .modal-actions button{min-width:90px;min-height:41px}
#modal .modal-save-feedback:not(:empty){padding:10px 12px;margin-top:12px;border-radius:7px;background:#fff6f4;color:#b83b2c}
@media(max-width:600px){
 #modal.modal{padding:8px}
 #modal .modal-panel{width:100%;max-height:calc(100dvh - 16px);border-radius:12px}
 #modal .modal-head{min-height:64px;padding:16px 18px}
 #modal #modal-fields{padding:16px 18px 20px}
 #modal .modal-fields{grid-template-columns:minmax(0,1fr);row-gap:14px}
 #modal .modal-actions{padding:13px 18px}
}

/* Faster product list: bounded rows and clear paging */
.product-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:19px 2px 2px;color:#718795;font-size:12px}
.product-pagination>div{display:flex;align-items:center;gap:15px}
.product-pagination strong{color:#385465;font-weight:650;white-space:nowrap}
.product-pagination button{background:#fff;border:1px solid #dbe6ec;color:#087fa5;padding:9px 14px;border-radius:7px;font-size:12px;cursor:pointer}
.product-pagination button:hover:not(:disabled){background:#eaf6fa}
.product-pagination button:disabled{opacity:.38;cursor:default}

/* Representative product family and historical sale variants */
.product-family-detail{min-width:0;padding:2px 0 8px}
.product-family-detail>strong{display:block;color:#294351;font-size:13px;margin:5px 0 12px}
.product-family-detail .table-wrap{max-height:260px;overflow:auto;border:1px solid #e5edf1;border-radius:8px}
.product-family-detail table{min-width:430px}
.product-family-detail th{background:#f5f8fa;font-size:11px;color:#748995;position:sticky;top:0}
.product-family-detail td{font-size:12px;color:#435e6c;padding:12px 11px}
.product-family-detail td:first-child{white-space:normal;min-width:170px;overflow-wrap:anywhere}
.product-family-detail .mini-button{white-space:nowrap}
.product-family-detail .muted{font-size:11px}
.product-family-detail+.full{margin-top:8px!important}
#modal .modal-fields>.product-family-detail{grid-column:1/-1}
@media(max-width:600px){.product-family-detail table{min-width:390px}}

/* Product-name audit screen */
.product-audit-link{display:inline;border:0;background:none;padding:3px 2px;color:#087fa5;font-size:12px;font-weight:600;text-align:left;cursor:pointer}
.product-audit-link:hover{text-decoration:underline}
.product-view-tabs{flex-wrap:wrap}
#page-body .panel:has(.product-audit-link) .table-wrap{overflow-x:auto}
#page-body .panel:has(.product-audit-link) table{min-width:660px;white-space:normal}
#page-body .panel:has(.product-audit-link) td:nth-child(2){max-width:600px;line-height:1.9}

/* Brand-first master list: details available without losing editable product records */
.product-brand-name{border:0;background:transparent;color:#263f4c;font-weight:750;font-size:13px;padding:5px 0;cursor:pointer;text-align:left}
.product-brand-name:hover{color:#0089b3;text-decoration:underline;text-underline-offset:3px}
.product-brand-name:focus-visible{outline:2px solid #0089b3;outline-offset:3px;border-radius:3px}
.product-family-detail .mini-button{margin:2px 2px 2px 0}
#modal .product-family-detail .table-wrap{max-height:360px}

/* Direct seller profile navigation and richer seller detail hierarchy */
.seller-name-link{display:inline;border:0;background:transparent;padding:2px 0;color:#243d4c;font-size:12px;font-weight:750;text-align:left;cursor:pointer}
.seller-name-link:hover{color:#0089b3;text-decoration:underline;text-underline-offset:3px}
.seller-name-link:focus-visible{outline:2px solid #0089b3;outline-offset:3px;border-radius:3px}
.seller-profile-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:5px 0 20px;border-bottom:1px solid #e6edf1}
.seller-profile-header h2{margin:5px 0 7px;font-size:24px;letter-spacing:-.6px;color:#233c49}
.seller-profile-header p{font-size:11px;color:#8b9aa4;margin:8px 0 0}
.seller-profile-eyebrow{font-size:10px;font-weight:750;letter-spacing:1.5px;color:#0089b3}
.seller-profile-channel{font-size:13px}
.seller-profile-channel a{color:#0089b3}
.seller-profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:18px 0 20px;border-bottom:1px solid #e6edf1}
.seller-profile-item{min-width:0;background:#f5f8fa;border-radius:9px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.seller-profile-item span,.seller-profile-note span{font-size:11px;color:#80929e;font-weight:600}
.seller-profile-item strong{color:#2b4756;font-size:13px;font-weight:700;overflow-wrap:anywhere;line-height:1.5}
.seller-profile-item a{color:#0089b3;overflow-wrap:anywhere}
.seller-profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding-top:20px}
.seller-profile-grid .seller-profile-item{background:#fff;border:1px solid #e4ebef}
.seller-profile-note{margin-top:14px;border:1px solid #e4ebef;border-radius:9px;padding:16px}
.seller-profile-note p{white-space:pre-wrap;line-height:1.7;color:#476071;font-size:12px;margin:8px 0 0}
@media(max-width:1080px){.seller-profile-stats,.seller-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.seller-profile-header{flex-direction:column}.seller-profile-stats,.seller-profile-grid{grid-template-columns:1fr 1fr}.seller-profile-item{padding:12px}}

/* Seller profile actions: secure internal share + Excel trade history */
.seller-detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.seller-detail-actions button{white-space:nowrap;min-height:38px;font-size:12px}
.seller-detail-actions .secondary{background:#fff;border:1px solid #d9e6ec;color:#286078}
.seller-detail-actions .secondary:hover{background:#edf7fa;border-color:#a9d4e3}
.seller-profile-grid .seller-profile-item strong{white-space:normal}
@media(max-width:820px){.detail-nav{align-items:flex-start;flex-direction:column}.seller-detail-actions{justify-content:flex-start;width:100%}}
@media(max-width:560px){.seller-detail-actions button{flex:1 1 calc(50% - 8px)}}

/* Seller master/detail modal: keep list in place, scroll within a large panel */
body.seller-popup-open{overflow:hidden}
.seller-detail-modal{position:fixed;inset:0;z-index:90;background:rgba(15,28,39,.62);display:flex;align-items:center;justify-content:center;padding:22px}
.seller-detail-dialog{width:min(1100px,100%);max-height:calc(100dvh - 44px);min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#f7f9fa;border:1px solid #dce6eb;border-radius:15px;box-shadow:0 22px 75px rgba(14,34,47,.24)}
.seller-detail-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 26px;background:#fff;border-bottom:1px solid #e6edf1;flex-shrink:0}
.seller-detail-dialog-head h2{margin:4px 0 0;color:#223c4b;font-size:19px;letter-spacing:-.5px}
.seller-detail-close{border:0;background:#f1f5f7;color:#597484;width:38px;height:38px;flex-shrink:0;border-radius:8px;cursor:pointer;font-size:18px}
.seller-detail-close:hover{background:#e4eff3;color:#0089b3}
.seller-detail-dialog-body{overflow:auto;overscroll-behavior:contain;padding:22px 25px 28px;min-height:0;scrollbar-width:thin}
.seller-detail-dialog-body .panel{background:#fff}
.seller-detail-dialog-body .detail-nav{margin:0 0 15px}
.seller-detail-dialog-body .detail-nav>[data-nav="sellers"]{display:none}
.seller-detail-dialog-body .table-wrap{overflow-x:auto}
.seller-detail-dialog-body .panel .table-wrap table{min-width:780px}
.seller-event-item{padding:15px 17px;border:1px solid #e2ebef;border-radius:9px;background:#fbfcfd;margin:9px 0}
.seller-event-item>div{display:flex;gap:15px;flex-wrap:wrap;align-items:center}
.seller-event-item strong{font-size:13px;color:#2f4b5a}
.seller-event-item span{font-size:11px;color:#8295a1}
.seller-event-item p{font-size:12px;white-space:pre-wrap;color:#344f5f;line-height:1.7;margin:10px 0}
.seller-event-item small{font-size:10px;color:#8c9da7}
@media(max-width:700px){
 .seller-detail-modal{padding:8px}
 .seller-detail-dialog{max-height:calc(100dvh - 16px);border-radius:11px}
 .seller-detail-dialog-head{padding:15px 17px}
 .seller-detail-dialog-body{padding:14px}
}

/* KakaoTalk proposal composer in seller CRM */
#modal .proposal-intro{background:#f1f8fb;border:1px solid #deedf3;border-radius:9px;padding:16px 17px}
#modal .proposal-intro strong{font-size:13px;color:#244758}
#modal .proposal-intro p{font-size:11px;color:#688394;line-height:1.65;margin:7px 0 0}
#modal #proposal-message{min-height:240px;font-size:13px;line-height:1.85;background:#fff;white-space:pre-wrap;resize:vertical}
#modal .proposal-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:1px}
#modal .proposal-actions button{background:#e8f5fa;border:1px solid #c8e7f1;color:#007fa6;font-weight:750;padding:11px 16px;border-radius:7px}
#modal .proposal-actions button:hover{background:#d8eef6}
#modal .proposal-status{font-size:11px;color:#768e9b;line-height:1.6}


/* S2H CRM — Phase 1 / white editorial operations interface, 2026-11-24
   Palette: white + original S2H #0089B3 + neutral ink. No decorative cards. */
:root{
 --s2h:#0089b3;
 --s2h-dark:#00749a;
 --ink:#202326;
 --muted:#666b70;
 --line:#dedfe0;
 font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 color:var(--ink);
 background:#fff;
}
html,body{background:#fff;color:var(--ink)}
body,.app,.main{background:#fff}
.main{min-width:0}
.content{max-width:1600px;width:100%;padding:36px 42px 70px;margin:0 auto}
.sidebar{
 width:226px;min-width:226px;position:sticky;top:0;height:100vh;
 background:#fff;border-right:1px solid var(--line);padding:28px 13px 22px;
}
.sidebar .brand-home{
 margin:0 8px 25px;padding:0 7px 24px;width:calc(100% - 16px);
 border-bottom:1px solid var(--line);border-radius:0;
}
.sidebar .brand-logo img{filter:none;width:132px;height:48px}
.sidebar .brand-logo .brand-sub{display:none}
.sidebar .nav{gap:14px}
.sidebar .nav-group{gap:0}
.sidebar .nav-section{display:none}
.sidebar .nav-link{
 height:43px;min-height:43px;gap:12px;
 padding:0 12px;border:0;border-left:2px solid transparent;border-radius:0;
 background:#fff;color:#41484d;transition:color .16s ease,background .16s ease;
}
.sidebar .nav-link span{font-size:13px;font-weight:500}
.sidebar .nav-link .nav-icon{color:#737b80}
.sidebar .nav-link:hover{border:0;border-left:2px solid transparent;background:#f6f8f9;color:#202326}
.sidebar .nav-link.active{
 border:0;border-left:2px solid var(--s2h);background:#fff;
 color:var(--s2h);box-shadow:none;font-weight:700;
}
.sidebar .nav-link.active .nav-icon{color:var(--s2h)}
.sidebar .nav-link.active span{font-weight:700}
.sidebar .sidebar-bottom{border-top:1px solid var(--line);color:#60676b;letter-spacing:.06em;font-size:10px;padding:18px 12px 0}
.topbar{height:59px;min-height:59px;border-bottom:1px solid var(--line);background:#fff;color:#555d62;padding:0 42px}
.top-right{gap:14px}
.avatar{border-radius:0;background:var(--s2h);color:#fff;width:26px;height:26px;font-weight:700}
.heading{margin-bottom:24px;align-items:center;gap:18px}
.heading h1{font-size:25px;font-weight:700;letter-spacing:-.04em;color:#202326}
.primary,.secondary,.mini-button{
 border-radius:2px;box-shadow:none;transition:background .15s,border-color .15s,color .15s;
}
.primary{background:var(--s2h);border:1px solid var(--s2h);color:#fff;padding:11px 18px;font-size:12px;font-weight:650}
.primary:hover{background:var(--s2h-dark);border-color:var(--s2h-dark)}
.secondary{background:#fff;border:1px solid #b9bfc3;color:#343a3e}
.secondary:hover{border-color:var(--s2h);color:var(--s2h)}
.mini-button{background:#fff;border:1px solid #cbd0d2;color:#3d4549;padding:7px 10px;font-size:11px}
.mini-button:hover{background:#fff;border-color:var(--s2h);color:var(--s2h)}
.panel-link{color:var(--s2h);font-size:12px;font-weight:600;white-space:nowrap;padding:4px 0}
.panel-link:hover{text-decoration:underline;text-underline-offset:3px}
.status{border-radius:2px;background:#f4f4f4;color:#3b4449}
.status.good{background:#fff;color:var(--s2h);border:1px solid var(--s2h)}
.status.alert{background:#fff;color:var(--s2h);border:1px solid var(--s2h)}
.metric,.panel{background:#fff;border:1px solid var(--line);border-radius:0;box-shadow:none}
th{background:#fff;color:#596269;font-size:11px;font-weight:600;border-bottom:1px solid #d9dddf;padding:12px 12px}
td{color:#30383d;font-size:12px;border-bottom:1px solid #e5e7e8;padding:13px 12px}
tbody tr:last-child td{border-bottom:0}
table{font-variant-numeric:tabular-nums}
.month-buttons button,.month-buttons input,
.cal-week-navigator button,.cal-mode-switch button,.cal-display-controls button,
.schedule-switch button{border-radius:2px}
.month-buttons button,.month-buttons input,.cal-week-navigator button{
 color:#30383d;border:1px solid #cfd4d7;background:#fff
}
.cal-mode-switch,.schedule-switch{background:#fff;border:1px solid #cfd4d7;border-radius:2px;padding:0;gap:0}
.cal-mode-switch button{color:#566066;background:#fff;border-radius:0;box-shadow:none}
.cal-mode-switch button.selected{color:#fff;background:var(--s2h);box-shadow:none}
.cal-week-navigator button{color:var(--s2h)}
/* Dashboard only: line-oriented sections rather than nested boxes */
.dashboard-v2{display:flex;flex-direction:column;gap:0;width:100%}
.dashboard-v2 .metrics-dashboard{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 border-top:2px solid #22282b;border-bottom:1px solid var(--line);
 gap:0;margin:0 0 10px
}
.dashboard-v2 .metrics-dashboard .metric{
 min-width:0;background:#fff;border:0;border-right:1px solid var(--line);
 border-radius:0;box-shadow:none;padding:20px 22px 21px;
}
.dashboard-v2 .metrics-dashboard .metric:first-child{border-top:0}
.dashboard-v2 .metrics-dashboard .metric:last-child{border-right:0}
.dashboard-v2 .metrics-dashboard .metric:before{display:none}
.dashboard-v2 .metrics-dashboard .metric .label{color:#50585d;font-size:12px;font-weight:600;letter-spacing:-.02em}
.dashboard-v2 .metrics-dashboard .metric .number{color:#181d20;font-size:34px;line-height:1.15;letter-spacing:-.06em;font-weight:700;margin:13px 0 0}
.dashboard-v2 .metrics-dashboard .metric .sub{display:none}
.dashboard-v2 .dashboard-actions{
 display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:18px;
 background:#fff;border:0;border-radius:0;padding:7px 0 14px;
 margin:0 0 24px
}
.dashboard-v2 .dashboard-actions strong{font-size:11px;font-weight:500;color:#6d7478}
.dashboard-v2 .dashboard-actions .quick-actions{display:flex;gap:13px;flex-wrap:wrap}
.dashboard-v2 .dashboard-actions .quick-actions button,
.dashboard-v2 .dashboard-actions .quick-actions button:first-child{
 padding:5px 0;border:0;border-bottom:1px solid transparent;border-radius:0;
 background:transparent;color:#323a3e;font-size:12px;font-weight:600
}
.dashboard-v2 .dashboard-actions .quick-actions button:hover,
.dashboard-v2 .dashboard-actions .quick-actions button:first-child:hover{color:var(--s2h);border-bottom-color:var(--s2h)}
.dashboard-v2 .panel{
 background:#fff;box-shadow:none;border:0;border-top:1px solid #242a2e;
 border-radius:0;padding:18px 0 8px;margin:0;min-width:0
}
.dashboard-v2 .panel-title{margin:0 0 17px;min-height:24px;gap:16px}
.dashboard-v2 .panel-title h2{font-size:16px;line-height:1.4;letter-spacing:-.035em;font-weight:700;color:#202326}
.dashboard-daily{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(0,1fr);gap:38px;margin:0 0 30px}
.dashboard-daily .panel{min-width:0}
.dashboard-v2 .dash-empty{font-size:12px;color:#737b80;padding:36px 10px;text-align:center;border-bottom:1px solid #e5e7e8}
.dash-task-type{color:var(--s2h);font-size:11px;font-weight:650;white-space:nowrap}
.dash-item-sub{display:block;margin-top:5px;color:#737b80;font-size:11px;font-weight:400;line-height:1.4}
.dashboard-v2 .table-wrap{overflow-x:auto;max-width:100%}
.dashboard-v2 .table-wrap table{min-width:0}
.dashboard-v2 .table-wrap td{vertical-align:middle}
.dashboard-v2 .table-wrap th:last-child,.dashboard-v2 .table-wrap td:last-child{text-align:right}
.dashboard-v2 > .panel{margin:0 0 34px}
.dashboard-calendar-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.dashboard-calendar-tools .month-controls{margin:0 0 12px}
.dashboard-calendar-tools .cal-display-controls{margin:0 0 12px}
.dashboard-calendar-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 15px;font-size:12px;color:#666e72}
.dashboard-v2 .cal-scroll{background:#fff;border:1px solid #d9dddf;border-radius:0}
.dashboard-v2 .cal-weekdays,.dashboard-v2 .cal-weekdays .cal-week{background:#fff}
.dashboard-v2 .cal-weekdays .cal-week{color:#586166;border-bottom:1px solid #d9dddf}
.dashboard-v2 .cal-week-row{background:#fff;border-bottom-color:#d9dddf}
.dashboard-v2 .cal-bg-day{background:#fff;border-right-color:#e2e4e6}
.dashboard-v2 .cal-bg-day.cal-outside{background:#f9fafb}
.dashboard-v2 .cal-bg-day.cal-today{background:#fff;border-top:2px solid var(--s2h)}
.dashboard-v2 .cal-date-head b{color:#373f43}
.dashboard-v2 .cal-today .cal-date-head b{background:var(--s2h);color:#fff;border-radius:2px}
.dashboard-v2 .cal-date-head small{color:#666e72}
.dashboard-v2 .cal-range{
 border:1px solid var(--s2h);border-radius:2px;box-shadow:none;
 background:#fff;color:var(--s2h);padding:0 10px;
 height:32px;min-height:32px;font-size:11px;font-weight:600;
 margin:0 3px;transition:background .15s,color .15s;
}
.dashboard-v2 .cal-range:hover{box-shadow:none;background:#eaf7fb;color:#006f92}
.dashboard-v2 .cal-range-active{background:var(--s2h);border-color:var(--s2h);color:#fff}
.dashboard-v2 .cal-range-active:hover{background:var(--s2h-dark);color:#fff}
.dashboard-v2 .cal-range-upcoming{background:#fff;border-color:var(--s2h);color:var(--s2h)}
.dashboard-v2 .cal-range-completed{background:#fff;border-color:#cdd2d5;color:#656d72}
.dashboard-v2 .cal-range-continue{border-left:0}
.dashboard-v2 .cal-range-start{border-left:1px solid}
.dashboard-v2 .cal-expand{border:0;border-radius:0;background:transparent;color:var(--s2h);padding:4px 8px}
.dashboard-secondary{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:38px;margin:0}
.dashboard-v2 .activity-row{border-bottom:1px solid #e5e7e8;gap:14px;padding:15px 0}
.dashboard-v2 .activity-row p{margin:5px 0 0;color:#6c7479;font-size:12px}
.dashboard-v2 .activity-row > small{color:#6a7277;font-size:11px}
.dashboard-v2 .activity-row:last-child{border-bottom:0}
.dashboard-v2 .demo-alert{border:1px solid var(--line);background:#fff;color:#333}
:focus-visible{outline:2px solid var(--s2h);outline-offset:2px}
@media(max-width:1100px){
 .content{padding:30px 28px 60px}
 .dashboard-daily,.dashboard-secondary{gap:23px}
 .dashboard-v2 .metrics-dashboard .metric{padding:18px 15px}
 .dashboard-v2 .metrics-dashboard .metric .number{font-size:29px}
}
@media(max-width:900px){
 .dashboard-daily,.dashboard-secondary{grid-template-columns:1fr;gap:24px}
 .dashboard-v2 .panel{padding-top:18px}
}
@media(max-width:720px){
 .app{display:block}
 .sidebar{position:relative;height:auto;width:100%;min-width:0;padding:10px 16px;border-right:0;border-bottom:1px solid var(--line)}
 .sidebar .brand-home{width:auto;margin:0 0 4px;padding:0 0 9px;border-bottom:1px solid var(--line)}
 .sidebar .brand-logo img{width:104px;height:37px}
 .sidebar .nav{display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:8px;padding:5px 0 3px}
 .sidebar .nav-group{display:flex;flex-direction:row;gap:3px;flex:0 0 auto}
 .sidebar .nav-link{height:38px;min-height:38px;white-space:nowrap;width:auto;padding:0 10px;gap:7px}
 .sidebar .nav-link span{font-size:12px}
 .sidebar .sidebar-bottom{display:none}
 .topbar{padding:0 17px;height:51px;min-height:51px}
 .content{padding:24px 16px 50px}
 .heading{margin-bottom:18px}
 .heading h1{font-size:23px}
 .heading .primary{white-space:nowrap;padding:10px 13px}
 .dashboard-v2 .metrics-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-v2 .metrics-dashboard .metric{border-bottom:1px solid var(--line);padding:18px 12px}
 .dashboard-v2 .metrics-dashboard .metric:nth-child(2){border-right:0}
 .dashboard-v2 .metrics-dashboard .metric:nth-child(n+3){border-bottom:0}
 .dashboard-v2 .metrics-dashboard .metric .number{font-size:28px}
 .dashboard-v2 .dashboard-actions{justify-content:flex-start;align-items:center;flex-direction:row;flex-wrap:wrap;margin-bottom:21px}
 .dashboard-v2 .dashboard-actions .quick-actions{flex-direction:row;gap:13px}
 .dashboard-v2 .dashboard-actions .quick-actions button{width:auto}
 .dashboard-calendar-tools{align-items:flex-start}
 .dashboard-calendar-tools .month-controls,.dashboard-calendar-tools .cal-display-controls{margin-bottom:5px}
 .dashboard-v2 .cal-scroll{overflow-x:auto}
 .dashboard-v2 .cal-weekdays,.dashboard-v2 .cal-weeks{min-width:900px}
 .dashboard-daily,.dashboard-secondary{gap:25px}
}
@media(max-width:380px){
 .dashboard-v2 .metrics-dashboard .metric{padding:15px 10px}
 .dashboard-v2 .metrics-dashboard .metric .number{font-size:26px}
 .dashboard-v2 .dashboard-actions strong{display:none}
}


/* S2H CRM sign-in / Phase 1.1: flat white, precise spacing, brand-blue actions */
#login.login {
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  width:100%;min-height:100vh;min-height:100svh;margin:0;
  padding:0 50px;background:#fff;color:#202326;
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
#login .login-site-header {
  min-height:100px;display:flex;align-items:center;justify-content:space-between;
  gap:20px;border-bottom:1px solid #dedfe0;
}
#login .login-brand {display:flex;align-items:center;margin:0}
#login .login-brand img {
  display:block;width:137px;height:auto;max-height:54px;
  object-fit:contain;filter:none
}
#login .login-site-title {
  color:#30373b;font-size:13px;font-weight:650;
  letter-spacing:-.02em
}
#login .login-box {
  width:min(420px,100%);margin:auto;max-width:100%;padding:62px 0 80px;
  background:transparent;border:0;border-radius:0;box-shadow:none;
}
#login .login-intro {margin:0 0 39px}
#login .login-intro h1 {
  margin:0 0 11px;font-size:32px;line-height:1.28;
  font-weight:700;letter-spacing:-.055em;color:#1d2225
}
#login .login-intro p {
  margin:0;font-size:14px;line-height:1.65;letter-spacing:-.02em;
  font-weight:400;color:#656d72
}
#login #login-form {display:flex;flex-direction:column}
#login #login-form label{
  display:block;margin:0 0 22px;font-size:13px;font-weight:650;
  line-height:1.4;letter-spacing:-.025em;color:#30383d;
}
#login #login-form input {
  display:block;width:100%;height:50px;margin:9px 0 0;padding:0 15px;
  border:1px solid #cdd2d5;border-radius:2px;box-shadow:none;
  color:#1f282c;background:#fff;font-size:14px;font-weight:400;
  transition:border-color .15s ease;
}
#login #login-form input::placeholder{color:#8b9398}
#login #login-form input:hover{border-color:#8f9ba1}
#login #login-form input:focus{
  border-color:#0089b3;outline:2px solid rgba(0,137,179,.14);
  outline-offset:0;background:#fff;
}
#login #login-form .password-field {display:block;position:relative;margin-top:9px}
#login #login-form .password-field input{margin-top:0;padding-right:56px}
#login #toggle-password {
  position:absolute;right:7px;top:50%;transform:translateY(-50%);
  display:flex;align-items:center;justify-content:center;
  width:42px;height:42px;background:transparent;border:0;border-radius:2px;
  color:#68777e;
}
#login #toggle-password:hover{background:#f3f8fa;color:#0089b3}
#login #toggle-password:focus-visible{outline:2px solid #0089b3;outline-offset:0}
#login #login-form .login-submit {
  width:100%;height:52px;margin:13px 0 0;padding:0 16px;
  background:#0089b3;border:1px solid #0089b3;border-radius:2px;
  box-shadow:none;color:#fff;font-size:14px;font-weight:650;
}
#login #login-form .login-submit:hover{background:#00749a;border-color:#00749a}
#login #login-form .login-submit:disabled{opacity:.5;cursor:not-allowed}
#login #login-error {
  min-height:0;margin:0;font-size:12px;line-height:1.65;
  color:#354b56;word-break:keep-all;
}
#login #login-error:not(:empty){
  margin-top:18px;padding:10px 13px;
  background:#f4fafc;border-left:2px solid #0089b3;
}
#login #preview-button {
  width:100%;height:46px;margin:14px 0 0;background:#fff;
  color:#00749a;border:1px solid #0089b3;border-radius:2px;
  font-weight:600;font-size:13px;
}
#login #preview-button:hover{background:#f3fafc}
#login #preview-hint {color:#6a747a!important;font-size:12px!important;margin:10px 0 0!important}
#login .login-site-footer {
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  min-height:68px;border-top:1px solid #dedfe0;
  color:#727a7e;font-size:11px;letter-spacing:-.01em
}
#login .login-site-footer span:first-child {font-weight:650;letter-spacing:.035em;color:#424b50}
@media(max-width:720px){
  #login.login {padding:0 24px}
  #login .login-site-header {min-height:80px}
  #login .login-brand img{width:112px;max-height:46px}
  #login .login-site-title{font-size:12px}
  #login .login-box{width:min(420px,100%);padding:68px 0 80px}
  #login .login-intro h1{font-size:29px}
  #login .login-intro{margin-bottom:33px}
  #login .login-site-footer{min-height:71px;align-items:flex-start;flex-direction:column;justify-content:center;gap:6px;font-size:10px}
}
@media(max-width:380px){
  #login.login{padding:0 18px}
  #login .login-site-header{min-height:74px}
  #login .login-box{padding:55px 0 60px}
  #login #login-form input{height:48px}
}
@media(prefers-reduced-motion:reduce){
  #login #login-form input,#login #login-form .login-submit{transition:none}
}


/* S2H CRM — operational clarity refinement (2026-11-24).
   Monthly calendar = counts and selected-date agenda, no overlapping long bars. */
.dashboard-v3 {display:flex;flex-direction:column;min-width:0;width:100%;gap:0}
.dashboard-v3 .dashboard-intro {
 display:flex;justify-content:space-between;align-items:flex-start;gap:20px;
 margin:0 0 19px;padding:0 0 18px;border-bottom:1px solid #e2e5e7
}
.dashboard-v3 .dashboard-intro>div:first-child{display:flex;flex-direction:column;gap:5px}
.dashboard-v3 .dashboard-intro strong{font-size:16px;color:#252c30;font-weight:700}
.dashboard-v3 .dashboard-intro span{font-size:13px;color:#667076;line-height:1.55}
.dashboard-v3 .dashboard-intro-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.dashboard-v3 .dashboard-intro-actions button{
 border:0;border-bottom:1px solid #bcc4c8;border-radius:0;background:transparent;
 color:#465158;font-size:13px;padding:8px 0
}
.dashboard-v3 .dashboard-intro-actions button:hover{color:var(--s2h);border-bottom-color:var(--s2h)}
.dashboard-v3 .metrics-dashboard{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 padding:0;margin:0 0 29px;gap:0;border-top:2px solid #2a3136;border-bottom:1px solid #dfe3e6
}
.dashboard-v3 .metrics-dashboard .metric{
 border:0;border-right:1px solid #e0e4e6;border-radius:0;box-shadow:none;
 background:white;padding:19px 21px 20px;position:relative
}
.dashboard-v3 .metrics-dashboard .metric:before{display:none}
.dashboard-v3 .metrics-dashboard .metric:first-child{border-top:0}
.dashboard-v3 .metrics-dashboard .metric:last-child{border-right:0}
.dashboard-v3 .metrics-dashboard .metric .label{font-size:14px;color:#454f55;font-weight:600}
.dashboard-v3 .metrics-dashboard .metric .number{margin:13px 0 7px;font-size:36px;letter-spacing:-.06em;line-height:1.1;font-weight:720;color:#1e2427}
.dashboard-v3 .metrics-dashboard .metric .sub{display:block;font-size:12px;color:#6c777d;margin:0}
.dashboard-v3 .dashboard-daily{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;margin:0 0 29px}
.dashboard-v3 .panel{
 border:0;border-top:1px solid #343c41;border-radius:0;box-shadow:none;
 background:#fff;padding:18px 0 16px;margin:0 0 28px;min-width:0
}
.dashboard-v3 .dashboard-daily .panel{margin:0}
.dashboard-v3 .panel-title{margin:0 0 16px;gap:12px}
.dashboard-v3 .panel-title h2{color:#1d262b;font-size:17px;font-weight:700;letter-spacing:-.03em}
.dashboard-v3 .panel-link{font-size:12px}
.dashboard-v3 .table-wrap{width:100%;max-width:100%;overflow-x:auto}
.dashboard-v3 table{table-layout:auto}
.dashboard-v3 table th{font-size:12px;white-space:nowrap;color:#5b656a;background:#fff;padding:12px 10px}
.dashboard-v3 table td{font-size:13px;color:#2f383d;line-height:1.5;padding:13px 10px}
.dashboard-v3 .dash-task-type{font-size:12px;color:var(--s2h);font-weight:700}
.dashboard-v3 .dash-item-sub{font-size:12px;color:#647077;line-height:1.5;margin-top:3px}
.dashboard-v3 .mini-button{min-height:32px;padding:6px 11px;font-size:12px}
.dashboard-v3 .dash-empty{padding:43px 14px;color:#637079;font-size:13px}
.dashboard-v3 .dashboard-calendar-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 15px;flex-wrap:wrap}
.dashboard-v3 .dashboard-calendar-tools .month-controls,.dashboard-v3 .dashboard-calendar-tools .cal-display-controls{margin:0}
.dashboard-v3 .month-buttons button,.dashboard-v3 .month-buttons input{min-height:39px;height:39px;font-size:13px}
.dashboard-v3 .cal-mode-switch button{font-size:13px;padding:10px 16px;min-height:38px}
/* Reusable day-focused calendar: dashboard and schedule calendar tab */
.simple-calendar-layout{
 display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);
 gap:26px;align-items:start;min-width:0
}
.simple-calendar-board{min-width:0}
.simple-calendar-weekdays,.simple-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.simple-calendar-weekdays{border:1px solid #dce1e4;border-bottom:0}
.simple-calendar-weekdays span{
 min-width:0;padding:13px 2px;text-align:center;font-size:12px;font-weight:600;
 color:#626c72;background:#fff
}
.simple-calendar-days{border-top:1px solid #dce1e4;border-left:1px solid #dce1e4}
.simple-cal-day{
 display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;
 height:77px;padding:10px 11px;position:relative;
 border:0;border-right:1px solid #dce1e4;border-bottom:1px solid #dce1e4;
 border-radius:0;background:#fff;color:#263137;text-align:left;cursor:pointer;
}
.simple-cal-day:hover{background:#f2f9fb}
.simple-cal-day.is-outside{background:#fafbfb;color:#a1a8ac}
.simple-cal-day.is-today:before{
 content:"";position:absolute;left:0;top:0;right:0;height:2px;background:var(--s2h);
}
.simple-cal-day.is-selected{background:#eef8fb;box-shadow:inset 0 0 0 1px var(--s2h);z-index:1}
.simple-cal-number{font-size:14px;font-weight:700;line-height:1.1}
.simple-cal-total{font-size:12px;color:#535f65;line-height:1.2}
.simple-cal-open{
 font-size:11px;line-height:1.3;color:var(--s2h);white-space:nowrap;font-weight:650;
 overflow:hidden;text-overflow:ellipsis;max-width:100%
}
.simple-cal-empty-mark{height:13px}
.simple-calendar-help{margin:12px 0 0;font-size:12px;color:#68747b;line-height:1.6;word-break:keep-all}
.simple-calendar-agenda{border-top:1px solid #283238;min-width:0}
.simple-agenda-header{
 display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;
 border-bottom:1px solid #e0e4e6
}
.simple-agenda-header>div{display:flex;flex-direction:column;gap:6px}
.simple-agenda-header strong{font-size:16px;font-weight:700;color:#243036}
.simple-agenda-header span{font-size:12px;color:#647178}
.simple-agenda-add{
 flex-shrink:0;border:1px solid var(--s2h);border-radius:2px;
 background:var(--s2h);color:#fff;font-size:12px;font-weight:650;
 min-height:36px;padding:8px 11px
}
.simple-agenda-add:hover{background:var(--s2h-dark)}
.simple-agenda-list{max-height:432px;overflow-y:auto;overscroll-behavior:contain}
.simple-agenda-row{
 display:flex;align-items:center;gap:10px;padding:14px 0;
 border-bottom:1px solid #e4e7e9
}
.simple-agenda-copy{flex:1;display:flex;flex-direction:column;min-width:0;gap:4px}
.simple-agenda-copy strong{font-size:13px;font-weight:700;color:#263036;overflow-wrap:anywhere}
.simple-agenda-product{font-size:13px;color:#465158;overflow-wrap:anywhere;line-height:1.4}
.simple-agenda-copy small{font-size:11px;color:#737d82}
.simple-agenda-status{font-size:11px;font-weight:650;color:#626d73}
.simple-agenda-status.is-opening{color:var(--s2h)}
.simple-agenda-edit{
 border:1px solid #cbd2d6;background:#fff;border-radius:2px;
 color:#37434a;font-size:12px;min-height:31px;padding:5px 10px
}
.simple-agenda-edit:hover{border-color:var(--s2h);color:var(--s2h)}
.simple-agenda-empty{font-size:13px;color:#5d6b72;padding:37px 10px;text-align:center}
.simple-agenda-empty span{display:block;margin-top:7px;font-size:12px;color:#7c878e}
#page-body .panel:has(.simple-calendar-layout){overflow:visible}
#page-body .panel:has(.simple-calendar-layout)>.panel-title{margin-bottom:16px}
#page-body .panel:has(.simple-calendar-layout) .month-controls{margin:0 0 14px}
#page-body .panel:has(.simple-calendar-layout) .cal-display-controls{margin:0 0 14px}
#page-body .panel:has(.simple-calendar-layout) .ledger-toolbar{margin:6px 0 20px}
@media(max-width:1220px){
 .simple-calendar-layout{grid-template-columns:minmax(0,1.4fr) minmax(275px,1fr);gap:22px}
 .simple-cal-day{padding:9px 8px}
}
@media(max-width:1040px){
 .dashboard-v3 .dashboard-daily{grid-template-columns:1fr;gap:22px}
 .simple-calendar-layout{grid-template-columns:1fr}
 .simple-calendar-agenda{margin-top:5px}
 .simple-agenda-list{max-height:300px}
}
@media(max-width:720px){
 .dashboard-v3 .dashboard-intro{flex-direction:column;align-items:stretch;gap:10px}
 .dashboard-v3 .dashboard-intro-actions{gap:20px}
 .dashboard-v3 .metrics-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-v3 .metrics-dashboard .metric{padding:15px 12px;border-bottom:1px solid #e0e4e6}
 .dashboard-v3 .metrics-dashboard .metric:nth-child(2){border-right:0}
 .dashboard-v3 .metrics-dashboard .metric:nth-child(n+3){border-bottom:0}
 .dashboard-v3 .metrics-dashboard .metric .number{font-size:30px}
 .dashboard-v3 .dashboard-calendar-tools{flex-direction:column;align-items:flex-start}
 .simple-cal-day{height:66px;padding:7px 5px;gap:3px}
 .simple-cal-number{font-size:12px}
 .simple-cal-total,.simple-cal-open{font-size:10px}
 .simple-cal-open{font-weight:600}
 .simple-calendar-weekdays span{padding:10px 1px;font-size:11px}
 .simple-calendar-help{font-size:11px}
 .simple-agenda-header{align-items:flex-start}
 .simple-agenda-header strong{font-size:15px}
 .dashboard-v3 .panel-title h2{font-size:16px}
 .dashboard-v3 .table-wrap th,.dashboard-v3 .table-wrap td{font-size:12px}
}
@media(max-width:375px){
 .simple-cal-day{height:61px;padding:6px 3px}
 .simple-cal-total,.simple-cal-open{font-size:9px}
 .simple-agenda-add{font-size:11px}
}


/* S2H CRM centered sign-in — only logo and login form */
#login.login{
  display:grid;
  place-items:center;
  min-height:100vh;
  min-height:100dvh;
  padding:24px;
  margin:0;
  width:100%;
  background:#fff;
  color:#202326;
}
#login .login-box{
  width:min(380px,100%);
  max-width:100%;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
#login .login-center-logo{
  display:block;
  width:164px;
  height:auto;
  max-width:100%;
  object-fit:contain;
  margin:0 auto 42px;
  filter:none;
}
#login .login-screen-reader-title{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
#login #login-form{display:flex;flex-direction:column;margin:0}
#login #login-form label{
  margin:0 0 21px;
  color:#263239;
  font-size:13px;
  font-weight:600;
  letter-spacing:-.02em;
}
#login #login-form input{
  width:100%;
  height:50px;
  margin-top:9px;
  border:1px solid #c9d0d4;
  background:#fff;
  color:#202326;
  border-radius:2px;
  box-shadow:none;
  padding:0 15px;
  font-size:14px;
}
#login #login-form .password-field{margin-top:9px}
#login #login-form .password-field input{margin-top:0;padding-right:54px}
#login #login-form .login-submit{
  height:50px;
  margin:7px 0 0;
  border-radius:2px;
  background:#0089b3;
  color:#fff;
  font-size:14px;
}
#login #login-error:not(:empty){margin-top:16px}
#login #preview-button{margin-top:14px}
@media(max-width:480px){
 #login.login{padding:22px}
 #login .login-box{width:min(380px,100%);padding:0;margin:0}
 #login .login-center-logo{width:145px;margin-bottom:34px}
}


/* Login alignment fix — center against viewport, not the page container. */
#login.login{
 position:fixed;inset:0;z-index:100;
 display:flex;align-items:center;justify-content:center;
 width:100vw;max-width:none;height:100vh;height:100dvh;min-height:0;
 padding:24px;margin:0;box-sizing:border-box;
 overflow-x:hidden;overflow-y:auto;background:#fff;
}
#login .login-box{
 flex:0 1 380px;width:min(380px,calc(100vw - 48px));
 max-width:380px;min-width:0;
 margin:auto;padding:0;
 border:0;border-radius:0;background:transparent;box-shadow:none;
}
#login .login-center-logo{display:block;width:162px;max-width:100%;height:auto;margin:0 auto 39px}
#login #login-form{width:100%;max-width:none}
@media(max-width:480px){
 #login.login{padding:22px}
 #login .login-box{width:min(380px,calc(100vw - 44px));max-width:380px;margin:auto}
 #login .login-center-logo{width:145px;margin:0 auto 33px}
}

