/* Cura Core · solo.css
   Pages without the sidebar: the main sign-in, an agency's own staff sign-in, the staff phone
   pages (reading list, one policy, choosing a password), the inspector's read-only copy, the
   message pages, and the "staff member's view" phone stage.

   "Bound Manual" (October 2026). The sign-in panel is the book's cover: flat ink, cream type,
   one mint rule over the headline and the brand's rhombus stack at 8% in the corner. The staff
   pages are warm paper with white cards, built for a caregiver's phone at the end of a shift:
   calm, large and obvious. Base components (.btn, .input, .card, .notice, .table, .empty) come
   from components.css; the paper, find bar and Acknowledge card from reader.css; only their
   .solo-scoped sizes live here. */

/* ======================================================================
   Sign-in: the main page (login.js) and an agency's staff page (staff.js)
   ====================================================================== */

.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }

/* the cover */
.signin-art {
  position: relative; isolation: isolate; overflow: hidden; contain: paint;
  display: flex; flex-direction: column; padding: 44px 56px;
  background: var(--cover); color: var(--cover-ink);
}
.signin-art::after {
  content: ''; position: absolute; z-index: -1; right: -140px; bottom: -120px; width: 440px; height: 440px; pointer-events: none; opacity: .08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 8 L54 15.5 L32 23 L10 15.5 Z' fill='%237FD6C7'/%3E%3Cpath d='M32 24.5 L54 32 L32 39.5 L10 32 Z' fill='%237FD6C7'/%3E%3Cpath d='M32 41 L54 48.5 L32 56 L10 48.5 Z' fill='%237FD6C7'/%3E%3C/svg%3E") no-repeat center / contain;
}
.signin-art .grid-bg { display: none; }

/* brand (main sign-in) */
.signin-art .brand { align-self: flex-start; gap: 10px; padding: 0; color: #fff; }
.signin-art .logo-mark { width: 30px; height: 30px; }
.signin-art .brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 21px; letter-spacing: -.005em; line-height: 1; color: #fff; }
.signin-art .brand-name .core { color: var(--mint); }
.signin-art .brand-name small {
  display: block; margin-top: 6px; font-family: var(--font-sans); font-weight: 600; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cover-label);
}

