/* BOSAI DX v7 - visual hierarchy / readable UI */
:root{
  --ui7-navy:#162532;
  --ui7-orange:#f36c21;
  --ui7-bg:#f2f5f7;
  --ui7-line:#dfe5e9;
  --ui7-muted:#667580;
  --ui7-red:#df4c4c;
  --ui7-yellow:#e29b17;
  --ui7-green:#239c64;
}
html,body{font-size:15px;background:var(--ui7-bg)}
body{letter-spacing:.005em}
.sidebar{width:auto;padding:24px 17px;background:var(--ui7-navy)}
.brand{padding-bottom:28px}.brandmark{width:48px;height:48px;border-radius:16px;font-size:20px}.brandname{font-size:18px}.brandname small{font-size:10px;margin-top:4px}
.nav{gap:8px}.nav a{padding:11px 13px;font-size:14px;border-radius:14px}.nav-ico{width:36px;height:36px;border-radius:11px;font-size:17px;filter:grayscale(1)}
.watch{padding:15px}.watch b{font-size:13px}.watch small{font-size:10px}
.topbar{height:82px;padding:0 32px}.title{font-size:24px;letter-spacing:-.02em}.title small{font-size:12px;margin-top:5px}.pill{height:42px;padding:0 15px;font-size:12px}.avatar{width:42px;height:42px}
.content{max-width:1580px;padding:28px 32px 48px}
.card,.setting-card,.summary-card,.form-card,.product-gallery,.product-info-panel,.quote-sheet{border-color:var(--ui7-line);box-shadow:0 12px 34px rgba(22,37,50,.065)}
.card{padding:24px;border-radius:26px}.card-head{margin-bottom:20px;gap:16px}.card-title{font-size:21px;line-height:1.25;letter-spacing:-.02em}.card-sub{font-size:12px;line-height:1.55;margin-top:5px}.mini-link{font-size:12px;padding:8px 10px;border-radius:10px;background:#fff5ef}
.btn{height:48px;padding:0 18px;border-radius:14px;font-size:13px}.toolbar{gap:10px;margin-bottom:18px}.search,.select{height:48px;border-radius:14px;font-size:13px}
.status{font-size:12px;padding:7px 11px}.status:before{width:8px;height:8px}

/* Main KPI cards: label + large circular number */
.kpis{gap:14px;margin-bottom:18px}.kpi{min-height:112px;padding:17px 18px;border-radius:22px;grid-template-columns:52px 1fr;gap:14px}.kpi-ico{width:52px;height:52px;border-radius:16px;font-size:25px;filter:grayscale(1);background:#eef2f4}.kpi>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.kpi b{order:2;width:72px;height:72px;flex:0 0 72px;border-radius:50%;display:grid;place-items:center;background:#f1f4f6;color:var(--ui7-navy);font-size:24px;line-height:1;letter-spacing:-.04em;border:4px solid #e3e9ed}.kpi small{order:1;font-size:13px;color:#485965;font-weight:900;line-height:1.35;margin:0}.kpi:nth-child(1) b{background:#fff3ec;border-color:#ffd8c2;color:#c85418}.kpi:nth-child(2) b{background:#ecf8f2;border-color:#ccebdc;color:#1d8254}.kpi:nth-child(3) b{background:#fff8e9;border-color:#f9e1ab;color:#b27509}.kpi:nth-child(4) b{background:#fff0f0;border-color:#f8d0d0;color:#c63d3d}

/* Common rows and metrics */
.stock-row{min-height:82px;grid-template-columns:68px minmax(190px,1.5fr) 120px 120px 145px 130px;padding:14px 15px;border-radius:19px;gap:12px}.thumb{width:58px;height:58px;border-radius:16px;font-size:28px;filter:grayscale(1)}.stock-name{font-size:15px}.stock-meta{font-size:11px;margin-top:4px}.metric b{font-size:22px}.metric small{font-size:10px;margin-top:3px}.bar{height:11px;margin-top:7px}
.company{min-height:68px;padding:14px 16px;border-radius:18px}.company b{font-size:14px}.company small{font-size:11px;margin-top:3px;display:block}.company-list{gap:11px}
.quick{min-height:122px;padding:17px;border-radius:20px}.quick .ico{font-size:30px;filter:grayscale(1)}.quick b{font-size:14px;margin-top:13px}.quick small{font-size:11px;margin-top:4px}
.action-btn{padding:17px;border-radius:18px;font-size:13px}.action-btn strong{font-size:27px}.time-row{font-size:12px;grid-template-columns:90px 48px 1fr 100px}.time-ico{width:44px;height:44px;font-size:21px;filter:grayscale(1)}.time-row b{font-size:13px}.time-qty{font-size:15px}

/* Dashboard: today's action cards and balance */
.check-grid{gap:13px}.check-card{padding:18px;border-radius:20px;min-height:142px}.check-card .icon{font-size:30px;filter:grayscale(1)}.check-card b{font-size:16px;margin-top:12px}.check-card small{font-size:11px;margin-top:4px;display:block}.visual-card{border-radius:26px;padding:24px;min-height:220px}.visual-card .card-title{font-size:20px}.ring{width:144px;height:144px}.ring:before{width:104px;height:104px}.ring b{font-size:32px}.visual-caption{font-size:12px}
.ai-note{padding:20px 22px;border-radius:24px;grid-template-columns:62px 1fr auto;gap:16px}.ai-bubble{width:62px;height:62px;border-radius:20px;font-size:16px}.ai-note b{font-size:16px}.ai-note p{font-size:12px;margin-top:5px}

/* v6 category cards - keep the approved visual language, slightly reinforce it */
.stock-section-v6 .card-title{font-size:23px}.stock-section-v6 .card-sub{font-size:12px}.stock-card-v6{border-radius:22px!important;padding:20px!important;min-height:188px!important}.stock-icon-v6{width:58px!important;height:58px!important;border-radius:17px!important}.stock-icon-v6 svg{width:30px!important;height:30px!important}.stock-name-v6{font-size:21px!important}.stock-note-v6{font-size:11px!important}.stock-score-v6{width:76px!important;height:76px!important;flex:0 0 76px}.stock-score-v6 strong{font-size:27px!important}.stock-progress-v6{height:17px!important;margin-top:21px!important}.stock-foot-v6{font-size:12px!important;margin-top:11px!important}

/* BCP / report */
.bcp-score{grid-template-columns:270px 1fr;gap:20px}.shield{height:260px;border-radius:28px}.shield .shape{width:145px;height:168px}.shield b{font-size:42px}.report-hero{grid-template-columns:300px 1fr;gap:18px}.score-panel{border-radius:28px;padding:24px}.score-orbit{width:190px;height:190px}.score-orbit:after{width:148px;height:148px}.score-orbit strong{font-size:52px}.score-orbit small{font-size:11px;margin-top:72px}.mini-chart{height:190px}.mini-chart span{font-size:10px}.matrix{gap:12px}.matrix-cell{padding:17px;border-radius:18px}.matrix-cell .micon{font-size:30px;filter:grayscale(1)}.matrix-cell b{font-size:21px}.matrix-cell small{font-size:10px;margin-top:4px}.report-action{padding:17px;border-radius:18px}.report-action .ico{font-size:28px;filter:grayscale(1)}.report-action b{font-size:12px}

/* Settings / users / notifications */
.people-grid{gap:14px}.person-card{padding:17px;border-radius:20px;min-height:82px}.person-avatar{width:54px;height:54px;border-radius:17px;font-size:22px}.person-card b{font-size:14px}.person-card small{font-size:11px}.role-badge{font-size:10px;padding:7px 9px}.setting-grid{gap:14px}.setting-card{padding:21px;border-radius:23px}.setting-icon{width:56px;height:56px;border-radius:17px;font-size:27px;filter:grayscale(1)}.setting-value{font-size:38px}.setting-label{font-size:12px;margin-top:5px}.stepper button{width:42px;height:42px}.stepper strong{font-size:22px}

/* EC: make category, product, money and status readable */
.ec-crumb{font-size:11px;margin-bottom:17px}.category-strip{gap:11px;margin-bottom:18px}.category-chip{padding:15px 10px;border-radius:19px;min-height:96px}.category-chip .ci{font-size:34px;filter:grayscale(1)}.category-chip b{font-size:12px;margin-top:8px}.recommend{padding:27px;border-radius:28px;grid-template-columns:1fr 240px}.recommend h1{font-size:31px;line-height:1.25}.recommend p{font-size:13px;line-height:1.7}.recommend-visual{font-size:120px;filter:grayscale(1)}
.products{gap:14px}.product{padding:16px;border-radius:21px}.product-img{height:150px;font-size:65px;filter:grayscale(1)}.product h3{font-size:15px;line-height:1.45}.product .price,.price{font-size:22px}.buy{height:44px;font-size:12px}.ghost-buy{height:44px;font-size:12px;border-radius:13px}
.product-page{gap:20px}.product-gallery,.product-info-panel{border-radius:27px;padding:23px}.product-main-img{height:420px;font-size:160px;filter:grayscale(1)}.product-info-panel h1{font-size:31px;line-height:1.3}.product-code{font-size:11px}.product-price{font-size:39px}.product-price small{font-size:12px}.spec-pills span{font-size:11px;padding:8px 11px}.stock-ok{font-size:12px;padding:13px}.qty-line{font-size:13px}.ai-fit b{font-size:14px}.ai-fit p{font-size:11px}
.cart-layout{grid-template-columns:minmax(0,1fr) 380px;gap:18px}.cart-item{padding:17px;border-radius:20px;grid-template-columns:82px 1fr 130px 130px}.cart-thumb{width:76px;height:76px;font-size:36px;filter:grayscale(1)}.cart-item h3{font-size:15px}.cart-item small{font-size:11px}.cart-price{font-size:16px}.summary-card{padding:22px;border-radius:24px}.sum-row{font-size:12px;padding:10px 0}.sum-row.total{font-size:15px}.sum-row.total b{font-size:28px}.quote-note{font-size:11px}
.flow-step{padding:13px;font-size:11px;border-radius:16px}.form-card{padding:21px;border-radius:23px}.form-card h3{font-size:16px}.option-row{padding:14px}.option-row b{font-size:13px}.option-row small{font-size:10px}.field label{font-size:11px}.field input,.field select,.field textarea{font-size:13px;padding:12px}
.quote-sheet{padding:32px;border-radius:26px}.quote-title{font-size:34px}.quote-meta{font-size:11px}.quote-customer{font-size:14px}.quote-table th,.quote-table td{font-size:12px;padding:13px 10px}.quote-total .sum-row{font-size:12px}
.complete-hero{padding:40px;border-radius:30px}.complete-icon{width:94px;height:94px;font-size:42px}.complete-hero h1{font-size:31px}.complete-hero p{font-size:12px}.complete-card{padding:20px;border-radius:20px}.complete-card .ico{font-size:32px;filter:grayscale(1)}.complete-card b{font-size:14px}.complete-card small{font-size:10px}
.order-card{padding:18px;border-radius:20px;grid-template-columns:125px 1fr auto}.order-no{font-size:11px}.order-date{font-size:17px}.order-item-icon{width:52px;height:52px;font-size:25px;filter:grayscale(1)}.order-items b{font-size:14px}.order-items small{font-size:10px}.order-total b{font-size:21px}.order-total small{font-size:10px}.track-dot{width:46px;height:46px}.track-step:before{top:22px}.track-step b{font-size:11px}.track-step small{font-size:9px}

/* Scan page */
.scan-shell{max-width:560px;border-radius:34px;padding:20px}.scan-head{padding:20px}.scan-head b{font-size:17px}.camera{height:330px}.scan-result{padding:0 20px 20px}.scan-result h2{font-size:21px}.scan-stock{padding:17px}.scan-stock b{font-size:16px}.counter button{width:44px;height:44px}.counter strong{font-size:24px}

/* Admin */
.admin-grid{gap:14px}.admin-tile{padding:22px;border-radius:23px;min-height:165px}.admin-tile .big{font-size:42px}.admin-tile small{font-size:11px;margin-top:4px}

/* De-emphasize colorful emoji where the old mock still uses them */
.kpi-ico,.thumb,.quick .ico,.time-ico,.category-chip .ci,.product-img,.product-main-img,.cart-thumb,.order-item-icon,.matrix-cell .micon,.report-action .ico,.setting-icon,.complete-card .ico,.recommend-visual{filter:grayscale(1) saturate(0)}

@media(max-width:1180px){
  .kpi b{width:66px;height:66px;flex-basis:66px;font-size:22px}.stock-row{grid-template-columns:60px minmax(160px,1fr) 105px 105px}.cart-layout{grid-template-columns:1fr}.summary-card{position:static}.product-page{grid-template-columns:1fr}.product-main-img{height:320px}.bcp-score{grid-template-columns:1fr}.report-hero{grid-template-columns:1fr}
}
@media(max-width:1050px){
  .topbar{padding:0 24px}.content{padding:24px}.kpis{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
  html,body{font-size:14px}.topbar{height:68px;padding:0 16px}.title{font-size:19px}.title small{font-size:10px}.content{padding:16px 12px 30px}.card{padding:17px;border-radius:20px}.card-head{margin-bottom:15px}.card-title{font-size:18px}.card-sub{font-size:10px}.mini-link{font-size:10px}
  .kpis{grid-template-columns:1fr 1fr;gap:9px}.kpi{min-height:94px;padding:11px 12px;grid-template-columns:38px 1fr;gap:8px}.kpi-ico{width:38px;height:38px;border-radius:12px;font-size:19px}.kpi>div:last-child{gap:6px}.kpi b{width:54px;height:54px;flex-basis:54px;border-width:3px;font-size:18px}.kpi small{font-size:10px}
  .check-grid{grid-template-columns:1fr 1fr}.check-card{padding:14px;min-height:126px}.check-card b{font-size:14px}.check-card small{font-size:10px}.visual-card{min-height:190px;padding:18px}.ring{width:122px;height:122px}.ring:before{width:90px;height:90px}.ring b{font-size:28px}
  .ai-note{grid-template-columns:48px 1fr;padding:15px}.ai-bubble{width:48px;height:48px;border-radius:16px}.ai-note b{font-size:14px}.ai-note p{font-size:10px}
  .stock-row{min-height:72px;grid-template-columns:52px 1fr 78px;padding:10px}.thumb{width:48px;height:48px}.stock-name{font-size:13px}.metric b{font-size:18px}
  .stock-section-v6 .card-title{font-size:19px}.stock-card-v6{padding:16px!important;min-height:164px!important}.stock-icon-v6{width:50px!important;height:50px!important}.stock-name-v6{font-size:18px!important}.stock-score-v6{width:64px!important;height:64px!important;flex-basis:64px}.stock-score-v6 strong{font-size:22px!important}.stock-progress-v6{height:14px!important}
  .category-strip{grid-template-columns:repeat(3,1fr)}.category-chip{min-height:86px;padding:12px 7px}.category-chip .ci{font-size:28px}.category-chip b{font-size:10px}.recommend{grid-template-columns:1fr 80px;padding:20px}.recommend h1{font-size:23px}.recommend p{font-size:11px}.recommend-visual{font-size:62px}
  .product-main-img{height:245px;font-size:100px}.product-info-panel h1{font-size:24px}.product-price{font-size:31px}.cart-item{grid-template-columns:60px 1fr auto;padding:13px}.cart-thumb{width:56px;height:56px}.cart-item h3{font-size:13px}.cart-price{font-size:14px}.quote-sheet{padding:17px}.quote-title{font-size:27px}.complete-hero{padding:28px 18px}.complete-hero h1{font-size:24px}
  .people-grid,.setting-grid{grid-template-columns:1fr}.person-card{padding:14px}.setting-value{font-size:34px}.matrix{grid-template-columns:1fr 1fr}.matrix-cell b{font-size:18px}.report-actions{grid-template-columns:1fr 1fr}
  .scan-shell{max-width:none;padding:0;border-radius:0}.camera{height:280px}.scan-result h2{font-size:18px}
}
/* Dashboard balance card aligned with the same white-card / circular-metric language */
.visual-card.orange{background:#fff;color:var(--ui7-navy);border:1px solid var(--ui7-line);box-shadow:0 12px 34px rgba(22,37,50,.065)}
.visual-card.orange .ring{background:conic-gradient(var(--ui7-orange) 0 84%,#edf1f4 84% 100%)}
.visual-card.orange .ring:before{background:#fff}
.visual-card.orange .visual-caption{color:var(--ui7-muted);font-weight:900}

/* =========================================================
   BOSAI DX v8 - unified visual system
   Approved basis: 備蓄カテゴリ別充足率
   ========================================================= */
:root{
  --ui8-navy:#162532;--ui8-navy2:#203444;--ui8-orange:#f36c21;
  --ui8-bg:#f2f5f7;--ui8-line:#dfe5e9;--ui8-muted:#667580;
  --ui8-red:#df4c4c;--ui8-yellow:#e29b17;--ui8-green:#239c64;
}
html,body{font-size:16px;background:var(--ui8-bg);color:#1b2934}
body{letter-spacing:0}
.ui-icon,.emoji-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:middle;flex:none}
.nav-ico .ui-icon{width:19px;height:19px}.nav-ico{filter:none!important}
.mobile-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block;margin:0 auto 3px}
.kpi-ico .emoji-icon,.thumb .emoji-icon,.quick .ico .emoji-icon,.time-ico .emoji-icon,.setting-icon .emoji-icon,.matrix-cell .micon .emoji-icon,.report-action .ico .emoji-icon,.category-chip .ci .emoji-icon,.complete-card .ico .emoji-icon,.order-item-icon .emoji-icon{width:30px;height:30px}
.product-img .emoji-icon,.product-main-img .emoji-icon,.recommend-visual .emoji-icon{width:42%;height:42%;max-width:150px;max-height:150px}
.inline-icon{width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.16em}

/* Typography scale unified across every page */
.topbar{height:86px}.title{font-size:26px!important;line-height:1.12;font-weight:950;letter-spacing:-.035em}.title small{font-size:12px!important;line-height:1.35;margin-top:6px;font-weight:800;color:var(--ui8-muted)}
.card-title,.visual-card .card-title{font-size:22px!important;line-height:1.22;font-weight:950;letter-spacing:-.025em}.card-sub{font-size:12px!important;line-height:1.55;margin-top:6px;font-weight:800;color:var(--ui8-muted)}
.stock-name{font-size:15px!important}.stock-meta{font-size:11px!important}.metric b{font-size:22px!important}.metric small{font-size:10px!important}
.btn{font-size:13px;font-weight:950}.status{font-size:12px;font-weight:950}.mini-link{font-size:12px;font-weight:950}

/* Icon language: single-color line icons, backgrounds carry status */
.kpi-ico,.thumb,.quick .ico,.time-ico,.setting-icon,.matrix-cell .micon,.report-action .ico,.category-chip .ci,.complete-card .ico,.order-item-icon,.product-img,.product-main-img,.recommend-visual{filter:none!important;color:var(--ui8-navy)}
.kpi-ico,.thumb,.setting-icon,.time-ico{background:#eef2f4!important}

/* Approved category-card rhythm applied to generic cards */
.card,.setting-card,.person-card,.summary-card,.form-card,.product-gallery,.product-info-panel,.quote-sheet,.admin-tile,.matrix-cell,.report-action,.category-chip,.product,.cart-item,.order-card{border-color:var(--ui8-line)!important}
.card{padding:24px;border-radius:26px}.card-head{margin-bottom:20px}
.bar{height:14px!important;border-radius:999px;background:#edf1f4}.bar span{border-radius:999px}

/* Dashboard game-like score zone - intentionally unlike standard cards */
.score-zone-v8{display:grid;grid-template-columns:minmax(480px,1.35fr) minmax(360px,.65fr);gap:16px;margin-bottom:18px}
.score-hero-v8{min-height:315px;border-radius:32px;padding:28px 30px;color:#fff;background:radial-gradient(circle at 78% 15%,rgba(243,108,33,.35),transparent 27%),linear-gradient(145deg,#132430,#21394a);box-shadow:0 20px 50px rgba(20,37,50,.18);position:relative;overflow:hidden}
.score-hero-v8:after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;border:1px solid rgba(255,255,255,.07);right:-90px;bottom:-130px;box-shadow:0 0 0 38px rgba(255,255,255,.025),0 0 0 76px rgba(255,255,255,.018)}
.score-level-v8{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:8px 12px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);font-size:11px;font-weight:950;letter-spacing:.08em}
.score-level-v8 .emoji-icon{width:17px;height:17px;color:#ff9a5a}
.score-main-v8{display:grid;grid-template-columns:180px 1fr;gap:26px;align-items:center;margin-top:18px;position:relative;z-index:1}
.score-ring-v8{width:174px;height:174px;border-radius:50%;background:conic-gradient(#ff8240 0 78%,rgba(255,255,255,.12) 78% 100%);display:grid;place-items:center;position:relative;box-shadow:0 16px 35px rgba(0,0,0,.18)}
.score-ring-v8:before{content:"";position:absolute;width:136px;height:136px;border-radius:50%;background:#182c3a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.score-number-v8{position:relative;text-align:center;line-height:.9}.score-number-v8 strong{font-size:58px;letter-spacing:-.07em}.score-number-v8 small{font-size:12px;font-weight:900;color:#9fb0bc;display:block;margin-top:8px;letter-spacing:.05em}
.score-copy-v8 h2{font-size:28px;margin:0 0 8px;letter-spacing:-.035em}.score-copy-v8 p{margin:0;color:#b8c7d1;font-size:13px;font-weight:800;line-height:1.6}.score-next-v8{margin-top:20px;max-width:420px}.score-next-head-v8{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:950;color:#dbe4ea}.score-next-head-v8 b{color:#ff9a5a;font-size:14px}.score-xp-v8{height:13px;background:rgba(255,255,255,.12);border-radius:999px;margin-top:8px;overflow:hidden}.score-xp-v8 span{display:block;height:100%;width:72%;background:linear-gradient(90deg,#f36c21,#ff9e5f);border-radius:inherit}
.rank-dots-v8{display:flex;gap:7px;margin-top:15px}.rank-dot-v8{width:32px;height:7px;border-radius:999px;background:rgba(255,255,255,.12)}.rank-dot-v8.done{background:#f36c21}.rank-dot-v8.current{background:#ffbc91;box-shadow:0 0 0 3px rgba(243,108,33,.15)}
.score-side-v8{display:grid;grid-template-columns:1fr 1fr;gap:12px}.score-mini-v8{background:#fff;border:1px solid var(--ui8-line);border-radius:24px;padding:18px;display:grid;grid-template-columns:50px 1fr;gap:13px;align-items:center;box-shadow:0 12px 32px rgba(22,37,50,.055)}
.score-mini-v8 .mini-ico{width:50px;height:50px;border-radius:16px;background:#eef2f4;display:grid;place-items:center;color:var(--ui8-navy)}.score-mini-v8 .mini-ico .emoji-icon{width:28px;height:28px}.score-mini-v8 strong{font-size:27px;line-height:1;letter-spacing:-.045em}.score-mini-v8 small{display:block;margin-top:5px;font-size:11px;color:var(--ui8-muted);font-weight:900}.score-mini-v8.warn strong{color:#bd780b}.score-mini-v8.alert strong{color:#c84444}.score-mini-v8.good strong{color:#1d8254}
.mission-v8{grid-column:1/-1;background:#fff8f4;border:1px solid #f5d2c1;border-radius:24px;padding:17px 18px}.mission-title-v8{font-size:13px;font-weight:950;color:#a84e24;display:flex;align-items:center;gap:8px}.mission-list-v8{display:grid;gap:9px;margin-top:12px}.mission-row-v8{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;background:#fff;border:1px solid #f0e6e0;border-radius:15px;padding:10px 11px}.mission-row-v8 .mi{width:34px;height:34px;border-radius:11px;background:#f2f4f5;display:grid;place-items:center;color:var(--ui8-navy)}.mission-row-v8 .mi .emoji-icon{width:20px;height:20px}.mission-row-v8 b{font-size:12px}.mission-row-v8 span{font-size:12px;font-weight:950;color:#d65d22;background:#fff0e7;padding:6px 8px;border-radius:999px}

/* Stock registration */
.register-source-v8{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.source-card-v8{border:1px solid var(--ui8-line);border-radius:22px;padding:18px;background:#fff;display:grid;grid-template-columns:54px 1fr;gap:13px;align-items:center;cursor:pointer}.source-card-v8.active{border-color:#f0a57c;background:#fff8f4;box-shadow:0 0 0 3px rgba(243,108,33,.07)}.source-card-v8 .si{width:54px;height:54px;border-radius:16px;background:#eef2f4;display:grid;place-items:center;color:var(--ui8-navy)}.source-card-v8 .si .emoji-icon{width:30px;height:30px}.source-card-v8 b{font-size:15px}.source-card-v8 small{display:block;font-size:10px;color:var(--ui8-muted);margin-top:4px;line-height:1.45}.form-section-v8{border-top:1px solid var(--ui8-line);padding-top:20px;margin-top:20px}.form-section-v8 h3{font-size:17px;margin:0 0 14px}.form-grid-v8{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field-v8{display:grid;gap:6px}.field-v8.full{grid-column:1/-1}.field-v8 label{font-size:11px;font-weight:950;color:#53636f}.field-v8 input,.field-v8 select,.field-v8 textarea{height:46px;border:1px solid var(--ui8-line);border-radius:13px;background:#fff;padding:0 13px;font-size:13px}.field-v8 textarea{height:88px;padding-top:12px;resize:vertical}.jan-input-v8{display:grid;grid-template-columns:1fr auto;gap:8px}.jan-input-v8 .btn{height:46px}.lot-table-v8{display:grid;gap:8px}.lot-row-v8{display:grid;grid-template-columns:1.1fr 1fr .8fr auto;gap:8px;align-items:end;padding:12px;border:1px solid var(--ui8-line);border-radius:16px;background:#fafbfc}

/* JAN stocktake */
.jan-camera-v8{margin:18px;height:300px;border-radius:22px;background:linear-gradient(145deg,#212d39,#0f171f);display:grid;place-items:center;position:relative;overflow:hidden;color:#fff}.jan-frame-v8{width:82%;height:46%;border:3px solid #ff8240;border-radius:16px;position:absolute}.jan-lines-v8{width:58%;height:90px;display:flex;gap:5px;align-items:stretch;justify-content:center;opacity:.9}.jan-lines-v8 i{display:block;background:#fff}.jan-lines-v8 i:nth-child(1){width:3px}.jan-lines-v8 i:nth-child(2){width:7px}.jan-lines-v8 i:nth-child(3){width:3px}.jan-lines-v8 i:nth-child(4){width:10px}.jan-lines-v8 i:nth-child(5){width:4px}.jan-lines-v8 i:nth-child(6){width:7px}.jan-lines-v8 i:nth-child(7){width:3px}.jan-lines-v8 i:nth-child(8){width:9px}.jan-scan-line-v8{position:absolute;width:76%;height:2px;background:#ff8240;box-shadow:0 0 12px #ff8240;animation:janScan 2.1s ease-in-out infinite}@keyframes janScan{0%,100%{transform:translateY(-58px)}50%{transform:translateY(58px)}}
.stocktake-flow-v8{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}.stocktake-step-v8{border:1px solid var(--ui8-line);border-radius:16px;padding:12px;text-align:center;background:#fff}.stocktake-step-v8 .emoji-icon{width:26px;height:26px;color:var(--ui8-navy)}.stocktake-step-v8 b{display:block;font-size:11px;margin-top:7px}.stocktake-step-v8.active{border-color:#f1b18c;background:#fff8f4}

/* Bigger section headers and stable data scale */
.section-tabs a{font-size:12px;font-weight:950}.setting-value{font-size:40px!important}.product-info-panel h1{font-size:30px!important}.recommend h1{font-size:30px!important}.quote-title{font-size:34px!important}.complete-hero h1{font-size:30px!important}

@media(max-width:1100px){.score-zone-v8{grid-template-columns:1fr}.score-side-v8{grid-template-columns:repeat(3,1fr)}.mission-v8{grid-column:1/-1}.register-source-v8{grid-template-columns:1fr 1fr}}
@media(max-width:720px){
  .topbar{height:70px}.title{font-size:21px!important}.title small{font-size:10px!important}.card-title,.visual-card .card-title{font-size:19px!important}.card-sub{font-size:10px!important}
  .score-hero-v8{min-height:auto;padding:21px;border-radius:24px}.score-main-v8{grid-template-columns:120px 1fr;gap:17px}.score-ring-v8{width:118px;height:118px}.score-ring-v8:before{width:91px;height:91px}.score-number-v8 strong{font-size:40px}.score-number-v8 small{font-size:9px}.score-copy-v8 h2{font-size:20px}.score-copy-v8 p{font-size:10px}.score-next-v8{margin-top:14px}.score-side-v8{grid-template-columns:1fr 1fr}.score-mini-v8{padding:13px;grid-template-columns:40px 1fr;border-radius:19px}.score-mini-v8 .mini-ico{width:40px;height:40px}.score-mini-v8 strong{font-size:22px}.score-mini-v8 small{font-size:9px}.mission-v8{padding:14px;border-radius:20px}.mission-row-v8{grid-template-columns:30px 1fr auto;padding:9px}.mission-row-v8 b{font-size:10px}
  .register-source-v8{grid-template-columns:1fr}.source-card-v8{padding:14px}.form-grid-v8{grid-template-columns:1fr}.field-v8.full{grid-column:auto}.lot-row-v8{grid-template-columns:1fr 1fr}.lot-row-v8 .btn{grid-column:1/-1}.jan-camera-v8{height:250px}.stocktake-flow-v8{grid-template-columns:1fr 1fr 1fr}
}
.register-source-v8{grid-template-columns:repeat(4,1fr)}
@media(max-width:1200px){.register-source-v8{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.register-source-v8{grid-template-columns:1fr}}
