@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Oswald:wght@600;700&display=swap');
.admin-tabs button[hidden]{display:none!important}
.card-title-menu-button{position:fixed;z-index:80;top:8px;left:8px;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px;width:min(250px,calc(100vw - 16px));padding:7px 10px;border:1px solid #3c3c52;border-radius:12px;background:rgba(12,12,19,.96);box-shadow:0 7px 22px rgba(0,0,0,.42);color:#f4f4fa;text-align:left;cursor:pointer}.card-title-menu-button>span:last-child{display:grid;min-width:0}.card-title-menu-button small{color:#9494af;font-size:9px}.card-title-menu-button b{overflow:hidden;font-size:12px;white-space:nowrap;text-overflow:ellipsis}.card-title-menu-logo{display:grid;place-items:center;width:40px;height:40px;overflow:hidden;border:1px solid #303047;border-radius:9px;background:#20202d;color:#e8c840;font-size:18px;font-weight:900}.card-title-menu-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.card-title-dialog{width:min(620px,calc(100vw - 24px));max-height:82vh}.card-title-dialog>p{margin:0 0 12px;color:#9494af}.card-title-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:60vh;overflow:auto}.card-title-choice{display:grid;place-items:center;width:100%;min-width:0;aspect-ratio:4/3;padding:9px;border:1px solid #303047;border-radius:10px;background:#1e1e2a;color:#f4f4fa;cursor:pointer}.card-title-choice.active{border-color:#00d4aa;box-shadow:inset 0 0 0 1px #00d4aa}.card-title-choice img,.card-title-choice-logo{display:grid;place-items:center;width:100%;height:100%;min-width:0;border-radius:7px;background:#fff;color:#181824;object-fit:contain;font-weight:900;font-size:clamp(18px,4vw,34px)}.card-title-choice small{color:#9494af}.admin-header,.public-header{padding-left:275px!important}.card-title-logo-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.card-title-logo-control img{width:160px;height:70px;padding:5px;border:1px solid #303047;border-radius:8px;background:#fff;object-fit:contain}.admin-search-empty{padding:44px 16px;font-size:14px;line-height:1.8}@media(max-width:760px){.card-title-menu-button{position:sticky;top:4px;margin:4px 8px}.admin-header,.public-header{padding-left:12px!important}.card-title-dialog{max-height:90vh}.card-title-choices{gap:7px}.card-title-choice{padding:6px}}
.app-login-gate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 20%,#20202d 0,#0a0a0f 55%);color:#f4f4fa}.app-login-gate[hidden]{display:none}.app-login-card{width:min(410px,100%);padding:28px;border:1px solid #343449;border-radius:18px;background:rgba(18,18,26,.98);box-shadow:0 24px 80px rgba(0,0,0,.55)}.app-login-card>small,.admin-title-landing small{color:#e8c840;font:700 10px Oswald;letter-spacing:2px}.app-login-card h1{margin:6px 0 8px;font-size:24px}.app-login-card>p{margin:0 0 18px;color:#a5a5bb;font-size:12px;line-height:1.7}.app-login-card form{display:grid;gap:12px}.app-login-card label{display:grid;gap:6px;color:#c8c8d6;font-size:11px}.app-login-card input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #3c3c52;border-radius:9px;background:#0d0d14;color:#fff;font-size:16px}.app-login-card .wide{margin-top:2px}.app-login-message{min-height:20px;margin:14px 0 0!important;color:#e8c840!important}.app-login-message[data-state="error"]{color:#ff6b7b!important}.admin-title-landing{width:min(760px,calc(100% - 32px));margin:0 auto;padding:48px 0;color:#f4f4fa}.admin-title-landing-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-title-landing h1{margin:5px 0 0;font-size:26px}.admin-title-landing>p{margin:8px 0 18px;color:#a5a5bb;font-size:12px}.admin-title-landing .card-title-choices{max-height:none}.admin-title-landing .card-title-choice{min-height:72px}.admin-body[data-admin-route="x-post"] #pageCart>.workflow-guide,.admin-body[data-admin-route="x-post"] .price-update-column{display:none}.admin-body[data-admin-route="x-post"] .price-flyer-layout{grid-template-columns:minmax(0,1fr)}.admin-body[data-admin-route="x-post"] .flyer-side-column{position:static;max-height:none;overflow:visible}.admin-body[data-admin-route="x-post"] .flyer-side-column .flyer-canvas{max-width:100%;margin:auto}@media(max-width:560px){.app-login-card{padding:22px}.admin-title-landing{width:calc(100% - 24px);padding:28px 0}.admin-title-landing-head{align-items:flex-start}.admin-title-landing h1{font-size:22px}}
:root{--bg:#0d0d14;--surface:#16161f;--card:#1e1e2a;--border:#303047;--accent:#e8c840;--text:#f4f4fa;--muted:#9494af;--hot:#ff5161;--psa:#c084fc;--new:#00d4aa}
*{box-sizing:border-box}html{background:var(--bg);color:var(--text);font-family:"Noto Sans JP",sans-serif}body{margin:0;min-height:100vh;background:var(--bg)}button,input,select{font:inherit}.public-header{position:sticky;top:0;z-index:10;padding:12px 14px 9px;background:rgba(13,13,20,.96);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}.brand-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.brand{display:flex;align-items:center;gap:9px;min-width:0}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--accent);color:#111;font-family:Oswald;font-weight:700}.brand b{display:block;font-family:Oswald;font-size:17px;white-space:nowrap}.brand small{display:block;color:var(--muted);font-size:9px}.updated{font-size:9px;color:var(--muted);white-space:nowrap}.updated b{color:var(--accent)}.chips{display:flex;gap:6px;overflow-x:auto;padding-top:10px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chips button,.segmented button{border:1px solid var(--border);background:transparent;color:var(--muted);border-radius:999px;white-space:nowrap}.chips button{padding:6px 12px;font-size:11px}.chips button.active,.segmented button.active{background:var(--accent);border-color:var(--accent);color:#111;font-weight:700}.search-panel{padding:10px 14px;background:var(--surface);border-bottom:1px solid var(--border)}.search{display:flex;align-items:center;gap:7px;padding:9px 11px;background:var(--card);border:1px solid var(--border);border-radius:10px}.search:focus-within{border-color:var(--accent)}.search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:13px}.filter-row{display:flex;gap:7px;margin-top:8px;overflow-x:auto}.filter-row select,.icon-button,.admin-tools select,.bulk select,.bulk input{border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);padding:7px 9px;font-size:11px}.segmented{display:flex;gap:4px}.segmented button{padding:6px 10px;font-size:10px}.icon-button{white-space:nowrap}.summary{display:flex;gap:14px;padding:8px 14px;color:var(--muted);font-size:10px}.summary b{color:var(--accent)}.summary .psa-text,.summary .psa-text b{color:var(--psa)}.summary .hot-text,.summary .hot-text b{color:var(--hot)}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:4px 12px 78px}.card{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--text);padding:0;text-align:left}.card.psa{border-color:rgba(192,132,252,.5)}.card-image{position:relative;aspect-ratio:3/4;background:#11111a;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:cover}.placeholder{display:grid;place-items:center;width:100%;height:100%;color:#55556e;font-size:34px}.flag{position:absolute;top:7px;left:7px;padding:3px 7px;border-radius:5px;background:var(--hot);font-size:9px;font-weight:700}.flag.psa{background:var(--psa)}.price{position:absolute;inset:auto 0 0;padding:8px;background:linear-gradient(transparent,rgba(0,0,0,.92));color:var(--accent);font:700 19px Oswald}.card-info{padding:8px}.card-name{display:-webkit-box;min-height:36px;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:11px;line-height:1.55}.meta{display:flex;justify-content:space-between;gap:4px;margin-top:6px;color:var(--muted);font-size:9px}.badge{padding:2px 6px;border-radius:7px;background:rgba(232,200,64,.12);color:var(--accent)}.empty{text-align:center;color:var(--muted);padding:60px 20px}
dialog{width:min(92vw,520px);border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);padding:16px}dialog::backdrop{background:rgba(0,0,0,.82)}.dialog-close{float:right;border:0;background:transparent;color:var(--muted);font-size:25px}.detail-layout{display:grid;grid-template-columns:110px 1fr;gap:14px;padding-top:24px}.detail-layout .card-image{border-radius:9px}.detail-layout h2{font-size:14px;line-height:1.5}.detail-price{color:var(--accent);font:700 25px Oswald}.detail-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--border);padding:7px 0;color:var(--muted);font-size:11px}.detail-row b{color:var(--text)}
.admin-body{background:#0a0a0f}.admin-header{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 20px;background:rgba(10,10,15,.96);border-bottom:1px solid var(--border)}.admin-header small{color:var(--accent);font:600 10px Oswald;letter-spacing:2px}.admin-header h1{margin:2px 0 0;font-size:17px}.header-actions{display:flex;gap:8px}.button{border:1px solid var(--border);border-radius:8px;padding:8px 12px;background:transparent;color:var(--text);font-size:11px;text-decoration:none;cursor:pointer}.button.primary{border-color:var(--accent);background:var(--accent);color:#111;font-weight:700}.button.danger{border-color:rgba(255,81,97,.5);color:var(--hot)}.button.wide{width:100%;margin-top:14px}.admin-main{padding:14px 18px}.admin-tools,.bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:11px}.admin-tools .search{width:min(330px,100%)}.bulk{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:11px}.bulk strong{color:var(--accent)}.bulk input[type=number]{width:110px}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:11px}table{width:100%;min-width:1100px;border-collapse:collapse;background:var(--surface);font-size:11px}th,td{padding:8px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}th{position:sticky;top:0;background:#14141d;color:var(--muted);font-size:10px}td input,td select{max-width:170px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--text);padding:5px}td input:focus,td select:focus{border-color:var(--accent);outline:0;background:var(--card)}.right{text-align:right}.thumb{width:38px;height:52px;border-radius:5px;object-fit:cover;background:var(--card)}.row-actions{display:flex;gap:5px}.save-note{color:var(--muted);font-size:10px}.dialog-title{display:flex;justify-content:space-between;align-items:center}.dialog-title h2{font-size:16px}#editorForm>label,.form-grid label{display:grid;gap:5px;margin:9px 0;color:var(--muted);font-size:11px}#editorForm input,#editorForm select{width:100%;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);padding:9px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.file-label input{padding:6px!important}.check-label{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.check-label input{width:auto!important}.toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%,20px);padding:9px 16px;border-radius:9px;background:var(--accent);color:#111;font-size:11px;font-weight:700;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
.admin-tabs{display:flex;gap:4px;margin:-14px -18px 14px;padding:0 18px;background:var(--surface);border-bottom:1px solid var(--border)}.admin-tabs button{padding:12px 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-weight:700}.admin-tabs button.active{color:var(--accent);border-color:var(--accent)}.admin-tabs span{margin-left:3px;padding:1px 6px;border-radius:10px;background:var(--new);color:#07110f;font-size:9px}.admin-page{display:none}.admin-page.active{display:block}.button.cart-button{border-color:rgba(0,212,170,.45);color:var(--new)}.button.market.mercari{border-color:#ff7651;color:#ff7651}.button.market.snkr{border-color:#e7a22b;color:#e7a22b}.market-links{margin:-2px 0 11px;padding:9px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}.market-links a{display:inline-block;margin:3px;padding:5px 8px;border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:10px;text-decoration:none}.thumb.drop{outline:2px solid var(--accent)}.cart-summary{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;margin-bottom:12px}.summary-box{padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--card)}.summary-box.primary{border-color:rgba(0,212,170,.4)}.summary-box small{display:block;color:var(--muted)}.summary-box b{font:600 20px Oswald}.summary-box.primary b{color:var(--new)}.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.page-actions p{flex:1;color:var(--muted);font-size:11px}.cart-items{display:grid;gap:7px}.cart-item{display:grid;grid-template-columns:45px 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--card)}.cart-item img,.cart-thumb{width:45px;height:62px;object-fit:cover;border-radius:5px;background:var(--surface)}.cart-item h3{margin:0 0 4px;font-size:12px}.cart-item small{color:var(--muted)}.cart-price{text-align:right}.cart-price input{display:block;width:120px;margin:4px 0;padding:7px;border:1px solid rgba(0,212,170,.35);border-radius:7px;background:rgba(0,212,170,.07);color:var(--new);text-align:right;font:600 16px Oswald}.flyer-settings,.export-panel{margin-bottom:10px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.flyer-settings h2,.export-panel h2{margin:0 0 9px;font-size:12px;color:var(--muted)}.flyer-fields,.export-panel{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.flyer-fields label,.export-panel label{display:grid;gap:4px;color:var(--muted);font-size:10px}.flyer-fields input,.flyer-fields select,.export-panel input,.export-panel select{padding:7px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--text)}.flyer-preview{overflow:auto;padding:14px;border:1px solid var(--border);border-radius:10px;background:#171717}.flyer-canvas{width:760px;min-height:500px;padding:25px;background:#1c1c1c;color:white}.flyer-head{text-align:center;margin-bottom:18px}.flyer-head small{color:#888;letter-spacing:3px}.flyer-head h2{margin:3px;font:700 42px Oswald}.flyer-head h3{margin:0;font-size:22px}.flyer-grid{display:grid;gap:8px}.flyer-card{overflow:hidden;border:1px solid #333;border-radius:7px;background:#111}.flyer-card .image{position:relative;aspect-ratio:3/4;background:#080808}.flyer-card img{width:100%;height:100%;object-fit:cover}.flyer-card .body{padding:7px}.flyer-card h4{height:31px;margin:0 0 4px;overflow:hidden;font-size:10px}.flyer-card b{color:var(--accent);font:600 20px Oswald}.flyer-foot{display:flex;justify-content:space-between;gap:20px;margin-top:14px;padding-top:10px;border-top:1px solid #333;color:#777;font-size:9px}.flyer-foot strong{align-self:end;padding:5px 10px;border:1px solid #444;border-radius:5px;color:#aaa}.drop-overlay{display:none;position:fixed;inset:0;z-index:30;place-items:center;border:3px dashed var(--accent);background:rgba(5,5,9,.88);color:var(--accent);font-size:18px;font-weight:700;pointer-events:none}.drop-overlay.show{display:grid}
@media(min-width:650px){.public-header,.search-panel,.summary{padding-left:max(18px,calc((100vw - 1080px)/2));padding-right:max(18px,calc((100vw - 1080px)/2))}.card-grid{max-width:1080px;margin:auto;grid-template-columns:repeat(4,1fr);gap:12px;padding-left:18px;padding-right:18px}.price{font-size:22px}}@media(min-width:960px){.card-grid{grid-template-columns:repeat(5,1fr)}}@media(max-width:560px){.admin-header{align-items:flex-start;padding:11px 12px}.header-actions{flex-direction:column}.admin-main{padding:10px}.bulk{align-items:stretch}.bulk .button{flex:1}.form-grid{grid-template-columns:1fr}.detail-layout{grid-template-columns:95px 1fr}}
.button.market.cardrush{border-color:#ef3d45;color:#ff656b}
.sort-heading{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:var(--muted);padding:0;font-size:10px;cursor:pointer}.sort-heading span{font-size:9px}.sort-heading.active{color:var(--accent)}
.db-column-heading{display:inline-flex;align-items:center;justify-content:space-between;gap:5px;width:100%;min-width:max-content;padding:3px 2px;border:0;background:transparent;color:var(--muted);font:inherit;cursor:pointer;text-align:left}.db-column-heading span{color:#77778d;font-size:.85em}.db-column-heading:hover,.db-column-heading:focus-visible{color:var(--text);outline:0}.db-column-heading.active{color:var(--accent)}.db-column-heading.filtered span{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--new);color:#071512;font-size:8px;font-weight:900}
.db-column-header-controls{display:grid;grid-template-columns:minmax(0,1fr) 25px 25px;align-items:center;gap:2px;min-width:max-content;padding-right:4px}.db-column-static-label{padding:4px 5px;color:var(--muted);font-weight:800}.simple-eye-icon{position:relative;display:inline-block;width:15px;height:10px;box-sizing:border-box;border:1.5px solid currentColor;border-radius:50%/60%;color:currentColor}.simple-eye-icon::after{position:absolute;top:50%;left:50%;width:4px;height:4px;border-radius:50%;background:currentColor;content:"";transform:translate(-50%,-50%)}.db-column-eye-toggle{display:grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#b8b8c8;font-size:0;cursor:pointer}.db-column-eye-toggle:hover,.db-column-eye-toggle:focus-visible{border-color:var(--new);color:var(--new);outline:0}.db-column-eye-toggle.column-hidden .simple-eye-icon,.database-layout-row.column-hidden .simple-eye-icon{opacity:.3}.db-column-drag-handle,.database-layout-drag-handle{display:grid;place-items:center;width:25px;height:25px;border:1px solid transparent;border-radius:6px;color:#88889c;font-size:13px;letter-spacing:-4px;cursor:grab;touch-action:none;user-select:none}.db-column-drag-handle:hover,.db-column-drag-handle:focus-visible,.database-layout-drag-handle:hover,.database-layout-drag-handle:focus-visible{border-color:var(--accent);color:var(--accent);outline:0}.db-column-drag-handle:active,.database-layout-drag-handle:active{cursor:grabbing}.db-column-resize-handle{position:absolute;z-index:3;top:0;right:-5px;bottom:0;width:11px;cursor:col-resize;touch-action:none}.db-column-resize-handle::after{position:absolute;top:5px;right:5px;bottom:5px;width:2px;border-radius:2px;background:#5f5f72;content:"";transition:.12s}.db-column-resize-handle:hover::after,.db-column-resize-handle:focus-visible::after,.db-column-resizing .db-column-resize-handle::after{background:var(--accent);box-shadow:0 0 0 1px rgba(232,200,64,.2)}.db-column-resizing{cursor:col-resize!important;user-select:none!important}.table-wrap [hidden]{display:none!important}.table-wrap th,.table-wrap td{border-right:1px solid #3a3a4c}.table-wrap th[data-db-column]{box-shadow:inset -1px 0 0 rgba(255,255,255,.035)}.table-wrap td[data-db-column]{background-clip:padding-box}
.database-column-filter-dialog{width:min(560px,calc(100vw - 20px));max-height:min(88dvh,760px);padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px rgba(0,0,0,.62)}.database-column-filter-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(2px)}.database-column-filter-dialog form{display:grid;gap:12px;padding:17px}.database-column-filter-dialog .dialog-title{position:sticky;top:-17px;z-index:3;margin:-17px -17px 0;padding:15px 17px 12px;border-bottom:1px solid var(--border);background:rgba(20,20,29,.98)}.database-column-filter-dialog .dialog-title small{display:block;color:var(--new);font-size:8px;font-weight:800;letter-spacing:1px}.database-column-filter-dialog .dialog-title h2{margin:2px 0 0;font-size:18px}.database-column-filter-dialog .dialog-close{border:0;background:transparent;color:var(--muted);font-size:28px;cursor:pointer}.database-column-sort{display:grid;grid-template-columns:1fr 1fr auto;gap:7px}.database-column-sort button{min-height:42px;padding:7px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:10px;font-weight:800;cursor:pointer}.database-column-sort button.active{border-color:var(--accent);background:rgba(232,200,64,.12);color:var(--accent)}.database-column-choice-heading{display:flex;justify-content:space-between;gap:8px;align-items:end}.database-column-choice-heading strong{font-size:11px}.database-column-choice-heading small{color:var(--muted);font-size:8px}.database-column-unified-search{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;width:100%;min-height:45px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.database-column-unified-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 20%,transparent)}.database-column-unified-search>span{color:var(--accent);font-size:18px}.database-column-unified-search input{width:100%;min-width:0;padding:9px 0;border:0!important;outline:0;background:transparent!important;color:var(--text);box-shadow:none!important}.database-column-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:290px;overflow:auto}.database-column-choice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;padding:8px 9px;border:1px solid var(--border);border-radius:8px;background:var(--card);font-size:10px;cursor:pointer}.database-column-choice:hover{border-color:#55556d}.database-column-choice input{accent-color:var(--new)}.database-column-choice span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.database-column-choice small{color:var(--muted);font-size:8px}.database-column-empty{grid-column:1/-1;padding:20px 10px;color:var(--muted);font-size:10px;text-align:center}.database-column-actions{position:sticky;bottom:-17px;display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin:0 -17px -17px;padding:12px 17px 17px;border-top:1px solid var(--border);background:rgba(20,20,29,.98)}
.database-column-position{display:grid;grid-template-columns:minmax(110px,.55fr) minmax(0,1fr);align-items:center;gap:7px}.database-column-position button{min-height:40px;padding:7px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:10px;font-weight:800;cursor:pointer}.database-column-position button:first-child{display:flex;align-items:center;justify-content:center;gap:6px;border-color:rgba(0,212,170,.45);color:var(--new)}.database-column-position button.column-hidden{border-color:#55556d;color:var(--muted)}.database-column-position button.column-hidden span{opacity:.35}.database-column-position small{color:var(--muted);font-size:9px;line-height:1.5}.database-column-position button:disabled{cursor:not-allowed;opacity:.35}
.database-column-layout-dialog{width:min(540px,calc(100vw - 20px));max-height:min(90dvh,780px);padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text)}.database-column-layout-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(2px)}.database-column-layout-dialog .dialog-title small{display:block;color:var(--new);font-size:8px;font-weight:800}.database-column-layout-dialog .dialog-title h2{margin:2px 0;font-size:18px}.database-column-layout-dialog>p{margin:6px 0 12px;color:var(--muted);font-size:10px}.database-column-layout-list{display:grid;gap:6px;max-height:calc(90dvh - 190px);overflow:auto;padding:3px}.database-column-layout-row{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) auto 38px;align-items:center;gap:6px;padding:7px;border:1px solid var(--border);border-radius:9px;background:var(--card)}.database-column-layout-row strong{min-width:0;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.database-column-layout-row small{color:var(--new);font-size:8px;font-weight:800}.database-column-layout-row button{display:grid;place-items:center;min-width:0;height:34px;padding:0;border:1px solid var(--border);border-radius:7px;background:#171720;color:var(--text);cursor:pointer}.database-column-layout-row .database-layout-visibility{color:var(--new);font-size:15px}.database-column-layout-row .database-layout-drag-handle{width:34px;height:34px;border-color:var(--border)}.database-column-layout-row.column-hidden{opacity:.66}.database-column-layout-row.column-hidden .database-layout-visibility{color:var(--muted)}.database-column-layout-row.column-hidden .database-layout-visibility span{opacity:.32}.database-column-layout-row.column-hidden small{color:var(--muted)}.database-column-layout-row.db-column-dragging,.table-wrap th.db-column-dragging{opacity:.45}.database-column-layout-row.db-column-drop-before::before,.database-column-layout-row.db-column-drop-after::after{position:absolute;z-index:2;right:4px;left:4px;height:3px;border-radius:3px;background:var(--accent);content:""}.database-column-layout-row.db-column-drop-before::before{top:-5px}.database-column-layout-row.db-column-drop-after::after{bottom:-5px}.table-wrap th.db-column-drop-before{box-shadow:inset 3px 0 0 var(--accent)}.table-wrap th.db-column-drop-after{box-shadow:inset -3px 0 0 var(--accent)}.database-column-layout-actions{position:sticky;bottom:-16px;display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin:12px -16px -16px;padding:12px 16px 16px;border-top:1px solid var(--border);background:rgba(20,20,29,.98)}
.price-filter{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px;white-space:nowrap}.price-filter input{width:112px;padding:7px 8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);text-align:right}.price-filter input:focus{border-color:var(--accent);outline:0}.price-separator{color:var(--muted)}
.price-editor{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:210px}.price-editor input[readonly]{color:var(--accent);cursor:default}.price-editor input:not([readonly]){border-color:var(--accent);background:rgba(232,200,64,.08)}.price-save[hidden],.price-cancel[hidden],.price-edit[hidden]{display:none}.updated-date{white-space:nowrap;color:var(--muted);font-size:10px}
.settings-panel{max-width:900px;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.settings-panel h2{margin:0 0 6px;font-size:16px}.settings-panel p,.settings-example{color:var(--muted);font-size:11px}.settings-example{margin:10px 0;padding:9px;border-radius:7px;background:var(--card)}.cardrush-settings{display:grid;gap:8px;margin:14px 0}.cardrush-setting-row{display:grid;grid-template-columns:minmax(150px,220px) 1fr;gap:10px;align-items:center}.cardrush-setting-row label{font-size:11px;font-weight:700}.cardrush-setting-row input{width:100%;padding:9px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.cardrush-setting-row input:focus{border-color:var(--accent);outline:0}
.public-output-conditions{margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--card)}.public-output-conditions legend{padding:0 5px;color:var(--accent);font-size:12px;font-weight:900}.public-output-condition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.public-output-condition-grid label{display:grid;gap:5px;color:var(--muted);font-size:11px}.public-output-condition-grid input,.public-output-condition-grid select{width:100%;min-width:0;padding:9px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text)}.public-output-condition-grid small{font-size:9px}.public-output-conditions>p{margin:9px 0 0!important}.public-output-conditions:focus-within{border-color:rgba(232,200,64,.65)}@media(max-width:560px){.public-output-condition-grid{grid-template-columns:1fr}}
.public-management-group-settings{margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--card)}.public-management-group-settings legend{padding:0 5px;color:var(--accent);font-size:12px;font-weight:900}.public-management-group-settings>p{margin:0 0 10px!important;color:var(--muted);font-size:10px}.public-management-group-list{display:grid;gap:7px;max-height:360px;overflow:auto}.public-management-group-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:8px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface);cursor:pointer}.public-management-group-row:hover{border-color:var(--accent)}.public-management-group-row>input{width:20px;height:20px;margin:0;accent-color:var(--accent)}.public-management-group-row>span{display:grid;min-width:0;gap:2px}.public-management-group-row strong,.public-management-group-row small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.public-management-group-row small{color:var(--muted);font-size:9px}.public-management-group-row>b{min-width:54px;padding:5px 8px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:9px;text-align:center}.public-management-group-row.is-public{border-color:rgba(0,212,170,.45);background:rgba(0,212,170,.07)}.public-management-group-row.is-public>b{border-color:rgba(0,212,170,.55);color:var(--new)}.public-management-group-status{display:block;margin-top:8px;color:var(--muted);font-size:9px;line-height:1.5}@media(max-width:560px){.public-management-group-settings{padding:10px}.public-management-group-row{min-height:52px}}

/* Selection actions stay clear and safe on both desktop and narrow screens. */
.selection-hint{margin-right:auto;color:var(--muted);font-size:10px}.button:disabled,.bulk select:disabled{opacity:.42;cursor:not-allowed;filter:saturate(.35)}
@media(max-width:560px){.admin-tabs{margin:-10px -10px 14px;padding:0 10px;overflow-x:auto}.bulk{display:grid;grid-template-columns:1fr auto;gap:8px}.bulk-select-all,.bulk strong{display:flex;align-items:center;min-height:28px}.bulk strong{justify-content:flex-end}.selection-hint,.bulk select,.bulk .button{grid-column:1/-1;width:100%}.bulk select,.bulk .button{min-height:40px}.selection-hint{margin:0;padding-bottom:2px}}
.workflow-guide{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:0 0 14px;padding:0;list-style:none;counter-reset:workflow}.workflow-guide li{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--muted);font-size:10px}.workflow-guide li::before{counter-increment:workflow;content:counter(workflow);display:grid;place-items:center;flex:0 0 22px;height:22px;border-radius:50%;background:var(--accent);color:#111;font-weight:900}.section-heading{margin:0 0 10px;font-size:15px}.x-composer{margin-bottom:10px;padding:12px;border:1px solid rgba(0,212,170,.35);border-radius:10px;background:var(--surface)}.x-composer h2{margin:0 0 5px;font-size:14px}.x-composer p{margin:0 0 9px;color:var(--muted);font-size:10px}.x-composer textarea{width:100%;min-height:132px;resize:vertical;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);line-height:1.55}.x-composer textarea:focus{border-color:var(--new);outline:0}.x-composer-options{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:8px}.x-composer-options label{display:grid;gap:4px;color:var(--muted);font-size:10px}.x-composer-options select,.x-composer-options textarea{min-height:0;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.x-composer-options textarea{min-height:58px}.x-composer-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px}.x-post-count{margin-right:auto;color:var(--muted);font-size:10px}.x-post-count.over{color:var(--hot);font-weight:700}.template-manager{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(180px,1.3fr) auto auto auto;align-items:center;gap:7px;padding:9px;border:1px solid var(--border);border-radius:9px;background:rgba(255,255,255,.025)}.template-manager>strong{color:var(--muted);font-size:10px}.template-manager>select{min-width:0}.template-editor{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(220px,1.3fr);gap:8px;grid-column:1/-1;padding-top:9px;border-top:1px solid var(--border)}.template-editor[hidden]{display:none}.template-editor label{display:grid;gap:4px;min-width:0}.template-editor .wide{grid-column:1/-1}.template-editor-actions{display:flex;gap:7px;flex-wrap:wrap}.image-rights-note{display:block;margin:8px 0 0;color:var(--muted);font-size:9px;line-height:1.55}.edit-image-preview{display:block;width:100%;max-height:220px;margin-top:8px;border:1px solid var(--border);border-radius:8px;background:#09090e;object-fit:contain}.edit-image-preview[hidden]{display:none}.flyer-format-presets,.flyer-layout-presets{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0 0}.flyer-format-presets .button,.flyer-layout-presets .button{padding:6px 8px;font-size:10px}.flyer-format-presets .button.active,.flyer-layout-presets .button.active{border-color:var(--accent);background:var(--accent);color:#111;font-weight:900}.flyer-page.flyer-format-a4{aspect-ratio:297/420}.flyer-page.flyer-format-square{aspect-ratio:1/1}.flyer-page.flyer-format-wide{aspect-ratio:420/297}.flyer-page.flyer-format-wide .poster-headline{font-size:30px}.flyer-page.flyer-format-wide .flyer-card .image{height:calc(100% - 60px)}
@media(max-width:700px){.workflow-guide{grid-template-columns:1fr 1fr}.x-composer-actions .button{flex:1 1 130px}.template-manager{grid-template-columns:1fr 1fr}.template-manager>strong,.template-manager>select,.template-editor{grid-column:1/-1}.template-editor{grid-template-columns:1fr}}
.database-history{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;padding:11px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:11px}.database-history strong{color:var(--accent)}.database-history select{min-width:220px;padding:7px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--text)}
.price-flyer-layout{display:grid;grid-template-columns:minmax(420px,1fr) minmax(520px,1.05fr);gap:14px;align-items:start}.price-update-column,.flyer-side-column{min-width:0}.flyer-side-column{position:sticky;top:78px;max-height:calc(100vh - 92px);overflow:auto}.flyer-side-column .flyer-canvas{width:100%;min-width:520px}.price-update-column .cart-items{max-height:none}@media(max-width:1100px){.price-flyer-layout{grid-template-columns:1fr}.flyer-side-column{position:static;max-height:none}}
.database-history .cart-summary{display:block;margin:0 0 0 auto}.database-history .summary-box{min-width:105px;padding:7px 10px}.database-history .summary-box b{font-size:16px}.update-title{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;white-space:nowrap}.update-title input{width:160px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}
.deck-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.42fr);gap:14px;align-items:start}.deck-toolbar,.deck-editor-panel,.deck-current-panel,.deck-card,.deck-group,.deck-manage-row{border:1px solid var(--border);border-radius:12px;background:var(--surface)}.deck-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px;margin-bottom:12px}.deck-toolbar p,.deck-management-panel p{margin:4px 0 0;color:var(--muted);font-size:11px}.deck-toolbar-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.deck-toolbar-actions select{min-width:210px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.deck-editor-panel{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;padding:12px;margin-bottom:12px}.deck-editor-panel label{display:grid;gap:5px;color:var(--muted);font-size:10px}.deck-editor-panel input{padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.deck-status-row{min-width:170px;padding:9px;border:1px solid rgba(232,200,64,.3);border-radius:9px;background:rgba(232,200,64,.07)}.deck-status-row strong{display:block;color:var(--accent);font:700 22px Oswald}.deck-status-row span{display:block;color:var(--muted);font-size:10px}.deck-status-row.ok{border-color:rgba(0,212,170,.45);background:rgba(0,212,170,.07)}.deck-status-row.ok strong{color:var(--new)}.deck-status-row.over{border-color:rgba(255,81,97,.45);background:rgba(255,81,97,.07)}.deck-status-row.over strong{color:var(--hot)}.deck-search-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:9px}.deck-card{display:grid;grid-template-columns:54px 1fr auto;gap:9px;align-items:center;padding:9px}.deck-card img,.deck-card .deck-thumb{width:54px;height:72px;object-fit:contain;border-radius:6px;background:#09090e}.deck-card h3{margin:0 0 3px;font-size:12px;line-height:1.35}.deck-card small,.deck-group small,.deck-manage-row small{display:block;color:var(--muted);font-size:10px}.deck-count-control{display:flex;align-items:center;gap:5px}.deck-count-control button{width:30px;height:30px;padding:0}.deck-count-control b{min-width:24px;text-align:center;color:var(--accent)}.deck-current-panel{position:sticky;top:78px;padding:12px}.deck-current-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}.deck-current-head h3{margin:0;font-size:14px}.deck-groups{display:grid;gap:8px}.deck-group{padding:10px;background:var(--card)}.deck-group h4{display:flex;justify-content:space-between;margin:0 0 7px;color:var(--accent);font-size:12px}.deck-group-row{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center;padding:6px 0;border-top:1px solid var(--border);font-size:11px}.deck-group-row:first-of-type{border-top:0}.deck-group-row button{padding:4px 7px}.deck-manager{display:grid;gap:9px}.deck-manage-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px}.deck-manage-row h3{margin:0 0 4px;font-size:13px}.deck-manage-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:900px){.deck-workspace{grid-template-columns:1fr}.deck-current-panel{position:static}.deck-editor-panel{grid-template-columns:1fr}.deck-toolbar{align-items:stretch;flex-direction:column}.deck-toolbar-actions{justify-content:stretch}.deck-toolbar-actions select,.deck-toolbar-actions .button{flex:1;min-height:40px}.deck-search-results{grid-template-columns:1fr}.deck-manage-row{align-items:stretch;flex-direction:column}.deck-manage-actions{justify-content:stretch}.deck-manage-actions .button{flex:1}}
.flyer-side-column .flyer-canvas{display:grid;gap:16px;background:transparent;padding:0}.flyer-page{width:760px;aspect-ratio:297/420;box-sizing:border-box;overflow:hidden;padding:25px;background:#1c1c1c;color:#fff}.flyer-page-number{text-align:right;color:#666;font-size:9px;margin-top:6px}
.flyer-page{display:flex;flex-direction:column}.flyer-page .flyer-grid{flex:1;min-height:0;grid-auto-rows:1fr}.flyer-page .flyer-card{min-height:0}.flyer-page .flyer-card .image{height:calc(100% - 55px);min-height:0;aspect-ratio:auto}.flyer-page .flyer-foot{flex:0 0 auto}
.image-drop{display:grid;place-items:center;width:66px;min-height:88px;padding:5px;border:1px dashed var(--border);border-radius:8px;background:var(--card);cursor:pointer;transition:.15s}.image-drop:hover,.image-drop:has(.drop){border-color:var(--accent);background:rgba(232,200,64,.08)}.image-drop .thumb{width:54px;height:74px}.db-pagination{display:flex;align-items:center;justify-content:center;gap:8px;padding:14px;color:var(--muted);font-size:11px}.db-pagination button{min-width:76px}.db-pagination b{color:var(--accent)}
.cart-image-drop{display:grid;place-items:center;width:52px;height:70px;padding:3px;border:1px dashed var(--border);border-radius:7px;background:var(--surface);cursor:pointer;overflow:hidden}.cart-image-drop:hover,.cart-image-drop.drop{border-color:var(--accent);background:rgba(232,200,64,.08)}.cart-image-drop img,.cart-image-drop .cart-thumb{width:44px;height:60px;object-fit:cover}.drop-copy{display:grid;place-items:center;width:100%;height:100%;color:var(--muted);font-size:9px;line-height:1.3;text-align:center}
.table-wrap th[data-db-column="image"],.table-wrap td[data-db-column="image"]{width:82px;min-width:82px;max-width:82px;padding:5px}.table-wrap .image-drop{width:72px;height:96px;min-height:96px;padding:0;overflow:hidden}.table-wrap .image-drop .thumb{display:grid;width:100%;height:100%;max-width:100%;max-height:100%;place-items:center;object-fit:contain;border:0;border-radius:7px}.table-wrap .image-drop .thumb.placeholder{padding:6px;color:var(--muted);font-size:11px!important;line-height:1.35;text-align:center;white-space:normal}
.db-view-controls{display:flex;align-items:center;gap:7px;margin:0 0 10px;padding:8px 10px;border:1px solid var(--border);border-radius:9px;background:var(--surface);font-size:10px}.db-view-controls .button{min-width:34px;padding:5px 8px}.db-view-controls #databaseColumnLayoutButton{display:flex;align-items:center;gap:6px}.db-view-controls #dbZoomLabel{min-width:42px;color:var(--accent);font-weight:800;text-align:center}.db-view-controls small{margin-left:auto;color:var(--muted)}.table-wrap{--db-view-scale:1;--db-table-min-width:1880px;--db-font-size:11px;--db-head-font-size:10px;--db-cell-padding:7px;--db-image-cell:82px;--db-image-padding:5px;--db-image-width:72px;--db-image-height:96px;--db-button-y:6px;--db-button-x:8px;--db-button-font:9px}.table-wrap table{min-width:var(--db-table-min-width);font-size:var(--db-font-size)}.table-wrap th,.table-wrap td{padding:var(--db-cell-padding)}.table-wrap th{font-size:var(--db-head-font-size)}.table-wrap th[data-db-column="image"],.table-wrap td[data-db-column="image"]{width:var(--db-image-cell);min-width:var(--db-image-cell);max-width:var(--db-image-cell);padding:var(--db-image-padding)}.table-wrap .image-drop{width:var(--db-image-width);height:var(--db-image-height);min-height:var(--db-image-height)}.table-wrap .button{padding:var(--db-button-y) var(--db-button-x);font-size:var(--db-button-font)}.table-wrap td input,.table-wrap td select{font-size:inherit}.db-order-cell{min-width:54px;text-align:center}.db-drag-handle{display:inline-grid;place-items:center;width:24px;height:32px;margin-right:4px;border:1px solid var(--border);border-radius:6px;color:var(--accent);font-size:17px;font-weight:900;line-height:1;cursor:grab;user-select:none}.db-drag-handle:active{cursor:grabbing}#adminRows tr.db-dragging{opacity:.3}#adminRows tr.db-drop-before td{box-shadow:inset 0 4px 0 var(--accent)}#adminRows tr.db-drop-after td{box-shadow:inset 0 -4px 0 var(--accent)}.db-card-name{min-width:150px;font-weight:700}.db-category-title,.db-category-set{min-width:130px}.tag-dot.rarity-dot{border-color:rgba(232,200,64,.55);color:#f0d85e}.tag-dot.supplement-dot{border-color:rgba(0,212,170,.42);color:#7ee8d3}.sell-price-editor .inline-sell-price{color:#d9b9ff}.price-editor{min-width:112px}.price-editor input{width:100%;box-sizing:border-box}.row-actions{min-width:178px;flex-wrap:wrap}.db-actions-cell .row-actions{min-width:0}
@media(max-width:700px){.db-view-controls{align-items:flex-start;flex-wrap:wrap}.db-view-controls small{width:100%;margin-left:0}}
.price-update-column .cart-item{grid-template-columns:96px 1fr minmax(184px,auto);min-height:134px}.price-update-column .cart-image-drop{width:92px;height:124px;padding:2px}.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb{width:88px;height:120px;max-width:100%;max-height:100%;object-fit:contain}.price-update-column .cart-image-drop .drop-copy{font-size:11px}.cart-item.changed{border-color:rgba(232,200,64,.65);box-shadow:inset 3px 0 var(--accent)}.cart-item.invalid{border-color:var(--hot);box-shadow:inset 3px 0 var(--hot)}.cart-price{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 8px;min-width:184px;text-align:right}.cart-current-label,.cart-new-price{color:var(--muted);font-size:9px}.cart-current-price,.cart-price-diff,.cart-save-state{font-variant-numeric:tabular-nums}.cart-current-price{font:600 15px Oswald}.cart-price-arrow{grid-column:1/-1;color:var(--muted);font-size:11px;text-align:center}.cart-new-price{display:contents}.cart-new-price input{margin:0}.cart-price-diff{font-size:11px;font-weight:800}.cart-price-diff[data-direction="up"]{color:var(--new)}.cart-price-diff[data-direction="down"]{color:#ff9a72}.cart-price-diff[data-direction="invalid"]{color:var(--hot)}.cart-save-state{padding:3px 6px;border-radius:999px;background:rgba(138,138,160,.14);color:var(--muted);font-size:9px;font-weight:800}.cart-save-state[data-state="pending"]{background:rgba(232,200,64,.14);color:var(--accent)}.cart-save-state[data-state="invalid"]{background:rgba(255,61,90,.12);color:var(--hot)}.cart-price-error{grid-column:1/-1;color:var(--hot);font-size:9px;font-weight:700}.cart-price .remove-cart{grid-column:1/-1;justify-self:end}.summary-box.attention{border-color:rgba(232,200,64,.5)}.summary-box.attention b{color:var(--accent)}.summary-box.error{border-color:rgba(255,61,90,.55)}.summary-box.error b{color:var(--hot)}.database-history .cart-summary{display:flex;gap:6px;flex-wrap:wrap}@media(max-width:600px){.price-update-column .cart-item{grid-template-columns:72px 1fr}.price-update-column .cart-image-drop{width:68px;height:92px}.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb{width:64px;height:88px}.price-update-column .cart-price{grid-column:1/-1;grid-template-columns:1fr auto}.cart-price .remove-cart{justify-self:stretch}.database-history .cart-summary{width:100%;margin-left:0}}
.cart-sort{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;white-space:nowrap}.cart-sort select{padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.cart-item[draggable="true"]{position:relative;cursor:grab}.cart-item.dragging{opacity:.35}.cart-item.drop-before::before,.cart-item.drop-after::after{content:"ここに配置";position:absolute;z-index:4;left:4px;right:4px;height:4px;border-radius:3px;background:var(--accent);color:var(--accent);font-size:9px;line-height:0;text-align:center;box-shadow:0 0 8px rgba(232,200,64,.7)}.cart-item.drop-before::before{top:-7px}.cart-item.drop-after::after{bottom:-7px}.drag-handle{color:var(--muted);font-size:13px;letter-spacing:-3px;cursor:grab;user-select:none}
.image-drop.has-image,.cart-image-drop.has-image{position:relative}.image-drop.has-image:hover::after,.cart-image-drop.has-image:hover::after{content:"タップして削除";position:absolute;inset:auto 3px 3px;padding:3px;border-radius:4px;background:rgba(255,61,90,.9);color:#fff;font-size:8px;text-align:center}
.cart-import-panel{margin:0 0 12px;padding:12px;border:1px solid rgba(0,212,170,.35);border-radius:10px;background:var(--surface)}.cart-import-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.cart-import-head h3{margin:0 0 4px;font-size:13px}.cart-import-head p{margin:0;color:var(--muted);font-size:10px;line-height:1.55}.cart-import-head code{padding:1px 4px;border-radius:4px;background:var(--card);color:var(--new)}.cart-import-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.batch-image-drop{display:grid;place-items:center;gap:4px;min-height:76px;margin-top:10px;padding:12px;border:2px dashed var(--border);border-radius:9px;background:var(--card);color:var(--muted);cursor:pointer;text-align:center}.batch-image-drop:hover,.batch-image-drop:focus-visible,.batch-image-drop.drop{border-color:var(--new);background:rgba(0,212,170,.08);outline:0}.batch-image-drop strong{color:var(--text);font-size:12px}.batch-image-drop span{font-size:10px}.local-image-note{margin:8px 0 0;color:var(--muted);font-size:9px;line-height:1.55}.import-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.import-status-grid span{padding:7px 9px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--muted);font-size:9px}.batch-import-report{margin-top:8px;padding:8px 10px;border-left:3px solid var(--accent);background:rgba(232,200,64,.07);color:var(--muted);font-size:9px;line-height:1.55}.local-image-missing{display:grid;place-items:center;width:100%;height:100%;color:var(--accent);font-size:9px;line-height:1.35;text-align:center}@media(max-width:700px){.cart-import-head{display:grid}.cart-import-actions .button{flex:1 1 180px}.import-status-grid{grid-template-columns:1fr}}
.poster-top{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin-bottom:7px}.poster-date{display:flex;align-items:center;gap:6px;padding:5px 10px;border-radius:7px;background:#e92736;color:#fff}.poster-date b{font:700 21px Oswald}.poster-date span{font-size:11px;font-weight:900}.poster-store{text-align:center;font-size:14px;font-weight:900;letter-spacing:.5px}.poster-badge{padding:6px 10px;border-radius:999px;background:#e92736;color:#fff;font-size:10px;font-weight:900}.poster-headline{margin-bottom:10px;text-align:center;font-size:36px;font-weight:900;line-height:1.05;letter-spacing:2px;text-shadow:0 2px 0 rgba(0,0,0,.3)}.flyer-page .flyer-card{border:2px solid rgba(255,255,255,.22);background:rgba(8,8,8,.88);box-shadow:0 2px 7px rgba(0,0,0,.28)}.flyer-page .flyer-card .image{height:calc(100% - 68px)}.flyer-page .flyer-card .body{height:68px;padding:5px 6px;background:linear-gradient(180deg,rgba(20,20,20,.96),#050505)}.flyer-page .flyer-card h4{height:27px;margin:0;font-size:9px;line-height:1.35}.flyer-page .flyer-card small{display:block;overflow:hidden;color:#aaa;font-size:7px;white-space:nowrap;text-overflow:ellipsis}.flyer-page .flyer-card b{display:block;color:#ffd52e;font-size:17px;line-height:1.2}.flyer-page .flyer-foot{margin-top:8px;padding-top:6px}.flyer-page .flyer-foot span{font-size:8px;line-height:1.4}.poster-clean{background:#f7f3e8;color:#231b16}.poster-clean .poster-store{color:#5a1717}.poster-clean .poster-headline{color:#d7192d;text-shadow:none}.poster-clean .flyer-card{border-color:#c91f2e}.poster-brown{background:linear-gradient(135deg,#3a180d,#7a3d1d 55%,#2b1008);color:#fff4d7}.poster-brown .poster-headline{color:#ffd76b}.poster-gold{background:linear-gradient(135deg,#f8e6a0,#b77a13 48%,#fff0ad);color:#2a1600}.poster-gold .poster-headline{color:#7b160e;text-shadow:0 1px #ffe89a}.poster-black{background:radial-gradient(circle at 50% 0,#35280e,#0c0b09 42%,#020202);color:#fff}.poster-black .poster-headline{color:#ffd733}.poster-black .flyer-card{border-color:#8d751d}
.flyer-page[style$="--flyer-cols:6"] .flyer-card .body,.flyer-page[style$="--flyer-cols:7"] .flyer-card .body,.flyer-page[style$="--flyer-cols:8"] .flyer-card .body,.flyer-page[style$="--flyer-cols:9"] .flyer-card .body,.flyer-page[style$="--flyer-cols:10"] .flyer-card .body{height:48px;padding:3px 4px}.flyer-page[style$="--flyer-cols:6"] .flyer-card .image,.flyer-page[style$="--flyer-cols:7"] .flyer-card .image,.flyer-page[style$="--flyer-cols:8"] .flyer-card .image,.flyer-page[style$="--flyer-cols:9"] .flyer-card .image,.flyer-page[style$="--flyer-cols:10"] .flyer-card .image{height:calc(100% - 48px)}.flyer-page[style$="--flyer-cols:6"] .flyer-card h4,.flyer-page[style$="--flyer-cols:7"] .flyer-card h4,.flyer-page[style$="--flyer-cols:8"] .flyer-card h4,.flyer-page[style$="--flyer-cols:9"] .flyer-card h4,.flyer-page[style$="--flyer-cols:10"] .flyer-card h4{height:18px;font-size:6px}.flyer-page[style$="--flyer-cols:6"] .flyer-card small,.flyer-page[style$="--flyer-cols:7"] .flyer-card small,.flyer-page[style$="--flyer-cols:8"] .flyer-card small,.flyer-page[style$="--flyer-cols:9"] .flyer-card small,.flyer-page[style$="--flyer-cols:10"] .flyer-card small{font-size:5px}.flyer-page[style$="--flyer-cols:6"] .flyer-card b,.flyer-page[style$="--flyer-cols:7"] .flyer-card b,.flyer-page[style$="--flyer-cols:8"] .flyer-card b,.flyer-page[style$="--flyer-cols:9"] .flyer-card b,.flyer-page[style$="--flyer-cols:10"] .flyer-card b{font-size:10px}
.database-title{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}.database-title input{width:min(320px,30vw);padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:12px}.database-title input:focus{border-color:var(--accent);outline:0}
.flag.grade-psa10,.grade-badge.grade-psa10{background:#9b5de5;color:#fff}.flag.grade-psa9,.grade-badge.grade-psa9{background:#3185fc;color:#fff}.flag.grade-psa8,.grade-badge.grade-psa8{background:#00b894;color:#061a15}.flag.grade-other,.grade-badge.grade-other{background:#f39c3d;color:#1b1002}.grade-badge{display:inline-block;min-width:48px;padding:3px 7px;border-radius:6px;background:#34344a;color:#c5c5d5;font-size:9px;font-weight:700;text-align:center}.card.grade-psa10{border-color:rgba(155,93,229,.65)}.card.grade-psa9{border-color:rgba(49,133,252,.65)}.card.grade-psa8{border-color:rgba(0,184,148,.65)}
.card-image img,.flyer-card img,.flyer-page .flyer-card img{object-fit:contain!important}
.snapshot-manager-panel{margin-top:14px}.snapshot-manager{display:grid;gap:7px;margin-top:12px}.snapshot-manage-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--border);border-radius:9px;background:var(--card)}.snapshot-manage-row strong{display:block;font-size:12px}.snapshot-manage-row small{color:var(--muted);font-size:9px}.snapshot-manage-actions{display:flex;gap:5px;flex-wrap:wrap}
.management-group-create{display:flex;gap:8px;align-items:center;margin-top:12px}.management-group-create input{min-width:240px;flex:1;padding:9px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}#managementGroupFilter,#managementGroupTarget{max-width:240px}
@media(max-width:560px){.management-group-create{align-items:stretch;flex-direction:column}.management-group-create input,#managementGroupFilter,#managementGroupTarget{width:100%;max-width:none;min-width:0}.snapshot-manage-row{grid-template-columns:1fr}.snapshot-manage-actions .button{flex:1}}
.cloud-status{display:flex;align-items:center;gap:8px;padding:7px 18px;border-bottom:1px solid var(--border);background:#12121a;color:var(--muted);font-size:10px}.cloud-status-dot{width:8px;height:8px;border-radius:50%;background:#777}.cloud-status strong{color:var(--text)}.cloud-status .button{margin-left:auto;padding:5px 9px;font-size:9px}.cloud-status .button~.button{margin-left:0}.cloud-status[data-state="保存済み"] .cloud-status-dot{background:#00d4aa}.cloud-status[data-state="保存中"] .cloud-status-dot,.cloud-status[data-state="読込中"] .cloud-status-dot{background:#e8c840;animation:cloud-pulse 1s infinite}.cloud-status[data-state="未保存"] .cloud-status-dot{background:#ffb020}.cloud-status[data-state="通信失敗"] .cloud-status-dot{background:#ff3d5a}.cloud-status[data-state="閲覧専用"] .cloud-status-dot{background:#8a8aa0}.cloud-readonly .price-edit,.cloud-readonly .price-save,.cloud-readonly .delete,.cloud-readonly .edit,.cloud-readonly .add-one-cart,.cloud-readonly .remove-cart{opacity:.4}@keyframes cloud-pulse{50%{opacity:.35}}@media(max-width:650px){.cloud-status{padding:7px 10px;flex-wrap:wrap}.cloud-status-detail{width:100%;order:3}.cloud-status .button{margin-left:0}}
.admin-write-activity{position:fixed;z-index:10040;left:50%;top:max(12px,env(safe-area-inset-top));display:flex;align-items:center;gap:10px;max-width:min(90vw,620px);padding:10px 16px;border:1px solid var(--color-warning,#ff9f1a);border-radius:10px;background:rgba(20,20,25,.96);color:#fff;box-shadow:0 8px 30px rgba(0,0,0,.28);transform:translateX(-50%);pointer-events:none}.admin-write-activity[hidden]{display:none}.admin-write-activity strong{color:var(--color-warning,#ff9f1a);white-space:nowrap}.admin-write-activity span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-write-busy #adminWorkspace,.admin-write-busy .admin-tabs,.admin-write-busy dialog{cursor:wait}.admin-write-busy #adminWorkspace,.admin-write-busy dialog{opacity:.72}.admin-write-busy a[target="_blank"],.admin-write-busy .error-report-open,.admin-write-busy [data-error-report-inline],.admin-write-busy #errorReportDialog{pointer-events:auto;opacity:1;cursor:pointer}@media(max-width:650px){.admin-write-activity{top:max(8px,env(safe-area-inset-top));width:calc(100vw - 20px);box-sizing:border-box;padding:9px 12px}.admin-write-activity span{font-size:12px}}
.public-pagination{position:relative;display:flex;justify-content:center;margin:-62px 12px 76px;padding:10px;background:rgba(255,247,237,.96);border:1px solid #fdba74;border-radius:10px}.public-pagination[hidden]{display:none}.public-pagination .public-load-more{min-width:min(320px,100%);padding:11px 18px;border-color:#f97316;background:#f97316;color:#fff;font-weight:900}.public-pagination span{color:var(--muted);font-size:10px}
#cards[aria-busy="true"]{opacity:.45;pointer-events:none}.public-pagination[aria-busy="true"]{opacity:.55;pointer-events:none}
.cart-stock{display:inline-flex;align-items:baseline;gap:3px;width:max-content;margin-top:4px;padding:3px 7px;border-radius:999px;background:rgba(0,212,170,.12);color:var(--muted);font-size:9px}.cart-stock strong{color:var(--new);font-size:12px;font-variant-numeric:tabular-nums}
.market-panel{position:fixed;z-index:100;top:0;right:0;width:50vw;height:100vh;border-left:2px solid var(--accent);background:#fff;box-shadow:-8px 0 25px rgba(0,0,0,.45)}.market-panel[hidden]{display:none}.market-panel-head{display:flex;align-items:center;gap:7px;height:48px;padding:7px 10px;box-sizing:border-box;background:#12121a;color:var(--text)}.market-panel-head strong{margin-right:auto}.market-panel-head .button{padding:6px 9px}.market-panel-frame{display:block;width:100%;height:calc(100vh - 48px);border:0;background:#fff}.market-split .admin-header,.market-split .admin-main,.market-split>.cloud-status{width:50vw;box-sizing:border-box}.market-split .admin-main{margin-left:0}.market-split .price-flyer-layout{grid-template-columns:1fr}.market-split .flyer-side-column{position:static;max-height:none}@media(max-width:760px){.market-panel{width:58vw}.market-split .admin-header,.market-split .admin-main,.market-split>.cloud-status{width:42vw}.market-panel-head{height:auto;min-height:48px;flex-wrap:wrap}.market-panel-frame{height:calc(100vh - 78px)}}
.flyer-page .flyer-card{border:4px solid #fff;border-radius:1px;background:#fff;box-shadow:0 3px 8px rgba(60,25,0,.3)}.flyer-page .flyer-card .image{position:relative;height:calc(100% - 76px);background:#080808}.flyer-page .flyer-card .body{height:76px;padding:3px 7px 4px;background:#e60012}.flyer-page .flyer-card-name{position:absolute;z-index:2;left:5px;right:5px;bottom:3px;height:auto;max-height:34px;margin:0;overflow:hidden;color:#fff;font-size:13px;font-style:normal;font-weight:900;line-height:1.05;letter-spacing:-.4px;text-shadow:2px 2px 0 #000,-2px -2px 0 #000,2px -2px 0 #000,-2px 2px 0 #000;-webkit-text-stroke:1px #000;transform:rotate(-3deg);transform-origin:left bottom}.flyer-price-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px;height:50px}.flyer-page .flyer-card .flyer-price{display:block;overflow:hidden;color:#ffe500;font:900 25px/1 Oswald,sans-serif;letter-spacing:-1px;white-space:nowrap;text-shadow:1px 1px 0 #7a0000}.flyer-buy-label{color:#fff;font-size:13px;font-style:normal;font-weight:900;line-height:1;white-space:nowrap;text-shadow:1px 1px 0 #7a0000}.flyer-page .flyer-card small{display:block;overflow:hidden;color:#fff;font-size:7px;font-weight:900;line-height:15px;white-space:nowrap;text-overflow:ellipsis}.flyer-page[style$="--flyer-cols:1"] .flyer-card .image{height:calc(100% - 180px)}.flyer-page[style$="--flyer-cols:1"] .flyer-card .body{height:180px;padding:8px 16px}.flyer-page[style$="--flyer-cols:1"] .flyer-card-name{left:14px;right:14px;bottom:8px;max-height:88px;font-size:36px;-webkit-text-stroke:2px #000}.flyer-page[style$="--flyer-cols:1"] .flyer-price-row{height:128px}.flyer-page[style$="--flyer-cols:1"] .flyer-card .flyer-price{font-size:72px}.flyer-page[style$="--flyer-cols:1"] .flyer-buy-label{font-size:34px}.flyer-page[style$="--flyer-cols:1"] .flyer-card small{font-size:15px;line-height:30px}.flyer-page[style$="--flyer-cols:2"] .flyer-card .image{height:calc(100% - 116px)}.flyer-page[style$="--flyer-cols:2"] .flyer-card .body{height:116px;padding:5px 10px}.flyer-page[style$="--flyer-cols:2"] .flyer-card-name{left:8px;right:8px;bottom:5px;max-height:58px;font-size:23px}.flyer-page[style$="--flyer-cols:2"] .flyer-price-row{height:78px}.flyer-page[style$="--flyer-cols:2"] .flyer-card .flyer-price{font-size:43px}.flyer-page[style$="--flyer-cols:2"] .flyer-buy-label{font-size:22px}.flyer-page[style$="--flyer-cols:2"] .flyer-card small{font-size:10px;line-height:25px}.flyer-page[style$="--flyer-cols:3"] .flyer-card .image{height:calc(100% - 92px)}.flyer-page[style$="--flyer-cols:3"] .flyer-card .body{height:92px}.flyer-page[style$="--flyer-cols:3"] .flyer-card-name{max-height:44px;font-size:17px}.flyer-page[style$="--flyer-cols:3"] .flyer-price-row{height:62px}.flyer-page[style$="--flyer-cols:3"] .flyer-card .flyer-price{font-size:32px}.flyer-page[style$="--flyer-cols:3"] .flyer-buy-label{font-size:16px}.flyer-page[style$="--flyer-cols:3"] .flyer-card small{font-size:8px;line-height:20px}.flyer-page[style$="--flyer-cols:5"] .flyer-card .image{height:calc(100% - 62px)}.flyer-page[style$="--flyer-cols:5"] .flyer-card .body{height:62px;padding:2px 4px}.flyer-page[style$="--flyer-cols:5"] .flyer-card-name{left:3px;right:3px;bottom:2px;max-height:24px;font-size:9px;-webkit-text-stroke:.6px #000}.flyer-page[style$="--flyer-cols:5"] .flyer-price-row{height:40px}.flyer-page[style$="--flyer-cols:5"] .flyer-card .flyer-price{font-size:17px}.flyer-page[style$="--flyer-cols:5"] .flyer-buy-label{font-size:8px}.flyer-page[style$="--flyer-cols:5"] .flyer-card small{font-size:5px;line-height:14px}.flyer-page[style$="--flyer-cols:6"] .flyer-card .body,.flyer-page[style$="--flyer-cols:7"] .flyer-card .body,.flyer-page[style$="--flyer-cols:8"] .flyer-card .body,.flyer-page[style$="--flyer-cols:9"] .flyer-card .body,.flyer-page[style$="--flyer-cols:10"] .flyer-card .body{height:48px;padding:2px 3px;background:#e60012}.flyer-page[style$="--flyer-cols:6"] .flyer-card .image,.flyer-page[style$="--flyer-cols:7"] .flyer-card .image,.flyer-page[style$="--flyer-cols:8"] .flyer-card .image,.flyer-page[style$="--flyer-cols:9"] .flyer-card .image,.flyer-page[style$="--flyer-cols:10"] .flyer-card .image{height:calc(100% - 48px)}.flyer-page[style$="--flyer-cols:6"] .flyer-card-name,.flyer-page[style$="--flyer-cols:7"] .flyer-card-name,.flyer-page[style$="--flyer-cols:8"] .flyer-card-name,.flyer-page[style$="--flyer-cols:9"] .flyer-card-name,.flyer-page[style$="--flyer-cols:10"] .flyer-card-name{left:2px;right:2px;bottom:2px;height:auto;max-height:18px;font-size:6px;-webkit-text-stroke:.4px #000}.flyer-page[style$="--flyer-cols:6"] .flyer-price-row,.flyer-page[style$="--flyer-cols:7"] .flyer-price-row,.flyer-page[style$="--flyer-cols:8"] .flyer-price-row,.flyer-page[style$="--flyer-cols:9"] .flyer-price-row,.flyer-page[style$="--flyer-cols:10"] .flyer-price-row{height:31px}.flyer-page[style$="--flyer-cols:6"] .flyer-card .flyer-price,.flyer-page[style$="--flyer-cols:7"] .flyer-card .flyer-price,.flyer-page[style$="--flyer-cols:8"] .flyer-card .flyer-price,.flyer-page[style$="--flyer-cols:9"] .flyer-card .flyer-price,.flyer-page[style$="--flyer-cols:10"] .flyer-card .flyer-price{font-size:11px}.flyer-page[style$="--flyer-cols:6"] .flyer-buy-label,.flyer-page[style$="--flyer-cols:7"] .flyer-buy-label,.flyer-page[style$="--flyer-cols:8"] .flyer-buy-label,.flyer-page[style$="--flyer-cols:9"] .flyer-buy-label,.flyer-page[style$="--flyer-cols:10"] .flyer-buy-label{font-size:5px}.flyer-page[style$="--flyer-cols:6"] .flyer-card small,.flyer-page[style$="--flyer-cols:7"] .flyer-card small,.flyer-page[style$="--flyer-cols:8"] .flyer-card small,.flyer-page[style$="--flyer-cols:9"] .flyer-card small,.flyer-page[style$="--flyer-cols:10"] .flyer-card small{font-size:4px;line-height:11px}
.card-rules{display:grid;gap:3px;margin-top:5px;text-align:left}.card-rules span{overflow:hidden;color:#c8c8d6;font-size:8px;line-height:1.35;text-overflow:ellipsis}.card-rules strong{width:max-content;max-width:100%;padding:2px 5px;border-radius:4px;background:#e60012;color:#fff;font-size:8px}.detail-row b{max-width:65%;text-align:right;white-space:normal}.rule-cell{display:grid;gap:3px;min-width:130px;max-width:210px}.rule-cell span{color:var(--muted);font-size:9px;line-height:1.4}.rule-cell strong{color:var(--hot);font-size:9px}#editorForm textarea{width:100%;resize:vertical;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);padding:9px}.cart-card-main{min-width:0}.cart-rules{display:grid;grid-template-columns:minmax(150px,1fr) 136px 64px;gap:5px;margin:7px 0}.cart-rules label{display:grid;gap:2px;color:var(--muted);font-size:8px}.cart-rules textarea,.cart-rules select,.cart-rules input{width:100%;min-width:0;padding:5px 6px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font-size:9px}.cart-rules textarea{resize:vertical;min-height:42px}.cart-rules [aria-invalid="true"]{border-color:var(--hot)}.price-update-column .cart-item{align-items:start}.flyer-annotation{position:absolute;z-index:4;top:5px;right:5px;display:grid;gap:1px;max-width:72%;padding:3px 5px;border-radius:4px;background:rgba(255,255,255,.94);box-shadow:0 1px 4px rgba(0,0,0,.35);text-align:right}.flyer-annotation span,.flyer-annotation strong{display:block;overflow:hidden;font-size:7px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis}.flyer-annotation span{color:#171717}.flyer-annotation strong{color:#d50012}.flyer-page[style$="--flyer-cols:1"] .flyer-annotation{top:14px;right:14px;padding:8px 12px}.flyer-page[style$="--flyer-cols:1"] .flyer-annotation span,.flyer-page[style$="--flyer-cols:1"] .flyer-annotation strong{font-size:18px}.flyer-page[style$="--flyer-cols:2"] .flyer-annotation span,.flyer-page[style$="--flyer-cols:2"] .flyer-annotation strong{font-size:12px}.flyer-page[style$="--flyer-cols:3"] .flyer-annotation span,.flyer-page[style$="--flyer-cols:3"] .flyer-annotation strong{font-size:9px}.flyer-page[style$="--flyer-cols:6"] .flyer-annotation,.flyer-page[style$="--flyer-cols:7"] .flyer-annotation,.flyer-page[style$="--flyer-cols:8"] .flyer-annotation,.flyer-page[style$="--flyer-cols:9"] .flyer-annotation,.flyer-page[style$="--flyer-cols:10"] .flyer-annotation{top:2px;right:2px;padding:1px 2px}.flyer-page[style$="--flyer-cols:6"] .flyer-annotation span,.flyer-page[style$="--flyer-cols:6"] .flyer-annotation strong,.flyer-page[style$="--flyer-cols:7"] .flyer-annotation span,.flyer-page[style$="--flyer-cols:7"] .flyer-annotation strong,.flyer-page[style$="--flyer-cols:8"] .flyer-annotation span,.flyer-page[style$="--flyer-cols:8"] .flyer-annotation strong,.flyer-page[style$="--flyer-cols:9"] .flyer-annotation span,.flyer-page[style$="--flyer-cols:9"] .flyer-annotation strong,.flyer-page[style$="--flyer-cols:10"] .flyer-annotation span,.flyer-page[style$="--flyer-cols:10"] .flyer-annotation strong{font-size:4px}@media(max-width:700px){.cart-rules{grid-template-columns:1fr 1fr}.cart-rules label:first-child{grid-column:1/-1}}

/* X投稿画像: 黒・オレンジの買取カード。通常グレードは空欄のまま表示する。 */
.flyer-page{--flyer-top-h:22px;--flyer-details-h:18px;--flyer-price-h:46px;--flyer-label-size:7px;--flyer-name-size:12px;--flyer-price-size:24px;--flyer-buy-size:12px}.flyer-page .flyer-card{display:grid;grid-template-rows:var(--flyer-top-h) minmax(0,1fr) var(--flyer-details-h) var(--flyer-price-h);min-width:0;overflow:hidden;border:2px solid #ff7900!important;border-radius:1px;background:#050505!important;box-shadow:0 3px 8px rgba(0,0,0,.42)}.flyer-page .flyer-card-top{display:flex;align-items:center;gap:4px;min-width:0;padding:2px 4px;background:#050505}.flyer-page .flyer-grade,.flyer-page .flyer-limit{display:grid;place-items:center;min-width:0;height:100%;overflow:hidden;padding:1px 5px;border-radius:2px;color:#fff;font-size:var(--flyer-label-size);font-weight:900;line-height:1;white-space:nowrap;text-overflow:ellipsis}.flyer-page .flyer-grade{max-width:48%;border:1px solid #ff7900;background:#080808}.flyer-page .flyer-limit{max-width:68%;margin-left:auto;border:1px solid #fff;background:linear-gradient(135deg,#ef3900,#ff7900)}.flyer-page .flyer-card .image,.flyer-page.flyer-format-wide .flyer-card .image,.flyer-page[style$="--flyer-cols:"] .flyer-card .image{position:relative;height:auto!important;min-height:0;overflow:hidden;margin:0 4px;border-radius:8px 8px 0 0;background:#f4f4f4}.flyer-page .flyer-card .image img{display:block;width:100%;height:100%;padding:2px;object-fit:contain!important}.flyer-page .flyer-card-name{position:absolute;z-index:3;left:0;right:0;bottom:0;display:flex;align-items:end;height:auto;max-height:42%;margin:0;padding:5px 6px 4px;overflow:hidden;background:linear-gradient(transparent,rgba(0,0,0,.95) 42%);color:#fff;font-size:var(--flyer-name-size);font-style:normal;font-weight:900;line-height:1.08;letter-spacing:-.3px;text-shadow:2px 2px 0 #000,-2px -2px 0 #000,2px -2px 0 #000,-2px 2px 0 #000;-webkit-text-stroke:.7px #000;transform:none}.flyer-page .flyer-card-details{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:3px;min-width:0;padding:2px 4px;background:#050505}.flyer-page .flyer-model,.flyer-page .flyer-card-note{display:grid;place-items:center;min-width:0;overflow:hidden;border:1px solid #fff;border-radius:1px;font-size:var(--flyer-label-size);font-weight:900;line-height:1;white-space:nowrap;text-overflow:ellipsis}.flyer-page .flyer-model{color:#fff;background:#080808}.flyer-page .flyer-card-note{border-color:#ff7900;color:#111;background:#f4f4f4}.flyer-page .flyer-card .body,.flyer-page[style$="--flyer-cols:"] .flyer-card .body{height:auto!important;padding:3px 6px;background:linear-gradient(135deg,#ef3b00,#ff7900)}.flyer-page .flyer-price-row,.flyer-page[style$="--flyer-cols:"] .flyer-price-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px;height:100%!important}.flyer-page .flyer-card .flyer-price,.flyer-page[style$="--flyer-cols:"] .flyer-card .flyer-price{display:block;overflow:hidden;color:#fff;font:900 var(--flyer-price-size)/1 Oswald,sans-serif;letter-spacing:-1px;white-space:nowrap;text-shadow:1px 1px 0 rgba(80,15,0,.55)}.flyer-page .flyer-buy-label,.flyer-page[style$="--flyer-cols:"] .flyer-buy-label{color:#080808;font-size:var(--flyer-buy-size);font-style:normal;font-weight:900;line-height:1;white-space:nowrap;text-shadow:none}.flyer-page[style$="--flyer-cols:1"]{--flyer-top-h:62px;--flyer-details-h:54px;--flyer-price-h:112px;--flyer-label-size:20px;--flyer-name-size:36px;--flyer-price-size:74px;--flyer-buy-size:34px}.flyer-page[style$="--flyer-cols:1"] .flyer-card-top{padding:7px 12px;gap:12px}.flyer-page[style$="--flyer-cols:1"] .flyer-card .image{margin:0 12px;border-radius:26px 26px 0 0}.flyer-page[style$="--flyer-cols:1"] .flyer-card-name{padding:14px 18px 12px;max-height:32%;-webkit-text-stroke:1.5px #000}.flyer-page[style$="--flyer-cols:1"] .flyer-card-details{gap:10px;padding:6px 12px}.flyer-page[style$="--flyer-cols:1"] .flyer-card .body{padding:8px 18px}.flyer-page[style$="--flyer-cols:2"]{--flyer-top-h:40px;--flyer-details-h:34px;--flyer-price-h:76px;--flyer-label-size:13px;--flyer-name-size:23px;--flyer-price-size:45px;--flyer-buy-size:22px}.flyer-page[style$="--flyer-cols:2"] .flyer-card-top{padding:4px 8px}.flyer-page[style$="--flyer-cols:2"] .flyer-card .image{margin:0 8px;border-radius:16px 16px 0 0}.flyer-page[style$="--flyer-cols:2"] .flyer-card-details{padding:4px 8px}.flyer-page[style$="--flyer-cols:3"]{--flyer-top-h:29px;--flyer-details-h:25px;--flyer-price-h:58px;--flyer-label-size:9px;--flyer-name-size:17px;--flyer-price-size:33px;--flyer-buy-size:16px}.flyer-page[style$="--flyer-cols:5"]{--flyer-top-h:18px;--flyer-details-h:15px;--flyer-price-h:38px;--flyer-label-size:5px;--flyer-name-size:9px;--flyer-price-size:17px;--flyer-buy-size:8px}.flyer-page[style$="--flyer-cols:6"],.flyer-page[style$="--flyer-cols:7"],.flyer-page[style$="--flyer-cols:8"],.flyer-page[style$="--flyer-cols:9"],.flyer-page[style$="--flyer-cols:10"]{--flyer-top-h:13px;--flyer-details-h:11px;--flyer-price-h:29px;--flyer-label-size:4px;--flyer-name-size:6px;--flyer-price-size:11px;--flyer-buy-size:5px}.flyer-page[style$="--flyer-cols:6"] .flyer-card-top,.flyer-page[style$="--flyer-cols:7"] .flyer-card-top,.flyer-page[style$="--flyer-cols:8"] .flyer-card-top,.flyer-page[style$="--flyer-cols:9"] .flyer-card-top,.flyer-page[style$="--flyer-cols:10"] .flyer-card-top{gap:1px;padding:1px 2px}.flyer-page[style$="--flyer-cols:6"] .flyer-card .image,.flyer-page[style$="--flyer-cols:7"] .flyer-card .image,.flyer-page[style$="--flyer-cols:8"] .flyer-card .image,.flyer-page[style$="--flyer-cols:9"] .flyer-card .image,.flyer-page[style$="--flyer-cols:10"] .flyer-card .image{margin:0 2px;border-radius:3px 3px 0 0}.flyer-page[style$="--flyer-cols:6"] .flyer-card-details,.flyer-page[style$="--flyer-cols:7"] .flyer-card-details,.flyer-page[style$="--flyer-cols:8"] .flyer-card-details,.flyer-page[style$="--flyer-cols:9"] .flyer-card-details,.flyer-page[style$="--flyer-cols:10"] .flyer-card-details{gap:1px;padding:1px 2px}.flyer-page[style$="--flyer-cols:6"] .flyer-card .body,.flyer-page[style$="--flyer-cols:7"] .flyer-card .body,.flyer-page[style$="--flyer-cols:8"] .flyer-card .body,.flyer-page[style$="--flyer-cols:9"] .flyer-card .body,.flyer-page[style$="--flyer-cols:10"] .flyer-card .body{padding:1px 2px}

/* カード名は画像2のように、画像下部の黒い帯へ明瞭に表示する。 */
.flyer-page{--flyer-name-h:30px}.flyer-page .flyer-card-name{display:grid!important;place-items:center;height:var(--flyer-name-h)!important;max-height:none!important;padding:3px 5px!important;border:1px solid #ff7900;background:#050505!important;color:#fff;text-align:center;text-shadow:none!important;-webkit-text-stroke:0!important}.flyer-page[style$="--flyer-cols:1"]{--flyer-name-h:90px}.flyer-page[style$="--flyer-cols:2"]{--flyer-name-h:58px}.flyer-page[style$="--flyer-cols:3"]{--flyer-name-h:42px}.flyer-page[style$="--flyer-cols:5"]{--flyer-name-h:24px}.flyer-page[style$="--flyer-cols:6"],.flyer-page[style$="--flyer-cols:7"],.flyer-page[style$="--flyer-cols:8"],.flyer-page[style$="--flyer-cols:9"],.flyer-page[style$="--flyer-cols:10"]{--flyer-name-h:16px}

/* プレビューとJPEGで共通利用する、2段固定のカード名と読みやすい注意書き。 */
.flyer-page .flyer-card-name{align-content:center;word-break:break-all;overflow-wrap:anywhere;white-space:normal}.flyer-page .flyer-card-name span{display:block;width:100%;max-width:100%;overflow:hidden;text-align:center}.flyer-page .flyer-card-name br{display:block}.flyer-page .flyer-foot{display:block;min-height:30px;margin-top:8px;padding:6px 9px;border:1px solid rgba(255,121,0,.72);border-radius:4px;background:rgba(0,0,0,.78);color:#fff;font-size:9px;font-weight:700;line-height:1.45;text-align:left}.flyer-page .flyer-foot span{display:block;font-size:inherit!important;line-height:inherit!important}.flyer-page.poster-clean .flyer-foot{border-color:#c91f2e;background:rgba(255,255,255,.9);color:#31231d}.flyer-page-number{display:none!important}

/* 添付デザインを元にした、X投稿画像用の黒×発光オレンジ背景。実要素だけで構成しJPEG出力にも反映する。 */
.flyer-page.poster-black{position:relative;isolation:isolate;padding:19px 21px 17px;border:3px solid #ff7900;background:radial-gradient(ellipse at 50% 13%,rgba(255,126,0,.30) 0,rgba(255,91,0,.08) 19%,transparent 37%),radial-gradient(circle at 3% 48%,rgba(255,112,0,.15),transparent 17%),radial-gradient(circle at 97% 53%,rgba(255,112,0,.15),transparent 17%),repeating-linear-gradient(135deg,rgba(255,255,255,.018) 0 1px,transparent 1px 10px),linear-gradient(180deg,#030303 0,#0b0b0b 33%,#030303 100%);box-shadow:inset 0 0 0 2px #2d1404,inset 0 0 24px rgba(255,103,0,.35),0 0 14px rgba(255,103,0,.4);color:#fff}
.poster-black .poster-top{grid-template-columns:112px 1fr 112px;min-height:66px;margin:0 0 2px;gap:14px}
.poster-black .poster-date{display:grid;grid-template-rows:auto 1fr;gap:2px;min-width:104px;min-height:58px;padding:5px 10px;border:1px solid #ff7900;border-radius:5px;background:linear-gradient(135deg,#090909,#160b02);box-shadow:0 0 12px rgba(255,112,0,.38),inset 0 0 8px rgba(255,112,0,.14);text-align:center}
.poster-black .poster-date span{grid-row:1;color:#ff8a18;font-size:10px;letter-spacing:1.5px}
.poster-black .poster-date b{grid-row:2;padding-top:3px;border-top:1px solid #ff7900;color:#fff;font:800 20px Oswald,sans-serif;letter-spacing:1px}
.poster-black .poster-store{align-self:start;padding-top:4px;color:#fff;font-size:11px;letter-spacing:2.5px;text-shadow:0 0 8px rgba(255,255,255,.4)}
.poster-black .poster-badge{justify-self:end;padding:7px 11px;border:1px solid #ffd08a;border-radius:4px;background:linear-gradient(180deg,#ff7a00,#d94300);box-shadow:0 0 10px rgba(255,105,0,.5);color:#fff;font-size:10px;letter-spacing:.4px}
.poster-black .poster-headline{margin:-31px 124px 11px;padding:3px 0 10px;background:linear-gradient(180deg,#fff2b7 0,#ffc453 22%,#ff911d 49%,#e64c00 77%,#7c1b00 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-stroke:1px #6d2000;font-size:50px;font-weight:1000;letter-spacing:3px;line-height:1;text-shadow:0 2px 0 #481000,0 5px 0 rgba(0,0,0,.75),0 0 11px rgba(255,129,0,.74)}
.poster-black .flyer-grid{position:relative;min-height:0;padding:15px 13px 12px;border:2px solid #ff7900;border-radius:18px;background:radial-gradient(ellipse at 50% 48%,rgba(50,50,50,.34),transparent 61%),repeating-linear-gradient(60deg,rgba(255,255,255,.018) 0 1px,transparent 1px 22px),repeating-linear-gradient(120deg,rgba(255,255,255,.014) 0 1px,transparent 1px 22px),linear-gradient(180deg,#101010,#050505);box-shadow:inset 0 0 0 2px #321700,inset 0 0 24px #000,0 0 15px rgba(255,112,0,.56)}
.poster-black .flyer-grid:empty{min-height:320px}
.poster-black .flyer-card{border-color:#ff7900;box-shadow:0 0 5px rgba(255,103,0,.35)}
.poster-black .flyer-foot{border-color:#ff7900;background:linear-gradient(180deg,rgba(13,13,13,.96),rgba(0,0,0,.98));box-shadow:0 0 8px rgba(255,112,0,.28);color:#fff}
.flyer-format-wide.poster-black .poster-top,.flyer-format-square.poster-black .poster-top{min-height:55px}
.flyer-format-wide.poster-black .poster-headline,.flyer-format-square.poster-black .poster-headline{margin-top:-27px;margin-bottom:8px;font-size:42px}
@media(max-width:900px){.flyer-page.poster-black{padding:15px}.poster-black .poster-headline{margin-left:112px;margin-right:112px}.poster-black .flyer-grid{padding:11px}}

/* X投稿画像の店舗ロゴ・店舗名・最下段注記 */
.flyer-logo-control{display:grid;grid-template-columns:minmax(190px,1fr) auto auto;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.025)}
.flyer-logo-control label{min-width:0}.flyer-logo-control input[type="file"]{width:100%}.flyer-logo-control img{width:108px;height:46px;padding:3px;border:1px solid var(--line);border-radius:5px;background:#fff;object-fit:contain}.flyer-logo-control small{grid-column:1/-1;color:var(--muted)}
.flyer-page .poster-store{font-size:20px;font-weight:1000;line-height:1.05}.poster-black .poster-store{font-size:20px;font-weight:1000;letter-spacing:2px}
.flyer-page .poster-date{display:grid!important;grid-template-rows:auto 1fr;align-items:center;justify-content:stretch;gap:2px;min-width:72px;min-height:58px;padding:5px 10px;border:0!important;border-radius:7px;background:#f05a00!important;box-shadow:none!important;color:#fff;text-align:center}.flyer-page .poster-date span{display:block;grid-row:1;color:#fff!important;font-size:9px;font-weight:900;line-height:1.1;letter-spacing:1px}.flyer-page .poster-date b{display:block;grid-row:2;padding:3px 0 0!important;border:0!important;border-top:1px solid rgba(255,255,255,.72)!important;color:#fff!important;font:800 20px Oswald,sans-serif;line-height:1.05;letter-spacing:.5px}.flyer-page .poster-logo{display:grid;place-items:center;width:112px;height:58px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.flyer-page .poster-logo img{display:block;width:100%;height:100%;object-fit:contain}
.flyer-page .flyer-foot,.flyer-page .flyer-foot span{text-align:center}
.flyer-title-setting{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:end;gap:8px}.flyer-title-setting label{min-width:0}.flyer-title-setting .button{min-height:34px;white-space:nowrap}.flyer-title-setting .button[aria-pressed="true"]{border-color:var(--accent);background:rgba(232,200,64,.12);color:var(--accent)}
.flyer-background-control{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(180px,1.3fr) auto auto auto;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.025)}.flyer-background-control>strong{color:var(--muted);font-size:10px}.flyer-background-control select{min-width:0}.flyer-background-control label{min-width:0}.flyer-background-control input[type="file"]{width:100%}.flyer-background-control img{width:108px;height:64px;padding:3px;border:1px solid var(--line);border-radius:5px;background:#111;object-fit:cover}.flyer-background-control small{grid-column:1/-1;color:var(--muted)}.flyer-page.has-custom-background{background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}.flyer-page.flyer-title-hidden .poster-headline{display:none!important}.flyer-page.flyer-title-hidden .flyer-grid{margin-top:8px}.flyer-page:not(.has-poster-logo) .poster-top{grid-template-columns:112px 1fr 112px}
@media(max-width:700px){.flyer-title-setting{grid-template-columns:1fr}.flyer-background-control{grid-template-columns:1fr 1fr}.flyer-background-control>strong,.flyer-background-control>select,.flyer-background-control>.template-editor,.flyer-background-control small{grid-column:1/-1}.flyer-background-control img{grid-column:1/-1;width:100%;height:90px}}
@media(max-width:700px){.flyer-logo-control{grid-template-columns:1fr auto}.flyer-logo-control img{width:90px}.flyer-page .poster-store,.poster-black .poster-store{font-size:17px}}

@media(max-width:700px){
  .table-wrap thead tr{display:flex!important;gap:5px;overflow-x:auto;padding:1px 1px 7px;scrollbar-width:thin}
  .table-wrap thead th[data-db-column]{display:block!important;flex:0 0 auto}
  .table-wrap thead th[data-db-column][hidden],.table-wrap tbody td[data-db-column][hidden]{display:none!important}
  .table-wrap thead th[data-db-fixed="order"]{display:none!important}
  .table-wrap thead .db-column-heading{width:auto;min-height:38px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}
  .database-column-filter-dialog{width:calc(100vw - 10px);max-height:94dvh;border-radius:11px}
  .database-column-filter-dialog form{gap:10px;padding:13px}
  .database-column-filter-dialog .dialog-title{top:-13px;margin:-13px -13px 0;padding:13px}
  .database-column-sort{grid-template-columns:1fr 1fr}.database-column-sort button:last-child{grid-column:1/-1}
  .database-column-choices{grid-template-columns:1fr;max-height:38dvh}
  .database-column-actions{bottom:-13px;margin:0 -13px -13px;padding:10px 13px 13px}
}

/* 利用分析はカードDBと独立した軽量集計だけを表示する。 */
.usage-analytics-heading,.usage-analytics-status{display:flex;align-items:center;justify-content:space-between;gap:16px}.usage-analytics-heading{margin-bottom:12px}.usage-analytics-heading h2,.usage-analytics-status h3{margin:2px 0}.usage-analytics-heading p{margin:4px 0 0;color:var(--muted)}.usage-analytics-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.usage-analytics-controls label{display:grid;gap:4px}.usage-analytics-dashboard{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.usage-analytics-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:12px 0}.usage-analytics-metrics article{display:grid;gap:3px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--panel-2)}.usage-analytics-metrics strong{font-size:clamp(22px,3vw,36px);color:var(--accent)}.usage-analytics-chart{display:flex;align-items:end;gap:4px;min-height:180px;padding:12px;margin:12px 0;border:1px solid var(--line);border-radius:12px;overflow-x:auto}.usage-analytics-day{display:grid;grid-template-rows:120px auto auto;align-items:end;justify-items:center;gap:3px;min-width:34px;height:160px}.usage-analytics-day>span{width:70%;min-height:3px;border-radius:5px 5px 0 0;background:linear-gradient(180deg,var(--accent),#00a884)}.usage-analytics-day small,.usage-analytics-day b{font-size:10px;white-space:nowrap}.usage-analytics-section-title{margin:18px 0 8px}.usage-analytics-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.usage-analytics-table-wrap+.usage-analytics-section-title{margin-top:20px}.usage-analytics-table{width:100%;border-collapse:collapse;min-width:880px}.usage-analytics-feature-table{min-width:720px}.usage-analytics-table th,.usage-analytics-table td{padding:10px;border-bottom:1px solid var(--line);text-align:left}.usage-analytics-table td:first-child{display:grid;gap:2px}.usage-analytics-table td:first-child small{color:var(--muted);font-size:10px}.usage-analytics-table tbody tr:last-child td{border-bottom:0}
@media(max-width:760px){.usage-analytics-heading,.usage-analytics-status{align-items:stretch;flex-direction:column}.usage-analytics-controls{display:grid;grid-template-columns:1fr 1fr}.usage-analytics-controls label{grid-column:1/-1}.usage-analytics-metrics{grid-template-columns:1fr 1fr}.usage-analytics-dashboard{padding:10px}}

/* 公開出力画面: オレンジ・白を基調にし、管理画面の配色は変更しない。 */
body:not(.admin-body){--bg:#fff7ed;--surface:#fff;--card:#fff;--border:#fed7aa;--accent:#f97316;--text:#18181b;--muted:#71717a;--hot:#ea580c;--psa:#111827;background:linear-gradient(180deg,#fff7ed 0,#fff 240px);color:#18181b}
body:not(.admin-body) .public-header{position:static;top:auto;z-index:auto;padding:8px 12px 9px!important;border-bottom:3px solid #f97316;background:rgba(255,255,255,.97);box-shadow:0 4px 14px rgba(124,45,18,.08)}
body:not(.admin-body) .brand-row{justify-content:flex-end;min-height:20px}
body:not(.admin-body) .public-title-row{display:flex;align-items:stretch;justify-content:center;gap:9px;width:min(1080px,100%);margin:8px auto 0;padding:0 12px}
body:not(.admin-body) .public-title-row[hidden]{display:none!important}
body:not(.admin-body) .public-title-row>*{min-width:0}
body:not(.admin-body) #publicTitleRow{display:flex;justify-content:center;width:100%}
body:not(.admin-body) #publicTitleRow button{margin:0 auto}
body:not(.admin-body) #publicTitleRow .card-title-menu-button{max-width:min(680px,100%)}
body:not(.admin-body) #publicTitleRow{display:flex;justify-content:center;align-items:center;width:100%}
body:not(.admin-body) #publicTitleRow button{margin:0 auto}
.public-title-row .public-title-search{justify-content:center}
body:not(.admin-body) .public-header-search{height:100%;min-height:42px}
body:not(.admin-body) .card-title-menu-button{position:static;grid-template-columns:minmax(0,1fr);width:100%;min-width:0;margin:0;border-color:#fb923c;background:#f97316;box-shadow:0 7px 20px rgba(194,65,12,.22);color:#fff}
body:not(.admin-body) .card-title-menu-button.has-logo{grid-template-columns:40px minmax(0,1fr)}
body:not(.admin-body) .card-title-menu-button small{color:#ffedd5}
body:not(.admin-body) .card-title-menu-logo{border-color:#fff;background:#fff}
body:not(.admin-body) .card-title-dialog{border:2px solid #fb923c;background:#fff;color:#18181b}
body:not(.admin-body) .card-title-dialog>p,body:not(.admin-body) .card-title-choice small{color:#71717a}
body:not(.admin-body) .card-title-choice{border-color:#fed7aa;background:#fff;color:#18181b}
body:not(.admin-body) .card-title-choice.active{border-color:#f97316;box-shadow:inset 0 0 0 1px #f97316;background:#fff7ed}
body:not(.admin-body) .public-title-landing{width:min(680px,calc(100% - 24px));margin:18px auto 40px;padding:14px;border:1px solid #fdba74;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(124,45,18,.10)}
body:not(.admin-body) .public-title-landing h2{margin:0 0 11px;color:#9a3412;font-size:16px}
body:not(.admin-body) .public-title-landing .card-title-choices{max-height:none}
.public-title-landing[hidden],#publicTitleContent[hidden]{display:none!important}
body:not(.admin-body) .search-panel{position:static;border-bottom-color:#fed7aa;background:#fff7ed;box-shadow:none;backdrop-filter:none}
body:not(.admin-body) .search{border-color:#fdba74;background:#fff}
body:not(.admin-body) .search-panel>.chips{padding-top:0}
body:not(.admin-body) .filter-row select,body:not(.admin-body) .icon-button{border-color:#fdba74;background:#fff;color:#27272a}
body:not(.admin-body) .chips button,body:not(.admin-body) .segmented button{border-color:#fdba74;background:#fff;color:#9a3412}
body:not(.admin-body) .chips button.active,body:not(.admin-body) .segmented button.active{border-color:#f97316;background:#f97316;color:#fff}
body:not(.admin-body) .summary{color:#57534e}
body:not(.admin-body) .summary b,body:not(.admin-body) .summary .hot-text,body:not(.admin-body) .summary .hot-text b{color:#ea580c}
body:not(.admin-body) .summary .psa-text,body:not(.admin-body) .summary .psa-text b{color:#111827}
body:not(.admin-body) .card{border-color:#fdba74;background:#fff;color:#18181b;box-shadow:0 4px 12px rgba(124,45,18,.09)}
body:not(.admin-body) .card.psa{border-color:#18181b}
body:not(.admin-body) .card-image{background:#fff7ed}
body:not(.admin-body) .price{color:#fff;background:linear-gradient(transparent,rgba(234,88,12,.96))}
body:not(.admin-body) .meta{color:#71717a}
body:not(.admin-body) .badge{background:#ffedd5;color:#c2410c}
body:not(.admin-body) .card-rules span{color:#57534e}
body:not(.admin-body) .public-pagination .button{border:1px solid #f97316;background:#fff;color:#c2410c}
.public-title-row{display:flex}.public-filter-actions{display:grid;grid-template-columns:minmax(0,1fr) 126px 126px;align-items:stretch;gap:8px;width:min(1080px,100%);margin:auto}.public-filter-actions>*{min-width:0}.public-filter-actions .public-header-search{min-height:58px;padding:12px 16px}.public-filter-actions .public-header-search>span{color:#f97316;font-size:25px}.public-filter-action{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:1fr auto;align-items:center;justify-items:center;gap:0 5px;min-height:58px;padding:8px;border:1px solid #ea580c;border-radius:11px;background:linear-gradient(180deg,#fb923c,#f97316);box-shadow:0 5px 13px rgba(194,65,12,.18);color:#fff;cursor:pointer}.public-filter-action svg{grid-row:1/3;width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.public-filter-action>span{align-self:end;font-size:13px;font-weight:900;line-height:1.1}.public-filter-action>small{align-self:start;max-width:100%;overflow:hidden;color:#ffedd5;font-size:8px;line-height:1.15;white-space:nowrap;text-overflow:ellipsis}.public-filter-action>b{position:absolute;top:-6px;right:-5px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#9a3412;color:#fff;font-size:10px}.public-filter-action>b[hidden]{display:none}.public-option-dialog{width:min(700px,calc(100vw - 24px));max-height:min(88dvh,820px);padding:20px;border:1px solid #fdba74;background:#fff;color:#18181b;box-shadow:0 24px 70px rgba(67,20,7,.28)}.public-option-dialog::backdrop{background:rgba(17,12,9,.7);backdrop-filter:blur(2px)}.public-option-dialog .dialog-title{position:sticky;top:-20px;z-index:2;margin:-20px -20px 15px;padding:18px 20px 14px;border-bottom:1px solid #fed7aa;background:#fff}.public-option-dialog .dialog-title h2{margin:0;color:#7c2d12;font-size:22px}.public-option-dialog .dialog-close{color:#ea580c;font-size:33px;line-height:1}.public-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.public-filter-field{display:grid;align-content:start;gap:6px;min-width:0;margin:0;padding:0;border:0;color:#44403c;font-size:12px;font-weight:800}.public-filter-field.full{grid-column:1/-1}.public-filter-field>span:first-child,.public-filter-field legend{margin:0 0 2px;color:#7c2d12;font-size:13px;font-weight:900}.public-filter-field select,.public-filter-field input{width:100%;min-height:46px;border:1px solid #fdba74;border-radius:9px;background:#fff;color:#18181b;padding:9px 11px;outline:0}.public-filter-field select:focus,.public-filter-field input:focus{border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.16)}.public-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;max-height:150px;overflow:auto}.public-choice-grid button{min-height:43px;border:1px solid #fdba74;border-radius:9px;background:#fff;color:#9a3412;font-size:12px;font-weight:800;cursor:pointer}.public-choice-grid button.active{border-color:#f97316;background:#f97316;color:#fff;box-shadow:0 3px 9px rgba(194,65,12,.2)}.public-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:9px}.public-range label{display:grid;gap:4px}.public-range label span{color:#78716c;font-size:10px}.public-range i{align-self:center;color:#9a3412;font-size:20px;font-style:normal}.public-dialog-search{min-height:46px;border-color:#fdba74;background:#fff}.public-dialog-search input{min-height:0!important;padding:0!important;border:0!important;box-shadow:none!important}.public-dialog-search>span{color:#f97316;font-size:20px}.public-dialog-actions{position:sticky;bottom:-20px;display:grid;grid-template-columns:auto minmax(180px,1fr);gap:9px;margin:17px -20px -20px;padding:13px 20px 20px;border-top:1px solid #fed7aa;background:#fff}.public-clear-button,.public-apply-button{min-height:48px;border-radius:10px;padding:10px 16px;font-weight:900;cursor:pointer}.public-clear-button{border:1px solid #fdba74;background:#fff;color:#c2410c}.public-apply-button{border:1px solid #ea580c;background:#f97316;color:#fff}.public-sort-dialog{width:min(620px,calc(100vw - 24px))}.public-sort-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.public-sort-choices button{min-height:58px;border:1px solid #fdba74;border-radius:10px;background:#fff7ed;color:#9a3412;font-size:14px;font-weight:900;cursor:pointer}.public-sort-choices button:hover,.public-sort-choices button:focus-visible{border-color:#f97316;outline:0}.public-sort-choices button.active{border-color:#ea580c;background:#f97316;color:#fff;box-shadow:0 5px 14px rgba(194,65,12,.22)}
.public-site-intro{display:grid;gap:7px;padding:4px 0 2px}.public-site-intro h1{margin:0;color:#c2410c;font-size:clamp(21px,5vw,34px);font-weight:900;line-height:1.25;letter-spacing:.02em}.public-notice{margin:0;padding:10px 12px;border-left:5px solid #f97316;border-radius:7px;background:#fff7ed;color:#7c2d12;font-size:12px;font-weight:700;line-height:1.65;white-space:pre-wrap}.public-notice[hidden]{display:none}
.card-title-public-control{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;margin-top:14px;padding:10px 13px;border:1px solid var(--border);border-radius:10px;background:var(--card);cursor:pointer}.card-title-public-control input{width:20px;height:20px;accent-color:#f97316}.card-title-public-control span{display:flex;align-items:center;gap:10px}.card-title-public-control small{padding:3px 8px;border-radius:999px;background:#f97316;color:#fff;font-weight:800}
.public-output-settings>label{display:grid;gap:5px}.public-output-settings input,.public-output-settings select,.public-output-settings textarea{width:100%;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);padding:9px}.title-notice-selector{display:grid;gap:8px;margin-top:12px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.title-notice-selector label,.notice-template-editor label{display:grid;gap:5px}.public-notice-preview{min-height:48px;margin:0;padding:9px;border-left:4px solid #f97316;border-radius:6px;background:rgba(249,115,22,.08);white-space:pre-wrap}.notice-template-editor{display:grid;gap:9px;margin-top:12px}.notice-template-actions{display:flex;gap:8px}.notice-template-list{display:grid;gap:7px;margin-top:13px}.notice-template-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid var(--border);border-radius:8px;background:var(--card)}.notice-template-row>div:first-child{display:grid;gap:4px;min-width:0}.notice-template-row small{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:9px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:pre-wrap}.notice-template-row>div:last-child{display:flex;gap:6px}
@media(max-width:649px){body:not(.admin-body) .card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px 6px 72px}body:not(.admin-body) .card{border-radius:8px}body:not(.admin-body) .card-info{padding:5px}body:not(.admin-body) .card-name{min-height:30px;font-size:9px;line-height:1.4}body:not(.admin-body) .price{padding:6px 4px;font-size:14px}body:not(.admin-body) .flag{top:4px;left:4px;padding:2px 4px;font-size:7px}body:not(.admin-body) .meta{font-size:7px}body:not(.admin-body) .badge{padding:2px 4px}body:not(.admin-body) .card-rules{display:none}body:not(.admin-body) .summary{padding:7px 8px}body:not(.admin-body) .search-panel{padding:8px}body:not(.admin-body) .search input{font-size:16px}body:not(.admin-body) .public-title-row{display:flex;justify-content:center;gap:5px;padding:0 8px}body:not(.admin-body) .public-title-row .card-title-menu-button{width:100%;max-width:none}.public-site-intro h1{font-size:22px}.public-notice{padding:8px 9px;font-size:10px}.card-title-public-control{width:100%}.notice-template-row{grid-template-columns:1fr}.notice-template-row>div:last-child{justify-content:flex-end}}
@media(max-width:649px){body:not(.admin-body) .card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:4px 6px 72px}body:not(.admin-body) .card{border-radius:8px}body:not(.admin-body) .card-info{padding:5px}body:not(.admin-body) .card-name{min-height:30px;font-size:9px;line-height:1.4}body:not(.admin-body) .price{padding:6px 4px;font-size:14px}body:not(.admin-body) .flag{top:4px;left:4px;padding:2px 4px;font-size:7px}body:not(.admin-body) .meta{font-size:7px}body:not(.admin-body) .badge{padding:2px 4px}body:not(.admin-body) .card-rules{display:none}body:not(.admin-body) .summary{padding:7px 8px}body:not(.admin-body) .search-panel{padding:8px}body:not(.admin-body) .search input{font-size:16px}body:not(.admin-body) .public-title-row{display:flex;justify-content:center;gap:5px;padding:0 8px}body:not(.admin-body) .public-title-row .card-title-menu-button{width:100%;max-width:none}.public-site-intro h1{font-size:22px}.public-notice{padding:8px 9px;font-size:10px}.card-title-public-control{width:100%}.notice-template-row{grid-template-columns:1fr}.notice-template-row>div:last-child{justify-content:flex-end}}

/* 総合・買取査定。検索/絞り込み/並べ替えは既存の共通コントロール階層を再利用する。 */
.card-title-choice-all{border-color:#e8c840;background:linear-gradient(145deg,#282313,#171721)}.card-title-choice-all .card-title-choice-logo{background:linear-gradient(135deg,#f2d34f,#ff8a3d);color:#111}.all-scope-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.all-scope-page-heading small,.appraisal-pane-heading small{color:var(--new);font-size:9px;font-weight:800;letter-spacing:1.5px}.all-scope-page-heading h2,.appraisal-pane-heading h3{margin:2px 0 0}.all-scope-page-heading p{margin:5px 0 0;color:var(--muted);font-size:11px}.appraisal-workspace{display:grid;grid-template-columns:minmax(270px,30%) minmax(620px,70%);min-height:calc(100dvh - 145px);overflow:hidden;border:1px solid var(--border);border-radius:13px;background:#0d0d13}.appraisal-database-pane,.appraisal-list-pane{min-width:0;padding:11px;overflow:auto}.appraisal-database-pane{border-right:1px solid var(--border)}.appraisal-pane-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.unified-control-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin-bottom:7px}.unified-control-toolbar .search{width:100%;min-width:0}.appraisal-search-results{max-height:calc(100dvh - 255px);overflow:auto}.appraisal-session-header{display:grid;grid-template-columns:minmax(150px,1.4fr) minmax(130px,1fr) 100px auto auto;align-items:end;gap:8px;margin-bottom:11px;padding:12px;border:1px solid #373748;border-radius:12px;background:#171721}.appraisal-session-header>div{grid-column:1/-1}.appraisal-session-header label{display:grid;gap:4px;color:var(--muted);font-size:10px}.appraisal-session-header input,.appraisal-session-header select{width:100%;min-height:39px;font-size:13px}.appraisal-session-header>strong{align-self:center;color:var(--accent);font-size:15px;white-space:nowrap}.appraisal-items{display:grid;gap:11px}.appraisal-item{display:grid;grid-template-columns:140px minmax(0,1fr);gap:13px;padding:12px;border:1px solid #4a4651;border-radius:14px;background:linear-gradient(145deg,#1a1a24,#15151d);box-shadow:0 8px 24px rgba(0,0,0,.16)}.appraisal-item-image{display:grid;place-items:center;min-height:205px;overflow:hidden;border:1px solid #353544;border-radius:10px;background:#0a0a0f;color:var(--muted);font-size:12px}.appraisal-item-image img{width:100%;height:100%;object-fit:contain}.appraisal-item-main{min-width:0}.appraisal-item-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,300px);align-items:start;gap:12px;min-height:58px}.appraisal-item-heading h3{margin:0;font-size:17px;line-height:1.35}.appraisal-item-heading small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.35}.appraisal-id-tools{display:grid;grid-template-columns:auto minmax(132px,1fr);align-items:stretch;gap:6px;min-width:0}.appraisal-copy-id{min-width:68px;padding:6px 8px;font-size:11px}.appraisal-id-barcode{display:grid;grid-template-rows:minmax(38px,46px) auto;align-items:center;min-width:0;overflow:hidden;border:2px solid #fff;border-radius:7px;background:#fff;color:#050509;text-align:center}.appraisal-id-barcode svg{display:block;width:100%;height:100%}.appraisal-id-barcode>span{align-self:center;font-size:9px;font-weight:900;letter-spacing:.08em}.appraisal-id-barcode b{overflow:hidden;padding:1px 5px 3px;font:900 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;text-overflow:ellipsis;white-space:nowrap}.appraisal-price-summary{display:grid;grid-template-columns:minmax(230px,1.5fr) minmax(140px,.7fr);gap:8px;margin-top:8px}.appraisal-price-summary>label,.appraisal-database-price{display:grid;gap:4px}.appraisal-price-summary span,.appraisal-item-fields label{color:var(--muted);font-size:10px;font-weight:800}.appraisal-price-summary input{width:100%;height:58px;border:1px solid rgba(0,212,170,.65);border-radius:10px;background:#082d28;color:#18e6c0;font-size:clamp(24px,2.4vw,34px);font-weight:950;line-height:1;text-align:right;font-variant-numeric:tabular-nums}.appraisal-database-price{align-content:center;padding:7px 11px;border:1px solid #353544;border-radius:10px;background:#101017}.appraisal-database-price strong{overflow:hidden;color:#fff;font-size:20px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.appraisal-item-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}.appraisal-item-fields label{display:grid;gap:4px}.appraisal-item-fields .wide{grid-column:1/-1}.appraisal-item-fields input,.appraisal-item-fields select,.appraisal-item-fields textarea{width:100%;min-width:0;min-height:40px;font-size:13px}.appraisal-item-fields textarea{min-height:50px;resize:vertical}.appraisal-market-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px}.appraisal-market-links .button{min-height:44px;padding:9px 6px;font-size:12px}.same-day-appraisal-note{margin:5px 0;padding:5px 7px;border:1px solid rgba(0,212,170,.38);border-radius:6px;background:rgba(0,212,170,.09);color:#7fffe5;font-size:10px;font-weight:800}.appraisal-history{margin-top:14px;padding-top:10px;border-top:1px solid var(--border)}.appraisal-history>.search{width:100%;margin-bottom:7px}.appraisal-history-list{display:grid;gap:6px}.appraisal-history-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:7px;padding:8px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}.appraisal-history-list article div{display:grid;min-width:0}.appraisal-history-list small{color:var(--muted);font-size:9px}.bulk-title-settings-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(360px,1.2fr);gap:10px}.bulk-title-selector,.bulk-title-settings-form{padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.bulk-title-selection-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:9px}.bulk-title-selection-list>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;padding:6px;border:1px solid var(--border);border-radius:8px;background:var(--card)}.bulk-title-selection-list>label>span{display:grid;grid-template-columns:45px minmax(0,1fr);align-items:center;gap:6px;min-width:0}.bulk-title-selection-list img,.bulk-title-selection-list .card-title-choice-logo{width:45px;height:32px;object-fit:contain;font-size:10px}.bulk-title-selection-list b{overflow:hidden;font-size:9px;white-space:nowrap;text-overflow:ellipsis}.bulk-title-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bulk-title-settings-form fieldset{min-width:0;padding:9px;border:1px solid var(--border);border-radius:9px}.bulk-title-settings-form fieldset>*:not(legend){width:100%}.bulk-title-settings-form .wide{grid-column:1/-1}.all-titles-mode .database-history,.all-titles-mode .cart-import-panel{display:none}.all-titles-mode #priceDbGroupSelect{min-width:150px}.all-titles-mode .price-db-card-main>small{white-space:normal}
@media(max-width:1000px){.appraisal-workspace{grid-template-columns:minmax(240px,34%) minmax(520px,66%)}.bulk-title-selection-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.all-scope-page-heading{padding:9px}.appraisal-workspace{display:block;overflow:visible}.appraisal-database-pane,.appraisal-list-pane{overflow:visible;border-right:0;border-bottom:1px solid var(--border)}.appraisal-search-results{max-height:45dvh}.unified-control-toolbar{grid-template-columns:minmax(0,1fr) 74px 74px}.appraisal-session-header{grid-template-columns:1fr 1fr}.appraisal-session-header>strong,.appraisal-session-header>button{width:100%}.appraisal-item{grid-template-columns:105px minmax(0,1fr);gap:9px;padding:9px}.appraisal-item-image{min-height:170px}.appraisal-item-heading{grid-template-columns:1fr;gap:7px}.appraisal-item-heading h3{font-size:15px}.appraisal-id-tools{grid-template-columns:72px minmax(120px,1fr)}.appraisal-price-summary{grid-template-columns:minmax(0,1.35fr) minmax(110px,.65fr)}.appraisal-price-summary input{height:52px;font-size:24px}.appraisal-database-price strong{font-size:16px}.appraisal-item-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.appraisal-item-fields .wide{grid-column:1/-1}.appraisal-market-links{grid-template-columns:repeat(2,minmax(0,1fr))}.appraisal-history-list article{grid-template-columns:minmax(0,1fr) auto}.appraisal-history-list article .button{width:100%}.bulk-title-settings-layout{grid-template-columns:1fr}.bulk-title-selection-list{grid-template-columns:1fr 1fr}.bulk-title-settings-form{grid-template-columns:1fr}}
@media(max-width:480px){.appraisal-item{grid-template-columns:88px minmax(0,1fr)}.appraisal-item-image{min-height:150px}.appraisal-item-heading{gap:5px}.appraisal-id-tools{grid-template-columns:66px minmax(96px,1fr)}.appraisal-copy-id{min-width:0;padding:5px 4px;font-size:10px}.appraisal-id-barcode{grid-template-rows:34px auto;width:100%}.appraisal-price-summary{grid-template-columns:1fr}.appraisal-item-fields{grid-template-columns:1fr}.appraisal-market-links{grid-template-columns:1fr 1fr}}
@media(max-width:649px){body:not(.admin-body) .public-title-row{grid-template-columns:minmax(0,1fr)!important}.public-filter-actions{grid-template-columns:minmax(0,1fr) 76px 76px;gap:5px}.public-filter-actions .public-header-search{min-height:58px;padding:9px}.public-filter-actions .public-header-search>span{font-size:21px}.public-filter-action{grid-template-columns:1fr;grid-template-rows:27px auto;gap:1px;min-height:58px;padding:5px 3px}.public-filter-action svg{grid-row:1;width:25px;height:25px}.public-filter-action>span{align-self:center;font-size:11px}.public-filter-action>small{display:none}.public-option-dialog{width:calc(100vw - 12px);max-height:92dvh;padding:14px;border-radius:14px}.public-option-dialog .dialog-title{top:-14px;margin:-14px -14px 12px;padding:14px}.public-option-dialog .dialog-title h2{font-size:19px}.public-filter-fields{gap:11px 8px}.public-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.public-dialog-actions{bottom:-14px;grid-template-columns:1fr 1.35fr;margin:14px -14px -14px;padding:11px 14px 14px}.public-clear-button,.public-apply-button{padding:8px 7px;font-size:12px}.public-sort-choices{gap:7px}.public-sort-choices button{min-height:54px;padding:8px 5px;font-size:12px}}

/* 公開データの読込中は待機メッセージだけを表示する。 */
.public-loading{display:grid;min-height:100vh;min-height:100svh;place-items:center;padding:24px;background:#fff7ed;color:#c2410c;font-size:clamp(18px,5vw,28px);font-weight:900;letter-spacing:.04em;text-align:center}
.public-loading[hidden],#publicAppShell[hidden]{display:none!important}

/* 公開カードは価格の位置を揃え、カード名から型番までの上下余白を最小化する。 */
body:not(.admin-body) .card-grid{align-items:start}
body:not(.admin-body) .card{display:grid;grid-template-rows:auto 42px auto;align-self:start;align-content:start;min-width:0}
body:not(.admin-body) .card-image{width:100%;aspect-ratio:3/4}
body:not(.admin-body) .card-image img{object-fit:contain}
body:not(.admin-body) .public-card-price{position:static;inset:auto;display:flex;align-items:center;justify-content:center;gap:4px;width:100%;height:42px;padding:6px 10px;background:linear-gradient(180deg,#fb923c,#f97316);color:#fff;font-size:22px;font-variant-numeric:tabular-nums;line-height:1;text-align:center;white-space:nowrap}
body:not(.admin-body) .public-card-price>span{min-width:0;overflow:hidden;text-overflow:clip}
body:not(.admin-body) .public-card-date{flex:none;color:#9a3412;font:800 10px/1 "Noto Sans JP",sans-serif;letter-spacing:0;text-shadow:none;white-space:nowrap}
body:not(.admin-body) .card-info{display:flex;min-width:0;flex-direction:column;gap:3px;padding:6px 7px 7px}
body:not(.admin-body) .card-name{display:-webkit-box;min-height:0;max-height:2.9em;overflow:hidden;font-weight:700;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
body:not(.admin-body) .public-card-rules{display:grid;align-content:start;gap:2px;min-width:0;color:#57534e;font-size:8px;line-height:1.25}
body:not(.admin-body) .public-card-rules:empty{display:none}
body:not(.admin-body) .public-card-rules span,body:not(.admin-body) .public-card-rules strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
body:not(.admin-body) .public-card-rules strong{color:#c2410c}
body:not(.admin-body) .meta{align-items:center;min-width:0;margin-top:1px}
body:not(.admin-body) .public-card-model{min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}
body:not(.admin-body) .public-hot-badge{position:absolute;z-index:4;top:7px;right:7px;display:inline-flex;align-items:center;gap:4px;max-width:calc(100% - 14px);padding:5px 9px;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:linear-gradient(135deg,#ff3d66 0%,#f43f5e 45%,#c026d3 100%);box-shadow:0 7px 18px rgba(190,24,93,.38),inset 0 1px rgba(255,255,255,.3);color:#fff;font-size:10px;font-weight:950;line-height:1;letter-spacing:.02em;text-shadow:0 1px 2px rgba(76,5,25,.35);white-space:nowrap}
body:not(.admin-body) .public-hot-badge i{display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:rgba(255,255,255,.22);font-size:11px;font-style:normal;line-height:1}
body:not(.admin-body) .public-hot-badge+.rank-flag{top:42px}
@media(max-width:649px){body:not(.admin-body) .card{grid-template-rows:auto 36px auto}body:not(.admin-body) .public-card-price{height:36px;padding:6px 5px;font-size:14px}body:not(.admin-body) .card-info{gap:2px;padding:4px 5px 5px}body:not(.admin-body) .card-name{max-height:2.8em;line-height:1.4}body:not(.admin-body) .public-card-rules{font-size:7px}body:not(.admin-body) .public-card-rules span{display:none}body:not(.admin-body) .public-card-rules strong{-webkit-line-clamp:1}body:not(.admin-body) .meta{margin-top:0}}
@media(max-width:649px){body:not(.admin-body) .public-hot-badge{top:4px;right:4px;gap:2px;padding:3px 5px;font-size:7px}body:not(.admin-body) .public-hot-badge i{width:10px;height:10px;font-size:8px}body:not(.admin-body) .public-hot-badge+.rank-flag{top:25px}body:not(.admin-body) .card-grid[data-columns="4"] .public-hot-badge,body:not(.admin-body) .card-grid[data-columns="5"] .public-hot-badge{top:2px;right:2px;padding:2px 3px;font-size:6px}body:not(.admin-body) .card-grid[data-columns="4"] .public-hot-badge i,body:not(.admin-body) .card-grid[data-columns="5"] .public-hot-badge i{display:none}body:not(.admin-body) .card-grid[data-columns="4"] .public-hot-badge+.rank-flag,body:not(.admin-body) .card-grid[data-columns="5"] .public-hot-badge+.rank-flag{top:16px}}

/* 公開カード一覧は操作ボタンで横2〜5列へ切り替える。 */
body:not(.admin-body) #publicTitleContent{touch-action:pan-y}
body:not(.admin-body) .public-grid-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:end;justify-items:stretch;gap:3px;margin-left:auto;width:max-content}
body:not(.admin-body) .public-grid-buttons button{min-width:34px;padding:4px 6px;border:1px solid #fdba74;border-radius:6px;background:#fff;color:#9a3412;font-size:9px;font-weight:800}
body:not(.admin-body) .public-grid-buttons button.active{border-color:#f97316;background:#f97316;color:#fff}
body:not(.admin-body) .card-grid{grid-template-columns:repeat(var(--public-grid-columns,3),minmax(0,1fr))!important;transition:none}
body:not(.admin-body) .card-grid[data-columns="2"]{gap:8px}
body:not(.admin-body) .card-grid[data-columns="2"] .card{grid-template-rows:auto 44px auto}
body:not(.admin-body) .card-grid[data-columns="2"] .public-card-price{height:44px;font-size:clamp(17px,4.5vw,24px)}
body:not(.admin-body) .card-grid[data-columns="2"] .public-card-date{font-size:11px}
body:not(.admin-body) .card-grid[data-columns="2"] .card-name{font-size:clamp(11px,3vw,14px)}
@media(max-width:649px){body:not(.admin-body) .card-grid[data-columns="3"]{gap:5px}body:not(.admin-body) .card-grid[data-columns="3"] .card{grid-template-rows:auto 36px auto}body:not(.admin-body) .card-grid[data-columns="3"] .public-card-price{height:36px;font-size:14px}body:not(.admin-body) .card-grid[data-columns="3"] .public-card-date{font-size:8px}body:not(.admin-body) .card-grid[data-columns="3"] .card-name{font-size:9px}body:not(.admin-body) .card-grid[data-columns="4"]{gap:4px;padding-left:5px;padding-right:5px}body:not(.admin-body) .card-grid[data-columns="4"] .card{grid-template-rows:auto 31px auto}body:not(.admin-body) .card-grid[data-columns="4"] .public-card-price{height:31px;padding:4px 3px;font-size:11px}body:not(.admin-body) .card-grid[data-columns="4"] .public-card-date{font-size:6px}body:not(.admin-body) .card-grid[data-columns="4"] .card-info{padding:3px}body:not(.admin-body) .card-grid[data-columns="4"] .card-name{font-size:8px}body:not(.admin-body) .card-grid[data-columns="4"] .meta{font-size:6px}body:not(.admin-body) .card-grid[data-columns="5"]{gap:3px;padding-left:4px;padding-right:4px}body:not(.admin-body) .card-grid[data-columns="5"] .card{grid-template-rows:auto 27px auto;border-radius:5px}body:not(.admin-body) .card-grid[data-columns="5"] .public-card-price{height:27px;padding:3px 2px;font-size:9px}body:not(.admin-body) .card-grid[data-columns="5"] .public-card-date{font-size:6px}body:not(.admin-body) .card-grid[data-columns="5"] .card-info{gap:1px;padding:2px}body:not(.admin-body) .card-grid[data-columns="5"] .card-name{font-size:7px;line-height:1.25}body:not(.admin-body) .card-grid[data-columns="5"] .meta{font-size:5px}body:not(.admin-body) .card-grid[data-columns="5"] .badge{padding:1px 2px}body:not(.admin-body) .card-grid[data-columns="4"] .flag,body:not(.admin-body) .card-grid[data-columns="5"] .flag{top:2px;left:2px;padding:1px 2px;font-size:6px}}
.export-results{display:flex;flex:1 0 100%;align-items:center;gap:7px;flex-wrap:wrap;padding:9px;border:1px solid rgba(0,212,170,.35);border-radius:8px;background:rgba(0,212,170,.06)}.export-results[hidden]{display:none}.export-results strong{width:100%;color:var(--new);font-size:10px}.export-results .button{padding:7px 10px}.export-results small{width:100%;color:var(--muted);font-size:9px}

/* 価格管理: 左DB・中央価格更新・右X投稿の3ペイン */
.price-workspace-toolbar{position:relative;z-index:7;display:grid;grid-template-columns:40px minmax(0,1fr) max-content 40px;align-items:end;gap:6px;margin:0 0 8px;padding:7px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.price-toolbar-center{display:flex;align-items:end;gap:6px;min-width:0}.price-toolbar-heading{align-self:center;flex:0 0 auto;color:var(--accent);font-size:11px;white-space:nowrap}.price-toolbar-title,.price-toolbar-scale{display:grid;gap:3px;min-width:0;color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}.price-toolbar-title{flex:1 1 230px;min-width:190px}.price-toolbar-scale{flex:0 1 118px;min-width:104px}.price-toolbar-title span,.price-toolbar-scale span{overflow:hidden;text-overflow:ellipsis}.price-toolbar-title em{color:var(--danger);font-size:8px;font-style:normal}.price-toolbar-title input,.price-toolbar-scale select{box-sizing:border-box;width:100%;min-width:0;min-height:36px;padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:10px}.price-toolbar-icon-button,.price-toolbar-reset{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid var(--accent);border-radius:8px;background:transparent;color:var(--accent);cursor:pointer}.price-toolbar-icon-button{width:40px;padding:0}.price-toolbar-reset{gap:5px;min-width:0;padding:7px 9px;white-space:nowrap}.price-toolbar-icon-button svg,.price-toolbar-reset svg,.price-toolbar-image-save svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.price-toolbar-icon-button .price-pane-chevron{transition:transform .16s ease}.price-toolbar-icon-button[aria-pressed="true"] .price-pane-chevron{transform:rotate(180deg);transform-origin:center}.price-toolbar-save,.price-toolbar-image-save{position:relative;flex:0 0 auto;min-height:36px;padding:7px 10px;white-space:nowrap}.price-toolbar-image-save{display:inline-flex;align-items:center;justify-content:center;gap:5px}.price-toolbar-status{display:block;grid-column:1/-1;min-height:0;color:var(--muted);font-size:9px}.price-toolbar-status:empty{display:none}.price-toolbar-export-results{margin:-2px 0 8px}.price-workspace-toolbar [data-tooltip]::after{content:attr(data-tooltip);position:absolute;z-index:20;top:calc(100% + 7px);left:50%;display:none;width:max-content;max-width:min(310px,80vw);padding:5px 8px;border:1px solid var(--accent);border-radius:999px;background:var(--card);box-shadow:0 8px 24px rgba(0,0,0,.24);color:var(--text);font-size:9px;font-weight:800;line-height:1.35;white-space:normal;transform:translateX(-50%);pointer-events:none}.price-workspace-toolbar [data-tooltip]:is(:hover,:focus-visible)::after{display:block}.price-workspace-toolbar>#togglePriceDbPane::after{left:0;transform:none}.price-workspace-toolbar>#togglePriceXPane::after{right:0;left:auto;transform:none}.price-workspace{--price-pane-separator-width:18px;display:grid!important;grid-template-columns:minmax(220px,24fr) var(--price-pane-separator-width) minmax(340px,38fr) var(--price-pane-separator-width) minmax(360px,38fr);gap:0!important;align-items:stretch!important;min-width:980px}.price-workspace>.price-database-pane,.price-workspace>.price-update-column,.price-workspace>.flyer-side-column{min-width:0;max-height:calc(100vh - 170px);overflow:auto;padding:0 10px;scrollbar-gutter:stable}.price-workspace>.price-database-pane{padding-left:0}.price-workspace>.flyer-side-column{position:static!important;top:auto!important;padding-right:0}.price-pane-resizer{position:relative;z-index:4;width:var(--price-pane-separator-width,18px);min-height:260px;cursor:col-resize;touch-action:none}.price-pane-resizer::before{content:"";position:absolute;inset:0 7px;border-radius:999px;background:var(--border);transition:.15s}.price-pane-resizer:hover::before,.price-pane-resizer:focus::before,.price-pane-resizer.dragging::before{inset:0 6px;background:var(--accent)}.price-pane-resizer:focus{outline:0}.price-database-pane{border:1px solid var(--border);border-radius:10px;background:var(--surface)}.price-pane-heading{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 -10px 8px;padding:10px;background:rgba(20,20,29,.98);border-bottom:1px solid var(--border)}.price-pane-heading small{display:block;color:var(--new);font:700 8px Oswald;letter-spacing:1.5px}.price-pane-heading h2{margin:1px 0 0;font-size:14px}.price-pane-heading>span{padding:3px 7px;border-radius:999px;background:rgba(0,212,170,.12);color:var(--new);font-size:9px;font-weight:800}.price-db-search{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px;margin-bottom:7px;padding:0 8px;border:1px solid var(--border);border-radius:8px;background:var(--card)}.price-db-search input{min-width:0;width:100%;padding:9px 0;border:0;outline:0;background:transparent;color:var(--text);font-size:16px}.price-database-pane>select{width:100%;margin-bottom:5px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.price-database-pane>.save-note{display:block;min-height:18px;margin:5px 0}.price-db-results{display:grid;gap:7px;padding-bottom:10px}.price-db-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;padding:7px;border:1px solid var(--border);border-radius:9px;background:var(--card)}.price-db-card-image{display:grid;place-items:center;width:64px;aspect-ratio:3/4;border-radius:6px;background:#09090e;overflow:hidden}.price-db-card-image img{width:100%;height:100%;object-fit:contain}.price-db-card-image .placeholder{font-size:24px}.price-db-card-main{min-width:0}.price-db-card-main h3{display:-webkit-box;max-height:2.8em;margin:0 0 3px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:11px;line-height:1.4}.price-db-card-main small{display:block;overflow:hidden;color:var(--muted);font-size:8px;white-space:nowrap;text-overflow:ellipsis}.price-db-card-price{margin:4px 0;color:var(--accent);font:700 16px Oswald}.price-db-card-actions{display:flex;gap:4px;flex-wrap:wrap}.price-db-card-actions .button{padding:5px 7px;font-size:8px}.price-db-card.in-cart{border-color:rgba(0,212,170,.55)}.price-db-card.in-cart .price-db-add{border-color:var(--new);color:var(--new)}.price-db-empty{padding:22px 10px;text-align:center;color:var(--muted);font-size:10px}.admin-body[data-admin-route="x-post"] .price-workspace-toolbar,.admin-body[data-admin-route="x-post"] .price-database-pane,.admin-body[data-admin-route="x-post"] .price-pane-resizer{display:none!important}.admin-body[data-admin-route="x-post"] .price-workspace{display:block!important;min-width:0}.admin-body[data-admin-route="x-post"] .flyer-side-column{max-height:none!important;padding:0!important;overflow:visible!important}
@media(max-width:1100px){.price-workspace{grid-template-columns:minmax(210px,24fr) var(--price-pane-separator-width) minmax(320px,38fr) var(--price-pane-separator-width) minmax(340px,38fr)!important}.price-workspace>.price-database-pane,.price-workspace>.price-update-column,.price-workspace>.flyer-side-column{max-height:calc(100vh - 185px)}.price-toolbar-center{overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.price-workspace>.flyer-side-column{position:static;max-height:calc(100vh - 185px)}}
.price-workspace>.price-update-column{container-type:inline-size;container-name:price-center}
@container price-center (max-width:620px){.price-update-column .cart-item{grid-template-columns:72px minmax(0,1fr);min-height:0}.price-update-column .cart-image-drop{width:68px;height:92px}.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb{width:64px;height:88px}.price-update-column .cart-price{grid-column:1/-1;grid-template-columns:1fr auto;min-width:0}.price-update-column .cart-rules{grid-template-columns:1fr 1fr}.price-update-column .cart-rules label:first-child{grid-column:1/-1}.price-update-column .cart-price .remove-cart{justify-self:stretch}}
.rank-badge{display:inline-block;padding:2px 6px;border:1px solid rgba(249,115,22,.55);border-radius:999px;background:rgba(249,115,22,.12);color:#fb923c;font-size:9px;font-weight:800;white-space:nowrap}.rank-flag{position:absolute;z-index:2;top:7px;right:7px;max-width:65%;overflow:hidden;padding:3px 7px;border-radius:5px;background:#fff;color:#c2410c;font-size:9px;font-weight:900;text-overflow:ellipsis;white-space:nowrap}.rank-cell{white-space:nowrap}@media(max-width:649px){body:not(.admin-body) .rank-flag{top:4px;right:4px;padding:2px 4px;font-size:7px}body:not(.admin-body) .card-grid[data-columns="4"] .rank-flag,body:not(.admin-body) .card-grid[data-columns="5"] .rank-flag{top:2px;right:2px;padding:1px 2px;font-size:6px}}

/* Price workspace: dense database navigation, compact editor rows and fitted flyer preview. */
.price-db-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-bottom:5px}.price-db-filters select,.price-db-price-filter{min-width:0;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--text);font-size:9px}.price-db-filters select{width:100%;padding:6px}.price-db-price-filter{display:flex;align-items:center;gap:3px;padding:0 5px;color:var(--muted);white-space:nowrap}.price-db-price-filter input{width:100%;min-width:0;padding:6px 2px;border:0;outline:0;background:transparent;color:var(--text);font-size:9px;text-align:right}.price-db-filters #priceDbSortDirection{padding:6px;font-size:9px}.price-db-keyboard-hint{display:block;margin:2px 1px 5px;color:var(--muted);font-size:8px}.price-db-card{position:relative;cursor:default;transition:border-color .1s,background .1s,box-shadow .1s}.price-db-card.keyboard-selected{border-color:var(--accent)!important;background:rgba(232,200,64,.09);box-shadow:inset 3px 0 var(--accent),0 0 0 1px rgba(232,200,64,.25)}.price-db-card.keyboard-selected::after{content:"選択中";position:absolute;top:4px;right:4px;padding:2px 4px;border-radius:4px;background:var(--accent);color:#111;font-size:7px;font-weight:900}.price-db-card:focus{outline:2px solid rgba(232,200,64,.5);outline-offset:1px}
.price-update-column .cart-items{gap:5px}.price-update-column .cart-item{grid-template-columns:66px minmax(0,1fr) minmax(136px,auto);gap:7px;min-height:0;padding:6px;align-items:stretch}.price-update-column .cart-image-drop{align-self:stretch;width:64px;height:auto;min-height:92px;padding:1px}.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb{width:100%;height:100%;min-height:88px;object-fit:contain}.price-update-column .cart-image-drop .drop-copy{font-size:8px}.price-update-column .cart-card-main,.price-update-column .cart-price{align-self:start}.price-update-column .cart-card-main h3{margin:0 0 1px;font-size:10px;line-height:1.25}.price-update-column .cart-card-main small{display:block;overflow:hidden;font-size:8px;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}.price-update-column .cart-stock{display:inline-block;margin-top:2px;font-size:8px}.cart-rules-details{margin:3px 0}.cart-rules-details>summary{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;cursor:pointer;color:var(--muted);font-size:8px;list-style:none}.cart-rules-details>summary::-webkit-details-marker{display:none}.cart-rules-details>summary::before{content:"＋";color:var(--accent);font-weight:900}.cart-rules-details[open]>summary::before{content:"−"}.cart-rules-details>summary span{padding:1px 4px;border-radius:999px;background:rgba(232,200,64,.14);color:var(--accent);font-size:7px;font-weight:800}.price-update-column .cart-rules{grid-template-columns:minmax(120px,1fr) 116px 54px;gap:4px;margin:4px 0}.price-update-column .cart-rules textarea,.price-update-column .cart-rules select,.price-update-column .cart-rules input{padding:4px;font-size:8px}.price-update-column .cart-rules textarea{min-height:30px;height:30px}.cart-market-links{display:flex;gap:3px;overflow:hidden}.cart-market-links .button{min-width:0;padding:3px 5px;overflow:hidden;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.price-update-column .cart-price{grid-template-columns:minmax(0,1fr) auto;gap:2px 5px;min-width:136px}.price-update-column .cart-current-label,.price-update-column .cart-new-price{font-size:8px}.price-update-column .cart-current-price{font-size:13px}.price-update-column .cart-price-arrow{font-size:8px;line-height:1}.price-update-column .cart-price input{width:100px;padding:5px;font-size:14px}.price-update-column .cart-price-diff{font-size:9px}.price-update-column .cart-save-state{padding:2px 5px;font-size:7px}.price-update-column .cart-price .remove-cart{padding:4px 7px;font-size:8px}.price-db-card.in-cart .price-db-add.price-db-remove{border-color:rgba(255,61,90,.7);color:#ff7285}.flyer-side-column .flyer-preview{position:relative;overflow:hidden;padding:8px}.flyer-side-column .flyer-canvas{width:760px;min-width:760px;margin:0;padding:0;will-change:transform}.flyer-side-column .flyer-page{width:760px;max-width:none}
@container price-center (max-width:620px){.price-update-column .cart-item{grid-template-columns:58px minmax(105px,1fr) minmax(118px,130px);gap:5px}.price-update-column .cart-image-drop{width:56px;height:auto;min-height:84px}.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb{width:100%;height:100%;min-height:80px}.price-update-column .cart-price{grid-column:auto;grid-template-columns:minmax(0,1fr) auto;min-width:118px}.price-update-column .cart-price input{width:88px}.price-update-column .cart-rules{grid-template-columns:1fr}.price-update-column .cart-rules label:first-child{grid-column:auto}.price-update-column .cart-price .remove-cart{justify-self:end}.cart-market-links .button{padding-inline:3px}}

/* 価格管理ワークスペース v2: 開閉時に残りのペインへ幅を返し、再描画なしで分割する。 */
.admin-body[data-admin-route="price-update"] .price-workspace{width:100%;min-width:0!important;max-width:100%;overflow:hidden;contain:layout style}
.admin-body[data-admin-route="price-update"] .price-workspace.left-pane-hidden>.price-database-pane,.admin-body[data-admin-route="price-update"] .price-workspace.left-pane-hidden>#leftPaneResizer,.admin-body[data-admin-route="price-update"] .price-workspace.right-pane-hidden>.flyer-side-column,.admin-body[data-admin-route="price-update"] .price-workspace.right-pane-hidden>#rightPaneResizer{display:none!important}
.admin-body[data-admin-route="price-update"] .price-workspace>.price-database-pane,.admin-body[data-admin-route="price-update"] .price-workspace>.price-update-column,.admin-body[data-admin-route="price-update"] .price-workspace>.flyer-side-column{min-width:0!important;max-width:100%;overscroll-behavior:contain}
.price-pane-resizer{width:var(--price-pane-separator-width,18px)!important}.price-pane-resizer::before{inset:0 7px}.price-pane-resizer:hover::before,.price-pane-resizer:focus::before,.price-pane-resizer.dragging::before{inset:0 6px}
.price-pane-resizing,.price-pane-resizing *{cursor:col-resize!important;user-select:none!important}.price-pane-resizing iframe{pointer-events:none!important}
.price-pane-resizer{z-index:12!important}.price-pane-resizer::before{z-index:1}.price-pane-resizer::after{content:"";position:absolute;z-index:2;inset:0;background:transparent}.price-pane-resizing::after{content:"";position:fixed;z-index:9998;inset:0;cursor:col-resize}
.database-bulk-delete-disabled{display:none!important}
.database-bulk-editor{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.database-bulk-editor .selection-hint{flex:1;min-width:220px;color:var(--muted)}.database-bulk-editor .bulk-select-all{display:flex;align-items:center;gap:6px}.db-order-cell{display:flex;align-items:center;justify-content:center;gap:5px}.db-order-cell .row-check{width:18px;height:18px;accent-color:var(--accent)}
.product-category-settings{display:grid;gap:8px;margin:12px 0}.product-category-row{display:grid;grid-template-columns:minmax(140px,1fr) auto minmax(90px,.35fr) auto;align-items:center;gap:8px}.product-category-row input{min-width:0}.product-category-settings-actions{display:flex;gap:8px;flex-wrap:wrap}.bulk-card-editor-dialog{width:min(680px,calc(100vw - 24px))}.bulk-card-editor-dialog form{display:grid;gap:14px}.bulk-edit-field{display:grid;gap:8px;padding:12px;border:1px solid var(--border);border-radius:10px}.bulk-edit-field>span{font-weight:800}.money-input{font-variant-numeric:tabular-nums}
@media(max-width:600px){.database-bulk-editor>*{width:100%}.database-bulk-editor .button{width:100%}.product-category-row{grid-template-columns:minmax(0,1fr) auto 88px}.product-category-row .button{grid-column:1/-1}.bulk-card-editor-dialog .form-grid{grid-template-columns:1fr}}
.price-db-results:focus{outline:2px solid rgba(232,200,64,.4);outline-offset:2px}.price-db-card{cursor:pointer}.price-db-card button{min-height:34px;font-size:9px}
.price-update-column .cart-items{gap:9px}.price-update-column .cart-item{grid-template-columns:clamp(108px,22cqi,150px) minmax(170px,1fr) minmax(155px,auto)!important;gap:10px!important;min-height:188px!important;padding:9px!important;align-items:stretch!important;cursor:pointer;transition:border-color .12s,box-shadow .12s,background .12s}
.price-update-column .cart-item.keyboard-selected{border-color:var(--accent)!important;background:rgba(232,200,64,.065);box-shadow:inset 4px 0 var(--accent),0 0 0 2px rgba(232,200,64,.22)}
.price-update-column .cart-item:focus{outline:2px solid rgba(232,200,64,.58);outline-offset:2px}
.price-update-column .cart-image-drop{align-self:stretch!important;width:100%!important;height:100%!important;min-height:168px!important;padding:3px!important;background:#09090e}
.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb,.price-update-column .cart-image-drop .local-image-missing{width:100%!important;height:100%!important;min-height:162px!important;object-fit:contain!important}
.price-update-column .cart-card-main,.price-update-column .cart-price{align-self:stretch!important}.price-update-column .cart-card-main h3{font-size:12px!important;line-height:1.4!important}.price-update-column .cart-card-main small{font-size:9px!important}.price-update-column .cart-stock{font-size:9px!important}
.price-update-column .cart-rules{grid-template-columns:minmax(110px,1fr) minmax(105px,.7fr) 58px!important;gap:6px!important;margin:7px 0!important}.price-update-column .cart-rules textarea,.price-update-column .cart-rules select,.price-update-column .cart-rules input{min-height:34px;padding:7px!important;font-size:9px!important}.price-update-column .cart-rules textarea{height:42px!important}
.price-update-column .cart-market-links{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;overflow:visible!important;margin-top:6px}.price-update-column .cart-market-links .button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:40px;padding:7px 5px!important;overflow:hidden;font-size:9px!important;font-weight:900;text-align:center;text-overflow:ellipsis;white-space:nowrap;touch-action:manipulation}
.price-update-column .cart-price{align-content:start;min-width:150px!important;gap:5px 8px!important}.price-update-column .cart-current-label,.price-update-column .cart-new-price{font-size:9px!important}.price-update-column .cart-current-price{font-size:16px!important}.price-update-column .cart-price input{width:132px!important;min-height:42px;padding:8px!important;font-size:17px!important}.price-update-column .cart-price .remove-cart{min-height:36px;padding:7px 10px!important;font-size:9px!important}
@container price-center (max-width:700px){.price-update-column .cart-item{grid-template-columns:clamp(104px,28cqi,136px) minmax(0,1fr)!important;min-height:220px!important}.price-update-column .cart-image-drop{grid-row:1/span 2;min-height:204px!important}.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb,.price-update-column .cart-image-drop .local-image-missing{min-height:198px!important}.price-update-column .cart-price{grid-column:2;min-width:0!important;grid-template-columns:minmax(0,1fr) auto!important}.price-update-column .cart-price input{width:min(138px,100%)!important}.price-update-column .cart-rules{grid-template-columns:minmax(0,1fr) minmax(96px,.7fr) 54px!important}.price-update-column .cart-market-links .button{min-height:38px;padding-inline:3px!important;font-size:8px!important}}
@container price-center (max-width:470px){.price-update-column .cart-item{grid-template-columns:108px minmax(0,1fr)!important;gap:7px!important}.price-update-column .cart-image-drop{min-height:250px!important}.price-update-column .cart-rules{grid-template-columns:1fr 52px!important}.price-update-column .cart-rules label:first-child{grid-column:1/-1}.price-update-column .cart-price{grid-column:1/-1!important}.price-update-column .cart-market-links{grid-template-columns:1fr!important;gap:5px!important}.price-update-column .cart-market-links .button{min-height:38px;font-size:9px!important}}

/* Price update: selling and buying prices are edited side by side. */
.price-update-column .cart-item{grid-template-columns:clamp(108px,22cqi,150px) minmax(170px,1fr) minmax(238px,auto)!important}
.price-update-column .cart-price{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start;gap:7px!important;min-width:238px!important;text-align:left!important}
.price-update-column .cart-current-values{display:flex;gap:12px;justify-content:space-between;color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums}
.price-update-column .cart-current-values strong{display:block;color:var(--text);font:700 14px Oswald}
.price-update-column .cart-price-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.price-update-column .cart-price-inputs label{display:grid;gap:4px;color:var(--muted);font-size:9px;font-weight:700}
.price-update-column .cart-price-inputs input{width:100%!important;min-width:0;min-height:44px!important;margin:0!important;padding:8px!important;font-size:17px!important}
.price-update-column .cart-price-diff,.price-update-column .cart-save-state{justify-self:stretch;text-align:right}
.price-update-column .cart-price .remove-cart{justify-self:end}
@container price-center (max-width:760px){.price-update-column .cart-item{grid-template-columns:clamp(104px,28cqi,136px) minmax(0,1fr)!important}.price-update-column .cart-price{grid-column:1/-1!important;min-width:0!important}.price-update-column .cart-price-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.admin-body[data-admin-route="price-update"] .price-workspace{display:block!important}.admin-body[data-admin-route="price-update"] .price-pane-resizer{display:none!important}.admin-body[data-admin-route="price-update"] .price-workspace>.price-database-pane,.admin-body[data-admin-route="price-update"] .price-workspace>.price-update-column,.admin-body[data-admin-route="price-update"] .price-workspace>.flyer-side-column{width:100%!important;max-width:none!important;margin-bottom:12px}.admin-body[data-admin-route="price-update"] .price-workspace>.price-database-pane{max-height:55vh!important}.admin-body[data-admin-route="price-update"] .price-workspace>.price-update-column,.admin-body[data-admin-route="price-update"] .price-workspace>.flyer-side-column{max-height:none!important}}

/* Price database selection and bulk add. */
.price-db-bulk-actions{position:sticky;top:49px;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;margin:7px 0;padding:7px;border:1px solid rgba(0,212,170,.42);border-radius:8px;background:rgba(20,20,29,.97);box-shadow:0 5px 12px rgba(0,0,0,.28)}
.price-db-bulk-actions label{display:flex;align-items:center;gap:6px;color:var(--text);font-size:9px;font-weight:800}.price-db-bulk-actions input{width:18px;height:18px;accent-color:var(--new)}.price-db-bulk-actions>span{color:var(--new);font-size:8px;font-weight:800;white-space:nowrap}.price-db-bulk-actions .button{grid-column:1/-1;min-height:34px}
.price-db-card{grid-template-columns:24px 64px minmax(0,1fr)!important;align-items:start}.price-db-check{display:grid;place-items:center;width:24px;height:32px;cursor:pointer}.price-db-check input{width:19px;height:19px;margin:0;accent-color:var(--new);cursor:pointer}.price-db-check span{display:none}.price-db-card.bulk-selected{border-color:var(--new);background:rgba(0,212,170,.08);box-shadow:inset 3px 0 var(--new)}

/* Bright, easy-to-grab scrollbars for all three price-management panes. */
.price-workspace>.price-database-pane,.price-workspace>.price-update-column,.price-workspace>.flyer-side-column{scrollbar-width:auto;scrollbar-color:#f7d84a #292933}
.price-workspace>.price-database-pane::-webkit-scrollbar,.price-workspace>.price-update-column::-webkit-scrollbar,.price-workspace>.flyer-side-column::-webkit-scrollbar{width:13px;height:13px}
.price-workspace>.price-database-pane::-webkit-scrollbar-track,.price-workspace>.price-update-column::-webkit-scrollbar-track,.price-workspace>.flyer-side-column::-webkit-scrollbar-track{border-radius:999px;background:#292933}
.price-workspace>.price-database-pane::-webkit-scrollbar-thumb,.price-workspace>.price-update-column::-webkit-scrollbar-thumb,.price-workspace>.flyer-side-column::-webkit-scrollbar-thumb{min-height:42px;border:3px solid #292933;border-radius:999px;background:linear-gradient(180deg,#fff36b,#f7c63c 52%,#00d4aa)}
.price-workspace>.price-database-pane::-webkit-scrollbar-thumb:hover,.price-workspace>.price-update-column::-webkit-scrollbar-thumb:hover,.price-workspace>.flyer-side-column::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#fff,#ffe24d 48%,#20f0c5)}

/* Keep every price-management pane independently scrollable through its last control. */
@media(min-width:901px){
  .admin-body[data-admin-route="price-update"] .price-workspace>.price-database-pane,
  .admin-body[data-admin-route="price-update"] .price-workspace>.price-update-column,
  .admin-body[data-admin-route="price-update"] .price-workspace>.flyer-side-column{
    height:var(--price-workspace-height,calc(100dvh - 210px));
    max-height:none!important;
    padding-bottom:max(30px,env(safe-area-inset-bottom))!important;
    overflow:auto!important;
    scroll-padding-bottom:max(30px,env(safe-area-inset-bottom));
  }
  .admin-body[data-admin-route="price-update"] .price-pane-resizer{
    height:var(--price-workspace-height,calc(100dvh - 210px));
    min-height:0;
  }
}

@media(max-width:900px){
  .admin-body[data-admin-route="price-update"] .price-workspace>.price-database-pane,
  .admin-body[data-admin-route="price-update"] .price-workspace>.price-update-column,
  .admin-body[data-admin-route="price-update"] .price-workspace>.flyer-side-column,
  .admin-body[data-admin-route="price-update"] .price-pane-resizer{height:auto!important}
  .admin-body[data-admin-route="price-update"] .price-workspace>.price-update-column,
  .admin-body[data-admin-route="price-update"] .price-workspace>.flyer-side-column{padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
}

/* Price update card: one cohesive image-and-editor block. */
.price-update-column .cart-item{position:relative;grid-template-columns:clamp(138px,31cqi,224px) minmax(0,1fr)!important;gap:11px!important;min-height:276px!important;padding:9px!important;overflow:hidden;border:2px solid rgba(232,200,64,.66)!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(29,28,21,.98),rgba(18,18,23,.98))!important;box-shadow:inset 0 0 0 2px rgba(232,200,64,.1),0 7px 18px rgba(0,0,0,.28)}
.price-update-column .cart-item.changed{border-color:var(--accent)!important;box-shadow:inset 4px 0 var(--accent),inset 0 0 0 2px rgba(232,200,64,.13),0 7px 18px rgba(0,0,0,.32)}
.price-update-column .cart-image-drop{grid-column:1;grid-row:1!important;align-self:stretch!important;width:100%!important;height:100%!important;min-height:254px!important;padding:4px!important;border:1px dashed rgba(232,200,64,.48)!important;border-radius:13px!important;background:#08080c!important}
.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb,.price-update-column .cart-image-drop .local-image-missing{width:100%!important;height:100%!important;min-height:242px!important;border-radius:9px!important;object-fit:contain!important}
.price-update-column .cart-editor-shell{grid-column:2;display:grid!important;grid-template-rows:auto auto auto auto;align-content:start;gap:5px;min-width:0}
.price-update-column .cart-card-header{display:grid;grid-template-columns:auto minmax(0,1fr) 58px;align-items:start;gap:6px;min-width:0}
.price-update-column .cart-card-title{min-width:0}.price-update-column .cart-card-title h3{display:-webkit-box;margin:0!important;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:16px!important;line-height:1.28!important}.price-update-column .cart-card-title small{display:block;margin-top:4px;overflow:hidden;color:var(--muted);font-size:10px!important;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
.price-update-column .cart-card-header .drag-handle{grid-column:1;grid-row:1/span 2;padding:2px 3px;color:#8d8d9f;font-size:15px}.price-update-column .cart-card-header .cart-card-title{grid-column:2;grid-row:1}.price-update-column .cart-card-header .cart-stock{grid-column:2;grid-row:2;justify-self:start;align-self:start;margin:2px 0 0!important;padding:3px 7px;border-radius:999px;background:rgba(0,212,170,.12);font-size:9px!important;white-space:nowrap}.price-update-column .cart-card-header .cart-stock strong{font-size:13px}
.price-update-column .cart-editor-shell .cart-price{display:grid!important;grid-column:auto!important;grid-template-columns:minmax(0,1fr)!important;align-content:start;gap:5px!important;min-width:0!important;text-align:left!important}
.price-update-column .cart-editor-shell .cart-current-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.price-update-column .cart-editor-shell .cart-current-values span{color:var(--muted);font-size:9px}.price-update-column .cart-editor-shell .cart-current-values strong{margin-top:2px;color:var(--text);font:800 17px Oswald}
.price-update-column .cart-editor-shell .cart-price-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.price-update-column .cart-editor-shell .cart-price-inputs label{gap:3px;font-size:9px}.price-update-column .cart-editor-shell .cart-price-inputs input{width:100%!important;min-width:0;min-height:46px!important;padding:7px 10px!important;border-color:rgba(0,212,170,.42);border-radius:9px;background:rgba(0,212,170,.07);font-size:20px!important;font-weight:800}
.price-update-column .cart-state-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;min-height:18px}.price-update-column .cart-state-row .cart-price-diff,.price-update-column .cart-state-row .cart-save-state{justify-self:start;text-align:left}.price-update-column .cart-state-row .remove-cart{position:absolute;z-index:2;top:9px;right:9px;min-width:50px;min-height:30px!important;padding:5px 8px!important}
.price-update-column .cart-editor-shell .cart-rules{display:grid!important;grid-template-columns:minmax(120px,1fr) minmax(116px,.72fr) 58px!important;gap:6px!important;margin:0!important}.price-update-column .cart-editor-shell .cart-rules textarea,.price-update-column .cart-editor-shell .cart-rules select,.price-update-column .cart-editor-shell .cart-rules input{min-height:38px!important;padding:7px!important;border-radius:8px;font-size:9px!important}.price-update-column .cart-editor-shell .cart-rules textarea{height:38px!important;resize:none}
.price-update-column .cart-editor-shell .cart-market-links{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-self:start;gap:7px!important;margin:0!important}.price-update-column .cart-editor-shell .cart-market-links .button{min-height:42px!important;padding:8px 6px!important;border-width:2px;border-radius:12px;font-size:11px!important;font-weight:900}
@container price-center (max-width:720px){.price-update-column .cart-item{grid-template-columns:clamp(118px,29cqi,158px) minmax(0,1fr)!important;gap:8px!important;min-height:244px!important;padding:7px!important;border-radius:14px!important}.price-update-column .cart-image-drop{min-height:226px!important}.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb,.price-update-column .cart-image-drop .local-image-missing{min-height:216px!important}.price-update-column .cart-card-title h3{font-size:12px!important}.price-update-column .cart-card-header{grid-template-columns:auto minmax(0,1fr) 48px}.price-update-column .cart-card-header .cart-stock{padding:2px 6px;font-size:8px!important}.price-update-column .cart-card-header .cart-stock strong{font-size:12px}.price-update-column .cart-editor-shell .cart-current-values strong{font-size:14px}.price-update-column .cart-editor-shell .cart-price-inputs{gap:6px}.price-update-column .cart-editor-shell .cart-price-inputs input{min-height:40px!important;padding:6px!important;font-size:16px!important}.price-update-column .cart-state-row .remove-cart{top:7px;right:7px;min-width:44px;min-height:27px!important;padding:4px 6px!important;font-size:8px!important}.price-update-column .cart-editor-shell .cart-rules{grid-template-columns:minmax(0,1fr) minmax(90px,.7fr) 48px!important;gap:5px!important}.price-update-column .cart-editor-shell .cart-rules textarea,.price-update-column .cart-editor-shell .cart-rules select,.price-update-column .cart-editor-shell .cart-rules input{min-height:34px!important;padding:5px!important;font-size:8px!important}.price-update-column .cart-editor-shell .cart-rules textarea{height:34px!important}.price-update-column .cart-editor-shell .cart-market-links{gap:5px!important}.price-update-column .cart-editor-shell .cart-market-links .button{min-height:38px!important;padding:6px 2px!important;font-size:9px!important}}
@container price-center (max-width:470px){.price-update-column .cart-item{grid-template-columns:98px minmax(0,1fr)!important;gap:7px!important;min-height:238px!important}.price-update-column .cart-image-drop{min-height:220px!important}.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb,.price-update-column .cart-image-drop .local-image-missing{min-height:210px!important}.price-update-column .cart-card-header{grid-template-columns:auto minmax(0,1fr) 44px}.price-update-column .cart-card-header .cart-stock{grid-column:2;width:max-content}.price-update-column .cart-editor-shell .cart-rules{grid-template-columns:minmax(0,1fr) 44px!important}.price-update-column .cart-editor-shell .cart-rules label:first-child{grid-column:1/-1}.price-update-column .cart-editor-shell .cart-market-links{grid-template-columns:repeat(3,minmax(0,1fr))!important}.price-update-column .cart-editor-shell .cart-market-links .button{min-height:34px!important;font-size:8px!important}}
.rank-change-control{display:inline-flex;align-items:center;gap:2px;min-height:34px;padding:3px 7px;border:1px solid rgba(232,200,64,.55);border-radius:8px;background:rgba(232,200,64,.08);color:var(--accent);font-size:10px;font-weight:800;white-space:nowrap}.rank-change-control select{width:auto!important;min-width:58px!important;min-height:26px!important;margin:0!important;padding:3px 20px 3px 5px!important;border:0!important;border-radius:5px!important;background:var(--card)!important;color:var(--accent)!important;font-weight:900!important;cursor:pointer}.rank-change-control select:disabled{cursor:not-allowed;opacity:.45}.rank-change-control:has(select:disabled){opacity:.55}.price-db-filters .rank-change-control{min-width:0;min-height:31px;padding:2px 5px;font-size:8px}.price-db-filters .rank-change-control select{min-width:46px!important;min-height:24px!important;padding-left:3px!important;font-size:9px!important}.page-actions .rank-change-control{min-height:34px}

/* Price update selection and bulk rule editor. */
.price-update-column .page-actions{display:grid!important;gap:7px!important;align-items:stretch}.cart-sort-actions,.cart-save-actions{display:flex;align-items:end;gap:6px;flex-wrap:wrap}.cart-bulk-rules{display:grid;grid-template-columns:auto auto minmax(0,1.25fr) minmax(0,1fr) 38px auto;align-items:end;gap:5px;padding:7px;overflow:hidden;border:1px solid rgba(232,200,64,.34);border-radius:10px;background:rgba(232,200,64,.055)}.cart-bulk-rules>label:not(.cart-bulk-select-all){display:grid;min-width:0;gap:3px;overflow:hidden;color:var(--muted);font-size:8px;white-space:nowrap;text-overflow:ellipsis}.cart-bulk-rules input[type="text"],.cart-bulk-rules input[type="number"],.cart-bulk-rules select{width:100%;min-width:0;min-height:34px;padding:6px 5px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--text);font-size:9px}.cart-bulk-select-all{display:flex;align-items:center;gap:4px;min-height:34px;color:var(--text);font-size:9px;font-weight:800;white-space:nowrap}.cart-bulk-select-all input{width:17px;height:17px;accent-color:var(--accent)}#cartSelectedCount{align-self:center;color:var(--accent);font-size:8px;white-space:nowrap}.cart-bulk-rules .button{min-height:34px;padding-inline:7px;white-space:nowrap}

/* Keep the internal card layout stable while the three-pane divider moves. */
.price-update-column .cart-item,.price-update-column .cart-item:is(.changed,.invalid,.keyboard-selected,.bulk-selected){grid-template-columns:34px clamp(118px,30%,220px) minmax(0,1fr)!important;grid-template-rows:1fr!important;gap:9px!important;min-height:276px!important}.price-update-column .cart-item.bulk-selected{background:linear-gradient(135deg,rgba(49,45,22,.98),rgba(18,18,23,.98))!important;box-shadow:inset 4px 0 var(--accent),inset 0 0 0 2px rgba(232,200,64,.18),0 7px 18px rgba(0,0,0,.32)}.price-update-column .cart-item-select{grid-column:1;grid-row:1;display:grid;place-items:center;align-self:stretch;min-width:34px;border-radius:10px;background:#09090d;cursor:pointer}.price-update-column .cart-item-select input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.price-update-column .cart-item-select span{display:grid;place-items:center;width:30px;height:46px;border:2px solid #f4f4fa;border-radius:7px;background:#fff;color:transparent;font-size:18px;font-weight:900}.price-update-column .cart-item-select input:checked+span{border-color:var(--accent);background:var(--accent);color:#111}.price-update-column .cart-item-select:focus-within span{outline:3px solid rgba(232,200,64,.35);outline-offset:2px}.price-update-column .cart-image-drop{grid-column:2!important;grid-row:1!important}.price-update-column .cart-editor-shell{grid-column:3!important;grid-row:1!important}.price-update-column .cart-note{resize:none!important;overflow:auto!important}
@container price-center (max-width:760px){.price-update-column .cart-item,.price-update-column .cart-item:is(.changed,.invalid,.keyboard-selected,.bulk-selected){grid-template-columns:30px clamp(104px,30%,158px) minmax(0,1fr)!important;grid-template-rows:1fr!important;gap:7px!important;min-height:244px!important}.price-update-column .cart-item-select{grid-column:1;grid-row:1;min-width:30px}.price-update-column .cart-item-select span{width:27px;height:42px}.price-update-column .cart-image-drop{grid-column:2!important;grid-row:1!important;min-height:226px!important}.price-update-column .cart-editor-shell{grid-column:3!important;grid-row:1!important}.price-update-column .cart-price{grid-column:auto!important}.price-update-column .cart-rules{grid-template-columns:minmax(0,1fr) minmax(88px,.7fr) 46px!important}.price-update-column .cart-rules label:first-child{grid-column:auto!important}.price-update-column .cart-market-links{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@container price-center (max-width:470px){.price-update-column .cart-item,.price-update-column .cart-item:is(.changed,.invalid,.keyboard-selected,.bulk-selected){grid-template-columns:28px minmax(90px,29%) minmax(0,1fr)!important;grid-template-rows:1fr!important;min-height:238px!important}.price-update-column .cart-item-select{grid-column:1;grid-row:1;min-width:28px}.price-update-column .cart-item-select span{width:25px;height:38px}.price-update-column .cart-image-drop{grid-column:2!important;grid-row:1!important;min-height:220px!important}.price-update-column .cart-editor-shell{grid-column:3!important;grid-row:1!important}.price-update-column .cart-price{grid-column:auto!important}.price-update-column .cart-rules{grid-template-columns:minmax(0,1fr) minmax(76px,.65fr) 42px!important}.price-update-column .cart-rules label:first-child{grid-column:auto!important}.price-update-column .cart-market-links{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@container price-center (max-width:620px){.cart-save-actions{align-items:stretch}.cart-save-actions .update-title{flex:1 0 100%}}

/* Responsive admin workspace: keep every action reachable and remove dead space. */
.price-workspace>.flyer-side-column{container-type:inline-size;container-name:flyer-pane}
.oripa-workspace-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.oripa-workspace-heading small,.oripa-source-heading small{color:var(--new);font:700 8px Oswald;letter-spacing:1.5px}.oripa-workspace-heading h2{margin:2px 0 4px;font-size:17px}.oripa-workspace-heading p{margin:0;color:var(--muted);font-size:10px;line-height:1.7}.oripa-storage-badge{flex:0 0 auto;padding:6px 9px;border:1px solid rgba(0,212,170,.35);border-radius:999px;background:rgba(0,212,170,.08);color:var(--new);font-size:9px;font-weight:800}.oripa-workspace{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:10px;align-items:start}.oripa-source-pane{max-height:calc(100dvh - 190px);overflow:auto;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--surface);scrollbar-gutter:stable}.oripa-source-heading{position:sticky;top:-10px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-10px -10px 8px;padding:10px;background:rgba(20,20,29,.97);border-bottom:1px solid var(--border)}.oripa-source-heading h3{margin:2px 0 0;font-size:13px}.oripa-source-heading>span{padding:3px 7px;border-radius:999px;background:rgba(0,212,170,.12);color:var(--new);font-size:9px;font-weight:800}.oripa-db-search{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px;margin-bottom:7px;padding:0 8px;border:1px solid var(--border);border-radius:8px;background:var(--card)}.oripa-db-search input{min-width:0;width:100%;padding:9px 0;border:0;outline:0;background:transparent;color:var(--text);font-size:14px}.oripa-db-filters{display:grid;grid-template-columns:1fr 1fr;gap:5px}.oripa-db-filters select,.oripa-target-row select{min-width:0;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.oripa-db-filters select:last-child{grid-column:1/-1}.oripa-target-row{margin:7px 0}.oripa-target-row label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;color:var(--muted);font-size:9px}.oripa-csv-import{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0;padding:8px;border:1px dashed rgba(232,200,64,.45);border-radius:9px;background:rgba(232,200,64,.05)}.oripa-csv-import strong,.oripa-csv-import small{display:block}.oripa-csv-import small{margin-top:2px;color:var(--muted);font-size:8px}.oripa-db-bulk-actions{position:sticky;top:40px;z-index:1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px;margin:6px 0;padding:7px;border:1px solid var(--border);border-radius:9px;background:rgba(20,20,29,.97);font-size:9px}.oripa-db-bulk-actions .button{grid-column:1/-1;width:100%}.oripa-db-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.oripa-db-card{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-rows:auto auto;gap:5px;padding:6px;border:1px solid var(--border);border-radius:9px;background:var(--card);cursor:pointer}.oripa-db-card.selected{border-color:var(--accent);box-shadow:0 0 0 1px rgba(232,200,64,.25)}.oripa-db-card>input{grid-row:1/3;align-self:start;margin:3px 0}.oripa-db-card-image{display:grid;place-items:center;width:100%;aspect-ratio:5/7;overflow:hidden;border-radius:6px;background:#08080d}.oripa-db-card-image img{width:100%;height:100%;object-fit:contain}.oripa-db-card-body{min-width:0}.oripa-db-card-body strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:9px;line-height:1.35}.oripa-db-card-body small{display:block;overflow:hidden;margin-top:2px;color:var(--muted);font-size:7px;white-space:nowrap;text-overflow:ellipsis}.oripa-db-empty{grid-column:1/-1;padding:28px 10px;text-align:center;color:var(--muted);font-size:10px}.oripa-editor-pane{position:relative;min-width:0;min-height:820px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#09090d}.oripa-editor-frame{display:block;width:100%;height:max(820px,calc(100dvh - 190px));border:0;background:#09090d}.oripa-editor-loading{position:absolute;inset:0;z-index:2;display:grid;place-content:center;gap:6px;padding:20px;text-align:center;background:#09090d;color:var(--text)}.oripa-editor-loading[hidden]{display:none}.oripa-editor-loading span{color:var(--muted);font-size:10px}
@media(max-width:900px){.oripa-workspace{grid-template-columns:1fr}.oripa-source-pane{max-height:55dvh}.oripa-editor-pane{min-height:760px}.oripa-editor-frame{height:900px}.oripa-workspace-heading{display:grid}.oripa-storage-badge{justify-self:start}}
@media(max-width:560px){.oripa-workspace-heading{padding:10px}.oripa-storage-badge{max-width:100%;overflow:hidden;text-overflow:ellipsis}.oripa-source-pane{max-height:62dvh;padding:8px}.oripa-source-heading{top:-8px;margin:-8px -8px 7px}.oripa-db-results{grid-template-columns:repeat(2,minmax(0,1fr))}.oripa-db-card{padding:5px}.oripa-csv-import{align-items:stretch;flex-direction:column}.oripa-csv-import .button{width:100%}.oripa-editor-pane{min-height:700px;border-radius:9px}.oripa-editor-frame{height:820px}}
.flyer-side-column .flyer-settings,.flyer-side-column .x-composer,.flyer-side-column .export-panel{padding:10px}
.flyer-side-column .flyer-fields>*{min-width:0;max-width:100%}
.flyer-side-column .flyer-fields input,.flyer-side-column .flyer-fields select,.flyer-side-column .export-panel input,.flyer-side-column .export-panel select{width:100%;min-width:0;max-width:100%}
.flyer-side-column .flyer-preview{max-width:100%}

@container flyer-pane (max-width:620px){
  .flyer-side-column .flyer-settings,.flyer-side-column .x-composer,.flyer-side-column .export-panel{margin-bottom:7px;padding:8px}
  .flyer-side-column .flyer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:end}
  .flyer-side-column .flyer-fields>.wide,.flyer-side-column .flyer-fields>.flyer-title-setting,.flyer-side-column .flyer-fields>.flyer-logo-control,.flyer-side-column .flyer-fields>.flyer-background-control{grid-column:1/-1;width:100%}
  .flyer-side-column .flyer-title-setting{grid-template-columns:minmax(0,1fr) auto}
  .flyer-side-column .flyer-logo-control{grid-template-columns:minmax(0,1fr) auto;padding:7px}
  .flyer-side-column .flyer-background-control,.flyer-side-column .template-manager{grid-template-columns:minmax(0,1fr) repeat(3,auto);gap:6px;padding:7px}
  .flyer-side-column .flyer-background-control>strong,.flyer-side-column .flyer-background-control>select,.flyer-side-column .flyer-background-control>.template-editor,.flyer-side-column .flyer-background-control>small,.flyer-side-column .template-manager>strong,.flyer-side-column .template-manager>select,.flyer-side-column .template-manager>.template-editor{grid-column:1/-1}
  .flyer-side-column .template-editor{grid-template-columns:1fr}
  .flyer-side-column .template-editor>*{grid-column:1/-1}
  .flyer-side-column .export-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .flyer-side-column .export-panel h2,.flyer-side-column .export-panel #exportJpeg,.flyer-side-column .export-panel #exportStatus,.flyer-side-column .export-panel #exportResults{grid-column:1/-1}
  .flyer-side-column .flyer-format-presets,.flyer-side-column .flyer-layout-presets{margin-top:6px}
}

@container flyer-pane (max-width:390px){
  .flyer-side-column .flyer-fields{grid-template-columns:1fr}
  .flyer-side-column .flyer-fields>*{grid-column:1!important}
  .flyer-side-column .flyer-title-setting{grid-template-columns:1fr}
  .flyer-side-column .flyer-logo-control{grid-template-columns:1fr auto}
  .flyer-side-column .flyer-background-control,.flyer-side-column .template-manager{grid-template-columns:repeat(3,minmax(0,1fr))}
  .flyer-side-column .flyer-background-control>strong,.flyer-side-column .flyer-background-control>select,.flyer-side-column .flyer-background-control>.template-editor,.flyer-side-column .flyer-background-control>small,.flyer-side-column .template-manager>strong,.flyer-side-column .template-manager>select,.flyer-side-column .template-manager>.template-editor{grid-column:1/-1!important}
  .flyer-side-column .flyer-background-control>.button,.flyer-side-column .template-manager>.button{width:100%;min-width:0;padding-inline:5px}
  .flyer-side-column .export-panel{grid-template-columns:1fr}
  .flyer-side-column .export-panel>*{grid-column:1!important}
}

@container price-center (max-width:720px){
  .price-update-column .cart-bulk-rules{grid-template-columns:auto auto minmax(0,1fr);overflow:visible}
  .price-update-column .cart-bulk-rules>label:nth-of-type(2){grid-column:1/-1}
  .price-update-column .cart-bulk-rules>label:nth-of-type(3){grid-column:1/3}
  .price-update-column .cart-bulk-rules>label:nth-of-type(4){grid-column:3}
  .price-update-column .cart-bulk-rules>#applyCartBulkRules{grid-column:1/-1;width:100%}
  .price-update-column .cart-sort-actions,.price-update-column .cart-save-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
  .price-update-column .cart-sort-actions>*{min-width:0;width:100%}
  .price-update-column .cart-sort-actions .rank-change-control,.price-update-column .cart-save-actions .update-title,.price-update-column .cart-save-actions #cartToDb{grid-column:1/-1}
}

@media(max-width:900px){
  .admin-body[data-admin-route="price-update"] .price-workspace{display:block!important}
  .admin-body[data-admin-route="price-update"] .price-pane-resizer{display:none!important}
  .admin-body[data-admin-route="price-update"] .price-workspace>.price-database-pane,.admin-body[data-admin-route="price-update"] .price-workspace>.price-update-column,.admin-body[data-admin-route="price-update"] .price-workspace>.flyer-side-column{width:100%!important;max-width:none!important;max-height:none!important;margin:0 0 10px;padding:0!important;overflow:visible!important}
  .admin-body[data-admin-route="price-update"] .price-workspace>.price-database-pane{max-height:62vh!important;overflow:auto!important}
}

@media(max-width:760px){
  .admin-header{position:static;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:9px 10px!important}
  .admin-header h1{font-size:15px}.header-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.header-actions .button{display:grid;place-items:center;min-width:0;min-height:38px;padding:6px;text-align:center;white-space:normal}
  .admin-main{padding:8px}
  .admin-tabs{gap:2px;margin:-8px -8px 9px;padding:0 8px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-color:var(--accent) var(--surface)}
  .admin-tabs button{flex:0 0 auto;padding:10px 11px;white-space:nowrap}
  .admin-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:8px}
  .admin-tools .search,.admin-tools #adminCategory2,.admin-tools #managementGroupFilter,.admin-tools #adminUpdatePeriod,.admin-tools .rank-change-control,.admin-tools #databaseImportStatus{grid-column:1/-1;width:100%;max-width:none}
  .admin-tools select,.admin-tools .button,.admin-tools .price-filter{width:100%;min-width:0;min-height:39px}
  .admin-tools .price-filter{justify-content:space-between;padding:0 7px;border:1px solid var(--border);border-radius:8px;background:var(--card)}
  .admin-tools .price-filter input{width:100%;min-width:0;border:0;padding-inline:2px}
  .admin-tools .price-separator{display:none}
  .db-view-controls{gap:5px;margin-bottom:8px;padding:7px}.db-view-controls strong{width:100%}.db-view-controls small{display:none}
  .bulk{grid-template-columns:1fr auto;gap:6px;margin-bottom:8px;padding:8px}.bulk .button{min-height:38px}
  .table-wrap{overflow:visible;border:0;border-radius:0;background:transparent;--db-table-min-width:0px!important}
  .table-wrap table{display:block;width:100%;min-width:0!important;background:transparent}
  .table-wrap thead{display:block;position:static;width:100%;height:auto;margin:0 0 7px;padding:0;overflow:visible;clip:auto;white-space:normal;border:0}
  .table-wrap thead tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .table-wrap thead th{display:none;position:static;padding:0;border:0;background:transparent}
  .table-wrap thead th[data-db-column="name"],.table-wrap thead th[data-db-column="rarity"],.table-wrap thead th[data-db-column="price"]{display:block}
  .table-wrap thead .sort-heading{display:flex;justify-content:center;width:100%;min-height:38px;padding:7px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}
  .table-wrap tbody{display:grid;gap:8px;width:100%}
  .table-wrap tbody tr{display:grid;grid-template-columns:74px repeat(2,minmax(0,1fr));gap:0 7px;width:100%;padding:8px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 4px 13px rgba(0,0,0,.18)}
  .table-wrap tbody td{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:6px;min-width:0!important;max-width:none!important;width:auto!important;padding:5px 0!important;border:0;text-align:left!important;overflow-wrap:anywhere}
  .table-wrap tbody td::before{content:attr(data-label);color:var(--muted);font-size:8px;font-weight:700}
  .table-wrap tbody .db-order-cell{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:space-between;padding:0 0 5px!important}.table-wrap tbody .db-order-cell::before{display:none}
  .table-wrap tbody .db-image-cell{grid-column:1;grid-row:2/span 7;display:block;padding:0!important}.table-wrap tbody .db-image-cell::before{display:none}
  .table-wrap tbody .db-image-cell .image-drop,.table-wrap tbody .db-image-cell .thumb{width:74px!important;height:100px!important;min-height:100px!important}
  .table-wrap tbody .db-card-name{grid-column:2/-1;grid-row:1;display:block;padding:0 0 6px!important;font-size:13px;line-height:1.45}.table-wrap tbody .db-card-name::before{display:block;margin-bottom:2px}
  .table-wrap tbody td:is([data-db-column="title"],[data-db-column="set"],[data-db-column="model"],[data-db-column="rarity"],[data-db-column="supplement"],[data-db-column="keywords"]){grid-column:2/-1}
  .table-wrap tbody .db-sell-price-cell,.table-wrap tbody .db-buy-price-cell{grid-column:1/-1;grid-template-columns:92px minmax(0,1fr);padding-top:7px!important;border-top:1px solid var(--border)}
  .table-wrap tbody .price-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-content:stretch;min-width:0;width:100%}.table-wrap tbody .price-editor input{max-width:none;width:100%;min-height:39px;background:var(--card)}.table-wrap tbody .price-editor .button{min-height:39px;padding:6px 9px}
  .table-wrap tbody td:is([data-db-column="grade"],[data-db-column="rank"],[data-db-column="updatedAt"],[data-db-column="noteLimit"],[data-db-column="hot"]){grid-column:1/-1}
  .table-wrap tbody .db-actions-cell{grid-column:1/-1;display:block;padding-top:7px!important;border-top:1px solid var(--border)}.table-wrap tbody .db-actions-cell::before{display:block;margin-bottom:5px}
  .table-wrap tbody .row-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;min-width:0}.table-wrap tbody .row-actions .button{display:grid;place-items:center;min-width:0;min-height:38px;padding:6px 4px;text-align:center}
  .table-wrap tbody td[colspan]{grid-column:1/-1;display:block}.table-wrap tbody td[colspan]::before{display:none}
  .db-pagination{display:grid;grid-template-columns:1fr 1fr;gap:6px}.db-pagination span{grid-column:1/-1;grid-row:1;text-align:center}.db-pagination .button{min-height:40px}
}

@media(max-width:430px){
  .header-actions{grid-template-columns:1fr 1fr}.header-actions #undoButton{grid-column:1/-1}.header-actions .button{min-height:36px}
  .admin-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;padding:0 6px}
  .admin-tabs button{min-width:0;padding:8px 4px;font-size:10px;white-space:normal}
  .admin-tools{grid-template-columns:1fr}.admin-tools>*{grid-column:1!important}
  .table-wrap tbody tr{grid-template-columns:66px minmax(0,1fr);gap:0 7px;padding:7px}
  .table-wrap tbody .db-order-cell{grid-column:1}.table-wrap tbody .db-image-cell{grid-column:1}.table-wrap tbody .db-image-cell .image-drop,.table-wrap tbody .db-image-cell .thumb{width:66px!important;height:90px!important;min-height:90px!important}
  .table-wrap tbody .db-card-name,.table-wrap tbody td:is([data-db-column="title"],[data-db-column="set"],[data-db-column="model"],[data-db-column="rarity"],[data-db-column="supplement"],[data-db-column="keywords"]){grid-column:2}
  .table-wrap tbody td{grid-template-columns:82px minmax(0,1fr)}
  .table-wrap tbody .db-sell-price-cell,.table-wrap tbody .db-buy-price-cell,.table-wrap tbody td:nth-child(n+12):nth-child(-n+16),.table-wrap tbody .db-actions-cell{grid-column:1/-1}
  .table-wrap tbody .row-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Price card reference layout: a fixed 2.53:1 canvas that scales as one unit. */
.price-update-column .cart-item,.price-update-column .cart-item:is(.changed,.invalid,.keyboard-selected,.bulk-selected){container-type:inline-size;position:relative;display:grid!important;width:100%;height:auto!important;min-height:0!important;aspect-ratio:2.53/1;grid-template-columns:10.8% 25.8% minmax(0,1fr)!important;grid-template-rows:100%!important;align-items:stretch!important;gap:0 .9%!important;padding:.8%!important;overflow:hidden!important;border:max(2px,.22cqi) solid rgba(232,200,64,.82)!important;border-radius:2cqi!important;background:linear-gradient(100deg,#070708 0,#11110d 48%,#101012 100%)!important;box-shadow:inset 0 0 0 .18cqi rgba(232,200,64,.12),0 .55cqi 1.5cqi rgba(0,0,0,.3)!important}
.price-update-column .cart-item-select{grid-column:1!important;grid-row:1!important;display:grid!important;place-items:center!important;align-self:stretch!important;width:100%!important;min-width:0!important;height:100%!important;border:0!important;border-radius:0!important;background:#07070a!important}
.price-update-column .cart-item-select span{width:58%!important;height:auto!important;aspect-ratio:1;border:max(2px,.2cqi) solid #fff!important;border-radius:1.2cqi!important;background:#fff!important;color:transparent!important;font-size:2cqi!important}
.price-update-column .cart-item-select input:checked+span{border-color:var(--accent)!important;background:var(--accent)!important;color:#111!important}
.price-update-column .cart-image-drop{grid-column:2!important;grid-row:1!important;align-self:stretch!important;width:100%!important;height:100%!important;min-height:0!important;padding:.45cqi!important;overflow:hidden!important;border:max(1px,.1cqi) dashed rgba(232,200,64,.38)!important;border-radius:.7cqi!important;background:#07070a!important}
.price-update-column .cart-image-drop img,.price-update-column .cart-image-drop .cart-thumb,.price-update-column .cart-image-drop .local-image-missing{display:block;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;border-radius:.35cqi!important;background:#07070a!important;object-fit:contain!important;font-size:1.3cqi!important}
.price-update-column .cart-editor-shell{grid-column:3!important;grid-row:1!important;display:grid!important;grid-template-rows:16% 46% 17% 18%!important;align-content:stretch!important;gap:1%!important;width:100%;height:100%;min-width:0;min-height:0;padding:.15cqi .25cqi .1cqi .75cqi;overflow:hidden}
.price-update-column .cart-card-header{position:relative;display:grid!important;grid-template-columns:2.6cqi minmax(0,1fr)!important;grid-template-rows:1fr!important;align-items:start!important;gap:.45cqi!important;min-width:0;min-height:0;padding:0 25cqi 0 0}
.price-update-column .cart-card-header .drag-handle{grid-column:1!important;grid-row:1!important;padding:.15cqi!important;color:#8d8d9f;font-size:1.8cqi!important;line-height:1;letter-spacing:-.25cqi}
.price-update-column .cart-card-header .cart-card-title{grid-column:2!important;grid-row:1!important;min-width:0}
.price-update-column .cart-card-title h3{display:block!important;margin:0!important;overflow:hidden!important;color:#f4f4fa;font-size:2.15cqi!important;font-weight:900!important;line-height:1.25!important;white-space:nowrap!important;text-overflow:ellipsis!important}
.price-update-column .cart-card-title small{display:block!important;margin-top:.3cqi!important;overflow:hidden!important;color:#9494af!important;font-size:1.25cqi!important;line-height:1.2!important;white-space:nowrap!important;text-overflow:ellipsis!important}
.price-update-column .cart-card-header .cart-header-actions{position:absolute;z-index:2;top:.35cqi;right:9.4cqi;display:flex;align-items:center;gap:.55cqi;white-space:nowrap}.price-update-column .cart-card-header .cart-copy-id{width:auto!important;min-width:0!important;height:3.1cqi!important;min-height:0!important;padding:0 .35cqi!important;border-color:rgba(117,167,255,.7)!important;border-radius:.7cqi!important;background:rgba(24,45,83,.7)!important;color:#9bc1ff!important;font-size:1.52cqi!important;font-weight:900!important;line-height:1!important}.price-update-column .cart-card-header .cart-copy-id:hover,.price-update-column .cart-card-header .cart-copy-id:focus-visible{border-color:#9bc1ff!important;background:rgba(38,74,135,.86)!important}.price-update-column .cart-card-header .cart-stock{position:static!important;z-index:auto;display:block!important;width:auto!important;margin:0!important;padding:.55cqi .8cqi!important;border-radius:999px!important;background:rgba(0,212,170,.14)!important;color:#78d8c4!important;font-size:1.05cqi!important;line-height:1!important;white-space:nowrap}
.price-update-column .cart-card-header .cart-stock strong{color:#00d4aa;font-size:1.7cqi!important}
.price-update-column .cart-editor-shell .cart-price{position:relative;display:grid!important;grid-column:auto!important;grid-template-columns:1fr!important;grid-template-rows:39% 61%!important;align-content:stretch!important;gap:0!important;width:100%;height:100%;min-width:0!important;min-height:0;text-align:left!important}
.price-update-column .cart-editor-shell .cart-current-values{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;gap:2.1%!important;min-height:0}
.price-update-column .cart-current-value{display:grid;grid-template-rows:auto minmax(0,1fr);align-content:start;min-width:0;color:#9494af;font-size:1.15cqi!important;font-style:normal;font-weight:800;line-height:1.15}
.price-update-column .cart-current-label{display:block}
.price-update-column .cart-current-line{display:flex;align-items:center;gap:1.3cqi;min-width:0;margin-top:.35cqi}
.price-update-column .cart-current-line strong{flex:0 1 auto;margin:0!important;overflow:hidden;color:#f4f4fa!important;font:900 2.25cqi/1 Oswald,sans-serif!important;white-space:nowrap;text-overflow:ellipsis}
.price-update-column .cart-current-line em{flex:0 0 auto;color:#f4f4fa;font-size:1.45cqi!important;font-style:normal;font-weight:900;line-height:1;white-space:nowrap}
.price-update-column .cart-current-line em[data-direction="up"]{color:#00d4aa}.price-update-column .cart-current-line em[data-direction="down"]{color:#ff8d68}.price-update-column .cart-current-line em[data-direction="invalid"]{color:var(--hot)}
.price-update-column .cart-editor-shell .cart-price-inputs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch;gap:2.1%!important;min-height:0}
.price-update-column .cart-editor-shell .cart-price-inputs label{display:grid!important;grid-template-rows:auto minmax(0,1fr);gap:.45cqi!important;min-width:0;min-height:0;color:#9494af!important;font-size:1.15cqi!important;font-weight:800!important;line-height:1.1}
.price-update-column .cart-editor-shell .cart-price-inputs input{align-self:stretch;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:.2cqi .65cqi!important;border:max(1px,.12cqi) solid rgba(0,212,170,.55)!important;border-radius:1.25cqi!important;background:rgba(0,87,70,.19)!important;color:#00d4aa!important;text-align:right!important;font:900 4cqi/1 Oswald,sans-serif!important}
.price-update-column .cart-state-row{display:block!important;min-height:0!important}.price-update-column .cart-save-state{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.price-update-column .cart-state-row .remove-cart{position:absolute!important;z-index:4;top:1.05cqi!important;right:1.05cqi!important;width:7.4cqi!important;min-width:0!important;height:4.9cqi!important;min-height:0!important;padding:0!important;border:max(1px,.12cqi) solid rgba(255,81,97,.7)!important;border-radius:1.15cqi!important;background:rgba(22,16,19,.7)!important;color:#ff5161!important;font-size:2.1cqi!important;font-weight:900!important}
.price-update-column .cart-price-error{position:absolute;z-index:5;left:0;right:0;bottom:0;padding:.3cqi .6cqi;border-radius:.4cqi;background:rgba(10,10,15,.92);color:var(--hot);font-size:1cqi!important;font-weight:800;text-align:center}
.price-update-column .cart-editor-shell .cart-rules{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(0,1.05fr) 8.2cqi!important;align-items:stretch!important;gap:.65cqi!important;width:100%;height:100%;min-height:0;margin:0!important}
.price-update-column .cart-editor-shell .cart-rules label{display:grid!important;grid-template-rows:auto minmax(0,1fr);gap:.35cqi!important;min-width:0;min-height:0;color:#9494af!important;font-size:.95cqi!important;line-height:1.05}
.price-update-column .cart-editor-shell .cart-rules textarea,.price-update-column .cart-editor-shell .cart-rules select,.price-update-column .cart-editor-shell .cart-rules input{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;padding:.25cqi .45cqi!important;border:max(1px,.1cqi) solid #303047!important;border-radius:.8cqi!important;background:#171721!important;color:#f4f4fa!important;font-size:2.25cqi!important;font-weight:800!important;line-height:1!important}
.price-update-column .cart-editor-shell .cart-rules textarea{resize:none!important;overflow:hidden!important}
.price-update-column .cart-editor-shell .cart-market-links{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:1.05cqi!important;width:100%;height:100%;min-height:0;margin:0!important;overflow:visible!important}
.price-update-column .cart-editor-shell .cart-market-links .button{display:grid!important;place-items:center!important;width:100%;height:100%!important;min-width:0!important;min-height:0!important;padding:0!important;border-width:max(1px,.18cqi)!important;border-radius:1.45cqi!important;background:rgba(18,18,19,.74)!important;font-size:2.6cqi!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important}

/* Price-update cards: keep the fixed layout while lifting undersized helper text. */
.price-update-column .cart-card-header{padding-right:32cqi!important}
.price-update-column .cart-card-title small{font-size:clamp(9px,1.6cqi,12px)!important;line-height:1.25!important}
.price-update-column .cart-card-header .cart-copy-id{height:clamp(29px,3.7cqi,36px)!important;padding:0 clamp(6px,.65cqi,9px)!important;font-size:clamp(10px,1.85cqi,13px)!important}
.price-update-column .cart-card-header .cart-stock{padding:clamp(4px,.6cqi,7px) clamp(7px,.85cqi,10px)!important;font-size:clamp(9px,1.5cqi,11px)!important}
.price-update-column .cart-card-header .cart-stock strong{font-size:clamp(11px,2cqi,14px)!important}
.price-update-column .cart-current-value,.price-update-column .cart-editor-shell .cart-price-inputs label{font-size:clamp(9px,1.45cqi,11px)!important}
.price-update-column .cart-current-line em{font-size:clamp(9px,1.6cqi,11px)!important}
.price-update-column .cart-editor-shell .cart-rules label{font-size:clamp(9px,1.3cqi,10px)!important;line-height:1.15!important}
.price-update-column .cart-price-error{font-size:clamp(9px,1.2cqi,10px)!important}

/* App-owned category combobox: consistent searchable entry on Safari, Chrome and mobile. */
.category-combobox-control{position:relative;display:block;width:100%;min-width:0;height:100%}.category-combobox-control>input{cursor:pointer;padding-right:2.4em!important}.category-combobox-control.open>input{border-color:var(--accent)!important;box-shadow:0 0 0 2px rgba(232,200,64,.14)}.category-combobox-control.disabled{opacity:.56}.category-combobox-toggle{position:absolute;top:0;right:0;display:grid;place-items:center;width:2.2em;height:100%;padding:0;border:0;background:transparent;color:var(--accent);font-size:1em;font-weight:900;cursor:pointer}.category-combobox-toggle:disabled{cursor:not-allowed}.category-combobox-popup{position:fixed;z-index:1400;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;box-sizing:border-box;max-width:calc(100vw - 16px);max-height:min(420px,calc(100dvh - 16px));padding:10px;overflow:hidden;border:1px solid #4a4a63;border-radius:12px;background:#171721;color:#f4f4fa;box-shadow:0 22px 70px rgba(0,0,0,.72)}.category-combobox-popup[hidden]{display:none!important}.category-combobox-popup>label{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:12px;font-weight:800}.category-combobox-search{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:9px 11px;border:2px solid var(--accent);border-radius:8px;outline:0;background:#fff;color:#111;font-size:16px}.category-combobox-options{display:grid;gap:4px;min-width:0;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.category-combobox-options button,.category-combobox-use-input{display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #3a3a50;border-radius:8px;background:#20202c;color:#f4f4fa;font-size:15px;text-align:left;overflow-wrap:anywhere;cursor:pointer}.category-combobox-options button:hover,.category-combobox-options button:focus-visible,.category-combobox-options button.selected{border-color:var(--accent);background:rgba(232,200,64,.12);outline:0}.category-combobox-options button small{flex:0 0 auto;color:var(--accent);font-size:13px}.category-combobox-use-input{justify-content:center;border-color:var(--accent);color:var(--accent);font-weight:900}.category-combobox-use-input[hidden]{display:none!important}.category-combobox-empty{margin:0;padding:12px 8px;color:var(--muted);font-size:13px;text-align:center}.price-update-column .cart-editor-shell .category-combobox-toggle{font-size:2.15cqi}.cart-bulk-rules .category-combobox-control{min-height:34px}

/* 価格更新内DBの画像を直接追加・削除 */
.price-db-card-image.price-db-image-drop{border:1px dashed rgba(232,200,64,.38);cursor:pointer}
.price-db-card-image.price-db-image-drop:hover,.price-db-card-image.price-db-image-drop:focus,.price-db-card-image.price-db-image-drop.drop{border-color:var(--accent);outline:0;box-shadow:0 0 0 2px rgba(232,200,64,.16)}
.price-db-card-image.price-db-image-drop.has-image{border-style:solid}
.price-db-card-image.price-db-image-drop .placeholder{color:var(--muted);font-size:9px;font-weight:900;line-height:1.25;text-align:center}

/* X投稿画像: 更新日バッジを横に詰め、背景を注記欄のように透過 */
.flyer-page .poster-date{min-width:58px!important;padding:5px 5px!important;background:rgba(240,90,0,.84)!important}

/* カードタイトル切り替え: 画像とタイトル名を同じ選択ブロックへ表示 */
.card-title-choice{grid-template-rows:minmax(0,1fr) auto;place-items:stretch;gap:6px}
.card-title-choice-media{display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;border-radius:7px;background:#fff}
.card-title-choice-media img,.card-title-choice-media .card-title-choice-logo{width:100%;height:100%;min-height:0;border-radius:7px;object-fit:contain}
.card-title-choice-name{display:-webkit-box;min-height:2.5em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:inherit;font-size:11px;font-weight:900;line-height:1.25;text-align:center;overflow-wrap:anywhere}
@media(max-width:560px){.card-title-choice{gap:4px;padding:5px}.card-title-choice-name{font-size:9px}}
.all-title-database-filter-dialog{width:min(720px,calc(100vw - 24px))}.all-title-database-filter-dialog .dialog-title{margin-bottom:10px}.all-title-database-filter-dialog .dialog-title small{display:block;color:var(--new);font-size:9px;font-weight:800;letter-spacing:1px}.all-title-database-filter-dialog .dialog-title h2{margin:2px 0 0}.all-title-database-filter-search{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin-bottom:10px;padding:0 11px;border:1px solid var(--border);border-radius:9px;background:var(--card)}.all-title-database-filter-search span{color:var(--new);font-size:20px}.all-title-database-filter-search input{width:100%;min-width:0;padding:11px 0;border:0;outline:0;background:transparent;color:var(--text);font-size:16px}.all-title-database-filter-button{display:none;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;margin-bottom:7px;padding:7px 9px;border:1px solid #3c3c52;border-radius:9px;background:linear-gradient(135deg,rgba(0,212,170,.09),var(--card));color:var(--text);text-align:left;cursor:pointer}.all-titles-mode .all-title-database-filter-button{display:grid}.all-title-database-filter-button:hover,.all-title-database-filter-button:focus-visible,.all-title-database-filter-button.active{border-color:var(--new);outline:0}.all-title-database-filter-button>span:nth-child(2){display:grid;min-width:0}.all-title-database-filter-button small{color:var(--muted);font-size:8px}.all-title-database-filter-button strong{overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis}.all-title-database-filter-button>b{color:var(--new);font-size:22px}.all-title-filter-logo{display:grid;place-items:center;width:38px;height:32px;overflow:hidden;border:1px solid var(--border);border-radius:7px;background:#fff;color:#181824;font-size:11px;font-weight:900}.all-title-filter-logo img{width:100%;height:100%;object-fit:contain}.all-titles-mode #priceDbGroupFilterField{display:none}.all-title-database-filter-dialog .card-title-choice-all{grid-template-rows:minmax(0,1fr) auto}.all-title-database-filter-dialog .card-title-choice-all .card-title-choice-logo{height:100%}@media(max-width:560px){.all-title-database-filter-dialog .card-title-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.all-title-database-filter-button{grid-template-columns:34px minmax(0,1fr) auto;padding:6px 8px}.all-title-filter-logo{width:34px;height:30px}}

/* Public cards keep every supported 2-5 column layout inside the viewport. */
body:not(.admin-body) .card-grid .card,body:not(.admin-body) .card-grid .card-info,body:not(.admin-body) .card-grid .card-name,body:not(.admin-body) .card-grid .meta,body:not(.admin-body) .card-grid .public-card-price{min-width:0;max-width:100%}
body:not(.admin-body) .card-grid .card-name,body:not(.admin-body) .card-grid .public-card-model,body:not(.admin-body) .card-grid .public-card-date{overflow:hidden;text-overflow:ellipsis}
body:not(.admin-body) .card-grid .public-card-model,body:not(.admin-body) .card-grid .public-card-date{white-space:nowrap}
body:not(.admin-body) .card-grid .public-card-price>span{min-width:0;overflow:hidden;letter-spacing:-.02em;text-overflow:ellipsis;white-space:nowrap}
body:not(.admin-body) .card-grid .public-card-price{font-size:26px}
@media(max-width:649px){body:not(.admin-body) .card-grid .public-card-price{font-size:18px}body:not(.admin-body) .card-grid[data-columns="2"] .public-card-price{font-size:clamp(21px,5.5vw,28px)}body:not(.admin-body) .card-grid[data-columns="3"] .public-card-price{font-size:18px}body:not(.admin-body) .card-grid[data-columns="4"] .public-card-price{font-size:14px}body:not(.admin-body) .card-grid[data-columns="4"] .public-card-date{font-size:8px}body:not(.admin-body) .card-grid[data-columns="4"] .card-name{font-size:10px}body:not(.admin-body) .card-grid[data-columns="4"] .meta{font-size:8px}body:not(.admin-body) .card-grid[data-columns="5"] .public-card-price{font-size:12px}body:not(.admin-body) .card-grid[data-columns="5"] .public-card-date{font-size:8px}body:not(.admin-body) .card-grid[data-columns="5"] .card-name{font-size:9px}body:not(.admin-body) .card-grid[data-columns="5"] .meta{font-size:8px}}

/* 画像操作: 既存画像は編集ダイアログ、保存中は対象だけをロック */
.image-manager-dialog{width:min(440px,calc(100vw - 24px))}
.image-manager-name{display:block;margin:4px 0 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.image-manager-preview{display:grid;place-items:center;height:min(42vh,310px);overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#0d0d14}
.image-manager-preview img{width:100%;height:100%;object-fit:contain}
.image-manager-drop{display:grid;place-items:center;gap:4px;margin-top:10px;padding:16px;border:2px dashed rgba(0,212,170,.55);border-radius:11px;background:rgba(0,212,170,.06);color:var(--text);text-align:center;cursor:pointer}
.image-manager-drop span{color:var(--muted);font-size:10px}.image-manager-drop.drop{border-color:var(--accent);background:rgba(232,200,64,.12)}
.image-manager-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.image-drop,.cart-image-drop,.price-db-image-drop{position:relative}
.image-saving{pointer-events:none;opacity:.72}
.image-saving::after{position:absolute;z-index:4;inset:4px;display:grid;place-items:center;border-radius:7px;background:rgba(8,8,13,.78);color:#00d4aa;content:"保存中";font-size:10px;font-weight:900}

/* 投稿画像: 型番はカード名へ統合し、注釈は左上のランク表示へ統合する。 */
.flyer-page .flyer-card{position:relative;grid-template-rows:minmax(0,1fr) var(--flyer-price-h)}
.flyer-page .flyer-card-details{display:none!important}
.flyer-page .flyer-rank-note{max-width:72%;margin-left:0;border:1px solid #fff;background:linear-gradient(135deg,#ef3900,#ff7900);color:#fff}
.flyer-page .flyer-card-top .flyer-rank-note:only-child{max-width:100%}

/* 投稿画像: ラベル有無で画像位置を変えず、画像全体を余白内の中央へ表示する。 */
.flyer-page .flyer-card-top{position:absolute;z-index:5;top:3px;right:4px;left:4px;height:var(--flyer-top-h);padding:2px 0;background:transparent;pointer-events:none}
.flyer-page .flyer-card .image img{object-position:center center!important}
.flyer-page .flyer-price-row,.flyer-page[style$="--flyer-cols:"] .flyer-price-row{grid-template-columns:minmax(0,1fr);place-items:center;text-align:center}
.flyer-page .flyer-card .flyer-price,.flyer-page[style$="--flyer-cols:"] .flyer-card .flyer-price{width:100%;text-align:center}
.flyer-page .flyer-buy-label{display:none!important}
.flyer-page .flyer-card .body{box-sizing:border-box;min-height:0;overflow:hidden}
.flyer-page .flyer-price-row{min-height:0;overflow:hidden}
.flyer-page .flyer-card .flyer-price{line-height:1!important;text-overflow:clip}
.flyer-page .flyer-card .image,.flyer-page.flyer-format-wide .flyer-card .image,.flyer-page[style$="--flyer-cols:1"] .flyer-card .image,.flyer-page[style$="--flyer-cols:2"] .flyer-card .image,.flyer-page[style$="--flyer-cols:3"] .flyer-card .image,.flyer-page[style$="--flyer-cols:4"] .flyer-card .image,.flyer-page[style$="--flyer-cols:5"] .flyer-card .image,.flyer-page[style$="--flyer-cols:6"] .flyer-card .image,.flyer-page[style$="--flyer-cols:7"] .flyer-card .image,.flyer-page[style$="--flyer-cols:8"] .flyer-card .image,.flyer-page[style$="--flyer-cols:9"] .flyer-card .image,.flyer-page[style$="--flyer-cols:10"] .flyer-card .image{margin-right:0!important;margin-left:0!important;border-radius:0!important;background:#fff!important}
.flyer-page .flyer-card .image img{box-sizing:border-box;background:#fff!important}
.flyer-page .flyer-card .image img{padding:var(--flyer-image-top-inset,2px) 2px var(--flyer-image-bottom-inset,2px)!important;object-position:center center!important}
.flyer-page .flyer-card-name,.flyer-page[style$="--flyer-cols:1"] .flyer-card-name,.flyer-page[style$="--flyer-cols:2"] .flyer-card-name,.flyer-page[style$="--flyer-cols:3"] .flyer-card-name,.flyer-page[style$="--flyer-cols:4"] .flyer-card-name,.flyer-page[style$="--flyer-cols:5"] .flyer-card-name,.flyer-page[style$="--flyer-cols:6"] .flyer-card-name,.flyer-page[style$="--flyer-cols:7"] .flyer-card-name,.flyer-page[style$="--flyer-cols:8"] .flyer-card-name,.flyer-page[style$="--flyer-cols:9"] .flyer-card-name,.flyer-page[style$="--flyer-cols:10"] .flyer-card-name{box-sizing:border-box!important;right:0!important;bottom:0!important;left:0!important;width:100%!important;margin:0!important;border-right:0!important;border-left:0!important}
.flyer-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px}.flyer-settings-heading h2{flex:0 0 auto;margin:0!important;white-space:nowrap}.flyer-pagination-summary{flex:1 1 auto;min-width:0;margin:0;padding:3px 7px;border:1px solid rgba(255,121,0,.48);border-radius:999px;background:rgba(255,121,0,.07);color:var(--text);font-size:9px;font-weight:800;line-height:1.35;text-align:right}

/* 投稿画像: 更新日を正方形へ揃え、配置設定の数値入力をコンパクトに並べる。 */
.flyer-page .poster-top,.flyer-page:not(.has-poster-logo) .poster-top,.flyer-page.poster-black .poster-top{grid-template-columns:58px minmax(0,1fr) 112px}
.flyer-page .poster-date{box-sizing:border-box!important;width:58px!important;min-width:58px!important;height:58px!important;min-height:58px!important;padding:5px!important;justify-self:start;background:rgba(240,90,0,.84)!important}
.flyer-layout-number-fields{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:6px}
.flyer-layout-number-fields[hidden]{display:none!important}
#flyerLayoutTemplateControl[hidden],#flyerLayoutAutoControl[hidden],.flyer-layout-presets[hidden]{display:none!important}
.flyer-layout-number-fields>label{display:grid;gap:4px;min-width:0}
.flyer-layout-number-fields>span{padding-bottom:8px;color:var(--muted);font-weight:900}
.flyer-layout-number-fields input{width:100%;min-width:0}

/* Compact admin controls: keep label sizes and the price-card canvas unchanged. */
#pageDatabase .admin-tools{gap:5px;margin-bottom:8px}
#pageDatabase .admin-tools .search{flex:1 1 245px;width:auto;max-width:310px;padding:7px 9px}
#pageDatabase .admin-tools select,#pageDatabase .admin-tools .price-filter{flex:0 1 auto;min-width:0}
#pageDatabase .admin-tools select{padding:6px 7px}
#pageDatabase .admin-tools .price-filter{gap:3px;padding:0 6px}
#pageDatabase .admin-tools .price-filter input{width:72px;padding:6px 2px}
#pageDatabase .admin-tools .button{width:auto;min-width:0;padding:6px 8px;white-space:nowrap}
#pageDatabase .admin-tools #databaseImportStatus{margin-left:auto}
#pageDatabase .db-view-controls{gap:4px;margin-bottom:8px;padding:6px 8px}
#pageDatabase .db-view-controls .button{width:auto;min-width:30px;padding:4px 7px;white-space:nowrap}

#pageCart .price-workspace-toolbar{gap:5px;margin-bottom:8px;padding:6px 8px}
#pageCart .price-workspace-toolbar .button{width:auto;min-width:0;padding:6px 8px;white-space:nowrap}
#pageCart .price-update-column>.section-heading{margin-bottom:7px}
#pageCart .database-history{gap:5px;margin-bottom:8px;padding:8px}
#pageCart .database-history select{flex:1 1 170px;min-width:0;padding:6px 7px}
#pageCart .database-history .button{width:auto;min-width:0;padding:6px 8px}
#pageCart .database-history .summary-box{min-width:88px;padding:5px 8px}
#pageCart .cart-import-panel{margin-bottom:8px;padding:9px}
#pageCart .cart-import-head{gap:8px}
#pageCart .cart-import-actions{gap:5px}
#pageCart .cart-import-actions .button{width:auto;min-width:0;padding:6px 8px}
#pageCart .batch-image-drop{min-height:64px;margin-top:7px;padding:8px}
#pageCart .import-status-grid{gap:5px;margin-top:6px}
#pageCart .import-status-grid span{padding:5px 7px}
#pageCart .price-update-column .page-actions{gap:5px!important;margin-bottom:8px}
#pageCart .cart-sort-actions{gap:4px}
#pageCart .cart-sort-actions .button{width:auto;min-width:0;padding:6px 7px;white-space:nowrap}
#pageCart .cart-sort select{padding:6px 7px}
#pageCart .cart-sort-actions .rank-change-control{padding-inline:6px}
#pageCart .cart-bulk-rules{gap:4px;padding:6px}
#pageCart .cart-bulk-rules .button{width:auto;min-width:0;padding-inline:6px}
#pageCart .flyer-side-column .x-composer,#pageCart .flyer-side-column .flyer-settings{margin-bottom:7px;padding:8px}
#pageCart .x-composer-options{gap:5px;margin-bottom:6px}
#pageCart .template-manager,#pageCart .flyer-background-control{grid-template-columns:minmax(0,1fr) repeat(3,max-content);gap:5px;padding:6px}
#pageCart .template-manager>strong,#pageCart .flyer-background-control>strong{grid-column:1/-1}
#pageCart .template-manager>.template-editor,#pageCart .flyer-background-control>.template-editor,#pageCart .flyer-background-control>small{grid-column:1/-1}
#pageCart .template-manager .button,#pageCart .flyer-background-control .button{width:auto;min-width:0;padding:6px 7px;white-space:nowrap}
#pageCart .template-editor{gap:6px;padding-top:6px}
#pageCart .template-editor-actions,#pageCart .x-composer-actions{gap:5px}
#pageCart .template-editor-actions .button,#pageCart .x-composer-actions .button{width:auto;min-width:0;padding:6px 8px}
#pageCart .flyer-fields{gap:5px}
#pageCart .flyer-fields input,#pageCart .flyer-fields select{padding:6px}
#pageCart .flyer-format-presets,#pageCart .flyer-layout-presets{gap:4px;margin-top:6px}
#pageCart .flyer-format-presets .button,#pageCart .flyer-layout-presets .button{width:auto;min-width:0;padding:5px 7px;white-space:nowrap}
@media(max-width:760px){
  #pageDatabase .admin-tools{gap:5px}
  #pageDatabase .admin-tools .search{max-width:none;padding:7px 9px}
  #pageDatabase .admin-tools select,#pageDatabase .admin-tools .button,#pageDatabase .admin-tools .price-filter{min-height:36px}
  #pageDatabase .admin-tools .button{padding-inline:7px}
  #pageDatabase .db-view-controls{padding:6px}
  #pageCart .price-workspace-toolbar{grid-template-columns:38px minmax(0,1fr) max-content 38px;gap:4px;padding:5px}
  #pageCart .price-toolbar-center{gap:4px}
  #pageCart .price-toolbar-heading{display:none}
  #pageCart .price-toolbar-icon-button{width:38px}
  #pageCart .price-toolbar-reset{width:38px;padding:0}
  #pageCart .price-toolbar-reset span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #pageCart .price-toolbar-title{min-width:180px}
  #pageCart .price-toolbar-scale{min-width:104px}
  #pageCart .database-history,#pageCart .cart-import-panel{padding:7px}
  #pageCart .cart-import-actions .button{flex:1 1 150px}
  #pageCart .cart-sort-actions .button{padding-inline:6px}
  #pageCart .template-manager,#pageCart .flyer-background-control{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px}
  #pageCart .template-manager>strong,#pageCart .template-manager>select,#pageCart .template-manager>.template-editor,#pageCart .flyer-background-control>strong,#pageCart .flyer-background-control>select,#pageCart .flyer-background-control>.template-editor,#pageCart .flyer-background-control>small{grid-column:1/-1!important}
  #pageCart .template-manager>.button,#pageCart .flyer-background-control>.button{width:100%;white-space:normal}
}

/* Searchable filter choices shared by the public view and price-update database. */
.filter-option-search{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:0 9px;border:1px solid currentColor;border-radius:8px;background:transparent}.filter-option-search[hidden]{display:none!important}
.filter-option-search>span{font-size:17px;line-height:1}
.filter-option-search>input{width:100%!important;min-width:0!important;min-height:0!important;padding:7px 0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font-size:11px!important}
.filter-option-search:focus-within{box-shadow:0 0 0 2px rgba(249,115,22,.16)}
.public-filter-field .filter-option-search{border-color:#fdba74;color:#7c2d12;background:#fff}
.public-filter-field .filter-option-search>input{color:#18181b!important}
.filter-combobox-source{display:none!important}.filter-combobox-home{display:none!important}.filter-combobox-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:42px;padding:8px 10px;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:14px;font-weight:800;text-align:left;cursor:pointer}.filter-combobox-trigger span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.filter-combobox-trigger b{flex:0 0 auto;color:var(--accent);font-size:18px}.public-filter-field .filter-combobox-trigger{border-color:#fdba74;background:#fff;color:#18181b}.filter-combobox-popup{position:fixed;z-index:1500;display:grid;grid-template-rows:auto minmax(0,1fr);gap:7px;box-sizing:border-box;max-width:calc(100vw - 16px);max-height:min(420px,calc(100dvh - 16px));padding:9px;overflow:hidden;border:1px solid #4a4a63;border-radius:11px;background:#171721;color:#f4f4fa;box-shadow:0 22px 70px rgba(0,0,0,.72)}.filter-combobox-popup[hidden]{display:none!important}.filter-combobox-popup .filter-combobox-search-slot{min-width:0}.filter-combobox-popup .filter-option-search{display:grid!important;min-height:44px;border:2px solid var(--accent);background:#fff;color:#18181b}.filter-combobox-popup .filter-option-search[hidden]{display:none!important}.filter-combobox-popup .filter-option-search>input{font-size:16px!important;color:#18181b!important}.filter-combobox-options{display:grid;gap:4px;min-width:0;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.filter-combobox-options button{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #3a3a50;border-radius:8px;background:#20202c;color:#f4f4fa;font-size:15px;font-weight:800;line-height:1.25;text-align:left;overflow-wrap:anywhere;cursor:pointer}.filter-combobox-options button:hover,.filter-combobox-options button:focus-visible,.filter-combobox-options button.selected{border-color:var(--accent);background:rgba(232,200,64,.12);outline:0}.filter-combobox-options p{margin:0;padding:12px;color:var(--muted);font-size:13px;text-align:center}.filter-combobox-popup.public-theme{border-color:#fdba74;background:#fff7ed;color:#7c2d12;box-shadow:0 18px 52px rgba(124,45,18,.28)}.filter-combobox-popup.public-theme .filter-combobox-options button{border-color:#fed7aa;background:#fff;color:#431407}.filter-combobox-popup.public-theme .filter-combobox-options button:hover,.filter-combobox-popup.public-theme .filter-combobox-options button:focus-visible,.filter-combobox-popup.public-theme .filter-combobox-options button.selected{border-color:#f97316;background:#ffedd5;color:#7c2d12}.filter-combobox-popup.public-theme .filter-combobox-options p{color:#9a3412}
.filter-combobox-options .filter-combobox-contains{position:sticky;top:0;z-index:1;border-color:var(--accent);background:#292613;color:var(--accent)}
.filter-combobox-popup.public-theme .filter-combobox-options .filter-combobox-contains{border-color:#f97316;background:#f97316;color:#fff}
.filter-combobox-popup.public-theme .filter-combobox-options .filter-combobox-contains:hover,.filter-combobox-popup.public-theme .filter-combobox-options .filter-combobox-contains:focus-visible{background:#ea580c;color:#fff}

.filter-combobox-popup.searchless{grid-template-rows:minmax(0,1fr);gap:0}.filter-combobox-popup.searchless .filter-combobox-search-slot{display:none!important}.app-select-control{display:inline-grid;align-items:stretch;width:100%;min-width:0;max-width:100%}.app-select-search{display:none!important}.app-select-trigger{min-height:34px;padding:6px 8px;border-color:var(--border);background:var(--card);color:var(--text);font:inherit;text-align:left}.app-select-trigger b{flex:0 0 auto;font-size:16px}.app-select-trigger.placeholder{color:var(--muted)}.app-select-trigger:disabled{cursor:not-allowed;opacity:.48}.rank-change-control .app-select-control{display:inline-grid;width:auto;min-width:58px}.rank-change-control .app-select-trigger{min-width:58px;min-height:26px;padding:3px 5px;border:0;border-radius:5px;background:var(--card);color:var(--accent);font-size:inherit;font-weight:900}.rank-change-control .app-select-trigger b{font-size:13px}.cart-sort .app-select-control{width:auto;min-width:104px}.cart-sort .app-select-trigger{min-height:32px;padding:5px 7px}.price-update-column .cart-editor-shell .cart-rules .app-select-control{height:100%}.price-update-column .cart-editor-shell .cart-rules .app-select-trigger{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;padding:.25cqi .45cqi!important;border:max(1px,.1cqi) solid #303047!important;border-radius:.8cqi!important;background:#171721!important;color:#f4f4fa!important;font-size:2.25cqi!important;font-weight:800!important;line-height:1!important}.price-update-column .cart-editor-shell .cart-rules .app-select-trigger b{font-size:2.15cqi}.cart-bulk-rules .app-select-trigger{min-height:34px;font-size:10px}.flyer-fields .app-select-trigger,.export-panel .app-select-trigger{min-height:32px;padding:5px 7px}.public-filter-field .app-select-trigger{min-height:42px;border-color:#fdba74;background:#fff;color:#18181b;font-size:14px}

/* Price-update database: same search / filter / sort structure as the public output. */
.price-db-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"search search" "filter sort";align-items:stretch;gap:5px;margin-bottom:7px}
.price-db-filter-actions .price-db-search{grid-area:search;margin:0;min-width:0}
.price-db-filter-actions #openPriceDbFilter{grid-area:filter}.price-db-filter-actions #openPriceDbSort{grid-area:sort}
.cart-view-filter-actions{grid-template-columns:minmax(0,1fr) minmax(92px,.34fr);grid-template-areas:"search filter";margin:0!important}.cart-view-filter-actions #openCartFilter{grid-area:filter}.cart-view-filter-actions .price-db-action-button{min-height:42px}.flyer-preview .flyer-card .image{cursor:pointer}.flyer-preview .flyer-card .image:hover,.flyer-preview .flyer-card .image:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.flyer-reorder-guide{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:9px;margin:0 0 8px;padding:9px 11px;border:1px solid rgba(0,212,170,.38);border-radius:9px;background:rgba(0,212,170,.07)}.flyer-reorder-guide-copy{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px;min-width:0}.flyer-reorder-guide-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:7px;background:var(--new);color:#06120f;font-size:18px;font-weight:900;letter-spacing:-4px}.flyer-reorder-guide-copy>div{display:grid;gap:2px;min-width:0}.flyer-reorder-guide strong{color:var(--new);font-size:11px}.flyer-reorder-guide small{color:var(--muted);font-size:9px;line-height:1.35}.flyer-reorder-guide [role="status"]{grid-column:1/-1;max-width:none;padding:5px 8px;border-radius:999px;background:#20202b;color:#d9d9e5;font-size:9px;font-weight:800;text-align:center}.flyer-order-editor-button{width:100%;min-height:54px}.flyer-preview.flyer-reorder-active{border-color:var(--new)}.flyer-preview .flyer-card[draggable="true"]{position:relative;contain:layout paint style;cursor:grab;user-select:none}.flyer-preview .flyer-card[draggable="true"]:active{cursor:grabbing}.flyer-drag-handle{position:absolute;z-index:25;top:3px;left:3px;display:grid;place-items:center;box-sizing:border-box;min-width:19px;height:19px;padding:1px 4px;border:1px solid rgba(255,255,255,.72);border-radius:5px;background:rgba(3,13,14,.82);color:#00e6b8;font-size:13px;font-weight:900;line-height:1;letter-spacing:-3px;pointer-events:none}.flyer-drag-ghost{position:fixed;z-index:-1;left:-10000px;top:-10000px;max-width:220px;padding:8px 12px;overflow:hidden;border:2px solid #00e6b8;border-radius:8px;background:#071411;color:#fff;font-size:12px;font-weight:900;white-space:nowrap;text-overflow:ellipsis}.flyer-preview .flyer-card.flyer-dragging{opacity:.28;outline:3px solid #00e6b8;outline-offset:-3px}.flyer-preview .flyer-card.flyer-dragging::after{content:"移動中";position:absolute;z-index:40;inset:50% auto auto 50%;padding:4px 7px;border-radius:999px;background:#00e6b8;color:#03110e;font-size:9px;font-weight:900;white-space:nowrap;transform:translate(-50%,-50%)}.flyer-preview .flyer-card.flyer-drop-before,.flyer-preview .flyer-card.flyer-drop-after{outline:3px solid rgba(0,230,184,.5);outline-offset:-3px}.flyer-preview .flyer-card.flyer-drop-before::before,.flyer-preview .flyer-card.flyer-drop-after::after{content:"";position:absolute;z-index:45;top:0;bottom:0;width:5px;background:#00e6b8;pointer-events:none}.flyer-preview .flyer-card.flyer-drop-before::before{left:0}.flyer-preview .flyer-card.flyer-drop-after::after{right:0}.flyer-page[style$="--flyer-cols:6"] .flyer-drag-handle,.flyer-page[style$="--flyer-cols:7"] .flyer-drag-handle,.flyer-page[style$="--flyer-cols:8"] .flyer-drag-handle,.flyer-page[style$="--flyer-cols:9"] .flyer-drag-handle,.flyer-page[style$="--flyer-cols:10"] .flyer-drag-handle{top:1px;left:1px;min-width:9px;height:9px;padding:0 2px;border-radius:2px;font-size:6px;letter-spacing:-2px}.flyer-page[style$="--flyer-cols:6"] .flyer-card.flyer-drop-before::before,.flyer-page[style$="--flyer-cols:7"] .flyer-card.flyer-drop-before::before,.flyer-page[style$="--flyer-cols:8"] .flyer-card.flyer-drop-before::before,.flyer-page[style$="--flyer-cols:9"] .flyer-card.flyer-drop-before::before,.flyer-page[style$="--flyer-cols:10"] .flyer-card.flyer-drop-before::before,.flyer-page[style$="--flyer-cols:6"] .flyer-card.flyer-drop-after::after,.flyer-page[style$="--flyer-cols:7"] .flyer-card.flyer-drop-after::after,.flyer-page[style$="--flyer-cols:8"] .flyer-card.flyer-drop-after::after,.flyer-page[style$="--flyer-cols:9"] .flyer-card.flyer-drop-after::after,.flyer-page[style$="--flyer-cols:10"] .flyer-card.flyer-drop-after::after{width:3px}
@media(max-width:720px){.flyer-reorder-guide{grid-template-columns:1fr}.flyer-reorder-guide small{font-size:10px}}

/* Confirm-before-apply, maximum-eight-page flyer order editor. */
.flyer-order-workspace{box-sizing:border-box;min-height:100dvh;padding:14px;background:var(--page,#09090f);color:var(--text,#f7f7fb)}.flyer-order-header{position:sticky;z-index:20;top:0;display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:12px;align-items:center;margin:-14px -14px 12px;padding:12px 14px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--page) 94%,transparent);backdrop-filter:blur(12px)}.flyer-order-header small{color:var(--new);font-weight:900;letter-spacing:.12em}.flyer-order-header h1{margin:2px 0;font-size:20px}.flyer-order-header p{margin:0;color:var(--muted);font-size:11px}.flyer-order-header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.flyer-order-toolbar{display:grid;grid-template-columns:auto auto minmax(180px,.5fr) auto minmax(220px,1fr);gap:7px;align-items:center;margin-bottom:12px;padding:9px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.flyer-order-toolbar>span{font-size:11px;font-weight:900}.flyer-order-toolbar label{display:grid;grid-template-columns:auto minmax(70px,1fr);gap:6px;align-items:center;font-size:10px}.flyer-order-pages{display:grid;grid-template-columns:repeat(4,minmax(260px,1fr));gap:12px;align-items:start}.flyer-order-page{min-width:0;padding:8px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 8px 24px rgba(0,0,0,.16)}.flyer-order-page.dragging{opacity:.35}.flyer-order-page.page-drop-before{box-shadow:-5px 0 0 var(--new)}.flyer-order-page.page-drop-after{box-shadow:5px 0 0 var(--new)}.flyer-order-page-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px;align-items:center;margin-bottom:7px}.flyer-order-page-handle{font-size:18px;cursor:grab;user-select:none}.flyer-order-page-title{font-weight:900}.flyer-order-page-count{color:var(--muted);font-size:10px}.flyer-order-page-delete{min-width:32px!important;padding:4px!important}.flyer-order-layout{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-bottom:7px}.flyer-order-layout button{min-width:0;min-height:28px;padding:3px 1px;font-size:8px}.flyer-order-custom{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);gap:4px;align-items:center;margin-bottom:7px;font-size:9px}.flyer-order-preview{display:grid;gap:3px;box-sizing:border-box;width:100%;min-height:220px;padding:5px;overflow:hidden;border:1px solid rgba(255,117,24,.65);border-radius:5px;background:#1c1c1c;aspect-ratio:var(--flyer-order-aspect,.707)}.flyer-order-card{position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto auto;min-width:0;min-height:0;overflow:hidden;border:1px solid #ff7518;background:#fff;color:#111;cursor:grab}.flyer-order-card.selected{outline:3px solid var(--new);outline-offset:-3px}.flyer-order-card.dragging{opacity:.28}.flyer-order-card.drop-before{box-shadow:-4px 0 0 var(--new)}.flyer-order-card.drop-after{box-shadow:4px 0 0 var(--new)}.flyer-order-card-check{position:absolute;z-index:3;top:3px;left:3px;width:18px;height:18px}.flyer-order-card img{width:100%;height:100%;min-height:0;object-fit:contain;background:#080808}.flyer-order-card-image-placeholder{display:grid;place-items:center;background:#080808;color:#a8a8b2}.flyer-order-card b{min-width:0;padding:2px 3px;overflow:hidden;background:#080808;color:#fff;font-size:8px;white-space:nowrap;text-overflow:ellipsis}.flyer-order-card strong{padding:2px 3px;background:#f15a00;color:#fff;font-size:10px}.flyer-order-empty{grid-column:1/-1;display:grid;place-items:center;min-height:160px;color:#aaa;font-size:12px;font-weight:900}.flyer-order-page.is-full .flyer-order-page-count{color:var(--new)}
html[data-admin-standalone="flyer-order"] body.admin-body>:not(#flyerOrderWorkspace):not(#toast):not(#uiNoticeRegion):not(script){display:none!important}html[data-admin-standalone="flyer-order"] body.admin-body #flyerOrderWorkspace{display:block!important}
body.admin-body.flyer-order-inline-active>:not(#flyerOrderWorkspace):not(#toast):not(#uiNoticeRegion):not(script){display:none!important}body.admin-body.flyer-order-inline-active #flyerOrderWorkspace{display:block!important}
body.admin-body.flyer-order-inline-active.flyer-order-exporting>#adminWorkspace{display:block!important;position:fixed!important;z-index:-10!important;top:0!important;left:-12000px!important;width:1600px!important;max-width:none!important;opacity:0!important;pointer-events:none!important}
@media(max-width:1240px){.flyer-order-pages{grid-template-columns:repeat(2,minmax(260px,1fr))}.flyer-order-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.flyer-order-toolbar #flyerOrderEditorStatus{grid-column:1/-1}}
@media(max-width:680px){.flyer-order-workspace{padding:8px}.flyer-order-header{position:static;grid-template-columns:1fr;margin:-8px -8px 8px;padding:10px}.flyer-order-header-actions{display:grid;grid-template-columns:1fr 1fr}.flyer-order-pages{grid-template-columns:1fr}.flyer-order-toolbar{grid-template-columns:1fr 1fr}.flyer-order-toolbar label{grid-column:1/-1}.flyer-order-page{padding:6px}.flyer-order-preview{min-height:300px}}
.flyer-order-output-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-bottom:9px;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.flyer-order-output-controls>span{color:var(--muted);font-size:10px;font-weight:800}.flyer-order-page-format{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:7px}.flyer-order-page-format .button{min-width:0;min-height:30px;padding:4px;font-size:9px}.flyer-order-page-format .active{border-color:var(--accent);background:rgba(255,117,24,.08);color:var(--accent)}#exportCombinedFlyerOrder{min-width:190px}.flyer-order-page.is-empty .flyer-order-preview{background:repeating-conic-gradient(rgba(255,255,255,.08) 0 25%,rgba(255,255,255,.02) 0 50%) 0/22px 22px}.flyer-order-card.swap-target{outline:4px solid var(--new);outline-offset:-4px;box-shadow:inset 0 0 0 3px rgba(0,212,170,.28)}.flyer-order-card.swap-target::after{content:"入れ替え";position:absolute;z-index:5;inset:50% auto auto 50%;padding:3px 6px;border-radius:999px;background:var(--new);color:#06120f;font-size:8px;font-weight:900;transform:translate(-50%,-50%)}
@media(max-width:680px){.flyer-order-output-controls{grid-template-columns:1fr}.flyer-order-output-controls>span{text-align:center}#exportCombinedFlyerOrder{width:100%;min-width:0}}
.flyer-drag-ghost{z-index:9999;left:0;top:0;opacity:.001;pointer-events:none}
.price-db-action-button{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:1fr auto;place-items:center;gap:0 3px;min-width:0;min-height:48px;padding:5px;border:1px solid rgba(232,200,64,.62);border-radius:8px;background:rgba(232,200,64,.08);color:var(--accent);cursor:pointer}
.price-db-action-button>span{grid-row:1/3;font-size:18px;font-weight:900}.price-db-action-button>b{align-self:end;font-size:10px;line-height:1.15;white-space:nowrap}.price-db-action-button>small{align-self:start;max-width:100%;overflow:hidden;color:var(--muted);font-size:10px;line-height:1.15;white-space:nowrap;text-overflow:ellipsis}.price-db-action-button>em{position:absolute;top:-5px;right:-4px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:2px solid var(--surface);border-radius:999px;background:var(--new);color:#06120f;font-size:10px;font-style:normal;font-weight:900}.price-db-action-button>em[hidden]{display:none}.price-db-action-button.active{border-color:var(--new);color:var(--new)}
.price-db-option-dialog{width:min(610px,calc(100vw - 18px));max-height:90dvh;padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px rgba(0,0,0,.62)}.price-db-option-dialog::backdrop{background:rgba(0,0,0,.75);backdrop-filter:blur(2px)}.price-db-option-dialog form{display:grid;gap:10px;padding:14px}.price-db-option-dialog>.dialog-title,.price-db-option-dialog form>.dialog-title{position:sticky;top:0;z-index:2;margin:0;padding:13px 14px 11px;border-bottom:1px solid var(--border);background:rgba(22,22,31,.98)}.price-db-option-dialog form>.dialog-title{top:-14px;margin:-14px -14px 0}.price-db-option-dialog .dialog-title h2{margin:0;font-size:17px}.price-db-option-dialog .dialog-close{border:0;background:transparent;color:var(--accent);font-size:28px;cursor:pointer}
.price-db-dialog-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.price-db-filter-field{display:grid;align-content:start;gap:5px;min-width:0;margin:0;padding:0;border:0;color:var(--muted);font-size:11px;font-weight:800}.price-db-filter-field.full{grid-column:1/-1}.price-db-filter-field>span:first-child,.price-db-filter-field legend{color:var(--accent);font-size:11px;font-weight:900}.price-db-filter-field select,.price-db-filter-field input[type="number"]{width:100%;min-width:0;min-height:40px;padding:7px 8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:11px}.price-db-filter-field .filter-option-search{border-color:var(--border);color:var(--accent);background:var(--card)}.price-db-filter-field .rank-change-control{width:100%;min-height:40px;font-size:10px}.price-db-filter-field .rank-change-control select{flex:1;width:100%!important;font-size:11px!important}.price-db-price-ranges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.price-db-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:7px}.price-db-range label{display:grid;gap:3px}.price-db-range label span{font-size:10px}.price-db-range i{align-self:center;color:var(--accent);font-size:18px;font-style:normal}.price-db-dialog-actions{position:sticky;bottom:-14px;display:grid;grid-template-columns:1fr 1.35fr;gap:7px;margin:2px -14px -14px;padding:10px 14px 14px;border-top:1px solid var(--border);background:rgba(22,22,31,.98)}.price-db-dialog-actions .button{min-height:42px;padding:7px}
.price-db-all-field-filters{grid-column:1/-1;display:grid;gap:8px;padding-top:2px}.price-db-all-field-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid var(--border)}.price-db-all-field-heading div{display:grid;gap:2px}.price-db-all-field-heading strong{color:var(--accent);font-size:12px}.price-db-all-field-heading small{color:var(--muted);font-size:9px;font-weight:600}.price-db-all-field-heading>span{flex:0 0 auto;padding:3px 7px;border:1px solid rgba(0,212,170,.35);border-radius:999px;color:var(--new);font-size:8px;font-weight:900}.price-db-column-filter-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.price-db-column-filter-button{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label count" "detail count";align-items:center;gap:2px 7px;min-width:0;min-height:46px;padding:7px 9px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);text-align:left;cursor:pointer}.price-db-column-filter-button:hover{border-color:#55556d}.price-db-column-filter-button.active{border-color:var(--new);background:rgba(0,212,170,.08)}.price-db-column-filter-button span{grid-area:label;overflow:hidden;font-size:10px;font-weight:900;white-space:nowrap;text-overflow:ellipsis}.price-db-column-filter-button small{grid-area:detail;overflow:hidden;color:var(--muted);font-size:8px;white-space:nowrap;text-overflow:ellipsis}.price-db-column-filter-button b{grid-area:count;display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#20202a;color:var(--muted);font-size:10px}.price-db-column-filter-button.active b{background:var(--new);color:#07110f}
.database-column-filter-dialog .database-column-sort[hidden],.database-column-filter-dialog .database-column-position[hidden]{display:none!important}
.price-db-sort-dialog{width:min(520px,calc(100vw - 18px));padding-bottom:14px}.price-db-sort-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:14px}.price-db-sort-choices button{min-height:48px;padding:8px;border:1px solid var(--border);border-radius:9px;background:var(--card);color:var(--text);font-size:11px;font-weight:900;cursor:pointer}.price-db-sort-choices button.active{border-color:var(--accent);background:rgba(232,200,64,.12);color:var(--accent)}

/* One-step larger readable minimum for surrounding controls; fixed-ratio price cards stay untouched. */
#pageDatabase .admin-tools,#pageDatabase .db-view-controls,#pageDatabase .table-wrap,#pageDatabase .save-note{font-size:11px}
#pageDatabase .admin-tools select,#pageDatabase .admin-tools .button,#pageDatabase .admin-tools .price-filter,#pageDatabase .db-view-controls,#pageDatabase .db-view-controls .button{font-size:11px}
#pageDatabase .table-wrap table{font-size:12px}#pageDatabase .table-wrap th{font-size:11px}#pageDatabase .table-wrap tbody td::before{font-size:10px}
#pageCart .price-workspace-toolbar,#pageCart .price-workspace-toolbar strong,#pageCart .price-workspace-toolbar small,#pageCart .price-database-pane,#pageCart .price-db-keyboard-hint,#pageCart .price-db-card-main small,#pageCart .price-db-status,#pageCart .price-db-bulk-actions{font-size:10px}
#pageCart .price-pane-heading small,#pageCart .price-db-card-main h3,#pageCart .price-db-card-actions .button{font-size:11px}
#pageCart .price-update-column>.section-heading,#pageCart .database-history,#pageCart .cart-import-panel,#pageCart .price-update-column>.page-actions,#pageCart .flyer-side-column{font-size:11px}
#pageCart .cart-import-head p,#pageCart .local-image-note,#pageCart .import-status-grid span,#pageCart .cart-sort,#pageCart .cart-bulk-rules>label:not(.cart-bulk-select-all),#pageCart .cart-bulk-select-all,#pageCart #cartSelectedCount,#pageCart .update-title{font-size:10px}
#pageCart .cart-bulk-rules input[type="text"],#pageCart .cart-bulk-rules input[type="number"],#pageCart .cart-bulk-rules select{font-size:10px}
#pageCart .flyer-side-column :is(.flyer-fields label,.export-panel label,.template-manager>strong,.flyer-background-control>strong,.x-post-count,.save-note,p,small,.image-rights-note){font-size:10px}
body:not(.admin-body) .summary{font-size:11px}body:not(.admin-body) .card-name{font-size:12px}body:not(.admin-body) .meta{font-size:10px}body:not(.admin-body) .public-filter-field{font-size:13px}body:not(.admin-body) .public-filter-field>span:first-child,body:not(.admin-body) .public-filter-field legend{font-size:14px}body:not(.admin-body) .public-filter-field select,body:not(.admin-body) .public-filter-field input{font-size:12px}body:not(.admin-body) .public-filter-action>span{font-size:14px}body:not(.admin-body) .public-filter-action>small{font-size:10px}

@media(max-width:560px){
  .public-filter-fields{grid-template-columns:1fr}.public-filter-field,.public-filter-field.full{grid-column:1/-1}.public-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .price-db-filter-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.price-db-action-button{grid-template-columns:1fr;grid-template-rows:22px auto;min-height:50px}.price-db-action-button>span{grid-row:1;font-size:18px}.price-db-action-button>small{display:none}.price-db-action-button>b{font-size:10px}
  .price-db-option-dialog{width:calc(100vw - 10px)}.price-db-dialog-fields{grid-template-columns:1fr}.price-db-filter-field,.price-db-filter-field.full{grid-column:1/-1}.price-db-column-filter-list{grid-template-columns:1fr}.price-db-sort-choices{grid-template-columns:1fr}.price-db-dialog-actions{grid-template-columns:1fr 1.25fr}
  .cart-view-filter-actions{grid-template-columns:minmax(0,1fr) 92px;grid-template-areas:"search filter"}.cart-view-filter-actions .price-db-action-button{grid-template-columns:20px minmax(0,1fr);grid-template-rows:1fr;min-height:42px}.cart-view-filter-actions .price-db-action-button>span{grid-row:1}.cart-view-filter-actions .price-db-action-button>b{align-self:center}
}

/* 公開カードの状態表示と、画像・価格履歴を確認する詳細画面。 */
body:not(.admin-body) .public-hot-badge,body:not(.admin-body) .flag.grade-psa10{display:inline-flex;align-items:center;justify-content:center;min-width:68px;min-height:27px;padding:5px 9px;font-size:10px;line-height:1;text-align:center}
body:not(.admin-body) .flag.grade-psa10{border:1px solid rgba(255,255,255,.78);border-radius:999px;background:linear-gradient(115deg,#ff4d6d 0%,#ffb703 20%,#43d17a 40%,#38bdf8 60%,#8b5cf6 80%,#ff4d9d 100%);background-size:180% 100%;box-shadow:0 7px 18px rgba(79,70,229,.34),inset 0 1px rgba(255,255,255,.35);color:#fff;font-weight:950;letter-spacing:.02em;text-shadow:0 1px 2px rgba(30,25,70,.5);white-space:nowrap}
body:not(.admin-body) #detail{width:min(96vw,980px);max-height:94dvh;padding:18px;overflow:auto;border-color:#fdba74;background:#fff;color:#292524;box-shadow:0 25px 80px rgba(67,20,7,.35)}
body:not(.admin-body) #detail .dialog-close{position:sticky;top:0;z-index:4;float:right;width:42px;height:42px;border-radius:999px;background:rgba(255,255,255,.94);color:#c2410c;box-shadow:0 3px 12px rgba(67,20,7,.16)}
body:not(.admin-body) #detail .detail-layout{grid-template-columns:minmax(260px,.9fr) minmax(300px,1.1fr);align-items:start;gap:22px;padding-top:8px}
body:not(.admin-body) #detail .public-detail-image{width:100%;aspect-ratio:3/4;border:1px solid #fed7aa;border-radius:13px;background:#fff7ed}
body:not(.admin-body) #detail .public-detail-image img{width:100%;height:100%;object-fit:contain}
body:not(.admin-body) #detail .public-detail-content{display:grid;gap:0;min-width:0;padding:2px 0}
body:not(.admin-body) #detail h2{margin:0 48px 10px 0;color:#431407;font-size:clamp(17px,2.2vw,24px);line-height:1.45;overflow-wrap:anywhere}
body:not(.admin-body) #detail .detail-price{display:flex;align-items:center;justify-content:center;min-height:64px;margin-bottom:10px;border:1px solid #fed7aa;border-radius:12px;background:linear-gradient(135deg,#fff7ed,#fff);color:#ea580c;font-size:clamp(30px,4vw,44px);line-height:1}
body:not(.admin-body) #detail .detail-row{display:grid;grid-template-columns:minmax(78px,auto) minmax(0,1fr);align-items:start;gap:14px;border-color:#fed7aa;color:#78716c;font-size:13px;line-height:1.5}
body:not(.admin-body) #detail .detail-row b{max-width:none;color:#292524;text-align:right;overflow-wrap:anywhere}
.public-price-history{display:grid;gap:8px;margin-top:18px;padding:14px;border:1px solid #fed7aa;border-radius:13px;background:#fff7ed}.public-price-history h3{margin:0;color:#9a3412;font-size:15px}.public-price-history svg{display:block;width:100%;height:auto;overflow:visible}.history-grid{stroke:#fdba74;stroke-width:1}.history-line{fill:none;stroke:#f97316;stroke-linecap:round;stroke-linejoin:round;stroke-width:5}.history-point{fill:#fff;stroke:#ea580c;stroke-width:4}.history-price-label,.history-date-label{fill:#78716c;font:700 13px "Noto Sans JP",sans-serif}.public-price-history p{margin:0;color:#78716c;font-size:12px;text-align:center}.history-latest{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#78716c;font-size:12px}.history-latest strong{color:#c2410c;font-size:18px}
@media(max-width:649px){body:not(.admin-body) .public-hot-badge,body:not(.admin-body) .flag.grade-psa10{min-width:47px;min-height:19px;padding:3px 5px;font-size:7px}body:not(.admin-body) #detail{width:calc(100vw - 12px);max-height:96dvh;padding:10px 12px 14px;border-radius:15px}body:not(.admin-body) #detail .dialog-close{position:sticky;top:0;width:38px;height:38px;margin-bottom:-38px;font-size:22px}body:not(.admin-body) #detail .detail-layout{grid-template-columns:1fr;gap:10px;padding-top:0}body:not(.admin-body) #detail .public-detail-image{width:min(64vw,246px);max-height:none;margin:0 auto;border-radius:11px}body:not(.admin-body) #detail .public-detail-content{padding:0}body:not(.admin-body) #detail h2{margin:0 36px 8px;color:#431407;font-size:17px;line-height:1.35;text-align:center}body:not(.admin-body) #detail .detail-price{min-height:54px;margin-bottom:4px;border-radius:10px;font-size:32px}body:not(.admin-body) #detail .detail-row{grid-template-columns:76px minmax(0,1fr);gap:9px;padding:7px 2px;font-size:12px}body:not(.admin-body) #detail .detail-row b{text-align:left}.public-price-history{gap:6px;margin-top:10px;padding:10px;border-radius:10px}.public-price-history h3{font-size:14px}.public-price-history svg{margin-top:2px}.history-price-label,.history-date-label{font-size:13px}.history-latest{font-size:11px}.history-latest strong{font-size:16px}}
@media(max-width:649px){body:not(.admin-body) .card-grid[data-columns="4"] .flag.grade-psa10,body:not(.admin-body) .card-grid[data-columns="5"] .flag.grade-psa10,body:not(.admin-body) .card-grid[data-columns="4"] .public-hot-badge,body:not(.admin-body) .card-grid[data-columns="5"] .public-hot-badge{min-width:38px;min-height:14px;padding:2px 3px;font-size:6px}}
/* 5列ではPSA10を下段に固定し、金額UPだけを上段で横へスライドする。 */
@keyframes public-hot-badge-slide-five{0%,20%{transform:translateX(0)}80%,100%{transform:translateX(-12px)}}
@media(max-width:649px){body:not(.admin-body) .card-grid[data-columns="5"] .public-card-image-hot-psa10 .flag.grade-psa10{top:18px;right:2px;left:auto}body:not(.admin-body) .card-grid[data-columns="5"] .public-card-image-hot-psa10 .public-hot-badge{animation:public-hot-badge-slide-five 2.8s ease-in-out infinite alternate}body:not(.admin-body) .card-grid[data-columns="5"] .public-card-image-hot-psa10 .public-hot-badge+.rank-flag{top:34px}}
@media(prefers-reduced-motion:reduce){body:not(.admin-body) .card-grid[data-columns="5"] .public-card-image-hot-psa10 .public-hot-badge{animation:none;transform:translateX(-8px)}}

/* 公開一覧は2〜5列のすべてでカード名の長さにかかわらず下端を揃える。 */
body:not(.admin-body) .card-grid{align-items:stretch}
body:not(.admin-body) .card-grid .card{--public-price-row:42px;grid-template-rows:auto var(--public-price-row) minmax(0,1fr);align-self:stretch;align-content:stretch}
body:not(.admin-body) .card-grid .card-info{height:100%}
body:not(.admin-body) .card-grid .card-name{height:2.9em;min-height:2.9em;max-height:2.9em}
body:not(.admin-body) .card-grid .card.public-name-row-one-line .card-name{height:1.45em;min-height:1.45em;max-height:1.45em}
body:not(.admin-body) .card-grid .public-card-name-measure{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;white-space:nowrap!important;-webkit-line-clamp:unset!important}
body:not(.admin-body) .card-grid.has-public-limit-row .public-card-rules{min-height:1.25em}
body:not(.admin-body) .card-grid.has-public-limit-row .public-card-rules:empty{display:block}
body:not(.admin-body) .card-grid .meta{margin-top:auto}
body:not(.admin-body) .card-grid[data-columns="2"] .card{--public-price-row:44px}
@media(max-width:649px){body:not(.admin-body) .card-grid .card{--public-price-row:36px}body:not(.admin-body) .card-grid .card-name{height:2.8em;min-height:2.8em;max-height:2.8em}body:not(.admin-body) .card-grid .card.public-name-row-one-line .card-name{height:1.4em;min-height:1.4em;max-height:1.4em}body:not(.admin-body) .card-grid[data-columns="2"] .card{--public-price-row:44px}body:not(.admin-body) .card-grid[data-columns="4"] .card{--public-price-row:31px}body:not(.admin-body) .card-grid[data-columns="5"] .card{--public-price-row:27px}body:not(.admin-body) .card-grid[data-columns="5"] .card-name{height:2.5em;min-height:2.5em;max-height:2.5em}body:not(.admin-body) .card-grid[data-columns="5"] .card.public-name-row-one-line .card-name{height:1.25em;min-height:1.25em;max-height:1.25em}}

/* モバイル詳細は価格推移までを初期表示内へ収める。 */
@media(max-width:649px){body:not(.admin-body) #detail{max-height:calc(100dvh - 8px);padding:7px 10px 9px}body:not(.admin-body) #detail .dialog-close{width:34px;height:34px;margin-bottom:-34px;font-size:20px}body:not(.admin-body) #detail .detail-layout{gap:5px}body:not(.admin-body) #detail .public-detail-image{width:min(44vw,180px)}body:not(.admin-body) #detail h2{display:block;margin:0 38px 4px;overflow:hidden;font-size:15px;line-height:1.3;text-align:center;text-overflow:ellipsis;white-space:nowrap}body:not(.admin-body) #detail .detail-price{min-height:42px;margin-bottom:2px;font-size:27px}body:not(.admin-body) #detail .detail-row{grid-template-columns:70px minmax(0,1fr);gap:7px;padding:3px 2px;font-size:11px;line-height:1.3}body:not(.admin-body) #detail .detail-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.public-price-history{gap:3px;margin-top:6px;padding:7px}.public-price-history h3{font-size:12px}.public-price-history svg{margin:0}.history-price-label,.history-date-label{font-size:12px}.history-latest{font-size:10px}.history-latest strong{font-size:14px}}
.summary{align-items:end;gap:8px}.public-preset-filters{display:flex;flex:1 1 260px;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}.public-preset-filters[hidden]{display:none!important}.public-preset-filter-button{min-height:38px;padding:7px 13px;border:1px solid #fdba74;border-radius:10px;background:#fff;color:#9a3412;font:900 12px/1.2 inherit;white-space:nowrap;box-shadow:0 2px 8px rgba(154,52,18,.08)}.public-preset-filter-button:hover,.public-preset-filter-button:focus-visible{border-color:#f97316;background:#fff7ed}.public-preset-filter-button.active{border-color:#ea580c;background:#f97316;color:#fff;box-shadow:0 5px 15px rgba(234,88,12,.25)}
body:not(.admin-body) .summary{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  row-gap:6px;
  align-items:start;
  justify-items:stretch;
  margin-left:auto;
  margin-right:auto;
  width:100%;
}
body:not(.admin-body) .public-preset-filters{grid-column:1 / -1}
body:not(.admin-body) .public-preset-filters:not([hidden]){display:flex}
body:not(.admin-body) .public-grid-buttons{
  justify-self:end;
  margin-left:0;
}
.public-filter-preset-settings{margin:12px 0;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--card)}.public-filter-preset-settings legend{padding:0 5px;color:var(--accent);font-size:12px;font-weight:900}.public-filter-preset-settings>p{margin:0 0 10px!important}.public-filter-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.public-filter-preset-grid label{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:11px}.public-filter-preset-grid .full{grid-column:1/-1}.public-filter-preset-grid input,.public-filter-preset-grid select{width:100%;min-width:0;min-height:39px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text)}.public-filter-preset-actions{display:flex;gap:7px;margin-top:10px}.public-filter-preset-list{display:grid;gap:7px;margin-top:10px}.public-filter-preset-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.public-filter-preset-row>div:first-child{display:grid;min-width:0;gap:2px}.public-filter-preset-row strong,.public-filter-preset-row small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.public-filter-preset-row small{color:var(--muted);font-size:9px}.public-filter-preset-row>div:last-child{display:flex;flex:0 0 auto;gap:5px}@media(max-width:560px){.public-filter-preset-grid{grid-template-columns:1fr}.public-filter-preset-grid .full{grid-column:auto}.public-filter-preset-row{align-items:flex-start;flex-direction:column}.public-filter-preset-row>div:last-child{width:100%}.public-filter-preset-row>div:last-child .button{flex:1}}
.public-filter-preset-open{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;justify-content:center;width:100%;max-width:340px;margin:0}.public-filter-preset-dialog{width:min(760px,calc(100vw - 24px));max-height:min(88vh,820px);padding:16px}.public-filter-preset-dialog form{margin:0}.public-filter-preset-dialog .public-filter-preset-actions{justify-content:flex-end}.public-period-settings{display:grid;gap:10px}.public-period-toggle{margin:0!important}.public-period-field{display:grid;gap:5px;color:var(--muted);font-size:11px;opacity:.58}.public-period-field.enabled{opacity:1}.public-period-field select{width:100%;min-height:39px;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text)}@media(max-width:560px){.public-filter-preset-open{max-width:none}.public-filter-preset-dialog{width:100vw;max-width:none;max-height:92dvh;margin:auto 0 0;padding:13px;border-radius:16px 16px 0 0}.public-filter-preset-dialog .public-filter-preset-actions{display:grid;grid-template-columns:1fr}.public-filter-preset-dialog .public-filter-preset-actions .button{width:100%}}

/* カードタイトルから独立した全体設定と公開状況。 */
.admin-title-landing-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-tabs button:disabled{opacity:.34;cursor:not-allowed}.global-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:1100px;margin:0 0 14px;padding:4px 2px}.global-settings-heading small,.public-analytics-heading small{color:var(--accent);font:800 10px Oswald;letter-spacing:1.5px}.global-settings-heading h2,.public-analytics-heading h2{margin:2px 0 0;font-size:20px}.global-settings-heading p{margin:5px 0 0;color:var(--muted);font-size:11px}.public-analytics-dashboard{max-width:1100px;margin-bottom:14px;padding:16px;border:1px solid rgba(0,212,170,.3);border-radius:14px;background:linear-gradient(145deg,rgba(0,212,170,.07),var(--surface) 36%)}.public-analytics-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.public-analytics-heading>span{padding:5px 9px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:9px}.public-analytics-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.public-analytics-metrics article{display:grid;gap:3px;min-width:0;padding:12px;border:1px solid var(--border);border-radius:10px;background:rgba(12,12,19,.68)}.public-analytics-metrics article.public-output-count{border-color:rgba(232,200,64,.42)}.public-analytics-metrics small{color:var(--muted);font-size:9px;font-weight:800}.public-analytics-metrics strong{color:var(--new);font:800 clamp(20px,3vw,30px) Oswald;letter-spacing:.02em}.public-analytics-metrics .public-output-count strong{color:var(--accent)}.public-analytics-metrics span{overflow:hidden;color:var(--muted);font-size:9px;white-space:nowrap;text-overflow:ellipsis}.public-analytics-detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:10px}.public-analytics-detail-grid>section{min-width:0;padding:11px;border:1px solid var(--border);border-radius:10px;background:var(--card)}.public-analytics-detail-grid h3{margin:0 0 9px;color:var(--text);font-size:12px}.public-analytics-title-rows,.public-analytics-daily-rows{display:grid;gap:6px;max-height:350px;overflow:auto}.public-analytics-title-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:7px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.public-analytics-title-logo{display:grid;place-items:center;width:42px;height:32px;overflow:hidden;border-radius:6px;background:#fff;color:#111;font-weight:900}.public-analytics-title-logo img{width:100%;height:100%;object-fit:contain}.public-analytics-title-copy{display:grid;min-width:0;gap:2px}.public-analytics-title-copy strong,.public-analytics-title-copy small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.public-analytics-title-copy strong{font-size:10px}.public-analytics-title-copy small{color:var(--muted);font-size:8px}.public-analytics-title-row>b{color:var(--accent);font:700 15px Oswald}.public-analytics-title-row>span{min-width:52px;padding:3px 6px;border-radius:999px;background:rgba(0,212,170,.1);color:var(--new);font-size:8px;text-align:center}.public-analytics-title-row.private>span{background:rgba(138,138,160,.12);color:var(--muted)}.public-analytics-daily-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:7px}.public-analytics-daily-row time,.public-analytics-daily-row b{font-size:9px}.public-analytics-daily-bar{height:8px;overflow:hidden;border-radius:999px;background:#242432}.public-analytics-daily-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--new),var(--accent))}.public-output-settings,.product-category-settings-panel,.title-notice-settings,.card-title-logo-settings{margin-bottom:14px}.public-output-settings>label{display:grid;gap:5px;margin:10px 0;color:var(--muted);font-size:11px}.public-output-settings>label input{width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.public-output-settings>h3{margin:16px 0 7px;font-size:12px}.public-output-settings #saveGlobalCommonSettings{margin-top:12px}
@media(max-width:850px){.public-analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.public-analytics-metrics .public-output-count{grid-column:1/-1}.public-analytics-detail-grid{grid-template-columns:1fr}}@media(max-width:560px){.admin-title-landing-actions{width:100%;justify-content:stretch}.admin-title-landing-actions .button{flex:1}.global-settings-heading{align-items:stretch;flex-direction:column}.public-analytics-dashboard{padding:11px}.public-analytics-metrics{gap:6px}.public-analytics-title-row{grid-template-columns:36px minmax(0,1fr) auto}.public-analytics-title-logo{width:36px;height:28px}.public-analytics-title-row>span{grid-column:2/-1;justify-self:start}.global-settings-heading .button{width:100%}}

/* 2026-08-11 推奨UI仕様: 白/黒テーマ、共通操作部品、通知、確認画面。 */
html[data-theme="dark"]{--bg:#0a0a0f;--surface:#16161f;--card:#1e1e2a;--border:#38384d;--text:#f7f7fb;--muted:#aaaabd;--accent:#e8c840;--new:#00d4aa;--hot:#ff5d70;--info:#64a8ff;--warning:#ffb84d;--focus:#79b8ff;color-scheme:dark}
html[data-theme="light"]{--bg:#f7f8fc;--surface:#fff;--card:#f0f2f7;--border:#c8ced9;--text:#171923;--muted:#5e6676;--accent:#d1a900;--new:#008e76;--hot:#c92f49;--info:#1769c2;--warning:#a65d00;--focus:#005fcc;color-scheme:light}
html[data-theme="light"] body{background:var(--bg);color:var(--text)}
html[data-theme="light"] .admin-body,html[data-theme="light"] .admin-main{background:var(--bg);color:var(--text)}
html[data-theme="light"] .admin-header,html[data-theme="light"] .public-header{background:color-mix(in srgb,var(--surface) 94%,transparent);color:var(--text)}
html[data-theme="light"] .admin-tabs,html[data-theme="light"] .admin-title-landing,html[data-theme="light"] .admin-title-landing h1{background:var(--surface);color:var(--text)}
html[data-theme="light"] .app-login-gate{background:radial-gradient(circle at 50% 20%,#fff 0,#e8ebf2 62%);color:var(--text)}
html[data-theme="light"] .app-login-card{border-color:var(--border);background:rgba(255,255,255,.98);color:var(--text);box-shadow:0 24px 70px rgba(29,37,57,.18)}
html[data-theme="light"] .app-login-card input{border-color:var(--border);background:#fff;color:var(--text)}
html[data-theme="light"] .bulk,html[data-theme="light"] .panel,html[data-theme="light"] .summary-box,html[data-theme="light"] .admin-page fieldset,html[data-theme="light"] .database-layout-panel,html[data-theme="light"] .public-analytics-dashboard,html[data-theme="light"] .public-analytics-detail-grid>section{background:var(--surface);color:var(--text)}
html[data-theme="light"] table{background:var(--surface);color:var(--text)}
html[data-theme="light"] th{background:#e9edf4;color:var(--muted)}
html[data-theme="light"] td input,html[data-theme="light"] td select{color:var(--text)}
html[data-theme="light"] dialog:not(.flyer-page){background:var(--surface);color:var(--text)}
html[data-theme="light"] .filter-combobox-popup:not(.public-theme){border-color:var(--border);background:var(--surface);color:var(--text);box-shadow:0 22px 60px rgba(29,37,57,.24)}
html[data-theme="light"] .filter-combobox-popup:not(.public-theme) .filter-combobox-options button{border-color:var(--border);background:var(--card);color:var(--text)}

.ui-theme-switch{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--border);border-radius:10px;background:var(--surface);white-space:nowrap}
.ui-theme-switch button{min-width:36px;min-height:32px;padding:4px 7px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:11px;font-weight:800;cursor:pointer}
.ui-theme-switch button[aria-pressed="true"]{background:var(--accent);color:#111;box-shadow:0 1px 5px rgba(0,0,0,.18)}
.ui-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;min-height:42px;padding:7px 11px;border-radius:8px;font-size:inherit;font-weight:800;line-height:1.2;text-align:center;overflow-wrap:anywhere}
.ui-button--primary{border-color:var(--accent)!important;background:var(--accent)!important;color:#111!important}
.ui-button--secondary{border-color:var(--border);background:var(--surface);color:var(--text)}
.ui-button--danger{border-color:color-mix(in srgb,var(--hot) 70%,var(--border))!important;background:transparent!important;color:var(--hot)!important}
.ui-button--external::after{content:"↗";font-size:.9em;line-height:1}
.ui-button--toggle[aria-pressed="true"],.ui-button--toggle.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 16%,var(--surface));color:var(--accent)}
.ui-button:disabled,.ui-button[aria-disabled="true"]{cursor:not-allowed;filter:saturate(.35);opacity:.46}
.admin-tools .ui-button,.bulk .ui-button,.row-actions .ui-button,.page-actions .ui-button,td .ui-button{min-height:36px;padding:6px 9px}
.ui-input{border-color:var(--border);background:var(--card);color:var(--text)}
.ui-clearable-input{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%;min-width:0}.ui-clearable-input>.ui-input{grid-area:1/1/2/3;width:100%;min-width:0;padding-right:40px!important}.ui-input-clear{grid-area:1/2;z-index:2;display:grid;place-items:center;width:32px;min-width:32px;height:32px;min-height:32px;margin-right:4px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:21px;font-weight:500;line-height:1;cursor:pointer}.ui-input-clear:hover,.ui-input-clear:focus-visible{background:color-mix(in srgb,var(--text) 10%,transparent);color:var(--text)}.ui-input-clear[hidden]{display:none!important}.search>.ui-clearable-input,.filter-option-search>.ui-clearable-input{flex:1;min-width:0}.price-db-range label>.ui-clearable-input{width:100%}@media(max-width:560px){.ui-clearable-input>.ui-input{padding-right:44px!important}.ui-input-clear{width:36px;min-width:36px;height:36px;min-height:36px;margin-right:3px;font-size:23px}}
.ui-input[aria-invalid="true"],.ui-input:invalid:not(:placeholder-shown){border-color:var(--hot)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--hot) 42%,transparent)}
.ui-required{display:inline-flex;align-items:center;width:max-content;margin-left:5px;padding:1px 5px;border-radius:5px;background:color-mix(in srgb,var(--hot) 13%,transparent);color:var(--hot);font-size:9px;font-weight:900;line-height:1.4}
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--focus) 58%,transparent)!important;outline-offset:2px!important}

.toast,.ui-notice{z-index:2500;max-width:min(92vw,560px);min-height:42px;padding:11px 16px;border:1px solid transparent;border-radius:10px;box-shadow:0 10px 36px rgba(0,0,0,.32);font-size:12px;line-height:1.45;text-align:center}
.toast[data-kind="success"]{border-color:var(--new);background:var(--new);color:#04130f}
.toast[data-kind="info"]{border-color:var(--info);background:var(--surface);color:var(--text)}
.toast[data-kind="warning"]{border-color:var(--warning);background:var(--surface);color:var(--warning)}
.toast[data-kind="error"]{border-color:var(--hot);background:var(--surface);color:var(--hot)}
.toast[data-kind="loading"]{border-color:var(--accent);background:var(--surface);color:var(--accent)}

.ui-dialog{overscroll-behavior:contain}.ui-dialog .dialog-close{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:42px;min-height:42px}.ui-close-label{font-size:10px;font-weight:800}.ui-confirm-dialog{width:min(92vw,500px);padding:20px;border-color:var(--border);box-shadow:0 26px 84px rgba(0,0,0,.48)}
body:not(.admin-body) .ui-dialog .dialog-close{width:auto;min-width:44px;height:44px;min-height:44px;padding:0 9px;gap:4px;font-size:18px;line-height:1}
body:not(.admin-body) .ui-dialog .dialog-close>span:first-child{font-size:18px;line-height:1}
body:not(.admin-body) .ui-dialog .dialog-close .ui-close-label{display:none}
.ui-confirm-dialog h2{margin:0 0 8px;font-size:19px}.ui-confirm-dialog p{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.7;white-space:pre-line}.ui-confirm-dialog label{display:grid;gap:6px;color:var(--muted);font-size:11px}.ui-confirm-dialog input{width:100%;min-height:44px;padding:9px 11px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:16px}.ui-confirm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}.ui-confirm-actions .ui-button{width:100%;min-height:44px}

.filter-combobox-popup{grid-template-rows:auto auto minmax(0,1fr)}.filter-combobox-meta{min-height:18px;padding:0 4px;color:var(--muted);font-size:10px;text-align:right}.filter-combobox-popup.searchless{grid-template-rows:auto minmax(0,1fr)}.filter-combobox-popup.searchless .filter-combobox-meta{display:block}.filter-combobox-empty{display:grid;gap:8px;padding:8px}.filter-combobox-empty button{border-color:var(--accent)!important;color:var(--accent)!important;text-align:center!important}.filter-combobox-options button.selected::before{content:"✓";display:inline-block;margin-right:6px;color:var(--accent);font-weight:900}.filter-combobox-options button[title]{text-overflow:ellipsis}.filter-combobox-options{scrollbar-color:var(--accent) color-mix(in srgb,var(--surface) 70%,#000)}

/* 個別の価格更新カードと投稿画像は既存の固定比率を保持する。 */
.price-update-column .cart-item .ui-button{min-height:inherit}.price-update-column .cart-editor-shell .ui-button{font-size:inherit}.flyer-page .ui-button,.flyer-card .ui-button{all:unset}

@media(max-width:650px){
  .ui-theme-switch{width:100%}.ui-theme-switch button{flex:1;min-height:42px}
  .filter-combobox-popup{right:8px!important;bottom:8px!important;left:8px!important;top:auto!important;width:auto!important;max-width:none!important;max-height:76dvh!important;border-radius:17px 17px 10px 10px;padding:11px}
  .filter-combobox-options button{min-height:48px;padding:11px 12px;font-size:16px}
  dialog.ui-dialog:not(#detail){width:calc(100vw - 16px);max-width:none;max-height:82dvh;margin:auto 8px 8px;border-radius:18px 18px 10px 10px}
  .ui-confirm-actions{grid-template-columns:1fr}.ui-confirm-actions button:first-child{order:2}
  .header-actions{width:100%;flex-flow:row wrap}.header-actions>*{min-width:0}
}
@media(pointer:coarse){.ui-button,.filter-combobox-trigger,.filter-combobox-options button,.ui-theme-switch button{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* 2026-08-11: 並べ替え方向、統合列フィルター、確定操作の共通定義。 */
.sort-action-group{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:5px;min-width:0}.sort-action-group>.public-filter-action,.sort-action-group>.price-db-action-button{width:100%;min-width:0}.sort-direction-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:76px;min-height:42px;padding:7px 9px;border:1px solid color-mix(in srgb,var(--accent) 68%,var(--border));border-radius:9px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));color:var(--accent);font-size:11px;font-weight:900;line-height:1.15;white-space:nowrap;cursor:pointer}.sort-direction-toggle:hover,.sort-direction-toggle:focus-visible{background:color-mix(in srgb,var(--accent) 21%,var(--surface))}.sort-direction-toggle[aria-pressed="false"]{border-color:color-mix(in srgb,var(--new) 65%,var(--border));background:color-mix(in srgb,var(--new) 11%,var(--surface));color:var(--new)}
.public-filter-actions{grid-template-columns:minmax(0,1fr) 126px minmax(208px,260px)}.public-sort-direction-toggle{min-height:58px;border-color:#ea580c;background:#fff7ed;color:#c2410c}.public-sort-direction-toggle[aria-pressed="false"]{border-color:#ea580c;background:#fff7ed;color:#c2410c}
.price-db-filter-actions .price-db-sort-action-group{grid-area:sort}.unified-control-toolbar{grid-template-columns:minmax(0,1fr) auto minmax(154px,auto)}.appraisal-sort-action-group .price-db-action-button{min-width:78px}
.database-column-filter-group{display:grid;gap:9px;padding:11px;border:1px solid var(--border);border-radius:10px;background:color-mix(in srgb,var(--card) 76%,transparent)}.database-column-filter-group-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid var(--border)}.database-column-filter-group-heading strong{color:var(--accent);font-size:12px}.database-column-filter-group-heading small{color:var(--muted);font-size:9px;text-align:right}.database-column-choice-actions{display:grid;grid-template-columns:1fr;gap:6px}.database-column-choice-actions button{width:100%;min-height:36px;padding:7px 9px;border:1px solid color-mix(in srgb,var(--new) 55%,var(--border));border-radius:7px;background:var(--surface);color:var(--new);font-size:9px;font-weight:800;cursor:pointer}.database-column-choice-actions button:hover,.database-column-choice-actions button:focus-visible{border-color:var(--accent);color:var(--accent)}
.ui-button--primary,.button.primary,[data-ui-commit]{border-color:var(--accent)!important;background:var(--accent)!important;color:#161208!important;box-shadow:0 3px 10px color-mix(in srgb,var(--accent) 24%,transparent)!important;font-weight:900!important}.ui-button--primary:hover,.button.primary:hover,[data-ui-commit]:hover{filter:brightness(1.07)}.ui-button--primary:disabled,.button.primary:disabled,[data-ui-commit]:disabled{box-shadow:none!important;filter:none}
@media(max-width:720px){.unified-control-toolbar{grid-template-columns:minmax(0,1fr) 74px minmax(128px,146px)}.sort-direction-toggle{min-width:58px;padding:6px 5px;font-size:10px}}
@media(max-width:649px){.public-filter-actions{grid-template-columns:minmax(0,1fr) 76px minmax(124px,140px)}.public-sort-direction-toggle{min-width:50px;min-height:58px;padding:5px 3px;font-size:9px}.database-column-filter-group-heading{display:grid}.database-column-filter-group-heading small{text-align:left}.database-column-choice-actions{grid-template-columns:1fr}.price-db-price-ranges{grid-template-columns:1fr}}

/* 2026-08-11: 黒を基調に、主要操作をオレンジへ統一。出力画像は対象外。 */
html[data-theme="dark"]{
  --bg:#000;--surface:#0d0d0f;--card:#161618;--elevated:#1d1d20;
  --input-bg:#0a0a0c;--input-hover:#141416;--border:#343438;--border-strong:#5c5c63;
  --text:#f7f7f8;--muted:#aaaab0;--accent:#f97316;--accent-strong:#fb923c;
  --accent-contrast:#17110d;--new:#2fd3b4;--success-contrast:#061612;--hot:#ff6b7a;--info:#58b7ff;
  --warning:#ffb65c;--focus:#fdba74;--external:#a98bff;--control-shadow:rgba(0,0,0,.48);
}
html[data-theme="light"]{
  --bg:#f7f7f5;--surface:#fff;--card:#f2f2ef;--elevated:#fff;
  --input-bg:#f5f3ef;--input-hover:#ece8e1;--border:#cbc6bd;--border-strong:#948b7d;
  --text:#201d19;--muted:#6f6961;--accent:#c2410c;--accent-strong:#9a3412;
  --accent-contrast:#fff;--new:#087f70;--success-contrast:#fff;--hot:#c53d59;--info:#176fc1;
  --warning:#9c5b0a;--focus:#ea580c;--external:#6847c4;--control-shadow:rgba(65,45,25,.16);
}
html[data-theme] body,html[data-theme] .admin-body,html[data-theme] .admin-main{background:var(--bg);color:var(--text)}
html[data-theme] body:not(.admin-body){background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 5%,var(--bg)),var(--bg) 240px)}
html[data-theme] .admin-header,html[data-theme] .public-header{border-color:var(--border);background:color-mix(in srgb,var(--surface) 94%,transparent);color:var(--text)}
html[data-theme] .admin-tabs,html[data-theme] .search-panel,html[data-theme] .admin-title-landing{border-color:var(--border);background:var(--surface);color:var(--text)}
html[data-theme] :where(.panel,.bulk,.summary-box,.database-layout-panel,.market-links,.flyer-settings,.export-panel,.public-output-settings,.public-filter-preset-settings,.public-analytics-dashboard,.public-analytics-detail-grid>section,.deck-panel,.appraisal-panel,.x-composer-panel,fieldset:not(.public-filter-field),dialog:not(.flyer-page)){border-color:var(--border);background:var(--surface);color:var(--text)}
html[data-theme] :where(.search,.price-db-search,.all-title-database-filter-search,.filter-option-search,.category-combobox-search,.database-column-unified-search){border:1px solid var(--border);background:var(--input-bg);color:var(--text);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--surface) 42%,transparent)}
html[data-theme] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.ui-input,.filter-combobox-trigger){border-color:var(--border)!important;background:var(--input-bg)!important;color:var(--text)!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--surface) 38%,transparent)}
html[data-theme] :where(input,textarea)::placeholder{color:color-mix(in srgb,var(--muted) 82%,transparent);opacity:1}
html[data-theme] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.filter-combobox-trigger):hover{border-color:var(--border-strong)!important;background:var(--input-hover)!important}
html[data-theme] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.filter-combobox-trigger):focus{border-color:var(--accent)!important;background:var(--input-bg)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 20%,transparent)!important;outline:0}
html[data-theme] :where(input[type="checkbox"],input[type="radio"]){accent-color:var(--accent)}
html[data-theme] :where(.button,.ui-button,.public-filter-action,.price-db-action-button,.appraisal-db-action-button,.database-column-sort button,.database-column-position button,.database-column-choice-actions button,.public-sort-options button,.public-grid-buttons button,.layout-preset,.format-preset,.filter-combobox-options button,.category-combobox-options button){border-color:var(--border);background:var(--card);color:var(--text);box-shadow:0 2px 8px var(--control-shadow)}
html[data-theme] :where(.button,.ui-button,.public-filter-action,.price-db-action-button,.appraisal-db-action-button,.database-column-sort button,.database-column-position button,.database-column-choice-actions button,.public-sort-options button,.public-grid-buttons button,.layout-preset,.format-preset,.filter-combobox-options button,.category-combobox-options button):hover{border-color:var(--border-strong);background:var(--elevated);color:var(--text)}
html[data-theme] :where(.ui-button--primary,.button.primary,[data-ui-commit],.public-apply-button){border-color:var(--accent)!important;background:var(--accent)!important;color:var(--accent-contrast)!important;box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 28%,transparent)!important}
html[data-theme] :where(.ui-button--primary,.button.primary,[data-ui-commit],.public-apply-button):hover{border-color:var(--accent-strong)!important;background:var(--accent-strong)!important;color:var(--accent-contrast)!important;filter:none}
html[data-theme] :where(.ui-button--toggle.active,.ui-button--toggle[aria-pressed="true"],.admin-tabs button.active,.segmented button.active,.chips button.active,.public-grid-buttons button.active,.database-column-sort button.active,.layout-preset.active,.format-preset.active){border-color:var(--new)!important;background:color-mix(in srgb,var(--new) 18%,var(--surface))!important;color:var(--new)!important;box-shadow:inset 0 -2px 0 var(--new)}
html[data-theme] :where(.ui-button--danger,.button.danger,.delete,[class*="-delete"],[class*="-remove"]){border-color:color-mix(in srgb,var(--hot) 72%,var(--border))!important;background:color-mix(in srgb,var(--hot) 9%,var(--surface))!important;color:var(--hot)!important;box-shadow:none!important}
html[data-theme] :where(.ui-button--external,.button.market,.market-open-full){border-color:color-mix(in srgb,var(--external) 72%,var(--border))!important;background:color-mix(in srgb,var(--external) 10%,var(--surface))!important;color:var(--external)!important;box-shadow:none}
html[data-theme] .ui-theme-switch{border-color:var(--border);background:var(--input-bg)}
html[data-theme] .ui-theme-switch button{background:transparent;color:var(--muted);box-shadow:none}
html[data-theme] .ui-theme-switch button[aria-pressed="true"]{background:var(--accent);color:var(--accent-contrast);box-shadow:0 2px 8px color-mix(in srgb,var(--accent) 25%,transparent)}
html[data-theme] :where(.filter-combobox-popup,.category-combobox-popup,.database-column-filter-dialog,.database-column-layout-dialog){border-color:var(--border);background:var(--elevated);color:var(--text);box-shadow:0 24px 72px var(--control-shadow)}
html[data-theme] :where(.filter-combobox-options button.selected,.category-combobox-options button.selected){border-color:var(--new);background:color-mix(in srgb,var(--new) 16%,var(--surface));color:var(--text)}
html[data-theme] :where(.public-preset-filter-button,.public-sort-direction-toggle,.sort-direction-toggle){border-color:color-mix(in srgb,var(--accent) 68%,var(--border));background:color-mix(in srgb,var(--accent) 11%,var(--surface));color:var(--accent);box-shadow:none}
html[data-theme] :where(.public-preset-filter-button.active,.public-sort-direction-toggle[aria-pressed="false"],.sort-direction-toggle[aria-pressed="false"]){border-color:var(--new);background:color-mix(in srgb,var(--new) 13%,var(--surface));color:var(--new)}
html[data-theme] table{border-color:var(--border);background:var(--surface);color:var(--text)}
html[data-theme] th{border-color:var(--border);background:color-mix(in srgb,var(--card) 86%,var(--surface));color:var(--muted)}
html[data-theme] td{border-color:var(--border);background:var(--surface);color:var(--text)}
html[data-theme] .table-wrap th,html[data-theme] .table-wrap td{border-right-color:var(--border)}
html[data-theme] .toast[data-kind="success"]{border-color:var(--new);background:var(--new);color:var(--success-contrast)}
html[data-theme] .toast[data-kind="info"]{border-color:var(--info);background:color-mix(in srgb,var(--info) 12%,var(--surface));color:var(--info)}
html[data-theme] .toast[data-kind="warning"]{border-color:var(--warning);background:color-mix(in srgb,var(--warning) 12%,var(--surface));color:var(--warning)}

/* 相場検索は各サービスの識別色を使い、外部リンク記号は付けない。 */
.button.market.mercari{--market-brand:#ff7651}.button.market.snkr{--market-brand:#e7a22b}.button.market.cardrush{--market-brand:#ff656b}
html[data-theme] .button.market{border-color:var(--market-brand)!important;background:color-mix(in srgb,var(--market-brand) 11%,var(--surface))!important;color:var(--market-brand)!important;box-shadow:none!important}
html[data-theme] .button.market:hover{border-color:var(--market-brand)!important;background:color-mix(in srgb,var(--market-brand) 20%,var(--surface))!important;color:var(--market-brand)!important}
.button.market::after,.market-open-full::after{content:none!important;display:none!important}

/* 共通プルダウンの検索欄はテーマ色を二重適用せず、入力面と文字色を固定する。 */
html[data-theme] .filter-combobox-popup .filter-option-search>input{background:transparent!important;box-shadow:none!important}
html[data-theme="dark"] .filter-combobox-popup .filter-option-search{border-color:var(--accent)!important;background:#050506!important;color:#f7f7f8!important}
html[data-theme="dark"] .filter-combobox-popup .filter-option-search>input{color:#f7f7f8!important}
html[data-theme="dark"] .filter-combobox-popup .filter-option-search>input::placeholder{color:#aaaab0!important}
html[data-theme="light"] .filter-combobox-popup .filter-option-search,html[data-theme] .filter-combobox-popup.public-theme .filter-option-search{border-color:var(--accent)!important;background:#fff!important;color:#201d19!important}
html[data-theme="light"] .filter-combobox-popup .filter-option-search>input,html[data-theme] .filter-combobox-popup.public-theme .filter-option-search>input{color:#201d19!important}
html[data-theme="light"] .filter-combobox-popup .filter-option-search>input::placeholder,html[data-theme] .filter-combobox-popup.public-theme .filter-option-search>input::placeholder{color:#6f6961!important}
html[data-theme] .toast[data-kind="error"]{border-color:var(--hot);background:color-mix(in srgb,var(--hot) 12%,var(--surface));color:var(--hot)}
html[data-theme] :where(.flyer-page,.flyer-card,.flyer-page input,.flyer-page select,.flyer-page textarea,.flyer-page button){box-shadow:revert-layer}

/* 2026-08-11: 価格更新の関連操作を4本のコンパクトな操作行へ集約する。 */
#pageCart .price-update-management-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;margin-bottom:6px;padding:7px;overflow:hidden}
#pageCart .price-update-management-row .price-update-inline-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;min-width:0;color:var(--accent);font-weight:800;white-space:nowrap}
#pageCart .price-update-management-row .price-update-inline-field select{width:100%;min-width:0}
#pageCart .price-update-management-row .button{width:auto;min-width:0;white-space:nowrap}
#pageCart .cart-summary-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:5px;margin:0 0 7px}
#pageCart .cart-summary-strip .summary-box{min-width:0;padding:5px 7px}
#pageCart .cart-import-dialog{width:min(760px,calc(100vw - 24px));max-width:760px;max-height:min(86dvh,760px);padding:12px;overflow:auto}
#pageCart .cart-import-dialog>.cart-import-panel{margin:0;padding:0;border:0;background:transparent}
#pageCart .cart-import-dialog .cart-import-actions{flex-wrap:nowrap}
#pageCart .cart-view-filter-actions{grid-template-columns:minmax(0,1fr) minmax(72px,.28fr) minmax(0,auto);grid-template-areas:"search filter category";align-items:stretch;overflow:hidden}
#pageCart .cart-view-filter-actions .rank-change-control{grid-area:category;align-self:stretch;justify-content:center;min-width:0;padding-inline:7px}
#pageCart .cart-view-filter-actions .rank-change-control .app-select-control{min-width:0}
#pageCart .cart-sort-actions{display:grid;grid-template-columns:repeat(2,minmax(210px,1fr));align-items:end;gap:6px}
#pageCart .cart-sort-group{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:4px;min-width:0}
#pageCart .cart-sort-group .cart-sort{display:grid;grid-template-columns:auto minmax(104px,1fr);align-items:center;gap:4px;min-width:0}
#pageCart .cart-sort-group .cart-sort>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pageCart .cart-sort-group .app-select-control{width:100%;min-width:0}
#pageCart .cart-sort-group>.button{width:auto;min-width:64px;padding-inline:5px;white-space:nowrap}
@container price-center (max-width:520px){#pageCart .cart-sort-actions{grid-template-columns:minmax(0,1fr)}#pageCart .cart-sort-group{width:100%}}
#pageCart .cart-bulk-rules{grid-template-columns:auto minmax(0,1.3fr) minmax(0,1fr) minmax(42px,.34fr) auto;align-items:end;gap:5px}
#pageCart .cart-bulk-rules>*{grid-column:auto!important;min-width:0}
#pageCart .cart-bulk-rules>#applyCartBulkRules{grid-column:auto!important;width:auto}
#pageCart .cart-bulk-select-all{align-self:stretch;padding-inline:3px}
#pageCart .cart-bulk-select-all #cartSelectedCount{margin-left:2px}
#pageCart .cart-secondary-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:5px}
#pageCart .cart-secondary-actions .button{width:100%;min-width:0;padding-inline:7px;white-space:normal}
#pageCart .cart-secondary-actions #clearCart{width:auto;white-space:nowrap}

/* 2026-08-12: DB絞り込みの金額4等分・項目アイコンを統一する。 */
.price-db-price-ranges{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px;padding-top:9px;border-top:1px solid var(--border)}
.price-db-price-ranges>label{display:grid;gap:4px;min-width:0}
.price-db-price-ranges>label>span{display:flex;align-items:center;gap:4px;overflow:hidden;color:var(--accent);font-size:10px;font-weight:900;white-space:nowrap;text-overflow:ellipsis}
.price-db-price-ranges>label>span i{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border:1px solid rgba(255,122,23,.5);border-radius:5px;color:var(--accent);font-size:9px;font-style:normal}
.price-db-price-ranges input{box-sizing:border-box;width:100%!important;min-width:0;min-height:40px;padding:7px 8px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:11px}
.price-db-column-filter-button span{display:flex;align-items:center;gap:6px;color:var(--accent)}
.price-db-column-filter-button span i{display:grid;place-items:center;flex:0 0 19px;width:19px;height:19px;border:1px solid rgba(255,122,23,.5);border-radius:5px;background:rgba(255,122,23,.08);color:var(--accent);font-size:9px;font-style:normal;line-height:1}
@media(max-width:649px){.price-db-price-ranges{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px}.price-db-price-ranges>label>span{font-size:8px}.price-db-price-ranges>label>span i{display:none}.price-db-price-ranges input{padding:6px 4px;font-size:10px;text-align:right}}

/* 2026-08-12: 3画面の検索・絞り込み・並べ替えとCSV操作を共通化する。 */
.database-primary-tools{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;align-items:stretch!important;gap:6px!important}
.database-primary-tools>.unified-search-row,.database-primary-tools>.unified-three-actions{grid-column:1/-1;width:100%;min-width:0}
.database-primary-tools>#databaseImportStatus{grid-column:1/-1}
.unified-filter-toolbar,.unified-control-toolbar.unified-filter-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;align-items:stretch;gap:6px;margin-bottom:7px}
.unified-filter-toolbar>.price-db-search,.unified-filter-toolbar>.search{grid-area:auto!important;width:100%;min-width:0;margin:0}
.unified-three-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:6px;min-width:0}
.unified-three-actions>*{width:100%;min-width:0;min-height:42px}
.unified-three-actions .price-db-action-button{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 8px;text-align:center}
.unified-three-actions .price-db-action-button>span{grid-row:auto;font-size:16px;line-height:1}
.unified-three-actions .price-db-action-button>b{align-self:center;font-size:11px;line-height:1.15}
.unified-three-actions .sort-direction-toggle{display:flex;align-items:center;justify-content:center;text-align:center}
html[data-theme="dark"] .filter-sort-action{border-color:#fff!important;background:#fff!important;color:#050505!important;box-shadow:none!important}
html[data-theme="dark"] .filter-sort-action:hover,html[data-theme="dark"] .filter-sort-action:focus-visible{border-color:#d8d8d8!important;background:#e8e8e8!important;color:#050505!important}
html[data-theme="light"] .filter-sort-action{border-color:#111!important;background:#111!important;color:#fff!important;box-shadow:none!important}
html[data-theme="light"] .filter-sort-action:hover,html[data-theme="light"] .filter-sort-action:focus-visible{border-color:#333!important;background:#333!important;color:#fff!important}
.filter-sort-action.active{outline:2px solid var(--new);outline-offset:-2px}
button,.button{text-align:center}
button[id*="Csv"],button[id*="csv"],button[id*="CSV"],.csv-action{border-color:#20a86b!important;background:#0f7a4c!important;color:#fff!important;box-shadow:0 3px 10px rgba(15,122,76,.22)!important}
button[id*="Csv"]:hover,button[id*="csv"]:hover,button[id*="CSV"]:hover,.csv-action:hover{border-color:#39c985!important;background:#15945d!important;color:#fff!important}
button[id*="Csv"]:disabled,button[id*="csv"]:disabled,button[id*="CSV"]:disabled,.csv-action:disabled{border-color:#365c4b!important;background:#243e33!important;color:#9eb7aa!important;box-shadow:none!important}
.price-db-price-ranges{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(0,1fr) auto minmax(0,1fr)!important;align-items:end}
.price-range-separator{display:grid;place-items:center;align-self:end;height:40px;color:var(--accent);font-size:17px;font-style:normal;font-weight:900}
@media(max-width:720px){
  .database-primary-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .database-primary-tools>#add,.database-primary-tools>#csvImportButton,.database-primary-tools>#csvExportButton{width:100%;min-width:0;padding-inline:5px}
  .unified-three-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .unified-three-actions .price-db-action-button,.unified-three-actions .sort-direction-toggle{min-width:0;min-height:42px;padding:6px 4px;font-size:10px}
  .price-db-price-ranges{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(0,1fr) auto minmax(0,1fr)!important;gap:3px}
  .price-range-separator{height:38px;font-size:14px}
}

/* 2026-08-12: Professional SaaS semantic UI layer (admin only).
   Existing layouts, editor ratios, workflows and exported artwork stay intact. */
html[data-theme="dark"] body.admin-body{
  --app-background:#0B0B0D;--main-background:#0B0B0D;
  --surface-primary:#121317;--surface-secondary:#181A20;--surface-elevated:#20232A;
  --control-background:#20232A;--control-hover:#272B33;
  --border-default:#2A2D33;--border-strong:#454A54;
  --text-primary:#F5F7FA;--text-secondary:#AEB4BD;--text-muted:#7B828C;
  --color-action:#FF6A00;--color-action-hover:#FF7A1A;--color-action-contrast:#FFFFFF;
  --color-data:#20D9C2;--color-info:#6EA8FF;--color-warning:#F6C344;--color-danger:#FF5B6E;
  --focus-ring:#FF8A3D;--overlay-shadow:rgba(0,0,0,.48);
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;
  --radius-control:8px;--radius-card:10px;--radius-modal:14px;
  --bg:var(--app-background);--surface:var(--surface-primary);--card:var(--surface-secondary);--elevated:var(--surface-elevated);
  --input-bg:var(--control-background);--input-hover:var(--control-hover);--border:var(--border-default);
  --text:var(--text-primary);--muted:var(--text-secondary);--accent:var(--color-action);--accent-strong:var(--color-action-hover);
  --accent-contrast:var(--color-action-contrast);--new:var(--color-data);--hot:var(--color-danger);--warning:var(--color-warning);--focus:var(--focus-ring);
}
html[data-theme="light"] body.admin-body{
  --app-background:#F3F5F7;--main-background:#F7F8FA;
  --surface-primary:#FFFFFF;--surface-secondary:#F8F9FB;--surface-elevated:#FFFFFF;
  --control-background:#F3F5F7;--control-hover:#EEF1F4;
  --border-default:#D9DEE5;--border-strong:#C3CAD3;
  --text-primary:#181A1F;--text-secondary:#5F6670;--text-muted:#89919C;
  --color-action:#D94F00;--color-action-hover:#B94300;--color-action-contrast:#FFFFFF;
  --color-data:#0F766E;--color-info:#1D4ED8;--color-warning:#8A5A00;--color-danger:#C62828;
  --focus-ring:#D94F00;--overlay-shadow:rgba(25,32,43,.18);
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;
  --radius-control:8px;--radius-card:10px;--radius-modal:14px;
  --bg:var(--app-background);--surface:var(--surface-primary);--card:var(--surface-secondary);--elevated:var(--surface-elevated);
  --input-bg:var(--control-background);--input-hover:var(--control-hover);--border:var(--border-default);
  --text:var(--text-primary);--muted:var(--text-secondary);--accent:var(--color-action);--accent-strong:var(--color-action-hover);
  --accent-contrast:var(--color-action-contrast);--new:var(--color-data);--hot:var(--color-danger);--warning:var(--color-warning);--focus:var(--focus-ring);
}
html[data-theme] body.admin-body{background:var(--app-background);color:var(--text-primary);font-size:14px;line-height:1.5}
html[data-theme] body.admin-body .admin-main{background:var(--main-background);color:var(--text-primary)}
html[data-theme] body.admin-body :where(.admin-header,.cloud-status,.admin-tabs){border-color:var(--border-default);background:var(--surface-primary);color:var(--text-primary);box-shadow:none}
html[data-theme] body.admin-body :where(.dialog-title,.price-pane-heading,.market-panel-head,.card-title-menu-button){border-color:var(--border-default)!important;background:var(--surface-primary)!important;color:var(--text-primary)!important;box-shadow:none!important}
html[data-theme] body.admin-body :where(.price-db-dialog-actions,.database-column-actions,.database-column-layout-actions,.ui-confirm-actions){border-color:var(--border-default)!important;background:var(--surface-primary)!important;color:var(--text-primary)!important}
html[data-theme] body.admin-body :where(.panel,.bulk,.summary-box,.database-layout-panel,.price-database-pane,.market-links,.flyer-settings,.export-panel,.public-output-settings,.public-filter-preset-settings,.public-analytics-dashboard,.public-analytics-detail-grid>section,.deck-panel,.deck-toolbar,.deck-editor-panel,.deck-current-panel,.deck-card,.deck-group,.deck-manage-row,.appraisal-panel,.x-composer-panel,.cart-import-panel,.table-wrap){border-color:var(--border-default);background:var(--surface-primary);color:var(--text-primary);box-shadow:none;border-radius:var(--radius-card)}
html[data-theme] body.admin-body :where(.summary-box,.deck-group,.price-db-card,.appraisal-history-list article,.bulk-title-selection-list>label){background:var(--surface-secondary)}
html[data-theme] body.admin-body :where(h1){font-size:clamp(22px,2vw,24px);line-height:1.25}
html[data-theme] body.admin-body :where(h2,.dialog-title h2){font-size:18px;line-height:1.35}
html[data-theme] body.admin-body :where(h3,legend){font-size:16px;line-height:1.4}
html[data-theme] body.admin-body :where(label,.form-label){font-size:13px}
html[data-theme] body.admin-body :where(.save-note,.selection-hint,.helper-text,.local-image-note){color:var(--text-muted);font-size:12px}
html[data-theme] body.admin-body :where(.summary-box b,.price-db-card-price,.cart-current-price,.usage-analytics-metrics strong){color:var(--color-data);font-variant-numeric:tabular-nums}

html[data-theme] body.admin-body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.ui-input,.filter-combobox-trigger){min-height:38px;border:1px solid var(--border-default)!important;border-radius:var(--radius-control);background:var(--control-background)!important;color:var(--text-primary)!important;box-shadow:none!important}
html[data-theme] body.admin-body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.ui-input,.filter-combobox-trigger):hover{border-color:var(--border-strong)!important;background:var(--control-hover)!important}
html[data-theme] body.admin-body :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.ui-input,.filter-combobox-trigger):focus{border-color:var(--color-action)!important;background:var(--control-background)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--focus-ring) 22%,transparent)!important;outline:0}
html[data-theme] body.admin-body :where(input,select,textarea,.ui-input,.filter-combobox-trigger):disabled{cursor:not-allowed;opacity:.48;filter:saturate(.25)}
html[data-theme] body.admin-body :where(input,textarea)::placeholder{color:var(--text-muted);opacity:1}
html[data-theme] body.admin-body :where(input[type="checkbox"],input[type="radio"]){accent-color:var(--color-action)}

html[data-theme] body.admin-body :where(.button,.ui-button,.public-filter-action,.price-db-action-button,.appraisal-db-action-button,.database-column-sort button,.database-column-position button,.database-column-choice-actions button,.public-sort-options button,.public-grid-buttons button,.layout-preset,.format-preset,.filter-combobox-options button,.category-combobox-options button){min-height:36px;border:1px solid var(--border-default)!important;border-radius:var(--radius-control);background:var(--surface-secondary)!important;color:var(--text-primary)!important;box-shadow:none!important;font-size:13px;font-weight:700}
html[data-theme] body.admin-body :where(.button,.ui-button,.public-filter-action,.price-db-action-button,.appraisal-db-action-button,.database-column-sort button,.database-column-position button,.database-column-choice-actions button,.public-sort-options button,.public-grid-buttons button,.layout-preset,.format-preset,.filter-combobox-options button,.category-combobox-options button):hover{border-color:var(--border-strong)!important;background:var(--control-hover)!important;color:var(--text-primary)!important}
html[data-theme] body.admin-body :where(.ui-button--primary,.button.primary,[data-ui-commit],.public-apply-button){border-color:var(--color-action)!important;background:var(--color-action)!important;color:var(--color-action-contrast)!important;font-weight:900!important}
html[data-theme] body.admin-body :where(.ui-button--primary,.button.primary,[data-ui-commit],.public-apply-button):hover{border-color:var(--color-action-hover)!important;background:var(--color-action-hover)!important;color:var(--color-action-contrast)!important}
html[data-theme] body.admin-body :where(.ui-button--danger,.button.danger,.delete,[class*="-delete"],[class*="-remove"]){border-color:color-mix(in srgb,var(--color-danger) 72%,var(--border-default))!important;background:transparent!important;color:var(--color-danger)!important;box-shadow:none!important}
html[data-theme] body.admin-body :where(.ui-button--danger,.button.danger,.delete,[class*="-delete"],[class*="-remove"]):hover{background:color-mix(in srgb,var(--color-danger) 10%,var(--surface-primary))!important}
html[data-theme] body.admin-body :where(.button,.ui-button,.public-filter-action,.price-db-action-button,.appraisal-db-action-button,.filter-sort-action,.csv-action,button[id*="Csv"],button[id*="csv"],button[id*="CSV"]):disabled{border-color:var(--border-default)!important;background:var(--control-background)!important;color:var(--text-muted)!important;box-shadow:none!important;opacity:.48}
html[data-theme] body.admin-body :where(.filter-sort-action,.csv-action,button[id*="Csv"],button[id*="csv"],button[id*="CSV"],.ui-button--external,.button.market,.market-open-full){border-color:var(--border-default)!important;background:var(--surface-secondary)!important;color:var(--text-primary)!important;box-shadow:none!important}
html[data-theme] body.admin-body :where(.filter-sort-action,.csv-action,button[id*="Csv"],button[id*="csv"],button[id*="CSV"],.ui-button--external,.button.market,.market-open-full):hover{border-color:var(--border-strong)!important;background:var(--control-hover)!important;color:var(--text-primary)!important}
html[data-theme] body.admin-body :where(.ui-button--toggle.active,.ui-button--toggle[aria-pressed="true"],.segmented button.active,.chips button.active,.public-grid-buttons button.active,.database-column-sort button.active,.layout-preset.active,.format-preset.active,.filter-sort-action.active){border-color:var(--color-action)!important;background:color-mix(in srgb,var(--color-action) 10%,var(--surface-primary))!important;color:var(--color-action)!important;box-shadow:inset 0 -2px 0 var(--color-action)!important}
html[data-theme] body.admin-body .admin-tabs button{border:0!important;border-bottom:2px solid transparent!important;border-radius:0;background:transparent!important;color:var(--text-secondary)!important;box-shadow:none!important;font-size:14px;font-weight:700}
html[data-theme] body.admin-body .admin-tabs button:hover{background:var(--surface-secondary)!important;color:var(--text-primary)!important}
html[data-theme] body.admin-body .admin-tabs button.active{border-bottom-color:var(--color-action)!important;background:color-mix(in srgb,var(--color-action) 7%,var(--surface-primary))!important;color:var(--text-primary)!important;box-shadow:none!important}

html[data-theme] body.admin-body :where(.filter-combobox-popup,.category-combobox-popup,.database-column-filter-dialog,.database-column-layout-dialog,dialog:not(.flyer-page),.ui-confirm-dialog){border-color:var(--border-default);border-radius:var(--radius-modal);background:var(--surface-elevated);color:var(--text-primary);box-shadow:0 24px 72px var(--overlay-shadow)}
html[data-theme] body.admin-body :where(.filter-combobox-options button.selected,.category-combobox-options button.selected){border-color:var(--color-action)!important;background:color-mix(in srgb,var(--color-action) 10%,var(--surface-primary))!important;color:var(--text-primary)!important}
html[data-theme] body.admin-body .filter-combobox-options button.selected::before{color:var(--color-action)}
html[data-theme] body.admin-body .filter-combobox-popup .filter-option-search{border-color:var(--border-default)!important;background:var(--control-background)!important;color:var(--text-primary)!important}
html[data-theme] body.admin-body .filter-combobox-popup .filter-option-search>input{background:transparent!important;color:var(--text-primary)!important;box-shadow:none!important}
html[data-theme] body.admin-body :where(.price-db-column-filter-button span,.price-db-price-ranges>label>span){color:var(--text-primary)}
html[data-theme] body.admin-body :where(.price-db-column-filter-button span i,.price-db-price-ranges>label>span i){border-color:var(--border-default);background:var(--control-background);color:var(--text-secondary)}

html[data-theme] body.admin-body :where(.price-db-card,.table-wrap tbody tr,.appraisal-history-list article){border-color:var(--border-default);background:var(--surface-secondary);box-shadow:none}
html[data-theme] body.admin-body :where(.price-db-card.keyboard-selected,.price-db-card.bulk-selected,.table-wrap tbody tr:has(input[type="checkbox"]:checked)){border-color:var(--color-action)!important;background:color-mix(in srgb,var(--color-action) 7%,var(--surface-secondary))!important;box-shadow:inset 3px 0 var(--color-action)!important}
html[data-theme] body.admin-body .price-update-column .cart-item,
html[data-theme] body.admin-body .price-update-column .cart-item:is(.changed,.invalid,.keyboard-selected,.bulk-selected){border:1px solid var(--border-default)!important;background:var(--surface-secondary)!important;box-shadow:none!important}
html[data-theme] body.admin-body .price-update-column .cart-item:is(.keyboard-selected,.bulk-selected){border-color:var(--color-action)!important;background:color-mix(in srgb,var(--color-action) 7%,var(--surface-secondary))!important;box-shadow:inset 4px 0 var(--color-action)!important}
html[data-theme] body.admin-body .price-update-column .cart-item.changed{border-color:color-mix(in srgb,var(--color-data) 58%,var(--border-default))!important;box-shadow:inset 3px 0 var(--color-data)!important}
html[data-theme] body.admin-body .price-update-column .cart-item.invalid{border-color:var(--color-danger)!important;box-shadow:inset 3px 0 var(--color-danger)!important}
html[data-theme] body.admin-body :where(.cart-price input,.appraisal-price-summary input){border-color:color-mix(in srgb,var(--color-data) 60%,var(--border-default))!important;background:color-mix(in srgb,var(--color-data) 9%,var(--control-background))!important;color:var(--color-data)!important}
html[data-theme] body.admin-body :where(.cart-stock,.price-pane-heading>span,.cloud-status[data-state="保存済み"] .cloud-status-dot){color:var(--color-data)}
html[data-theme] body.admin-body .cloud-status[data-state="保存済み"] .cloud-status-dot{background:var(--color-data)}
html[data-theme] body.admin-body :where(.cart-save-state[data-state="pending"],.cloud-status[data-state="保存中"] .cloud-status-dot,.cloud-status[data-state="読込中"] .cloud-status-dot,.cloud-status[data-state="未保存"] .cloud-status-dot){color:var(--color-warning);background-color:var(--color-warning)}
html[data-theme] body.admin-body :where(.toast[data-kind="warning"]){border-color:var(--color-warning);background:color-mix(in srgb,var(--color-warning) 10%,var(--surface-elevated));color:var(--color-warning)}
html[data-theme] body.admin-body :where(.toast[data-kind="error"],.cart-price-error){border-color:var(--color-danger);color:var(--color-danger)}

html[data-theme] body.admin-body,html[data-theme] body.admin-body *{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--text-muted) 72%,transparent) transparent}
html[data-theme] body.admin-body ::-webkit-scrollbar{width:10px;height:10px}
html[data-theme] body.admin-body ::-webkit-scrollbar-track{background:transparent}
html[data-theme] body.admin-body ::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:999px;background:color-mix(in srgb,var(--text-muted) 72%,transparent);background-clip:padding-box}
html[data-theme] body.admin-body ::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--text-secondary) 88%,transparent);background-clip:padding-box}

/* Exported X/flyer artwork keeps its own design tokens and fixed rendering. */
html[data-theme] body.admin-body :where(.flyer-page,.flyer-page *,.flyer-card,.flyer-card *){box-shadow:revert-layer}

/* 2026-08-12: light-theme surface cleanup and shared embedded-DB toolbar. */
body.admin-body:not(.all-titles-mode) #priceDbTitleFilterButton{display:none!important}
body.admin-body.all-titles-mode #priceDbTitleFilterButton{display:grid!important}
#priceDbSort[hidden],#priceDbSortDirection[hidden]{display:none!important}
.price-db-filter-actions .unified-three-actions>*{grid-area:auto!important;grid-column:auto!important;grid-row:auto!important}
.price-db-filter-actions .unified-three-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-columns:0!important;grid-auto-flow:row!important}

@media(min-width:761px){
  html[data-theme] body.admin-body #cardTitleMenuButton{position:fixed!important;top:8px!important;left:8px!important;margin:0!important}
  html[data-theme] body.admin-body #adminWorkspaceHeader{top:0;min-height:72px;padding-top:8px!important;padding-bottom:8px!important}
}
@media(max-width:760px){
  html[data-theme] body.admin-body #cardTitleMenuButton{position:sticky!important;top:4px!important;left:auto!important;margin:4px 8px!important}
}

html[data-theme="light"] body.admin-body :where(
  .card-title-choice,
  .card-title-choice-all,
  .appraisal-workspace,
  .appraisal-database-pane,
  .appraisal-list-pane,
  .appraisal-session-header,
  .appraisal-item,
  .appraisal-item-image,
  .appraisal-database-price,
  .price-db-bulk-actions,
  .price-db-card-image,
  .database-column-layout-row button,
  .edit-image-preview,
  .deck-card img,
  .deck-card .deck-thumb,
  .oripa-source-heading,
  .oripa-db-bulk-actions,
  .oripa-db-card-image,
  .oripa-editor-pane,
  .oripa-editor-frame,
  .oripa-editor-loading,
  .image-manager-preview
){border-color:var(--border-default)!important;background:var(--surface-secondary)!important;color:var(--text-primary)!important;box-shadow:none!important}
html[data-theme="light"] body.admin-body :where(.card-title-menu-logo,.all-title-filter-logo){border-color:var(--border-default)!important;background:var(--control-background)!important;color:var(--color-action)!important}
html[data-theme="light"] body.admin-body .appraisal-database-price strong{color:var(--text-primary)!important}
html[data-theme="light"] body.admin-body .same-day-appraisal-note{border-color:color-mix(in srgb,var(--color-data) 38%,var(--border-default));background:color-mix(in srgb,var(--color-data) 8%,var(--surface-secondary));color:var(--color-data)}
html[data-theme="light"] body.admin-body .price-update-column .cart-item-select,
html[data-theme="light"] body.admin-body .price-update-column .cart-image-drop,
html[data-theme="light"] body.admin-body .price-update-column .cart-image-drop :where(img,.cart-thumb,.local-image-missing){background:var(--control-background)!important}
html[data-theme="light"] body.admin-body .price-update-column .cart-item-select span{border-color:var(--border-strong)!important;background:var(--surface-primary)!important}
html[data-theme="light"] body.admin-body .price-update-column .cart-editor-shell .cart-rules :where(textarea,select,input,.app-select-trigger),
html[data-theme="light"] body.admin-body .price-update-column .cart-editor-shell .cart-market-links .button{border-color:var(--border-default)!important;background:var(--control-background)!important;color:var(--text-primary)!important;box-shadow:none!important}
html[data-theme="light"] body.admin-body .price-update-column .cart-editor-shell .cart-market-links .mercari{border-color:#E85D3F!important;color:#C9472F!important}
html[data-theme="light"] body.admin-body .price-update-column .cart-editor-shell .cart-market-links .snkr{border-color:#C98A16!important;color:#8A5A00!important}
html[data-theme="light"] body.admin-body .price-update-column .cart-editor-shell .cart-market-links .cardrush{border-color:#D63A50!important;color:#B4233A!important}

/* 2026-08-12: semantic data/copy/delete actions and isolated external appraisal window. */
html[data-theme] body.admin-body :where(.csv-action,button[id*="Csv"],button[id*="csv"],button[id*="CSV"]){
  border-color:var(--color-data)!important;
  background:transparent!important;
  color:var(--color-data)!important;
  box-shadow:none!important;
}
html[data-theme] body.admin-body :where(.csv-action,button[id*="Csv"],button[id*="csv"],button[id*="CSV"]):hover{
  border-color:var(--color-data)!important;
  background:color-mix(in srgb,var(--color-data) 10%,var(--surface-primary))!important;
  color:var(--color-data)!important;
}
html[data-theme] body.admin-body :where(.copy-id,.cart-copy-id,.appraisal-copy-id){
  border-color:color-mix(in srgb,var(--color-info) 78%,var(--border-default))!important;
  background:transparent!important;
  color:var(--color-info)!important;
}
html[data-theme] body.admin-body :where(.copy-id,.cart-copy-id,.appraisal-copy-id):hover{
  border-color:var(--color-info)!important;
  background:color-mix(in srgb,var(--color-info) 10%,var(--surface-primary))!important;
  color:var(--color-info)!important;
}
html[data-theme] body.admin-body :where(.button.danger,.delete,[class*="-delete"],[class*="-remove"]){
  border-color:color-mix(in srgb,var(--color-danger) 78%,var(--border-default))!important;
  background:transparent!important;
  color:var(--color-danger)!important;
}
html[data-theme] body.admin-body :where(.csv-action,button[id*="Csv"],button[id*="csv"],button[id*="CSV"]):disabled{border-color:color-mix(in srgb,var(--color-data) 44%,var(--border-default))!important;color:var(--color-data)!important}
html[data-theme] body.admin-body :where(.copy-id,.cart-copy-id,.appraisal-copy-id):disabled{border-color:color-mix(in srgb,var(--color-info) 44%,var(--border-default))!important;color:var(--color-info)!important}
html[data-theme] body.admin-body :where(.button.danger,.delete,[class*="-delete"],[class*="-remove"]):disabled{border-color:color-mix(in srgb,var(--color-danger) 44%,var(--border-default))!important;color:var(--color-danger)!important}

html[data-theme] body.admin-body .price-update-column .cart-card-header .cart-copy-id{
  border-color:color-mix(in srgb,var(--color-info) 78%,var(--border-default))!important;
  background:transparent!important;
  color:var(--color-info)!important;
}
html[data-theme] body.admin-body .price-update-column .cart-card-header .cart-copy-id:hover,
html[data-theme] body.admin-body .price-update-column .cart-card-header .cart-copy-id:focus-visible{
  border-color:var(--color-info)!important;
  background:color-mix(in srgb,var(--color-info) 10%,var(--surface-primary))!important;
  color:var(--color-info)!important;
}
html[data-theme] body.admin-body .price-update-column .cart-state-row .remove-cart{
  border-color:color-mix(in srgb,var(--color-danger) 78%,var(--border-default))!important;
  background:transparent!important;
  color:var(--color-danger)!important;
}

html[data-admin-standalone="appraisal"] body.admin-body :where(#cardTitleMenuButton,#adminWorkspaceHeader,#adminWorkspace>.admin-tabs){display:none!important}
html[data-admin-standalone="appraisal"] body.admin-body #adminWorkspace{padding:8px!important}
html[data-admin-standalone="appraisal"] body.admin-body #pageAppraisal{margin:0}
html[data-admin-standalone="appraisal"] body.admin-body .appraisal-workspace{min-height:calc(100dvh - 78px)}

/* 2026-08-12: keep the appraisal workspace and each appraisal card stable like price update. */
.appraisal-workspace{
  grid-template-columns:clamp(250px,29%,330px) minmax(0,1fr);
  width:100%;
  max-width:100%;
}
.appraisal-database-pane,.appraisal-list-pane{max-width:100%}
.appraisal-list-pane{container:appraisal-center/inline-size}
.appraisal-session-header{
  grid-template-columns:minmax(150px,1.45fr) minmax(120px,.9fr) minmax(92px,.6fr);
  align-items:end;
}
.appraisal-session-header>div{grid-column:1/-1}
.appraisal-session-header .appraisal-session-name{grid-column:1}
.appraisal-session-header .appraisal-session-receipt{grid-column:2}
.appraisal-session-header .appraisal-session-status{grid-column:3}
.appraisal-session-header .appraisal-session-new{grid-column:1;grid-row:3;justify-self:start;min-width:150px}
.appraisal-session-header>strong{grid-column:2;grid-row:3;justify-self:end;overflow:hidden;text-overflow:ellipsis}
.appraisal-session-header .appraisal-session-save{grid-column:3;grid-row:3;width:100%}
.appraisal-item{
  grid-template-columns:clamp(118px,23cqi,154px) minmax(0,1fr);
  align-items:stretch;
  gap:11px;
  min-width:0;
  min-height:292px;
  overflow:hidden;
}
.appraisal-item-image{align-self:stretch;width:100%;height:100%;min-height:268px}
.appraisal-item-image img{display:block;min-width:0;min-height:0}
.appraisal-item-main{display:grid;grid-template-rows:auto auto auto auto auto;align-content:start;gap:7px}
.appraisal-item-heading{grid-template-columns:minmax(130px,1fr) minmax(174px,230px);gap:8px;min-height:54px}
.appraisal-item-title{min-width:0}
.appraisal-item-heading h3{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.appraisal-item-heading small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.appraisal-id-tools{grid-template-columns:62px minmax(104px,1fr);gap:5px}
.appraisal-copy-id{min-width:0;padding-inline:5px}
.appraisal-id-barcode{grid-template-rows:minmax(34px,42px) auto}
.appraisal-price-summary{grid-template-columns:minmax(0,1.55fr) minmax(105px,.7fr);gap:7px;margin-top:0}
.appraisal-price-summary input{height:54px;min-width:0;font-size:clamp(22px,4.6cqi,32px)}
.appraisal-database-price{min-width:0;padding:7px 9px}
.appraisal-database-price strong{font-size:clamp(16px,3.1cqi,20px)}
.appraisal-item-fields{grid-template-columns:minmax(78px,.72fr) minmax(125px,1.5fr) minmax(58px,.55fr);gap:7px;margin-top:0}
.appraisal-item-fields label{min-width:0}
.appraisal-item-fields .category-combobox-control{display:grid;grid-template-columns:minmax(0,1fr) 36px;width:100%;min-width:0}
.appraisal-item-fields .category-combobox-control>.appraisal-category{min-width:0;border-radius:7px 0 0 7px}
.appraisal-item-fields .category-combobox-toggle{width:36px;min-width:36px;padding:0;border-radius:0 7px 7px 0}
.appraisal-item-fields textarea{height:46px;min-height:46px;resize:none}
.appraisal-market-links{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:0}
.appraisal-market-links .button{min-width:0;min-height:40px;padding:7px 3px;overflow:hidden;font-size:clamp(9px,1.8cqi,12px);white-space:nowrap;text-overflow:ellipsis}

@container appraisal-center (max-width:650px){
  .appraisal-item{grid-template-columns:clamp(110px,26cqi,142px) minmax(0,1fr);gap:8px;min-height:286px;padding:9px}
  .appraisal-item-image{min-height:266px}
  .appraisal-item-heading{grid-template-columns:minmax(0,1fr);gap:5px;min-height:0}
  .appraisal-item-heading h3{font-size:15px}
  .appraisal-id-tools{grid-template-columns:62px minmax(100px,1fr);max-width:270px}
  .appraisal-price-summary{grid-template-columns:minmax(0,1.5fr) minmax(94px,.7fr)}
  .appraisal-price-summary input{height:49px;font-size:clamp(20px,6.2cqi,28px)}
  .appraisal-database-price strong{font-size:16px}
  .appraisal-item-fields{grid-template-columns:minmax(70px,.72fr) minmax(112px,1.45fr) 54px}
  .appraisal-item-fields input,.appraisal-item-fields select,.appraisal-item-fields textarea{min-height:36px;font-size:11px}
  .appraisal-item-fields textarea{height:40px;min-height:40px}
  .appraisal-market-links .button{min-height:37px}
}

@container appraisal-center (max-width:430px){
  .appraisal-session-header{grid-template-columns:minmax(0,1fr) minmax(92px,.62fr);gap:7px;padding:9px}
  .appraisal-session-header>div{grid-column:1/-1}
  .appraisal-session-header .appraisal-session-name{grid-column:1/-1}
  .appraisal-session-header .appraisal-session-receipt{grid-column:1}
  .appraisal-session-header .appraisal-session-status{grid-column:2}
  .appraisal-session-header .appraisal-session-new{grid-column:1;grid-row:auto;width:100%;min-width:0}
  .appraisal-session-header>strong{grid-column:2;grid-row:auto;justify-self:end}
  .appraisal-session-header .appraisal-session-save{grid-column:1/-1;grid-row:auto}
  .appraisal-item{grid-template-columns:96px minmax(0,1fr);gap:7px;padding:7px;min-height:300px}
  .appraisal-item-image{min-height:286px}
  .appraisal-item-heading h3{font-size:13px}
  .appraisal-item-heading small{font-size:9px}
  .appraisal-id-tools{grid-template-columns:58px minmax(86px,1fr)}
  .appraisal-copy-id{font-size:9px}
  .appraisal-id-barcode{grid-template-rows:31px auto}
  .appraisal-price-summary{grid-template-columns:minmax(0,1fr) 88px}
  .appraisal-price-summary input{height:46px;font-size:20px}
  .appraisal-database-price{padding:5px 7px}
  .appraisal-database-price strong{font-size:14px}
  .appraisal-item-fields{grid-template-columns:minmax(0,1fr) 54px}
  .appraisal-field-condition{grid-column:1}
  .appraisal-field-quantity{grid-column:2}
  .appraisal-field-category,.appraisal-field-memo{grid-column:1/-1}
  .appraisal-market-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:680px){
  .appraisal-workspace{display:block;overflow:visible}
  .appraisal-database-pane,.appraisal-list-pane{width:100%;max-width:none;overflow:visible;border-right:0;border-bottom:1px solid var(--border)}
  .appraisal-search-results{max-height:45dvh}
}

/* 2026-08-12: white-theme outline controls, orange DB filters and one-line DB toolbar. */
html[data-theme="light"] body.admin-body :where(
  .ui-button--toggle.active,
  .ui-button--toggle[aria-pressed="true"],
  .segmented button.active,
  .chips button.active,
  .public-grid-buttons button.active,
  .database-column-sort button.active,
  .layout-preset.active,
  .format-preset.active,
  .public-preset-filter-button,
  .public-sort-direction-toggle,
  .sort-direction-toggle,
  .filter-sort-action,
  .csv-action,
  button[id*="Csv"],
  button[id*="csv"],
  button[id*="CSV"],
  .copy-id,
  .cart-copy-id,
  .appraisal-copy-id,
  .button.danger,
  .delete,
  [class*="-delete"],
  [class*="-remove"],
  .button.market,
  .market-open-full
){background:var(--surface-primary)!important;box-shadow:none!important}
html[data-theme="light"] body.admin-body :where(
  .ui-button--toggle.active,
  .ui-button--toggle[aria-pressed="true"],
  .segmented button.active,
  .chips button.active,
  .public-grid-buttons button.active,
  .database-column-sort button.active,
  .layout-preset.active,
  .format-preset.active,
  .public-preset-filter-button.active,
  .public-sort-direction-toggle,
  .sort-direction-toggle,
  .filter-sort-action
){border-color:var(--color-action)!important;color:var(--color-action)!important}
html[data-theme="light"] body.admin-body :where(
  .ui-button--toggle.active,
  .ui-button--toggle[aria-pressed="true"],
  .segmented button.active,
  .chips button.active,
  .public-grid-buttons button.active,
  .database-column-sort button.active,
  .layout-preset.active,
  .format-preset.active,
  .public-preset-filter-button.active,
  .public-sort-direction-toggle,
  .sort-direction-toggle,
  .filter-sort-action
):hover{background:var(--control-hover)!important;color:var(--color-action)!important}

html[data-theme] body.admin-body .price-db-all-field-heading strong,
html[data-theme] body.admin-body .price-db-column-filter-button span,
html[data-theme] body.admin-body .price-db-column-filter-button small,
html[data-theme] body.admin-body .price-db-column-filter-button b,
html[data-theme] body.admin-body .price-db-price-ranges>label>span{color:var(--color-action)!important}
html[data-theme] body.admin-body .price-db-column-filter-button span i,
html[data-theme] body.admin-body .price-db-price-ranges>label>span i{
  border-color:color-mix(in srgb,var(--color-action) 58%,var(--border-default))!important;
  background:transparent!important;
  color:var(--color-action)!important;
}
html[data-theme] body.admin-body .price-db-column-filter-button b{
  display:flex!important;
  place-items:unset!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:18px!important;
  height:22px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  font-size:16px!important;
  font-weight:900!important;
}
html[data-theme] body.admin-body .price-db-column-filter-button.active{
  border-color:var(--color-action)!important;
  background:color-mix(in srgb,var(--color-action) 5%,var(--surface-secondary))!important;
}
html[data-theme="light"] body.admin-body .price-db-column-filter-button.active{background:var(--surface-primary)!important}

html[data-theme] body.admin-body .database-primary-tools{
  display:grid!important;
  grid-template-columns:minmax(220px,1fr) repeat(6,max-content)!important;
  align-items:stretch!important;
  gap:6px!important;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:3px;
}
html[data-theme] body.admin-body .database-primary-tools>.unified-search-row{
  grid-column:auto!important;
  width:100%!important;
  min-width:220px!important;
  margin:0!important;
}
html[data-theme] body.admin-body .database-primary-tools>.unified-three-actions{display:contents!important}
html[data-theme] body.admin-body .database-primary-tools>.unified-three-actions>*{
  width:auto!important;
  min-width:max-content!important;
  min-height:42px!important;
  white-space:nowrap;
}
html[data-theme] body.admin-body .database-primary-tools>#add,
html[data-theme] body.admin-body .database-primary-tools>#csvImportButton,
html[data-theme] body.admin-body .database-primary-tools>#csvExportButton{
  grid-column:auto!important;
  grid-row:auto!important;
  width:auto!important;
  min-width:max-content!important;
  white-space:nowrap;
}
html[data-theme] body.admin-body .database-primary-tools>#databaseImportStatus{grid-column:1/-1!important}

/* 2026-08-15: 管理グループ保存と投稿画像保存を価格管理バーへ統合する。 */
#pageCart .price-toolbar-export-results .download-all-flyer-files{order:-1}

/* 2026-08-12: X投稿画像の設定をタイトル・注記・比率対応背景・手動/自動配置へ簡素化。 */
#pageCart .flyer-title-setting{display:grid;gap:7px;min-width:0}
#pageCart .flyer-title-setting>#addFlyerTitle{width:100%;min-height:40px}
#pageCart .flyer-title-editor{
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  align-items:end;
  gap:7px;
  min-width:0;
}
#pageCart .flyer-title-editor[hidden]{display:none!important}
#pageCart .flyer-title-editor>label{min-width:0}
#pageCart .flyer-title-editor>#removeFlyerTitle{min-height:40px}
#pageCart .flyer-footer-control{margin-top:0}
#pageCart .flyer-background-control>small{grid-column:1/-1}
#pageCart .flyer-template-controls{
  display:grid;
  gap:6px;
  margin-top:8px;
}
#pageCart .flyer-settings{container:flyer-settings/inline-size}
#pageCart .flyer-template-controls .flyer-format-presets,
#pageCart .flyer-template-controls .flyer-layout-presets{
  display:grid;
  gap:5px;
  margin:0;
}
#pageCart .flyer-template-controls .flyer-format-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
#pageCart .flyer-template-controls .flyer-layout-presets{grid-template-columns:repeat(5,minmax(0,1fr));padding:5px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
#pageCart .flyer-template-controls .button{
  width:100%;
  min-width:0;
  min-height:36px;
  padding:6px 4px;
  white-space:nowrap;
}
#pageCart .flyer-template-controls .button.active{
  border-color:var(--color-action);
  background:var(--color-action);
  color:#fff;
}
#pageCart .flyer-layout-presets .layout-preset{border-color:var(--border);background:var(--card);color:var(--text)}
#pageCart .flyer-layout-presets .layout-preset.active{border-color:var(--color-action);background:var(--color-action);color:#fff;box-shadow:0 0 0 2px color-mix(in srgb,var(--color-action) 24%,transparent)}
#pageCart .flyer-layout-presets .layout-preset:focus-visible{outline:2px solid var(--color-action);outline-offset:2px}
#pageCart .flyer-layout-quick-controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:7px;
  margin-top:8px;
}
#pageCart .flyer-layout-choice{
  display:grid;
  grid-template-columns:minmax(72px,1fr) minmax(36px,.55fr) auto minmax(36px,.55fr);
  align-items:center;
  gap:5px;
  min-width:0;
  margin:0;
  padding:7px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--surface);
}
#pageCart .flyer-layout-choice:last-child{grid-template-columns:minmax(92px,1fr) minmax(58px,.65fr)}
#pageCart .flyer-layout-choice.active{
  border-color:var(--color-action);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--color-action) 30%,transparent);
}
#pageCart .flyer-layout-choice>button{min-width:0;min-height:38px;padding:7px 9px;white-space:nowrap;line-height:1.2}
#pageCart .flyer-layout-choice.active>button{
  border-color:var(--color-action);
  background:var(--color-action);
  color:#fff;
}
#pageCart .flyer-layout-choice>.flyer-layout-value{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-width:0;
  color:var(--muted);
  font-size:10px;
}
#pageCart .flyer-layout-value>.app-select-control{flex:1 1 auto;min-width:48px}
#pageCart .flyer-layout-value>.app-select-control>.app-select-trigger{
  width:100%;
  min-width:48px;
  padding-inline:7px;
  color:var(--text);
  font-weight:800;
  white-space:nowrap;
}
#pageCart .flyer-layout-value>.app-select-control>.app-select-trigger>span{
  display:block;
  min-width:2ch;
  overflow:visible;
  color:inherit;
  opacity:1;
}
#pageCart .flyer-layout-choice select{
  width:100%;
  min-width:0;
  min-height:38px;
  padding:6px;
  text-align:center;
}
#pageCart .flyer-pagination-summary[hidden]{display:none!important}
.flyer-page .poster-top,.flyer-page:not(.has-poster-logo) .poster-top,.flyer-page.poster-black .poster-top{
  grid-template-columns:58px minmax(0,1fr)!important;
}
@media(max-width:560px){
  #pageCart .flyer-layout-choice>button{padding-inline:5px}
}
@container flyer-settings (max-width:480px){
  #pageCart .flyer-template-controls .flyer-layout-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
  #pageCart .flyer-layout-quick-controls{grid-template-columns:minmax(0,1fr)}
  #pageCart .flyer-layout-choice{
    grid-template-columns:minmax(104px,1.25fr) minmax(58px,.7fr) auto minmax(58px,.7fr);
  }
  #pageCart .flyer-layout-choice:last-child{grid-template-columns:minmax(104px,1fr) minmax(72px,.65fr)}
}
@container flyer-settings (max-width:270px){
  #pageCart .flyer-template-controls .flyer-layout-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
  #pageCart .flyer-layout-choice{
    grid-template-columns:minmax(92px,1fr) minmax(50px,.65fr) auto minmax(50px,.65fr);
    padding:5px;
    gap:3px;
  }
}
/* Long lists keep off-screen layout and paint work out of the interaction frame. */
.cart-item,.price-db-card,.appraisal-item,.deck-card,.snapshot-manage-row{content-visibility:auto;contain-intrinsic-size:auto 260px}
.admin-page:not(.active){content-visibility:hidden}

/* Development support: errors can be reported without sending card or customer data. */
.error-report-open{
  border-color:color-mix(in srgb,var(--color-action) 72%,var(--border));
  color:var(--color-action);
}
.error-report-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  margin-inline-start:10px;
  padding:5px 10px;
  border:1px solid currentColor;
  border-radius:7px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:800;
  line-height:1.2;
  cursor:pointer;
  pointer-events:auto;
  white-space:nowrap;
}
.error-report-inline:hover{background:color-mix(in srgb,currentColor 12%,transparent)}
.error-report-dialog{
  width:min(680px,calc(100vw - 28px));
  max-height:min(820px,calc(100dvh - 28px));
  padding:0;
  border:1px solid var(--border-strong,var(--border));
  border-radius:14px;
  background:var(--surface);
  color:var(--text);
  box-shadow:0 24px 80px rgba(0,0,0,.35);
}
.error-report-dialog::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(3px)}
.error-report-dialog form{display:grid;gap:14px;padding:20px}
.error-report-dialog .dialog-title{margin:0;padding:0 0 12px;border-bottom:1px solid var(--border)}
.error-report-dialog .dialog-title small{color:var(--color-action);font-weight:900;letter-spacing:.08em}
.error-report-dialog label{display:grid;gap:7px;color:var(--text);font-weight:800}
.error-report-dialog input,.error-report-dialog textarea{width:100%;box-sizing:border-box;resize:vertical}
.error-report-guidance,.error-report-context,.error-report-status{margin:0}
.error-report-guidance{line-height:1.65;color:var(--muted)}
.error-report-context{max-height:220px;overflow:auto;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted,var(--surface-2,#1a1a1f));color:var(--muted);font-size:12px;line-height:1.55;overflow-wrap:anywhere;white-space:pre-wrap}
.error-report-status{min-height:1.5em;padding:9px 11px;border-radius:8px;font-weight:800}
.error-report-status:empty{display:none}
.error-report-status[data-state="loading"]{color:var(--color-action);background:color-mix(in srgb,var(--color-action) 12%,transparent)}
.error-report-status[data-state="success"]{color:var(--color-price,#15803d);background:color-mix(in srgb,var(--color-price,#15803d) 12%,transparent)}
.error-report-status[data-state="error"]{color:var(--danger,#dc2626);background:color-mix(in srgb,var(--danger,#dc2626) 12%,transparent)}
.error-report-login{color:inherit;font-weight:900;text-decoration:underline;text-underline-offset:3px}
.error-report-actions{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:640px){
  .error-report-dialog{width:100%;max-width:none;max-height:92dvh;margin:auto 0 0;border-radius:16px 16px 0 0}
  .error-report-dialog form{padding:16px;gap:12px}
  .error-report-actions{display:grid;grid-template-columns:1fr 1fr}
  .error-report-inline{display:flex;width:100%;margin:8px 0 0}
}

/* 2026-08-15: appraisal uses the same independently scrolling, movable split model as price update. */
.appraisal-workspace{
  --appraisal-pane-separator-size:18px;
  display:grid!important;
  grid-template-columns:minmax(230px,30fr) var(--appraisal-pane-separator-size) minmax(360px,70fr)!important;
  grid-template-rows:minmax(0,1fr);
  width:100%;
  max-width:100%;
  height:var(--appraisal-workspace-height,calc(100dvh - 145px));
  min-height:360px;
  overflow:hidden!important;
  contain:layout style;
}
.appraisal-workspace>.appraisal-database-pane,.appraisal-workspace>.appraisal-list-pane{
  min-width:0;
  max-width:100%;
  height:100%;
  overflow:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  border-right:0;
  border-bottom:0;
}
.appraisal-workspace>.appraisal-database-pane>.appraisal-pane-heading{
  position:sticky;
  top:-11px;
  z-index:3;
  margin:-11px -11px 8px;
  padding:11px;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb,var(--surface) 97%,transparent);
}
.appraisal-workspace>.appraisal-list-pane>.appraisal-session-header{
  position:sticky;
  top:-11px;
  z-index:3;
  margin:-11px -11px 11px;
  border-radius:0 0 12px 12px;
  background:color-mix(in srgb,var(--surface) 97%,transparent);
}
.appraisal-workspace .appraisal-search-results{max-height:none;overflow:visible}
.appraisal-pane-resizer{
  position:relative;
  z-index:12;
  width:var(--appraisal-pane-separator-size);
  min-height:260px;
  cursor:col-resize;
  touch-action:none;
}
.appraisal-pane-resizer::before{content:"";position:absolute;inset:0 7px;border-radius:999px;background:var(--border);transition:.15s}
.appraisal-pane-resizer:hover::before,.appraisal-pane-resizer:focus::before,.appraisal-pane-resizer.dragging::before{inset:0 6px;background:var(--accent)}
.appraisal-pane-resizer:focus{outline:0}
.appraisal-pane-resizing,.appraisal-pane-resizing *{cursor:col-resize!important;user-select:none!important}
.appraisal-pane-resizing::after{content:"";position:fixed;z-index:9998;inset:0;cursor:col-resize}
html[data-admin-standalone="appraisal"] body.admin-body .appraisal-workspace{height:var(--appraisal-workspace-height,calc(100dvh - 78px))}
@media(max-width:680px){
  .appraisal-workspace{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(180px,38fr) var(--appraisal-pane-separator-size) minmax(220px,62fr)!important;
    height:var(--appraisal-workspace-height,calc(100dvh - 136px));
    min-height:430px;
  }
  .appraisal-workspace>.appraisal-database-pane,.appraisal-workspace>.appraisal-list-pane{width:100%;height:100%;overflow:auto!important}
  .appraisal-pane-resizer{width:100%;height:var(--appraisal-pane-separator-size);min-height:var(--appraisal-pane-separator-size);cursor:row-resize}
  .appraisal-pane-resizer::before{inset:7px 0}
  .appraisal-pane-resizer:hover::before,.appraisal-pane-resizer:focus::before,.appraisal-pane-resizer.dragging::before{inset:6px 0}
  .appraisal-pane-resizing,.appraisal-pane-resizing *{cursor:row-resize!important}
  .appraisal-pane-resizing::after{cursor:row-resize}
}

/* 価格管理の確定操作を、狭い画面でも欠けない一列レイアウトに保つ。 */
[hidden]{display:none!important}
.admin-removed-control{display:none!important}
#adminWorkspaceHeader{justify-content:flex-end;padding-block:7px}
#adminWorkspaceHeader .header-actions{margin-left:auto}
#pageCart .price-toolbar-center{display:grid;grid-template-columns:max-content minmax(150px,1fr) max-content max-content max-content;align-items:end;overflow:visible}
#pageCart .price-toolbar-title{min-width:150px}
#pageCart .price-toolbar-scale{min-width:106px}
#pageCart .price-toolbar-save,#pageCart .price-toolbar-image-save,#pageCart .price-toolbar-scale{flex:none}
#pageCart .price-toolbar-image-save[aria-disabled="true"]{opacity:.48;cursor:not-allowed;filter:saturate(.45)}
@media(max-width:1300px){
  #pageCart .price-toolbar-center{grid-template-columns:minmax(150px,1fr) max-content max-content max-content}
  #pageCart .price-toolbar-heading{display:none}
}
@media(max-width:900px){
  #pageCart .price-toolbar-center{overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:2px;scrollbar-width:thin}
  #pageCart .price-toolbar-reset{width:40px;padding-inline:0}
  #pageCart .price-toolbar-reset span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
}

/* 価格管理バーは表示値だけで意味が分かるため、補助見出しを高さに使わない。 */
#pageCart .price-toolbar-heading,#pageCart .price-toolbar-caption,#pageCart .price-toolbar-title>em,#pageCart .price-toolbar-title>.ui-required{display:none!important}
#pageCart .price-toolbar-center{grid-template-columns:max-content minmax(150px,300px) max-content max-content max-content;align-items:center;justify-content:start}
@media(min-width:901px){#pageCart .price-toolbar-center{justify-content:center}}
#pageCart .price-toolbar-summary{display:grid;grid-template-columns:repeat(2,max-content);align-items:center;gap:4px;min-width:0}
#pageCart .price-toolbar-summary>span{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:4px;min-height:36px;padding:4px 7px;border:1px solid var(--border);border-radius:8px;background:var(--card);white-space:nowrap}
#pageCart .price-toolbar-summary small{color:var(--muted);font-size:8px;font-weight:800}
#pageCart .price-toolbar-summary b{color:var(--text);font-size:12px;line-height:1}
#pageCart .price-toolbar-summary .attention{border-color:var(--color-action);background:color-mix(in srgb,var(--color-action) 10%,var(--card))}
#pageCart .price-toolbar-summary .attention b{color:var(--color-action)}
#pageCart .price-toolbar-title,#pageCart .price-toolbar-scale{display:block;min-width:0}
#pageCart .price-toolbar-title{width:clamp(150px,22vw,300px);max-width:300px}
#pageCart .price-toolbar-title input,#pageCart .price-toolbar-scale .app-select-trigger{min-height:36px}
@media(max-width:900px){
  #pageCart .price-workspace-toolbar{grid-template-columns:minmax(0,1fr) 38px;align-items:center;gap:4px;padding:5px}
  #pageCart .price-workspace-toolbar>#togglePriceDbPane,#pageCart .price-workspace-toolbar>#togglePriceXPane{display:none!important}
  #pageCart .price-toolbar-center{grid-template-columns:minmax(88px,1fr) 64px 64px 86px;gap:4px;overflow:visible;padding:0}
  #pageCart .price-toolbar-summary{grid-column:1/-1;display:flex;gap:4px}
  #pageCart .price-toolbar-summary>span{min-height:28px;padding:3px 6px}
  #pageCart .price-toolbar-title{grid-column:1;width:100%;max-width:none}
  #pageCart .price-toolbar-title{min-width:88px}
  #pageCart .price-toolbar-scale{min-width:64px;width:64px}
  #pageCart .price-toolbar-scale .app-select-control,#pageCart .price-toolbar-scale .app-select-trigger{width:100%;min-width:0}
  #pageCart .price-toolbar-save{width:64px;padding-inline:4px}
  #pageCart .price-toolbar-image-save{width:86px;padding-inline:4px;gap:3px}
  #pageCart .price-toolbar-image-save svg{width:17px;height:17px}
  .admin-body[data-admin-route="price-update"] .price-workspace.left-pane-hidden>.price-database-pane,.admin-body[data-admin-route="price-update"] .price-workspace.right-pane-hidden>.flyer-side-column{display:block!important}
}
@media(max-width:360px){
  #pageCart .price-workspace-toolbar{grid-template-columns:minmax(0,1fr)}
  #pageCart .price-toolbar-reset{display:none!important}
  #pageCart .price-toolbar-center{grid-template-columns:minmax(70px,1fr) 60px 58px 80px}
  #pageCart .price-toolbar-summary{grid-column:1/-1}
  #pageCart .price-toolbar-title{min-width:70px}
  #pageCart .price-toolbar-scale{min-width:58px;width:58px}
  #pageCart .price-toolbar-save{width:60px}
  #pageCart .price-toolbar-image-save{width:80px}
}

/* Output-card operation help is an app overlay and is never part of the exported image. */
.flyer-card-interaction-tip{position:fixed;z-index:240;right:auto;bottom:max(12px,env(safe-area-inset-bottom));left:50%;display:grid;gap:4px;box-sizing:border-box;width:min(360px,calc(100vw - 16px));padding:9px 11px;border:1px solid rgba(0,230,184,.82);border-radius:9px;background:rgba(4,15,14,.96);color:#f5fffc;box-shadow:0 10px 30px rgba(0,0,0,.38);font-size:11px;line-height:1.45;pointer-events:none;transform:translateX(-50%)}
.flyer-card-interaction-tip[hidden]{display:none!important}
.flyer-card-interaction-tip span{display:block}
.flyer-card-interaction-tip strong{color:#00e6b8}
.flyer-preview .flyer-card:focus-visible{outline:3px solid #00e6b8;outline-offset:-3px}

/* X post pages can be previewed and exported either separately or as one connected mosaic. */
.flyer-connected-pages{display:grid;gap:0;align-items:start;justify-items:start;background:#050505}
.flyer-connected-pages>.flyer-page{box-sizing:border-box;margin:0}
.flyer-split-pages{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start;justify-items:start;background:#171717}
.flyer-split-pages>.flyer-page{box-sizing:border-box;margin:0}
#pageCart .flyer-page-control-row{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(150px,.55fr);align-items:stretch;gap:7px;margin-top:7px}
#pageCart .flyer-page-mode-toggle{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);align-items:center;gap:5px;min-width:0;min-height:44px;padding:5px 8px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:900;cursor:pointer}
#pageCart .flyer-page-mode-toggle>span{text-align:center;transition:color .16s ease}
#pageCart .flyer-page-mode-toggle>i{position:relative;width:34px;height:20px;border:1px solid var(--border);border-radius:999px;background:var(--card);transition:background .16s ease,border-color .16s ease}
#pageCart .flyer-page-mode-toggle>i::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.3);transition:transform .16s ease}
#pageCart .flyer-page-mode-toggle[data-mode="split"]>span:first-child,#pageCart .flyer-page-mode-toggle[data-mode="combined"]>span:last-child{color:var(--color-action)}
#pageCart .flyer-page-mode-toggle[data-mode="combined"]>i{border-color:var(--color-action);background:color-mix(in srgb,var(--color-action) 28%,var(--card))}
#pageCart .flyer-page-mode-toggle[data-mode="combined"]>i::after{transform:translateX(14px);background:var(--color-action)}
#pageCart .flyer-page-mode-toggle:focus-visible{border-color:var(--color-action);outline:2px solid color-mix(in srgb,var(--color-action) 32%,transparent);outline-offset:2px}
#pageCart .flyer-auto-page-control{display:grid;grid-template-columns:auto minmax(62px,1fr) auto;align-items:center;gap:6px;min-width:0;padding:5px 7px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:10px;font-weight:900}
#pageCart .flyer-auto-page-control.active{border-color:var(--color-action)}
#pageCart .flyer-auto-page-control>.app-select-control{min-width:62px}
#pageCart .flyer-auto-page-control .app-select-trigger{width:100%;min-height:36px}
#pageCart .flyer-page-layout-settings{display:grid;gap:6px;margin-top:7px;padding:0;background:transparent}
#pageCart .flyer-page-layout-settings[hidden]{display:none!important}
#pageCart .flyer-page-layout-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;max-height:126px;overflow:auto;scrollbar-gutter:stable}
#pageCart .flyer-page-layout-item{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:stretch;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--card);overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease,opacity .15s ease}
#pageCart .flyer-page-layout-item.dragging{opacity:.45}
#pageCart .flyer-page-layout-item.flyer-page-drop-target{border-color:var(--color-action);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-action) 30%,transparent)}
#pageCart .flyer-page-drag-handle{display:grid;place-items:center;min-width:34px;padding:0;border:0;border-right:1px solid var(--border);background:color-mix(in srgb,var(--color-action) 9%,var(--card));color:var(--color-action);font-size:18px;line-height:1;cursor:grab;touch-action:none}
#pageCart .flyer-page-drag-handle:active{cursor:grabbing}
#pageCart .flyer-page-drag-handle:focus-visible{outline:2px solid var(--color-action);outline-offset:-3px}
#pageCart .flyer-page-layout-trigger{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:5px;min-width:0;min-height:38px;padding:5px 8px;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
#pageCart .flyer-page-layout-trigger:hover,#pageCart .flyer-page-layout-trigger:focus-visible{border-color:var(--color-action);outline:0}
#pageCart .flyer-page-layout-trigger>span{overflow:hidden;font-size:10px;font-weight:900;white-space:nowrap;text-overflow:ellipsis}
#pageCart .flyer-page-layout-trigger>strong{color:var(--muted);font-size:9px;white-space:nowrap}
#pageCart .flyer-page-layout-trigger>i{color:var(--color-action);font-style:normal}
.flyer-page-layout-dialog{width:min(680px,calc(100vw - 20px));padding:12px;border-color:var(--border);border-radius:16px;background:var(--surface);color:var(--text)}
.flyer-page-layout-dialog::backdrop{background:rgba(0,0,0,.7)}
.flyer-page-layout-dialog>form{display:grid;gap:10px}
.flyer-page-layout-dialog-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.flyer-page-layout-dialog-tile{width:100%;min-width:0;min-height:54px;padding:8px 5px;border-color:var(--border);background:var(--card);color:var(--text);font-size:13px;white-space:nowrap}
.flyer-page-layout-dialog-tile.active{border-color:var(--color-action);background:var(--color-action);color:#fff;box-shadow:0 0 0 2px color-mix(in srgb,var(--color-action) 24%,transparent)}
.flyer-page-layout-dialog-custom{display:grid;grid-template-columns:minmax(88px,1fr) auto minmax(88px,1fr) minmax(96px,.65fr);align-items:end;gap:7px;padding-top:2px}
.flyer-page-layout-dialog-custom>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;min-width:0;color:var(--muted);font-size:10px;font-weight:900}
.flyer-page-layout-dialog-custom>span{padding-bottom:10px;color:var(--muted);font-weight:900}
.flyer-page-layout-dialog-custom .app-select-control,.flyer-page-layout-dialog-custom .app-select-trigger{width:100%;min-width:0}
.flyer-page-layout-dialog-custom>.button{min-height:42px;background:var(--color-action);color:#fff}
@container flyer-settings (max-width:640px){#pageCart .flyer-page-layout-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container flyer-settings (max-width:430px){#pageCart .flyer-page-control-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#pageCart .flyer-page-layout-list{grid-template-columns:repeat(2,minmax(0,1fr))}#pageCart .flyer-auto-page-control{grid-template-columns:auto minmax(48px,1fr) auto;padding-inline:5px;gap:4px}}
@media(max-width:430px){.flyer-page-layout-dialog{padding:9px}.flyer-page-layout-dialog-tiles{gap:5px}.flyer-page-layout-dialog-tile{min-height:48px;padding:6px 2px;font-size:10px}.flyer-page-layout-dialog-custom{grid-template-columns:minmax(70px,1fr) auto minmax(70px,1fr) 84px;gap:5px}.flyer-page-layout-dialog-custom>label{grid-template-columns:auto minmax(0,1fr);gap:3px}.flyer-page-layout-dialog-custom>.button{min-width:0;padding-inline:8px}}

/* Title and public-filter ordering */
.bulk-title-order-panel{margin-bottom:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.bulk-title-order-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.bulk-title-order-heading small{color:var(--new);font-size:9px;font-weight:900;letter-spacing:1.2px}.bulk-title-order-heading h3{margin:2px 0}.bulk-title-order-heading p{margin:3px 0 0;color:var(--muted);font-size:10px}
.bulk-title-order-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:7px}.bulk-title-order-item{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0;padding:6px;border:1px solid var(--border);border-radius:9px;background:var(--card);cursor:grab}.bulk-title-order-item.is-dragging,.public-filter-preset-row.is-dragging{opacity:.42}
.bulk-title-order-item.is-drop-before::before,.bulk-title-order-item.is-drop-after::after,.public-filter-preset-row.is-drop-before::before,.public-filter-preset-row.is-drop-after::after{content:"";position:absolute;z-index:4;left:5px;right:5px;height:3px;border-radius:3px;background:var(--new)}.bulk-title-order-item.is-drop-before::before,.public-filter-preset-row.is-drop-before::before{top:-5px}.bulk-title-order-item.is-drop-after::after,.public-filter-preset-row.is-drop-after::after{bottom:-5px}
.bulk-title-order-drag,.public-filter-preset-drag,.bulk-title-order-actions button,.public-filter-preset-move{display:grid;place-items:center;min-width:30px;width:30px;min-height:30px;height:30px;padding:0;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--muted);cursor:pointer}.bulk-title-order-drag,.public-filter-preset-drag{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}.bulk-title-order-content{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:6px;min-width:0}.bulk-title-order-content .card-title-choice-media{width:42px;height:28px}.bulk-title-order-content img,.bulk-title-order-content .card-title-choice-logo{width:42px;height:28px;object-fit:contain;font-size:9px}.bulk-title-order-content .card-title-choice-name,.bulk-title-order-content>b{overflow:hidden;font-size:10px;white-space:nowrap;text-overflow:ellipsis}.bulk-title-order-content>b:last-child{display:none}.bulk-title-order-actions{display:flex;gap:3px}
.public-filter-preset-row{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center}.public-filter-preset-row>div:first-of-type{display:grid;min-width:0;gap:2px}.public-filter-preset-row>div:last-child{display:flex;align-items:center;gap:5px}.public-filter-preset-row .public-filter-preset-drag{cursor:grab}
@media(max-width:560px){.bulk-title-order-heading{align-items:stretch;flex-direction:column}.bulk-title-order-heading .button{width:100%}.bulk-title-order-list{grid-template-columns:1fr}.public-filter-preset-row{grid-template-columns:30px minmax(0,1fr)}.public-filter-preset-row>div:last-child{grid-column:1/-1;width:100%}.public-filter-preset-row>div:last-child .button{flex:1}}
