:root{--ink:#17212b;--brand:#056f5f;--pale:#eef7f4;--line:#d9e0e3;--warn:#c64730}*{box-sizing:border-box}body{margin:0;background:#f6f8f8;color:var(--ink);font:15px -apple-system,BlinkMacSystemFont,"Hiragino Sans",sans-serif}header{background:#fff;display:flex;gap:28px;align-items:center;padding:14px max(18px,calc((100% - 1180px)/2));border-bottom:1px solid var(--line)}header>a{font-weight:800;color:var(--brand);text-decoration:none}nav{display:flex;gap:16px}a{color:#075d9e}main{max-width:1180px;margin:26px auto;padding:0 18px}.login-page main{max-width:32rem;margin:8vh auto 0}.login-card{padding:2rem}.logout-form{margin-left:auto}.title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.button,button{border:0;border-radius:7px;background:var(--brand);color:white;padding:10px 14px;text-decoration:none;display:inline-block;cursor:pointer;font-weight:650}.secondary{background:#40515c}.danger{background:var(--warn)}.text-button{background:none;color:#075d9e;padding:5px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}.card{background:white;border:1px solid var(--line);padding:16px;border-radius:10px}.card h2{font-size:17px;margin:0 0 8px}.form-grid{max-width:780px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label{display:grid;gap:5px;font-weight:650}.form-grid label:last-of-type{grid-column:1/-1}.form-wide{grid-column:1/-1}.form-actions{display:flex;gap:8px;flex-wrap:wrap}.price-warning{padding:10px;border:1px solid #d99b18;border-radius:7px;background:#fff3cc;color:#7a4b00;font-weight:700}input,textarea,select{font:inherit;padding:10px;border:1px solid #aebbc0;border-radius:6px;background:white;width:100%}textarea{min-height:80px}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:9px}table{border-collapse:collapse;width:100%;min-width:700px}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line)}th{background:#edf3f2}.search{display:flex;gap:8px;margin:12px 0}.search input{flex:1}.metrics{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.metrics div{background:white;border:1px solid var(--line);border-radius:8px;padding:12px 18px}.empty{color:#63727c}.scanner{max-width:640px;margin:auto}.scan-status{display:flex;justify-content:space-between;background:var(--pale);padding:12px;border-radius:8px}.scan-input{display:block;margin:20px 0 8px;font-weight:700}.scan-input input{font-size:21px;margin-top:7px;min-height:54px}#queue,#result{margin:12px 0;padding:12px;background:white;border:1px solid var(--line);border-radius:8px}.hint{color:#63727c;font-size:13px}.notice{padding:8px;background:#fff3cc}.error{color:var(--warn)}.success{color:var(--brand)}.product-image{width:90px;height:90px;object-fit:contain;float:right}.mobile-list{margin-top:24px}@media(max-width:620px){header{padding:12px 14px;gap:12px}nav{gap:10px;font-size:13px}.form-grid{grid-template-columns:1fr}.form-wide{grid-column:1}.title-row{align-items:flex-start;flex-direction:column}.scan-status{font-size:14px}.search{flex-wrap:wrap}.search input{min-width:100%}.scanner main{padding:0}h1{font-size:24px}}
.number-unit-input{position:relative;display:block}.number-unit-input input{padding-right:52px}.number-unit-input>span{position:absolute;top:50%;right:30px;transform:translateY(-50%);color:#52626b;font-weight:650;pointer-events:none}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.auction-filter{display:grid;grid-template-columns:180px minmax(260px,1fr) 230px auto;gap:12px;align-items:end}.auction-filter label,.bulk-grid label{display:grid;gap:4px;font-weight:650}.auction-metrics div{display:grid;gap:5px;min-width:120px}.auction-metrics small{color:#63727c}.capacity-over{border-color:#c64730;background:#fff0ed}.capacity-over strong{color:#c64730}.auction-tools{margin:14px 0}.auction-tools hr{border:0;border-top:1px solid var(--line);margin:14px 0}.auction-tools .form-actions label{display:flex;align-items:center;gap:5px}.auction-tools .form-actions label input{width:95px}.bulk-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin-bottom:12px}.auction-table-wrap{margin-top:14px}.auction-table{min-width:2200px}.auction-table th{position:sticky;top:0;z-index:1}.auction-table td{vertical-align:top}.auction-table .title-cell{min-width:300px;white-space:normal}.auction-table .nowrap{white-space:nowrap}.auction-table input[type=checkbox]{width:auto}.compact-input{width:78px;padding:7px}.dimension-input{width:62px;padding:7px}.row-actions{min-width:135px}.row-actions button{display:block}.task-status{display:inline-block;padding:4px 7px;border-radius:5px;background:#edf3f2;font-weight:700;white-space:nowrap}.status-needs_review,.status-failed,.status-failed_unknown{background:#ffe1db;color:#9b2f1d}.status-ready{background:#dcecff;color:#164f81}.status-submitted,.status-dry_run_completed{background:#d9f0df;color:#176438}.status-cancelled{background:#e4e7e8;color:#59666d}.task-error{display:block;max-width:180px;color:#9b2f1d;margin-top:5px}.auction-table select{min-width:270px}.auction-table td:nth-child(4),.auction-table td:nth-child(5){min-width:140px}@media(max-width:900px){.auction-filter,.bulk-grid{grid-template-columns:1fr 1fr}nav{flex-wrap:wrap}}@media(max-width:620px){.auction-filter,.bulk-grid{grid-template-columns:1fr}}
.compact-button{padding:6px 9px}.deleted-row{background:#f0f2f2;color:#68747b}.form-actions{align-items:center}.form-actions form{margin:0}.global-back-bar{display:flex;margin-bottom:12px}.global-back-button{padding:8px 12px}.edit-save-actions{margin-top:4px}.edit-save-actions #save-message{font-weight:700;color:var(--brand)}
.section-title{margin-top:24px}.section-title h2{margin-bottom:4px}.product-preview{margin-top:28px}.preview-table{min-width:1100px}.preview-table td:nth-child(2){min-width:260px;white-space:normal}.preview-table td:first-child{font-weight:700;white-space:nowrap}.recent-product-cards{grid-template-columns:repeat(5,minmax(180px,1fr))}@media(max-width:1000px){.recent-product-cards{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
.language-form{margin-left:auto}.language-form label{display:flex;align-items:center;gap:6px;font-size:12px;color:#52626b;white-space:nowrap}.language-form select{width:auto;padding:6px 24px 6px 8px}@media(max-width:760px){header{flex-wrap:wrap}.language-form{margin-left:0}.language-form label span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}}
.preserve-lines{white-space:pre-wrap}.batch-note{white-space:pre-wrap;color:#52626b;max-height:4.5em;overflow:hidden}
.batch-totals{margin:14px 0}.batch-totals div{display:grid;gap:4px;min-width:180px}.batch-totals b{font-size:22px}.batch-totals small{color:#52626b}.batch-totals .missing-price{font-size:12px}.batch-totals.totals-stale{opacity:.65}
.catalog-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:15px 0}.catalog-metrics div{display:grid;gap:5px;background:white;border:1px solid var(--line);border-radius:8px;padding:14px}.catalog-metrics b{font-size:22px;color:var(--brand)}.catalog-metrics span{color:#52626b}.catalog-search{display:flex;gap:10px;align-items:center;margin:16px 0}.catalog-search input{flex:1}.catalog-search a{white-space:nowrap}@media(max-width:620px){.catalog-search{align-items:stretch;flex-direction:column}nav{max-width:100%;overflow-x:auto}}
.catalog-upload-card{margin:16px 0}.catalog-upload-form{display:flex;align-items:center;gap:10px}.catalog-upload-form input{flex:1}.catalog-import-history{margin-top:24px}@media(max-width:620px){.catalog-upload-form{align-items:stretch;flex-direction:column}.catalog-search button{min-height:48px}}
.catalog-pagination{align-items:center;margin:14px 0}.catalog-pagination form{display:flex;align-items:center;gap:8px}.catalog-pagination label{display:flex;align-items:center;gap:6px;white-space:nowrap}.catalog-pagination input[type=number]{width:88px;padding:8px}
.shipping-dialog{width:min(620px,calc(100vw - 28px));border:0;border-radius:12px;padding:24px;box-shadow:0 18px 55px rgba(23,33,43,.32)}.shipping-dialog::backdrop{background:rgba(23,33,43,.58)}.shipping-dialog-header{display:flex;align-items:center;gap:10px}.shipping-dialog-header h2{margin:0}.shipping-dialog-header span{padding:4px 8px;border-radius:6px;background:#e6f0ff;color:#075d9e;font-weight:700}.shipping-product-title{font-size:17px;font-weight:700}.shipping-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.shipping-choice{display:grid;gap:8px;min-height:104px;background:white;color:#123b75;border:2px solid #1565c0;font-size:20px}.shipping-choice.yamat-button{color:#17212b;border-color:#40515c}.shipping-choice small{font-size:14px;font-weight:600}.shipping-choice:disabled{opacity:.55}.shipping-dialog .error{padding:10px;background:#fff0ed;border-radius:7px}@media(max-width:620px){.shipping-dialog{padding:18px}.shipping-choices{grid-template-columns:1fr}.shipping-choice{min-height:88px}}
.relation-filters{margin:16px 0}.relation-card{margin:14px 0}.relation-card h2 small{font-size:13px;color:#52626b}.relation-suggestion{padding:10px;background:var(--pale);border-radius:7px}.relation-candidates{display:grid;gap:8px;margin:12px 0}.relation-candidate{display:flex;gap:8px;padding:10px;border:1px solid var(--line);border-radius:7px}.relation-candidate input,.relation-form input[type=radio]{width:auto}.relation-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.relation-form label{display:grid;gap:5px;font-weight:650}.relation-form fieldset{border:1px solid var(--line);border-radius:7px}.relation-form fieldset label{display:inline-flex;margin-right:12px}.relation-form button{justify-self:start}@media(max-width:700px){.relation-form{grid-template-columns:1fr}}
.quality-metrics{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.quality-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.quality-breakdown ul{margin:0;padding-left:20px}.quality-form{margin:20px 0}.override-table td:nth-child(4){min-width:280px;white-space:normal}@media(max-width:700px){.quality-breakdown{grid-template-columns:1fr}}

/* Batch index: stronger hierarchy for fast warehouse operation. */
header{position:sticky;top:0;z-index:20;min-height:58px;padding-top:0;padding-bottom:0;box-shadow:0 1px 0 rgba(23,33,43,.04)}
header>a{font-size:16px;letter-spacing:-.01em}
nav a{position:relative;padding:19px 0 17px;text-decoration:none;font-weight:600;color:#28526f;white-space:nowrap}
nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px 3px 0 0;background:transparent}
nav a.active{color:var(--brand)}
nav a.active::after{background:var(--brand)}
.language-form select{border-color:#c8d2d5;border-radius:8px}

.batch-index{padding:0 0 48px}
.batch-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;margin-bottom:18px}
.batch-page-header h1{margin:0;color:#102033;font-size:40px;line-height:1.15;letter-spacing:-.035em}
.batch-page-header p{margin:10px 0 0;color:#60717d;font-size:16px;line-height:1.6}
.batch-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:none;flex-wrap:wrap;margin-top:4px}
.batch-create{flex:none;padding:14px 20px;border-radius:9px;font-size:16px;box-shadow:0 6px 16px rgba(5,111,95,.16)}
.completed-batches-link{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.completed-batches-link span{padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12px}
.batch-feature-row{display:grid;gap:14px;align-items:stretch}
.batch-feature-row.top-count-1{grid-template-columns:1fr}
.batch-feature-row.top-count-2{grid-template-columns:1.5fr 1fr}
.batch-feature-row.top-count-3{grid-template-columns:1.5fr repeat(2,minmax(0,1fr))}
.batch-feature-row.top-count-4{grid-template-columns:1.85fr repeat(3,minmax(0,1fr))}
.batch-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:14px}
.batch-card{position:relative;display:flex;min-width:0;min-height:270px;flex-direction:column;padding:15px 14px 13px;background:#fff;border:1px solid #dce4e5;border-radius:12px;box-shadow:0 5px 16px rgba(23,33,43,.035);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.batch-card:hover{border-color:#b7cbc7;box-shadow:0 9px 24px rgba(23,33,43,.075);transform:translateY(-1px)}
.batch-card-starred{border:2px solid #dfa92f;background:linear-gradient(145deg,#fffdf6 0%,#fff8dc 100%);box-shadow:0 10px 26px rgba(194,137,17,.16)}
.batch-card-starred:hover{border-color:#c88f15;box-shadow:0 13px 30px rgba(194,137,17,.22)}
.batch-card-starred .batch-number-panel{background:#fff3c7}
.batch-star-form{position:absolute;z-index:2;top:11px;right:11px;margin:0}
.batch-star-toggle{display:grid!important;width:38px;height:38px;min-height:0!important;place-items:center;padding:0!important;border:1px solid #cbd5d8;border-radius:50%;background:#fff;color:#7b8a92;font-size:25px;line-height:1;box-shadow:0 3px 10px rgba(23,33,43,.1)}
.batch-star-toggle:hover{border-color:#dfa92f;color:#c88f15;transform:scale(1.06)}
.batch-star-toggle.is-starred{border-color:#d69d20;background:#ffd968;color:#8b5b00;box-shadow:0 4px 14px rgba(194,137,17,.25)}
.batch-starred-label{display:inline-block;padding:3px 8px;border:1px solid #e1b84f;border-radius:999px;background:#fff0b8;color:#7b5300;font-size:11px;font-weight:850}
.batch-card-featured{position:relative;min-height:342px;padding:20px 22px 17px;border-left:5px solid var(--brand);background:#f8fcfa}
.batch-card-heading{min-height:55px;padding-right:42px}
.batch-card-heading h2{margin:0;color:#142237;font-size:17px;line-height:1.42;letter-spacing:-.015em;overflow-wrap:anywhere}
.batch-card-featured .batch-card-heading{min-height:86px}
.batch-card-featured .batch-card-heading h2{max-width:560px;font-size:25px;line-height:1.35}
.batch-card-kicker{display:inline-block;margin-bottom:8px;padding:3px 8px;border:1px solid #9dc9be;border-radius:999px;background:#eef8f5;color:var(--brand);font-size:11px;font-weight:800;letter-spacing:.06em}
.batch-number-panel{display:grid;grid-template-columns:1fr 1fr;margin:8px 0 10px;padding:8px 6px;border-radius:9px;background:#f1f5f3}
.batch-number{display:grid;gap:3px;place-items:center;text-align:center}
.batch-number+.batch-number{border-left:1px solid #ccd8d5}
.batch-number span{color:#667781;font-size:11px;font-weight:650}
.batch-number strong{color:#102033;font-size:20px;line-height:1.15}
.batch-card-featured .batch-number-panel{padding:15px 10px}
.batch-card-featured .batch-number strong{font-size:28px}
.batch-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:0}
.batch-meta div{min-width:0}
.batch-meta dt{margin:0 0 2px;color:#71808a;font-size:10px;font-weight:650}
.batch-meta dd{margin:0;color:#2b3c49;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.batch-card-featured .batch-meta{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 18px}
.batch-note{margin:12px 0 0;padding-top:10px;border-top:1px solid #edf1f2;color:#52626b;font-size:12px;line-height:1.45}
.batch-note span{margin-right:6px;color:#71808a;font-weight:700}
.batch-actions{display:flex;gap:7px;align-items:center;margin-top:auto;padding-top:12px}
.batch-actions .button,.batch-actions button{min-height:38px;padding:9px 10px;text-align:center}
.batch-actions .batch-open,.batch-actions .batch-edit{min-width:0;flex:1}
.batch-open{background:var(--brand)}
.batch-edit{border:1px solid #aebbc0;background:#fff;color:#243746}
.batch-delete{background:transparent;color:var(--warn);font-size:13px;padding-right:3px!important;padding-left:3px!important}
.batch-actions form{flex:none;margin:0}
.batch-actions a:focus-visible,.batch-actions button:focus-visible,.batch-star-toggle:focus-visible,.batch-create:focus-visible,.store-directory-compact summary:focus-visible,nav a:focus-visible{outline:3px solid rgba(5,111,95,.26);outline-offset:3px}

@media(max-width:1050px){
  .batch-feature-row.top-count-4,.batch-feature-row.top-count-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .batch-card-featured{grid-column:1/-1}
  .batch-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .batch-card-featured .batch-meta{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Live product-code label generator (A-one 31320). */
.product-code-label-button{background:#7b4c9d}
.product-code-label-page main{max-width:980px}
.label-generator-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.label-generator-header h1{margin:3px 0 8px;font-size:36px;letter-spacing:-.03em}
.label-generator-header p{margin:0;color:#60717d;line-height:1.55}
.label-generator-header .eyebrow{color:#7b4c9d;font-size:12px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.label-direct-download{flex:none;min-height:46px;background:#7b4c9d}
.label-batch-picker{margin-bottom:14px;background:#f5f1f8;border-color:#ded2e7}
.label-batch-picker label,.label-profile-select{display:grid;gap:6px;font-weight:750}
.label-batch-picker .hint{margin:9px 0 0}
.label-generator-form{display:grid;gap:14px}
.label-generator-form .card{padding:20px}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.section-title-row>div{display:flex;align-items:center;gap:9px}
.section-title-row h2{margin:0;font-size:20px}
.section-title-row>div>span{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#ede5f3;color:#6a3f8a;font-size:12px;font-weight:850}
.section-title-row p{margin:0;padding:7px 10px;border-radius:8px;background:#eef7f4;color:var(--brand);font-size:13px;font-weight:800}
.label-form-grid,.custom-measurements,.calibration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.label-form-grid label,.custom-measurements label,.calibration-grid label{display:grid;gap:5px;font-weight:700}
.generated-code-hint{color:#65747d;font-size:12px;font-weight:650}
.generated-code-hint code{color:#5f367e;font-size:13px;font-weight:850}
.batch-identifier-preview{display:flex;align-items:center;gap:10px;margin-top:16px;padding:12px 14px;border:1px solid #d7c9e2;border-radius:9px;background:#faf8fb}
.batch-identifier-preview span{font-weight:800}
.batch-identifier-preview code{font-size:16px;font-weight:850;color:#5f367e}
.batch-identifier-preview small{margin-left:auto;color:#65747d}
.label-profile-select{max-width:620px}
.profile-status{margin:10px 0 0;padding:10px 12px;border-left:4px solid #7b4c9d;background:#f5f1f8;color:#4f3960;font-weight:700}
.custom-measurements{margin-top:14px;padding:14px;border:1px solid #ded2e7;border-radius:9px;background:#faf8fb}
.custom-measurements[hidden]{display:none}
.label-advanced-settings{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.label-advanced-settings summary{cursor:pointer;color:#40515c;font-weight:800}
.calibration-grid{margin-top:14px}
.label-print-guide{display:flex;align-items:center;gap:14px;padding:14px 18px;border:1px solid #d9b76e;border-radius:10px;background:#fff8df;color:#6c4a00}
.label-print-guide strong{white-space:nowrap}
.label-generator-actions{display:grid;grid-template-columns:2fr 1fr;gap:10px}
.label-generator-actions button{min-height:50px;font-size:16px}
@media(max-width:700px){
  .label-generator-header{align-items:stretch;flex-direction:column}
  .label-generator-header h1{font-size:28px}
  .label-form-grid,.custom-measurements,.calibration-grid,.label-generator-actions{grid-template-columns:1fr}
  .batch-identifier-preview{align-items:flex-start;flex-direction:column}
  .batch-identifier-preview small{margin-left:0}
  .section-title-row{align-items:flex-start;flex-direction:column}
  .label-print-guide{align-items:flex-start;flex-direction:column;gap:5px}
  .label-generator-form .card{padding:16px}
  .label-generator-actions button,.label-direct-download{min-height:48px}
}
@media(max-width:900px){
  header{display:grid;grid-template-columns:auto 1fr auto;gap:0 16px;padding:10px 18px 0}
  header>a{grid-column:1;grid-row:1;align-self:center}
  .language-form{grid-column:3;grid-row:1;margin:0}
  nav{grid-column:1/-1;grid-row:2;gap:18px;flex-wrap:nowrap;overflow-x:auto}
  nav a{padding:12px 0 10px}
}
@media(max-width:760px){
  .batch-page-header h1{font-size:32px}
  .batch-feature-row,.batch-feature-row.top-count-2,.batch-feature-row.top-count-3,.batch-feature-row.top-count-4,.batch-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .batch-card-featured{grid-column:1/-1}
  .batch-card-featured .batch-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  header{position:static;display:grid;padding:10px 14px 0}
  nav a{padding:8px 0}
  nav a::after{display:none}
  .batch-index{padding-top:8px}
  .batch-page-header{align-items:stretch;flex-direction:column;margin-bottom:20px}
  .batch-page-header h1{font-size:29px}
  .batch-page-header p{font-size:14px}
  .batch-header-actions{align-self:stretch;margin-top:0}
  .batch-create{margin-left:auto}
  .batch-feature-row,.batch-feature-row.top-count-2,.batch-feature-row.top-count-3,.batch-feature-row.top-count-4,.batch-card-grid{grid-template-columns:1fr}
  .batch-card-featured{grid-column:auto}
  .batch-card{min-height:0}
  .batch-card-featured .batch-card-heading h2{font-size:22px}
  .batch-actions .button,.batch-actions button{min-height:44px}
  .batch-delete{min-width:40px}
}

/* Batch date search and today's operation zone. */
.batch-date-search{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:4px 0 18px;padding:12px 14px;border:1px solid #d9e4e1;border-radius:10px;background:#fff}
.batch-date-search label{display:grid;gap:5px;min-width:220px;color:#33464f;font-weight:800}
.batch-date-search label span{font-size:12px}
.batch-date-search input{min-height:40px}
.batch-date-search button,.batch-date-search .button{min-height:40px;padding:10px 16px}
.today-batch-zone{margin:0 0 26px;padding:18px;border:2px solid #0b806e;border-radius:16px;background:linear-gradient(135deg,#edf9f5 0%,#f8fcfa 70%);box-shadow:0 10px 30px rgba(5,111,95,.09);scroll-margin-top:78px}
.batch-group-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:12px}
.batch-group-heading span{display:block;margin-bottom:3px;color:#0b806e;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.batch-group-heading h2{margin:0;color:#102033;font-size:22px;letter-spacing:-.02em}
.batch-group-heading>strong{color:#0b806e;font-size:15px}
.batch-group-heading>small{color:#667781;font-weight:700}
.batch-date-title-line{display:flex;align-items:center;gap:12px}
.batch-group-summary{display:flex;align-items:center;gap:12px}
.batch-group-summary strong{color:#0b806e;font-size:15px}
.batch-group-summary small{color:#667781;font-weight:700}
.batch-date-create{display:none}
.today-batch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
.batch-card-today{min-height:280px;border-color:#b5d8cf;background:#fff}
.batch-card-today.batch-card-starred{border-color:#dfa92f;background:linear-gradient(145deg,#fffdf6 0%,#fff5cf 100%)}
.batch-card-today .batch-card-heading h2{font-size:20px}
.batch-tags{display:flex;align-items:center;gap:6px;min-height:24px;margin-bottom:6px}
.batch-label{display:inline-block;padding:3px 8px;border-radius:999px;background:#e8efff;color:#244f8f;font-size:11px;font-weight:800;vertical-align:middle}
.batch-date-group{margin-top:24px;scroll-margin-top:78px}
.batch-date-group+.batch-date-group{padding-top:24px;border-top:1px solid #dfe6e7}
.batch-date-group .batch-card-grid{margin-top:0}
@media(min-width:761px){
  .batch-date-group{margin:22px 0 30px;padding:0 18px 20px;border:1px solid #d3dfdd;border-left:5px solid #7aa79e;border-radius:14px;background:#f0f5f3;box-shadow:0 7px 22px rgba(23,33,43,.05);overflow:hidden}
  .batch-date-group+.batch-date-group{padding-top:0;border-top:1px solid #d3dfdd}
  .batch-date-group .batch-group-heading{margin:0 -18px 16px;padding:13px 18px;border-bottom:1px solid #d5e1df;background:#e6efec}
  .batch-date-group .batch-card-grid{margin-top:0}
  .batch-date-create{display:inline-flex;min-height:36px;align-items:center;padding:8px 12px;border:1px solid #087764;background:#fff;color:var(--brand);font-size:13px;box-shadow:0 2px 7px rgba(5,111,95,.08);white-space:nowrap}
  .batch-date-create:hover{background:#eaf6f2}
  .batch-date-create:focus-visible{outline:3px solid rgba(5,111,95,.26);outline-offset:3px}
}
.reentry-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:16px 18px;border:2px solid #d99b18;border-radius:10px;background:#fff7dc}
.reentry-alert strong{font-size:18px;color:#7a4b00}
.reentry-alert p{margin:5px 0 0;color:#725b2d}
.store-directory-compact{position:relative}
.store-directory-compact summary{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 14px;border:1px solid #aab9be;border-radius:9px;background:#fff;color:#243746;font-size:14px;font-weight:800;cursor:pointer;list-style:none;box-shadow:0 3px 10px rgba(23,33,43,.04)}
.store-directory-compact summary::-webkit-details-marker{display:none}
.store-directory-compact summary:hover{border-color:#6f8d87;background:#fbfdfc}
.store-directory-compact summary strong{padding:3px 7px;border-radius:999px;background:#eaf4f1;color:var(--brand);font-size:11px}
.store-directory-chevron{color:#60717d;font-size:16px;transition:transform .16s ease}
.store-directory-compact[open] .store-directory-chevron{transform:rotate(180deg)}
.store-directory-popover{position:absolute;z-index:15;top:calc(100% + 10px);right:0;width:min(500px,calc(100vw - 36px));padding:17px;border:1px solid #ccd9d6;border-radius:13px;background:#fff;box-shadow:0 18px 48px rgba(23,33,43,.18)}
.store-directory-popover::before{content:"";position:absolute;top:-6px;right:76px;width:11px;height:11px;border-top:1px solid #ccd9d6;border-left:1px solid #ccd9d6;background:#fff;transform:rotate(45deg)}
.store-directory-popover-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.store-directory-popover-heading>div>span{color:var(--brand);font-size:10px;font-weight:800;letter-spacing:.08em}
.store-directory-popover-heading h2{margin:2px 0 0;font-size:18px}
.store-directory-popover-heading p{max-width:260px;margin:0;color:#667781;font-size:12px;line-height:1.45}
.store-add-form{display:flex;align-items:center;gap:8px}
.store-add-form label{flex:1}
.store-add-form button{white-space:nowrap}
.store-directory-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #edf1f2}
.store-directory-item{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 11px;border-radius:999px;background:#eef5f3;color:#25463f;font-size:12px}
.store-directory-item form{margin:0}
.store-remove{padding:3px 6px!important;background:transparent;color:var(--warn);font-size:11px}
@media(max-width:620px){
  .today-batch-zone{padding:13px}
  .today-batch-grid{grid-template-columns:1fr}
  .batch-group-heading{align-items:flex-start;flex-direction:column;gap:4px}
  .reentry-alert{align-items:stretch;flex-direction:column}
  .store-directory-popover{right:auto;left:0}
  .store-directory-popover::before{right:auto;left:66px}
  .store-directory-popover-heading{flex-direction:column;gap:5px}
  .store-add-form{align-items:stretch;flex-direction:column;min-width:0}
}

/* Handheld batch index: prioritize today's work without changing desktop behavior. */
.batch-title-mobile,.directory-label-mobile{display:none}
.batch-management-actions{display:contents}
.batch-filter-shell>summary{display:none}

@media(max-width:760px){
  body.batch-index-page header{position:sticky;top:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;min-height:0;padding:6px 12px 0}
  body.batch-index-page header>a{grid-column:1;grid-row:1;display:flex;min-height:44px;align-items:center;font-size:15px}
  body.batch-index-page .language-form{grid-column:2;grid-row:1;margin:0}
  body.batch-index-page .language-form select{min-height:44px;padding:5px 24px 5px 8px}
  body.batch-index-page nav{grid-column:1/-1;grid-row:2;gap:4px;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
  body.batch-index-page nav::-webkit-scrollbar{display:none}
  body.batch-index-page nav a{display:flex;min-height:44px;align-items:center;padding:0 8px;font-size:12px}
  body.batch-index-page main{margin:8px auto;padding:0 12px}
  body.batch-index-page .global-back-bar{margin-bottom:8px}
  body.batch-index-page .global-back-button{min-height:44px;padding:8px 10px;font-size:13px}

  .batch-index{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;padding:0 0 32px}
  .batch-page-header,.batch-header-actions{display:contents}
  .batch-page-copy{grid-column:1;order:0;min-width:0;align-self:center}
  .batch-page-header h1{font-size:24px;line-height:1.2;letter-spacing:-.025em}
  .batch-page-header p{display:none}
  .batch-title-full,.directory-label-full{display:none}
  .batch-title-mobile,.directory-label-mobile{display:inline}
  .batch-create{grid-column:2;order:1;min-height:44px;margin:0;align-self:center;padding:10px 12px;border-radius:8px;box-shadow:none;font-size:14px;white-space:nowrap}
  .batch-index>.notice{grid-column:1/-1;order:2;margin:8px 0 0}

  .batch-filter-shell{display:block;grid-column:1/-1;order:3;margin-top:8px}
  .batch-filter-shell>summary{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border:1px solid #cdd9d6;border-radius:9px;background:#fff;color:#243746;font-weight:800;cursor:pointer;list-style:none}
  .batch-filter-shell>summary::-webkit-details-marker{display:none}
  .batch-filter-shell>summary strong{padding:3px 8px;border-radius:999px;background:#eaf4f1;color:var(--brand);font-size:11px}
  .batch-filter-chevron{color:#60717d;font-size:16px;transition:transform .16s ease}
  .batch-filter-shell[open] .batch-filter-chevron{transform:rotate(180deg)}
  .batch-filter-shell[open]>summary{border-radius:9px 9px 0 0}
  .batch-filter-shell:not([open])>.batch-date-search{display:none}
  .batch-filter-shell>.batch-date-search{display:grid;grid-template-columns:1fr;margin:0;padding:12px;border-top:0;border-radius:0 0 9px 9px;gap:10px}
  .batch-date-search label{min-width:0}
  .batch-date-search input,.batch-date-search select,.batch-date-search button,.batch-date-search .button{min-height:44px}

  .today-batch-zone{grid-column:1/-1;order:4;margin:10px 0 12px;padding:10px;border-radius:12px}
  .scheduled-batch-groups{grid-column:1/-1;order:5}
  .batch-index>.empty{grid-column:1/-1;order:5}
  .today-batch-grid,.batch-card-grid{grid-template-columns:1fr;gap:10px}
  .today-batch-zone .batch-group-heading{align-items:center;flex-direction:row;gap:8px;margin-bottom:8px}
  .today-batch-zone .batch-group-heading span{display:none}
  .today-batch-zone .batch-group-heading h2{font-size:20px}
  .today-batch-zone .batch-group-summary{margin-left:auto;gap:6px}
  .today-batch-zone .batch-group-summary strong{font-size:12px;white-space:nowrap}
  .today-batch-zone .batch-group-summary small{display:none}
  .scheduled-batch-groups .batch-group-heading{align-items:flex-end;flex-direction:row}
  .batch-date-group{margin:18px 0}
  .batch-date-group+.batch-date-group{padding-top:18px}
  .batch-date-group .batch-card-grid{margin-top:0}

  .batch-card,.batch-card-today{min-height:0;padding:12px;border-radius:10px}
  .batch-card-heading{min-height:0;padding-right:42px}
  .batch-card-heading h2,.batch-card-today .batch-card-heading h2{font-size:18px;line-height:1.35}
  .batch-tags{min-height:20px;margin-bottom:4px;flex-wrap:wrap}
  .batch-card-kicker{margin-bottom:0}
  .batch-star-form{top:8px;right:8px}
  .batch-star-toggle{width:44px;height:44px}
  .batch-number-panel{margin:8px 0;padding:7px 4px}
  .batch-meta{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:14px;row-gap:7px}
  .batch-meta-item{display:grid;min-width:0;align-content:start;gap:1px}
  .batch-meta-live-date{order:1}
  .batch-meta-session{order:2}
  .batch-meta-venue{order:3}
  .batch-meta-store{order:4}
  .batch-meta-operator{order:5}
  .batch-meta-rate{order:6}
  .batch-meta-created{grid-column:1/-1;order:7;display:flex;align-items:baseline;gap:6px;padding-top:5px;border-top:1px solid var(--line)}
  .batch-meta dt{margin:0;color:#52626b;font-size:11px;font-weight:650;line-height:1.2}
  .batch-meta dd{color:var(--ink);font-size:15px;font-weight:700;line-height:1.2}
  .batch-meta-live-date dd,.batch-meta-session dd{font-size:16px}
  .batch-meta-created dt{font-size:11px}
  .batch-meta-created dd{color:#52626b;font-size:13px;font-weight:650}
  .batch-actions{gap:6px;padding-top:10px}
  .batch-actions .button,.batch-actions button{min-height:44px}
  .batch-delete{min-width:44px}

  .batch-management-actions{position:relative;grid-column:1/-1;order:6;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px;padding-top:10px;border-top:1px solid #dfe6e7}
  .batch-management-actions::before{content:attr(aria-label);grid-column:1/-1;color:#52626b;font-size:12px;font-weight:800}
  .batch-management-actions>.store-directory-compact{position:static;min-width:0}
  .batch-management-actions .store-directory-compact summary,.batch-management-actions>.completed-batches-link{display:flex;min-width:0;min-height:44px;align-items:center;justify-content:center;gap:3px;padding:4px;border-radius:8px;font-size:12px;box-shadow:none}
  .batch-management-actions .store-directory-compact summary strong{padding:2px 4px;font-size:10px}
  .batch-management-actions .store-directory-chevron{display:none}
  .completed-batches-link .directory-label-full,.completed-batches-link .directory-label-mobile{padding:0;background:transparent;font-size:inherit}
  .batch-management-actions>.completed-batches-link>span:last-child{padding:2px 4px;font-size:10px}
  .batch-management-actions .store-directory-popover{top:calc(100% + 8px);right:0;left:0;width:auto}
  .batch-management-actions .store-directory-popover::before{display:none}

  .batch-index-completed .batch-page-copy{grid-column:1/-1}
  .batch-index-completed .batch-header-actions>.completed-batches-link{grid-column:1/-1;order:2;justify-self:start;margin-top:6px;min-height:44px}
  .batch-index-completed .batch-filter-shell{order:3}
}
