/* URSY.ID — the portal shell: account head, settings nav, grouped cards, rows,
   switches, the password meter. Settings-app pattern: one card per topic,
   label over value, hairline dividers, no boxes inside boxes. */

.ursy-portal{ padding:clamp(24px,3vw,40px) 0 clamp(56px,7vw,96px); }
.ursy-portal__head{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding-bottom:clamp(20px,3vw,30px); }
.ursy-portal__head .u-glowmark{ width:52px; height:52px; font-size:17px; }
.ursy-portal__id{ display:grid; min-width:0; }
.ursy-portal__id strong{ font-size:clamp(1.3rem,2.4vw,1.8rem); font-weight:700; letter-spacing:-.03em; }
.ursy-portal__id small{ margin-top:3px; font-family:var(--font-mono); font-size:11px; color:var(--ink3); }
.ursy-portal__out{ margin-inline-start:auto; }
.ursy-portal__grid{ display:flex; flex-wrap:wrap; align-items:flex-start; gap:clamp(16px,2.5vw,28px); }

/* settings nav */
.ursy-side{ flex:1 1 210px; max-width:250px; min-width:190px; display:grid; gap:3px;
  position:sticky; top:calc(var(--header-h) + 20px); }
.ursy-side__item{ display:grid; grid-template-columns:3px minmax(0,1fr); align-items:center; gap:11px;
  min-height:44px; padding:0 13px 0 10px; border-radius:11px; color:var(--ink2); font-size:13.5px;
  font-weight:500; text-align:start; transition:background .14s ease, color .14s ease; }
.ursy-side__item i{ width:3px; height:16px; border-radius:2px; background:transparent; }
.ursy-side__item span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ursy-side__item:hover{ background:var(--hover); color:var(--ink); text-decoration:none; }
.ursy-side__item[aria-current="page"]{ background:var(--neon-soft); color:var(--ink); font-weight:600; }
.ursy-side__item[aria-current="page"] i{ background:var(--neon); }
.ursy-side__note{ margin-top:14px; padding:0 12px; font-family:var(--font-mono); font-size:9px; line-height:1.7;
  letter-spacing:.1em; color:var(--ink3); }

/* panes */
.ursy-pane{ flex:1 1 560px; min-width:0; display:grid; gap:12px; animation:rise .32s ease-out both; }
.ursy-pane__head{ padding:2px 2px 0; }
.ursy-pane__head h2{ font-size:1.35rem; font-weight:700; letter-spacing:-.03em; }
.ursy-pane__head p{ margin-top:8px; max-width:60ch; font-size:13.5px; line-height:1.65; color:var(--ink2); }
.ursy-pane__note{ padding:0 4px; font-size:12.5px; line-height:1.6; color:var(--ink3); }

/* grouped card + rows */
.ursy-group{ border-radius:var(--radius-l); overflow:hidden; background:var(--card);
  box-shadow:inset 0 0 0 1px var(--line2), inset 0 1px 0 var(--topline); }
.ursy-group__head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px;
  padding:16px 20px; box-shadow:inset 0 -1px 0 var(--line); }
.ursy-group__head strong{ font-size:15.5px; font-weight:600; }
.ursy-group__head p{ margin-top:5px; font-size:12px; color:var(--ink3); }
.ursy-group__pad{ display:grid; gap:14px; padding:24px; }
.ursy-row{ display:grid; align-items:center; gap:14px; padding:12px 20px; box-shadow:inset 0 -1px 0 var(--line);
  text-align:start; }
