@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-keyword{display:grid;gap:6px;color:var(--muted);font-size:10px;font-weight:700}.database-column-keyword input,.database-column-choice-search{width:100%;min-height:43px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text)}.database-column-keyword input{padding:9px 11px}.database-column-keyword input:focus,.database-column-choice-search:focus-within{border-color:var(--accent);outline:0}.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-choice-search{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;padding:0 9px}.database-column-choice-search span{color:var(--accent);font-size:18px}.database-column-choice-search input{width:100%;min-width:0;padding:9px 0;border:0;outline:0;background:transparent;color:var(--text)}.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}}

/* 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}}
.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:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;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) .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{grid-template-columns:minmax(0,1fr)!important}.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{grid-template-columns:repeat(2,minmax(0,1fr));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:flex;gap:3px;margin-left:auto}
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{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 10px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.price-workspace-toolbar strong{color:var(--accent);font-size:11px}.price-workspace-toolbar small{margin-left:auto;color:var(--muted);font-size:9px}.price-workspace{display:grid!important;grid-template-columns:minmax(220px,24fr) 8px minmax(340px,38fr) 8px 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:8px;min-height:260px;cursor:col-resize;touch-action:none}.price-pane-resizer::before{content:"";position:absolute;inset:0 3px;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 2px;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) 8px minmax(320px,38fr) 8px 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-workspace-toolbar small{flex:1 0 100%;margin-left:0}.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:10px!important}.price-pane-resizer::before{inset:0 4px}.price-pane-resizer:hover::before,.price-pane-resizer:focus::before,.price-pane-resizer.dragging::before{inset:0 2px}
.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;top:0;bottom:0;left:-8px;right:-8px;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-psa10: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 top!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-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-pagination-summary{margin:8px 0 0;padding:7px 9px;border:1px solid rgba(255,121,0,.48);border-radius:7px;background:rgba(255,121,0,.07);color:var(--text);font-size:10px;font-weight:800}

/* 投稿画像: 更新日を正方形へ揃え、配置設定の数値入力をコンパクトに並べる。 */
.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,#pageCart .cart-save-actions{gap:4px}
#pageCart .cart-sort-actions .button,#pageCart .cart-save-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 .cart-save-actions .update-title{flex:1 1 205px;min-width:0}
#pageCart .cart-save-actions .update-title input{flex:1 1 150px;width:auto;min-width:100px;padding:6px 7px}
#pageCart .flyer-side-column .x-composer,#pageCart .flyer-side-column .flyer-settings,#pageCart .flyer-side-column .export-panel{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,#pageCart .export-panel input,#pageCart .export-panel 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}
#pageCart .export-panel{gap:5px}
#pageCart .export-panel .button{width:auto;min-width:0;padding:6px 8px}

@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{gap:4px;padding:6px}
  #pageCart .price-workspace-toolbar .button{flex:0 1 auto;padding-inline:7px}
  #pageCart .database-history,#pageCart .cart-import-panel{padding:7px}
  #pageCart .cart-import-actions .button{flex:1 1 150px}
  #pageCart .cart-sort-actions .button,#pageCart .cart-save-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:auto minmax(0,1fr) auto;align-items:center;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-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 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"]{max-width:210px;padding:5px 8px;border-radius:999px;background:#20202b;color:#d9d9e5;font-size:9px;font-weight:800;text-align:center}.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:auto minmax(0,1fr)}.flyer-reorder-guide>[role="status"]{grid-column:1/-1;max-width:none}.flyer-reorder-guide small{font-size:10px}}
.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-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}
.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>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:#9a3412;font-size:21px;font-weight:500;line-height:1;cursor:pointer}.ui-input-clear:hover,.ui-input-clear:focus-visible{background:rgba(234,88,12,.1);color:#7c2d12}.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>input{padding-right:44px!important}.ui-input-clear{width:36px;min-width:36px;height:36px;min-height:36px;margin-right:3px;font-size:23px}}

@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:none;display:grid;margin-left:auto;margin-bottom:-42px;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}}
/* PSA10かつ金額UP対象は、PSA10の元位置で2つのバッジを交互に表示する。 */
@keyframes public-psa10-badge-swap{0%,35%{opacity:1}50%,85%{opacity:0}100%{opacity:1}}
@keyframes public-hot-badge-swap{0%,35%{opacity:0}50%,85%{opacity:1}100%{opacity:0}}
body:not(.admin-body) .public-card-image-hot-psa10 .flag.grade-psa10,body:not(.admin-body) .public-card-image-hot-psa10 .public-hot-badge{top:7px;right:auto;left:7px}
body:not(.admin-body) .public-card-image-hot-psa10 .flag.grade-psa10{animation:public-psa10-badge-swap 4s ease-in-out infinite}
body:not(.admin-body) .public-card-image-hot-psa10 .public-hot-badge{animation:public-hot-badge-swap 4s ease-in-out infinite}
@media(max-width:649px){body:not(.admin-body) .public-card-image-hot-psa10 .flag.grade-psa10,body:not(.admin-body) .public-card-image-hot-psa10 .public-hot-badge{top:4px;right:auto;left:4px}body:not(.admin-body) .card-grid[data-columns="4"] .public-card-image-hot-psa10 .flag.grade-psa10,body:not(.admin-body) .card-grid[data-columns="5"] .public-card-image-hot-psa10 .flag.grade-psa10,body:not(.admin-body) .card-grid[data-columns="4"] .public-card-image-hot-psa10 .public-hot-badge,body:not(.admin-body) .card-grid[data-columns="5"] .public-card-image-hot-psa10 .public-hot-badge{top:2px;right:auto;left:2px}}
@media(prefers-reduced-motion:reduce){body:not(.admin-body) .public-card-image-hot-psa10 .flag.grade-psa10{animation:none;opacity:1;visibility:visible}body:not(.admin-body) .public-card-image-hot-psa10 .public-hot-badge{animation:none;opacity:0;visibility:hidden}}

