/* Inside, softer (164): loaded after app.css and the client's theme.css on every logged-in page.
   Less boxy: no hard borders around sheets, soft corners and shadows, round buttons, more air.
   Variables only, so each client's theme still decides the colours. Remove the <link> in partials/head.php to go back. */
:root {
  --soft-radius: 18px;
  --soft-shadow: 0 1px 2px rgba(7, 18, 31, .04), 0 12px 34px rgba(7, 18, 31, .05);
  --soft-shadow-hover: 0 2px 4px rgba(7, 18, 31, .05), 0 18px 44px rgba(7, 18, 31, .09);
  --soft-line: color-mix(in srgb, var(--line) 65%, transparent);
}

/* ---------- Every inside page ---------- */
.sheet { border: 0; border-radius: var(--soft-radius); box-shadow: var(--soft-shadow); }
.sheet + .sheet, .work-grid .sheet + .sheet { margin-top: 24px; }
.attention-sheet { border-left: 0; box-shadow: inset 3px 0 0 var(--accent), var(--soft-shadow); }
.dark-panel { border-radius: var(--soft-radius); }
.dark-panel + .dark-panel { margin-top: 24px; }
.rows li, .stream li { border-top-color: var(--soft-line); }
.data-table td { border-bottom-color: var(--soft-line); }
.btn-gold, .button-link, button.small, button.ghost { border-radius: 999px; }
.move-card { border-radius: var(--soft-radius); }
.ok, .err { border-radius: 12px; }
.chip { border-radius: 999px; }
.panel { border: 0; border-radius: var(--soft-radius); box-shadow: var(--soft-shadow); }
.top { border-bottom-color: rgba(255, 255, 255, .06); }

/* ---------- Home by role (164) ---------- */
.home2-band { padding-bottom: clamp(28px, 4vw, 44px); }
.home2-band .home2-summary { margin-top: 18px; color: var(--gold-on-ink, var(--accent)); font-weight: 500; }

.lens-bar { position: sticky; top: 0; z-index: 40; margin: 0 -16px; padding: 12px 16px;
            background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--soft-line); }
.lens-bar-inner { max-width: 920px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lens-bar-inner::-webkit-scrollbar { display: none; }
.lens-pill { width: auto; flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; background: transparent; color: var(--text);
             border: 1px solid var(--line); font-size: .88rem; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.lens-pill:hover { filter: none; border-color: var(--accent); }
.lens-pill.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.lens-count { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: var(--ink);
              font-size: .74rem; font-weight: 700; text-align: center; line-height: 1.4; }

.home2 { max-width: 920px; margin: clamp(8px, 2vw, 16px) auto 0; }
.home2 > .ok { margin: 24px 0 0; }
.home2-sec { padding: clamp(30px, 4.5vw, 48px) 0; border-top: 1px solid var(--soft-line); animation: home2-in .35s ease both; }
.home2-sec:first-of-type, .home2 > .ok + .home2-sec { border-top: 0; }
.home2-sec[hidden] { display: none; }
@keyframes home2-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.lens-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.lens-head .eyebrow { margin: 0; }
.lens-head h2 { margin: 6px 0 0; font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
.lens-head > a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.lens-note { margin: 0; line-height: 1.6; }
.sub-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 22px 0 2px; }
.sub-eyebrow:first-child, .todo + .sub-eyebrow { margin-top: 4px; }

/* To-dos inside a role: a gold dot, the sentence, one action */
.todo { list-style: none; padding: 0; margin: 0 0 14px; }
.todo li { display: grid; grid-template-columns: 8px 1fr auto; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--soft-line); }
.todo li:last-child { border-bottom: 0; }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); align-self: center; }
.todo li.urgent .todo-text { font-weight: 600; }
.todo .todo-text { line-height: 1.5; }
.todo .todo-text .spinner { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.todo a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.home2-sec[data-lens="member"] > .todo { padding: 4px 22px; background: var(--surface); border-radius: var(--soft-radius); box-shadow: inset 3px 0 0 var(--accent), var(--soft-shadow); }

/* Quiet lists: names in the serif, one action at the right, hairlines only */
.quiet-list { list-style: none; padding: 0; margin: 0; }
.quiet-list li { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--soft-line); }
.quiet-list li:first-child { border-top: 0; }
.quiet-list .ql-name { font-family: var(--serif); font-size: 1.18rem; text-decoration: none; color: var(--text) !important; }
.quiet-list .ql-name:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.quiet-list .ql-go { margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap; }
.quiet-list .small-note { margin: 0; }
.quiet-list.engaged li > div { flex: 1 1 320px; }
.quiet-list.engaged p { margin: 2px 0 0; }