.ursy-row:last-child{ box-shadow:none; }
.ursy-row strong{ font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ursy-row small{ display:block; margin-top:3px; font-size:11.5px; line-height:1.4; color:var(--ink3); }
.ursy-row--value{ grid-template-columns:minmax(0,1fr) auto 10px; min-height:58px; width:100%;
  transition:background .14s ease; }
.ursy-row--value:hover{ background:var(--hover); }
.ursy-row--value .ursy-row__k{ font-size:11.5px; color:var(--ink3); }
.ursy-row--value .ursy-row__v{ display:block; margin-top:3px; font-size:14px; font-weight:600;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ursy-row__chev{ color:var(--ink3); font-size:15px; line-height:1; }
.ursy-row--status{ grid-template-columns:minmax(0,1fr) auto; min-height:58px; }
.ursy-row--service{ grid-template-columns:36px minmax(0,1fr) auto auto; min-height:68px; }
.ursy-row--service .ursy-service__mark{ width:36px; height:36px; border-radius:11px; }
.ursy-row--activity{ grid-template-columns:8px minmax(0,1fr) auto; min-height:56px; padding:10px 20px; }
.ursy-row--device{ grid-template-columns:minmax(0,1fr) auto auto; min-height:64px; }
.ursy-row--user{ grid-template-columns:32px minmax(0,1fr) auto auto; min-height:62px; padding:11px 20px; gap:13px; }
.ursy-row--user .ursy-avatar{ display:grid; place-items:center; width:32px; height:32px; border-radius:50%;
  background:var(--neon-soft); color:var(--neon); font-size:12px; font-weight:700; }
.ursy-row--user small{ font-family:var(--font-mono); font-size:10.5px; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; }
.ursy-row--org{ grid-template-columns:minmax(0,1fr) auto auto; min-height:58px; padding:11px 20px; }
.ursy-row__act{ display:inline-flex; align-items:center; height:32px; padding:0 12px; border-radius:9px;
  box-shadow:inset 0 0 0 1px var(--line2); font-size:12px; color:var(--ink2); white-space:nowrap;
  transition:color .15s ease, box-shadow .15s ease; }
.ursy-row__act:hover{ color:var(--neon); box-shadow:inset 0 0 0 1px var(--neon); text-decoration:none; }
.ursy-row__act--danger:hover{ color:var(--danger); box-shadow:inset 0 0 0 1px var(--danger); }

/* the switch */
.ursy-switch{ position:relative; width:44px; height:26px; flex:none; border-radius:999px; background:var(--line);
  box-shadow:inset 0 0 0 1px var(--line2); transition:background .2s ease; }
.ursy-switch i{ position:absolute; top:3px; inset-inline-start:3px; width:20px; height:20px; border-radius:50%;
  background:white; box-shadow:0 1px 3px rgba(0,0,0,.28);
  transition:inset-inline-start .2s cubic-bezier(.4,0,.2,1); }
.ursy-switch[aria-checked="true"]{ background:var(--neon); }
.ursy-switch[aria-checked="true"] i{ inset-inline-start:21px; }
.ursy-switch[aria-disabled="true"]{ opacity:.5; cursor:not-allowed; }

/* quota + service tiles + password meter */
.ursy-quota{ display:flex; height:8px; border-radius:999px; overflow:hidden; background:var(--line); }
.ursy-quota span{ display:block; height:100%; }
.ursy-legend{ display:flex; flex-wrap:wrap; gap:8px 20px; font-family:var(--font-mono); font-size:10px;
  color:var(--ink3); }
.ursy-legend span{ display:flex; align-items:center; gap:7px; }
.ursy-legend i{ width:7px; height:7px; border-radius:2px; }
.ursy-tiles{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:10px; }
.ursy-tile{ display:grid; gap:12px; padding:18px; border-radius:var(--radius-m); background:var(--card);
  box-shadow:inset 0 0 0 1px var(--line); transition:box-shadow .16s ease, transform .16s ease; }
.ursy-tile:hover{ box-shadow:inset 0 0 0 1px var(--neon); transform:translateY(-2px); text-decoration:none; }
.ursy-tile strong{ font-size:13.5px; font-weight:600; }
.ursy-tile small{ display:block; margin-top:3px; font-size:11.5px; color:var(--ink3); }
.ursy-orgstats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(118px,1fr)); gap:10px; }
.ursy-orgstat{ display:grid; gap:5px; padding:16px 18px; border-radius:var(--radius-m); background:var(--card);
  box-shadow:inset 0 0 0 1px var(--line); }
.ursy-orgstat b{ font-family:var(--font-mono); font-size:22px; font-weight:400; }
.ursy-orgstat span{ font-size:11.5px; color:var(--ink3); }
.ursy-pwform{ display:grid; gap:10px; max-width:420px; }
.ursy-meter{ display:flex; height:4px; border-radius:999px; overflow:hidden; background:var(--line); }
.ursy-meter span{ display:block; width:0; background:var(--danger); transition:width .22s ease, background .22s ease; }
.ursy-meter[data-score="2"] span{ background:var(--neon); }
.ursy-meter[data-score="3"] span{ background:var(--neon); }
.ursy-meter[data-score="4"] span{ background:var(--ok); }
.ursy-meter[data-score="1"] span{ width:25%; } .ursy-meter[data-score="2"] span{ width:50%; }
.ursy-meter[data-score="3"] span{ width:75%; } .ursy-meter[data-score="4"] span{ width:100%; }
.ursy-rules{ display:grid; gap:6px; margin-top:2px; }
.ursy-rules span{ display:flex; align-items:center; gap:9px; font-size:12px; color:var(--ink3); }
.ursy-rules span i{ width:6px; height:6px; border-radius:50%; background:var(--line2); }
.ursy-rules span[data-ok="true"]{ color:var(--ink2); }
.ursy-rules span[data-ok="true"] i{ background:var(--ok); }
.ursy-saved{ display:none; align-items:center; gap:10px; padding:12px 14px; border-radius:10px;
  background:var(--neon-soft); animation:rise .28s ease-out both; }
