/* Iris, one screen (2026-11-17). Four numbers on top, six boxes under them, no scrolling on an iPad.
   The old long page still sits in #legacy (hidden) so the plan engine, ticks, unlock and voice keep working. */
html,body{height:100%}
body{background:var(--bg);overflow-x:hidden}
.one{height:100vh;height:100dvh;min-height:600px;display:flex;flex-direction:column;gap:12px;max-width:1500px;margin:0 auto;
  padding:calc(14px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left))}
.one:focus{outline:0}

.o-head{display:flex;align-items:baseline;gap:12px;flex:none}
.o-head h1{font-size:23px;font-weight:600;letter-spacing:-.03em;line-height:1.2}
.o-date{color:var(--muted);font-size:13px}
.o-live{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);min-width:0}
.o-live span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-dot{width:8px;height:8px;border-radius:50%;background:#c9c2b4;flex:none}
.o-dot.good{background:var(--success)}.o-dot.warning{background:#b7791f}.o-dot.error{background:var(--danger)}
.o-btn{border:1px solid var(--border);background:#fff;border-radius:10px;padding:8px 13px;font-size:12px;font-weight:500;color:var(--ink);min-height:36px;white-space:nowrap}
.o-btn:hover{border-color:#cfc8b8}
.o-btn[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.o-btn.gold{background:var(--gold);border-color:var(--gold);color:var(--ink);font-weight:600}

.o-lock{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--ink);color:#fff;border-radius:12px;padding:9px 14px;font-size:13px}
.o-lock b{color:var(--gold)}

.o-strip{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.o-tile{background:var(--ink);color:#fff;border-radius:14px;padding:12px 15px 12px;position:relative;overflow:hidden;min-width:0}
.o-tile:after{content:"";position:absolute;left:15px;right:15px;top:0;height:2px;background:var(--gold)}
.o-tile small{display:block;font-size:9.5px;letter-spacing:.15em;color:#b9cbc1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-tile strong{display:flex;align-items:baseline;gap:6px;margin-top:3px;font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:31px;line-height:1.15;letter-spacing:-.02em;white-space:nowrap}
.o-tile strong sub{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:13px;color:#b9cbc1;vertical-align:baseline;bottom:0;letter-spacing:0;overflow:hidden;text-overflow:ellipsis}
.o-tile-foot{display:block;font-size:11.5px;color:#cfdcd4;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-bar{height:4px;background:#ffffff22;border-radius:9px;margin-top:8px}
.o-bar b{display:block;height:100%;width:0;background:var(--gold);border-radius:9px;transition:width .4s ease}

.o-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px}
.o-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:13px 15px 11px;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.o-eb{font-size:9px;letter-spacing:.17em;color:var(--gold-dark);font-weight:600;line-height:1.4}
.o-card h2{font-size:16px;line-height:1.3;display:flex;align-items:baseline;gap:8px;letter-spacing:-.02em}
.o-card h2 small{margin-left:auto;font-size:11px;font-weight:400;color:var(--muted);letter-spacing:0;white-space:nowrap}
/* a row that does not fit wraps into a second column, which the box hides: rows show whole or not at all */
.o-rows{margin-top:5px;flex:1 1 auto;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-start;min-height:0;min-width:0;overflow:hidden}
.o-rows>*{width:100%;flex:none}
.o-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--border)}
.o-row:first-child{border-top:0}
.o-row b{display:block;font-weight:600;font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-row small{display:block;color:var(--muted);font-size:11px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o-val{text-align:right;font-family:Georgia,"Times New Roman",serif;font-size:19px;line-height:1.15;letter-spacing:-.01em;white-space:nowrap}
.o-val small{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;display:inline;font-size:11px}
.o-val small.under{display:block;max-width:150px;margin-left:auto}
.o-hdot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;background:#c9c2b4;vertical-align:1px}
.o-hdot.red{background:var(--danger)}.o-hdot.yellow,.o-hdot.amber{background:#b7791f}.o-hdot.green{background:var(--success)}
.o-tag{display:inline-block;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:9.5px;letter-spacing:.08em;border-radius:99px;padding:1px 7px;border:1px solid var(--border);color:var(--muted);vertical-align:2px;margin-left:6px}
.o-tag.bad{border-color:#a63c2e55;color:var(--danger)}
.o-sum{margin-top:auto;padding-top:8px;border-top:1px solid var(--ink);display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:11.5px;color:var(--muted)}
.o-sum:empty{display:none}
.o-sum b{color:var(--ink);font-family:Georgia,"Times New Roman",serif;font-size:16px;font-weight:400}
.o-next{margin-top:auto;background:var(--tint);border-radius:10px;padding:7px 10px;font-size:11.5px;line-height:1.35;flex:none;min-width:0}
/* inside the rows it is the last thing in line, so on a short box it leaves before any client row does */
.o-rows>.o-next{margin-top:8px}
.o-next span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.o-next b{font-size:9px;letter-spacing:.14em;color:var(--gold-dark);display:block}
.o-move{display:grid;grid-template-columns:26px minmax(0,1fr);gap:9px;align-items:start;padding:8px 0;border-top:1px solid var(--border)}
.o-move:first-child{border-top:0}
.o-tick{width:24px;height:24px;border:1.5px solid #b9b2a3;border-radius:7px;background:#fff;display:grid;place-items:center;color:transparent;font-size:14px;line-height:1;margin-top:1px}
.o-tick:hover{border-color:var(--green)}
.o-move.done .o-tick{background:var(--green);border-color:var(--green);color:#fff}
.o-move strong{font-size:13px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.o-move.done strong{color:var(--muted);text-decoration:line-through}
.o-move small{display:block;color:var(--muted);font-size:11px}
.o-move small.late{color:var(--danger)}
.o-empty{color:var(--muted);font-size:12.5px;padding:10px 0}
.o-empty button{color:var(--green);font-weight:600;text-decoration:underline;padding:0}

/* iPad upright and narrow windows: 2 across */
@media(max-width:900px){
  .o-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .o-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}
  .one{min-height:880px}
}
/* phones: one column, the page scrolls */
@media(max-width:600px){
  .one{height:auto;min-height:0;padding-left:14px;padding-right:14px}
  .o-rows{flex-wrap:nowrap;overflow:visible}
  .o-grid{display:flex;flex-direction:column}
  .o-card{overflow:visible}
  .o-tile strong{font-size:25px}
  .o-live span{display:none}
  .o-date{display:none}
}
/* short landscape windows: let it scroll instead of crushing the boxes */
@media(max-height:640px) and (min-width:601px){.one{height:auto}.o-grid{grid-template-rows:repeat(2,260px)}}
@media print{.o-btn{display:none}}
