/* S2H CRM — ordered UI bundle, 2026-11-25.
   All styles here follow styles.css in the original cascade order.
   Unused Notion prototype CSS excluded; ui-polish-v2.css holds shared final design rules.
   Source files kept in repository for traceability. */

/* SOURCE: dashboard-v4.css */
/* S2H dashboard readability v4 — white and original S2H blue */
.dashboard-v4{width:100%;min-width:0;display:flex;flex-direction:column}
.dashboard-v4 .dashboard-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #dce2e5;padding:0 0 20px;margin:0 0 22px}
.dashboard-v4 .dashboard-intro>div:first-child{display:flex;flex-direction:column;gap:8px}
.dashboard-v4 .dashboard-intro strong{font-size:19px;font-weight:750;color:#1c252a}
.dashboard-v4 .dashboard-intro span{font-size:14px;color:#627077}
.dashboard-v4 .dashboard-intro-actions{display:flex;gap:18px}
.dashboard-v4 .dashboard-intro-actions button{background:transparent;border:0;border-bottom:1px solid #abb6bb;border-radius:0;color:#37454d;font-size:13px;font-weight:600;padding:9px 0;white-space:nowrap}
.dashboard-v4 .dashboard-intro-actions button:hover{color:var(--s2h);border-color:var(--s2h)}
.dashboard-v4 .metrics-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0 0 36px;border-top:2px solid #293237;border-bottom:1px solid #dde3e5}
.dashboard-v4 .metrics-dashboard .metric{border:0;border-right:1px solid #dde3e5;border-radius:0;box-shadow:none;background:#fff;padding:23px 25px;min-width:0}
.dashboard-v4 .metrics-dashboard .metric:first-child{border-top:0}
.dashboard-v4 .metrics-dashboard .metric:last-child{border-right:0}
.dashboard-v4 .metrics-dashboard .metric:before{display:none}
.dashboard-v4 .metrics-dashboard .metric .label{font-size:14px;color:#405059;font-weight:650}
.dashboard-v4 .metrics-dashboard .metric .number{font-size:38px;line-height:1.12;letter-spacing:-.06em;color:#1c252b;margin:14px 0 7px;font-weight:720}
.dashboard-v4 .metrics-dashboard .metric .sub{display:block;color:#6b787e;font-size:12px}
.dashboard-v4 .dashboard-daily{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);gap:34px;margin:0 0 38px;min-width:0}
.dashboard-v4 .panel{border:0;border-top:1px solid #344046;border-radius:0;box-shadow:none;background:#fff;padding:18px 0 16px;margin:0 0 35px;min-width:0}
.dashboard-v4 .dashboard-daily .panel{margin:0}
.dashboard-v4 .panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.dashboard-v4 .panel-title h2{font-size:18px;font-weight:750;color:#1c252a}
.dashboard-v4 .panel-link{font-size:13px;color:var(--s2h);font-weight:650}
.dashboard-v4 .ops-panel-summary{font-size:12px;color:#66757c;margin:0 0 9px}
.dashboard-v4 .ops-work-list{display:flex;flex-direction:column;min-width:0}
.dashboard-v4 .ops-work-row{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:12px;align-items:center;min-width:0;min-height:80px;padding:12px 2px;border-bottom:1px solid #e5e8ea}
.dashboard-v4 .ops-work-row:first-child{border-top:1px solid #e5e8ea}
.dashboard-v4 .ops-work-label{font-size:12px;line-height:1.5;font-weight:700;color:var(--s2h);word-break:keep-all}
.dashboard-v4 .ops-work-description{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.dashboard-v4 .ops-work-description strong{font-size:15px;font-weight:700;color:#253139;overflow-wrap:anywhere}
.dashboard-v4 .ops-work-description span{font-size:13px;line-height:1.45;color:#485960;overflow-wrap:anywhere}
.dashboard-v4 .ops-work-description small{font-size:11px;color:#77858b}
.dashboard-v4 .ops-work-action{justify-self:end;min-width:82px;min-height:36px;padding:7px 10px;background:#fff;border:1px solid #cbd4d8;border-radius:2px;color:#3e4d54;font-size:12px;font-weight:600;white-space:nowrap}
.dashboard-v4 .ops-work-action:hover{border-color:var(--s2h);color:var(--s2h)}
.dashboard-v4 .ops-more-note{font-size:12px;color:#65757c;margin:12px 0 0}
.dashboard-v4 .ops-calendar-description{font-size:13px;color:#596a72;margin:0 0 18px}
.dashboard-v4 .dashboard-calendar-tools{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin:0 0 18px}
.dashboard-v4 .dashboard-calendar-tools .month-controls,.dashboard-v4 .dashboard-calendar-tools .cal-display-controls{margin:0}
.dashboard-v4 .simple-calendar-layout{grid-template-columns:minmax(0,1.45fr) minmax(310px,1fr);gap:25px}
.dashboard-v4 .simple-cal-day{height:82px;padding:10px 9px;gap:5px}
.dashboard-v4 .simple-cal-number{font-size:15px}
.dashboard-v4 .simple-cal-total{font-size:12px}
.dashboard-v4 .simple-agenda-header strong{font-size:17px}
.dashboard-v4 .simple-agenda-copy strong{font-size:14px}
.dashboard-v4 .simple-agenda-list{max-height:580px}
@media(max-width:1080px){.dashboard-v4 .dashboard-daily,.dashboard-v4 .simple-calendar-layout{grid-template-columns:1fr;gap:24px}.dashboard-v4 .simple-agenda-list{max-height:none}}
@media(max-width:720px){.dashboard-v4 .dashboard-intro{flex-direction:column;align-items:flex-start;gap:12px}.dashboard-v4 .metrics-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-v4 .metrics-dashboard .metric{padding:18px 12px;border-bottom:1px solid #dde3e5}.dashboard-v4 .metrics-dashboard .metric:nth-child(2){border-right:0}.dashboard-v4 .metrics-dashboard .metric:nth-child(n+3){border-bottom:0}.dashboard-v4 .metrics-dashboard .metric .number{font-size:31px}.dashboard-v4 .ops-work-row{grid-template-columns:74px minmax(0,1fr) auto;gap:8px;min-height:76px}.dashboard-v4 .ops-work-description strong{font-size:14px}.dashboard-v4 .ops-work-description span{font-size:12px}.dashboard-v4 .ops-work-action{min-width:60px;font-size:11px;padding:5px 7px}.dashboard-v4 .dashboard-calendar-tools{align-items:flex-start;flex-direction:column}.dashboard-v4 .simple-cal-day{height:68px;padding:7px 4px}}
@media(max-width:420px){.dashboard-v4 .ops-work-row{grid-template-columns:63px minmax(0,1fr) auto;gap:6px}.dashboard-v4 .ops-work-label{font-size:11px}.dashboard-v4 .ops-work-action{min-width:56px;font-size:10px}.dashboard-v4 .simple-cal-day{height:64px;padding:6px 3px}}


/* S2H dashboard v5: separate work, schedule and history without cards */
.dashboard-v4 .ops-major-section{min-width:0;width:100%}
.dashboard-v4 .ops-major-today{padding:0 0 30px;margin:0 0 24px;border-bottom:1px solid #d7dfe2}
.dashboard-v4 .ops-major-calendar,
.dashboard-v4 .ops-major-activity{
 border-top:1px solid #25323a;padding:28px 0 0;margin:0 0 34px
}
.dashboard-v4 .ops-major-head{
 display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
 margin:0 0 23px;min-width:0
}
.dashboard-v4 .ops-major-head>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.dashboard-v4 .ops-major-head h2{
 font-size:21px;font-weight:740;letter-spacing:-.045em;line-height:1.35;
 color:#20282d;margin:0
}
.dashboard-v4 .ops-major-head p{
 font-size:13px;line-height:1.5;margin:0;color:#627077;word-break:keep-all
}
.dashboard-v4 .ops-major-head .panel-link{margin-top:2px;white-space:nowrap}
.dashboard-v4 .ops-major-today .metrics-dashboard{margin-bottom:25px}
.dashboard-v4 .ops-major-today .dashboard-daily{margin-bottom:0}
.dashboard-v4 .ops-major-activity{margin-bottom:20px}
.dashboard-v4 .ops-activity-list .activity-row{
 display:flex;justify-content:space-between;align-items:flex-start;gap:18px;
 padding:16px 0;border-bottom:1px solid #e5e9eb
}
.dashboard-v4 .ops-activity-list .activity-row strong{font-size:14px}
.dashboard-v4 .ops-activity-list .activity-row p{margin:5px 0 0;font-size:13px;color:#526169}
.dashboard-v4 .ops-activity-list .activity-row>small{font-size:12px;white-space:nowrap}
.dashboard-v4 .ops-calendar-controls{
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
 gap:14px;margin:0 0 13px
}
.dashboard-v4 .ops-calendar-controls .month-controls,
.dashboard-v4 .ops-calendar-controls .cal-display-controls{margin:0}
.dashboard-v4 .ops-calendar-legend{
 display:flex;align-items:center;gap:20px;flex-wrap:wrap;
 min-height:35px;margin:0 0 11px;color:#526169;font-size:12px
}
.dashboard-v4 .ops-calendar-legend>span:first-child{font-weight:650;color:#303b41;margin-right:auto}
.dashboard-v4 .ops-legend-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.dashboard-v4 .ops-legend-item i{width:14px;height:10px;display:inline-block;border:1px solid #a7b5bc;background:#fff}
.dashboard-v4 .ops-legend-item i.is-active{background:#0089b3;border-color:#0089b3}
.dashboard-v4 .ops-legend-item i.is-upcoming{border-color:#0089b3}
.dashboard-v4 .ops-legend-item i.is-past{border-color:#b7c0c5;background:#f8f9f9}
.dashboard-v4 .ops-calendar-hint{color:#65747b;white-space:nowrap}
#page-body .cal-scroll:has(.cal-weeks){
 width:100%;max-width:100%;overflow-x:auto;
 border:1px solid #dce3e6;border-radius:0;background:#fff;
 box-shadow:none;scrollbar-width:thin
}
#page-body .cal-weekdays,
#page-body .cal-weekdays .cal-week{background:#fff}
#page-body .cal-weekdays .cal-week{
 font-size:12px;font-weight:650;color:#4e5c63;padding:13px 6px;
 border-bottom:1px solid #dce3e6
}
#page-body .cal-week-row{background:#fff;border-bottom:1px solid #dce3e6}
#page-body .cal-bg-day{
 position:relative;padding:0;background:#fff;border-right:1px solid #e5eaec
}
#page-body .cal-bg-day.cal-outside{background:#fafafa}
#page-body .cal-bg-day.cal-today{background:#f3fafd}
#page-body .cal-day-add{
 position:absolute;inset:0;display:block;text-align:left;
 width:100%;height:100%;padding:0 8px;
 border:0;border-radius:0;background:transparent;color:inherit;cursor:pointer
}
#page-body .cal-day-add:focus-visible{outline:2px solid #0089b3;outline-offset:-2px}
#page-body .cal-day-add:hover{background:rgba(0,137,179,.035)}
#page-body .cal-day-add .cal-date-head{
 width:100%;height:43px;margin:0;display:flex;align-items:center;
 justify-content:space-between;gap:4px
}
#page-body .cal-date-head b{font-size:13px;font-weight:750;color:#29373e}
#page-body .cal-date-head small{font-size:11px;color:#5d6d75;font-weight:550}
#page-body .cal-today .cal-date-head b{
 display:grid;place-items:center;width:27px;height:27px;
 background:#0089b3;border-radius:2px;color:#fff
}
#page-body .cal-week-row{
 grid-template-rows:44px repeat(var(--cal-visible-rows),42px) 34px
}
#page-body .cal-range{
 display:flex;align-items:center;height:32px;min-height:32px;
 padding:0 10px;margin:0 4px;min-width:0;line-height:1.35;
 border:1px solid #a9b5bc;border-left:3px solid #0089b3;
 border-radius:2px;background:#fff;color:#2f505e;
 box-shadow:none;font-size:12px;font-weight:600;letter-spacing:-.012em
}
#page-body .cal-range:hover{background:#e9f7fb;box-shadow:none;z-index:4}
#page-body .cal-range-active{
 border-color:#0089b3;background:#0089b3;color:#fff
}
#page-body .cal-range-active:hover{background:#00759a;color:#fff}
#page-body .cal-range-upcoming{border-color:#0089b3;background:#fff;color:#006f93}
#page-body .cal-range-completed{border-color:#b9c3c8;background:#fafbfb;color:#56656d}
#page-body .cal-range-continue{border-left:0;border-radius:0 2px 2px 0}
#page-body .cal-range-start{border-left:3px solid #0089b3}
#page-body .cal-range-end{border-right-width:1px}
#page-body .cal-expand{
 border:0;border-radius:0;box-shadow:none;
 background:transparent;color:#0089b3;font-size:12px;font-weight:700;
 margin-left:8px;min-height:28px
}
#page-body .cal-expand:hover{text-decoration:underline;background:transparent}
@media(max-width:900px){
 .dashboard-v4 .ops-calendar-legend{gap:12px}
 .dashboard-v4 .ops-major-head h2{font-size:19px}
}
@media(max-width:720px){
 .dashboard-v4 .ops-major-today{padding-bottom:20px;margin-bottom:15px}
 .dashboard-v4 .ops-major-calendar,.dashboard-v4 .ops-major-activity{padding-top:23px;margin-bottom:30px}
 .dashboard-v4 .ops-major-head{margin-bottom:18px;gap:12px}
 .dashboard-v4 .ops-major-head h2{font-size:19px}
 .dashboard-v4 .ops-major-head p{font-size:12px}
 .dashboard-v4 .ops-major-head .panel-link{font-size:11px}
 .dashboard-v4 .ops-calendar-legend{gap:10px;font-size:11px}
 .dashboard-v4 .ops-calendar-legend>span:first-child{width:100%}
 .dashboard-v4 .ops-calendar-hint{width:100%;white-space:normal}
 #page-body .cal-weekdays,#page-body .cal-weeks{min-width:840px}
}


/* S2H CRM: temporary admin-only inspection notice */
#maintenance.maintenance-screen{
 position:fixed;inset:0;z-index:250;display:flex;align-items:center;
 justify-content:center;min-height:100vh;min-height:100dvh;
 width:100%;padding:24px;background:#fff;color:#222a30;text-align:center;
}
#maintenance .maintenance-content{display:flex;flex-direction:column;align-items:center;max-width:500px;width:100%;margin:auto}
#maintenance .maintenance-logo{display:block;width:152px;max-width:55%;height:auto;margin:0 auto 42px}
#maintenance h1{font-family:Pretendard,sans-serif;font-size:25px;letter-spacing:-.05em;font-weight:700;line-height:1.4;margin:0 0 16px}
#maintenance p{font-size:14px;line-height:1.85;color:#606b71;margin:0;word-break:keep-all}
#maintenance-admin-login{
 margin:42px 0 0;padding:10px 1px;border:0;border-bottom:1px solid #cbd4d8;
 border-radius:0;background:transparent;color:#536269;font-size:12px;font-weight:600;
}
#maintenance-admin-login:hover{color:#0089b3;border-bottom-color:#0089b3}
#maintenance-admin-login:focus-visible{outline:2px solid #0089b3;outline-offset:3px}
@media(max-width:520px){
 #maintenance .maintenance-logo{width:132px;margin-bottom:32px}
 #maintenance h1{font-size:22px}
 #maintenance p{font-size:13px}
}


/* FIX: calendar date headings and bars on independent fixed grid rows */
#page-body .cal-week-row{
 display:grid;
 grid-template-columns:repeat(7,minmax(0,1fr));
 grid-template-rows:44px repeat(var(--cal-visible-rows),42px) 34px;
 height:var(--cal-row-height);
 min-height:var(--cal-row-height);
 align-content:start;
 position:relative;
}
#page-body .cal-week-row>.cal-bg-day.cal-day-add{
 grid-row:1 / -1;
 position:relative;
 z-index:0;
 display:flex;
 flex-direction:column;
 align-items:stretch;
 justify-content:flex-start;
 align-self:stretch;
 justify-self:stretch;
 width:100%;
 height:100%;
 min-width:0;
 margin:0;
 padding:0 8px;
 appearance:none;
 -webkit-appearance:none;
 outline-offset:-2px;
 background:#fff;
 color:#27343b;
 border:0;
 border-right:1px solid #e5eaec;
 border-radius:0;
 text-align:left;
 font:inherit;
 box-shadow:none;
}
#page-body .cal-week-row>.cal-bg-day.cal-day-add.cal-outside{background:#fafafa}
#page-body .cal-week-row>.cal-bg-day.cal-day-add.cal-today{background:#f3fafd}
#page-body .cal-week-row>.cal-bg-day.cal-day-add:hover{background:#f2f9fb}
#page-body .cal-week-row>.cal-bg-day.cal-day-add>.cal-date-head{
 display:flex;
 flex:0 0 44px;
 width:100%;
 min-width:0;
 height:44px;
 max-height:44px;
 align-items:center;
 justify-content:space-between;
 gap:4px;
 position:relative;
 inset:auto;
 margin:0;
 padding:0;
 line-height:1;
}
#page-body .cal-week-row>.cal-range{
 position:relative;
 z-index:2;
 align-self:center;
 min-width:0;
 margin-top:0;
 margin-bottom:0;
}
#page-body .cal-week-row>.cal-expand{
 position:relative;
 z-index:3;
 align-self:center;
}
#page-body .cal-week-row>.cal-bg-day.cal-day-add:focus-visible{
 outline:2px solid #0089b3;
}


/* SOURCE: buy-editor.css */
/* S2H CRM — Groupbuy editor, 2026-11-24
   Only targets the groupbuy modal. Data and other forms stay unchanged. */
#modal.buy-editor-modal .modal-panel{
 width:min(760px,calc(100vw - 28px));
 max-height:min(830px,calc(100dvh - 28px));
 border:1px solid #d8e0e3;
 border-radius:4px;
 background:#fff;
 box-shadow:0 20px 65px rgba(19,34,41,.18);
}
#modal.buy-editor-modal .modal-head{
 min-height:66px;
 padding:17px 26px;
 background:#fff;
 border-bottom:1px solid #dfe5e8;
}
#modal.buy-editor-modal .modal-head h2{
 margin:0;
 font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 font-size:21px;
 letter-spacing:-.045em;
 font-weight:700;
 color:#202b32;
}
#modal.buy-editor-modal #close-modal{
 border-radius:2px;
 color:#6a777d;
}
#modal.buy-editor-modal #modal-fields{
 padding:20px 27px 28px;
 background:#fff;
}
#modal.buy-editor-modal .modal-fields{
 display:flex;
 flex-direction:column;
 align-items:stretch;
 gap:0;
 min-width:0;
}
#modal.buy-editor-modal .buy-editor-heading{
 padding:1px 0 19px;
 margin:0;
 border-bottom:1px solid #e2e7e9;
}
#modal.buy-editor-modal .buy-editor-heading p{
 margin:0 0 5px;
 color:#617078;
 font-size:11px;
 font-weight:650;
}
#modal.buy-editor-modal .buy-editor-heading strong{
 color:#303c42;
 font-size:13px;
 font-weight:600;
}
#modal.buy-editor-modal .buy-editor-section{
 margin:0;
 padding:22px 0 24px;
 border-bottom:1px solid #e2e7e9;
 min-width:0;
}
#modal.buy-editor-modal .buy-editor-section-title{
 margin:0 0 18px;
 display:flex;
 align-items:baseline;
 flex-wrap:wrap;
 gap:8px 14px;
}
#modal.buy-editor-modal .buy-editor-section-title h3{
 margin:0;
 color:#202c32;
 font-size:16px;
 line-height:1.4;
 font-weight:750;
 letter-spacing:-.035em;
}
#modal.buy-editor-modal .buy-editor-section-title p{
 margin:0;
 color:#66757c;
 font-size:11px;
 line-height:1.5;
}
#modal.buy-editor-modal .buy-editor-fields{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 column-gap:18px;
 row-gap:16px;
 align-items:start;
 min-width:0;
}
#modal.buy-editor-modal .buy-editor-fields>*{min-width:0}
#modal.buy-editor-modal .buy-editor-fields>.buy-span-full,
#modal.buy-editor-modal .buy-editor-fields>.full{
 grid-column:1 / -1;
}
#modal.buy-editor-modal .buy-editor-fields>label{
 display:block;
 margin:0;
 font-size:12px;
 font-weight:650;
 line-height:1.45;
 color:#455761;
}
#modal.buy-editor-modal .buy-editor-fields>.combo-wrap{
 margin:0;
 min-width:0;
}
#modal.buy-editor-modal .buy-editor-fields>.combo-wrap>label{
 display:block;
 font-size:12px;
 color:#455761;
 font-weight:650;
 margin:0 0 7px;
 line-height:1.45;
}
#modal.buy-editor-modal .buy-editor-fields :is(input:not([type="hidden"]),select,textarea){
 display:block;
 width:100%;
 max-width:100%;
 margin:7px 0 0;
 border:1px solid #cfd8dc;
 border-radius:2px;
 background:#fff;
 box-shadow:none;
 color:#25343b;
 font-size:13px;
 font-weight:500;
 min-width:0;
 box-sizing:border-box;
}
#modal.buy-editor-modal .buy-editor-fields :is(input:not([type="hidden"]),select){
 min-height:44px;
 height:44px;
 padding:9px 12px;
}
#modal.buy-editor-modal .buy-editor-fields>.combo-wrap>input[type="text"]{
 height:44px;
 min-height:44px;
 margin:0;
 padding:9px 12px;
}
#modal.buy-editor-modal .buy-editor-fields textarea{
 padding:12px;
 min-height:92px;
 line-height:1.65;
 resize:vertical;
}
#modal.buy-editor-modal .buy-editor-fields :is(input:not([type="hidden"]),select,textarea):focus{
 outline:2px solid rgba(0,137,179,.14);
 outline-offset:0;
 border-color:#0089b3;
}
#modal.buy-editor-modal .buy-editor-fields input::placeholder{color:#9aa5aa;font-weight:400}
#modal.buy-editor-modal .buy-editor-fields .seller-linked-data{
 background:#fff;
 border:0;
 border-left:2px solid #0089b3;
 padding:7px 10px;
 font-size:12px;
 line-height:1.5;
 color:#556a73;
 margin:0;
}
#modal.buy-editor-modal .buy-editor-fields .inline-create{
 background:#f8fafb;
 border:1px solid #e1e7e9;
 border-radius:2px;
 padding:15px;
}
#modal.buy-editor-modal .buy-editor-fields .inline-create label{margin:8px 0 0}
#modal.buy-editor-modal .buy-editor-fields .inline-create input{margin:6px 0 0}
#modal.buy-editor-modal .buy-editor-fields .combo-options{
 border-radius:2px;
 border-color:#d5e0e4;
 box-shadow:0 12px 28px rgba(25,49,58,.12);
}
#modal.buy-editor-modal .buy-editor-extra{
 padding:0;
 margin:0;
 border-bottom:1px solid #e2e7e9;
}
#modal.buy-editor-modal .buy-editor-extra summary{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:8px 15px;
 padding:19px 0;
 cursor:pointer;
 list-style:none;
 font-size:15px;
 font-weight:700;
 color:#283840;
}
#modal.buy-editor-modal .buy-editor-extra summary::-webkit-details-marker{display:none}
#modal.buy-editor-modal .buy-editor-extra summary span{flex:none}
#modal.buy-editor-modal .buy-editor-extra summary small{
 margin-left:auto;
 color:#63717a;
 font-size:11px;
 font-weight:400;
}
#modal.buy-editor-modal .buy-editor-extra summary:after{
 content:"+";
 width:17px;
 font-size:22px;
 font-weight:400;
 color:#0089b3;
 text-align:center;
}
#modal.buy-editor-modal .buy-editor-extra[open] summary:after{content:"−"}
#modal.buy-editor-modal .buy-editor-extra>.buy-editor-fields{
 padding:0 0 23px;
}
#modal.buy-editor-modal .modal-actions{
 padding:14px 27px;
 border-top:1px solid #e0e6e8;
 background:#fff;
 box-shadow:none;
}
#modal.buy-editor-modal .modal-actions button{
 min-width:96px;
 min-height:42px;
 border-radius:2px;
 font-size:13px;
}
#modal.buy-editor-modal .modal-actions .primary{
 background:#0089b3;
 border-color:#0089b3;
 color:#fff;
}
#modal.buy-editor-modal .modal-actions .secondary{
 background:#fff;
 border-color:#bfcbd0;
 color:#303e45;
}
@media(max-width:650px){
 #modal.buy-editor-modal.modal{padding:8px}
 #modal.buy-editor-modal .modal-panel{
   width:100%;
   max-height:calc(100dvh - 16px);
   border-radius:3px;
 }
 #modal.buy-editor-modal .modal-head{
   min-height:57px;
   padding:15px 17px;
 }
 #modal.buy-editor-modal #modal-fields{padding:16px 17px 20px}
 #modal.buy-editor-modal .buy-editor-fields{grid-template-columns:minmax(0,1fr);row-gap:14px}
 #modal.buy-editor-modal .buy-editor-section{padding:20px 0}
 #modal.buy-editor-modal .buy-editor-section-title{flex-direction:column;gap:4px}
 #modal.buy-editor-modal .buy-editor-extra summary{flex-wrap:wrap}
 #modal.buy-editor-modal .buy-editor-extra summary small{font-size:10px}
 #modal.buy-editor-modal .modal-actions{padding:12px 17px}
 #modal.buy-editor-modal .modal-actions button{min-width:84px}
}

#modal.buy-editor-modal .buy-editor-fields input[type="hidden"]{display:none!important}


/* SOURCE: ui-system.css */
/* S2H CRM — UI Foundation v1 / 2026-11-24
   Cohesive white workspace, Pretendard, original S2H blue.
   Only affects authenticated app, never maintenance screen or login. */
