/* OpalCAD — Opal brand styling (matches theopaldesigners.com: paper, ink, teal, night). */
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #ededea; --paper-2: #f7f7f4; --ink: #121515; --ink-soft: #535b5d;
  --teal: #037b89; --teal-deep: #05545d; --night: #062a2f; --glow: #8ee6ee;
  --mist: #c5c5c5; --sand: #e7ddcf; --oak: #c79c6c;
  --bg: var(--paper); --surface: var(--paper-2); --fg: var(--ink); --muted: var(--ink-soft);
  --line: #d6d6d1; --accent: var(--teal); --accent-fg: #fff; --warn: #9a5b00;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
       font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--teal); color: #fff; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3em; }
em.accent, .accent-serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--teal); letter-spacing: 0; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px;
       background: rgb(237 237 234 / .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 3px; flex: none; }
.wordmark { font-weight: 650; font-size: 1.28rem; letter-spacing: -.02em; line-height: 1; }
.wordmark em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--teal); font-size: 1.12em; margin-right: 1px; letter-spacing: 0; }
.account { display: flex; align-items: center; gap: 12px; margin: 0; }
.who { color: var(--muted); font-size: .92rem; }

main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--teal); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 650; margin: 0 0 22px; }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--teal); letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 58ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
       border-radius: 10px; border: 1px solid #c9c9c3; background: var(--paper-2); color: var(--ink);
       font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), border-color .2s, transform .2s var(--ease); }
