.di-section { margin:30px 0 38px; color:#172d3c; }
.di-section h2 { font-size:23px; margin:0 0 8px; }
.di-section p { font-size:13px; line-height:1.8; color:#516574; }
.di-tabs,.di-tools,.di-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.di-tabs { margin:18px 0 12px; }
.di-section button,.di-section select { min-height:44px; padding:9px 14px; border:1px solid #cbd8e1; border-radius:7px; background:#fff; color:#274a60; font:inherit; font-size:13px; }
.di-section button { cursor:pointer; }
.di-section button:hover:enabled { background:#edf3f6; }
.di-section button[aria-pressed="true"] { background:#173e54; border-color:#173e54; color:#fff; }
.di-section button:disabled { opacity:.5; cursor:default; }
.di-section :is(button,select,a,input):focus-visible { outline:3px solid #19789d; outline-offset:3px; }
.di-viewer { position:relative; height:clamp(380px,65vh,650px); background:#e1e7eb; border:1px solid #ccd9e1; border-radius:12px; overflow:hidden; }
.di-poster,.di-canvas { position:absolute; inset:0; width:100%; height:100%; }
.di-poster { object-fit:contain; }
.di-canvas canvas { display:block; width:100%; height:100%; touch-action:pan-y; outline-offset:-4px; }
.di-viewer:not([data-state="ready"]) .di-canvas { visibility:hidden; }
.di-viewer[data-state="ready"] .di-poster { visibility:hidden; }
.di-state { position:absolute; top:16px; left:16px; right:16px; display:flex; gap:12px; align-items:center; justify-content:space-between; background:#fffffff2; border-radius:8px; padding:10px 14px; font-size:13px; }
.di-state[hidden] { display:none; }
.di-tools { padding:12px 0; }
.di-progress { display:flex; gap:12px; align-items:center; flex:1; min-width:180px; font-size:13px; }
.di-progress[hidden] { display:none; }
.di-progress input { width:100%; min-width:60px; min-height:44px; accent-color:#19789d; }
.di-progress span { white-space:nowrap; }
.di-note { background:#eef2f5; border-left:3px solid #b58a4d; padding:11px 14px; margin:10px 0 16px; }
.di-summary { display:flex; justify-content:space-between; gap:14px; align-items:center; flex-wrap:wrap; font-size:13px; line-height:1.8; }
.di-summary a,.di-section a { color:#17658a; text-underline-offset:3px; }
.di-details { background:#fff; border:1px solid #d9e2e8; border-radius:10px; padding:16px; margin:16px 0; }
.di-details>summary { min-height:44px; cursor:pointer; font-size:15px; font-weight:600; display:list-item; align-content:center; }
.di-filters { margin:10px 0; align-items:end; }
.di-filters label { display:grid; gap:5px; font-size:13px; min-width:180px; }
.di-count { margin:10px 0; }
.di-table-wrap { max-height:380px; overflow:auto; border:1px solid #d9e2e8; border-radius:6px; }
.di-table-wrap table { border-collapse:collapse; width:100%; text-align:left; font-size:12px; }
.di-table-wrap th,.di-table-wrap td { padding:10px 12px; border-bottom:1px solid #e3e9ee; min-width:100px; overflow-wrap:anywhere; }
.di-table-wrap th { position:sticky; top:0; background:#eef3f6; white-space:nowrap; }
.di-table-wrap .empty { padding:24px; text-align:center; color:#576c7a; }
.di-video { display:block; width:100%; max-height:600px; margin:12px 0; aspect-ratio:3/2; background:#e1e7eb; }
.di-section [hidden] { display:none!important; }
.dc-viewer { height:clamp(480px,75vh,760px); }
.dc-view-label { flex-direction:column; align-items:start; gap:6px; background:#fffffff2; border:1px solid #d5e0e7; border-radius:9px; padding:12px 16px; max-width:390px; font-size:12px; }
.dc-view-label b { font-size:17px; color:#244354; }
.dc-actions { position:absolute; top:18px; right:18px; display:flex; gap:8px; }
.dc-enter { position:absolute; transform:translate(-50%,-50%); background:#145b7b!important; color:#fff!important; box-shadow:0 4px 18px #24415433; }
.dc-enter::before { content:''; position:absolute; top:-18px; left:calc(50% - 5px); border:3px solid #54b5d9; width:10px; height:10px; background:#fff; border-radius:50%; }
.dc-route { position:absolute; bottom:16px; left:18px; right:18px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; background:#fffffff2; border:1px solid #d5e0e7; padding:14px 16px; border-radius:8px; font-size:12px; color:#35566b; pointer-events:none; }
.dc-view-tools { bottom:82px; }
#dc-gesture { font-size:11px; color:#647c8b; }
.dc-panel { position:absolute; top:12px; right:12px; bottom:12px; width:min(520px,calc(100% - 24px)); background:#fcfdfff7; border:1px solid #c9d9e3; border-radius:10px; padding:16px; overflow:auto; z-index:5; box-shadow:-8px 4px 24px #1839471a; }
.dc-panel h2 { margin-top:15px; }
.dc-panel #dc-panel-close { float:right; }
.di-tools>label:not(.di-progress) { display:flex; align-items:center; gap:8px; font-size:12px; }
.dc-load { z-index:6; }
.dc-viewer .dc-canvas canvas { touch-action:none; }
.dc-caption { flex-wrap:wrap; }
@media(prefers-reduced-motion:reduce) { .dc-poster,.dc-canvas { transition:none; } }
@media(max-width:760px) {
  .di-section h2 { font-size:20px; }
  .di-tabs button { flex:1 1 28%; padding:8px; }
  .di-viewer { height:380px; }
  .di-tools button { flex:1 1 28%; padding:8px; }
  .di-progress { flex-basis:100%; }
  .di-state { left:10px; right:10px; padding:9px; font-size:12px; }
  .di-filters label { flex:1; min-width:0; }
  .di-filters select { width:100%; padding:9px 6px; }
  .di-details { padding:12px; }
  .dc-viewer { height:540px; }
  .dc-actions { top:10px; left:10px; right:10px; justify-content:space-between; gap:4px; }
  .dc-actions button { padding:8px; font-size:12px; }
  .dc-view-label { top:70px; left:10px; right:10px; max-width:none; padding:10px; }
  .dc-view-label b { font-size:15px; }
  .dc-route { left:10px; right:10px; bottom:10px; padding:10px; }
  .dc-view-tools { bottom:92px; }
  .dc-panel { padding:12px; }
  .di-tools>label:not(.di-progress) { flex:1 1 100%; }
  .di-tools>label select { flex:1; min-width:0; }
}
.dc-component-help { font-size:13px; line-height:1.7; color:#526275; margin:12px 0 18px; }
.dc-component-tag { position:absolute; left:16px; top:92px; max-width:calc(100% - 32px); padding:6px 10px; border:1px solid #8aa9d7; border-radius:7px; background:#f4f8ff; color:#174786; font-size:12px; pointer-events:none; }
.dc-component-tag[hidden] { display:none; }
[data-dc-component] { font:inherit; color:inherit; cursor:pointer; min-height:44px; }
[data-dc-component]:focus-visible,.dc-component-info :focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
[data-dc-component]:hover { background:#f0f5ff; }
[data-dc-component][aria-pressed="true"] { background:#e7f0ff; box-shadow:0 0 0 2px #2563eb; }
[data-dc-component]:disabled { cursor:wait; opacity:.65; }
.dc-component-badge { display:block; font-size:11px; line-height:1.6; color:#4c617d; margin-top:4px; }
.card [data-dc-component] { width:100%; padding:7px 8px; border:1px solid #dbe3ee; background:#fff; border-radius:6px; text-align:left; margin:4px 0; }
.card .dc-component-badge { display:inline-block; margin:0 0 0 8px; }
.dc-component-info { margin:16px 0; padding:16px; border:1px solid #b5ccec; border-radius:12px; background:#f4f8ff; scroll-margin:16px; }
.dc-component-info[hidden] { display:none; }
.dc-component-info h2 { font-size:17px; margin:0 0 8px; }
.dc-component-info p { font-size:13px; line-height:1.7; margin:6px 0; overflow-wrap:anywhere; }
.dc-component-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; align-items:center; }
.dc-component-actions label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:13px; }
.dc-component-actions [hidden] { display:none; }
.dc-component-actions button,.dc-component-actions select { min-height:44px; max-width:100%; padding:8px 12px; border:1px solid #b8c7db; border-radius:8px; background:#fff; color:#23486e; font:inherit; cursor:pointer; }
.dc-trip { padding:16px; margin-bottom:16px; background:#f5f9fb; border:1px solid #cbdbe6; border-radius:12px; }
.dc-trip-heading,.dc-trip-controls { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.dc-trip-heading { margin-bottom:12px; }
.dc-trip-heading p { flex:1 1 300px; margin:0; }
.dc-trip-controls label { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:13px; min-width:0; }
.dc-trip-controls select { max-width:100%; }
.dc-trip-controls span { color:#526e81; font-size:12px; }
.dc-trip .dc-trip-note { margin:10px 0 0; font-size:12px; color:#5c6e7b; }
.dc-trip-heading .dc-component-badge { display:inline; margin-left:8px; }
@media (max-width:760px) {
  .dc-trip { padding:12px; }
  .dc-trip-controls label { flex:1 1 100%; order:-1; }
  .dc-trip-controls select { flex:1; min-width:0; }
  .dc-component-tag { top:158px; left:10px; max-width:calc(100% - 20px); }
}
