/* ═══════════════════════════════════════════════════════════════════════════
   TODAY ARRANGED (founder 2026-10-25, "build it" on preview 5; ui-ux-pro-max pass).
   Loaded after today-home.css, the last word on Today. js/20-today.js marks the room
   .td--arranged and paints two parts:
     .td-hero     date and greeting · the cube · the sentence · the one action · the senses
     .td-squares  Clear Head · Before big meetings · Your Areté · Coming up
   From 1024px the hero stands left (5fr) and the squares right (7fr) in a real grid, two
   by two, each row as tall as its taller square, so nothing is measured and nothing can
   overlap. Below 1024px one column: the hero, then the squares (constitution §11).
   The squares keep their order from the person's own hold-and-drop (data-s-*).
   The selectors carry four :not(#…) so they outweigh the older Today rules they replace.
   ═══════════════════════════════════════════════════════════════════════════ */
#view-brief .td.td--arranged:not(#_):not(#__):not(#___):not(#____){
  display:grid !important; grid-template-columns:minmax(0,1fr) !important;
  grid-template-areas:"hero" "squares" "foot" !important; grid-template-rows:auto !important;
  row-gap:32px !important; column-gap:40px !important; align-items:start !important; justify-items:stretch !important;
  width:100%; max-width:1180px !important; margin:0 auto; padding:0 0 40px !important;
}
@media (min-width:1024px){
  #view-brief .td.td--arranged:not(#_):not(#__):not(#___):not(#____){
    grid-template-columns:minmax(0,5fr) minmax(0,7fr) !important;
    grid-template-areas:"hero squares" ". foot" !important; row-gap:0 !important; align-items:start !important;
  }
  #view-brief .td--arranged .td-hero:not(#_):not(#__):not(#___){ padding-top:28px; }
}
/* from 1440px the room widens and the squares take more of it, so their rows read on one line */
@media (min-width:1440px){
  #view-brief .td.td--arranged:not(#_):not(#__):not(#___):not(#____){ max-width:1320px !important; grid-template-columns:minmax(0,4fr) minmax(0,7fr) !important; column-gap:48px !important; }
}

/* the hero: one column, centred, the object then the sentence then the action */
#view-brief .td--arranged .td-hero:not(#_):not(#__):not(#___){
  grid-area:hero; display:flex; flex-direction:column; align-items:center; text-align:center; min-width:0;
  transform:none !important;
}
#view-brief .td--arranged .td-hero > *:not(#_):not(#__):not(#___){ grid-area:auto !important; position:static !important; top:auto !important; }
#view-brief .td--arranged .td-hero .td-head:not(#_):not(#__):not(#___){ margin:0 0 6px !important; }
#view-brief .td--arranged .td-hero .td-meaning:not(#_):not(#__):not(#___){ display:flex !important; flex-direction:column; align-items:center; width:100%; margin-top:14px !important; }
#view-brief .td--arranged .td-hero .td-verdict:not(#_):not(#__):not(#___){ margin:8px auto 0 !important; }
/* the action is the hero's own: a pill, no square around it */
#view-brief .td--arranged .td-hero .td-actions:not(#_):not(#__):not(#___):not(#____):not(#_____),
#view-brief .td--arranged .td-hero .td-step-slot:not(#_):not(#__):not(#___){
  position:static !important; top:auto !important; grid-area:auto !important; width:auto !important; max-width:46ch !important;
  margin:28px auto 0 !important; padding:0 !important; border:0 !important; border-radius:0 !important;
  background:none !important; box-shadow:none !important; -webkit-backdrop-filter:none; backdrop-filter:none;
  display:flex !important; flex-direction:column !important; align-items:center !important; justify-content:center !important; gap:12px !important;
}
#view-brief .td--arranged .td-hero .td-step-slot[hidden]{ display:none !important; }
#view-brief .td--arranged .td-hero .td-step-slot:not([hidden]) + .td-actions:not(#_):not(#__):not(#___){ margin-top:14px !important; }
#view-brief .td--arranged .td-hero .td-sensewrap:not(#_):not(#__):not(#___){ margin:26px auto 0 !important; max-width:420px; }
#view-brief .td--arranged .td-hero .td-line:not(#_):not(#__):not(#___){ margin:18px auto 0 !important; max-width:46ch; }

