:root{--ink:#20241a;--muted:#7d8172;--green:#4b5a22;--lime:#c4d47c;--line:#e5e6da;--bg:#f5f6f0;--nav:#272d1b}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.65 'Segoe UI','Yu Gothic UI','Microsoft YaHei',sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-.8px;line-height:1.3;margin-bottom:0}h2{font-size:17px;letter-spacing:-.3px;margin-bottom:20px}h3{font-size:16px;margin-bottom:5px}small{display:block;color:var(--muted);font-size:12px}label{display:block;color:#485960;font-size:14px;margin-bottom:17px}input,select,textarea{display:block;width:100%;border:1px solid #dbded7;border-radius:7px;background:white;color:var(--ink);padding:11px 12px;margin-top:7px;min-height:43px}input:focus,select:focus,textarea:focus{border-color:var(--green);outline:2px solid #4b5a2222}input:disabled{background:#f4f5f2}textarea{min-height:85px;resize:vertical}select[multiple]{min-height:64px}input[type=checkbox]{width:18px;min-height:18px;margin:0;accent-color:var(--green)}.sidebar{position:fixed;width:226px;inset:0 auto 0 0;background:var(--nav);color:#c9d0bf;padding:22px 14px 16px;z-index:10;display:flex;flex-direction:column}.sidebar-hero{display:block;position:relative;flex:none;margin:-22px -14px 14px;overflow:hidden}.sidebar-hero img{display:block;width:100%;height:120px;object-fit:cover;object-position:50% 100%}.sidebar-hero:before{content:"";position:absolute;inset:0 0 auto;height:30px;background:linear-gradient(180deg,var(--nav),#0000);z-index:1}.sidebar-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0000 65%,var(--nav))}.brand{font-size:25px;font-weight:900;letter-spacing:-1.2px;color:white;line-height:1;padding-left:4px}.brand span{color:var(--lime)}.brand-caption{font-size:9px;letter-spacing:2.5px;color:#a0a895;margin:10px 0 28px 1px}.nav-label{font-size:10px;color:#919b83;letter-spacing:1px;padding:14px 12px 7px}.nav-link{display:flex;align-items:center;gap:11px;padding:8px 12px;border-radius:7px;margin-bottom:2px;font-weight:500;font-size:13px;line-height:1.4}.nav-link:hover{background:#303b23}.nav-link.active{background:var(--lime);color:#28311a;font-weight:700}.nav-icon{width:18px;font-size:17px;line-height:1;flex-shrink:0}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff15;padding:14px 10px 0;font-size:11px}.sidebar-bottom small{margin-top:3px;padding-left:13px;color:#859076;font-size:10px}.green-dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:var(--lime);margin-right:6px}.portal .main{margin-left:226px}.topbar{height:77px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:15px}.breadcrumb{font-size:12px;color:#7e8476}.breadcrumb span{margin:0 13px;color:#c7cac1}.top-actions{display:flex;align-items:center;gap:13px}.top-actions select{margin:0;border:0;background:#f7f8f6;min-height:33px;padding:5px 10px;font-size:12px}.avatar{width:30px;height:30px;border-radius:50%;background:#e8eae3;color:#525f38;text-align:center;line-height:30px;font-size:12px;font-weight:700}.user-name{font-size:12px}.text-button{background:none;border:0;color:var(--muted);padding:5px;font-size:12px}.content{padding:27px 36px 15px;max-width:1680px;margin:auto}.environment{font-size:12px;color:#6f7464;display:flex;align-items:center;gap:9px;margin-bottom:27px}.environment-tag{font-size:9px;letter-spacing:1px;background:#e6edde;border:1px solid #c8d8b9;padding:1px 5px;border-radius:3px;color:#517432}.probe-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.probe-step{border:1px solid var(--line);border-radius:8px;padding:16px}.probe-step strong{display:block;margin-bottom:8px}.probe-step form{margin-top:10px}.probe-io pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#f7f8f6;padding:10px;border-radius:6px;max-height:260px;overflow:auto}@media(max-width:1150px){.probe-steps{grid-template-columns:1fr}}.advanced{margin-top:28px}.advanced>summary{cursor:pointer;font-size:13px;color:#4c5243;padding:12px 0;list-style:none;border-top:1px solid var(--line)}.advanced>summary:before{content:'▸ ';color:var(--green)}.advanced[open]>summary:before{content:'▾ '}.secondary-actions{font-size:12px;margin:-8px 0 24px}.secondary-actions a{color:var(--green)}.secondary-actions .text-button{font-size:12px}.inline-form{display:inline}.inline-form .text-button{padding:0;color:var(--green)}.inline-account{margin-top:14px;max-width:760px}.environment.live .environment-tag{background:#dcecf7;border-color:#a9c9e0;color:#215a86}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 29px}.heading-main{display:flex;align-items:center;gap:20px;flex-wrap:wrap;min-width:0}.heading-cta{min-height:46px;padding:12px 24px;font-size:14px;box-shadow:0 3px 10px #4b5a222e}.heading-cta:hover{box-shadow:0 4px 14px #4b5a2240}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:#868b7d;margin-bottom:12px}.eyebrow span{margin-left:12px;letter-spacing:1px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;border-radius:6px;padding:10px 17px;border:1px solid transparent;font-size:13px;font-weight:600;white-space:nowrap}.primary{background:var(--green);color:#fff}.primary:hover{background:#3b4818}.secondary{background:white;border-color:#e0e2dd;color:#4c5243}.secondary:hover{background:#f1f3ed}.ghost{background:transparent;border-color:#d5d9cf;color:#4c573a}.danger{background:#fff3f1;border-color:#ecd3ce;color:#a44134}.full{width:100%}.button-row{display:flex;gap:10px;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:19px;margin-bottom:26px}.stat{position:relative;overflow:hidden;background:white;border:1px solid var(--line);border-radius:9px;padding:21px 22px 25px}.stat-label{color:#767b6e;display:flex;align-items:center;justify-content:space-between;font-size:12px}.stat-label span{width:27px;height:27px;line-height:27px;text-align:center;background:#f2f3ee;border-radius:6px;color:#7a8468;font-size:16px}.stat strong{font-size:37px;font-weight:600;letter-spacing:-1px;line-height:1.5}.stat-line{height:3px;position:absolute;bottom:0;left:22px;right:22px;background:#cbd4ba}.stat-line.pending{background:#ebcd85}.stat-line.shipped{background:#a6c7d7}.stat-line.delivered{background:#add389}.panel{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:24px}.panel-heading{padding:22px 23px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-heading h2{margin:0}.panel-heading a{font-size:11px;color:var(--green)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(240px,1fr);gap:24px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:11px;color:#8a8f81;background:#fafbf9;font-weight:500;padding:12px 19px;border-bottom:1px solid var(--line)}td{padding:17px 19px;border-bottom:1px solid #f1f2ee;font-size:12px}tr:last-child td{border-bottom:0}td a:hover{color:var(--green)}.mono{font-family:Consolas,monospace;font-size:12px;letter-spacing:-.2px}.muted{color:var(--muted)}.badge{display:inline-block;background:#fff5d9;color:#987630;padding:3px 8px;font-size:10px;border-radius:4px;white-space:nowrap}.badge.delivered,.badge.shipped{background:#eff2e8;color:#6f814b}.badge.cancelled{background:#f0f1ef;color:#7e8179}.counter{font-size:10px;background:#faf0de;color:#ac8245;border-radius:5px;padding:2px 8px}.stock-row{display:flex;gap:11px;align-items:center;padding:16px 22px;border-top:1px solid #f2f3f0}.stock-row strong{font-size:11px}.stock-row small{font-size:10px}.stock-row b{margin-left:auto;color:#b17b39;font-size:18px;font-weight:500}.part-icon{background:#f4f5f1;color:#8f997e;width:34px;height:34px;line-height:34px;text-align:center;border-radius:6px}.panel-link{display:block;text-align:center;padding:12px;border-top:1px solid var(--line);font-size:11px;color:var(--green)}.connection-card{background:#eef0ea;display:flex;align-items:center;gap:19px;border:1px solid #dfe2d8;padding:20px 25px;border-radius:9px;margin-bottom:24px}.connection-card h3{font-size:14px}.connection-card p{font-size:12px;color:#7d8173;margin:0;max-width:780px}.connection-card .button{margin-left:auto;font-size:11px}.connection-icon{width:42px;height:42px;background:#e4e7dc;color:#757d5e;border-radius:8px;text-align:center;line-height:42px;font-size:23px;flex-shrink:0}footer{display:flex;justify-content:space-between;color:#a9ada3;font-size:10px;padding:26px 0 13px;border-top:1px solid var(--line);margin-top:30px;letter-spacing:1px}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:22px}.toolbar input{max-width:500px;margin:0}.toolbar select{margin:0;width:auto}.toolbar label{margin:0;min-width:250px}.toolbar label select{width:100%}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.product-card{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.product-art{height:168px;background:linear-gradient(135deg,#eceee9,#f5f7f4);padding:18px;position:relative;overflow:hidden}.product-art>span{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#8e9284}.product-art>small{position:absolute;bottom:12px;right:16px;font:11px Consolas,monospace;color:#a0a399}.mechanical-part{position:absolute;width:94px;height:94px;left:50%;top:51%;transform:translate(-50%,-50%) rotate(-25deg);border:17px solid #8d9286;border-radius:50%;box-shadow:3px 6px 0 #5e6554,8px 13px 20px #323a2820,inset 0 0 0 3px #e1e2dd}.mechanical-part i{position:absolute;inset:-11px;border:1px dashed #cdd0c8;border-radius:50%}.part-1{border-radius:12px;width:103px;height:66px;border-width:15px;background:#5f6456}.part-2{border-radius:8px;height:90px;width:72px;border-width:10px;background:repeating-linear-gradient(90deg,#b4b9ab 0px,#b4b9ab 3px,#e8eae5 3px,#e8eae5 7px)}.product-body{padding:22px}.product-body h2{margin:7px 0 20px;font-size:17px}.product-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#9da097;margin-bottom:20px}.product-meta b{display:block;color:#63675a;font-size:12px}.count-label{font-size:12px;color:#8a8f81}.stock-number{font-weight:700;color:var(--green)}.stock-number.warning{color:#b88034}.form-panel{padding:26px}.form-panel h2{margin:0 0 22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 21px}.order-form-grid{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(250px,1fr);gap:24px}.order-summary{align-self:start;position:sticky;top:24px;padding:26px}.order-summary p{font-size:13px;color:#878b7f}.summary-country{padding:15px 0;margin:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:22px;font-weight:700;color:var(--green)}.summary-country span{font-size:12px;color:#7c8173;margin-left:15px}.step{font:12px Consolas,monospace;color:var(--green);background:#f2f3ee;display:inline-block;padding:5px 8px;margin-right:12px;border-radius:4px}.item-row{display:flex;gap:13px;align-items:center}.item-row label:first-child{flex:1;min-width:0}.qty{width:75px}.remove-item{font-size:22px;margin-top:15px}.detail-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.detail-badges{display:flex;flex-wrap:wrap;gap:18px;font-size:12px;color:var(--muted);margin-bottom:25px}.order-title{font-size:26px}.form-panel .table-wrap{margin:0 -26px 28px}dl{display:grid;grid-template-columns:100px 1fr;font-size:13px;gap:16px 12px;margin-bottom:30px}dt{color:#93968c}dd{margin:0;overflow-wrap:anywhere}.timeline{list-style:none;border-left:1px solid #e3e6dc;margin:20px 0 0 6px;padding-left:25px}.timeline li{position:relative;margin-bottom:25px}.timeline li:before{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:var(--green);left:-30px;top:8px}.timeline p{margin:3px 0;color:var(--muted);font-size:12px}.publish-form{display:flex;align-items:center;gap:10px}.publish-form select{font-size:12px;margin:0;min-width:110px}.publish-form select[multiple]{max-width:190px}.endpoint-list>div{display:flex;gap:15px;border-top:1px solid #f1f2ee;padding:9px 0;font-size:11px}.endpoint-list code{font-size:11px;overflow-wrap:anywhere;min-width:0}.endpoint-list .muted{margin-left:auto;white-space:nowrap}.audit-row{padding:12px 0;border-top:1px solid #f1f2ee;font-size:12px}.audit-row small{font-size:10px;overflow-wrap:anywhere}.pagination{display:flex;justify-content:center;gap:20px;margin:20px 0;font-size:13px}.pagination a{background:#fff;border:1px solid var(--line);padding:4px 12px;border-radius:5px}.pagination span{padding:4px}.alert{padding:15px 20px;border-radius:7px;margin-bottom:20px;font-size:13px}.success{background:#f0f3e8;color:#5c6e3a;border:1px solid #d8dfca}.error{background:#fff0ed;color:#9e463c;border:1px solid #edd0c9}.alert ul{margin:0;padding-left:18px}.empty{text-align:center;padding:45px 25px;color:#9b9f93}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.auth .content{max-width:1200px;padding-top:24px}.auth .topbar{height:82px}.brand.dark{color:var(--nav);font-size:29px}.brand.dark span{color:var(--green)}.auth-grid{display:grid;grid-template-columns:1.05fr 1fr;min-height:560px;border-radius:15px;overflow:hidden;border:1px solid var(--line);background:white}.auth-story{background:var(--nav);padding:58px 47px;color:white;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story:after{content:'';position:absolute;width:330px;height:330px;border:1px solid #ffffff0e;border-radius:50%;right:-220px;bottom:-100px;box-shadow:0 0 0 50px #ffffff04,0 0 0 100px #ffffff03}.auth-story .eyebrow{color:#a6b194;margin-bottom:35px}.auth-story h1{font-size:46px;line-height:1.2;letter-spacing:-2px;margin-bottom:27px}.auth-story em{font-style:normal;color:var(--lime)}.auth-story p{font-size:13px;max-width:320px;color:#b6bda9}.story-bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;padding-top:50px;font-size:9px;color:#899576;letter-spacing:1px}.story-bottom span{font-size:23px;color:var(--lime)}.auth-card{padding:61px 56px}.auth-card h2{font-size:27px;margin:0 0 12px}.auth-card>p{font-size:12px;margin-bottom:25px}.auth-card label{font-size:12px}.auth-card .full{margin-top:22px;justify-content:space-between}.small-link{font-size:11px;color:var(--green);display:block;text-align:right}.auth-register{text-align:center;font-size:12px;margin:25px 0 0;color:var(--green)}.narrow{max-width:700px;margin:25px auto;padding:38px}.narrow h1{margin-bottom:15px}.check{display:flex;gap:10px;align-items:center;margin:20px 0}.terms{background:#f7f8f5;padding:12px;font-size:12px;color:#797e6e}.terms p{margin:12px 0 0}
@media(min-width:1500px){.content{padding-top:35px}body{font-size:15px}td{font-size:13px}.stat strong{font-size:43px}}@media(max-width:1150px){.sidebar{width:190px;padding:30px 14px}.portal .main{margin-left:190px}.content{padding:24px}.topbar{padding:0 24px}.dashboard-grid{grid-template-columns:1fr}.low-stock{display:none}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:17px}.order-form-grid{grid-template-columns:1fr}.order-summary{position:static}.detail-grid{grid-template-columns:1fr}.user-name{display:none}.auth-story h1{font-size:37px}.auth-card{padding:45px 35px}}@media(max-width:760px){.sidebar{position:static;width:100%;padding:18px;display:block}.sidebar-hero{display:none}.brand-caption,.sidebar-bottom,.nav-label{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:5px;margin-top:16px}.nav-link{white-space:nowrap;padding:8px 11px;font-size:12px;gap:6px}.nav-icon{font-size:16px;width:16px}.portal .main{margin:0}.topbar{height:65px;padding:0 18px}.breadcrumb{display:none}.top-actions{margin-left:auto}.content{padding:20px 16px}.environment{align-items:flex-start;font-size:10px;gap:7px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:20px}.heading-main{gap:12px}.heading-cta{min-height:38px;padding:9px 14px;font-size:12px}.page-heading .button{font-size:11px;padding:8px 10px}.page-heading .button-row{justify-content:flex-end}h1{font-size:25px}.eyebrow{font-size:8px;letter-spacing:1px}.stat-grid{grid-template-columns:1fr 1fr;gap:12px}.stat{padding:15px}.stat strong{font-size:30px}.product-grid{grid-template-columns:1fr 1fr;gap:12px}.product-body{padding:14px}.product-body h2{font-size:14px}.product-meta{flex-direction:column}.product-art{height:130px}.product-body .button{font-size:11px;padding:9px}.mechanical-part{transform:translate(-50%,-50%) rotate(-25deg) scale(.75)}.connection-card{padding:18px;align-items:flex-start;flex-wrap:wrap}.connection-card .button{margin-left:60px}.connection-card>div:nth-child(2){flex:1}.toolbar{flex-wrap:wrap}.toolbar input{flex:1;min-width:160px}.form-panel{padding:20px}.form-grid{grid-template-columns:1fr}.item-row{gap:8px}.qty{width:65px}.form-panel .table-wrap{margin-left:-20px;margin-right:-20px}.detail-badges{font-size:11px;gap:12px}.order-title{font-size:18px;overflow-wrap:anywhere}.publish-form{flex-wrap:wrap}.auth-grid{grid-template-columns:1fr}.auth-story{padding:30px}.auth-story h1{font-size:33px}.auth-story .eyebrow{margin-bottom:18px}.story-bottom{padding-top:15px}.auth-card{padding:30px}.narrow{padding:25px}.endpoint-list>div{gap:8px}.endpoint-list code{font-size:10px}}