:root {
  --s2h:#0089b3;
  --s2h-dark:#006f94;
  --ui-bg:#fff;
  --ui-ink:#22292e;
  --ui-secondary:#556269;
  --ui-muted:#718087;
  --ui-line:#dfe5e8;
  --ui-line-strong:#becbd0;
  --ui-hover:#f3f8fa;
  --ui-radius:3px;
}
#app.app, #app.app button, #app.app input, #app.app textarea, #app.app select {
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
#app.app{background:var(--ui-bg);color:var(--ui-ink);min-height:100vh}
#app .sidebar{
  width:232px;min-width:232px;height:100vh;
  padding:25px 14px 20px;position:sticky;top:0;
  border-right:1px solid var(--ui-line);background:#fff;
  display:flex;flex-direction:column;
}
#app .sidebar .brand-home{
  display:flex;align-items:flex-start;flex-direction:column;
  width:100%;margin:0 0 24px;padding:1px 10px 23px;
  border:0;border-bottom:1px solid var(--ui-line);
  background:transparent;border-radius:0;
}
#app .sidebar .brand-logo img{
  display:block;object-fit:contain;object-position:left center;
  width:136px;height:47px;filter:none;
}
#app .sidebar .brand-sub{display:none}
#app .sidebar .nav{
  display:flex;flex-direction:column;gap:20px;
  overflow-y:auto;overflow-x:hidden;min-height:0;
  padding:0 1px;scrollbar-width:thin;
}
#app .sidebar .nav-group{display:flex;flex-direction:column;gap:3px}
#app .sidebar .nav-section{
  display:block;margin:0 10px 7px;
  font-size:11px;font-weight:650;letter-spacing:-.015em;
  color:#78868e;line-height:1.5;
}
#app .sidebar .nav-link{
  display:flex;align-items:center;gap:12px;
  min-height:42px;height:42px;
  width:100%;padding:0 12px;
  background:#fff;border:0;border-left:2px solid transparent;
  border-radius:0;color:#405059;font-weight:500;
  transition:background .15s,color .15s;
}
#app .sidebar .nav-link span{
  color:inherit;font-size:13px;font-weight:inherit;
  letter-spacing:-.02em;
}
#app .sidebar .nav-link .nav-icon{flex:0 0 auto;width:17px;height:17px;color:#738188}
#app .sidebar .nav-link:hover{
  color:#087fa6;border-left-color:transparent;
  background:var(--ui-hover);
}
#app .sidebar .nav-link.active{
  color:var(--s2h);font-weight:700;
  background:#eff9fc;border:0;border-left:2px solid var(--s2h);
  box-shadow:none;border-radius:0;
}
#app .sidebar .nav-link.active .nav-icon{color:var(--s2h)}
#app .sidebar .nav-link:focus-visible,
#app button:focus-visible,
#app a:focus-visible{
  outline:2px solid var(--s2h);outline-offset:2px;
}
#app .sidebar .sidebar-bottom{
  margin-top:auto;padding:18px 11px 2px;
  font-size:10px;letter-spacing:.04em;
  border-top:1px solid var(--ui-line);color:#68767d;
}
#app .main{min-width:0;background:#fff}
#app .topbar{
  height:64px;min-height:64px;position:sticky;top:0;z-index:20;
  padding:0 38px;display:flex;align-items:center;justify-content:space-between;
  gap:20px;background:#fff;border-bottom:1px solid var(--ui-line);
  color:var(--ui-secondary);box-shadow:none;
}
#app .topbar-left{display:flex;align-items:center;gap:11px;min-width:0}
#app .topbar-home{
  font-size:12px;font-weight:650;color:#5e6b72;
  letter-spacing:-.025em;white-space:nowrap;
}
#app .topbar-divider{display:block;width:1px;height:13px;background:#cdd7dc}
#app #breadcrumb-page{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:12px;font-weight:700;color:#263239;
}
#app .top-right{display:flex;align-items:center;gap:14px;min-width:0}
#app #global-seller-search{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  height:34px;min-width:0;padding:0 12px;
  border:1px solid var(--ui-line);border-radius:2px;
  background:#fff;color:#43525a;font-size:12px;font-weight:600;white-space:nowrap;
}
#app #global-seller-search svg{width:15px;height:15px;flex-shrink:0}
#app #global-seller-search:hover{border-color:var(--s2h);color:var(--s2h)}
#app #today{font-size:12px;color:#65737b;font-variant-numeric:tabular-nums;white-space:nowrap}
#app .avatar{
  width:28px;height:28px;flex:0 0 28px;
  display:grid;place-items:center;border-radius:2px;
  background:var(--s2h);color:#fff;font-size:12px;font-weight:750;
}
#app #whoami{
  min-width:0;max-width:120px;overflow:hidden;text-overflow:ellipsis;
  font-size:12px;font-weight:600;color:#39474d;white-space:nowrap;
}
#app #logout{
  background:transparent;border:0;border-radius:0;
  font-size:12px;font-weight:600;color:#718087;padding:9px 0;
  white-space:nowrap;
}
#app #logout:hover{color:var(--s2h)}
#app .content{
  /* Fluid workspace: fill the space beside the fixed sidebar. */
  width:100%;max-width:none;margin:0;
  padding:34px clamp(24px,2vw,44px) 72px;min-width:0;
}
#app .heading{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;margin:0 0 26px;
}
#app .heading h1{
  font-size:26px;line-height:1.35;
  letter-spacing:-.045em;color:var(--ui-ink);
  font-weight:750;margin:0;
}
#app .primary, #app .secondary, #app .mini-button{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  border-radius:var(--ui-radius);box-shadow:none;
  font-size:13px;font-weight:650;line-height:1.35;
  white-space:nowrap;
}
#app .primary{
  border:1px solid var(--s2h);background:var(--s2h);
  color:#fff;padding:10px 15px;min-height:40px;
}
#app .primary:hover{
  background:var(--s2h-dark);border-color:var(--s2h-dark);color:#fff;
}
#app .secondary{
  border:1px solid #c9d3d8;background:#fff;color:#36464e;
  min-height:40px;padding:10px 15px;
}
#app .secondary:hover{border-color:var(--s2h);color:var(--s2h);background:#fff}
#app .mini-button{
  background:#fff;border:1px solid #cbd5d9;color:#40515a;
  border-radius:2px;padding:7px 10px;min-height:31px;font-size:12px;
}
#app .mini-button:hover{border-color:var(--s2h);color:var(--s2h);background:#fff}
#app button:disabled{opacity:.46;cursor:not-allowed}
#app .panel{
  border:1px solid var(--ui-line);
  border-radius:2px;background:#fff;box-shadow:none;
  padding:24px;min-width:0;
}
#app .panel-title{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;margin-bottom:20px;
}
#app .panel-title h2{
  font-size:17px;line-height:1.45;font-weight:700;
  letter-spacing:-.035em;color:#242f35;margin:0;
}
#app .panel-description{
  font-size:13px;line-height:1.7;color:#67777f;margin:0 0 16px;
}
#app .panel-note{
  font-size:12px;line-height:1.6;color:#687780;
}
#app .table-wrap{max-width:100%;overflow-x:auto;scrollbar-width:thin}
#app .table-wrap table{border-collapse:collapse}
#app th{
  padding:13px 12px;
  background:#f9fbfc;border-bottom:1px solid var(--ui-line);
  color:#53636b;font-size:12px;font-weight:650;
  line-height:1.5;
}
#app td{
  padding:13px 12px;border-bottom:1px solid #e9edef;
  color:#303e45;font-size:13px;line-height:1.6;
}
#app td strong{font-weight:700}
#app tbody tr:hover td{background:#fbfdfe}
#app tbody tr:last-child td{border-bottom:0}
#app .status{
  display:inline-flex;align-items:center;border-radius:2px;
  background:#f6f8f9;border:1px solid #e1e7ea;
  color:#475a64;font-weight:650;font-size:11px;line-height:1.2;
  padding:5px 8px;
}
#app .status.good{
  border-color:#b3deec;color:#007fa5;background:#f1fbfe;
}
#app .status.alert{
  border-color:#d2d9dd;color:#425561;background:#fff;
}
#app input:not([type="hidden"]),#app select,#app textarea{
  border-radius:2px;box-shadow:none;
  border-color:#cfd9dd;background:#fff;color:#27373f;
}
#app input:not([type="hidden"]):focus,#app select:focus,#app textarea:focus{
  border-color:var(--s2h);outline:2px solid rgba(0,137,179,.13);
  outline-offset:0;
}
#app input::placeholder,#app textarea::placeholder{color:#99a5ab}
#app .toolbar,#app .ledger-toolbar{gap:12px}
#app .toolbar input,#app .toolbar select,
#app #month-search,#app #product-search,#app #seller-search{
  font-size:13px;min-height:42px;border:1px solid #cfd9dd;
}
#app .empty{
  color:#76858d;font-size:13px;line-height:1.7;
  text-align:center;padding:42px 14px;
}
#app .panel-link{
  border:0;border-radius:0;background:transparent;
  color:var(--s2h);font-size:12px;font-weight:650;padding:5px 0;
}
#app .panel-link:hover{text-decoration:underline;text-underline-offset:3px}
#app .layout-two{gap:22px}
#app .reminder-item{border-bottom:1px solid var(--ui-line)}
#app .reminder-item p{font-size:12px;color:#627078;line-height:1.65}
#app .product-view-tabs{border-bottom:1px solid var(--ui-line);gap:0}
#app .product-view-tabs button{
  border:0;border-bottom:2px solid transparent;border-radius:0;
  padding:12px 16px;background:#fff;color:#627179;font-size:13px;
}
#app .product-view-tabs button.selected{
  border-bottom-color:var(--s2h);background:#fff;color:var(--s2h);
}
#app .schedule-switch,#app .cal-mode-switch{
  border:1px solid #ccd7dc;background:#fff;border-radius:2px;padding:0;
}
#app .schedule-switch button,#app .cal-mode-switch button{
  border-radius:0;box-shadow:none;
}
#app .schedule-switch button.selected,#app .cal-mode-switch button.selected{
  background:var(--s2h);color:#fff;box-shadow:none;
}
/* The dashboard uses dividing rules, not cards. Keep the calendar's custom geometry. */
#app .dashboard-v4 .panel{
  border:0;border-top:1px solid #344046;border-radius:0;
  padding:18px 0 16px;margin:0;box-shadow:none;
}
#app .dashboard-v4 .dashboard-daily .panel{margin:0}
#app .dashboard-v4 .ops-major-calendar,
#app .dashboard-v4 .ops-major-activity{
  border-top:1px solid #25323a;
}
#app .dashboard-v4 .metrics-dashboard .metric{
  border:0;border-right:1px solid var(--ui-line);border-radius:0;
  background:#fff;box-shadow:none;
}
#app .dashboard-v4 .metrics-dashboard .metric:last-child{border-right:0}
#app .dashboard-v4 .metrics-dashboard .metric:before{display:none}
#app .dashboard-v4 .ops-work-row{border-bottom:1px solid var(--ui-line)}
#app .dashboard-v4 .ops-work-row:first-child{border-top:1px solid var(--ui-line)}
/* Shared register/edit modal; specialized buy editor may override this. */
#modal:not(.buy-editor-modal) .modal-panel{
  border-radius:4px;border:1px solid #d9e2e5;background:#fff;
  box-shadow:0 18px 56px rgba(21,40,50,.17);
}
#modal:not(.buy-editor-modal) .modal-head{
  border-bottom:1px solid var(--ui-line);background:#fff;
}
#modal:not(.buy-editor-modal) .modal-head h2{
  color:#232f35;font-size:20px;letter-spacing:-.04em;
}
#modal:not(.buy-editor-modal) .modal-actions{
  border-top:1px solid var(--ui-line);background:#fff;
  box-shadow:none;
}
#modal:not(.buy-editor-modal) .modal-fields>label{font-size:12px;color:#485a64}
#modal:not(.buy-editor-modal) .modal-fields :is(input:not([type="hidden"]),select,textarea){
  border:1px solid #cfd9dd;background:#fff;border-radius:2px;
  color:#26363e;font-size:13px;box-shadow:none;
}
#modal:not(.buy-editor-modal) .modal-fields :is(input:not([type="hidden"]),select,textarea):focus{
  outline:2px solid rgba(0,137,179,.14);border-color:var(--s2h);
  box-shadow:none;
}
#modal:not(.buy-editor-modal) .modal-fields input[type="hidden"]{display:none!important}
#modal:not(.buy-editor-modal) .modal-actions button{border-radius:2px}
#seller-detail-modal .seller-detail-dialog{
  border-radius:4px;background:#fff;box-shadow:0 20px 60px rgba(21,40,50,.18);
}
#seller-detail-modal .seller-detail-dialog-head{
  border-bottom:1px solid var(--ui-line);
}
#seller-detail-modal .seller-detail-close{border-radius:2px}
#seller-detail-modal .seller-profile-item{border-radius:2px;background:#fff;border:1px solid #e0e7ea}
#seller-detail-modal .seller-event-item{border-radius:2px;background:#fff}
@media(max-width:1120px){
  #app .sidebar{width:208px;min-width:208px}
  #app .topbar{padding:0 24px}
  #app .content{padding:30px 26px 64px}
}
@media(max-width:720px){
  #app.app{display:block}
  #app .sidebar{
    position:relative;top:auto;height:auto;width:100%;min-width:0;
    padding:11px 15px 9px;border-right:0;border-bottom:1px solid var(--ui-line)
  }
  #app .sidebar .brand-home{
    margin:0 0 8px;padding:1px 2px 11px;
    width:100%;
  }
  #app .sidebar .brand-logo img{width:112px;height:38px}
  #app .sidebar .nav{
    flex-direction:row;overflow-x:auto;overflow-y:hidden;
    gap:7px;min-height:0;padding:2px 0 5px;
  }
  #app .sidebar .nav-group{flex-direction:row;gap:2px;flex:0 0 auto}
  #app .sidebar .nav-section{display:none}
  #app .sidebar .nav-link{
    min-height:37px;height:37px;width:auto;
    gap:7px;padding:0 10px;white-space:nowrap;
  }
  #app .sidebar .nav-link span{font-size:12px}
  #app .sidebar .sidebar-bottom{display:none}
  #app .topbar{
    position:relative;top:auto;
    height:auto;min-height:49px;padding:8px 16px;gap:8px;
  }
  #app .topbar-home{display:none}
  #app .topbar-divider{display:none}
  #app .top-right{gap:8px}
  #app #global-seller-search{height:32px;padding:0 9px}
  #app #global-seller-search span{display:none}
  #app #today{display:none}
  #app #whoami{max-width:76px;font-size:11px}
  #app .avatar{height:25px;width:25px;flex-basis:25px}
  #app #logout{font-size:11px}
  #app .content{padding:22px 16px 52px}
  #app .heading{margin-bottom:20px}
  #app .heading h1{font-size:22px}
  #app .heading .primary{font-size:12px;padding:8px 11px;min-height:38px}
  #app .panel{padding:17px}
  #app .panel-title h2{font-size:16px}
  #app .panel-title{gap:9px}
  #app .panel-description{font-size:12px}
  #app th,#app td{font-size:12px}
  #app .layout-two{grid-template-columns:1fr}
}
@media(max-width:390px){
  #app .topbar{padding:8px 12px}
  #app #whoami{max-width:54px}
  #app .heading .primary{padding:8px 9px}
}


/* SOURCE: phase2-workspace.css */
/* S2H CRM — STEP 2: Everyday operations / 2026-11-24
   White-first SaaS controls for schedule, seller, product, activity. */
#app .ops-schedule-page{
 width:100%;
 background:#fff;min-width:0;
}
#app .ops-schedule-heading{
 display:flex;align-items:center;justify-content:space-between;gap:18px;
 border-bottom:1px solid #dce3e7;padding:0 0 17px;margin:0 0 19px;
}
#app .ops-schedule-heading>div{min-width:0}
#app .ops-schedule-heading strong{
 display:block;font-size:17px;font-weight:700;color:#242f35;line-height:1.45;
}
#app .ops-schedule-heading p{margin:5px 0 0;font-size:12px;line-height:1.6;color:#718087}
#app .ops-schedule-heading>span{font-size:12px;color:#56656c;white-space:nowrap}
#app .ops-schedule-month{display:flex;align-items:center;margin-bottom:17px}
#app .ops-schedule-month .month-controls{margin:0}
#app .ops-schedule-toolbar{
 display:flex;flex-direction:column;gap:14px;margin-bottom:14px;
}
#app .ops-schedule-toolbar-main{
 display:flex;justify-content:space-between;align-items:center;gap:14px;
 flex-wrap:wrap;min-width:0;
}
#app .ops-schedule-toolbar-main #month-search{
 height:43px;min-width:210px;width:min(340px,100%);
 margin:0;flex:1 1 250px;
}
#app .ops-schedule-view{
 display:inline-flex;align-items:stretch;flex-wrap:nowrap;gap:0;
 padding:0;border:1px solid #cdd7dc;background:#fff;border-radius:2px;
}
#app .ops-schedule-view button{
 border:0;border-right:1px solid #e0e6e8;border-radius:0;background:#fff;
 padding:10px 16px;min-height:41px;color:#4f5d64;
 font-size:12px;font-weight:650;white-space:nowrap;
}
#app .ops-schedule-view button:last-child{border-right:0}
#app .ops-schedule-view button:hover{background:#f3f8fa;color:#0089b3}
#app .ops-schedule-view button.selected{background:#0089b3;color:#fff}
#app .ops-schedule-view button.selected:hover{background:#00749a;color:#fff}
#app .ops-schedule-filters{
 display:flex;align-items:center;gap:5px;flex-wrap:wrap;
 border-bottom:1px solid #e3e9eb;padding:0 0 12px;
}
#app .ops-schedule-filters button{
 display:inline-flex;align-items:center;gap:6px;
 border:1px solid transparent;border-radius:2px;
 background:transparent;color:#5a6970;
 padding:8px 11px;font-size:12px;font-weight:600;
}
#app .ops-schedule-filters button span{font-variant-numeric:tabular-nums;color:#87939a}
#app .ops-schedule-filters button:hover{background:#f4f9fb}
#app .ops-schedule-filters button.selected{
 color:#007c9e;background:#eef8fb;border:1px solid #c9e7f0;
}
#app .ops-schedule-filters button.selected span{color:#007c9e}
#app .ops-schedule-results{
 display:flex;justify-content:space-between;align-items:center;
 gap:12px;margin:0 0 12px;flex-wrap:wrap;
 color:#6b7880;font-size:12px;
}
#app .ops-schedule-results strong{font-weight:700;color:#253139}
#app .ops-schedule-results label,
#app .ops-product-sort,
#app .ops-activity-toolbar label{
 display:inline-flex;align-items:center;gap:8px;
 font-size:12px;color:#5a6970;font-weight:600;
}
#app .ops-schedule-results select,
#app .ops-product-sort select,
#app .ops-activity-toolbar select{
 width:auto;min-width:150px;min-height:36px;
 padding:7px 10px;background:#fff;border:1px solid #cdd7dc;
 border-radius:2px;color:#34454d;font-size:12px;
}
#app .ops-schedule-main{
 min-width:0;width:100%;
 border-top:1px solid #dce3e7;
}
#app .ops-schedule-main .table-wrap{overflow-x:auto}
#app .ops-schedule-main:not(.is-calendar) table{min-width:0;width:100%}
#app .ops-schedule-main:not(.is-calendar) th{padding:14px 11px;background:#f8fafb}
#app .ops-schedule-main:not(.is-calendar) td{padding:14px 11px}
#app .ops-schedule-main .ops-schedule-date{
 color:#5c6a71;white-space:normal;min-width:152px;
 font-size:12px;font-variant-numeric:tabular-nums;
}
#app .ops-schedule-main .seller-cell{
 font-weight:700;color:#293942;
}
#app .ops-schedule-main:not(.is-calendar) td:last-child{text-align:right;white-space:nowrap}
#app .ops-schedule-main.is-calendar{padding-top:12px}
#app .ops-schedule-main.is-calendar .cal-display-controls{margin:2px 0 12px}
#app .ops-schedule-note{
 font-size:12px;color:#63757e;margin:0 0 13px;line-height:1.5;
}
#app .ops-seller-filter{
 display:flex;gap:5px;align-items:center;flex-wrap:wrap;
 border-bottom:1px solid #e3e8eb;
 padding:0 0 12px;margin:0 0 11px;
}
#app .ops-seller-filter button{
 border:1px solid transparent;background:#fff;
 border-radius:2px;padding:8px 12px;
 font-size:12px;color:#56656d;
 font-weight:650;white-space:nowrap;
}
#app .ops-seller-filter button span{color:#87949b;font-variant-numeric:tabular-nums}
#app .ops-seller-filter button:hover{background:#f5f9fb;color:#007da2}
#app .ops-seller-filter button.selected{
 color:#007da2;background:#eff9fc;border-color:#c8e7f0;
}
#app .ops-seller-filter button.selected span{color:#007da2}
#app .seller-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
#app .seller-tools .seller-search{flex:1 1 230px;min-width:0}
#app .seller-tools #seller-search{width:100%;height:43px}
#app .seller-tools .seller-results{font-size:12px;color:#65767e;white-space:nowrap}
#app .seller-tools [data-export-sellers]{font-size:12px}
#app .ops-product-results{
 display:flex;align-items:center;justify-content:space-between;gap:13px;
 flex-wrap:wrap;padding:0 0 14px;margin-top:15px;
 color:#66767e;font-size:12px;border-bottom:1px solid #e2e8eb;
}
#app .product-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
#app .product-toolbar #product-search{width:min(400px,100%);flex:1 1 240px}
#app .product-filters{display:flex;gap:5px;flex-wrap:wrap}
#app .product-filters button{border-radius:2px;font-size:12px}
#app .ops-activity-toolbar{
 display:flex;align-items:center;gap:12px;flex-wrap:wrap;
 padding:0 0 16px;margin:0 0 10px;
 border-bottom:1px solid #e1e7e9;
}
#app .ops-activity-toolbar #activity-search{
 min-height:43px;height:43px;width:min(390px,100%);
 flex:1 1 245px;padding:10px 13px;border:1px solid #cdd7db;
 font-size:13px;
}
#app .ops-activity-toolbar>span{margin-left:auto;color:#65757d;font-size:12px;white-space:nowrap}
#app .ops-activity-memo{
 max-width:540px;min-width:200px;
 white-space:normal;word-break:keep-all;color:#41525a;
}
#app .ops-activity-pagination{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 flex-wrap:wrap;padding:14px 0 0;
 border-top:1px solid #e3e9eb;font-size:12px;color:#65747d;
}
#app .ops-activity-pagination>div{
 display:flex;align-items:center;gap:10px;margin-left:auto;
}
#app .ops-activity-pagination strong{color:#36484f;font-weight:650}
#app .ops-activity-pagination button{
 padding:7px 12px;min-height:34px;font-size:12px;
}
@media(max-width:960px){
 #app .ops-schedule-toolbar-main{align-items:stretch;flex-direction:column}
 #app .ops-schedule-toolbar-main #month-search{max-width:none;flex:1 1 auto;width:100%}
 #app .ops-schedule-view{align-self:flex-start}
}
@media(max-width:720px){
 #app .ops-schedule-heading{align-items:flex-start;flex-direction:column;gap:8px}
 #app .ops-schedule-heading strong{font-size:16px}
 #app .ops-schedule-filters{gap:3px}
 #app .ops-schedule-filters button{font-size:11px;padding:7px 8px}
 #app .ops-schedule-view{max-width:100%;width:100%}
 #app .ops-schedule-view button{flex:1;padding:9px 7px;font-size:11px}
 #app .ops-schedule-main:not(.is-calendar) table{min-width:575px}
 #app .ops-schedule-main.is-calendar .cal-scroll{overflow-x:auto}
 #app .ops-seller-filter button{font-size:11px;padding:7px 9px}
 #app .ops-activity-toolbar{align-items:stretch}
 #app .ops-activity-toolbar #activity-search{width:100%;flex:1 1 100%}
 #app .ops-activity-toolbar>span{margin:0}
 #app .ops-activity-memo{min-width:165px}
 #app .ops-activity-pagination{align-items:flex-start}
}


/* Dashboard daily task filters are understated inline controls. */
#app .dashboard-v4 .ops-task-filters{
 display:flex;align-items:center;gap:5px;flex-wrap:wrap;
 padding:0 0 11px;margin:0 0 4px;
}
#app .dashboard-v4 .ops-task-filters button{
 display:inline-flex;align-items:center;gap:6px;
 background:#fff;border:1px solid transparent;
 border-radius:2px;padding:7px 9px;
 color:#586870;font-weight:600;font-size:12px;
}
#app .dashboard-v4 .ops-task-filters button span{
 font-size:11px;color:#78868d;font-variant-numeric:tabular-nums;
}
#app .dashboard-v4 .ops-task-filters button.selected{
 color:#007da2;background:#eff9fc;border-color:#c8e7f0;
}
#app .dashboard-v4 .ops-task-filters button.selected span{color:#007da2}
#app .dashboard-v4 .ops-task-filters button:hover{background:#f5f9fb}
/* Detailed ledger retains horizontal scroll; short view stays compact. */
#app .ops-schedule-main.is-detail .table-wrap{overflow-x:auto;width:100%}
#app .ops-schedule-main.is-detail table{min-width:1390px}
#app .ops-schedule-main.is-detail th,
#app .ops-schedule-main.is-detail td{white-space:nowrap}
@media(max-width:720px){
 #app .dashboard-v4 .ops-task-filters button{font-size:11px;padding:6px 7px}
 #app .dashboard-v4 .ops-task-filters button span{font-size:10px}
}


