/* casttit.com/account (founder, 10 Nov 2026: "like a professional website"): a dashboard under the site menu. A
   greeting with the person's initial, the plan card (its look follows the plan), receipts and PCs, and a side column
   (account details, help, delete). Messages appear as a small notice at the bottom of the screen. */
body.acct-page { background: var(--paper); }
.acct { padding-bottom: 80px; }
.acct section { padding-block: 0; border-top: 0; }
.acct [hidden] { display: none !important; }
.acct a.btn { text-decoration: none; }
.acct a.btn-primary { color: #14080A; }

/* loading, and the signed-out screens */
.acct-state { min-height: 48vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; }
.acct-state p { margin: 0; color: var(--muted); }
.acct-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--signal);
  animation: acct-spin .8s linear infinite; }
@keyframes acct-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acct-spinner { animation: none; } }
.acct-gate { max-width: 470px; min-height: 0; margin: 4vh auto 0; padding: 40px 34px 34px; border-radius: 26px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 34px 64px -40px rgba(14, 16, 20, .5); }
.acct-gate h1 { margin: 6px 0 0; font: 800 28px/1.2 var(--display); letter-spacing: -.025em; color: var(--text); }
.acct-gate p { max-width: 34ch; line-height: 1.55; }
.acct-gate .btn { margin-top: 10px; min-width: 200px; justify-content: center; }
.acct-gate-icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--signal-soft); }
.acct-gate-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }

/* the greeting */
.acct-head { display: flex; align-items: center; gap: 18px; margin: 4px 0 26px; }
.acct-avatar { width: 68px; height: 68px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--signal); color: #14080A; font: 800 28px/1 var(--display);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--line-2); }
.acct-hello { flex: 1; min-width: 0; }
.acct-kicker { margin: 0; font: 800 12px/1 var(--body); letter-spacing: 2.6px; text-transform: uppercase; color: var(--signal); }
.acct-hello h1 { margin: 8px 0 4px; font: 800 clamp(28px, 3.2vw, 38px)/1.1 var(--display); letter-spacing: -.03em; color: var(--text);
  overflow-wrap: anywhere; }
.acct-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 14.5px; color: var(--subtle); }
.acct-meta span:empty, .acct-meta span:empty + .acct-dot { display: none; }
.acct-signout { flex: none; height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; }

/* layout */
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 20px; align-items: start; }
.acct-col { display: grid; gap: 20px; min-width: 0; }

/* cards */
.acct .acct-card { padding: 24px 26px; border-radius: 22px; background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(14, 16, 20, .03), 0 22px 44px -36px rgba(14, 16, 20, .4); }
.acct-card h2 { margin: 0; font: 800 19px/1.3 var(--display); letter-spacing: -.015em; color: var(--text); }
.acct-card-head { display: grid; gap: 4px; margin-bottom: 14px; }
.acct-card-head p, .acct-small { margin: 0; font-size: 14px; line-height: 1.55; color: var(--subtle); }
.acct-small + .acct-links { margin-top: 12px; }

