:root {
  --ink: #172522;
  --muted: #68736f;
  --line: #dfe4df;
  --paper: #ffffff;
  --canvas: #f5f4ef;
  --navy: #193f3b;
  --navy-2: #245650;
  --mint: #d7eee5;
  --green: #2b7a5d;
  --green-light: #e7f5ef;
  --blue: #567c98;
  --sand: #d9ad66;
  --amber-light: #fff3db;
  --shadow: 0 10px 32px rgba(28, 49, 44, .07);
  --radius: 18px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 26px 18px 20px; background: var(--navy); color: white; display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 34px; }
.brand-mark { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfecdf; font-family: Georgia, serif; font-weight: 700; }
.brand div { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: Georgia, serif; font-size: 18px; font-weight: 600; }
.brand span:last-child { margin-top: 4px; color: #a7c0b9; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: grid; gap: 6px; }
.nav-item { border: 0; background: transparent; color: #b9cbc7; display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 14px; border-radius: 10px; cursor: pointer; text-align: left; transition: .2s ease; }
.nav-item > span { width: 18px; font-size: 18px; text-align: center; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: rgba(214,238,228,.14); box-shadow: inset 3px 0 #9fd6bd; }
.calculator-subnav { display: grid; gap: 3px; margin: -2px 0 4px 36px; padding: 3px 0 4px 12px; border-left: 1px solid #d8e3eb; }
.calculator-subnav button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #687b8f; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 12px; font-weight: 650; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.calculator-subnav button:hover { color: #1767a3; background: #f0f6fa; transform: translateX(2px); }
.calculator-subnav button > span { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; color: #1767a3; border-radius: 6px; background: #e7f2f9; font-size: 10px; font-weight: 800; }
.nav-item[data-view="calculators"].active + .calculator-subnav button.active { color: #174f7c; background: #e8f2f9; box-shadow: inset 2px 0 #2677b8; }
.sidebar-bottom { margin-top: auto; }
.profile { display: flex; gap: 10px; align-items: center; margin: 18px 5px 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #d8b978; color: #17322e; font-weight: 700; font-size: 12px; }
.profile div { display: flex; flex-direction: column; gap: 3px; }
.profile div span { color: #9fb4af; font-size: 11px; }
.main-content { margin-left: 236px; min-height: 100vh; }
.topbar { height: 72px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(245,244,239,.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.topbar-date { display: flex; gap: 9px; align-items: center; padding: 8px 10px; color: var(--muted); border: 0; border-radius: 10px; background: transparent; font-size: 13px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.topbar-date:hover, .topbar-date[aria-expanded="true"] { color: var(--ink); background: #eef3f1; }
.topbar-date > svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.topbar-date[aria-expanded="true"] > svg { transform: rotate(180deg); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ba97f; box-shadow: 0 0 0 4px #dff1e8; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { position: relative; border: 1px solid var(--line); background: var(--paper); width: 40px; height: 40px; border-radius: 11px; cursor: pointer; font-size: 19px; }
.notification-badge { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #c26f4a; color: white; font-size: 10px; }
.notification-button { display: grid; place-items: center; }
.notification-button > svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-left, .topbar-actions { position: relative; }
.topbar-popover { position: absolute; top: calc(100% + 15px); z-index: 80; width: min(390px, calc(100vw - 32px)); padding: 16px; color: var(--ink); border: 1px solid #d6e1df; border-radius: 15px; background: #fff; box-shadow: 0 18px 45px rgba(19, 48, 44, .18); }
.data-status-popover { left: 48px; width: 330px; }
.notification-popover { right: 0; }
.topbar-popover-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.topbar-popover-heading > div { display: grid; gap: 3px; }
.topbar-popover-heading strong { font-size: 15px; }
.topbar-popover-heading span { color: var(--muted); font-size: 11px; }
.topbar-popover-heading button { padding: 2px; color: #1767a3; border: 0; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.data-status-popover .topbar-popover-heading > i { margin: 6px 5px 0 0; }
.data-source-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.data-source-row span { color: var(--muted); }
.data-source-row strong { text-align: right; }
.data-status-popover > .primary-button { width: 100%; margin-top: 14px; }
.notification-list { display: grid; }
.notification-list > button { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; width: 100%; padding: 13px 2px; color: inherit; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.notification-list > button:last-child { border-bottom: 0; padding-bottom: 2px; }
.notification-list > button:hover { background: #f5f9f7; }
.notification-list > button > span { display: grid; gap: 3px; min-width: 0; }
.notification-list > button strong { font-size: 12px; }
.notification-list > button small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.notification-list > button > b { color: var(--green); font-size: 11px; white-space: nowrap; }
.notification-kind { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #1767a3; background: #e8f2f9; font-style: normal; font-size: 11px; font-weight: 800; }
.notification-kind.interest { color: var(--green); background: var(--green-light); }
.notification-kind.check { color: #987126; background: var(--amber-light); }
.menu-button { display: none; }
.primary-button, .secondary-button, .small-button { border-radius: 11px; padding: 11px 17px; border: 0; cursor: pointer; font-weight: 650; transition: .2s ease; }
.primary-button { background: var(--navy); color: white; box-shadow: 0 5px 14px rgba(25,63,59,.15); }
.primary-button:hover { background: var(--navy-2); transform: translateY(-1px); }
.secondary-button { background: white; border: 1px solid var(--line); }
.secondary-button:hover { border-color: #a8b4af; }
.small-button { padding: 7px 11px; color: var(--navy); background: var(--mint); }
.view { display: none; padding: 38px; max-width: 1500px; margin: 0 auto; animation: view-in .3s ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 7px; color: var(--green); text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 42px); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; }
.page-heading p:last-child, .panel-header p, .muted { margin: 0; color: var(--muted); }
.select-control { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--muted); font-size: 12px; }
.select-control select { border: 0; outline: 0; color: var(--ink); background: white; font-weight: 600; }
.summary-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 16px; }
.summary-card, .panel, .table-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-card { min-height: 170px; padding: 21px; position: relative; overflow: hidden; }
.summary-card.featured { color: white; background: linear-gradient(135deg, #193f3b, #2c6259); border: 0; }
.card-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.featured .card-label { color: #bcd2cc; }
.hint { width: 18px; height: 18px; padding: 0; border-radius: 50%; color: inherit; border: 1px solid currentColor; background: transparent; opacity: .65; }
.big-number { display: block; margin-top: 12px; font-family: Georgia, serif; font-size: clamp(27px, 3vw, 36px); font-weight: 500; }
.medium-number { display: block; margin-top: 14px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.trend { display: inline-flex; gap: 5px; margin-top: 8px; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.trend span { font-weight: 400; }
.trend.positive { background: rgba(210,240,225,.13); color: #b8e6ce; }
.sparkline { position: absolute; height: 68px; inset: auto 0 0; opacity: .8; }
.sparkline svg { width: 100%; height: 100%; }
.sparkline .line { stroke: #b2dec9; stroke-width: 2; fill: none; }
.sparkline .area { fill: rgba(178,222,201,.08); }
.submetric { position: absolute; left: 21px; right: 21px; bottom: 20px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.submetric b { color: var(--ink); font-size: 11px; }
.progress { height: 5px; margin-top: 18px; background: #ecf0ed; border-radius: 5px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.dashboard-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; margin-top: 16px; }
.panel { padding: 23px; }
.panel-header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.panel h2 { margin-bottom: 4px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.panel-header p { font-size: 12px; }
.text-button { border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; }
.allocation-content { display: grid; grid-template-columns: 185px minmax(0,1fr); gap: 22px; align-items: center; min-height: 225px; }
.allocation-panel { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.allocation-panel:hover { transform: translateY(-3px); border-color: #c5d5e3; box-shadow: 0 16px 38px rgba(30,71,108,.12); }
.donut { width: 180px; aspect-ratio: 1; display: grid; place-items: center; position: relative; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.donut:hover { transform: scale(1.025); }
.donut svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); animation: donut-enter .7s cubic-bezier(.2,.8,.2,1) both; }
.donut-track, .donut-segment { fill: none; }
.donut-track { stroke: #edf1f5; stroke-width: 18; }
.donut-segment { stroke-width: 18; cursor: pointer; transition: opacity .2s ease, stroke-width .25s ease, filter .25s ease; }
.donut-segment.bank { stroke: var(--blue); }.donut-segment.ofz { stroke: var(--green); }.donut-segment.corporate { stroke: var(--sand); }
.donut.has-highlight .donut-segment:not(.active) { opacity: .18; }
.donut-segment.active { stroke-width: 23; filter: drop-shadow(0 3px 4px rgba(24,61,91,.2)); }
.donut div { z-index: 1; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.donut strong { font-size: 31px; font-weight: 800; line-height: 1; }
.donut span { margin-top: 6px; color: var(--muted); font-size: 13px; }
.legend { display: grid; gap: 9px; }
.legend > div { display: grid; grid-template-columns: 12px minmax(90px,1fr) auto 40px; align-items: center; gap: 8px; min-height: 50px; padding: 0 9px; border: 1px solid transparent; border-radius: 11px; cursor: default; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease; }
.legend > div:hover, .legend > div.active { transform: translateX(3px); background: #f4f8fb; border-color: #d9e5ee; box-shadow: 0 5px 14px rgba(32,78,113,.07); }
.legend.dimmed > div:not(.active) { opacity: .34; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; transition: transform .2s ease; }
.legend > div.active .legend-dot { transform: scale(1.45); }
.legend-dot.blue { background: var(--blue); }.legend-dot.green { background: var(--green); }.legend-dot.sand { background: var(--sand); }
.legend > div > span:nth-child(2) { font-size: 15px; font-weight: 600; }
.legend strong { font-size: 15px; }.legend small { color: var(--muted); text-align: right; font-size: 13px; font-weight: 650; }
@keyframes donut-enter { from { opacity: 0; transform: rotate(-90deg) scale(.72); } to { opacity: 1; transform: rotate(-90deg) scale(1); } }
.event-list { display: grid; }
.event-row { display: grid; grid-template-columns: 42px 34px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #edf0ee; }
.event-row:first-child { border-top: 0; padding-top: 0; }
.event-row time { display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); }
.event-row time b { font-family: Georgia, serif; font-size: 19px; }.event-row time span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.event-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; font-weight: 700; }
.event-icon.coupon { color: #456a88; background: #e9f1f7; }.event-icon.interest { color: #39785f; background: #e7f4ee; }
.event-row > div { display: flex; flex-direction: column; min-width: 0; }.event-row > div strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.event-row > div span { margin-top: 3px; color: var(--muted); font-size: 10px; }.event-row > b { font-size: 12px; }
.attention-panel { margin-top: 16px; display: flex; align-items: center; gap: 15px; padding: 18px 22px; background: #fffbf2; border-color: #eddbb7; }
.attention-panel h3 { margin-bottom: 3px; font-size: 14px; }.attention-panel p { margin: 0; color: #786c59; font-size: 12px; }.attention-panel .secondary-button { margin-left: auto; }
.attention-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #f4ddb0; color: #825e1e; font-weight: 800; }
.filter-row { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.segmented { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.segmented button { border: 0; background: transparent; padding: 8px 13px; border-radius: 8px; cursor: pointer; }.segmented button.active { color: white; background: var(--navy); }.segmented span { opacity: .65; }
.search-control { display: flex; align-items: center; gap: 8px; min-width: 240px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--muted); }
.search-control input { width: 100%; border: 0; outline: 0; padding: 10px 0; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 1180px; border-collapse: collapse; }
th { padding: 14px 18px; color: var(--muted); background: #fafbf9; text-align: left; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
td { padding: 17px 18px; border-top: 1px solid #edf0ee; white-space: nowrap; font-size: 12px; }
.instrument { display: flex; align-items: center; gap: 11px; }.instrument > div { display: flex; flex-direction: column; gap: 3px; }.instrument span:last-child, .cell-note { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.instrument-link { padding: 0; color: inherit; border: 0; background: transparent; text-align: left; cursor: pointer; }
.instrument-link > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.instrument-link small { color: var(--muted); font-size: 12px; font-weight: 400; }
.instrument-link:hover strong { color: #1767a3; text-decoration: underline; text-underline-offset: 3px; }
.instrument-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-family: Georgia, serif; font-weight: 700; }
.instrument-icon.deposit { color: #315f76; background: #dfedf3; }.instrument-icon.bond { color: #317057; background: #dff1e9; }.instrument-icon.corp { color: #775b32; background: #f4e8d4; }
.positive-text { color: var(--green); font-weight: 700; }.row-menu { border: 0; background: transparent; cursor: pointer; }
.month-switch { display: flex; align-items: center; gap: 12px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: white; }.month-switch button { width: 31px; height: 31px; border: 0; border-radius: 8px; background: #f1f3f0; cursor: pointer; }.month-switch strong { min-width: 120px; text-align: center; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 16px; }.calendar-card, .month-summary { padding: 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); }.weekdays span { padding: 9px; color: var(--muted); text-align: center; font-size: 10px; text-transform: uppercase; }.calendar-day { min-height: 105px; padding: 10px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.calendar-day:nth-child(7n+1) { border-left: 0; }.calendar-day.muted-day { color: #b4bbb7; }.calendar-day.today { background: #f0f7f3; }.calendar-day > span { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; }.calendar-day.today > span { color: white; background: var(--navy); }.day-event { display: block; margin-top: 7px; padding: 5px 6px; border-radius: 6px; font-size: 9px; font-weight: 700; background: #e8f3ee; color: #347157; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.day-event.coupon { background: #eaf1f6; color: #4e718b; }
.mobile-calendar-events { display: none; }
.month-summary h2 { font-family: Georgia, serif; font-size: 31px; font-weight: 500; margin: 12px 0 3px; }.month-summary > p { color: var(--muted); }.month-summary > div { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-size: 11px; }
.forecast-hero { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding: 28px 32px; color: white; background: linear-gradient(120deg, #193f3b, #2d655a); border-radius: var(--radius); box-shadow: var(--shadow); }.forecast-hero > div:first-child { display: flex; align-items: end; gap: 10px; }.forecast-hero label { display: flex; flex-direction: column; gap: 8px; color: #bfd2cc; font-size: 11px; }.forecast-hero input { min-height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 0 12px; background: rgba(255,255,255,.1); color: white; color-scheme: dark; }.forecast-hero .primary-button { background: #d9ebdf; color: var(--navy); box-shadow: none; }.forecast-result { min-width: 280px; padding-left: 35px; border-left: 1px solid rgba(255,255,255,.2); }.forecast-result span, .forecast-result p { color: #bfd2cc; font-size: 11px; }.forecast-result strong { display: block; margin: 7px 0; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }.forecast-result p { margin: 0; }
.forecast-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 16px; }.forecast-grid .panel { min-height: 135px; }.forecast-grid p { margin-top: 10px; font-size: 11px; }.cashflow-panel { margin-top: 16px; }.bar-chart { height: 220px; display: flex; align-items: flex-end; gap: 24px; padding: 20px 12px 0; border-bottom: 1px solid var(--line); }.bar-column { flex: 1; height: 100%; display: flex; align-items: center; justify-content: flex-end; flex-direction: column; gap: 7px; }.bar-column b { font-size: 10px; }.bar-column i { display: block; width: min(48px,70%); min-height: 4px; border-radius: 7px 7px 0 0; background: linear-gradient(#5a9780,#2f7059); transition: height .4s ease; }.bar-column span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.operation-list { padding: 8px 22px 18px; }.operation-date { padding: 18px 0 9px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }.operation-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }.operation-row > div { display: flex; flex-direction: column; gap: 4px; }.operation-row > div span { color: var(--muted); font-size: 11px; }.operation-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; }.operation-icon.income { background: var(--green-light); color: var(--green); }.operation-icon.expense { background: #f7eae5; color: #9d5b43; }.operation-icon.pending { background: var(--amber-light); color: #987126; }.warning-row { background: #fffcf6; }
.operation-row.confirmed-row { animation: operation-confirmed .85s ease both; }
@keyframes operation-confirmed { 0% { background: #dff5eb; transform: scale(.99); } 55% { background: #eef9f4; transform: scale(1.01); } 100% { background: transparent; transform: scale(1); } }
.report-controls { display: grid; grid-template-columns: 190px 190px auto; align-items: end; gap: 13px; margin-bottom: 16px; padding: 18px; }
.report-controls label { display: flex; flex-direction: column; gap: 7px; color: #415368; font-size: 11px; font-weight: 700; }
.report-controls input { width: 100%; height: 44px; padding: 0 11px; color: var(--ink); border: 1px solid #ccd8e2; border-radius: 10px; background: #fff; outline: 0; font: inherit; }
.report-controls input:focus { border-color: #2677b8; box-shadow: 0 0 0 3px #e1eef8; }
.report-controls .primary-button { min-height: 44px; justify-self: start; }
.report-error { grid-column: 1 / -1; margin: 0; color: #a13e46; font-size: 11px; }.report-error:empty { display: none; }
.report-empty-state { min-height: 340px; display: grid; place-items: center; align-content: center; padding: 35px 20px; border: 1px dashed #cbd9e3; border-radius: 17px; background: rgba(255,255,255,.48); text-align: center; }
.report-empty-state > span { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 16px; color: #1767a3; background: #e3f0f8; font-size: 22px; }
.report-empty-state h2 { margin: 0 0 7px; font-size: 21px; }.report-empty-state p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; }
.report-result { display: grid; gap: 14px; }
.report-result-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 4px 2px; }
.report-result-heading h2 { margin: 0 0 4px; font-size: 25px; }.report-result-heading p { margin: 0; color: var(--muted); font-size: 11px; }.report-result-heading > div:last-child { display: flex; gap: 8px; }
.report-summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }
.report-summary-grid article { min-height: 125px; display: flex; flex-direction: column; justify-content: center; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.report-summary-grid span { color: var(--muted); font-size: 11px; font-weight: 650; }.report-summary-grid strong { margin: 8px 0 3px; font-size: 23px; line-height: 1.1; }.report-summary-grid small { color: var(--muted); font-size: 9px; }
.report-summary-grid .accent { color: #fff; border-color: transparent; background: linear-gradient(135deg,#1767a3,#245b88); }.report-summary-grid .accent span,.report-summary-grid .accent small { color: #d9ebf7; }
.report-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.report-breakdown article { padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.report-breakdown article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.report-breakdown span { color: var(--muted); font-size: 11px; }.report-breakdown strong { font-size: 16px; }
.report-breakdown i { height: 7px; display: block; margin-top: 12px; overflow: hidden; border-radius: 8px; background: #e9eff3; }.report-breakdown b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#6fb19a,#26806a); transition: width .35s ease; }.report-breakdown article:last-child b { background: linear-gradient(90deg,#75b5df,#2677b8); }
.report-positions-panel { padding: 20px; }.report-positions-panel .calculator-section-title > span { color: var(--muted); font-size: 11px; }
.report-position-list { display: grid; }
.report-position-row { display: grid; grid-template-columns: minmax(220px,1.4fr) repeat(3,minmax(120px,1fr)); align-items: center; gap: 15px; padding: 15px 0; border-top: 1px solid #e8edf1; }
.report-position-row > div:not(.report-position-name) { display: flex; flex-direction: column; gap: 4px; }.report-position-row > div > span { color: var(--muted); font-size: 9px; }.report-position-row > div > strong { font-size: 13px; }.report-position-row > div > small { color: var(--muted); font-size: 9px; }
.report-position-name { min-width: 0; display: flex; align-items: center; gap: 11px; }.report-position-name > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }.report-position-name strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.report-position-name small { color: var(--muted); font-size: 9px; }
.report-note { margin: 0; padding: 11px 13px; color: #6f624f; border-radius: 9px; background: #fff8e8; font-size: 10px; line-height: 1.45; }
@media (max-width: 850px) { .report-summary-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  #reports-view { padding-inline: 12px; }
  #reports-view .report-heading { margin-bottom: 17px; }
  #reports-view .report-heading h1 { font-size: 35px; }
  #reports-view .report-heading p:last-child { font-size: 14px; line-height: 1.45; }
  .report-controls { grid-template-columns: 1fr; gap: 14px; padding: 18px; border-radius: 17px; }
  .report-controls input { height: 47px; font-size: 14px; }
  .report-controls .primary-button { width: 100%; min-height: 48px; justify-content: center; }
  .report-error { grid-column: 1; }
  .report-empty-state { min-height: 265px; border-radius: 17px; }
  .report-result-heading { align-items: flex-start; flex-direction: column; }
  .report-result-heading h2 { font-size: 21px; }
  .report-result-heading > div:last-child { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .report-result-heading button { width: 100%; padding-inline: 8px; }
  .report-summary-grid, .report-breakdown { grid-template-columns: 1fr; }
  .report-summary-grid article { min-height: 103px; padding: 16px 18px; }
  .report-summary-grid strong { font-size: 22px; }
  .report-positions-panel { padding: 17px; }
  .report-positions-panel .calculator-section-title { flex-direction: row; }
  .report-position-row { grid-template-columns: 1fr 1fr; gap: 13px 10px; padding: 16px 0; }
  .report-position-name { grid-column: 1 / -1; padding-bottom: 3px; }
  .report-position-row > div > strong { font-size: 12px; }
}
@media print {
  .sidebar,.topbar,.report-controls,.report-empty-state,.report-result-heading > div:last-child { display: none !important; }
  .main-content { margin: 0 !important; }.view { display: none !important; padding: 0 !important; }.view#reports-view { display: block !important; }
  .report-result { display: grid !important; }.report-summary-grid { grid-template-columns: repeat(4,1fr); }
}
.empty-view { min-height: calc(100vh - 72px); place-items: center; text-align: center; }.empty-view.active { display: grid; }.empty-view > div > span { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 18px; color: var(--green); background: var(--mint); font-size: 25px; }.empty-view p { color: var(--muted); }.empty-view h1 { font-size: 34px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(12,29,26,.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .22s ease; }.modal-backdrop.open { opacity: 1; visibility: visible; }.modal { width: min(720px,100%); max-height: calc(100vh - 35px); overflow-y: auto; padding: 25px; border-radius: 21px; background: white; box-shadow: 0 25px 70px rgba(10,30,26,.25); transform: translateY(12px); transition: .22s ease; }.modal-backdrop.open .modal { transform: translateY(0); }.modal-header { display: flex; justify-content: space-between; align-items: flex-start; }.modal-header h2 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }.type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }.type-picker button { display: flex; align-items: center; gap: 11px; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; }.type-picker button.active { border-color: var(--green); background: #f2f8f5; box-shadow: 0 0 0 2px #dbece4; }.type-picker button div { display: flex; flex-direction: column; gap: 3px; }.type-picker small { color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.form-grid label { display: flex; flex-direction: column; gap: 7px; color: #48534f; font-size: 11px; font-weight: 650; }.form-grid label.full { grid-column: 1/-1; }.form-grid input, .form-grid select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #d8dfda; border-radius: 10px; outline: 0; background: white; }.form-grid input:focus, .form-grid select:focus { border-color: var(--green); box-shadow: 0 0 0 3px #e5f1eb; }.calculation-preview { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 18px; padding: 16px; border-radius: 12px; background: #f4f7f4; }.calculation-preview div { display: flex; flex-direction: column; gap: 6px; padding: 0 15px; border-left: 1px solid var(--line); }.calculation-preview div:first-child { border-left: 0; padding-left: 0; }.calculation-preview span { color: var(--muted); font-size: 10px; }.calculation-preview strong { font-size: 14px; }.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 70; min-width: 310px; display: flex; gap: 12px; align-items: center; padding: 15px 18px; color: white; border-radius: 14px; background: var(--navy); box-shadow: 0 15px 40px rgba(18,43,39,.3); transform: translateY(90px); opacity: 0; transition: .3s ease; }.toast.show { transform: translateY(0); opacity: 1; }.toast > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #bfe2d1; font-weight: 900; }.toast p { margin: 3px 0 0; color: #b9cfca; font-size: 10px; }

/* Visual refresh: high contrast, neutral surfaces, larger sans-serif typography. */
:root {
  --ink: #172333;
  --muted: #5d6e82;
  --line: #dbe3eb;
  --paper: #ffffff;
  --canvas: #f2f5f8;
  --navy: #174f7c;
  --navy-2: #0f3f67;
  --mint: #e4f1fb;
  --green: #14715b;
  --green-light: #e5f4ef;
  --blue: #2677b8;
  --sand: #efa34a;
  --amber-light: #fff5dc;
  --shadow: 0 8px 24px rgba(30, 55, 82, .07);
  --radius: 16px;
}
body { font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.45; }
.sidebar { width: 252px; color: var(--ink); background: #fff; border-right: 1px solid var(--line); }
.brand-mark { width: 44px; height: 44px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #287cbd, #174f7c); box-shadow: 0 7px 16px rgba(38,119,184,.2); font-family: inherit; font-weight: 800; }
.brand strong { font-family: inherit; font-size: 19px; font-weight: 750; }
.brand span:last-child { color: var(--muted); letter-spacing: .08em; }
.nav-item { padding: 13px 14px; color: #52667c; font-size: 15px; font-weight: 600; }
.nav-item > .nav-icon { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 22px; }
.nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: var(--navy); background: #f2f6fa; }
.nav-item.active { color: var(--navy); background: #e8f2fa; box-shadow: inset 4px 0 #2677b8; }
.profile { border-top-color: var(--line); }
.profile div span { color: var(--muted); font-size: 12px; }
.avatar { width: 40px; height: 40px; color: var(--navy); background: #d9ebf8; font-weight: 800; }
.main-content { margin-left: 252px; }
.topbar { height: 74px; background: rgba(255,255,255,.96); }
.topbar-date { font-size: 14px; }
.status-dot { width: 8px; height: 8px; background: #268d6f; box-shadow: 0 0 0 4px #dff2eb; }
.primary-button { background: #1767a3; box-shadow: 0 5px 14px rgba(23,103,163,.18); }
.primary-button:hover { background: #0f568d; }
.view { padding: 40px; }
.eyebrow { color: #1767a3; font-size: 11px; letter-spacing: .14em; }
h1 { font-family: inherit; font-size: clamp(34px,4vw,46px); line-height: 1.1; font-weight: 750; }
.summary-card.featured { background: linear-gradient(135deg, #1767a3, #245b88); }
.card-label { font-size: 14px; font-weight: 650; }
.featured .card-label { color: #d5e8f6; }
.big-number { font-family: inherit; font-size: clamp(30px,3vw,39px); font-weight: 750; letter-spacing: -.02em; }
.medium-number { font-family: inherit; font-size: 28px; font-weight: 750; letter-spacing: -.02em; }
.trend.positive { color: #e4f3fd; background: rgba(255,255,255,.15); }
.sparkline .line { stroke: #b7daf2; }.sparkline .area { fill: rgba(183,218,242,.1); }
.panel h2 { font-family: inherit; font-size: 22px; font-weight: 750; }
.panel-header p { font-size: 14px; }
.text-button { color: #1767a3; font-size: 13px; font-weight: 700; }
.donut strong, .event-row time b, .instrument-icon, .month-summary h2, .forecast-result strong, .modal-header h2 { font-family: inherit; font-weight: 750; }
.event-row > div strong { font-size: 14px; }.event-row > div span { font-size: 12px; }.event-row > b { font-size: 14px; }
.attention-panel { background: #fff9ea; border-color: #ead8a8; }
.attention-panel h3 { font-size: 15px; }.attention-panel p { color: #655c4e; font-size: 13px; }
th { background: #f7f9fb; font-size: 11px; } td { font-size: 14px; }
.instrument span:last-child, .cell-note { font-size: 12px; }
.instrument-icon { width: 38px; height: 38px; }
.month-summary h2 { font-size: 32px; }.month-summary > div { font-size: 13px; }
.forecast-hero { background: linear-gradient(120deg, #1767a3, #245b88); }
.forecast-hero label, .forecast-result span, .forecast-result p { color: #d5e8f6; font-size: 13px; }
.forecast-hero .primary-button { color: var(--navy); background: #fff; }
.forecast-result strong { font-size: 34px; }
.bar-column i { background: linear-gradient(#54a0d7,#2677b8); }
.forecast-hero { justify-content: flex-start; gap: 0; padding: 26px 30px; }
.forecast-hero > div.forecast-controls:first-child { display: flex; flex: 0 0 auto; align-items: flex-start; flex-direction: column; gap: 9px; }
.forecast-controls > label { display: block; color: #e8f4fc; font-size: 14px; font-weight: 700; }
.forecast-controls > div { display: flex; gap: 10px; align-items: center; }
.forecast-controls input { width: 180px; min-height: 46px; font-size: 15px; }
.forecast-controls .primary-button { min-height: 46px; padding-inline: 22px; }
.forecast-result { min-width: 300px; margin-left: 52px; padding-left: 36px; }
.forecast-result strong { white-space: nowrap; }
.cashflow-panel .panel-header { align-items: center; }
.range-control { position: relative; z-index: 8; }
.chart-period { display: flex; align-items: center; gap: 7px; padding: 8px 11px; color: #315e7f; border: 1px solid transparent; border-radius: 8px; background: #edf5fb; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.chart-period:hover, .chart-period.open { color: #174f7c; border-color: #bcd3e4; background: #e4f0f8; }
.chart-period svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.chart-period.open svg { transform: rotate(180deg); }
.range-popover { position: absolute; top: calc(100% + 10px); right: 0; width: 390px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(28,54,79,.18); z-index: 12; }
.range-popover-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 13px; }
.range-popover-title strong { font-size: 16px; }.range-popover-title span { color: var(--muted); font-size: 11px; }
.range-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 14px; }
.range-presets button { min-height: 35px; padding: 0 7px; color: #52667c; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; font-weight: 650; cursor: pointer; }
.range-presets button:hover, .range-presets button.active { color: #174f7c; border-color: #9fc1d9; background: #eaf3fa; }
.range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range-fields label { display: flex; flex-direction: column; gap: 6px; color: #415368; font-size: 11px; font-weight: 650; }
.range-fields input { width: 100%; height: 40px; padding: 0 9px; border: 1px solid #d2dce5; border-radius: 8px; outline: 0; }
.range-fields input:focus { border-color: #2677b8; box-shadow: 0 0 0 3px #e1eef8; }
.range-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.range-actions button { padding: 8px 13px; font-size: 12px; }
.bar-chart { height: auto; display: block; padding: 0; border-bottom: 0; overflow-x: auto; }
.year-groups { display: grid; grid-template-columns: repeat(7,1fr); gap: 14px; margin: 0 12px 10px; }
.year-groups span { padding: 7px 10px; color: #315e7f; border-radius: 8px; background: #edf5fb; text-align: center; font-size: 12px; font-weight: 800; }
.year-groups span:not(:first-child) { color: #705422; background: #fff3dd; }
.bar-columns { height: 225px; display: flex; align-items: flex-end; gap: 14px; padding: 20px 12px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 54px, #edf1f5 55px, transparent 56px); }
.bar-column { position: relative; flex: 1; height: 100%; display: flex; align-items: center; justify-content: flex-end; flex-direction: column; gap: 7px; }
.bar-column b { padding: 3px 5px; color: #415368; border-radius: 5px; background: rgba(255,255,255,.86); font-size: 11px; white-space: nowrap; transition: transform .2s ease, color .2s ease; }
.bar-column i { display: block; width: min(58px,72%); min-height: 5px; border-radius: 8px 8px 2px 2px; box-shadow: 0 7px 15px rgba(38,119,184,.12); transition: height .4s ease, transform .2s ease, filter .2s ease; }
.bar-column:hover i { transform: scaleX(1.08); filter: brightness(1.08); }
.bar-column:hover b { transform: translateY(-2px); color: #1767a3; }
.bar-label { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 40px; }
.bar-label span { color: var(--ink); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.bar-label small { color: var(--muted); font-size: 11px; font-weight: 650; }
.year-groups, .bar-columns { min-width: max(100%, calc(var(--chart-columns, 7) * 86px)); }
.empty-chart { display: grid; place-items: center; min-height: 220px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; background: #f9fbfc; }
.empty-view > div > span { color: var(--navy); }.empty-view h1 { font-size: 36px; }
.modal-header h2 { font-size: 28px; }
.type-picker button.active { border-color: #2677b8; background: #f1f7fc; box-shadow: 0 0 0 2px #dbeaf6; }
.type-picker small { font-size: 11px; }
.form-grid label { color: #415368; font-size: 13px; }.form-grid input, .form-grid select { height: 44px; font-size: 15px; }.form-grid input:focus, .form-grid select:focus { border-color: #2677b8; box-shadow: 0 0 0 3px #e1eef8; }
.calculation-preview { background: #f2f6f9; }.calculation-preview span { font-size: 12px; }.calculation-preview strong { font-size: 16px; }
.toast { background: #174f7c; box-shadow: 0 15px 40px rgba(23,79,124,.28); }.toast > span { color: var(--navy); background: #d8ebf8; }.toast p { color: #d5e8f6; font-size: 11px; }
.filter-row { align-items: center; justify-content: flex-start; gap: 12px; }
.segmented { height: 48px; padding: 4px; flex: 0 0 auto; }
.segmented button { min-width: 102px; height: 38px; padding: 0 16px; font-size: 14px; font-weight: 650; }
.segmented button:first-child { min-width: 82px; }
.segmented button.active { background: #1767a3; }
.segmented button span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 3px; padding: 0 5px; border-radius: 10px; background: rgba(23,79,124,.09); font-size: 11px; }
.segmented button.active span { background: rgba(255,255,255,.18); opacity: 1; }
.search-control { width: 340px; min-width: 280px; height: 48px; padding: 0 14px; font-size: 17px; }
.search-control input { height: 100%; padding: 0; font-size: 14px; }
.back-button { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 21px; padding: 0; color: #52667c; border: 0; background: transparent; font-size: 13px; font-weight: 650; cursor: pointer; }
.back-button:hover { color: #1767a3; }.back-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bond-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.bond-title-group { display: flex; align-items: center; gap: 15px; }.bond-title-group .instrument-icon { width: 50px; height: 50px; border-radius: 14px; font-size: 18px; }.bond-title-group h1 { margin-bottom: 3px; }.bond-title-group p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.detail-heading-actions { display: flex; align-items: center; gap: 9px; }.live-badge { display: inline-flex; align-items: center; gap: 6px; color: #276f5a; font-size: 11px; font-weight: 700; }.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #299975; }
.bond-summary-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.bond-summary-grid article { min-height: 135px; display: flex; flex-direction: column; justify-content: center; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.bond-summary-grid article > span { color: var(--muted); font-size: 12px; font-weight: 650; }.bond-summary-grid article strong { margin: 9px 0 4px; font-size: 23px; line-height: 1.05; }.bond-summary-grid article small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.bond-summary-grid article.accent { color: #fff; border: 0; background: linear-gradient(135deg,#1767a3,#245b88); }.bond-summary-grid article.accent > span, .bond-summary-grid article.accent small { color: #d5e8f6; }
.investment-result-panel { margin-top: 16px; padding: 22px; border: 1px solid #cbdde9; border-radius: 16px; background: linear-gradient(135deg,#f8fbfd,#eef6fb); box-shadow: var(--shadow); }
.investment-result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.investment-result-header h2 { margin: 0 0 4px; font-size: 23px; }.investment-result-header > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.calculation-badge { padding: 7px 10px; color: #1767a3; border: 1px solid #bdd5e6; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 750; white-space: nowrap; }
.investment-result-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.investment-result-grid > div { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 15px; border: 1px solid #d8e4ec; border-radius: 12px; background: #fff; }
.investment-result-grid span { color: var(--muted); font-size: 11px; font-weight: 650; }.investment-result-grid strong { margin: 7px 0 3px; font-size: 21px; line-height: 1.1; }.investment-result-grid small { color: var(--muted); font-size: 10px; }
.investment-result-grid .result-highlight { color: #fff; border-color: transparent; background: linear-gradient(135deg,#1767a3,#245b88); box-shadow: 0 8px 20px rgba(23,103,163,.18); }
.investment-result-grid .result-highlight span, .investment-result-grid .result-highlight small { color: #d8eaf7; }
.negative-result { color: #a34e55; }
.result-formula { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 11px 13px; border-radius: 9px; background: #fff; font-size: 12px; font-weight: 700; }
.result-formula small { color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.detail-tabs { display: flex; gap: 5px; margin: 22px 0 13px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: fit-content; }
.detail-tabs button { min-height: 38px; padding: 0 14px; color: #52667c; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 650; cursor: pointer; }.detail-tabs button:hover, .detail-tabs button.active { color: #174f7c; background: #e9f3fa; }.detail-tabs span { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 3px; padding: 0 5px; border-radius: 10px; background: rgba(23,79,124,.09); font-size: 10px; }
.detail-panel { margin-top: 14px; }.detail-panel .panel-header { align-items: center; }.detail-table { min-width: 940px; }.detail-table tfoot td { background: #f4f7f9; font-weight: 750; }.next-payment { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }.next-payment span { color: var(--muted); font-size: 10px; }.next-payment strong { color: #1767a3; font-size: 14px; }
#coupons-detail .table-scroll { max-height: 470px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
#coupons-detail .detail-table thead { position: sticky; top: 0; z-index: 2; }
.payment-type { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }.payment-type i { width: 9px; height: 9px; border-radius: 50%; background: #4b98cd; }.payment-type.redemption i { background: #efaa4c; }
.yield-panel { display: flex; align-items: center; justify-content: space-between; gap: 35px; }.yield-panel > div:first-child { max-width: 600px; }.yield-panel > div:first-child p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.yield-comparison { display: flex; align-items: center; gap: 16px; min-width: 390px; }.yield-comparison > div { min-width: 150px; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 11px; background: #f3f6f8; }.yield-comparison > div > span, .yield-comparison small { color: var(--muted); font-size: 10px; }.yield-comparison strong { font-size: 23px; }.yield-comparison .highlight { color: #fff; background: #1767a3; }.yield-comparison .highlight > span, .yield-comparison .highlight small { color: #d5e8f6; }
.hidden { display: none !important; }
.modal { width: min(880px,100%); }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-title > div { display: flex; flex-direction: column; gap: 3px; }
.section-title strong { font-size: 16px; }
.section-title span { color: var(--muted); font-size: 12px; }
.bond-lookup, .bond-reference, .bond-purchase, .coupon-section { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bond-lookup { background: #f7fafd; }
.source-badge { align-self: flex-start; padding: 5px 8px; color: #1767a3 !important; border: 1px solid #cbddea; border-radius: 7px; background: #fff; font-size: 11px !important; font-weight: 700; }
.lookup-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; }
.lookup-row label { display: flex; flex-direction: column; gap: 7px; color: #415368; font-size: 13px; font-weight: 650; }
.lookup-row input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #ccd8e2; border-radius: 10px; outline: 0; background: #fff; font-size: 15px; }
.lookup-row input:focus { border-color: #2677b8; box-shadow: 0 0 0 3px #e1eef8; }
.lookup-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.bond-search-field { position: relative; min-width: 0; }
.bond-search-field > label { display: block; margin-bottom: 7px; }
.bond-search-input { position: relative; }
.bond-search-input > svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; fill: none; stroke: #718398; stroke-width: 1.7; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.lookup-row .bond-search-input input { padding: 0 40px 0 39px; }
.clear-bond-query { position: absolute; right: 7px; top: 50%; width: 30px; height: 30px; padding: 0; color: #718398; border: 0; border-radius: 7px; background: transparent; font-size: 18px; cursor: pointer; transform: translateY(-50%); }
.clear-bond-query:hover { color: #174f7c; background: #edf4f9; }
.bond-suggestions { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 20; overflow: hidden; border: 1px solid #cbd9e5; border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(28,57,84,.17); }
.bond-suggestions[hidden] { display: none; }
.bond-suggestion { width: 100%; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 13px; color: var(--ink); border: 0; border-top: 1px solid #edf1f5; background: #fff; text-align: left; cursor: pointer; }
.bond-suggestion:first-child { border-top: 0; }.bond-suggestion:hover, .bond-suggestion.active { background: #eef6fb; }
.bond-suggestion .instrument-icon { width: 36px; height: 36px; }
.bond-suggestion > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.bond-suggestion strong { font-size: 13px; }.bond-suggestion small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bond-suggestion > small { color: #1767a3; font-size: 10px; font-weight: 700; }
.bond-suggestion-empty { padding: 15px; color: var(--muted); font-size: 12px; }
.lookup-status { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.lookup-status > span:first-child { width: 17px; height: 17px; display: grid; place-items: center; flex: 0 0 auto; color: #1767a3; border-radius: 50%; background: #e2eff8; font-size: 10px; font-weight: 800; }
.lookup-status.success { color: #256c57; }.lookup-status.success > span:first-child { color: #256c57; background: #e2f2ec; }
.lookup-status.error { color: #9a4c51; }.lookup-status.error > span:first-child { color: #9a4c51; background: #f8e9eb; }
.bond-found-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.bond-found-header h3 { margin: 3px 0 2px; font-size: 20px; }
.bond-found-header p { margin: 0; color: var(--muted); font-size: 12px; }
.sync-status { color: var(--green); font-size: 11px; font-weight: 700; }
.sync-status i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: #24a078; }
.reference-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.reference-grid div { display: flex; flex-direction: column; gap: 5px; padding: 13px; background: #f8fafc; }
.reference-grid span { color: var(--muted); font-size: 11px; }.reference-grid strong { font-size: 14px; }
.auto-fields-note { margin-top: 12px; padding: 9px 11px; color: #52667c; border-radius: 8px; background: #edf5fb; font-size: 11px; }
.trade-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.trade-settings label { display: flex; flex-direction: column; gap: 6px; color: #415368; font-size: 12px; font-weight: 650; }
.trade-settings input, .trade-settings select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #d2dce5; border-radius: 9px; background: #fff; outline: 0; }
.lot-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.lot-table { min-width: 800px; }
.lot-table th { padding: 9px 10px; font-size: 10px; }
.lot-table td { padding: 8px 7px; }
.lot-table input { width: 100%; min-width: 76px; height: 36px; padding: 0 8px; border: 1px solid #d5dee7; border-radius: 7px; background: #fff; font-size: 13px; outline: 0; }
.lot-table input[type="date"] { min-width: 136px; }
.lot-table input:focus { border-color: #2677b8; box-shadow: 0 0 0 2px #e1eef8; }
.lot-amount { min-width: 100px; font-weight: 750; }
.remove-lot { width: 31px; height: 31px; padding: 0; color: #8b5560; border: 0; border-radius: 7px; background: #f8ecef; cursor: pointer; }
.bond-cost-summary { display: grid; grid-template-columns: repeat(4,1fr); align-items: center; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 11px; background: #f2f6f9; }
.bond-cost-summary div { display: flex; flex-direction: column; gap: 4px; }.bond-cost-summary div > span { color: var(--muted); font-size: 10px; }.bond-cost-summary div > strong { font-size: 14px; }.bond-cost-summary > span { color: #9aa8b5; }
.bond-cost-summary .total { padding: 8px 0 8px 12px; border-left: 2px solid #2677b8; }.bond-cost-summary .total strong { color: #174f7c; font-size: 17px; }
.sync-control { display: flex; align-items: center; gap: 7px; color: var(--ink) !important; font-size: 12px !important; font-weight: 650; }
.sync-control input { accent-color: #2677b8; }
.coupon-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.coupon-table { min-width: 940px; }
.coupon-table th { padding: 10px 12px; }.coupon-table td { padding: 11px 12px; font-size: 13px; }
.known-badge, .unknown-badge { display: inline-block; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.known-badge { color: #17644f; background: #e4f3ed; }.unknown-badge { color: #84611e; background: #fff1cf; }
.data-warning { margin: 11px 0 0; padding-left: 18px; color: #665c4b; font-size: 11px; position: relative; }
.data-warning::before { content: "!"; position: absolute; left: 0; top: -1px; color: #a37828; font-weight: 900; }

@media (max-width: 1180px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .bond-summary-grid { grid-template-columns: repeat(3,1fr); }
  .investment-result-grid { grid-template-columns: repeat(3,1fr); }
  .result-formula { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 850px) {
  .sidebar { transform: translateX(-100%); box-shadow: 15px 0 40px rgba(9,28,24,.25); transition: transform .25s ease; }.sidebar.open { transform: translateX(0); }.main-content { margin-left: 0; }.menu-button { display: block; }.topbar { padding: 0 20px; }.topbar-date { display: none; }.view { padding: 27px 20px; }.calendar-layout { grid-template-columns: 1fr; }.forecast-hero { align-items: stretch; flex-direction: column; }.forecast-result { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 22px 0 0; }.forecast-grid { grid-template-columns: 1fr; }
  .bond-detail-heading, .yield-panel { align-items: flex-start; flex-direction: column; }.detail-heading-actions { flex-wrap: wrap; }.yield-comparison { min-width: 0; width: 100%; }
}
@media (max-width: 620px) {
  .topbar { height: 64px; }.topbar-actions .icon-button { display: none; }.view { padding: 22px 14px; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }.page-heading .primary-button, .page-heading .select-control { width: 100%; justify-content: center; }.summary-grid { grid-template-columns: 1fr; }.summary-card { min-height: 170px; }.dashboard-grid { margin-top: 12px; }.panel { padding: 18px; }.panel-header { align-items: flex-start; flex-direction: column; }.allocation-content { grid-template-columns: 1fr; justify-items: center; }.legend { width: 100%; }.event-row { grid-template-columns: 38px 30px minmax(0,1fr); }.event-row > b { grid-column: 3; }.attention-panel { align-items: flex-start; flex-wrap: wrap; }.attention-panel .secondary-button { width: 100%; margin: 0; }.filter-row { flex-direction: column; }.segmented { overflow-x: auto; }.search-control { min-width: 0; }.calendar-card { padding: 7px; overflow-x: auto; }.weekdays, .calendar-grid { min-width: 580px; }.forecast-hero { padding: 22px 18px; }.forecast-hero > div:first-child { align-items: stretch; flex-direction: column; }.forecast-result { min-width: 0; }.bar-chart { gap: 8px; padding-inline: 0; }.bar-column b { font-size: 8px; }.operation-row { grid-template-columns: 35px minmax(0,1fr) auto; }.operation-row .small-button { grid-column: 2/-1; }.type-picker { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-grid label.full { grid-column: auto; }.calculation-preview { grid-template-columns: 1fr; gap: 10px; }.calculation-preview div { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }.calculation-preview div:first-child { border-top: 0; padding-top: 0; }.toast { left: 14px; right: 14px; bottom: 14px; min-width: 0; }
}

@media (max-width: 620px) {
  #calendar-view { padding-inline: 12px; }
  #calendar-view .page-heading { gap: 18px; margin-bottom: 18px; }
  #calendar-view .page-heading > div { width: 100%; }
  #calendar-view .page-heading h1 { font-size: clamp(29px, 9vw, 35px); }
  #calendar-view .page-heading p:last-child { max-width: 320px; font-size: 14px; line-height: 1.45; }
  .month-switch { width: 100%; justify-content: space-between; gap: 6px; padding: 5px; border-radius: 13px; }
  .month-switch button { width: 38px; height: 38px; flex: 0 0 38px; font-size: 18px; }
  .month-switch strong { min-width: 0; flex: 1; font-size: 14px; }
  .calendar-layout { width: 100%; min-width: 0; gap: 12px; }
  .calendar-card { width: 100%; min-width: 0; padding: 8px; overflow: hidden; border-radius: 17px; }
  .weekdays, .calendar-grid { width: 100%; min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .weekdays span { min-width: 0; padding: 8px 0; font-size: 9px; }
  .calendar-day { min-width: 0; min-height: 59px; padding: 4px 1px; overflow: hidden; text-align: center; }
  .calendar-day > span { width: 24px; height: 24px; font-size: 12px; }
  .calendar-day.muted-day { color: #aeb9c3; background: #fafbfd; }
  .day-event { width: calc(100% - 4px); min-height: 17px; margin: 3px 2px 0; padding: 3px 1px; border-radius: 5px; font-size: 0; line-height: 1.2; text-align: center; text-overflow: clip; }
  .day-event::after { content: attr(data-short); font-size: 7.5px; letter-spacing: -.02em; }
  .mobile-calendar-events { display: grid; gap: 0; margin-top: 12px; padding: 12px 5px 3px; border-top: 1px solid var(--line); text-align: left; }
  .mobile-calendar-events h2 { margin: 0 7px 6px; font-size: 16px; }
  .mobile-calendar-events article { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 10px 7px; border-top: 1px solid #edf1f4; }
  .mobile-calendar-events article:first-of-type { border-top: 0; }
  .mobile-calendar-events time { width: 34px; height: 39px; display: grid; place-items: center; align-content: center; border-radius: 9px; color: #315f7e; background: #edf5fa; line-height: 1; }
  .mobile-calendar-events time b { font-size: 13px; }
  .mobile-calendar-events time span { margin-top: 3px; font-size: 8px; text-transform: uppercase; }
  .mobile-calendar-events article > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .mobile-calendar-events article > div strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-calendar-events article > div span { color: var(--muted); font-size: 9px; }
  .mobile-calendar-events article > b { font-size: 11px; white-space: nowrap; }
  .mobile-calendar-empty { padding: 22px 8px; color: var(--muted); text-align: center; font-size: 12px; }
  .month-summary { padding: 18px; border-radius: 17px; }
}

@media (max-width: 620px) {
  .modal { padding: 18px 14px; }
  .section-title, .bond-found-header { align-items: flex-start; }
  .source-badge { display: none; }
  .lookup-row { grid-template-columns: 1fr; }
  .lookup-row .primary-button { width: 100%; }
  .bond-found-header { grid-template-columns: auto minmax(0,1fr); }
  .bond-found-header .text-button { grid-column: 2; padding: 0; text-align: left; }
  .reference-grid { grid-template-columns: 1fr 1fr; }
  .bond-cost-summary { grid-template-columns: 1fr 1fr; }
  .bond-cost-summary > span { display: none; }
  .bond-cost-summary .total { padding-left: 0; border-left: 0; }
  .trade-settings { grid-template-columns: 1fr; }
  .filter-row { gap: 10px; }
  .segmented { width: 100%; }
  .segmented button, .segmented button:first-child { flex: 1; min-width: 0; padding: 0 8px; }
  .search-control { width: 100%; min-width: 0; }
  .bond-summary-grid { grid-template-columns: 1fr 1fr; }
  .detail-tabs { width: 100%; overflow-x: auto; }.detail-tabs button { flex: 0 0 auto; }
  .yield-comparison { align-items: stretch; flex-direction: column; }.yield-comparison > div { width: 100%; }
  .investment-result-grid { grid-template-columns: 1fr 1fr; }
  .investment-result-header { flex-direction: column; }
  .result-formula small { white-space: normal; }
  .forecast-controls, .forecast-controls > div { width: 100%; }
  .forecast-controls > div { align-items: stretch; flex-direction: column; }
  .forecast-controls input, .forecast-controls .primary-button { width: 100%; }
  .cashflow-panel .panel-header { align-items: flex-start; }
  .range-control, .chart-period { width: 100%; }
  .chart-period { justify-content: space-between; }
  .range-popover { left: 0; right: auto; width: min(390px,calc(100vw - 64px)); }
  .range-presets { grid-template-columns: 1fr 1fr; }
  .range-fields { grid-template-columns: 1fr; }
  .bar-columns { gap: 8px; padding-inline: 0; }
  .year-groups { gap: 6px; margin-inline: 0; }
  .bar-column b { font-size: 9px; }
}

@media (max-width: 850px) {
  .forecast-result { margin-left: 0; }
}

/* Calculators */
.calculator-heading { margin-bottom: 18px; }
.calculator-tabs { width: fit-content; display: flex; gap: 6px; margin-bottom: 16px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.calculator-tabs > button { min-width: 230px; display: flex; align-items: center; gap: 11px; padding: 10px 13px; color: #52667c; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; transition: .2s ease; }
.calculator-tabs > button:hover { background: #f3f7fa; }.calculator-tabs > button.active { color: #174f7c; background: #e7f2f9; box-shadow: inset 0 0 0 1px #c9ddea; }
.calculator-tabs > button > span { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: #1767a3; border-radius: 10px; background: #fff; font-weight: 800; }
.calculator-tabs > button > div { display: flex; flex-direction: column; }.calculator-tabs strong { font-size: 14px; }.calculator-tabs small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.calculator-workspace { display: none; grid-template-columns: minmax(390px,445px) minmax(0,1fr); align-items: start; gap: 16px; animation: view-in .25s ease; }.calculator-workspace.active { display: grid; }
.calculator-form-panel { position: sticky; top: 88px; padding: 21px; }
.calculator-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }.calculator-section-title h2 { margin: 0 0 3px; font-size: 19px; }.calculator-section-title p { margin: 0; color: var(--muted); font-size: 11px; }
.calculator-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.calculator-form-grid > label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #415368; font-size: 11px; font-weight: 700; }
.calculator-form-grid input, .calculator-form-grid select, .calculator-bond-search input { width: 100%; height: 42px; padding: 0 11px; color: var(--ink); border: 1px solid #ccd8e2; border-radius: 9px; background: #fff; outline: 0; font-size: 13px; }
.calculator-form-grid input:focus, .calculator-form-grid select:focus, .calculator-bond-search input:focus { border-color: #2677b8; box-shadow: 0 0 0 3px #e1eef8; }
.input-with-unit { position: relative; }.input-with-unit input { padding-right: 72px; }.input-with-unit > span, .input-with-unit > i { position: absolute; right: 10px; top: 50%; color: var(--muted); font-size: 10px; font-style: normal; transform: translateY(-50%); pointer-events: none; }
.split-input { display: grid; grid-template-columns: minmax(0,1fr) 92px; }.split-input input { border-radius: 9px 0 0 9px; }.split-input select { border-left: 0; border-radius: 0 9px 9px 0; }
.calculator-options { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 15px; margin-top: 16px; padding: 13px; border-radius: 10px; background: #f2f6f9; }
.check-control { display: inline-flex; align-items: center; gap: 7px; color: #415368; font-size: 11px; font-weight: 700; cursor: pointer; }.check-control input { width: 16px; height: 16px; accent-color: #1767a3; }
.compact-field { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }.compact-field .input-with-unit { width: 70px; }.compact-field input { width: 100%; height: 32px; padding: 0 23px 0 8px; border: 1px solid #ccd8e2; border-radius: 7px; }
.calculator-submit { width: 100%; min-height: 46px; margin-top: 16px; }
.calculator-results-column { min-width: 0; display: grid; gap: 14px; }
.calculator-result-hero { min-height: 144px; display: flex; flex-direction: column; justify-content: center; padding: 24px; color: #fff; border-radius: 16px; background: linear-gradient(125deg,#1767a3,#245b88); box-shadow: 0 10px 25px rgba(23,103,163,.18); }
.calculator-result-hero > span { color: #d5e8f6; font-size: 12px; font-weight: 650; }.calculator-result-hero strong { margin: 6px 0 2px; font-size: clamp(30px,4vw,42px); line-height: 1.05; }.calculator-result-hero p { margin: 0; color: #d5e8f6; font-size: 11px; }
.calculator-result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.calculator-result-grid article { min-height: 105px; display: flex; flex-direction: column; justify-content: center; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }.calculator-result-grid span { color: var(--muted); font-size: 10px; font-weight: 650; }.calculator-result-grid strong { margin-top: 7px; font-size: 19px; }.calculator-result-grid small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.projection-panel { padding: 20px; }.projection-legend { display: flex; gap: 12px; color: var(--muted); font-size: 10px; }.projection-legend span { display: flex; align-items: center; gap: 5px; }.projection-legend i { width: 9px; height: 9px; border-radius: 3px; background: #bdd6e8; }.projection-legend span:last-child i { background: #2677b8; }
.projection-chart { min-height: 238px; display: flex; align-items: flex-end; gap: 12px; padding: 14px 5px 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#edf2f6 50px,transparent 51px); }
.projection-year { min-width: 64px; flex: 1; display: grid; grid-template-rows: auto 165px auto; align-items: end; gap: 6px; text-align: center; }.projection-bars { height: 165px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }.projection-bars i { width: 19px; min-height: 3px; border-radius: 5px 5px 1px 1px; background: #bdd6e8; }.projection-bars i:last-child { background: linear-gradient(#4c98cc,#2677b8); }.projection-year > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.projection-capital-label { color: #315f7e; font-size: 9px; white-space: nowrap; }
.projection-mobile-values { display: none; }
.projection-note { margin: 14px 0 0; padding: 10px 12px; color: #607286; border-radius: 9px; background: #f1f6f9; font-size: 10px; line-height: 1.45; }.projection-note span { color: #174f7c; font-weight: 800; }
.calculator-bond-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }.calculator-bond-search .bond-search-input input { padding-left: 38px; }.calculator-bond-search .primary-button { padding-inline: 14px; }
.calculator-search-hint { margin: 7px 1px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.calculator-search-status { margin: 9px 0 0; padding: 9px 11px; color: #9a4c51; border: 1px solid #efcfd2; border-radius: 9px; background: #fff4f5; font-size: 10px; line-height: 1.4; }
.calculator-bond-search-field { position: relative; min-width: 0; }.calculator-bond-search .bond-search-input input { padding-right: 38px; }
.calculator-bond-suggestions { position: absolute; top: calc(100% + 7px); left: 0; z-index: 45; width: min(620px,calc(100vw - 330px)); overflow: hidden; border: 1px solid #c8d7e3; border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(25,54,81,.22); }
.calculator-bond-suggestions[hidden] { display: none; }
.calculator-suggestion-filters { display: flex; gap: 5px; padding: 10px 11px; border-bottom: 1px solid #e8eef3; background: #f8fafc; }
.calculator-suggestion-filters button { padding: 6px 9px; color: #607286; border: 0; border-radius: 7px; background: #edf1f5; font-size: 10px; font-weight: 700; cursor: pointer; }.calculator-suggestion-filters button:hover, .calculator-suggestion-filters button.active { color: #174f7c; background: #dcecf7; }
.calculator-suggestion-heading { display: flex; justify-content: space-between; padding: 10px 13px 7px; color: #52667c; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.calculator-suggestion-heading small { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.calculator-suggestion-list { max-height: 355px; overflow-y: auto; padding: 0 7px 7px; }
.calculator-bond-option { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; color: var(--ink); border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }.calculator-bond-option:hover, .calculator-bond-option.active { background: #edf5fa; }
.calculator-bond-option > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; color: #1767a3; border-radius: 50%; background: #e7f2f9; font-size: 11px; font-weight: 800; }
.calculator-bond-option > div { min-width: 0; display: flex; flex-direction: column; }.calculator-bond-option strong { font-size: 12px; }.calculator-bond-option small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.calculator-bond-option > code { color: #1767a3; font-family: inherit; font-size: 9px; font-weight: 700; white-space: nowrap; }
.calculator-suggestion-empty { padding: 22px 14px; color: var(--muted); text-align: center; font-size: 11px; }
.bond-input-grid { grid-template-columns: 1fr 1fr; margin-top: 16px; }
.bond-result-hero { background: linear-gradient(125deg,#14715b,#1f8068); }.bond-result-grid strong { font-size: 18px; }
.bond-preview-breakdown { padding: 20px; }.bond-preview-events { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }.bond-preview-event { display: flex; flex-direction: column; gap: 3px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }.bond-preview-event span { color: var(--muted); font-size: 9px; }.bond-preview-event strong { font-size: 12px; }.calculator-disclaimer { margin: 13px 0 0; padding: 10px 12px; color: #6f624f; border-radius: 8px; background: #fff8e8; font-size: 10px; line-height: 1.5; }

@media (max-width: 1120px) {
  .calculator-workspace { grid-template-columns: 1fr; }
  .calculator-form-panel { position: static; }
}

@media (max-width: 620px) {
  .calculator-tabs { width: 100%; }.calculator-tabs > button { min-width: 0; flex: 1; }.calculator-tabs small { display: none; }
  html, body { max-width: 100%; overflow-x: hidden; }
  .view, .calculator-workspace, .calculator-form-panel, .calculator-results-column, .calculator-form-grid, .projection-panel { width: 100%; min-width: 0; max-width: 100%; }
  .calculator-form-grid input, .calculator-form-grid select, .calculator-bond-search input { min-width: 0; }
  .calculator-form-grid, .bond-input-grid { grid-template-columns: 1fr; }
  .calculator-result-grid { grid-template-columns: 1fr 1fr; }
  .calculator-bond-search { grid-template-columns: 1fr; }.calculator-bond-search .primary-button { width: 100%; }
  .calculator-bond-suggestions { width: min(620px,calc(100vw - 58px)); }
  .bond-preview-events { grid-template-columns: 1fr; }
  .topbar { padding-inline: 14px; }
  .topbar-actions .primary-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; overflow: hidden; font-size: 0; }
  .topbar-actions .primary-button > span { font-size: 20px; }
}

@media (max-width: 620px) {
  #calculators-view { padding-inline: 12px; }
  #calculators-view .calculator-heading { margin-bottom: 17px; }
  #calculators-view .calculator-heading h1 { font-size: clamp(32px, 10vw, 38px); }
  #calculators-view .calculator-heading p:last-child { max-width: 330px; font-size: 14px; line-height: 1.45; }
  .calculator-workspace { gap: 12px; overflow: visible; }
  .calculator-form-panel { position: static; max-height: none; padding: 20px; overflow: visible; border-radius: 18px; }
  .calculator-section-title { gap: 10px; margin-bottom: 18px; }
  .calculator-section-title h2 { font-size: 18px; line-height: 1.3; }
  .calculator-section-title p { margin-top: 4px; font-size: 11px; line-height: 1.45; }
  .calculator-section-title .text-button { flex: 0 0 auto; padding: 3px 0; font-size: 11px; }
  .calculator-form-grid { gap: 16px; }
  .calculator-form-grid > label { gap: 7px; font-size: 12px; }
  .calculator-form-grid input, .calculator-form-grid select, .calculator-bond-search input { height: 46px; padding-inline: 12px; border-radius: 11px; font-size: 14px; }
  .split-input { grid-template-columns: minmax(0,1fr) 112px; gap: 8px; }
  .split-input input, .split-input select { border: 1px solid #ccd8e2; border-radius: 11px; }
  .input-with-unit input { padding-right: 78px; }
  .calculator-options { display: grid; align-items: stretch; gap: 12px; margin-top: 18px; padding: 15px; border-radius: 12px; }
  .check-control { min-height: 26px; font-size: 12px; }
  .check-control input { width: 18px; height: 18px; }
  .compact-field { justify-content: space-between; font-size: 11px; }
  .compact-field .input-with-unit { width: 82px; }
  .calculator-submit { min-height: 49px; margin-top: 18px; font-size: 14px; }
  .calculator-results-column { gap: 12px; }
  .calculator-result-hero { min-height: 132px; padding: 21px; border-radius: 17px; }
  .calculator-result-hero strong { font-size: clamp(28px, 9vw, 35px); overflow-wrap: anywhere; }
  #investment-calculator .calculator-result-grid, #bond-calculator .calculator-result-grid { grid-template-columns: 1fr; gap: 9px; }
  .calculator-result-grid article { min-height: 88px; padding: 15px 17px; }
  .calculator-result-grid strong { font-size: 20px; }
  .projection-panel { padding: 17px; }
  .projection-panel .calculator-section-title { flex-direction: column; }
  .projection-legend { display: none; }
  .projection-chart { min-height: 0; display: grid; align-items: stretch; gap: 9px; padding: 0; overflow: visible; border: 0; background: none; }
  .projection-year { min-width: 0; display: block; padding: 13px; border: 1px solid #dbe5ec; border-radius: 12px; background: #f9fbfc; text-align: left; }
  .projection-year > .projection-capital-label, .projection-year > .projection-bars, .projection-year > span { display: none; }
  .projection-mobile-values { display: grid; gap: 10px; }
  .projection-mobile-values > strong { color: #174f7c; font-size: 13px; }
  .projection-mobile-values dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
  .projection-mobile-values dl > div { min-width: 0; padding: 9px; border-radius: 9px; background: #fff; }
  .projection-mobile-values dt { margin-bottom: 4px; color: var(--muted); font-size: 9px; }
  .projection-mobile-values dd { margin: 0; font-size: 12px; font-weight: 800; white-space: nowrap; }
  .projection-mobile-values p { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding-top: 9px; border-top: 1px solid #e3eaf0; color: var(--muted); font-size: 10px; }
  .projection-mobile-values p b { color: #08745b; font-size: 12px; white-space: nowrap; }
  .projection-note { margin-top: 11px; font-size: 11px; }
}

/* Deposit position drawer */
.drawer-backdrop { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 24px; background: rgba(19,43,67,.44); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s ease; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.deposit-drawer { position: relative; width: min(1180px,100%); height: min(790px,calc(100vh - 48px)); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); grid-template-rows: auto auto minmax(0,1fr); gap: 16px; overflow: hidden; padding: 28px 28px 90px; color: var(--ink); border-radius: 20px; background: #f7f9fb; box-shadow: 0 28px 80px rgba(18,45,69,.28); transform: translateY(16px) scale(.985); transition: transform .28s cubic-bezier(.22,.8,.3,1); }
.drawer-backdrop.open .deposit-drawer { transform: translateY(0) scale(1); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.drawer-header { grid-column: 1/-1; }
.drawer-title-group { display: flex; align-items: center; gap: 14px; }
.drawer-title-group .instrument-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 17px; }
.drawer-title-group h2 { margin: 0 0 3px; font-size: 27px; line-height: 1.15; }
.drawer-title-group p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.deposit-overview { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 2px 0 0; }
.deposit-overview article { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(31,60,88,.05); }
.deposit-overview article span { color: var(--muted); font-size: 11px; font-weight: 650; }
.deposit-overview article strong { margin: 7px 0 2px; font-size: 23px; line-height: 1.1; }
.deposit-overview article small { color: var(--muted); font-size: 11px; }
.deposit-overview article.accent { color: #fff; border-color: transparent; background: linear-gradient(135deg,#1767a3,#245b88); }
.deposit-overview article.accent span, .deposit-overview article.accent small { color: #d8eaf7; }
.drawer-section { min-width: 0; min-height: 0; margin-top: 0; padding: 20px; overflow-y: auto; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.drawer-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.drawer-section-heading h3 { margin: 0 0 3px; font-size: 17px; }
.drawer-section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.deposit-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; }
.deposit-terms div { padding: 11px 0; border-top: 1px solid #edf1f5; }
.deposit-terms dt { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.deposit-terms dd { margin: 0; font-size: 13px; font-weight: 700; }
.deposit-schedule { display: grid; }
.deposit-payment { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #edf1f5; }
.deposit-payment:first-child { border-top: 0; padding-top: 2px; }
.deposit-payment-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #1767a3; border-radius: 9px; background: #e6f1f9; font-size: 15px; font-weight: 800; }
.deposit-payment > div { display: flex; flex-direction: column; }
.deposit-payment > div strong { font-size: 13px; }.deposit-payment > div span { color: var(--muted); font-size: 10px; }
.deposit-payment > strong { font-size: 13px; }
.deposit-payment.paid { opacity: .58; }.deposit-payment.paid .deposit-payment-icon { color: #32715e; background: #e5f3ee; }
.deposit-payment.final .deposit-payment-icon { color: #8a6120; background: #fff1d6; }
.drawer-footer { position: absolute; left: 28px; right: 28px; bottom: 16px; z-index: 4; min-height: 58px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); background: #f7f9fb; }
.drawer-footer .primary-button, .drawer-footer .secondary-button { visibility: visible; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.row-menu { min-width: 34px; min-height: 34px; border-radius: 8px; font-size: 16px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.row-menu:hover { color: #1767a3; background: #e7f1f8; transform: translateY(-1px); }

@media (max-width: 620px) {
  .drawer-backdrop { padding: 0; }
  .deposit-drawer { width: 100%; height: 100%; display: block; overflow-y: auto; padding: 20px 14px 88px; border-radius: 0; }
  .drawer-title-group { align-items: flex-start; }.drawer-title-group .instrument-icon { width: 40px; height: 40px; }
  .drawer-title-group h2 { font-size: 22px; }
  .deposit-overview, .deposit-terms { grid-template-columns: 1fr; }
  .deposit-overview article { min-height: 96px; }
  .drawer-section { padding: 16px; }
  .drawer-footer { position: fixed; left: 14px; right: 14px; bottom: 0; margin: 0; padding: 12px 0; }
}

@media (min-width: 621px) and (max-width: 900px) {
  .deposit-drawer { grid-template-columns: 1fr; overflow-y: auto; }
  .drawer-header, .deposit-overview, .drawer-footer { grid-column: 1; }
  .deposit-overview { grid-template-columns: 1fr 1fr; }
  .drawer-section { overflow: visible; }
}

/* Web workspace navigation */
.sidebar, .main-content { transition: width .25s ease, margin-left .25s ease, transform .25s ease; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.desktop-sidebar-toggle { width: 36px; height: 36px; display: grid; place-items: center; color: #52667c; }
.desktop-sidebar-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.sidebar-scrim { position: fixed; inset: 0; z-index: 29; display: none; padding: 0; border: 0; background: rgba(16,39,60,.42); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
body.sidebar-collapsed .sidebar { width: 82px; padding-inline: 12px; }
body.sidebar-collapsed .main-content { margin-left: 82px; }
body.sidebar-collapsed .brand { justify-content: center; padding-inline: 0; }
body.sidebar-collapsed .brand > div, body.sidebar-collapsed .profile > div { display: none; }
body.sidebar-collapsed .nav-item { justify-content: center; gap: 0; padding-inline: 0; font-size: 0; }
body.sidebar-collapsed .nav-item > .nav-icon { width: 24px; flex-basis: 24px; }
body.sidebar-collapsed .calculator-subnav { margin: 0; padding: 3px 0 5px; border-left: 0; }
body.sidebar-collapsed .calculator-subnav button { justify-content: center; padding-inline: 0; font-size: 0; }
body.sidebar-collapsed .calculator-subnav button > span { width: 26px; height: 26px; font-size: 10px; }
body.sidebar-collapsed .profile { justify-content: center; margin-inline: 0; }
body.sidebar-collapsed .desktop-sidebar-toggle svg { transform: rotate(180deg); }
.table-scroll { scrollbar-width: thin; scrollbar-color: #b9cad7 transparent; }
.table-scroll::-webkit-scrollbar, .calculator-suggestion-list::-webkit-scrollbar { width: 8px; height: 8px; }.table-scroll::-webkit-scrollbar-thumb, .calculator-suggestion-list::-webkit-scrollbar-thumb { border-radius: 8px; background: #b9cad7; }

@media (max-width: 850px) {
  .desktop-sidebar-toggle { display: none; }
  .sidebar-scrim { display: block; }
  .sidebar.open + .sidebar-scrim { opacity: 1; visibility: visible; }
  .topbar-left { gap: 9px; }
}

/* Authentication and account */
.auth-gateway { display: none; min-height: 100dvh; background: #f4f7fa; }
body.auth-locked { overflow: hidden; }
body.auth-locked .app-shell, body.auth-locked > .modal-backdrop, body.auth-locked > .drawer-backdrop { display: none !important; }
body.auth-locked .auth-gateway { display: grid; grid-template-columns: minmax(400px, .95fr) minmax(540px, 1.05fr); }
.auth-showcase { position: relative; min-height: 100dvh; display: flex; flex-direction: column; padding: clamp(34px, 5vw, 72px); overflow: hidden; color: #fff; background: radial-gradient(circle at 92% 8%, rgba(86,170,221,.32), transparent 30%), radial-gradient(circle at 12% 92%, rgba(55,181,142,.22), transparent 34%), linear-gradient(145deg, #102f4a, #125f7f 58%, #177b77); }
.auth-showcase::before, .auth-showcase::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.auth-showcase::before { width: 460px; height: 460px; right: -250px; top: 17%; }
.auth-showcase::after { width: 300px; height: 300px; left: -175px; bottom: -110px; }
.auth-brand { position: relative; z-index: 1; width: fit-content; display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.auth-brand-mark { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 15px; background: rgba(255,255,255,.12); font-family: Georgia, serif; font-size: 17px; font-weight: 700; box-shadow: 0 10px 30px rgba(4,25,42,.16); }
.auth-brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.auth-brand strong { font-family: Georgia, serif; font-size: 21px; }
.auth-brand small { margin-top: 6px; color: #b8d9e5; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.auth-showcase-copy { position: relative; z-index: 1; max-width: 580px; margin: auto 0; padding: 60px 0; }
.auth-kicker { display: block; margin-bottom: 18px; color: #b9e5dc; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-showcase-copy h1 { max-width: 560px; margin-bottom: 22px; font-family: inherit; font-size: clamp(37px, 4.5vw, 62px); font-weight: 750; line-height: 1.04; letter-spacing: -.045em; }
.auth-showcase-copy > p { max-width: 540px; margin-bottom: 34px; color: #d4e5eb; font-size: 17px; line-height: 1.65; }
.auth-benefits { display: grid; gap: 16px; }
.auth-benefits > div { display: flex; align-items: center; gap: 13px; }
.auth-benefits > div > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #d8f7eb; background: rgba(255,255,255,.12); font-weight: 800; }
.auth-benefits strong { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.auth-benefits small { color: #afd0d8; font-size: 12px; font-weight: 400; }
.mobile-auth-preview { display: none; }
.auth-legal { position: relative; z-index: 1; margin: 0; color: #a9c9d3; font-size: 11px; }
.auth-workspace { min-height: 100dvh; display: grid; align-content: center; justify-items: center; padding: 42px; overflow-y: auto; }
.auth-card { width: min(100%, 470px); padding: 36px; border: 1px solid #d9e3eb; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(33,61,87,.12); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 30px; padding: 5px; border-radius: 12px; background: #edf3f7; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 9px; color: #65778a; background: transparent; font-weight: 700; cursor: pointer; transition: .2s ease; }
.auth-tabs button:hover { color: #1767a3; }
.auth-tabs button.active { color: #155f94; background: #fff; box-shadow: 0 3px 12px rgba(35,71,101,.1); }
.auth-heading h2 { margin-bottom: 9px; color: #172333; font-size: 30px; line-height: 1.15; }
.auth-heading > p:last-child { margin-bottom: 27px; color: #66788c; font-size: 14px; line-height: 1.5; }
.auth-heading.centered { text-align: center; }
.auth-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; color: #3d5268; font-size: 12px; font-weight: 700; }
.auth-field > input, .phone-input-wrap { height: 53px; border: 1px solid #cdd9e3; border-radius: 11px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.auth-field > input { width: 100%; padding: 0 14px; outline: 0; font-size: 16px; }
.auth-field > input:focus, .phone-input-wrap:focus-within { border-color: #2781bf; box-shadow: 0 0 0 4px rgba(39,129,191,.12); }
.phone-input-wrap { display: flex; align-items: center; }
.phone-input-wrap > span { padding-left: 15px; color: #172333; font-size: 17px; font-weight: 750; }
.phone-input-wrap input { min-width: 0; width: 100%; height: 100%; padding: 0 14px 0 7px; border: 0; outline: 0; background: transparent; color: #172333; font-size: 17px; font-weight: 650; letter-spacing: .02em; }
.field-hint { color: #7b8b9b; font-size: 11px; font-weight: 400; }
.field-error, .otp-error { min-height: 0; margin: -2px 0 0; color: #bd4e51; font-size: 11px; font-weight: 600; }
.field-error:not(:empty) { min-height: 15px; }
.auth-consent { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; margin: 2px 0 18px; color: #66788c; font-size: 11px; line-height: 1.45; }
.auth-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #176da7; }
.auth-consent a { color: #176da7; }
.auth-submit { width: 100%; min-height: 52px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #126ca8, #178379); box-shadow: 0 8px 20px rgba(23,108,154,.2); font-size: 15px; font-weight: 750; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(23,108,154,.26); }
.auth-security-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 22px; padding: 14px; border-radius: 11px; color: #3a715f; background: #edf8f4; }
.auth-security-note > span { font-size: 21px; }
.auth-security-note p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.auth-security-note strong { font-size: 11px; }
.auth-security-note small { color: #67877c; font-size: 10px; line-height: 1.4; }
.auth-support { margin: 22px 0 0; color: #7a8999; font-size: 12px; }
.auth-support button { padding: 0; border: 0; border-bottom: 1px solid currentColor; color: #176da7; background: transparent; cursor: pointer; font-size: inherit; }
.auth-support button:hover { color: #0f527f; }
.auth-back { margin: -8px 0 18px; padding: 0; border: 0; color: #547087; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.auth-code-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 19px; border-radius: 19px; color: #176da7; background: #e8f3fa; font-size: 20px; font-weight: 800; letter-spacing: .08em; }
.otp-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.otp-inputs input { width: 100%; min-width: 0; height: 64px; border: 1px solid #cbd9e4; border-radius: 12px; outline: 0; text-align: center; color: #172333; background: #fdfefe; font-size: 27px; font-weight: 750; transition: .2s ease; }
.otp-inputs input:focus { border-color: #2781bf; box-shadow: 0 0 0 4px rgba(39,129,191,.12); }
.otp-inputs.invalid input { border-color: #c85a5d; background: #fffafa; animation: otp-shake .25s ease; }
@keyframes otp-shake { 30% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
.otp-error { min-height: 18px; text-align: center; }
.demo-code { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 9px; border-radius: 9px; color: #6c7b89; background: #f1f5f8; font-size: 11px; }
.demo-code button { padding: 3px 8px; border: 1px dashed #78a2be; border-radius: 6px; color: #145f94; background: #fff; font-weight: 800; cursor: pointer; }
.resend-code { display: block; margin: 15px auto 0; padding: 0; border: 0; color: #176da7; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.resend-code:disabled { color: #8493a1; cursor: default; }
.sidebar-bottom { position: relative; }
.profile { position: relative; width: 100%; min-width: 0; margin-inline: 0; padding: 16px 8px 8px; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.profile:hover, .profile[aria-expanded="true"] { background: #f2f6fa; border-radius: 10px; }
.profile > div { min-width: 0; flex: 1; }
.profile > div > strong { display: block; overflow: hidden; color: var(--ink); font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.profile > div > span { display: block; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.profile-chevron { width: 22px !important; height: 22px; display: grid; place-items: center; flex: 0 0 22px; margin-left: auto; color: #71869a; transition: transform .2s ease; }
.profile-chevron svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }
.profile-menu { position: absolute; left: 4px; right: 4px; bottom: 68px; z-index: 4; display: grid; gap: 5px; padding: 13px; border: 1px solid #d9e3ea; border-radius: 12px; color: #172333; background: #fff; box-shadow: 0 12px 36px rgba(7,25,40,.24); }
.profile-menu.hidden { display: none; }
.profile-menu .verified-label { color: #2c8062; font-size: 10px; font-weight: 750; }
.profile-menu > strong { margin-bottom: 7px; font-size: 12px; }
.profile-menu button { padding: 8px; border: 0; border-radius: 7px; color: #3c5369; background: #f3f6f8; text-align: left; font-size: 11px; font-weight: 650; cursor: pointer; }
.profile-menu button:hover { color: #176da7; background: #e9f2f8; }
.profile-menu .logout-link { color: #a54346; }
.settings-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.settings-grid > .panel { min-height: 250px; }
.settings-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.settings-title h2 { margin: 0 0 4px; font-size: 22px; }
.settings-title p { margin: 0; color: var(--muted); }
.settings-avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #174d75; background: #dcedf7; font-size: 16px; font-weight: 800; }
.account-details { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 20px; border-block: 1px solid var(--line); }
.account-details div { padding: 16px 0; }
.account-details dt { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.account-details dd { margin: 0; font-size: 14px; font-weight: 700; }
.verified-status { color: #27775c; }
.verified-status span { display: inline-grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #fff; background: #35a278; font-size: 10px; }
.security-panel { display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-content: start; }
.security-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: #176da7; background: #e8f3fa; font-size: 24px; }
.security-panel h2, .settings-placeholder h2 { margin: 3px 0 7px; font-size: 18px; }
.security-panel p, .settings-placeholder > p { color: var(--muted); line-height: 1.55; }
.security-panel .danger-button { grid-column: 1/-1; align-self: end; width: fit-content; color: #a54346; }
.settings-placeholder { grid-column: 1/-1; min-height: 0 !important; }
.setting-switch { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 650; }
.setting-switch input { position: absolute; opacity: 0; }
.setting-switch i { position: relative; width: 42px; height: 24px; border-radius: 20px; background: #ced7dd; transition: .2s ease; }
.setting-switch i::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: .2s ease; }
.setting-switch input:checked + i { background: #2c9874; }
.setting-switch input:checked + i::after { transform: translateX(18px); }
body.sidebar-collapsed .profile { width: 100%; }
body.sidebar-collapsed .profile { padding-inline: 0; }
body.sidebar-collapsed .profile-chevron { display: none; }
body.sidebar-collapsed .profile-menu { position: fixed; left: 90px; right: auto; bottom: 20px; width: 210px; }

.support-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; background: rgba(12,31,45,.62); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; backdrop-filter: blur(7px); }
.support-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.support-dialog { width: min(100%, 560px); max-height: calc(100dvh - 44px); padding: 30px; overflow-y: auto; border: 1px solid #d8e3eb; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(7,28,43,.3); transform: translateY(10px) scale(.985); transition: transform .22s ease; }
.support-backdrop.open .support-dialog { transform: translateY(0) scale(1); }
.support-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.support-dialog-header h2 { margin: 0 0 7px; color: #172333; font-size: 27px; }
.support-dialog-header p:last-child { margin: 0; color: #697b8d; font-size: 13px; line-height: 1.45; }
#supportForm { display: grid; gap: 17px; }
.support-field { display: flex; flex-direction: column; gap: 7px; color: #3d5268; font-size: 12px; font-weight: 700; }
.support-field input, .support-field select, .support-field textarea { width: 100%; border: 1px solid #ccd9e3; border-radius: 11px; outline: 0; color: #172333; background: #fff; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.support-field input, .support-field select { height: 48px; padding: 0 13px; }
.support-field textarea { min-height: 118px; padding: 13px; resize: vertical; line-height: 1.5; }
.support-field input:focus, .support-field select:focus, .support-field textarea:focus { border-color: #2781bf; box-shadow: 0 0 0 4px rgba(39,129,191,.11); }
.support-field > span { color: #7c8c9b; font-size: 10px; font-weight: 400; }
.support-field .support-error { display: none; color: #b42318; font-size: 11px; font-weight: 650; line-height: 1.35; }
.support-field .support-error.visible { display: block; }
.support-field input[aria-invalid="true"], .support-field select[aria-invalid="true"], .support-field textarea[aria-invalid="true"] { border-color: #d84b40; background: #fffafa; box-shadow: 0 0 0 4px rgba(216,75,64,.09); }
.support-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 3px; padding-top: 18px; border-top: 1px solid #e5ebf0; }
.support-success { display: grid; justify-items: center; padding: 18px 10px 5px; text-align: center; }
.support-success > span { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #2f9d75, #1478a5); font-size: 27px; font-weight: 800; }
.support-success h2 { margin-bottom: 8px; font-size: 25px; }
.support-success p { max-width: 390px; margin: 0 0 22px; color: #66788c; line-height: 1.55; }
.support-success strong { color: #176da7; }
.support-ticket-number { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; width: min(100%, 390px); margin: 12px 0 14px; padding: 13px 14px; border: 1px solid #d7e3eb; border-radius: 13px; background: #f5f9fc; text-align: left; }
.support-ticket-number > span { grid-column: 1; color: #718395; font-size: 10px; font-weight: 650; }
.support-ticket-number strong { grid-column: 1; font-size: 16px; letter-spacing: .02em; }
.support-ticket-number button { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid #bdd3e2; border-radius: 9px; color: #176da7; background: #fff; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.support-ticket-number button:hover { border-color: #176da7; background: #eaf5fb; transform: translateY(-1px); }
.support-ticket-number button.copied { color: #08745b; border-color: #9ed7c8; background: #edf9f5; }
.copy-icon { position: relative; width: 13px; height: 13px; display: inline-block; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 3px; }
.copy-icon::before { content: ''; position: absolute; width: 8px; height: 8px; left: -5px; top: -5px; border: 1.5px solid currentColor; border-radius: 3px; background: #fff; }
.operation-dialog { width: min(100%, 540px); }
.operation-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.operation-form-error { margin: -3px 0 0; color: #b42318; font-size: 11px; line-height: 1.4; }.operation-form-error:empty { display: none; }
.operation-user-group:first-child .operation-date { padding-top: 10px; }

@media (max-width: 900px) {
  body.auth-locked { overflow-y: auto; background: #eaf1f5; }
  body.auth-locked .auth-gateway { display: block; min-height: 100dvh; padding-bottom: 28px; background: linear-gradient(180deg, #0f5271 0, #16827d 255px, #eaf1f5 255px); }
  .auth-showcase { min-height: 295px; display: block; padding: 26px 30px 72px; overflow: hidden; background: radial-gradient(circle at 90% 12%, rgba(115,207,220,.32), transparent 31%), radial-gradient(circle at 5% 110%, rgba(49,194,153,.34), transparent 42%), linear-gradient(145deg, #103d5c, #116b80 62%, #16877c); }
  .auth-showcase::before { width: 280px; height: 280px; right: -165px; top: -70px; }
  .auth-showcase::after { width: 190px; height: 190px; left: -100px; bottom: -85px; }
  .auth-brand-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 14px; }
  .auth-brand strong { font-size: 18px; }
  .auth-brand small { font-size: 9px; }
  .auth-showcase-copy { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,.75fr); align-items: end; gap: 24px; max-width: 720px; margin: 32px auto 0; padding: 0; }
  .auth-showcase-copy .auth-kicker { grid-column: 1; margin-bottom: -11px; }
  .auth-showcase-copy h1 { grid-column: 1; max-width: 470px; margin: 0; font-size: clamp(30px, 5vw, 42px); line-height: 1.08; }
  .auth-showcase-copy > p, .auth-benefits, .auth-legal { display: none; }
  .mobile-auth-preview { grid-column: 2; grid-row: 1/3; align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 104px; padding: 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(255,255,255,.13); box-shadow: 0 18px 35px rgba(6,36,53,.18); backdrop-filter: blur(12px); }
  .mobile-auth-preview > div { display: flex; flex-direction: column; gap: 5px; }
  .mobile-auth-preview span { color: #c8e6e8; font-size: 10px; }
  .mobile-auth-preview strong { color: #fff; font-size: 21px; }
  .mobile-auth-preview small { color: #b6d7db; font-size: 10px; }
  .mobile-preview-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #124d67 !important; background: #d7f1e8; font-size: 18px !important; font-weight: 800; }
  .auth-workspace { position: relative; z-index: 3; min-height: 0; display: grid; margin-top: -42px; padding: 0 20px 20px; overflow: visible; }
  .auth-card { box-shadow: 0 22px 55px rgba(31,63,86,.18); }
  .auth-support { padding: 0 0 5px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-placeholder { grid-column: 1; }
}
@media (max-width: 520px) {
  body.auth-locked .auth-gateway { background: linear-gradient(180deg, #105575 0, #16827d 275px, #eaf1f5 275px); }
  .auth-showcase { min-height: 312px; padding: 22px 18px 74px; }
  .auth-brand { gap: 10px; }
  .auth-brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
  .auth-brand strong { font-size: 17px; }
  .auth-showcase-copy { grid-template-columns: 1fr; gap: 13px; margin-top: 27px; }
  .auth-showcase-copy .auth-kicker { grid-column: 1; margin: 0; color: #bceee3; font-size: 9px; }
  .auth-showcase-copy h1 { grid-column: 1; max-width: 360px; font-size: clamp(27px, 8.2vw, 34px); }
  .mobile-auth-preview { grid-column: 1; grid-row: auto; width: min(100%, 330px); min-height: 72px; padding: 12px 14px; border-radius: 14px; }
  .mobile-auth-preview strong { font-size: 17px; }
  .mobile-preview-icon { width: 36px; height: 36px; }
  .auth-workspace { align-content: start; margin-top: -38px; padding: 0 12px 22px; background: transparent; }
  .auth-workspace::before { content: none; }
  .auth-card { padding: 23px 18px 21px; border: 1px solid #d9e3eb; border-radius: 20px; box-shadow: 0 18px 45px rgba(30,59,82,.18); }
  .auth-tabs { margin-bottom: 23px; }
  .auth-heading h2 { font-size: 26px; }
  .auth-heading > p:last-child { margin-bottom: 22px; }
  .auth-field { margin-bottom: 15px; }
  .auth-security-note { margin-top: 17px; }
  .auth-support { margin-top: 18px; color: #66788c; }
  .otp-inputs input { height: 58px; }
  .account-details { grid-template-columns: 1fr; }
  .account-details div + div { border-top: 1px solid var(--line); }
  .support-backdrop { align-items: end; padding: 0; }
  .support-dialog { width: 100%; max-height: 92dvh; padding: 23px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(25px); }
  .support-dialog-header h2 { font-size: 23px; }
  .support-actions { display: grid; grid-template-columns: 1fr 1.25fr; }
  .support-actions button { min-width: 0; padding-inline: 10px; }
  .operation-form-grid { grid-template-columns: 1fr; gap: 17px; }
}

/* Administrator account */
.auth-admin-entry { margin: 11px 0 0; }
.auth-admin-entry button { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 auto; padding: 8px 10px; border: 0; color: #607487; background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }
.auth-admin-entry button:hover { color: #176da7; }
.auth-admin-entry span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; background: #e8f2f8; color: #176da7; }
.auth-card.admin-auth .auth-tabs { display: none; }
.auth-card.admin-auth { border-top: 4px solid #176da7; }
.auth-card.admin-auth #leaveAdminLogin { display: block !important; margin-bottom: 24px; }
.admin-shell { display: none; min-height: 100dvh; color: #182739; background: #f1f5f8; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.admin-mode { overflow: auto; background: #f1f5f8; }
body.admin-mode .auth-gateway, body.admin-mode .app-shell, body.admin-mode > .modal-backdrop, body.admin-mode > .drawer-backdrop { display: none !important; }
body.admin-mode .admin-shell { display: flex; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 45; width: 248px; display: flex; flex-direction: column; padding: 25px 17px 18px; color: #fff; background: linear-gradient(180deg, #102f4a, #114d67 58%, #126a6b); box-shadow: 8px 0 30px rgba(14,41,60,.1); }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 31px; }
.admin-brand > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.23); border-radius: 12px; background: rgba(255,255,255,.1); font-family: Georgia,serif; font-weight: 800; }
.admin-brand div { display: flex; flex-direction: column; gap: 3px; }
.admin-brand strong { font-size: 15px; }
.admin-brand small { color: #afcad3; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav button { position: relative; width: 100%; min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 10px; color: #b9cdd4; background: transparent; text-align: left; font-weight: 650; cursor: pointer; transition: .2s ease; }
.admin-nav button:hover { color: #fff; background: rgba(255,255,255,.07); }
.admin-nav button.active { color: #fff; background: rgba(199,236,230,.13); box-shadow: inset 3px 0 #8fd6c2; }
.admin-nav button > span { width: 21px; color: #9fc3cb; text-align: center; font-size: 18px; }
.admin-nav button b { min-width: 20px; height: 20px; display: grid; place-items: center; margin-left: auto; padding: 0 5px; border-radius: 10px; color: #173d51; background: #cbe9df; font-size: 10px; }
.admin-sidebar-bottom { display: grid; grid-template-columns: 38px 1fr 30px; align-items: center; gap: 9px; margin-top: auto; padding: 17px 5px 0; border-top: 1px solid rgba(255,255,255,.12); }
.admin-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #143b50; background: #d5ebe4; font-weight: 800; }
.admin-sidebar-bottom div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-sidebar-bottom strong { font-size: 12px; }.admin-sidebar-bottom small { color: #aac0c7; font-size: 9px; }
.admin-sidebar-bottom button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #b9cdd4; background: rgba(255,255,255,.07); cursor: pointer; }
.admin-main { width: calc(100% - 248px); min-height: 100dvh; margin-left: 248px; }
.admin-topbar { position: sticky; top: 0; z-index: 30; height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid #dbe4eb; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.admin-topbar > div { display: flex; align-items: center; gap: 12px; }
.admin-topbar p { margin: 0; color: #51677b; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.admin-system-state { display: flex; align-items: center; gap: 8px; color: #398064; font-size: 11px; font-weight: 700; }
.admin-system-state i { width: 8px; height: 8px; border-radius: 50%; background: #38a87b; box-shadow: 0 0 0 4px #e0f3eb; }
.admin-menu-button { display: none; width: 38px; height: 38px; border: 1px solid #d9e2e9; border-radius: 10px; background: #fff; }
.admin-view { display: none; max-width: 1480px; margin: 0 auto; padding: 34px; animation: view-in .25s ease; }
.admin-view.active { display: block; }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.admin-page-heading p { margin: 0 0 7px; color: #1970a6; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.admin-page-heading h1 { margin: 0 0 6px; font-family: inherit; font-size: clamp(29px,3.2vw,40px); font-weight: 760; letter-spacing: -.035em; }
.admin-page-heading > div > span { color: #6a7b8b; }
.admin-primary, .admin-secondary { min-height: 42px; padding: 0 16px; border-radius: 10px; font-size: 12px; font-weight: 750; cursor: pointer; transition: .2s ease; }
.admin-primary { border: 0; color: #fff; background: linear-gradient(135deg,#176fa8,#17857b); box-shadow: 0 6px 16px rgba(24,110,150,.18); }
.admin-primary:hover { transform: translateY(-1px); }
.admin-secondary { border: 1px solid #d5e0e8; color: #31536c; background: #fff; }
.admin-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 16px; }
.admin-metrics article { position: relative; min-height: 135px; display: flex; flex-direction: column; justify-content: center; padding: 20px; overflow: hidden; border: 1px solid #dbe4eb; border-radius: 15px; background: #fff; box-shadow: 0 8px 25px rgba(35,62,84,.05); }
.admin-metrics article > span { color: #65778a; font-size: 11px; font-weight: 650; }
.admin-metrics article > strong { margin: 7px 0 4px; font-size: 30px; line-height: 1; }
.admin-metrics article > small { color: #7b8b99; font-size: 10px; }
.admin-metrics article > i { position: absolute; right: 17px; top: 17px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-style: normal; font-weight: 800; }
.admin-metrics i.blue { color:#176da7;background:#e6f2f9}.admin-metrics i.green{color:#27775c;background:#e5f4ee}.admin-metrics i.orange{color:#a66b23;background:#fff0d9}.admin-metrics i.red{color:#b54d51;background:#fbe9e9}
.admin-dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.admin-panel { border: 1px solid #dbe4eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(35,62,84,.05); }
.admin-dashboard-grid .admin-panel, .admin-source-card { padding: 22px; }
.admin-panel-heading { display: flex; justify-content: space-between; margin-bottom: 16px; }
.admin-panel-heading h2 { margin: 0 0 4px; font-size: 17px; }.admin-panel-heading p { margin: 0; color: #788896; font-size: 11px; }
.admin-attention-list { display: grid; }
.admin-attention-list button { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 15px 0; border: 0; border-top: 1px solid #e8edf1; background: transparent; text-align: left; cursor: pointer; }
.admin-attention-list button:first-child { border-top: 0; }
.admin-attention-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-weight: 800; }.admin-attention-icon.error{color:#b34c50;background:#fbe9e9}.admin-attention-icon.message{color:#176da7;background:#e7f2f9}
.admin-attention-list div { display:flex;flex-direction:column;gap:4px}.admin-attention-list strong{font-size:12px}.admin-attention-list small{color:#7a8996;font-size:10px}.admin-attention-list b{color:#176da7;font-size:10px}
.component-list { display: grid; }.component-list > div { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-top: 1px solid #e8edf1; font-size: 11px; }.component-list > div:first-child{border-top:0}.component-list span{display:flex;align-items:center;gap:9px}.component-list i{width:8px;height:8px;border-radius:50%}.component-list i.ok{background:#39a77c}.component-list i.warning{background:#e0a64e}.component-list b{font-size:10px;color:#667889}
.admin-search { width: min(330px,100%); height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #d4dfe7; border-radius: 10px; background: #fff; color: #5f7487; }
.admin-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.admin-table-panel { overflow: hidden; }.admin-table-scroll { overflow-x: auto; }.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }.admin-table th { padding: 14px 17px; color:#66798b;background:#f5f8fa;text-align:left;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.admin-table td{padding:16px 17px;border-top:1px solid #e5ebf0;font-size:12px}.admin-user-cell{display:flex;align-items:center;gap:11px}.admin-user-cell>span{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;color:#176598;background:#e5f1f8;font-size:11px;font-weight:800}.admin-user-cell div{display:flex;flex-direction:column;gap:3px}.admin-user-cell small{color:#7d8b98;font-size:9px}
.admin-status { display: inline-flex; align-items: center; justify-content:center; min-height:25px;padding:0 9px;border-radius:14px;font-size:9px;font-weight:800}.admin-status.active{color:#27775c;background:#e4f3ed}.admin-status.blocked{color:#aa484c;background:#f9e7e8}.admin-status.warning{color:#98631f;background:#fff0d8}.admin-status.new{color:#176da7;background:#e4f1fa;box-shadow:0 0 0 3px rgba(23,109,167,.08)}
.admin-row-action { padding: 7px 9px; border:1px solid #d6e0e7;border-radius:8px;color:#526b7f;background:#fff;font-size:10px;font-weight:700;cursor:pointer}.admin-row-action:hover{color:#a84448;border-color:#ddbfc0}
.admin-filter { min-width: 170px;height:42px;padding:0 11px;border:1px solid #d5e0e8;border-radius:10px;background:#fff;outline:0;font-size:11px;font-weight:650}
.admin-ticket-list { display:grid;gap:12px}.admin-ticket { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:17px;padding:19px 21px;border:1px solid #dbe4eb;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(35,62,84,.04)}.admin-ticket>div{min-width:0}.admin-ticket header{display:flex;align-items:center;gap:9px;margin-bottom:8px}.admin-ticket h3{margin:0;font-size:14px}.admin-ticket p{margin:0 0 10px;color:#5f7182;line-height:1.5}.admin-ticket small{color:#7b8b98}.admin-ticket aside{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.admin-ticket-empty{padding:55px 20px;border:1px dashed #cbd8e1;border-radius:15px;color:#70818f;background:#f7f9fb;text-align:center}
.admin-source-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.admin-source-head{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:11px;margin-bottom:20px}.source-logo{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;font-size:16px;font-weight:850}.source-logo.moex{color:#176da7;background:#e5f1f9}.source-logo.sms{color:#2b7a5d;background:#e5f4ee}.source-logo.database{color:#9a6927;background:#fff0d9}.admin-source-head h2{margin:0 0 4px;font-size:16px}.admin-source-head p{margin:0;color:#748594;font-size:10px}.admin-source-card dl{margin:0 0 19px;border-block:1px solid #e7edf1}.admin-source-card dl div{display:flex;justify-content:space-between;gap:15px;padding:11px 0}.admin-source-card dt{color:#748594;font-size:10px}.admin-source-card dd{margin:0;text-align:right;font-size:10px;font-weight:750}.admin-negative{color:#b34c50}.admin-source-card>button{width:100%}
.admin-log-list { padding: 5px 20px; }.admin-log-item { display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:12px;padding:15px 0;border-top:1px solid #e7edf1}.admin-log-item:first-child{border-top:0}.admin-log-item>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#176da7;background:#e8f2f8;font-weight:800}.admin-log-item div{display:flex;flex-direction:column;gap:3px}.admin-log-item strong{font-size:12px}.admin-log-item small,.admin-log-item time{color:#788895;font-size:9px}
.admin-toast { position:fixed;right:24px;bottom:24px;z-index:80;min-width:300px;display:flex;align-items:center;gap:11px;padding:14px 16px;border-radius:13px;color:#fff;background:#175a7e;box-shadow:0 15px 40px rgba(20,58,82,.25);opacity:0;transform:translateY(15px);pointer-events:none;transition:.25s ease}.admin-toast.show{opacity:1;transform:translateY(0)}.admin-toast>span{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;color:#175a7e;background:#d9f0e8;font-weight:800}.admin-toast div{display:flex;flex-direction:column;gap:2px}.admin-toast strong{font-size:11px}.admin-toast p{margin:0;color:#c2dbe6;font-size:9px}

@media (max-width: 1050px) {
  .admin-metrics { grid-template-columns: repeat(2,1fr); }
  .admin-source-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .admin-sidebar { width: 245px; transform: translateX(-100%); transition: transform .22s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { width:100%;margin-left:0}.admin-menu-button{display:block}.admin-topbar{height:60px;padding:0 15px}.admin-view{padding:24px 15px}.admin-page-heading{align-items:flex-start;flex-direction:column}.admin-page-heading .admin-primary,.admin-search,.admin-filter{width:100%}.admin-dashboard-grid{grid-template-columns:1fr}.admin-source-grid{grid-template-columns:1fr}
}
@media (max-width: 520px) {
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-metrics article { min-height: 115px; }
  .admin-page-heading h1 { font-size: 29px; }
  .admin-ticket { grid-template-columns: 1fr; }.admin-ticket aside{align-items:flex-start}.admin-topbar p{display:none}.admin-system-state{font-size:10px}.admin-toast{left:12px;right:12px;bottom:12px;min-width:0}
}

/* Mobile portfolio uses readable cards instead of a horizontally scrolling table. */
@media (max-width: 620px) {
  #portfolio-view { padding-inline: 12px; }
  #portfolio-view .page-heading { gap: 16px; margin-bottom: 18px; }
  #portfolio-view .page-heading h1 { font-size: clamp(32px, 10vw, 38px); }
  #portfolio-view .filter-row { gap: 10px; }
  #portfolio-view .segmented { width: 100%; height: 48px; display: grid; grid-template-columns: .72fr .9fr 1.18fr; gap: 3px; padding: 4px; overflow: visible; }
  #portfolio-view .segmented button, #portfolio-view .segmented button:first-child { min-width: 0; width: 100%; height: 38px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 5px; font-size: 12px; white-space: nowrap; }
  #portfolio-view .segmented button span { flex: 0 0 auto; min-width: 18px; height: 18px; margin: 0; padding: 0 4px; font-size: 10px; }
  #portfolio-view .search-control { height: 46px; }
  #portfolio-view .table-panel { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  #portfolio-view .table-scroll { overflow: visible; }
  #portfolio-view table, #portfolio-view tbody { display: block; width: 100%; min-width: 0; }
  #portfolio-view thead { display: none; }
  #portfolioRows { display: grid; gap: 12px; }
  #portfolioRows tr { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 13px 16px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(30,55,82,.06); }
  #portfolioRows tr[hidden] { display: none !important; }
  #portfolioRows td { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; white-space: normal; font-size: 12px; }
  #portfolioRows td::before { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
  #portfolioRows td:nth-child(1) { grid-column: 1 / -1; padding: 0 42px 13px 0; border-bottom: 1px solid var(--line); }
  #portfolioRows td:nth-child(1)::before, #portfolioRows td:nth-child(8)::before { display: none; }
  #portfolioRows td:nth-child(2)::before { content: 'Организация'; }
  #portfolioRows td:nth-child(3)::before { content: 'Вложено'; }
  #portfolioRows td:nth-child(4)::before { content: 'К возврату / номинал'; }
  #portfolioRows td:nth-child(5)::before { content: 'Ставка / доходность'; }
  #portfolioRows td:nth-child(6)::before { content: 'Ближайшее событие'; }
  #portfolioRows td:nth-child(7)::before { content: 'Погашение'; }
  #portfolioRows td:nth-child(8) { position: absolute; top: 14px; right: 13px; }
  #portfolioRows .instrument, #portfolioRows .instrument-link { width: 100%; min-width: 0; text-align: left; }
  #portfolioRows .instrument > span:last-child { min-width: 0; }
  #portfolioRows .instrument strong, #portfolioRows .instrument small { overflow: hidden; display: block; text-overflow: ellipsis; white-space: nowrap; }
  #portfolioRows .cell-note { margin-top: 1px; white-space: normal; }
  #portfolioRows .row-menu { display: grid; place-items: center; background: #edf4f8; }
}

/* Unified typography and geometrically centered interface arrows. */
h1, h2, h3, h4, h5, h6, button, .eyebrow, th, .operation-date,
.brand span:last-child, .auth-brand small, .auth-kicker, .admin-brand small,
.admin-topbar p, .admin-page-heading p, .event-row time span, .weekdays span,
.bar-label span, .mobile-calendar-events time span, .calculator-suggestion-heading,
#portfolioRows td::before {
  text-transform: none !important;
  letter-spacing: normal !important;
}
.ui-arrow { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: 0 0 18px; line-height: 0; vertical-align: middle; }
.ui-arrow svg { width: 16px; height: 16px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-button, .secondary-button, .text-button, .auth-back, .admin-primary, .admin-secondary { align-items: center; justify-content: center; gap: 7px; }
.primary-button, .secondary-button, .text-button, .auth-back, .admin-primary, .admin-secondary { display: inline-flex; }
.month-switch button { display: grid; place-items: center; padding: 0; line-height: 0; }
.month-switch button .ui-arrow { width: 100%; height: 100%; }
.admin-nav button > .ui-arrow, .calculator-subnav button > .ui-arrow { display: inline-grid; place-items: center; }
.admin-attention-list b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; }
.admin-attention-list b .ui-arrow { width: 15px; height: 15px; flex-basis: 15px; }
.operation-icon { line-height: 1; text-align: center; }
.operation-icon svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trend { display: flex; align-items: center; gap: 4px; }
.trend .trend-arrow { width: 15px; height: 15px; flex-basis: 15px; }