/* SOURCE: phase3-preflight.css */
/* S2H CRM Phase 3: preparation checklist and opening-readiness status */
#app .ops-major-prep{
 border-top:1px solid #25343c;
 padding:25px 0 30px;
 margin:0 0 25px;
}
#app .ops-major-prep .ops-major-head{margin-bottom:17px}
#app .prep-dashboard-count{
 display:inline-flex;align-items:center;white-space:nowrap;
 border:1px solid #b6dae8;background:#f2fafc;
 padding:6px 11px;border-radius:2px;
 color:#007c9c;font-size:12px;font-weight:700;
}
#app .prep-dashboard-list{width:100%;border-top:1px solid #e1e8eb}
#app .prep-dashboard-row{
 display:grid;grid-template-columns:105px minmax(0,1fr) auto;
 align-items:center;gap:18px;min-height:79px;
 border-bottom:1px solid #e3e8ea;padding:12px 8px;
}
#app .prep-dashboard-row:hover{background:#fbfdfe}
#app .prep-dashboard-due{font-size:13px;font-weight:750;color:#007a9d}
#app .prep-dashboard-description{
 display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;
}
#app .prep-dashboard-description strong{color:#26353d;font-size:14px;font-weight:700}
#app .prep-dashboard-description span{color:#455760;font-size:13px;overflow-wrap:anywhere}
#app .prep-dashboard-description small{color:#74828a;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#app .prep-dashboard-open,
#app .ops-prep-button,
#modal.buy-editor-modal .buy-editor-prep-open{
 border:1px solid #afc5ce;border-radius:2px;background:#fff;
 color:#006f92;font-size:12px;font-weight:650;cursor:pointer;
 min-height:35px;padding:8px 12px;white-space:nowrap;
}
#app .prep-dashboard-open:hover,
#app .ops-prep-button:hover,
#modal.buy-editor-modal .buy-editor-prep-open:hover{
 background:#eff8fb;border-color:#0089b3;color:#006887;
}
#app .ops-prep-button{padding:6px 10px;min-height:32px}
#app .ops-prep-button:disabled{cursor:not-allowed;color:#89949a;border-color:#dce3e7;background:#f9fafb}
#app .prep-dashboard-more,
#app .prep-dashboard-empty{
 color:#617178;font-size:12px;line-height:1.6;margin:0;padding:18px 9px;
}
#modal.buy-editor-modal .buy-editor-prep-open{
 display:block;width:100%;min-height:43px;text-align:center;
 grid-column:1/-1;margin-bottom:4px;
}
#modal.prep-modal .modal-panel{
 width:min(760px,calc(100vw - 24px));
 max-height:min(850px,calc(100dvh - 24px));
 background:#fff;border:1px solid #d5e0e4;border-radius:3px;
 box-shadow:0 20px 70px rgba(20,43,54,.2);
}
#modal.prep-modal .modal-head{
 flex-shrink:0;min-height:67px;padding:19px 26px;
 border-bottom:1px solid #e1e8eb;background:#fff;
}
#modal.prep-modal .modal-head h2{
 font-size:21px;font-weight:750;letter-spacing:-.045em;color:#202e35;margin:0;
}
#modal.prep-modal #modal-fields{padding:21px 26px 28px;scrollbar-width:thin}
#modal.prep-modal .modal-fields{
 display:flex;flex-direction:column;align-items:stretch;gap:0;
 min-width:0;
}
#modal.prep-modal .modal-fields>*{min-width:0}
#modal.prep-modal .prep-modal-head{
 display:flex;flex-direction:column;gap:6px;
 padding:0 0 18px;border-bottom:1px solid #e2e9eb;
}
#modal.prep-modal .prep-modal-head strong{font-size:17px;font-weight:750;color:#243039}
#modal.prep-modal .prep-modal-head span{font-size:13px;color:#4d5e67;overflow-wrap:anywhere}
#modal.prep-modal .prep-modal-head small{font-size:12px;color:#708088}
#modal.prep-modal .prep-owner,
#modal.prep-modal .prep-link,
#modal.prep-modal .prep-memo{
 display:flex;flex-direction:column;gap:8px;
 font-size:13px;color:#40535c;font-weight:700;
 margin:17px 0 0;
}
#modal.prep-modal .prep-owner select,
#modal.prep-modal .prep-link input,
#modal.prep-modal .prep-memo textarea{
 display:block;width:100%;height:43px;
 border:1px solid #cfd9dd;border-radius:2px;
 background:#fff;color:#26373f;font-size:13px;font-weight:500;
 padding:10px 12px;margin:0;box-shadow:none;
}
#modal.prep-modal .prep-memo textarea{height:auto;min-height:82px;resize:vertical;line-height:1.6}
#modal.prep-modal .prep-step-heading{
 display:flex;align-items:baseline;gap:10px;
 margin:25px 0 12px;flex-wrap:wrap;
}
#modal.prep-modal .prep-step-heading strong{font-size:16px;font-weight:750;color:#263139}
#modal.prep-modal .prep-step-heading span{font-size:12px;color:#78878e}
#modal.prep-modal .prep-check-list{
 border-top:1px solid #dce5e8;border-bottom:1px solid #dce5e8;
}
#modal.prep-modal .prep-check-row{
 display:flex;align-items:flex-start;gap:13px;
 margin:0;padding:15px 7px;
 border-bottom:1px solid #e9edef;cursor:pointer;
}
#modal.prep-modal .prep-check-row:last-child{border-bottom:0}
#modal.prep-modal .prep-check-row:hover{background:#fcfefe}
#modal.prep-modal .prep-check-row input[type=checkbox]{
 appearance:auto;-webkit-appearance:checkbox;
 width:19px;height:19px;min-width:19px;flex:0 0 19px;
 margin:2px 0 0;padding:0;accent-color:#0089b3;
 border-radius:2px;box-shadow:none;
}
#modal.prep-modal .prep-check-row.is-disabled{opacity:.6;cursor:not-allowed}
#modal.prep-modal .prep-check-row.is-disabled input{cursor:not-allowed}
#modal.prep-modal .prep-check-content{
 display:flex;flex-direction:column;gap:4px;min-width:0;
}
#modal.prep-modal .prep-check-content strong{
 font-size:13px;font-weight:700;color:#28363d;line-height:1.5;
}
#modal.prep-modal .prep-check-content small{
 color:#52636b;font-weight:400;font-size:12px;line-height:1.55;
}
#modal.prep-modal .prep-check-content em{
 font-size:11px;font-style:normal;color:#7c8b93;line-height:1.5;
}
#modal.prep-modal .prep-check-row.is-done .prep-check-content em{color:#007a9d}
#modal.prep-modal .prep-history{
 margin:28px 0 0;padding-top:17px;border-top:1px solid #e0e7ea;
}
#modal.prep-modal .prep-history>strong{
 display:block;color:#2a3940;font-size:14px;font-weight:750;margin-bottom:12px;
}
#modal.prep-modal .prep-history-row{
 display:grid;grid-template-columns:110px minmax(0,1fr) 130px;gap:10px;
 border-bottom:1px solid #e9edef;padding:11px 0;
 font-size:12px;color:#53656d;line-height:1.55;
}
#modal.prep-modal .prep-history-row strong{font-size:12px;font-weight:700;color:#26373f}
#modal.prep-modal .prep-history-row span{overflow-wrap:anywhere}
#modal.prep-modal .prep-history-row small{color:#71818a;font-size:11px;text-align:right}
#modal.prep-modal .prep-history-empty{color:#76868e;font-size:12px;margin:12px 0}
#modal.prep-modal .modal-actions{
 border-top:1px solid #dfe7e9;background:#fff;
 box-shadow:none;padding:15px 26px;
}
#modal.prep-modal .modal-actions button{border-radius:2px;min-height:42px;min-width:88px;font-size:13px}
#modal.prep-modal .modal-actions .primary{color:#fff;background:#0089b3;border:1px solid #0089b3}
#modal.prep-modal .modal-actions .secondary{color:#45545d;background:#fff;border:1px solid #c8d2d7}
#modal.prep-modal :is(input,select,textarea):focus{border-color:#0089b3;outline:2px solid rgba(0,137,179,.13);outline-offset:0}
@media(max-width:720px){
 #app .prep-dashboard-row{grid-template-columns:68px minmax(0,1fr) auto;gap:10px;padding:11px 3px}
 #app .prep-dashboard-description strong{font-size:13px}
 #app .prep-dashboard-description span{font-size:12px}
 #app .prep-dashboard-description small{font-size:11px}
 #app .prep-dashboard-due{font-size:12px}
 #app .prep-dashboard-open{font-size:11px;padding:7px;min-height:33px}
 #app .ops-major-prep{padding:22px 0;margin:0 0 20px}
 #modal.prep-modal .modal-panel{max-height:calc(100dvh - 12px);width:100%;border-radius:2px}
 #modal.prep-modal #modal-fields{padding:16px 17px 22px}
 #modal.prep-modal .modal-head{padding:15px 17px;min-height:58px}
 #modal.prep-modal .prep-history-row{grid-template-columns:1fr;gap:3px}
 #modal.prep-modal .prep-history-row small{text-align:left}
 #modal.prep-modal .modal-actions{padding:12px 17px}
}


/* SOURCE: dashboard-calendar-first.css */
/* S2H Dashboard 2026-11-24: calendar-first two-column operations workspace */
#app .dashboard-v4 .dashboard-overview{
 margin:0 0 27px;padding:0;min-width:0;
}
#app .dashboard-v4 .dashboard-overview .metrics-dashboard{
 margin:0;border-top:1px solid #2e3c43;border-bottom:1px solid #dde5e9;
}
#app .dashboard-v4 .dashboard-overview .metrics-dashboard .metric{
 padding:14px 19px 17px;min-height:110px;
}
#app .dashboard-v4 .dashboard-overview .metrics-dashboard .metric:first-child{padding-left:0}
#app .dashboard-v4 .dashboard-overview .metrics-dashboard .metric:last-child{padding-right:0}
#app .dashboard-v4 .dashboard-overview .metrics-dashboard .metric .number{
 margin:7px 0 3px;font-size:29px;line-height:1.25;
}
#app .dashboard-v4 .dashboard-primary-grid{
 display:grid;grid-template-columns:minmax(0,1fr) clamp(330px,25%,440px);
 gap:28px;align-items:start;margin:0 0 35px;min-width:0;
}
#app .dashboard-v4 .dashboard-primary-grid>*{min-width:0}
#app .dashboard-v4 .dashboard-primary-calendar .ops-major-calendar{
 border-top:1px solid #293940;padding:20px 0 0;margin:0;min-width:0;
}
#app .dashboard-v4 .dashboard-primary-calendar .ops-major-head{
 margin:0 0 18px;gap:12px;
}
#app .dashboard-v4 .dashboard-primary-calendar .ops-major-head h2{
 font-size:19px;letter-spacing:-.035em;
}
#app .dashboard-v4 .dashboard-primary-calendar .ops-major-head p{
 font-size:12px;line-height:1.55;
}
#app .dashboard-v4 .dashboard-primary-calendar .ops-calendar-controls{
 margin:0 0 10px;gap:8px;
}
#app .dashboard-v4 .dashboard-primary-calendar .ops-calendar-legend{
 gap:9px 13px;margin:0 0 10px;min-height:25px;
 font-size:11px;line-height:1.5;
}
#app .dashboard-v4 .dashboard-primary-calendar .ops-calendar-legend>span:first-child{
 margin-right:auto;white-space:nowrap;
}
#app .dashboard-v4 .dashboard-primary-calendar .ops-calendar-hint{
 display:none;
}
/* Original full-calendar pages keep their own fixed-width geometry.
   Only dashboard compact bars are allowed to fit the available column. */
#app .dashboard-v4 .dashboard-primary-calendar .cal-scroll{
 width:100%;min-width:0;overflow-x:auto;
}
#app .dashboard-v4 .dashboard-primary-calendar .cal-weekdays,
#app .dashboard-v4 .dashboard-primary-calendar .cal-weeks{
 width:100%;min-width:0;
}
#app .dashboard-v4 .dashboard-primary-calendar .cal-weekdays .cal-week{
 font-size:11px;padding:10px 3px;
}
#app .dashboard-v4 .dashboard-primary-calendar .cal-week-row.cal-week-compact{
 grid-template-columns:repeat(7,minmax(0,1fr));
 grid-template-rows:38px repeat(var(--cal-visible-rows),34px) 27px;
 min-height:var(--cal-row-height);height:var(--cal-row-height);
}
#app .dashboard-v4 .dashboard-primary-calendar .cal-week-row.cal-week-compact>.cal-bg-day.cal-day-add{
 padding:0 6px;
}
#app .dashboard-v4 .dashboard-primary-calendar .cal-week-row.cal-week-compact>.cal-bg-day.cal-day-add>.cal-date-head{
 height:38px;max-height:38px;flex:0 0 38px;
}
#app .dashboard-v4 .dashboard-primary-calendar .cal-date-head b{
 font-size:12px;
}
#app .dashboard-v4 .dashboard-primary-calendar .cal-date-head small{
 font-size:10px;
}
#app .dashboard-v4 .dashboard-primary-calendar .cal-week-row.cal-week-compact>.cal-range{
 height:26px;min-height:26px;
 padding:0 6px;margin:0 2px;border-radius:2px;
 font-size:11px;font-weight:600;line-height:1.25;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#app .dashboard-v4 .dashboard-primary-calendar .cal-week-row.cal-week-compact>.cal-expand{
 margin-left:6px;padding:3px 5px;min-height:22px;
 font-size:11px;line-height:1.2;
}
#app .dashboard-v4 .dashboard-primary-aside{
 display:flex;flex-direction:column;gap:23px;
 min-width:0;padding:0;margin:0;
}
#app .dashboard-v4 .dashboard-primary-aside>.panel{
 border-top:1px solid #293940!important;
 padding:20px 0 0!important;margin:0!important;
 border-left:0;border-right:0;border-bottom:0;
 background:#fff;box-shadow:none;border-radius:0;
}
#app .dashboard-v4 .dashboard-primary-aside .panel-title{
 margin:0 0 11px;gap:10px;
}
#app .dashboard-v4 .dashboard-primary-aside .panel-title h2{
 font-size:17px;line-height:1.4;letter-spacing:-.035em;
}
#app .dashboard-v4 .dashboard-primary-aside .panel-link{
 font-size:11px;white-space:nowrap;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-panel-summary{
 font-size:11px;line-height:1.5;color:#66767e;margin:0 0 10px;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-task-filters{
 gap:2px 4px;margin:0 0 6px;padding:0 0 9px;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-task-filters button{
 padding:6px 7px;font-size:11px;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-task-filters button span{
 font-size:10px;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-work-row{
 display:grid;grid-template-columns:59px minmax(0,1fr) 67px;
 align-items:center;gap:8px;
 padding:10px 0;min-height:68px;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-work-label{
 font-size:11px;line-height:1.45;word-break:keep-all;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-work-description{
 gap:2px;min-width:0;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-work-description strong{
 font-size:13px;line-height:1.45;font-weight:750;
 overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-work-description span{
 font-size:11px;line-height:1.4;max-width:100%;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-work-description small{
 font-size:10px;line-height:1.4;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-work-action{
 justify-self:end;min-width:0;width:67px;min-height:30px;
 padding:5px 4px;font-size:10px;font-weight:650;white-space:nowrap;
 border-radius:2px;line-height:1.2;
}
#app .dashboard-v4 .dashboard-primary-aside .ops-more-note{
 font-size:11px;color:#78868e;margin:10px 0 0;
}
#app .dashboard-v4 .dashboard-primary-aside .dash-empty{
 text-align:left;font-size:12px;padding:22px 0;
}
#app .dashboard-v4 .ops-major-prep{
 margin-top:3px;
}
@media(max-width:1400px){
 #app .dashboard-v4 .dashboard-primary-grid{
  grid-template-columns:minmax(0,1fr) clamp(300px,27%,400px);
  gap:23px;
 }
}
@media(max-width:1260px){
 #app .dashboard-v4 .dashboard-primary-grid{
  grid-template-columns:minmax(0,1fr);
  gap:24px;
 }
 #app .dashboard-v4 .dashboard-primary-calendar .cal-weekdays,
 #app .dashboard-v4 .dashboard-primary-calendar .cal-weeks{
  min-width:680px;
 }
 #app .dashboard-v4 .dashboard-primary-aside{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
 }
}
@media(max-width:760px){
 #app .dashboard-v4 .dashboard-overview .metrics-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app .dashboard-v4 .dashboard-overview .metrics-dashboard .metric{
  min-height:100px;padding:13px 12px;
 }
 #app .dashboard-v4 .dashboard-overview .metrics-dashboard .metric:first-child{padding-left:12px}
 #app .dashboard-v4 .dashboard-overview .metrics-dashboard .metric:last-child{padding-right:12px}
 #app .dashboard-v4 .dashboard-overview .metrics-dashboard .metric .number{font-size:26px}
 #app .dashboard-v4 .dashboard-primary-aside{display:flex;flex-direction:column;gap:22px}
 #app .dashboard-v4 .dashboard-primary-grid{gap:22px;margin-bottom:28px}
 #app .dashboard-v4 .dashboard-primary-calendar .ops-major-head{gap:8px;align-items:flex-start}
 #app .dashboard-v4 .dashboard-primary-calendar .ops-major-head h2{font-size:18px}
 #app .dashboard-v4 .dashboard-primary-calendar .ops-major-head .panel-link{font-size:11px}
 #app .dashboard-v4 .dashboard-primary-calendar .cal-weekdays,
 #app .dashboard-v4 .dashboard-primary-calendar .cal-weeks{min-width:680px}
 #app .dashboard-v4 .dashboard-primary-aside .ops-work-row{
  grid-template-columns:67px minmax(0,1fr) 70px;
 }
 #app .dashboard-v4 .dashboard-primary-aside .ops-work-action{width:70px}
}


/* SOURCE: dashboard-flow.css */
/* S2H CRM dashboard — Flow-inspired usability, original S2H identity.
   Dashboard only. Other management pages keep their layouts. */
#app .main:has(.dashboard-v5){background:#f6f8fa}
#app .content:has(.dashboard-v5){background:transparent}
#app .dashboard-v5{
 --flow-ink:#263640;--flow-muted:#687984;--flow-line:#e4eaf0;
 --flow-blue:#0089b3;--flow-soft:#eaf7fc;
 color:var(--flow-ink);
}
#app .dashboard-v5 .dashboard-intro{
 border:0;margin:0 0 19px;padding:0 2px;
}
#app .dashboard-v5 .dashboard-intro>div:first-child strong{
 font-size:16px;letter-spacing:-.03em;color:#293a43;
}
#app .dashboard-v5 .dashboard-intro>div:first-child span{
 font-size:12px;color:var(--flow-muted);
}
/* Reset inherited bottom-border link styles: quick actions are complete controls. */
#app .dashboard-v5 .dashboard-intro-actions{
 display:flex;flex-direction:row;align-items:center;justify-content:flex-end;
 flex-wrap:wrap;gap:8px;min-width:0;
}
#app .dashboard-v5 .dashboard-intro-actions button{
 appearance:none;-webkit-appearance:none;
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto;width:auto;min-width:0;height:36px;min-height:36px;
 margin:0;padding:0 14px;
 border:1px solid #d7e2e7;border-radius:7px;
 background:#fff;box-shadow:none;color:#405562;
 font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 font-size:12px;font-weight:650;line-height:1.25;letter-spacing:-.025em;
 text-decoration:none;white-space:nowrap;
 transition:background .15s,border-color .15s,color .15s;
}
#app .dashboard-v5 .dashboard-intro-actions button:hover{
 background:#f0f9fc;color:#007fa5;border:1px solid #a5d5e4;
}
#app .dashboard-v5 .dashboard-intro-actions button:focus-visible{
 outline:2px solid #0089b3;outline-offset:2px;
}
#app .dashboard-v5 .dashboard-overview{margin-bottom:18px}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 background:#fff;border:1px solid #e4e9ee;
 border-radius:13px;overflow:hidden;
 box-shadow:0 3px 14px rgba(24,50,65,.03);
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric{
 min-height:99px;padding:20px 23px!important;
 border:0;border-right:1px solid #edf1f4;border-radius:0;
 background:#fff;box-shadow:none;
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric:last-child{border-right:0}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .label{
 color:#6a7a84;font-size:12px;font-weight:650;
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .number{
 font-size:30px;line-height:1.2;letter-spacing:-.05em;
 color:#23333c;font-weight:760;margin:9px 0 5px;
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .sub{
 font-size:11px;color:#86939b;line-height:1.4;
}
#app .dashboard-v5 .dashboard-primary-grid{
 grid-template-columns:minmax(0,1fr) clamp(330px,25%,420px);
 gap:18px;align-items:start;margin:0 0 24px;
}
#app .dashboard-v5 .dashboard-primary-calendar,
#app .dashboard-v5 .flow-side-main,
#app .dashboard-v5 .dashboard-primary-aside>.panel,
#app .dashboard-v5 .ops-major-prep,
#app .dashboard-v5 .ops-major-activity{
 min-width:0;background:#fff;
 border:1px solid #e3e9ee!important;border-radius:13px;
 box-shadow:0 3px 15px rgba(22,52,66,.035);
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-calendar{
 margin:0!important;padding:22px 22px 23px!important;
 border:0!important;border-radius:13px;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-head{
 display:flex;align-items:flex-start;gap:15px;
 margin-bottom:18px;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-head h2{
 font-size:19px;font-weight:760;color:#263640;letter-spacing:-.045em;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-head p{
 font-size:12px;color:#7a8b94;margin-top:5px;line-height:1.5;
}
#app .dashboard-v5 .panel-link{
 border:0;border-radius:0;
 font-size:12px;color:#0783a8;font-weight:700;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-controls{
 display:flex;align-items:center;justify-content:space-between;
 gap:10px;flex-wrap:wrap;margin:0 0 12px;
}
#app .dashboard-v5 .dashboard-primary-calendar .month-controls,
#app .dashboard-v5 .dashboard-primary-calendar .cal-display-controls{margin:0}
#app .dashboard-v5 .dashboard-primary-calendar .month-buttons{
 display:flex;gap:5px;align-items:center;
}
#app .dashboard-v5 .dashboard-primary-calendar .month-buttons button,
#app .dashboard-v5 .dashboard-primary-calendar .month-buttons input,
#app .dashboard-v5 .dashboard-primary-calendar .cal-mode-switch button,
#app .dashboard-v5 .dashboard-primary-calendar .cal-week-navigator button{
 border-radius:7px;background:#fff;border:1px solid #dfe6eb;
 color:#4d6470;font-size:12px;font-weight:650;
 min-height:34px;box-shadow:none;
}
#app .dashboard-v5 .dashboard-primary-calendar .month-buttons button:hover,
#app .dashboard-v5 .dashboard-primary-calendar .cal-week-navigator button:hover{
 border-color:#92cfe0;background:#f0f9fc;color:#00799c;
}
#app .dashboard-v5 .dashboard-primary-calendar .cal-mode-switch{
 display:flex;gap:3px;background:#f2f5f8;
 border:0;border-radius:8px;padding:3px;
}
#app .dashboard-v5 .dashboard-primary-calendar .cal-mode-switch button{
 border:0;border-radius:6px;min-height:30px;padding:5px 12px;
 color:#677984;background:transparent;
}
#app .dashboard-v5 .dashboard-primary-calendar .cal-mode-switch button.selected{
 background:#fff;color:#007fa5;
 box-shadow:0 1px 4px rgba(23,57,74,.1);
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-legend{
 gap:8px 13px;margin:0 0 13px;min-height:25px;
 padding:0 2px;font-size:11px;color:#82909a;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-legend>span:first-child{
 font-weight:700;color:#4e626e;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-legend-item{
 color:#70828c;font-size:11px;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-legend-item i{
 width:9px;height:9px;border-radius:3px;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-hint{display:none}
/* A concise 7-column month calendar replaces the dense range bars. */
#app .dashboard-v5 .flow-month-calendar{
 border:1px solid #e3e9ef;border-radius:11px;
 overflow:hidden;background:#e9eef2;
}
#app .dashboard-v5 .flow-month-weekdays,
#app .dashboard-v5 .flow-month-days{
 display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
 gap:1px;background:#e9eef2;
}
#app .dashboard-v5 .flow-month-weekday{
 display:flex;align-items:center;justify-content:center;
 background:#f7f9fb;color:#687c87;
 min-height:36px;font-size:11px;font-weight:650;
}
#app .dashboard-v5 .flow-month-weekday:first-child{color:#bc6e73}
#app .dashboard-v5 .flow-month-cell{
 display:flex;flex-direction:column;gap:6px;
 align-items:stretch;justify-content:flex-start;text-align:left;
 width:100%;min-width:0;height:91px;padding:9px 8px;
 border:0!important;border-radius:0;background:#fff;
 color:#293b45;cursor:pointer;box-shadow:none;
 transition:background .14s ease;
}
#app .dashboard-v5 .flow-month-cell:hover{background:#f3f9fc}
#app .dashboard-v5 .flow-month-cell.is-outside{background:#fafbfc}
#app .dashboard-v5 .flow-month-cell.is-outside .flow-month-date strong{
 color:#aab6bd;font-weight:500;
}
#app .dashboard-v5 .flow-month-cell.is-selected{
 background:#f0f9fd;
 box-shadow:inset 0 0 0 2px #0089b3;
}
#app .dashboard-v5 .flow-month-cell.is-today:not(.is-selected){background:#f8fbfc}
#app .dashboard-v5 .flow-month-date{
 display:flex;align-items:center;justify-content:space-between;
 gap:3px;min-height:20px;
}
#app .dashboard-v5 .flow-month-date strong{
 font-size:12px;font-weight:740;line-height:20px;
 font-variant-numeric:tabular-nums;
}
#app .dashboard-v5 .flow-month-cell.is-today .flow-month-date strong{
 display:grid;place-items:center;background:#0089b3;color:#fff;
 width:21px;height:21px;border-radius:6px;
}
#app .dashboard-v5 .flow-month-date small{
 font-size:9px;font-weight:650;color:#0086ad;
 white-space:nowrap;
}
#app .dashboard-v5 .flow-month-event{
 display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 width:100%;min-width:0;padding:5px 6px;border-radius:5px;
 background:#ecf7fb;color:#007a9f;font-size:10px;font-weight:700;
 line-height:1.2;
}
#app .dashboard-v5 .flow-month-event.is-active{
 background:#0089b3;color:#fff;
}
#app .dashboard-v5 .flow-month-event.is-completed{
 background:#f0f3f5;color:#768690;
}
#app .dashboard-v5 .flow-month-more{
 display:block;margin:0 0 0 2px;
 font-size:10px;font-weight:600;color:#84939b;line-height:1.1;
}
/* Week mode keeps the interval bars, in a gently rounded scroll panel. */
#app .dashboard-v5 .dashboard-primary-calendar .cal-scroll{
 overflow-x:auto;border:1px solid #e3e9ee;border-radius:10px;
}
#app .dashboard-v5 .dashboard-primary-calendar .cal-weekdays,
#app .dashboard-v5 .dashboard-primary-calendar .cal-weeks{min-width:700px}
#app .dashboard-v5 .dashboard-primary-calendar .cal-range{
 border-radius:5px;background:#dfeff7;color:#226b8c;
 border:1px solid #abd6e5;
 box-shadow:none;font-size:11px;
}
#app .dashboard-v5 .dashboard-primary-calendar .cal-range-active{
 background:#0089b3;color:#fff;border-color:#0089b3;
}
#app .dashboard-v5 .dashboard-primary-calendar .cal-range-completed{
 background:#f0f3f5;color:#7a8891;border-color:#d6e1e6;
}
#app .dashboard-v5 .dashboard-primary-calendar .cal-bg-day.cal-today{
 background:#f2fafe;
}
/* The right column is one focus panel plus a short list of upcoming opens. */
#app .dashboard-v5 .dashboard-primary-aside{
 display:flex;flex-direction:column;gap:16px;
 margin:0;padding:0;min-width:0;
}
#app .dashboard-v5 .flow-side-main{
 overflow:hidden;padding:0 18px 17px;
}
#app .dashboard-v5 .flow-side-tabs{
 display:flex;align-items:center;gap:16px;
 border-bottom:1px solid #e8eef1;
 padding:0;margin:0 0 14px;
}
#app .dashboard-v5 .flow-side-tabs button{
 display:flex;align-items:center;gap:6px;
 min-width:0;min-height:48px;
 background:#fff;border:0;border-bottom:2px solid transparent;
 border-radius:0;color:#71818a;
 font-size:13px;font-weight:650;padding:0 2px;white-space:nowrap;
}
#app .dashboard-v5 .flow-side-tabs button span{font-size:11px;color:#91a0a8}
#app .dashboard-v5 .flow-side-tabs button.selected{
 color:#007fa4;border-bottom-color:#0089b3;font-weight:760;
}
#app .dashboard-v5 .flow-side-tabs button.selected span{color:#0089b3}
#app .dashboard-v5 .flow-side-main .panel{
 padding:0!important;margin:0!important;
 background:#fff;border:0!important;border-radius:0;
 box-shadow:none;
}
#app .dashboard-v5 .flow-side-main .panel-title{
 margin:0 0 8px;
}
#app .dashboard-v5 .flow-side-main .panel-title h2{
 font-size:15px;font-weight:750;
}
#app .dashboard-v5 .flow-side-main .ops-panel-summary{
 font-size:11px;color:#83919a;margin:0 0 11px;
}
#app .dashboard-v5 .flow-side-main .ops-task-filters{
 border-bottom:1px solid #edf1f3;
 padding:0 0 10px;margin:0 0 1px;gap:5px;
}
#app .dashboard-v5 .flow-side-main .ops-task-filters button{
 padding:6px 9px;border:1px solid transparent;
 border-radius:6px;color:#6a7c86;background:#fff;
}
#app .dashboard-v5 .flow-side-main .ops-task-filters button.selected{
 background:#ebf7fc;border-color:#cce8f1;color:#007fa5;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-row{
 grid-template-columns:53px minmax(0,1fr) 64px;
 min-height:58px;gap:7px;padding:9px 0;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-row:first-child{border-top:0}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-label{
 font-size:10px;color:#0080a7;font-weight:700;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description strong{font-size:12px}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description span{font-size:11px}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-action{
 width:64px;min-height:29px;border-radius:6px;
 border-color:#dae5ea;font-size:10px;
}
#app .dashboard-v5 .dashboard-primary-aside>.panel{
 padding:17px 18px!important;margin:0!important;
 border:1px solid #e3e9ee!important;border-radius:13px;
}
#app .dashboard-v5 .dashboard-primary-aside>.panel .panel-title{
 margin:0 0 9px;
}
#app .dashboard-v5 .dashboard-primary-aside>.panel .panel-title h2{font-size:15px}
#app .dashboard-v5 .dashboard-primary-aside>.panel .ops-work-row{
 min-height:55px;padding:8px 0;
}
#app .dashboard-v5 .dashboard-primary-aside>.panel .ops-work-row:nth-child(n+4){display:none}
#app .dashboard-v5 .flow-date-panel{min-width:0}
#app .dashboard-v5 .flow-date-header{
 display:flex;align-items:center;justify-content:space-between;
 gap:9px;padding:0 0 14px;
}
#app .dashboard-v5 .flow-date-header>div{
 display:flex;flex-direction:column;gap:4px;
}
#app .dashboard-v5 .flow-date-header strong{font-size:15px;color:#273840}
#app .dashboard-v5 .flow-date-header span{font-size:11px;color:#81929a}
#app .dashboard-v5 .flow-date-add{
 background:#0089b3;color:#fff;border:1px solid #0089b3;
 border-radius:7px;padding:7px 10px;
 font-size:11px;font-weight:700;white-space:nowrap;
}
#app .dashboard-v5 .flow-date-add:hover{background:#00749a}
#app .dashboard-v5 .flow-date-list{border-top:1px solid #e8eef1}
#app .dashboard-v5 .flow-date-event{
 display:grid;grid-template-columns:minmax(0,1fr) 51px;
 gap:10px;align-items:center;padding:11px 0;
 border-bottom:1px solid #e8eef1;
}
#app .dashboard-v5 .flow-date-event-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
#app .dashboard-v5 .flow-date-event-copy strong{
 font-size:12px;font-weight:750;color:#273840;
}
#app .dashboard-v5 .flow-date-event-copy span{
 font-size:11px;color:#64757e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#app .dashboard-v5 .flow-date-event-copy small{font-size:10px;color:#98a3aa}