/* the plan card */
.acct .acct-plan { position: relative; overflow: hidden; padding: 28px 28px 26px; }
.acct-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-label { margin: 0; font: 800 12px/1 var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--subtle); }
.acct-plan-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.acct-plan h2 { font: 800 42px/1 var(--display); letter-spacing: -.04em; }
.acct-plan-when { margin: 14px 0 0; font-size: 16px; font-weight: 700; color: var(--text); }
.acct-plan-more { margin: 6px 0 0; max-width: 60ch; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.acct-actions .btn { height: 46px; padding: 0 20px; border-radius: 12px; font-size: 15px; }
.acct-confirm { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.acct-confirm p { margin: 0; font-weight: 600; color: var(--text); }
.acct-confirm label { display: block; margin-top: 14px; font: 700 14px var(--body); color: var(--text); }
.acct-confirm input { width: 100%; height: 46px; margin-top: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--white); color: var(--text); font: 800 16px var(--body); letter-spacing: 2px; }
.acct-confirm input:focus { outline: none; border-color: #B42318; box-shadow: 0 0 0 4px rgba(196, 50, 26, .12); }

.acct-plan[data-tone="creator"] { color: #E9EAED; border-color: rgba(255, 91, 46, .55);
  background: var(--ink) radial-gradient(110% 80% at 95% -20%, rgba(255, 91, 46, .32), rgba(255, 91, 46, 0) 60%);
  box-shadow: 0 34px 64px -40px rgba(255, 91, 46, .75); }
.acct-plan[data-tone="creator"] h2, .acct-plan[data-tone="creator"] .acct-plan-when,
.acct-plan[data-tone="creator"] .acct-confirm p { color: #FFFFFF; }
.acct-plan[data-tone="creator"] .acct-label, .acct-plan[data-tone="creator"] .acct-plan-more { color: #AEB2BB; }
.acct-plan[data-tone="creator"] .btn-quiet { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .3); }
.acct-plan[data-tone="creator"] .btn-quiet:hover { border-color: #FFFFFF; }
.acct-plan[data-tone="creator"] .acct-confirm { border-top-color: rgba(255, 255, 255, .14); }
.acct-plan[data-tone="trial"] { border-color: rgba(255, 91, 46, .35);
  background: linear-gradient(135deg, #FFF1EB 0%, #FFFFFF 62%); }
.acct-plan[data-tone="beta"] { background: var(--white) radial-gradient(80% 90% at 100% 0%, rgba(255, 91, 46, .12), rgba(255, 91, 46, 0) 60%); }
.acct-plan[data-tone="trouble"] { background: #FFF8EA; border-color: rgba(214, 150, 0, .45); }

/* little labels */
.acct-pill { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; font: 800 12px/1 var(--body);
  letter-spacing: .3px; background: var(--raise); color: var(--muted); white-space: nowrap; }
.acct-pill.ok { background: rgba(59, 209, 138, .16); color: #14683D; }
.acct-pill.warn { background: rgba(214, 150, 0, .16); color: #8A5A00; }
.acct-pill.bad { background: rgba(196, 50, 26, .12); color: #B42318; }
.acct-pill.info { background: var(--signal-soft); color: #8A2A0E; }
.acct-plan[data-tone="creator"] .acct-pill.ok { background: rgba(59, 209, 138, .18); color: #3BD18A; }
.acct-plan[data-tone="creator"] .acct-pill.warn { background: rgba(245, 194, 107, .16); color: #F5C26B; }
.acct-tag { padding: 5px 10px; border-radius: 999px; background: #FFF1EB; border: 1px solid #FFC9B5; color: #8A2A0E;
  font: 800 11.5px/1 var(--body); letter-spacing: .5px; text-transform: uppercase; }

/* receipts and PCs */
.acct-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.acct-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.acct-row:first-child { border-top: 0; padding-top: 2px; }
.acct-row-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--raise); }
.acct-row-ico svg { width: 21px; height: 21px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; }
.acct-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.acct-row-main b { font-size: 15px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.acct-row-main span { font-size: 13.5px; color: var(--subtle); }
.acct-row-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.acct-amount { font: 800 16px var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.acct-empty { padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 14.5px; line-height: 1.5; color: var(--subtle); }
.acct-link { background: none; border: 0; padding: 4px 2px; cursor: pointer; font: 700 14px var(--body); color: #C4321A;
  text-decoration: underline; text-underline-offset: 3px; }
.acct-link.strong { font-weight: 800; }
.acct-link:disabled { opacity: .5; cursor: default; }
.acct-sure { display: inline-flex; gap: 12px; }

/* the side column */
.acct-dl { margin: 14px 0 0; display: grid; gap: 14px; }
.acct-dl div { display: grid; gap: 3px; }
.acct-dl dt { font: 800 11.5px var(--body); letter-spacing: 1.2px; text-transform: uppercase; color: var(--subtle); }
.acct-dl dd { margin: 0; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.acct-links { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.acct-links a { color: var(--text); font-weight: 700; text-decoration: none; }
.acct-links a:hover { color: #C4321A; text-decoration: underline; text-underline-offset: 3px; }
.acct-danger { border-color: rgba(196, 50, 26, .22); }
.acct-danger h2 { color: #B42318; }
.acct-danger-btn { margin-top: 14px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; color: #B42318;
  border-color: rgba(196, 50, 26, .35); }
.acct-danger-btn:hover { border-color: #B42318; }
.acct-delete-yes { background: #B42318; color: #FFFFFF; }
.acct-delete-yes:disabled { opacity: .45; cursor: default; }

/* messages: a small notice at the bottom of the screen */
.acct-toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%); width: max-content;
  max-width: min(560px, calc(100vw - 32px)); margin: 0; padding: 12px 18px; border-radius: 14px; background: var(--ink);
  color: #FFFFFF; font-size: 14.5px; line-height: 1.45; box-shadow: 0 20px 40px -20px rgba(14, 16, 20, .6); }
.acct-toast:empty { display: none; }
.acct-toast.ok::before { content: "✓  "; color: #3BD18A; font-weight: 800; }
.acct-toast.err { background: #B42318; }

@media (max-width: 900px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .acct-head { flex-wrap: wrap; gap: 12px 14px; }
  .acct-avatar { width: 56px; height: 56px; font-size: 24px; }
  .acct-hello { flex: 1 1 calc(100% - 72px); }
  .acct-meta { flex-direction: column; }
  .acct-meta .acct-dot { display: none; }
  .acct-signout { order: 3; margin-left: 70px; height: 40px; }
  .acct .acct-card { padding: 20px 18px; }
  .acct .acct-plan { padding: 22px 20px; }
  .acct-plan h2 { font-size: 34px; }
  .acct-row { flex-wrap: wrap; }
  .acct-row-end { width: 100%; justify-content: flex-start; padding-left: 56px; }
}
.acct .acct-toast.ok, .acct .acct-toast.err, .acct .acct-toast { color: #FFFFFF; }
