/*
 * Startup Abia Core: account pages. Builds on the theme tokens (theme.css);
 * every token has a fallback so the pages stay usable with another theme.
 * Flat colours only.
 */
.sac-page { --sac-green: var(--sa-green, #2B472B); --sac-gold: var(--sa-gold, #EBB457); --sac-maroon: var(--sa-maroon, #80302F); --sac-tan: var(--sa-tan, #C2A97F); --sac-cream: var(--sa-cream, #E3CBA8); --sac-ink: var(--sa-ink, #171912); --sac-deep: var(--sa-deep, #1C2F1C); --sac-paper: var(--sa-paper, #FAF6EE); --sac-sand: var(--sa-sand, #F1E9DA); --sac-line: var(--sa-line, #E4DCCB); --sac-muted: var(--sa-muted, #5A5C52); --sac-r: var(--sa-r, 20px); --sac-r-lg: var(--sa-r-lg, 28px); --sac-ease: var(--sa-ease, cubic-bezier(.2, .8, .2, 1)); --sac-shadow: var(--sa-shadow, 0 10px 30px -12px rgba(23, 25, 18, .18)); }

.sac-hero.sa-hero--page { padding-bottom: clamp(48px, 6vw, 72px); }
.sac-section.sa-section { padding-top: clamp(40px, 5vw, 64px); }
.sac-page .sac-card p a, .sac-page .sac-help a, .sac-page .sac-notice a, .sac-page .sac-link, .sac-page .sac-rowi__reason a { color: var(--sac-maroon); }

/* Notices */
.sac-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin: 0 0 24px; border-radius: 16px; border: 1px solid var(--sac-line); background: var(--sac-sand); color: var(--sac-ink); font-size: .95rem; }
.sac-notice p { margin: 0; }
.sac-notice > .sa-icon { width: 20px; height: 20px; margin-top: 2px; }
.sac-notice > div { display: grid; gap: 4px; }
.sac-notice--success { background: #E8EFE3; border-color: #C5D4BE; }
.sac-notice--success > .sa-icon { color: var(--sac-green); }
.sac-notice--info > .sa-icon { color: var(--sac-gold-3, #C9963F); }
.sac-notice--error { background: #F6E6E2; border-color: #E2C1BA; }
.sac-notice--error > .sa-icon { color: var(--sac-maroon); }

/* Auth layouts */
.sac-auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1040px; margin: 0 auto; }
.sac-narrow { max-width: 560px; margin: 0 auto; }
.sac-card.sa-formcard > p { margin: 0 0 24px; }
.sac-card .sa-h3 { margin-bottom: 8px; }
.sac-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--sac-sand); color: var(--sac-green); margin-bottom: 18px; }
.sac-card__icon .sa-icon { width: 24px; height: 24px; }
.sac-card .sa-form .sa-btn { justify-self: stretch; width: 100%; }
.sac-foot { margin: 20px 0 0; font-size: .92rem; }
.sac-row-between { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.sac-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.sac-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sac-link .sa-icon { width: 16px; height: 16px; }
.sac-auth__aside { padding: clamp(28px, 4vw, 40px); border-radius: var(--sa-r-xl, 36px); background: var(--sac-deep); color: var(--sa-on-dark, #F1E9DA); }
.sac-auth__aside .sa-eyebrow { margin-bottom: 20px; }
.sac-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.sac-points li { display: flex; gap: 14px; align-items: flex-start; }
.sac-points__icon { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(241, 233, 218, .08); border: 1px solid rgba(241, 233, 218, .14); color: var(--sac-gold); }
.sac-points__icon .sa-icon { width: 22px; height: 22px; }
.sac-points strong { display: block; font-family: var(--sa-font-display, inherit); font-weight: 600; font-size: 1.05rem; color: var(--sa-on-dark, #F1E9DA); margin-bottom: 2px; }
.sac-points li > span:last-child { color: var(--sa-on-dark-2, #C9C3B2); font-size: .94rem; line-height: 1.5; }

/* Field extras */
.sac-label { font-weight: 600; font-size: .92rem; color: var(--sac-ink); padding: 0; }
.sac-help { display: block; font-size: .85rem; color: var(--sac-muted); margin: 0; line-height: 1.5; }
.sac-help .sa-icon { width: 16px; height: 16px; vertical-align: -3px; color: var(--sac-green); }
.sac-err { display: flex; gap: 6px; align-items: center; font-size: .86rem; font-weight: 500; color: var(--sac-maroon); }
.sac-err .sa-icon { width: 16px; height: 16px; }
.sa-field.is-invalid input, .sa-field.is-invalid textarea, .sa-field.is-invalid select { border-color: var(--sac-maroon); }
.sa-check.is-invalid { color: var(--sac-maroon); }
.sac-pw { position: relative; display: block; }
.sac-pw input { padding-right: 54px; }
.sac-pw__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--sac-muted); display: grid; place-items: center; cursor: pointer; }
.sac-pw__toggle:hover { background: var(--sac-sand); color: var(--sac-ink); }
.sac-pw__toggle .sa-icon { width: 20px; height: 20px; }
.sac-pw__toggle .sa-icon--eye-slash, .sac-pw__toggle[aria-pressed="true"] .sa-icon--eye { display: none; }
.sac-pw__toggle[aria-pressed="true"] .sa-icon--eye-slash { display: inline-block; }
.sac-affix { position: relative; display: block; }
.sac-affix > .sa-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--sac-muted); pointer-events: none; }
.sa-field .sac-affix input { padding-left: 44px; }
.sac-affix--ro input { color: var(--sac-muted); background: var(--sac-sand); }
.sac-count { justify-self: end; font-size: .8rem; color: var(--sac-muted); font-variant-numeric: tabular-nums; margin-top: -4px; }
.sa-field input:disabled, .sa-btn:disabled { opacity: .55; cursor: not-allowed; }
.sa-btn:disabled:hover { transform: none; box-shadow: none; }

/* Dashboard shell */
.sac-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.sac-side { position: sticky; top: calc(var(--sa-header-h, 76px) + 24px); padding: 18px; border-radius: var(--sac-r-lg); background: #fff; border: 1px solid var(--sac-line); box-shadow: var(--sac-shadow); }
.sac-me { display: flex; gap: 12px; align-items: center; padding: 6px 6px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--sac-line); }
.sac-avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--sac-green); color: var(--sac-gold); font: 600 1.2rem/1 var(--sa-font-display, inherit); }
.sac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sac-me__text { display: grid; gap: 2px; min-width: 0; }
.sac-me__text strong { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sac-me__ok, .sac-me__warn { display: inline-flex; gap: 4px; align-items: center; font-size: .8rem; font-weight: 500; text-decoration: none; }
.sac-me__ok { color: var(--sac-green); }
.sac-page .sac-me__warn { color: var(--sac-maroon); }
.sac-me__ok .sa-icon, .sac-me__warn .sa-icon { width: 14px; height: 14px; }
.sac-nav { display: grid; gap: 2px; }
.sac-page .sac-nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--sac-ink); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background-color .2s, color .2s; }
.sac-nav a .sa-icon { width: 20px; height: 20px; color: var(--sac-muted); transition: color .2s; }
.sac-page .sac-nav a:hover { background: var(--sac-paper); }
.sac-page .sac-nav a.is-current { background: var(--sac-green); color: var(--sac-paper); }
.sac-nav a.is-current .sa-icon { color: var(--sac-gold); }
.sac-nav__label { margin: 14px 12px 6px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sac-muted); }
.sac-page .sac-nav .sac-nav__out { margin-top: 12px; border-top: 1px solid var(--sac-line); border-radius: 0 0 12px 12px; padding-top: 14px; color: var(--sac-muted); }
.sac-main { min-width: 0; display: grid; gap: 24px; align-content: start; }
.sac-main > .sac-notice { margin: 0; }

/* Blocks */
.sac-block { padding: clamp(20px, 3vw, 32px); border-radius: var(--sac-r-lg); background: #fff; border: 1px solid var(--sac-line); }
.sac-block__head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sac-block__note { margin-top: 20px; }
.sac-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sac-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 20px; border-radius: var(--sac-r); background: #fff; border: 1px solid var(--sac-line); }
.sac-stat__icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sac-sand); }
.sac-stat__icon .sa-icon { width: 22px; height: 22px; }
.sac-stat__icon--live { color: var(--sac-green); }
.sac-stat__icon--pending { color: var(--sa-gold-3, #C9963F); }
.sac-stat__icon--rejected { color: var(--sac-maroon); }
.sac-stat strong { font: 600 1.7rem/1.1 var(--sa-font-display, inherit); letter-spacing: -.02em; }
.sac-stat > span:last-child { font-size: .88rem; color: var(--sac-muted); }
.sac-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sac-page .sac-tile { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--sac-r); border: 1.5px solid var(--sac-line); background: var(--sac-paper); color: var(--sac-ink); text-decoration: none; transition: border-color .2s, transform .3s var(--sac-ease), box-shadow .3s; }
.sac-page .sac-tile:hover { border-color: var(--sac-green); transform: translateY(-2px); box-shadow: var(--sac-shadow); }
.sac-tile__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--sac-green); color: var(--sac-gold); }
.sac-tile__icon .sa-icon { width: 24px; height: 24px; }
.sac-tile__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.sac-tile__text strong { font-family: var(--sa-font-display, inherit); font-weight: 600; font-size: 1.05rem; }
.sac-tile__text span { font-size: .86rem; color: var(--sac-muted); }
.sac-tile__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--sac-line); color: var(--sac-ink); flex: none; transition: background-color .2s, border-color .2s; }
.sac-tile:hover .sac-tile__go { background: var(--sac-gold); border-color: var(--sac-gold); }
.sac-tile__go .sa-icon { width: 18px; height: 18px; }
.sac-callout { display: flex; gap: 18px; align-items: center; background: var(--sac-sand); border-color: var(--sac-cream); }
.sac-callout > div { flex: 1; }
.sac-callout p { margin: 4px 0 0; color: var(--sac-muted); }
.sac-callout__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--sac-maroon); }
.sac-callout__icon .sa-icon { width: 24px; height: 24px; }
.sac-empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(32px, 5vw, 56px) 20px; border-radius: var(--sac-r); border: 1.5px dashed var(--sac-line); background: var(--sac-paper); }
.sac-empty p { margin: 0; color: var(--sac-muted); max-width: 420px; }
.sac-empty strong { display: block; font: 600 1.15rem/1.3 var(--sa-font-display, inherit); color: var(--sac-ink); margin-bottom: 4px; }
.sac-empty__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--sac-sand); color: var(--sac-green); }
.sac-empty__icon .sa-icon { width: 28px; height: 28px; }