#app .dashboard-v5 .flow-date-event-action{
 border:1px solid #d9e4e9;border-radius:6px;
 background:#fff;color:#4e6e7b;padding:7px 9px;
 font-size:10px;font-weight:700;
}
#app .dashboard-v5 .flow-date-empty,
#app .dashboard-v5 .flow-date-overflow{
 margin:0;padding:19px 0;font-size:12px;line-height:1.6;color:#83919a;
}
/* Secondary sections retain functionality without competing with the main dashboard. */
#app .dashboard-v5 .ops-major-prep,
#app .dashboard-v5 .ops-major-activity{
 margin:0 0 16px;padding:22px;
}
#app .dashboard-v5 .ops-major-prep .ops-major-head h2,
#app .dashboard-v5 .ops-major-activity .ops-major-head h2{font-size:17px}
#app .dashboard-v5 .ops-major-prep .prep-dashboard-row{min-height:65px}
@media(max-width:1250px){
 #app .dashboard-v5 .dashboard-primary-grid{
  grid-template-columns:minmax(0,1fr) minmax(285px,34%);
  gap:14px;
 }
 #app .dashboard-v5 .dashboard-primary-calendar .ops-major-calendar{padding:18px!important}
 #app .dashboard-v5 .flow-month-cell{height:82px;padding:7px 5px;gap:5px}
 #app .dashboard-v5 .flow-month-date small{font-size:9px}
}
@media(max-width:1080px){
 #app .dashboard-v5 .dashboard-primary-grid{grid-template-columns:minmax(0,1fr)}
 #app .dashboard-v5 .dashboard-primary-aside{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
 }
 #app .dashboard-v5 .flow-month-cell{height:88px}
}
@media(max-width:720px){
 #app .dashboard-v5 .dashboard-intro{gap:8px}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric{
  min-height:83px;padding:13px 14px!important;
 }
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric:nth-child(2){border-right:0}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric:nth-child(-n+2){
  border-bottom:1px solid #edf1f4;
 }
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .number{font-size:26px}
 #app .dashboard-v5 .dashboard-primary-aside{display:flex;flex-direction:column;gap:14px}
 #app .dashboard-v5 .dashboard-primary-calendar .ops-major-calendar{padding:16px 12px!important}
 #app .dashboard-v5 .dashboard-primary-calendar .ops-major-head{align-items:flex-start}
 #app .dashboard-v5 .flow-month-weekday{min-height:30px;font-size:10px}
 #app .dashboard-v5 .flow-month-cell{height:74px;padding:6px 4px;gap:4px}
 #app .dashboard-v5 .flow-month-date strong{font-size:11px}
 #app .dashboard-v5 .flow-month-date small{display:none}
 #app .dashboard-v5 .flow-month-event{font-size:9px;padding:4px 3px}
 #app .dashboard-v5 .flow-month-more{font-size:9px}
 #app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-legend{gap:7px}
 #app .dashboard-v5 .ops-major-prep,#app .dashboard-v5 .ops-major-activity{padding:16px}
}
@media(max-width:380px){
 #app .dashboard-v5 .flow-month-cell{height:69px;padding:5px 3px}
 #app .dashboard-v5 .flow-month-event{font-size:8px}
 #app .dashboard-v5 .dashboard-primary-calendar .ops-major-head h2{font-size:17px}
}
@media(max-width:720px){
 #app .dashboard-v5 .dashboard-intro-actions{justify-content:flex-start;gap:7px}
 #app .dashboard-v5 .dashboard-intro-actions button{
  min-height:34px;height:34px;padding:0 12px;font-size:12px;
 }
}


/* SOURCE: work-alerts.css */
/* S2H CRM: restrained, actionable operations alert in the header.
   Not a push notification. Badge shows tasks requiring review. */
#app .work-alert-wrap{
 position:relative;
 display:flex;align-items:center;flex:0 0 auto;
}
#app #work-alert-button{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-height:34px;padding:6px 10px;
 border:1px solid #e1e8ed;border-radius:8px;
 background:#fff;color:#556b78;box-shadow:none;
 cursor:pointer;font-size:12px;font-weight:650;
 line-height:1.25;white-space:nowrap;
 transition:background .18s,border-color .18s,color .18s;
}
#app #work-alert-button:hover,#app #work-alert-button[aria-expanded="true"]{
 border-color:#b7dce9;background:#eff9fc;color:#007da4;
}
#app #work-alert-button svg{display:block;flex:0 0 17px}
#app #work-alert-button .work-alert-count{
 display:flex;align-items:center;justify-content:center;
 min-width:19px;height:19px;padding:0 5px;border-radius:10px;
 background:#0089b3;color:#fff;
 font-size:10px;font-weight:760;
 font-variant-numeric:tabular-nums;
}
#app #work-alert-button.has-alerts{border-color:#c8e5ee;color:#00799d}
#app #work-alert-button.is-first-alert .work-alert-count{
 animation:s2h-work-alert-arrival 1.1s ease-out 1 both;
}
@keyframes s2h-work-alert-arrival{
 0%{box-shadow:0 0 0 0 rgba(0,137,179,.24);transform:scale(.9)}
 36%{box-shadow:0 0 0 6px rgba(0,137,179,.13);transform:scale(1.09)}
 100%{box-shadow:0 0 0 0 rgba(0,137,179,0);transform:scale(1)}
}
#app .work-alert-popover{
 position:absolute;top:calc(100% + 12px);right:0;z-index:90;
 width:min(370px,calc(100vw - 28px));
 background:#fff;border:1px solid #dae4e9;
 border-radius:12px;box-shadow:0 12px 35px rgba(27,56,72,.15);
 overflow:hidden;
}
#app .work-alert-popover-head{
 display:flex;align-items:center;justify-content:space-between;
 gap:12px;padding:15px 17px;
 border-bottom:1px solid #e6ecef;
}
#app .work-alert-popover-head strong{
 font-size:14px;color:#293a42;font-weight:750;
}
#app #work-alert-close{
 border:0;padding:4px 6px;border-radius:5px;background:#fff;
 font-size:11px;font-weight:600;color:#72828a;
}
#app #work-alert-close:hover{color:#007fa5;background:#eef8fb}
#app .work-alert-list{
 max-height:min(490px,65vh);
 overflow:auto;overscroll-behavior:contain;
 scrollbar-width:thin;
}
#app .work-alert-group{padding:8px 14px 9px;border-bottom:1px solid #ebeff2}
#app .work-alert-group:last-child{border-bottom:0}
#app .work-alert-group-head{
 display:flex;align-items:center;justify-content:space-between;
 gap:8px;padding:6px 2px 7px;
}
#app .work-alert-group-head strong{
 font-size:12px;font-weight:750;color:#344852;
}
#app .work-alert-group-head strong span{
 color:#0082a8;font-variant-numeric:tabular-nums;
}
#app .work-alert-group-head button{
 border:0;border-radius:3px;padding:4px 2px;
 color:#0083aa;background:transparent;
 font-size:11px;font-weight:650;
}
#app .work-alert-group-head button:hover{text-decoration:underline}
#app .work-alert-group-rows{display:flex;flex-direction:column;gap:2px}
#app .work-alert-item{
 display:flex;align-items:flex-start;gap:10px;
 width:100%;min-height:48px;padding:8px 7px;
 border:0;border-radius:7px;text-align:left;
 background:#fff;color:#263943;cursor:pointer;
}
#app .work-alert-item:hover{background:#f2f9fc}
#app .work-alert-item-mark{
 flex:0 0 7px;width:7px;height:7px;border-radius:50%;
 margin-top:6px;background:#96b8c7;
}
#app .work-alert-item-mark.is-opening{background:#0089b3}
#app .work-alert-item-mark.is-preparation{background:#318dae}
#app .work-alert-item-mark.is-contact{background:#7b9ead}
#app .work-alert-item>span:last-child{
 display:flex;flex-direction:column;gap:3px;min-width:0;
}
#app .work-alert-item strong{
 color:#2a3c45;font-size:12px;font-weight:700;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#app .work-alert-item small{
 color:#6c7e88;font-size:11px;line-height:1.45;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#app .work-alert-empty{
 margin:0;padding:27px 17px;
 text-align:center;color:#788990;font-size:12px;
}
@media(max-width:1050px){
 #app #work-alert-button{padding:7px 9px}
 #app .work-alert-label{display:none}
}
@media(max-width:720px){
 #app #work-alert-button{height:32px;min-height:32px;padding:5px 7px}
 #app #work-alert-button svg{width:16px;height:16px}
 #app .work-alert-popover{width:min(350px,calc(100vw - 24px))}
 #app .work-alert-list{max-height:62vh}
}
@media(prefers-reduced-motion:reduce){
 #app #work-alert-button.is-first-alert .work-alert-count{animation:none}
 #app #work-alert-button{transition:none}
}


/* SOURCE: connected-calendar-editor.css */
/* S2H CRM · connected calendar and compact groupbuy editor 2026-11-24 */

/* Continuous month/week groupbuy bands: stable lanes across the full date range. */
#app .dashboard-v5 .dashboard-primary-calendar .cal-scroll,
#app .ops-schedule-main .cal-scroll{
 border:1px solid #e2e8ed;border-radius:11px;overflow-x:auto;background:#fff;
}
#app .dashboard-v5 .dashboard-primary-calendar .cal-weekdays,
#app .dashboard-v5 .dashboard-primary-calendar .cal-weeks{min-width:710px}
#app .cal-week-row.cal-week-connected{
 display:grid;
 grid-template-columns:repeat(7,minmax(0,1fr));
 grid-template-rows:36px repeat(var(--cal-visible-rows),30px) 24px!important;
 min-height:var(--cal-row-height)!important;height:var(--cal-row-height)!important;
 align-content:start;
 border-bottom:1px solid #e5ebef;
 background:#fff;
}
#app .cal-week-row.cal-week-connected:last-child{border-bottom:0}
#app .cal-week-row.cal-week-connected>.cal-bg-day.cal-day-add{
 position:relative;z-index:0;
 display:flex;flex-direction:column;
 align-items:stretch;justify-content:flex-start;
 padding:0 7px!important;
 background:#fff;
 border-right:1px solid #eaf0f3;
}
#app .cal-week-row.cal-week-connected>.cal-bg-day.cal-day-add.cal-outside{background:#fafbfc}
#app .cal-week-row.cal-week-connected>.cal-bg-day.cal-day-add.cal-today{background:#f1f9fd}
#app .cal-week-row.cal-week-connected>.cal-bg-day.cal-day-add:hover{background:#f3f9fc}
#app .cal-week-row.cal-week-connected>.cal-bg-day.cal-day-add>.cal-date-head{
 height:36px;max-height:36px;flex:0 0 36px;
 display:flex;align-items:center;justify-content:space-between;gap:4px;
 padding:0 2px;margin:0;
}
#app .cal-week-row.cal-week-connected>.cal-bg-day .cal-date-head b{font-size:12px;font-weight:750;color:#364a56}
#app .cal-week-row.cal-week-connected>.cal-bg-day .cal-date-head small{font-size:10px;font-weight:600;color:#8b9ca6}
#app .cal-week-row.cal-week-connected>.cal-bg-day.cal-today .cal-date-head b{
 background:#0089b3;color:#fff;
 display:grid;place-items:center;width:22px;height:22px;border-radius:6px;
}
#app .cal-week-row.cal-week-connected>.cal-range{
 z-index:2;position:relative;
 align-self:center;min-width:0;
 display:flex;align-items:center;
 height:25px!important;min-height:25px!important;
 margin:0!important;
 padding:0 9px;
 border:0!important;border-radius:0!important;
 box-shadow:none!important;
 font-size:11px;font-weight:660;letter-spacing:-.012em;
 line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
#app .cal-week-row.cal-week-connected>.cal-range.cal-range-completed{
 background:#edf1f4;color:#6c7d87;
}
#app .cal-week-row.cal-week-connected>.cal-range.cal-range-active{
 background:#0089b3;color:#fff;
}
#app .cal-week-row.cal-week-connected>.cal-range.cal-range-upcoming{
 background:#dff1f9;color:#08769d;
}
#app .cal-week-row.cal-week-connected>.cal-range.cal-range-start{
 border-top-left-radius:5px!important;
 border-bottom-left-radius:5px!important;
 margin-left:4px!important;
}
#app .cal-week-row.cal-week-connected>.cal-range.cal-range-end{
 border-top-right-radius:5px!important;
 border-bottom-right-radius:5px!important;
 margin-right:4px!important;
}
#app .cal-week-row.cal-week-connected>.cal-range:hover{
 filter:brightness(.96);z-index:4;
}
#app .cal-week-row.cal-week-connected>.cal-expand{
 z-index:4;align-self:center;justify-self:start;
 border-radius:5px;border:0;
 font-size:11px;font-weight:700;color:#007fa4;
 margin:0 0 0 7px;padding:2px 6px;
 min-height:22px;line-height:1.2;
 background:transparent;
}
#app .cal-week-row.cal-week-connected>.cal-expand:hover{background:#ecf7fb}
#app .dashboard-v5 .dashboard-primary-calendar .cal-weekdays .cal-week{
 background:#f7f9fb;color:#667a85;font-size:11px;
 border-bottom:1px solid #e2e8ed;
 padding:10px 3px;
}
#app .ops-schedule-main.is-calendar .cal-weekdays .cal-week{
 background:#f7f9fb;color:#667a85;font-size:11px;
}
#app .dashboard-v5 .dashboard-primary-calendar .cal-scroll{margin:0}
#app .dashboard-v5 .ops-calendar-legend{margin-bottom:11px}
#app .dashboard-v5 .dashboard-primary-calendar .cal-week-connected>.cal-range{
 font-size:11px!important;padding:0 8px;
}

/* Groupbuy editing: fewer labels and no oversize prep button. */
#modal.buy-editor-modal .modal-panel{
 width:min(760px,calc(100vw - 26px));
 max-height:min(790px,calc(100dvh - 26px));
 border-radius:12px;
 border:1px solid #dce5e9;
 box-shadow:0 20px 66px rgba(23,47,58,.2);
}
#modal.buy-editor-modal .modal-head{
 min-height:62px;padding:15px 25px;
 border-bottom:1px solid #e8edf0;
}
#modal.buy-editor-modal .modal-head h2{
 font-size:20px;font-weight:760;color:#253742;
}
#modal.buy-editor-modal #modal-fields{
 padding:17px 25px 23px;
 overflow-y:auto;overscroll-behavior:contain;
}
#modal.buy-editor-modal .modal-fields{display:flex;flex-direction:column;gap:0}
#modal.buy-editor-modal .buy-editor-meta{
 display:flex;align-items:center;justify-content:space-between;
 gap:12px;flex-wrap:wrap;
 padding:1px 0 15px;
 border-bottom:1px solid #e5ebee;
}
#modal.buy-editor-modal .buy-editor-meta>span{
 font-size:12px;line-height:1.5;color:#6d808a;
}
#modal.buy-editor-modal .buy-editor-prep-open{
 display:inline-flex;align-items:center;justify-content:center;
 align-self:center;width:auto;min-height:34px;
 margin:0;padding:7px 11px;
 border-radius:7px;
 border:1px solid #bedde8;
 background:#f4fafc;color:#007a9f;
 font-size:12px;font-weight:700;white-space:nowrap;
}
#modal.buy-editor-modal .buy-editor-prep-open:hover{
 background:#e8f6fc;border-color:#76bdd6;
}
#modal.buy-editor-modal .buy-editor-section{
 margin:0;padding:18px 0 20px;
 border-bottom:1px solid #e7edf0;
}
#modal.buy-editor-modal .buy-editor-section-title{
 display:flex;align-items:baseline;gap:8px 14px;flex-wrap:wrap;
 margin:0 0 14px;
}
#modal.buy-editor-modal .buy-editor-section-title h3{
 font-size:15px;font-weight:760;letter-spacing:-.035em;
 color:#293b45;
}
#modal.buy-editor-modal .buy-editor-section-title p{
 font-size:11px;color:#8b99a2;line-height:1.4;
}
#modal.buy-editor-modal .buy-editor-fields{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:13px 14px;align-items:start;min-width:0;
}
#modal.buy-editor-modal .buy-editor-fields>label,
#modal.buy-editor-modal .buy-editor-fields>.combo-wrap>label{
 color:#495e69;font-size:12px;font-weight:700;line-height:1.35;
 margin:0;
}
#modal.buy-editor-modal .buy-editor-fields :is(input:not([type="hidden"]),select){
 height:43px;min-height:43px;
 margin-top:6px;padding:9px 12px;
 border:1px solid #d0dce2;border-radius:7px;
 color:#283c47;background:#fff;font-size:13px;
}
#modal.buy-editor-modal .buy-editor-fields>.combo-wrap>input[type="text"]{
 margin-top:6px!important;width:100%;
 height:43px;min-height:43px;
}
#modal.buy-editor-modal .buy-editor-fields .combo-options{border-radius:8px}
#modal.buy-editor-modal .buy-editor-fields .seller-linked-data{
 grid-column:1 / -1;
 padding:8px 10px;margin:0;
 border-left:3px solid #0089b3;
 border-radius:4px;background:#f6fbfd;
 color:#5c7480;font-size:11px;
}
#modal.buy-editor-modal .buy-editor-extra summary{
 padding:15px 0;font-size:14px;
}
#modal.buy-editor-modal .buy-editor-extra summary small{
 font-size:11px;color:#82929a;
}
#modal.buy-editor-modal .buy-editor-extra>.buy-editor-fields{padding-bottom:19px}
#modal.buy-editor-modal .modal-actions{
 padding:12px 25px;min-height:67px;
 background:#fff;border-top:1px solid #e7edf0;
 box-shadow:none;justify-content:flex-end;gap:8px;
}
#modal.buy-editor-modal .modal-actions button{
 min-width:94px;min-height:40px;
 border-radius:7px;font-weight:700;font-size:13px;
}
#modal.buy-editor-modal .modal-actions .primary{
 background:#0089b3;color:#fff;border:1px solid #0089b3;
}
#modal.buy-editor-modal .modal-actions .secondary{
 background:#fff;color:#465c66;border:1px solid #cbd7dd;
}
@media(max-width:760px){
 #modal.buy-editor-modal .modal-panel{width:100%;max-height:calc(100dvh - 12px);border-radius:10px}
 #modal.buy-editor-modal .modal-head{min-height:55px;padding:13px 16px}
 #modal.buy-editor-modal #modal-fields{padding:13px 16px 18px}
 #modal.buy-editor-modal .buy-editor-fields{grid-template-columns:minmax(0,1fr);gap:13px}
 #modal.buy-editor-modal .buy-editor-section{padding:16px 0 18px}
 #modal.buy-editor-modal .buy-editor-meta{gap:8px}
 #modal.buy-editor-modal .modal-actions{padding:12px 16px}
}
@media(max-width:720px){
 #app .dashboard-v5 .dashboard-primary-calendar .cal-weekdays,
 #app .dashboard-v5 .dashboard-primary-calendar .cal-weeks{min-width:665px}
}
@media(prefers-reduced-motion:reduce){
 #app .cal-week-row.cal-week-connected>.cal-range{transition:none}
}


/* SOURCE: phase1-stability.css */
/* S2H CRM Phase 1: reliability and recovery indicators only.
   Keep existing layout; do not reintroduce rounded-card conflicts. */
#app .crm-load-error{
 display:flex;align-items:center;justify-content:space-between;
 gap:17px;flex-wrap:wrap;
 margin:0 0 22px;padding:15px 18px;
 border:1px solid #b5d7e4;border-left:3px solid #0089b3;border-radius:6px;
 background:#f0f9fc;color:#234150;
}
#app .crm-load-error strong{display:block;font-size:14px;font-weight:750;line-height:1.45}
#app .crm-load-error p{font-size:12px;line-height:1.65;color:#526e7b;margin:5px 0 0;word-break:keep-all}
#app .crm-load-error>div{flex:1 1 230px}
#app .crm-load-error button{
 background:#fff;color:#007fa5;border:1px solid #9dcada;
 min-height:36px;height:36px;padding:7px 13px;
 border-radius:5px;white-space:nowrap;font-size:12px;font-weight:700;
}
#app .crm-load-error button:hover{background:#e9f6fa}
#app .crm-load-error button:disabled{cursor:wait;opacity:.7}
/* Distinguish today's actual opening from other timeline bars without flashing. */
#app .cal-week-row.cal-week-connected>.cal-range{
 transition:background-color .12s ease,filter .12s ease;
}
@media(max-width:720px){
 #app .crm-load-error{padding:12px 13px;gap:9px}
 #app .crm-load-error button{width:auto}
}
@media(prefers-reduced-motion:reduce){
 #app .cal-week-row.cal-week-connected>.cal-range{transition:none}
}


/* SOURCE: ui-polish-v2.css */
/* S2H CRM Unified Visual System — design system and workspace layout phase 2, 2026-11-26
   Applied only after the authenticated app's existing component styles.
   Prevents UI drift from accumulated legacy styles without altering data flows. */
