/* Songburd Connect Portal — scoped to .sbc-portal / .sbc-login so the theme is untouched.
   Fonts inherit from the site; override the tokens below in your theme to rebrand. */
.sbc-portal, .sbc-login {
	--sbc-bg: #f5f6f8; --sbc-surface: #ffffff; --sbc-sunken: #eceef2; --sbc-line: #d9dde4;
	--sbc-fg: #1c2230; --sbc-muted: #5d6577; --sbc-accent: #1f6f6b; --sbc-accent-ink: #ffffff; --sbc-accent-soft: #dcefed;
	--sbc-warn: #9a5b00; --sbc-warn-soft: #fbefd9; --sbc-ok: #2c6e2f; --sbc-ok-soft: #e1f1df; --sbc-info: #2d4f8a; --sbc-info-soft: #e2e9f6;
	--sbc-display: inherit; --sbc-body: inherit; --sbc-mono: ui-monospace, Menlo, Consolas, monospace;
	--sbc-r: 8px;
	color: var(--sbc-fg); font-family: var(--sbc-body); font-size: 15px; line-height: 1.5;
}
.sbc-portal *, .sbc-login * { box-sizing: border-box; }
.sbc-portal { background: var(--sbc-bg); border-radius: var(--sbc-r); padding: 20px; }
.sbc-portal h1, .sbc-portal h2 { font-family: var(--sbc-display); margin: 0; text-wrap: balance; color: var(--sbc-fg); }
.sbc-portal h1 { font-size: 28px; line-height: 1.15; }
.sbc-portal h2 { font-size: 19px; }
.sbc-lede { color: var(--sbc-muted); margin: 4px 0 0; max-width: 62ch; }
.sbc-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
.sbc-nav { display: flex; flex-direction: column; gap: 2px; }
.sbc-nav button { all: unset; cursor: pointer; padding: 9px 12px; border-radius: 6px; color: var(--sbc-muted); font-weight: 500; display: flex; justify-content: space-between; }
.sbc-nav button:hover { background: var(--sbc-sunken); color: var(--sbc-fg); }
.sbc-nav button[aria-current="true"] { background: var(--sbc-accent-soft); color: var(--sbc-accent); }
.sbc-nav button:focus-visible, .sbc-portal :focus-visible { outline: 2px solid var(--sbc-accent); outline-offset: 2px; }
.sbc-nav .sbc-count { font-family: var(--sbc-mono); font-size: 12px; }
.sbc-whobox { margin-top: 16px; padding: 12px; border-radius: var(--sbc-r); background: var(--sbc-sunken); font-size: 13px; color: var(--sbc-muted); display: flex; flex-direction: column; gap: 4px; }
.sbc-whobox b { color: var(--sbc-fg); }
.sbc-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sbc-panel { background: var(--sbc-surface); border: 1px solid var(--sbc-line); border-radius: var(--sbc-r); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sbc-panel-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sbc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sbc-stat .sbc-num { font-family: var(--sbc-display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sbc-stat .sbc-lbl { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--sbc-muted); font-weight: 600; }
.sbc-stat .sbc-sub { font-size: 13px; color: var(--sbc-muted); }
.sbc-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sbc-line); background: var(--sbc-surface); color: var(--sbc-fg); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 500; font-size: 14px; text-decoration: none; }
.sbc-btn:hover { background: var(--sbc-sunken); }
.sbc-btn.sbc-primary { background: var(--sbc-accent); border-color: var(--sbc-accent); color: var(--sbc-accent-ink); }
.sbc-btn.sbc-primary:hover { filter: brightness(1.08); }
.sbc-btn[disabled] { opacity: .6; cursor: default; }
.sbc-btn.sbc-small { padding: 5px 10px; font-size: 13px; }
.sbc-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.sbc-pill.ok { background: var(--sbc-ok-soft); color: var(--sbc-ok); }
.sbc-pill.warn { background: var(--sbc-warn-soft); color: var(--sbc-warn); }
.sbc-pill.info { background: var(--sbc-info-soft); color: var(--sbc-info); }
.sbc-pill.mute { background: var(--sbc-sunken); color: var(--sbc-muted); }
.sbc-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sbc-toolbar input, .sbc-toolbar select { border: 1px solid var(--sbc-line); background: var(--sbc-surface); border-radius: 6px; padding: 7px 10px; min-width: 0; font: inherit; }
.sbc-toolbar input { flex: 1 1 220px; }
.sbc-tablewrap { overflow-x: auto; border: 1px solid var(--sbc-line); border-radius: var(--sbc-r); }
.sbc-portal table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0; }
.sbc-portal th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sbc-muted); font-weight: 600; background: var(--sbc-sunken); padding: 9px 12px; white-space: nowrap; border: 0; }
.sbc-portal td { padding: 11px 12px; border: 0; border-top: 1px solid var(--sbc-line); vertical-align: middle; }
.sbc-portal tr.sbc-click { cursor: pointer; }
.sbc-portal tr.sbc-click:hover td { background: var(--sbc-sunken); }
.sbc-mono { font-family: var(--sbc-mono); font-size: 13px; }
.sbc-right { text-align: right; font-variant-numeric: tabular-nums; }
.sbc-title-cell { display: flex; gap: 12px; align-items: center; min-width: 240px; }
.sbc-title-cell b { display: block; font-weight: 600; }
.sbc-title-cell span { color: var(--sbc-muted); font-size: 13px; }
.sbc-cover { width: 36px; height: 46px; border-radius: 3px; flex: none; object-fit: cover; background: var(--sbc-sunken); border: 1px solid var(--sbc-line); }
.sbc-cover.big { width: 72px; height: 92px; }
.sbc-drawer-bg { position: fixed; inset: 0; background: rgba(10, 14, 20, .45); z-index: 99998; }
.sbc-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--sbc-surface); border-left: 1px solid var(--sbc-line); z-index: 99999; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.sbc-drawer.wide { width: min(820px, 100%); }
.sbc-drawer .sbc-form-frame { min-height: 0; flex: 1 1 auto; height: 100%; }
.sbc-dhead { display: flex; gap: 14px; align-items: flex-start; }
.sbc-dsub { color: var(--sbc-muted); margin-top: 2px; }
.sbc-pills { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.sbc-dsec { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--sbc-line); }
.sbc-dsec h3 { margin: 0; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--sbc-muted); font-weight: 600; font-family: var(--sbc-body); }
.sbc-dsec .sbc-kv { grid-template-columns: 9.5em 1fr; }
.sbc-desc { white-space: pre-wrap; max-width: 62ch; font-size: 14.5px; }
.sbc-dfoot { margin-top: auto; padding: 14px; border-radius: var(--sbc-r); background: var(--sbc-sunken); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sbc-dfoot div { display: flex; flex-direction: column; font-size: 14px; }
.sbc-dfoot span { color: var(--sbc-muted); font-size: 13px; }
.sbc-field { display: flex; flex-direction: column; gap: 5px; }
.sbc-field label { font-size: 12.5px; font-weight: 600; color: var(--sbc-muted); }
.sbc-field input, .sbc-field select, .sbc-field textarea, .sbc-login input[type="email"] { border: 1px solid var(--sbc-line); background: var(--sbc-surface); border-radius: 6px; padding: 8px 10px; width: 100%; font: inherit; color: var(--sbc-fg); }
.sbc-field textarea { min-height: 120px; resize: vertical; }
.sbc-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.sbc-kv dt { color: var(--sbc-muted); }
.sbc-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sbc-yearhead { font-family: var(--sbc-display); font-size: 17px; font-weight: 600; margin-top: 6px; }
.sbc-stmt { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--sbc-line); flex-wrap: wrap; }
.sbc-stmt:first-child { border-top: 0; }
.sbc-fileicon { width: 34px; height: 40px; border-radius: 4px; background: var(--sbc-sunken); border: 1px solid var(--sbc-line); display: grid; place-items: center; font-family: var(--sbc-mono); font-size: 10px; color: var(--sbc-muted); flex: none; text-transform: uppercase; }
.sbc-stmt .sbc-meta { flex: 1; min-width: 180px; }
.sbc-stmt .sbc-meta b { display: block; font-weight: 600; }
.sbc-stmt .sbc-meta span { font-size: 13px; color: var(--sbc-muted); }
.sbc-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.sbc-steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.sbc-steps li::before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sbc-accent-soft); color: var(--sbc-accent); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.sbc-form-frame { width: 100%; min-height: 900px; border: 1px solid var(--sbc-line); border-radius: var(--sbc-r); background: #fff; }
.sbc-attached { font-size: 13px; color: var(--sbc-muted); display: flex; gap: 8px 16px; flex-wrap: wrap; }
.sbc-attached b { color: var(--sbc-fg); font-weight: 600; }
.sbc-note { padding: 10px 14px; border-radius: 6px; background: var(--sbc-info-soft); color: var(--sbc-info); font-size: 14px; }
.sbc-note.sbc-warn { background: var(--sbc-warn-soft); color: var(--sbc-warn); }
.sbc-empty { color: var(--sbc-muted); text-align: center; padding: 24px; }
.sbc-loading { color: var(--sbc-muted); padding: 24px; }
.sbc-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; background: var(--sbc-fg); color: var(--sbc-surface); padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 100000; max-width: calc(100% - 32px); }
.sbc-login { max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.sbc-login form { display: flex; flex-direction: column; gap: 10px; }
.sbc-login label { font-weight: 600; font-size: 14px; }
@media (max-width: 820px) {
	.sbc-portal { padding: 14px; }
	.sbc-shell { grid-template-columns: minmax(0, 1fr); }
	.sbc-nav { flex-direction: row; overflow-x: auto; gap: 4px; }
	.sbc-nav button { white-space: nowrap; }
	.sbc-whobox { display: none; }
	.sbc-grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
	.sbc-drawer { animation: sbc-slide .18s ease-out; }
	@keyframes sbc-slide { from { transform: translateX(24px); opacity: .6; } }
}