/* the squares: a grid, two by two from 1024px */
#view-brief .td--arranged .td-squares:not(#_):not(#__):not(#___){
  grid-area:squares; display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:stretch; min-width:0; text-align:left;
}
@media (min-width:1024px){ #view-brief .td--arranged .td-squares:not(#_):not(#__):not(#___){ grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } }
#view-brief .td--arranged .td-squares .td-nowrap:not(#_):not(#__):not(#___){ display:contents !important; }
#view-brief .td--arranged .td-squares .td-clear:not(#_):not(#__):not(#___),
#view-brief .td--arranged .td-squares .td-attn-wrap:not(#_):not(#__):not(#___),
#view-brief .td--arranged .td-squares #td-now:not(#_):not(#__):not(#___),
#view-brief .td--arranged .td-squares .td-rooms:not(#_):not(#__):not(#___){
  grid-area:auto !important; grid-row:auto !important; grid-column:auto !important; position:relative !important; top:auto !important;
  box-sizing:border-box; width:auto !important; max-width:none !important; min-width:0; margin:0 !important;
  padding:24px 24px 22px !important; border-radius:24px; text-align:left;
  border:1px solid rgba(160,225,255,.16) !important;
  background:
    radial-gradient(120% 70% at 20% 0%, rgba(31,126,219,.20), transparent 62%),
    radial-gradient(90% 60% at 90% 100%, rgba(31,126,219,.10), transparent 70%),
    linear-gradient(150deg, rgba(0,191,255,.08), rgba(10,122,205,.06) 55%, rgba(255,255,255,.012)),
    rgba(3,20,42,.55) !important;
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 30px 70px -40px rgba(18,64,184,.95) !important;
  transition:border-color .25s ease, box-shadow .3s ease, scale .25s cubic-bezier(.2,.7,.2,1);
  -webkit-touch-callout:none;
}
#view-brief .td--arranged .td-squares #td-now[hidden]{ display:none !important; }
@media (hover:hover){
  #view-brief .td--arranged .td-squares .td-clear:hover, #view-brief .td--arranged .td-squares .td-attn-wrap:hover,
  #view-brief .td--arranged .td-squares #td-now:hover, #view-brief .td--arranged .td-squares .td-rooms:hover{ border-color:rgba(160,225,255,.26) !important; }
}
@media (max-width:759px){
  #view-brief .td--arranged .td-squares > *, #view-brief .td--arranged .td-squares .td-nowrap > *{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
}
/* the person's own order: slot n stands n-th */
#view-brief .td.td--arranged[data-s-clear="1"] .td-clear, #view-brief .td.td--arranged[data-s-watch="1"] .td-attn-wrap,
#view-brief .td.td--arranged[data-s-rooms="1"] .td-rooms, #view-brief .td.td--arranged[data-s-week="1"] #td-now{ order:1 !important; }
#view-brief .td.td--arranged[data-s-clear="2"] .td-clear, #view-brief .td.td--arranged[data-s-watch="2"] .td-attn-wrap,
#view-brief .td.td--arranged[data-s-rooms="2"] .td-rooms, #view-brief .td.td--arranged[data-s-week="2"] #td-now{ order:2 !important; }
#view-brief .td.td--arranged[data-s-clear="3"] .td-clear, #view-brief .td.td--arranged[data-s-watch="3"] .td-attn-wrap,
#view-brief .td.td--arranged[data-s-rooms="3"] .td-rooms, #view-brief .td.td--arranged[data-s-week="3"] #td-now{ order:3 !important; }
#view-brief .td.td--arranged[data-s-clear="4"] .td-clear, #view-brief .td.td--arranged[data-s-watch="4"] .td-attn-wrap,
#view-brief .td.td--arranged[data-s-rooms="4"] .td-rooms, #view-brief .td.td--arranged[data-s-week="4"] #td-now{ order:4 !important; }
#view-brief .td--arranged .td-foot:not(#_):not(#__):not(#___){ grid-area:foot; justify-self:end !important; margin:12px 0 0 !important; }
#view-brief .td--arranged .td-foot .td-sqhint{ margin:0 !important; text-align:right; }
@media (max-width:1023px){ #view-brief .td--arranged .td-foot:not(#_):not(#__):not(#___){ justify-self:center !important; } }

/* THE CLEAR HEAD SQUARE: the number once, its word, the inputs in rows, the proof */
#view-brief .td--arranged .td-ch__h{ margin:0 0 12px; color:var(--ice2); font:600 var(--fs-14)/1.3 var(--f-body); letter-spacing:0; text-transform:none; }
#view-brief .td--arranged .td-ch__num{ display:flex; align-items:baseline; gap:12px; }
#view-brief .td--arranged .td-ch__fig{ font:400 var(--fs-48)/1 var(--f-body); letter-spacing:-.03em; color:var(--ice); }
#view-brief .td--arranged .td-ch__word{ font:600 var(--fs-16)/1.3 var(--f-body); color:rgb(var(--ink)); }
#view-brief .td--arranged .td-ch__state{ margin:0; font:600 var(--fs-16)/1.4 var(--f-body); color:rgb(var(--ink)); }
#view-brief .td--arranged .td-ch__s{ margin:4px 0 0; font:400 var(--fs-14)/1.5 var(--f-body); color:rgb(var(--ink2)); }
#view-brief .td--arranged .td-ch__rows{ margin-top:12px; }
#view-brief .td--arranged .td-ch__row{ display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:36px;
  border-top:1px solid rgba(127,211,255,.12); font:400 var(--fs-14)/1.35 var(--f-body); color:rgb(var(--ink)); }
#view-brief .td--arranged .td-ch__row span:last-child{ color:rgb(var(--ink2)); text-align:right; }
#view-brief .td--arranged .td-ch__more{ margin-top:6px; }
#view-brief .td--arranged .td-ch__more summary{ cursor:pointer; list-style:none; min-height:44px; display:flex; align-items:center;
  font:500 var(--fs-14)/1 var(--f-body); color:var(--ice2); }