:root{
 /* Brand identity: original SVG #0089B3; existing darker shade for accessible text/buttons. */
 --s2h-ui-brand:var(--s2h,#0089B3);
 --s2h-ui-brand-dark:var(--s2h-dark,#00749A);
 --s2h-ui-brand-soft:var(--s2h-light,#EAF6FA);
 --s2h-ui-ink:#263741;
 --s2h-ui-muted:#5D707C;
 --s2h-ui-line:#E3EAF0;
 --s2h-ui-control-line:#CBD8DF;
 --s2h-ui-bg:#fff;
 --s2h-ui-surface:#fff;
 --s2h-ui-surface-soft:#F7F9FA;
 --s2h-ui-focus:rgba(0,137,179,.18);
 --s2h-ui-radius:8px;
 --s2h-ui-card-radius:10px;
 --s2h-ui-font:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 --s2h-ui-title-size:24px;
 --s2h-ui-section-size:16px;
 --s2h-ui-body-size:14px;
 --s2h-ui-control-size:13px;
 --s2h-ui-caption-size:12px;
 --s2h-ui-control-height:40px;
 --s2h-ui-space-1:4px;
 --s2h-ui-space-2:8px;
 --s2h-ui-space-3:12px;
 --s2h-ui-space-4:16px;
 --s2h-ui-space-5:24px;
 --s2h-ui-space-6:32px;
 --s2h-layout-max:1440px;
 --s2h-layout-sidebar:224px;
 --s2h-layout-header:64px;
 --s2h-layout-gutter:clamp(24px,2.4vw,40px);
}
#app.app{
 color:var(--s2h-ui-ink);
 font-family:var(--s2h-ui-font);
 font-size:var(--s2h-ui-body-size);letter-spacing:-.015em;
}
/* Workspace shell: same horizontal grid for every page and header. */
#app.app{display:flex;align-items:flex-start;min-height:100vh;min-height:100dvh;background:var(--s2h-ui-bg)}
#app .main,#app .main:has(.dashboard-v5){background:var(--s2h-ui-bg);min-width:0;flex:1 1 0;min-height:100vh;min-height:100dvh}
#app .content,#app .content:has(.dashboard-v5){
 width:100%;max-width:var(--s2h-layout-max);margin:0 auto;min-width:0;
 padding:var(--s2h-ui-space-6) var(--s2h-layout-gutter) 64px;background:transparent;
}
#app #page-body{width:100%;min-width:0}
#app .sidebar{
 position:sticky;top:0;align-self:flex-start;flex:0 0 var(--s2h-layout-sidebar);
 width:var(--s2h-layout-sidebar);min-width:var(--s2h-layout-sidebar);
 height:100vh;height:100dvh;min-height:0;overflow:hidden;
 padding:0 14px 16px;background:var(--s2h-ui-surface);border-right:1px solid var(--s2h-ui-line);
 display:flex;flex-direction:column;
}
#app .sidebar .brand-home{
 flex:0 0 auto;display:flex;justify-content:center;align-items:flex-start;
 width:100%;min-height:var(--s2h-layout-header);height:var(--s2h-layout-header);
 margin:0 0 24px;padding:0 12px;border:0;border-bottom:1px solid var(--s2h-ui-line);
 background:transparent;border-radius:0;
}
#app .sidebar .brand-logo img{width:128px;height:34px;object-fit:contain;object-position:left center;filter:none}
#app .sidebar .brand-sub{display:none}
#app .sidebar .nav{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:22px;padding:2px 2px 12px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
#app .sidebar .nav-group{display:flex;flex-direction:column;gap:4px;flex:0 0 auto}
#app .sidebar .nav-section{font-size:11px;font-weight:650;color:var(--s2h-ui-muted);margin:0 10px 6px;letter-spacing:0;line-height:1.5}
#app .sidebar .nav-link{
 display:flex;align-items:center;gap:11px;width:100%;min-height:40px;height:40px;
 padding:0 10px;border:1px solid transparent;border-radius:var(--s2h-ui-radius);
 margin:0;color:#465B68;background:transparent;
}
#app .sidebar .nav-link span{font-size:var(--s2h-ui-control-size);line-height:1.35;font-weight:550}
#app .sidebar .nav-link:hover{border:1px solid transparent;background:var(--s2h-ui-surface-soft);color:var(--s2h-ui-brand-dark)}
#app .sidebar .nav-link.active{
 border:1px solid #C8E7F0;border-radius:var(--s2h-ui-radius);
 background:var(--s2h-ui-brand-soft);color:var(--s2h-ui-brand-dark);box-shadow:none;
}
#app .sidebar .nav-link.active span{font-weight:700}
#app .sidebar .nav-link.active .nav-icon{color:var(--s2h-ui-brand-dark)}
#app .sidebar .sidebar-bottom{flex:0 0 auto;margin-top:12px;padding:14px 10px 2px;border-top:1px solid var(--s2h-ui-line);color:var(--s2h-ui-muted);font-size:10px;letter-spacing:.015em}
#app .topbar{
 position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;
 height:var(--s2h-layout-header);min-height:var(--s2h-layout-header);
 background:var(--s2h-ui-surface);border-bottom:1px solid var(--s2h-ui-line);
 padding:0 max(var(--s2h-layout-gutter),calc((100% - var(--s2h-layout-max))/2 + var(--s2h-layout-gutter)));
 box-shadow:none;
}
#app .topbar-left{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0}
#app .topbar-home,#app #breadcrumb-page{font-size:var(--s2h-ui-caption-size);letter-spacing:0}
#app .topbar-home{color:var(--s2h-ui-muted);font-weight:550;flex-shrink:0}
#app .topbar-divider{flex:0 0 1px;height:14px;background:var(--s2h-ui-line)}
#app #breadcrumb-page{color:var(--s2h-ui-ink);font-weight:700}
#app .top-right{display:flex;align-items:center;gap:12px;flex:0 1 auto;min-width:0}
#app :is(#global-seller-search,#work-alert-button){
 min-height:36px;height:36px;border-radius:var(--s2h-ui-radius);white-space:nowrap;
}
#app #global-seller-search{flex:0 0 auto;border-color:var(--s2h-ui-line)}
#app #whoami{max-width:110px;color:var(--s2h-ui-ink)}
#app #logout{flex:0 0 auto;min-height:36px;padding:0 4px;color:var(--s2h-ui-muted)}
#app .heading{
 display:flex;align-items:center;justify-content:space-between;gap:var(--s2h-ui-space-4);
 min-height:40px;margin:0 0 var(--s2h-ui-space-5);
}
#app .heading>div{min-width:0}
#app .heading h1{
 font-size:var(--s2h-ui-title-size);line-height:1.35;margin:0;
 color:var(--s2h-ui-ink);font-weight:740;letter-spacing:-.035em;overflow-wrap:anywhere;
}
#app .heading>#add-button{flex:0 0 auto;white-space:nowrap}
#app :is(button,input,select,textarea){font-family:inherit}
#app button:not(:disabled):hover{transition:background-color .15s,color .15s,border-color .15s}
#app button:focus-visible,#app input:focus-visible,#app select:focus-visible,
#app textarea:focus-visible,#app a:focus-visible{
 outline:2px solid var(--s2h-ui-brand);
 outline-offset:2px;
}
#app :is(.primary,.secondary,.mini-button){
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 border-radius:var(--s2h-ui-radius);box-shadow:none;
 line-height:1.35;font-weight:650;letter-spacing:-.02em;
}
#app .primary{
 min-height:var(--s2h-ui-control-height);padding:9px 15px;
 border:1px solid var(--s2h-ui-brand-dark);
 background:var(--s2h-ui-brand-dark);color:#fff;
 font-size:var(--s2h-ui-control-size);
}
#app .primary:hover{
 background:#006F94;
 border-color:#006F94;color:#fff;
}
#app .secondary{
 min-height:var(--s2h-ui-control-height);padding:9px 14px;
 border:1px solid #CDD9DF;background:#fff;
 color:#465B68;font-size:var(--s2h-ui-control-size);
}
#app .secondary:hover{background:#F3F9FC;border-color:#9BCEDD;color:#007EA4}
#app .mini-button{
 min-height:34px;padding:7px 11px;
 border:1px solid #D6E0E5;background:#fff;
 color:#516774;font-size:var(--s2h-ui-caption-size);
}
#app .mini-button:hover{background:#EFF8FC;color:#007DA2;border-color:#A4D1E0}
#app button:disabled{opacity:.5;cursor:not-allowed}
#app :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]),select,textarea){
 min-width:0;border-radius:var(--s2h-ui-radius);
 border:1px solid var(--s2h-ui-control-line);background:#fff;
 color:#283B47;
 font-size:var(--s2h-ui-control-size);line-height:1.5;
 box-shadow:none;
}
#app :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]),select,textarea):focus{
 border-color:#0089B3;outline:2px solid var(--s2h-ui-focus);outline-offset:0;
}
#app input::placeholder,#app textarea::placeholder{color:#687B85}
#app .panel{
 background:#fff;border:1px solid var(--s2h-ui-line);
 border-radius:var(--s2h-ui-card-radius);
 box-shadow:none;
 min-width:0;
}
#app .panel-title{
 display:flex;align-items:center;justify-content:space-between;
 gap:12px;margin:0 0 17px;
}
#app .panel-title h2{font-size:var(--s2h-ui-section-size);font-weight:750;color:#293A44;letter-spacing:-.035em}
#app .panel-description,#app .panel-note{
 color:var(--s2h-ui-muted);font-size:var(--s2h-ui-caption-size);line-height:1.65;word-break:keep-all;
}
#app .table-wrap{
 width:100%;max-width:100%;overflow-x:auto;scrollbar-width:thin;
 border:1px solid #E4EAEE;border-radius:8px;
 background:#fff;
}
#app .table-wrap table{
 border-collapse:separate;border-spacing:0;
 width:100%;white-space:normal;
}
#app .table-wrap th{
 position:relative;
 padding:13px 14px;background:var(--s2h-ui-surface-soft);
 border-bottom:1px solid #DDE6EB;color:#60727D;
 font-size:var(--s2h-ui-caption-size);font-weight:700;line-height:1.5;
 white-space:nowrap;
}
#app .table-wrap td{
 padding:12px 14px;vertical-align:middle;
 border-bottom:1px solid #EBF0F3;
 font-size:var(--s2h-ui-control-size);color:#31434E;line-height:1.55;
}
#app .table-wrap tbody tr:hover td{background:#F9FCFD}
#app .table-wrap tbody tr:last-child td{border-bottom:0}
#app .table-wrap td button{max-width:100%}
#app .status{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:24px;
 padding:4px 9px;border-radius:6px;
 border:1px solid #E0E7EB;background:#F5F7F8;
 color:#627481;font-size:11px;font-weight:700;
 line-height:1.2;white-space:nowrap;
}
#app .status.good{background:#E9F7FC;border-color:#C4E6F0;color:#007EAA}
#app .status.alert{background:#FFF4F3;border-color:#F1D6D3;color:#A54D45}
#app .empty,#app .dash-empty{
 color:var(--s2h-ui-muted);text-align:center;
 line-height:1.65;font-size:var(--s2h-ui-control-size);word-break:keep-all;
}
#app .seller-tools,#app .product-toolbar,#app .toolbar,#app .ops-activity-toolbar{
 align-items:center;gap:11px;
}
#app .seller-tools input,#app .product-toolbar input,#app .toolbar input,
#app .ops-activity-toolbar input{
 min-height:42px;height:42px;padding:9px 12px;
 border-radius:var(--s2h-ui-radius);background:#fff;font-size:var(--s2h-ui-control-size);
}
#app .ops-seller-filter,#app .ops-schedule-filters,
#app .product-filters{gap:5px}
#app .ops-seller-filter button,#app .ops-schedule-filters button,
#app .product-filters button{
 border-radius:var(--s2h-ui-radius);min-height:32px;
 padding:6px 10px;font-size:var(--s2h-ui-caption-size);line-height:1.35;
}
#app .ops-seller-filter button.selected,#app .ops-schedule-filters button.selected{
 border-color:#C3E4EE;background:#ECF8FC;color:#007DA3;
}
#app .ops-schedule-view{border-radius:8px;overflow:hidden}
#app .ops-schedule-view button{min-height:var(--s2h-ui-control-height)}
#app .ops-schedule-results,#app .ops-product-results{
 color:#6A7D87;font-size:var(--s2h-ui-caption-size);
}
#app .ops-product-sort select,#app .ops-schedule-results select,
#app .ops-activity-toolbar select{
 min-height:36px;border-radius:var(--s2h-ui-radius);font-size:var(--s2h-ui-caption-size);
}
#app .seller-pagination,#app .ops-activity-pagination{
 color:#687C86;font-size:var(--s2h-ui-caption-size);
}
#app .dashboard-v5 .dashboard-intro-actions{
 display:flex;align-items:center;justify-content:flex-end;gap:8px;
}
#app .dashboard-v5 .dashboard-intro-actions button{
 display:inline-flex;justify-content:center;align-items:center;
 width:auto;min-height:36px;height:36px;
 padding:0 13px;margin:0;
 border:1px solid #D6E1E7;border-radius:var(--s2h-ui-radius);
 background:#fff;color:#405764;
 font-size:var(--s2h-ui-caption-size);font-weight:700;box-shadow:none;
 white-space:nowrap;
}
#app .dashboard-v5 .dashboard-intro-actions button:hover{
 background:#F0F9FC;border-color:#9BCFDF;color:#007DA5;
}
#app .dashboard-v5 .ops-major-prep,
#app .dashboard-v5 .ops-major-activity{
 background:#fff;border:1px solid var(--s2h-ui-line);
 border-radius:var(--s2h-ui-card-radius);
}
#app .dashboard-v5 .ops-major-head h2{font-size:17px;letter-spacing:-.035em}
#app .dashboard-v5 .ops-major-head p{font-size:var(--s2h-ui-caption-size);color:var(--s2h-ui-muted)}
#app .dashboard-v5 .flow-side-tabs button{font-size:var(--s2h-ui-caption-size)}
#app .dashboard-v5 .flow-date-list{scrollbar-width:thin}
#app .ops-schedule-main.is-calendar .cal-scroll{
 border:1px solid var(--s2h-ui-line);
 border-radius:10px;
}
/* Dialogs are always white, correctly bounded, and visually consistent. */
#modal.modal{
 padding:20px;background:rgba(24,42,53,.52);
 backdrop-filter:blur(2px);
}
#modal .modal-panel{
 box-sizing:border-box;width:min(740px,100%);
 max-height:calc(100dvh - 40px);
 min-height:0;display:flex;flex-direction:column;
 overflow:hidden;background:#fff;
 border:1px solid #DCE6EA;border-radius:var(--s2h-ui-card-radius);
 box-shadow:0 24px 70px rgba(16,35,46,.21);
 padding:0;
}
#modal .modal-head{
 display:flex;justify-content:space-between;align-items:center;
 min-height:65px;flex:0 0 auto;gap:12px;
 padding:17px 24px;border-bottom:1px solid #E7EDF0;
 background:#fff;
}
#modal .modal-head h2{
 margin:0;font-size:19px;line-height:1.4;
 font-weight:760;letter-spacing:-.045em;color:#263944;
}
#modal #close-modal{
 display:grid;place-items:center;
 flex:0 0 32px;width:32px;height:32px;
 padding:0;border:0;border-radius:var(--s2h-ui-radius);
 color:#6F818B;background:transparent;font-size:16px;
}
#modal #close-modal:hover{color:#007DA4;background:#EDF8FC}
#modal #modal-form{
 display:flex;flex-direction:column;flex:1 1 auto;
 overflow:hidden;min-height:0;margin:0;
}
#modal #modal-fields{
 flex:1 1 auto;min-height:0;overflow-y:auto;
 padding:20px 24px 26px;
 overscroll-behavior:contain;scrollbar-width:thin;
}
#modal:not(.buy-editor-modal):not(.prep-modal) .modal-fields{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 column-gap:15px;row-gap:12px;align-items:start;
}
#modal:not(.buy-editor-modal):not(.prep-modal) .modal-fields>.full{
 grid-column:1 / -1;
}
#modal .modal-fields>label,#modal .modal-fields>.combo-wrap>label{
 min-width:0;font-size:var(--s2h-ui-caption-size);font-weight:700;
 color:#526572;line-height:1.45;
}
#modal .modal-fields input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]),
#modal .modal-fields select,
#modal .modal-fields textarea{
 display:block;width:100%;max-width:100%;
 margin-top:7px;padding:10px 12px;
 border:1px solid #CFDCE2;border-radius:var(--s2h-ui-radius);
 background:#fff;color:#2D414C;
 font-size:var(--s2h-ui-control-size);line-height:1.5;box-shadow:none;
}
#modal .modal-fields input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="button"]):not([type="submit"]),
#modal .modal-fields select{min-height:43px;height:43px}
#modal .modal-fields textarea{min-height:94px;resize:vertical}
#modal .modal-fields input:focus,#modal .modal-fields select:focus,
#modal .modal-fields textarea:focus{
 outline:2px solid var(--s2h-ui-focus);border-color:var(--s2h-ui-brand);outline-offset:0;
}
#modal .modal-actions{
 display:flex;justify-content:flex-end;align-items:center;
 gap:var(--s2h-ui-space-2);margin:0;padding:13px var(--s2h-ui-space-5);
 flex:0 0 auto;border-top:1px solid #E7EDF0;background:#fff;
 box-shadow:none;
}
#modal .modal-actions button{
 min-height:var(--s2h-ui-control-height);min-width:94px;padding:9px 14px;
 font-size:var(--s2h-ui-control-size);line-height:1.4;font-weight:700;
 border-radius:var(--s2h-ui-radius);
}
#modal .modal-actions .primary{
 background:var(--s2h-ui-brand-dark);color:#fff;border:1px solid var(--s2h-ui-brand-dark);
}
#modal .modal-actions .primary:hover{background:#006F94;border-color:#006F94}
#modal .modal-actions .secondary{
 background:#fff;color:#485F6D;border:1px solid #C9D6DD;
}
#modal .modal-actions .secondary:hover{background:#F4FAFC}
#modal .modal-save-feedback{
 color:#B34E45;font-size:var(--s2h-ui-caption-size);line-height:1.6;margin:0;
}
#modal.buy-editor-modal .buy-editor-section-title{margin-bottom:12px}
#modal.buy-editor-modal .buy-editor-fields{gap:14px}
#modal.buy-editor-modal .buy-editor-fields>.combo-wrap{min-width:0}
#modal.buy-editor-modal .buy-editor-prep-open{
 min-height:35px;padding:7px 12px;
 border-radius:var(--s2h-ui-radius);font-size:var(--s2h-ui-caption-size);
}
#modal.prep-modal .prep-check-row{
 border-bottom:1px solid #EDF1F4;
}
#modal.prep-modal .prep-check-row input[type="checkbox"]{
 margin-top:2px;accent-color:#0089B3;
}
#seller-detail-modal .seller-detail-dialog{
 border:1px solid #DCE6EA;border-radius:var(--s2h-ui-card-radius);
 background:#fff;box-shadow:0 22px 68px rgba(17,43,58,.20);
}
#seller-detail-modal .seller-detail-dialog-head{
 padding:18px 24px;background:#fff;border-bottom:1px solid #E5ECEF;
}
#seller-detail-modal .seller-detail-dialog-head h2{
 font-size:19px;line-height:1.4;font-weight:760;color:#2A3B44;
}
#seller-detail-modal .seller-detail-dialog-body{
 padding:22px 24px 26px;scrollbar-width:thin;background:#F9FBFC;
}
#seller-detail-modal .seller-detail-dialog-body .panel{
 background:#fff;border:1px solid #E2E9ED;
 border-radius:10px;box-shadow:none;padding:21px;
}
#seller-detail-modal .seller-detail-close{
 width:33px;height:33px;border:0;border-radius:var(--s2h-ui-radius);
 background:transparent;color:#657884;
}
#seller-detail-modal .seller-detail-close:hover{
 background:#EDF8FC;color:#007DA3;
}
#app .app-loading,#app .toast{font-size:var(--s2h-ui-control-size)}

/* Shared primitives: keep special calendar grids and workflow/status semantics intact. */
#app .metric{box-shadow:none}
#app .panel-link,#app .linklike{color:var(--s2h-ui-brand-dark)}
#app .hero-summary{
 background:var(--s2h-ui-surface);color:var(--s2h-ui-ink);
 border:1px solid var(--s2h-ui-line);border-radius:var(--s2h-ui-card-radius);box-shadow:none
}
#app .hero-summary:after{display:none}
#app .hero-summary :is(p,small){color:var(--s2h-ui-muted)}
#app .hero-summary .eyebrow{color:var(--s2h-ui-brand-dark)}
#app .hero-summary .quick-actions button{
 background:var(--s2h-ui-surface);color:var(--s2h-ui-brand-dark);
 border:1px solid var(--s2h-ui-control-line);border-radius:var(--s2h-ui-radius)
}
#app .hero-summary .quick-actions button:hover{background:var(--s2h-ui-brand-soft)}
:is(#app,#modal,#seller-detail-modal) input:is([type="checkbox"],[type="radio"]){accent-color:var(--s2h-ui-brand)}
:is(#modal,#seller-detail-modal) {font-family:var(--s2h-ui-font)}
:is(#modal,#seller-detail-modal) :is(button,input,select,textarea,a):focus-visible{
 outline:2px solid var(--s2h-ui-brand);outline-offset:2px
}
#modal .modal-actions button:disabled,#seller-detail-modal button:disabled{opacity:.5;cursor:not-allowed}
#app .table-wrap th{color:var(--s2h-ui-muted)}
#app .status.good{color:var(--s2h-ui-brand-dark)}

@media(max-width:1120px){
 #app.app{--s2h-layout-sidebar:200px;--s2h-layout-gutter:24px}
 #app .sidebar{padding-inline:10px}
 #app .top-right{gap:8px}
 #app #today{display:none}
 #app #whoami{max-width:84px}
 #app .heading h1{font-size:23px}
}
@media(min-width:761px) and (max-width:960px){
 #app.app{--s2h-layout-sidebar:184px;--s2h-layout-gutter:20px}
 #app .topbar-home,#app .topbar-divider{display:none}
 #app #global-seller-search span,#app .work-alert-label{display:none}
 #app #global-seller-search{padding:0 10px}
}
@media(max-width:760px){
 #app.app{display:block;--s2h-layout-gutter:16px}
 #app .main,#app .main:has(.dashboard-v5){min-height:0}
 #app .content,#app .content:has(.dashboard-v5){padding:24px var(--s2h-layout-gutter) 48px}
 #app .sidebar{
  position:relative;top:auto;width:100%;min-width:0;height:auto;padding:0 16px 8px;
  border-right:0;border-bottom:1px solid var(--s2h-ui-line);overflow:visible;
 }
 #app .sidebar .brand-home{height:52px;min-height:52px;padding:0 2px;margin:0 0 8px;border-bottom:0}
 #app .sidebar .brand-logo img{width:112px;height:30px}
 #app .sidebar .nav{flex-direction:row;gap:8px;overflow-x:auto;overflow-y:hidden;padding:3px 2px 5px;flex:0 0 auto}
 #app .sidebar .nav-group{flex-direction:row;gap:4px}
 #app .sidebar .nav-section,#app .sidebar .sidebar-bottom{display:none}
 #app .sidebar .nav-link{width:auto;min-height:36px;height:36px;white-space:nowrap;gap:7px;padding:0 10px}
 #app .sidebar .nav-link span{font-size:12px}
 #app .topbar{position:relative;top:auto;height:auto;min-height:54px;padding:8px 16px;gap:8px;flex-wrap:wrap}
 #app .topbar-left{flex:1 1 70px}
 #app .topbar-home,#app .topbar-divider{display:none}
 #app .top-right{gap:8px;flex:0 1 auto;max-width:100%;margin-left:auto}
 #app #global-seller-search span,#app .work-alert-label,#app #today{display:none}
 #app #whoami{max-width:66px}
 #app .work-alert-wrap{position:static}
 #app .work-alert-popover{top:calc(100% + 6px);right:12px;left:auto;width:min(370px,calc(100vw - 24px))}
 #app .heading{margin-bottom:20px;min-height:38px}
 #app .heading h1{font-size:22px}
 #app .heading>#add-button{min-height:36px;padding:7px 10px;font-size:12px}
 #app .panel{padding:16px}
 #app .panel-title{gap:8px}
 #app .panel-title h2{font-size:15px}
 #app .table-wrap td,#app .table-wrap th{font-size:var(--s2h-ui-caption-size)}
 #app .table-wrap th{padding:11px 10px}
 #app .table-wrap td{padding:12px 10px}
 #app .ops-schedule-page .table-wrap table{min-width:640px}
 #app .dashboard-v5 .dashboard-primary-grid{grid-template-columns:1fr}
 #modal.modal{padding:8px}
 #modal .modal-panel{width:100%;max-height:calc(100dvh - 16px);border-radius:10px}
 #modal .modal-head{min-height:54px;padding:13px 16px}
 #modal .modal-head h2{font-size:18px}
 #modal #modal-fields{padding:16px}
 #modal:not(.buy-editor-modal):not(.prep-modal) .modal-fields{
  grid-template-columns:minmax(0,1fr);row-gap:12px;
 }
 #modal .modal-actions{padding:12px 16px}
 #modal .modal-actions button{min-width:82px;min-height:39px}
 #seller-detail-modal .seller-detail-dialog-head{padding:14px 16px}
 #seller-detail-modal .seller-detail-dialog-body{padding:14px}
 #seller-detail-modal .seller-detail-dialog-body .panel{padding:14px}
}
@media(prefers-reduced-motion:reduce){
 #app button:not(:disabled):hover{transition:none}
}

/* Phase 3 — Dashboard composition. Keep calendar lanes and all data/action bindings intact. */
#app .dashboard-v5{
 --flow-ink:var(--s2h-ui-ink);--flow-muted:var(--s2h-ui-muted);
 --flow-line:var(--s2h-ui-line);--flow-blue:var(--s2h-ui-brand);
 --flow-soft:var(--s2h-ui-brand-soft);width:100%;min-width:0;
}
#app .dashboard-v5 .dashboard-intro{
 align-items:center;gap:16px;margin:0 0 20px;padding:0;border:0;
}
#app .dashboard-v5 .dashboard-intro>div:first-child{gap:4px;min-width:0}
#app .dashboard-v5 .dashboard-intro>div:first-child strong{font-size:15px;line-height:1.5;font-weight:650}
#app .dashboard-v5 .dashboard-intro>div:first-child span{font-size:13px;color:var(--flow-muted);line-height:1.55}
#app .dashboard-v5 .dashboard-overview{margin:0 0 24px}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard{
 margin:0;gap:0;border:1px solid var(--flow-line);border-radius:var(--s2h-ui-card-radius);
 background:#fff;box-shadow:none;
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric{
 min-height:104px;padding:18px 20px!important;border-right:1px solid var(--flow-line);background:#fff;
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .label{font-size:13px;color:var(--flow-muted);font-weight:650}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .number{
 font-size:32px;font-variant-numeric:tabular-nums;color:var(--flow-ink);line-height:1.1;margin:10px 0 7px;
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric:first-child .number{color:var(--s2h-ui-brand-dark)}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .sub{font-size:12px;color:var(--flow-muted)}
#app .dashboard-v5 .dashboard-primary-grid{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,29%);gap:20px;
 align-items:start;margin:0 0 24px;min-width:0;
}
#app .dashboard-v5 :is(.dashboard-primary-calendar,.flow-side-main,.dashboard-primary-aside>.panel,.ops-major-prep,.ops-major-activity){
 border-color:var(--flow-line)!important;border-radius:var(--s2h-ui-card-radius);box-shadow:none;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-calendar{
 padding:20px!important;border-radius:var(--s2h-ui-card-radius);
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-head{margin-bottom:16px;align-items:flex-start;gap:12px}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-head h2,
#app .dashboard-v5 .ops-major-head h2{font-size:17px;font-weight:720;line-height:1.4;letter-spacing:-.025em;color:var(--flow-ink)}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-head p,
#app .dashboard-v5 .ops-major-head p{font-size:12px;line-height:1.6;color:var(--flow-muted);margin:5px 0 0}
#app .dashboard-v5 .panel-link{color:var(--s2h-ui-brand-dark);min-height:32px;white-space:nowrap;padding:4px 0}
#app .dashboard-v5 .panel-link:hover{text-decoration:underline;text-underline-offset:3px}
#app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-controls{margin:0 0 10px}
#app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-legend{margin:0 0 12px;color:var(--flow-muted)}
#app .dashboard-v5 .dashboard-primary-calendar .ops-legend-item{font-size:12px;color:var(--flow-muted)}
#app .dashboard-v5 .dashboard-primary-aside{display:flex;flex-direction:column;gap:16px;margin:0}
#app .dashboard-v5 .flow-side-main{padding:0 16px 16px}
#app .dashboard-v5 .flow-side-tabs{gap:18px;margin:0 0 14px}
#app .dashboard-v5 .flow-side-tabs button{min-height:48px;font-size:13px;color:var(--flow-muted)}
#app .dashboard-v5 .flow-side-tabs button.selected{color:var(--s2h-ui-brand-dark);border-bottom-color:var(--flow-blue)}
#app .dashboard-v5 .flow-side-tabs button span{color:inherit;font-size:12px}
#app .dashboard-v5 .flow-side-main .panel-title{margin:0 0 6px;gap:8px}
#app .dashboard-v5 .dashboard-primary-aside .panel-title h2{font-size:15px;line-height:1.4}
#app .dashboard-v5 .flow-side-main .ops-panel-summary{font-size:12px;color:var(--flow-muted);margin:0 0 12px}
#app .dashboard-v5 .flow-side-main .ops-task-filters{display:flex;flex-wrap:wrap;gap:5px;padding:0 0 10px}
#app .dashboard-v5 .flow-side-main .ops-task-filters button{font-size:11px;min-height:30px;padding:5px 7px}
#app .dashboard-v5 .flow-side-main .ops-task-filters button.selected{color:var(--s2h-ui-brand-dark);background:var(--flow-soft)}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-row{
 display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;
 column-gap:10px;row-gap:4px;align-items:center;min-height:76px;padding:12px 0;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-label{
 grid-column:1;grid-row:1;font-size:11px;font-weight:700;color:var(--s2h-ui-brand-dark);line-height:1.4;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description{
 grid-column:1;grid-row:2;min-width:0;gap:3px;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description strong{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description span{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description small{font-size:11px;color:var(--flow-muted);overflow-wrap:anywhere}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-action{
 grid-column:2;grid-row:1 / 3;align-self:center;justify-self:end;
 width:auto;min-width:64px;min-height:34px;padding:6px 9px;border-radius:var(--s2h-ui-radius);
 font-size:11px;line-height:1.4;white-space:nowrap;
}
#app .dashboard-v5 .dashboard-primary-aside>.panel{padding:16px!important;margin:0!important}
#app .dashboard-v5 .dashboard-primary-aside>.panel .ops-work-row{min-height:72px;padding:10px 0}
#app .dashboard-v5 .flow-date-header strong{font-size:15px;color:var(--flow-ink)}
#app .dashboard-v5 .flow-date-header span,#app .dashboard-v5 .flow-date-event-copy small{color:var(--flow-muted)}
#app .dashboard-v5 .flow-date-event-copy strong{font-size:13px;overflow-wrap:anywhere}
#app .dashboard-v5 .flow-date-event-copy span{font-size:12px;white-space:normal;overflow-wrap:anywhere}
#app .dashboard-v5 .flow-date-add{background:var(--s2h-ui-brand-dark);border-color:var(--s2h-ui-brand-dark);min-height:34px}
#app .dashboard-v5 .flow-date-event-action{min-height:34px;font-size:11px}
#app .dashboard-v5 .dashboard-secondary-grid{
 display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:start;min-width:0;
}
#app .dashboard-v5 .dashboard-secondary-grid>section{min-width:0;margin:0;padding:20px}
#app .dashboard-v5 .dashboard-secondary-grid .ops-major-head{gap:10px;margin-bottom:16px;flex-wrap:wrap}
#app .dashboard-v5 .dashboard-secondary-grid .prep-dashboard-row{
 grid-template-columns:minmax(58px,auto) minmax(0,1fr) auto;gap:10px;min-height:66px;padding:11px 0;
}
#app .dashboard-v5 .dashboard-secondary-grid .activity-row{gap:10px;flex-wrap:wrap;padding:12px 0}
#app .dashboard-v5 .dashboard-secondary-grid .activity-row>div{min-width:0;flex:1 1 150px}
#app .dashboard-v5 .dashboard-secondary-grid .activity-row p{overflow-wrap:anywhere}
#app .dashboard-v5 .dashboard-secondary-grid .activity-row>small{font-size:11px;color:var(--flow-muted)}
#app .dashboard-v5 :is(.dash-empty,.flow-date-empty,.prep-dashboard-empty){color:var(--flow-muted);padding:24px 8px;line-height:1.65}
@media(max-width:1280px){
 #app .dashboard-v5 .dashboard-primary-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 #app .dashboard-v5 .dashboard-primary-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 #app .dashboard-v5 .dashboard-secondary-grid{grid-template-columns:minmax(0,1fr);gap:16px}
}
@media(max-width:760px){
 #app .dashboard-v5 .dashboard-intro{align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:16px}
 #app .dashboard-v5 .dashboard-intro-actions{justify-content:flex-start}
 #app .dashboard-v5 .dashboard-overview{margin-bottom:18px}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric{min-height:92px;padding:14px!important}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric:nth-child(2){border-right:0}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric:nth-child(-n+2){border-bottom:1px solid var(--flow-line)}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .number{font-size:28px}
 #app .dashboard-v5 .dashboard-primary-aside{display:flex;flex-direction:column}
 #app .dashboard-v5 .dashboard-primary-calendar .ops-major-calendar{padding:14px!important}
 #app .dashboard-v5 .dashboard-secondary-grid>section{padding:16px}
}

/* Phase 4 — continuous calendar rows, readable event labels, local scrolling. */
#app #page-body .cal-scroll[data-calendar-key]{
 width:100%;max-width:100%;min-width:0;overflow-x:auto;
 border:1px solid var(--s2h-ui-line);border-radius:var(--s2h-ui-radius);background:#fff;
 scrollbar-width:thin;overscroll-behavior-inline:contain;box-shadow:none;
}
#app #page-body .cal-scroll[data-calendar-key] :is(.cal-weekdays,.cal-weeks){width:100%;min-width:560px}
#app #page-body .ops-schedule-main .cal-scroll[data-calendar-key] :is(.cal-weekdays,.cal-weeks){min-width:680px}
#app #page-body .cal-scroll[data-calendar-key] .cal-week{
 background:var(--s2h-ui-surface-soft);color:var(--s2h-ui-muted);
 font-size:12px;font-weight:650;padding:10px 4px;
}
#app #page-body .cal-week-row.cal-week-connected{
 grid-template-rows:36px repeat(var(--cal-visible-rows),36px) var(--cal-footer,28px)!important;
 border-bottom:1px solid var(--s2h-ui-line);
}
#app #page-body .cal-week-row.cal-week-connected:last-child{border-bottom:0}
#app #page-body .cal-week-connected>.cal-bg-day.cal-day-add{
 padding:0 6px!important;border-right:1px solid var(--s2h-ui-line);
}
#app #page-body .cal-week-connected>.cal-bg-day.cal-day-add:nth-child(7){border-right:0}
#app #page-body .cal-week-connected>.cal-bg-day.cal-day-add.cal-selected{
 background:var(--s2h-ui-brand-soft);box-shadow:inset 0 0 0 1px var(--s2h-ui-brand);
}
#app #page-body .cal-week-connected>.cal-bg-day .cal-date-head b{font-size:12px;color:var(--s2h-ui-ink)}
#app #page-body .cal-week-connected>.cal-bg-day .cal-date-head small{font-size:10px;color:var(--s2h-ui-muted)}
#app #page-body .cal-week-connected>.cal-bg-day.cal-today .cal-date-head b{
 background:var(--s2h-ui-brand-dark);color:#fff;border-radius:6px;
}
#app #page-body .cal-week-connected>.cal-range{
 height:32px!important;min-height:32px!important;
 padding:2px 7px;font-size:11px!important;line-height:1.2;overflow:hidden;
}
#app #page-body .cal-range-copy{display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0;width:100%;text-align:left}
#app #page-body .cal-range-copy :is(strong,span){display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app #page-body .cal-range-copy strong{font-size:11px;font-weight:700;line-height:1.15}
#app #page-body .cal-range-copy>span{font-size:10px;font-weight:550;line-height:1.15}
#app #page-body .cal-week-connected>.cal-range-active{background:var(--s2h-ui-brand-dark);color:#fff}
#app #page-body .cal-week-connected>.cal-range-upcoming{background:var(--s2h-ui-brand-soft);color:var(--s2h-ui-brand-dark)}
#app #page-body .cal-week-connected>.cal-range-completed{background:#EDF1F4;color:#526572}
#app #page-body .cal-week-connected>.cal-range-canceled{background:#F5F1F1;color:#805454;text-decoration:line-through}
#app #page-body .cal-week-connected>.cal-range-start{margin-left:3px!important;border-top-left-radius:5px!important;border-bottom-left-radius:5px!important}
#app #page-body .cal-week-connected>.cal-range-end{margin-right:3px!important;border-top-right-radius:5px!important;border-bottom-right-radius:5px!important}
#app #page-body .cal-week-connected>.cal-expand{color:var(--s2h-ui-brand-dark);font-size:12px;min-height:24px}
#app #page-body .cal-scroll[data-calendar-key]:focus-visible{outline:2px solid var(--s2h-ui-brand);outline-offset:2px}
#app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-hint{display:inline;color:var(--s2h-ui-muted);white-space:normal}
@media(max-width:760px){
 #app #page-body .cal-scroll[data-calendar-key] :is(.cal-weekdays,.cal-weeks){min-width:560px}
 #app #page-body .ops-schedule-main .cal-scroll[data-calendar-key] :is(.cal-weekdays,.cal-weeks){min-width:560px}
}

