/* Website admin: layout glue on the Agency Dashboard Design System (save point v1.2). No new colours, fonts or
   motion: every value is a design-system token. Only what the system has no part for lives here.
   Derived from the Code and Chill dashboard templates (Tessly, Fernly, Olvara) © 2026 Hasib (OVERSHOOT), used under licence. Not for redistribution. */

[hidden] { display: none !important; }

/* Text helpers. No single word left alone on a last line. */
p, .wa-edit__ask, .dash-alert__title, .dash-card__sub, .dash-pagehead__sub { text-wrap: pretty; }
.wa-muted { color: var(--muted); }
.wa-small { font-size: var(--fs-base); line-height: 1.5; margin: 0; }
.wa-lead { font-size: var(--fs-lg); line-height: 1.5; margin: 0 0 16px; }
.wa-wrap { overflow-wrap: anywhere; min-width: 0; }
.wa-nowrap { white-space: nowrap; flex-shrink: 0; }
p.wa-muted { margin: 0; line-height: 1.5; }

/* Groups and rows */
.wa-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 16px; min-width: 0; }
.wa-actions > form { display: contents; }
.wa-form { display: grid; gap: 16px; min-width: 0; }
.wa-form .wa-actions { margin-top: 0; }
.wa-split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.wa-split--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.wa-pad { padding: var(--card-pad); }
.dash-card--flush > .wa-pad + .dash-table-wrap { border-top: 1px solid var(--line); }
.dash-card .dash-link { margin-top: 12px; display: inline-flex; }
.dash-card__head .dash-link { margin-top: 0; }
.wa-notice { margin: 0; }
.wa-dl { margin-top: 16px; }

/* Credit meter */
.wa-meter { display: grid; gap: 12px; min-width: 0; }
.wa-meter__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.wa-num { font-size: var(--fs-2xl); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wa-num--big { font-size: var(--fs-display); line-height: 1.1; }

/* The ask box */
.wa-ask { min-height: 132px; font-size: var(--fs-lg); line-height: 1.5; }

/* Edits list */
.wa-edits { list-style: none; margin: 0; padding: 0; display: grid; }
.wa-edit { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); min-width: 0; }
.wa-edit:first-child { border-top: 0; padding-top: 4px; }
.wa-edit__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.wa-edit__ask { margin: 0; font-weight: 600; font-size: var(--fs-lg); line-height: 1.45; overflow-wrap: anywhere; min-width: 0; }
.wa-edit__head .dash-pill { flex-shrink: 0; }
/* A warning about one edit: a line with a mark, not a box inside the card */
.wa-warnline { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 0; line-height: 1.5; }
.wa-warnline > .dash-ico, .wa-warnline > i, .wa-warnline > svg { color: var(--warn); flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.wa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-edit .wa-actions { margin-top: 4px; }
.wa-edit .wa-actions + p { margin-top: 0; }

/* "Ask for changes" and "Discard": a button that opens its own small form, with no script */
.wa-more { min-width: 0; }
.wa-more > summary { list-style: none; cursor: pointer; }
.wa-more > summary::-webkit-details-marker { display: none; }
.wa-more[open] { flex-basis: 100%; }
.wa-more__panel { margin-top: 12px; display: grid; gap: 12px; justify-items: start; max-width: 560px; }
.wa-more__panel .dash-field { width: 100%; }

/* Menu logo */
.wa-logo { overflow: hidden; padding: 0; background: transparent; }
.wa-logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* Sign out sits in the menu's foot and looks like a menu item (the design system puts it in a menu; a plain form needs no script). */
.wa-signout { background: transparent; border: 0; font-family: inherit; cursor: pointer; }

/* Sign-in */
.wa-auth { min-height: 100dvh; display: grid; place-items: center; background: var(--bg); padding-block: 32px; padding-left: max(var(--gutter-phone), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter-phone), env(safe-area-inset-right, 0px)); }
.wa-auth__inner { width: 100%; max-width: 440px; display: grid; gap: 20px; }
.wa-auth__logo { display: flex; justify-content: center; }
.wa-auth__logo img { width: min(320px, 100%); height: auto; }
.wa-auth__card { display: grid; gap: 16px; padding: 28px; }
.wa-auth__title { margin: 0; font-size: var(--fs-3xl); line-height: 1.25; letter-spacing: -0.01em; }
.wa-auth__form { display: grid; gap: 16px; margin-top: 4px; }
.wa-auth__link { justify-self: start; }
.wa-auth__foot { text-align: center; color: var(--muted); font-size: var(--fs-base); line-height: 1.5; margin: 0; }
.wa-auth__foot span { display: block; }
.wa-full { width: 100%; justify-content: center; }
.wa-code { font-size: var(--fs-xl); letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.wa-code::placeholder { letter-spacing: normal; text-transform: none; font-size: var(--fs-base); }
.wa-only-dark { display: none !important; }
[data-theme="dark"] .wa-only-dark { display: block !important; }
[data-theme="dark"] .wa-only-light { display: none !important; }

@media (max-width: 1100px) {
  .wa-split--wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wa-split { grid-template-columns: minmax(0, 1fr); }
  .wa-auth__card { padding: 20px; }
  .wa-num--big { font-size: var(--fs-4xl); }
  .wa-edit__head { flex-direction: column; gap: 8px; }
}

/* A note under a list, a set of buttons or figures gets the same breathing room as the rest of the card */
.wa-dl + p, .wa-actions + p, .dash-list + .wa-actions { margin-top: 12px; }
