:root {
  color-scheme: light;
  --bg: #f3f5fa; --surface: #fff; --surface-soft: #f8f9fc;
  --text: #202538; --muted: #626b80; --border: #e3e7f0;
  --accent: #6d46df; --accent-soft: #f0ebfd; --sidebar: #171c2b;
  --shadow: 0 2px 8px #24314c04, 0 12px 28px #24314c03;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { max-width: 470px; padding: 38px; margin: 0; width: 100%; }
.auth-card .brand-mark { margin-bottom: 26px; }
.auth-card .primary { margin-top: 25px; }
.auth-card .text-link { display: inline-block; margin-top: 24px; }
#admin-logout { margin-top: 18px; width: 100%; }
.access-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); gap: 22px; align-items: start; }
.access-users { display: grid; }
.access-user { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.access-user:last-child { border-bottom: 0; }
.access-avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 650; font-size: 17px; }
.access-user-details { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.access-user-details strong { font-size: 14px; overflow-wrap: anywhere; }
.access-user-details > .muted { width: 100%; font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; order: 2; }
.access-remove { color: #a43e45 !important; }
.access-add-panel { position: sticky; top: 24px; }
.access-add-panel .primary { width: 100%; margin-top: 18px; }
#access-count { margin-left: 8px; vertical-align: middle; }
@media(max-width:1000px) { .access-layout { grid-template-columns: 1fr; } .access-add-panel { position: static; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #9b82ef; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.7px; font-weight: 700; }
h2 { font-size: 17px; line-height: 1.4; letter-spacing: -.2px; font-weight: 650; }
h3 { font-size: 16px; }
.muted, .help { color: var(--muted); font-size: 13px; }
.help { margin: 14px 0 0; line-height: 1.65; }
.skip-link { position: fixed; top: -70px; left: 260px; background: white; padding: 12px; z-index: 500; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; display: flex; flex-direction: column; background: var(--sidebar); color: #d4d8e7; padding: 27px 17px 18px; z-index: 10; overflow: auto; }
.sidebar-brand { display: flex; gap: 12px; align-items: center; color: white; font-weight: 650; font-size: 17px; padding: 0 8px 30px; letter-spacing: -.25px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 39px; flex-shrink: 0; border-radius: 11px; background: #8061e6; color: white; font-weight: 750; font-size: 22px; }
.sidebar-brand small { display: block; font-size: 9px; color: #9199ad; letter-spacing: 1.6px; margin-top: 3px; font-weight: 600; }
.nav-label { font-size: 10px; font-weight: 650; letter-spacing: 1.4px; text-transform: uppercase; color: #858fa5; padding: 0 13px 11px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px; border-radius: 8px; color: #bdc5d8; font-size: 13px; font-weight: 500; transition: background .12s, color .12s; }
.sidebar-nav a > span { font-size: 21px; font-weight: 400; width: 21px; line-height: 1; text-align: center; color: #939cb2; }
.sidebar-nav a:hover { background: #ffffff08; color: white; }
.sidebar-nav a[aria-current=page] { background: #8061e629; color: #d8ccff; }
.sidebar-nav a[aria-current=page] > span { color: #bea6ff; }
.sidebar-bottom { margin-top: auto; padding: 35px 12px 0; }
.sidebar-bottom a { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: #b8c1d4; font-size: 12px; }
.sidebar-bottom a:hover { color: white; }
.sidebar-bottom p { display: flex; gap: 8px; align-items: center; font-size: 10px; color: #7d879d; margin-top: 25px; padding-top: 18px; border-top: 1px solid #ffffff0d; }
.sidebar-dot { width: 5px; height: 5px; background: #8893a9; border-radius: 50%; }
.workspace { margin-left: 236px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 65px; background: #fff; border-bottom: 1px solid var(--border); padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb > span { padding: 0 12px; color: #a6adbc; }
.breadcrumb strong { font-weight: 500; color: #343c50; }
.badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: #f0f2f7; color: #687188; font-size: 10px; font-weight: 600; padding: 4px 8px; white-space: nowrap; line-height: 1.5; }
.badge.live, .badge.positive { background: #eaf6ef; color: #247345; }
.badge.live:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #40a56a; margin-right: 6px; }
.badge.neutral { color: #6b7487; background: #f0f2f7; }
main { width: 100%; max-width: 1530px; padding: 31px 36px 36px; margin: 0 auto; flex: 1; }
main:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 27px; }
.eyebrow { color: #9aa1b1; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; margin-bottom: 8px; }
.page-description { color: var(--muted); font-size: 13px; margin-top: 9px; }
.page-heading h1:focus { outline: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; border-radius: 7px; border: 1px solid transparent; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 9px 15px; text-decoration: none; }
.button.primary { background: var(--accent); color: white; box-shadow: 0 2px 3px #6d46df16; }
.button.primary:hover { background: #5c38c6; }
.button.secondary { background: white; border-color: #dfe3ed; color: #4c566c; }
.button.secondary:hover { background: #f8f9fc; border-color: #c9cedb; }
.button.compact { min-height: 31px; padding: 6px 10px; font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 4px 0; font-size: 12px; font-weight: 500; }
.text-button:hover, .text-link:hover { text-decoration: underline; }
.text-link { font-size: 11px; font-weight: 600; white-space: nowrap; }
.notice { padding: 12px 15px; background: #eaf6ef; border: 1px solid #cfe9d9; border-radius: 8px; color: #24673f; margin: 0 0 24px; font-size: 13px; }
.notice.error { background: #fff0ef; border-color: #f2d1cd; color: #aa3e36; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 21px; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: 10px; min-height: 133px; padding: 19px 20px; box-shadow: var(--shadow); }
.stat-card > span { color: #697389; font-size: 11px; font-weight: 500; }
.stat-card > strong { display: block; font-size: 29px; line-height: 1.3; letter-spacing: -.7px; margin-top: 8px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-card > small, .stat-card > a { display: block; margin-top: 7px; color: #8b93a4; font-size: 10px; }
.stat-card > a { color: var(--accent); font-weight: 550; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 23px; box-shadow: var(--shadow); min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.panel-heading .muted { margin-top: 5px; font-size: 12px; }
.goal-overview { margin-bottom: 26px; padding: 21px 23px; }
.goal-overview .panel-heading { margin-bottom: 17px; }
.goal-overview h2 { font-size: 15px; }
progress { display: block; width: 100%; height: 8px; appearance: none; border: 0; overflow: hidden; border-radius: 10px; background: #edeaf5; }
progress::-webkit-progress-bar { background: #edeaf5; border-radius: 10px; }
progress::-webkit-progress-value { background: #8a68e8; border-radius: 10px; }
progress::-moz-progress-bar { background: #8a68e8; border-radius: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0 15px; }
.section-heading .muted { margin-top: 5px; font-size: 12px; }
.provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; margin-bottom: 25px; }
.provider-card { padding: 21px 23px; }
.provider-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.provider-wordmark { font-weight: 650; font-size: 17px; letter-spacing: -.45px; }
.provider-wordmark.tipeee { color: #d34757; }
.provider-wordmark.se { color: #375ea9; }
.provider-channel { margin-top: 13px; font-size: 12px; font-weight: 550; color: #4d586e; }
.provider-card > .muted { font-size: 11px; margin-top: 4px; min-height: 18px; }
.provider-card > .text-link { display: inline-block; margin-top: 16px; font-size: 11px; }
.status-badge { display: inline-flex; gap: 6px; align-items: center; padding: 4px 7px; border-radius: 5px; font-size: 10px; line-height: 1.5; white-space: nowrap; font-weight: 550; }
.status-badge:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-badge.connected { background: #eaf6ef; color: #268253; }
.status-badge.pending { background: #fff6df; color: #9b7419; }
.status-badge.error { background: #fff0ee; color: #b74d43; }
.status-badge.neutral { background: #f0f2f7; color: #7b8498; }
.event-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid #eef0f5; min-width: 0; }
.event-row:first-child { padding-top: 2px; }
.event-row:last-child { border-bottom: 0; padding-bottom: 1px; }
.event-avatar { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #f0ecfb; color: #8264c8; font-size: 12px; font-weight: 600; }
.event-details { display: grid; gap: 2px; flex: 1; min-width: 0; }
.event-details > strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.event-details > .muted { font-size: 11px; overflow-wrap: anywhere; }
.event-amount { font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-state { color: var(--muted); font-size: 13px; padding: 18px 0; line-height: 1.7; }
.articles-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr); gap: 22px; align-items: start; }
.article-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid #edf0f5; min-width: 0; }
.article-row:first-child { padding-top: 0; }
.article-row:last-child { border: 0; }
.article-symbol { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: #f4f2fa; font-size: 22px; overflow: hidden; }
.article-summary { flex: 1; min-width: 0; }
.article-summary > strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.article-price { font-size: 12px; color: var(--muted); margin: 3px 0 6px; }
.article-summary > .badge { font-size: 9px; padding: 2px 6px; }
.article-actions { display: grid; justify-items: center; gap: 7px; }
.article-actions > .text-button { font-size: 10px; }
.form-panel { max-width: 760px; }
form { margin: 0; }
form > label:not(.checkbox-label), .field-grid label { display: block; font-size: 12px; color: #4a556b; font-weight: 550; margin: 17px 0 7px; }
form > label:first-child { margin-top: 0; }
input:not([type=checkbox]):not([type=hidden]), textarea { display: block; width: 100%; border: 1px solid #dce1ec; border-radius: 7px; background: #fff; color: #283246; font-size: 13px; padding: 10px 11px; min-height: 40px; box-shadow: 0 1px 2px #1c234004; }
input::placeholder, textarea::placeholder { color: #a3aab9; }
input:disabled { background: #f3f4f8; color: #9298a5; }
textarea { resize: vertical; line-height: 1.6; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #445168; margin: 19px 0; cursor: pointer; }
.checkbox-label > input, input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
.checkbox-label > span { line-height: 1.5; }
form > .button.primary { margin-top: 8px; }
.setting-box { background: var(--surface-soft); border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin: 21px 0; }
.setting-box > .checkbox-label { margin: 0; }
.setting-box > .help { margin: 9px 0 0 26px; font-size: 12px; }
.info-box { background: #eeeaf8; border: 1px solid #e0d8f4; color: #61547e; border-radius: 9px; padding: 18px 21px; margin-bottom: 25px; max-width: 1100px; }
.info-box > strong { font-size: 13px; color: #51406e; font-weight: 600; }
.info-box p { font-size: 12px; line-height: 1.7; margin-top: 5px; max-width: 900px; }
.payment-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; align-items: start; }
.payment-platform .panel-heading { padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.payment-method-row { display: flex !important; align-items: center; gap: 12px; padding: 16px 0; margin: 0 !important; border-bottom: 1px solid #edf0f5; font-weight: 400 !important; cursor: pointer; }
.payment-method-row.unsupported { cursor: pointer; }
.payment-method-row.unsupported > .payment-method-icons { opacity: .5; }
.payment-method-icons { width: 80px; display: flex; flex-wrap: wrap; gap: 5px; flex-shrink: 0; align-items: center; justify-content: center; }
.payment-method-icons > img { display: block; object-fit: contain; max-width: 100%; height: 25px; width: auto; max-height: 25px; }
.payment-method-icons:has(img + img) > img { max-width: 35px; }
.payment-method-content { flex: 1; min-width: 0; }
.payment-method-content > strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.payment-method-content > .muted { display: block; font-size: 10px; font-weight: 400; margin-top: 3px; }
.payment-method-row > .badge { font-size: 9px; flex-shrink: 0; }
.form-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.inline-warning { background: #fff6e3; color: #987128; border-radius: 6px; padding: 11px 13px; font-size: 12px; margin-top: 15px; overflow-wrap: anywhere; }
.connection-summary { margin-top: 12px; }
.connection-summary > .muted { font-size: 11px; margin-top: 8px; }
.integration-panel .panel-heading { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.integration-panel .help { font-size: 11px; margin-top: 8px; }
.integration-panel .checkbox-label { font-size: 11px; }
.data-details { margin: 0 0 24px; }
.data-details > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 15px; padding: 14px 0; border-bottom: 1px solid #edf0f5; }
.data-details dt { font-size: 12px; color: var(--muted); }
.data-details dd { font-size: 12px; margin: 0; overflow-wrap: anywhere; color: #39445a; }
.page#page-data > .panel + .panel { margin-top: 23px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 18px 36px; border-top: 1px solid var(--border); color: #929bad; font-size: 10px; background: #f6f7fb; }
.page:empty { display: none; }
@media (min-width: 1600px) {
  main { padding-top: 38px; }
  .page-heading { margin-bottom: 32px; }
  .stat-card { min-height: 145px; }
}
@media (max-width: 1180px) {
  .sidebar { width: 213px; padding-inline: 13px; }
  .workspace { margin-left: 213px; }
  .topbar { padding-inline: 26px; }
  main { padding-inline: 26px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 17px; }
  .stat-card > strong { font-size: 25px; }
  .payment-platforms { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr minmax(280px, .9fr); }
  .panel { padding: 20px; }
  .provider-card-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .provider-card > .muted { min-height: 34px; }
  .page-footer { padding-inline: 26px; }
}
@media (max-width: 920px) {
  .sidebar { width: 190px; padding-inline: 10px; }
  .workspace { margin-left: 190px; }
  .sidebar-brand { font-size: 15px; padding-inline: 6px; gap: 9px; }
  .brand-mark { width: 31px; height: 35px; }
  .sidebar-nav a { font-size: 12px; padding-inline: 10px; gap: 9px; }
  .sidebar-nav a > span { font-size: 19px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles-grid { grid-template-columns: 1fr; }
  .provider-grid { gap: 14px; }
  .page-heading { align-items: flex-start; }
  .page-heading > .button { white-space: nowrap; }
  .page-description { max-width: 400px; }
  .provider-wordmark { font-size: 16px; }
  .stat-card { min-height: 126px; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: 100%; padding: 17px 18px 12px; overflow: visible; }
  .sidebar-brand { padding: 0 3px 16px; font-size: 16px; }
  .brand-mark { width: 30px; height: 34px; font-size: 20px; }
  .sidebar-brand small { font-size: 8px; }
  .nav-label, .sidebar-bottom { display: none; }
  .sidebar-nav { display: flex; overflow-x: auto; gap: 5px; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: thin; }
  .sidebar-nav a { min-height: 37px; padding: 8px 11px; white-space: nowrap; gap: 7px; font-size: 11px; }
  .sidebar-nav a > span { font-size: 16px; width: 16px; }
  .workspace { margin: 0; }
  .topbar { height: 53px; padding: 0 20px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb > span { padding-inline: 8px; }
  main { padding: 25px 20px 28px; }
  .page-heading { gap: 15px; margin-bottom: 23px; flex-wrap: wrap; }
  h1 { font-size: 27px; }
  .eyebrow { font-size: 8px; }
  .page-description { font-size: 12px; }
  .page-heading > .button { font-size: 11px; min-height: 34px; padding: 8px 11px; }
  .stats-grid { gap: 11px; margin-bottom: 17px; }
  .stat-card { padding: 16px; min-height: 125px; }
  .stat-card > span { font-size: 10px; }
  .stat-card > strong { font-size: 25px; }
  .stat-card > small, .stat-card > a { font-size: 9px; }
  .panel { padding: 19px; }
  .panel-heading { gap: 12px; flex-wrap: wrap; }
  .panel-heading h2, .section-heading h2 { font-size: 15px; }
  .panel-heading .muted, .section-heading .muted { font-size: 11px; }
  .section-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .provider-grid { grid-template-columns: 1fr; gap: 13px; margin-bottom: 21px; }
  .provider-card-heading { align-items: center; flex-direction: row; }
  .provider-card > .muted { min-height: 0; }
  .provider-card { padding: 18px 20px; }
  .provider-card > .text-link { margin-top: 13px; }
  .goal-overview { margin-bottom: 24px; }
  .goal-overview .panel-heading { margin-bottom: 15px; }
  .goal-overview h2 { font-size: 14px; }
  .text-link { font-size: 10px; }
  .event-row { gap: 10px; }
  .event-details > strong { font-size: 11px; }
  .event-details > .muted { font-size: 10px; }
  .event-amount { font-size: 12px; }
  .event-avatar { width: 30px; height: 30px; font-size: 11px; border-radius: 8px; }
  .info-box { padding: 16px 18px; margin-bottom: 23px; }
  .info-box > strong { font-size: 12px; }
  .info-box p { font-size: 11px; }
  .payment-method-row { gap: 10px; }
  .payment-method-icons { width: 58px; }
  .payment-method-icons > img { max-width: 58px; max-height: 21px; }
  .payment-method-icons:has(img + img) > img { max-width: 25px; }
  .payment-method-content > strong { font-size: 11px; }
  .payment-method-content > .muted { font-size: 9px; }
  .payment-method-row > .badge { font-size: 8px; padding: 3px 5px; }
  .form-actions { gap: 13px; }
  .form-actions > .button { font-size: 11px; }
  .page-footer { padding: 17px 20px; flex-direction: column; gap: 7px; font-size: 9px; }
  .data-details > div { grid-template-columns: 1fr; gap: 6px; }
  .skip-link { left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