/* Phase 5 — seller workspace and detail dialog. */
#app .seller-workspace>.panel,#app .product-workspace>.panel{padding:24px;min-width:0;box-shadow:none}
#app .seller-workspace .panel-title,#app .product-workspace .panel-title{margin-bottom:8px}
#app .seller-workspace .panel-description,#app .product-workspace .panel-description{margin:0 0 20px}
#app .seller-workspace .seller-tools{display:flex;align-items:center;gap:12px;margin:0 0 16px}
#app .seller-workspace .seller-search{flex:1 1 260px;max-width:540px}
#app .seller-workspace .seller-results{color:var(--s2h-ui-muted);margin-left:auto}
#app .seller-workspace .ops-seller-filter{border:0;padding:0;margin:0 0 16px;gap:6px}
#app .seller-workspace .ops-seller-filter button{min-height:36px;padding:7px 11px}
#app .seller-workspace .ops-seller-filter button.selected{background:var(--s2h-ui-brand-soft);color:var(--s2h-ui-brand-dark)}
#app .seller-workspace .table-wrap table{min-width:880px;table-layout:auto}
#app .seller-workspace .table-wrap td{padding:14px 12px;vertical-align:middle}
#app .seller-workspace .seller-name-link{font-size:14px;color:var(--s2h-ui-ink);font-weight:700;overflow-wrap:anywhere}
#app .seller-workspace .seller-name-link:hover{color:var(--s2h-ui-brand-dark)}
#app .seller-workspace .seller-alias,#app .seller-workspace .seller-trade-cell small{display:block;font-size:11px;color:var(--s2h-ui-muted);margin-top:4px;line-height:1.5}
#app .seller-workspace .seller-row-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}
#app .seller-workspace .seller-row-actions button{min-height:32px;padding:6px 9px}
#app .seller-workspace .seller-pagination{margin-top:12px;border:0;padding:0}
#seller-detail-modal .seller-detail-dialog{width:min(1100px,100%);border-radius:12px}
#seller-detail-modal .seller-detail-dialog-head h2{font-size:20px;font-weight:720;margin:0}
#seller-detail-modal .seller-detail-dialog-head .seller-profile-eyebrow{display:none}
#seller-detail-modal .seller-detail-dialog-body{background:#fff;padding:20px 24px 28px}
#seller-detail-modal .detail-nav{position:sticky;top:-20px;z-index:5;background:#fff;margin:0 0 18px;padding:8px 0 12px;border-bottom:1px solid var(--s2h-ui-line)}
#seller-detail-modal .seller-detail-actions{gap:6px;justify-content:flex-start}
#seller-detail-modal .seller-detail-actions button{min-height:36px;font-size:12px;border-radius:var(--s2h-ui-radius);padding:8px 12px}
#seller-detail-modal .seller-detail-actions .primary{background:var(--s2h-ui-brand-dark);border-color:var(--s2h-ui-brand-dark);color:#fff}
#seller-detail-modal .seller-detail-dialog-body .panel{padding:20px;margin:0 0 16px;border:1px solid var(--s2h-ui-line);border-radius:10px}
#seller-detail-modal .panel-title{margin-bottom:14px}
#seller-detail-modal .panel-title h2{font-size:16px;color:var(--s2h-ui-ink);font-weight:720}
#seller-detail-modal .seller-profile-header{padding:0 0 14px;align-items:center}
#seller-detail-modal .seller-profile-header h2{font-size:22px;margin:0 0 5px;color:var(--s2h-ui-ink)}
#seller-detail-modal .seller-profile-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:0;margin:16px 0;border:1px solid var(--s2h-ui-line);border-radius:8px}
#seller-detail-modal .seller-profile-stats .seller-profile-item{border:0;border-right:1px solid var(--s2h-ui-line);border-radius:0;background:none;padding:14px 12px;gap:6px}
#seller-detail-modal .seller-profile-stats .seller-profile-item:last-child{border-right:0}
#seller-detail-modal .seller-profile-stats .seller-profile-item strong{font-size:18px;font-variant-numeric:tabular-nums}
#seller-detail-modal .seller-profile-stats .seller-profile-item:last-child strong{font-size:14px}
#seller-detail-modal .seller-profile-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0;border-top:1px solid var(--s2h-ui-line)}
#seller-detail-modal .seller-profile-grid .seller-profile-item{border:0;border-bottom:1px solid var(--s2h-ui-line);background:none;border-radius:0;padding:12px 8px;gap:5px}
#seller-detail-modal .seller-profile-item span,#seller-detail-modal .seller-profile-note span{font-size:12px;color:var(--s2h-ui-muted)}
#seller-detail-modal .seller-profile-item strong{font-size:13px;color:var(--s2h-ui-ink)}
#seller-detail-modal .seller-profile-note{border:0;border-bottom:1px solid var(--s2h-ui-line);border-radius:0;padding:12px 0;margin:0}
#seller-detail-modal .seller-profile-note p{font-size:13px;color:var(--s2h-ui-ink);overflow-wrap:anywhere}
#seller-detail-modal .table-wrap{border:1px solid var(--s2h-ui-line);border-radius:8px;overflow:auto}
#seller-detail-modal .table-wrap th{font-size:12px;color:var(--s2h-ui-muted);background:var(--s2h-ui-surface-soft)}
#seller-detail-modal .table-wrap td{font-size:12px;white-space:normal;min-width:70px;max-width:240px;overflow-wrap:anywhere}
#seller-detail-modal .seller-event-item{border:0;border-bottom:1px solid var(--s2h-ui-line);border-radius:0;margin:0;padding:14px 0}
#seller-detail-modal .seller-event-item small{color:var(--s2h-ui-muted);font-size:11px}
#modal .proposal-intro{background:var(--s2h-ui-brand-soft);border-color:var(--s2h-ui-line);border-radius:8px}
#modal .proposal-intro p,#modal .proposal-status{font-size:12px;color:var(--s2h-ui-muted)}
/* Phase 6 — product workspace. Keep the original brand groups, audit and insights. */
#app .product-workspace{min-width:0}
#app .product-workspace .product-view-tabs{display:flex;gap:18px;align-items:center;border-bottom:1px solid var(--s2h-ui-line);margin:0 0 20px;padding:0;flex-wrap:wrap}
#app .product-workspace .product-view-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;min-height:42px;padding:8px 4px;color:var(--s2h-ui-muted);font-weight:650;font-size:13px}
#app .product-workspace .product-view-tabs button.selected{border-bottom-color:var(--s2h-ui-brand);color:var(--s2h-ui-brand-dark);background:none}
#app .product-workspace .product-toolbar{gap:12px;margin:0 0 12px}
#app .product-workspace .product-toolbar #product-search{max-width:540px}
#app .product-workspace .product-filters button{min-height:36px;font-size:12px;padding:7px 12px}
#app .product-workspace .product-filters button.selected{color:var(--s2h-ui-brand-dark);background:var(--s2h-ui-brand-soft);border-color:#C8E7F0}
#app .product-workspace .ops-product-results{margin:0 0 12px;padding:0 0 12px;color:var(--s2h-ui-muted)}
#app .product-workspace .table-wrap table{min-width:740px}
#app .product-workspace .product-brand-name{font-size:14px;font-weight:700;color:var(--s2h-ui-ink);overflow-wrap:anywhere}
#app .product-workspace .product-brand-name:hover{color:var(--s2h-ui-brand-dark)}
#app .product-workspace .product-alias{color:var(--s2h-ui-muted);font-size:11px;line-height:1.5}
#app .product-workspace .insight-seller-count,#modal .insight-seller-count{color:var(--s2h-ui-brand-dark);background:var(--s2h-ui-brand-soft);border:1px solid #C8E7F0;border-radius:6px;padding:6px 9px;font-size:12px;font-weight:700;white-space:nowrap}
#modal .insight-summary{background:#fff;border:1px solid var(--s2h-ui-line);border-radius:8px;padding:16px}
#modal .insight-summary strong{color:var(--s2h-ui-ink);font-size:18px;overflow-wrap:anywhere}
#modal .insight-summary p{color:var(--s2h-ui-muted);font-size:12px;overflow-wrap:anywhere}
#modal .insight-list-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#modal .insight-list-toolbar input{flex:1 1 180px;min-width:0}
#modal .insight-list-toolbar button{min-height:38px}
#modal .product-family-detail .table-wrap,#modal .insight-seller-table .table-wrap{overflow:auto;border:1px solid var(--s2h-ui-line);border-radius:8px}
#modal .product-family-detail .table-wrap table{min-width:560px}
#modal .insight-seller-table .table-wrap table{min-width:430px}
@media(max-width:760px){
 #app .seller-workspace>.panel,#app .product-workspace>.panel{padding:14px}
 #app .seller-workspace .seller-search{flex-basis:100%;max-width:none}
 #app .seller-workspace .seller-results{margin-left:0}
 #seller-detail-modal .seller-detail-dialog-body{padding:14px}
 #seller-detail-modal .detail-nav{top:-14px}
 #seller-detail-modal .seller-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 #seller-detail-modal .seller-profile-stats .seller-profile-item{border-bottom:1px solid var(--s2h-ui-line)}
 #seller-detail-modal .seller-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #seller-detail-modal .seller-detail-dialog-body .panel{padding:14px}
 #app .product-workspace .product-view-tabs{gap:12px}
}

/* Phase 7 — groupbuy operations, existing lifecycle and trade records. */
#app .ops-schedule-page{width:100%;min-width:0;background:#fff;border:1px solid var(--s2h-ui-line);border-radius:var(--s2h-ui-card-radius);padding:24px;box-shadow:none}
#app .ops-schedule-page .ops-schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;padding:0 0 18px;border-bottom:1px solid var(--s2h-ui-line)}
#app .ops-schedule-page .ops-schedule-heading strong{font-size:20px;line-height:1.4;color:var(--s2h-ui-ink);font-weight:720}
#app .ops-schedule-page .ops-schedule-heading p{font-size:12px;color:var(--s2h-ui-muted);margin:5px 0 0}
#app .ops-schedule-page .ops-schedule-month,#app .ops-schedule-page .ops-schedule-month .month-controls{margin:0;padding:0;border:0}
#app .ops-schedule-page .ops-schedule-toolbar{margin:0 0 16px;padding:0;border:0}
#app .ops-schedule-page .ops-schedule-toolbar-main{gap:12px;margin:0 0 16px}
#app .ops-schedule-page #month-search{max-width:480px;min-height:42px}
#app .ops-schedule-page .ops-schedule-view{border-radius:8px;border:1px solid var(--s2h-ui-line);background:var(--s2h-ui-surface-soft);padding:3px;gap:3px}
#app .ops-schedule-page .ops-schedule-view button{min-height:34px;border:0;border-radius:6px;background:transparent;color:var(--s2h-ui-muted);padding:6px 12px}
#app .ops-schedule-page .ops-schedule-view button.selected{background:#fff;color:var(--s2h-ui-brand-dark);font-weight:700;box-shadow:inset 0 0 0 1px #C8E7F0}
#app .ops-schedule-page .ops-schedule-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0;padding:0;border:0}
#app .ops-schedule-page .ops-schedule-filters button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;min-width:0;min-height:74px;padding:11px 14px;border:1px solid var(--s2h-ui-line);border-radius:8px;background:#fff;color:var(--s2h-ui-muted);text-align:left}
#app .ops-schedule-page .ops-schedule-filters .ops-status-label{font-size:12px;line-height:1.4;color:inherit}
#app .ops-schedule-page .ops-schedule-filters .ops-status-number{font-size:23px;line-height:1.15;color:var(--s2h-ui-ink);font-variant-numeric:tabular-nums}
#app .ops-schedule-page .ops-schedule-filters button.selected{background:var(--s2h-ui-brand-soft);border-color:#B9DFEA;color:var(--s2h-ui-brand-dark)}
#app .ops-schedule-page .ops-schedule-filters button.selected .ops-status-number{color:var(--s2h-ui-brand-dark)}
#app .ops-schedule-page .ops-schedule-results{margin:0 0 12px;padding:0;color:var(--s2h-ui-muted)}
#app .ops-schedule-page .ops-schedule-main{border:0;padding:0;min-width:0}
#app .ops-schedule-page .ops-schedule-main:not(.is-calendar) table{min-width:740px}
#app .ops-schedule-page .ops-schedule-main.is-detail table{min-width:1560px}
#app .ops-schedule-page .ops-schedule-main .table-wrap th{font-size:12px;color:var(--s2h-ui-muted);background:var(--s2h-ui-surface-soft)}
#app .ops-schedule-page .ops-schedule-main .table-wrap td{font-size:13px;vertical-align:middle;padding:13px 12px}
#app .ops-schedule-page .ops-schedule-main .seller-cell{font-size:13px;color:var(--s2h-ui-brand-dark)}
#app .ops-schedule-page .ops-schedule-date{min-width:118px;color:var(--s2h-ui-muted);font-variant-numeric:tabular-nums}
#app .ops-schedule-page .ops-schedule-date span{display:block;font-size:12px;line-height:1.55;white-space:nowrap}
#app .ops-schedule-page .ops-date-start{color:var(--s2h-ui-ink);font-weight:650}
#app .ops-schedule-page .schedule-status{min-height:25px;border-radius:6px;font-size:12px;padding:4px 9px}
#app .ops-schedule-page .schedule-status.is-active{background:var(--s2h-ui-brand-dark);border-color:var(--s2h-ui-brand-dark);color:#fff}
#app .ops-schedule-page .schedule-status.is-upcoming{background:var(--s2h-ui-brand-soft);border-color:#C8E7F0;color:var(--s2h-ui-brand-dark)}
#app .ops-schedule-page .schedule-status.is-completed{background:#EDF1F4;color:#526572}
#app .ops-schedule-page .schedule-status.is-canceled{background:#F5F1F1;color:#805454;border-color:#E7D8D8}
#app .ops-schedule-page .ops-prep-button{min-height:32px;border-radius:6px;white-space:nowrap;padding:6px 9px;font-size:12px}
#app .ops-schedule-page .ops-prep-button.is-ready{background:var(--s2h-ui-brand-soft);border-color:#C8E7F0;color:var(--s2h-ui-brand-dark)}
#app .ops-schedule-page .ops-prep-button.is-unrecorded{background:#fff;color:var(--s2h-ui-muted)}
#app .ops-schedule-page .ops-prep-button:disabled{opacity:.55}
#app .ops-schedule-page .ops-schedule-main.is-detail td.ledger-notes{min-width:150px;max-width:250px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
#app .ops-schedule-page .ops-schedule-note{margin:10px 0 14px;color:var(--s2h-ui-muted)}
#modal.buy-editor-modal .buy-editor-section-title h3{font-size:16px;color:var(--s2h-ui-ink)}
#modal.buy-editor-modal .buy-editor-section-title p,#modal.buy-editor-modal .buy-editor-meta>span{color:var(--s2h-ui-muted);font-size:12px}
#modal.buy-editor-modal .buy-editor-fields{gap:14px 16px}
#modal.buy-editor-modal .buy-editor-fields>.combo-wrap{min-width:0}
#modal.buy-editor-modal .modal-actions .primary{background:var(--s2h-ui-brand-dark);border-color:var(--s2h-ui-brand-dark)}
#modal.buy-editor-modal .modal-actions .primary:hover{background:#006F94;border-color:#006F94}
@media(max-width:900px){
 #app .ops-schedule-page .ops-schedule-filters{gap:6px}
 #app .ops-schedule-page .ops-schedule-filters button{padding:10px 8px;min-height:66px}
}
@media(max-width:760px){
 #app .ops-schedule-page{padding:14px}
 #app .ops-schedule-page .ops-schedule-heading{align-items:flex-start;flex-direction:column;gap:10px}
 #app .ops-schedule-page .ops-schedule-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 #app .ops-schedule-page .ops-schedule-view button{padding:6px 8px}
 #modal.buy-editor-modal .buy-editor-fields{grid-template-columns:minmax(0,1fr)}
}

/* Phase 8 — product insights, real record counts only. */
#app .insight-workspace{min-width:0;display:flex;flex-direction:column;gap:20px}
#app .insight-workspace .insight-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;border:1px solid var(--s2h-ui-line);border-radius:var(--s2h-ui-card-radius);overflow:hidden;background:#fff}
#app .insight-workspace .insight-metrics .metric{min-width:0;margin:0;padding:18px 20px;border:0;border-right:1px solid var(--s2h-ui-line);border-radius:0;box-shadow:none}
#app .insight-workspace .insight-metrics .metric:last-child{border-right:0}
#app .insight-workspace .metric .label{font-size:13px;color:var(--s2h-ui-muted);font-weight:650}
#app .insight-workspace .metric .number{font-size:32px;line-height:1.15;margin:10px 0 6px;font-weight:720;font-variant-numeric:tabular-nums;color:var(--s2h-ui-ink)}
#app .insight-workspace .metric:first-child .number{color:var(--s2h-ui-brand-dark)}
#app .insight-workspace .metric .sub{font-size:12px;color:var(--s2h-ui-muted);line-height:1.5}
#app .insight-workspace>.panel{padding:24px;margin:0;border-radius:var(--s2h-ui-card-radius);box-shadow:none}
#app .insight-workspace .panel-title{margin:0 0 12px}
#app .insight-workspace .panel-description{margin:0 0 16px;color:var(--s2h-ui-muted)}
#app .insight-chart-scroll{overflow-x:auto;max-width:100%;scrollbar-width:thin}
#app .insight-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;min-width:600px;padding:4px 2px 2px}
#app .insight-chart-column{display:flex;flex-direction:column;gap:8px;align-items:center;min-width:0}
#app .insight-chart-column>strong{font-size:13px;color:var(--s2h-ui-ink);font-variant-numeric:tabular-nums}
#app .insight-chart-track{display:flex;align-items:flex-end;justify-content:center;height:128px;width:100%;border-bottom:1px solid var(--s2h-ui-line);background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),var(--s2h-ui-line) calc(25% - 1px),var(--s2h-ui-line) 25%)}
#app .insight-chart-track i{display:block;width:clamp(15px,55%,36px);background:#A6D5E4;border-radius:4px 4px 0 0}
#app .insight-chart-column.is-current .insight-chart-track i{background:var(--s2h-ui-brand)}
#app .insight-chart-column>span{font-size:11px;color:var(--s2h-ui-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
#app .insight-chart-column.is-current>span{font-weight:700;color:var(--s2h-ui-brand-dark)}
#app .insight-no-data{font-size:12px;color:var(--s2h-ui-muted);text-align:center;margin:12px 0 0}
#app .insight-ranking-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
#app .insight-ranking-toolbar input{flex:1 1 200px;max-width:420px;min-height:40px;padding:9px 12px}
#app .insight-ranking-toolbar label{display:flex;align-items:center;gap:8px;color:var(--s2h-ui-muted);font-size:12px;margin-left:auto}
#app .insight-ranking-toolbar select{min-height:36px;padding:7px 10px}
#app .insight-result-count{font-size:12px;color:var(--s2h-ui-muted);margin-bottom:10px}
#app .insight-workspace .table-wrap table{min-width:650px}
#app .insight-workspace .insight-rank{width:48px;color:var(--s2h-ui-muted);font-variant-numeric:tabular-nums}
#app .insight-workspace .insight-product-link{font-size:13px;font-weight:700;color:var(--s2h-ui-ink);text-align:left;overflow-wrap:anywhere}
#app .insight-workspace .insight-product-link:hover{color:var(--s2h-ui-brand-dark)}
#app .insight-workspace .insight-alias-count{display:block;color:var(--s2h-ui-muted);font-size:11px;margin-top:4px}
#app .insight-volume{display:flex;align-items:center;gap:8px;white-space:nowrap}
#app .insight-volume-track{display:block;width:64px;height:5px;border-radius:3px;background:var(--s2h-ui-brand-soft);overflow:hidden}
#app .insight-volume-track i{display:block;height:100%;background:var(--s2h-ui-brand);border-radius:3px}
#app .insight-pagination{border:0;padding:0;margin-top:14px}
#app .insight-workspace>.panel-note{margin:0;color:var(--s2h-ui-muted);line-height:1.7}
@media(max-width:760px){
 #app .insight-workspace{gap:14px}
 #app .insight-workspace .insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app .insight-workspace .insight-metrics .metric{padding:14px}
 #app .insight-workspace .insight-metrics .metric:nth-child(2){border-right:0}
 #app .insight-workspace .insight-metrics .metric:nth-child(-n+2){border-bottom:1px solid var(--s2h-ui-line)}
 #app .insight-workspace .metric .number{font-size:27px}
 #app .insight-workspace>.panel{padding:14px}
 #app .insight-ranking-toolbar label{margin-left:0}
}