.btn:hover { border-color: var(--ink-soft); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-quiet { min-height: 34px; padding: 0 12px; font-size: .88rem; border-radius: 8px; }
.note { max-width: 58ch; padding: 14px 18px; border-left: 2px solid var(--teal); background: rgb(3 123 137 / .06);
        border-radius: 0 10px 10px 0; color: var(--muted); font-size: .95rem; margin: 0; }
.note strong { color: var(--ink); }

/* Rebate notch, as on the Opal site (square cut-out top right). */
.notch { --n: var(--notch, 48px); --r: calc(var(--n) * .3);
  -webkit-mask: linear-gradient(#000 0 0) left top / calc(100% - var(--n) + 1px) 100% no-repeat, linear-gradient(#000 0 0) right bottom / var(--n) calc(100% - var(--n)) no-repeat,
    radial-gradient(circle at 100% 0, #0000 calc(var(--r) - .5px), #000 var(--r)) right calc(var(--n) - var(--r)) top calc(var(--n) - var(--r)) / var(--r) var(--r) no-repeat;
  mask: linear-gradient(#000 0 0) left top / calc(100% - var(--n) + 1px) 100% no-repeat, linear-gradient(#000 0 0) right bottom / var(--n) calc(100% - var(--n)) no-repeat,
    radial-gradient(circle at 100% 0, #0000 calc(var(--r) - .5px), #000 var(--r)) right calc(var(--n) - var(--r)) top calc(var(--n) - var(--r)) / var(--r) var(--r) no-repeat; }
.blueprint { background-color: var(--night); background-image:
    linear-gradient(to right, rgb(142 230 238 / .07) 1px, transparent 1px), linear-gradient(to bottom, rgb(142 230 238 / .07) 1px, transparent 1px),
    linear-gradient(to right, rgb(142 230 238 / .12) 1px, transparent 1px), linear-gradient(to bottom, rgb(142 230 238 / .12) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; }

/* Landing: drawing panel beside the headline */
.hero-art { --notch: 64px; position: relative; aspect-ratio: 5 / 4; border-radius: 22px; overflow: hidden; color: var(--glow); }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .cmd { position: absolute; left: 18px; right: 18px; bottom: 16px; font: 500 .82rem/1.5 var(--mono); color: rgb(142 230 238 / .85);
  background: rgb(6 42 47 / .82); border: 1px solid rgb(142 230 238 / .2); border-radius: 8px; padding: 8px 12px; }
.hero-art .cmd b { color: #fff; font-weight: 600; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 72px; }
.feature { --notch: 34px; padding: 24px; background: var(--paper-2); border-radius: 16px; }
.feature .num { font: 500 .78rem var(--mono); color: var(--teal); }
.feature h2 { font-size: 1.12rem; margin: 10px 0 8px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Message / no-access panels */
.panel { --notch: 40px; max-width: 720px; padding: 32px; background: var(--paper-2); border-radius: 18px; }
.panel h1 { margin: 0 0 12px; font-size: 1.9rem; letter-spacing: -.025em; }
/* Public landing page: our story (v1.12.0) */
.story { margin-top: 72px; max-width: 780px; }
.story h2 { margin: 0 0 14px; font-size: 1.45rem; letter-spacing: -.02em; }
.story p { margin: 0 0 12px; color: var(--muted); }
.story p:last-child { margin-bottom: 0; }
.story strong { color: var(--ink); }
.warn { color: var(--warn); }
.tag { font-size: .74rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.foot { padding: 22px 28px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--teal); text-decoration: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr; margin-top: 48px; }
}
@media (max-width: 600px) {
  .top { padding: 12px 16px; }
  main { padding: 36px 16px; }
  .who { display: none; }
  .panel { padding: 22px; }
  .wordmark { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; } }

/* ---------------------------------------------------------------- Public accounts (v1.13.0) */
.acct-nav { display: flex; align-items: center; gap: 8px; margin: 0; }
.acct-nav form { margin: 0; }
.acct-main { max-width: 560px; padding-top: 48px; }
.acct-wide { max-width: 860px; }
.acct-card, .acct-panel { --notch: 34px; background: var(--paper-2); border-radius: 16px; padding: 30px; margin: 0 0 18px; }
.acct-card h1 { margin: 0 0 8px; font-size: 1.8rem; letter-spacing: -.025em; }
.acct-head h1 { margin: 0 0 4px; font-size: 2rem; letter-spacing: -.025em; }
.acct-head { margin: 0 0 22px; }
.acct-panel h2 { margin: 0 0 14px; font-size: 1.22rem; letter-spacing: -.015em; }
.acct-panel h3 { margin: 22px 0 10px; font-size: 1rem; }
.acct-lead { color: var(--muted); margin: 0 0 20px; }
.acct-field { display: grid; gap: 6px; margin: 0 0 16px; }
.acct-field label { font-weight: 600; font-size: .92rem; }
.acct-field input { font: inherit; min-height: 44px; padding: 0 12px; border: 1px solid #c9c9c3; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.acct-field input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.acct-field input[readonly] { background: var(--paper); color: var(--muted); }
.acct-field.has-error input { border-color: #b3261e; }
.acct-hint { margin: 0; color: var(--muted); font-size: .86rem; }
.acct-err { margin: 0; color: #b3261e; font-size: .88rem; font-weight: 600; }
.acct-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; margin: 0 0 14px; font-size: .94rem; }
.acct-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--teal); }
.acct-check .acct-err { grid-column: 2; }
.acct-check a, .acct-small a, .acct-switch a, .acct-hint a, .acct-alert a { color: var(--teal-deep); }
.acct-submit { width: 100%; margin-top: 6px; }
.acct-small { font-size: .9rem; margin: 14px 0 0; }
.acct-switch { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .94rem; color: var(--muted); }
.acct-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .85rem; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct-google { width: 100%; background: #fff; }
.acct-google .g-mark { flex: none; }
.acct-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; font-size: .94rem; }
.acct-notice { background: rgb(3 123 137 / .08); border-left: 3px solid var(--teal); }
.acct-error { background: #fbecea; border-left: 3px solid #b3261e; color: #6e1610; }
.acct-next { background: var(--night); color: #e6f6f7; }
.acct-next h2 { color: #fff; }
.acct-next p { margin: 0; color: #b9d8db; }
.acct-method { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; }
.acct-method form { margin: 0 0 0 auto; }
.acct-sessions { list-style: none; margin: 0 0 14px; padding: 0; }
.acct-session { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-session form { margin: 0; }
.acct-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgb(3 123 137 / .12); color: var(--teal-deep); font-size: .76rem; font-weight: 600; }
.acct-danger { border: 1px solid #e5c3bf; }
.acct-danger-banner { background: #fbecea; }
.acct-danger-banner form { margin: 0; }
.acct-btn-danger { background: #fff; border-color: #b3261e; color: #8f1d17; }
.acct-btn-danger:hover { background: #b3261e; color: #fff; border-color: #b3261e; }
.acct-panel form + form, .acct-panel p + form { margin-top: 8px; }

/* Privacy Policy and Terms */
.legal { background: var(--paper-2); border-radius: 16px; padding: 36px; line-height: 1.65; }
.legal h1 { margin: 0 0 6px; font-size: 2rem; letter-spacing: -.025em; }
.legal h2 { margin: 34px 0 10px; font-size: 1.3rem; letter-spacing: -.015em; scroll-margin-top: 90px; }
.legal h3 { margin: 22px 0 8px; font-size: 1.05rem; scroll-margin-top: 90px; }
.legal a { color: var(--teal-deep); }
.legal ul { padding-left: 1.3em; }
.legal-summary { margin: 18px 0; padding: 16px 20px; border-left: 3px solid var(--teal); background: rgb(3 123 137 / .06); border-radius: 0 12px 12px 0; }
.legal-toc { margin: 18px 0 8px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 12px; font-size: .94rem; }
.legal-toc ol, .legal-toc ul { margin: 6px 0 0; padding-left: 1.2em; }
.foot a { color: var(--teal); }

@media (max-width: 600px) {
  .acct-main { padding-top: 24px; }
  .acct-card, .acct-panel, .legal { padding: 22px 18px; }
  .acct-nav .btn-primary { display: none; }
  .acct-session { flex-direction: column; align-items: flex-start; }
}
/* ---------------------------------------------------------------- Teams and workspaces (P3) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.team-wide { max-width: 1080px; }
.team-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
.team-crumbs a { color: var(--teal-deep); }
.team-crumb-sep { color: var(--mist); }
.team-h1 { margin: 0 0 8px; font-size: 1.8rem; letter-spacing: -.025em; }
.team-actions, .acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.team-handle { display: block; color: var(--muted); font-size: .86rem; font-weight: 400; }
.team-muted { color: var(--muted); }
.team-tag-muted { background: var(--paper); color: var(--muted); }
.team-bullets { margin: 0 0 16px; padding-left: 1.2em; }
.team-bullets li { margin: 0 0 6px; }
.team-list { list-style: none; margin: 0 0 14px; padding: 0; }
.team-list > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team-list > li > div { display: grid; gap: 2px; min-width: 0; }
.team-list a { color: var(--teal-deep); }
.team-list .acct-hint { display: block; }
.team-people-inline { list-style: none; margin: 4px 0 0; padding: 0; font-size: .92rem; }
.team-people-inline li { margin: 2px 0; }
.team-people-inline .team-handle { display: inline; }
.acct-teams { list-style: none; margin: 0; padding: 0; }
.acct-teams li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acct-teams a { color: var(--teal-deep); }

/* Inline forms in rows (change a position, remove, cancel). */
.team-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.acct-panel form.team-inline + form.team-inline { margin-top: 0; }
.team-inline select, .acct-field select, .acct-choice select {
  font: inherit; min-height: 34px; padding: 0 30px 0 10px; border: 1px solid #c9c9c3; border-radius: 8px; background: #fff; color: var(--ink); max-width: 100%; }
.acct-field select { min-height: 44px; border-radius: 10px; width: 100%; }
.team-inline select:focus, .acct-field select:focus, .acct-choice select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.team-row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* Tables of people, activity and the compare grid. */
.team-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .95rem; }
.team-table th, .team-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.team-table thead th { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.team-table tbody th { font-weight: 600; }
.team-scroll { position: relative; overflow-x: auto; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.team-scroll:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.compare-table { margin: 0; font-size: .9rem; }
.compare-table thead th { white-space: nowrap; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: .86rem; }
.compare-table th:first-child { position: sticky; left: 0; background: #fff; min-width: 190px; }
.compare-table td { text-align: center; }
.compare-group th { background: var(--paper); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.compare-table .compare-group th:first-child { background: var(--paper); }
.compare-yes { color: var(--teal-deep); font-weight: 700; }

/* Positions: one card each, permissions grouped as checkboxes with their explanation. */
.pos-card { padding: 18px 0 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.pos-card:last-child { border-bottom: 0; }
.pos-card h3 { margin: 0 0 2px; }
.pos-card > p { margin: 8px 0; }
.pos-more { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.pos-delete label { font-size: .9rem; color: var(--muted); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 16px; }
.perm-group { margin: 0; padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.perm-group legend { padding: 0 6px; font-weight: 650; font-size: .92rem; }
.perm-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; margin: 0 0 10px; }
.perm-item input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--teal); }
.perm-item label { font-size: .94rem; font-weight: 600; }
.perm-item .acct-hint { grid-column: 2; font-size: .82rem; }
.perm-item input:disabled + label { color: var(--muted); }
.team-who-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; align-items: end; }
.team-who-form .btn { margin-bottom: 16px; justify-self: start; }
.who-table td { white-space: normal; }
.team-invite > .acct-hint:last-child { margin-top: 18px; }

/* Account deletion: a choice for each team the person runs. */
.acct-choice { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.acct-choice legend { padding: 0 6px; font-weight: 650; }
.acct-choice legend .acct-hint { display: inline; font-weight: 400; margin-left: 6px; }
.acct-radio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0; }
.acct-radio input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }

@media (max-width: 600px) {
  /* Rows become cards on phones; the compare grid scrolls inside its own box. */
  .team-table:not(.compare-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .team-table:not(.compare-table), .team-table:not(.compare-table) tbody, .team-table:not(.compare-table) tr,
  .team-table:not(.compare-table) td, .team-table:not(.compare-table) tbody th { display: block; width: 100%; }
  .team-table:not(.compare-table) tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .team-table:not(.compare-table) td, .team-table:not(.compare-table) tbody th { border: 0; padding: 3px 0; }
  .team-table td[data-label]::before { content: attr(data-label); display: block; font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .team-row-actions { justify-content: flex-start; }
  .team-table:not(.compare-table) .team-actions-cell { padding-top: 6px; }
  .team-list > li { align-items: flex-start; }
  .compare-table th:first-child { min-width: 150px; }
}
.legal-updated { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }
.legal code { background: var(--paper); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- Sharing (P4): links, codes, the Sharing page */
.share-eyebrow { margin: 0 0 6px; color: var(--teal); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.share-card h1 { overflow-wrap: anywhere; }
.share-after { margin-top: 18px; }
.share-facts { display: grid; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.share-facts > div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.share-facts dt { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 600; }
.share-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.share-facts-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 18px; border-top: 0; margin: 10px 0 12px; }
.share-facts-row > div { grid-template-columns: 1fr; gap: 2px; padding: 6px 0; border-bottom: 0; }
.share-facts-row dt { font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.share-check { margin: 4px 0 14px; }
.share-check .acct-hint { grid-column: 2; }

/* The join code box: large, letter-spaced, one line. */
.acct-field .share-code-input { min-height: 64px; padding: 0 16px; font-family: var(--mono); font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 600;
  letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.share-code-input::placeholder { color: var(--mist); letter-spacing: .18em; }

/* Waiting to be let in (the page reloads itself; the dot only shows it's alive). */
.share-wait { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-weight: 600; }
.share-spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgb(3 123 137 / .2); border-top-color: var(--teal); animation: share-spin 1s linear infinite; flex: none; }
@keyframes share-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .share-spinner { animation: none; border-color: var(--teal); } }

/* The Sharing page: requests and one card per link or code. */
.share-requests .share-decide { gap: 8px; }
.share-links { list-style: none; margin: 0 0 8px; padding: 0; }
.share-link { padding: 16px 0; border-bottom: 1px solid var(--line); }
.share-link:last-child { border-bottom: 0; }
.share-link.is-off { color: var(--muted); }
.share-link-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.share-link-head h4 { margin: 0 6px 0 0; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.share-link-head .acct-tag { margin-left: 0; }
.share-joined { margin: 0 0 10px; font-size: .94rem; }
.share-joined-label { font-weight: 600; }
.share-inline { display: inline; }
.share-off { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; }
.share-off .share-check { margin: 0; }

/* A link just made on the team page: shown once, ready to copy. */
.share-made { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: rgb(3 123 137 / .08); border-left: 3px solid var(--teal); }
.share-made .acct-field { margin-bottom: 8px; }
.acct-field input.share-url { font-family: var(--mono); font-size: .9rem; background: #fff; color: var(--ink); }
.share-made .acct-hint + .acct-hint { margin-top: 4px; }
.share-warn strong { color: var(--ink); }

@media (max-width: 600px) {
  .share-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .share-requests .share-decide { width: 100%; }
  .share-requests .share-decide .btn { flex: 1; }
}
