:root {
    color-scheme: light;
    --ink: #164c5a;
    --ink-strong: #103f4c;
    --muted: #789098;
    --yellow: #ffcc00;
    --line: #e7eef0;
    --surface: #ffffff;
    --canvas: #f5f8f8;
    --teal: #007d88;
    --shadow: 0 14px 40px rgb(19 68 79 / 6%);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.topbar { min-height: 74px; padding: 0 max(5.5vw, 24px); display: flex; align-items: center; gap: 54px; background: var(--yellow); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #075d70; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 20px; font-weight: 800; white-space: nowrap; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #fff; color: #087989; font-size: 20px; }
.brand-light { font-weight: 500; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: 32px; }
.main-nav a { position: relative; display: inline-flex; align-items: center; color: #285761; font-size: 14px; }
.main-nav a:hover, .main-nav a.active, .main-nav .nav-dropdown summary:hover, .main-nav .nav-dropdown summary.active { color: #073e4b; }
.main-nav a.active::after, .main-nav .nav-dropdown summary.active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 4px 4px 0 0; background: #087d88; content: ""; }
.nav-dropdown { position: relative; display: flex; align-items: stretch; }
.nav-dropdown summary { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #285761; cursor: pointer; font-size: 14px; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown-menu { position: absolute; z-index: 20; top: calc(100% - 1px); left: -14px; display: flex; min-width: 190px; flex-direction: column; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.nav-dropdown:not([open]) .nav-dropdown-menu { display: none; }
.nav-dropdown-menu a { min-height: 38px; padding: 0 10px; border-radius: 7px; color: #42666e; font-size: 12px; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: #eff7f6; color: #075d70; }
.nav-dropdown-menu a.active::after { display: none; }
.logout-form { margin-left: auto; }
.logout-button { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 1px solid rgb(16 63 76 / 17%); border-radius: 999px; background: transparent; color: var(--ink-strong); cursor: pointer; font-size: 13px; font-weight: 600; }
.page-shell { width: min(1120px, calc(100% - 48px)); min-height: calc(100vh - 126px); margin: 0 auto; padding: 45px 0 70px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: #82989e; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink-strong); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; }
h1 { margin-bottom: 0; font-size: clamp(27px, 3.4vw, 37px); letter-spacing: -.045em; }
.date-pill { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; }
.welcome-banner { position: relative; display: flex; min-height: 204px; align-items: center; justify-content: space-between; overflow: hidden; padding: 35px 46px; border-radius: 17px; background: #fff0a8; }
.welcome-banner::after { position: absolute; right: 13%; bottom: -94px; width: 290px; height: 290px; border: 1px solid rgb(113 103 26 / 13%); border-radius: 50%; content: ""; }
.banner-sparkle { display: inline-grid; width: 29px; height: 29px; place-items: center; margin-bottom: 10px; border-radius: 9px; background: rgb(255 255 255 / 70%); color: #997800; }
.banner-kicker { margin-bottom: 8px; color: #917600; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.welcome-banner h2 { margin-bottom: 6px; font-size: 28px; letter-spacing: -.04em; }
.welcome-banner p:last-child { max-width: 510px; margin-bottom: 0; color: #6e6b4d; font-size: 14px; line-height: 1.65; }
.banner-art { position: relative; z-index: 1; display: grid; width: 115px; height: 115px; place-items: center; margin-right: 8%; border: 1px solid rgb(110 99 28 / 20%); border-radius: 35px; background: rgb(255 255 255 / 58%); color: #8f7600; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 23px; font-weight: 800; transform: rotate(-8deg); }
.banner-art i { position: absolute; top: -8px; right: -20px; color: #d7ad00; font-size: 25px; font-style: normal; }
.section-title { display: flex; justify-content: space-between; align-items: end; margin: 39px 0 18px; }
.section-title h2 { margin-bottom: 0; font-size: 22px; letter-spacing: -.035em; }
.section-title .eyebrow { margin-bottom: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.widget-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.widget { min-height: 206px; padding: 21px 22px; border: 1px solid #edf1f2; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.widget-top { display: flex; align-items: center; gap: 9px; }
.widget-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #e3f2f2; color: #167782; font-size: 16px; }
.widget-icon.mint { background: #e5f5eb; color: #4c9b69; }
.widget-icon.coral { background: #fff0ec; color: #d78569; }
.widget-icon.lavender { background: #f0edfb; color: #8173b1; }
.widget-icon.yellow { background: #fff6d5; color: #ac8c09; }
.widget-label { color: #769098; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.widget-menu { margin-left: auto; color: #9db0b4; font-size: 13px; letter-spacing: 2px; }
.widget-tag { margin-left: auto; padding: 4px 7px; border-radius: 999px; background: #f0f5f5; color: #81969b; font-size: 8px; font-weight: 700; letter-spacing: .06em; }
.widget-number { margin: 18px 0 2px; color: var(--ink-strong); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: clamp(24px, 2.4vw, 31px); font-weight: 700; letter-spacing: -.055em; }
.number-decimal { font-size: .64em; }
.widget-caption, .widget-footnote { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #087d88; font-size: 12px; font-weight: 700; }
.text-link:hover { color: #075660; }
.mini-bars { display: flex; height: 38px; align-items: end; gap: 5px; margin-top: 13px; }
.mini-bars i { flex: 1; border-radius: 3px 3px 0 0; background: #cce8dc; }
.mini-bars i:nth-child(3n) { background: #79c1a0; }
.progress-track { height: 6px; margin-top: 24px; overflow: hidden; border-radius: 5px; background: #f4ece8; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: #e6a18a; }
.widget-footnote { margin-top: 8px; font-size: 10px; }
.widget-wide { grid-column: span 2; min-height: 161px; }
.widget-depots { grid-column: 1 / -1; min-height: 0; }
.widget-next { min-height: 161px; background: #f2f8f7; }
.widget-next h3 { margin: 13px 0 5px; font-size: 15px; }
.widget-next .text-link { margin-top: 12px; }
.empty-activity { display: flex; align-items: center; gap: 14px; padding: 25px 0 5px; }
.empty-activity strong { color: var(--ink-strong); font-size: 13px; }
.empty-activity p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.empty-icon { display: inline-grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #eff6f6; color: #6c9ba0; font-size: 21px; }
.management-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.4fr); align-items: start; gap: 19px; }
.panel { padding: 25px; border: 1px solid #edf1f2; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.panel-heading h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.035em; }
.panel-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: #fff4ca; color: #a48711; font-size: 20px; }
.form-stack { display: flex; flex-direction: column; gap: 9px; }
.form-stack label { margin-top: 7px; color: #385e67; font-size: 12px; font-weight: 600; }
.form-stack input:not([type=hidden]), .form-stack select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #dce7e9; border-radius: 8px; outline: none; background: #fff; color: var(--ink-strong); font-size: 13px; }
.form-stack input:focus, .form-stack select:focus { border-color: #70aeb3; box-shadow: 0 0 0 3px rgb(43 133 142 / 12%); }
.form-stack .color-input { height: 43px; padding: 5px; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 86px; gap: 14px; }
.form-row > div { display: flex; flex-direction: column; gap: 9px; }
.form-hint { margin: 2px 0 3px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 10px; padding: 0 15px; border: 0; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; }
.button-primary { background: #087d88; color: #fff; }
.button-primary:hover { background: #06636c; }
.button-quiet { border: 1px solid var(--line); background: #fff; color: var(--muted); }
.button-wide { width: 100%; margin-top: 7px; }
.count-badge { display: inline-grid; min-width: 24px; height: 24px; place-items: center; margin-left: 5px; border-radius: 999px; background: #eef5f5; color: #5e8289; font-family: "DM Sans", sans-serif; font-size: 11px; vertical-align: 2px; }
.bank-list, .account-list { display: flex; flex-direction: column; }
.bank-row, .account-row { display: flex; min-height: 74px; align-items: center; gap: 12px; border-top: 1px solid #edf1f2; }
.bank-avatar, .account-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #f2f7f7; color: #54878d; font-size: 19px; }
.account-avatar { background: color-mix(in srgb, var(--account-color) 13%, white); color: var(--account-color); font-size: 20px; }
.account-details { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }
.account-details strong { overflow: hidden; color: var(--ink-strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-details > span { color: var(--muted); font-size: 10px; }
.dot-separator { padding: 0 3px; color: #afc0c3; }
.icon-action { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #7e969b; cursor: pointer; font-size: 17px; }
.icon-action:hover { border-color: var(--line); background: #f8fafa; color: var(--ink); }
.danger-action { color: #bd8274; font-size: 22px; }
.danger-action:disabled { cursor: not-allowed; opacity: .32; }
.bank-row form, .account-row form { margin: 0; }
.security-intro { margin: -8px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.security-list { display: flex; flex-direction: column; }
.security-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid #edf1f2; }
.security-main { min-width: 0; flex: 1; }
.security-heading { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px; }
.security-heading strong { overflow: hidden; color: var(--ink-strong); font-size: 13px; text-overflow: ellipsis; }
.symbol-badge { padding: 4px 7px; border-radius: 6px; background: #f0f5f5; color: #64848a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.security-price { margin: 8px 0 2px; color: var(--ink-strong); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -.035em; }
.security-price span { color: #5f7d84; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.security-updated, .security-no-price { margin: 0; color: var(--muted); font-size: 10px; }
.security-error { margin: 7px 0 0; color: #a04f3c; font-size: 11px; line-height: 1.5; }
.security-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.security-actions form { margin: 0; }
.button-refresh { min-height: 33px; padding: 0 10px; border: 1px solid #dce9e9; background: #fff; color: #4c7a80; font-size: 10px; }
.button-refresh:hover { background: #f2f8f7; }
.quote-refresh-alert { font-size: 12px; line-height: 1.6; }
.quote-refresh-alert ul { margin: 6px 0; padding-left: 19px; }
.quote-refresh-alert a { color: #087d88; font-weight: 700; }
.security-used { margin: 5px 0 0; color: #8a7770; font-size: 10px; }
.depot-list { display: flex; flex-direction: column; }
.depot-row { display: flex; min-width: 0; align-items: center; gap: 13px; padding: 16px 0; border-top: 1px solid #edf1f2; }
.depot-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #fff4ca; color: #927800; font-size: 20px; }
.depot-details { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }
.depot-details > strong { overflow: hidden; color: var(--ink-strong); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.depot-details > span { color: var(--muted); font-size: 10px; }
.depot-details .depot-balance { margin-top: 3px; color: #164c5a; font-size: 16px; font-weight: 700; }
.depot-balance small { color: #a04f3c; font-size: 10px; font-weight: 500; }
.depot-warning { color: #a04f3c !important; }
.depot-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 3px; }
.depot-actions form, .holding-actions form { margin: 0; }
.holdings-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.holdings-toolbar > .text-link { margin: 0; }
.holdings-title { display: flex; align-items: center; gap: 11px; }
.holdings-title .eyebrow { margin-bottom: 3px; }
.holdings-title h2 { margin: 0; font-size: 20px; }
.holdings-layout { grid-template-columns: minmax(280px, .78fr) minmax(0, 1.4fr); }
.holding-list { display: flex; flex-direction: column; }
.holding-row { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid #edf1f2; }
.holding-info { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }
.holding-info strong { overflow: hidden; color: var(--ink-strong); font-size: 13px; text-overflow: ellipsis; }
.holding-info > span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.holding-valuation { display: flex; min-width: 105px; flex-direction: column; align-items: flex-end; gap: 4px; }
.holding-current { color: var(--muted); font-size: 10px; }
.holding-valuation > strong { color: var(--ink-strong); font-size: 12px; white-space: nowrap; }
.holding-pl { font-size: 10px; font-weight: 700; }
.holding-pl.positive { color: #39855c; }
.holding-pl.negative { color: #bc705c; }
.holding-error { max-width: 175px; color: #a04f3c; font-size: 9px; text-align: right; }
.legacy-basis-warning { margin: 0; padding: 10px 12px; border: 1px solid #f1d6cf; border-radius: 8px; background: #fff1ed; color: #a04f3c; font-size: 11px; line-height: 1.5; }
.holding-actions { display: flex; align-items: center; gap: 2px; }
.dashboard-depot-list { margin-top: 11px; }
.dashboard-depot-row { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #edf1f2; }
.dashboard-depot-row:hover .dashboard-depot-name strong { color: #087d88; }
.dashboard-depot-name { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.dashboard-depot-name strong { overflow: hidden; color: var(--ink-strong); font-size: 12px; text-overflow: ellipsis; }
.dashboard-depot-name small { color: var(--muted); font-size: 10px; }
.dashboard-depot-balance { color: var(--ink-strong); font-size: 13px; text-align: right; white-space: nowrap; }
.dashboard-depot-balance small { display: block; color: #a04f3c; font-size: 9px; font-weight: 500; }
.empty-state { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.empty-state .empty-icon { margin-bottom: 8px; }
.empty-state p { margin: 7px 0; font-size: 12px; }
.alert { margin: 0 0 18px; padding: 12px 15px; border-radius: 9px; font-size: 13px; }
.alert-success { border: 1px solid #d3eadb; background: #edf8f0; color: #39784e; }
.alert-error { border: 1px solid #f1d6cf; background: #fff1ed; color: #a04f3c; }
.footer { padding: 18px 24px 22px; color: #91a3a7; font-size: 10px; text-align: center; }
.footer span { padding: 0 4px; color: #c3cdcf; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(ellipse at 10% 0%, #fff1b5 0, transparent 39%), var(--canvas); }
.login-card { width: min(440px, 100%); padding: 42px; border: 1px solid #edf1f2; border-radius: 18px; background: #fff; box-shadow: 0 18px 60px rgb(19 68 79 / 9%); }
.login-brand { margin-bottom: 36px; }
.login-card h1 { margin: 8px 0 9px; font-size: 27px; }
.login-card > p.muted { margin-bottom: 25px; font-size: 13px; line-height: 1.6; }
.login-note { margin: 24px 0 0; color: #95a6aa; font-size: 10px; text-align: center; }
.overview-position-profit.positive > strong, .overview-kpi-profit.positive > strong { color: #39855c; }
.overview-position-profit.negative > strong, .overview-kpi-profit.negative > strong { color: #bc705c; }
.overview-position-profit.neutral > strong, .overview-kpi-profit.neutral > strong { color: var(--muted); }
.depot-overview-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 6px 0 22px; }
.depot-overview-toolbar h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.depot-picker { width: min(390px, 48%); }
.depot-picker label { display: block; margin-bottom: 7px; color: #52737a; font-size: 11px; font-weight: 700; }
.depot-picker select { width: 100%; min-height: 41px; padding: 8px 11px; border: 1px solid #dce7e9; border-radius: 8px; outline: none; background: #fff; color: var(--ink-strong); font-size: 12px; }
.depot-picker select:focus { border-color: #70aeb3; box-shadow: 0 0 0 3px rgb(43 133 142 / 12%); }
.depot-overview-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 17px; padding: 22px 25px; border: 1px solid #f0e4ae; border-radius: 14px; background: linear-gradient(110deg, #fff8dc, #fff 75%); }
.overview-hero-copy { display: flex; min-width: 0; align-items: center; gap: 14px; }
.overview-hero-copy .depot-avatar { width: 50px; height: 50px; }
.overview-hero-copy .eyebrow { margin-bottom: 4px; }
.overview-hero-copy h2 { margin: 0 0 4px; font-size: 20px; }
.overview-hero-copy div > span { color: var(--muted); font-size: 11px; }
.button-overview-edit { min-height: 38px; border: 1px solid #dce9e9; background: #fff; color: #28747c; }
.overview-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.overview-kpi { display: flex; min-width: 0; min-height: 126px; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 20px; border: 1px solid #edf1f2; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.overview-kpi-primary { border-color: #dbece8; background: #eff8f6; }
.overview-kpi-label { color: #779096; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.overview-kpi > strong { overflow-wrap: anywhere; color: var(--ink-strong); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; font-size: clamp(18px, 2vw, 25px); letter-spacing: -.04em; }
.overview-kpi-caption { color: var(--muted); font-size: 10px; line-height: 1.5; }
.overview-positions { margin-top: 2px; }
.overview-position-list { display: flex; flex-direction: column; }
.overview-position { display: grid; grid-template-columns: minmax(145px, 1.4fr) repeat(4, minmax(100px, 1fr)); align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid #edf1f2; }
.overview-security, .overview-metric { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; }
.overview-security .symbol-badge { margin-bottom: 1px; }
.overview-security > strong { color: var(--ink-strong); font-size: 12px; }
.overview-security > span:last-child, .overview-metric > span { color: var(--muted); font-size: 10px; }
.overview-metric > strong { color: #315b64; font-size: 11px; overflow-wrap: anywhere; }
.depot-overview-empty { margin-top: 12px; }

@media (max-width: 760px) {
    .topbar { min-height: 64px; flex-wrap: wrap; gap: 0 20px; padding: 0 18px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 28px; height: 28px; }
    .main-nav { order: 3; width: 100%; height: 43px; justify-content: space-between; gap: 12px; }
    .main-nav a { font-size: 12px; }
    .nav-dropdown summary { font-size: 12px; }
    .logout-form { margin-left: auto; }
    .logout-button { padding: 7px 10px; font-size: 11px; }
    .page-shell { width: min(100% - 32px, 580px); min-height: calc(100vh - 150px); padding: 30px 0 48px; }
    .welcome-banner { min-height: 185px; padding: 26px 24px; }
    .banner-art { width: 83px; height: 83px; margin-right: 0; border-radius: 27px; font-size: 18px; }
    .banner-art i { right: -12px; font-size: 18px; }
    .welcome-banner h2 { font-size: 24px; }
    .welcome-banner p:last-child { max-width: 360px; font-size: 12px; }
    .widget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .widget { min-height: 192px; padding: 17px; }
    .widget-wide { grid-column: span 2; min-height: 150px; }
    .widget-next { grid-column: span 2; min-height: 0; }
    .management-layout { grid-template-columns: 1fr; gap: 14px; }
    .overview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .overview-kpi { min-height: 112px; padding: 15px; }
    .overview-position { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .overview-security { grid-column: 1 / -1; }
    .panel { padding: 21px; }
}
@media (max-width: 430px) {
    .date-pill { padding: 7px 9px; font-size: 10px; }
    .page-heading { margin-bottom: 20px; }
    .welcome-banner { padding: 23px 19px; }
    .banner-art { width: 62px; height: 62px; border-radius: 20px; font-size: 15px; }
    .banner-art i { right: -14px; font-size: 15px; }
    .section-title { align-items: start; gap: 8px; }
    .section-title .muted { max-width: 120px; text-align: right; line-height: 1.5; }
    .widget-grid { grid-template-columns: 1fr; }
    .widget, .widget-wide, .widget-next { grid-column: auto; }
    .widget { min-height: 170px; }
    .widget-wide { min-height: 145px; }
    .login-card { padding: 30px 23px; }
    .bank-row, .account-row { gap: 8px; }
    .depot-row { align-items: flex-start; gap: 8px; }
    .depot-actions { flex-wrap: wrap; justify-content: end; }
    .depot-actions .button-refresh { width: auto; padding: 0 8px; font-size: 10px; }
    .holdings-toolbar { align-items: flex-start; flex-direction: column-reverse; gap: 12px; }
    .holdings-toolbar > .text-link { margin-top: 0; }
    .holding-row { flex-wrap: wrap; }
    .holding-info { min-width: calc(100% - 54px); }
    .holding-valuation { margin-left: 54px; align-items: flex-start; }
    .holding-error { text-align: left; }
    .dashboard-depot-balance { font-size: 11px; }
    .security-row { align-items: flex-start; gap: 8px; }
    .security-actions { flex-wrap: wrap; justify-content: end; }
    .button-refresh { width: 34px; padding: 0; font-size: 15px; }
    .button-refresh span { display: none; }
    .depot-overview-toolbar { align-items: stretch; flex-direction: column; gap: 17px; }
    .depot-picker { width: 100%; }
    .depot-overview-hero { align-items: flex-start; flex-direction: column; padding: 19px; }
    .overview-kpis { grid-template-columns: 1fr; }
    .overview-kpi { min-height: 101px; }
}