/* Phase 9 — follow-up work, activity history and proposal composer. */
#app .reminder-workspace,#app .activity-workspace{min-width:0}
#app .reminder-workspace .reminder-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 20px;border:1px solid var(--s2h-ui-line);border-radius:10px;overflow:hidden}
#app .reminder-workspace .reminder-metrics .metric{border:0;border-right:1px solid var(--s2h-ui-line);border-radius:0;margin:0;padding:18px 20px;box-shadow:none}
#app .reminder-workspace .reminder-metrics .metric:last-child{border-right:0}
#app .reminder-workspace .metric .label{font-size:13px;color:var(--s2h-ui-muted)}
#app .reminder-workspace .metric .number{font-size:29px;line-height:1.2;margin:8px 0 6px;color:var(--s2h-ui-ink)}
#app .reminder-workspace .metric .sub{font-size:12px;color:var(--s2h-ui-muted)}
#app .reminder-workspace>.panel,#app .activity-workspace>.panel{padding:24px;box-shadow:none}
#app .reminder-workspace .detail-note{font-size:13px;color:var(--s2h-ui-muted);margin:0 0 16px}
#app .reminder-workspace .reminder-item{padding:16px 0}
#app .reminder-workspace .reminder-item .row{align-items:center;gap:16px}
#app .reminder-workspace .reminder-copy{flex:1;min-width:0}
#app .reminder-workspace .reminder-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#app .reminder-workspace .seller-name-link{font-size:15px;color:var(--s2h-ui-ink);font-weight:700;overflow-wrap:anywhere}
#app .reminder-workspace .seller-name-link:hover{color:var(--s2h-ui-brand-dark)}
#app .reminder-workspace .reminder-due.is-today{color:var(--s2h-ui-brand-dark);background:var(--s2h-ui-brand-soft);border-color:#C8E7F0}
#app .reminder-workspace .reminder-due.is-overdue{color:#805454;background:#F5F1F1;border-color:#E7D8D8}
#app .reminder-workspace .reminder-copy p{font-size:12px;margin:6px 0 0;overflow-wrap:anywhere;color:var(--s2h-ui-muted)}
#app .reminder-workspace .reminder-date strong{color:var(--s2h-ui-ink)}
#app .reminder-workspace .reminder-item .actions{flex:0 0 auto;gap:6px;align-items:center}
#app .reminder-workspace .reminder-item .actions button{min-height:36px;padding:7px 10px;font-size:12px}
#app .reminder-workspace .reminder-templates{background:var(--s2h-ui-surface-soft);border-color:var(--s2h-ui-line);border-radius:8px;padding:14px}
#app .reminder-workspace .reminder-template strong{font-size:13px;color:var(--s2h-ui-ink)}
#app .reminder-workspace .reminder-template p{font-size:12px;color:var(--s2h-ui-muted)}
#app .reminder-workspace .table-wrap table{min-width:680px}
#app .activity-workspace .table-wrap table{min-width:740px}
#app .activity-workspace .ops-activity-memo{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
#app .activity-workspace .activity-product{display:block;color:var(--s2h-ui-ink);font-size:13px;margin-bottom:4px}
#app .activity-workspace .activity-date{display:block;color:var(--s2h-ui-muted);font-size:11px;margin-bottom:7px}
#app .activity-workspace .ops-activity-toolbar{margin-bottom:12px}
#modal .proposal-intro,#modal .reminder-complete-intro{background:var(--s2h-ui-brand-soft);border:1px solid #C8E7F0;color:var(--s2h-ui-ink);border-radius:8px;padding:14px}
#modal .proposal-actions{gap:8px}
#modal .proposal-actions button{min-height:36px;padding:8px 12px;color:var(--s2h-ui-brand-dark);border-color:#C8E7F0}
#modal .proposal-status{flex:1 1 180px;line-height:1.6}
#modal .proposal-confirm,#modal .reminder-ack{display:flex;align-items:flex-start;gap:8px;line-height:1.6;color:var(--s2h-ui-ink);font-size:12px;margin:8px 0}
#modal .proposal-confirm input[type="checkbox"],#modal .reminder-ack input[type="checkbox"]{width:17px;height:17px;min-height:0;flex:0 0 17px;margin:2px 0 0;padding:0;accent-color:var(--s2h-ui-brand)}
#modal .reminder-complete-intro span{font-size:12px;color:var(--s2h-ui-muted)}
@media(max-width:900px){
 #app .reminder-workspace .reminder-item .row{flex-direction:column;align-items:stretch}
 #app .reminder-workspace .reminder-item .actions{justify-content:flex-start;flex-wrap:wrap}
}
@media(max-width:760px){
 #app .reminder-workspace>.panel,#app .activity-workspace>.panel{padding:14px}
 #app .reminder-workspace .reminder-metrics .metric{padding:12px}
 #app .reminder-workspace .metric .number{font-size:24px}
 #app .reminder-workspace .metric .label,#app .reminder-workspace .metric .sub{font-size:11px}
}

/* Phase 10 — shared interaction details, no new data model. */
#toast.toast{
 z-index:240;bottom:24px;right:24px;max-width:min(420px,calc(100vw - 32px));width:max-content;
 background:var(--s2h-ui-ink);color:#fff;border:1px solid transparent;
 padding:13px 16px;border-radius:var(--s2h-ui-radius);font:500 13px/1.6 var(--s2h-ui-font);
 box-shadow:0 8px 24px rgba(25,47,60,.15);overflow-wrap:anywhere;pointer-events:none
}
#app-loading.app-loading{background:rgba(255,255,255,.82);backdrop-filter:blur(2px)}
#app-loading .loading-inner{gap:12px;color:var(--s2h-ui-ink);padding:24px 30px;border:1px solid var(--s2h-ui-line);border-radius:12px;background:#fff;min-width:210px}
#app-loading .loading-inner strong{font-size:18px;letter-spacing:-.02em;color:var(--s2h-ui-brand-dark)}
#app-loading .loading-inner [data-loading-message]{font-size:13px;color:var(--s2h-ui-muted);text-align:center}
#app-loading .loading-spinner{width:30px;height:30px;border-width:2px;border-color:var(--s2h-ui-brand-soft);border-top-color:var(--s2h-ui-brand);animation:s2h-spin .85s linear infinite}
#modal .modal-fields input:disabled,#modal .modal-fields select:disabled,#modal .modal-fields textarea:disabled{background:var(--s2h-ui-surface-soft);color:var(--s2h-ui-muted);cursor:not-allowed}
#modal .modal-fields input::placeholder,#modal .modal-fields textarea::placeholder{color:var(--s2h-ui-muted)}
#modal .modal-fields input[type=checkbox],#modal .modal-fields input[type=radio]{width:16px;height:16px;min-height:0;padding:0;accent-color:var(--s2h-ui-brand)}
#modal .modal-actions button:disabled,#modal #close-modal:disabled{cursor:wait;opacity:.55}
#modal .modal-save-feedback:not(:empty){margin:16px 0 0;padding:12px 14px;border:1px solid #E7D8D8;border-radius:8px;background:#FAF3F3;color:#963D35;line-height:1.6}
#modal .combo-wrap .combo-options{max-height:240px;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid var(--s2h-ui-control-line);border-radius:8px;padding:5px;background:#fff;box-shadow:0 10px 25px rgba(25,49,58,.12)}
#modal .combo-wrap .combo-option,#modal .combo-wrap .combo-create{min-height:36px;line-height:1.5;font-size:13px;padding:8px 10px;border-radius:6px;white-space:normal;overflow-wrap:anywhere}
#modal .combo-wrap .combo-option.is-highlighted,#modal .combo-wrap .combo-option:hover{background:var(--s2h-ui-brand-soft);color:var(--s2h-ui-brand-dark)}
#modal .combo-wrap .combo-create{color:var(--s2h-ui-brand-dark);border-top:1px solid var(--s2h-ui-line);font-weight:700}
#modal .combo-wrap .combo-empty{color:var(--s2h-ui-muted);font-size:12px}
#app .crm-load-error{border-radius:8px;background:var(--s2h-ui-brand-soft);color:var(--s2h-ui-ink)}
#app .crm-load-error p{color:var(--s2h-ui-muted)}
#app .table-wrap td.empty{padding:34px 14px;text-align:center;color:var(--s2h-ui-muted)}
@media(max-width:760px){
 #toast.toast{right:12px;bottom:12px;max-width:calc(100vw - 24px)}
}
@media(prefers-reduced-motion:reduce){
 #app-loading .loading-spinner{animation:none;border-right-color:var(--s2h-ui-brand)}
}

/* Phase 11 — responsive workspace: preserve readable tables using local scrolling. */
#app.app{width:100%;min-width:0}
#app .main,#app .content,#app #page-body{min-width:0}
#app #page-body>*{max-width:100%;min-width:0}
#app .topbar-left,#app .top-right,#app .heading>div{min-width:0}
#app #breadcrumb-page{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .top-right>.avatar{flex:0 0 26px;border-radius:50%}
#app #whoami{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .top-right>#logout{white-space:nowrap}
#app .topbar>#demo-banner:not(.hidden){flex:0 0 auto;margin:0;max-width:100%;white-space:normal}
#app #page-body :is(.table-wrap,.cal-scroll,.insight-chart-scroll),
#modal .table-wrap,#seller-detail-modal .table-wrap{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
#app .table-wrap:focus-visible,#modal .table-wrap:focus-visible,#seller-detail-modal .table-wrap:focus-visible{outline:2px solid var(--s2h-ui-brand);outline-offset:2px}
#app :is(.panel,.seller-workspace,.product-workspace,.insight-workspace,.reminder-workspace,.activity-workspace,.ops-schedule-page){min-width:0}
#app :is(.panel-title,.ops-major-head,.seller-tools,.product-toolbar,.ops-activity-toolbar,.ops-schedule-toolbar-main,.insight-ranking-toolbar){min-width:0;flex-wrap:wrap}
#app :is(.panel-title,.ops-major-head)>div{min-width:0}
#app :is(.panel-title h2,.ops-major-head h2,.panel-description,.panel-note){overflow-wrap:anywhere}
#app :is(.seller-workspace,.product-workspace,.activity-workspace,.ops-schedule-page) .table-wrap td{overflow-wrap:anywhere}
#app :is(.seller-row-actions,.ops-schedule-view,.product-filters,.ops-seller-filter){max-width:100%}
#app .dashboard-v5 .dashboard-primary-grid>*,
#app .dashboard-v5 .dashboard-secondary-grid>*{min-width:0}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-action{max-width:100%;white-space:nowrap}
#app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-controls{min-width:0}
#app :is(.month-controls,.month-buttons,.cal-display-controls,.cal-week-navigator){max-width:100%;min-width:0}
#app .month-buttons{flex-wrap:wrap}
#app .month-buttons input{min-width:0;max-width:150px}
#app .cal-week-navigator{flex-wrap:wrap}
#app .cal-week-navigator strong{white-space:nowrap}
#modal .modal-panel,#seller-detail-modal .seller-detail-dialog{min-width:0;max-width:100%}
#modal #modal-form,#modal #modal-fields,#seller-detail-modal .seller-detail-dialog-body{min-width:0;min-height:0}
#modal .modal-fields>*{min-width:0;max-width:100%}
#modal .modal-head h2,#seller-detail-modal .seller-detail-dialog-head h2{min-width:0;overflow-wrap:anywhere}
#seller-detail-modal .seller-detail-dialog-head>div{min-width:0}
#modal .modal-actions{flex-wrap:wrap}
#modal .modal-actions button{max-width:100%}
#modal .modal-fields :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select){max-width:100%;min-width:0}
#modal .modal-fields :is(.inline-create,.inline-create-grid,.buy-editor-fields,.combo-wrap,.product-family-detail,.insight-seller-table){min-width:0;max-width:100%}
#seller-detail-modal .seller-profile-header>div,#seller-detail-modal .seller-profile-item{min-width:0}
#seller-detail-modal .seller-detail-actions{max-width:100%;flex-wrap:wrap}
#seller-detail-modal .seller-detail-actions button{max-width:100%}
#seller-detail-modal .seller-detail-dialog-body .panel{min-width:0}
@media(min-width:1201px){
 #app .dashboard-v5 .dashboard-primary-grid{grid-template-columns:minmax(0,1fr) minmax(270px,28%);gap:16px}
 #app .dashboard-v5 .dashboard-primary-aside{display:flex;flex-direction:column}
}
@media(min-width:761px) and (max-width:1200px){
 #app .dashboard-v5 .dashboard-primary-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 #app .dashboard-v5 .dashboard-primary-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #app .topbar{gap:8px}
 #app .top-right{gap:8px}
 #app #today{display:none}
}
@media(min-width:761px) and (max-width:900px){
 #app .topbar-left{flex:1 1 72px}
 #app #whoami{max-width:58px}
 #app .topbar>#demo-banner:not(.hidden){max-width:115px;font-size:10px;padding:5px 7px}
 #app .sidebar .nav-link{gap:8px;padding-inline:8px}
}
@media(max-width:760px){
 #app.app{width:100%;max-width:100%}
 #app .main{width:100%;max-width:100%;min-width:0}
 #app .sidebar{width:100%;max-width:100%;padding:0 12px 8px}
 #app .sidebar .nav{width:100%;max-width:100%;overscroll-behavior-inline:contain}
 #app .sidebar .nav-group{flex:0 0 auto}
 #app .sidebar .nav-link{min-height:40px;height:40px}
 #app .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 8px;padding:8px 12px;height:auto;min-height:56px}
 #app .topbar-left{grid-column:1;grid-row:1}
 #app .top-right{grid-column:2;grid-row:1;justify-content:flex-end;gap:6px;margin:0;min-width:0}
 #app .topbar>#demo-banner:not(.hidden){grid-column:1/-1;grid-row:2;justify-self:start}
 #app .top-right>.avatar{flex-basis:24px;width:24px;height:24px}
 #app #whoami{max-width:60px}
 #app .top-right>#logout{min-height:40px;padding-inline:3px;font-size:12px}
 #app :is(#global-seller-search,#work-alert-button){height:40px;min-height:40px;padding-inline:9px}
 #app .work-alert-popover{right:8px;top:calc(100% + 4px);width:min(370px,calc(100vw - 16px))}
 #app .work-alert-list{max-height:min(55dvh,420px)}
 #app .content,#app .content:has(.dashboard-v5){padding:22px 14px 44px}
 #app .heading{gap:8px;flex-wrap:wrap;align-items:center}
 #app .heading>#add-button{min-height:40px}
 #app .dashboard-v5 .dashboard-primary-aside{display:flex;flex-direction:column}
 #app .dashboard-v5 .dashboard-secondary-grid{grid-template-columns:minmax(0,1fr)}
 #app .dashboard-v5 .dashboard-primary-calendar .ops-major-head{flex-wrap:wrap}
 #app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-controls{gap:8px}
 #app .dashboard-v5 .dashboard-primary-calendar .month-buttons{width:auto;justify-content:flex-start}
 #app .dashboard-v5 .dashboard-primary-aside .ops-work-action{min-height:38px}
 #app .dashboard-v5 .flow-date-add,#app .dashboard-v5 .flow-date-event-action{min-height:38px}
 #app .ops-schedule-page .ops-schedule-view{max-width:100%;width:100%}
 #app .ops-schedule-page .ops-schedule-view button{flex:1 1 0;min-width:0;min-height:38px}
 #app .ops-schedule-page .ops-schedule-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 #app .ops-schedule-page .ops-schedule-filters button{white-space:normal}
 #app .seller-workspace .seller-tools,#app .activity-workspace .ops-activity-toolbar{align-items:stretch}
 #app .product-workspace .product-toolbar #product-search,#app .insight-ranking-toolbar input{max-width:none;flex-basis:100%}
 #app .reminder-workspace .reminder-item .actions button{min-height:40px}
 #modal.modal,#seller-detail-modal.seller-detail-modal{padding:8px}
 #modal .modal-panel,#modal.buy-editor-modal .modal-panel,#modal.prep-modal .modal-panel,#seller-detail-modal .seller-detail-dialog{width:100%;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:10px}
 #modal .modal-head,#modal.buy-editor-modal .modal-head,#modal.prep-modal .modal-head{padding:12px 14px;min-height:52px}
 #modal #modal-fields,#modal.buy-editor-modal #modal-fields,#modal.prep-modal #modal-fields{padding:14px;scrollbar-width:thin}
 #modal .modal-actions,#modal.buy-editor-modal .modal-actions,#modal.prep-modal .modal-actions{padding:10px 14px max(10px,env(safe-area-inset-bottom));min-height:0;gap:8px}
 #modal .modal-actions button{min-height:42px}
 #modal .modal-fields :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px}
 #modal.buy-editor-modal .buy-editor-fields>.combo-wrap>input[type=text]{font-size:16px}
 #modal .combo-wrap .combo-options{max-height:min(200px,35dvh)}
 #seller-detail-modal .seller-detail-dialog-head{padding:12px 14px;gap:8px}
 #seller-detail-modal .seller-detail-dialog-head h2{font-size:17px}
 #seller-detail-modal .seller-detail-dialog-body{padding:12px}
 #seller-detail-modal .detail-nav{top:-12px}
 #seller-detail-modal .seller-detail-actions button{flex:1 1 120px;min-height:40px;white-space:normal}
 #seller-detail-modal .seller-profile-header{gap:10px}
 #seller-detail-modal .seller-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #seller-detail-modal .seller-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 #seller-detail-modal .seller-profile-stats .seller-profile-item:nth-child(2n){border-right:0}
 #seller-detail-modal .seller-profile-stats .seller-profile-item:last-child{grid-column:1/-1;border-bottom:0}
 #toast.toast{bottom:max(12px,env(safe-area-inset-bottom))}
}
@media(max-width:400px){
 #app .top-right>#whoami{display:none}
 #app .topbar{gap:5px}
 #app .top-right{gap:4px}
 #app .content,#app .content:has(.dashboard-v5){padding-inline:12px}
 #app .heading h1{font-size:21px}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric{padding:11px!important}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .label{font-size:12px}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .sub{font-size:11px}
 #app .reminder-workspace .reminder-metrics .metric{padding:10px 8px}
 #app .ops-schedule-page .ops-schedule-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 #seller-detail-modal .seller-profile-item{padding:10px 8px}
 #modal .modal-actions button{min-width:76px}
}
@media(max-height:550px) and (min-width:761px){
 #app .sidebar .brand-home{margin-bottom:12px}
 #app .sidebar .nav{gap:12px}
 #modal.modal,#seller-detail-modal.seller-detail-modal{padding:8px}
 #modal .modal-panel,#modal.buy-editor-modal .modal-panel,#modal.prep-modal .modal-panel,#seller-detail-modal .seller-detail-dialog{max-height:calc(100dvh - 16px)}
 #modal .modal-head,#modal.buy-editor-modal .modal-head,#modal.prep-modal .modal-head{min-height:48px;padding-block:9px}
 #modal .modal-actions,#modal.buy-editor-modal .modal-actions,#modal.prep-modal .modal-actions{min-height:0;padding-block:8px}
}

/* Phase 12 — final QA: containment and readable focus without altering brand. */
#app .topbar{flex-wrap:nowrap}
#app .topbar .work-alert-wrap{flex-shrink:0}
#app .topbar #global-seller-search{flex-shrink:0}
#app .topbar #breadcrumb-page{min-width:0}
#app .table-wrap:focus-visible{outline-offset:-2px}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description{overflow-wrap:anywhere}
#modal .modal-head h2,#seller-detail-modal .seller-detail-dialog-head h2{overflow-wrap:anywhere}
#modal .modal-fields .combo-options{overscroll-behavior:contain}
#modal .modal-fields .combo-option:focus-visible{outline-offset:-2px}
#modal .modal-fields .modal-save-feedback{overflow-wrap:anywhere}
@media(max-width:760px){
 #app .topbar{grid-template-columns:minmax(0,1fr) minmax(0,auto)}
 #app .top-right{max-width:100%}
 #app .topbar .work-alert-popover{max-width:calc(100vw - 16px)}
}
@media(max-width:340px){
 #app .top-right>.avatar{display:none}
 #app .topbar{padding-inline:8px}
 #app .top-right{gap:4px}
}

/* UX refinement 1 — compact dialogs, progressive disclosure, original S2H identity. */
#modal.modal,#seller-detail-modal.seller-detail-modal{background:rgba(23,34,42,.38);backdrop-filter:none}
#modal .modal-panel,#seller-detail-modal .seller-detail-dialog{border-radius:10px;box-shadow:0 16px 48px rgba(20,35,45,.16)}
#modal .modal-head,#modal.buy-editor-modal .modal-head,#modal.prep-modal .modal-head{
 min-height:54px;padding:13px 22px;border-bottom:1px solid #E5E8EB;
}
#modal .modal-head h2,#modal.buy-editor-modal .modal-head h2,#modal.prep-modal .modal-head h2{
 font-size:19px;font-weight:680;color:#20272D;letter-spacing:-.035em;
}
#modal #close-modal{width:30px;height:30px;color:#65717A}
#modal .modal-actions,#modal.buy-editor-modal .modal-actions,#modal.prep-modal .modal-actions{
 min-height:0;padding:11px 22px;gap:8px;border-top:1px solid #E5E8EB;box-shadow:none;
}
#modal .modal-actions button,#modal.buy-editor-modal .modal-actions button,#modal.prep-modal .modal-actions button{
 min-height:36px;min-width:78px;padding:7px 14px;font-size:13px;font-weight:650;border-radius:6px;
}
#modal .modal-actions .primary,#modal.prep-modal .modal-actions .primary{background:var(--s2h-ui-brand-dark);border-color:var(--s2h-ui-brand-dark);color:#fff}
#modal :is(.modal-fields,.compact-form-grid,.buy-editor-fields) label{color:#39434A;font-size:12px;font-weight:550;line-height:1.45}
#modal .modal-fields :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]),select,textarea){
 border:1px solid #DCE2E6;border-radius:6px;background:#fff;color:#242C32;
 font-weight:400;box-shadow:none;margin-top:5px;padding:8px 10px;
}
#modal .modal-fields :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]),select){
 min-height:38px;height:38px;font-size:13px
}
#modal .modal-fields textarea{min-height:66px;font-size:13px}
#modal .modal-fields :is(input,select,textarea):focus{border-color:var(--s2h-ui-brand);outline:1px solid var(--s2h-ui-focus);outline-offset:1px}
#modal .modal-fields :is(input,textarea)::placeholder{color:#75818A}
#modal :is(.compact-form-grid,.buy-editor-fields)>label,#modal :is(.compact-form-grid,.buy-editor-fields)>.combo-wrap{margin:0;min-width:0}
#modal.seller-editor-modal .modal-panel,#modal.buy-editor-modal .modal-panel{width:min(660px,100%);max-height:calc(100dvh - 40px)}
#modal.seller-editor-modal #modal-fields,#modal.buy-editor-modal #modal-fields{padding:16px 22px 18px}
#modal.seller-editor-modal .modal-fields,#modal.buy-editor-modal .modal-fields{display:flex;flex-direction:column;gap:0;min-width:0}
#modal .compact-form-section,#modal.buy-editor-modal .buy-editor-section{padding:0 0 16px;margin:0;border:0;min-width:0}
#modal .compact-form-heading,#modal.buy-editor-modal .buy-editor-section-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 10px;margin:0 0 12px}
#modal .compact-form-heading h3,#modal.buy-editor-modal .buy-editor-section-title h3{font-size:14px;line-height:1.4;font-weight:680;color:#242C32;margin:0}
#modal .compact-form-heading small,#modal.buy-editor-modal .buy-editor-section-title p{font-size:12px;color:#68747C;margin:0}
#modal.buy-editor-modal .buy-editor-section-title .buy-editor-prep-open{margin-left:auto;width:auto;min-height:30px;min-width:0;padding:5px 9px;font-size:11px}
#modal .compact-form-grid,#modal.buy-editor-modal .buy-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px;min-width:0}
#modal .compact-form-grid>.full,#modal.buy-editor-modal .buy-editor-fields>.full{grid-column:1/-1}
#modal.buy-editor-modal .buy-editor-fields>.combo-wrap>input[type=text]{height:38px;min-height:38px;margin-top:5px!important;border-radius:6px}
#modal .required-mark{color:var(--s2h-ui-brand-dark);font-weight:650}
#modal.seller-editor-modal .compact-form-extra,#modal.buy-editor-modal .compact-form-extra{margin:0;padding:0;border:0;border-top:1px solid #E5E8EB}
#modal.seller-editor-modal .compact-form-extra:last-child,#modal.buy-editor-modal .compact-form-extra:last-child{border-bottom:1px solid #E5E8EB}
#modal.seller-editor-modal .compact-form-extra summary,#modal.buy-editor-modal .compact-form-extra summary{
 display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 0;cursor:pointer;
 list-style:none;font-size:13px;font-weight:650;color:#242C32;flex-wrap:wrap;
}
#modal .compact-form-extra summary::-webkit-details-marker{display:none}
#modal .compact-form-extra summary small{font-weight:400;font-size:11px;color:#68747C;margin-left:auto}
#modal.seller-editor-modal .compact-form-extra summary:after,#modal.buy-editor-modal .compact-form-extra summary:after{
 content:"";display:block;width:7px;height:7px;border-right:1.5px solid #65717A;border-bottom:1.5px solid #65717A;
 transform:rotate(45deg);margin:0 4px 3px 4px;flex:0 0 7px;
}
#modal.seller-editor-modal .compact-form-extra[open] summary:after,#modal.buy-editor-modal .compact-form-extra[open] summary:after{transform:rotate(225deg);margin-top:5px}
#modal .compact-form-extra summary:focus-visible{outline:2px solid var(--s2h-ui-brand);outline-offset:1px;border-radius:4px}
#modal .compact-form-extra summary:hover{color:var(--s2h-ui-brand-dark)}
#modal .compact-form-extra>.compact-form-grid,#modal.buy-editor-modal .compact-form-extra>.buy-editor-fields{padding:0 0 16px}
#modal.buy-editor-modal .seller-linked-data{background:var(--s2h-ui-brand-soft);border-left:0;padding:7px 9px;color:#53636C}
#modal .combo-wrap .combo-options{max-height:220px;border-radius:6px}
#modal .combo-wrap .combo-option,#modal .combo-wrap .combo-create{min-height:34px;padding:7px 10px}
@media(max-width:760px){
 #modal .modal-head,#modal.buy-editor-modal .modal-head,#modal.prep-modal .modal-head{min-height:48px;padding:10px 14px}
 #modal .modal-actions,#modal.buy-editor-modal .modal-actions,#modal.prep-modal .modal-actions{padding:9px 14px max(9px,env(safe-area-inset-bottom))}
 #modal .modal-actions button,#modal.buy-editor-modal .modal-actions button,#modal.prep-modal .modal-actions button{min-height:42px}
 #modal.seller-editor-modal .modal-panel,#modal.buy-editor-modal .modal-panel{width:100%;max-height:calc(100dvh - 16px)}
 #modal.seller-editor-modal #modal-fields,#modal.buy-editor-modal #modal-fields{padding:14px}
 #modal .compact-form-grid,#modal.buy-editor-modal .buy-editor-fields{grid-template-columns:minmax(0,1fr);gap:10px}
 #modal .modal-fields :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]),select,textarea){font-size:16px;min-height:42px}
 #modal.buy-editor-modal .buy-editor-fields>.combo-wrap>input[type=text]{height:42px;min-height:42px;font-size:16px}
 #modal .compact-form-extra summary small{font-size:10px}
}

