:root {
  --navy-950: #041126;
  --navy-900: #07182f;
  --navy-850: #0a1e39;
  --navy-800: #102b4d;
  --ink: #14213d;
  --muted: #64748b;
  --soft: #8b99ad;
  --line: #e3e9f1;
  --canvas: #f4f7fb;
  --white: #fff;
  --cyan: #08c9d8;
  --cyan-dark: #079bad;
  --cyan-pale: #e8fcfd;
  --blue: #1768ff;
  --green: #13a976;
  --green-pale: #e9faf4;
  --amber: #d98912;
  --amber-pale: #fff7e6;
  --red: #dc4963;
  --red-pale: #fff0f3;
  --shadow-sm: 0 2px 10px rgba(17, 37, 66, .06);
  --shadow: 0 18px 50px rgba(17, 37, 66, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); font-family: Inter, Aptos, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.is-hidden { display: none !important; }
.mobile-only { display: none !important; }

.auth-shell { display: grid; grid-template-columns: minmax(500px, 1.08fr) minmax(440px, .92fr); min-height: 100vh; background: #fff; }
.auth-story { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 42px 56px; color: #fff; background: radial-gradient(circle at 82% 14%, rgba(10, 210, 222, .19), transparent 34%), radial-gradient(circle at 18% 82%, rgba(23, 104, 255, .18), transparent 35%), linear-gradient(145deg, #06142c 0%, #092344 56%, #06142c 100%); }
.auth-story::before, .auth-story::after { content: ""; position: absolute; border: 1px solid rgba(20, 213, 225, .1); border-radius: 50%; }
.auth-story::before { width: 540px; height: 540px; right: -265px; top: 120px; box-shadow: 0 0 0 80px rgba(14, 196, 211, .025), 0 0 0 160px rgba(14, 196, 211, .018); }
.auth-story::after { width: 340px; height: 340px; left: -170px; bottom: -90px; box-shadow: 0 0 0 65px rgba(23, 104, 255, .03); }
.brand { position: relative; z-index: 2; display: inline-flex; width: fit-content; align-items: center; gap: 13px; text-decoration: none; font-size: 25px; font-weight: 850; letter-spacing: 2px; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.story-copy { position: relative; z-index: 2; max-width: 710px; margin: auto 0; padding: 60px 0 80px; }
.eyebrow { display: inline-block; color: var(--cyan-dark); font-size: 11px; font-weight: 850; letter-spacing: 2px; }
.eyebrow-light { color: #64e7ee; }
.story-copy h1 { max-width: 660px; margin: 20px 0; font-size: clamp(45px, 5.25vw, 75px); line-height: 1.035; letter-spacing: -3.2px; }
.story-copy h1 em { display: block; color: #46dce6; font-style: normal; }
.story-copy > p { max-width: 600px; margin: 0; color: #adc3d9; font-size: 18px; line-height: 1.7; }
.trust-row { display: flex; gap: 38px; margin-top: 48px; }
.trust-row > div { display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; align-items: center; }
.trust-icon { grid-row: 1 / 3; color: #45dce7; font-size: 21px; }
.trust-row strong { font-size: 13px; }
.trust-row small { margin-top: 3px; color: #819bb6; font-size: 11px; }
.signal-card { position: relative; z-index: 2; max-width: 680px; padding: 16px 20px; border: 1px solid rgba(137, 214, 222, .16); border-radius: 15px; background: rgba(4, 17, 38, .48); backdrop-filter: blur(16px); }
.signal-head { display: flex; align-items: center; gap: 9px; color: #b7cada; font-size: 12px; font-weight: 700; }
.signal-head small { margin-left: auto; color: #3ee6bc; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #2be0b3; box-shadow: 0 0 0 5px rgba(43, 224, 179, .11); }
.signal-flow { display: flex; align-items: center; gap: 12px; margin-top: 13px; color: #7895b1; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.signal-flow i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(8, 201, 216, .15), #08c9d8, rgba(8, 201, 216, .15)); }
.auth-panel { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 48px clamp(38px, 6vw, 110px); background: #fff; }
.auth-content { width: 100%; max-width: 455px; margin: auto; }
.mobile-brand { display: none; }
.auth-title { margin: 12px 0 10px; color: #0c1e38; font-size: 36px; line-height: 1.18; letter-spacing: -1.2px; }
.auth-subtitle { margin: 0 0 30px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.auth-footer { max-width: 455px; margin: 30px auto 0; color: #9aa7b9; font-size: 11px; text-align: center; line-height: 1.5; }
.field { margin-bottom: 19px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #2f405a; font-size: 12px; font-weight: 750; }
.field label a, .text-link { border: 0; padding: 0; color: #079aaa; background: transparent; text-decoration: none; font-weight: 750; }
.input, .select { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid #dce4ee; border-radius: 11px; outline: none; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s; }
.input:focus, .select:focus { border-color: #0bb7c5; box-shadow: 0 0 0 4px rgba(8, 201, 216, .11); }
.input::placeholder { color: #a4afbe; }
.helper { color: #8b98aa; font-size: 11px; line-height: 1.5; }
.form-error { margin: 0 0 16px; padding: 11px 13px; border: 1px solid #ffcbd3; border-radius: 10px; color: #a92940; background: var(--red-pale); font-size: 12px; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 780; font-size: 13px; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button-primary { color: #052038; background: linear-gradient(135deg, #20d2de, #08b8ca); box-shadow: 0 10px 24px rgba(8, 184, 202, .22); }
.button-dark { color: #fff; background: #0a213f; }
.button-secondary { border-color: #dce4ed; color: #273a55; background: #fff; }
.button-danger { border-color: #ffd0d7; color: #b42b43; background: #fff4f6; }
.button-block { width: 100%; min-height: 50px; }
.button-small { min-height: 34px; padding: 0 12px; font-size: 11px; }
.auth-switch { margin-top: 25px; color: #77869a; font-size: 12px; text-align: center; }
.password-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; margin: -6px 0 20px; color: #7c899b; font-size: 10px; }
.password-rules span::before { content: "✓"; margin-right: 5px; color: #0ba777; font-weight: 800; }

.app-shell { min-height: 100vh; background: var(--canvas); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 258px; flex-direction: column; color: #fff; background: radial-gradient(circle at 30% 10%, rgba(8, 201, 216, .10), transparent 26%), var(--navy-950); }
.sidebar-brand { display: flex; height: 89px; align-items: center; gap: 11px; padding: 0 26px; font-weight: 850; font-size: 21px; letter-spacing: 1.8px; }
.sidebar-brand .brand-logo { width: 41px; height: 41px; }
.workspace-picker { margin: 0 15px 18px; }
.workspace-button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(164, 198, 222, .13); border-radius: 11px; color: #d7e6f3; background: rgba(255,255,255,.045); text-align: left; }
.workspace-button span { overflow: hidden; flex: 1; }
.workspace-button strong, .workspace-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-button strong { font-size: 11px; }
.workspace-button small { margin-top: 3px; color: #7793ac; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.workspace-mark { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 8px; color: #052039; background: #27d2dc; font-size: 11px; font-weight: 850; }
.main-nav { overflow-y: auto; padding: 4px 13px; }
.nav-label { display: block; padding: 14px 13px 7px; color: #55718c; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.nav-item { display: flex; width: 100%; min-height: 43px; align-items: center; gap: 11px; margin: 2px 0; padding: 0 13px; border: 0; border-radius: 9px; color: #829bb3; background: transparent; font-size: 12px; font-weight: 670; text-align: left; }
.nav-item:hover { color: #d8e8f2; background: rgba(255,255,255,.04); }
.nav-item.active { color: #eaffff; background: linear-gradient(90deg, rgba(8, 201, 216, .19), rgba(8, 201, 216, .055)); box-shadow: inset 3px 0 #12ced9; }
.nav-icon { display: grid; width: 21px; height: 21px; place-items: center; color: #66a3b8; font-size: 15px; }
.nav-item.active .nav-icon { color: #29d7e2; }
.sidebar-secure { display: flex; align-items: center; gap: 10px; margin: auto 17px 15px; padding: 12px; border: 1px solid rgba(34, 211, 178, .12); border-radius: 11px; background: rgba(20, 179, 146, .055); }
.secure-orbit { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #42ddb8; background: rgba(49, 219, 180, .11); font-size: 11px; }
.sidebar-secure strong, .sidebar-secure small { display: block; }
.sidebar-secure strong { color: #a8c4cb; font-size: 10px; }
.sidebar-secure small { margin-top: 3px; color: #577487; font-size: 8px; }
.profile-card { display: flex; min-height: 69px; align-items: center; gap: 10px; padding: 13px 18px; border: 0; border-top: 1px solid rgba(255,255,255,.07); color: #fff; background: rgba(0,0,0,.1); text-align: left; }
.avatar { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 10px; color: #04213c; background: linear-gradient(145deg, #47e1e8, #11afc3); font-size: 10px; font-weight: 850; }
.profile-card > span:nth-child(2) { overflow: hidden; flex: 1; }
.profile-card strong, .profile-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card strong { color: #cbdce9; font-size: 10px; }
.profile-card small { margin-top: 3px; color: #647f98; font-size: 8px; }
.logout-glyph { color: #57728c; }
.main-area { min-height: 100vh; margin-left: 258px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 89px; align-items: center; padding: 0 34px; border-bottom: 1px solid #e5ebf2; background: rgba(255,255,255,.90); backdrop-filter: blur(14px); }
.topbar h2 { margin: 4px 0 0; color: #10223d; font-size: 22px; letter-spacing: -.4px; }
.page-eyebrow { color: #8492a5; font-size: 8px; font-weight: 800; letter-spacing: 1.4px; }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.health-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #dfe8ed; border-radius: 20px; color: #607388; background: #fff; font-size: 9px; font-weight: 700; }
.health-chip i { width: 6px; height: 6px; border-radius: 50%; background: #17b986; box-shadow: 0 0 0 4px rgba(23,185,134,.10); }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #dfe6ef; border-radius: 10px; color: #53657c; background: #fff; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 30px 34px 55px; }
.page-intro { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.page-intro > div:first-child { flex: 1; }
.page-intro h3 { margin: 0 0 7px; color: #10233e; font-size: 22px; letter-spacing: -.5px; }
.page-intro p { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.action-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -42px; top: -42px; border-radius: 50%; background: rgba(8, 201, 216, .06); }
.metric-top { display: flex; justify-content: space-between; color: #77869b; font-size: 9px; font-weight: 780; text-transform: uppercase; letter-spacing: .8px; }
.metric-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #0793a4; background: var(--cyan-pale); font-size: 13px; }
.metric-value { margin-top: 16px; color: #10233d; font-size: 27px; font-weight: 800; letter-spacing: -.8px; }
.metric-note { margin-top: 5px; color: #8c99aa; font-size: 9px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(310px, .65fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 18px; }
.card-header { display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid #e9eef4; }
.card-header > div:first-child { flex: 1; }
.card-header h4 { margin: 0; color: #1b2d47; font-size: 13px; }
.card-header p { margin: 4px 0 0; color: #93a0b0; font-size: 9px; }
.card-body { padding: 20px; }
.chart { display: flex; height: 188px; align-items: end; gap: 9px; padding: 20px 4px 0; border-bottom: 1px solid #e7ecf2; background: repeating-linear-gradient(to bottom, transparent 0, transparent 45px, #edf1f5 46px); }
.chart-day { display: flex; min-width: 0; height: 100%; flex: 1; align-items: flex-end; justify-content: center; gap: 2px; }
.chart-bar { width: 42%; min-height: 3px; border-radius: 4px 4px 0 0; background: #19c6d3; }
.chart-bar.out { background: #cbd8e5; }
.h0{height:3%}.h1{height:10%}.h2{height:20%}.h3{height:30%}.h4{height:40%}.h5{height:50%}.h6{height:60%}.h7{height:70%}.h8{height:80%}.h9{height:90%}.h10{height:100%}
.chart-labels { display: flex; justify-content: space-between; margin-top: 9px; color: #9aa6b6; font-size: 8px; }
.legend { display: flex; gap: 18px; color: #7b899b; font-size: 9px; }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 2px; background: #19c6d3; }
.legend span:last-child::before { background: #cbd8e5; }
.list { margin: 0; padding: 0; list-style: none; }
.transaction-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf1f5; }
.transaction-row:last-child { border-bottom: 0; }
.merchant-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #0b8795; background: #eefcfd; font-size: 11px; font-weight: 800; }
.transaction-row strong, .transaction-row small { display: block; }
.transaction-row strong { overflow: hidden; color: #273850; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-row small { margin-top: 3px; color: #919dac; font-size: 8px; }
.amount { color: #25364e; font-size: 11px; font-weight: 800; white-space: nowrap; }
.amount.credit { color: #08966c; }
.status-list { display: grid; gap: 11px; }
.status-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e8edf3; border-radius: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #13ad7c; box-shadow: 0 0 0 4px rgba(19,173,124,.10); }
.status-dot.warn { background: #e59a22; box-shadow: 0 0 0 4px rgba(229,154,34,.10); }
.status-row > div { min-width: 0; flex: 1; }
.status-row strong, .status-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-row strong { color: #34455d; font-size: 10px; }
.status-row small { margin-top: 4px; color: #8d9aab; font-size: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; color: #078460; background: #e8f9f3; font-size: 8px; font-weight: 800; text-transform: capitalize; }
.status-pill.warn { color: #a56508; background: #fff4dc; }
.status-pill.error { color: #b53249; background: #ffedf1; }
.status-pill.neutral { color: #64748b; background: #eef2f6; }
.empty-state { padding: 36px 20px; color: #8390a2; text-align: center; }
.empty-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 13px; place-items: center; border-radius: 15px; color: #0aa8b7; background: #ecfbfc; font-size: 21px; }
.empty-state h4 { margin: 0 0 7px; color: #2d405a; }
.empty-state p { max-width: 410px; margin: 0 auto 17px; font-size: 11px; line-height: 1.6; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.table-toolbar { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e7edf3; flex-wrap: wrap; }
.table-toolbar .input, .table-toolbar .select { width: auto; min-height: 38px; font-size: 11px; }
.table-toolbar .search { min-width: 250px; flex: 1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 15px; border-bottom: 1px solid #e6ebf2; color: #8794a5; background: #fafbfd; font-size: 8px; letter-spacing: .8px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 15px; border-bottom: 1px solid #edf1f5; color: #405169; font-size: 10px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdff; }
.cell-title { color: #293a52; font-weight: 750; }
.cell-sub { display: block; margin-top: 3px; color: #96a2b1; font-size: 8px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-top: 1px solid #edf1f5; color: #8491a3; font-size: 9px; }
.page-buttons { display: flex; gap: 5px; }
.page-buttons button { min-width: 31px; height: 31px; border: 1px solid #dce4ed; border-radius: 8px; color: #506078; background: #fff; font-size: 10px; }
.page-buttons button:disabled { opacity: .4; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tenant-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tenant-card { padding: 19px; }
.tenant-head { display: flex; align-items: center; gap: 11px; }
.tenant-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; color: #073050; background: linear-gradient(145deg, #6ce5eb, #20bccb); font-size: 13px; font-weight: 850; }
.tenant-head > div { min-width: 0; flex: 1; }
.tenant-head h4, .tenant-head p { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.tenant-head h4 { color: #273a53; font-size: 12px; }
.tenant-head p { margin-top: 4px; color: #96a2b1; font-size: 8px; }
.tenant-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 17px 0; }
.tenant-stats div { padding: 10px; border-radius: 9px; background: #f7f9fc; }
.tenant-stats strong, .tenant-stats small { display: block; }
.tenant-stats strong { color: #30425b; font-size: 12px; }
.tenant-stats small { margin-top: 3px; color: #8c99a9; font-size: 8px; }
.connection-card { padding: 20px; }
.connection-top { display: flex; align-items: center; gap: 13px; }
.institution-logo { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 13px; color: #08314f; background: #ddf8fa; font-size: 16px; font-weight: 850; }
.connection-top > div:nth-child(2) { min-width: 0; flex: 1; }
.connection-top h4, .connection-top p { margin: 0; }
.connection-top h4 { color: #263950; font-size: 12px; }
.connection-top p { margin-top: 4px; color: #8d9bab; font-size: 8px; }
.account-list { margin-top: 16px; border-top: 1px solid #e9eef3; }
.account-line { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf1f5; }
.account-line:last-child { border-bottom: 0; }
.account-line > div { min-width: 0; flex: 1; }
.account-line strong, .account-line small { display: block; }
.account-line strong { color: #3a4c63; font-size: 10px; }
.account-line small { margin-top: 3px; color: #929faf; font-size: 8px; }
.account-balance { color: #263951; font-size: 10px; font-weight: 800; }
.toggle { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 20px; background: #d7e0e9; transition: .2s; }
.toggle span::after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: .2s; }
.toggle input:checked + span { background: #11bdca; }
.toggle input:checked + span::after { transform: translateX(16px); }
.steps { display: grid; gap: 10px; counter-reset: steps; }
.step { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid #e6ecf2; border-radius: 11px; }
.step::before { counter-increment: steps; content: counter(steps); display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 8px; color: #087f8d; background: #e8fafb; font-size: 9px; font-weight: 850; }
.step strong, .step small { display: block; }
.step strong { color: #35475f; font-size: 10px; }
.step small { margin-top: 4px; color: #8795a6; font-size: 9px; line-height: 1.5; }
.code-block { position: relative; overflow-x: auto; margin: 14px 0 0; padding: 16px; border-radius: 11px; color: #a9dce2; background: #071a32; font: 10px/1.7 Consolas, monospace; white-space: pre; }
.key-reveal { padding: 14px; border: 1px solid #9ce6e9; border-radius: 11px; color: #075866; background: #effdfe; font: 11px/1.6 Consolas, monospace; word-break: break-all; }
.callout { display: flex; gap: 10px; padding: 13px 15px; border: 1px solid #bfe9ed; border-radius: 11px; color: #28606a; background: #f0fcfd; font-size: 10px; line-height: 1.55; }
.callout.warn { border-color: #f2d8a9; color: #76521b; background: #fff9ed; }
.skeleton { min-height: 170px; border-radius: 16px; background: linear-gradient(100deg, #eef2f6 35%, #f8fafc 50%, #eef2f6 65%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 15, 31, .65); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(540px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.modal-card h3 { margin: 4px 0 8px; color: #172b45; font-size: 21px; }
.modal-card > div > p { margin: 0 0 22px; color: #738196; font-size: 11px; line-height: 1.6; }
.modal-close { position: absolute; right: 16px; top: 14px; width: 32px; height: 32px; border: 0; border-radius: 9px; color: #728096; background: #f1f4f8; font-size: 18px; }
.plaid-guide code { padding: 2px 5px; border-radius: 5px; color: #075866; background: #eaf9fb; font: 10px/1.5 Consolas, monospace; overflow-wrap: anywhere; }
.plaid-guide .callout { margin-bottom: 14px; }
.guide-steps { margin: 16px 0; }
.guide-steps a { color: #078b9a; font-weight: 800; }
.guide-actions { justify-content: flex-end; margin-top: 18px; }
.guide-shell { min-height: 100vh; padding: 38px 20px 70px; background: radial-gradient(circle at 88% 5%, rgba(8, 201, 216, .13), transparent 23%), var(--canvas); }
.guide-document { width: min(880px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.guide-masthead { padding: 28px 36px 34px; color: #fff; background: radial-gradient(circle at 90% 12%, rgba(8, 201, 216, .25), transparent 30%), linear-gradient(145deg, #06142c, #0b2c50); }
.guide-masthead .brand { color: #fff; }
.guide-masthead h1 { max-width: 620px; margin: 40px 0 10px; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -1.8px; }
.guide-masthead p { max-width: 650px; margin: 0; color: #abc4d8; line-height: 1.7; }
.guide-content { padding: 34px 36px 42px; }
.guide-content h2 { margin: 32px 0 10px; color: #162b46; font-size: 20px; }
.guide-content > h2:first-child { margin-top: 0; }
.guide-content p, .guide-content li { color: #5f7085; font-size: 13px; line-height: 1.75; }
.guide-content ol { padding-left: 22px; }
.guide-content li { margin-bottom: 17px; padding-left: 7px; }
.guide-content li::marker { color: #079aaa; font-weight: 850; }
.guide-content strong { color: #263b55; }
.guide-content code { padding: 3px 6px; border-radius: 6px; color: #075866; background: #eaf9fb; font: 12px/1.5 Consolas, monospace; overflow-wrap: anywhere; }
.guide-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: #8b98aa; font-size: 11px; }
@media print { .guide-shell { padding: 0; background: #fff; } .guide-document { width: 100%; border: 0; box-shadow: none; } .guide-footer .button { display: none; } }
.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; width: min(370px, calc(100vw - 40px)); gap: 9px; }
.toast { padding: 14px 16px; border: 1px solid #dfe7ef; border-left: 4px solid #12b9c7; border-radius: 11px; color: #35475e; background: #fff; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .25s ease-out; }
.toast.error { border-left-color: #dc4963; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1150px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .tenant-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-panel { min-height: 100vh; padding: 35px 25px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 45px; color: #102541; font-size: 18px; font-weight: 850; letter-spacing: 1.5px; }
  .mobile-brand img { width: 38px; height: 38px; }
  .mobile-only { display: grid !important; }
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 20px 0 60px rgba(3, 16, 35, .3); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .topbar { padding: 0 19px; gap: 13px; }
  .page-content { padding: 22px 18px 45px; }
}
@media (max-width: 650px) {
  .metric-grid, .panel-grid, .tenant-grid { grid-template-columns: 1fr; }
  .page-intro { display: block; }
  .page-intro .action-row { margin-top: 15px; }
  .health-chip { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .table-toolbar .input, .table-toolbar .select { width: 100%; }
  .guide-masthead, .guide-content { padding-left: 22px; padding-right: 22px; }
  .guide-footer { align-items: flex-start; flex-direction: column; }
}