.ursy-saved[data-open="true"]{ display:flex; }
.ursy-saved span:first-child{ display:grid; place-items:center; width:22px; height:22px; border-radius:50%;
  background:var(--ok); color:white; font-size:11px; font-weight:700; flex:none; }
.ursy-saved span:last-child{ font-size:12.5px; color:var(--ink2); }

/* ── signed-in header menus (launcher + avatar) ───────────────────────────
   Authored as <details> so they open with JS off. ui.js adds
   click-outside and Escape only. */
.ursy-menu{ position:relative; flex:none; }
.ursy-menu > summary{ list-style:none; cursor:pointer; }
.ursy-menu > summary::-webkit-details-marker{ display:none; }
.ursy-menu[open] > summary{ background:var(--hover); color:var(--ink); }
.ursy-grid9{ display:grid; grid-template-columns:repeat(3,3px); gap:3.5px; }
.ursy-grid9 i{ width:3px; height:3px; border-radius:1px; background:currentColor; }
.ursy-avatarbtn{ display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:50%;
  background:var(--ink); color:var(--bg); font-size:13px; font-weight:700;
  transition:box-shadow .15s ease; }
.ursy-avatarbtn:hover{ box-shadow:0 0 0 3px var(--neon-soft); }
.ursy-menu__pop{ position:absolute; z-index:40; inset-inline-end:0; top:calc(100% + 9px); width:270px; padding:8px;
  border-radius:var(--radius-l); background:var(--sheet);
  box-shadow:var(--pop), inset 0 0 0 1px var(--line2), inset 0 1px 0 var(--topline);
  backdrop-filter:blur(30px) saturate(140%); -webkit-backdrop-filter:blur(30px) saturate(140%);
  animation:popIn .16s cubic-bezier(.2,.7,.2,1) both; }
.ursy-menu__pop--wide{ width:332px; padding:15px; }
.ursy-menu__id{ display:flex; align-items:center; gap:11px; padding:12px 12px 14px; }
.ursy-menu__id strong{ display:block; font-size:13.5px; font-weight:600; }
.ursy-menu__id small{ display:block; margin-top:2px; font-family:var(--font-mono); font-size:10px; color:var(--ink3); }
.ursy-menu__item{ display:flex; align-items:center; min-height:42px; padding:0 12px; border-radius:10px;
  font-size:13.5px; color:var(--ink2); transition:background .14s ease, color .14s ease; }
.ursy-menu__item:hover{ background:var(--hover); color:var(--ink); text-decoration:none; }
.ursy-menu__item--danger:hover{ color:var(--danger); }
.ursy-menu__out{ margin:6px 4px 2px; padding-top:8px; box-shadow:inset 0 1px 0 var(--line); }
.ursy-menu__foot{ display:flex; align-items:center; gap:9px; margin-top:12px; padding-top:12px;
  box-shadow:inset 0 1px 0 var(--line); font-size:11.5px; color:var(--ink3); }
.ursy-launcher{ display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
.ursy-launcher__item{ display:grid; justify-items:center; gap:8px; padding:13px 6px; border-radius:13px;
  transition:background .14s ease; }
.ursy-launcher__item:hover{ background:var(--hover); text-decoration:none; }
.ursy-launcher__item span{ font-size:11px; font-weight:600; text-align:center; letter-spacing:-.01em; }
.ursy-launcher__item .ursy-service__mark{ border-radius:12px; }
.ursy-launcher__item.is-soon{ opacity:.5; }
@keyframes popIn{ from{opacity:0;transform:translate3d(0,-8px,0) scale(.985)} to{opacity:1;transform:none} }

/* portal head shield */
.ursy-portal__shield{ display:inline-flex; align-items:center; gap:8px; margin-inline-start:auto; height:36px;
  padding:0 14px; border-radius:999px; background:var(--card); box-shadow:inset 0 0 0 1px var(--line2);
  font-family:var(--font-mono); font-size:9px; letter-spacing:.14em; color:var(--ink2); }

/* room header + chips */
.ursy-room__head{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:2px 2px 0; }
.ursy-room__head h2{ font-size:1.35rem; font-weight:700; letter-spacing:-.03em; }
.ursy-room__head small{ display:block; margin-top:3px; font-size:12px; color:var(--ink3); }

/* phone tab bar */
.ursy-tabbar{ display:none; position:fixed; z-index:20; inset-inline:0; bottom:0; align-items:stretch; gap:2px;
  padding:6px 8px calc(6px + env(safe-area-inset-bottom)); background:var(--sheet);
  box-shadow:inset 0 1px 0 var(--line), 0 -18px 40px -30px rgba(16,18,22,.5);
  backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); }
