:root {
  --product-image-size:64px; --product-image-size-mobile:48px; --product-image-size-compact:40px; --product-name-size:14px; --product-code-size:12px;
  --blue:#3182f6; --blue-strong:#1b64da; --blue-bg:#eaf2fe; --blue-bg-2:#f4f8ff;
  /* Reference waterfall family. Status and original workbook colors are separate. */
  --chart-series-0:#3182f6; --chart-series-1:#8ebcff; --chart-series-2:#1859b7; --chart-series-3:#aeb8c5; --chart-series-4:#5c8ed0;
  --ink:#191f28; --ink-2:#333d4b; --gray:#4e5968; --gray-2:#6b7684; --gray-3:#8b95a1;
  --line:#e5e8eb; --line-soft:#f2f4f6; --bg:#fff; --bg-soft:#f9fafb; --canvas:#f4f5f7;
  --green:#04a574; --green-bg:#e6f7f0; --orange:#c47a00; --orange-bg:#fff4e6;
  --red:#c92a2a; --red-bg:#fff0f0; --violet:#6d5bd0; --violet-bg:#f2efff;
  /* Signed numbers: blue increase / red decrease; separate from status and series.
     증감 색 하나(KD 2026-11-16): AU MD판매데이터 증감 서식 [Blue]…;[Red]\-… 의 파랑/빨강을 화면 대비 AA 톤으로.
     흰 바탕 대비 파랑 #1b64da 5.4:1 · 빨강 #c92a2a 5.5:1 (Excel 원색 #ff0000은 4.0:1로 AA 미달). 0·모름은 회색. 다크 모드 없음. */
  --value-positive:var(--blue-strong); --value-negative:var(--red);
  --value-neutral:var(--gray); --value-unknown:var(--gray-2);
  --attention-ink:#8a5700;
  --type-page:32px; --type-panel:22px; --type-section:18px;
  --type-metric:32px; --type-metric-support:26px; --type-body:14px; --type-note:13px;
  /* Type scale (KD 2026-11-11): page 32 > panel 22 > section 18 > card 16 > body 14 > note 13 > caption 12.
     Chart text sits under body copy: names 13, axis/legend 12, values 12 (bold). Never under 11px on any screen. */
  --type-card:16px; --type-caption:12px;
  --type-chart-label:13px; --type-chart-axis:12px; --type-chart-value:12px;
  --font:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',system-ui,sans-serif;
  --shadow:0 1px 2px rgba(0,0,0,.035),0 7px 24px rgba(17,24,39,.055);
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px;
  --control-height:44px; --control-radius:10px; --card-radius:16px; --dialog-radius:20px;
  --control-font-size:16px; --field-label-size:14px;
  --control-border:var(--line); --control-focus:rgba(49,130,246,.28);
  --control-chevron:linear-gradient(45deg,transparent 50%,var(--gray-2) 50%),linear-gradient(135deg,var(--gray-2) 50%,transparent 50%);
}
/* Shared task depth, not additional navigation. Original workbook styling is untouched. */
.workflow-layer-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;margin:16px 0;background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--control-radius)}
.workflow-layers .workflow-layer-tabs [role="tab"]{flex:1 1 auto;min-width:44px;min-height:var(--control-height);padding:8px 12px;border:0;border-radius:8px;background:transparent;color:var(--gray);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.workflow-layers .workflow-layer-tabs [aria-selected="true"]{background:var(--bg);color:var(--blue-strong);box-shadow:0 1px 3px #191f2814}
.workflow-layers [role="tabpanel"][hidden]{display:none!important}
.workflow-layers [role="tabpanel"]{min-width:0;outline-offset:3px}
.workflow-layers [role="tab"]:focus-visible,.workflow-layers [role="tabpanel"]:focus-visible{outline:2px solid var(--blue)}
.object-context{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;font-size:13px;color:var(--gray-2);overflow-wrap:anywhere}
.object-state{display:grid;gap:4px;margin:12px 0;font-size:13px;color:var(--gray)}
.object-state strong{color:var(--ink-2);font-weight:600}
.object-state small{font-size:12px;color:var(--gray-2)}
.inventory-context-color>th,.inventory-context-color>td{background:var(--blue-bg-2)}
.chart-axis-line{stroke:var(--gray-3);stroke-width:1;vector-effect:non-scaling-stroke;fill:none}
.chart-axis-title{fill:var(--gray-2);font-family:var(--font);font-size:12px;font-weight:400}
.chart-axis-captions{display:flex;justify-content:space-between;gap:12px;margin:12px 0 8px;font-size:12px;color:var(--gray-2)}
/* Opt in on the number only, never on its product name, source text or chart series. */
.number-value[data-number-tone="positive"]{--number-color:var(--value-positive)}
.number-value[data-number-tone="negative"]{--number-color:var(--value-negative)}
.number-value[data-number-tone="neutral"]{--number-color:var(--value-neutral)}
.number-value[data-number-tone="unknown"]{--number-color:var(--value-unknown)}
.number-value[data-number-tone="plain"]{--number-color:var(--ink)}
.number-value[data-number-tone]{color:var(--number-color)}
.number-value[data-number-tone] .money-trigger,.number-value[data-number-tone] .money-popover strong{color:var(--number-color)}
/* Existing numeric comparisons use the same zero/unknown states without new controls. */
:where(.sales-answer,.sales-year-summary,.inventory-sales,.style-year-body,.market-reference,.market-context-source,.meeting-year-lane,.meeting-other) .neutral{color:var(--value-neutral)}
:where(.sales-answer,.sales-year-summary,.inventory-sales,.style-year-body,.market-reference,.market-context-source,.meeting-year-lane) .unknown{color:var(--value-unknown)}
.sales-comparison-visual.neutral>header :is(b,strong),.sales-current-change.neutral strong{color:var(--value-neutral)}
.sales-comparison-visual.unknown>header :is(b,strong),.sales-current-change.unknown strong{color:var(--value-unknown)}
/* Safari's native menulist ignores the intended control height. Keep the native
   choice menu/keyboard behavior, but share the dashboard's 44px visual target.
   Listboxes and multiple selection retain their own native layout. */
select:not([multiple]):not([size]) {
  /* A single type contract outranks legacy screen-specific font shorthands. */
  font-size:var(--control-font-size)!important;
  font-family:var(--font)!important;
  font-weight:500!important;
  /* As with type, legacy feature selectors must not create a new control skin.
     Layout width/margins remain owned by the containing workflow. */
  -webkit-appearance:none!important;
  appearance:none!important;
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  min-height:44px!important;
  height:44px!important;
  line-height:22px!important;
  padding:10px 38px 10px 12px!important;
  border:1px solid var(--control-border)!important;
  border-radius:var(--control-radius)!important;
  color:var(--ink)!important;
  box-shadow:none!important;
  background-color:var(--bg)!important;
  background-image:var(--control-chevron)!important;
  background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%!important;
  background-size:5px 5px!important;
  background-repeat:no-repeat!important;
  text-overflow:ellipsis;
}
/* Native select owns the arrow, including inside the older select wrapper. */
.select-control:has(>select:not([multiple]):not([size]))::after{display:none!important}
select:not([multiple]):not([size]):focus-visible{outline:3px solid var(--control-focus)!important;outline-offset:2px!important}
select:not([multiple]):not([size]):disabled{opacity:.5!important;cursor:not-allowed}
select:not([multiple]):not([size])[aria-invalid=true]{border-color:var(--red)!important}
select:not([multiple]):not([size])[data-active=true]{color:var(--blue-strong)!important;background-color:var(--blue-bg)!important}
/* Actions are still native disclosure/buttons, not counterfeit choice menus. */
.library-actions>summary,.inventory-table-refine>summary{border-radius:var(--control-radius);min-height:var(--control-height)}
.library-actions>summary::after,.inventory-table-refine>summary::after{content:'';display:inline-block;flex:0 0 10px;width:10px;height:5px;margin-left:6px;align-self:center;background-image:var(--control-chevron);background-position:left center,right center;background-size:5px 5px;background-repeat:no-repeat;transform:none}
.library-actions[open]>summary::after,.inventory-table-refine[open]>summary::after{transform:rotate(180deg)}
.library-actions-sheet{position:absolute;right:0;top:calc(100% + 6px);z-index:12;display:grid;gap:var(--space-1);width:220px;max-width:calc(100vw - 56px);padding:var(--space-2);border:1px solid var(--line);border-radius:var(--card-radius);background:var(--bg);box-shadow:var(--shadow)}
.library-actions-sheet>:is(button,a){border-radius:var(--control-radius)!important;font-family:var(--font)!important;line-height:1.5}
select :is(option,optgroup){font-size:var(--control-font-size);font-family:var(--font)}
body :is(label,.control-label){font-size:var(--field-label-size)!important;font-weight:500;color:var(--ink-2)}
body :is(label,.sales-field)>span:first-child:not(.sr-only):not(:has(select)){font-size:var(--field-label-size)!important}
body :is(input[type=search],input[type=text],input[type=url],input[type=date],input[type=number],textarea){font-size:var(--control-font-size)!important}
/* 대화창·입력 글자색(KD 2026-11-11 디자인 통일): 브라우저 기본 검정(#000) 대신 본문 글자색. */
dialog{color:var(--ink)}
body :is(input,textarea){color:var(--ink)}
/* 제목 바탕값(KD 2026-11-11 글자 체계): 화면 규칙이 없는 제목도 브라우저 기본(h2 24px·h3 18.72px)이나 부모 회색을 물려받지 않게 한다. 특이도 0이라 화면 규칙이 있으면 그쪽이 이긴다. */
:where(#app,body>dialog,.admin-page) :where(h1,h2,h3){color:var(--ink)}
:where(#app,body>dialog) :where(h2){font-size:var(--type-panel)}
:where(#app,body>dialog) :where(h3){font-size:var(--type-section)}
body :is(.library-actions>summary,.library-actions-sheet>button,.library-actions-sheet>a,.inventory-table-refine>summary,.sales-field>button[aria-haspopup],[role=combobox],button[aria-haspopup=listbox]){font-size:var(--control-font-size)!important;font-weight:500!important}
body .library-actions-sheet>span{font-size:var(--field-label-size);font-weight:600}
/* Checkbox choices are values, not the smaller field captions. */
body .category-picker-row>span:first-child,body .category-picker-row>span{font-size:var(--control-font-size)!important;font-weight:500}
/* Admin pages (사용자 관리 · 목표·상품 정보 수정 · 데이터 변경 이력) share the app's type scale (KD 2026-11-11):
   title = page title, buttons = control size, the way back is one plain link style. Layout stays per page. */
.admin-page h1{font-size:var(--type-page);line-height:1.25;font-weight:750;letter-spacing:-.035em;color:var(--ink)}
.admin-page header small{font-size:var(--type-caption)}
.admin-page button,.admin-page header a,.admin-page nav a{font-size:var(--control-font-size)}
.admin-page header a,.admin-page nav a{color:var(--blue-strong);font-weight:600;text-decoration:none}
.admin-page header a:hover,.admin-page nav a:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.admin-page h1{font-size:26px}}
/* dashboard.css의 공통 표 머리(th 9px)를 11px 하한 위로. #app 화면은 dashboard-experience.css가 따로 정하고, 이 줄은 시장 인사이트처럼 그 파일을 쓰지 않는 화면에 닿는다(KD 2026-11-11). */
body th{font-size:var(--type-caption)}
/* iOS Safari 날짜 입력은 기본 모양일 때 고유 최소 폭으로 칸·창 밖까지 넘친다(KD 2026-11-12 전사 현황 기간 창 캡처).
   사이트의 모든 날짜 칸(전사 현황·판매 분석·MD 보고·관리 화면·시장 인사이트)에 같은 규칙을 쓴다. iOS 에서만 적용한다. */
@supports (-webkit-touch-callout:none){body input[type=date]{-webkit-appearance:none;appearance:none;box-sizing:border-box;min-width:0;max-width:100%;min-height:var(--control-height,44px);text-align:left}body input[type=date]::-webkit-date-and-time-value{text-align:left}}