/* 公開一覧は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{align-items:center;align-content:center;flex-wrap:wrap;gap:6px}body:not(.admin-body) .public-preset-filters:not([hidden]),body:not(.admin-body) .public-grid-buttons{display:contents}
.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}}

/* カードタイトルから独立した全体設定と公開状況。 */
.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%}}

/* タイトル行は、タイトル選択・絞り込み・並び替えを1行にまとめる。 */
body:not(.admin-body) #publicTitleRow{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 126px 126px!important;
  align-items:center;
  gap:8px;
  width:min(1080px,100%);
}
body:not(.admin-body) #publicTitleRow .card-title-menu-button{
  width:100%;
  min-height:58px;
  margin:0;
  border-color:#ea580c;
  background:linear-gradient(180deg,#fb923c,#f97316);
  box-shadow:0 5px 13px rgba(194,65,12,.18);
  text-align:center;
}
body:not(.admin-body) #publicTitleRow .card-title-menu-button:not(.has-logo){
  grid-template-columns:minmax(0,1fr);
}
body:not(.admin-body) #publicTitleRow .card-title-menu-button.has-logo{
  grid-template-columns:40px minmax(0,1fr);
  justify-content:center;
}
body:not(.admin-body) #publicTitleRow .card-title-menu-logo{justify-self:center}
body:not(.admin-body) #publicTitleRow .card-title-menu-button>span:last-child{
  justify-items:center;
  text-align:center;
}
body:not(.admin-body) #publicTitleRow .card-title-menu-button b{
  display:-webkit-box;
  max-height:2.5em;
  overflow:hidden;
  line-height:1.25;
  white-space:normal;
  text-overflow:clip;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
body:not(.admin-body) #publicTitleRow .public-title-actions{display:contents}
body:not(.admin-body) .public-title-landing h2{text-align:center}
body:not(.admin-body) .public-title-landing .card-title-choice-media,
body:not(.admin-body) .public-title-landing .card-title-choice-name{
  justify-self:center;
  text-align:center;
}

/* 検索行は、検索バーの右隣へ2〜5列の切替を2列×2段で置く。 */
body:not(.admin-body) .public-filter-actions{
  grid-template-columns:minmax(0,1fr) auto;
}
body:not(.admin-body) .summary{
  display:flex;
  align-items:center;
  gap:6px;
  width:100%;
}
body:not(.admin-body) .summary:not(:has(.public-preset-filters:not([hidden]))){display:none}
body:not(.admin-body) .public-preset-filters{
  flex:1 1 auto;
  min-width:0;
}
body:not(.admin-body) .public-preset-filters:not([hidden]){display:flex}
body:not(.admin-body) .public-grid-buttons{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(38px,auto));
  align-self:stretch;
  gap:3px;
  margin-left:0;
}
body:not(.admin-body) .public-grid-buttons button{
  display:grid;
  place-items:center;
  min-height:28px;
}

/* カード画像をcontain表示した際に生じる上下左右の余白は白で統一する。 */
body:not(.admin-body) .card-image{background:#fff}

@media(max-width:649px){
  body:not(.admin-body) #publicTitleRow{
    grid-template-columns:minmax(0,1fr) 76px 76px!important;
    gap:5px;
    padding-right:8px;
    padding-left:8px;
  }
  body:not(.admin-body) #publicTitleRow .card-title-menu-button{width:100%}
  body:not(.admin-body) .public-grid-buttons{grid-template-columns:repeat(2,minmax(36px,auto))}
  body:not(.admin-body) .public-filter-actions .public-header-search{
    gap:4px;
    padding-right:7px;
    padding-left:7px;
  }
  body:not(.admin-body) .public-filter-actions .public-header-search>span{font-size:17px}
  body:not(.admin-body) .public-filter-actions .public-header-search input::placeholder{
    color:#a8a29e;
    font-size:clamp(9px,3vw,12px);
    letter-spacing:-.04em;
    opacity:1;
  }
}
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}
