:root{--bg:#0e1626;--panel:#111c2c;--border:#29374c;--text:#edf2fc;--muted:#94a3bb;--blue:#2d67ef;--mint:#42d9ae;color-scheme:dark;font-family:Inter,"Noto Sans JP","Yu Gothic UI",Meiryo,system-ui,sans-serif;font-size:14px;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{outline-offset:4px}button{border:1px solid transparent;background:var(--blue);color:#fff;border-radius:7px;padding:10px 15px;min-height:40px;font-weight:600;cursor:pointer;transition:background .16s}button:hover{background:#4078f4}button:disabled{opacity:.38;cursor:not-allowed}button.quiet,button.secondary{background:#152033;border-color:var(--border);color:#c4d0e4}input,select{background:#0b1423;color:var(--text);border:1px solid #35445b;border-radius:6px;padding:10px 12px;min-height:40px;max-width:100%}input::placeholder{color:#7e8ea8}input[type=checkbox]{accent-color:var(--blue);min-height:auto;width:16px;height:16px;vertical-align:middle;margin:0 8px 0 0}input[type=number]{width:100px}input:disabled{opacity:.45}label{color:#b7c4d9;font-size:12px;display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}p{line-height:1.7;color:var(--muted);margin:8px 0 16px}h1,h2,h3{letter-spacing:.015em;margin:0;font-weight:700}h1{font-size:25px;line-height:1.45}h2{font-size:19px}h3{font-size:16px;line-height:1.5}small,.subtle{color:var(--muted);font-size:12px}svg.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:#77a7ff;text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}.topbar{height:72px;background:#060b18;border-bottom:1px solid #243046;position:fixed;inset:0 0 auto;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 25px;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand-icon{height:42px;width:42px;background:linear-gradient(145deg,#3478ff,#234dcb);border:1px solid #5381ec;border-radius:10px;display:grid;place-items:center;font-size:37px;font-weight:400;line-height:1}.brand strong{font-size:17px}.brand small{display:block;margin-top:4px;font-size:11px}.header-actions{display:flex;align-items:center;gap:10px}.connection-state{font-size:12px;padding:8px 11px;border:1px solid #3d4558;background:#141b29;border-radius:7px;color:#a6b3c8;white-space:nowrap;display:flex;align-items:center;gap:7px}.connection-state::before,.status-dot{content:"";width:7px;height:7px;background:#7d8da4;border-radius:100%;display:inline-block;flex-shrink:0}.connection-state.connected{color:#68e1bc;background:#0d2726;border-color:#1b4c43}.connection-state.connected::before{background:var(--mint)}.sidebar{position:fixed;top:72px;bottom:0;left:0;width:224px;background:#060c19;border-right:1px solid #202c40;padding:23px 12px 14px;display:flex;flex-direction:column;z-index:20}.nav-caption{font-size:10px;letter-spacing:.13em;margin:0 10px 14px;color:#71819b;font-weight:700}.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar nav button{display:flex;align-items:center;text-align:left;gap:12px;background:transparent;font-size:12px;min-height:47px;padding:10px 12px;border-left:3px solid transparent;color:#b4c0d5;border-radius:7px}.sidebar nav button:hover{background:#121d30;color:white}.sidebar nav button.active{background:#13332f;color:#effff9;border-left-color:var(--mint)}.sidebar nav button.active svg{color:var(--mint)}.sidebar nav button[data-page=screening] svg{color:#efc366}.sidebar-help{margin-top:auto;border:1px solid #28374e;background:#0c1525;padding:15px 13px;border-radius:9px;font-size:12px}.sidebar-help>span{color:#649aff;margin-right:6px;display:inline-flex;vertical-align:middle}.sidebar-help p{font-size:11px;line-height:1.8;margin:10px 0}.text-button{padding:0;min-height:25px;background:transparent!important;color:#76a6ff;font-size:11px;border:0}.sidebar-footer{display:flex;align-items:center;gap:6px;font-size:10px;color:#8090a9;padding:18px 8px 0}.sidebar-footer small{margin-left:auto;font-size:9px}.workspace{margin:72px 0 0 224px;padding:27px 28px 36px;max-width:2200px}.page{display:none}.page.active{display:block;animation:appear .16s ease-out}@keyframes appear{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.page-heading p{font-size:12px;margin:6px 0 0}.product-tabs{display:flex;gap:5px;border-bottom:1px solid var(--border);padding:0 0 9px;margin-bottom:20px;overflow:auto;scrollbar-width:thin}.product-tabs button{background:#0b1322;border:1px solid #29374b;color:#97a8c2;padding:9px 19px;font-size:12px;white-space:nowrap;min-height:37px}.product-tabs button.active{background:var(--blue);border-color:#4a7df0;color:white}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.search-box{display:flex;position:relative;flex-wrap:nowrap;width:350px;max-width:50%;color:#869ab7}.search-box svg{position:absolute;left:13px;pointer-events:none;width:17px}.search-box input{padding-left:39px;width:100%;font-size:12px;background:#111d2e}.table-tools{display:flex;align-items:center;gap:14px}.table-tools button{font-size:12px}.product-table-wrap{border:1px solid var(--border);border-radius:10px;overflow:auto;background:#0b1423;min-height:286px;scrollbar-color:#39475d #111b2a;scrollbar-width:thin}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{background:#172336;color:#9babc4;font-size:11px;padding:14px 16px;white-space:nowrap;border-bottom:1px solid var(--border);font-weight:600}td{padding:18px 16px;border-bottom:1px solid #1d2a3d;color:#c7d2e4;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#111e31}#product-grid td:nth-child(2){min-width:230px;max-width:360px;color:#f1f5fc;font-weight:600;line-height:1.7}.row-subtitle{display:block;font-size:10px;color:#8193ae;font-weight:400;margin-top:6px}#product-grid td.code{font:11px ui-monospace,Consolas,monospace;color:#9fb6d7}.row-action{font-size:10px;min-height:30px;padding:5px 9px;white-space:nowrap}.row-links{display:flex;gap:6px;align-items:center}.row-links a{font-size:10px;white-space:nowrap;background:#14233b;border:1px solid #273e5e;padding:5px 8px;border-radius:5px}.empty-state{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px 20px}.empty-state>span svg{width:40px;height:40px;color:#667a98;margin-bottom:16px}.empty-state h2{font-size:19px}.empty-state p{font-size:12px;margin:10px 0 20px;line-height:1.8}.notice{font-size:11px;color:#8195b3;line-height:1.8;margin:11px 0 18px;min-height:20px;overflow-wrap:anywhere}.operation-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:18px;margin-top:19px;align-items:start}.panel{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:20px;margin-bottom:18px;min-width:0}.panel>h3{display:flex;align-items:center;gap:9px;margin:-3px 0 16px}.panel>h3 svg{color:var(--mint)}.panel p{font-size:12px}.panel button,.panel label,.panel select{margin:4px 5px 5px 0}.panel label input,.panel label select{margin:0}.panel input[type=text],.panel input[type=password]{width:min(100%,450px)}.panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:12px;line-height:1.8;color:#b0c3df;margin:12px 0 0}.panel ul{padding-left:20px;font-size:12px;color:var(--muted);line-height:1.8}.activity-panel{min-height:270px;position:sticky;top:92px}.compact-empty{text-align:center;padding:20px 10px 10px}.compact-empty>span{display:block;margin-bottom:12px;color:#687e9d}.compact-empty>span svg{width:32px;height:32px}.compact-empty strong{display:block;font-size:14px}.compact-empty p{font-size:12px;line-height:1.8;margin-bottom:0}.panel-footnote{font-size:10px!important;border-top:1px solid var(--border);padding-top:14px;margin:15px 0 0!important;color:#7588a4!important}#queue-result{font-size:12px;line-height:1.8;background:#0b1423;border-left:2px solid var(--mint);border-radius:4px;padding:13px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:440px;overflow:auto;margin:0}#queue-result:empty{display:none}#selection-result,#legacy-result{font-size:11px;line-height:1.8}#legacy-operation{width:100%;font-size:12px;margin:10px 0}#legacy-execute{display:block;margin-top:12px}#selection-row{width:86px}#selection-value{margin-left:8px}#settings-frame{background:#0e1626;border:1px solid var(--border)!important;border-radius:8px;width:100%!important;margin-top:15px;min-height:760px}#settings-panels>.panel{padding:22px}summary{cursor:pointer;color:#aabbd2;font-size:12px;font-weight:600;line-height:1.8}.raw-data{padding:16px 20px}.raw-data[open] summary{margin-bottom:18px}.scroll{max-height:55vh;overflow:auto;scrollbar-width:thin}.scroll table td{white-space:nowrap;padding:10px 12px;border-right:1px solid #27344b}.scroll table tr:first-child td{background:#1b2940;font-weight:700}.connection-panel{margin-top:18px}.connection-form{display:flex;gap:14px;align-items:flex-end}.connection-form label{display:flex;gap:10px;align-items:center;flex:1}.connection-form input{width:100%!important;flex:1;min-width:0}.connection-form button{white-space:nowrap}.connection-panel #title{font-size:12px;font-weight:400;color:#8598b4;margin:10px 0 0}#compatibility{font-size:11px;color:#7f94b3}#compatibility p{margin:6px 0 0;font-size:11px}#oauth-settings{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:22px;margin-bottom:20px}#oauth-settings label{display:flex;flex-direction:column;align-items:start;margin-top:15px;gap:10px}#client{width:100%;font-size:12px}#oauth-settings p{font-size:12px}#tabs-label{margin:8px 0 16px}#tabs{min-width:200px;margin:0 10px}#legacy-root:empty{display:none}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.summary-grid .panel>strong{display:block;font-size:27px;margin:18px 0 10px}.summary-grid small{font-size:11px}.workflow{display:flex;gap:25px;padding:10px 0 0;list-style:none}.workflow li{display:flex;align-items:start;gap:13px;flex:1}.workflow li>span{color:var(--mint);font-size:20px;font-weight:600}.workflow p{font-size:11px;margin:5px 0}#script-status{max-height:200px;overflow:auto}#script-files{max-height:230px;overflow:auto}#settings-panels .panel>h3{display:none}#settings-open{margin:0 0 10px}#page-settings>details>.panel{border:0;padding:20px 0 0;margin:0}#quick-panels .panel{border:0;background:transparent;padding:15px 0}.row-marker{font-size:10px;color:#7388a7}.panel .selection-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:1100px){.sidebar{width:192px}.workspace{margin-left:192px;padding:24px 20px}.brand strong{font-size:15px}.operation-layout{grid-template-columns:1fr}.activity-panel{position:static}.product-tabs button{padding:8px 12px}.connection-state{font-size:10px}.workflow{gap:15px}.connection-form label{flex-direction:column;align-items:stretch}}
@media(max-width:720px){.topbar{height:66px;padding:0 14px;gap:8px}.brand{gap:8px}.brand-icon{height:33px;width:33px;font-size:30px}.brand strong{font-size:15px}.brand strong span{display:none}.brand small{font-size:9px}.header-actions button{font-size:11px;padding:8px 10px;min-height:35px}.connection-state{padding:7px;font-size:10px}#logout{display:none}.sidebar{top:66px;width:100%;height:57px;bottom:auto;padding:0;overflow-x:auto;border-right:0;border-bottom:1px solid var(--border)}.sidebar nav{flex-direction:row;gap:0;min-width:670px;padding:5px 9px}.sidebar nav button{font-size:11px;min-height:46px;padding:8px 11px;border-left:0;border-bottom:2px solid transparent;border-radius:0;gap:6px}.sidebar nav button.active{border-bottom-color:var(--mint)}.sidebar nav svg{width:16px;height:16px}.nav-caption,.sidebar-help,.sidebar-footer{display:none}.workspace{margin:123px 0 0;padding:20px 14px}.page-heading{margin-bottom:18px}h1{font-size:22px}.page-heading p{font-size:11px;line-height:1.8}.product-tabs{gap:5px;margin-bottom:15px}.product-tabs button{font-size:11px;padding:8px 14px}.table-toolbar{gap:8px}.search-box{max-width:100%;width:auto;flex:1}.table-tools{gap:5px}.table-tools .subtle{display:none}.table-tools button{font-size:10px;padding:8px 10px}.empty-state{min-height:285px;padding:27px 18px}.empty-state h2{font-size:17px}.empty-state p{font-size:11px}.empty-state br{display:none}.product-table-wrap:has(tbody:empty) table{min-width:650px}.panel{padding:17px;margin-bottom:14px}.operation-layout{gap:0;margin-top:14px}.connection-form{flex-direction:column;align-items:stretch;gap:7px}.connection-form label{align-items:stretch}.connection-form button{align-self:flex-start}.summary-grid{grid-template-columns:1fr;gap:0}.summary-grid .panel>strong{font-size:24px;margin:12px 0}.workflow{flex-direction:column;gap:20px}.panel button{font-size:12px}#settings-frame{height:820px!important}#workspace-source{display:none}.product-tabs::-webkit-scrollbar{height:3px}}
@media(max-width:720px){.sidebar nav button{white-space:nowrap}.header-actions{flex-shrink:0;gap:6px}.header-actions button{white-space:nowrap;font-size:10px;padding:8px}.brand{min-width:0}.brand small{max-width:120px}.connection-state{font-size:9px}}
@media(max-width:720px){.brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
/* 商品画像とKeepa期間グラフ */
#product-grid{min-width:1190px}#product-grid th:nth-child(2){min-width:300px}#product-grid td:nth-child(2){min-width:300px;max-width:340px}.product-identity{display:flex;align-items:center;gap:15px;font-size:12px;min-width:265px}.product-identity>div:last-child{max-width:215px;overflow-wrap:anywhere}.product-photo{width:80px;height:80px;flex:0 0 80px}.photo-button{display:block;padding:0!important;margin:0!important;width:80px;height:80px;min-height:0;border-radius:7px;overflow:hidden;background:#fff;border:1px solid #3b4a63}.photo-button:hover{background:#fff;border-color:#7ba8ff}.photo-button img{width:100%;height:100%;object-fit:contain;display:block}.photo-placeholder{width:80px;height:80px;min-height:0;margin:0!important;padding:8px!important;background:#17253b;border:1px dashed #3d506f;color:#8ea4c5;font-size:10px;line-height:1.5}.photo-placeholder:hover{background:#1c3151}.media-unavailable{font-size:10px;color:#8497b2;background:#132137;padding:8px!important}.chart-cell{width:290px;min-width:290px}.keepa-chart{width:260px;min-height:122px}.chart-controls{display:flex;align-items:center;gap:4px;margin-bottom:7px}.chart-controls button{font-size:9px;min-height:23px;padding:3px 6px;background:#1b2b45;border:1px solid #314461;border-radius:4px;white-space:nowrap}.chart-controls button.active{background:#2d67ef;border-color:#5587f7;color:white}.chart-controls a{font-size:9px;padding:4px 6px;background:#1e3c68;border-radius:4px;color:#c6ddff;white-space:nowrap}.chart-zoom{display:block;width:260px;min-height:0;padding:0;border:1px solid #3a4b64;background:white;border-radius:5px;overflow:hidden}.chart-zoom img{display:block;width:100%;height:104px;object-fit:contain;background:white}.graph-fallback{font-size:11px;padding:20px 10px;display:block;line-height:1.8;border:1px dashed #344966;border-radius:6px;min-height:104px}.media-notice:empty{display:none}.media-dialog{width:min(1060px,94vw);max-height:92vh;padding:18px;border:1px solid #4b6486;border-radius:12px;background:#111c2c;color:#e4edfb;box-shadow:0 20px 100px #0009}.media-dialog::backdrop{background:#030914cf;backdrop-filter:blur(4px)}.media-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.media-dialog-header strong{font-size:14px;overflow-wrap:anywhere}.media-dialog img{display:block;max-width:100%;max-height:73vh;margin:auto;object-fit:contain;background:#fff;border-radius:6px}.media-dialog p{font-size:11px;text-align:center;margin:14px 0 0}.table-tools #media-load-images{font-size:12px;white-space:nowrap}#product-grid td:nth-child(6),#product-grid td:nth-child(7){white-space:nowrap}
@media(max-width:720px){.table-toolbar{flex-wrap:wrap}.search-box{flex-basis:100%}.table-tools{justify-content:space-between;width:100%}.table-tools #media-load-images{font-size:10px}.product-identity{font-size:12px}.media-dialog{padding:12px}.media-dialog-header strong{font-size:12px}}
.media-dialog[data-kind=graph] img{width:100%;height:auto}
#product-grid td details{margin-top:10px;font-size:11px}#product-grid td details dl{max-height:340px;overflow:auto;min-width:260px;max-width:320px;white-space:normal;overflow-wrap:anywhere}#product-grid td details dt{color:var(--muted);margin-top:10px}#product-grid td details dd{margin:3px 0 0}
.repeat-actions{min-width:340px}.site-action-grid{display:grid;grid-template-columns:repeat(6,52px);gap:5px}.site-action-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;width:52px;height:52px;min-height:52px;padding:3px!important;border-radius:7px;border:1px solid #354a67;background:#14233b;color:#eef4ff;text-align:center;gap:2px;text-decoration:none!important;overflow:hidden}.site-action-tile:hover{border-color:#82b1ff;background:#203a60;transform:translateY(-1px)}.site-action-tile strong{font-size:19px;line-height:21px}.site-action-tile span{font-size:8px;line-height:10px;max-width:48px;overflow-wrap:anywhere}.site-action-tile:disabled{opacity:.32;transform:none}.site-0{color:#71b7ff}.site-1{color:#ffbf59}.site-2,.site-3,.site-4,.site-7,.site-17{color:#ff9a9a}.site-5,.site-8,.site-9{color:#8edfc5}.site-6,.site-16{color:#ff7d88}.site-10,.site-11{color:#ffce76}.site-12,.site-13,.site-14,.site-15{color:#91baff}.repeat-actions .row-links{display:block}.repeat-actions .row-action{margin-top:9px}