/* agency mark (staff sign-in): the agency owns the cover */
.org-mark { position: relative; display: flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.2; color: #fff; }
.org-mark img { max-height: 44px; max-width: 140px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px; flex: none; }
.org-mark .avatar { width: 40px; height: 40px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: 14px; }

/* the headline sits at the vertical centre, under a short mint rule */
.signin-art h1 {
  font-family: var(--font-serif); font-weight: 500; font-size: 46px; line-height: 1.1; letter-spacing: -.01em; color: var(--cover-cream);
  max-width: 15ch; margin: auto 0 14px;
}
.signin-art h1::before { content: ''; display: block; width: 56px; height: 2px; background: var(--mint); margin-bottom: 26px; }
.signin-art p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--cover-ink); max-width: 42ch; }
.signin-art .foot {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--cover-line);
  font-size: 13px; line-height: 1.4; color: var(--cover-label);
}
.signin-art .foot .logo-mark { width: 22px; height: 22px; }
.signin-art .foot .brand-name { font-family: var(--font-serif); font-weight: 500; font-size: 16px; letter-spacing: 0; color: #fff; }
.signin-art .foot .brand-name .core { color: var(--mint); }

/* the first page */
.signin-form { display: flex; flex-direction: column; padding: 28px 40px; background: var(--bg); }
.signin-form .top-link {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 2px;
  font-weight: 500; font-size: 14px; color: var(--ink-2); transition: color var(--dur-1);
}
.signin-form .top-link .i { width: 14px; height: 14px; }
.signin-form .top-link:hover { color: var(--ink); text-decoration: underline; }
.signin-box { width: 100%; max-width: 400px; margin: auto; padding: 30px 0; }
.signin-box h2 { font-family: var(--font-serif); font-weight: 500; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.signin-box .sub { margin: 8px 0 26px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.signin-box .field + .field { margin-top: 16px; }
.signin .input { min-height: 46px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 78px; }
.pw-wrap .show {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 34px; padding: 6px 8px; border: 0; border-radius: 4px; background: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px; letter-spacing: .005em; color: var(--blue); cursor: pointer;
  transition: background var(--dur-1), color var(--dur-1);
}
.pw-wrap .show:hover { background: var(--blue-soft); color: var(--blue-hover); }
.signin-box .help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.signin-box .help a { color: var(--blue); }

/* "Staff member?" finder under the main sign-in */
.staff-find { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.staff-find .lbl { font-weight: 600; font-size: 14px; color: var(--ink); }
.staff-find p { font-size: 13px; line-height: 1.45; }
.staff-find .link-field { gap: 8px; }
.staff-find .input { min-height: 44px; font-size: 15px; font-weight: 400; letter-spacing: 0; background: #fff; }
.staff-find .btn { min-height: 44px; }

/* paused access and dead links */
.paused { max-width: 520px; margin: 12vh auto; padding: 0 24px; text-align: center; }
.paused h1 { font-size: 30px; }
.solo .paused h1 { font-size: 26px; }
.paused p { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 48ch; margin-left: auto; margin-right: auto; }
.paused .btn { margin-top: 4px; }

/* ======================================================================
   Staff phone pages and the inspector page (the .solo frame)
   ====================================================================== */

.solo { min-height: 100vh; background: var(--bg); }

/* the agency bar: the paper continues under it */
.solo-top {
  position: sticky; top: 0; z-index: 5; background: rgba(244, 241, 234, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .solo-top { background: rgba(244, 241, 234, .97); } }
/* 6px of vertical padding, not 10: a one-line bar is centred in its 60px anyway, and the inspector's two-line sub
   (agency 19px + 2 × 16px + 12px) then makes a 64px bar that still clears the find bar stuck at 68px */
.solo-top .in { max-width: 860px; min-height: 60px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 12px; }
.solo-top .avatar { width: 40px; height: 40px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-family: var(--font-sans); font-weight: 600; font-size: 13px; }
.solo-top img { max-height: 36px; max-width: 120px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 4px; flex: none; }
.solo-top .agency { font-weight: 600; font-size: 15.5px; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the sub may run to two lines ("Read-only copy for: … · works until …" keeps its date on a phone), then clamps */
.solo-top .t {
  font-size: 12.5px; line-height: 1.3; color: var(--ink-3); font-variant-numeric: tabular-nums;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.solo-top .btn-group { flex: none; gap: 4px; }
.solo-top .btn-sm .i { width: 18px; height: 18px; color: var(--ink-2); transition: color var(--dur-1); }
.solo-top .btn-sm:hover .i { color: var(--ink); }

/* sizes a thumb can hit */
.solo .btn-sm { min-height: 40px; min-width: 40px; }
.solo .btn-lg { min-height: 52px; }
.solo .input { min-height: 48px; }

.solo-body { max-width: 860px; margin: 0 auto; padding: 20px 16px 120px; }
/* the instruction line under the hero ("Tap a policy to read it…") is body text, so it sits on the 14px phone floor */
.solo-body > p.small { font-size: 14px; line-height: 1.5; }

/* the dark greeting band: the one cover surface on the staff pages */
.staff-hero {
  display: flex; align-items: center; gap: 18px; padding: 20px; margin-bottom: 18px; border-radius: 10px;
  background: var(--cover); color: var(--cover-ink); contain: paint;
}
.staff-hero .ring { flex: none; }
.staff-hero h1 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; color: var(--cover-cream); }
.staff-hero p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--cover-ink); }
.staff-hero .chart text, .staff-hero .ring text { fill: #fff; }

/* reading-list running heads ("To read", "Acknowledged") */
.solo .list-h { font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
/* inspector section head ("Policies (46)") */
.solo .sec-h { font-size: 24px; }

/* one policy in the reading list */
.read-card {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 16px; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none !important; cursor: pointer; transition: background var(--dur-1);
}
.read-card:first-child { border-top: 0; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.read-card:last-child { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
.read-card:hover, .read-card:active { background: var(--surface-2); }
.read-card:focus-visible { outline-offset: -2px; }
.read-card .grow { flex: 1; min-width: 0; }
.read-card .title { font-family: var(--font-serif); font-weight: 500; font-size: 17.5px; line-height: 1.3; color: var(--ink); }
.read-card .small { margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.read-card .state-ico.again + .grow .small { color: var(--amber-ink); }
.read-card > .i { width: 18px; height: 18px; color: var(--ink-3); transition: color var(--dur-1); }
.read-card:hover > .i { color: var(--ink); }
/* the state ring is the primary cue: empty = not read, teal check = acknowledged, amber refresh = read it again */
.state-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--field); background: transparent; color: transparent; }
.state-ico.done { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.state-ico.again { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-ink); }
.state-ico .i { width: 16px; height: 16px; }

/* one policy: the find bar sits under the 60px agency bar; the paper and the Acknowledge card are reader.css.
   These .solo sizes are owned here (reader.css:259-264 repeats them and can go). The bar is opaque white: with
   the blur off, a translucent fill let the paper's text ghost through beside the prev/next buttons. */
.solo .reader-meta { font-size: 13px; }
.solo .find-bar { top: 68px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow); }
.solo .find-bar .input { min-height: 44px; font-size: 16px; }
.solo .find-bar .icon-btn { width: 40px; height: 40px; }
.solo .paper { border-radius: 6px; }

/* the password card's username */
.solo .kv .mono { font-size: 13.5px; }

/* ======================================================================
   The "staff member's view" stage (markup in app.js; --accent is teal-ink here)
   ====================================================================== */

.stage-shell { min-height: 100vh; background: var(--bg); }
.stage-shell .topbar .brand { display: flex; }
.stage { max-width: 1100px; margin: 0 auto; padding: 28px 24px 48px; display: grid; grid-template-columns: 410px minmax(0, 1fr); gap: 40px; align-items: start; }
.phone {
  position: relative; width: 390px; height: min(800px, calc(100vh - 130px)); min-height: 560px; border-radius: 48px; padding: 12px;
  background: #141A20; box-shadow: 0 30px 70px rgba(22, 34, 44, .3), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; width: 104px; height: 26px; margin-left: -52px; border-radius: 20px; background: #050C14; z-index: 2; }
.phone .screen { height: 100%; border-radius: 38px; overflow: hidden; background: var(--bg); padding-top: 40px; }
.phone iframe { width: 100%; height: 100%; border: 0; background: var(--bg); display: block; }

.stage-info .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-family: var(--font-sans); font-weight: 600; font-size: 12px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink);
}
.stage-info .eyebrow .i { width: 16px; height: 16px; }
.stage-info h1 { font-size: 34px; }
.stage-info .lead { margin: 10px 0 22px; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }
.stage-info .row-between strong { font-size: 14px; }
/* a row scrolled half out at the top fades the way rows do at the bottom; the top fade is short (16px) because
   app.js parks the chosen person 6px below the edge and their ring must stay crisp */
.people {
  display: grid; gap: 6px; max-height: 330px; overflow-y: auto; padding: 12px 4px 40px; margin: 0 -4px;
  -webkit-mask-image: linear-gradient(transparent, #000 16px, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 16px, #000 88%, transparent);
}
.person-pick {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.person-pick:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.person-pick.on { border-color: var(--teal-ink); box-shadow: var(--accent-ring); }
.person-pick .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; font-size: 13px; }
.person-pick .grow { flex: 1; min-width: 0; }
.person-pick .n { font-weight: 600; font-size: 14px; line-height: 1.3; }
.person-pick .j { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.facts li .i { width: 16px; height: 16px; color: var(--teal-ink); margin-top: 3px; }

/* ======================================================================
   Responsive and print rules for this area (the former legacy-responsive.css values live here)
   ====================================================================== */

@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; justify-items: center; }
  .stage-info { order: -1; justify-self: stretch; }
}
@media (max-width: 900px) {
  .signin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .signin-art { padding: 26px 22px; }
  .signin-art::after { display: none; }
  .signin-art h1 { font-size: 28px; margin-top: 24px; max-width: none; }
  .signin-art h1::before { width: 40px; margin-bottom: 16px; }
  .signin-art p, .signin-art .foot { display: none; }
  .org-mark { font-size: 20px; }
  .signin-form { padding: 20px; }
  .signin-box h2 { font-size: 28px; }   /* no larger than the cover headline above it or any other phone page title */
  .signin-box .sub { margin-bottom: 20px; }
  .signin .input { min-height: 48px; }
  .signin .btn-lg { min-height: 52px; }
  .pw-wrap .show { min-height: 40px; }
}
@media (max-width: 640px) {
  .signin-form { padding: 16px 16px 32px; }
  .signin-box { padding: 22px 0; }
  .solo .paper { padding: 24px 18px 28px; font-size: 16.5px; line-height: 1.65; }
  .phone { width: 100%; max-width: 390px; }
  .stage { padding: 18px 12px 40px; }
}
@media (pointer: coarse) {
  .solo .btn-sm { min-height: var(--tap); min-width: var(--tap); }
  .pw-wrap .show { min-height: 40px; }
  .signin-form .top-link { min-height: var(--tap); }
}
@media print {
  .solo-top, .staff-hero, .signin-art::after, .phone { display: none !important; }
  .solo-body { padding: 0; max-width: none; }
  .solo, .stage-shell { background: #fff; }
}

/* ======================================================================
   Bento layer (October 2026): sign-in, staff phone pages, inspector, stage as plates
   ======================================================================
   The sign-in cover becomes an inset navy plate with the website hero's light and the form sits on a
   white plate; the staff greeting band is a navy plate; the agency bar floats as a frosted plate; the
   paper and the reading list round off. Phones keep every 44px target. */

.signin { padding: 16px; gap: 16px; background: var(--bg); }
.signin-art { border-radius: var(--r-plate-xl); background: var(--navy-plate); box-shadow: var(--plate-navy); }
.signin-art::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.signin-form { background: transparent; padding: 20px 24px; }
.signin-box {
  max-width: 452px; padding: 36px 36px 32px; border-radius: var(--r-plate-xl);
  background: var(--surface); box-shadow: var(--plate);
}
.pw-wrap .show { border-radius: 999px; padding: 6px 12px; }
.org-mark img, .org-mark .avatar { border-radius: 12px; }

.solo-top { background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 10px 12px 0; }
.solo-top .in {
  border-radius: 22px; padding: 6px 10px 6px 12px;
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 0 0 1px rgba(227, 221, 209, .9) inset, 0 10px 30px -14px rgba(22, 34, 44, .28);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .solo-top { background: transparent; } .solo-top .in { background: rgba(255, 255, 255, .97); } }
.solo-top .avatar, .solo-top img { border-radius: 12px; }
.solo-body { padding-top: 24px; }

.staff-hero {
  border-radius: var(--r-plate); padding: 22px 22px; margin-bottom: 22px; position: relative;
  background: var(--navy-plate); box-shadow: var(--plate-navy);
}
.read-card { padding: 16px 18px; }
.state-ico.done { background: linear-gradient(145deg, #13917F, var(--teal-ink)); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 4px 8px -4px rgba(11, 107, 94, .6); }

/* the find bar sits under the floating agency bar: 10px + the 60px bar + 8px */
.solo .find-bar { top: 78px; border: 0; border-radius: 999px; box-shadow: 0 0 0 1px rgba(227, 221, 209, .9) inset, 0 12px 30px -14px rgba(22, 34, 44, .3); }
.solo .paper { border-radius: var(--r-plate); }

.person-pick { border: 0; border-radius: var(--r-plate-md); box-shadow: var(--plate-flat); transition: box-shadow .25s var(--ease-plate), transform .25s var(--ease-plate); }
@media (hover: hover) { .person-pick:hover { box-shadow: var(--plate); transform: translateY(-2px); } }
.person-pick.on { box-shadow: 0 0 0 2px var(--teal-ink), var(--plate); }
.phone { border-radius: 52px; box-shadow: 0 40px 80px -30px rgba(22, 34, 44, .6), 0 0 0 1.5px rgba(255, 255, 255, .08) inset; }

@media (max-width: 900px) {
  .signin { padding: 10px; gap: 10px; }
  .signin-art { border-radius: 24px; }
  .signin-form { padding: 6px 0 20px; }
  .signin-box { padding: 26px 20px 24px; border-radius: 24px; }
}
@media (max-width: 640px) {
  .signin-box { padding: 24px 18px 22px; }
  .solo .paper { border-radius: 20px; }
}
@media print {
  .signin-box, .solo .paper, .staff-hero { box-shadow: none !important; }
  .solo-top .in { box-shadow: none; }
}

/* ----------------------------------------------------------------------
   Kept for one release (October 2026): the gradient rules the flat cover replaced.
   .stage-shell { background: radial-gradient(900px 500px at 15% 0%, #E3EEF7 0%, transparent 60%), radial-gradient(800px 500px at 100% 100%, #E1F3EF 0%, transparent 60%), var(--bg); }
   .phone { background: linear-gradient(145deg, #1B2D3F, #0A1826); box-shadow: 0 30px 70px rgba(10, 33, 53, .35), inset 0 0 0 2px rgba(255,255,255,.08); }
   .signin-art { background: radial-gradient(900px 500px at 0% 0%, rgba(36,112,168,.55) 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(30,156,138,.45) 0%, transparent 60%), var(--navy); }
   .signin-art .grid-bg { background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(600px 400px at 30% 40%, #000, transparent); }
   .staff-hero { background: linear-gradient(135deg, var(--navy), var(--blue-deep)); }
   ---------------------------------------------------------------------- */