.ursy-tabbar__item{ flex:1; display:grid; justify-items:center; align-content:center; gap:5px; min-height:54px;
  border-radius:12px; font-size:10.5px; font-weight:500; color:var(--ink3); }
.ursy-tabbar__item[aria-current="page"]{ background:var(--neon-soft); color:var(--ink); font-weight:600; }
.ursy-tabbar__item:hover{ text-decoration:none; }

/* ── account standing panel (Overview) ───────────────────────────────────
   Glass, like every other surface. It was a black box; a black box in the
   middle of a translucent page reads as a hole, not as emphasis. The neon
   comes from a radial wash and the ring, not from inverting the panel.
   NOTE: no backdrop-filter here. The fixed veil already blurs the aurora, and
   stacking a second blur on a scrolling panel drops the surface out. */
.ursy-standing{ position:relative; overflow:hidden; border-radius:var(--radius-l); background:var(--sheet);
  box-shadow:var(--lift), inset 0 0 0 1px var(--line2), inset 0 1px 0 var(--topline); }
.ursy-standing__wash{ position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(120% 140% at 82% -30%, var(--neon-soft), transparent 62%); }
.ursy-standing__top{ position:relative; display:flex; align-items:center; gap:clamp(18px,2.6vw,28px);
  padding:clamp(22px,3vw,30px) clamp(22px,3vw,30px) clamp(20px,2.6vw,26px); }
.ursy-standing__dial{ position:relative; display:grid; place-items:center; width:88px; height:88px; flex:none; }
.ursy-standing__dial svg{ position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.ursy-standing__dial svg circle:last-child{ filter:drop-shadow(0 0 7px var(--neon-soft));
  animation:ringDraw 1.5s cubic-bezier(.3,.7,.3,1) both; }
.ursy-standing__dial > span{ display:grid; justify-items:center; gap:1px; }
.ursy-standing__dial b{ font-family:var(--font-mono); font-size:22px; font-weight:400; letter-spacing:-.02em; }
.ursy-standing__dial small{ font-family:var(--font-mono); font-size:7.5px; letter-spacing:.16em; color:var(--ink3); }
.ursy-standing__copy{ flex:1; min-width:0; }
.ursy-standing__eyebrow{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono);
  font-size:8.5px; letter-spacing:.2em; color:var(--ink3); }
.ursy-standing__copy h2{ margin:11px 0 8px; font-size:clamp(1.4rem,2.4vw,1.95rem); font-weight:700;
  line-height:1.08; letter-spacing:-.034em; text-wrap:balance; }
.ursy-standing__copy p{ max-width:56ch; font-size:13.5px; line-height:1.6; color:var(--ink2); }
/* the three values share the glance strip's geometry, so the page has one rhythm */
.ursy-standing__row{ position:relative; display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line2); box-shadow:inset 0 1px 0 var(--line); }
.ursy-standing__row > div{ display:flex; align-items:center; gap:9px; padding:14px clamp(16px,2.2vw,22px);
  background:var(--card); min-width:0; }
