.dvtv-ka{max-width:1400px}.dvtv-tabs{display:flex;gap:8px;margin:16px 0}.dvtv-stats{padding:14px 16px;background:#fff;border:1px solid #dcdcde;border-left:4px solid #2271b1;margin-bottom:16px}.dvtv-search{display:flex;gap:10px;align-items:flex-start}.dvtv-search textarea{width:100%;font-size:15px}.dvtv-answer{background:#fff;border:1px solid #c3c4c7;padding:18px;margin-top:18px;font-size:15px;line-height:1.7}.dvtv-source{background:#f6f7f7;border:1px solid #dcdcde;padding:12px;margin:8px 0}.dvtv-source p{white-space:pre-wrap}.dvtv-ka details{background:#fff;border:1px solid #dcdcde;padding:12px;margin-top:25px}.dvtv-ka summary{cursor:pointer;font-weight:700}.dvtv-batch{margin-top:8px;padding-top:8px;border-top:1px dashed #c3c4c7;font-size:12px;color:#50575e}.dvtv-review-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.dvtv-review-table{margin-top:12px}.dvtv-review-table td{vertical-align:top}.dvtv-review-table small{color:#646970}.dvtv-thumb{width:150px;height:112px;object-fit:contain;background:#f0f0f1;border:1px solid #c3c4c7;border-radius:4px}.dvtv-scope{display:inline-block;padding:3px 8px;border-radius:12px;font-weight:700}.dvtv-scope-company{background:#dbeafe}.dvtv-scope-personal{background:#fce7f3}.dvtv-scope-unclassified{background:#fef3c7}.dvtv-warn{color:#b32d2e;font-weight:700}.dvtv-working{opacity:.55;pointer-events:none}#dvtv-history{margin-top:22px;padding-top:12px;border-top:1px solid #dcdcde}

/* v0.4.1: サムネイルをマウスオンで大きく確認 */
.dvtv-thumb{cursor:zoom-in;transition:box-shadow .12s ease,opacity .12s ease}
.dvtv-thumb:hover{box-shadow:0 0 0 2px #2271b1}
#dvtv-thumb-preview{position:fixed;display:none;z-index:1000000;pointer-events:none;background:#111;border:2px solid #72aee6;border-radius:8px;padding:8px;box-shadow:0 12px 40px rgba(0,0,0,.45);max-width:92vw;max-height:88vh}
#dvtv-thumb-preview img{display:block;max-width:90vw;max-height:84vh;width:auto;height:auto;object-fit:contain;background:#fff}
#dvtv-thumb-preview .dvtv-thumb-caption{max-width:90vw;padding:7px 4px 1px;color:#fff;font-size:13px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


/* v0.4.2: 固定ページ・削除UI */
.dvtv-front{margin:0 auto;padding:8px 0 28px;max-width:1400px}
.dvtv-front .button{display:inline-block;box-sizing:border-box;min-height:34px;padding:6px 12px;border:1px solid #2271b1;border-radius:4px;background:#f6f7f7;color:#135e96;cursor:pointer;font-size:14px;line-height:20px;text-decoration:none}
.dvtv-front .button:hover{background:#f0f6fc}
.dvtv-front .button-primary{background:#2271b1;color:#fff;border-color:#2271b1}
.dvtv-front .button-primary:hover{background:#135e96;color:#fff}
.dvtv-danger{border-color:#b32d2e!important;color:#b32d2e!important;background:#fff!important}
.dvtv-danger:hover{background:#b32d2e!important;color:#fff!important}
.dvtv-delete-note{padding:9px 12px;border-left:4px solid #d63638;background:#fff1f1;color:#661717}
.dvtv-review-table .dvtv-danger{margin-top:5px}
.dvtv-front .dvtv-review-table{width:100%;border-collapse:collapse;background:#fff}
.dvtv-front .dvtv-review-table th,.dvtv-front .dvtv-review-table td{padding:9px;border:1px solid #dcdcde;text-align:left;vertical-align:top}
.dvtv-front .dvtv-review-table th{background:#f6f7f7}
.dvtv-front .dvtv-review-table tr:nth-child(even){background:#fafafa}
@media(max-width:782px){.dvtv-front .dvtv-review-table{display:block;overflow-x:auto}.dvtv-search{flex-direction:column}.dvtv-search .button{width:100%}}


/* v0.5.1: 動画を大判で確認する詳細モーダル */
body.dvtv-preview-open{overflow:hidden}
#dvtv-preview-modal{position:fixed;inset:0;z-index:10000000;display:none}
#dvtv-preview-modal.is-open{display:block}
.dvtv-preview-backdrop{position:absolute;inset:0;background:rgba(0,8,18,.90);backdrop-filter:blur(2px)}
.dvtv-preview-window{position:absolute;inset:2.5vh 2vw;display:flex;flex-direction:column;background:#07111d;border:2px solid #48a9ff;border-radius:10px;box-shadow:0 0 30px rgba(72,169,255,.28),0 24px 70px rgba(0,0,0,.65);overflow:hidden}
.dvtv-preview-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px;background:#0b1726;border-bottom:1px solid #28547a;color:#fff}
#dvtv-preview-title{font-size:16px}
#dvtv-preview-hint{margin-left:14px;color:#9ecaf0;font-size:12px}
.dvtv-preview-controls{display:flex;gap:6px;align-items:center;white-space:nowrap}
.dvtv-preview-controls .button{min-width:42px}
.dvtv-preview-close{border-color:#72aee6!important;color:#d7ecff!important;background:#10243a!important}
.dvtv-preview-body{position:relative;flex:1 1 auto;overflow:auto;padding:14px;background:#02060b;text-align:center;overscroll-behavior:contain}
.dvtv-preview-loading{position:sticky;top:12px;display:inline-block;z-index:3;padding:10px 16px;background:#10243a;color:#fff;border:1px solid #48a9ff;border-radius:6px}
#dvtv-preview-image{display:none;height:auto;max-width:none!important;max-height:none!important;margin:0 auto;box-shadow:0 0 0 1px #234,0 10px 35px rgba(0,0,0,.55);cursor:zoom-in}
@media(max-width:782px){
 .dvtv-preview-window{inset:1vh 1vw}
 .dvtv-preview-head{align-items:flex-start;flex-direction:column}
 #dvtv-preview-hint{display:block;margin:4px 0 0}
 .dvtv-preview-controls{width:100%;overflow-x:auto}
 .dvtv-thumb{width:130px;height:98px}
}

/* v0.5.2: 振り分け一覧を高密度カード型へ。テーマのtable CSSに影響されない */
.dvtv-review-head{
 display:grid;grid-template-columns:190px minmax(250px,1.15fr) minmax(300px,1.35fr) 90px 235px;
 gap:14px;align-items:center;margin:12px 0 6px;padding:8px 12px;
 background:#edf5fc;border:1px solid #c9dceb;border-radius:8px;
 color:#18354d!important;font-size:12px;font-weight:700
}
.dvtv-review-head label{white-space:nowrap}.dvtv-review-head span:first-of-type{grid-column:2}.dvtv-review-list{display:flex;flex-direction:column;gap:8px}
.dvtv-review-item{
 display:grid;grid-template-columns:36px 168px minmax(250px,1.15fr) minmax(300px,1.35fr) 90px 235px;
 gap:14px;align-items:center;box-sizing:border-box;width:100%;min-height:142px;padding:12px;
 background:#fff;border:1px solid #d5e0e8;border-radius:10px;box-shadow:0 2px 8px rgba(20,50,80,.05);
 color:#202832!important
}
.dvtv-review-item:hover{border-color:#86b9df;box-shadow:0 3px 12px rgba(32,113,177,.10)}
.dvtv-select-cell{align-self:start;padding-top:8px;text-align:center}.dvtv-select-cell input{width:18px;height:18px}
.dvtv-preview-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0}
.dvtv-review-item .dvtv-thumb{display:block;width:154px;height:116px;max-width:154px!important;object-fit:contain;background:#111;border:1px solid #aebdca;border-radius:7px}
.dvtv-preview-help{font-size:11px;color:#607487!important;line-height:1.2}
.dvtv-file-cell,.dvtv-summary-cell{min-width:0;align-self:center}
.dvtv-file-name{margin-bottom:7px;color:#0f2b44!important;font-size:16px;font-weight:800;line-height:1.3;word-break:break-all}
.dvtv-meta-chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:7px}
.dvtv-meta-chips span{display:inline-block;padding:2px 7px;border:1px solid #c8d8e6;border-radius:999px;background:#f5f9fc;color:#35566f!important;font-size:11px;line-height:1.5}
.dvtv-path{max-width:100%;overflow:hidden;color:#657786!important;font-size:12px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.dvtv-summary-cell{position:relative;padding:8px 10px;background:#f8fbfd;border-left:3px solid #9bc8e8;border-radius:5px;color:#263746!important}
.dvtv-summary-text{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:5;font-size:13px;line-height:1.65;color:#263746!important;word-break:break-word}
.dvtv-summary-cell.is-expanded .dvtv-summary-text{display:block;overflow:visible}
.dvtv-summary-toggle{margin-top:5px;padding:0;border:0;background:transparent;color:#2271b1!important;font-size:11px;cursor:pointer;text-decoration:underline}
.dvtv-scope-cell{text-align:center;white-space:nowrap}.dvtv-scope{white-space:nowrap!important;writing-mode:horizontal-tb!important;font-size:13px}
.dvtv-action-cell{display:flex;flex-wrap:wrap;gap:7px;align-content:center;justify-content:flex-start;min-width:0}
.dvtv-action-cell .button{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-width:68px;min-height:36px!important;padding:6px 10px!important;white-space:nowrap!important;word-break:normal!important;writing-mode:horizontal-tb!important;line-height:1.2!important;font-size:13px!important}
.dvtv-action-cell .dvtv-delete{min-width:58px}
.dvtv-review-item .dvtv-warn{display:inline-block;margin-top:7px;padding:2px 7px;border-radius:4px;background:#fff0f0}
/* 履歴tableだけは崩れないよう固定 */
#dvtv-history .dvtv-review-table{table-layout:fixed;width:100%}
#dvtv-history .dvtv-review-table td,#dvtv-history .dvtv-review-table th{color:#263746!important;word-break:break-word}
#dvtv-history .dvtv-review-table .button{white-space:nowrap!important;writing-mode:horizontal-tb!important}
@media(max-width:1250px){
 .dvtv-review-head{display:none}
 .dvtv-review-item{grid-template-columns:36px 150px minmax(220px,1fr) minmax(260px,1.2fr);align-items:start}
 .dvtv-review-item .dvtv-thumb{width:138px;height:104px}
 .dvtv-scope-cell{grid-column:3}.dvtv-action-cell{grid-column:4}
}
@media(max-width:850px){
 .dvtv-review-item{grid-template-columns:32px 120px minmax(0,1fr);gap:10px}
 .dvtv-review-item .dvtv-thumb{width:112px;height:84px}
 .dvtv-file-cell{grid-column:3}.dvtv-summary-cell{grid-column:2 / 4}.dvtv-scope-cell{grid-column:2;text-align:left}.dvtv-action-cell{grid-column:3}
}
@media(max-width:560px){
 .dvtv-review-item{grid-template-columns:28px minmax(0,1fr)}
 .dvtv-preview-cell,.dvtv-file-cell,.dvtv-summary-cell,.dvtv-scope-cell,.dvtv-action-cell{grid-column:2}
 .dvtv-preview-cell{align-items:flex-start}.dvtv-review-item .dvtv-thumb{width:160px;height:120px}
}

/* ======================================================================
   v0.5.3 — SF / SPY CONSOLE UI + folder/month browser + pagination
   ====================================================================== */
.dvtv-ka{
 --dv-bg:#030812;--dv-panel:#071422;--dv-panel2:#0a1b2d;--dv-line:#174b70;
 --dv-cyan:#28d7ff;--dv-blue:#3b82f6;--dv-text:#dceeff;--dv-muted:#7fa5bf;
 --dv-green:#39f0b1;--dv-amber:#ffd166;--dv-danger:#ff5b74;
 position:relative;max-width:1500px!important;padding:18px!important;border:1px solid #0f3551!important;
 border-radius:14px;background:radial-gradient(circle at 15% -5%,rgba(40,215,255,.12),transparent 32%),linear-gradient(180deg,#020711 0%,#05101d 100%)!important;
 color:var(--dv-text)!important;box-shadow:inset 0 0 0 1px rgba(40,215,255,.05),0 18px 55px rgba(0,0,0,.22);font-family:Inter,"Noto Sans JP","Yu Gothic",sans-serif
}
.dvtv-ka:before{content:"DVTV // KEIRI AI CONSOLE";display:block;margin:-5px 0 12px;color:#4dbce8;font:600 10px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.19em}
.dvtv-ka h1,.dvtv-ka h2,.dvtv-ka h3,.dvtv-ka p,.dvtv-ka label,.dvtv-ka small,.dvtv-ka td,.dvtv-ka th{color:var(--dv-text)}
.dvtv-ka h1{margin:0 0 15px!important;font-size:26px!important;letter-spacing:.03em;text-shadow:0 0 18px rgba(40,215,255,.22)}
.dvtv-ka .button,.dvtv-front .button{display:inline-flex!important;align-items:center;justify-content:center;min-height:36px!important;padding:7px 12px!important;border:1px solid #24648e!important;border-radius:7px!important;background:linear-gradient(180deg,#10283c,#0b1c2c)!important;color:#d9f2ff!important;box-shadow:inset 0 0 14px rgba(40,215,255,.04),0 0 0 1px rgba(0,0,0,.2)!important;text-decoration:none!important;white-space:nowrap!important;cursor:pointer}
.dvtv-ka .button:hover{border-color:var(--dv-cyan)!important;background:linear-gradient(180deg,#12344f,#0c263c)!important;color:#fff!important;box-shadow:0 0 16px rgba(40,215,255,.18)!important}
.dvtv-ka .button-primary{border-color:#2ddcff!important;background:linear-gradient(180deg,#11658a,#0a3d59)!important;color:#fff!important;box-shadow:0 0 18px rgba(40,215,255,.2)!important}
.dvtv-ka .dvtv-danger{border-color:#9d4052!important;background:#30131d!important;color:#ffafbd!important}.dvtv-ka .dvtv-danger:hover{background:#621f31!important;color:#fff!important;border-color:var(--dv-danger)!important}
.dvtv-tabs{display:flex;gap:8px;margin:0 0 14px!important}.dvtv-tabs .button{min-width:120px!important}
.dvtv-panel{position:relative;margin-top:18px;padding:15px;border:1px solid #123f60;border-radius:11px;background:linear-gradient(180deg,rgba(8,25,42,.96),rgba(4,14,25,.96));box-shadow:inset 0 0 28px rgba(40,215,255,.025),0 8px 24px rgba(0,0,0,.18)}
.dvtv-panel:before,.dvtv-panel:after{content:"";position:absolute;width:18px;height:18px;pointer-events:none}.dvtv-panel:before{left:-1px;top:-1px;border-left:2px solid var(--dv-cyan);border-top:2px solid var(--dv-cyan)}.dvtv-panel:after{right:-1px;bottom:-1px;border-right:2px solid #2775a5;border-bottom:2px solid #2775a5}
.dvtv-section-title{display:flex;align-items:baseline;gap:10px;margin-bottom:12px;padding-bottom:9px;border-bottom:1px solid #143d5a}.dvtv-section-title span{font:600 10px/1 ui-monospace,Consolas,monospace;color:#44cfff;letter-spacing:.18em}.dvtv-section-title strong{font-size:20px;color:#f2fbff}.dvtv-section-title em{margin-left:auto;padding:3px 9px;border:1px solid #1c5f89;border-radius:999px;background:#071e30;color:#7cdbff;font-style:normal;font-size:12px}
.dvtv-stats{margin:0!important;padding:12px!important;border:1px solid #154968!important;border-left:3px solid var(--dv-cyan)!important;border-radius:10px;background:#061421!important;color:var(--dv-text)!important}.dvtv-stat-grid{display:grid;grid-template-columns:repeat(7,minmax(80px,1fr));gap:7px}.dvtv-stat-card{padding:8px 10px;border:1px solid #123b58;border-radius:7px;background:#081b2b}.dvtv-stat-card span{display:block;color:#739ab5;font-size:10px;letter-spacing:.05em}.dvtv-stat-card strong{display:block;margin-top:2px;color:#e9f8ff;font:700 20px/1.15 ui-monospace,Consolas,monospace}.dvtv-batch{margin-top:8px!important;padding-top:8px!important;border-top:1px dashed #194765!important;color:#75a9c5!important;font:11px ui-monospace,Consolas,monospace!important}
.dvtv-search{display:grid!important;grid-template-columns:1fr 120px;gap:9px!important;margin-top:12px}.dvtv-search textarea,.dvtv-filterbar select,.dvtv-review-filterbar select{box-sizing:border-box!important;border:1px solid #235779!important;border-radius:7px!important;background:#04101b!important;color:#d8efff!important;box-shadow:inset 0 0 12px rgba(0,0,0,.3)!important}.dvtv-search textarea{min-height:70px;padding:10px!important;resize:vertical}.dvtv-search textarea:focus,.dvtv-filterbar select:focus,.dvtv-review-filterbar select:focus{outline:none!important;border-color:var(--dv-cyan)!important;box-shadow:0 0 0 2px rgba(40,215,255,.12)!important}
.dvtv-answer,.dvtv-source{border-color:#174766!important;background:#071827!important;color:#d9edfa!important}.dvtv-source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:8px;margin-top:10px}.dvtv-source small{display:block;color:#7e9eb3!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dvtv-folder-tabs{display:flex;gap:6px;overflow-x:auto;padding:3px 2px 9px;scrollbar-width:thin}.dvtv-folder-tab{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-height:38px;padding:6px 10px;border:1px solid #164765;border-radius:7px;background:#061827;color:#a9cee2;cursor:pointer}.dvtv-folder-tab:hover{border-color:#26bde8;color:#e6f9ff}.dvtv-folder-tab.is-active{border-color:var(--dv-cyan);background:linear-gradient(180deg,#0d4560,#092d42);color:#fff;box-shadow:0 0 16px rgba(40,215,255,.13)}.dvtv-folder-tab b{min-width:22px;padding:1px 6px;border-radius:999px;background:#0b2538;color:#55dcff;font:700 11px ui-monospace,Consolas,monospace}
.dvtv-filterbar,.dvtv-review-filterbar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:3px 0 13px}.dvtv-filterbar label,.dvtv-review-filterbar label{display:flex;align-items:center;gap:6px;color:#7fa5bf!important;font-size:12px}.dvtv-filterbar select,.dvtv-review-filterbar select{min-width:130px;height:36px!important;padding:0 28px 0 9px!important}.dvtv-review-filterbar #dvtv-review-folder{min-width:230px}
.dvtv-asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.dvtv-asset-card{overflow:hidden;border:1px solid #123e5d;border-radius:10px;background:#071523;box-shadow:0 7px 18px rgba(0,0,0,.18);transition:.15s ease}.dvtv-asset-card:hover{transform:translateY(-2px);border-color:#2787b8;box-shadow:0 8px 24px rgba(0,0,0,.25),0 0 18px rgba(40,215,255,.08)}
.dvtv-asset-image{position:relative;height:190px;background:linear-gradient(145deg,#02070c,#081724);border-bottom:1px solid #123a55}.dvtv-asset-image .dvtv-thumb{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:#02070c!important}.dvtv-asset-scope{position:absolute;top:8px;right:8px;padding:3px 8px;border:1px solid #22658d;border-radius:999px;background:rgba(3,17,29,.86);color:#80ddff;font-size:10px;backdrop-filter:blur(4px)}
.dvtv-asset-body{padding:10px}.dvtv-asset-body h3{min-height:42px;margin:0 0 7px!important;color:#eefaff!important;font-size:14px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.dvtv-asset-body p{height:50px;margin:7px 0!important;color:#9bb9cb!important;font-size:11px!important;line-height:1.5!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.dvtv-asset-meta{display:flex;gap:4px;flex-wrap:wrap}.dvtv-asset-meta span,.dvtv-meta-chips span{padding:2px 6px!important;border:1px solid #1a4e70!important;border-radius:999px!important;background:#071d2d!important;color:#69c9ed!important;font-size:10px!important}.dvtv-asset-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:9px;padding-top:8px;border-top:1px solid #12364e}.dvtv-asset-foot>span{min-width:0;color:#6e96ad;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dvtv-asset-foot .button{min-height:31px!important;padding:4px 8px!important;font-size:11px!important}
.dvtv-loading,.dvtv-empty,.dvtv-error{grid-column:1/-1;padding:22px;border:1px dashed #20516f;border-radius:8px;background:#061420;color:#7dcdec;text-align:center;font:12px ui-monospace,Consolas,monospace}.dvtv-error{border-color:#7e3041;color:#ff9daf}.dvtv-pulse{animation:dvtvPulse 1.1s infinite alternate}@keyframes dvtvPulse{to{opacity:.45}}
.dvtv-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding-top:11px;border-top:1px solid #123952}.dvtv-page-info{color:#6f9bb6;font:11px ui-monospace,Consolas,monospace}.dvtv-page-buttons{display:flex;gap:4px;align-items:center}.dvtv-page-buttons>span{color:#577d93}.dvtv-page-btn{min-width:34px;height:34px;padding:0 8px;border:1px solid #174d70;border-radius:6px;background:#061827;color:#a8d2e7;cursor:pointer}.dvtv-page-btn:hover:not(:disabled),.dvtv-page-btn.is-active{border-color:var(--dv-cyan);background:#0b3b54;color:#fff;box-shadow:0 0 10px rgba(40,215,255,.12)}.dvtv-page-btn:disabled{opacity:.35;cursor:default}
.dvtv-review-panel>p{color:#91afc1!important;font-size:12px}.dvtv-delete-note{border-left:3px solid var(--dv-danger)!important;background:#2b101a!important;color:#ffc0ca!important}.dvtv-review-actions{margin:8px 0 11px!important}.dvtv-review-head{grid-template-columns:42px 168px minmax(240px,1fr) minmax(270px,1.25fr) 78px 265px!important;background:#092035!important;border-color:#164a6b!important;color:#7eb5d0!important}.dvtv-review-item{grid-template-columns:36px 168px minmax(240px,1fr) minmax(270px,1.25fr) 78px 265px!important;min-height:145px!important;background:#061522!important;border-color:#123e5b!important;color:#d9edfa!important;box-shadow:0 4px 12px rgba(0,0,0,.15)!important}.dvtv-review-item:hover{border-color:#247aa8!important;box-shadow:0 5px 18px rgba(0,0,0,.22),0 0 15px rgba(40,215,255,.05)!important}.dvtv-review-item .dvtv-thumb{background:#02070c!important;border-color:#1c587b!important}.dvtv-file-name{color:#effbff!important}.dvtv-path{color:#668ca5!important}.dvtv-summary-cell{background:#081c2c!important;border-left-color:#1f84ae!important;color:#bcd4e2!important}.dvtv-summary-text{color:#bcd4e2!important}.dvtv-preview-help{color:#4fbde7!important;font:9px ui-monospace,Consolas,monospace!important;letter-spacing:.08em}.dvtv-scope{border:1px solid #245b7c!important;background:#082237!important;color:#92dcff!important}.dvtv-scope-company{border-color:#236fd2!important;color:#9bc4ff!important}.dvtv-scope-personal{border-color:#a94d9d!important;color:#ffb3ef!important}.dvtv-scope-unclassified{border-color:#957b32!important;color:#ffe08a!important}
.dvtv-history-list{display:flex;flex-direction:column;gap:7px}.dvtv-history-row{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center;padding:9px;border:1px solid #123c59;border-radius:8px;background:#061522}.dvtv-history-row .dvtv-thumb{width:105px!important;height:75px!important}.dvtv-history-row small{color:#7198b0!important}
#dvtv-thumb-preview{background:#02070d!important;border-color:var(--dv-cyan)!important;box-shadow:0 0 28px rgba(40,215,255,.18),0 20px 50px rgba(0,0,0,.6)!important}.dvtv-preview-window{background:#020914!important;border-color:var(--dv-cyan)!important}.dvtv-preview-head{background:#061827!important;border-bottom-color:#174a6a!important}.dvtv-preview-body{background:#010409!important}.dvtv-preview-controls .button{background:#082035!important}
.dvtv-working{opacity:.45!important;filter:saturate(.4);pointer-events:none}
@media(max-width:1250px){.dvtv-stat-grid{grid-template-columns:repeat(4,1fr)}.dvtv-asset-grid{grid-template-columns:repeat(3,1fr)}.dvtv-review-item{grid-template-columns:36px 150px 1fr 1.15fr!important}.dvtv-review-head{display:none!important}.dvtv-scope-cell{grid-column:3!important}.dvtv-action-cell{grid-column:4!important}}
@media(max-width:900px){.dvtv-asset-grid{grid-template-columns:repeat(2,1fr)}.dvtv-stat-grid{grid-template-columns:repeat(3,1fr)}.dvtv-pager{align-items:flex-start;flex-direction:column}.dvtv-review-item{grid-template-columns:32px 120px 1fr!important}.dvtv-summary-cell{grid-column:2/4!important}.dvtv-scope-cell{grid-column:2!important}.dvtv-action-cell{grid-column:3!important}.dvtv-search{grid-template-columns:1fr!important}}
@media(max-width:560px){.dvtv-ka{padding:10px!important}.dvtv-asset-grid{grid-template-columns:1fr}.dvtv-stat-grid{grid-template-columns:repeat(2,1fr)}.dvtv-asset-image{height:220px}.dvtv-filterbar,.dvtv-review-filterbar{display:grid;grid-template-columns:1fr 1fr}.dvtv-filterbar label,.dvtv-review-filterbar label{display:grid}.dvtv-filterbar select,.dvtv-review-filterbar select{width:100%;min-width:0}.dvtv-review-item{grid-template-columns:28px 1fr!important}.dvtv-preview-cell,.dvtv-file-cell,.dvtv-summary-cell,.dvtv-scope-cell,.dvtv-action-cell{grid-column:2!important}.dvtv-history-row{grid-template-columns:90px 1fr}.dvtv-history-row .dvtv-action-cell{grid-column:1/3!important}}

/* ======================================================================
   v0.5.4 — pagination visibility / delete feedback / compact page top
   ====================================================================== */
.dvtv-front{margin-top:0!important;padding-top:0!important}
body:has(.dvtv-front) .entry-content:has(.dvtv-front),
body:has(.dvtv-front) .page-content:has(.dvtv-front){margin-top:0!important;padding-top:12px!important}
.dvtv-pager-top{margin:2px 0 12px!important;padding:9px 10px!important;border:1px solid #174b70!important;border-radius:8px!important;background:#061522!important;box-shadow:inset 0 0 18px rgba(40,215,255,.035)}
.dvtv-pager-bottom{margin:14px 0 0!important;padding:10px!important;border:1px solid #174b70!important;border-radius:8px!important;background:#061522!important}
.dvtv-page-info{font-size:12px!important;color:#9bdcff!important;font-weight:700!important}
.dvtv-page-btn{min-width:38px!important;height:38px!important;font-weight:700!important}
.dvtv-page-btn.is-active{border-color:#47e5ff!important;background:#0d5675!important;box-shadow:0 0 16px rgba(40,215,255,.22)!important}
#dvtv-toast{position:fixed;z-index:10000020;right:22px;bottom:22px;max-width:min(520px,calc(100vw - 44px));padding:13px 16px;border:1px solid #2d789d;border-radius:9px;background:#061827;color:#dff6ff;box-shadow:0 16px 45px rgba(0,0,0,.52),0 0 22px rgba(40,215,255,.12);font-size:13px;line-height:1.55;opacity:0;transform:translateY(12px);pointer-events:none;transition:.18s ease}
#dvtv-toast.is-show{opacity:1;transform:translateY(0)}
#dvtv-toast.is-warn{border-color:#c4942a;color:#ffe39a;background:#271f0b}
#dvtv-toast.is-error{border-color:#a63d52;color:#ffb7c3;background:#2a1018}
@media(max-width:700px){.dvtv-page-buttons{max-width:100%;overflow-x:auto;padding-bottom:3px}.dvtv-pager{width:100%;box-sizing:border-box}}


/* ======================================================================
   v0.5.5 — hard collapse theme gap + unmistakable pagination
   ====================================================================== */
body.dvtv-keiri-page .dvtv-keiri-host{
  margin-top:0!important;
  padding-top:0!important;
  min-height:0!important;
}
body.dvtv-keiri-page main.dvtv-keiri-host,
body.dvtv-keiri-page article.dvtv-keiri-host,
body.dvtv-keiri-page .site-content.dvtv-keiri-host,
body.dvtv-keiri-page .content-area.dvtv-keiri-host,
body.dvtv-keiri-page .site-main.dvtv-keiri-host,
body.dvtv-keiri-page .entry-content.dvtv-keiri-host,
body.dvtv-keiri-page .page-content.dvtv-keiri-host,
body.dvtv-keiri-page .wp-site-blocks.dvtv-keiri-host{
  margin-block-start:0!important;
  padding-block-start:0!important;
}
body.dvtv-keiri-page .dvtv-front{
  margin-top:8px!important;
  padding-top:14px!important;
}
body.dvtv-keiri-page .dvtv-front:before{margin-top:0!important}
.dvtv-pager{
  display:flex!important;
  visibility:visible!important;
  min-height:48px!important;
}
.dvtv-pager:empty{display:none!important}
.dvtv-pager-top{
  position:relative;
  margin:4px 0 14px!important;
  padding:10px 12px!important;
  border:1px solid #24bfe9!important;
  background:linear-gradient(180deg,#082238,#061724)!important;
  box-shadow:0 0 0 1px rgba(40,215,255,.05),0 0 18px rgba(40,215,255,.10),inset 0 0 24px rgba(40,215,255,.04)!important;
}
.dvtv-pager-bottom{
  margin:14px 0 2px!important;
  padding:10px 12px!important;
  border:1px solid #1b668c!important;
  background:#061724!important;
}
.dvtv-page-info{display:flex;align-items:center;gap:8px!important;font-size:13px!important;color:#bcecff!important}
.dvtv-page-info b{font-size:18px;color:#fff;text-shadow:0 0 12px rgba(40,215,255,.32)}
.dvtv-page-info em{font-style:normal;color:#61dfff}
.dvtv-page-kicker{padding:3px 7px;border:1px solid #23698e;border-radius:5px;background:#08283c;color:#57dfff;font:700 9px/1 ui-monospace,Consolas,monospace;letter-spacing:.13em}
.dvtv-page-buttons{margin-left:auto!important;flex-wrap:wrap}
.dvtv-page-btn{min-width:40px!important;height:40px!important;border-color:#24749b!important;background:#071f31!important;font-size:13px!important}
.dvtv-page-btn.is-active{background:#0b6283!important;border-color:#5ee8ff!important;color:#fff!important;box-shadow:0 0 18px rgba(40,215,255,.28)!important}
@media(max-width:700px){
  body.dvtv-keiri-page .dvtv-front{margin-top:4px!important}
  .dvtv-pager{min-height:0!important}
  .dvtv-page-buttons{margin-left:0!important;flex-wrap:nowrap}
}

/* v0.5.7 日本語ラベル / 画像フォールバック */
.dvtv-meta-chips span,.dvtv-asset-meta span{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif!important;letter-spacing:0!important;white-space:nowrap}
.dvtv-preview-help{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif!important;letter-spacing:.03em!important}
.dvtv-image-error{position:relative;background:repeating-linear-gradient(135deg,#06131e,#06131e 12px,#081c29 12px,#081c29 24px)!important}
.dvtv-image-error:after{content:"画像を表示できません\Aダウンロードで原本確認";white-space:pre;position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#7fb4cf;font-size:12px;line-height:1.6;pointer-events:none}
.dvtv-thumb-error{opacity:0!important}


/* ======================================================================
   v0.5.8 — compact review rows / true pagination fallback / overflow fix
   ====================================================================== */
/* Fixed/sticky site header overlap is calculated by JS; keep only the amount actually needed. */
body.dvtv-keiri-page .dvtv-front{
  margin-top:var(--dvtv-overlap-fix, 8px)!important;
  padding-top:10px!important;
}
body.dvtv-keiri-page .dvtv-front h1{
  margin-top:0!important;
  padding-top:0!important;
  line-height:1.22!important;
  overflow:visible!important;
}

/* Dense rows: use the card width rather than viewport width. */
.dvtv-review-head{display:none!important}
.dvtv-review-list{
  container-type:inline-size;
  container-name:dvtv-review-list;
  gap:6px!important;
}
.dvtv-review-item{
  display:grid!important;
  grid-template-columns:28px 118px minmax(180px,.85fr) minmax(220px,1.15fr) minmax(190px,220px)!important;
  grid-template-areas:"sel preview file summary action"!important;
  gap:10px!important;
  align-items:center!important;
  min-height:108px!important;
  padding:8px 10px!important;
  overflow:hidden!important;
}
.dvtv-select-cell{grid-area:sel!important;align-self:start!important;padding-top:8px!important}
.dvtv-preview-cell{grid-area:preview!important;align-items:center!important;gap:0!important}
.dvtv-review-item .dvtv-thumb{
  width:112px!important;height:84px!important;max-width:112px!important;
  border-radius:6px!important;cursor:zoom-in!important
}
.dvtv-preview-help{display:none!important}
.dvtv-file-cell{grid-area:file!important;min-width:0!important;align-self:center!important}
.dvtv-file-name{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;margin:0 0 5px!important;font-size:15px!important;line-height:1.28!important;
  overflow-wrap:anywhere!important;word-break:normal!important
}
.dvtv-meta-chips{gap:4px!important;margin-bottom:5px!important}
.dvtv-meta-chips span{padding:1px 6px!important;font-size:10px!important;line-height:1.45!important}
.dvtv-path{font-size:11px!important;line-height:1.35!important}
.dvtv-file-cell small{display:block;margin-top:3px;font-size:10px!important;color:#678ca4!important}
.dvtv-summary-cell{
  grid-area:summary!important;min-width:0!important;align-self:stretch!important;
  padding:7px 9px!important;display:flex!important;flex-direction:column!important;justify-content:center!important
}
.dvtv-summary-text{-webkit-line-clamp:3!important;font-size:12px!important;line-height:1.5!important}
.dvtv-summary-toggle{margin-top:3px!important;font-size:10px!important;text-align:left!important}

/* Scope and controls share the final column, preventing buttons from escaping the card. */
.dvtv-scope-cell{
  grid-area:action!important;align-self:start!important;justify-self:start!important;
  position:relative!important;z-index:2!important;margin:0!important;padding:1px 0 0!important;text-align:left!important
}
.dvtv-scope{font-size:11px!important;line-height:1.2!important;padding:4px 7px!important}
.dvtv-action-cell{
  grid-area:action!important;align-self:center!important;min-width:0!important;width:100%!important;
  box-sizing:border-box!important;padding-top:30px!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important
}
.dvtv-action-cell .button{
  width:100%!important;min-width:0!important;min-height:31px!important;height:31px!important;
  padding:4px 7px!important;font-size:11px!important;line-height:1!important;box-sizing:border-box!important;
  overflow:hidden!important;text-overflow:ellipsis!important
}
.dvtv-action-cell .dvtv-download{min-width:0!important}

/* Delete must unmistakably be red. */
.dvtv-ka .dvtv-danger,
.dvtv-ka .dvtv-delete,
.dvtv-front .dvtv-danger,
.dvtv-front .dvtv-delete,
#dvtv-bulk-delete{
  border-color:#ef4444!important;
  background:linear-gradient(180deg,#c62828,#8f1515)!important;
  color:#fff!important;
  box-shadow:0 0 10px rgba(239,68,68,.14),inset 0 0 10px rgba(255,255,255,.03)!important
}
.dvtv-ka .dvtv-danger:hover,
.dvtv-ka .dvtv-delete:hover,
.dvtv-front .dvtv-danger:hover,
.dvtv-front .dvtv-delete:hover,
#dvtv-bulk-delete:hover{
  border-color:#ff7070!important;background:linear-gradient(180deg,#e13a3a,#a91818)!important;color:#fff!important;
  box-shadow:0 0 16px rgba(255,70,70,.25)!important
}

/* Pagination is visually separate and cannot be collapsed by theme CSS. */
.dvtv-pager{width:100%!important;box-sizing:border-box!important;overflow:visible!important}
.dvtv-pager-top,.dvtv-pager-bottom{display:flex!important}
.dvtv-page-buttons{min-width:0!important;max-width:100%!important;overflow-x:auto!important;padding-bottom:2px!important}

/* Container-based fallback: content width, not viewport width. */
@container dvtv-review-list (max-width:900px){
  .dvtv-review-item{
    grid-template-columns:28px 108px minmax(0,1fr) minmax(190px,220px)!important;
    grid-template-areas:
      "sel preview file action"
      "sel preview summary action"!important;
  }
  .dvtv-review-item .dvtv-thumb{width:102px!important;height:78px!important;max-width:102px!important}
}
@container dvtv-review-list (max-width:680px){
  .dvtv-review-item{
    grid-template-columns:28px 96px minmax(0,1fr)!important;
    grid-template-areas:
      "sel preview file"
      "sel preview summary"
      "sel preview action"!important;
  }
  .dvtv-scope-cell{grid-area:action!important}
  .dvtv-action-cell{grid-area:action!important;padding-top:28px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .dvtv-review-item .dvtv-thumb{width:90px!important;height:68px!important;max-width:90px!important}
}
@container dvtv-review-list (max-width:500px){
  .dvtv-review-item{grid-template-columns:26px minmax(0,1fr)!important;grid-template-areas:"sel file" "sel preview" "sel summary" "sel action"!important}
  .dvtv-preview-cell{align-items:flex-start!important}.dvtv-review-item .dvtv-thumb{width:128px!important;height:96px!important;max-width:128px!important}
  .dvtv-action-cell{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* v0.5.9 — explicit select all / clear selection controls */
.dvtv-review-actions{align-items:center!important;flex-wrap:wrap!important}
.dvtv-select-action{border-color:#2e88b5!important;background:#082439!important;color:#d9f7ff!important}
.dvtv-select-action:hover{background:#0b3550!important;border-color:#49d8ff!important;color:#fff!important;box-shadow:0 0 14px rgba(73,216,255,.18)!important}
.dvtv-selected-count{display:inline-flex;align-items:center;justify-content:center;min-width:78px;height:34px;padding:0 10px;border:1px solid #235c79;border-radius:17px;background:#061725;color:#76dbff;font-size:12px;font-weight:700;white-space:nowrap}

/* ======================================================================
   v0.6.0 — visible scope switch / populated filters / compact rows / history pager
   ====================================================================== */
.dvtv-scope-switch{
  display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;
  margin:2px 0 10px!important;padding:8px 10px!important;border:1px solid #174c6b!important;
  border-radius:8px!important;background:linear-gradient(180deg,#071b2b,#061522)!important;
}
.dvtv-scope-switch>span{font:700 10px/1 ui-monospace,Consolas,monospace!important;letter-spacing:.15em!important;color:#5edfff!important;margin-right:3px!important}
.dvtv-scope-switch .dvtv-scope-tab{min-width:92px!important;height:34px!important;padding:4px 14px!important;border-color:#2b6d91!important;background:#082238!important;color:#d8f3ff!important}
.dvtv-scope-switch .dvtv-scope-tab.is-active{background:linear-gradient(180deg,#0e7b9e,#095674)!important;border-color:#59e7ff!important;color:#fff!important;box-shadow:0 0 15px rgba(44,214,255,.22)!important}
#dvtv-current-scope{margin-left:auto!important;font-size:11px!important;color:#85cbe8!important;font-weight:600!important}

/* Keep filters compact and make populated choices obvious. */
.dvtv-review-filterbar,.dvtv-filterbar{gap:7px!important;margin:7px 0!important;align-items:center!important}
.dvtv-review-filterbar label,.dvtv-filterbar label{gap:5px!important;font-size:11px!important;color:#8eb6cc!important}
.dvtv-review-filterbar select,.dvtv-filterbar select{height:34px!important;min-height:34px!important;padding-top:2px!important;padding-bottom:2px!important;background:#061725!important;color:#e0f5ff!important;border-color:#286988!important}
#dvtv-review-folder{min-width:250px!important}
#dvtv-review-year,#dvtv-review-month{min-width:150px!important}

/* Dense review rows: no wasted vertical space. */
.dvtv-review-list{gap:5px!important}
.dvtv-review-item{
  grid-template-columns:26px 96px minmax(190px,.9fr) minmax(230px,1.2fr) minmax(178px,205px)!important;
  grid-template-areas:"sel preview file summary action"!important;
  gap:8px!important;min-height:86px!important;padding:6px 8px!important;border-radius:7px!important;
}
.dvtv-review-item .dvtv-thumb{width:90px!important;height:68px!important;max-width:90px!important;border-radius:5px!important}
.dvtv-select-cell{padding-top:5px!important}
.dvtv-file-name{-webkit-line-clamp:1!important;white-space:nowrap!important;text-overflow:ellipsis!important;display:block!important;font-size:13px!important;line-height:1.25!important;margin-bottom:3px!important}
.dvtv-meta-chips{margin-bottom:3px!important}
.dvtv-meta-chips span{font-size:9px!important;padding:1px 5px!important}
.dvtv-path{font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.dvtv-file-cell small{display:none!important}
.dvtv-summary-cell{padding:5px 7px!important;min-height:62px!important;max-height:72px!important;overflow:hidden!important}
.dvtv-summary-text{-webkit-line-clamp:2!important;font-size:11px!important;line-height:1.45!important}
.dvtv-summary-toggle{font-size:9px!important;margin-top:1px!important}
.dvtv-summary-cell.is-expanded{max-height:none!important;overflow:visible!important}
.dvtv-summary-cell.is-expanded .dvtv-summary-text{-webkit-line-clamp:unset!important}
.dvtv-scope-cell{padding-top:0!important}
.dvtv-scope{font-size:10px!important;padding:3px 6px!important}
.dvtv-action-cell{padding-top:24px!important;gap:4px!important}
.dvtv-action-cell .button{height:28px!important;min-height:28px!important;font-size:10px!important;padding:2px 5px!important}

/* History is a real sub-panel with thumbnails and pagination above + below. */
.dvtv-history-panel{margin-top:14px!important;padding:12px!important;border:1px solid #155378!important;border-radius:10px!important;background:#051522!important;box-shadow:inset 0 0 24px rgba(22,155,210,.035)!important}
.dvtv-history-title{display:flex!important;align-items:center!important;gap:10px!important;padding:0 0 9px!important;border-bottom:1px solid #143e59!important}
.dvtv-history-title span{font:700 9px/1 ui-monospace,Consolas,monospace!important;letter-spacing:.16em!important;color:#55dfff!important}
.dvtv-history-title strong{font-size:18px!important;color:#eaf8ff!important}
.dvtv-history-title em{margin-left:auto!important;font-style:normal!important;border:1px solid #276f95!important;border-radius:15px!important;padding:3px 9px!important;color:#82ddff!important;font-size:11px!important}
.dvtv-history-toolbar{display:flex!important;align-items:center!important;gap:8px!important;margin:8px 0!important}
.dvtv-history-toolbar label{font-size:11px!important;color:#91b9ce!important}
.dvtv-history-toolbar select{height:32px!important;min-height:32px!important;margin-left:5px!important;background:#061725!important;color:#e5f6ff!important;border-color:#286988!important}
.dvtv-history-toolbar #dvtv-history-close{margin-left:auto!important}
.dvtv-history-list{display:flex!important;flex-direction:column!important;gap:4px!important}
.dvtv-history-row{
  display:grid!important;grid-template-columns:76px minmax(220px,1fr) 250px!important;gap:9px!important;align-items:center!important;
  min-height:66px!important;padding:5px 7px!important;border:1px solid #123c59!important;border-radius:6px!important;background:#061522!important;
}
.dvtv-history-preview{width:72px!important;height:54px!important;min-width:72px!important;display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;overflow:hidden!important}
.dvtv-history-row .dvtv-thumb{width:72px!important;height:54px!important;max-width:72px!important;object-fit:contain!important;background:#02070c!important;border:1px solid #1d5c7c!important;border-radius:4px!important}
.dvtv-history-main{min-width:0!important}
.dvtv-history-main>b{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#e9f7ff!important;font-size:12px!important;line-height:1.3!important}
.dvtv-history-meta{display:flex!important;align-items:center!important;gap:5px!important;margin-top:4px!important;font-size:10px!important;color:#87aebf!important;white-space:nowrap!important}
.dvtv-history-meta span{padding:2px 5px!important;border:1px solid #285b76!important;border-radius:10px!important;color:#9dd9f2!important}
.dvtv-history-meta .is-now{border-color:#5d73ae!important;color:#c9d4ff!important}
.dvtv-history-meta i{font-style:normal!important;color:#43d5ff!important}
.dvtv-history-meta small{margin-left:4px!important;color:#668da3!important;overflow:hidden!important;text-overflow:ellipsis!important}
.dvtv-history-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
.dvtv-history-actions .button{min-width:0!important;width:100%!important;height:29px!important;min-height:29px!important;padding:2px 5px!important;font-size:10px!important;line-height:1!important;display:flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
.dvtv-history-actions .dvtv-danger{border-color:#ef4444!important;background:linear-gradient(180deg,#c62828,#8f1515)!important;color:#fff!important}
#dvtv-history-pager-top,#dvtv-history-pager{display:flex!important;width:100%!important}

@container dvtv-review-list (max-width:900px){
  .dvtv-review-item{grid-template-columns:26px 90px minmax(0,1fr) 190px!important;grid-template-areas:"sel preview file action" "sel preview summary action"!important}
  .dvtv-review-item .dvtv-thumb{width:84px!important;height:63px!important;max-width:84px!important}
}
@media(max-width:900px){
  .dvtv-history-row{grid-template-columns:70px minmax(0,1fr)!important}.dvtv-history-actions{grid-column:1/3!important;grid-template-columns:repeat(4,1fr)!important}
}
@media(max-width:620px){
  #dvtv-current-scope{width:100%!important;margin-left:0!important}.dvtv-history-actions{grid-template-columns:repeat(2,1fr)!important}
}

/* ======================================================================
   v0.6.0 — logic/layout consolidation
   - compact review rows
   - visible company/personal switch
   - history opens directly below toolbar with thumbnail + pagination
   ====================================================================== */
.dvtv-global-scope-switch{
  display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;
  margin:4px 0 10px!important;padding:8px 10px!important;border:1px solid #184e70!important;
  border-radius:8px!important;background:#061522!important
}
.dvtv-global-scope-switch>span{
  font:700 10px/1 ui-monospace,Consolas,monospace!important;letter-spacing:.14em!important;color:#5edfff!important;margin-right:3px!important
}
.dvtv-global-scope-switch .button{height:34px!important;min-height:34px!important;padding:4px 14px!important}

/* Ensure filters never look empty because of theme option colors. */
.dvtv-ka select option{background:#071521!important;color:#e8f7ff!important}
.dvtv-filterbar select,.dvtv-review-filterbar select{font-size:12px!important}

/* Review list: five useful columns only. Scope badge lives inside the action column. */
.dvtv-review-list{gap:4px!important}
.dvtv-review-item{
  display:grid!important;
  grid-template-columns:24px 86px minmax(190px,.95fr) minmax(230px,1.25fr) 198px!important;
  grid-template-areas:"sel preview file summary action"!important;
  gap:7px!important;align-items:center!important;
  min-height:76px!important;padding:5px 7px!important;border-radius:6px!important;overflow:hidden!important
}
.dvtv-select-cell{grid-area:sel!important;align-self:center!important;padding:0!important}
.dvtv-select-cell input{width:17px!important;height:17px!important;margin:0!important}
.dvtv-preview-cell{grid-area:preview!important;min-width:0!important;gap:0!important}
.dvtv-review-item .dvtv-thumb{width:80px!important;height:60px!important;max-width:80px!important;border-radius:4px!important}
.dvtv-file-cell{grid-area:file!important;min-width:0!important;align-self:center!important}
.dvtv-file-name{
  display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  margin:0 0 3px!important;font-size:12px!important;line-height:1.25!important
}
.dvtv-meta-chips{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;margin:0 0 3px!important;overflow:hidden!important}
.dvtv-meta-chips span{flex:0 0 auto!important;padding:1px 5px!important;font-size:9px!important;line-height:1.3!important}
.dvtv-path{font-size:9px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.dvtv-summary-cell{
  grid-area:summary!important;min-width:0!important;align-self:stretch!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
  padding:4px 7px!important;min-height:52px!important;max-height:64px!important;overflow:hidden!important;border-left-width:2px!important
}
.dvtv-summary-text{font-size:10.5px!important;line-height:1.4!important;-webkit-line-clamp:2!important}
.dvtv-summary-toggle{margin-top:1px!important;font-size:9px!important;line-height:1.2!important}
.dvtv-summary-cell.is-expanded{max-height:none!important;overflow:visible!important}
.dvtv-summary-cell.is-expanded .dvtv-summary-text{-webkit-line-clamp:unset!important}
.dvtv-action-cell{
  grid-area:action!important;min-width:0!important;width:100%!important;padding:0!important;align-self:center!important;
  display:flex!important;flex-direction:column!important;gap:4px!important
}
.dvtv-action-status{display:flex!important;align-items:center!important;min-height:19px!important}
.dvtv-action-status .dvtv-scope{padding:2px 6px!important;font-size:9px!important;line-height:1.15!important}
.dvtv-action-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px!important}
.dvtv-action-grid .button{
  width:100%!important;min-width:0!important;height:26px!important;min-height:26px!important;padding:2px 4px!important;
  font-size:9.5px!important;line-height:1!important;overflow:hidden!important;text-overflow:ellipsis!important
}
.dvtv-scope-cell{display:none!important}

/* History is intentionally placed directly under the toolbar, not after all pending rows. */
.dvtv-history-panel{margin:8px 0 10px!important;padding:9px!important}
.dvtv-history-title{padding-bottom:7px!important}
.dvtv-history-title strong{font-size:16px!important}
.dvtv-history-toolbar{margin:6px 0!important}
.dvtv-history-list{gap:3px!important}
.dvtv-history-row{
  grid-template-columns:66px minmax(220px,1fr) 286px!important;gap:7px!important;
  min-height:58px!important;padding:4px 6px!important;border-radius:5px!important
}
.dvtv-history-preview{width:62px!important;height:46px!important;min-width:62px!important}
.dvtv-history-row .dvtv-thumb{width:62px!important;height:46px!important;max-width:62px!important;border-radius:3px!important}
.dvtv-history-main>b{font-size:11px!important}
.dvtv-history-meta{margin-top:3px!important;font-size:9px!important;gap:4px!important}
.dvtv-history-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important}
.dvtv-history-actions .button{height:27px!important;min-height:27px!important;padding:2px 4px!important;font-size:9px!important}

/* Pager is always visibly separated and compact. */
.dvtv-pager{margin:6px 0!important;padding:7px 8px!important;min-height:42px!important}
.dvtv-page-info{font-size:10px!important}.dvtv-page-btn{min-width:31px!important;height:31px!important;padding:0 7px!important}

/* Keep the fixed site header from clipping the title, without creating a large blank area. */
body.dvtv-keiri-page .dvtv-front{margin-top:var(--dvtv-overlap-fix,0px)!important;padding-top:4px!important}
body.dvtv-keiri-page .dvtv-front h1{margin:0 0 8px!important;padding:0!important}

@container dvtv-review-list (max-width:960px){
  .dvtv-review-item{grid-template-columns:24px 82px minmax(0,1fr) 190px!important;grid-template-areas:"sel preview file action" "sel preview summary action"!important}
  .dvtv-review-item .dvtv-thumb{width:76px!important;height:57px!important;max-width:76px!important}
}
@container dvtv-review-list (max-width:700px){
  .dvtv-review-item{grid-template-columns:24px 76px minmax(0,1fr)!important;grid-template-areas:"sel preview file" "sel preview summary" "sel preview action"!important}
  .dvtv-review-item .dvtv-thumb{width:70px!important;height:53px!important;max-width:70px!important}
  .dvtv-action-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@container dvtv-review-list (max-width:520px){
  .dvtv-review-item{grid-template-columns:22px minmax(0,1fr)!important;grid-template-areas:"sel file" "sel preview" "sel summary" "sel action"!important}
  .dvtv-preview-cell{align-items:flex-start!important}.dvtv-review-item .dvtv-thumb{width:112px!important;height:84px!important;max-width:112px!important}
  .dvtv-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
  .dvtv-history-row{grid-template-columns:62px minmax(0,1fr)!important}.dvtv-history-actions{grid-column:1/3!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
}


/* ======================================================================
   v0.6.1 — media preview fallback / visible scope switch / split actions
   ====================================================================== */
/* Prominent company/personal display switch. Do not rely on theme .tabs styles. */
.dvtv-view-switch{
  display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;
  width:100%!important;box-sizing:border-box!important;margin:6px 0 12px!important;padding:9px 11px!important;
  border:1px solid #1e6389!important;border-radius:9px!important;
  background:linear-gradient(180deg,#071b2b,#05131f)!important;box-shadow:inset 0 0 18px rgba(40,215,255,.04)!important
}
.dvtv-view-switch-primary{border-color:#2581a9!important;box-shadow:0 0 18px rgba(40,215,255,.07),inset 0 0 18px rgba(40,215,255,.05)!important}
.dvtv-view-label{font:700 11px/1 ui-monospace,Consolas,monospace!important;letter-spacing:.13em!important;color:#67ddff!important;margin-right:4px!important}
.dvtv-view-tab{min-width:108px!important;height:36px!important;min-height:36px!important;padding:5px 16px!important;font-weight:800!important;font-size:13px!important}
.dvtv-view-tab[data-scope="company"].is-active{background:linear-gradient(180deg,#176ab5,#0e477f)!important;border-color:#66b7ff!important;color:#fff!important;box-shadow:0 0 15px rgba(57,139,255,.25)!important}
.dvtv-view-tab[data-scope="personal"].is-active{background:linear-gradient(180deg,#8a3b86,#5b285c)!important;border-color:#ef8be5!important;color:#fff!important;box-shadow:0 0 15px rgba(226,92,217,.22)!important}
.dvtv-current-scope{margin-left:auto!important;padding:5px 9px!important;border-radius:999px!important;background:#04101b!important;color:#9bdfff!important;font-size:11px!important;white-space:nowrap!important}

/* Review rows: one step larger thumbnail, while keeping the row compact. */
.dvtv-review-item{
  grid-template-columns:24px 120px minmax(190px,.9fr) minmax(220px,1.05fr) 244px!important;
  min-height:98px!important;padding:6px 8px!important;gap:8px!important
}
.dvtv-review-item .dvtv-thumb{width:112px!important;height:84px!important;max-width:112px!important;border-radius:5px!important}
.dvtv-summary-cell{min-height:64px!important;max-height:82px!important}

/* Scope can be read from the row itself without staring at a tiny badge. */
.dvtv-review-item.dvtv-row-company,.dvtv-history-row.dvtv-row-company{
  background:linear-gradient(90deg,rgba(31,91,158,.18),rgba(6,21,34,.97) 26%)!important;
  border-left:3px solid #3b82f6!important
}
.dvtv-review-item.dvtv-row-personal,.dvtv-history-row.dvtv-row-personal{
  background:linear-gradient(90deg,rgba(151,49,143,.17),rgba(10,18,31,.97) 26%)!important;
  border-left:3px solid #d45acb!important
}
.dvtv-review-item.dvtv-row-unclassified{
  background:linear-gradient(90deg,rgba(181,141,48,.15),rgba(8,20,31,.97) 26%)!important;
  border-left:3px solid #d6a936!important
}
.dvtv-asset-card.dvtv-asset-company{border-top:2px solid rgba(59,130,246,.75)!important}
.dvtv-asset-card.dvtv-asset-personal{border-top:2px solid rgba(212,90,203,.72)!important}

/* Do not mix four actions into one button block. Classification and file actions are separate. */
.dvtv-action-cell{gap:5px!important}
.dvtv-action-status{min-height:18px!important;margin-bottom:1px!important}
.dvtv-action-block{padding:4px 5px!important;border:1px solid #173e58!important;border-radius:6px!important;background:rgba(2,13,22,.48)!important}
.dvtv-classify-block{border-color:#205a7c!important}
.dvtv-file-block{border-color:#314657!important;margin-top:2px!important}
.dvtv-action-label{display:block!important;margin:0 0 3px!important;color:#71b9d8!important;font:700 8px/1.1 ui-monospace,Consolas,monospace!important;letter-spacing:.12em!important}
.dvtv-action-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}
.dvtv-action-pair .button{width:100%!important;min-width:0!important;height:29px!important;min-height:29px!important;padding:3px 5px!important;font-size:10px!important;line-height:1!important}
.dvtv-history-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
.dvtv-history-actions .dvtv-action-block{min-width:0!important}

/* Preview modal: keep title and controls inside the viewport and show actual labels. */
.dvtv-preview-window{inset:12px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important;box-sizing:border-box!important}
.dvtv-preview-head{min-width:0!important;box-sizing:border-box!important;padding:9px 12px!important}
.dvtv-preview-head>div:first-child{min-width:0!important;flex:1 1 auto!important}
#dvtv-preview-title{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.dvtv-preview-controls{flex:0 0 auto!important;max-width:58%!important;overflow-x:auto!important}
.dvtv-preview-controls .button{min-width:auto!important;height:34px!important;min-height:34px!important;padding:5px 10px!important;font-size:12px!important}

/* History thumbnail a little larger but still dense. */
.dvtv-history-row{grid-template-columns:92px minmax(220px,1fr) 360px!important;min-height:72px!important}
.dvtv-history-preview{width:84px!important;height:63px!important;min-width:84px!important}
.dvtv-history-row .dvtv-thumb{width:84px!important;height:63px!important;max-width:84px!important}

@container dvtv-review-list (max-width:980px){
  .dvtv-review-item{grid-template-columns:24px 106px minmax(0,1fr) 220px!important;grid-template-areas:"sel preview file action" "sel preview summary action"!important}
  .dvtv-review-item .dvtv-thumb{width:100px!important;height:75px!important;max-width:100px!important}
}
@container dvtv-review-list (max-width:720px){
  .dvtv-review-item{grid-template-columns:24px 96px minmax(0,1fr)!important;grid-template-areas:"sel preview file" "sel preview summary" "sel preview action"!important}
  .dvtv-review-item .dvtv-thumb{width:90px!important;height:68px!important;max-width:90px!important}
  .dvtv-action-cell{padding-top:0!important}.dvtv-action-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
  .dvtv-history-row{grid-template-columns:86px minmax(0,1fr)!important}.dvtv-history-actions{grid-column:1/3!important;grid-template-columns:1fr 1fr!important}
  .dvtv-preview-controls{max-width:100%!important}
}
@media(max-width:620px){
  .dvtv-current-scope{width:100%!important;margin-left:0!important}.dvtv-view-tab{flex:1 1 100px!important}
  .dvtv-history-actions{grid-template-columns:1fr!important}
}


/* ======================================================================
   v0.6.2 — final history order / centered pagination / compact consistency
   ====================================================================== */
/* Pagination is always centered as one control block. */
.dvtv-pager,
#dvtv-history-pager-top,#dvtv-history-pager,
#dvtv-review-pager-top,#dvtv-review-pager,
#dvtv-asset-pager-top,#dvtv-asset-pager{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  text-align:center!important;
}
.dvtv-page-info{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  text-align:center!important;
}
.dvtv-page-buttons{
  width:auto!important;
  max-width:100%!important;
  margin:0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  overflow-x:auto!important;
}

/* History order must match the normal list: thumbnail -> information -> controls. */
.dvtv-history-row{
  display:grid!important;
  grid-template-columns:104px minmax(0,1fr) minmax(320px,360px)!important;
  grid-template-areas:"hist-thumb hist-main hist-actions"!important;
  align-items:center!important;
  gap:10px!important;
  min-height:78px!important;
  padding:6px 8px!important;
  overflow:hidden!important;
}
.dvtv-history-preview{
  grid-area:hist-thumb!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:96px!important;
  height:72px!important;
  min-width:96px!important;
  justify-self:start!important;
  align-self:center!important;
  margin:0!important;
}
.dvtv-history-row .dvtv-thumb{
  width:96px!important;
  height:72px!important;
  max-width:96px!important;
  object-fit:contain!important;
  margin:0!important;
}
.dvtv-history-main{
  grid-area:hist-main!important;
  grid-column:auto!important;
  min-width:0!important;
  align-self:center!important;
}
.dvtv-history-main>b{font-size:13px!important;line-height:1.25!important}
.dvtv-history-meta{font-size:10px!important;flex-wrap:wrap!important;white-space:normal!important}
.dvtv-history-actions{
  grid-area:hist-actions!important;
  grid-column:auto!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:4px!important;
  min-width:0!important;
  align-self:center!important;
}
.dvtv-history-actions .dvtv-action-block{padding:3px 4px!important;margin:0!important}
.dvtv-history-actions .dvtv-action-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}
.dvtv-history-actions .button{height:28px!important;min-height:28px!important;font-size:10px!important}

/* Make the primary company/personal browser switch impossible to miss. */
.dvtv-view-switch-primary{
  position:relative!important;
  z-index:3!important;
  margin:4px 0 10px!important;
}
.dvtv-view-switch-primary .dvtv-view-label:before{content:"● ";color:#57dcff!important}

/* Keep review rows efficient while retaining the larger thumbnail requested. */
.dvtv-review-item{
  min-height:96px!important;
  padding-top:5px!important;
  padding-bottom:5px!important;
}
.dvtv-review-item .dvtv-thumb{width:112px!important;height:84px!important;max-width:112px!important}

@media(max-width:980px){
  .dvtv-history-row{
    grid-template-columns:96px minmax(0,1fr)!important;
    grid-template-areas:"hist-thumb hist-main" "hist-actions hist-actions"!important;
  }
  .dvtv-history-actions{grid-template-columns:1fr 1fr!important}
}
@media(max-width:620px){
  .dvtv-history-row{
    grid-template-columns:86px minmax(0,1fr)!important;
    grid-template-areas:"hist-thumb hist-main" "hist-actions hist-actions"!important;
  }
  .dvtv-history-preview{width:80px!important;height:60px!important;min-width:80px!important}
  .dvtv-history-row .dvtv-thumb{width:80px!important;height:60px!important;max-width:80px!important}
  .dvtv-history-actions{grid-template-columns:1fr!important}
}


/* ======================================================================
   v0.6.3 — explicit preview controls + tile/list browser switch
   ====================================================================== */
.dvtv-browser-switchbar{
  display:flex!important;align-items:stretch!important;justify-content:space-between!important;
  gap:10px!important;flex-wrap:wrap!important;margin-bottom:8px!important
}
.dvtv-browser-switchbar .dvtv-view-switch{margin:0!important;flex:1 1 420px!important}
.dvtv-layout-switch{
  display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;
  padding:8px 10px!important;border:1px solid #174c6b!important;border-radius:8px!important;
  background:linear-gradient(180deg,#071b2b,#061522)!important
}
.dvtv-layout-label{
  font:700 10px/1 ui-monospace,Consolas,monospace!important;letter-spacing:.13em!important;
  color:#5edfff!important;margin-right:3px!important;white-space:nowrap!important
}
.dvtv-layout-tab{
  min-width:104px!important;height:34px!important;min-height:34px!important;padding:4px 12px!important;
  border-color:#2b6d91!important;background:#082238!important;color:#d8f3ff!important;font-weight:800!important
}
.dvtv-layout-tab.is-active{
  background:linear-gradient(180deg,#0e7b9e,#095674)!important;border-color:#59e7ff!important;color:#fff!important;
  box-shadow:0 0 15px rgba(44,214,255,.22)!important
}

/* Tile view remains the default. */
#dvtv-assets.dvtv-asset-tile-mode{display:grid!important}

/* List view: large thumbnail at left, text and controls in one dense row. */
#dvtv-assets.dvtv-asset-list-mode{
  display:flex!important;flex-direction:column!important;gap:7px!important
}
#dvtv-assets.dvtv-asset-list-mode .dvtv-asset-card{
  display:grid!important;grid-template-columns:160px minmax(0,1fr)!important;align-items:stretch!important;
  min-height:126px!important;overflow:hidden!important;border-radius:8px!important;transform:none!important
}
#dvtv-assets.dvtv-asset-list-mode .dvtv-asset-image{
  height:126px!important;min-height:126px!important;border-bottom:0!important;border-right:1px solid #123a55!important
}
#dvtv-assets.dvtv-asset-list-mode .dvtv-asset-body{
  display:grid!important;grid-template-columns:minmax(220px,.9fr) minmax(260px,1.3fr) 210px!important;
  grid-template-areas:"asset-title asset-summary asset-foot" "asset-meta asset-summary asset-foot"!important;
  gap:5px 12px!important;align-items:center!important;padding:9px 12px!important;min-width:0!important
}
#dvtv-assets.dvtv-asset-list-mode .dvtv-asset-body h3{
  grid-area:asset-title!important;min-height:0!important;margin:0!important;font-size:14px!important;
  display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
#dvtv-assets.dvtv-asset-list-mode .dvtv-asset-meta{grid-area:asset-meta!important;align-self:start!important}
#dvtv-assets.dvtv-asset-list-mode .dvtv-asset-body p{
  grid-area:asset-summary!important;height:auto!important;max-height:54px!important;margin:0!important;
  -webkit-line-clamp:3!important;font-size:11px!important;line-height:1.5!important
}
#dvtv-assets.dvtv-asset-list-mode .dvtv-asset-foot{
  grid-area:asset-foot!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:center!important;margin:0!important;padding:0!important;border-top:0!important;gap:7px!important
}
#dvtv-assets.dvtv-asset-list-mode .dvtv-asset-foot>span{text-align:right!important}
#dvtv-assets.dvtv-asset-list-mode .dvtv-asset-foot .button{width:100%!important;text-align:center!important}

/* Preview toolbar: never show cryptic blank/symbol-only buttons. */
.dvtv-preview-controls{
  display:flex!important;align-items:center!important;gap:6px!important;max-width:none!important;overflow-x:auto!important;
  scrollbar-width:thin!important;padding-bottom:1px!important
}
.dvtv-preview-controls .dvtv-preview-tool{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;
  min-width:82px!important;height:38px!important;min-height:38px!important;padding:6px 11px!important;
  border:1px solid #3d7fa7!important;background:linear-gradient(180deg,#0a2c45,#071d31)!important;
  color:#f2fbff!important;font-size:12px!important;font-weight:800!important;line-height:1!important;
  text-shadow:none!important;opacity:1!important
}
.dvtv-preview-controls .dvtv-preview-reset{min-width:96px!important}
.dvtv-preview-controls .dvtv-preview-save{min-width:106px!important;border-color:#2ca9c9!important}
.dvtv-preview-controls .dvtv-preview-close{min-width:92px!important;border-color:#5e8fad!important}
.dvtv-preview-controls .dvtv-preview-tool:hover{color:#fff!important;border-color:#62e5ff!important;background:#0d3a58!important}

@media(max-width:1050px){
  #dvtv-assets.dvtv-asset-list-mode .dvtv-asset-body{
    grid-template-columns:minmax(180px,.8fr) minmax(220px,1.2fr)!important;
    grid-template-areas:"asset-title asset-foot" "asset-meta asset-foot" "asset-summary asset-summary"!important
  }
}
@media(max-width:700px){
  .dvtv-layout-switch{width:100%!important;box-sizing:border-box!important}.dvtv-layout-tab{flex:1 1 0!important}
  #dvtv-assets.dvtv-asset-list-mode .dvtv-asset-card{grid-template-columns:120px minmax(0,1fr)!important}
  #dvtv-assets.dvtv-asset-list-mode .dvtv-asset-image{height:110px!important;min-height:110px!important}
  #dvtv-assets.dvtv-asset-list-mode .dvtv-asset-body{display:block!important;padding:8px 9px!important}
  #dvtv-assets.dvtv-asset-list-mode .dvtv-asset-body p{margin:5px 0!important}.dvtv-preview-controls .dvtv-preview-tool{min-width:78px!important}
}

/* v0.7.0 領収書台帳連携 */
.dvtv-ka .dvtv-receipt-linkbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 16px;padding:12px 14px;border:1px solid rgba(56,189,248,.34);border-radius:14px;background:linear-gradient(135deg,rgba(7,30,49,.92),rgba(10,47,66,.72));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.dvtv-ka .dvtv-receipt-linkbar>div{display:flex;align-items:center;gap:10px;flex:1;min-width:260px}.dvtv-ka .dvtv-receipt-linkbar b{color:#e7f8ff;font-size:14px}.dvtv-ka .dvtv-receipt-linkbar span{color:#7dd3fc;font-size:12px}.dvtv-ka .dvtv-receipt-linkbar small{color:#7593a7;font-size:11px}
.dvtv-ka #dvtv-receipt-sync-msg{min-width:180px;color:#9ee8ff;font-size:12px;font-weight:700}
.dvtv-ka .dvtv-receipt-linked,.dvtv-ka .dvtv-receipt-pending,.dvtv-ka .dvtv-receipt-error{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin:7px 0 0;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.2}
.dvtv-ka .dvtv-receipt-linked{color:#a7f3d0;background:rgba(5,150,105,.16);border:1px solid rgba(16,185,129,.48)}
.dvtv-ka .dvtv-receipt-pending{color:#fde68a;background:rgba(180,83,9,.14);border:1px solid rgba(245,158,11,.42)}
.dvtv-ka .dvtv-receipt-error{color:#fecaca;background:rgba(185,28,28,.18);border:1px solid rgba(239,68,68,.58)}
.dvtv-ka .dvtv-asset-foot-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.dvtv-ka .dvtv-receipt-open{border-color:#10b981!important;color:#bbf7d0!important}
@media(max-width:760px){.dvtv-ka .dvtv-receipt-linkbar{align-items:stretch}.dvtv-ka .dvtv-receipt-linkbar>div{min-width:100%;display:grid;grid-template-columns:1fr}.dvtv-ka #dvtv-receipt-sync-msg{min-width:0}}


/* v0.7.1 画像解析AI: 総対象 / 処理済み / 残り / 進捗率 */
.dvtv-ka .dvtv-progress-panel{margin:0 0 10px;padding:11px 12px 10px;border:1px solid rgba(40,215,255,.34);border-radius:9px;background:linear-gradient(135deg,rgba(7,29,46,.96),rgba(6,20,33,.96));box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 0 18px rgba(40,215,255,.045)}
.dvtv-ka .dvtv-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.dvtv-ka .dvtv-progress-head>div{display:flex;align-items:baseline;gap:9px;min-width:0}.dvtv-ka .dvtv-progress-kicker{color:#42ddff;font:800 9px/1 ui-monospace,Consolas,monospace;letter-spacing:.12em}.dvtv-ka .dvtv-progress-head strong{color:#e9f8ff;font-size:13px}.dvtv-ka .dvtv-progress-auto{color:#7299b2;font:10px/1.2 ui-monospace,Consolas,monospace;white-space:nowrap}
.dvtv-ka .dvtv-progress-counts{display:grid;grid-template-columns:repeat(4,minmax(105px,1fr));gap:7px}.dvtv-ka .dvtv-progress-counts>div{display:grid;grid-template-columns:1fr auto auto;align-items:end;gap:4px;padding:7px 9px;border:1px solid #123c58;border-radius:7px;background:rgba(8,27,43,.92)}.dvtv-ka .dvtv-progress-counts span{grid-column:1/-1;color:#779bb2;font-size:10px;font-weight:700}.dvtv-ka .dvtv-progress-counts strong{color:#f0fbff;font:800 21px/1 ui-monospace,Consolas,monospace}.dvtv-ka .dvtv-progress-counts em{padding-bottom:1px;color:#7399af;font:normal 10px/1 ui-monospace,Consolas,monospace}.dvtv-ka .dvtv-progress-counts .is-processed{border-color:rgba(16,185,129,.42)}.dvtv-ka .dvtv-progress-counts .is-processed strong{color:#9ff5d0}.dvtv-ka .dvtv-progress-counts .is-remaining{border-color:rgba(251,146,60,.52);box-shadow:inset 0 0 14px rgba(251,146,60,.035)}.dvtv-ka .dvtv-progress-counts .is-remaining strong{color:#ffb36b}.dvtv-ka .dvtv-progress-counts .is-percent strong{color:#7de9ff}
.dvtv-ka .dvtv-progress-track{height:7px;margin-top:8px;overflow:hidden;border:1px solid #164761;border-radius:999px;background:#04111c}.dvtv-ka .dvtv-progress-track i{display:block;height:100%;min-width:0;border-radius:999px;background:linear-gradient(90deg,#0f8aaa,#32d8ff);box-shadow:0 0 10px rgba(50,216,255,.4);transition:width .35s ease}.dvtv-ka .dvtv-progress-note{margin-top:6px;color:#f0bb76;font-size:10px}.dvtv-ka .dvtv-stats-error{padding:8px 10px;border:1px solid rgba(239,68,68,.55);border-radius:7px;background:rgba(127,29,29,.16);color:#fecaca;font-weight:700}
@media(max-width:760px){.dvtv-ka .dvtv-progress-head{align-items:flex-start}.dvtv-ka .dvtv-progress-head>div{display:grid;gap:3px}.dvtv-ka .dvtv-progress-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.dvtv-ka .dvtv-progress-counts strong{font-size:18px}}

.dvtv-ka .dvtv-progress-basis{display:inline-flex;align-items:center;padding:2px 6px;border:1px solid #24526a;border-radius:999px;background:#071b29;color:#8acfe9;font:800 9px/1.2 ui-monospace,Consolas,monospace;white-space:nowrap}


/* v0.7.5: 画像解析AIの実時間進捗 */
.dvtv-ka .dvtv-progress-breakdown{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:10px;padding-top:10px;border-top:1px dashed rgba(56,189,248,.28);font-size:12px;color:#9dc5d9}
.dvtv-ka .dvtv-progress-breakdown span{white-space:nowrap}
.dvtv-ka .dvtv-progress-status{margin-top:7px;color:#9dc5d9;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.dvtv-ka .dvtv-progress-note{font-size:12px;line-height:1.5}
.dvtv-ka .dvtv-progress-breakdown b{margin-left:4px;color:#e9f8ff;font-size:13px}
.dvtv-ka .dvtv-progress-current{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px 10px;border:1px solid rgba(56,189,248,.2);border-radius:8px;background:rgba(2,18,32,.42);min-width:0}
.dvtv-ka .dvtv-progress-current span{flex:0 0 auto;color:#7dd3fc;font-size:11px;font-weight:800;letter-spacing:.08em}
.dvtv-ka .dvtv-progress-current b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:12px}

/* v0.7.6: 全画像集計詳細 */
.dvtv-ka .dvtv-media-summary{margin:10px 0 12px;padding:11px 12px;border:1px solid #155273;border-radius:10px;background:linear-gradient(180deg,rgba(6,24,38,.98),rgba(4,16,27,.98));box-shadow:inset 0 0 24px rgba(20,136,180,.05);color:#dff6ff}
.dvtv-ka .dvtv-media-summary.is-refreshing{opacity:.72}
.dvtv-ka .dvtv-media-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;padding-bottom:8px;border-bottom:1px solid #153f5b}
.dvtv-ka .dvtv-media-head>div{display:flex;align-items:baseline;gap:9px;min-width:0}
.dvtv-ka .dvtv-media-head span{color:#43dfff;font:800 9px/1 ui-monospace,Consolas,monospace;letter-spacing:.14em}
.dvtv-ka .dvtv-media-head strong{color:#f2fbff;font-size:16px;line-height:1.2}
.dvtv-ka .dvtv-media-head em{color:#6f9db8;font-size:10px;font-style:normal}
.dvtv-ka .dvtv-media-head .button{min-height:30px!important;height:30px!important;padding:3px 10px!important;font-size:11px!important}
.dvtv-ka .dvtv-media-cards{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:7px;margin-bottom:9px}
.dvtv-ka .dvtv-media-card{display:grid;grid-template-columns:1fr auto;align-items:end;gap:2px 8px;padding:8px 10px;border:1px solid #123d59;border-radius:7px;background:#081b2b}
.dvtv-ka .dvtv-media-card>span{grid-column:1/-1;color:#789eb7;font-size:10px;font-weight:700}
.dvtv-ka .dvtv-media-card>strong{color:#ecfbff;font:800 20px/1.05 ui-monospace,Consolas,monospace;white-space:nowrap}
.dvtv-ka .dvtv-media-card>strong small{margin-left:3px;color:#799ab0;font-size:10px;font-weight:700}
.dvtv-ka .dvtv-media-card>b{color:#8fdfff;font:700 11px/1.1 ui-monospace,Consolas,monospace;white-space:nowrap}
.dvtv-ka .dvtv-media-card.is-image{border-color:rgba(34,211,238,.42)}
.dvtv-ka .dvtv-media-card.is-video{border-color:rgba(167,139,250,.42)}
.dvtv-ka .dvtv-media-card.is-total{border-color:rgba(16,185,129,.42)}
.dvtv-ka .dvtv-media-card.is-rag{border-color:rgba(251,191,36,.42)}
.dvtv-ka .dvtv-media-table-wrap{overflow-x:auto;border:1px solid #123b55;border-radius:7px}
.dvtv-ka .dvtv-media-table{width:100%;min-width:800px;border-collapse:collapse;background:#051522;color:#d8edf8;font-size:11px}
.dvtv-ka .dvtv-media-table th,.dvtv-ka .dvtv-media-table td{padding:6px 8px;border-bottom:1px solid #102f45;text-align:right;white-space:nowrap}
.dvtv-ka .dvtv-media-table thead th{background:#092138;color:#78bad7;font-size:10px;font-weight:800}
.dvtv-ka .dvtv-media-table th:first-child,.dvtv-ka .dvtv-media-table td:first-child{text-align:left}
.dvtv-ka .dvtv-media-table tbody th{color:#9edfff;font-weight:800}
.dvtv-ka .dvtv-media-table tbody tr.is-total{background:rgba(15,112,143,.11)}
.dvtv-ka .dvtv-media-table tbody tr.is-total th,.dvtv-ka .dvtv-media-table tbody tr.is-total td{color:#f3fcff;font-weight:800}
.dvtv-ka .dvtv-media-table tbody tr:last-child th,.dvtv-ka .dvtv-media-table tbody tr:last-child td{border-bottom:0}
.dvtv-ka .dvtv-media-note,.dvtv-ka .dvtv-media-foot{margin-top:6px;color:#789eb4;font-size:10px}
.dvtv-ka .dvtv-media-note b{color:#ffc477}
.dvtv-ka .dvtv-media-loading,.dvtv-ka .dvtv-media-error{padding:8px 10px;color:#9edfff;font-size:11px}
.dvtv-ka .dvtv-media-error{color:#fecaca}
.dvtv-ka .dvtv-media-error .button{margin-left:10px}
@media(max-width:900px){.dvtv-ka .dvtv-media-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dvtv-ka .dvtv-media-head>div{display:grid;gap:3px}}
@media(max-width:520px){.dvtv-ka .dvtv-media-cards{grid-template-columns:1fr}}

/* GPU control: follows the existing dark cyan dashboard. */
.dvtv-ka .dvtv-gpu-panel{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;padding:14px 18px;margin:12px 0;border:1px solid #27617c;border-left:3px solid #45d8ff;border-radius:12px;background:#091b28;color:#d9f3ff}
.dvtv-ka .dvtv-gpu-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.dvtv-ka .dvtv-gpu-name{font-size:12px;color:#90b5c9}
.dvtv-ka .dvtv-gpu-controls{display:flex;gap:8px;flex-wrap:wrap}
.dvtv-ka .dvtv-gpu-mode{min-width:90px;min-height:38px;border:1px solid #296685;border-radius:8px;background:#102839;color:#d9f3ff;font-weight:700}
.dvtv-ka .dvtv-gpu-mode.is-active{background:#225f99!important;border-color:#73c7ff!important;color:#fff!important;box-shadow:0 0 0 1px #73c7ff inset!important}
.dvtv-ka .dvtv-gpu-mode:disabled{opacity:.55;cursor:wait}
.dvtv-ka .dvtv-gpu-values{display:flex;gap:8px;flex-wrap:wrap;font-size:13px}
.dvtv-ka .dvtv-gpu-values b{color:#71e5ff;font-size:17px;font-variant-numeric:tabular-nums}
.dvtv-ka .dvtv-gpu-values span{margin-left:10px}
.dvtv-ka .dvtv-gpu-message{flex-basis:100%;margin:0;font-size:12px;color:#9ac1d6}
.dvtv-ka .dvtv-gpu-mode:focus-visible{outline:2px solid #90dfff;outline-offset:3px}
@media(max-width:600px){.dvtv-ka .dvtv-gpu-panel{gap:10px;padding:12px}.dvtv-ka .dvtv-gpu-controls{width:100%}.dvtv-ka .dvtv-gpu-mode{flex:1}}
