/* rivetai.xyz app pages (SIDE-103): signed-in home, Link Studio, Allow this app, credits. Builds on site.css. */
main.app, main { width: 100%; }
.top-form { margin: 0; }
button.top-link { background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 520; cursor: pointer; border: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.card { padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card.solo { max-width: 460px; width: 100%; margin: 40px auto 0; justify-items: center; text-align: center; }
.card h2 { margin: 0; font-size: 15px; font-weight: 620; letter-spacing: .01em; color: var(--text-2); }
.title { margin: 0; font-size: clamp(24px, 4.5vw, 32px); line-height: 1.15; letter-spacing: -.01em; font-weight: 640; overflow-wrap: anywhere; }
.big { margin: 0; font-size: 40px; line-height: 1; font-weight: 680; letter-spacing: -.02em; }
.code { margin: 0; font: 600 clamp(30px, 8vw, 44px)/1.1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; overflow-wrap: anywhere; }
.muted { margin: 0; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.fine { margin: 0; color: var(--text-3); font-size: 13px; }
.copy { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 6px 6px 6px 12px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-2); }
.copy code { flex: 1; min-width: 0; font: 13.5px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-full); background: var(--sheen); color: var(--text);
  font: 520 14px/1 "Inter", system-ui, sans-serif; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); justify-self: start; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--glass-rim); }
.button.small { min-height: 38px; padding: 0 18px; font-size: 14px; justify-self: start; }
.button:not(.primary) { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); background: none; border: 0; cursor: pointer; font-family: inherit; }
button.button.primary { border: 0; cursor: pointer; font-family: inherit; }
.chip:focus-visible, .button:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
details summary { cursor: pointer; font-size: 14px; color: var(--text-2); }
details ol, .steps { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14px; display: grid; gap: 4px; text-align: left; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; min-width: 0; }
.list li > span { min-width: 0; overflow-wrap: anywhere; }
.list form { margin: 0; flex: none; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--text-3); vertical-align: middle; }
.dot.on { background: #83ae93; }
.can { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; font-size: 15px; }
.can li::before { content: "·"; margin-right: 8px; color: var(--accent-ink); font-weight: 700; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.stack { display: grid; gap: 14px; justify-items: center; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
select { min-height: 34px; padding: 0 10px; border-radius: var(--r-md); border: 0; background: var(--surface); color: var(--text); font: 14px "Inter", system-ui, sans-serif; box-shadow: inset 0 0 0 1px var(--line-2); }
.danger { margin-top: 4px; padding: 0 4px; }
.danger form { margin-top: 10px; }
.fine + .button, .muted + .button { margin-top: 4px; }

/* ---------- The dashboard, direction A "Atelier" (SIDE-114, owner 2026-11-07) ---------- */
/* Editorial and quiet: a greeting, one "Next" card, three numbers on hairlines, connecting and the account. */
:root { --ok: #83ae93; }
@media (prefers-color-scheme: light) { :root { --ok: #2f7d55; } }
/* A calmer background for the app pages: one warm glow instead of three colours. */
body { background-image: radial-gradient(70rem 32rem at 82% -12%, rgb(227 207 174 / .07), transparent 70%); }
@media (prefers-color-scheme: light) { body { background-image: radial-gradient(70rem 32rem at 82% -12%, rgb(170 130 70 / .08), transparent 70%); } }
main { gap: 24px; }
.top { gap: 32px; }
.top-nav { display: flex; gap: 26px; flex: 1; }
.top-nav a { font-size: 14px; color: var(--text-3); text-decoration: none; padding: 6px 0; }
.top-nav a.on { color: var(--text); box-shadow: inset 0 -1.5px 0 var(--text); }
.top-nav a:hover { color: var(--text); }
.me { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 600; }
.top-link.quiet { box-shadow: none; background: none; color: var(--text-3); padding: 6px 4px; }
.top-link.quiet:hover { color: var(--text); }
.label { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.at-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; padding: 40px 0 20px; }
.at-hello h1 { margin: 14px 0 12px; font-size: clamp(36px, 5vw, 58px); line-height: 1.03; letter-spacing: -.035em; font-weight: 600; overflow-wrap: anywhere; }
.at-sub { margin: 0; font-size: 18px; color: var(--text-2); }
.at-next { display: grid; justify-items: start; padding: 24px 26px; border-radius: 22px; min-width: 0;
  background: linear-gradient(160deg, rgb(255 255 255 / .05), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -40px rgb(0 0 0 / .7); }
.at-next-title { margin: 12px 0 6px; font-size: 22px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.at-next-title b { font-weight: 650; }
.at-next-text { margin: 0 0 16px; color: var(--text-2); }
.at-next-meta { justify-self: stretch; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.at-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.at-stats > div { padding: 22px 24px 24px 0; min-width: 0; }
.at-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.at-big { margin: 10px 0 4px; font-size: 44px; line-height: 1; letter-spacing: -.03em; font-weight: 300; font-variant-numeric: tabular-nums; }
.at-big span { font-size: 18px; color: var(--text-3); letter-spacing: 0; font-weight: 400; }
.at-studio { display: flex; align-items: center; gap: 12px; font-size: 30px; }
.at-studio .dot { width: 10px; height: 10px; margin: 0; }
.at-studio .dot.on { background: var(--ok); box-shadow: 0 0 0 5px rgb(131 174 147 / .16); }
.at-note { margin: 0; font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-note a { color: var(--text-2); }
.at-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 20px 0 8px; }
.at-section { min-width: 0; }
.at-section h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.02em; font-weight: 600; }
.at-section .copy { padding: 8px 8px 8px 18px; border-radius: 14px; background: var(--surface); margin-bottom: 18px; }
.at-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 14px; }
.at-steps li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
.at-steps b { color: var(--text); font-weight: 600; }
.at-rows { list-style: none; margin: 0 0 8px; padding: 0; }
.at-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); min-width: 0; }
.at-rows li:first-child { border-top: 0; padding-top: 0; }
.at-rows li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-rows b { color: var(--text); font-weight: 600; margin-right: 8px; }
.at-rows form { margin: 0; flex: none; }
.text-button { padding: 4px 0; border: 0; background: none; color: var(--text-2); font: 520 13px/1 "Inter", system-ui, sans-serif; text-decoration: none; cursor: pointer; flex: none; }
.text-button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.text-button:focus-visible, .top-nav a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
.danger summary { color: var(--text-3); font-size: 13px; }
/* The style page: four plain options; one click saves. */
.style-page { max-width: 520px; text-align: left; justify-items: stretch; }
.style-list { margin: 0; display: grid; gap: 8px; }
.style-option { display: grid; gap: 4px; padding: 14px 16px; border: 0; border-radius: var(--r-md); background: none; color: var(--text); text-align: left; font: 14px/1.4 "Inter", system-ui, sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); }
.style-option b { font-weight: 600; }
.style-option span { color: var(--text-2); font-size: 13px; }
.style-option:hover { box-shadow: inset 0 0 0 1px var(--glass-rim); }
.style-option[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--text); }
.style-option:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@media (max-width: 860px) {
  .top-nav { display: none; }
  .at-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 16px; }
  .at-stats { grid-template-columns: 1fr; }
  .at-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .at-split { grid-template-columns: 1fr; gap: 36px; }
}