/* Where you can make a difference: light cards with a gold edge (no navy blocks) */
.soft-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.soft-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px; border-radius: var(--soft-radius);
             background: var(--surface); box-shadow: var(--soft-shadow); color: var(--text) !important; text-decoration: none;
             transition: transform .25s ease, box-shadow .25s ease; }
.soft-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), transparent 85%); }
.soft-card:hover { transform: translateY(-3px); box-shadow: var(--soft-shadow-hover); }
.soft-type { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--link, var(--accent)); }
.soft-card strong { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; line-height: 1.2; }
.soft-text { color: var(--muted); font-size: .95rem; line-height: 1.55; flex: 1; }
.soft-cta { font-weight: 600; font-size: .92rem; color: var(--link, var(--accent)); }

/* Admin numbers */
.lens-stats { display: flex; flex-wrap: wrap; gap: 18px 40px; }
.lens-stats a { text-decoration: none; color: var(--muted) !important; font-size: .9rem; }
.lens-stats b { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 500; color: var(--text); line-height: 1.1; }
.lens-stats a:hover b { color: var(--link, var(--accent)); }

/* More ways to take part */
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pill-links a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .2s; }
.pill-links a:hover { border-color: var(--accent); }
.fold { border-top: 1px solid var(--soft-line); padding: 14px 0; }
.fold > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-weight: 400; color: var(--muted); }
.fold[open] > summary::before { content: "–"; }
.fold > *:not(summary) { margin-left: 32px; }
.fold .share-links { display: flex; gap: 18px; font-size: .92rem; }
.fold select { max-width: 420px; }

@media (max-width: 640px) {
  .todo li { grid-template-columns: 8px 1fr; }
  .todo li > a { grid-column: 2; }
  .quiet-list .ql-go { margin-left: 0; width: 100%; }
  .fold > *:not(summary) { margin-left: 0; }
  .soft-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .home2-sec { animation: none; } .soft-card { transition: none; } }

/* Home: clearer grouping (167). Each role is its own soft card; its to-dos sit in a tinted strip above its list,
   so sections and items never float together, whatever is shown. */
.home2-sec.lens, .home2-sec[data-lens="member"]:not(:first-of-type) { border-top: 0; }
.home2-sec.lens { margin: 22px 0; padding: clamp(24px, 3.5vw, 36px); background: var(--surface); border-radius: var(--soft-radius);
                  box-shadow: inset 3px 0 0 var(--accent), var(--soft-shadow); }
.home2-sec.lens .lens-head { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--soft-line); }
.home2-sec.lens .todo { margin: 0 0 18px; padding: 4px 18px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.home2-sec.lens .todo li { border-bottom-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.home2-sec.lens .todo + .quiet-list, .home2-sec.lens .todo + .lens-stats, .home2-sec.lens .todo + .lens-note { margin-top: 6px; }
.home2-sec.lens .quiet-list li:first-child { border-top: 0; }
.home2-sec[data-lens="member"] { padding: clamp(30px, 4.5vw, 44px) 0; }
.home2-sec[data-lens="member"] + .home2-sec.lens, .home2-sec.lens + .home2-sec[data-lens="member"] { margin-top: 30px; }
.home2-sec.lens + .home2-sec[data-lens="member"] { border-top: 1px solid var(--soft-line); }
@media (max-width: 640px) { .home2-sec.lens { margin: 16px -4px; padding: 22px 18px; } .home2-sec.lens .todo { padding: 2px 14px; } }
