/* KYRON HTM 0.4.0 — iPad workspace layout. Loaded after style.css; uses its tokens (colours, radius, --tap).
   Touch targets are at least 44px; works in iPad portrait (820 wide) and landscape (1180 wide). */
.dv-body{padding-bottom:env(safe-area-inset-bottom)}
.dv-main{max-width:1000px;margin:0 auto;padding:20px 16px 120px}
.dv-tabs{display:flex;gap:6px;flex:1;overflow-x:auto;scrollbar-width:none}
.dv-tab{font:inherit;font-weight:600;font-size:16px;color:#dce8f1;background:transparent;border:0;border-radius:var(--radius-sm,8px);min-height:44px;padding:0 16px;cursor:pointer;white-space:nowrap}
.dv-tab:hover{background:var(--navy-2,#0b3d63);color:#fff}
.dv-tab[aria-current=page]{background:#fff;color:var(--navy,#042e50)}
.dv-account{gap:8px}.dv-who{color:#dce8f1;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.dv-light{color:#fff!important;border-color:transparent!important}.dv-light:hover{background:var(--navy-2,#0b3d63)!important}
.dv-signin-btn{min-height:44px}
.dv-stack{display:grid;gap:16px}
.dv-head h1{font-size:28px}.dv-head p{margin-top:4px}
.dv-section-title{font-size:19px;margin-top:4px}
.dv-list{display:grid;gap:10px}
.dv-card{display:grid;gap:8px;padding:16px 18px}
.dv-card[data-state=unsaved],.dv-card[data-state=checking]{border-color:var(--teal,#0e6f71);box-shadow:0 0 0 1px var(--teal,#0e6f71)}
.dv-row{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;background:var(--card,#fff);border:1px solid var(--line,#d3dde4);border-radius:var(--radius,12px);padding:14px 16px;min-height:64px}
.dv-row input[type=checkbox],.dv-pick input[type=checkbox]{width:28px;height:28px;margin:0;accent-color:var(--teal,#0e6f71);cursor:pointer}
.dv-row input[type=checkbox]:disabled{opacity:.35;cursor:not-allowed}
.dv-pick{cursor:pointer;grid-template-columns:auto 1fr}
.dv-send-row:has(input[type=checkbox]:checked){border-color:var(--teal,#0e6f71);box-shadow:0 0 0 1px var(--teal,#0e6f71)}
.dv-row-main{display:grid;gap:4px;min-width:0}
.dv-row-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dv-row-title h3,.dv-name,.dv-row-title strong{font-size:18px;font-weight:700;color:var(--navy,#042e50)}
.dv-name{cursor:pointer}
.dv-detail{font-size:14px;color:var(--muted,#5a6b79);margin:0}
.dv-state-detail{color:var(--ink-2,#3d4f5f)}
.dv-side{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center;max-width:340px}
.dv-single{font-weight:600;color:var(--teal-dark,#0a5557);border:1px solid var(--teal,#0e6f71);border-radius:var(--radius-sm,8px);min-height:44px;padding:10px 14px;display:inline-flex;align-items:center;cursor:pointer}
.dv-choice{display:inline-flex;border:1px solid var(--teal,#0e6f71);border-radius:var(--radius-sm,8px);overflow:hidden}
.dv-choice input{position:absolute;opacity:0;width:1px;height:1px}
.dv-choice label{min-height:44px;padding:10px 14px;display:inline-flex;align-items:center;font-weight:600;color:var(--teal-dark,#0a5557);cursor:pointer;background:#fff;white-space:nowrap}
.dv-choice label+input+label{border-left:1px solid var(--teal,#0e6f71)}
.dv-choice input:checked+label{background:var(--teal,#0e6f71);color:#fff}
.dv-choice input:focus-visible+label{outline:3px solid var(--focus,#c97a00);outline-offset:-3px}
.dv-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:4px}
.dv-actions .btn,.dv-side .btn{min-height:44px}
.dv-open{font-weight:700}
.dv-retention{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dv-retention:empty{display:none}
.dv-result{font-size:14px;font-weight:600;margin:4px 0 0;padding:6px 10px;border-radius:var(--radius-sm,8px);border-left:4px solid}
.dv-good{background:var(--green-bg,#e5f4ea);color:var(--green,#1d6b3a);border-color:var(--green,#1d6b3a)}
.dv-warn{background:var(--amber-bg,#fff4dc);color:var(--amber,#8a5300);border-color:var(--amber,#8a5300)}
.dv-bad{background:var(--red-bg,#fdecea);color:var(--red,#b42318);border-color:var(--red,#b42318)}
.dv-info{background:var(--info-bg,#e6f0f8);color:var(--info,#0b4f80);border-color:var(--info,#0b4f80)}
.dv-legacy-status{font-weight:600;padding:1px 6px;border-radius:6px}
.dv-bar{position:sticky;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card,#fff);border:1px solid var(--line,#d3dde4);border-radius:var(--radius,12px);padding:12px 16px;box-shadow:0 6px 20px rgba(4,46,80,.12);z-index:5}
.dv-bar-text{font-weight:600}
.dv-bar .btn{min-width:120px}
.dv-inline-bar{display:flex;justify-content:flex-end}
.dv-legacy{border-color:var(--amber,#8a5300);margin-bottom:16px}
.dv-legacy-list{display:grid;gap:8px;padding-left:20px;margin:0}
.dv-legacy-list li{line-height:1.5}
.dv-legacy-list .btn{margin-left:8px;min-height:44px}
.dv-facts{margin:0 0 12px;padding-left:20px}
.dv-signin form{display:grid;gap:12px}
.dv-signin input{min-height:44px}
#legacy:empty{display:none}
@media(max-width:820px){.appbar-inner{flex-wrap:wrap}.dv-tabs{order:3;flex-basis:100%}.dv-who{max-width:160px}}
@media(max-width:700px){.dv-row{grid-template-columns:auto 1fr}.dv-side{grid-column:2;justify-content:flex-start;max-width:none}}
@media print{.dv-bar,.dv-tabs{display:none}}

/* Match the device workspace padding; portal footer gutters are 20px. */
.dv-main .section-foot{margin-left:-16px;margin-right:-16px}