.ursy-standing__row i{ width:6px; height:6px; border-radius:50%; background:var(--ok); flex:none; }
.ursy-standing__row span{ flex:1; min-width:0; font-size:12px; color:var(--ink2);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ursy-standing__row em{ font-family:var(--font-mono); font-size:9px; font-style:normal; letter-spacing:.14em;
  color:var(--ink3); }

/* ── the settings rail is a panel, not loose text on the aurora ────────── */
.ursy-side{ align-content:start; padding:10px; border-radius:var(--radius-l); background:var(--card);
  box-shadow:inset 0 0 0 1px var(--line2), inset 0 1px 0 var(--topline); }
.ursy-side > .ursy-foot__head{ padding:6px 10px 4px; }
.ursy-side > .ursy-foot__head + .ursy-foot__head,
.ursy-side .ursy-foot__head:nth-of-type(2){ padding-top:16px; }
.ursy-side__note{ margin-top:12px; padding:12px 10px 4px; box-shadow:inset 0 1px 0 var(--line); }

/* room tiles: a hairline of the module colour, and a shadow in it on hover */
.ursy-tile{ position:relative; overflow:hidden; }
.ursy-tile__edge{ position:absolute; inset-inline-start:0; top:0; width:100%; height:2px;
  background:var(--tile-tint, var(--neon)); opacity:.5; }
.ursy-tile__top{ display:flex; align-items:center; gap:10px; }
.ursy-tile__top em{ margin-inline-start:auto; color:var(--ink3); font-size:15px; font-style:normal; line-height:1; }
.ursy-tile:hover{ transform:translateY(-3px);
  box-shadow:inset 0 0 0 1px var(--line2), 0 18px 34px -22px var(--tile-tint, var(--neon)); }

/* ── the glance strip ─────────────────────────────────────────────────────
   Three figures, hairline dividers, no card per figure. Used under every
   room head AND under the front-door sign-in box, so the two pages rhyme. */
.ursy-glance{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; border-radius:var(--radius-m);
  overflow:hidden; background:var(--line2); }
.ursy-glance > div{ display:grid; gap:4px; padding:15px 17px; background:var(--card); text-align:start; }
.ursy-glance b{ font-family:var(--font-mono); font-size:clamp(17px,2.2vw,21px); font-weight:400; letter-spacing:-.02em; }
.ursy-glance span{ font-size:11px; color:var(--ink3); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ursy-glance--hero{ width:min(680px,100%); margin-top:clamp(24px,3vw,36px);
  animation:rise .6s ease-out .2s both; }

/* ── the estate feed (Overview) ───────────────────────────────────────── */
.ursy-row--feed{ grid-template-columns:30px minmax(0,1fr) auto 10px; min-height:62px;
  animation:rise .4s ease-out var(--row-delay,0s) both; transition:background .14s ease; }
.ursy-row--feed:hover{ background:var(--hover); text-decoration:none; }
.ursy-feed__mark{ position:relative; display:grid; place-items:center; }
.ursy-feed__mark .ursy-service__mark{ border-radius:9px; font-size:8.5px; }
.ursy-feed__mark i{ position:absolute; inset-inline-end:-2px; top:-2px; width:7px; height:7px; border-radius:50%;
  background:var(--line2); box-shadow:0 0 0 2px var(--card); }
.ursy-feed__mark i.is-live{ background:var(--neon); animation:tick 2.4s ease-in-out infinite; }

/* ── sparkline (URSY.AD) ──────────────────────────────────────────────── */
.ursy-chart{ display:grid; gap:16px; padding:22px 24px; border-radius:var(--radius-l); background:var(--card);
  box-shadow:inset 0 0 0 1px var(--line2), inset 0 1px 0 var(--topline); }
.ursy-chart__head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:12px; }
.ursy-chart__head > span:first-child{ display:grid; gap:4px; }
.ursy-chart__head b{ font-family:var(--font-mono); font-size:26px; font-weight:400; letter-spacing:-.02em; }
.ursy-chart__head b + span{ font-size:11.5px; color:var(--ink3); }
.ursy-chart__axis{ display:flex; justify-content:space-between; font-family:var(--font-mono); font-size:9px;
  letter-spacing:.14em; color:var(--ink3); }
.ursy-spark{ width:100%; height:74px; overflow:visible; }
.ursy-spark polyline{ stroke-dasharray:900; animation:draw 1.6s cubic-bezier(.3,.7,.3,1) both; }

/* ── equaliser (URSY.FM) ──────────────────────────────────────────────── */
.ursy-player__meter{ flex:1 1 170px; display:grid; gap:9px; }
.ursy-eq{ display:flex; align-items:flex-end; gap:3px; height:34px; }
.ursy-eq i{ flex:1; min-height:4px; border-radius:2px; background:var(--neon); opacity:.75;
  transform-origin:bottom; animation-name:eq; animation-timing-function:ease-in-out; animation-iteration-count:infinite; }

/* ── domain term bar ──────────────────────────────────────────────────── */
.ursy-term{ display:block; height:3px; margin-top:9px; border-radius:999px; background:var(--line); overflow:hidden; }
.ursy-term i{ display:block; height:100%; border-radius:999px; opacity:.8;
  animation:growW .9s cubic-bezier(.3,.7,.3,1) both; }

/* ── standing dial draws itself once ──────────────────────────────────── */
.ursy-standing__dial svg circle:last-child{ animation:ringDraw 1.5s cubic-bezier(.3,.7,.3,1) both; }

/* ── tab bar icons ────────────────────────────────────────────────────── */
.ursy-tabbar__item svg{ width:21px; height:21px; }