/* Tabs */
.sac-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: var(--sac-sand); }
.sac-page .sac-tabs a { padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--sac-ink); text-decoration: none; }
.sac-page .sac-tabs a:hover { background: rgba(255, 255, 255, .6); }
.sac-page .sac-tabs a[aria-current="page"] { background: #fff; box-shadow: var(--sac-shadow); font-weight: 600; }

/* Listing rows */
.sac-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.sac-rowi { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--sac-line); }
.sac-rowi:first-child { border-top: 0; padding-top: 0; }
.sac-rowi:last-child { padding-bottom: 0; }
.sac-rowi__img { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--sac-sand); color: var(--sac-green); }
.sac-rowi__img img { width: 100%; height: 100%; object-fit: cover; }
.sac-rowi__img .sa-icon { width: 24px; height: 24px; }
.sac-rowi__text { display: grid; gap: 2px; min-width: 0; }
.sac-rowi__type { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sac-maroon); }
.sac-rowi__text strong { font-family: var(--sa-font-display, inherit); font-size: 1.05rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sac-rowi__meta { font-size: .84rem; color: var(--sac-muted); }
.sac-rowi__reason { display: flex; gap: 6px; align-items: flex-start; font-size: .84rem; color: var(--sac-maroon); margin-top: 4px; }
.sac-rowi__reason .sa-icon { width: 14px; height: 14px; margin-top: 3px; }
.sac-rowi__actions { display: flex; gap: 6px; }
.sac-page .sac-iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--sac-line); color: var(--sac-ink); transition: border-color .2s, background-color .2s; }
.sac-page .sac-iconbtn:hover { border-color: var(--sac-ink); background: var(--sac-paper); }
.sac-iconbtn .sa-icon { width: 18px; height: 18px; }
.sac-status { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.sac-status .sa-icon { width: 14px; height: 14px; }
.sac-status--live { background: #E8EFE3; color: var(--sac-green); }
.sac-status--pending, .sac-status--changes { background: #F7E9CC; color: #6B4A12; }
.sac-status--rejected { background: #F6E6E2; color: var(--sac-maroon); }

/* Listing form */
.sac-lform { gap: 20px; }
.sac-fsec { padding: clamp(20px, 3vw, 32px); border-radius: var(--sac-r-lg); background: #fff; border: 1px solid var(--sac-line); }
.sac-fsec__head { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.sac-fsec__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sac-green); color: var(--sac-gold); font: 600 .9rem/1 var(--sa-font-display, inherit); flex: none; }
.sac-fsec__num .sa-icon { width: 16px; height: 16px; }
.sac-fsec__title { font-size: 1.2rem; }
.sac-fsec__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sac-fsec__grid > * { grid-column: 1 / -1; }
.sac-fsec__grid > .sac-field--half { grid-column: auto; }
.sac-fsec__grid > .sac-notice { margin: 0; }
fieldset.sa-field { border: 0; padding: 0; min-width: 0; }
fieldset.sa-field > legend { margin-bottom: 8px; float: left; width: 100%; }
fieldset.sa-field > legend + * { clear: both; }
.sac-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sac-chip { position: relative; cursor: pointer; }
.sac-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sac-chip span { display: inline-flex; gap: 6px; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--sac-line); background: var(--sac-paper); font-size: .9rem; font-weight: 500; transition: border-color .2s, background-color .2s, color .2s; }
.sac-chip .sa-icon { width: 14px; height: 14px; display: none; }
.sac-chip:hover span { border-color: var(--sac-tan); }
.sac-chip input:checked + span { background: var(--sac-green); border-color: var(--sac-green); color: var(--sac-paper); }
.sac-chip input:checked + span .sa-icon { display: inline-block; color: var(--sac-gold); }
.sac-chip input:focus-visible + span { outline: 3px solid var(--sac-gold); outline-offset: 2px; }
.sac-chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.sac-upload { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: var(--sac-r); border: 1.5px dashed var(--sac-line); background: var(--sac-paper); transition: border-color .2s, background-color .2s; }
.sac-upload.is-drag { border-color: var(--sac-green); background: #EEF2EA; }
.sac-upload__preview { position: relative; display: grid; place-items: center; flex: none; width: 96px; height: 96px; border-radius: 18px; overflow: hidden; background: var(--sac-sand); color: var(--sac-tan); }
.sac-upload--round .sac-upload__preview { border-radius: 50%; }
.sac-upload__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sac-upload__preview.has-image .sa-icon { display: none; }
.sac-upload__preview .sa-icon { width: 28px; height: 28px; }
.sac-upload__body { position: relative; display: grid; gap: 8px; justify-items: start; }
.sac-upload__btn.sa-btn { min-height: 42px; padding: 9px 18px; pointer-events: none; }
.sac-upload__input { position: absolute; left: 0; top: 0; width: 100%; max-width: 220px; height: 42px; opacity: 0; cursor: pointer; }
.sa-field .sac-upload__input { min-height: 0; padding: 0; }
.sac-upload__input:focus-visible + .sac-upload__name, .sac-upload__body:focus-within .sac-upload__btn { outline: 3px solid var(--sac-gold); outline-offset: 3px; }
.sac-upload__name { font-size: .85rem; color: var(--sac-muted); min-height: 0; }
.sac-upload__name:empty { display: none; }
.sac-locs { display: grid; gap: 12px; }
.sac-loc { padding: 16px; border-radius: var(--sac-r); border: 1px solid var(--sac-line); background: var(--sac-paper); }
.sac-loc__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sac-loc__title { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .92rem; }
.sac-loc__title .sa-icon { width: 18px; height: 18px; color: var(--sac-maroon); }
.sac-loc__remove { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--sac-muted); cursor: pointer; }
.sac-loc__remove:hover { background: #F6E6E2; color: var(--sac-maroon); }
.sac-loc__remove .sa-icon { width: 18px; height: 18px; }
.sac-locs[data-count="1"] .sac-loc__remove { visibility: hidden; }
.sac-loc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sac-loc__grid .sa-field input { background: #fff; }
.sac-loc__street, .sac-loc__map { grid-column: 1 / -1; }
.sac-locs__add.sa-btn { justify-self: start; margin-top: 12px; }
.sac-submitbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 3vw, 32px); border-radius: var(--sac-r-lg); background: var(--sac-sand); }
.sac-submitbar--plain { padding: 0; margin-top: 20px; background: transparent; justify-content: flex-start; }
.sac-submitbar .sac-help { flex: 1 1 260px; }
.sac-form .sa-btn, .sac-submitbar .sa-btn { justify-self: auto; }
.sac-pwform { margin-top: 4px; }

@media (max-width: 1080px) {
	.sac-shell { grid-template-columns: minmax(0, 1fr); }
	.sac-side { position: static; padding: 12px; }
	.sac-me { padding: 4px 4px 12px; }
	.sac-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px -12px; padding: 0 12px 12px; }
	.sac-nav::-webkit-scrollbar { display: none; }
	.sac-page .sac-nav a { flex: none; padding: 9px 14px; border: 1px solid var(--sac-line); border-radius: 999px; }
	.sac-nav__label { display: none; }
	.sac-page .sac-nav .sac-nav__out { margin: 0; padding-top: 9px; border-top: 1px solid var(--sac-line); border-radius: 999px; }
	.sac-auth { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	.sac-stats { gap: 8px; }
	.sac-stat { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 14px 12px; }
	.sac-stat__icon { grid-row: auto; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 6px; }
	.sac-stat__icon .sa-icon { width: 18px; height: 18px; }
	.sac-stat strong { font-size: 1.4rem; }
	.sac-stat > span:last-child { font-size: .78rem; line-height: 1.3; }
	.sac-tiles, .sac-fsec__grid, .sac-loc__grid { grid-template-columns: minmax(0, 1fr); }
	.sac-rowi { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; }
	.sac-rowi__img { width: 48px; height: 48px; }
	.sac-rowi .sac-status { grid-column: 2; grid-row: 2; justify-self: start; }
	.sac-rowi__actions { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; }
	.sac-callout { flex-direction: column; align-items: flex-start; }
	.sac-upload { flex-direction: column; align-items: flex-start; }
	.sac-submitbar .sa-btns { width: 100%; }
	.sac-submitbar .sa-btns .sa-btn { flex: 1 1 auto; }
	.sac-block__head > .sa-btn { width: 100%; }
	.sac-tabs { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.sac-tile, .sac-tile:hover { transition: none; transform: none; }
}
.sa-field .sa-check input { min-height: 0; padding: 0; border-radius: 4px; }
.sac-upload__body .sa-check { align-items: center; }
