:root {
  --ink: #171717;
  --muted: #6f6f6f;
  --line: #e6e2dc;
  --paper: #fff;
  --ground: #f5f3ef;
  --accent: #c2362b;
  --accent-dark: #97251d;
  --green: #227555;
  --amber: #a76612;
}

/* 商品ジャンル管理 */
.genre-page { display: grid; gap: 22px; }
.genre-hero, .genre-panel-heading, .genre-actions, .genre-save-bar, .genre-pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.genre-hero { padding: 28px 30px; border-radius: 22px; color: #fff; background: linear-gradient(125deg, #17223b, #263d64 62%, #315d76); box-shadow: 0 16px 42px rgba(20,35,62,.16); }
.genre-hero h1 { margin: 2px 0 6px; font-size: clamp(1.7rem, 3vw, 2.55rem); }
.genre-hero p { margin: 0; }
.genre-hero .eyebrow { color: #a7def2; letter-spacing: .14em; }
.genre-flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: hidden; border: 1px solid #dce4ec; border-radius: 18px; background: #fff; }
.genre-flow li { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-right: 1px solid #e4eaf0; }
.genre-flow li:last-child { border-right: 0; }
.genre-flow b { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; color: #fff; background: #2d6d8b; }
.genre-flow span { font-weight: 700; }
.genre-flow small { display: block; margin-top: 2px; color: #6b7786; font-weight: 400; }
.genre-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.genre-summary a { padding: 17px 20px; border: 1px solid #dfe6ed; border-radius: 16px; color: #263446; background: #fff; text-decoration: none; box-shadow: 0 5px 18px rgba(30,45,65,.05); }
.genre-summary a:hover { border-color: #73a6bd; transform: translateY(-1px); }
.genre-summary small { display: block; color: #6f7d8b; }
.genre-summary strong { display: block; margin-top: 2px; font-size: 1.65rem; }
.genre-summary .warning { border-color: #e4aa46; background: #fffaf0; }
.genre-summary .danger { border-color: #d96e6e; background: #fff5f5; }
.genre-actions { padding: 18px 20px; border: 1px solid #dce4ec; border-radius: 18px; background: #fff; }
.genre-actions > div { flex: 1; }
.genre-actions form { margin: 0; }
.genre-actions progress { display: block; width: min(460px, 100%); margin-top: 10px; }
.genre-progress-text { margin: 6px 0 0; color: #526273; font-size: .9rem; }
.genre-progress-text.error, .genre-error-text { color: #b82f3d !important; }
.button.accent { color: #fff; border-color: #176b70; background: #176b70; }
.button.danger { color: #fff; border-color: #b52e3e; background: #b52e3e; }
.button.disabled { opacity: .45; pointer-events: none; }
.genre-panel { overflow: hidden; border: 1px solid #dce4ec; border-radius: 20px; background: #fff; box-shadow: 0 8px 30px rgba(35,55,75,.06); }
.genre-panel-heading { padding: 22px 24px; border-bottom: 1px solid #e4eaf0; }
.genre-panel-heading h2 { margin: 0 0 5px; }
.genre-panel-heading p { margin: 0; color: #697786; }
.genre-filter { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 180px auto; gap: 10px; padding: 16px 24px; background: #f7f9fb; }
.genre-filter input, .genre-filter select, .genre-table select, .genre-apply-box input { min-height: 42px; padding: 8px 11px; border: 1px solid #cbd6df; border-radius: 9px; background: #fff; }
.genre-table-scroll-guide { display: flex; justify-content: space-between; gap: 14px; padding: 9px 14px; border-top: 1px solid #e4eaf0; background: #f8fafb; color: #526272; font-size: 11px; font-weight: 750; }
.genre-table-scroll-top { height: 20px; overflow-x: scroll; overflow-y: hidden; border-top: 1px solid #d9e0e6; border-bottom: 1px solid #d9e0e6; background: #f2f5f8; scrollbar-color: #6f7f8d #e4e9ed; }
.genre-table-scroll-top > div { height: 1px; }
.genre-table-wrap { overflow-x: scroll; scrollbar-color: #6f7f8d #e4e9ed; }
.genre-table { width: 100%; border-collapse: collapse; min-width: 1500px; }
.genre-table th { padding: 11px 14px; color: #566474; background: #f2f5f8; text-align: left; font-size: .82rem; white-space: nowrap; }
.genre-table td { padding: 14px; border-top: 1px solid #e8edf2; vertical-align: top; }
.genre-table td:nth-child(1) { width: 18%; }
.genre-table td:nth-child(2) { width: 20%; }
.genre-table td:nth-child(3) { width: 34%; min-width: 480px; }
.genre-table td:nth-child(4) { width: 15%; }
.genre-table td:nth-child(5) { width: 13%; }
.genre-table td strong { display: inline-block; margin-right: 6px; }
.genre-table td small { display: block; margin-top: 5px; color: #6d7986; line-height: 1.45; }
.genre-table select { width: 100%; }
.genre-detail-picker { margin-top: 9px; border: 1px solid #d8e2e9; border-radius: 9px; background: #f8fafb; }
.genre-detail-picker > summary { padding: 9px 11px; color: #285f77; cursor: pointer; font-size: .78rem; font-weight: 800; }
.genre-detail-picker > small { padding: 0 11px 10px; }
.genre-detail-options { display: grid; gap: 5px; max-height: 210px; overflow-y: auto; padding: 8px 10px; border-top: 1px solid #e2e9ee; border-bottom: 1px solid #e2e9ee; background: #fff; }
.genre-detail-options label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 7px; padding: 5px 6px; border-radius: 6px; font-size: .76rem; line-height: 1.4; }
.genre-detail-options label:hover { background: #eef6f8; }
.genre-detail-options input { margin-top: 2px; }
.genre-table tr.has-warning { background: #fffaf0; }
.genre-table tr.has-error { background: #fff7f7; }
.genre-brand, .genre-status, .genre-warning-label { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.genre-brand { color: #35657b; background: #e9f4f8; }
.genre-status { color: #425363; background: #edf1f4; }
.genre-status.status-draft { color: #805a10; background: #fff0c9; }
.genre-status.status-applied { color: #176843; background: #dff4e8; }
.genre-status.status-error { color: #9f2936; background: #ffe1e4; }
.genre-current { display: block; margin-bottom: 5px; }
.genre-empty { color: #8b96a1; }
.genre-warning-label { margin-top: 6px; color: #845c0d; background: #ffe6aa; }
.genre-save-bar { padding: 16px 24px; border-top: 1px solid #e5ebf0; background: #fafbfd; justify-content: flex-end; }
.genre-save-bar small { color: #6e7b88; }
.genre-pagination { padding: 16px 24px; border-top: 1px solid #e5ebf0; }
.genre-pagination a { color: #26657f; font-weight: 700; }
.genre-alert { margin: 18px 24px 0; padding: 13px 15px; border-radius: 10px; }
.genre-alert.warning { color: #74530f; border: 1px solid #ecc96e; background: #fff8e5; }
.genre-alert.success { color: #176843; border: 1px solid #9fd7ba; background: #eef9f3; }
.genre-alert.error { color: #9f2936; border: 1px solid #e6a4aa; background: #fff0f1; }
.genre-preview-list { display: grid; gap: 0; }
.genre-preview-list article { display: grid; grid-template-columns: 1.1fr 1fr 30px 1fr; align-items: center; gap: 16px; padding: 17px 24px; border-bottom: 1px solid #e6ebf0; }
.genre-preview-list article > div > small { display: block; margin-top: 4px; color: #768290; }
.genre-preview-list .before span, .genre-preview-list .after span { display: block; margin-top: 3px; font-size: .86rem; }
.genre-preview-list .before { color: #697684; }
.genre-preview-list .after b { display: block; color: #176843; }
.genre-preview-list .arrow { color: #4a8097; font-size: 1.3rem; text-align: center; }
.genre-apply-box { display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto; align-items: center; gap: 12px; padding: 22px 24px; background: #f8fafc; }
.genre-apply-box progress, .genre-apply-box .genre-progress-text { grid-column: 1 / -1; width: 100%; }
.sidebar-tool-link .eyebrow, .sidebar-html-page .genre-panel .eyebrow { margin: 0 0 3px; color: #28708b; font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.sidebar-html-hero { background: linear-gradient(125deg, #183b35, #266253 62%, #3f7967); }
.sidebar-html-flow { grid-template-columns: repeat(4, 1fr); }
.sidebar-html-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 22px 24px 0; }
.sidebar-html-groups article { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; padding: 16px; border: 1px solid #dce4ec; border-radius: 13px; background: #f8faf9; }
.sidebar-html-groups b { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #27765d; font-size: .76rem; }
.sidebar-html-groups strong { align-self: center; }
.sidebar-html-groups small { color: #65736e; line-height: 1.45; }
.sidebar-html-upload { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: 9px 16px; padding: 22px 24px 26px; }
.sidebar-html-upload label { grid-column: 1 / -1; font-weight: 750; }
.sidebar-html-upload input[type="file"] { min-height: 48px; padding: 10px; border: 1px solid #cbd6df; border-radius: 10px; background: #fff; }
.sidebar-html-upload p { grid-column: 1 / -1; margin: 0; color: #6b7783; font-size: .88rem; }
.sidebar-pickup-fields { grid-column: 1 / -1; margin: 0 0 12px; padding: 18px; border: 1px solid #d7e1dc; border-radius: 13px; background: #f6faf8; }
.sidebar-pickup-fields legend { padding: 0 8px; color: #195c48; font-weight: 800; }
.sidebar-pickup-fields > p { margin: 0 0 14px; }
.sidebar-pickup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sidebar-pickup-grid label { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px; font-weight: 700; }
.sidebar-pickup-grid label span { color: #5c6b65; font-size: .82rem; }
.sidebar-pickup-grid input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cbd6df; border-radius: 9px; background: #fff; }
.sidebar-html-safety { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 24px 24px; }
.sidebar-html-safety p { margin: 0; padding: 16px; border-radius: 12px; color: #42534e; background: #eef6f2; }
.sidebar-publish-panel .genre-panel-heading { align-items: flex-end; }
.sidebar-preview-frame { margin: 22px 24px; overflow: hidden; border: 1px solid #cbd6df; border-radius: 14px; background: #e8ecea; }
.sidebar-preview-frame::before { content: "公開前プレビュー"; display: block; padding: 8px 12px; color: #fff; background: #263b35; font-size: .75rem; font-weight: 800; }
.sidebar-preview-frame iframe { display: block; width: 100%; height: 680px; border: 0; background: #fff; }
.sidebar-ftp-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 24px 20px; padding: 16px 18px; border: 1px solid #cbd6df; border-radius: 12px; }
.sidebar-ftp-status.ready { border-color: #9fd7ba; background: #eef9f3; }
.sidebar-ftp-status.missing { border-color: #ecc96e; background: #fff8e5; }
.sidebar-ftp-status strong,.sidebar-ftp-status p,.sidebar-ftp-status small { display: block; }
.sidebar-ftp-status p { margin: 4px 0; }
.sidebar-ftp-status small { color: #5f6c68; }
.sidebar-publish-confirm { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,300px) auto; gap: 16px; align-items: end; margin: 0; padding: 20px 24px 24px; border-top: 1px solid #e4eaf0; background: #f8faf9; }
.sidebar-publish-confirm p { margin: 5px 0 0; color: #65736e; }
.sidebar-publish-confirm label { display: grid; gap: 5px; }
.sidebar-publish-confirm label span { font-size: .78rem; font-weight: 800; }
.sidebar-publish-confirm input,.sidebar-restore-box input { min-height: 44px; padding: 9px 11px; border: 1px solid #bfcac5; border-radius: 8px; font: inherit; }
.sidebar-publish-confirm button:disabled { opacity: .45; cursor: not-allowed; }
.sidebar-restore-box { margin: 18px 24px 24px; padding: 15px 17px; border: 1px solid #e3b6b6; border-radius: 11px; background: #fff7f7; }
.sidebar-restore-box summary { color: #8d2c33; font-weight: 800; cursor: pointer; }
.sidebar-restore-box form { display: grid; grid-template-columns: minmax(0,1fr) 240px auto; gap: 12px; align-items: end; margin-top: 14px; }
.sidebar-restore-box p { margin: 0; color: #6d5658; }
.sidebar-publication-history { display: grid; gap: 0; }
.sidebar-publication-history a { display: grid; grid-template-columns: 110px minmax(180px,1fr) minmax(220px,1fr) auto; gap: 12px; align-items: center; padding: 14px 24px; border-bottom: 1px solid #e8edf2; color: inherit; text-decoration: none; }
.sidebar-publication-history a:last-child { border-bottom: 0; }
.sidebar-publication-history a:hover { background: #f7faf8; }
.sidebar-publication-history small { color: #6b7783; }
.sidebar-publication-history b { color: #27765d; font-size: .82rem; }
.sidebar-history-status { display: inline-flex; justify-content: center; padding: 5px 8px; border-radius: 999px; color: #5f6670; background: #edf0f2; font-size: .72rem; font-weight: 800; }
.sidebar-history-status.published { color: #176843; background: #dff4e8; }
.sidebar-history-status.failed { color: #9f2936; background: #ffe1e4; }
.sidebar-history-status.restored { color: #75530e; background: #fff0c9; }
.sidebar-history-empty { margin: 0; padding: 24px; color: #6b7783; }
.sidebar-settings-form { padding: 0 24px 24px; }
.sidebar-selection-tools { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin: 0 0 14px; padding: 12px 14px; border: 1px solid #d7e5de; border-radius: 11px; background: #f1f8f5; }
.sidebar-selection-tools > div { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-selection-tools .button { min-height: 36px; padding: 7px 13px; }
.sidebar-selection-tools small { color: #526b60; font-size: .78rem; }
.sidebar-category-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sidebar-category-columns > section { min-width: 0; padding: 16px; border: 1px solid #dce5e0; border-radius: 13px; background: #f8faf9; }
.sidebar-category-columns h3 { margin: 0 0 4px; color: #1c5f4b; font-size: 1rem; }
.sidebar-category-columns section > p { margin: 0 0 13px; color: #68756f; font-size: .84rem; }
.sidebar-category-choice-list { display: grid; gap: 8px; max-height: 520px; overflow: auto; }
.sidebar-category-choice-list article { display: grid; grid-template-columns: minmax(0,1fr) 74px; gap: 8px; padding: 11px; border: 1px solid #e1e7e3; border-radius: 10px; background: #fff; }
.sidebar-category-choice-list article.selected { border-color: #69ae94; background: #eef8f3; }
.sidebar-category-choice-list article > label:not(.sidebar-category-check) { display: grid; gap: 4px; color: #647069; font-size: .72rem; font-weight: 700; }
.sidebar-category-choice-list input[type="text"], .sidebar-category-choice-list input[type="number"], .sidebar-category-choice-list label > input:not([type]) { width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid #cbd6d0; border-radius: 7px; background: #fff; }
.sidebar-category-check { grid-column: 1 / -1; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: start; gap: 7px; font-size: .82rem; }
.sidebar-category-check input { margin-top: 3px; }
.sidebar-category-check span { overflow-wrap: anywhere; }
.sidebar-category-check b { padding: 3px 6px; border-radius: 999px; color: #226a52; background: #dff2e9; font-size: .68rem; white-space: nowrap; }
.sidebar-filter-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 16px 0 0; padding: 15px 17px; border: 1px solid #dce5e0; border-radius: 12px; }
.sidebar-filter-settings legend { padding: 0 6px; color: #295f4e; font-weight: 800; }
.sidebar-filter-settings label { font-weight: 700; }
.sidebar-filter-settings small { flex-basis: 100%; color: #6b7772; }
.sidebar-settings-form .genre-save-bar { margin: 16px -24px -24px; }
.sidebar-link-report { margin: 0 24px 20px; overflow: hidden; border: 1px solid #d4ddd8; border-radius: 13px; }
.sidebar-link-report.valid { border-color: #82c7aa; }
.sidebar-link-report.invalid { border-color: #df9b9f; }
.sidebar-link-report > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #f5f8f6; }
.sidebar-link-report.valid > header { background: #eaf7f0; }
.sidebar-link-report.invalid > header { background: #fff0f1; }
.sidebar-link-report header p { margin: 3px 0 0; color: #5f6d66; font-size: .84rem; }
.sidebar-link-report header > b { padding: 5px 9px; border-radius: 999px; color: #176843; background: #d7f0e2; font-size: .75rem; }
.sidebar-link-report.invalid header > b { color: #982933; background: #ffdfe2; }
.sidebar-link-report-list { display: grid; max-height: 360px; overflow: auto; }
.sidebar-link-report-list article { display: grid; grid-template-columns: 80px minmax(150px,1fr) minmax(170px,1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid #edf0ee; font-size: .82rem; }
.sidebar-link-report-list article > span { color: #617069; font-size: .7rem; font-weight: 800; }
.sidebar-link-report-list article > small { color: #58645f; }
.sidebar-link-report-list article > a { color: #176843; font-weight: 700; text-decoration: none; }
.sidebar-link-report-list article.error { background: #fff5f5; }
@media (max-width: 900px) {
  .sidebar-selection-tools { align-items: flex-start; flex-direction: column; }
  .sidebar-category-columns { grid-template-columns: 1fr; }
  .sidebar-link-report-list article { grid-template-columns: 70px 1fr; }
  .sidebar-link-report-list article > small, .sidebar-link-report-list article > a { grid-column: 2; }
}
.genre-rms-setup-guide > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 24px; cursor: pointer; list-style: none; }
.genre-rms-setup-guide > summary::-webkit-details-marker { display: none; }
.genre-rms-setup-guide > summary span { display: flex; align-items: baseline; gap: 12px; }
.genre-rms-setup-guide > summary small { color: #73808c; font-weight: 400; }
.genre-rms-setup-guide > summary strong { color: #276d57; font-size: .9rem; }
.genre-rms-setup-guide[open] > summary { border-bottom: 1px solid #e4eaf0; }
.genre-rms-setup-body { padding: 20px 24px 24px; }
.genre-rms-setup-body > p { margin: 0 0 16px; color: #596772; }
.genre-rms-tree-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.genre-rms-tree-grid section { padding: 17px 18px; border: 1px solid #d9e5df; border-radius: 13px; background: #f5faf7; }
.genre-rms-tree-grid h3 { margin: 0 0 10px; color: #205f4c; font-size: 1rem; }
.genre-rms-tree, .genre-rms-tree ul { margin: 0; padding-left: 21px; }
.genre-rms-tree > li { margin-bottom: 9px; }
.genre-rms-tree li::marker { color: #2c8064; }
.genre-rms-after-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 17px 0 0; padding: 0; list-style: none; }
.genre-rms-after-steps li { display: flex; align-items: center; gap: 8px; padding: 11px; border-radius: 10px; background: #f3f5f7; font-size: .86rem; }
.genre-rms-after-steps b { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 50%; color: #fff; background: #2d6d8b; }
.genre-rms-setup-body .genre-rms-note { margin: 15px 0 0; padding: 12px 14px; border-radius: 9px; color: #5b4b20; background: #fff7dd; }
.empty-state { padding: 36px 24px !important; color: #778493; text-align: center; }

/* RMS店舗内カテゴリ管理 */
.category-tree-hero { background: linear-gradient(125deg, #1d382f, #24614e 62%, #307a62); }
.category-tree-scope { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; padding: 16px 20px; border: 1px solid #cfe2d9; border-radius: 14px; color: #38564c; background: #f2f8f5; }
.category-tree-scope strong { color: #185e46; }
.category-tree-flow b { background: #287b5f; }
.category-api-permissions > summary { padding: 15px 19px; cursor: pointer; color: #2a5e4e; font-weight: 800; }
.category-api-permissions > div { display: grid; gap: 7px; padding: 0 19px 17px; }
.category-api-permissions code { overflow-wrap: anywhere; color: #425850; }
.category-api-permissions p { margin: 4px 0 0; color: #6c7873; }
.recommended-path-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 24px 6px; }
.recommended-path-list > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid #d8e6df; border-radius: 10px; background: #f6faf8; }
.recommended-path-list span { font-weight: 700; }
.recommended-path-list b { color: #41806a; }
.category-danger-form { display: grid; grid-template-columns: 160px minmax(240px, 1fr) auto; align-items: end; gap: 12px; padding: 18px 24px 24px; }
.category-danger-form label, .category-operation label { display: grid; gap: 6px; color: #4d5e58; font-size: .85rem; font-weight: 700; }
.category-danger-form input, .category-danger-form select, .category-operation input, .category-operation select { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #cbd8d2; border-radius: 9px; background: #fff; }
.category-editor-grid { display: grid; grid-template-columns: minmax(420px, 1.12fr) minmax(430px, .88fr); align-items: start; gap: 18px; }
.category-current-tree { max-height: 900px; }
.category-tree-list { max-height: 790px; overflow: auto; padding: 8px 0; }
.category-tree-list article { display: grid; grid-template-columns: 16px minmax(0, 1fr) max-content; align-items: center; gap: 9px; min-height: 48px; padding: 7px 18px 7px calc(18px + var(--category-indent)); border-bottom: 1px solid #edf1ef; }
.category-tree-list article:hover { background: #f5f9f7; }
.category-tree-list .tree-guide { width: 10px; height: 10px; border-left: 2px solid #86a99b; border-bottom: 2px solid #86a99b; }
.category-tree-list strong, .category-tree-list small { display: block; overflow-wrap: anywhere; }
.category-tree-list small { margin-top: 2px; color: #87928e; font-size: .72rem; }
.category-tree-list article > span:last-child { color: #78847f; font-size: .74rem; }
.category-operation-stack { display: grid; gap: 14px; }
.category-operation > summary { display: flex; align-items: center; gap: 11px; padding: 17px 19px; cursor: pointer; list-style: none; }
.category-operation > summary::-webkit-details-marker { display: none; }
.category-operation > summary b { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 50%; color: #fff; background: #287b5f; }
.category-operation > summary span { font-weight: 800; }
.category-operation > summary small { display: block; margin-top: 2px; color: #718079; font-weight: 400; }
.category-operation[open] > summary { border-bottom: 1px solid #e4ebe7; }
.category-operation form { display: grid; gap: 12px; padding: 18px 20px 21px; }
.category-operation .inline-check { display: flex; align-items: center; gap: 8px; }
.category-operation .inline-check input { width: auto; min-height: 0; }
.category-operation button { justify-self: end; }
.category-history-list article { display: grid; grid-template-columns: 130px 1fr 80px 130px; gap: 10px; padding: 13px 24px; border-top: 1px solid #e8eeeb; align-items: center; }
.category-history-list article:first-child { border-top: 0; }
.category-history-list article.failed { color: #a42b38; background: #fff7f7; }
.category-history-list article p { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
.category-history-list time, .category-history-list small { color: #74817b; }

@media (max-width: 980px) {
  .category-editor-grid { grid-template-columns: 1fr; }
  .recommended-path-list { grid-template-columns: 1fr; }
  .category-danger-form { grid-template-columns: 1fr; }
  .category-current-tree { max-height: none; }
  .category-tree-list { max-height: 560px; }
}

@media (max-width: 680px) {
  .category-tree-scope { grid-template-columns: 1fr; }
  .category-history-list article { grid-template-columns: 1fr 1fr; }
  .category-history-list article p { grid-column: 1 / -1; }
}

/* 安全なRMS店舗カテゴリ手動編集 */
.category-editor-safety { display: flex; flex-wrap: wrap; gap: 9px; padding: 15px 18px; border: 1px solid #b8d9ca; border-radius: 14px; background: #eef8f3; }
.category-editor-safety strong,.category-editor-safety span { padding: 7px 11px; border-radius: 999px; color: #195f49; background: #fff; font-size: .82rem; }
.category-editor-safety strong { color: #fff; background: #237556; }
.category-editor-sync,.category-editor-restore { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; }
.category-editor-sync h2,.category-editor-restore h2 { margin: 0 0 4px; font-size: 1.08rem; }
.category-editor-sync p,.category-editor-restore p { margin: 0; color: #66756f; }
.category-simple-grid { display: grid; grid-template-columns: minmax(460px, 1.15fr) minmax(390px, .85fr); align-items: start; gap: 18px; }
.category-tree-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e6ece8; }
.category-tree-tools input { width: min(100%, 430px); min-height: 42px; padding: 8px 12px; border: 1px solid #c8d6d0; border-radius: 9px; }
.category-tree-tools > div { display: flex; gap: 7px; }
.category-tree-tools .button { min-height: 38px; padding: 7px 11px; }
.category-simple-list { max-height: none; overflow: visible; }
.category-simple-list article { display: grid; grid-template-columns: 28px minmax(0,1fr) 60px 74px; align-items: center; min-height: 58px; padding: 6px 14px 6px calc(12px + var(--category-indent)); border-bottom: 1px solid #edf1ef; }
.category-simple-list article:hover,.category-simple-list article.selected { background: #f0f8f4; }
.category-simple-list article.selected { box-shadow: inset 4px 0 #287b5f; }
.category-bulk-check { display: grid; place-items: center; cursor: pointer; }
.category-bulk-check input { width: 17px; height: 17px; }
.category-bulk-check .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.category-simple-list article > a { display: grid; grid-template-columns: 13px minmax(0,1fr); align-items: center; gap: 8px; min-width: 0; padding: 7px 8px; color: inherit; text-decoration: none; }
.category-simple-list .tree-guide { width: 9px; height: 9px; border-left: 2px solid #86a99b; border-bottom: 2px solid #86a99b; }
.category-simple-list strong,.category-simple-list small { display: block; overflow-wrap: anywhere; }
.category-simple-list small { margin-top: 2px; color: #78857f; font-size: .7rem; }
.category-state,.category-child-count { justify-self: center; color: #206a50; font-size: .72rem; font-weight: 800; }
.category-state { padding: 4px 7px; border-radius: 999px; background: #dff2e9; }
.category-state.hidden { color: #7b6560; background: #eee9e6; }
.category-child-count { color: #728079; font-weight: 600; }
.category-bulk-bar { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 15px 16px; background: #f5f8f6; }
.category-bulk-bar label { display: grid; gap: 5px; color: #4f6259; font-size: .82rem; font-weight: 800; }
.category-bulk-bar select { min-height: 40px; padding: 7px 10px; border: 1px solid #c6d4ce; border-radius: 8px; background: #fff; }
.category-single-form { display: grid; gap: 14px; padding: 20px 22px 24px; }
.category-single-form > label { display: grid; gap: 6px; color: #475a52; font-size: .85rem; font-weight: 800; }
.category-single-form input,.category-single-form select,.category-editor-confirm input { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid #c4d2cc; border-radius: 9px; background: #fff; font: inherit; }
.category-single-form label small { color: #74817b; font-weight: 400; }
.category-single-form button { justify-self: end; }
.category-selected-path { display: grid; gap: 3px; padding: 14px 15px; border-radius: 11px; background: #eef6f2; }
.category-selected-path small,.category-selected-path span { color: #66766f; }
.category-selected-path strong { overflow-wrap: anywhere; color: #195e48; }
.category-editor-preview { border-color: #d9be78; box-shadow: 0 10px 32px rgba(117,82,20,.1); }
.category-diff-grid { display: grid; }
.category-diff-grid > div { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 12px; padding: 12px 22px; border-bottom: 1px solid #ece7dc; }
.category-diff-grid > div:first-child { color: #6d756f; background: #faf8f3; font-size: .76rem; }
.category-diff-grid > div > span:last-child { color: #176843; font-weight: 800; }
.category-editor-confirm { display: grid; grid-template-columns: minmax(260px,1fr) auto; align-items: end; gap: 14px; padding: 18px 22px 22px; background: #fff9e9; }
.category-editor-confirm label { display: grid; gap: 5px; color: #6f5619; font-size: .82rem; font-weight: 800; }
.category-bulk-preview { padding: 18px 22px; }
.category-bulk-preview ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; max-height: 260px; overflow: auto; margin: 12px 0 0; padding-left: 22px; }
.category-editor-restore { border-color: #e1a8aa; background: #fff8f8; }
.excel-category-workflow { overflow: hidden; }
.excel-child-count-note { display: grid; gap: 4px; margin: 0 18px 18px; padding: 13px 15px; border: 1px solid #d4b76b; border-radius: 10px; color: #644d16; background: #fff9e8; font-size: .82rem; }
.excel-child-count-note span { color: #756744; }
.excel-category-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid #e5ebe8; }
.excel-category-steps > li { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 11px; align-content: start; padding: 22px 18px; border-right: 1px solid #e5ebe8; }
.excel-category-steps > li:last-child { border-right: 0; }
.excel-step-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #237556; font-weight: 900; }
.excel-category-steps h3 { margin: 3px 0 7px; font-size: 1rem; }
.excel-category-steps p { margin: 0 0 12px; color: #66756f; font-size: .8rem; line-height: 1.65; }
.excel-category-steps progress { width: 100%; margin-top: 11px; }
.excel-ready { display: inline-block; margin-top: 10px; padding: 5px 9px; border-radius: 999px; color: #176843; background: #dff2e9; font-size: .75rem; }
.excel-assignment-preview { margin-top: 12px; border: 1px solid #dce6e1; border-radius: 10px; background: #fff; }
.excel-assignment-preview summary { padding: 10px 12px; cursor: pointer; color: #245b48; font-weight: 800; }
.excel-assignment-preview > div { max-height: 350px; overflow: auto; }
.excel-assignment-preview article { display: grid; grid-template-columns: 84px minmax(110px,1fr) 20px minmax(110px,1fr); gap: 7px; padding: 9px 11px; border-top: 1px solid #edf1ef; font-size: .7rem; }
.excel-assignment-preview article > span:last-child { color: #176843; font-weight: 800; }
.excel-apply-confirm { display: grid; gap: 9px; margin-top: 12px; }
.excel-apply-confirm label { display: grid; gap: 5px; color: #6f5619; font-size: .77rem; font-weight: 800; }
.excel-apply-confirm input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #cfbea0; border-radius: 8px; }
.excel-no-change { padding: 10px 12px; border-radius: 9px; background: #f2f5f3; }
.excel-audit-warning { padding: 8px 10px; border-radius: 8px; color: #8a321f !important; background: #fff0ed; font-weight: 800; }
.excel-allocation-audit { border-top: 1px solid #dfe7e3; }
.excel-allocation-audit > .genre-panel-heading { padding-bottom: 12px; }
.excel-audit-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 0 22px 16px; }
.excel-audit-summary > div { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid #dce5e0; border-radius: 10px; background: #f7faf8; }
.excel-audit-summary small { color: #66756f; font-weight: 700; }
.excel-audit-summary strong { font-size: 1.35rem; }
.excel-audit-summary .ok { border-color: #b7ddcb; color: #176843; background: #eef8f3; }
.excel-audit-summary .alert { border-color: #e4a7a2; color: #a32820; background: #fff2f1; }
.excel-audit-table-wrap { overflow-x: auto; padding: 0 22px 22px; }
.excel-audit-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .8rem; }
.excel-audit-table th,.excel-audit-table td { padding: 10px 12px; border: 1px solid #dfe6e2; text-align: center; vertical-align: top; }
.excel-audit-table th { color: #42564d; background: #f2f6f4; }
.excel-audit-table th:first-child,.excel-audit-table td:first-child { min-width: 300px; text-align: left; }
.excel-audit-table td:first-child small { display: block; margin-top: 3px; color: #a32820; font-weight: 800; }
.excel-audit-table tr.has-missing { background: #fff6f5; }
.excel-audit-table tr.has-missing td:last-child > strong { color: #b0241b; }
.excel-audit-table details { margin-top: 5px; text-align: left; }
.excel-audit-table summary { cursor: pointer; color: #8a321f; font-size: .72rem; font-weight: 800; }
.excel-audit-table details p { margin: 6px 0 0; overflow-wrap: anywhere; color: #5f504d; font-size: .7rem; line-height: 1.55; }
.excel-unlisted-note { margin: 0 22px 22px; padding: 11px 13px; border-radius: 9px; color: #665f4c; background: #f7f4ec; font-size: .78rem; }
.excel-unlisted-note summary { cursor: pointer; font-weight: 800; }
.excel-unlisted-note p { margin: 8px 0 0; overflow-wrap: anywhere; line-height: 1.6; }
.excel-structure-preview { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding: 18px 22px; }
.excel-structure-preview > div { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: #f2f7f4; }
.excel-structure-preview > div span { color: #176843; font-size: 1.15rem; font-weight: 900; }
.excel-structure-preview details,.excel-structure-preview > p { grid-column: 1/-1; }
.excel-structure-preview details { padding: 10px 12px; border: 1px solid #e4e9e6; border-radius: 9px; }
.excel-structure-preview ul { columns: 2; max-height: 280px; overflow: auto; }
.category-manual-heading { margin-top: 28px; padding: 18px 22px; border: 1px solid #dce5e0; border-radius: 14px; background: #f7faf8; }

@media (max-width: 980px) {
  .excel-category-steps { grid-template-columns: 1fr; }
  .excel-category-steps > li { border-right: 0; border-bottom: 1px solid #e5ebe8; }
  .category-simple-grid { grid-template-columns: 1fr; }
  .category-simple-list { max-height: none; }
}
@media (max-width: 680px) {
  .category-editor-sync,.category-editor-restore,.category-tree-tools,.category-bulk-bar { align-items: stretch; flex-direction: column; }
  .category-simple-list article { grid-template-columns: 26px minmax(0,1fr) 56px; padding-left: 8px; }
  .category-child-count { grid-column: 2; justify-self: start; padding-left: 8px; }
  .category-diff-grid > div { grid-template-columns: 1fr; }
  .category-editor-confirm { grid-template-columns: 1fr; }
  .category-bulk-preview ul { grid-template-columns: 1fr; }
  .excel-structure-preview { grid-template-columns: 1fr 1fr; }
  .excel-structure-preview ul { columns: 1; }
  .excel-audit-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .genre-flow { grid-template-columns: 1fr; }
  .genre-flow li { border-right: 0; border-bottom: 1px solid #e4eaf0; }
  .genre-flow li:last-child { border-bottom: 0; }
  .genre-summary { grid-template-columns: repeat(3, 1fr); }
  .genre-actions { align-items: stretch; flex-direction: column; }
  .genre-actions .button { width: 100%; text-align: center; }
  .genre-filter { grid-template-columns: 1fr 1fr; }
  .genre-preview-list article { grid-template-columns: 1fr; }
  .genre-preview-list .arrow { transform: rotate(90deg); }
  .genre-apply-box { grid-template-columns: 1fr; }
  .sidebar-html-groups { grid-template-columns: 1fr; }
  .sidebar-html-upload { grid-template-columns: 1fr; }
  .sidebar-html-upload .button { width: 100%; }
  .sidebar-pickup-grid { grid-template-columns: 1fr; }
  .sidebar-html-safety { grid-template-columns: 1fr; }
  .sidebar-publish-confirm,.sidebar-restore-box form { grid-template-columns: 1fr; }
  .sidebar-ftp-status { align-items: stretch; flex-direction: column; }
  .sidebar-publication-history a { grid-template-columns: 110px minmax(0,1fr) auto; }
  .sidebar-publication-history a small { grid-column: 2 / -1; }
  .genre-rms-tree-grid, .genre-rms-after-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .genre-hero, .genre-panel-heading { align-items: flex-start; flex-direction: column; }
  .genre-hero { padding: 22px 20px; }
  .genre-flow { grid-template-columns: 1fr; }
  .genre-flow li { border-right: 0; border-bottom: 1px solid #e4eaf0; }
  .genre-flow li:last-child { border-bottom: 0; }
  .genre-summary { grid-template-columns: repeat(2, 1fr); }
  .genre-filter { grid-template-columns: 1fr; padding: 14px; }
  .genre-save-bar { align-items: stretch; flex-direction: column; }
  .sidebar-preview-frame iframe { height: 520px; }
  .sidebar-publication-history a { grid-template-columns: 1fr; }
  .sidebar-publication-history a small { grid-column: auto; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.site-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: #111;
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent); font-family: Georgia, serif;
}
.user-menu { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.user-menu form { margin: 0; }
.page-shell { width: min(1240px, calc(100% - 40px)); margin: 34px auto 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-heading.compact { align-items: flex-start; }
h1 { margin: 4px 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
h2 { margin: 0 0 18px; font-size: 20px; }
h3 { margin: 0 0 14px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.muted { color: var(--muted); font-size: 13px; }
.back-link { color: var(--muted); font-size: 14px; text-decoration: none; }
.title-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.version { color: var(--muted); font-weight: 700; }
.campaign-type {
  display: inline-flex; padding: 5px 10px; border-radius: 6px;
  background: #171717; color: #fff; font-size: 12px; font-weight: 750;
}
.card {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(27, 22, 17, .035);
}
.form-card { max-width: 900px; }
.fixed-values-card { margin-bottom: 18px; border-left: 5px solid var(--accent); }
.rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.rule-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #faf9f7; }
.rule-grid ul { margin: 8px 0 0; padding-left: 20px; }
.form-notice {
  display: flex; flex-direction: column; gap: 3px; margin-bottom: 22px;
  padding: 14px 16px; border-left: 4px solid var(--accent); background: #faf5f3;
}
.form-notice span { color: var(--muted); font-size: 13px; }
.saved-content { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.asset-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.asset-summary-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #faf9f7; overflow-wrap: anywhere; }
.asset-summary-grid strong, .asset-summary-grid span { display: block; }
.asset-summary-grid span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.template-card {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; margin: 0;
  padding: 22px; border: 2px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer;
}
.template-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,54,43,.09); }
.template-card input { margin-top: 7px; }
.template-card-body { display: flex; flex-direction: column; gap: 10px; }
.template-card-title { font-size: 22px; font-weight: 800; }
.template-card-summary { color: var(--muted); font-weight: 500; }
.template-card-label { margin-top: 6px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.template-list { display: flex; flex-direction: column; color: #444; font-size: 13px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metrics.metrics-three { grid-template-columns: repeat(3, 1fr); }
.metric { padding: 18px 20px; background: #111; color: #fff; border-radius: 12px; }
.metric span { display: block; color: #bbb; font-size: 12px; }
.metric strong { font-size: 32px; }
.metric small { margin-left: 5px; color: #aaa; }
.metric em { display: block; margin-top: 6px; color: #aaa; font-size: 11px; font-style: normal; }
.setting-summary { margin: 4px 0 0; padding: 14px 16px; border-radius: 8px; background: #f4f8f5; color: #245c47; font-weight: 700; }
.settings-details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.settings-details summary { cursor: pointer; font-weight: 750; }
.settings-details[open] summary { margin-bottom: 12px; }
.coupon-url-details { margin-top: 18px; }
.coupon-update-card { grid-column: 1 / -1; }
.campaign-timing-card { grid-column: 1 / -1; }
.campaign-timing-summary { margin-top: 4px; }
.campaign-timing-summary dd strong { font-size: 16px; }
.timing-note { display: inline-block; margin-left: 8px; color: var(--muted); font-size: 11px; }
.campaign-timing-edit { margin-top: 22px; }
.campaign-timing-form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px; margin-top: 16px;
}
.timing-preview {
  margin: 2px 0 0 !important; padding: 12px 14px; border-radius: 8px;
  background: #f1f8f4; color: var(--green); font-size: 13px;
}
.timing-preview strong { margin-left: 5px; font-size: 16px; }
.compact-summary { margin-top: 6px; }
.bundle-target-card { grid-column: 1 / -1; }
.bundle-target-intro { margin: 8px 0 0; color: var(--muted); }
.bundle-target-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-top: 16px;
}
.bundle-target-metric {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #f7f5f1;
}
.bundle-target-metric span { display: block; color: var(--muted); font-size: 12px; }
.bundle-target-metric strong { display: inline-block; margin-top: 3px; font-size: 28px; }
.bundle-target-metric small { margin-left: 4px; color: var(--muted); }
.bundle-target-metric.test { background: #f0f8f4; }
.bundle-target-metric.live { background: #fff5f2; }
.bundle-target-alert {
  margin-top: 14px; padding: 14px 16px; border: 1px solid;
  border-radius: 12px; line-height: 1.7;
}
.bundle-target-alert strong { display: block; margin-bottom: 3px; }
.bundle-target-alert.danger { border-color: #efaaa2; background: #fff0ed; color: #8d241b; }
.bundle-target-alert.warning { border-color: #e3bd61; background: #fff8e5; color: #79520c; }
.bundle-target-alert.safe { border-color: #9ad3b3; background: #eaf7f0; color: #17693e; }
.bundle-missing-skus { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bundle-missing-skus code { padding: 3px 6px; border-radius: 5px; background: rgba(255,255,255,.7); }
.bundle-target-group-list { display: grid; gap: 10px; margin-top: 16px; }
.bundle-target-group {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff;
}
.bundle-target-group summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; cursor: pointer; font-weight: 800;
}
.bundle-target-sku-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0;
  padding: 0; list-style: none;
}
.bundle-target-sku { padding: 6px 8px; border-radius: 8px; font-weight: 700; }
.bundle-target-sku.test { background: #eaf7f0; color: #17693e; }
.bundle-target-sku.live { background: #fff0ed; color: #8d241b; }
.bundle-target-sku small { margin-left: 5px; font-size: 10px; opacity: .75; }
.bundle-overlap-note { margin-top: 12px; }
.button, button.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px; border: 1px solid transparent;
  border-radius: 7px; font: inherit; font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: #fff; border-color: #bbb; color: #222; }
.button.danger { background: #2c1715; color: #fff; }
.button.full { width: 100%; }
.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; }
.danger-text { color: var(--accent); }
.danger-zone { border: 1px solid #e5b5ae; background: #fff8f6; }
.delete-confirm-name { font-size: 18px; font-weight: 800; }
.delete-related-list { margin: 18px 0; padding: 0; list-style: none; }
.delete-related-list li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.strong-link { font-weight: 750; text-decoration: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; }
.status {
  display: inline-flex; padding: 4px 9px; border-radius: 99px;
  background: #ece9e4; color: #555; font-size: 12px; font-weight: 750; white-space: nowrap;
}
.status-approved, .status-published, .status-succeeded, .status-applied, .status-restored { background: #dcefe6; color: var(--green); }
.status-submitted, .status-previewed, .status-scheduled { background: #fff0d9; color: var(--amber); }
.status-rejected, .status-failed { background: #f7dddd; color: var(--accent-dark); }
.messages { margin-bottom: 18px; }
.message { padding: 13px 16px; border-radius: 8px; background: #e9e6e1; }
.message + .message { margin-top: 8px; }
.message.success { background: #dcefe6; color: #15563c; }
.message.error { background: #f7dddd; color: #8b251d; }
.stack-form p { margin: 0 0 18px; }
label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
input[type="text"], input[type="password"], input[type="url"], input[type="number"], input[type="datetime-local"], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cfcac3; border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.errorlist { color: var(--accent); font-size: 13px; }
.form-actions, .sticky-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.sticky-actions { position: sticky; bottom: 16px; padding: 12px; background: rgba(245,243,239,.94); border-radius: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.sub-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f7; }
.fixed-settings-note { margin-bottom: 18px; border-left: 5px solid var(--green); }
.fixed-settings-note .confirmation {
  display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0;
  padding: 12px 14px; border-radius: 8px; background: #eef7f2;
}
.fixed-settings-note .confirmation input { width: auto; margin-top: 4px; }
.helptext { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.content-state + .content-state { margin-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-number { color: var(--accent); font-family: Georgia, serif; font-size: 26px; }
.summary-list { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; margin: 0; }
.summary-list dt { color: var(--muted); font-size: 13px; }
.summary-list dd { margin: 0; }
.break-word { overflow-wrap: anywhere; font-size: 12px; }
.list-row, .history-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.row-actions { display: flex; gap: 10px; font-size: 13px; }
.empty-state { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty-state.small { padding: 18px 0; }
.workflow-card { margin: 18px 0; }
.assignment-card, .schedule-card { margin: 18px 0; }
.assignment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.assignment-grid div { padding: 15px; border: 1px solid var(--line); border-radius: 8px; }
.assignment-grid span, .assignment-grid strong { display: block; }
.assignment-grid span { color: var(--muted); font-size: 12px; }
.nowrap { white-space: nowrap; }
.error-detail { margin: -5px 0 12px 0; color: var(--accent-dark); font-size: 12px; overflow-wrap: anywhere; }
.workflow { display: grid; grid-template-columns: 1fr 50px 1fr 50px 1fr; align-items: center; margin: 22px 0; }
.workflow-step { text-align: center; color: #888; }
.workflow-step span { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 7px; border-radius: 50%; background: #ddd; }
.workflow-step strong, .workflow-step small { display: block; }
.workflow-step.done { color: var(--green); }
.workflow-step.done span { background: var(--green); color: #fff; }
.workflow-line { height: 1px; background: #ccc; }
.approval-form textarea { max-width: 700px; }
.workflow-warning, .api-warning {
  margin-top: 16px; padding: 13px 15px; border-left: 4px solid var(--amber);
  border-radius: 6px; background: #fff8ea; color: #6e4510; font-size: 13px;
}
.api-warning { margin-bottom: 18px; }
.api-warning p { margin-bottom: 0; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.check-row input { width: auto; }
.history-row { justify-content: flex-start; }
.history-dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.issue-layout { align-items: start; }
.xml-preview { max-height: 420px; overflow: auto; padding: 14px; background: #171717; color: #eee; font-size: 11px; white-space: pre-wrap; }
.sku-checkboxes { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.sku-checkboxes legend { padding: 0 8px; font-size: 13px; font-weight: 750; }
.sku-checkboxes ul { max-height: 300px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.sku-checkboxes li + li { margin-top: 8px; }
.sku-checkboxes label { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-weight: 500; }
.sku-checkboxes input { width: auto; margin-top: 4px; }
.restore-note { padding: 12px 14px; border-radius: 7px; background: #eef7f2; color: var(--green); }
.api-preview { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.verification-guide {
  margin: 0 0 22px; padding: 18px 20px; border: 1px solid #cfe4d9;
  border-left: 5px solid var(--green); border-radius: 10px; background: #f1f8f4;
}
.verification-guide h3 { margin-bottom: 8px; }
.verification-guide ol { margin: 0; padding-left: 22px; }
.verification-guide li + li { margin-top: 5px; }
.verification-guide p { margin: 12px 0 0; color: var(--green); font-size: 13px; }
.coupon-verification-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.coupon-verification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.coupon-verification-card {
  min-width: 0; padding: 18px; border: 2px solid #d9e8df; border-radius: 12px; background: #fff;
}
.coupon-verification-card.has-warning { border-color: #e6bd78; background: #fffaf1; }
.coupon-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.coupon-card-heading h4 { margin: 0; font-size: 18px; }
.check-badge { display: inline-flex; padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.check-badge.ok { background: #dcefe6; color: var(--green); }
.check-badge.warning { background: #fff0d9; color: var(--amber); }
.coupon-image-preview {
  display: grid; min-height: 170px; place-items: center; margin-bottom: 15px; padding: 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #faf9f7;
}
.coupon-image-preview img { display: block; width: auto; max-width: 100%; max-height: 320px; object-fit: contain; }
.coupon-image-missing { display: grid; min-height: 140px; place-items: center; margin-bottom: 15px; border: 1px dashed #c99d57; border-radius: 10px; color: var(--amber); }
.coupon-check-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0 0 14px; }
.coupon-check-list dt { color: var(--muted); font-size: 12px; }
.coupon-check-list dd { margin: 0; min-width: 0; }
.url-label { margin: 10px 0 3px !important; font-size: 11px; font-weight: 800; color: var(--muted); }
.coupon-final-url { margin: 0 !important; padding: 9px; border-radius: 6px; background: #f4f2ee; overflow-wrap: anywhere; font-size: 11px; }
.coupon-check-error { margin: 9px 0 !important; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.sku-details { margin: 12px 0; font-size: 12px; }
.sku-details summary { cursor: pointer; font-weight: 750; }
.sku-details p { overflow-wrap: anywhere; }
.product-api-state { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.product-api-state span { color: var(--muted); font-size: 12px; }
.product-api-state .danger-text { color: var(--accent-dark); }
.table-scroll { overflow-x: auto; }
.master-table { width: 100%; border-collapse: collapse; }
.master-table th, .master-table td {
  padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: top;
}
.master-table th { color: var(--muted); font-size: 12px; white-space: nowrap; }
.master-table-readable { min-width: 980px; }
.master-table-readable th:nth-child(1) { width: 32%; }
.master-table-readable th:nth-child(2) { width: 34%; }
.master-table-readable th:nth-child(3) { width: 34%; }
.master-product { min-width: 270px; }
.master-product-heading {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.master-product-heading strong { font-size: 16px; }
.master-brand {
  padding: 3px 8px; border-radius: 999px; background: #f1eee9;
  color: var(--muted); font-size: 11px; font-weight: 700;
}
.master-product-name { margin: 10px 0; line-height: 1.65; }
.master-product-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 11px;
}
.master-coupon-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
  margin: 0 0 12px; padding: 12px; border: 1px solid var(--line);
  border-radius: 8px;
}
.master-coupon-options legend { padding: 0 6px; font-size: 12px; font-weight: 700; }
.master-coupon-options label {
  display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500;
}
.master-coupon-options input { width: auto; }
.master-price-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-bottom: 12px; padding: 12px; border-radius: 8px; background: #eef7f2;
}
.master-price-summary span { color: var(--green); font-size: 12px; }
.master-price-summary strong { color: var(--green); font-size: 16px; white-space: nowrap; }
.field-label { display: block; margin: 10px 0 5px; font-size: 12px; font-weight: 700; }
.master-table-readable textarea { min-height: 72px; }
.master-layout { align-items: start; margin-bottom: 18px; }
.master-add-card { border-top: 4px solid var(--green); }
.master-add-form {
  display: grid; grid-template-columns: 1.1fr 1fr 1.2fr auto;
  align-items: end; gap: 12px;
}
.master-add-form label { display: block; margin-bottom: 6px; }
.required-mark { color: var(--accent-dark); font-size: 10px; }
.compact-card { min-height: 185px; }
.master-bulk-details { margin-bottom: 18px; }
.master-bulk-details > summary {
  cursor: pointer; font-size: 16px; font-weight: 750;
}
.master-bulk-details[open] > summary { margin-bottom: 14px; }
.master-bulk-details textarea { min-height: 150px; }
.master-list-card { padding: 28px; }
.master-filter-tabs {
  display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px; margin: 18px 0;
}
.master-filter-tab {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: #faf9f7; color: var(--text); text-decoration: none;
  font-size: 12px;
}
.master-filter-tab strong {
  display: grid; min-width: 25px; height: 25px; place-items: center;
  padding: 0 6px; border-radius: 999px; background: #ece8e1;
}
.master-filter-tab.is-active {
  border-color: var(--green); background: #eef7f2; color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.master-search-form {
  display: flex; gap: 8px; margin-bottom: 18px;
}
.master-search-form input { flex: 1; }
.master-product-list { display: grid; gap: 10px; }
.master-product-card {
  padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff;
}
.master-product-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
}
.master-product-card .master-product-name { margin: 7px 0 0; }
.master-group-badges { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.group-badge {
  padding: 5px 9px; border-radius: 999px; background: #e9f5ee;
  color: var(--green); font-size: 11px; font-weight: 750; white-space: nowrap;
}
.group-badge.is-unassigned { background: #fff0df; color: #9b5b00; }
.master-product-editor {
  margin-top: 13px; border-top: 1px solid var(--line); padding-top: 11px;
}
.master-product-editor > summary { cursor: pointer; font-size: 12px; font-weight: 750; color: var(--green); }
.master-product-edit-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1.3fr auto;
  align-items: end; gap: 12px; margin-top: 13px;
}
.master-product-edit-grid textarea { min-height: 62px; }
.master-save-cell { align-self: end; }
.master-product-footer {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px;
  color: var(--muted); font-size: 11px;
}
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  margin-top: 20px;
}
.login-card { width: min(440px, 100%); margin: 80px auto; padding: 36px; background: #fff; border-radius: 16px; }
.login-help { margin: 0 0 20px; padding: 11px 13px; border-radius: 8px; color: #36584a; background: #edf6f1; font-size: 12px; line-height: 1.6; }
.account-management { display: grid; gap: 20px; }
.account-management-heading { padding: 26px 28px; border-radius: 18px; color: #fff; background: linear-gradient(125deg, #17223b, #263d64 62%, #315d76); }
.account-management-heading h1 { margin: 3px 0 7px; }
.account-management-heading .muted { margin: 0; color: #dbe7ef; }
.account-security-notice { display: grid; gap: 5px; padding: 16px 18px; border-left: 5px solid var(--green); border-radius: 10px; color: #285142; background: #eaf5ef; }
.account-security-notice.important { margin-bottom: 22px; border-color: var(--accent); color: #772a24; background: #fff0ee; }
.account-security-notice span { font-size: 13px; line-height: 1.6; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-card { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.account-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.account-card h2 { margin: 3px 0 0; }
.account-card > p { margin: 10px 0; }
.account-card > small { display: block; margin-top: 4px; color: var(--muted); }
.account-id-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.account-password-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-password-form label { margin: 0; }
.account-password-form .errorlist { grid-column: 1 / -1; margin: 0; }
.account-password-form .button { grid-column: 1 / -1; justify-self: end; }
@media (max-width: 760px) {
  .account-grid, .account-password-form { grid-template-columns: 1fr; }
  .account-password-form .button { grid-column: auto; width: 100%; }
}
.schedule-setup { margin-top: 22px; }
.schedule-setup small { display: block; margin-top: 5px; color: var(--muted); }
.operation-timeline { border-top: 4px solid var(--green); }
.dashboard-heading { align-items: center; }
.app-launcher { margin-bottom: 30px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, #fff, #f7f5f1); box-shadow: 0 12px 32px rgba(31, 38, 34, .07); }
.app-launcher-heading { margin-bottom: 20px; text-align: center; }
.app-launcher-heading h1 { margin: 4px 0 7px; font-size: clamp(26px, 4vw, 38px); }
.app-launcher-heading p:last-child { margin: 0; color: var(--muted); }
.app-launcher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.app-launcher-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; min-height: 190px; padding: 22px; border: 1px solid #cfcfcf; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.app-launcher-card:hover { transform: translateY(-2px); border-color: currentColor; box-shadow: 0 12px 26px rgba(20, 29, 24, .1); }
.app-launcher-number { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.app-launcher-icon { display: grid; width: 40px; height: 40px; grid-row: 1 / span 2; grid-column: 2; place-items: center; border-radius: 11px; color: #fff; font-size: 20px; font-weight: 900; }
.promotion-settings-panel {
  margin-top: 22px; padding: 26px 28px; border: 1px solid var(--line);
  border-radius: 18px; background: #fff;
}
.promotion-settings-heading h2 { margin: 3px 0 7px; }
.promotion-settings-heading p:last-child { margin: 0; color: var(--muted); }
.promotion-settings-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin-top: 20px;
}
.promotion-setting-card {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #faf9f7; color: var(--ink); text-decoration: none;
}
.promotion-setting-card:hover { border-color: var(--green); background: #f5faf7; }
.promotion-setting-card > span {
  display: grid; width: 30px; height: 30px; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 850;
}
.promotion-setting-card strong,.promotion-setting-card small,.promotion-setting-card em { display: block; }
.promotion-setting-card small { margin-top: 3px; color: var(--muted); }
.promotion-setting-card em { margin-top: 5px; color: #8a817b; font-size: 10px; font-style: normal; }
.promotion-setting-card b { color: var(--green); font-size: 12px; }
.promotion-settings-empty { grid-column: 1 / -1; padding: 18px; border-radius: 10px; background: #f7f5f1; color: var(--muted); }
.bulk-buy-standard-panel { border-top: 4px solid #b66f19; background: linear-gradient(145deg,#fff,#fffaf2); }.bulk-buy-standard-panel .promotion-settings-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; }.bulk-buy-operation-status { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 14px; align-items: center; margin-top: 18px; padding: 13px 15px; border-radius: 10px; }.bulk-buy-operation-status strong { font-size: 12px; }.bulk-buy-operation-status span { color: var(--muted); font-size: 11px; }.bulk-buy-operation-status.normal { background: #eaf7f0; color: #17693e; }.bulk-buy-operation-status.paused { background: #fff0ed; color: #8d241b; }.bulk-buy-scope-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }.bulk-buy-tier-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }.bulk-buy-tier-card { padding: 17px; border: 1px solid #e2d1ba; border-radius: 12px; background: #fff; }.bulk-buy-tier-card > header { display: flex; justify-content: space-between; gap: 8px; align-items: center; }.bulk-buy-tier-card > header span { color: #a46b22; font-size: 10px; font-weight: 900; letter-spacing: .1em; }.bulk-buy-tier-card > header b { padding: 4px 7px; border-radius: 999px; background: #eaf7f0; color: #17693e; font-size: 9px; }.bulk-buy-tier-card.disabled { opacity: .55; }.bulk-buy-tier-card.disabled > header b { background: #eee; color: #666; }.bulk-buy-tier-card > strong { display: block; margin-top: 14px; font-size: 15px; }.bulk-buy-tier-card h3 { margin: 3px 0; color: #9b3c2f; font-size: 28px; }.bulk-buy-tier-card > p { margin: 0; color: var(--muted); font-size: 11px; }.bulk-buy-tier-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 15px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; }.bulk-buy-tier-card dt { color: var(--muted); }.bulk-buy-tier-card dd { margin: 0; }.bulk-buy-tier-card > a { display: inline-block; margin-top: 11px; color: var(--green); font-size: 10px; font-weight: 850; }.bulk-buy-transition-note { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin-top: 15px; padding: 13px 15px; border: 1px solid #efd9b9; border-radius: 9px; background: #fff8ec; }.bulk-buy-transition-note strong { color: #895614; font-size: 11px; }.bulk-buy-transition-note span { color: #6e5b45; font-size: 11px; }.bulk-buy-rule-notice { margin-bottom: 15px; }
.app-launcher-icon.code { font-size: 13px; letter-spacing: -.08em; }
.app-launcher-card > strong { grid-column: 1 / -1; align-self: end; font-size: 22px; }
.app-launcher-card > small { grid-column: 1 / -1; min-height: 44px; color: var(--muted); line-height: 1.65; }
.app-launcher-card > b { grid-column: 1 / -1; align-self: end; font-size: 12px; }
.app-launcher-card.coupon { color: #9c342d; }
.app-launcher-card.coupon .app-launcher-icon { background: #b7473f; }
.app-launcher-card.cross-sell { color: #176549; }
.app-launcher-card.cross-sell .app-launcher-icon { background: #207b5c; }
.app-launcher-card.html { color: #245c87; }
.app-launcher-card.html .app-launcher-icon { background: #326f9d; }
.app-launcher-card.new-item { color: #7a4d13; }
.app-launcher-card.new-item .app-launcher-icon { background: #a96c1d; }
.app-launcher-card.html-builder { color: #5f3d84; }
.app-launcher-card.html-builder .app-launcher-icon { background: #7651a1; font-size: 10px; }
.app-launcher-card.genre { color: #21667c; }
.app-launcher-card.genre .app-launcher-icon { background: #297c96; }
.app-launcher-card.ranking { color: #8a6200; }
.app-launcher-card.ranking .app-launcher-icon { background: linear-gradient(135deg,#d5a82d,#8a6200); }

/* 楽天ランキング1位記録 */
.ranking-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:30px 34px;border-radius:20px;background:linear-gradient(135deg,#161915 0%,#263d30 62%,#7b6221 100%);color:#fff;box-shadow:0 16px 38px rgba(25,35,28,.15)}
.ranking-hero h1{margin:5px 0 8px;font-size:clamp(28px,4vw,44px)}
.ranking-hero p{margin:0;max-width:760px;line-height:1.7}.ranking-hero .eyebrow{color:#e8cb75}
.secondary-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border:1px solid rgba(255,255,255,.6);border-radius:9px;background:#fff;color:#1a2d22;font-weight:800;text-decoration:none;white-space:nowrap}
.ranking-alert{display:grid;gap:5px;margin:14px 0;padding:15px 18px;border-radius:11px}.ranking-alert.danger{border:1px solid #e4aaa4;background:#fff0ee;color:#912a23}.ranking-alert span{font-size:12px}
.ranking-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.ranking-summary-grid article{display:grid;gap:6px;padding:19px;border:1px solid #dde4df;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(23,34,27,.04)}.ranking-summary-grid small{color:#66736b;font-weight:800}.ranking-summary-grid strong{font-size:25px}.ranking-summary-grid span{color:#748078;font-size:10px;line-height:1.45}
.ranking-run-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr);gap:22px;align-items:center;margin:18px 0;padding:23px;border:1px solid #d9e3dd;border-left:5px solid #27825e;border-radius:14px;background:#f8fbf9}.ranking-run-card h2{margin:4px 0 6px}.ranking-run-card p{margin:0;color:#647269;line-height:1.6}.ranking-run-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.ranking-run-card dl div{padding:9px 11px;border-radius:8px;background:#fff}.ranking-run-card dt{color:#758078;font-size:9px;font-weight:800}.ranking-run-card dd{margin:3px 0 0;font-size:12px;font-weight:800}.run-status{display:inline-flex;padding:3px 7px;border-radius:999px;background:#eaf4ee;color:#1a6c4c}.run-status.failed,.run-status.partial{background:#fff1df;color:#935c09}
.ranking-api-errors{margin:18px 0;padding:20px 22px;border:1px solid #e2aaa3;border-left:5px solid #b93d32;border-radius:14px;background:#fff7f5}.ranking-api-errors-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.ranking-api-errors-heading h2{margin:3px 0 0;font-size:20px}.ranking-api-errors-heading>span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#a9342b;color:#fff;font-size:10px;font-weight:900}.ranking-api-errors-summary{margin:12px 0;color:#5e3935;font-size:12px;font-weight:800}.ranking-api-errors ol{max-height:280px;overflow:auto;margin:0;padding:12px 12px 12px 34px;border:1px solid #edd0cc;border-radius:9px;background:#fff}.ranking-api-errors li{padding:4px 0;color:#792d27;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;line-height:1.55;overflow-wrap:anywhere}.ranking-api-errors-note{margin:10px 0 0;color:#7a5d59;font-size:10px;line-height:1.55}
.ranking-api-samples{margin:18px 0;padding:20px 22px;border:1px solid #cfded6;border-left:5px solid #287a59;border-radius:14px;background:#f7fbf8}.ranking-api-samples-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.ranking-api-samples-heading h2{margin:3px 0 0;font-size:20px}.ranking-api-samples-heading>span{padding:5px 9px;border-radius:999px;background:#e5f2eb;color:#236247;font-size:10px;font-weight:900}.ranking-api-samples>p{margin:10px 0;color:#617068;font-size:11px}.ranking-api-samples-table-wrap{max-height:320px;overflow:auto;border:1px solid #d6e1db;border-radius:9px;background:#fff}.ranking-api-samples table{width:100%;border-collapse:collapse;font-size:10px}.ranking-api-samples th,.ranking-api-samples td{padding:9px 10px;border-bottom:1px solid #e4eae6;text-align:left;vertical-align:top}.ranking-api-samples th{position:sticky;top:0;background:#edf5f0;color:#466156}.ranking-api-samples td small{display:block;margin-top:2px;color:#87928c}.ranking-api-samples td strong{color:#176c49}.ranking-api-samples td span{color:#a04735}
.ranking-api-samples td em{color:#758078;font-style:normal}.ranking-summary-link{display:block;color:inherit;text-decoration:none}.ranking-summary-link article{height:100%;transition:border-color .18s ease,transform .18s ease}.ranking-summary-link:hover article{transform:translateY(-2px);border-color:#72a58e}
.genre-history-panel{margin-top:20px;padding:24px;border:1px solid #dde3df;border-radius:16px;background:#fff}.genre-history-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.genre-history-heading h2{margin:3px 0 0}.genre-history-filter{display:grid;grid-template-columns:minmax(220px,1fr) 150px 145px auto;gap:7px}.genre-history-filter input,.genre-history-filter select{min-height:41px;padding:8px 10px;border:1px solid #c9d2cc;border-radius:8px;background:#fff}.genre-history-filter button{padding:8px 16px;border:0;border-radius:8px;background:#1c704f;color:#fff;font-weight:800}.genre-history-table-wrap{overflow:auto;border:1px solid #d9e2dd;border-radius:10px}.genre-history-table{width:100%;min-width:1180px;border-collapse:collapse;font-size:11px}.genre-history-table th,.genre-history-table td{padding:11px 12px;border-bottom:1px solid #e4eae6;text-align:left;vertical-align:top}.genre-history-table th{position:sticky;top:0;background:#edf5f0;color:#466156;white-space:nowrap}.genre-history-table td>strong{display:block;color:#25342c}.genre-history-table td small{display:block;margin-top:4px;color:#7b8780;line-height:1.45}.genre-history-path{max-width:360px}.genre-path-depth,.genre-source,.genre-check-status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900}.genre-path-depth{background:#eef1ef;color:#52625a}.genre-source{background:#edf5f0;color:#246649}.genre-source.cache{background:#eef2fa;color:#465f8b}.genre-source.leaf{background:#fff0dd;color:#8b5a10}.genre-check-status{background:#e7f4ec;color:#176b49}.genre-check-status.partial{background:#fff0dd;color:#8b5a10}.genre-check-status.failed{background:#fbe6e3;color:#a03c30}.genre-history-error{color:#a04735!important}.genre-history-win{color:#9a7000!important;font-weight:800}
.ranking-results{margin-top:20px;padding:24px;border:1px solid #dde3df;border-radius:16px;background:#fff}.ranking-results-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.ranking-results-heading h2{margin:3px 0 0}.ranking-filter{display:grid;grid-template-columns:minmax(220px,1fr) 145px 145px auto auto;gap:7px}.ranking-filter input,.ranking-filter select{min-height:41px;padding:8px 10px;border:1px solid #c9d2cc;border-radius:8px;background:#fff}.ranking-filter button{padding:8px 16px;border:0;border-radius:8px;background:#1c704f;color:#fff;font-weight:800}.ranking-export-link{display:inline-flex;align-items:center;justify-content:center;min-height:41px;padding:8px 13px;border:1px solid #8eb3a2;border-radius:8px;background:#f1f8f5;color:#176448;font-size:11px;font-weight:850;text-decoration:none;white-space:nowrap}
.ranking-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ranking-win-card{display:grid;grid-template-columns:250px minmax(0,1fr);min-width:0;overflow:hidden;border:1px solid #dce3df;border-radius:13px;background:#fff}.ranking-shot{position:relative;width:226px;height:170px;margin:12px;overflow:hidden;background:#f5f6f4}.ranking-shot img{width:100%;height:100%;object-fit:contain}.ranking-no-shot{display:grid;height:100%;padding:18px;place-content:center;text-align:center;color:#778079}.ranking-no-shot small{max-width:150px;margin-top:7px;font-size:9px}.ranking-win-body{min-width:0;padding:15px 15px 15px 5px}.ranking-tags{display:flex;gap:6px}.ranking-tags span{padding:4px 7px;border-radius:999px;background:#edf5f0;color:#226448;font-size:9px;font-weight:800}.ranking-win-body h3{margin:8px 0 4px;font-size:18px}.ranking-item-name{display:-webkit-box;overflow:hidden;margin:0;color:#303a34;font-size:11px;line-height:1.5;-webkit-line-clamp:2;-webkit-box-orient:vertical}.ranking-path{display:-webkit-box;overflow:hidden;margin:8px 0 0;color:#6c756f;font-size:9px;line-height:1.5;-webkit-line-clamp:2;-webkit-box-orient:vertical}.ranking-detected{margin:7px 0;color:#839087;font-size:9px}.ranking-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.ranking-actions a{padding:5px 7px;border:1px solid #b8c9bf;border-radius:6px;color:#1d684a;font-size:8px;font-weight:800;text-decoration:none}.ranking-empty{display:grid;gap:7px;padding:50px 20px;border:1px dashed #bdc9c1;border-radius:12px;text-align:center;color:#768079}.ranking-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:20px}.ranking-pagination a{color:#166746;font-weight:800}
.ranking-record-note{display:contents}.ranking-record-note summary{padding:5px 7px;border:1px solid #b8c9bf;border-radius:6px;color:#1d684a;font-size:8px;font-weight:800;cursor:pointer;list-style:none}.ranking-record-note summary::-webkit-details-marker{display:none}.ranking-record-note[open] summary{background:#eaf5ef}.ranking-record-note dl{flex:0 0 100%;display:grid;gap:0;margin:5px 0 0;padding:8px 9px;border:1px solid #d6e2db;border-radius:7px;background:#f7faf8}.ranking-record-note dl div{display:grid;grid-template-columns:78px minmax(0,1fr);gap:7px;padding:4px 0;border-bottom:1px solid #e4ebe7;font-size:8px;line-height:1.45}.ranking-record-note dl div:last-child{border-bottom:0}.ranking-record-note dt{color:#6f7973;font-weight:800}.ranking-record-note dd{min-width:0;margin:0;color:#28332d;overflow-wrap:anywhere}
.ranking-import-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:14px 16px;border:1px solid #d6e1db;border-radius:10px;background:#f7faf8}.ranking-import-panel>div{display:grid;gap:4px}.ranking-import-panel strong{font-size:13px}.ranking-import-panel span{color:#67746c;font-size:10px;line-height:1.5}.ranking-import-panel form{display:flex;align-items:center;gap:8px}.ranking-import-panel input[type=file]{max-width:300px;padding:7px;border:1px solid #c9d2cc;border-radius:7px;background:#fff;font-size:10px}.ranking-import-panel button{padding:9px 13px;border:0;border-radius:7px;background:#1c704f;color:#fff;font-size:11px;font-weight:800}.ranking-import-result{margin:0 0 13px;padding:10px 12px;border-radius:8px;font-size:11px;font-weight:800}.ranking-import-result.success{background:#eaf5ef;color:#176448}.ranking-import-result.error{background:#fff0ee;color:#912a23}.ranking-log-table-wrap{max-height:620px;overflow:auto;border:1px solid #d6e1db;border-radius:10px;background:#fff}.ranking-log-table{width:100%;border-collapse:collapse;font-size:11px}.ranking-log-table th,.ranking-log-table td{padding:11px 12px;border-bottom:1px solid #e3e9e5;text-align:left;vertical-align:top}.ranking-log-table th{position:sticky;top:0;z-index:1;background:#edf5f0;color:#405d50;font-size:10px;white-space:nowrap}.ranking-log-table td{color:#37423c;line-height:1.5}.ranking-log-table td:first-child{white-space:nowrap}.ranking-log-table td:nth-child(2){min-width:280px}.ranking-log-table td:nth-child(4){min-width:210px}.ranking-log-table tr:last-child td{border-bottom:0}
@media(max-width:1100px){.ranking-summary-grid{grid-template-columns:repeat(2,1fr)}.ranking-run-card{grid-template-columns:1fr}.ranking-results-heading{align-items:stretch;flex-direction:column}.ranking-filter{grid-template-columns:1fr}.ranking-card-grid{grid-template-columns:1fr}.ranking-import-panel{align-items:stretch;flex-direction:column}.ranking-import-panel form{align-items:stretch;flex-direction:column}.ranking-import-panel input[type=file]{max-width:none}}
@media(max-width:900px){.genre-history-heading{align-items:stretch;flex-direction:column}.genre-history-filter{grid-template-columns:1fr 1fr}.genre-history-filter input[type="search"]{grid-column:1/-1}}
@media(max-width:600px){.ranking-hero{align-items:stretch;flex-direction:column;padding:22px}.ranking-summary-grid{grid-template-columns:1fr 1fr}.ranking-results{padding:14px}.ranking-win-card{grid-template-columns:1fr}.ranking-shot{width:calc(100% - 24px);height:auto;aspect-ratio:1560/500;margin:12px}.ranking-win-body{padding:3px 14px 14px}}

/* 商品ページパーツ管理 */
.page-edit-product-picker { margin: 0 0 18px; border: 1px solid #d9dedb; border-radius: 12px; background: #f8faf9; overflow: hidden; }
.page-edit-product-picker > summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 17px; cursor: pointer; list-style: none; }
.page-edit-product-picker > summary::-webkit-details-marker { display: none; }
.page-edit-product-picker > summary span { display: grid; gap: 3px; }
.page-edit-product-picker > summary small { color: #68736d; font-weight: 500; }
.page-edit-product-picker > summary > b { flex: 0 0 auto; padding: 5px 10px; border-radius: 99px; background: #e5f3ed; color: #176849; font-size: 12px; }
.page-edit-product-search { display: flex; align-items: center; gap: 8px; margin: 0 16px 13px; padding: 0 12px; border: 1px solid #cdd5d1; border-radius: 9px; background: #fff; }
.page-edit-product-search input { width: 100%; min-height: 44px; border: 0; outline: 0; font: inherit; }
.page-edit-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; max-height: 430px; padding: 0 16px 16px; overflow: auto; }
.page-edit-product-card[hidden] { display: none; }
.page-edit-product-card button { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 10px; width: 100%; min-height: 96px; padding: 9px; border: 1px solid #d9dedb; border-radius: 10px; background: #fff; color: #151817; text-align: left; cursor: pointer; }
.page-edit-product-card button:hover { border-color: #1f7a59; box-shadow: 0 4px 14px rgba(20,80,58,.12); }
.page-edit-product-card img,.page-edit-product-no-image { grid-row: 1/3; width: 72px; height: 72px; border-radius: 7px; background: #f0f1f0; object-fit: contain; }
.page-edit-product-no-image { display: grid; place-items: center; color: #7d8581; text-align: center; font-size: 11px; }
.page-edit-product-card button > span { display: grid; min-width: 0; gap: 2px; }
.page-edit-product-card button > span strong { color: #125e43; font-size: 13px; }
.page-edit-product-card button > span small { display: -webkit-box; overflow: hidden; color: #333a36; font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.page-edit-product-card button > span em { color: #78817c; font-size: 10px; font-style: normal; }
.page-edit-product-card button > b { grid-column: 2; color: #c9362b; font-size: 11px; text-align: right; }
.page-edit-product-empty { padding: 8px 16px 18px; color: #7b3a33; }
.page-edit-cabinet-picker { margin: 0 0 18px; border: 1px solid #d5d9d7; border-radius: 13px; background: #fff; overflow: hidden; }
.page-edit-cabinet-picker > summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 18px; cursor: pointer; list-style: none; }
.page-edit-cabinet-picker > summary::-webkit-details-marker { display: none; }
.page-edit-cabinet-picker > summary span { display: grid; gap: 3px; }
.page-edit-cabinet-picker > summary small { color: #65736c; font-weight: 500; }
.page-edit-cabinet-picker > summary > b { padding: 5px 10px; border-radius: 99px; background: #176549; color: #fff; font-size: 11px; }
.page-edit-cabinet-picker .cabinet-browser { margin: 0; border: 0; border-top: 1px solid #cbded5; border-radius: 0; }
.page-edit-image-step-heading { align-items: center; }
.page-edit-image-step-heading > span { flex: 0 0 auto; padding: 7px 11px; border-radius: 8px; background: #eef3f0; color: #315b49; font-size: 12px; font-weight: 850; }
.page-edit-cabinet-safety { margin-bottom: 15px; }
.page-edit-cabinet-media-panel .cabinet-image-grid { grid-template-columns: repeat(4,minmax(0,1fr)); max-height: 560px; overflow: auto; }
.page-edit-cabinet-media-panel .cabinet-pagination { padding-bottom: 58px; }
.page-edit-cabinet-use-bar { position: sticky; z-index: 3; bottom: 4px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid #cad8d1; border-radius: 10px; background: rgba(255,255,255,.97); box-shadow: 0 5px 18px rgba(0,0,0,.1); }
.page-edit-cabinet-use-bar span { color: #526159; font-size: 12px; font-weight: 800; }
.page-edit-cabinet-use-bar button:disabled { opacity: .45; cursor: not-allowed; }
.page-edit-selected-image { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 14px; align-items: center; margin: 0 0 18px; padding: 12px; border: 1px solid #9fc9b5; border-radius: 11px; background: #eef8f3; }
.page-edit-selected-image img { width: 100px; height: 100px; border-radius: 8px; background: #fff; object-fit: contain; }
.page-edit-selected-image span { display: grid; justify-items: start; gap: 4px; }
.page-edit-selected-image small { color: #527061; }
.page-edit-selected-image strong { overflow-wrap: anywhere; }
.page-edit-selected-image button { padding: 6px 9px; border: 1px solid #8bb9a3; border-radius: 7px; background: #fff; color: #176549; font-weight: 800; cursor: pointer; }
.page-edit-auto-url input[readonly] { background: #eef3f0; color: #365247; }
.page-edit-add-button { min-height: 50px; font-size: 15px; }
@media (max-width: 1000px) { .page-edit-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .page-edit-product-grid { grid-template-columns: 1fr; max-height: 360px; } .page-edit-cabinet-media-panel .cabinet-image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .page-edit-cabinet-use-bar { align-items: stretch; flex-direction: column; } }
.page-parts-heading { align-items: flex-end; }
.page-edit-wizard-panel[hidden] { display: none !important; }
.page-edit-rms-guide { scroll-margin-top: 8px; }
.page-edit-wizard-layout { display: block; }
.page-edit-wizard-layout .page-parts-editor { display: flex; flex-direction: column; }
.page-edit-wizard-layout .page-parts-side { display: contents; }
.page-edit-wizard-layout .page-parts-add-card { order: 1; }
.page-edit-wizard-layout .page-parts-existing-card { order: 2; }
.page-edit-wizard-layout .page-parts-30off-card { order: 3; }
.page-edit-wizard-layout .page-edit-action-bar { order: 4; }
.page-edit-wizard-layout .page-parts-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
.page-edit-wizard-layout .page-part-card { grid-template-columns: 1fr; align-content: start; min-width: 0; }
.page-edit-wizard-layout .page-part-preview { aspect-ratio: 1/1; min-height: 0; }
.page-edit-wizard-layout .page-part-preview img { height: 100%; max-height: none; object-fit: contain; }
.page-edit-wizard-layout .page-part-drag-handle small { display: none; }
.page-edit-wizard-layout .page-part-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.page-edit-wizard-layout .page-part-actions .button { width: 100%; }
.page-edit-flick-preview { margin-top: 20px; padding: 16px; border-radius: 12px; background: #171717; color: #fff; }
.page-edit-flick-preview h3,.page-edit-flick-preview p { margin: 0; }
.page-edit-flick-preview p { margin-top: 4px; color: #d5d5d5; font-size: 12px; }
.page-edit-flick-preview .new-product-flick-track { margin-top: 12px; }
.page-edit-flick-preview .new-product-flick-track figure { flex-basis: min(46vw,220px); }
.page-edit-flick-preview .new-product-flick-track img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.page-edit-flick-preview figcaption { padding: 6px 2px; color: #fff; font-size: 11px; }
.page-edit-wizard-layout .page-parts-preview-card,.page-edit-wizard-layout .page-parts-publish-card,.page-edit-wizard-layout .page-parts-history-card { margin-bottom: 16px; }
.page-edit-location-map { border-top: 5px solid #176549; }
.page-edit-location-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.page-edit-device-map { padding: 14px; border: 1px solid #d9dedb; border-radius: 12px; background: #f8faf9; }
.page-edit-device-map-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.page-edit-device-map-heading strong { font-size: 15px; }
.page-edit-device-map-heading small { color: #647069; font-size: 10px; }
.page-edit-phone-picture { display: grid; grid-template-rows: 112px 38px 112px; gap: 7px; width: min(100%,220px); margin: 0 auto 13px; padding: 12px 9px 15px; border: 6px solid #242a27; border-radius: 25px; background: #fff; }
.page-edit-desktop-picture { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(96px,.7fr); grid-template-rows: 70px 130px 82px; gap: 8px; margin: 0 0 13px; padding: 12px; border: 6px solid #242a27; border-radius: 10px; background: #fff; }
.page-edit-map-zone { display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; min-width: 0; padding: 8px; border: 2px solid #176549; border-radius: 8px; background: #eaf6f0; color: #173d30; text-align: left; cursor: pointer; }
.page-edit-map-zone:hover,.page-edit-device-map-actions button:hover { border-color: #cc382d; box-shadow: 0 4px 14px rgba(95,46,36,.13); }
.page-edit-map-zone b,.page-edit-device-map-actions b,.page-edit-field-summary > i { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #176549; color: #fff; font-size: 13px; font-style: normal; font-weight: 900; }
.page-edit-map-zone span { font-size: 11px; font-weight: 900; line-height: 1.35; }
.page-edit-map-zone small { color: #547064; font-size: 9px; }
.page-edit-map-product-summary,.page-edit-map-main-image,.page-edit-map-purchase-summary { display: grid; place-items: center; border: 1px dashed #b8c0bc; border-radius: 7px; background: #f1f3f2; color: #68736d; font-size: 10px; font-weight: 800; }
.page-edit-map-main-image { grid-row: 2; grid-column: 1; }
.page-edit-map-purchase-summary { grid-row: 2; grid-column: 2; text-align: center; }
.page-edit-desktop-picture .zone-d { grid-row: 1; grid-column: 1 / -1; }
.page-edit-desktop-picture .zone-c { grid-row: 3; grid-column: 1 / -1; }
.page-edit-device-map-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.page-edit-device-map-actions button { display: flex; gap: 8px; align-items: center; min-height: 66px; padding: 9px; border: 1px solid #cfd6d2; border-radius: 9px; background: #fff; color: #1e2622; text-align: left; cursor: pointer; }
.page-edit-device-map-actions button > span { display: grid; gap: 2px; font-size: 11px; font-weight: 900; line-height: 1.35; }
.page-edit-device-map-actions button small { color: #69736e; font-size: 9px; font-weight: 600; }
.page-edit-location-rule { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-left: 4px solid #d9a72e; border-radius: 8px; background: #fff8e5; font-size: 11px; line-height: 1.6; }
.page-edit-location-rule strong { flex: 0 0 auto; color: #765e1f; }
.page-edit-location-rule b { color: #176549; }
.page-edit-field-summary { display: flex !important; grid-template-columns: none !important; flex-direction: row; gap: 11px !important; align-items: center; }
.page-edit-field-summary > span { display: grid; gap: 3px; }
.page-edit-field-summary > span > strong { font-size: 14px; }
.page-edit-field-summary > span > small:first-of-type { color: #315b49; font-weight: 800; }
.page-edit-location-highlight { animation: page-edit-location-pulse 1.8s ease; }
@keyframes page-edit-location-pulse { 0%,100% { box-shadow: none; } 25%,70% { box-shadow: 0 0 0 5px rgba(217,167,46,.34); } }
.page-edit-flick-section { border-top: 5px solid #161616; }
.page-edit-flick-section .page-edit-flick-preview { margin-top: 0; }
.page-edit-inline-preview-heading { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; }
.page-edit-inline-preview-heading > span { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #176549; color: #fff; font-size: 16px; font-weight: 900; }
.page-edit-inline-preview-heading > div { display: grid; min-width: 0; gap: 2px; }
.page-edit-inline-preview-heading h2,.page-edit-inline-preview-heading p { margin: 0; }
.page-edit-inline-preview-heading p:not(.eyebrow),.page-edit-inline-preview-heading small { color: #66716b; font-size: 10px; }
.page-edit-inline-preview-heading > b { margin-left: auto; padding: 6px 9px; border-radius: 999px; background: #e8f2ed; color: #176549; font-size: 10px; white-space: nowrap; }
.page-edit-inline-preview-block { padding: 14px; border-bottom: 1px solid #dfe3e0; background: #f2f8f5; }
.page-edit-inline-preview-block .page-preview-device { display: block; width: 100%; margin: 0; }
.page-edit-inline-preview-block .page-preview-device.phone { width: min(100%,360px); margin-right: auto; margin-left: auto; }
.page-edit-inline-preview-block .page-preview-device iframe { height: 330px; }
.page-edit-inline-preview-block .page-preview-device.phone iframe { height: 430px; }
.page-edit-inline-preview-block > p,.page-edit-inline-action-note { margin: 10px 0 0; color: #58655e; font-size: 10px; line-height: 1.65; text-align: center; }
.page-edit-inline-action-note { padding: 10px; border-radius: 8px; background: #fff8e5; color: #6b5a2d; }
.page-edit-wizard-layout .page-parts-preview-card .page-preview-device { display: inline-block; vertical-align: top; width: calc(50% - 10px); margin-right: 12px; }
.page-edit-wizard-layout .page-parts-preview-card .page-preview-device.phone { margin-right: 0; }
.page-parts-load-card { margin-bottom: 14px; border-top: 4px solid #326f9d; }
.page-parts-load-form { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 12px; align-items: end; }
.page-parts-load-form label, .page-part-form label, .page-parts-add-form label { display: grid; gap: 6px; }
.page-parts-load-form label > span, .page-part-form label > span, .page-parts-add-form label > span { font-size: 12px; font-weight: 800; color: var(--muted); }
.page-parts-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.page-parts-flow li { display: flex; gap: 11px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.page-parts-flow li > span { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #e9edf0; color: #52606a; font-weight: 900; }
.page-parts-flow li.done > span { background: #207b5c; color: #fff; }
.page-parts-flow li div { display: grid; gap: 3px; }
.page-parts-flow li small { color: var(--muted); line-height: 1.45; }
.page-parts-status { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 16px; padding: 16px 18px; border-radius: 13px; background: #184f3d; color: #fff; }
.page-parts-status.editing { background: #245c87; }
.page-parts-status.conflict { background: #9c342d; }
.page-parts-status > div { display: grid; gap: 3px; }
.page-parts-status span, .page-parts-status small { color: rgba(255,255,255,.78); }
.page-parts-status strong { font-size: 17px; }
.page-parts-status-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.page-parts-status-actions form { margin: 0; }
.page-parts-error { display: grid; gap: 5px; margin: 0 0 16px; padding: 13px 16px; border: 1px solid #efc0be; border-radius: 10px; background: #fff0ef; color: #862d29; }
.page-parts-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .8fr); gap: 16px; align-items: start; }
.page-parts-editor, .page-parts-side { display: grid; gap: 16px; }
.page-parts-field-list { display: grid; gap: 12px; }
.page-parts-field { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfa; }
.page-parts-field > summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 16px; cursor: pointer; background: #f5f6f5; }
.page-parts-field > summary span { display: grid; gap: 3px; }
.page-parts-field > summary small { color: var(--muted); }
.page-parts-field > summary b { padding: 5px 9px; border-radius: 999px; background: #e7f2ff; color: #245c87; font-size: 11px; }
.page-parts-field > summary em { color: var(--muted); font-size: 11px; font-style: normal; }
.page-parts-cards { display: grid; gap: 12px; padding: 12px; }
.page-part-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid #dedfdd; border-radius: 10px; background: #fff; }
.page-part-card[draggable="true"] { cursor: grab; }
.page-part-card.is-dragging { opacity: .48; cursor: grabbing; }
.page-part-card.is-drag-over { border-color: #207b5c; box-shadow: 0 0 0 3px rgba(32,123,92,.14); }
.page-part-drag-handle { display: flex; grid-column: 1 / -1; gap: 8px; align-items: center; margin: -4px -4px 0; padding: 7px 9px; border-radius: 7px; background: #f2f5f3; color: #536159; font-size: 11px; }
.page-part-drag-handle > span { font-size: 17px; line-height: 1; }
.page-part-drag-handle small { margin-left: auto; color: var(--muted); }
.page-part-preview { position: relative; display: grid; min-height: 125px; place-items: center; overflow: hidden; border-radius: 8px; background: #f1efeb; }
.page-part-preview img { display: block; width: 100%; max-height: 190px; object-fit: contain; }
.page-part-preview > span { position: absolute; top: 7px; left: 7px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: rgba(15,20,18,.82); color: #fff; font-size: 11px; font-weight: 900; }
.page-part-select { position: absolute; right: 7px; bottom: 7px; display: flex; gap: 5px; align-items: center; padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.94); color: #4d5550; font-size: 11px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.page-part-text-preview { padding: 14px; color: #7d2520; font-weight: 800; text-align: center; }
.page-part-form { display: grid; gap: 9px; min-width: 0; }
.page-part-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.page-part-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-part-meta span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #e8f2ed; color: #176549; font-size: 10px; font-weight: 800; }
.page-part-form input, .page-parts-add-form input, .page-parts-add-form select, .page-parts-load-form input { width: 100%; }
.page-part-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.page-part-actions .button { min-height: 36px; padding: 8px 11px; font-size: 11px; }
.page-part-actions .button:disabled { opacity: .38; cursor: not-allowed; }
.page-parts-reorder-form { display: none; }
.page-parts-empty { padding: 20px; border: 1px dashed #cfd2cf; border-radius: 9px; text-align: center; }
.page-parts-empty p { margin-bottom: 0; color: var(--muted); }
.page-parts-bulk-delete { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 0 12px 12px; }
.page-parts-bulk-delete span { color: var(--muted); font-size: 11px; }
.page-parts-bulk-delete .button { flex: 0 0 auto; }
.page-parts-bulk-delete > div { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.page-parts-add-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.page-parts-add-form .wide { grid-column: 1 / -1; }
.page-parts-add-form > .button { justify-self: end; grid-column: 1 / -1; }
.page-parts-30off-card { border-top: 5px solid #c39924; }
.page-parts-30off-form { display: grid; gap: 14px; }
.page-parts-30off-settings { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, .7fr); gap: 12px; align-items: end; padding: 13px; border-radius: 10px; background: #faf7ed; }
.page-parts-30off-settings fieldset { display: flex; gap: 9px 18px; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; border: 0; }
.page-parts-30off-settings legend { width: 100%; margin-bottom: 7px; color: #6c6042; font-size: 11px; font-weight: 900; }
.page-parts-30off-settings fieldset label { display: flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 800; }
.page-parts-30off-settings input { width: 18px; height: 18px; accent-color: #176549; }
.page-parts-fixed-destinations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; }
.page-parts-fixed-destinations strong, .page-parts-fixed-destinations small { grid-column: 1 / -1; }
.page-parts-fixed-destinations strong { color: #6c6042; font-size: 11px; }
.page-parts-fixed-destinations span { padding: 9px 10px; border: 1px solid #dfd3ae; border-radius: 8px; background: #fff; color: #2d382f; font-size: 12px; font-weight: 900; }
.page-parts-fixed-destinations small { color: #8a7140; }
.page-parts-30off-position { display: grid; gap: 6px; }
.page-parts-30off-position > span { color: #6c6042; font-size: 11px; font-weight: 900; }
.page-parts-30off-position select { width: 100%; }
.page-parts-30off-note { margin: 0; padding: 10px 12px; border-left: 4px solid #d9a72e; background: #fff9e8; color: #6a5b36; font-size: 11px; line-height: 1.7; }
.page-parts-30off-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.page-parts-30off-preset { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid #dedbd0; border-radius: 11px; background: #fff; }
.page-parts-30off-preset.is-missing { background: #f6f5f2; opacity: .78; }
.page-parts-30off-image { display: grid; min-height: 100px; place-items: center; overflow: hidden; border-radius: 8px; background: #efeee9; }
.page-parts-30off-image img { display: block; width: 100%; max-height: 150px; object-fit: contain; }
.page-parts-30off-image span { padding: 12px; color: var(--muted); font-size: 11px; text-align: center; }
.page-parts-30off-info { display: grid; align-content: center; gap: 4px; min-width: 0; }
.page-parts-30off-info > span { color: #aa3028; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.page-parts-30off-info h3 { margin: 0; font-size: 16px; }
.page-parts-30off-info small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.page-parts-30off-info a { color: #176549; font-size: 11px; font-weight: 800; }
.page-parts-30off-preset > .button { grid-column: 1 / -1; width: 100%; }
.page-parts-preview-card { position: static; }
.page-preview-device { margin-top: 12px; overflow: hidden; border: 3px solid #272d2a; background: #fff; }
.page-preview-device.desktop { border-radius: 9px; }
.page-preview-device.phone { width: min(100%, 330px); margin-right: auto; margin-left: auto; border-width: 6px; border-radius: 24px; }
.page-preview-device-head { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #272d2a; color: #fff; }
.page-preview-device-head span { color: #c7ceca; font-size: 10px; }
.page-preview-device iframe { display: block; width: 100%; height: 360px; border: 0; background: #fff; }
.page-preview-device.phone iframe { height: 480px; }
.page-preview-note, .page-parts-safety { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.page-parts-publish-card { position: relative; z-index: 2; border: 3px solid #207b5c; border-top-width: 7px; background: #fff; scroll-margin-top: 18px; }
.page-parts-publish-card h2 { margin-top: 3px; }
.page-parts-publish-card form { display: grid; gap: 12px; }
.page-parts-confirm { display: flex; gap: 11px; align-items: center; padding: 14px; border: 2px solid #d9a72e; border-radius: 10px; background: #fff8df; font-size: 13px; font-weight: 800; }
.page-parts-confirm input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: #176549; }
.page-parts-final-button { width: 100%; min-height: 52px; font-size: 14px; }
.page-parts-sticky-final { position: fixed; z-index: 40; right: 22px; bottom: 18px; display: flex; gap: 18px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 13px; background: #176549; color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(18,68,50,.28); }
.page-parts-sticky-final span { display: grid; gap: 2px; }
.page-parts-sticky-final small { color: rgba(255,255,255,.75); font-size: 10px; }
.page-parts-sticky-final b { padding: 9px 11px; border-radius: 8px; background: #fff; color: #176549; font-size: 12px; white-space: nowrap; }
.page-parts-sticky-final.is-hidden { visibility: hidden; opacity: 0; transform: translateY(12px); pointer-events: none; }
.page-parts-reorder-notice { position: fixed; z-index: 80; top: 18px; left: 50%; max-width: min(92vw, 640px); padding: 12px 16px; border-radius: 10px; background: #176549; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.6; opacity: 0; transform: translate(-50%, -12px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; box-shadow: 0 8px 26px rgba(18,68,50,.24); }
.page-parts-reorder-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }
.page-parts-reorder-notice.is-error { background: #9c342d; }
.page-parts-reset-form { margin-top: 9px; }
.page-parts-no-change { padding: 14px; border-radius: 9px; background: #f3f4f3; text-align: center; }
.page-parts-no-change p { margin-bottom: 0; color: var(--muted); }
.page-parts-history-list, .page-parts-recent-list { display: grid; gap: 8px; }
.page-parts-history-list > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.page-parts-history-list span { display: grid; gap: 3px; }
.page-parts-history-list small { color: var(--muted); }
.page-parts-history-list button { border: 0; background: transparent; color: #176549; font-weight: 800; cursor: pointer; }
.page-parts-recent-card { margin-top: 16px; }
.page-parts-recent-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.page-parts-recent-list a { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); text-decoration: none; }
.page-parts-recent-list a:hover { border-color: #326f9d; }
.page-parts-recent-list span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.page-parts-recent-list small { color: #326f9d; }
#html-creation-settings { scroll-margin-top: 18px; }
@media (max-width: 1180px) { .page-edit-wizard-layout .page-parts-cards { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 880px) { .page-edit-location-layout { grid-template-columns: 1fr; } .page-edit-wizard-layout .page-parts-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } .page-edit-wizard-layout .page-parts-preview-card .page-preview-device { display: block; width: 100%; margin-right: 0; } }
@media (max-width: 620px) { .page-edit-device-map-actions { grid-template-columns: 1fr; } .page-edit-location-rule { align-items: flex-start; flex-direction: column; } .page-edit-wizard-layout .page-parts-cards { grid-template-columns: 1fr; } }
.dashboard-alert { margin-bottom: 18px; padding: 13px 16px; border-left: 4px solid var(--amber); border-radius: 8px; background: #fff8e9; font-size: 13px; }
.dashboard-alert.compact { margin: 18px 0 0; }
.employee-operation-guide {
  display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: 22px;
  margin: 0 0 18px; padding: 20px; border: 1px solid #c9dfd4;
  border-radius: 13px; background: #f4faf7;
}
.employee-operation-guide-heading h2 { margin: 3px 0 4px; }
.employee-operation-guide-heading > p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.employee-operation-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px;
  margin: 0; padding: 0; list-style: none;
}
.employee-operation-steps li {
  display: flex; min-width: 0; align-items: flex-start; gap: 9px; padding: 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.employee-operation-steps li > span {
  display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 900;
}
.employee-operation-steps strong, .employee-operation-steps small { display: block; }
.employee-operation-steps strong { font-size: 12px; }
.employee-operation-steps small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.status-legend {
  margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff;
}
.status-legend-heading { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.status-legend-heading::-webkit-details-marker { display: none; }
.status-legend-heading strong { font-size: 14px; }
.status-legend-heading span { margin-left: auto; color: var(--muted); font-size: 10px; }
.status-legend[open] .status-legend-heading { margin-bottom: 14px; }
.status-legend dl {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin: 0;
}
.status-legend dl > div { padding: 11px 12px; border-radius: 8px; background: #f7f5f1; }
.status-legend dt { font-size: 11px; font-weight: 850; }
.status-legend dd { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.operation-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.operation-card { padding: 22px; border: 1px solid var(--line); border-top: 5px solid #aaa; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(27,22,17,.035); }
.operation-card-active { border-top-color: var(--green); }
.operation-card-scheduled { border-top-color: #2d67a4; }
.operation-card-ended { border-top-color: #777; }
.operation-card-unconfigured { border-top-color: var(--amber); }
.operation-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.operation-card-head h2 { margin: 2px 0 0; }
.operation-kicker { margin: 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.operation-badge { flex: none; padding: 5px 10px; border-radius: 999px; background: #eee; font-size: 12px; font-weight: 800; }
.operation-badge-active { background: #e3f4ea; color: var(--green); }
.operation-badge-scheduled { background: #e8f1fb; color: #245f9a; }
.operation-badge-unconfigured { background: #fff0d8; color: #915400; }
.operation-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.operation-facts > div { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.operation-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.operation-facts dt { color: var(--muted); font-size: 11px; }
.operation-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }
.next-operation {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 0 16px; padding: 14px 16px; border: 1px solid #bfd7cb;
  border-left: 5px solid var(--green); border-radius: 10px; background: #f1f8f4;
}
.next-operation > div { min-width: 0; }
.next-operation span, .next-operation strong, .next-operation small { display: block; }
.next-operation span { color: var(--muted); font-size: 10px; font-weight: 800; }
.next-operation strong { margin-top: 2px; font-size: 15px; }
.next-operation small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.next-operation time { flex: none; font-size: 14px; font-weight: 900; }
.next-operation-danger { border-color: #e7aaa3; border-left-color: var(--accent); background: #fff1ee; }
.next-operation-danger .dashboard-recovery-button {
  flex: none; min-width: 230px; min-height: 50px; padding: 12px 18px;
  font-size: 13px; text-align: center;
}
.worker-deploy-guide { flex: none; min-width: 250px; padding: 11px 13px; border: 1px solid #df9188; border-radius: 8px; background: #fff; }
.worker-deploy-guide strong, .worker-deploy-guide small { display: block; }
.worker-deploy-guide strong { color: var(--accent-dark); font-size: 12px; }
.worker-deploy-guide small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.next-operation-waiting { border-color: #e5c17a; border-left-color: var(--amber); background: #fff8e9; }
.next-operation-complete, .next-operation-neutral { border-color: var(--line); border-left-color: #8a8680; background: #f7f5f1; }
.next-operation-table-label { color: var(--green); font-size: 12px; }
.operation-details { margin-top: 13px; border-top: 1px solid var(--line); }
.operation-details > summary { padding: 13px 2px; cursor: pointer; color: var(--green); font-size: 12px; font-weight: 850; }
.operation-details[open] > summary { margin-bottom: 4px; }
.dashboard-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dashboard-image-grid figure { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.dashboard-image-grid figcaption { margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.dashboard-image-grid img { display: block; width: 100%; max-height: 130px; object-fit: contain; background: #fafafa; }
.image-unset, .dashboard-empty-row { display: grid; min-height: 70px; place-items: center; border-radius: 6px; background: #f6f4f1; color: var(--muted); font-size: 12px; }
.flick-monitor { margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #faf9f7; }
.flick-monitor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.flick-monitor-head h3 { margin: 0; font-size: 14px; }
.flick-monitor-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.flick-monitor-head > span { flex: none; padding: 4px 8px; border-radius: 999px; background: #ece8e1; color: var(--muted); font-size: 10px; font-weight: 800; }
.flick-monitor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flick-monitor-card { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.flick-monitor-card > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.flick-status { padding: 4px 7px; border-radius: 999px; background: #eee; color: #555; font-size: 10px; font-weight: 800; }
.flick-status-applied { background: #e3f4ea; color: var(--green); }
.flick-status-scheduled { background: #e8f1fb; color: #245f9a; }
.flick-status-failed { background: #fff0ee; color: #a32b23; }
.flick-preview { display: grid; min-height: 82px; place-items: center; border: 1px solid #eeeae4; border-radius: 7px; background: #fafafa; overflow: hidden; }
.flick-preview img { display: block; width: 100%; max-height: 145px; object-fit: contain; }
.flick-preview-empty { color: var(--muted); font-size: 11px; }
.flick-display-label { margin: 5px 0 10px; color: var(--muted); font-size: 10px; text-align: center; }
.flick-details { margin: 0; }
.flick-details > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid #eeeae4; font-size: 10px; }
.flick-details dt { color: var(--muted); }
.flick-details dd { margin: 0; text-align: right; }
.flick-details a, .flick-coupon-links a { color: var(--green); font-weight: 800; }
.flick-coupon-links { margin-top: 8px; }
.flick-coupon-links > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px; border-radius: 6px; background: #f5f3ef; font-size: 10px; }
.flick-coupon-links > div + div { margin-top: 5px; }
.flick-coupon-links span { min-width: 0; font-weight: 750; }
.flick-coupon-links small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.flick-coupon-links a { flex: none; }
.flick-coupon-links p { margin: 0; color: var(--muted); font-size: 10px; }
.flick-monitor-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.coupon-monitor { margin-top: 18px; }
.coupon-monitor h3 { margin-bottom: 8px; font-size: 14px; }
.coupon-monitor-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.coupon-monitor-row small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.coupon-monitor-row a { flex: none; color: var(--green); font-weight: 800; }
.operation-log-summary { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding: 10px 12px; background: #f6f4f1; color: var(--muted); font-size: 11px; }
.dashboard-error { margin-top: 8px; padding: 9px 11px; border-radius: 6px; background: #fff0ee; color: #a32b23; font-size: 12px; overflow-wrap: anywhere; }
.operation-actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.operation-actions-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.operation-actions-head h3 { margin: 0; font-size: 15px; }
.operation-actions-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.operation-action-flow {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.operation-action-link {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px;
  border: 1px solid var(--line); border-radius: 9px; background: #faf9f7;
  color: var(--text); text-decoration: none;
}
.operation-action-link:hover { border-color: #bdb7ae; background: #fff; }
.operation-action-number {
  display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center;
  border-radius: 50%; background: #e9e5df; color: #4a4540; font-size: 11px; font-weight: 850;
}
.operation-action-link > span:last-child { min-width: 0; }
.operation-action-link strong { display: block; font-size: 12px; line-height: 1.35; }
.operation-action-link small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.operation-action-coupon { border-color: #d5c7a9; background: #fffaf0; }
.operation-action-coupon .operation-action-number { background: #f2e3be; color: #75500a; }
.operation-action-primary { border-color: var(--green); background: #edf7f1; }
.operation-action-primary .operation-action-number { background: var(--green); color: #fff; }
.operation-action-primary strong { color: var(--green); }
.operation-action-primary.is-failed { border-color: var(--accent); background: #fff0ee; }
.operation-action-primary.is-failed .operation-action-number { background: var(--accent); }
.operation-action-primary.is-failed strong { color: var(--accent-dark); }
.campaign-stop-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 14px; padding: 15px 16px; border: 1px solid #ebc1bc;
  border-radius: 10px; background: #fff8f6;
}
.campaign-stop-panel strong, .campaign-stop-panel small { display: block; }
.campaign-stop-panel strong { font-size: 13px; }
.campaign-stop-panel small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.campaign-stop-panel .campaign-stop-button {
  flex: 0 0 auto; min-width: 210px; min-height: 52px; padding: 13px 18px;
  font-size: 13px; font-weight: 900;
}
.line-operation-card { align-self: start; }
.plan-list-jump {
  display: grid; grid-template-columns: minmax(190px, 1.3fr) repeat(3, minmax(145px, 1fr));
  gap: 8px; margin: -4px 0 16px; padding: 10px; border: 1px solid var(--line);
  border-radius: 13px; background: #fff; box-shadow: 0 4px 18px rgba(27, 22, 17, .035);
}
.plan-list-jump-heading {
  display: flex; flex-direction: column; justify-content: center; min-height: 62px;
  padding: 7px 10px;
}
.plan-list-jump-heading strong { margin-top: 2px; font-size: 15px; }
.plan-list-jump-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 62px; padding: 12px 15px; border: 1px solid var(--line);
  border-radius: 9px; color: var(--ink); text-decoration: none; transition: .15s ease;
}
.plan-list-jump-link:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(27, 22, 17, .08); }
.plan-list-jump-link span { font-size: 13px; font-weight: 850; }
.plan-list-jump-link strong { font-size: 18px; white-space: nowrap; }
.plan-list-jump-link.running { border-color: #9acbb5; background: #edf7f1; color: var(--green); }
.plan-list-jump-link.draft { border-color: #e5c17a; background: #fff8e9; color: #805510; }
.plan-list-jump-link.archived { background: #f1f0ee; color: #5f5b56; }
.plan-list-section { margin-top: 22px; }
#running-plans, #draft-plans, #archived-plans { scroll-margin-top: 24px; }
.plan-list-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 16px;
}
.plan-list-heading h2 { margin: 2px 0 0; }
.plan-list-heading > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 12px; }
.plan-list-table { min-width: 850px; }
.plan-list-table td { font-size: 13px; }
.selection-column { width: 58px; text-align: center; }
.selection-column input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.selection-column input:disabled { cursor: not-allowed; opacity: .45; }
.draft-bulk-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 12px; padding: 13px 14px; border-radius: 9px; background: #f6f4f1;
}
.draft-select-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.draft-select-all input { width: 18px; height: 18px; accent-color: var(--accent); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.plan-delete-ready { color: var(--green); font-size: 12px; font-weight: 800; }
.plan-delete-blocked { display: block; color: var(--accent-dark); font-size: 12px; font-weight: 800; }
.plan-action-note { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.draft-row-delete-button { min-width: 128px; padding: 9px 12px; font-size: 12px; }
.table-stop-button { min-width: 86px; padding: 9px 13px; font-weight: 850; }
.confirmation-dialog {
  width: min(520px, calc(100% - 28px)); padding: 26px; border: 0; border-radius: 14px;
  background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.confirmation-dialog::backdrop { background: rgba(20, 17, 15, .58); }
.confirmation-dialog h2 { margin: 6px 0 12px; font-size: 25px; }
.confirmation-dialog p { margin: 8px 0; }
.dialog-warning { padding: 12px 13px; border-radius: 8px; background: #fff4f1; color: #7e2b24; font-size: 12px; }
.dialog-actions { justify-content: flex-end; margin-top: 20px; }
.dashboard-history { margin-top: 22px; }
.dashboard-history > summary { cursor: pointer; font-weight: 800; }
.dashboard-history[open] > summary { margin-bottom: 18px; }
.archived-history-note { margin: 0 0 14px; padding: 11px 13px; border-radius: 8px; background: #f3f1ed; color: var(--muted); font-size: 11px; line-height: 1.55; }
.asset-catalog { margin-top: 22px; }
.asset-catalog-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 18px;
}
.asset-catalog-heading h2 { margin: 0; }
.asset-catalog-heading > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.asset-catalog-group { border-top: 1px solid var(--line); }
.asset-catalog-group > summary {
  display: flex; cursor: pointer; align-items: baseline; gap: 14px; padding: 15px 2px;
}
.asset-catalog-group > summary strong { font-size: 15px; }
.asset-catalog-group > summary span { color: var(--muted); font-size: 11px; }
.asset-catalog-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding: 0 0 18px;
}
.asset-catalog-item {
  min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #faf9f7;
}
.asset-catalog-item header span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.asset-catalog-item header strong { display: block; margin-top: 3px; font-size: 12px; }
.asset-catalog-item > a:last-child { display: inline-block; margin-top: 9px; color: var(--green); font-size: 11px; font-weight: 800; }
.asset-catalog-preview { display: block; margin-top: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.asset-catalog-preview img { display: block; width: 100%; height: 88px; object-fit: contain; }
.timeline-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.timeline-step {
  position: relative; display: flex; min-height: 150px; flex-direction: column;
  gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 10px;
  background: #faf9f7;
}
.timeline-step > span {
  display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800;
}
.timeline-step time { font-size: 16px; font-weight: 750; }
.timeline-step small { color: var(--muted); line-height: 1.5; }
.day05-timeline-edit { margin-top: 20px; }
.day05-timeline-form-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin: 14px 0 4px;
}
.day05-timeline-form-grid p { margin: 0; }
.day05-timeline-form-grid input { width: 100%; }
.campaign-control-panel {
  margin-bottom: 18px; padding: 22px; border: 1px solid #c9dfd4;
  border-top: 5px solid var(--green); border-radius: 14px; background: #fff;
  box-shadow: 0 7px 24px rgba(27, 22, 17, .045);
}
.campaign-control-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.campaign-control-panel > header h2 { margin: 2px 0 0; }
.campaign-control-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px;
  margin: 18px 0; padding: 0; list-style: none;
}
.campaign-control-steps li {
  display: flex; min-width: 0; align-items: center; gap: 10px; padding: 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #faf9f7; color: #7b7771;
}
.campaign-control-steps li > span {
  display: grid; flex: 0 0 29px; width: 29px; height: 29px; place-items: center;
  border-radius: 50%; background: #dedbd6; color: #625e58; font-size: 12px; font-weight: 900;
}
.campaign-control-steps strong, .campaign-control-steps small { display: block; }
.campaign-control-steps strong { font-size: 12px; }
.campaign-control-steps small { color: var(--muted); font-size: 10px; }
.campaign-control-steps li.done { border-color: #c9dfd4; color: var(--green); background: #f4faf7; }
.campaign-control-steps li.done > span { background: var(--green); color: #fff; }
.campaign-control-steps li.current { border: 2px solid var(--accent); color: var(--ink); background: #fff8f6; }
.campaign-control-steps li.current > span { background: var(--accent); color: #fff; }
.campaign-next-action { margin-bottom: 0; }
.campaign-next-action .button { display: inline-flex; min-height: 50px; flex: none; align-items: center; padding-inline: 22px; font-size: 13px; }
.campaign-operation-menu {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
}
.campaign-operation-menu > header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  margin-bottom: 14px;
}
.campaign-operation-menu > header h3 { margin: 2px 0 5px; font-size: 21px; }
.campaign-operation-menu > header p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.campaign-operation-menu > header > span {
  flex: none; padding: 8px 11px; border-radius: 999px; background: #edf7f2;
  color: var(--green); font-size: 10px; font-weight: 850;
}
.campaign-operation-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.campaign-operation-grid a {
  display: grid; min-width: 0; min-height: 98px;
  grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: 1fr auto;
  gap: 5px 11px; align-items: center; padding: 15px;
  border: 1px solid #d9d5ce; border-radius: 11px; background: #fff;
  color: var(--ink); text-decoration: none; transition: .16s ease;
}
.campaign-operation-grid a:hover {
  transform: translateY(-1px); border-color: var(--green); background: #f5faf7;
  box-shadow: 0 6px 16px rgba(22, 92, 68, .08);
}
.campaign-operation-grid a > b {
  display: grid; width: 38px; height: 38px; grid-row: 1 / 3; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 12px;
}
.campaign-operation-grid a > span { min-width: 0; }
.campaign-operation-grid a strong, .campaign-operation-grid a small { display: block; }
.campaign-operation-grid a strong { font-size: 14px; }
.campaign-operation-grid a small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.campaign-operation-grid a em {
  grid-column: 2; color: var(--green); font-size: 10px; font-style: normal; font-weight: 900;
}
.campaign-operation-grid a.related { background: #faf8f4; }
.campaign-operation-grid a.related > b { border-radius: 9px; background: #504b45; font-size: 9px; }
.operation-audit-card .section-heading { align-items: flex-start; }
.operation-audit-card .section-heading p:last-child { margin: 5px 0 0; }
.operation-audit-grid { margin-top: 14px; border-top: 1px solid var(--line); }
.operation-audit-row {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto minmax(100px, auto);
  align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.operation-audit-row:last-child { border-bottom: 0; }
.operation-audit-row div strong, .operation-audit-row div small { display: block; }
.operation-audit-row div small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.operation-audit-row time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.operation-audit-row > b { color: var(--green); font-size: 12px; text-align: right; }
#campaign-settings, #campaign-timing, #workflow, #execution-status, #reservation-settings { scroll-margin-top: 24px; }
.rakuten-date-reference {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px;
  margin-bottom: 18px; padding: 15px 16px; border: 1px solid #d8d3ca;
  border-radius: 10px; background: #faf9f7;
}
.rakuten-date-reference p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.rakuten-date-reference > small { grid-column: 1 / -1; color: #805510; font-size: 10px; }
.schedule-step-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-bottom: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.schedule-step-bar a {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 1px 9px;
  align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 8px;
  color: inherit; text-decoration: none;
}
.schedule-step-bar a > span {
  display: grid; width: 28px; height: 28px; grid-row: 1 / 3; place-items: center;
  border-radius: 50%; background: #dcd8d2; font-size: 11px; font-weight: 900;
}
.schedule-step-bar strong, .schedule-step-bar small { display: block; }
.schedule-step-bar strong { font-size: 12px; }
.schedule-step-bar small { color: var(--muted); font-size: 10px; }
.schedule-step-bar a.done { color: var(--green); background: #f4faf7; }
.schedule-step-bar a.done > span { background: var(--green); color: #fff; }
.schedule-step-bar a.current { border-color: var(--accent); background: #fff8f6; }
.schedule-step-bar a.current > span { background: var(--accent); color: #fff; }
.schedule-step-bar a.ready { border-color: #ddb785; background: #fffaf1; }
.schedule-step-bar a.ready > span { background: #bc7418; color: #fff; }
.active-reservation-hero {
  display: grid; grid-template-columns: minmax(260px, 1.15fr) minmax(360px, 1fr);
  gap: 18px; align-items: center; margin: 0 0 18px; padding: 19px 21px;
  border: 1px solid #bad9ca; border-left: 6px solid var(--green); border-radius: 13px;
  background: linear-gradient(135deg, #eef8f3 0%, #fff 72%);
  box-shadow: 0 7px 22px rgba(29, 84, 61, .08);
}
.active-reservation-hero.is-running { border-left-color: var(--accent); background: linear-gradient(135deg, #fff4f1 0%, #fff 72%); }
.active-reservation-hero.is-failed {
  grid-template-columns: minmax(300px, 1fr) auto;
  border-color: #efb7af; border-left-color: var(--accent);
  background: linear-gradient(135deg, #fff0ed 0%, #fff 72%);
}
.active-reservation-title { display: flex; min-width: 0; align-items: center; gap: 13px; }
.active-reservation-title > span {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: var(--green);
  color: #fff; font-size: 12px; font-weight: 900;
}
.active-reservation-hero.is-running .active-reservation-title > span { background: var(--accent); }
.active-reservation-hero.is-failed .active-reservation-title > span { background: var(--accent); }
.active-reservation-title strong, .active-reservation-title small { display: block; }
.active-reservation-title strong { font-size: 16px; }
.active-reservation-title small { margin-top: 4px; color: var(--muted); line-height: 1.5; }
.active-reservation-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.active-reservation-times div { padding: 10px 12px; border: 1px solid #dbe6df; border-radius: 9px; background: rgba(255,255,255,.88); }
.active-reservation-times small, .active-reservation-times time { display: block; }
.active-reservation-times small { color: var(--muted); font-size: 9px; font-weight: 800; }
.active-reservation-times time { margin-top: 3px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.plan-reservation-hero { grid-template-columns: minmax(280px, 1fr) minmax(360px, 1fr) auto; }
.dashboard-reservation-ribbon {
  display: flex; align-items: center; gap: 12px; margin: 13px 0; padding: 13px 15px;
  border: 1px solid #bcdacb; border-radius: 10px; background: #edf8f2;
  color: var(--ink); text-decoration: none;
}
.dashboard-reservation-ribbon > span { flex: none; padding: 6px 9px; border-radius: 999px; background: var(--green); color: #fff; font-size: 10px; font-weight: 900; }
.dashboard-reservation-ribbon strong, .dashboard-reservation-ribbon small { display: block; }
.dashboard-reservation-ribbon small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.dashboard-reservation-ribbon.is-running { border-color: #e7c8bf; background: #fff3f0; }
.dashboard-reservation-ribbon.is-running > span { background: var(--accent); }
.dashboard-reservation-ribbon.is-success { border-color: #bcdacb; background: #edf8f2; }
.dashboard-reservation-ribbon.is-success > span { background: var(--green); }
.dashboard-reservation-ribbon.is-waiting,
.dashboard-reservation-ribbon.is-scheduled { border-color: #e5c17a; background: #fff8e9; }
.dashboard-reservation-ribbon.is-waiting > span,
.dashboard-reservation-ribbon.is-scheduled > span { background: #bc7418; }
.dashboard-reservation-ribbon.is-danger { border-color: #efb7af; background: #fff0ed; }
.dashboard-reservation-ribbon.is-danger > span { background: var(--accent); }
.execution-result {
  margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 10px; background: #faf9f7;
}
.execution-result > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.execution-result > header span,
.execution-result > header strong { display: block; }
.execution-result > header span { color: var(--muted); font-size: 10px; font-weight: 850; }
.execution-result > header strong { margin-top: 2px; font-size: 14px; }
.execution-result > header > small { color: var(--muted); font-size: 9px; }
.execution-result > dl {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px; margin: 11px 0 0;
}
.execution-result > dl > div { padding: 9px 10px; border-radius: 8px; background: #fff; }
.execution-result dt { color: var(--muted); font-size: 9px; font-weight: 800; }
.execution-result dd { margin: 2px 0 0; font-size: 18px; font-weight: 900; }
.execution-result dd small { margin-left: 3px; color: var(--muted); font-size: 8px; }
.execution-result .is-success dd { color: var(--green); }
.execution-result .is-failed dd { color: var(--accent-dark); }
.execution-result .is-pending dd { color: #9b620f; }
.execution-result > p { margin: 10px 0 0; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.execution-result-danger { border-color: #efb7af; background: #fff5f2; }
.execution-result-note { color: #8c332c; }
.reservation-workspace { grid-template-columns: minmax(0, 1fr); }
.reservation-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.reservation-preview-heading h2 { margin-top: 2px; }
.title-change-timeline {
  margin: 24px 0; padding: 20px; border: 1px solid #cddfd6; border-radius: 13px; background: #f7fbf9;
}
.title-timeline-head {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 15px 0 9px;
}
.title-timeline-head.has-phase { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.title-timeline-head div { padding: 10px 12px; border-radius: 8px; background: #e7f2ec; }
.title-timeline-head b, .title-timeline-head time { display: block; }
.title-timeline-head b { font-size: 11px; }
.title-timeline-head time { margin-top: 2px; color: var(--muted); font-size: 10px; }
.title-timeline-list { display: grid; gap: 9px; }
.title-timeline-list article {
  display: grid; grid-template-columns: 118px repeat(3, minmax(0, 1fr)); gap: 1px;
  overflow: hidden; border: 1px solid #d9e4de; border-radius: 9px; background: #d9e4de;
}
.title-timeline-list article.has-phase { grid-template-columns: 118px repeat(4, minmax(0, 1fr)); }
.title-timeline-list article > header, .title-timeline-list article > div { min-width: 0; padding: 12px; background: #fff; }
.title-timeline-list article > header { background: #173f31; color: #fff; }
.title-timeline-list article > header strong, .title-timeline-list article > header small { display: block; }
.title-timeline-list article > header small { margin-top: 4px; opacity: .7; }
.title-timeline-list article span { display: none; color: var(--muted); font-size: 9px; font-weight: 850; }
.title-timeline-list article p { margin: 0; font-size: 11px; line-height: 1.5; word-break: break-word; }
.title-timeline-list article .changed { background: #fffaf1; }
.title-timeline-list article .restored { background: #f1f8f4; }
.reservation-final-card {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; margin-top: 28px; padding: 22px;
  border: 2px solid var(--accent); border-radius: 14px; background: #fff8f6;
  scroll-margin-top: 20px;
}
.reservation-final-number { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; font-weight: 900; }
.reservation-final-copy h2 { margin: 2px 0 6px; }
.reservation-final-copy > p:not(.eyebrow) { margin: 0 0 15px; color: var(--muted); }
.reservation-confirm-check { margin: 12px 0 16px; padding: 14px; border-radius: 9px; background: #fff; font-weight: 800; }
.reservation-primary-action { display: flex; min-width: min(100%, 430px); flex-direction: column; gap: 6px; }
.reservation-primary-action > small { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.reservation-next-button {
  display: inline-flex; width: 100%; min-height: 56px; align-items: center; justify-content: center;
  padding: 13px 25px; font-size: 15px; box-shadow: 0 7px 18px rgba(197, 50, 38, .18);
}
.reservation-next-button.is-submitting,
.reservation-next-button[aria-disabled="true"] {
  pointer-events: none; opacity: .72; cursor: wait;
}
.reservation-preview-progress {
  display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 13px 14px;
  border: 1px solid #b9d7ca; border-radius: 10px; background: #f1f8f4; color: #173f31;
}
.reservation-preview-progress[hidden] { display: none; }
.reservation-preview-progress strong,
.reservation-preview-progress small { display: block; }
.reservation-preview-progress strong { font-size: 12px; }
.reservation-preview-progress small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.reservation-preview-spinner {
  flex: 0 0 auto; width: 22px; height: 22px; border: 3px solid #cfe1d9; border-top-color: #20775a;
  border-radius: 50%; animation: reservation-preview-spin .8s linear infinite;
}
@keyframes reservation-preview-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .reservation-preview-spinner { animation-duration: 1.8s; }
}
.reservation-submit {
  display: flex; width: 100%; min-height: 58px; align-items: center; justify-content: center;
  padding: 14px 26px; font-size: 16px; box-shadow: 0 8px 20px rgba(197, 50, 38, .2);
}
.important-operation-button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center;
  padding-inline: 21px; font-size: 13px; white-space: nowrap;
}
.reservation-trouble-tools { border-left: 5px solid var(--accent); }
.reservation-trouble-tools.is-failed { background: #fffdfc; }
.failed-reservation-action { display: grid; min-width: 330px; gap: 6px; }
.failed-reservation-action > small { color: var(--accent); font-size: 10px; font-weight: 900; }
.failed-reservation-action .button { min-height: 58px; font-size: 14px; }
.failed-recovery-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 16px 0; }
.failed-recovery-steps > div { position: relative; min-height: 76px; padding: 13px 12px 12px 48px; border: 1px solid #ead8d3; border-radius: 10px; background: #fff; }
.failed-recovery-steps span { position: absolute; top: 13px; left: 12px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 900; }
.failed-recovery-steps strong, .failed-recovery-steps small { display: block; }
.failed-recovery-steps strong { font-size: 12px; }
.failed-recovery-steps small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.reservation-source-details { margin-top: 18px; padding: 0; }
.reservation-source-details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; cursor: pointer; list-style: none;
}
.reservation-source-details > summary::-webkit-details-marker { display: none; }
.reservation-source-details > summary strong, .reservation-source-details > summary small { display: block; }
.reservation-source-details > summary small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.reservation-source-details > summary > span { color: var(--green); font-size: 11px; font-weight: 900; }
.reservation-source-details[open] > summary { border-bottom: 1px solid var(--line); }
.reservation-source-details[open] > summary > span { font-size: 0; }
.reservation-source-details[open] > summary > span::after { content: "閉じる"; font-size: 11px; }
.reservation-source-body { padding: 20px; }
.technical-history { margin: 18px 0; }
.technical-history > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 20px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
}
.technical-history > summary span { color: var(--muted); font-size: 11px; }
.technical-history[open] > summary { margin-bottom: 18px; }
.base-heading { align-items: flex-end; }
.base-notice {
  margin-bottom: 20px; padding: 15px 18px; border-left: 4px solid var(--amber);
  border-radius: 8px; background: #fff8e9; color: #5e4a20; line-height: 1.65;
}

.status-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.status-guide .button {
  flex: 0 0 auto;
}
.base-notice strong { display: block; color: #47340b; }
.screen-guide {
  margin: 0 0 22px; padding: 20px; border: 1px solid #cfe2d7;
  border-radius: 12px; background: #f4faf7;
}
.screen-guide-heading h2 { margin: 2px 0 5px; font-size: 20px; }
.screen-guide-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.screen-guide-flow {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px;
  margin: 17px 0 12px; padding: 0; list-style: none;
}
.screen-guide-flow li {
  display: flex; min-width: 0; gap: 9px; align-items: flex-start; padding: 12px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.screen-guide-flow li > span {
  display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff;
  font-size: 11px; font-weight: 900;
}
.screen-guide-flow strong, .screen-guide-flow small { display: block; }
.screen-guide-flow strong { font-size: 12px; }
.screen-guide-flow small {
  margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45;
}
.screen-guide-note { margin: 0; color: #345747; font-size: 11px; line-height: 1.6; }
.section-help { margin: 6px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.section-help.compact { margin: 7px 0 11px; }
.setting-scope-guide {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-bottom: 20px;
}
.setting-scope-guide > div {
  padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.setting-scope-guide strong, .setting-scope-guide span { display: block; }
.setting-scope-guide strong { font-size: 12px; }
.setting-scope-guide span {
  margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.55;
}
.field-help {
  display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.55;
}
.base-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.base-card {
  min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; box-shadow: 0 8px 24px rgba(35, 29, 22, .04);
}
.base-card-head, .banner-section-head, .heading-actions {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.base-card-head h2 { margin: 3px 0 4px; font-size: 24px; }
.base-card-head p { margin: 0; color: var(--muted); font-size: 12px; }
.base-number { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.base-edit-link {
  flex: 0 0 auto; color: var(--green); font-size: 12px; font-weight: 900;
  text-decoration: none;
}
.base-edit-link:hover { text-decoration: underline; }
.base-card-scope {
  margin: 18px 0 12px; padding: 12px 14px; border: 1px solid #cfe2d7;
  border-radius: 9px; background: #f4faf7; color: #345747;
  font-size: 11px; line-height: 1.65;
}
.base-ledger-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; margin: 0 0 18px;
}
.base-ledger-facts > div {
  min-width: 0; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #faf9f7;
}
.base-ledger-facts dt { color: var(--muted); font-size: 10px; }
.base-ledger-facts dd {
  margin: 4px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 850;
}
.base-card-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.base-card-action-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.base-workflow {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 18px 0;
}
.base-workflow-step {
  display: grid; min-width: 0; grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 9px; align-items: center; padding: 11px; border: 1px solid var(--line);
  border-radius: 9px; background: #faf9f7; color: inherit; text-decoration: none;
}
.base-workflow-step > span {
  display: grid; width: 28px; height: 28px; grid-row: 1 / 3; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 12px;
  font-weight: 900;
}
.base-workflow-step strong { font-size: 12px; }
.base-workflow-step small { color: var(--muted); font-size: 10px; }
.base-workflow-step:hover { border-color: var(--green); background: #f1f8f4; }
.base-workflow-step.disabled { cursor: not-allowed; opacity: .62; }
.base-workflow-step.disabled > span { background: #8d8a84; }
.base-operation-summary {
  margin-bottom: 16px; padding: 14px; border: 1px solid var(--line);
  border-radius: 9px; background: #f7faf8;
}
.base-operation-summary-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.base-operation-plan {
  display: inline-block; margin: 9px 0; color: var(--green); font-weight: 850;
}
.base-operation-summary dl {
  display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 5px 9px;
  margin: 0; font-size: 11px;
}
.base-operation-summary dt { color: var(--muted); }
.base-operation-summary dd { margin: 0; overflow-wrap: anywhere; }
.coupon-code-panel {
  margin: 18px 0; padding: 17px 18px; border-radius: 10px; background: #111;
  color: #fff;
}
.coupon-code-panel span, .coupon-code-panel small { display: block; color: #cbc7c0; font-size: 11px; }
.coupon-code-panel strong {
  display: block; margin: 5px 0; overflow-wrap: anywhere; font-size: clamp(21px, 2.3vw, 31px);
  letter-spacing: .04em;
}
.coupon-code-panel a { display: inline-block; margin-top: 8px; color: #fff; font-size: 12px; font-weight: 800; }
.bundle-code-title { margin: 14px 0 8px; font-weight: 900; }
.bundle-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.base-link-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.base-link-grid.multiple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.coupon-code-panel.guide-link { background: #245849; }
.coupon-code-panel.compact { margin: 0; padding: 14px; }
.coupon-code-panel.compact strong { font-size: 18px; overflow-wrap: anywhere; }
.base-link-image {
  display: block; width: 100%; height: 105px; margin-top: 10px; object-fit: contain;
  border: 1px solid #3b3b3b; border-radius: 7px; background: #fff;
}
.base-coupon-period { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.bundle-products { margin-top: 28px; padding: 24px; }
.bundle-group-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.bundle-group-summary > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f7; }
.bundle-group-summary span, .bundle-group-summary strong, .bundle-group-summary small { display: block; }
.bundle-group-summary strong { margin-top: 5px; font-size: 28px; }
.bundle-group-summary .unassigned { border-color: #d79a49; background: #fff7e9; }
.bundle-product-details summary { cursor: pointer; padding: 14px 0; font-weight: 900; }
.bundle-product-table-wrap { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.bundle-product-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bundle-product-table th, .bundle-product-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bundle-product-table th { position: sticky; top: 0; background: #f3f1ed; z-index: 1; }
.bundle-product-table tr.unassigned { background: #fff9ef; }

/* v3.5.0: cross-sell manager */
.cross-sell-heading { align-items: flex-end; }
.cross-sell-brand-guide { display: flex; gap: 10px 18px; align-items: center; margin: 0 0 12px; padding: 13px 16px; border-left: 4px solid var(--green); border-radius: 8px; background: #edf7f2; }.cross-sell-brand-guide strong { color: var(--green); white-space: nowrap; }.cross-sell-brand-guide span { color: var(--muted); font-size: 12px; }
.cross-sell-brand-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.cross-sell-brand-tab { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.cross-sell-brand-tab span { font-size: 17px; font-weight: 900; }
.cross-sell-brand-tab small { color: var(--muted); }
.cross-sell-brand-tab.is-active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(20, 116, 89, .12); }
.cross-sell-brand-tab.is-active span { color: var(--green); }
.cross-sell-status-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; padding: 18px 22px; border-radius: 14px; color: #fff; }
.cross-sell-status-card.published { background: linear-gradient(135deg, #116447, #208365); }
.cross-sell-status-card.draft { background: linear-gradient(135deg, #7e5c22, #aa7a2e); }
.cross-sell-status-card > div { display: flex; flex-direction: column; gap: 4px; }
.cross-sell-status-card span, .cross-sell-status-card small { opacity: .82; font-size: 12px; }
.cross-sell-status-card strong { font-size: 17px; }
.cross-sell-status-card a { color: #fff; font-weight: 850; }
.cross-sell-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.cross-sell-layout > main, .cross-sell-layout > aside { min-width: 0; }
.cross-sell-layout > aside { display: grid; gap: 18px; position: sticky; top: 16px; }
.cross-sell-target-card, .cross-sell-add-card, .cross-sell-editor-card, .cross-sell-preview-card, .cross-sell-history-card, .cross-sell-result-card { padding: 24px; }
.cross-sell-target-card { margin-bottom: 18px; border-top: 4px solid #2269a0; }
.cross-sell-add-card { margin-bottom: 18px; border-top: 4px solid var(--green); }
.cross-sell-count { min-width: 76px; padding: 8px 12px; border-radius: 999px; background: #f0f7f4; color: var(--green); font-weight: 900; text-align: center; }
.cross-sell-add-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 10px; }
.cross-sell-heading-field { display: grid; gap: 7px; margin: 16px 0 18px; }
.cross-sell-heading-field span, .cross-sell-item-fields label span { color: var(--muted); font-size: 12px; font-weight: 800; }
.cross-sell-target-box { display: grid; gap: 12px; margin: 0 0 18px; padding: 18px; border: 1px solid #cfe2d9; border-radius: 14px; background: #f4faf7; }
.cross-sell-target-box h3 { margin: 2px 0 5px; }
.cross-sell-target-box p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.cross-sell-target-box label { display: grid; gap: 6px; }
.cross-sell-target-box label span { color: var(--ink); font-size: 12px; font-weight: 850; }
.cross-sell-target-box textarea { min-height: 132px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cross-sell-target-box .cross-sell-safety-note { padding: 10px 12px; border-radius: 9px; background: #e4f3eb; color: #285543; }
.cross-sell-target-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.cross-sell-target-form label { display: grid; gap: 6px; }
.cross-sell-target-form label span { color: var(--ink); font-size: 12px; font-weight: 850; }
.cross-sell-target-form textarea { min-height: 92px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cross-sell-target-card .cross-sell-safety-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; background: #e8f1f8; color: #275574; font-size: 12px; line-height: 1.65; }
.cross-sell-item-list { display: grid; gap: 12px; }
.cross-sell-item-card { display: grid; grid-template-columns: 28px 120px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: opacity .15s, box-shadow .15s; }
.cross-sell-item-card.is-dragging { opacity: .45; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.cross-sell-item-card.is-overflow { border-color: #d9b870; background: #fffaf0; }
.cross-sell-overflow-note { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #dfbf79; border-radius: 10px; background: #fff8e8; color: #704f13; font-size: 12px; line-height: 1.7; }
.cross-sell-overflow-note strong { display: block; }
.cross-sell-item-meta .publish-target { background: #dff2e8; color: #176843; }
.cross-sell-item-meta .publish-excluded { background: #fff0d2; color: #815d12; }
.cross-sell-drag-handle { padding: 8px 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: grab; user-select: none; }
.cross-sell-item-image { display: grid; gap: 8px; }
.cross-sell-item-image img { width: 120px; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; background: #f4f2ee; }
.cross-sell-item-image label { font-size: 12px; font-weight: 800; }
.cross-sell-item-image input { width: auto; }
.cross-sell-item-fields { display: grid; gap: 9px; min-width: 0; }
.cross-sell-item-fields label { display: grid; gap: 4px; }
.cross-sell-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cross-sell-item-meta strong { font-size: 15px; }
.cross-sell-item-meta span { padding: 3px 7px; border-radius: 999px; background: #eaf5f0; color: var(--green); font-size: 10px; font-weight: 850; }
.cross-sell-delete { align-self: end; }
.cross-sell-empty { padding: 42px 20px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.cross-sell-empty p { margin-bottom: 0; color: var(--muted); }
.cross-sell-save-bar { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 10px; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 28px rgba(20, 29, 24, .1); backdrop-filter: blur(8px); }
.cross-sell-phone-frame { width: 292px; max-width: 100%; margin: 0 auto; padding: 10px; border: 8px solid #222; border-radius: 28px; background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .14); }
.cross-sell-phone-frame iframe { display: block; width: 100%; height: 460px; border: 0; background: #fff; }
.cross-sell-history-list { display: grid; gap: 8px; }
.cross-sell-history-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cross-sell-history-list span { display: grid; gap: 2px; }
.cross-sell-history-list small { color: var(--muted); }
.cross-sell-history-list button { padding: 6px 8px; border: 0; background: transparent; color: var(--green); font-weight: 800; cursor: pointer; }
.cross-sell-result-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.cross-sell-result-summary span { padding: 8px 5px; border-radius: 8px; font-size: 11px; font-weight: 900; text-align: center; }
.cross-sell-result-summary .updated { background: #e3f4ea; color: #176242; }
.cross-sell-result-summary .added { background: #e5eff9; color: #245f91; }
.cross-sell-result-summary .skipped { background: #f3efe5; color: #755b20; }
.cross-sell-result-summary .failed { background: #f9e5e5; color: #9a3030; }
.cross-sell-result-list { display: grid; gap: 7px; max-height: 330px; overflow: auto; }
.cross-sell-result-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.cross-sell-result-list strong { overflow-wrap: anywhere; }
.cross-sell-result-list span { font-size: 11px; font-weight: 900; }
.cross-sell-result-list small { grid-column: 1 / -1; color: var(--muted); line-height: 1.5; }
.cross-sell-result-list .result-updated span { color: #176242; }
.cross-sell-result-list .result-added span { color: #245f91; }
.cross-sell-result-list .result-skipped span { color: #755b20; }
.cross-sell-result-list .result-failed span { color: #9a3030; }
.group-chip { display: inline-block; margin: 0 4px 4px 0; padding: 3px 7px; border-radius: 999px; background: #e7f4ed; color: var(--green); font-weight: 800; }
.base-details { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 8px 12px; margin: 0; }
.base-details dt { color: var(--muted); font-size: 12px; }
.base-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.base-details a { color: var(--green); font-weight: 800; }
.base-main-image {
  display: block; width: 100%; height: 145px; margin-top: 16px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 8px; background: #faf9f7;
}
.banner-section { margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line); }
.banner-section-head { align-items: baseline; }
.banner-section-head h3 { margin: 0; font-size: 15px; }
.banner-section-head span { color: var(--muted); font-size: 11px; }
.banner-section-head .pending { color: var(--amber); }
.banner-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center;
  gap: 10px; margin-top: 10px; padding: 9px; border: 1px solid var(--line);
  border-radius: 8px; background: #faf9f7;
}
.banner-row img { width: 88px; height: 46px; object-fit: contain; background: #fff; }
.banner-row strong, .banner-row small { display: block; }
.banner-row strong { font-size: 12px; }
.banner-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.status-chip { padding: 5px 7px; border-radius: 99px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.status-chip.ok { background: #dcefe6; color: var(--green); }
.status-chip.warn { background: #fff0d9; color: var(--amber); }
.empty-note { color: var(--muted); font-size: 12px; }
.base-edit-form { max-width: 1060px; }
.form-card { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.form-card h2 { margin-top: 0; }
.base-edit-form .field { margin-bottom: 16px; }
.base-edit-form .field.wide { grid-column: 1 / -1; }
.banner-form-card { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #faf9f7; }
.base-link-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.base-link-form-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f7; }
.base-link-form-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.base-link-form-card header span { color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.base-link-form-card header h3 { margin: 3px 0 0; font-size: 17px; }
.base-link-form-card header a { color: var(--green); font-size: 11px; font-weight: 800; }
.heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.base-current-preview { margin-top: 28px; padding: 24px; }
.base-current-preview-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  margin-bottom: 18px;
}
.base-current-preview-head h2 { margin: 3px 0 5px; }
.base-current-preview-head p { margin: 0; color: var(--muted); }
.base-current-preview-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.base-current-preview-card {
  min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px;
  background: #faf9f7;
}
.base-current-preview-card > header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.base-current-preview-card > header div, .base-current-flick-grid > div {
  display: grid; gap: 5px;
}
.base-current-preview-card > header span, .base-current-preview-card > p,
.base-current-flick-grid span { color: var(--muted); font-size: 12px; }
.base-current-flick-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.base-current-flick-grid > div {
  padding: 12px; border-radius: 8px; background: #fff;
}
.base-current-flick-grid a { overflow-wrap: anywhere; font-size: 12px; }
.base-current-monitor-note, .base-current-line-link {
  margin: 12px 0 0; color: var(--muted); font-size: 12px;
}
.base-current-actions {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px;
}
.base-current-actions a { color: var(--green); font-size: 12px; font-weight: 800; }
.base-current-item {
  min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px;
  background: #faf9f7;
}
.base-current-item > header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.base-current-item h3 { margin: 2px 0 0; font-size: 17px; }
.base-current-item header small { color: var(--muted); }
.base-current-period { margin: 10px 0; font-weight: 800; }
.base-current-asset {
  margin-top: 9px; padding: 10px; border-radius: 8px; background: #fff;
  font-size: 12px;
}
.base-current-asset > strong, .base-current-asset > span { display: block; }
.base-current-asset > span { margin: 4px 0; color: var(--muted); }
.base-current-asset a, .base-current-actions a { color: var(--green); font-weight: 800; }
.base-current-coupon {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; margin-top: 9px;
  padding-top: 9px; border-top: 1px solid var(--line);
}
.base-current-coupon b { overflow-wrap: anywhere; font-size: 14px; }
.base-current-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 13px; font-size: 12px; }
.base-current-line { align-self: start; }
[hidden] { display: none !important; }
@media (max-width: 780px) {
  .site-header { padding: 0 18px; }
  .page-shell { width: min(100% - 24px, 1240px); margin-top: 22px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .app-launcher { padding: 20px; }
  .app-launcher-grid { grid-template-columns: 1fr; }
  .page-parts-load-form, .page-parts-status, .page-parts-layout, .page-parts-add-form, .page-parts-30off-settings, .page-parts-30off-grid { grid-template-columns: 1fr; }
  .page-parts-flow { grid-template-columns: 1fr; }
  .page-part-card { grid-template-columns: 1fr; }
  .page-part-drag-handle { display: none; }
  .page-part-card[draggable="true"] { cursor: default; }
  .page-part-preview { min-height: 160px; }
  .page-parts-add-form .wide, .page-parts-add-form > .button { grid-column: auto; }
  .page-parts-preview-card { position: static; }
  .page-parts-status-actions { justify-content: stretch; }
  .page-parts-status-actions .button { width: 100%; }
  .page-parts-30off-preset { grid-template-columns: 95px minmax(0, 1fr); }
  .page-parts-fixed-destinations { grid-template-columns: 1fr; }
  .page-parts-fixed-destinations strong, .page-parts-fixed-destinations small { grid-column: auto; }
  .page-parts-sticky-final { right: 12px; bottom: 10px; left: 12px; justify-content: space-between; }
  .two-column, .asset-grid, .asset-summary-grid, .form-grid, .assignment-grid, .rule-grid, .template-grid, .coupon-verification-grid, .campaign-timing-form-grid { grid-template-columns: 1fr; }
  .metrics, .metrics.metrics-three { grid-template-columns: 1fr 1fr; }
  .workflow { grid-template-columns: 1fr; gap: 8px; }
  .workflow-line { width: 1px; height: 18px; margin: auto; }
  .summary-list { grid-template-columns: 1fr; gap: 3px; }
  .timeline-grid, .day05-timeline-form-grid, .promotion-settings-grid { grid-template-columns: 1fr; }
  .promotion-settings-panel { padding: 20px; }
  .bulk-buy-standard-panel .promotion-settings-heading { align-items: stretch; flex-direction: column; }.bulk-buy-tier-grid { grid-template-columns: 1fr; }.bulk-buy-operation-status,.bulk-buy-transition-note { grid-template-columns: 1fr; }
  .promotion-setting-card { grid-template-columns: 34px minmax(0, 1fr); }
  .promotion-setting-card > b { grid-column: 2; }
  .operation-dashboard-grid { grid-template-columns: 1fr; }
  .campaign-stop-panel { align-items: stretch; flex-direction: column; }
  .campaign-stop-panel .campaign-stop-button { width: 100%; min-width: 0; }
  .screen-guide-flow, .status-legend dl { grid-template-columns: 1fr 1fr; }
  .employee-operation-guide { grid-template-columns: 1fr; }
  .employee-operation-steps, .campaign-control-steps, .schedule-step-bar { grid-template-columns: 1fr; }
  .campaign-operation-menu > header { align-items: flex-start; flex-direction: column; }
  .campaign-operation-menu > header > span { white-space: normal; }
  .campaign-operation-grid { grid-template-columns: 1fr; }
  .campaign-operation-grid a { min-height: 88px; }
  .operation-audit-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .operation-audit-row time { grid-column: 2; }
  .operation-audit-row > b { grid-column: 3; grid-row: 1 / 3; }
  .campaign-next-action, .next-operation { align-items: flex-start; flex-direction: column; }
  .next-operation-danger .dashboard-recovery-button { width: 100%; min-width: 0; }
  .rakuten-date-reference { grid-template-columns: 1fr; }
  .rakuten-date-reference > small { grid-column: auto; }
  .setting-scope-guide { grid-template-columns: 1fr; }
  .operation-facts { grid-template-columns: 1fr; }
  .operation-facts > div { border-bottom: 1px solid var(--line) !important; }
  .operation-facts > div:last-child { border-bottom: 0 !important; }
  .execution-result > header { align-items: flex-start; flex-direction: column; }
  .execution-result > dl { grid-template-columns: 1fr 1fr; }
  .operation-action-flow { grid-template-columns: 1fr; }
  .plan-list-jump { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-list-jump-heading { grid-column: 1 / -1; min-height: auto; }
  .plan-list-jump-link { align-items: flex-start; flex-direction: column; min-height: 72px; gap: 2px; padding: 11px; }
  .plan-list-heading, .draft-bulk-toolbar { align-items: flex-start; flex-direction: column; }
  .flick-monitor-grid { grid-template-columns: 1fr; }
  .master-add-form, .master-product-edit-grid { grid-template-columns: 1fr; }
  .master-filter-tabs { grid-template-columns: 1fr 1fr; }
  .master-product-card-header { flex-direction: column; }
  .master-group-badges { justify-content: flex-start; }
  .asset-catalog-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .asset-catalog-grid { grid-template-columns: 1fr; }
  .asset-catalog-group > summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .base-grid { grid-template-columns: 1fr; }
  .base-workflow { grid-template-columns: 1fr; }
  .bundle-code-grid, .bundle-group-summary, .base-link-grid.multiple, .base-link-form-grid { grid-template-columns: 1fr; }
  .bundle-target-metrics { grid-template-columns: 1fr; }
  .bundle-target-group summary { align-items: flex-start; flex-direction: column; }
  .base-current-preview-head { flex-direction: column; }
  .base-current-preview-grid, .base-current-flick-grid { grid-template-columns: 1fr; }
  .banner-row { grid-template-columns: 72px minmax(0, 1fr); }
  .banner-row img { width: 72px; }
  .banner-row .status-chip { grid-column: 1 / -1; justify-self: start; }
  .cross-sell-brand-tabs, .cross-sell-status-card, .cross-sell-layout { grid-template-columns: 1fr; }.cross-sell-brand-guide { align-items: flex-start; flex-direction: column; }
  .cross-sell-layout > aside { position: static; }
  .cross-sell-add-form { grid-template-columns: 1fr; }
  .cross-sell-target-form { grid-template-columns: 1fr; }
  .cross-sell-item-card { grid-template-columns: 22px 86px minmax(0, 1fr); }
  .cross-sell-item-image img { width: 86px; }
  .cross-sell-delete { grid-column: 2 / -1; justify-self: end; }
}
.execution-source-summary {
  margin-top: 14px;
}

.execution-coupon-panel {
  margin: 20px 0;
  padding: 0;
  border: 1px solid #d8ded7;
  border-left: 5px solid #2e7d5b;
  border-radius: 12px;
  background: #f7fbf8;
}
.execution-coupon-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; cursor: pointer; list-style: none;
}
.execution-coupon-summary::-webkit-details-marker { display: none; }
.execution-coupon-summary strong, .execution-coupon-summary small { display: block; }
.execution-coupon-summary small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.execution-coupon-body { padding: 0 18px 18px; border-top: 1px solid rgba(31, 43, 36, .1); }

.execution-coupon-panel.needs-confirmation {
  border-color: #e5bd75;
  border-left-color: #c97812;
  background: #fff9ec;
}

.coupon-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.coupon-source-grid article {
  padding: 14px;
  border: 1px solid rgba(31, 43, 36, 0.12);
  border-radius: 10px;
  background: #fff;
}

.coupon-source-grid p {
  min-height: 42px;
  margin: 8px 0 12px;
  font-size: 0.84rem;
}

.coupon-confirmation-meta {
  margin: 10px 0;
  color: #476054;
  font-size: 0.84rem;
}

.coupon-operation-edit,
.test-time-settings {
  margin-top: 14px;
}
.technical-help-details, .preview-technical-summary, .product-change-details, .coupon-url-details {
  margin: 12px 0; border: 1px solid var(--line); border-radius: 9px; background: #faf9f7;
}
.technical-help-details > summary, .preview-technical-summary > summary, .product-change-details > summary, .coupon-url-details > summary {
  padding: 11px 13px; cursor: pointer; color: var(--green); font-size: 11px; font-weight: 850;
}
.technical-help-details > p { margin: 0; padding: 0 13px 13px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.preview-technical-summary > .summary-list { margin: 0 13px 13px; }
.product-change-details > .table-wrap { margin: 0 13px 13px; }
.coupon-url-details { background: #fff; }
.coupon-url-details > p { margin-inline: 11px; }
.preview-check-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.preview-check-strip span { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 8px; background: #eef7f2; font-size: 11px; font-weight: 800; }
.preview-check-strip b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 9px; }

@media (max-width: 720px) {
  .coupon-source-grid {
    grid-template-columns: 1fr;
  }
  .preview-check-strip { grid-template-columns: 1fr; }
  .active-reservation-hero, .plan-reservation-hero { grid-template-columns: 1fr; }
  .failed-reservation-action { min-width: 0; }
  .failed-recovery-steps { grid-template-columns: 1fr; }
  .active-reservation-times { grid-template-columns: 1fr; }
  .reservation-preview-heading { align-items: flex-start; flex-direction: column; }
  .title-timeline-head { display: none; }
  .title-timeline-list article { grid-template-columns: 1fr; }
  .title-timeline-list article > header, .title-timeline-list article > div { padding: 11px 13px; }
  .title-timeline-list article span { display: block; margin-bottom: 3px; }
  .reservation-final-card { grid-template-columns: 1fr; padding: 17px; }
  .reservation-submit, .reservation-next-button, .important-operation-button, .campaign-next-action .button { width: 100%; }
}

/* New item registration */
.new-product-heading { align-items: center; }
.new-product-heading-status { display: grid; justify-items: end; gap: 7px; }
.new-product-heading-status > small { padding: 5px 8px; border-radius: 999px; background: #f1efeb; color: #6b6760; font-size: 11px; font-weight: 850; }
.new-product-rms-guide { position: sticky; z-index: 20; top: 8px; margin-bottom: 20px; padding: 16px; border: 1px solid #d8d3cc; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(35,28,20,.09); backdrop-filter: blur(10px); }
.new-product-rms-title { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.new-product-rms-title > div { display: flex; gap: 10px; align-items: center; }
.new-product-rms-title span { padding: 4px 8px; border-radius: 99px; background: #171717; color: #fff; font-size: 11px; font-weight: 850; }
.new-product-rms-title strong { font-size: 15px; }
.new-product-rms-title small { color: #176549; font-weight: 750; }
.new-product-status { padding: 9px 14px; border-radius: 999px; background: #edf2ef; color: #315b49; font-size: 13px; font-weight: 850; }
.new-product-status.status-published { background: #dcefe6; color: #176549; }
.new-product-status.status-failed { background: #fde7e5; color: #9d3129; }
.new-product-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.new-product-flow li { min-width: 0; min-height: 76px; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.new-product-flow li button { display: flex; width: 100%; height: 100%; min-height: 74px; align-items: center; gap: 11px; padding: 12px 14px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.new-product-flow li button:disabled { cursor: not-allowed; opacity: .48; }
.new-product-flow li button > span { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; background: #e8ecea; color: #506058; font-weight: 900; }
.new-product-flow li.done { border-color: #a7cfbb; background: #f4faf7; }
.new-product-flow li.done button > span { background: #1f7a59; color: #fff; }
.new-product-flow li.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,54,43,.12); }
.new-product-flow li.active button > span { background: var(--accent); color: #fff; }
.new-product-flow strong,.new-product-flow small { display: block; }
.new-product-flow small { margin-top: 3px; color: var(--muted); }
.new-product-mini-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.new-product-mini-summary span { padding: 5px 9px; border-radius: 7px; background: #f3f1ed; color: #444; font-size: 12px; }
.new-product-mini-summary b { margin-right: 6px; color: var(--muted); }
.new-product-error { display: grid; gap: 4px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #edaaa5; border-radius: 12px; background: #fff0ef; color: #8f2c25; }
.new-product-form { display: grid; gap: 18px; }
.wizard-panel[hidden] { display: none !important; }
.wizard-final-panel { display: grid; gap: 18px; }
.new-product-section { padding: 24px; }
.new-product-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.new-product-section-head h2 { margin: 4px 0 0; font-size: 25px; }
.new-product-section-head > span { padding: 7px 10px; border-radius: 8px; background: #f0f3f1; color: #496054; font-size: 12px; font-weight: 800; }
.section-lead { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.new-product-info-note { margin-bottom: 18px; padding: 13px 15px; border-left: 4px solid #a96c1d; background: #fff8ee; color: #5d482f; line-height: 1.7; }
.new-product-info-note strong { display: block; color: #6f4310; }
.new-product-info-note.safety { border-left-color: #1f7a59; background: #eef8f3; color: #315b49; }
.new-product-info-note.safety strong { color: #176549; }
.new-product-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.new-product-fields .field { min-width: 0; }
.new-product-fields .field.wide { grid-column: 1/-1; }
.new-product-fields label { display: block; margin-bottom: 6px; font-weight: 800; }
.new-product-fields label em { margin-left: 5px; padding: 2px 5px; border-radius: 4px; background: #fce9e7; color: #a13229; font-size: 10px; font-style: normal; }
.new-product-fields input,.new-product-fields select,.new-product-fields textarea { width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #c9cbc9; border-radius: 8px; background: #fff; font: inherit; }
.new-product-fields textarea { resize: vertical; line-height: 1.65; }
.new-product-fields small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.5; }
.new-product-fields .errorlist,.form-errors .errorlist { margin: 6px 0 0; padding-left: 18px; color: #a13229; }
.new-product-fields .upload { padding: 18px; border: 2px dashed #b9c6bf; border-radius: 12px; background: #f7faf8; }
.new-product-optional { margin: 8px 0 18px; border: 1px solid #ddd7cf; border-radius: 10px; background: #faf9f7; }
.new-product-optional summary { padding: 14px 16px; font-weight: 850; cursor: pointer; }
.new-product-optional[open] summary { border-bottom: 1px solid #e3ded7; }
.new-product-optional .new-product-fields { margin: 0; padding: 16px; }
.reference-api-assistant { display: grid; gap: 12px; margin: 2px 0 16px; }
.reference-api-intro { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px; border: 1px solid #bad8ca; border-radius: 11px; background: #f0f9f5; }
.reference-api-intro > span { padding: 5px 8px; border-radius: 99px; background: #176549; color: #fff; font-size: 10px; font-weight: 900; }
.reference-api-intro strong,.reference-api-intro small { display: block; }
.reference-api-intro small { margin-top: 3px; color: #4d685c; }
.reference-api-result { overflow: hidden; border: 1px solid #c9d7d0; border-radius: 11px; background: #fff; }
.reference-api-result header { display: flex; justify-content: space-between; gap: 14px; padding: 13px 15px; background: #173f32; color: #fff; }
.reference-api-result header span,.reference-api-result header strong { display: block; }
.reference-api-result header span,.reference-api-result header small { color: #bfe3d3; font-size: 11px; }
.reference-api-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: #e5e2dc; }
.reference-api-choices article { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; min-width: 0; padding: 14px; background: #fff; }
.reference-api-choices article > span,.reference-api-choices article > strong { flex: 0 0 100%; }
.reference-api-choices article > span { color: var(--muted); font-size: 11px; font-weight: 800; }
.reference-api-choices article > strong { min-height: 44px; overflow-wrap: anywhere; }
.reference-api-choices button { padding: 7px 9px; border: 1px solid #aebdb5; border-radius: 7px; background: #f4f8f6; color: #176549; font-weight: 850; cursor: pointer; }
.reference-api-choices button.selected { border-color: #176549; background: #176549; color: #fff; }
.wizard-action-bar { position: sticky; z-index: 10; bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding: 13px 15px; border: 1px solid #d7d2ca; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(30,25,20,.13); backdrop-filter: blur(9px); }
.wizard-action-bar > span { color: var(--muted); font-size: 13px; }
.wizard-action-bar > span b { color: #333; }
.wizard-action-bar > div { display: flex; gap: 8px; }
.new-product-substep { display: flex; gap: 12px; align-items: center; margin: 22px 0 12px; padding: 13px 15px; border-radius: 10px; background: #f1f4f2; }
.new-product-substep > span { display: grid; flex: 0 0 30px; height: 30px; place-items: center; border-radius: 50%; background: #176549; color: #fff; font-weight: 900; }
.new-product-substep strong,.new-product-substep small { display: block; }
.new-product-substep small { margin-top: 2px; color: var(--muted); }
.content-writing-field { padding: 14px; border: 1px solid #e1ddd6; border-radius: 10px; background: #fdfcfb; }
.content-writing-field textarea { min-height: 150px; }
.cabinet-browser { display: grid; gap: 16px; margin-bottom: 20px; padding: 18px; border: 1px solid #bdd3c8; border-radius: 14px; background: #f4faf7; }
.cabinet-browser-heading,.cabinet-existing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cabinet-browser-heading h3,.cabinet-existing-head h3,.new-product-flick-preview h3 { margin: 3px 0 4px; }
.cabinet-browser-heading p,.cabinet-existing-head p,.new-product-flick-preview p { margin: 0; color: var(--muted); }
.cabinet-browser-error { padding: 11px 13px; border: 1px solid #edaaa5; border-radius: 9px; background: #fff0ef; color: #8f2c25; }
.cabinet-folder-picker { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; align-items: end; }
.cabinet-folder-picker label { grid-column: 1/-1; font-weight: 850; }
.cabinet-folder-picker select { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #aab9b1; border-radius: 8px; background: #fff; font: inherit; }
.cabinet-selected-folder { display: grid; gap: 7px; padding: 15px; border-radius: 10px; background: #155a43; color: #fff; }
.cabinet-selected-folder > span { color: #bfe3d3; font-size: 12px; font-weight: 800; }
.cabinet-selected-folder nav { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 16px; }
.cabinet-selected-folder nav i { color: #8dc8ad; font-style: normal; }
.cabinet-selected-folder small { color: #d7eee4; }
.cabinet-selected-folder code { overflow-wrap: anywhere; padding: 8px 10px; border-radius: 7px; background: rgba(255,255,255,.12); color: #fff; }
.cabinet-selected-folder.legacy { background: #735515; }
.cabinet-existing { display: grid; gap: 13px; padding-top: 16px; border-top: 1px solid #cadbd2; }
.cabinet-existing-head > span { flex: 0 0 auto; padding: 6px 9px; border-radius: 99px; background: #dceee5; color: #176549; font-size: 12px; font-weight: 850; }
.cabinet-image-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; max-height: 630px; overflow: auto; padding: 2px; }
.cabinet-image-card { position: relative; display: grid; gap: 5px; min-width: 0; padding: 9px; border: 1px solid #cbd7d0; border-radius: 10px; background: #fff; cursor: pointer; }
.cabinet-image-card:has(input:checked) { border: 2px solid #1f7a59; padding: 8px; box-shadow: 0 0 0 3px rgba(31,122,89,.13); }
.cabinet-image-card input { position: absolute; z-index: 1; top: 9px; left: 9px; width: 20px; height: 20px; accent-color: #1f7a59; }
.cabinet-image-card img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 6px; background: #f2f2f2; }
.cabinet-image-card strong,.cabinet-image-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cabinet-image-card strong { font-size: 12px; }
.cabinet-image-card small { color: var(--muted); font-size: 11px; }
.cabinet-empty { grid-column: 1/-1; margin: 0; padding: 20px; border-radius: 9px; background: #fff; color: var(--muted); text-align: center; }
.cabinet-existing-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.cabinet-rms-browser { gap: 0; padding: 0; overflow: hidden; border-color: #d5d9d7; background: #fff; }
.cabinet-rms-browser > .cabinet-browser-heading { padding: 17px 18px; border-bottom: 1px solid #dfe2e0; background: #f6f8f7; }
.cabinet-rms-browser > .cabinet-browser-error { margin: 12px 16px 0; }
.cabinet-inline-status { margin: 10px 16px 0; padding: 9px 12px; border-radius: 8px; background: #e8f5ef; color: #176347; font-size: 12px; font-weight: 800; }
.cabinet-inline-status.error { background: #fde9e7; color: #a52b25; }
.cabinet-rms-browser.is-loading-folder .cabinet-media-panel { opacity: .55; pointer-events: none; }
.cabinet-upload-confirm button:disabled { opacity: .45; cursor: not-allowed; }
.cabinet-rms-layout { display: grid; grid-template-columns: minmax(250px,300px) minmax(0,1fr); min-height: 620px; }
.cabinet-folder-panel { min-width: 0; border-right: 1px solid #dfe2e0; background: #fafafa; }
.cabinet-folder-panel > header { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-bottom: 1px solid #e2e3e2; }
.cabinet-folder-panel > header span { padding: 3px 7px; border-radius: 99px; background: #e8ecea; color: #58645e; font-size: 11px; font-weight: 800; }
.cabinet-folder-label-switch { display: grid; grid-template-columns: 1fr 1fr; margin: 10px 10px 0; overflow: hidden; border: 1px solid #cbd0cd; border-radius: 99px; }
.cabinet-folder-label-switch button { min-height: 32px; border: 0; background: #eee; color: #666; font-weight: 800; cursor: pointer; }
.cabinet-folder-label-switch button.selected { background: #1689d8; color: #fff; }
.cabinet-search { display: flex; align-items: center; gap: 7px; margin: 10px; padding: 8px 10px; border: 1px solid #cbd0cd; border-radius: 8px; background: #fff; }
.cabinet-search span { color: #607169; font-size: 19px; line-height: 1; }
.cabinet-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; }
.cabinet-folder-tree { max-height: 650px; overflow: auto; padding: 4px 7px 12px; }
.cabinet-folder-row { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; padding-left: calc(var(--folder-depth,0) * 17px); }
.cabinet-folder-row[hidden] { display: none !important; }
.cabinet-folder-toggle { display: grid; place-items: center; width: 20px; min-height: 35px; padding: 0; border: 0; background: transparent; color: #404743; font-size: 14px; cursor: pointer; }
.cabinet-folder-toggle[hidden] { visibility: hidden; display: grid !important; }
.cabinet-folder-root { --folder-depth: 0; padding-left: 0; }
.cabinet-folder-root-label { display: flex; align-items: center; gap: 8px; min-height: 37px; padding: 7px 9px; color: #252a27; }
.cabinet-folder-root-label .folder-icon { color: #e5a900; font-size: 16px; transform: rotate(90deg); }
.cabinet-folder-root-label b { font-size: 13px; }
.cabinet-folder-node { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; align-items: center; width: 100%; min-height: 37px; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: #343a37; text-align: left; cursor: pointer; }
.cabinet-folder-node:hover { background: #edf4f0; }
.cabinet-folder-node.selected { background: #dcefe6; color: #135b40; box-shadow: inset 3px 0 #1f7a59; }
.cabinet-folder-node .folder-icon { color: #e5a900; font-size: 16px; transform: rotate(90deg); }
.cabinet-folder-node b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cabinet-folder-node b[hidden] { display: none !important; }
.cabinet-folder-node small { color: #7a817d; font-size: 10px; }
.cabinet-tree-empty { padding: 20px 10px; color: var(--muted); text-align: center; }
.cabinet-native-selector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cabinet-media-panel { min-width: 0; padding: 15px; background: #fff; }
.cabinet-media-location { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 12px; padding: 13px 15px; border-radius: 9px; background: #173f32; color: #fff; }
.cabinet-media-location > div > span { display: block; margin-bottom: 4px; color: #bfe3d3; font-size: 10px; font-weight: 850; }
.cabinet-media-location nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cabinet-media-location nav i { color: #83bda3; font-style: normal; }
.cabinet-media-location small { flex: 0 0 auto; color: #d7eee4; }
.cabinet-location-actions { display: grid; flex: 0 0 auto; justify-items: end; gap: 7px; }
.cabinet-location-actions .cabinet-technical-path { color: #a9d0be; font-size: 9px; font-weight: 600; }
.cabinet-location-actions a,.cabinet-location-actions button { padding: 7px 10px; border: 0; border-radius: 7px; background: #fff; color: #176549; font: inherit; font-size: 11px; font-weight: 900; text-decoration: none; cursor: pointer; }
.cabinet-location-actions button:disabled { background: rgba(255,255,255,.16); color: #c6d8d0; cursor: not-allowed; }
.cabinet-media-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e5e5e5; }
.cabinet-media-toolbar .cabinet-search { flex: 1 1 210px; margin: 0; }
.cabinet-media-toolbar > label:not(.cabinet-search) { display: flex; gap: 5px; align-items: center; color: #555; font-size: 12px; }
.cabinet-media-toolbar select { min-height: 38px; padding: 7px 25px 7px 8px; border: 1px solid #cbd0cd; border-radius: 7px; background: #fff; }
.cabinet-detail-toggle input { width: 18px; height: 18px; accent-color: #1674c4; }
.cabinet-view-switch { display: flex; overflow: hidden; border: 1px solid #cbd0cd; border-radius: 8px; }
.cabinet-view-switch button { width: 38px; height: 36px; border: 0; background: #f1f1f1; color: #777; font-size: 18px; cursor: pointer; }
.cabinet-view-switch button.selected { background: #1689d8; color: #fff; }
.cabinet-media-status { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px 9px; color: #555; font-size: 12px; }
.cabinet-media-status b { color: #176549; }
.cabinet-rms-browser .cabinet-image-grid { grid-template-columns: repeat(4,minmax(0,1fr)); max-height: none; overflow: visible; gap: 12px; }
.cabinet-image-card[hidden] { display: none !important; }
.cabinet-rms-browser .cabinet-image-card { align-content: start; padding: 9px; border-color: #cfd3d1; border-radius: 8px; box-shadow: 0 2px 7px rgba(0,0,0,.05); }
.cabinet-rms-browser .cabinet-image-card:has(input:checked) { border-color: #1689d8; box-shadow: 0 0 0 3px rgba(22,137,216,.16); }
.cabinet-rms-browser .cabinet-image-card img { aspect-ratio: 1/1; }
.cabinet-rms-browser .cabinet-image-card > strong { padding: 2px 1px; font-size: 12px; }
.cabinet-checkmark { position: absolute; z-index: 2; top: 8px; right: 8px; display: none; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #1689d8; color: #fff; font-weight: 900; }
.cabinet-image-card:has(input:checked) .cabinet-checkmark { display: grid; }
.cabinet-image-detail { display: none; line-height: 1.5; white-space: normal !important; }
.cabinet-image-grid.show-details .cabinet-image-detail { display: block; }
.cabinet-image-grid.list-view { grid-template-columns: 1fr; }
.cabinet-image-grid.list-view .cabinet-image-card { grid-template-columns: 34px 92px minmax(0,1fr); align-items: center; }
.cabinet-image-grid.list-view .cabinet-image-card input { position: static; grid-row: 1 / span 2; }
.cabinet-image-grid.list-view .cabinet-image-card img { grid-row: 1 / span 2; width: 92px; }
.cabinet-image-grid.list-view .cabinet-image-card > strong { font-size: 14px; }
.cabinet-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px 0 7px; }
.cabinet-pagination button { min-width: 36px; height: 36px; border: 1px solid #c8cdca; border-radius: 7px; background: #fff; cursor: pointer; }
.cabinet-pagination button.selected { border-color: #1689d8; background: #1689d8; color: #fff; font-weight: 900; }
.cabinet-rms-browser .cabinet-existing-actions { position: sticky; z-index: 3; bottom: 5px; align-items: center; margin-top: 10px; padding: 11px; border: 1px solid #d9dddb; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.cabinet-rms-browser .cabinet-existing-actions > span { margin-right: auto; color: #555; font-size: 12px; font-weight: 800; }
.cabinet-media-welcome { display: grid; height: 100%; min-height: 480px; place-content: center; justify-items: center; gap: 8px; color: var(--muted); text-align: center; }
.cabinet-media-welcome > span { font-size: 42px; color: #8db5a3; }
.cabinet-media-welcome h3,.cabinet-media-welcome p { margin: 0; }
.cabinet-upload-fields { margin-top: 4px; }
.cabinet-new-image-upload { display: grid; gap: 12px; margin-top: 19px; padding: 17px; border: 2px solid #b9d5c8; border-radius: 12px; background: #f7fbf9; scroll-margin-top: 20px; }
.cabinet-new-image-upload > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cabinet-new-image-upload h3,.cabinet-new-image-upload p { margin: 0; }
.cabinet-new-image-upload > header > strong { max-width: 50%; overflow-wrap: anywhere; padding: 8px 11px; border-radius: 8px; background: #176549; color: #fff; font-size: 12px; }
.cabinet-new-image-upload > header > strong.not-selected { background: #8a8177; }
.cabinet-new-image-upload > p { color: var(--muted); }
.cabinet-local-preview { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.cabinet-local-preview:empty { display: none; }
.cabinet-local-preview figure { min-width: 0; margin: 0; padding: 6px; border: 1px solid #d6ddd9; border-radius: 7px; background: #fff; }
.cabinet-local-preview img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 5px; background: #f1f1f1; }
.cabinet-local-preview figcaption { overflow: hidden; margin-top: 5px; color: #555; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cabinet-upload-confirm { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 3px; }
.cabinet-upload-confirm span { color: #176549; font-size: 12px; font-weight: 850; }
.new-product-flick-preview { display: grid; gap: 12px; margin-top: 22px; padding: 16px; border-radius: 12px; background: #161616; color: #fff; }
.new-product-flick-preview p { color: #c9c9c9; }
.new-product-flick-track { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
.new-product-flick-track figure { flex: 0 0 min(72vw,240px); margin: 0; scroll-snap-align: start; }
.new-product-flick-track img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 9px; background: #fff; }
.new-product-flick-track figcaption { display: flex; gap: 7px; align-items: center; margin-top: 6px; color: #ddd; font-size: 12px; }
.new-product-flick-track figcaption b { padding: 3px 6px; border-radius: 99px; background: #d8392f; color: #fff; }
.new-product-preset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.new-product-preset-grid article { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #d8ded9; border-radius: 10px; background: #f7faf8; }
.new-product-preset-grid img { width: 82px; max-height: 82px; object-fit: contain; background: #fff; }
.new-product-preset-grid strong,.new-product-preset-grid small { display: block; }
.new-product-preset-grid small { margin-top: 4px; color: var(--muted); }
.new-product-preset-grid .unavailable { opacity: .55; }
.new-product-image-groups { display: grid; gap: 22px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.new-product-image-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.new-product-image-grid article { position: relative; display: grid; gap: 7px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fafafa; }
.new-product-image-grid article[draggable="true"] { cursor: grab; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.new-product-image-grid article.is-dragging { opacity: .42; cursor: grabbing; }
.new-product-image-grid article.is-drag-over { border-color: #1f7a59; box-shadow: 0 0 0 3px rgba(31,122,89,.16); }
.new-product-image-grid.is-saving { opacity: .72; pointer-events: none; }
.new-product-image-drag-handle { padding: 7px 8px; border-radius: 6px; background: #e9f2ed; color: #176549; font-size: 11px; font-weight: 850; text-align: center; user-select: none; }
.new-product-sort-guide { margin: 0 0 9px; color: #536159; font-size: 12px; }
.new-product-sort-status { min-height: 20px; margin: 8px 0 0; color: #176549; font-size: 12px; font-weight: 800; }
.new-product-sort-status.error { color: #a52b25; }
.new-product-image-grid article > span { position: absolute; top: 6px; left: 6px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #111; color: #fff; font-size: 11px; font-weight: 900; }
.new-product-image-grid img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 7px; background: #fff; }
.new-product-image-grid.description img { aspect-ratio: 3/4; }
.new-product-image-grid small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.image-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.image-actions button { min-height: 32px; border: 1px solid #bbb; border-radius: 6px; background: #fff; cursor: pointer; }
.image-actions button.danger { grid-column: 1/-1; border-color: #d8b5b2; color: #8f2c25; }
.new-product-preview-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); gap: 20px; }
.new-product-preview-grid article { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f7f6f3; }
.new-product-preview-grid iframe { width: 100%; height: 680px; border: 0; background: #fff; }
.phone-frame { max-width: 390px; margin: auto; padding: 11px; border: 7px solid #242424; border-radius: 31px; background: #fff; }
.phone-frame iframe { height: 640px; border-radius: 18px; }
.new-product-byte-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 16px 0 0; }
.new-product-byte-counts > div { padding: 12px; border-radius: 8px; background: #eef3f0; }
.new-product-byte-counts dt { color: var(--muted); font-size: 11px; }
.new-product-byte-counts dd { margin: 4px 0 0; font-weight: 800; }
.new-product-review-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: center; }
.new-product-review-summary h2 { grid-column: 1/-1; margin-bottom: 0; }
.new-product-review-summary > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.new-product-review-summary span { padding: 11px 12px; border-radius: 8px; background: #f3f5f4; font-weight: 800; }
.new-product-review-summary span b { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.new-product-preview-empty { display: grid; justify-items: center; gap: 10px; padding: 54px 24px; text-align: center; }
.new-product-preview-empty > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: #ece9e4; color: #555; font-size: 22px; font-weight: 900; }
.new-product-preview-empty h2,.new-product-preview-empty p { margin: 0; }
.new-product-preview-empty p { color: var(--muted); }
.new-product-final-action { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px 24px; align-items: center; padding: 24px; border-radius: 16px; background: #155a43; color: #fff; box-shadow: 0 12px 28px rgba(21,90,67,.2); }
.new-product-final-action h2 { margin: 4px 0; font-size: 25px; }
.new-product-final-action p { margin: 0; color: #d7eee4; }
.new-product-final-action .eyebrow { color: #d9c18f; }
.new-product-final-action .button { grid-column: 2; grid-row: 1/span 2; min-height: 52px; background: #fff; color: #155a43; }
.new-product-confirm { display: flex; gap: 8px; align-items: center; font-weight: 800; }
.new-product-confirm input { width: 20px; height: 20px; }
.new-product-published { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border: 1px solid #a7cfbb; border-radius: 14px; background: #eef8f3; }
.new-product-published strong,.new-product-published span { display: block; }
.new-product-published span { margin-top: 4px; color: #4d685c; font-size: 12px; }
.new-product-recent { margin-top: 22px; }
.new-product-history-list { display: grid; gap: 8px; }
.new-product-history-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.new-product-history-main { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 16px; align-items: center; min-width: 0; padding: 13px 15px; text-decoration: none; }
.new-product-history-row form { display: grid; place-items: center; padding: 8px 10px; border-left: 1px solid var(--line); background: #faf8f6; }
.new-product-history-row form button { min-width: 58px; min-height: 36px; border: 1px solid #d9aaa6; border-radius: 7px; background: #fff; color: #a62e27; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.new-product-history-row form button:hover { border-color: #b9362e; background: #fff1ef; }
.new-product-history-list strong,.new-product-history-list span { display: block; }
.new-product-history-list span,.new-product-history-list small { color: var(--muted); }
.new-product-history-list b { padding: 5px 8px; border-radius: 99px; background: #edf2ef; color: #315b49; font-size: 11px; }

@media (max-width: 860px) {
  .new-product-flow { grid-template-columns: 1fr 1fr; }
  .new-product-rms-guide { position: static; }
  .new-product-rms-title { display: grid; }
  .new-product-rms-title > div { align-items: flex-start; flex-direction: column; }
  .reference-api-intro { grid-template-columns: 1fr; }
  .reference-api-choices { grid-template-columns: 1fr; }
  .new-product-fields,.new-product-preview-grid,.new-product-byte-counts { grid-template-columns: 1fr; }
  .new-product-fields .field.wide { grid-column: auto; }
  .new-product-image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .new-product-preset-grid,.new-product-preset-grid article { grid-template-columns: 1fr; }
  .cabinet-browser-heading,.cabinet-existing-head { display: grid; }
  .cabinet-new-image-upload > header,.cabinet-upload-confirm { align-items: stretch; flex-direction: column; }
  .cabinet-folder-picker { grid-template-columns: 1fr; }
  .cabinet-folder-picker label { grid-column: auto; }
  .cabinet-image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 520px; }
  .cabinet-rms-layout { grid-template-columns: 1fr; }
  .cabinet-folder-panel { border-right: 0; border-bottom: 1px solid #dfe2e0; }
  .cabinet-folder-tree { max-height: 260px; }
  .cabinet-media-location { align-items: flex-start; flex-direction: column; }
  .cabinet-location-actions { justify-items: start; }
  .cabinet-new-image-upload > header > strong { max-width: none; }
  .cabinet-local-preview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cabinet-rms-browser .cabinet-image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; }
  .cabinet-rms-browser .cabinet-existing-actions { position: static; }
  .new-product-final-action { grid-template-columns: 1fr; }
  .new-product-final-action .button { grid-column: auto; grid-row: auto; }
  .wizard-action-bar { position: static; display: grid; }
  .wizard-action-bar > div { display: grid; }
  .new-product-review-summary { grid-template-columns: 1fr; }
  .new-product-review-summary > div { grid-template-columns: 1fr 1fr; }
  .new-product-history-main { grid-template-columns: 1fr auto; }
  .new-product-history-main small { grid-column: 1/-1; }
}

@media (max-width: 520px) {
  .new-product-rms-guide { padding: 11px; }
  .new-product-flow { grid-template-columns: 1fr; gap: 6px; }
  .new-product-flow li,.new-product-flow li button { min-height: 56px; }
  .new-product-flow li button { padding: 9px 10px; }
  .new-product-flow li button > span { flex-basis: 30px; height: 30px; }
  .new-product-flow li small { margin: 0; }
  .new-product-mini-summary { display: grid; grid-template-columns: 1fr 1fr; }
  .new-product-section { padding: 17px; }
  .new-product-section-head { display: grid; }
  .new-product-review-summary > div { grid-template-columns: 1fr; }
  .wizard-action-bar .button { width: 100%; }
}

/* ページ修正では画像を見ながら選べる高さを確保しつつ、画面全体は伸ばしすぎない。 */
.cabinet-rms-browser .page-edit-cabinet-media-panel .cabinet-image-grid { max-height: 560px; overflow: auto; }
@media (max-width: 860px) {
  .cabinet-rms-browser .page-edit-cabinet-media-panel .cabinet-image-grid { max-height: 430px; overflow: auto; }
}

/* 新商品登録：コピー元SKU構成を、違う部分だけ直せる編集表 */
.variant-load-guide,.new-product-variant-editor{margin-top:18px;border:1px solid #bcd9cf;border-radius:14px;background:#fbfefd}
.variant-load-guide{padding:16px 18px;display:flex;gap:8px;flex-direction:column;color:#245c4b}
.new-product-variant-editor>header,.variant-axis-heading,.new-product-variant-editor>footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.new-product-variant-editor>header{padding:20px;border-bottom:1px solid #dce9e4}
.new-product-variant-editor>header h3,.variant-axis-heading h4,.variant-matrix-wrap h4{margin:0 0 4px}
.new-product-variant-editor>header p,.variant-axis-heading p,.variant-matrix-wrap>p{margin:0;color:#68756f}
#variant-count-badge{flex:0 0 auto;padding:10px 16px;border-radius:999px;background:#16765a;color:#fff;font-weight:800;font-size:16px}
.variant-safety-note{margin:16px 20px 0;padding:13px 15px;display:flex;flex-wrap:wrap;gap:8px 20px;border-radius:10px;background:#eaf6f1;color:#175b47}
#variant-axis-editor,.variant-matrix-wrap{padding:20px}
.variant-axis-heading>div:last-child{display:flex;gap:8px;flex-wrap:wrap}
.variant-axis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.variant-axis-grid article{border:1px solid #d6dfdb;border-radius:12px;background:#fff;padding:14px}
.variant-axis-grid article>header,.variant-value-list>div,.variant-add-value{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(110px,.7fr) auto;gap:8px;align-items:center}
.variant-axis-grid article>header{grid-template-columns:minmax(0,1fr) auto;margin-bottom:10px}
.variant-axis-grid input{width:100%;min-width:0;padding:10px;border:1px solid #cbd5d1;border-radius:8px}
.variant-value-list>div{padding:7px 0;border-top:1px solid #edf1ef}
.variant-add-value{margin-top:10px;padding-top:12px;border-top:2px solid #dfeae5}
.variant-small-danger{border:1px solid #e4b8b4;border-radius:8px;background:#fff;color:#a62b25;padding:8px 10px;cursor:pointer}
.variant-matrix-wrap{border-top:1px solid #dce9e4;overflow-x:auto}
.variant-matrix{width:100%;min-width:580px;border-collapse:separate;border-spacing:6px}
.variant-matrix th{background:#edf4f1;color:#254d40;padding:10px;border-radius:8px}
.variant-matrix td{min-width:180px;padding:10px;border:1px solid #bcd9cf;border-radius:8px;background:#fff}
.variant-matrix td.disabled{opacity:.48;background:#f2f2f2}
.variant-combo-toggle{display:flex;gap:8px;align-items:center;cursor:pointer;overflow-wrap:anywhere;font-weight:700}
.new-product-variant-editor>footer{padding:16px 20px;border-top:1px solid #dce9e4}
#variant-editor-message{color:#17634d;font-weight:700}
@media (max-width:760px){.variant-axis-grid{grid-template-columns:1fr}.new-product-variant-editor>header,.variant-axis-heading,.new-product-variant-editor>footer{align-items:stretch;flex-direction:column}.variant-axis-grid article>header,.variant-value-list>div,.variant-add-value{grid-template-columns:1fr}#variant-count-badge{align-self:flex-start}}

/* HTML作成・編集 */
.html-page-heading { align-items: center; }
.html-page-heading p,.html-editor-heading p { margin: 5px 0 0; color: var(--muted); }
.html-start-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-bottom: 22px; }
.html-import-card,.html-template-card-link { display: grid; gap: 16px; min-height: 220px; text-decoration: none; }
.html-import-card > div,.html-template-card-link { align-content: start; }
.html-import-card h2,.html-template-card-link h2 { margin: 10px 0 5px; }
.html-import-card p,.html-template-card-link p { margin: 0; color: var(--muted); }
.html-start-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: #7651a1; color: #fff; font-size: 12px; font-weight: 900; }
.html-template-card-link { border-color: #d9cce7; background: linear-gradient(135deg,#fff 30%,#f5f0fa); }
.html-template-card-link b { align-self: end; color: #68428e; }
.html-import-card form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.html-file-picker { display: grid; gap: 7px; color: #555; font-size: 12px; font-weight: 800; }
.html-file-picker input { width: 100%; padding: 10px; border: 1px dashed #9b8ca9; border-radius: 9px; background: #faf7fd; }
.html-list-header { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.html-list-header h2 { margin: 4px 0 0; }
.html-gold-check-card { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 18px; border-color: #b8d8cb; background: linear-gradient(135deg,#fff 35%,#edf8f3); }
.html-gold-check-card h2 { margin: 4px 0 7px; }
.html-gold-check-card p { margin: 0; color: var(--muted); }
.html-gold-check-card small { display: block; margin-top: 8px; color: #a43b32; }
.html-gold-check-card form { flex: 0 0 auto; }
.html-gold-check-card button:disabled { cursor: not-allowed; opacity: .45; }
.html-search-form { display: flex; gap: 8px; }
.html-search-form input,.html-search-form select { min-height: 42px; padding: 9px 11px; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.html-search-form input { width: min(280px,30vw); }
.html-document-list { display: grid; gap: 8px; }
.html-document-row { display: grid; grid-template-columns: 42px minmax(0,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.html-document-row:hover { border-color: #9b7bb8; box-shadow: 0 5px 14px rgba(66,41,89,.07); }
.html-document-check { display: grid; grid-row: 1/3; place-items: center; border-right: 1px solid var(--line); background: #faf8fb; }
.html-document-check input { width: 19px; height: 19px; accent-color: #7651a1; }
.html-document-main { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto minmax(190px,.65fr) auto; gap: 14px; align-items: center; min-width: 0; padding: 14px; text-decoration: none; }
.html-document-main strong,.html-document-main small { display: block; }
.html-document-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.html-document-main small,.html-document-main time,.html-document-main > span:not(.html-status) { color: var(--muted); font-size: 12px; }
.html-document-main b { color: #68428e; font-size: 12px; }
.html-status { display: inline-flex; justify-content: center; min-width: 54px; padding: 5px 8px; border-radius: 99px; background: #eee; color: #555; font-size: 11px; font-weight: 900; white-space: nowrap; }
.html-status.draft { background: #fff0d8; color: #895614; }
.html-status.ready { background: #e3f4eb; color: #176246; }
.html-status.archived { background: #ececec; color: #666; }
.html-gold-state { display: grid; gap: 3px; min-width: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.html-gold-state > span { width: fit-content; padding: 5px 8px; border-radius: 999px; background: #eee; color: #555; font-size: 10px; font-weight: 900; }
.html-gold-state code { overflow: hidden; color: #6a6a6a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.html-gold-state small,.html-gold-state a,.html-gold-state b { font-size: 10px; }
.html-gold-state a { color: #216e53; font-weight: 800; text-decoration: none; }
.html-gold-state b { color: #a16012; }
.html-gold-state.live > span { background: #dff3e9; color: #116245; }
.html-gold-state.changed > span { background: #fff0d8; color: #895614; }
.html-gold-state.missing > span,.html-gold-state.error > span { background: #f9e2df; color: #9b2924; }
.html-bulk-action { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.html-bulk-action span { color: var(--muted); font-size: 12px; }
.html-empty-state { display: grid; justify-items: center; gap: 7px; padding: 50px 20px; color: var(--muted); text-align: center; }
.html-empty-state > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #eee7f5; color: #68428e; font-size: 11px; font-weight: 900; }
.html-empty-state h3,.html-empty-state p { margin: 0; }

.html-new-form { display: grid; gap: 20px; }
.html-template-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.html-template-option { position: relative; display: grid; grid-template-columns: auto 45px minmax(0,1fr); gap: 11px; align-items: start; min-width: 0; padding: 15px; border: 2px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.html-template-option:has(input:checked) { border-color: #7651a1; box-shadow: 0 0 0 3px rgba(118,81,161,.11); }
.html-template-option input { margin-top: 14px; accent-color: #7651a1; }
.html-template-mark { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 10px; background: #eee7f5; color: #68428e; font-size: 11px; font-weight: 900; }
.html-template-option.blank .html-template-mark { background: #eee; color: #555; font-size: 22px; }
.html-template-option strong,.html-template-option small,.html-template-option code { display: block; }
.html-template-option strong { line-height: 1.35; }
.html-template-option small { margin: 4px 0 8px; color: var(--muted); }
.html-template-option code { overflow: hidden; color: #7651a1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.html-new-details { display: grid; gap: 18px; }
.html-detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.html-detail-fields label { display: grid; gap: 7px; }
.html-detail-fields label > span { font-size: 13px; font-weight: 850; }
.html-detail-fields label b { color: var(--accent); font-size: 10px; }
.html-detail-fields input { min-height: 46px; padding: 10px 12px; border: 1px solid #c9c9c9; border-radius: 8px; font: inherit; }
.html-detail-fields small { color: var(--muted); }
.html-create-button { justify-self: end; min-height: 50px; }

.html-editor-heading { display: flex; justify-content: space-between; gap: 22px; align-items: end; margin-bottom: 18px; }
.html-editor-heading h1 { font-size: clamp(25px,3vw,36px); }
.html-heading-actions { display: flex; gap: 8px; align-items: center; }
.html-heading-actions form { margin: 0; }
.html-editor-error { margin-bottom: 14px; }
.html-editor-form { display: grid; gap: 12px; }
.html-document-settings { display: grid; grid-template-columns: minmax(170px,.65fr) minmax(240px,1fr) minmax(210px,.75fr); gap: 16px; align-items: end; padding: 17px 20px; }
.html-setting-title span,.html-setting-title small { display: block; }
.html-setting-title span { font-weight: 900; }
.html-setting-title small { margin-top: 4px; color: var(--muted); }
.html-document-settings label { display: grid; gap: 5px; }
.html-document-settings label span { font-size: 11px; font-weight: 850; }
.html-document-settings input { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #c9c9c9; border-radius: 8px; font: inherit; }
.html-editor-toolbar { position: sticky; z-index: 6; top: 0; display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; border-radius: 11px; background: #151515; color: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.16); }
.html-mode-tabs,.html-device-tabs { display: flex; gap: 5px; align-items: center; }
.html-editor-toolbar button { min-height: 36px; padding: 7px 11px; border: 0; border-radius: 7px; background: #333; color: #ddd; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.html-editor-toolbar button.selected { background: #7651a1; color: #fff; }
.html-device-tabs > span { margin-right: 4px; color: #aaa; font-size: 11px; }
.html-editor-workspace { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 13px; align-items: start; }
.html-element-panel { position: sticky; top: 58px; max-height: calc(100vh - 75px); overflow: auto; padding: 18px; }
.html-element-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 5px 28px; text-align: center; }
.html-element-empty > span { font-size: 34px; }
.html-element-empty h2,.html-element-empty p { margin: 0; }
.html-element-empty p { color: var(--muted); font-size: 12px; }
.html-element-fields { display: grid; gap: 13px; }
.html-element-fields header { display: flex; justify-content: space-between; gap: 8px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.html-element-fields h2 { margin: 3px 0 0; font-size: 17px; }
.html-small-button { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #666; cursor: pointer; }
.html-element-fields label { display: grid; gap: 5px; }
.html-element-fields label > span,.html-element-order > span { font-size: 12px; font-weight: 850; }
.html-element-fields input,.html-element-fields textarea { width: 100%; padding: 9px 10px; border: 1px solid #c6c6c6; border-radius: 7px; font: inherit; }
.html-element-fields label small { color: var(--muted); }
.html-element-order { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.html-element-order > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.html-element-order button,.html-add-parts button { min-height: 35px; border: 1px solid #bbb; border-radius: 7px; background: #fff; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.html-delete-element { min-height: 38px; border: 1px solid #e0b6b3; border-radius: 7px; background: #fff5f4; color: #a62d27; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.html-add-parts { display: grid; gap: 7px; margin-top: 18px; padding-top: 17px; border-top: 2px solid var(--line); }
.html-add-parts h3,.html-add-parts p { margin: 0; }
.html-add-parts p { color: var(--muted); font-size: 11px; }
.html-add-parts > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.html-add-parts button { border-color: #cfc1dc; color: #68428e; }
.html-preview-stage { min-width: 0; overflow: hidden; border: 1px solid #bbb; border-radius: 12px; background: #d8d8d8; }
.html-preview-note { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #333; color: #fff; font-size: 11px; }
.html-preview-note small { color: #bbb; }
.html-preview-stage iframe { display: block; width: 100%; height: 76vh; min-height: 680px; margin: auto; border: 0; background: #fff; transition: width .2s ease; }
.html-preview-stage.mobile { padding: 16px max(16px,calc((100% - 390px)/2)); background: #c9c9c9; }
.html-preview-stage.mobile .html-preview-note { margin: -16px min(-16px,calc((390px - 100%)/2)) 16px; }
.html-preview-stage.mobile iframe { width: 390px; max-width: 100%; min-height: 720px; border: 7px solid #222; border-radius: 24px; }
.html-code-workspace { padding: 20px; }
.html-code-workspace header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; }
.html-code-workspace h2,.html-code-workspace p { margin: 3px 0; }
.html-code-workspace p { color: var(--muted); }
#html-source-editor { width: 100%; min-height: 68vh; padding: 16px; border: 1px solid #aaa; border-radius: 8px; background: #181818; color: #e8e8e8; font: 12px/1.55 Consolas,"SFMono-Regular",monospace; tab-size: 2; }
.html-save-bar { position: sticky; z-index: 7; bottom: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 15px; align-items: end; padding: 15px 17px; border: 1px solid #a8c8b9; border-radius: 12px; background: rgba(240,249,245,.96); box-shadow: 0 8px 28px rgba(16,75,54,.17); backdrop-filter: blur(8px); }
.html-save-bar label { display: grid; gap: 5px; }
.html-save-bar label span { color: #255a47; font-size: 11px; font-weight: 850; }
.html-save-bar input { min-height: 41px; padding: 9px 10px; border: 1px solid #b7cfc4; border-radius: 7px; font: inherit; }
.html-save-bar > div { display: flex; gap: 8px; }
.html-history-card { margin-top: 20px; padding: 18px 20px; }
.html-history-card summary { cursor: pointer; font-weight: 900; }
.html-history-list { display: grid; gap: 7px; margin-top: 15px; }
.html-history-list article { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; }
.html-history-list strong,.html-history-list span { display: block; }
.html-history-list span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.html-history-list button { padding: 7px 10px; border: 1px solid #bfaad3; border-radius: 6px; background: #fff; color: #68428e; font-weight: 850; cursor: pointer; }
.html-history-list b { color: #176246; font-size: 11px; }
.html-archive-form { margin-top: 15px; text-align: right; }
.html-archive-form button { border: 0; background: transparent; color: #8a7775; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }

.html-workflow-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.html-workflow-card { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 10px 14px; min-height: 208px; padding: 22px; color: inherit; text-decoration: none; border-top: 4px solid #16845f; }
.html-workflow-card > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #16845f; color: #fff; font: 900 18px Georgia,serif; }
.html-workflow-card small { color: #16845f; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.html-workflow-card h2 { margin: 3px 0 0; font-size: 20px; }
.html-workflow-card p { grid-column: 1/-1; margin: 0; color: var(--muted); line-height: 1.7; }
.html-workflow-card b { grid-column: 1/-1; align-self: end; color: #087252; font-size: 12px; }
.html-workflow-card.reorder { border-top-color: #3679a8; }.html-workflow-card.reorder > span { background: #3679a8; }.html-workflow-card.reorder small,.html-workflow-card.reorder b { color: #28678f; }
.html-workflow-card.full-edit { border-top-color: #7651a1; }.html-workflow-card.full-edit > span { background: #7651a1; }.html-workflow-card.full-edit small,.html-workflow-card.full-edit b { color: #68428e; }
.html-safety-notice { margin-bottom: 20px; padding: 13px 16px; border: 1px solid #bcd7ca; border-radius: 9px; background: #edf8f3; color: #176246; font-size: 12px; }
.html-document-actions { display: flex; gap: 6px; justify-content: flex-end; }
.html-document-actions a { padding: 7px 9px; border: 1px solid #c7b7d6; border-radius: 6px; color: #68428e; font-size: 11px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.html-usage-guide { margin-bottom: 22px; padding: 22px; border: 1px solid #dfd8d0; border-radius: 14px; background: #fff; }
.html-usage-guide > header { display: flex; justify-content: space-between; gap: 22px; align-items: end; margin-bottom: 16px; }
.html-usage-guide > header h2 { margin: 4px 0 0; }
.html-usage-guide > header > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.html-usage-guide-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.html-usage-guide-card { padding: 16px; border: 1px solid #d8e5df; border-top: 4px solid #16845f; border-radius: 10px; background: #fbfdfc; }
.html-usage-guide-card > span,.html-purpose-badge { display: inline-flex; padding: 5px 9px; border-radius: 99px; background: #e3f4eb; color: #176246; font-size: 10px; font-weight: 900; white-space: nowrap; }
.html-usage-guide-card h3 { margin: 9px 0 5px; font-size: 17px; }
.html-usage-guide-card strong { display: block; color: #134f3e; font-size: 12px; line-height: 1.55; }
.html-usage-guide-card p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.html-usage-guide-card.sale { border-color: #d7ddea; border-top-color: #3679a8; background: #fbfcfe; }.html-usage-guide-card.sale > span,.html-purpose-badge.sale { background: #e8f1f8; color: #28678f; }
.html-usage-guide-card.bundle30 { border-color: #e8d9c4; border-top-color: #b66f19; background: #fffdf9; }.html-usage-guide-card.bundle30 > span,.html-purpose-badge.bundle30 { background: #fff0d8; color: #895614; }
.html-usage-guide-card.bulk-buy { border-color: #d8e7cf; border-top-color: #5e8b39; background: #fcfef9; }.html-usage-guide-card.bulk-buy > span,.html-purpose-badge.bulk-buy { background: #edf6e6; color: #476f28; }
.html-purpose-badge.other { background: #f4e6e4; color: #9b2e27; }
.html-document-usage { grid-column: 2; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 11px 14px 13px; border-top: 1px solid #eee8f1; background: #fcfbfd; }
.html-document-usage > div strong { display: block; font-size: 12px; }
.html-document-usage > div p { margin: 3px 0; color: #343434; font-size: 11px; font-weight: 750; }
.html-document-usage > div small { display: block; color: var(--muted); font-size: 10px; line-height: 1.55; }
.html-document-usage details { justify-self: end; }
.html-document-usage summary { color: #68428e; font-size: 10px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.html-document-usage details form { display: flex; gap: 5px; margin-top: 7px; }
.html-document-usage select { max-width: 235px; min-height: 34px; padding: 6px 8px; border: 1px solid #c7b7d6; border-radius: 6px; background: #fff; font-size: 10px; }
.html-document-usage button { min-height: 34px; padding: 6px 9px; border: 0; border-radius: 6px; background: #7651a1; color: #fff; font-size: 10px; font-weight: 850; cursor: pointer; white-space: nowrap; }

.html-product-form { display: grid; gap: 16px; }
.html-product-step { padding: 20px; }
.html-product-step > header { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.html-product-step > header > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #16845f; color: #fff; font-weight: 900; }
.html-product-step h2,.html-product-step header p { margin: 0; }.html-product-step header p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.html-product-source { display: grid; gap: 6px; }.html-product-source > span,.html-product-data-grid label > span,.html-after-sku > span { font-size: 12px; font-weight: 850; }
.html-product-source select,.html-product-data-grid input,.html-after-sku select { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #c7c7c7; border-radius: 8px; background: #fff; font: inherit; }
.html-product-picker-toolbar { display: grid; grid-template-columns: minmax(260px,1fr) auto auto; gap: 8px; align-items: center; margin-bottom: 12px; }.html-product-picker-toolbar input[type="search"] { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #c7c7c7; border-radius: 8px; font: inherit; }.html-product-picker-toolbar button { min-height: 42px; padding: 8px 13px; border: 1px solid #a9cbbc; border-radius: 8px; background: #fff; color: #176246; font-weight: 850; cursor: pointer; }
.html-product-selection-count { margin: 0 0 10px; color: #176246; font-size: 12px; font-weight: 850; }.html-product-candidate-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; max-height: 570px; overflow: auto; padding: 2px; }.html-product-candidate { display: grid; grid-template-columns: auto 64px minmax(0,1fr); gap: 10px; align-items: center; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }.html-product-candidate:has(input:checked) { border-color: #16845f; background: #f1faf6; box-shadow: 0 0 0 2px rgba(22,132,95,.08); }.html-product-candidate input { width: 18px; height: 18px; accent-color: #16845f; }.html-product-candidate img { width: 64px; height: 64px; border-radius: 6px; background: #eee; object-fit: cover; }.html-product-candidate > span { min-width: 0; }.html-product-candidate strong,.html-product-candidate small { display: block; overflow: hidden; text-overflow: ellipsis; }.html-product-candidate strong { font-size: 12px; }.html-product-candidate small { margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.html-product-candidate b,.html-product-candidate em { display: block; overflow: hidden; margin-top: 3px; font-size: 10px; font-style: normal; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.html-product-candidate em { color: #9b6f7c; }.html-product-no-image { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 6px; background: #eee; color: #888; font-size: 9px; font-weight: 850; }
.html-product-candidate .html-product-route-meta { margin-top: 4px; color: #176246; white-space: normal; }
.html-product-data-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; margin-top: 14px; }.html-product-data-grid label { display: grid; gap: 5px; }.html-product-data-grid .wide { grid-column: span 2; }
.html-product-mini-preview { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 14px; align-items: center; max-width: 560px; margin-top: 16px; padding: 12px; border-radius: 10px; background: #f7f5f3; }
.html-product-mini-preview img { width: 92px; height: 92px; object-fit: cover; border-radius: 7px; background: #eee; }.html-product-mini-preview small,.html-product-mini-preview strong,.html-product-mini-preview span { display: block; }.html-product-mini-preview small { color: #9b6f7c; font-weight: 850; }.html-product-mini-preview strong { margin: 4px 0; }.html-product-mini-preview span { font-family: Georgia,serif; }
.html-product-page-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.html-product-page-list label { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }.html-product-page-list label:has(input:checked) { border-color: #16845f; background: #f1faf6; box-shadow: 0 0 0 2px rgba(22,132,95,.08); }.html-product-page-list input { width: 18px; height: 18px; accent-color: #16845f; }.html-product-page-list small { grid-column: 3/4; color: var(--muted); font-size: 10px; }.html-product-page-list b { grid-column: 4; grid-row: 1/3; color: var(--muted); font-size: 11px; }
.html-routing-mode-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.html-routing-mode-grid label { display:flex; gap:10px; align-items:flex-start; padding:15px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }.html-routing-mode-grid label:has(input:checked) { border-color:#16845f; background:#f1faf6; box-shadow:0 0 0 2px rgba(22,132,95,.08); }.html-routing-mode-grid input { width:18px; height:18px; accent-color:#16845f; }.html-routing-mode-grid strong,.html-routing-mode-grid small { display:block; }.html-routing-mode-grid small { margin-top:4px; color:var(--muted); }.html-auto-routing-note { display:grid; gap:5px; margin-top:12px; padding:14px; border-radius:9px; background:#edf8f3; color:#176246; font-size:11px; }.html-auto-routing-note strong { font-size:13px; }.html-auto-routing-note b { color:#9a3d2e; }.html-manual-routing { margin-top:13px; }.html-manual-routing summary { cursor:pointer; color:#176246; font-weight:850; }.html-manual-routing .html-product-page-list { margin-top:10px; }
.html-placement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }.html-placement-grid label { display: flex; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }.html-placement-grid label:has(input:checked) { border-color: #16845f; background: #f1faf6; }.html-placement-grid input { accent-color: #16845f; }.html-placement-grid strong,.html-placement-grid small { display: block; }.html-placement-grid small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.html-after-sku { display: grid; gap: 6px; max-width: 420px; margin-top: 14px; }.html-product-submit { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 17px 20px; border-radius: 11px; background: #171717; color: #fff; }.html-product-submit p { margin: 0; color: #ccc; font-size: 12px; }.html-product-submit p strong { display: block; margin-bottom: 3px; color: #fff; }.html-product-empty { padding: 20px; border-radius: 8px; background: #f5f3f1; color: var(--muted); text-align: center; }
.html-product-preview-section { padding: 20px; }.html-product-preview-section > header { display: flex; justify-content: space-between; gap: 15px; align-items: center; }.html-product-preview-section h2,.html-product-preview-section header p { margin: 3px 0; }.html-product-preview-section header p { color: var(--muted); }.html-product-preview-device,.html-product-preview-tabs { display: flex; gap: 5px; }.html-product-preview-device button,.html-product-preview-tabs button { padding: 8px 12px; border: 1px solid #bbb; border-radius: 7px; background: #fff; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }.html-product-preview-device button.selected,.html-product-preview-tabs button.selected { border-color: #16845f; background: #16845f; color: #fff; }.html-product-preview-tabs { margin: 15px 0 8px; overflow-x: auto; }.html-product-preview-frame { overflow: hidden; padding: 0; border: 1px solid #bbb; border-radius: 10px; background: #ccc; }.html-product-preview-frame iframe { display: block; width: 100%; min-height: 720px; border: 0; background: #fff; }.html-product-preview-frame.mobile { padding: 16px calc((100% - 390px)/2); }.html-product-preview-frame.mobile iframe { width: 390px; min-height: 760px; border: 7px solid #222; border-radius: 24px; }.html-product-confirm-save { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 9px; background: #edf8f3; }.html-product-confirm-save p { margin: 0; color: #176246; font-size: 12px; }
.html-route-result { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }.html-route-result span { padding:6px 9px; border-radius:999px; background:#edf8f3; color:#176246; font-size:10px; }.html-route-warnings { display:grid; gap:4px; margin:8px 0; padding:12px; border:1px solid #efd69a; border-radius:8px; background:#fff8e8; color:#805d16; font-size:11px; }.html-route-warnings strong { font-size:12px; }
.html-product-result-skus span { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }.html-product-result-skus b,.html-product-result-card p b { display: inline-block; margin: 2px 4px 2px 0; padding: 4px 7px; border-radius: 999px; background: #f1faf6; color: #176246; font-size: 10px; }.html-product-result-list { display: grid; gap: 10px; }.html-product-result-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.html-product-result-card h3,.html-product-result-card p { margin: 0; }.html-product-result-card h3 { margin-top: 7px; }.html-product-result-card p { margin-top: 6px; color: var(--muted); font-size: 11px; }.html-product-result-status { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }.html-product-result-status span { padding: 5px 8px; border-radius: 999px; background: #e7f5ef; color: #176246; font-size: 10px; font-weight: 850; }.html-product-result-card.skipped .html-product-result-status span { background: #f5f1ed; color: #7c624f; }.html-product-result-actions { display: flex; gap: 6px; }.html-product-result-actions a { padding: 9px 12px; border: 1px solid #a9cbbc; border-radius: 7px; color: #176246; font-size: 11px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.html-publish-select { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #8dbda9; border-radius: 999px; color: #125d43; font-size: 10px; font-weight: 850; cursor: pointer; }.html-publish-path code { padding: 2px 5px; border-radius: 4px; background: #f2f1ee; color: #4c453f; }.html-publish-note { color: #6d655f !important; }.html-publish-confirm { display: grid; gap: 12px; margin-top: 16px; padding: 18px; border: 1px solid #79b79d; border-radius: 12px; background: #f2faf6; }.html-publish-confirm h3,.html-publish-confirm p { margin: 0; }.html-publish-confirm p { margin-top: 6px; color: #52645c; font-size: 12px; }.html-publish-final-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 800; }.html-publish-confirm .button { justify-self: start; }.html-publish-confirm .button[disabled] { opacity: .45; cursor: not-allowed; }
.html-product-freshness { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #b9d8ca; border-radius: 9px; background: #f3faf7; color: #1c6048; }.html-product-freshness strong { font-size: 11px; }.html-product-freshness span { font-size: 11px; font-weight: 800; }.html-product-freshness small { flex-basis: 100%; color: #61746c; font-size: 10px; line-height: 1.6; }

.html-reorder-form { display: grid; gap: 12px; }.html-reorder-form .html-editor-toolbar > div:first-child { display: grid; }.html-reorder-form .html-editor-toolbar small { color: #aaa; font-size: 10px; }.html-reorder-workspace { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 13px; align-items: start; }.html-reorder-panel { position: sticky; top: 58px; max-height: calc(100vh - 75px); overflow: auto; padding: 18px; }.html-reorder-panel h2,.html-reorder-panel > p { margin: 0; }.html-reorder-panel > p { margin-top: 4px; color: var(--muted); font-size: 11px; }.html-reorder-list { display: grid; gap: 6px; margin-top: 14px; }.html-reorder-list > button { display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 8px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: left; cursor: pointer; }.html-reorder-list > button span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e6f3ee; color: #176246; font-size: 10px; font-weight: 900; }.html-reorder-list > button strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.html-reorder-list > button.selected { border-color: #16845f; background: #eff9f5; }.html-reorder-selected { margin-top: 15px; padding-top: 14px; border-top: 2px solid var(--line); }.html-reorder-selected > span,.html-reorder-selected > strong { display: block; }.html-reorder-selected > span { color: #16845f; font-size: 10px; font-weight: 900; }.html-reorder-selected > strong { margin: 4px 0 9px; }.html-reorder-selected > div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }.html-reorder-selected button { min-height: 36px; border: 1px solid #a9cbbc; border-radius: 7px; background: #fff; color: #176246; font-weight: 850; cursor: pointer; }.html-reorder-help { margin-top: 16px; padding: 11px; border-radius: 8px; background: #f5f3f1; }.html-reorder-help strong,.html-reorder-help p { display: block; margin: 0; font-size: 10px; }.html-reorder-help p { margin-top: 3px; color: var(--muted); }

/* v3.11.9: 商品管理番号から直接カテゴリを確認・反映する短縮フロー */
.genre-quick-apply { border: 2px solid #208462; background: linear-gradient(135deg,#fff 0%,#f3fbf7 100%); }
.genre-quick-limit { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #dff2e9; color: #146146; font-size: 11px; font-weight: 900; white-space: nowrap; }
.genre-quick-form { display: grid; grid-template-columns: 1.05fr 1.3fr 1.15fr; gap: 12px; align-items: start; margin-top: 18px; }
.genre-quick-form label { display: grid; gap: 6px; min-width: 0; }
.genre-quick-form label > span { font-size: 12px; font-weight: 900; }
.genre-quick-form textarea,.genre-quick-form select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b8c8c1; border-radius: 8px; background: #fff; font: inherit; }
.genre-quick-form textarea { min-height: 92px; resize: vertical; }
.genre-quick-form small { color: var(--muted); font-size: 10px; line-height: 1.55; }
.genre-quick-submit { grid-column: 1/-1; display: flex; gap: 13px; align-items: center; justify-content: flex-end; padding-top: 5px; }
.genre-advanced-workflow { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.genre-advanced-workflow > summary { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 17px 20px; cursor: pointer; list-style: none; }
.genre-advanced-workflow > summary::-webkit-details-marker { display: none; }
.genre-advanced-workflow > summary span,.genre-advanced-workflow > summary b,.genre-advanced-workflow > summary small { display: block; }
.genre-advanced-workflow > summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.genre-advanced-workflow > summary strong { color: #176246; font-size: 12px; }
.genre-advanced-workflow[open] > summary { border-bottom: 1px solid var(--line); }
.genre-advanced-workflow > .genre-actions,.genre-advanced-workflow > .genre-panel { margin: 16px; }

@media (max-width: 980px) {
  .html-template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .html-editor-workspace { grid-template-columns: 280px minmax(0,1fr); }
  .html-document-settings { grid-template-columns: 1fr 1fr; }
  .html-setting-title { grid-column: 1/-1; }
  .html-product-candidate-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .html-start-grid,.html-detail-fields,.html-editor-workspace,.html-document-settings,.html-workflow-grid,.html-reorder-workspace { grid-template-columns: 1fr; }
  .html-editor-heading,.html-heading-actions,.html-list-header,.html-search-form,.html-bulk-action,.html-code-workspace header { align-items: stretch; flex-direction: column; }
  .html-import-card form { grid-template-columns: 1fr; }
  .html-search-form input { width: 100%; }
  .html-document-main { grid-template-columns: auto minmax(0,1fr) auto; }
  .html-gold-check-card { align-items: stretch; flex-direction: column; }
  .html-gold-check-card .button { width: 100%; }
  .html-gold-state { grid-column: 1/-1; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .html-document-main time,.html-document-main > b { display: none; }
  .html-usage-guide > header { align-items: stretch; flex-direction: column; }
  .html-usage-guide-grid { grid-template-columns: 1fr; }
  .html-document-usage { grid-template-columns: 1fr; }
  .html-document-usage details { justify-self: stretch; }
  .html-document-usage details form { align-items: stretch; flex-direction: column; }
  .html-document-usage select { max-width: none; width: 100%; }
  .html-template-grid { grid-template-columns: 1fr; }
  .html-element-panel { position: static; max-height: none; }
  .html-reorder-panel { position: static; max-height: none; }
  .html-editor-toolbar { position: static; flex-direction: column; }
  .html-mode-tabs,.html-device-tabs { flex-wrap: wrap; }
  .html-preview-stage iframe { min-height: 620px; }
  .html-save-bar { position: static; grid-template-columns: 1fr; }
  .html-save-bar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .html-product-picker-toolbar,.html-product-candidate-grid { grid-template-columns: 1fr; }.html-product-result-card { grid-template-columns: 1fr; }.html-product-result-actions { flex-wrap: wrap; }.html-product-data-grid,.html-product-page-list,.html-placement-grid,.html-routing-mode-grid { grid-template-columns: 1fr; }.html-product-data-grid .wide { grid-column: auto; }.html-product-submit,.html-product-preview-section > header,.html-product-confirm-save { align-items: stretch; flex-direction: column; }.html-product-preview-frame.mobile { padding: 12px; }.html-product-preview-frame.mobile iframe { max-width: 100%; }.html-document-actions { grid-column: 1/-1; justify-content: flex-start; }
  .genre-quick-form { grid-template-columns: 1fr; }.genre-quick-submit { align-items: stretch; flex-direction: column; }.genre-quick-submit .button { width: 100%; }
}
/* 商品ジャンル専用ページ */
.landing-manager-grid{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:18px;align-items:start}
.landing-manager-grid>main{min-width:0;display:grid;gap:18px}
.landing-category-list{position:sticky;top:16px;padding:18px}
.landing-category-list h2{margin:0 0 4px}.landing-category-list>p{margin:0 0 14px;color:#68727d;font-size:13px}
.landing-category-list h3{margin:16px 0 5px;padding:6px 8px;color:#fff;background:#282828;font-size:12px;letter-spacing:.05em}
.landing-category-list a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 8px;border-bottom:1px solid #e6e8eb;color:#28313a;text-decoration:none}
.landing-category-list a:hover,.landing-category-list a.active{color:#8e2e2a;background:#f8efee}.landing-category-list a.active{font-weight:700}
.landing-category-list a small{flex:0 0 auto;color:#74808b;font-size:10px}
.landing-editor-form{display:grid;gap:14px}.landing-editor-form>label,.landing-two-fields label,.landing-publish-confirm label{display:grid;gap:6px;font-weight:700}
.landing-editor-form input,.landing-editor-form textarea,.landing-publish-confirm input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cdd4da;border-radius:8px;background:#fff;font:inherit}
.landing-two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.landing-child-summary{padding:14px;border:1px solid #dce2e6;border-radius:10px;background:#f7f9fa}.landing-child-summary h3{margin:0}.landing-child-summary p{margin:4px 0 10px;color:#69747e;font-size:12px}
.landing-child-summary>div{display:flex;flex-wrap:wrap;gap:7px}.landing-child-summary span{padding:6px 9px;border-radius:999px;background:#fff;font-size:12px}.landing-child-summary b{color:#8e2e2a;font-size:10px}
.landing-publish-confirm{padding:14px;border:1px solid #e3c2bf;border-radius:10px;background:#fff8f7}.landing-publish-confirm summary{font-weight:800;cursor:pointer}.landing-publish-confirm p{font-size:13px}
.landing-publish-confirm>strong{display:block;margin-bottom:5px;font-size:16px}.landing-publish-check{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px!important;margin:12px 0;font-size:13px}.landing-publish-check input{width:auto!important}
.landing-bulk-publish{margin:18px 0;border-top:5px solid #a92f2a}.landing-bulk-publish .genre-panel-heading>strong{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:#eaf7f0;color:#17693e;font-size:12px}.landing-bulk-toolbar,.landing-bulk-action{display:flex;align-items:center;justify-content:space-between;gap:14px}.landing-bulk-toolbar{margin:12px 0}.landing-bulk-toolbar>div{display:flex;gap:8px}.landing-bulk-toolbar small,.landing-bulk-action small{color:#68727d;font-size:11px}.landing-bulk-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.landing-bulk-category-grid label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px;border:1px solid #dfe3e7;border-radius:9px;background:#fff;cursor:pointer}.landing-bulk-category-grid label:has(input:checked){border-color:#9fbfad;background:#f0f8f4}.landing-bulk-category-grid label.success{border-color:#55a47a;background:#eaf7f0}.landing-bulk-category-grid label.error{border-color:#d98982;background:#fff0ee}.landing-bulk-category-grid span{min-width:0;font-size:12px;overflow-wrap:anywhere}.landing-bulk-category-grid span b{display:block;color:#69747d;font-size:9px;letter-spacing:.08em}.landing-bulk-category-grid small{font-size:9px;color:#6d7780}.landing-bulk-action{margin-top:15px;padding-top:15px;border-top:1px solid #e2e5e8}.landing-bulk-action>div{display:grid;gap:3px}.landing-bulk-progress{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:7px 12px;align-items:center;margin-top:15px;padding:13px;border-radius:10px;background:#eff5fa}.landing-bulk-progress progress{width:100%}.landing-bulk-progress strong{font-size:12px}.landing-bulk-progress span{grid-column:1/-1;color:#5f6c77;font-size:11px}.landing-bulk-result{display:grid;gap:7px;margin-top:10px}.landing-bulk-result p{margin:0;padding:8px 10px;border-radius:7px;background:#fff0ee;color:#982e27;font-size:11px}.landing-bulk-result .button{justify-self:start}.landing-bulk-result.has-error{padding:10px;border:1px solid #e5b1ad;border-radius:9px}
.landing-middle-gallery{margin:18px 0;border-top:5px solid #25745a}.landing-middle-gallery .genre-panel-heading>strong{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:#eaf7f0;color:#17693e;font-size:12px}.landing-middle-gallery .landing-bulk-action{margin-top:4px;padding-top:4px;border-top:0}.landing-middle-gallery .button.primary{background:#176f52}.landing-middle-missing{margin:12px 0 0;padding:9px 11px;border-radius:8px;background:#fff6df;color:#805b13;font-size:11px}
.landing-preview-panel iframe{display:block;width:100%;height:720px;border:1px solid #d9dee2;border-radius:10px;background:#fff}
.sidebar-publication-history article{display:grid;gap:6px;padding:12px;border:1px solid #e1e5e8;border-radius:9px;background:#fff}
@media(max-width:850px){.landing-manager-grid{grid-template-columns:1fr}.landing-category-list{position:static}.landing-two-fields{grid-template-columns:1fr}.landing-preview-panel iframe{height:600px}.landing-bulk-category-grid{grid-template-columns:1fr}.landing-bulk-toolbar,.landing-bulk-action{align-items:stretch;flex-direction:column}.landing-bulk-action .button{width:100%}.landing-bulk-progress{grid-template-columns:1fr}}

/* ランキング履歴：Excel取込と新規自動取得を明確に分離 */
.ranking-source-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}.ranking-source-summary>div{display:grid;grid-template-columns:1fr auto;gap:3px 12px;padding:12px 14px;border:1px solid #dce3df;border-radius:10px;background:#fafcfb}.ranking-source-summary span{font-size:11px;font-weight:850}.ranking-source-summary strong{grid-row:1/3;grid-column:2;font-size:18px}.ranking-source-summary small{color:#748078;font-size:9px}.ranking-source-summary .imported{border-left:4px solid #8a9690}.ranking-source-summary .monitored{border-left:4px solid #1f8058;background:#f4faf7}.ranking-source-badge{display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;white-space:nowrap}.ranking-source-badge.imported{background:#edf0ee;color:#59645e}.ranking-source-badge.monitored{background:#e1f4e9;color:#176c49}.ranking-source-links{min-width:145px}.ranking-source-links a,.ranking-source-links span{display:block}.ranking-source-links a{margin-bottom:4px;color:#176c49;font-size:10px;font-weight:800;text-decoration:underline}.ranking-source-links span{color:#87918b;font-size:9px}.ranking-api-samples>p strong{color:#176c49}.ranking-log-table td:nth-child(2){min-width:110px}.ranking-log-table td:nth-child(3){min-width:280px}.ranking-log-table td:nth-child(5){min-width:210px}
@media(max-width:700px){.ranking-source-summary{grid-template-columns:1fr}}


/* イベントカード：楽天の具体的な反映先を常時表示 */
.reflection-destination{margin:16px 0;padding:16px;border:2px solid #c4922e;border-radius:12px;background:#fffdf7}
.reflection-destination>header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.reflection-destination>header span,.reflection-destination>header strong{display:block}
.reflection-destination>header span{color:#9c4b24;font-size:10px;font-weight:900;letter-spacing:.08em}
.reflection-destination>header strong{margin-top:2px;font-size:16px}
.reflection-destination>header small{padding:5px 9px;border-radius:999px;background:#f5e7c7;color:#704c08;font-weight:900}
.reflection-destination-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.reflection-destination-fields>div{padding:10px;border:1px solid #e7dcc5;border-radius:8px;background:#fff}
.reflection-destination-fields dt{color:#8b4e24;font-size:10px;font-weight:900}
.reflection-destination-fields dd{margin:4px 0 0;font-size:11px;font-weight:850;line-height:1.45}
.reflection-destination-fields dd small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:600}
.reflection-destination-brands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.reflection-destination-brands article{display:grid;gap:5px;min-width:0;padding:10px;border-radius:8px;background:#f7f5f1}
.reflection-destination-brands article>strong{font-size:12px}
.reflection-destination-brands article>span{min-width:0;color:#4d4943;font-size:10px;overflow-wrap:anywhere}
.reflection-destination-brands a{color:#176246;font-weight:800}
.destination-unset{color:#a12f25}
.reflection-destination-detail{display:inline-flex;margin-top:11px;color:#176246;font-size:11px;font-weight:900}
.operation-badge-warning{background:#fff0cb;color:#815900}
@media(max-width:760px){.reflection-destination-fields,.reflection-destination-brands{grid-template-columns:1fr}.reflection-destination>header{align-items:flex-start;flex-direction:column}}


/* 商品ページ上部：セール・クーポン画像と買い合わせを同じ画面で管理 */
.cross-sell-promotion-card { border-top: 4px solid #c7372f; }
.cross-sell-promotion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cross-sell-promotion-item {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #ded8d1;
  border-radius: 12px;
  background: #fff;
}
.cross-sell-promotion-number {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #171717;
  color: #fff;
  font-weight: 800;
}
.cross-sell-promotion-item label { display: grid; gap: 6px; }
.cross-sell-promotion-item label > span { font-size: 12px; font-weight: 800; }
.cross-sell-promotion-item input[type="text"],
.cross-sell-promotion-item input[type="url"] { width: 100%; }
.cross-sell-promotion-item .cross-sell-promotion-visible {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cross-sell-promotion-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.cross-sell-promotion-actions span { color: #5d625f; font-size: 13px; }
@media (max-width: 860px) {
  .cross-sell-promotion-grid { grid-template-columns: 1fr; }
  .cross-sell-promotion-actions { align-items: stretch; flex-direction: column; }
}

/* STEP 2: 現在（楽天から取得）と変更後（入力内容）を並べて区別する */
.cross-sell-current-source-note { margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px; background: #eef4f8; color: #275574; font-size: 12px; font-weight: 800; }
.cross-sell-current-copy-bar { margin-bottom: 10px; padding: 10px 12px; border: 1px dashed #2269a0; border-radius: 10px; background: #f2f8fc; color: #275574; font-size: 12px; }
.cross-sell-current-label { margin: 0 0 6px; color: #2269a0; font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.cross-sell-current-label.cross-sell-after-label { margin-top: 14px; color: #171717; }
.cross-sell-promotion-current { padding: 10px; border: 1px solid #d8e6ef; border-radius: 10px; background: #f7fafc; }
.cross-sell-current-thumb { display: block; max-width: 100%; max-height: 96px; margin-bottom: 8px; border-radius: 6px; background: #fff; object-fit: contain; }
.cross-sell-current-meta { margin: 0; display: grid; gap: 4px; font-size: 11px; }
.cross-sell-current-meta div { display: flex; gap: 6px; }
.cross-sell-current-meta dt { flex: 0 0 auto; color: var(--muted); font-weight: 800; }
.cross-sell-current-meta dd { margin: 0; overflow-wrap: anywhere; }
.cross-sell-current-url { overflow-wrap: anywhere; }
.cross-sell-current-empty { margin: 0; font-size: 12px; }
.cross-sell-copy-current-form { margin: 0 0 18px; }
.cross-sell-current-items { margin-bottom: 14px; padding: 14px; border: 1px solid #d8e6ef; border-radius: 12px; background: #f7fafc; }
.cross-sell-current-item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cross-sell-current-item-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cross-sell-current-item-list li img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: #f4f6f7; }
.cross-sell-current-item-list li div { display: grid; gap: 2px; min-width: 0; }
.cross-sell-current-item-list li span { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.cross-sell-current-preview-html { margin-top: 8px; padding: 10px; border-radius: 8px; background: #171717; color: #d8d8d8; font-size: 11px; overflow-x: auto; }
.cross-sell-current-preview-html code { white-space: pre-wrap; word-break: break-all; }

/* 3ステップ安全ワークフロー: 現在/変更後プレビュー・差分・最終実行カード */
.cross-sell-current-preview-card { padding: 24px; margin-bottom: 18px; border-top: 4px solid #2269a0; }
.cross-sell-current-time { padding: 8px 12px; border-radius: 999px; background: #eef4f8; color: #275574; font-weight: 900; font-size: 12px; white-space: nowrap; }
.cross-sell-preview-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.cross-sell-preview-panel { margin: 0; display: grid; gap: 8px; min-width: 0; }
.cross-sell-live-sku-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cross-sell-live-sku-tab { display: grid; gap: 2px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 900; }
.cross-sell-live-sku-tab small { color: var(--muted); font-weight: 800; }
.cross-sell-live-sku-tab.is-active { border-color: #2269a0; box-shadow: 0 0 0 2px rgba(34, 105, 160, .14); color: #2269a0; }
.cross-sell-live-sku-tab.is-failed { border-color: #d9b4b4; background: #fdf5f5; }
.cross-sell-live-status-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.cross-sell-live-status-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12px; }
.cross-sell-live-status-list li.is-success { border-color: #bcdcc9; background: #f5fbf7; }
.cross-sell-live-status-list li.is-failed { border-color: #e0bcbc; background: #fdf5f5; }
.cross-sell-live-status-list li span { font-weight: 900; }
.cross-sell-live-status-list li small { color: var(--muted); overflow-wrap: anywhere; }.cross-sell-preview-panel figcaption { font-size: 12px; font-weight: 850; color: var(--muted); }
.cross-sell-pc-frame { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #f4f6f7; }
.cross-sell-pc-frame iframe { display: block; width: 100%; height: 460px; border: 0; border-radius: 8px; background: #fff; }
.cross-sell-subheading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 12px;
  font-size: 14px;
}
.cross-sell-subheading span { color: var(--muted); font-size: 11px; font-weight: 800; }
.cross-sell-editor-body { margin-top: 4px; }
.cross-sell-diff-box { margin-top: 20px; padding: 16px 18px; border: 1px solid #cfe2d9; border-radius: 12px; background: #f4faf7; }
.cross-sell-diff-box .cross-sell-subheading { margin: 0 0 8px; }
.cross-sell-diff-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.cross-sell-diff-note { margin: 10px 0 0; color: #285543; font-size: 12px; }
.cross-sell-after-preview { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.cross-sell-compare-link { margin-top: 10px; color: var(--muted); font-size: 12px; }
.cross-sell-execute-card { padding: 24px; border-top: 4px solid #9a3030; }
.cross-sell-execute-summary { display: grid; gap: 8px; margin: 0 0 16px; }
.cross-sell-execute-summary > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cross-sell-execute-summary dt { color: var(--muted); font-size: 11px; font-weight: 900; }
.cross-sell-execute-summary dd { margin: 0; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.cross-sell-execute-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cross-sell-execute-disabled-note { margin: 0; color: #815d12; font-size: 12px; font-weight: 800; }
@media (max-width: 860px) {
  .cross-sell-preview-pair { grid-template-columns: 1fr; }
  .cross-sell-execute-summary > div { grid-template-columns: 1fr; gap: 4px; }
}