#view-brief .td--arranged .td-ch__more summary::-webkit-details-marker{ display:none; }
#view-brief .td--arranged .td-ch__more summary:focus-visible{ outline:2px solid var(--ice2); outline-offset:3px; border-radius:6px; }
#view-brief .td--arranged .td-ch__proof{ margin-top:12px; }
#view-brief .td--arranged .td-num--dim{ opacity:.6; }
@media (prefers-reduced-motion:reduce){ #view-brief .td--arranged .td-squares > *{ transition:none !important; } }
/* every square fills its row, so the two in a row stand level */
#view-brief .td--arranged .td-squares .td-clear:not(#_):not(#__):not(#___),
#view-brief .td--arranged .td-squares .td-attn-wrap:not(#_):not(#__):not(#___),
#view-brief .td--arranged .td-squares #td-now:not(#_):not(#__):not(#___),
#view-brief .td--arranged .td-squares .td-rooms:not(#_):not(#__):not(#___){ align-self:stretch !important; justify-self:stretch !important; height:auto !important; }
/* Your Areté in a square: label and value, the value at most three lines; the room behind the arrow has the rest */
@media (min-width:1024px){ #view-brief .td--arranged .td-rooms .td-room:not(#_):not(#__){ grid-template-columns:96px minmax(0,1fr) 18px !important; column-gap:12px !important; } }
#view-brief .td--arranged .td-rooms .td-room__v{ display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
/* on a phone the quiet exit stands under the pill, centred, and the senses follow closer */
@media (max-width:1023px){
  /* the pill full width at 52px on a phone (constitution §11) */
  #view-brief .td--arranged .td-hero .td-actions:not(#_):not(#__):not(#___):not(#____):not(#_____){ width:100% !important; max-width:none !important; align-items:stretch !important; }
  #view-brief .td--arranged .td-hero .td-actions .ui-btn--primary:not(#_):not(#__){ width:100% !important; min-height:52px; }
  #view-brief .td--arranged .td-hero .td-actions .ui-btn--quiet:not(#_):not(#__){ align-self:center !important; justify-content:center !important; text-align:center !important; }
  #view-brief .td--arranged .td-hero .td-sensewrap:not(#_):not(#__):not(#___){ margin-top:18px !important; }
}

/* WHAT ARETÉ CALLS YOU (js/77-callme.js, 2026-10-25): the sheet asked once on Today, the sign-up field, the Settings row */
.cm-bd{ position:fixed; inset:0; z-index:80; background:rgba(2,10,22,.55); opacity:0; transition:opacity var(--dur-2,320ms) ease; }
.cm-bd.on{ opacity:1; }
.cm-sheet{ position:fixed; z-index:81; left:50%; top:50%; width:min(420px, calc(100vw - 32px)); translate:-50% calc(-50% + 12px); opacity:0;
  transition:opacity var(--dur-2,320ms) ease, translate var(--dur-2,320ms) cubic-bezier(.2,.8,.2,1);
  padding:26px 26px 22px; border-radius:24px; border:1px solid rgba(160,225,255,.18);
  background:radial-gradient(120% 70% at 20% 0%, rgba(31,126,219,.22), transparent 62%), rgba(6,24,46,.96);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 30px 70px -30px rgba(18,64,184,.95); color:rgb(var(--ink)); text-align:left; }
.cm-sheet.on{ opacity:1; translate:-50% -50%; }
.cm-k{ margin:0; font:400 var(--fs-13)/1.4 var(--f-body); color:rgb(var(--ink3)); }
.cm-q{ margin:4px 0 6px; font:600 var(--fs-20)/1.3 var(--f-body); }
.cm-s{ margin:0 0 16px; font:400 var(--fs-14)/1.5 var(--f-body); color:rgb(var(--ink2)); }
.cm-line{ border-bottom:1px solid var(--hair2); }
.cm-line:focus-within{ border-bottom-color:var(--ice); }
.cm-line input:not(#_), .cm-edit:not(#_){ width:100%; background:transparent !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; outline:none !important; padding:8px 0 10px !important; color:rgb(var(--ink)); font:400 var(--fs-18)/1.3 var(--f-body); }
.cm-edit:not(#_){ width:180px; border-bottom:1px solid var(--hair2) !important; font-size:var(--fs-15); padding:4px 0 6px; margin-right:12px; }
.cm-edit:not(#_):focus{ border-bottom-color:var(--ice) !important; }
.cm-acts{ display:flex; align-items:center; gap:16px; margin-top:20px; }
.cm-acts .ui-btn--primary{ min-width:160px; }
.cm-msg{ margin:10px 0 0; min-height:1.2em; font:400 var(--fs-13)/1.4 var(--f-body); color:rgb(var(--ink2)); }
#ob-auth .ob-opt{ float:right; color:rgb(var(--ink3)); }
@media (prefers-reduced-motion:reduce){ .cm-bd, .cm-sheet{ transition:none; } }
