/* فوری‌ثبت — front-end panel. Font comes from the site (no font-family is set). */

.fso-app, .fso-login {
	--fso-navy: #024D85;
	--fso-navy-deep: #012D52;
	--fso-navy-tint: #EAF1F8;
	--fso-gold: #D9A404;
	--fso-gold-soft: #FFF6DA;
	--fso-ink: #142233;
	--fso-muted: #667085;
	--fso-line: #E4E7EC;
	--fso-soft: #F8FAFC;
	--fso-bg: #F2F4F7;
	--fso-good: #1F7A4D;
	--fso-good-soft: #E7F5EE;
	--fso-bad: #B42318;
	--fso-bad-soft: #FEF0EE;
	--fso-ring: 0 0 0 3px rgba(2, 77, 133, .18);
	color: var(--fso-ink);
	font-size: 14px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
.fso-app *, .fso-login * { box-sizing: border-box; font-family: inherit; }
.fso-app :focus-visible, .fso-login :focus-visible { outline: 2px solid var(--fso-navy); outline-offset: 2px; }
body.fso-panel-page { margin: 0; padding: 0; background: #F2F4F7; }
body.fso-panel-page .fso-app, body.fso-panel-page .fso-login { max-width: none; margin: 0; }
.fso-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- Shell */
.fso-app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: var(--fso-bg); }
.fso-app-nav { background: #fff; border-inline-end: 1px solid var(--fso-line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.fso-app-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 0; font-weight: 800; font-size: 16px; color: var(--fso-navy-deep); }
.fso-app-brand small { display: block; font-weight: 400; font-size: 12px; color: var(--fso-muted); line-height: 1.3; }
.fso-app-logo { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--fso-navy-deep); color: var(--fso-gold); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.fso-app-nav nav { display: grid; gap: 14px; }
.fso-nav-group { display: grid; gap: 2px; }
.fso-nav-title { margin: 0 0 4px; padding: 0 12px; font-size: 12px; color: var(--fso-muted); }
.fso-app-nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #344054; text-decoration: none; font-weight: 600; transition: background-color .15s, color .15s; }
.fso-app-nav a svg { flex: none; color: #8A94A6; transition: color .15s; }
.fso-app-nav a:hover { background: var(--fso-soft); color: var(--fso-navy-deep); }
.fso-app-nav a:hover svg { color: var(--fso-navy); }
.fso-app-nav a.is-active { background: var(--fso-navy-tint); color: var(--fso-navy-deep); }
.fso-app-nav a.is-active svg { color: var(--fso-navy); }
.fso-app-nav a.is-active::before { content: ""; position: absolute; inset-inline-start: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--fso-gold); }
.fso-nav-badge { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--fso-navy-tint); color: var(--fso-navy); font-style: normal; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.fso-app-nav a.is-active .fso-nav-badge { background: #fff; }
.fso-nav-badge.is-alert { background: var(--fso-bad-soft); color: var(--fso-bad); }

.fso-app-main { min-width: 0; display: flex; flex-direction: column; }
.fso-app-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--fso-line); position: sticky; top: 0; z-index: 20; min-height: 64px; }
.fso-app-heading { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.fso-app-heading strong { font-size: 18px; color: var(--fso-navy-deep); white-space: nowrap; }
.fso-app-heading small { color: var(--fso-muted); font-size: 13px; white-space: nowrap; }
.fso-app-user { display: flex; align-items: center; gap: 10px; }
.fso-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--fso-navy); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.fso-app-who { font-weight: 600; line-height: 1.35; }
.fso-app-who small { display: block; color: var(--fso-muted); font-weight: 400; font-size: 12px; }
.fso-app-logout { margin: 0; }
.fso-app-logout button { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 1px solid var(--fso-line); border-radius: 10px; cursor: pointer; color: var(--fso-muted); transition: color .15s, border-color .15s, background-color .15s; }
.fso-app-logout button:hover { color: var(--fso-bad); border-color: #F4C7C2; background: var(--fso-bad-soft); }
.fso-app-logout svg { width: 18px; height: 18px; transform: scaleX(-1); }
.fso-app-body { padding: 24px 28px 48px; flex: 1; }
.fso-app .wrap { margin: 0; max-width: 1240px; }
.fso-app .fso { max-width: 1240px; }
.fso-app .fso-title { font-size: 20px; margin: 0 0 14px; }
.fso-app .fso-bar { top: 76px; border-radius: 14px; }

/* Solo users (agents) have one screen: no menu needed. */
.fso-app.is-solo { grid-template-columns: minmax(0, 1fr); }
.fso-app.is-solo .fso-app-nav { display: none; }
.fso-app.is-solo .fso-app-body { width: 100%; max-width: 1100px; margin: 0 auto; }

/* ---------------------------------------------------------------- Controls */
.fso-app .button, .fso-app button.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #D0D5DD; background: #fff; color: #344054; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; line-height: 1; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.fso-app .button:hover { background: var(--fso-soft); border-color: #B9C0CB; color: var(--fso-navy-deep); }
.fso-app .button-primary, .fso-app button.button-primary { background: var(--fso-navy); border-color: var(--fso-navy); color: #fff; }
.fso-app .button-primary:hover { background: var(--fso-navy-deep); border-color: var(--fso-navy-deep); color: #fff; }
.fso-app .button-small { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.fso-app .button:disabled { opacity: .55; cursor: default; }
.fso-app .button.is-busy, .fso-login button.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.fso-app .button.is-busy::after, .fso-login button.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: #9AA4B2 #9AA4B2 #9AA4B2 transparent; animation: fso-spin .7s linear infinite; }
.fso-app .button-primary.is-busy::after, .fso-login button.is-busy::after { border-color: #fff #fff #fff transparent; }
@keyframes fso-spin { to { transform: rotate(360deg); } }

.fso-app input[type=text], .fso-app input[type=search], .fso-app input[type=number], .fso-app input[type=password], .fso-app input[type=email], .fso-app input[type=tel], .fso-app input:not([type]), .fso-app select, .fso-app textarea { border: 1px solid #D0D5DD; border-radius: 10px; padding: 7px 12px; min-height: 40px; background: #fff; color: var(--fso-ink); font-size: 14px; max-width: 100%; transition: border-color .15s, box-shadow .15s; }
.fso-app textarea { line-height: 1.8; }
.fso-app input:hover, .fso-app select:hover, .fso-app textarea:hover { border-color: #B9C0CB; }
.fso-app input:focus, .fso-app select:focus, .fso-app textarea:focus { outline: none; border-color: var(--fso-navy); box-shadow: var(--fso-ring); }
.fso-app input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--fso-navy); vertical-align: middle; }
.fso-app .regular-text { width: 25em; }
.fso-app code { background: var(--fso-soft); border: 1px solid var(--fso-line); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.fso-app details summary { cursor: pointer; }
.fso-app h1, .fso-app h2, .fso-app h3 { font-family: inherit; }
.fso-app .fso-link { color: var(--fso-navy); }
.fso-app ::placeholder { color: #98A2B3; }

/* Notices (turned into toasts by panel.js; this is the no-JS look) */
.fso-app .notice { background: #fff; border: 1px solid var(--fso-line); border-inline-start: 4px solid var(--fso-navy); border-radius: 12px; padding: 4px 16px; margin: 0 0 16px; }
.fso-app .notice-success { border-inline-start-color: var(--fso-good); }
.fso-app .notice-error { border-inline-start-color: var(--fso-bad); background: var(--fso-bad-soft); }
.fso-app .notice p { margin: 8px 0; }

.fso-toasts { position: fixed; top: 14px; inset-inline: 0; margin: 0 auto; width: min(440px, calc(100% - 24px)); z-index: 100; display: grid; gap: 8px; pointer-events: none; }
.fso-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; background: var(--fso-navy-deep); color: #fff; border-radius: 14px; padding: 12px 14px 12px 10px; box-shadow: 0 12px 32px rgba(1, 45, 82, .28); animation: fso-toast-in .22s ease-out; font-weight: 600; }
.fso-toast::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: #6CE0A4; }
.fso-toast.is-error { background: #fff; color: var(--fso-bad); border: 1px solid #F4C7C2; }
.fso-toast.is-error::before { background: var(--fso-bad); }
.fso-toast p { margin: 0; flex: 1; line-height: 1.7; }
.fso-toast button { flex: none; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 6px; }
.fso-toast button:hover { opacity: 1; }
.fso-toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
@keyframes fso-toast-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------------------------------------------------------------- Surfaces used by the screens */
.fso-app .fso-card, .fso-app .fso-panel-card { background: #fff; border: 1px solid var(--fso-line); border-radius: 16px; padding: 18px 20px; margin: 0 0 16px; }
.fso-app .fso-grid { gap: 16px; }
.fso-app .fso-card h2, .fso-panel-card h2 { font-size: 15px; color: var(--fso-navy-deep); margin: 0 0 12px; }
.fso-panel-card > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.fso-panel-card > header h2 { margin: 0; }
.fso-app .fso-filters { background: #fff; border-radius: 14px; padding: 12px 14px; gap: 10px; }
.fso-app .fso-table { border-radius: 14px; }
.fso-app .fso-table th { background: var(--fso-soft); color: #475467; font-size: 12.5px; padding: 11px 14px; }
.fso-app .fso-table td { padding: 11px 14px; }
.fso-app .fso-table tbody tr { transition: background-color .12s; }
.fso-app .fso-table tbody tr:hover { background: #F7FAFD; }
.fso-app .fso-table--compact td { padding: 8px 12px; }
.fso-app .fso-badge { padding: 2px 10px; }
.fso-app .fso-tabs a { padding: 7px 15px; transition: background-color .15s, border-color .15s; }
.fso-app .fso-tabs a:hover:not(.is-active) { border-color: #B9C0CB; }
.fso-app .fso-qitem { border-radius: 14px; padding: 14px 18px; }
.fso-app .fso-callout { border-radius: 12px; }
.fso-app .fso-pager a, .fso-app .fso-pager span { border-radius: 8px; padding: 5px 11px; }
.fso-app .fso-table tr.is-link { cursor: pointer; }
.fso-app .fso-table tr.is-link:hover td:first-child a { text-decoration: underline; }
.fso-app .fso-table--compact td { white-space: nowrap; }
.fso-app .fso-filters input[type=search] { flex: 1 1 280px; }
.fso-app .fso-title--actions { margin: 0 0 14px; font-size: 15px; min-height: 0; }
.fso-app .fso-title--actions:empty { display: none; }
.fso-quiet { color: var(--fso-muted); margin: 6px 0; }
.fso-empty-state { max-width: 460px; margin: 10vh auto 0; text-align: center; }
.fso-empty-state h2 { font-size: 18px; color: var(--fso-navy-deep); margin: 0 0 6px; }
.fso-empty-state p { color: var(--fso-muted); margin: 0; }

/* KPIs */
.fso-app .fso-kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 16px; }
.fso-app .fso-kpi { border-radius: 16px; padding: 16px 18px; }
.fso-app .fso-kpi span { font-size: 13px; }
.fso-app .fso-kpi strong { font-size: 22px; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.fso-app .fso-kpi.is-hero { border-color: #F0D78A; background: linear-gradient(180deg, var(--fso-gold-soft), #fff 70%); box-shadow: none; }

/* ---------------------------------------------------------------- Today's desk (the one loud element) */
.fso-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: end; background: var(--fso-navy-deep); color: #fff; border-radius: 22px; padding: 30px 32px; margin: 0 0 18px; isolation: isolate; }
/* Faint newspaper columns behind the content. */
.fso-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .045) 46px 47px),
	radial-gradient(520px 300px at 0% 100%, rgba(56, 132, 196, .28), transparent 70%),
	radial-gradient(600px 300px at 100% 0%, rgba(2, 77, 133, .9), transparent 70%); }
.fso-hero-main { min-width: 0; }
.fso-hero-hi { margin: 0 0 10px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.fso-hero h2 { margin: 0 0 20px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; font-weight: 800; color: #fff; letter-spacing: -.2px; text-wrap: balance; }
.fso-hero-label { margin: 0; color: rgba(255, 255, 255, .7); font-size: 13px; }
.fso-hero h2.fso-hero-money { font-size: clamp(28px, 3.6vw, 40px); font-variant-numeric: tabular-nums; margin-top: 2px; }
.fso-hero-note { margin: -10px 0 18px; color: rgba(255, 255, 255, .75); }
.fso-hero-cta { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; background: var(--fso-gold); color: var(--fso-navy-deep); font-weight: 800; text-decoration: none; transition: transform .15s, background-color .15s; }
.fso-hero-cta:hover { background: #E8B416; color: var(--fso-navy-deep); }
.fso-hero-cta:active { transform: translateY(1px); }
.fso-hero-cta.is-quiet { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.fso-hero-cta.is-quiet:hover { background: rgba(255, 255, 255, .16); }
.fso-hero-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.fso-hero-stats > div { padding: 14px 16px; border-inline-start: 1px solid rgba(255, 255, 255, .12); min-width: 0; }
.fso-hero-stats > div:first-child, .fso-hero-stats > div.is-wide { border-inline-start: 0; }
.fso-hero-stats > div.is-wide { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); }
.fso-hero-stats > div.is-wide:first-child { border-top: 0; }
.fso-hero-stats dt { color: rgba(255, 255, 255, .62); font-size: 12.5px; }
.fso-hero-stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fso-hero-stats dd.fso-hero-rule { font-size: 15px; font-weight: 600; white-space: normal; line-height: 1.8; }

.fso-dash-grid > .fso-panel-card { margin: 0; }
.fso-dash-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* Newspapers today */
.fso-papers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fso-papers a { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; color: inherit; transition: background-color .12s; }
.fso-papers a:hover { background: var(--fso-soft); }
.fso-paper-name { font-weight: 700; color: var(--fso-ink); }
.fso-paper-count { font-size: 13px; color: var(--fso-navy); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.fso-paper-count svg { width: 16px; height: 16px; }
.fso-paper-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: #EDF1F5; overflow: hidden; }
.fso-paper-bar i { display: block; height: 100%; border-radius: 999px; background: var(--fso-navy); transform-origin: right center; animation: fso-grow .7s cubic-bezier(.2, .7, .2, 1) both; }
.fso-papers li:nth-child(2) i { animation-delay: .05s; }
.fso-papers li:nth-child(3) i { animation-delay: .1s; }
.fso-papers li:nth-child(n+4) i { animation-delay: .15s; }
.fso-papers li.is-done .fso-paper-bar i { background: var(--fso-good); }
.fso-papers li.is-done .fso-paper-count { color: var(--fso-good); }
@keyframes fso-grow { from { transform: scaleX(0); } }

/* What's left */
.fso-app .fso-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fso-app .fso-todo li { display: block; padding: 0; border: 0; }
.fso-app .fso-todo a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; color: var(--fso-ink); font-weight: 600; transition: background-color .12s; }
.fso-app .fso-todo a:hover { background: var(--fso-soft); }
.fso-app .fso-todo b { min-width: 30px; height: 26px; padding: 0 9px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.fso-app .fso-todo .is-open b { background: var(--fso-navy-tint); color: var(--fso-navy); }
.fso-app .fso-todo .is-alert b { background: var(--fso-bad-soft); color: var(--fso-bad); }
.fso-app .fso-todo .is-clear a { color: var(--fso-muted); font-weight: 400; }
.fso-app .fso-todo .is-clear b { color: var(--fso-good); background: none; }
.fso-app .fso-todo b svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Login */
.fso-login { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; background: #fff; }
.fso-login-side { position: relative; overflow: hidden; isolation: isolate; background: var(--fso-navy-deep); color: #fff; padding: 44px 48px; display: flex; flex-direction: column; }
.fso-login-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 255, 255, .05) 54px 55px),
	radial-gradient(640px 420px at 0% 100%, rgba(56, 132, 196, .32), transparent 70%); }
.fso-login-mark { font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.fso-login-mark::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--fso-gold); }
.fso-login-pitch { margin: auto 0 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.6; font-weight: 800; max-width: 15em; text-wrap: balance; }
.fso-login-date { margin: 18px 0 0; color: rgba(255, 255, 255, .62); }
.fso-login-main { display: grid; place-items: center; padding: 40px 24px; }
.fso-login-card { width: 100%; max-width: 380px; }
.fso-login h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.45; color: var(--fso-navy-deep); }
.fso-login-lead { margin: 0 0 22px; color: var(--fso-muted); }
.fso-login-lead a { color: var(--fso-navy); font-weight: 600; text-decoration: none; margin-inline-start: 4px; }
.fso-login-lead b { color: var(--fso-ink); direction: ltr; unicode-bidi: isolate; }
.fso-login-msg { margin: 0 0 16px; background: var(--fso-gold-soft); border: 1px solid #F0D78A; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; color: #6B4E00; }
.fso-login-form { display: grid; gap: 14px; margin: 0; }
.fso-login-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #344054; }
.fso-login-form input { width: 100%; height: 50px; border: 1px solid #D0D5DD; border-radius: 12px; padding: 0 14px; font-size: 16px; background: #fff; color: var(--fso-ink); transition: border-color .15s, box-shadow .15s; }
.fso-login-form input:focus { outline: none; border-color: var(--fso-navy); box-shadow: var(--fso-ring); }
.fso-login-form input.fso-login-big { font-size: 20px; letter-spacing: 1px; text-align: center; font-variant-numeric: tabular-nums; }
.fso-login-form input.fso-otp { height: 66px; font-size: 30px; font-weight: 800; letter-spacing: .5em; text-indent: .5em; text-align: center; font-variant-numeric: tabular-nums; background: var(--fso-soft); }
.fso-login-form input.fso-otp:focus { background: #fff; }
.fso-login-form input.fso-otp::placeholder { color: #C4CAD3; letter-spacing: .2em; font-weight: 400; }
.fso-pass { position: relative; display: block; }
.fso-pass input { padding-inline-end: 48px; }
.fso-pass-toggle { position: absolute; inset-inline-end: 6px; top: 7px; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--fso-muted); cursor: pointer; }
.fso-pass-toggle:hover, .fso-pass-toggle.is-on { color: var(--fso-navy); background: var(--fso-soft); }
.fso-login-go, .fso-login-out button { position: relative; height: 50px; border: 0; border-radius: 12px; background: var(--fso-navy); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%; transition: background-color .15s, transform .1s; }
.fso-login-go:hover, .fso-login-out button:hover { background: var(--fso-navy-deep); }
.fso-login-go:active { transform: translateY(1px); }
.fso-login-out { margin: 0; }
.fso-login-alt { display: inline-block; margin-top: 18px; color: var(--fso-navy); font-weight: 600; text-decoration: none; font-size: 13.5px; }
.fso-login-alt:hover { text-decoration: underline; }
.fso-resend { margin: 14px 0 0; }
.fso-resend button { background: none; border: 0; padding: 0; color: var(--fso-navy); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.fso-resend button:disabled { color: var(--fso-muted); cursor: default; font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Tablet & phone */
@media (max-width: 1100px) {
	.fso-hero { grid-template-columns: 1fr; align-items: start; }
	.fso-dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.fso-app { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
	.fso-app.is-solo { padding-bottom: 0; }
	/* The menu becomes a bottom tab bar within thumb reach. */
	.fso-app-nav { position: fixed; inset: auto 0 0 0; top: auto; height: auto; z-index: 40; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--fso-line); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex-direction: row; overflow: visible; }
	.fso-app-brand { display: none; }
	.fso-app-nav nav { display: flex; gap: 2px; overflow-x: auto; width: 100%; scrollbar-width: none; }
	.fso-app-nav nav::-webkit-scrollbar { display: none; }
	.fso-nav-group { display: contents; }
	.fso-nav-title { display: none; }
	.fso-app-nav a { flex: 1 0 68px; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11px; font-weight: 600; text-align: center; border-radius: 10px; line-height: 1.4; }
	.fso-app-nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
	.fso-app-nav a svg { width: 22px; height: 22px; }
	.fso-app-nav a.is-active { background: none; color: var(--fso-navy); }
	.fso-app-nav a.is-active::before { top: 0; bottom: auto; left: 50%; right: auto; width: 20px; height: 3px; border-radius: 0 0 3px 3px; transform: translateX(-50%); }
	.fso-nav-badge { position: absolute; top: 2px; inset-inline-end: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; margin: 0; box-shadow: 0 0 0 2px #fff; background: var(--fso-navy); color: #fff; }
	.fso-nav-badge.is-alert { background: var(--fso-bad); color: #fff; }
	.fso-app-top { padding: 10px 14px; min-height: 58px; }
	.fso-app-heading { flex-direction: column; gap: 0; align-items: flex-start; }
	.fso-app-heading strong { font-size: 16px; }
	.fso-app-heading small { font-size: 12px; }
	.fso-app-who { display: none; }
	.fso-app-body { padding: 14px 12px 28px; }
	.fso-app .fso-bar { position: sticky; top: 64px; z-index: 15; box-shadow: 0 8px 24px rgba(1, 45, 82, .1); padding: 8px 10px; gap: 6px 10px; }
	.fso-app .fso-bar .button-primary { flex: 1 1 auto; }
	.fso-app .fso-labels-page .fso-bar { position: static; box-shadow: none; }
	.fso-app .fso-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
	.fso-app .regular-text { width: 100%; }
	.fso-app .fso-filters input[type=search] { min-width: 0; width: 100%; }
	.fso-app .fso-card, .fso-app .fso-panel-card { padding: 16px; border-radius: 14px; }
	.fso-hero { padding: 22px 18px; border-radius: 18px; gap: 18px; }
	.fso-hero-cta { width: 100%; justify-content: center; }
	.fso-hero-stats dd { font-size: 20px; }
	.fso-hero-stats > div { padding: 12px; }
	.fso-toasts { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }

	.fso-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
	.fso-login-side { padding: 22px 20px 26px; }
	.fso-login-pitch { display: none; }
	.fso-login-date { margin-top: 6px; font-size: 13px; }
	.fso-login-main { place-items: start center; padding: 28px 20px 40px; }
}

/* Phones: wide tables become one card per row, every value with its column name. */
@media (max-width: 760px) {
	.fso-app .fso-table.is-cards { display: block; overflow: visible; white-space: normal; border: 0; background: none; border-radius: 0; }
	.fso-app .fso-table.is-cards thead { display: none; }
	.fso-app .fso-table.is-cards tbody { display: grid; gap: 10px; }
	.fso-app .fso-table.is-cards tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; background: #fff; border: 1px solid var(--fso-line); border-radius: 14px; padding: 12px 14px; }
	.fso-app .fso-table.is-cards tr:hover { background: #fff; }
	.fso-app .fso-table.is-cards tr.is-link:active { background: var(--fso-soft); }
	.fso-app .fso-table.is-cards td { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 3px 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
	.fso-app .fso-table.is-cards td::before { content: attr(data-label); font-size: 11.5px; color: var(--fso-muted); font-weight: 400; }
	.fso-app .fso-table.is-cards td.is-empty { display: none; }
	.fso-app .fso-table.is-cards td:first-child { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px dashed var(--fso-line); }
	.fso-app .fso-table.is-cards td:not([data-label]), .fso-app .fso-table.is-cards td[data-label=""] { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 6px; }
	.fso-app .fso-table.is-cards td:not([data-label])::before, .fso-app .fso-table.is-cards td[data-label=""]::before { content: none; }
	.fso-app .fso-table.is-cards td:has(input[type=checkbox]:only-child) { grid-column: auto; }
	.fso-app .fso-filters > *:not(nav):not(.fso-tabs) { flex: 1 1 140px; }
	.fso-app .fso-filters input[type=search] { flex-basis: 100%; }
	.fso-app .fso-filters .fso-date { width: auto; }
	.fso-app .fso-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fso-app .fso-kpi strong { font-size: 18px; }
	.fso-app .fso-grid { grid-template-columns: minmax(0, 1fr); }
	.fso-app .fso-card .fso-table--compact { display: block; overflow-x: auto; }
	.fso-app-nav.has-more nav { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px); mask-image: linear-gradient(to right, transparent 0, #000 28px); }
}

@media (prefers-reduced-motion: reduce) {
	.fso-app *, .fso-login * { animation: none !important; transition: none !important; }
}

@media print {
	.fso-app { display: block; background: #fff; padding: 0; }
	.fso-app-nav, .fso-app-top, .fso-toasts, .fso-app .no-print, .fso-app .notice, .fso-app .fso-filters { display: none !important; }
	.fso-app-body { padding: 0; }
	.fso-hero { background: none; color: #000; border: 1px solid #999; }
}