/* UX refinement 2 — fluid workspace and compact dashboard hierarchy. */
#app.app{--s2h-layout-gutter:clamp(24px,2vw,40px)}
#app .content,#app .content:has(.dashboard-v5){width:100%;max-width:none;margin:0;padding:26px var(--s2h-layout-gutter) 60px}
#app .topbar{padding-inline:var(--s2h-layout-gutter)}
#app .heading{margin:0 0 22px;min-height:42px;gap:16px;align-items:center}
#app .heading h1{font-size:24px;line-height:1.3;font-weight:700;color:#20272D;letter-spacing:-.035em}
#app .page-heading-copy{flex:1 1 150px;min-width:0}
#app .dashboard-heading-date{margin:6px 0 0;font-size:13px;line-height:1.5;font-weight:500;color:#606C75}
#app .page-heading-actions,#app .dashboard-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}
#app .page-heading-actions{flex:0 1 auto}
#app .page-heading-actions button{min-height:38px;height:auto;font-size:13px;padding:8px 13px;border-radius:6px;white-space:nowrap}
#app .page-heading-actions .secondary{border-color:#DCE2E6;color:#39434A;font-weight:550}
#app .page-heading-actions .primary{font-weight:650}
#app .sidebar .nav-link span{font-size:14px;font-weight:500}
#app .sidebar .nav-link.active span{font-weight:650}
#app .sidebar .nav-section{font-size:12px;color:#65717A}
#app .topbar-home,#app #breadcrumb-page{font-size:13px}
#app .dashboard-v5{--flow-ink:#20272D;--flow-muted:#606C75;color:var(--flow-ink)}
#app .dashboard-v5 .dashboard-overview{margin:0 0 20px}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard{
 border:1px solid #DFE5E9;border-radius:9px;margin:0;box-shadow:none;
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric{
 min-height:102px;padding:17px 20px!important;border-right:1px solid #E5E8EB;
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric:last-child{border-right:0}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .label{font-size:13px;font-weight:550;color:#46515A}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .number{
 font-size:32px;line-height:1.15;font-weight:700;color:#20272D;letter-spacing:-.035em;margin:8px 0 5px
}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric:first-child .number{color:var(--s2h-ui-brand-dark)}
#app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .sub{font-size:12px;line-height:1.5;color:#606C75}
#app .dashboard-v5 .dashboard-primary-grid{margin:0 0 20px;gap:16px;align-items:start}
#app .dashboard-v5 :is(.dashboard-primary-calendar,.flow-side-main,.dashboard-primary-aside>.panel,.ops-major-prep,.ops-major-activity){
 border-color:#DFE5E9!important;border-radius:9px;box-shadow:none;
}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-calendar{padding:18px!important}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-head h2,#app .dashboard-v5 .ops-major-head h2{font-size:18px;font-weight:670;color:#20272D}
#app .dashboard-v5 .dashboard-primary-calendar .ops-major-head p,#app .dashboard-v5 .ops-major-head p{font-size:13px;color:#606C75}
#app .dashboard-v5 .panel-link{font-size:12px;font-weight:600}
#app .dashboard-v5 .flow-side-main{padding:0 16px 14px}
#app .dashboard-v5 .flow-side-tabs button{font-size:14px;font-weight:550}
#app .dashboard-v5 .flow-side-tabs button.selected{font-weight:650}
#app .dashboard-v5 .dashboard-primary-aside .panel-title h2{font-size:16px;font-weight:650;color:#20272D}
#app .dashboard-v5 .flow-side-main .ops-panel-summary{font-size:12px;color:#606C75}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description strong{font-size:14px;font-weight:650;color:#20272D}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description span{font-size:13px;color:#39434A}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description small{font-size:12px;color:#606C75}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-action{font-size:12px;font-weight:550;min-height:34px;border-radius:6px}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-label{font-size:12px;font-weight:600}
#app .dashboard-v5 .dashboard-secondary-grid{gap:16px}
#app .dashboard-v5 .dashboard-secondary-grid>section{padding:18px}
@media(min-width:1201px){
 #app .dashboard-v5 .dashboard-primary-grid{grid-template-columns:minmax(0,1fr) clamp(300px,27%,420px)}
 #app .dashboard-v5 .dashboard-primary-aside{display:flex;flex-direction:column}
}
@media(min-width:761px) and (max-width:1200px){
 #app.app{--s2h-layout-gutter:24px}
 #app .dashboard-v5 .dashboard-primary-grid{grid-template-columns:minmax(0,1fr)}
 #app .dashboard-v5 .dashboard-primary-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 #app.app{--s2h-layout-gutter:14px}
 #app .content,#app .content:has(.dashboard-v5){padding:20px var(--s2h-layout-gutter) 44px}
 #app .topbar{padding-inline:12px}
 #app .heading{gap:12px;margin-bottom:16px;align-items:flex-start;flex-wrap:wrap}
 #app .heading h1{font-size:22px}
 #app .page-heading-copy{flex:1 1 120px}
 #app .page-heading-actions{gap:6px;justify-content:flex-start}
 #app .page-heading-actions button{min-height:40px;font-size:12px;padding-inline:10px}
 #app .dashboard-heading-actions{gap:6px;justify-content:flex-start}
 #app .sidebar .nav-link span{font-size:12px}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric{min-height:88px;padding:12px!important}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric:nth-child(2){border-right:0}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .number{font-size:28px}
 #app .dashboard-v5 .dashboard-primary-calendar .ops-major-calendar{padding:14px!important}
 #app .dashboard-v5 .dashboard-primary-aside{display:flex;flex-direction:column}
 #app .dashboard-v5 .dashboard-secondary-grid>section{padding:14px}
}
@media(max-width:400px){
 #app.app{--s2h-layout-gutter:12px}
 #app .page-heading-copy{flex-basis:100%}
 #app .page-heading-actions{width:100%}
 #app .dashboard-v5 .dashboard-overview .metrics-dashboard .metric .sub{font-size:11px}
}

/* UX refinement 3 — calendar readability and a bounded, pageable work panel. */
#app #page-body .cal-week-row.cal-week-connected{grid-template-rows:36px repeat(var(--cal-visible-rows),40px) var(--cal-footer,28px)!important}
#app #page-body .cal-week-connected>.cal-range{height:36px!important;min-height:36px!important;padding:2px 8px}
#app #page-body .cal-range-copy{gap:2px}
#app #page-body .cal-range-copy strong{font-size:12px;font-weight:650;line-height:1.2}
#app #page-body .cal-range-copy>span{font-size:11px;font-weight:500;line-height:1.2}
#app #page-body .cal-week-connected>.cal-range-active{background:var(--s2h-ui-brand-dark);color:#fff}
#app #page-body .cal-week-connected>.cal-range-upcoming{background:#DFF1F7;color:#075B77}
#app #page-body .cal-week-connected>.cal-range-completed{background:#F0F2F4;color:#46545D}
#app #page-body .cal-week-connected>.cal-range-opening{box-shadow:inset 0 0 0 1px var(--s2h-ui-brand)!important}
#app #page-body .cal-week-connected>.cal-bg-day .cal-date-head b{font-size:13px;font-weight:650}
#app #page-body .cal-week-connected>.cal-bg-day .cal-date-head small{font-size:11px}
#app #page-body .cal-week-connected>.cal-bg-day.cal-selected{background:#F0F9FC;box-shadow:inset 0 0 0 1px var(--s2h-ui-brand)}
#app #page-body .cal-week-connected>.cal-expand{min-height:24px;font-weight:600;font-size:12px}
#app .dashboard-v5 .dashboard-primary-calendar .ops-calendar-legend{gap:8px 12px;flex-wrap:wrap}
#app .dashboard-v5 .dashboard-primary-calendar .ops-legend-item i{width:10px;height:10px;border-radius:2px}
#app .dashboard-v5 .dashboard-primary-calendar .ops-legend-item i.is-active{background:var(--s2h-ui-brand-dark);border-color:var(--s2h-ui-brand-dark)}
#app .dashboard-v5 .dashboard-primary-calendar .ops-legend-item i.is-upcoming{background:#DFF1F7;border:1px solid #B5DCE8}
#app .dashboard-v5 .dashboard-primary-calendar .ops-legend-item i.is-past{background:#F0F2F4;border:1px solid #DCE2E6}
#app .dashboard-v5 .dashboard-primary-aside .ops-task-filters button{font-size:12px;min-height:32px;padding:5px 8px}
#app .dashboard-v5 .dashboard-primary-aside .ops-task-filters button span{font-size:11px}
#app .dashboard-v5 .dashboard-task-scroll,#app .dashboard-v5 .dashboard-date-scroll{
 max-height:clamp(260px,45vh,500px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;padding-right:3px;
}
#app .dashboard-v5 :is(.dashboard-task-scroll,.dashboard-date-scroll):focus-visible{outline:2px solid var(--s2h-ui-brand);outline-offset:-2px}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-row{min-height:0;padding:10px 0;row-gap:3px;column-gap:8px}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-row.is-opening .ops-work-label{color:var(--s2h-ui-brand-dark);font-weight:700}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-row.is-overdue .ops-work-label{color:#805454}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description{gap:2px}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description strong{line-height:1.35}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description span,#app .dashboard-v5 .dashboard-primary-aside .ops-work-description small{line-height:1.4}
#app .dashboard-v5 .dashboard-task-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid #E5E8EB}
#app .dashboard-v5 .dashboard-task-pagination>span{font-size:12px;color:#606C75;font-variant-numeric:tabular-nums}
#app .dashboard-v5 .dashboard-task-pagination>div{display:flex;gap:5px}
#app .dashboard-v5 .dashboard-task-pagination button{min-height:30px;padding:5px 9px;font-size:12px;border-radius:6px}
#app .dashboard-v5 .flow-date-event-copy strong{font-size:14px;font-weight:650;line-height:1.4}
#app .dashboard-v5 .flow-date-event-copy span{font-size:13px;line-height:1.4}
#app .dashboard-v5 .flow-date-event-copy small{font-size:12px;color:#606C75}
@media(max-width:760px){
 #app .dashboard-v5 .dashboard-task-scroll,#app .dashboard-v5 .dashboard-date-scroll{max-height:420px}
 #app .dashboard-v5 .dashboard-task-pagination button{min-height:38px}
}

/* UX refinement 4 — consistent list density and local table navigation. */
#app #page-body .workspace-data-table{
 max-height:min(620px,65vh);overflow:auto;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-gutter:stable;border:1px solid #E0E5E8;border-radius:8px;
}
#app #page-body .workspace-data-table thead th{
 position:sticky;top:0;z-index:2;background:#F6F8F9;color:#46515A;
 font-size:12px;font-weight:650;line-height:1.5;padding:12px 14px;border-bottom:1px solid #DCE2E6;
}
#app #page-body .workspace-data-table tbody td{
 font-size:13px;line-height:1.55;color:#303A42;padding:12px 14px;vertical-align:middle;border-bottom:1px solid #E9EDF0;
}
#app #page-body .workspace-data-table tbody tr:last-child td{border-bottom:0}
#app #page-body .workspace-data-table tbody tr:hover td{background:#F8FBFC}
#app #page-body .workspace-data-table tbody td.empty{padding:36px 16px;color:#65717A;text-align:center}
#app #page-body .workspace-data-table :is(.seller-name-link,.seller-cell,.product-brand-name,.insight-product-link){
 font-size:14px;font-weight:650;line-height:1.45;color:#20272D;
}
#app #page-body .workspace-data-table :is(.seller-name-link,.seller-cell,.product-brand-name,.insight-product-link):hover{color:var(--s2h-ui-brand-dark)}
#app #page-body .workspace-data-table :is(.seller-alias,.product-alias,.insight-alias-count,.seller-trade-cell small){font-size:12px;color:#65717A;line-height:1.5}
#app #page-body .workspace-data-table .mini-button{
 min-height:32px;padding:6px 10px;border:1px solid #DCE2E6;border-radius:6px;font-size:12px;font-weight:550;color:#39434A;white-space:nowrap
}
#app #page-body .workspace-data-table .mini-button:hover{background:var(--s2h-ui-brand-soft);color:var(--s2h-ui-brand-dark);border-color:#B8DDE8}
#app #page-body .workspace-data-table .instagram-profile-link{color:var(--s2h-ui-brand-dark);font-weight:500}
#app #page-body .workspace-data-table :is(.ops-schedule-date,.insight-rank){font-variant-numeric:tabular-nums}
#app #page-body .workspace-data-table .seller-row-actions{gap:6px}
#app #page-body .workspace-data-table .ops-activity-memo{min-width:220px;max-width:600px;white-space:pre-wrap}
#app #page-body .workspace-data-table .ledger-notes{white-space:pre-wrap}
#app .workspace-list-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 12px}
#app .workspace-list-controls label{display:flex;align-items:center;gap:7px;color:#606C75;font-size:12px}
#app .workspace-list-controls select{width:auto;min-height:36px;padding:7px 10px;border-radius:6px;font-size:13px}
#app :is(.seller-tools,.product-toolbar,.ops-activity-toolbar,.ops-schedule-toolbar-main,.insight-ranking-toolbar) input[type=search]{
 border-color:#DCE2E6;border-radius:6px;min-height:40px;font-size:13px;color:#303A42;background:#fff;
}
#app :is(.seller-pagination,.product-pagination,.ops-activity-pagination){display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 0;padding:0;border:0;color:#606C75;font-size:12px}
#app :is(.seller-pagination,.product-pagination,.ops-activity-pagination)>div{display:flex;align-items:center;gap:8px}
#app :is(.seller-pagination,.product-pagination,.ops-activity-pagination) button{min-height:34px;padding:6px 12px;border:1px solid #DCE2E6;border-radius:6px;background:#fff;color:#39434A;font-size:12px;font-weight:550}
#app :is(.seller-pagination,.product-pagination,.ops-activity-pagination) button:hover:not(:disabled){background:var(--s2h-ui-brand-soft);color:var(--s2h-ui-brand-dark)}
#app :is(.seller-pagination,.product-pagination,.ops-activity-pagination) button:disabled{opacity:.45}
#seller-detail-modal .table-wrap th,#modal .table-wrap th{background:#F6F8F9;color:#46515A;font-weight:650}
#seller-detail-modal .table-wrap td,#modal .table-wrap td{color:#303A42;font-size:13px;line-height:1.55}
@media(max-width:760px){
 #app #page-body .workspace-data-table{max-height:55dvh;scrollbar-gutter:auto}
 #app #page-body .workspace-data-table thead th,#app #page-body .workspace-data-table tbody td{padding:10px 12px;font-size:12px}
 #app .workspace-list-controls{justify-content:flex-start;gap:8px}
 #app .workspace-list-controls select{min-height:40px}
 #app :is(.seller-pagination,.product-pagination,.ops-activity-pagination) button{min-height:40px}
}

/* Work list hotfix: rows must keep intrinsic height inside a bounded flex scroller. */
#app .dashboard-v5 .dashboard-primary-aside .ops-work-list{
 display:flex;flex-direction:column;align-items:stretch;min-width:0;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-list>.ops-work-row{
 flex:0 0 auto;height:auto;min-height:88px;
 grid-template-columns:minmax(0,1fr) auto;grid-template-rows:max-content max-content;
 align-content:center;align-items:center;column-gap:12px;row-gap:4px;
 padding:12px 0;box-sizing:border-box;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-row>.ops-work-label{
 grid-column:1;grid-row:1;line-height:1.4;min-width:0;overflow-wrap:anywhere;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-row>.ops-work-description{
 grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:flex-start;
 min-width:0;min-height:min-content;gap:3px;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-description :is(strong,span,small){
 display:block;position:static;max-width:100%;white-space:normal;overflow:visible;
 overflow-wrap:anywhere;word-break:normal;text-overflow:clip;line-height:1.45;
}
#app .dashboard-v5 .dashboard-primary-aside .ops-work-row>.ops-work-action{
 grid-column:2;grid-row:1 / 3;align-self:center;justify-self:end;flex-shrink:0;
}
#app .dashboard-v5 .dashboard-date-scroll .flow-date-event{flex:0 0 auto;height:auto;min-height:72px}
#app .dashboard-v5 .dashboard-date-scroll .flow-date-event-copy :is(strong,span,small){
 white-space:normal;overflow-wrap:anywhere;line-height:1.45;
}
@media(max-width:760px){
 #app .dashboard-v5 .dashboard-primary-aside .ops-work-list>.ops-work-row{min-height:88px;padding:10px 0;column-gap:8px}
}

/* Seller table: predictable column proportions and meaningful wrapping. */
#app #page-body .seller-workspace .workspace-data-table table{width:100%;min-width:1080px;table-layout:fixed}
#app #page-body .seller-workspace .workspace-data-table :is(th,td):nth-child(1){width:17%}
#app #page-body .seller-workspace .workspace-data-table :is(th,td):nth-child(2){width:19%}
#app #page-body .seller-workspace .workspace-data-table :is(th,td):nth-child(3){width:12%}
#app #page-body .seller-workspace .workspace-data-table :is(th,td):nth-child(4){width:17%}
#app #page-body .seller-workspace .workspace-data-table :is(th,td):nth-child(5){width:10%}
#app #page-body .seller-workspace .workspace-data-table :is(th,td):nth-child(6){width:11%}
#app #page-body .seller-workspace .workspace-data-table :is(th,td):nth-child(7){width:14%}
#app #page-body .seller-workspace .workspace-data-table tbody td{white-space:normal;word-break:keep-all;overflow-wrap:anywhere;min-width:0;max-width:none}
#app #page-body .seller-workspace .workspace-data-table tbody td:nth-child(3){white-space:normal;word-break:keep-all;overflow-wrap:normal}
#app #page-body .seller-workspace .workspace-data-table tbody td:nth-child(5){white-space:nowrap;font-variant-numeric:tabular-nums}
#app #page-body .seller-workspace .workspace-data-table :is(.seller-name-link,.seller-alias,.instagram-profile-link,.seller-trade-cell strong,.seller-trade-cell small){
 display:block;width:auto;max-width:100%;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;text-align:left;line-height:1.45
}
#app #page-body .seller-workspace .workspace-data-table .instagram-profile-link{display:inline;word-break:normal;overflow-wrap:anywhere}
#app #page-body .seller-workspace .workspace-data-table .seller-row-actions{display:flex;flex-wrap:wrap;gap:5px;white-space:normal}
#app #page-body .seller-workspace .workspace-data-table .seller-row-actions button{flex:0 0 auto}
#app #page-body .seller-workspace .workspace-data-table tbody td.empty{width:auto;white-space:normal;text-align:center}

/* Dashboard row alignment: reserve the same date and action columns for every item. */
#app .dashboard-v5 .dashboard-secondary-grid .prep-dashboard-row{
 display:grid;grid-template-columns:104px minmax(0,1fr) 84px;
 gap:12px;align-items:center;min-height:76px;height:auto;padding:12px 0;
}
#app .dashboard-v5 .prep-dashboard-due{
 display:block;min-width:0;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;
 font-size:12px;line-height:1.45;font-weight:650;font-variant-numeric:tabular-nums;
}
#app .dashboard-v5 .prep-dashboard-description{min-width:0;gap:3px}
#app .dashboard-v5 .prep-dashboard-description :is(strong,span,small){
 display:block;max-width:100%;min-width:0;line-height:1.5;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;
}
#app .dashboard-v5 .prep-dashboard-description strong{font-size:14px;font-weight:650;color:#20272D}
#app .dashboard-v5 .prep-dashboard-open{
 width:100%;min-width:0;min-height:34px;padding:6px 8px;
 border-radius:6px;border-color:#DCE2E6;font-size:12px;font-weight:550;justify-self:end;
}
#app .dashboard-v5 .dashboard-secondary-grid .ops-activity-list .activity-row{
 display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:12px;align-items:start;
}
#app .dashboard-v5 .dashboard-secondary-grid .ops-activity-list .activity-row>small{
 text-align:right;white-space:normal;overflow-wrap:anywhere;line-height:1.5;font-variant-numeric:tabular-nums;
}
#app .dashboard-v5 .dashboard-secondary-grid .ops-activity-list .activity-row>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
 #app .dashboard-v5 .dashboard-secondary-grid .prep-dashboard-row{grid-template-columns:84px minmax(0,1fr) 72px;gap:8px}
 #app .dashboard-v5 .prep-dashboard-open{min-height:38px;font-size:11px}
 #app .dashboard-v5 .dashboard-secondary-grid .ops-activity-list .activity-row{grid-template-columns:minmax(0,1fr) 94px;gap:8px}
}
@media(max-width:420px){
 #app .dashboard-v5 .dashboard-secondary-grid .prep-dashboard-row{grid-template-columns:76px minmax(0,1fr);align-items:start}
 #app .dashboard-v5 .prep-dashboard-due{grid-column:1;grid-row:1;padding-top:3px}
 #app .dashboard-v5 .prep-dashboard-description{grid-column:2;grid-row:1}
 #app .dashboard-v5 .prep-dashboard-open{grid-column:2;grid-row:2;width:auto;justify-self:start}
 #app .dashboard-v5 .dashboard-secondary-grid .ops-activity-list .activity-row{grid-template-columns:minmax(0,1fr)}
 #app .dashboard-v5 .dashboard-secondary-grid .ops-activity-list .activity-row>small{text-align:left}
}

/* Login entry — one original S2H mark, then a restrained form reveal. */
#login.login{background:#fff;padding:24px;align-items:center;justify-content:center;overflow-y:auto}
#login .login-box{width:min(380px,100%);max-width:380px;margin:auto;padding:24px 0}
#login .login-center-logo{width:170px;max-width:100%;height:auto;margin:0 auto 36px;filter:none;transform-origin:center}
#login #login-form{display:flex;flex-direction:column;gap:17px;margin:0}
#login #login-form label{margin:0;color:#303A42;font-size:13px;font-weight:600;line-height:1.5}
#login #login-form input{display:block;width:100%;height:48px;min-height:48px;margin-top:7px;border:1px solid #DCE2E6;border-radius:6px;padding:11px 13px;background:#fff;color:#20272D;font-size:14px;box-shadow:none;transition:border-color .16s,outline-color .16s}
#login #login-form input::placeholder{color:#7D8890}
#login #login-form input:focus{border-color:var(--s2h-ui-brand);outline:2px solid var(--s2h-ui-focus);outline-offset:0}
#login #login-form .password-field{margin-top:7px}
#login #login-form .password-field input{margin:0;padding-right:48px}
#login #login-form .login-submit{height:48px;margin:3px 0 0;border-radius:6px;background:var(--s2h-ui-brand);border-color:var(--s2h-ui-brand);font-weight:650}
#login #login-form .login-submit:hover{background:var(--s2h-ui-brand-dark);border-color:var(--s2h-ui-brand-dark)}
#login #login-error:empty{display:none}
#login #login-error:not(:empty){margin:0;line-height:1.55;overflow-wrap:anywhere}
#login.login-enter .login-center-logo{animation:s2h-login-logo-intro 1.24s cubic-bezier(.22,.75,.25,1) both}
#login.login-enter #login-form{animation:s2h-login-form-intro .48s cubic-bezier(.22,.75,.25,1) .76s both}
#login.login-enter:has(#login-form :focus) .login-center-logo,#login.login-enter #login-form:focus-within{animation:none;opacity:1;transform:none}
@keyframes s2h-login-logo-intro{
 0%{opacity:0;transform:translateY(112px) scale(.92)}
 33%{opacity:1;transform:translateY(112px) scale(1.06)}
 52%{opacity:1;transform:translateY(112px) scale(1.06)}
 100%{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes s2h-login-form-intro{
 from{opacity:0;transform:translateY(12px)}
 to{opacity:1;transform:translateY(0)}
}
@media(max-width:760px){
 #login.login{padding:22px}
 #login .login-box{width:min(380px,100%);padding:20px 0}
 #login .login-center-logo{width:150px;margin-bottom:32px}
 #login #login-form input{font-size:16px}
}
@media(max-height:480px){
 #login.login{align-items:flex-start}
 #login .login-box{margin:auto}
 #login .login-center-logo{margin-bottom:20px}
 #login.login-enter .login-center-logo,#login.login-enter #login-form{animation:none}
}
@media(prefers-reduced-motion:reduce){
 #login.login-enter .login-center-logo,#login.login-enter #login-form{animation:none;opacity:1;transform:none}
 #login #login-form input{transition:none}
}

/* Interaction polish — motion on entry, never on routine data refresh. */
:root{--s2h-motion-fast:140ms;--s2h-motion-normal:190ms;--s2h-motion-ease:cubic-bezier(.2,.75,.25,1)}
#modal.modal:not(.hidden),#seller-detail-modal.seller-detail-modal:not(.hidden){animation:s2h-overlay-in var(--s2h-motion-fast) ease-out both}
#modal.modal:not(.hidden) .modal-panel,#seller-detail-modal.seller-detail-modal:not(.hidden) .seller-detail-dialog{animation:s2h-dialog-in var(--s2h-motion-normal) var(--s2h-motion-ease) both;transform-origin:center}
#app .work-alert-popover:not(.hidden){animation:s2h-popover-in var(--s2h-motion-fast) var(--s2h-motion-ease) both;transform-origin:top right}
#modal .combo-options:not(.hidden){animation:s2h-popover-in var(--s2h-motion-fast) var(--s2h-motion-ease) both;transform-origin:top left}
#modal .inline-create:not(.hidden),#modal details[open]>.compact-form-grid,#modal details[open]>.buy-editor-fields{animation:s2h-section-in var(--s2h-motion-normal) var(--s2h-motion-ease) both}
#toast.toast:not(.hidden){animation:s2h-toast-in var(--s2h-motion-normal) var(--s2h-motion-ease) both}
#app-loading.app-loading:not(.hidden) .loading-inner{animation:s2h-section-in var(--s2h-motion-fast) var(--s2h-motion-ease) both}
#app :is(.primary,.secondary,.mini-button,.nav-link,.panel-link,.ops-work-action,.flow-date-event-action,.prep-dashboard-open),#modal :is(.primary,.secondary,.mini-button),#seller-detail-modal :is(.primary,.secondary,.mini-button),#login .login-submit{
 transition:background-color var(--s2h-motion-fast) ease,color var(--s2h-motion-fast) ease,border-color var(--s2h-motion-fast) ease,transform 100ms ease;
}
#app :is(.primary,.secondary,.mini-button,.ops-work-action,.flow-date-event-action,.prep-dashboard-open):active:not(:disabled),#modal :is(.primary,.secondary,.mini-button):active:not(:disabled),#seller-detail-modal :is(.primary,.secondary,.mini-button):active:not(:disabled),#login .login-submit:active:not(:disabled){transform:translateY(1px)}
#modal .compact-form-extra summary:after{transition:transform var(--s2h-motion-fast) var(--s2h-motion-ease)}
@keyframes s2h-overlay-in{from{background-color:transparent}to{background-color:rgba(23,34,42,.38)}}
@keyframes s2h-dialog-in{from{opacity:0;transform:translateY(10px) scale(.987)}to{opacity:1;transform:none}}
@keyframes s2h-popover-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@keyframes s2h-section-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes s2h-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
 #modal.modal:not(.hidden),#seller-detail-modal.seller-detail-modal:not(.hidden),#modal.modal:not(.hidden) .modal-panel,#seller-detail-modal.seller-detail-modal:not(.hidden) .seller-detail-dialog,#app .work-alert-popover:not(.hidden),#modal .combo-options:not(.hidden),#modal .inline-create:not(.hidden),#modal details[open]>.compact-form-grid,#modal details[open]>.buy-editor-fields,#toast.toast:not(.hidden),#app-loading.app-loading:not(.hidden) .loading-inner{animation:none}
 #app :is(.primary,.secondary,.mini-button,.nav-link,.panel-link,.ops-work-action,.flow-date-event-action,.prep-dashboard-open),#modal :is(.primary,.secondary,.mini-button),#seller-detail-modal :is(.primary,.secondary,.mini-button),#login .login-submit,#modal .compact-form-extra summary:after{transition:none;transform:none}
}
