.dive-day-view { display:grid; gap:18px; padding:38px 0 30px; }
.dive-day-view[hidden],.dive-day-loading[hidden],#dive_day_content[hidden] { display:none; }
#dive_day_content { display:grid; gap:18px; min-width:0; }
.dive-day-loading,.dive-day-state { min-height:420px; display:grid; place-items:center; padding:28px; border:1px solid rgba(148,163,184,.2); border-radius:20px; background:rgba(15,25,43,.72); color:#9fb0c5; text-align:center; }
.dive-day-state-card { width:min(480px,100%); }
.dive-day-state h1 { margin:0 0 10px; font-size:32px; }
.dive-day-state p { margin:0 0 18px; color:#9fb0c5; line-height:1.6; }
.dive-day-state button,.dive-day-state a { min-height:44px; padding:11px 16px; border:0; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; background:#2563eb; color:#fff; font-weight:800; text-decoration:none; cursor:pointer; }
.dive-day-hero { position:relative; overflow:hidden; padding:28px; border:1px solid rgba(59,130,246,.38); border-radius:22px; background:linear-gradient(135deg,rgba(29,78,216,.22),rgba(8,47,73,.35)); }
.dive-day-hero::after { content:""; position:absolute; width:260px; height:260px; right:-100px; top:-130px; border-radius:50%; background:radial-gradient(circle,rgba(56,189,248,.22),transparent 70%); pointer-events:none; }
.dive-day-eyebrow { display:block; margin-bottom:7px; color:#7dd3fc; font-size:11px; font-weight:850; letter-spacing:1.1px; text-transform:uppercase; }
.dive-day-hero-row { position:relative; z-index:1; display:flex; align-items:flex-end; justify-content:space-between; gap:22px; }
.dive-day-hero h1 { margin:0; font-size:clamp(34px,5vw,54px); letter-spacing:-1.7px; }
.dive-day-hero p { max-width:680px; margin:10px 0 0; color:#b6c4d7; font-size:15px; line-height:1.55; }
.dive-day-hero-actions,.dive-day-actions { display:flex; flex-wrap:wrap; gap:9px; }
.dive-day-action { min-height:42px; padding:10px 14px; border:1px solid rgba(148,163,184,.28); border-radius:10px; display:inline-flex; align-items:center; justify-content:center; gap:7px; background:rgba(15,23,42,.55); color:#dbeafe; font-size:12px; font-weight:800; text-decoration:none; cursor:pointer; }
.dive-day-action:hover { border-color:#60a5fa; color:#fff; }
.dive-day-action.primary { border-color:#2563eb; background:#2563eb; color:#fff; }
.dive-day-action.danger { border-color:rgba(248,113,113,.34); color:#fecaca; }
.dive-day-status-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:22px; }
.dive-day-status-strip span { padding:11px 12px; border:1px solid rgba(148,163,184,.17); border-radius:11px; display:grid; gap:3px; background:rgba(2,6,23,.25); color:#91a4bc; font-size:10px; font-weight:750; text-transform:uppercase; }
.dive-day-status-strip strong { overflow:hidden; color:#f1f5f9; font-size:13px; text-overflow:ellipsis; white-space:nowrap; text-transform:none; }
.dive-day-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr); align-items:start; gap:18px; }
.dive-day-stack { display:grid; gap:18px; }
.dive-day-card { padding:21px; border:1px solid rgba(148,163,184,.2); border-radius:18px; background:rgba(24,35,54,.84); box-shadow:0 16px 40px rgba(2,6,23,.16); }
.dive-day-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:16px; }
.dive-day-card h2 { margin:0; color:#f8fafc; font-size:19px; letter-spacing:-.3px; }
.dive-day-card-head p,.dive-day-muted { margin:4px 0 0; color:#91a4bc; font-size:12px; line-height:1.5; }
.dive-day-progress { flex:0 0 auto; padding:6px 10px; border-radius:999px; background:rgba(37,99,235,.18); color:#bfdbfe; font-size:11px; font-weight:800; }
.dive-day-progress.complete { background:rgba(16,185,129,.15); color:#a7f3d0; }
.dive-day-checklist { display:grid; gap:8px; }
.dive-day-check { min-height:48px; padding:10px 12px; border:1px solid rgba(148,163,184,.17); border-radius:11px; display:flex; align-items:center; gap:11px; background:rgba(15,23,42,.38); color:#d9e4f2; font-size:13px; font-weight:700; cursor:pointer; }
.dive-day-check:has(input:checked) { border-color:rgba(52,211,153,.36); background:rgba(16,185,129,.09); color:#d1fae5; }
.dive-day-check input,.dive-day-gear-item input { appearance:none; width:20px!important; min-width:20px!important; max-width:20px!important; height:20px!important; min-height:20px!important; margin:0!important; padding:0!important; flex:0 0 20px; border:2px solid #40536b; border-radius:50%; display:grid; place-items:center; background:#101b2c; cursor:pointer; transition:border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.dive-day-check input::after,.dive-day-gear-item input::after { content:""; width:5px; height:9px; margin-top:-2px; border:solid #fff; border-width:0 2px 2px 0; opacity:0; transform:rotate(45deg) scale(.6); transition:opacity .16s ease,transform .16s ease; }
.dive-day-check input:checked,.dive-day-gear-item input:checked { border-color:#34d399; background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,.14); }
.dive-day-check input:checked::after,.dive-day-gear-item input:checked::after { opacity:1; transform:rotate(45deg) scale(1); }
.dive-day-check input:focus-visible,.dive-day-gear-item input:focus-visible { outline:3px solid rgba(96,165,250,.68); outline-offset:3px; }
.dive-day-gear-block { margin-top:14px; padding-top:14px; border-top:1px solid rgba(148,163,184,.14); }
.dive-day-gear-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:9px; }
.dive-day-gear-head strong { color:#dbeafe; font-size:11.5px; }
.dive-day-gear-head span { color:#7dd3fc; font-size:9.5px; font-weight:800; }
.dive-day-gear-list { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.dive-day-gear-item { min-height:38px; padding:8px 9px; border:1px solid rgba(148,163,184,.14); border-radius:9px; display:flex; align-items:center; gap:8px; background:rgba(2,6,23,.2); color:#b9c8da; font-size:10.5px; font-weight:700; cursor:pointer; }
.dive-day-gear-item:has(input:checked) { border-color:rgba(52,211,153,.28); background:rgba(16,185,129,.07); color:#d1fae5; }
.dive-day-gear-item input { width:18px!important; min-width:18px!important; max-width:18px!important; height:18px!important; min-height:18px!important; flex-basis:18px; }
.dive-day-field { display:grid; gap:6px; margin-top:14px; color:#dbeafe; font-size:12px; font-weight:800; }
.dive-day-field small { color:#8195ad; font-size:10.5px; font-weight:500; }
.dive-day-field input,.dive-day-field textarea { width:100%; padding:11px 12px; border:1px solid rgba(148,163,184,.25); border-radius:10px; background:#0d1728; color:#f8fafc; font:inherit; font-size:13px; resize:vertical; }
.dive-day-field input:focus,.dive-day-field textarea:focus { border-color:#60a5fa; outline:3px solid rgba(96,165,250,.16); }
.dive-day-save-state { min-height:18px; margin-top:9px; color:#93c5fd; font-size:11px; }
.dive-day-conditions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.dive-day-condition { padding:12px; border:1px solid rgba(148,163,184,.16); border-radius:11px; background:rgba(15,23,42,.38); }
.dive-day-condition span { display:block; color:#8195ad; font-size:10px; font-weight:750; text-transform:uppercase; }
.dive-day-condition strong { display:block; margin-top:4px; color:#f1f5f9; font-size:14px; }
.dive-day-condition-note { grid-column:1/-1; padding:11px 12px; border-radius:10px; background:rgba(245,158,11,.08); color:#fde68a; font-size:11.5px; line-height:1.5; }
.dive-day-segments { display:grid; gap:10px; }
.dive-day-segment { padding:14px; border:1px solid rgba(148,163,184,.18); border-radius:12px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; background:rgba(15,23,42,.38); }
.dive-day-segment.complete { border-color:rgba(52,211,153,.3); }
.dive-day-segment h3 { margin:0 0 5px; font-size:14px; }
.dive-day-segment-meta { display:flex; flex-wrap:wrap; gap:6px; }
.dive-day-segment-meta span { padding:4px 7px; border-radius:7px; background:rgba(148,163,184,.1); color:#b9c8da; font-size:10.5px; }
.dive-day-complete-label { color:#86efac; font-size:11px; font-weight:850; }
.dive-day-date-row { display:grid; grid-template-columns:1fr auto; align-items:end; gap:9px; }
.dive-day-safety { padding:13px 14px; border:1px solid rgba(251,191,36,.28); border-radius:12px; background:rgba(245,158,11,.07); color:#fde68a; font-size:11.5px; line-height:1.55; }
.dive-day-gear-customize { margin-top:10px; border-top:1px solid rgba(148,163,184,.13); }
.dive-day-gear-customize summary { min-height:38px; padding:9px 2px 0; color:#93c5fd; font-size:11px; font-weight:800; list-style-position:inside; cursor:pointer; }
.dive-day-gear-customize>div { display:grid; gap:8px; padding-top:9px; }
#dive_day_gear_add_form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; }
#dive_day_gear_add_form input { min-width:0; min-height:40px; padding:9px 10px; border:1px solid rgba(148,163,184,.22); border-radius:9px; background:#0d1728; color:#f8fafc; font:inherit; font-size:12px; }
#dive_day_gear_add_form button,#dive_day_gear_defaults { min-height:38px; padding:8px 10px; border:1px solid rgba(96,165,250,.25); border-radius:9px; background:rgba(37,99,235,.08); color:#bfdbfe; font:800 11px Inter,sans-serif; cursor:pointer; }
#dive_day_gear_defaults { justify-self:start; }
#dive_day_gear_custom_status { min-height:15px; margin:0; color:#8195ad; font-size:11px; }
body.dive-day-mode .wrap > h1,body.dive-day-mode .wrap > .sub,body.dive-day-mode #dive_site_banner,body.dive-day-mode #main_grid,body.dive-day-mode .planner-v2-hero,body.dive-day-mode .planner-v2-dock { display:none !important; }
body.dive-day-mode .site-footer { margin-top:24px; }
@media (max-width:820px) {
  .dive-day-view { padding-top:25px; }
  .dive-day-grid { grid-template-columns:1fr; }
  .dive-day-hero-row { align-items:flex-start; flex-direction:column; }
  .dive-day-status-strip { grid-template-columns:1fr 1fr; }
}
@media (max-width:520px) {
  .dive-day-view { gap:12px; padding-top:18px; }
  .dive-day-hero,.dive-day-card { padding:16px; border-radius:15px; }
  .dive-day-hero h1 { font-size:32px; letter-spacing:-1px; }
  .dive-day-hero p { font-size:13px; }
  .dive-day-hero-actions,.dive-day-actions { width:100%; }
  .dive-day-hero-actions .dive-day-action { flex:1; }
  .dive-day-status-strip { margin-top:16px; }
  .dive-day-conditions { grid-template-columns:1fr 1fr; }
  .dive-day-segment { grid-template-columns:1fr; }
  .dive-day-segment .dive-day-action { width:100%; }
  .dive-day-date-row { grid-template-columns:1fr; }
  .dive-day-gear-list { grid-template-columns:1fr; }
}

/* Readability floor for pre-dive decisions and completion status. */
.dive-day-eyebrow,
.dive-day-status-strip span,
.dive-day-progress,
.dive-day-gear-head strong,
.dive-day-gear-head span,
.dive-day-gear-item,
.dive-day-field small,
.dive-day-save-state,
.dive-day-condition span,
.dive-day-condition-note,
.dive-day-segment-meta span,
.dive-day-complete-label,
.dive-day-safety { font-size:12px; }
.dive-day-action { font-size:12.5px; }

/* Compact secondary type; decisions and body copy remain 12px or larger. */
.dive-day-eyebrow { font-size:10px; }
.dive-day-status-strip span,.dive-day-condition span { font-size:10px; }
.dive-day-progress,.dive-day-gear-head strong,.dive-day-save-state,.dive-day-complete-label { font-size:11px; }
.dive-day-gear-head span,.dive-day-field small,.dive-day-segment-meta span { font-size:11px; }
.dive-day-gear-item { font-size:12px; }