/* Additions for the notification centre, first-leg, tracking and relabel screens. */
.nav-link .counter{margin-left:auto;background:#d94f2b;color:#fff;border-radius:9px;padding:0 6px;font-size:11px;line-height:18px}
.audit-row.unread{border-left:3px solid #d94f2b;padding-left:9px}
.audit-row form{display:inline}
.detail-badges span a{color:inherit}
.item-row label.qty{max-width:120px}
.endpoint-list>div{display:grid;grid-template-columns:80px 1fr auto;gap:8px;align-items:center;padding:4px 0;border-bottom:1px solid var(--line,#e6e3dd)}
table td small{display:block;color:#6d6a64;font-size:11px}
.panel-heading form{margin:0}
/* A sub-heading that follows a form control needs breathing room above it. */
.form-panel h3{margin:26px 0 10px;font-size:15px}
.form-panel h3:first-child{margin-top:0}
.form-panel form+h3,.form-panel .button-row+h3{margin-top:30px}
.stat-grid{grid-auto-rows:1fr}.credential-status{border-top:1px solid var(--line);padding-top:20px;margin-bottom:26px}.probe-panel .check{margin:14px 0}.probe-url{color:var(--muted);overflow-wrap:anywhere;margin:18px 0 6px}.probe-round{border-top:1px solid #f1f2ee;padding:14px 0}.probe-round>strong{font-size:12px}.probe-io{margin-top:8px}.probe-io>span{font-size:11px}.probe-panel pre{font:12px/1.55 Consolas,monospace;background:#f9faf7;border:1px solid var(--line);border-radius:6px;padding:11px 13px;margin:4px 0 0;max-height:320px;overflow:auto;white-space:pre;color:#3d4334}.probe-verdict{border-top:1px solid #f1f2ee;margin-top:14px;padding-top:14px}.probe-verdict p{font-size:12px;margin:0 0 7px}.probe-verdict p:last-child{margin-bottom:0}.survey-panel .table-wrap{margin-top:16px;border:1px solid var(--line);border-radius:7px}.survey-table td{padding:11px 14px}.survey-table th{padding:10px 14px}.survey-fields{margin:8px 0 0}

/* 〒 autofill */
.postal-status{display:block;margin-top:.35rem;font-size:.8rem;color:var(--muted,#6b7280);min-height:1.1em}
.postal-status.ok{color:#456e17}
.postal-status.warn{color:#b45309}
.postal-picker{margin-top:.4rem}
.postal-picker[hidden],.postal-status:empty{display:none}
.cancel-form{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.cancel-form .check{margin:0;font-size:12px;color:#797e6e}

/* product photos */
.product-art.has-photo{padding:0;background:#fff}.product-art.has-photo>span,.product-art.has-photo>small{position:absolute;z-index:1;background:#ffffffcc;padding:2px 6px;border-radius:4px}.product-art.has-photo>span{top:12px;left:14px}.product-art.has-photo>small{bottom:10px;right:12px}.product-art.has-photo a{display:block;height:100%}.product-photo{width:100%;height:100%;object-fit:contain;display:block;background:#f7f8f6}
.product-figure{margin:0 0 22px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#f7f8f6}.product-figure img{display:block;width:100%;max-height:420px;object-fit:contain}
td.with-thumb{display:flex;align-items:center;gap:10px}.product-list-thumb{width:44px;height:44px;object-fit:cover;border-radius:6px;border:1px solid var(--line);flex-shrink:0}
.product-photo-field{grid-column:1/-1}.product-photo-thumb{display:block;max-width:220px;max-height:160px;object-fit:contain;border:1px solid var(--line);border-radius:6px;margin-bottom:10px;background:#f7f8f6}.product-photo-field .check{margin:0 0 17px}

/* JROAD light palette: white surfaces, charcoal type and muted blue accents.
   This layer changes presentation only; existing geometry and breakpoints stay above. */
:root {
    --ink: #23251d;
    --muted: #6b6d62;
    --brand: #5a6b2d;
    --brand-hover: #44521f;
    --brand-soft: #eef2e2;
    --green: var(--brand);
    --lime: #c4d47c;
    --line: #e5e6df;
    --bg: #f7f8f3;
    --nav: #323a25;
}
body { font-family: Inter, Arial, 'Yu Gothic UI', 'Microsoft YaHei', sans-serif; }
.sidebar { color: #c6cdb6; box-shadow: none; }
.brand { color: #ffffff; }
.brand.dark { color: var(--ink); }
.brand span { color: var(--lime); }
.brand.dark span { color: var(--brand); }
.brand-caption, .nav-label, .sidebar-bottom small { color: #9ba58a; }
.nav-link:hover { background: #3f4832; color: #ffffff; }
.nav-link.active { background: var(--lime); color: #2a321a; box-shadow: none; }
.sidebar-bottom { border-top-color: #ffffff24; }
.green-dot { background: var(--lime); }
.breadcrumb, .environment, .eyebrow { color: var(--muted); }
.breadcrumb span { color: #b5b5b5; }
.top-actions select { background: #f4f4f4; }
.avatar { color: var(--brand-hover); background: var(--brand-soft); }
.environment-tag { color: #765414; background: #fff8e8; border-color: #e8d8af; }
.environment.live .environment-tag { color: #225b86; background: #edf6ff; border-color: #c4dced; }
label, .advanced>summary { color: #454545; }
input, select, textarea { border-color: #d8d8d8; background: #ffffff; }
input:disabled { background: #f2f2f2; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline-color: #5a6b2d40; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); }
.primary { background: var(--brand); color: #ffffff; }
.primary:hover { background: var(--brand-hover); }
.secondary, .ghost { border-color: #d8d8d8; color: #454545; }
.secondary:hover, .ghost:hover { background: #f4f4f4; border-color: #bdbdbd; }
.danger { background: #fff5f5; color: #a51e1e; border-color: #eac8c8; }
.stat, .panel, .product-card, .auth-grid { box-shadow: 0 2px 10px #22222204; }
.stat-label, .count-label { color: var(--muted); }
.stat-label span { background: #f4f4f4; color: #666666; }
.stat-line { background: var(--brand); }
.stat-line.pending { background: #d9ad4e; }
.stat-line.shipped { background: #74a6c7; }
.stat-line.delivered { background: #9eaf7d; }
th { color: #626262; background: #fafafa; }
td, .stock-row, .endpoint-list>div, .audit-row, .probe-round, .probe-verdict { border-color: #eeeeee; }
table td small { color: var(--muted); }
.badge { color: #805c12; background: #fff5dc; }
.badge.delivered, .badge.shipped { color: #4d5f2c; background: #f1f4eb; }
.badge.cancelled { color: #626262; background: #f0f0f0; }
.part-icon { color: #676767; background: #f2f2f2; }
.connection-card { background: #ffffff; border-color: var(--line); }
.connection-card p { color: var(--muted); }
.connection-icon { color: #4d5f2c; background: #f1f4eb; }
footer, .product-meta { color: #737373; }
.product-art { background: linear-gradient(135deg, #eeeeee, #fafafa); }
.product-art>span, .product-art>small { color: #737373; }
.mechanical-part { border-color: #969696; box-shadow: 3px 6px 0 #666666, 8px 13px 20px #22222220, inset 0 0 0 3px #e2e2e2; }
.mechanical-part i { border-color: #cfcfcf; }
.part-1 { background: #666666; }
.part-2 { background: repeating-linear-gradient(90deg, #b5b5b5 0px, #b5b5b5 3px, #e8e8e8 3px, #e8e8e8 7px); }
.product-meta b { color: #494949; }
.product-photo, .product-figure, .product-photo-thumb { background: #fafafa; }
.stock-number { color: #4d5f2c; }
.stock-number.warning { color: #926113; }
.order-summary p, .summary-country span, dt, .empty { color: var(--muted); }
.summary-country { color: var(--ink); }
.step { color: var(--brand-hover); background: var(--brand-soft); }
.auth-story { background: linear-gradient(135deg, #fafafa, #f2f2f2); color: var(--ink); }
.auth-story .eyebrow { color: var(--brand-hover); }
.auth-story em, .story-bottom span { color: var(--brand); }
.auth-story p, .story-bottom { color: var(--muted); }
.auth-story:after { border-color: #5a6b2d1f; box-shadow: 0 0 0 50px #5a6b2d08, 0 0 0 100px #5a6b2d06; }
.terms, .probe-io pre, .probe-panel pre { background: #fafafa; color: #555555; }
.cancel-form .check { color: #555555; }
.nav-link .counter { background: var(--lime); color: #2a321a; }
.audit-row.unread { border-left-color: var(--brand); }
.sort-link{display:inline-flex;align-items:center;gap:5px;color:inherit}.sort-link:hover,.sort-link.active{color:var(--green)}.sort-mark{font-size:9px;opacity:.6}.sort-link.active .sort-mark{opacity:1}.month-filter{display:flex;gap:8px;align-items:center}.month-filter input{width:auto;margin:0}.user-table td small{font-size:11px}.filter-note{font-size:12px;color:var(--muted);margin:-12px 0 18px}
.initial-password{border-color:#d8dfca;background:#f9faf5}.password-value{font-size:20px;letter-spacing:1px;margin-right:12px}.db-tables{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.db-tables a{font-size:12px}.db-cell{max-width:320px;overflow:hidden;text-overflow:ellipsis}
.mail-event{align-items:flex-start;margin:0;padding:12px 0;border-top:1px solid #f1f2ee}.mail-event input{margin-top:4px}.mail-event strong{margin-right:8px}.mail-event small{margin-top:2px}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.danger-zone{border-color:#edd0c9;background:#fff8f6}.danger-zone h2{color:#a44134}.delete-risks{margin:0;padding-left:20px;font-size:13px;line-height:1.9;color:#5b3a33}
.req{color:#c0392b;margin-left:3px;font-weight:700}.field-error{color:#b03a2e;font-size:12px;margin-top:5px}input.invalid,select.invalid,textarea.invalid{border-color:#d9776b;background:#fff8f6}.check .field-error{flex-basis:100%;margin:0}.check{flex-wrap:wrap}.user-name{display:flex;flex-direction:column;line-height:1.3}.user-role{font-size:10px;color:var(--muted)}

/* Statistics (統計モジュール設計書 6) */
.stats-intro{font-size:13px;max-width:900px;margin:-14px 0 22px}.stats-note{font-size:12px;margin:-12px 0 22px}
.stats-toolbar{flex-wrap:wrap;gap:12px}.stats-toolbar .range-buttons{display:flex;gap:6px;flex-wrap:wrap}.stats-toolbar .range-buttons .button{min-height:34px;padding:6px 12px;font-size:12px}
.stats-toolbar .inline-label{display:flex;align-items:center;gap:8px;margin:0;min-width:0;font-size:12px;white-space:nowrap}.stats-toolbar .inline-label input,.stats-toolbar .inline-label select{margin:0;min-height:36px;padding:6px 10px;width:auto}
.delta{font-size:12px;margin-top:2px}.delta.up{color:#5e7435}.delta.down{color:#a44134}.delta .muted{font-size:11px}
.stats-secondary .stat strong.stat-small,.lead-grid .stat strong.stat-small{font-size:26px;line-height:1.4}.stat-small small{display:inline;font-size:12px;color:var(--muted)}.stat-small.warning{color:#b88034}
.status-split{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin-top:6px}.status-split b{font-size:20px;font-weight:600;display:block;line-height:1.3}.status-split small{font-size:11px}
.chart-body{padding:4px 23px 14px}.chart-scroll{overflow-x:auto}.chart{width:100%;height:auto;display:block;font:12px 'Segoe UI','Yu Gothic UI',sans-serif}
.chart-grid{stroke:#eaece6;stroke-width:1}.chart-axis{fill:#92968b;font-size:11px}.chart-axis-right{fill:#b17b39}.chart-label{fill:#4c5243;font-size:12px}.chart-value{fill:#34392c;font-size:11px;font-weight:600}
.chart-bar{fill:var(--chart-bar,#799453)}.chart-line{fill:none;stroke:var(--chart-line,#d59a3f);stroke-width:2.2;stroke-linejoin:round}.chart-dot{fill:var(--chart-line,#d59a3f);stroke:#fff;stroke-width:1.5}.chart-line.secondary{stroke:var(--chart-bar,#799453)}.chart-dot.secondary{fill:var(--chart-bar,#799453)}.chart-empty{padding:14px 0 6px;font-size:12px}
.chart-legend{display:flex;gap:18px;font-size:11px;color:var(--muted);margin:6px 0 4px}.chart-legend i{display:inline-block;width:14px;height:8px;margin-right:6px;border-radius:2px;vertical-align:middle}.legend-bar{background:var(--chart-bar,#799453)}.legend-line{background:var(--chart-line,#d59a3f);height:3px!important}
.scroll-table{max-height:520px;overflow-y:auto}.scroll-table thead th{position:sticky;top:0;z-index:1}.stats-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.stats-columns .panel{margin-bottom:24px}
.lead-grid{grid-template-columns:repeat(4,1fr);padding:0 23px 20px;margin:0}.lead-grid .stat{border:0;background:#f9faf8;padding:16px 18px 18px}.first-leg-grid{padding:0 23px 20px}
.panel-note{font-size:12px;padding:0 23px 12px;margin:-8px 0 0}.panel-heading .counter{margin-left:8px;vertical-align:middle}
.product-flow{font-size:11px;color:var(--muted);margin:-12px 0 16px}.product-flow b{color:#4c5243;font-weight:600}
@media(max-width:1150px){.stats-columns{grid-template-columns:1fr}.lead-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.stats-secondary{grid-template-columns:1fr}.lead-grid{grid-template-columns:1fr 1fr;padding:0 16px 16px}.chart-body{padding:4px 16px 12px}.stats-toolbar .inline-label{width:100%}.stats-toolbar .inline-label input,.stats-toolbar .inline-label select{flex:1}}
.chart-body .chart{min-width:520px}.chart-compact{min-width:0}.section-title{margin-top:26px}.product-flow-grid{grid-template-columns:1fr 1fr;padding:0;margin-bottom:18px;gap:10px}.product-flow-grid .stat strong.stat-small{font-size:20px}.form-panel h3{margin:22px 0 8px;font-size:14px}
.dashboard-range{margin:-8px 0 18px;gap:14px;flex-wrap:wrap}.dashboard-range .range-buttons{display:flex;gap:6px;flex-wrap:wrap}.dashboard-range .button{min-height:34px;padding:6px 12px;font-size:12px}.dashboard-range .muted{font-size:12px}
.state-card{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-left:4px solid #cbd4ba;border-radius:9px;padding:16px 20px;margin-bottom:22px}.state-card.published{border-left-color:#9eaf7d}.state-card.suspended,.state-card.archived{border-left-color:#c9c9c9}.state-card.remote_review,.state-card.sync_pending{border-left-color:#d9ad4e}.state-card.ready_to_publish{border-left-color:#74a6c7}.state-card p{margin:8px 0 0;font-size:13px}.state-meta{font-size:12px;color:var(--muted);text-align:right;display:flex;flex-direction:column;gap:4px}
.flow-steps{list-style:none;margin:0 0 26px;padding:0}.flow-steps li{display:flex;gap:14px;padding:16px 0;border-top:1px solid #f1f2ee}.flow-steps li:first-child{border-top:0;padding-top:4px}.flow-steps li>div{flex:1;min-width:0}.flow-steps strong{display:block;font-size:14px}.flow-steps p{font-size:12px;color:var(--muted);margin:4px 0 8px}.flow-no{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#f1f2ee;color:#8a8f81;text-align:center;line-height:28px;font-size:13px;font-weight:700}.flow-steps li.done .flow-no{background:#eff2e8;color:#6f814b}.flow-steps li.current .flow-no{background:var(--green);color:#fff}.flow-steps li.off{opacity:.55}.flow-done{color:#6f814b!important;font-weight:600}.flow-steps form{margin:6px 0}.flow-manual{margin-top:10px}.flow-manual summary{font-size:12px}
.action-help{margin:6px 0 12px;padding-left:18px;font-size:12px;color:#64695c}.action-help li{margin:3px 0}.form-help{font-size:12px;margin:-4px 0 14px}
@media(max-width:760px){.state-card{flex-direction:column}.state-meta{text-align:left}}
.now-line{font-size:13px;font-weight:600;color:#64695c!important;background:#f5f6f0;border-radius:6px;padding:9px 12px;margin:6px 0 12px!important}.now-line.on{color:#5e7435!important;background:#eff2e8}
.scope-choice{border:0;padding:0;margin:0 0 6px}.scope-choice legend{font-size:14px;color:#485960;margin-bottom:6px}.scope-choice .check{align-items:flex-start;margin:8px 0}.scope-choice .check input{margin-top:3px}.scope-choice .check small{display:block;font-size:11px;margin-top:2px}
.action-list{display:flex;flex-direction:column;gap:10px;margin-top:6px}.action-item{display:flex;align-items:center;gap:14px}.action-item small{font-size:12px;color:var(--muted)}
.archive-zone{margin-top:18px;border:1px solid #ecd3ce;background:#fff8f6}.archive-zone summary{color:#a44134;font-size:13px}.archive-zone form{margin-top:10px}
@media(max-width:760px){.action-item{flex-direction:column;align-items:flex-start;gap:4px}}
[hidden]{display:none!important}input[type=radio]{width:18px;min-height:18px;margin:0;accent-color:var(--green);flex-shrink:0}
.flow-steps li.warn .flow-no{background:#fff0ed;color:#a44134}.flow-warn{color:#a44134!important;font-weight:600}.now-line.warn{color:#a44134!important;background:#fff0ed}
.donut-slice{fill:var(--chart-bar,#799453);stroke:#fff;stroke-width:1.5}.donut-slice.shade-1{opacity:.85}.donut-slice.shade-2{opacity:.7}.donut-slice.shade-3{opacity:.55}.donut-slice.shade-4{opacity:.42}.donut-slice.shade-5{opacity:.32}.donut-slice.shade-6{opacity:.24}.donut-slice.shade-7{opacity:.17}.donut-slice.shade-8{fill:#ced0ca;opacity:1}.donut-total{font-size:22px}
.chart-settings{margin:-8px 0 22px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:0 18px}.chart-settings summary{padding:12px 0;font-size:13px;color:#4c5243;cursor:pointer;list-style:none}.chart-settings summary:before{content:'▸ ';color:var(--green)}.chart-settings[open] summary:before{content:'▾ '}.chart-settings form{padding:4px 0 16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 22px;align-items:end}.chart-settings label{margin:0;font-size:12px}.chart-settings select{margin-top:5px;min-height:38px;padding:7px 10px}.chart-settings .swatches{display:flex;gap:8px;margin-top:6px;flex-wrap:wrap}.swatch{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:6px;padding:5px 9px;font-size:12px;cursor:pointer}.swatch input{width:16px;min-height:16px;margin:0}.swatch i{width:14px;height:14px;border-radius:3px;display:inline-block}.swatch b{width:14px;height:4px;border-radius:2px;display:inline-block}.chart-settings input[type=color]{width:46px;min-height:34px;padding:2px;margin-top:5px}.chart-settings .custom-colors{display:flex;gap:14px}.chart-settings .button-row{grid-column:1/-1}.chart-settings form>div:first-of-type{grid-column:1/-1}.chart-settings .custom-colors{margin-top:10px}
@media(max-width:760px){.chart-settings form{grid-template-columns:1fr}}
.pie-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;padding:0 23px 18px}.pie-grid h3{font-size:13px;margin:6px 0 0}.pie-grid .chart-scroll{overflow:visible}.donut-total.small{font-size:16px}.check-stack{display:flex;flex-direction:column;gap:6px}.check-stack .check{margin:0}
@media(max-width:760px){.pie-grid{grid-template-columns:1fr}}
.write-state{font-size:13px;font-weight:600;background:#f5f6f0;border-radius:6px;padding:9px 12px;margin:0 0 10px}
.stats-caveat{color:#9b6a1c!important;padding-top:10px}
.picker-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0;pointer-events:none}.item-row label:first-child{position:relative}.picker{position:relative;margin-top:7px}.picker-toggle{display:flex;align-items:center;width:100%;min-height:56px;text-align:left;border:1px solid #dbded7;border-radius:7px;background:#fff;padding:6px 36px 6px 8px;color:var(--ink);position:relative}.picker-toggle:after{content:'▾';position:absolute;right:13px;top:50%;transform:translateY(-50%);color:var(--muted)}.picker-toggle.invalid{border-color:#c9574a}.picker.open .picker-toggle{border-color:var(--green)}.picker-placeholder{color:var(--muted);padding-left:6px}.picker-panel{position:fixed;z-index:60;background:#fff;border:1px solid #d6d9d0;border-radius:8px;box-shadow:0 12px 30px #20241a22;padding:8px}.picker-search{margin:0 0 8px;min-height:38px}.picker-list{max-height:360px;overflow-y:auto}.picker-item{display:block;width:100%;text-align:left;background:none;border:0;border-radius:6px;padding:6px;color:var(--ink)}.picker-item:hover:not(:disabled),.picker-item.selected{background:#f2f3ee}.picker-item.disabled{opacity:.45}.picker-line{display:flex;align-items:center;gap:12px;width:100%;min-width:0}.picker-thumb{flex:0 0 48px;width:48px;height:48px;border-radius:6px;background:linear-gradient(135deg,#eceee9,#f5f7f4);overflow:hidden;display:flex;align-items:center;justify-content:center}.picker-thumb img{width:100%;height:100%;object-fit:cover}.picker-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}.picker-text b{font-family:Consolas,monospace;font-size:12px}.picker-text span{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-stock{margin-left:auto;white-space:nowrap;color:var(--green);font-size:12px}.picker-stock.out{color:#a44134}
input[readonly],textarea[readonly],select[disabled]{background:#f0f1f2;border-color:#e2e4e6;color:#6b7278;cursor:default;box-shadow:none}input[readonly]:focus,textarea[readonly]:focus{border-color:#e2e4e6;outline:none}.form-panel input[readonly]{padding-left:36px;background:#f0f1f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23979ea4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") no-repeat 13px center}
.stat-line.awaiting_shipment{background:#ebcd85}.stat-line.completed{background:#add389}.stat-line.cancelled{background:#d3d5d0}.stat-line.total{background:#cbd4ba}
.announcement-body{white-space:pre-wrap;margin:0;overflow-wrap:anywhere}.announcement .panel-heading{align-items:flex-start}
.stock-table td{padding:9px 19px}.stock-table .stock-cell{text-align:right;width:120px;font-size:15px}.stock-table th.stock-head{text-align:right}.stock-table .picker-thumb{flex:0 0 40px;width:40px;height:40px}.stock-table .picker-line{gap:14px}.stock-table .picker-text b{font-size:11px;color:#767b6e}.stock-table .picker-text span{font-size:14px}
.stock-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}
.stock-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 16px}
.stock-card .thumb{flex:0 0 52px;width:52px;height:52px;border-radius:8px;background:linear-gradient(135deg,#eceee9,#f5f7f4);overflow:hidden;display:flex;align-items:center;justify-content:center}
.stock-card .thumb img{width:100%;height:100%;object-fit:cover}
.stock-card .text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.stock-card .text b{font:11px Consolas,monospace;color:#84897c;font-weight:600}
.stock-card .text>span{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stock-card .qty{text-align:right;line-height:1.1}
.stock-card .qty b{font-size:22px;font-weight:700;color:var(--green)}
.stock-card .qty small{display:block;font-size:10px;color:#9b9f94;margin-top:2px}
.stock-card.low .qty b{color:#b88034}
.stock-card.zero{background:#fbfbfa}.stock-card.zero .qty b{color:#a44134}
@media(max-width:1150px){.stock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.stock-grid{grid-template-columns:1fr}}
.dashboard-single{display:block;margin-bottom:24px}.dashboard-single .recent{margin-bottom:0}

.nav-group{margin:0}.nav-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary:after{content:'\25be';font-size:9px;transform:rotate(-90deg);transition:transform .15s}.nav-group[open]>summary:after{transform:none}.nav-group>summary:hover{color:#fff}

.product-fit{font-size:11px;font-weight:600;color:var(--brand,#5a6b2d);background:var(--brand-soft,#eef2e2);border-radius:5px;padding:3px 9px;margin:-12px 0 14px;display:inline-block}
.product-specs{display:grid;grid-template-columns:auto 1fr;gap:5px 14px;font-size:12px;margin:0 0 18px}
.product-specs dt{color:var(--muted);white-space:nowrap}
.product-specs dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere}

.note-warn{font-size:12px;line-height:1.7;color:#8a6200;background:#fff8e8;border:1px solid #efdcb4;border-radius:7px;padding:10px 12px;margin:0 0 6px}

.stats-charts>.stat-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr))}
.stats-note a{color:var(--green,#5a6b2d);font-weight:600}

.house-tenant{border-color:#d9dcc9;background:#fbfcf7}
.house-tenant .panel-heading h2{color:#4f5b30}
.badge.house{background:var(--brand-soft,#eef2e2);color:var(--brand-hover,#44521f)}
.house-note{font-size:12px;margin:-10px 0 12px}

.publish-form .inline-check{margin:0;font-size:12px;white-space:nowrap;gap:6px}

/* Catalogue: a denser card so a whole catalogue fits on one page, plus the list mode. */
.heading-tools{display:flex;align-items:center;gap:16px}
.view-switch{display:inline-flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff}
.view-switch a{display:flex;align-items:center;justify-content:center;width:38px;height:36px;font-size:16px;color:var(--muted)}
.view-switch a+a{border-left:1px solid var(--line)}
.view-switch a.on{background:var(--brand-soft,#eef2e2);color:var(--brand-hover,#44521f)}
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.product-art{height:132px;padding:12px}
.product-art>small{bottom:8px;right:12px}
.product-body{padding:16px 16px 18px}
.product-body h2{margin:5px 0 12px;font-size:15px;line-height:1.45}
.product-fit{font-size:10px;padding:2px 8px;margin:-8px 0 12px}
.product-specs{gap:3px 10px;font-size:11px;margin:0 0 14px}
.product-body .button{min-height:34px;font-size:12px}
.catalog-table td{vertical-align:middle}
.catalog-table .row-action{text-align:right}
.catalog-table .row-action .button{min-height:32px;padding:6px 12px;font-size:12px}
@media(max-width:1500px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.catalog-mark{color:var(--brand,#5a6b2d);font-size:9px;margin-left:5px;vertical-align:1px}
.catalog-legend{margin:-6px 0 18px;font-size:12px}

/* お知らせ: a mailbox-like list, the notice page and the rolling banner on the dashboard */
.notice-table td{vertical-align:middle}
.notice-table .notice-flag{width:34px;text-align:center}
.notice-table .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--brand,#5a6b2d)}
.notice-table tr.unread .notice-subject{font-weight:700}
.notice-subject{font-size:14px}
.notice-table td small{white-space:normal;color:var(--muted);margin-top:2px}
.notice-table .clip{font-size:11px;color:var(--muted);margin-left:8px}
.notice-table .badge{margin-left:8px}
.notice-table .row-action{text-align:right;white-space:nowrap}
.notice-table .row-action .button{min-height:30px;padding:5px 11px;font-size:11px}
.notice-detail .announcement-body{white-space:pre-wrap;font-size:14px;line-height:1.9}
.notice-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin:22px 0}
.notice-images img{width:100%;border:1px solid var(--line);border-radius:8px;display:block}
.file-list{list-style:none;padding:0;margin:0}
.file-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #f1f2ee;font-size:13px}
.attach-list{margin:0 0 18px}
.attach-list .check{gap:8px;margin:6px 0;font-size:12px}
.notice-ticker{display:flex;align-items:center;gap:12px;flex:1 1 auto;min-width:0;max-width:760px;margin:0 30px}
.ticker-label{flex:none;font-size:10px;letter-spacing:1.5px;font-weight:700;color:var(--brand-hover,#44521f);background:var(--brand-soft,#eef2e2);border-radius:999px;padding:5px 12px;white-space:nowrap}
.ticker-items{position:relative;flex:1;min-width:0;height:24px}
.ticker-item{position:absolute;inset:0;display:flex;align-items:center;gap:12px;min-width:0;opacity:0;transform:translateY(6px);transition:opacity .45s ease,transform .45s ease;pointer-events:none}
.ticker-item.on{opacity:1;transform:none;pointer-events:auto}
.ticker-item .when{flex:none;font:11px/1 Consolas,monospace;letter-spacing:.5px;color:#9aa08f}
.ticker-item .what{flex:1;min-width:0;font-size:13.5px;font-weight:600;letter-spacing:.2px;color:#3f4732;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ticker-item:hover .what{color:var(--brand-hover,#44521f);text-decoration:underline;text-underline-offset:3px}
.ticker-dots{flex:none;display:flex;gap:5px}
.ticker-dots i{width:5px;height:5px;border-radius:50%;background:#d3d7c9;transition:background .3s}
.ticker-dots i.on{background:var(--brand,#5a6b2d)}
.notice-menu{position:fixed;z-index:80;min-width:190px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 30px #20241a22;padding:5px;display:flex;flex-direction:column}
.notice-menu button{background:none;border:0;text-align:left;padding:9px 12px;border-radius:6px;font-size:13px;color:var(--ink)}
.notice-menu button:hover{background:#f2f3ee}
.notice-menu button.danger{color:#a44134}
@media(max-width:1150px){.notice-ticker{margin:0 16px;max-width:none}.ticker-dots{display:none}}
@media(max-width:760px){.notice-ticker{display:none}}

.form-alert{margin:0 0 18px;font-size:13px}
.picker-toggle.invalid{border-color:#c9574a;background:#fff8f6}

/* Product photos fit their frame: every frame has a fixed shape on white, the whole
   photo is shown (contain, never cropped) and uploads are pre-fitted to 4:3 on the
   server (ProductImageStore), so parts fill the card evenly. */
.product-art{height:auto;aspect-ratio:4/3}
.product-art.has-photo,.product-photo{background:#fff}
.product-photo{padding:8px}
.product-figure{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;max-height:460px;background:#fff}
.product-figure img{width:100%;height:100%;max-height:none;object-fit:contain;padding:12px}
.picker-thumb,.stock-card .thumb{background:#fff;border:1px solid var(--line)}
.picker-thumb img,.stock-card .thumb img{object-fit:contain;padding:2px}
.product-list-thumb{object-fit:contain;background:#fff;padding:2px}
.product-photo-thumb{width:240px;height:180px;max-width:100%;max-height:none;object-fit:contain;background:#fff;padding:6px}

/* Phone and tablet corrections. These stay last so a narrow screen wins over the
   wide-screen defaults above; a rule added after them must have its own here. */
@media(max-width:1150px){
.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
}
@media(max-width:760px){
.product-grid{grid-template-columns:1fr;gap:12px}
.product-body{padding:14px 15px 16px}
.product-body h2{font-size:15px;margin:4px 0 10px}
.product-fit{margin:-6px 0 10px}
.product-specs{font-size:12px;gap:4px 12px;margin-bottom:14px}
.product-specs dd{overflow-wrap:normal;word-break:keep-all}
.heading-main{gap:12px}
.heading-cta{min-height:38px;padding:9px 14px;font-size:12px}
.heading-tools{gap:10px}
.catalog-table td,.catalog-table th{white-space:nowrap}
}

/* A button that stands in for an action that is not available (e.g. out of stock). */
.button.disabled{opacity:.5;cursor:not-allowed;pointer-events:none}
