:root {
    --paper: #f3f1eb;
    --ink: #11110f;
    --muted: #6c6b65;
    --line: #c9c6bd;
    --orange: #ff5a1f;
    --orange-soft: #ffd8c9;
    --lime: #d8ff54;
    --blue: #315cff;
    --red: #e5412d;
    --white: #fffef9;
    --radius: 18px;
    --mono: "DM Mono", monospace;
    --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
    margin: 0;
    min-width: 320px;
    background:
        linear-gradient(90deg, transparent calc(100% - 1px), rgba(17,17,15,.06) 1px) 0 0 / 25% 100%,
        var(--paper);
    color: var(--ink);
    font-family: var(--sans);
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.ko-text {
    font-family: var(--sans) !important;
    font-style: inherit;
    font-weight: inherit;
    letter-spacing: -.015em !important;
}
.boot-screen { min-height: 100vh; display: grid; place-content: center; text-align: center; }
.brand-mark {
    width: 72px; height: 72px; margin: 0 auto 18px; display: grid; place-items: center;
    border: 2px solid var(--ink); border-radius: 22px 22px 22px 4px;
    background: var(--orange); font-size: 32px; font-weight: 900;
}
.boot-screen p, .eyebrow, .mono { font-family: var(--mono); }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.auth-hero {
    min-height: 100vh; padding: 32px; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 21px; letter-spacing: -.04em; }
.brand .mini-mark {
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 1.5px solid var(--ink); border-radius: 11px 11px 11px 3px;
    background: var(--orange); font-family: var(--mono);
}
.hero-copy {
    width: fit-content;
    max-width: 100%;
}
.hero-copy h1 {
    margin: 0; max-width: 800px; font-size: clamp(64px, 9vw, 148px);
    line-height: .78; letter-spacing: -.09em; font-weight: 900;
}
.hero-line-mask {
    display: block;
    overflow: hidden;
    padding: .08em .08em .12em 0;
    margin: -.08em -.08em -.12em 0;
}
.hero-line {
    display: block;
    opacity: 0;
    transform: translate3d(0, 115%, 0);
    animation: hero-line-reveal .9s cubic-bezier(.16, 1, .3, 1) forwards;
    will-change: transform, opacity;
}
.hero-line-in { animation-delay: .13s; }
.hero-line-focus {
    color: var(--orange);
    transform-origin: left bottom;
    animation-name: hero-focus-reveal;
    animation-duration: 1.08s;
    animation-delay: .26s;
}
.hero-copy > p {
    max-width: 540px; margin: 34px 0 0; font-size: 18px; line-height: 1.5;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    animation: hero-description-in .75s cubic-bezier(.22, 1, .36, 1) .94s forwards;
}
@keyframes hero-line-reveal {
    0% { opacity: 0; transform: translate3d(0, 115%, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hero-focus-reveal {
    0% { opacity: 0; transform: translate3d(0, 115%, 0) scale(.96); }
    72% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.025); }
    88% { opacity: 1; transform: translate3d(0, 0, 0) scale(.993); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes hero-description-in {
    0% { opacity: 0; transform: translate3d(0, 14px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero-footer {
    display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line);
    padding-top: 16px; font-family: var(--mono); font-size: 12px; text-transform: uppercase;
}
.auth-panel {
    min-height: 100vh; padding: clamp(28px, 7vw, 100px); display: grid;
    align-content: center; background: rgba(255,254,249,.7);
}
.auth-box { max-width: 500px; width: 100%; margin: auto; }
.auth-tabs { display: flex; margin-bottom: 46px; border-bottom: 1px solid var(--line); }
.auth-tabs button {
    flex: 1; padding: 14px 0; border: 0; border-bottom: 3px solid transparent;
    background: transparent; cursor: pointer; font-family: var(--mono);
}
.auth-tabs button.active { border-color: var(--orange); }
.auth-box h2 { margin: 0 0 10px; font-size: 42px; letter-spacing: -.06em; }
.auth-box > p { color: var(--muted); margin: 0 0 34px; }
.form-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select {
    width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line);
    border-radius: 10px; outline: none; background: var(--white);
}
.modern-select { position: relative; width: 100%; min-width: 0; }
.modern-select-native {
    position: absolute !important; left: 8px; bottom: 2px; width: 1px !important;
    min-height: 1px !important; height: 1px; padding: 0 !important; opacity: 0;
    pointer-events: none;
}
.modern-select-trigger {
    width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line);
    border-radius: 12px; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; background: var(--white); color: var(--ink); text-align: left;
    cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.modern-select-trigger:hover { border-color: var(--ink); }
.modern-select.open .modern-select-trigger {
    border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,90,31,.15);
}
.modern-select.disabled .modern-select-trigger { opacity: .5; cursor: not-allowed; }
.modern-select-value {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modern-select-chevron {
    width: 8px; height: 8px; flex: 0 0 auto; border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg);
    transition: transform .16s ease;
}
.modern-select.open .modern-select-chevron { transform: translateY(2px) rotate(225deg); }
.modern-select-menu {
    position: fixed; z-index: 10000; max-height: min(340px, 52vh); margin: 0;
    padding: 6px; border: 1px solid rgba(17,17,15,.13); border-radius: 16px;
    overflow-y: auto; list-style: none; background: var(--white);
    box-shadow: 0 12px 34px rgba(17,17,15,.16), 0 3px 10px rgba(17,17,15,.08);
    overscroll-behavior: contain; scrollbar-gutter: stable;
}
.modern-select-menu[hidden] { display: none; }
.modern-select-menu li { margin: 0 0 2px; }
.modern-select-menu li:last-child { margin-bottom: 0; }
.modern-select-option {
    width: 100%; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 8px;
    display: flex; align-items: center; background: transparent; color: var(--ink);
    text-align: left; cursor: pointer; transition: background .14s ease, color .14s ease;
}
.modern-select-option:hover,
.modern-select-option:focus-visible {
    outline: none; background: rgba(216,255,84,.48); color: #1d3f00; font-weight: 750;
}
.modern-select-option.selected { background: var(--orange-soft); font-weight: 750; }
.modern-select-option:disabled { color: var(--muted); cursor: not-allowed; opacity: .55; }
.field textarea {
    width: 100%; min-height: 120px; padding: 13px 14px; border: 1px solid var(--line);
    border-radius: 10px; outline: none; resize: vertical; background: var(--white);
}
.field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,90,31,.15); }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,90,31,.15); }
.compact-form { gap: 12px; align-self: start; }
.compact-form .field { gap: 6px; }
.compact-form .field input, .compact-form .field select { min-height: 40px; }
.compact-form .modern-select-trigger { min-height: 40px; }
.compact-form .primary-btn { min-height: 42px; }
.card-billing-fields {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
    padding: 12px; border: 1px solid var(--line); border-radius: 10px;
    background: rgba(255, 216, 201, .28);
}
.installment-field {
    padding: 12px; border: 1px solid var(--line); border-radius: 10px;
    background: rgba(216, 255, 84, .16);
}
.loan-repayment-fields {
    padding: 14px; border: 1px solid var(--ink); border-radius: 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--lime);
}
.loan-total-preview {
    grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid rgba(17,17,15,.35);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.loan-total-preview span { font: 10px var(--mono); }
.loan-total-preview strong { font-size: 24px; letter-spacing: -.05em; }
.loan-detail { color: #755300; }
.installment-controls { display: flex; align-items: center; gap: 12px; }
.installment-controls .check-line { flex: 1; }
.installment-controls select {
    width: 130px; min-height: 40px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--white);
}
.installment-controls .modern-select { width: 130px; flex: 0 0 130px; }
.installment-controls .modern-select-trigger { min-height: 40px; }
.cashflow-layout { grid-template-columns: 310px minmax(0, 1fr); align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.primary-btn, .secondary-btn, .danger-btn, .icon-btn {
    min-height: 46px; border: 1px solid var(--ink); border-radius: 10px; padding: 0 18px;
    cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 500; transition: .18s ease;
}
.primary-btn { background: var(--orange); color: var(--ink); }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); }
.secondary-btn { background: var(--white); }
.secondary-btn:hover { background: var(--lime); }
.danger-btn { border-color: var(--red); background: transparent; color: var(--red); }
.icon-btn { min-height: 36px; padding: 0 12px; background: transparent; }
.full { width: 100%; }
.error-box { padding: 12px 14px; border: 1px solid var(--red); border-radius: 10px; background: #fff0ec; color: #9c2618; font-size: 13px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar {
    position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line);
    background: rgba(243,241,235,.96); display: flex; flex-direction: column;
}
.sidebar-head { padding: 26px 22px; border-bottom: 1px solid var(--line); }
.nav-list { padding: 18px 12px; display: grid; gap: 7px; }
.nav-link {
    display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid transparent;
    border-radius: 10px; background: transparent; text-align: left; cursor: pointer;
}
.nav-link:hover { border-color: var(--line); background: var(--white); }
.nav-link.active { border-color: var(--ink); background: var(--lime); }
.nav-index { width: 28px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.sidebar-foot { margin-top: auto; padding: 18px; border-top: 1px solid var(--line); }
.user-chip { margin-bottom: 14px; }
.user-chip strong { display: block; }
.user-chip span { color: var(--muted); font-size: 12px; }
.main-area { min-width: 0; }
.topbar {
    min-height: 88px; padding: 20px 30px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: rgba(243,241,235,.86); backdrop-filter: blur(12px);
}
.page-kicker { margin: 0; font: 11px var(--mono); color: var(--muted); }
.page-title { margin: 2px 0 0; font-size: 28px; letter-spacing: -.05em; }
.date-block { display: grid; gap: 2px; text-align: right; font-family: var(--mono); }
.date-block strong { font-size: 15px; letter-spacing: .04em; }
.date-block span { color: var(--muted); font-size: 9px; }
.content { padding: 30px; }
.hero-dashboard {
    display: grid; grid-template-columns: 1.35fr .65fr; border: 1px solid var(--ink);
    border-radius: var(--radius); overflow: hidden; background: var(--white);
}
.hero-number { padding: clamp(28px, 5vw, 70px); border-right: 1px solid var(--ink); }
.hero-number .label { font: 12px var(--mono); }
.hero-number strong { display: block; margin-top: 26px; font-size: clamp(48px, 8vw, 110px); line-height: .9; letter-spacing: -.09em; }
.hero-number p { max-width: 520px; color: var(--muted); }
.hero-art { padding: 28px; display: grid; place-items: center; background: var(--orange); overflow: hidden; }
.orbit { width: min(290px, 80%); aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; position: relative; }
.orbit::before, .orbit::after {
    content: ""; position: absolute; inset: 15%; border: 2px solid var(--ink);
    border-radius: 50% 10% 50% 10%; transform: rotate(45deg);
}
.orbit::after { inset: 36%; background: var(--lime); border-radius: 30%; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.metric { min-height: 180px; padding: 24px; border: 1px solid var(--line); border-right: 0; background: rgba(255,254,249,.7); }
.metric:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.metric:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
.metric span { font: 11px var(--mono); color: var(--muted); }
.metric strong { display: block; margin-top: 26px; font-size: 34px; letter-spacing: -.06em; }
.investment-metric { position: relative; }
.investment-metric strong { margin-top: 18px; }
.investment-metric small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.metric-sync-btn {
    margin-top: 14px; padding: 7px 10px; border: 1px solid var(--ink);
    border-radius: 8px; background: var(--white); font-family: var(--sans);
    font-size: 11px; font-weight: 750; cursor: pointer;
}
.metric-sync-btn:hover { background: var(--lime); }
.metric-sync-btn:disabled { opacity: .55; cursor: wait; }
.positive { color: var(--blue); }
.negative { color: var(--red); }
.market-up { color: var(--red) !important; }
.market-down { color: var(--blue) !important; }
.market-flat { color: var(--muted) !important; }
.section-head { margin: 46px 0 18px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0; font-size: 34px; letter-spacing: -.06em; }
.section-head p { margin: 0; color: var(--muted); font: 11px var(--mono); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,249,.8); overflow: hidden; }
.panel-body { padding: 24px; }
.split-layout { display: grid; grid-template-columns: 370px 1fr; gap: 20px; }
.data-list { display: grid; }
.data-row {
    min-height: 72px; padding: 14px 18px; border-bottom: 1px solid var(--line);
    display: grid; grid-template-columns: 40px 92px 1fr auto auto; gap: 14px; align-items: center;
}
.data-row:last-child { border-bottom: 0; }
.pill { width: fit-content; padding: 5px 9px; border: 1px solid var(--ink); border-radius: 999px; font: 10px var(--mono); }
.amount { font-weight: 800; letter-spacing: -.03em; }
.asset-icon {
    width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px;
    object-fit: cover; background: var(--white); display: grid; place-items: center;
    flex: 0 0 auto; overflow: hidden; font-size: 16px;
}
.asset-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-actions { display: flex; gap: 7px; }
.file-picker input[type="file"] {
    position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.file-control {
    min-height: 48px; padding: 7px; border: 1px solid var(--line); border-radius: 10px;
    display: flex; align-items: center; gap: 10px; background: var(--white);
}
.file-button {
    min-height: 32px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 8px;
    display: inline-flex; align-items: center; background: var(--paper); cursor: pointer;
    font: 10px var(--mono); white-space: nowrap;
}
.file-button:hover { background: var(--lime); }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.file-hint { margin: 0; color: var(--muted); font-size: 11px; }
.empty { padding: 60px 24px; text-align: center; color: var(--muted); }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); }
.calendar-toolbar h3 { margin: 0; font-size: 22px; }
.calendar-nav { display: flex; gap: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekday { padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 10px var(--mono); color: var(--muted); }
.calendar-day {
    min-height: 116px; padding: 9px; border: 0; border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line); overflow: hidden; background: transparent;
    color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.calendar-day:hover, .calendar-day:focus-visible { background: var(--lime); outline: none; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside { opacity: .35; }
.day-number { font: 11px var(--mono); }
.day-event { display: block; margin-top: 5px; padding: 5px 6px; border-left: 3px solid; background: #f7f5ef; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-more { display: block; margin-top: 6px; font: 9px var(--mono); color: var(--muted); }
.day-event.income { border-color: var(--blue); color: var(--blue); }
.day-event.expense { border-color: var(--red); color: var(--red); }
.calendar-day .day-event.income { background: #e9eeff; color: var(--blue); }
.calendar-day .day-event.expense { background: #fff0ec; color: var(--red); }
.day-event.planned { border-color: var(--orange); color: #a63710; background: var(--orange-soft); }
.wish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wish-card { border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.wish-top { min-height: 200px; padding: 20px; display: grid; grid-template-columns: 1fr 150px; gap: 18px; background: var(--orange-soft); }
.wish-card.fixed .wish-top { background: var(--lime); }
.wish-top h3 { margin: 14px 0 6px; font-size: 28px; letter-spacing: -.06em; }
.wish-image { width: 100%; height: 160px; border: 1px solid var(--ink); border-radius: 12px; object-fit: cover; background: var(--paper); }
.image-placeholder { display: grid; place-items: center; font: 11px var(--mono); }
.deal-list { display: grid; }
.deal-link { padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; }
.deal-link:hover { background: var(--paper); }
.deal-link strong { display: block; margin-top: 6px; color: var(--orange); }
.card-actions { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.admin-code { padding: 34px; border-radius: var(--radius); background: var(--ink); color: var(--lime); font: clamp(24px, 5vw, 56px) var(--mono); word-break: break-all; }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th, .user-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.user-table th { font: 10px var(--mono); color: var(--muted); text-transform: uppercase; }
.toast {
    position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 380px;
    padding: 14px 18px; border: 1px solid var(--ink); border-radius: 10px;
    background: var(--ink); color: white; opacity: 0; transform: translateY(12px);
    pointer-events: none; transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }
.loading { opacity: .55; pointer-events: none; }
.modal-backdrop {
    position: fixed; inset: 0; z-index: 200; padding: 20px; display: grid; place-items: center;
    background: rgba(17,17,15,.48); backdrop-filter: blur(5px);
}
.modal-card {
    width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto;
    border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper);
    box-shadow: 10px 10px 0 rgba(17,17,15,.24);
}
.modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.modal-body { padding: 20px; }
.current-image-line { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.check-line input { width: 16px; height: 16px; }
.hidden { display: none !important; }
.form-note { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.metric-grid-four { grid-template-columns: repeat(4, 1fr); }
.metric-grid-four .metric:nth-child(3) { border-right: 0; border-radius: 0; }
.flow-summary {
    display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink);
    border-radius: var(--radius); overflow: hidden; background: var(--white);
}
.flow-summary article { min-height: 160px; padding: 24px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.flow-summary article:last-child { border-right: 0; background: var(--lime); }
.flow-summary span {
    color: var(--muted); font-family: var(--sans); font-size: 13px;
    font-weight: 750; letter-spacing: -.015em;
}
.flow-summary strong {
    font-family: var(--sans); font-size: clamp(26px, 3vw, 42px);
    font-weight: 850; letter-spacing: -.055em; font-variant-numeric: tabular-nums;
}
.account-layout { grid-template-columns: 340px 1fr; align-items: start; }
.inline-head { margin-top: 0; }
.account-row { grid-template-columns: 42px minmax(160px, 1fr) auto auto; }
.transaction-row, .subscription-row { grid-template-columns: 42px 110px minmax(160px, 1fr) auto auto; }
.transaction-row { grid-template-columns: 92px 90px minmax(180px, 1fr) auto auto; }
.transaction-row > .mono:first-child { white-space: nowrap; }
.transaction-row.type-income { box-shadow: inset 4px 0 0 var(--blue); }
.transaction-row.type-expense { box-shadow: inset 4px 0 0 var(--red); }
.transaction-row.type-transfer { box-shadow: inset 4px 0 0 var(--ink); }
.transaction-row.type-investment_funding { box-shadow: inset 4px 0 0 var(--orange); }
.transaction-row.type-investment_withdrawal { box-shadow: inset 4px 0 0 var(--blue); }
.transaction-row.type-repayment { box-shadow: inset 4px 0 0 var(--orange); }
.transaction-pill { border: 0; font-family: var(--sans); font-weight: 750; }
.transaction-pill.income { background: #e9eeff; color: var(--blue); }
.transaction-pill.expense { background: #fff0ec; color: var(--red); }
.transaction-pill.transfer { background: #e7e5de; color: var(--ink); }
.transaction-pill.repayment { background: var(--orange-soft); color: #a63710; }
.transaction-pill.investment_funding { background: var(--orange-soft); color: #a63710; }
.transaction-pill.investment_withdrawal { background: #e9eeff; color: var(--blue); }
.transaction-filter { display: grid; gap: 6px; min-width: 160px; }
.transaction-filter span { color: var(--muted); font: 10px var(--mono); }
.transaction-filter select {
    min-height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--ink);
    border-radius: 999px; background: var(--white); font-weight: 700;
}
.transaction-filter .modern-select { min-width: 170px; }
.transaction-filter .modern-select-trigger { min-height: 42px; }
.settlement-detail { margin-top: 5px; color: var(--blue); font-size: 11px; }
.transaction-account {
    margin-top: 4px; color: var(--muted); font-family: var(--sans);
    font-size: 12px; font-weight: 500; letter-spacing: -.01em;
}
.transaction-description {
    margin-top: 3px; color: var(--muted); font-family: var(--sans);
    font-size: 12px; line-height: 1.4;
}
.system-transaction { background: rgba(203, 255, 74, .08); }
.calendar-detail-list { display: grid; }
.calendar-detail-item {
    min-height: 78px; padding: 15px 20px; border-bottom: 1px solid var(--line);
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
}
.calendar-detail-item:last-child { border-bottom: 0; }
.calendar-detail-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.calendar-detail-modal .modal-head p { margin: 0 0 4px; color: var(--muted); font: 10px var(--mono); }
.field-hint { margin: 7px 0 0; color: var(--blue); font-size: 11px; }
.subscription-row { grid-template-columns: 42px 95px minmax(160px, 1fr) auto auto; }
.date-badge { font: 11px var(--mono); color: var(--muted); }
.payment-account-name { margin-top: 4px; color: var(--muted); font-size: 12px; font-family: var(--sans); }
.linked-note { margin: 0; padding: 10px 12px; border: 1px solid var(--orange); border-radius: 8px; background: var(--orange-soft); font-size: 12px; }
.locked-label { color: var(--muted); font: 10px var(--mono); white-space: nowrap; }
.subscription-total {
    min-height: 150px; margin-bottom: 18px; padding: 24px; border: 1px solid var(--ink);
    border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between;
    background: var(--lime);
}
.subscription-total span { font: 11px var(--mono); }
.subscription-total strong { font-size: clamp(34px, 5vw, 62px); letter-spacing: -.07em; }
.subscription-summary {
    margin-bottom: 14px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(190px, .6fr);
    border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden;
}
.subscription-summary .subscription-total { margin: 0; border: 0; border-radius: 0; }
.subscription-transfer-total {
    padding: 18px; border-left: 1px solid var(--ink);
    display: flex; flex-direction: column; justify-content: space-between; background: var(--lime);
}
.subscription-transfer-total span { font: 10px var(--mono); }
.subscription-transfer-total strong { margin-top: 20px; font-size: 24px; letter-spacing: -.05em; }
.segmented-control {
    width: fit-content; margin-bottom: 20px; padding: 5px; border: 1px solid var(--ink);
    border-radius: 12px; display: flex; gap: 5px; background: var(--white);
}
.segmented-control button {
    min-height: 42px; padding: 0 20px; border: 0; border-radius: 8px;
    background: transparent; cursor: pointer; font-weight: 700;
}
.segmented-control button.active { background: var(--ink); color: var(--white); }
.stock-viewbar {
    min-height: 54px; margin-bottom: 16px; display: flex; align-items: center;
    justify-content: space-between; gap: 20px;
}
.sliding-tabs,
.stock-tabs {
    position: relative; width: 420px; margin-bottom: 0; display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; isolation: isolate;
}
.sliding-tabs { width: 290px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sliding-tabs .segment-slider,
.stock-tabs .segment-slider {
    position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
    width: calc((100% - 10px) / 3); border-radius: 8px; background: var(--ink);
    transform: translateX(0);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}
.sliding-tabs .segment-slider { width: calc((100% - 10px) / 2); }
.stock-tabs[data-active="PORTFOLIO"] .segment-slider { transform: translateX(100%); }
.stock-tabs[data-active="INDICES"] .segment-slider { transform: translateX(200%); }
.shopping-tabs[data-active="WISHLIST"] .segment-slider { transform: translateX(100%); }
.shopping-tabs[data-active="CARD_BENEFITS"] .segment-slider { transform: translateX(200%); }
.sliding-tabs button,
.stock-tabs button {
    position: relative; z-index: 1; padding: 0 14px;
    color: var(--ink); transition: color .16s ease;
}
.sliding-tabs button.active,
.stock-tabs button.active { background: transparent; color: var(--white); }
.sliding-tabs button:disabled,
.stock-tabs button:disabled { cursor: default; opacity: 1; }
.shopping-tabs {
    width: 570px; margin-bottom: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shopping-tabs .segment-slider { width: calc((100% - 10px) / 3); }
.stock-tabs button .stock-tab-count {
    display: inline-grid; min-width: 22px; height: 22px; margin-left: 7px; padding: 0 6px;
    place-items: center; border-radius: 999px; background: var(--paper); color: var(--ink);
    font: 10px var(--mono);
}
.exchange-rate {
    min-height: 48px; padding: 7px 10px 7px 18px; border: 1px solid var(--line);
    border-radius: 999px; display: flex; align-items: center; gap: 16px;
    background: rgba(255,254,249,.68); box-shadow: 0 3px 12px rgba(17,17,15,.06);
    backdrop-filter: blur(10px); white-space: nowrap; font-family: var(--sans);
}
.exchange-rate > span {
    color: var(--muted); font-size: 10px; font-weight: 800;
    line-height: 1; letter-spacing: .12em;
}
.exchange-rate > strong {
    font-family: var(--sans); font-size: 19px; font-weight: 850;
    line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.exchange-rate > em {
    padding: 5px 8px; border-radius: 7px; font-size: 11px; font-style: normal;
    font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
.exchange-rate > em.up { color: var(--red); background: #fff0ec; }
.exchange-rate > em.down { color: var(--blue); background: #edf1ff; }
.exchange-rate > em.flat, .exchange-rate.unavailable strong { color: var(--muted); }
.exchange-rate.unavailable strong { font-size: 14px; }
.shopping-form-panel { margin-bottom: 20px; }
.shopping-form { display: grid; grid-template-columns: 1fr 220px minmax(260px, .8fr) auto; gap: 14px; align-items: start; }
.shopping-submit .primary-btn { min-height: 50px; }
.compact-empty { padding: 28px 18px; }
.wish-card.frequent .wish-top { background: var(--lime); }
.wish-card.wishlist .wish-top { background: var(--orange-soft); }
.stock-intro {
    padding: clamp(24px, 4vw, 52px); border: 1px solid var(--ink); border-radius: var(--radius);
    display: flex; align-items: end; justify-content: space-between; gap: 30px; background: var(--orange);
}
.stock-intro h2 { margin: 6px 0; font-size: clamp(38px, 6vw, 76px); line-height: .95; letter-spacing: -.075em; }
.stock-intro p:last-child { margin-bottom: 0; }
.stock-intro-copy {
    flex: 1; align-self: stretch; display: flex; flex-direction: column;
    justify-content: center; text-align: left;
}
.stock-tools { width: min(520px, 100%); display: grid; gap: 10px; }
.stock-form, .ticker-search-form { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.ticker-search-form {
    padding-top: 10px; border-top: 1px solid rgba(17,17,15,.35);
}
.ticker-search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ticker-result {
    min-width: 0; padding: 9px 10px; border: 1px solid var(--ink); border-radius: 8px;
    display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; background: var(--white);
    text-align: left; cursor: pointer;
}
.ticker-result:hover { background: var(--lime); }
.ticker-result strong { font: 11px var(--mono); }
.ticker-result span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ticker-result small { grid-column: 1 / -1; color: var(--muted); font: 9px var(--mono); }
.ticker-search-status { color: var(--muted); font-size: 12px; }
.ticker-search-status.error { color: var(--red); }
.ticker-search-link {
    width: fit-content; padding: 8px 10px; border: 1px solid var(--ink); border-radius: 8px;
    background: var(--white); font-size: 12px; text-decoration: none;
}
.ticker-search-link:hover { background: var(--lime); }
.portfolio-intro {
    display: grid; grid-template-columns: minmax(280px, .75fr) minmax(520px, 1.25fr);
    align-items: stretch; background: var(--lime);
}
.portfolio-summary {
    min-height: 0; margin: 20px 0 16px; border: 1px solid var(--ink);
    border-radius: var(--radius); display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(130px, .65fr));
    overflow: hidden; background: var(--paper);
}
.portfolio-summary > * { padding: 18px 20px; border-right: 1px solid var(--line); }
.portfolio-summary > *:last-child { border-right: 0; }
.portfolio-summary-main {
    position: relative; display: flex; flex-direction: column; justify-content: center;
    background: var(--white); color: var(--ink);
}
.portfolio-summary-main::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--orange);
}
.portfolio-summary span {
    color: var(--muted); font-family: var(--sans); font-size: 13px;
    font-weight: 700; letter-spacing: -.015em;
}
.portfolio-summary-main > span {
    font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .06em;
}
.portfolio-summary-main strong {
    display: block; margin-top: 9px; font-size: clamp(30px, 3vw, 44px);
    line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums;
}
.portfolio-summary-main em {
    width: fit-content; margin-top: 9px; font-size: 13px; font-style: normal;
    font-weight: 800; font-variant-numeric: tabular-nums;
}
.portfolio-summary article {
    position: relative; min-height: 112px; display: flex; flex-direction: column;
    justify-content: space-between; background: var(--white);
}
.portfolio-summary article::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
}
.portfolio-summary article:nth-child(2)::before { background: var(--blue); }
.portfolio-summary article:nth-child(3)::before { background: var(--red); }
.portfolio-summary article:nth-child(4)::before { background: #9dbb24; }
.portfolio-summary article strong {
    margin-top: 16px; font-family: var(--sans); font-size: clamp(24px, 2.25vw, 32px);
    font-weight: 800; line-height: 1.05; letter-spacing: -.045em;
    font-variant-numeric: tabular-nums;
}
.portfolio-tools {
    display: grid; grid-template-columns: minmax(240px, .7fr) minmax(520px, 1.3fr);
    gap: 28px; align-items: center;
}
.portfolio-manage-intro { align-items: stretch; flex-direction: column; }
.portfolio-manage-intro .stock-intro-copy { width: 100%; max-width: none; }
.portfolio-manage-intro h2 {
    max-width: none; font-size: clamp(38px, 5vw, 66px); word-break: keep-all;
}
.portfolio-manage-tools {
    width: 100%; padding: 20px; border: 1px solid var(--ink);
    border-radius: 16px; display: grid; gap: 16px; background: rgba(255,254,249,.72);
    box-shadow: 6px 6px 0 rgba(17,17,15,.16);
}
.portfolio-manage-tools h3 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.045em; }
.portfolio-tools h2 { margin: 5px 0; font-size: 32px; letter-spacing: -.055em; }
.portfolio-tools p:last-child { margin-bottom: 0; color: var(--muted); }
.compact-portfolio-card .stock-price { min-height: 48px; }
.market-index-intro {
    padding: clamp(26px, 4vw, 48px); border: 1px solid var(--ink);
    border-radius: var(--radius); display: flex; align-items: end;
    justify-content: space-between; gap: 30px; background: var(--lime);
}
.market-index-intro h2 { margin: 7px 0 0; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.07em; }
.market-index-intro > p { max-width: 530px; margin: 0; color: #3d3d35; line-height: 1.55; }
.market-fixed-badge {
    height: fit-content; padding: 6px 9px; border: 1px solid var(--ink);
    border-radius: 999px; background: var(--paper); font: 9px var(--mono);
}
.market-index-card:nth-child(5), .market-index-card:nth-child(6) { background: #f6f2ff; }
.portfolio-intro > div { align-self: center; }
.portfolio-intro h2 { max-width: 430px; font-size: clamp(38px, 4.4vw, 58px); }
.holding-add-form {
    width: 100%; display: grid;
    grid-template-columns: minmax(180px, 1.25fr) minmax(110px, .65fr) minmax(150px, .8fr) auto;
    gap: 10px; align-items: end;
}
.holding-add-form .field input, .holding-add-form .field select { background: var(--white); }
.holding-add-form .modern-select-trigger { background: var(--white); }
.holding-add-form button:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.portfolio-complete {
    min-height: 150px; padding: 24px; border: 1px solid var(--ink); border-radius: 14px;
    display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,254,249,.52);
}
.portfolio-complete span { font: 10px var(--mono); }
.portfolio-complete strong { font-size: 24px; line-height: 1.15; }
.portfolio-complete p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.stock-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stock-card { min-width: 0; padding: 22px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--white); }
.stock-card header { display: flex; justify-content: space-between; gap: 16px; }
.stock-card h3 { margin: 5px 0 0; font-size: 26px; letter-spacing: -.05em; }
.stock-price { min-height: 66px; margin-top: 22px; display: flex; align-items: baseline; gap: 12px; color: var(--muted); }
.stock-price strong { color: var(--ink); font-size: 36px; letter-spacing: -.06em; }
.chart-wrap { height: 190px; margin-top: 10px; }
.portfolio-card { padding: 0; overflow: hidden; }
.portfolio-card > header, .portfolio-card > .stock-price, .portfolio-card > .chart-wrap { margin-left: 22px; margin-right: 22px; }
.portfolio-card > header { padding-top: 22px; }
.holding-badge {
    height: fit-content; padding: 7px 10px; border: 1px solid var(--ink); border-radius: 999px;
    background: var(--lime); font: 10px var(--mono);
}
.holding-details {
    display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 20px;
    border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.holding-details article { min-height: 112px; padding: 18px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.holding-details article:nth-child(2n) { border-right: 0; }
.holding-details article:nth-last-child(-n+2) { border-bottom: 0; }
.holding-details span { display: block; color: var(--muted); font: 10px var(--mono); }
.holding-details strong { display: block; margin-top: 16px; font-size: 21px; letter-spacing: -.045em; }
.holding-loading { grid-column: 1 / -1; padding: 28px 22px; color: var(--muted); font-size: 13px; }
.holding-edit-form {
    display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 10px; padding: 18px 22px;
    align-items: end; background: var(--paper);
}
.holding-edit-form .field input { min-height: 42px; }
.holding-edit-form button { min-height: 42px; }
.portfolio-empty { grid-column: 1 / -1; display: grid; gap: 8px; }
.portfolio-empty strong { font-size: 20px; }
.portfolio-empty span { color: var(--muted); }
.day-event.transfer { border-color: var(--ink); color: var(--ink); }
.day-event.repayment { border-color: var(--orange); color: #b83b0c; }
.day-event.investment_funding { border-color: var(--orange); color: #a63710; }
.day-event.investment_withdrawal { border-color: var(--blue); color: var(--blue); }
.profile-hero {
    min-height: 240px; padding: clamp(26px, 5vw, 60px); border: 1px solid var(--ink);
    border-radius: var(--radius); display: flex; align-items: end; justify-content: space-between;
    gap: 30px; background: var(--lime);
}
.korea-clock {
    max-width: 760px; margin-top: 12px; font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05; letter-spacing: -.07em; font-weight: 900; word-break: keep-all;
}
.profile-identity { display: flex; align-items: center; gap: 14px; }
.profile-identity .profile-avatar {
    width: 58px; height: 58px; border: 1px solid var(--ink); border-radius: 18px 18px 18px 4px;
    display: grid; place-items: center; background: var(--orange); font: 24px var(--mono);
}
.profile-identity div strong, .profile-identity div span { display: block; }
.profile-identity div span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end; }
.card-benefit-layout { grid-template-columns: 320px 1fr; align-items: start; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.benefit-card {
    min-height: 190px; padding: 16px; border: 1px solid var(--line); border-radius: 14px;
    display: flex; flex-direction: column; background: var(--white);
}
.benefit-card-head { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.benefit-card-mark { padding: 4px 7px; border-radius: 6px; background: var(--ink); color: var(--white); font: 8px var(--mono); }
.benefit-card h3 { margin: 13px 0 7px; font-size: 18px; letter-spacing: -.035em; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.benefit-card .card-actions { margin: auto -16px -16px; padding: 10px 16px; }
.benefit-card .card-actions button { min-height: 34px; padding: 0 12px; }
.shopping-benefit-head { margin-top: 28px; }
.backup-panel {
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.backup-panel strong { font-size: 20px; }
.backup-panel p {
    max-width: 720px; margin: 8px 0 0; color: var(--muted); line-height: 1.55;
}
.backup-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.backup-restore-label {
    min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.visually-hidden-file {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.danger-zone {
    padding: 24px; border: 1px solid var(--red); border-radius: var(--radius);
    display: grid; grid-template-columns: 1fr minmax(340px, .7fr); gap: 30px; align-items: center;
    background: #fff0ec;
}
.danger-zone > div > strong { font-size: 22px; }
.danger-zone > div > p { max-width: 650px; margin-bottom: 0; color: #7d3329; line-height: 1.55; }
.reset-form { display: grid; gap: 12px; }
.danger-btn:disabled { opacity: .35; cursor: not-allowed; }
.account-delete-zone { margin-bottom: 20px; }
.admin-invite-layout {
    display: grid; grid-template-columns: minmax(280px, 1fr) 320px;
    gap: 20px; align-items: start;
}
.admin-invite-layout .admin-code {
    min-height: 112px; padding: 22px 26px; display: flex; align-items: center;
    font-size: clamp(22px, 3vw, 38px);
}
.admin-user-delete { min-height: 34px; padding: 0 12px; font-size: 10px; }
.account-icon-wrap { position: relative; width: 36px; height: 36px; display: block; }
.account-type-mini {
    position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px;
    border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center;
    background: var(--white); font-size: 11px; line-height: 1;
}
.account-emoji { font-size: 20px; line-height: 1; }
.overview-flow-head { margin-bottom: 8px; }
.period-picker { display: flex; align-items: center; gap: 8px; }
.period-picker select {
    min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--ink);
    border-radius: 10px; background: var(--white);
}
.period-picker .modern-select { width: auto; min-width: 118px; }
.period-picker .modern-select-trigger { min-height: 42px; }
.period-picker .secondary-btn { min-height: 42px; }
.period-caption { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 1000px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero { min-height: 48vh; border-right: 0; border-bottom: 1px solid var(--line); }
    .auth-panel { min-height: auto; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .sidebar-head, .sidebar-foot { padding: 14px 18px; }
    .nav-list { grid-template-columns: repeat(5, 1fr); overflow-x: auto; }
    .nav-link { justify-content: center; white-space: nowrap; }
    .nav-index { display: none; }
    .sidebar-foot { display: flex; align-items: center; justify-content: space-between; }
    .user-chip { margin: 0; }
    .hero-dashboard, .split-layout, .cashflow-layout, .account-layout { grid-template-columns: 1fr; }
    .hero-number { border-right: 0; border-bottom: 1px solid var(--ink); }
    .wish-grid { grid-template-columns: 1fr; }
    .metric-grid-four { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .metric-grid-four .metric, .metric-grid-four .metric:nth-child(3) { border: 1px solid var(--line); border-radius: 14px; }
    .shopping-form { grid-template-columns: 1fr 1fr; }
    .portfolio-intro { grid-template-columns: 1fr; }
    .portfolio-summary { grid-template-columns: repeat(3, 1fr); }
    .portfolio-summary-main { grid-column: 1 / -1; }
    .portfolio-summary > * { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
    .portfolio-summary > *:last-child { border-right: 0; }
    .portfolio-tools { grid-template-columns: 1fr; }
    .portfolio-manage-intro { align-items: stretch; flex-direction: column; }
    .portfolio-manage-intro .stock-intro-copy { max-width: none; }
    .holding-add-form { width: 100%; grid-template-columns: 1fr 1fr; }
    .holding-add-form .field:first-child { grid-column: 1 / -1; }
    .profile-form { grid-template-columns: 1fr 1fr; }
    .card-benefit-layout { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-invite-layout { grid-template-columns: 1fr; }
    .danger-zone { grid-template-columns: 1fr; }
    .backup-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
    body { background: var(--paper); }
    .auth-hero { min-height: 40vh; padding: 22px; }
    .hero-copy h1 { font-size: 64px; }
    .hero-copy p, .hero-footer { display: none; }
    .auth-panel { padding: 32px 20px 50px; }
    .form-grid { grid-template-columns: 1fr; }
    .sidebar, .sidebar-head, .sidebar-foot, .main-area, .content { min-width: 0; width: 100%; }
    .nav-list { width: 100%; display: flex; overflow-x: auto; }
    .nav-link { flex: 0 0 115px; }
    .topbar { padding: 16px 18px; }
    .content { padding: 18px; }
    .metric-grid { grid-template-columns: 1fr; gap: 10px; }
    .metric, .metric:first-child, .metric:last-child { border: 1px solid var(--line); border-radius: 14px; }
    .data-row { grid-template-columns: 38px 1fr auto; }
    .data-row .pill { display: none; }
    .data-row .amount { grid-column: 2; }
    .data-row .row-actions { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; }
    .transaction-section-head { align-items: stretch; flex-direction: column; }
    .transaction-filter { width: 100%; }
    .calendar-day { min-height: 78px; padding: 5px; }
    .day-event { font-size: 0; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; display: inline-block; }
    .day-event.income { background: var(--blue); }
    .day-event.expense { background: var(--red); }
    .day-event.investment_funding { background: var(--orange); }
    .day-event.investment_withdrawal { background: var(--blue); }
    .wish-top { grid-template-columns: 1fr; }
    .wish-image { height: 180px; }
    .user-table th:nth-child(2), .user-table td:nth-child(2) { display: none; }
    .flow-summary { grid-template-columns: 1fr; }
    .flow-summary article { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--ink); }
    .flow-summary article:last-child { border-bottom: 0; }
    .account-row, .transaction-row, .subscription-row { grid-template-columns: 38px 1fr auto; }
    .account-row .pill, .transaction-row .pill, .subscription-row .date-badge { display: none; }
    .account-row .amount, .transaction-row .amount, .subscription-row .amount { grid-column: 2; }
    .account-row .row-actions { grid-column: 3; grid-row: 1 / span 2; }
    .stock-intro { align-items: stretch; flex-direction: column; }
    .stock-intro-copy { text-align: left; }
    .stock-form, .ticker-search-form, .stock-grid, .shopping-form, .holding-add-form, .holding-edit-form { grid-template-columns: 1fr; }
    .ticker-search-results { grid-template-columns: 1fr; }
    .holding-add-form .field:first-child { grid-column: auto; }
    .holding-details { grid-template-columns: 1fr; }
    .holding-details article, .holding-details article:nth-child(2n), .holding-details article:nth-last-child(-n+2) {
        min-height: 94px; border-right: 0; border-bottom: 1px solid var(--line);
    }
    .holding-details article:last-child { border-bottom: 0; }
    .segmented-control { width: 100%; }
    .segmented-control button { flex: 1; padding: 0 10px; font-size: 13px; }
    .stock-viewbar { align-items: stretch; flex-direction: column; gap: 10px; }
    .stock-tabs, .shopping-tabs { width: 100%; }
    .exchange-rate { align-self: flex-end; }
    .portfolio-summary { grid-template-columns: 1fr; }
    .portfolio-summary-main { grid-column: auto; }
    .portfolio-summary > * { border-right: 0; border-bottom: 1px solid var(--ink); }
    .portfolio-summary > *:last-child { border-bottom: 0; }
    .market-index-intro { align-items: flex-start; flex-direction: column; }
    .overview-flow-head { align-items: stretch; flex-direction: column; }
    .period-picker { width: 100%; }
    .period-picker select { flex: 1; min-width: 0; }
    .period-picker .modern-select { flex: 1; min-width: 0; }
    .profile-hero { align-items: flex-start; flex-direction: column; }
    .profile-form, .benefit-grid { grid-template-columns: 1fr; }
    .backup-actions { width: 100%; flex-direction: column; }
    .card-billing-fields { grid-template-columns: 1fr; }
    .loan-repayment-fields, .subscription-summary { grid-template-columns: 1fr; }
    .subscription-transfer-total { border-left: 0; border-top: 1px solid var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-line,
    .hero-line-focus,
    .hero-copy > p {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Monee Lens · soft fintech refresh */
:root {
    --paper: #f4f7f4;
    --ink: #17251f;
    --muted: #718078;
    --line: #e2e9e5;
    --orange: #10b981;
    --orange-soft: #dff8ed;
    --lime: #ecfdf5;
    --blue: #2563eb;
    --red: #e5484d;
    --white: #ffffff;
    --radius: 28px;
    --mono: "DM Mono", monospace;
    --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --soft-shadow: 0 18px 50px rgba(25, 55, 42, .075);
    --card-shadow: 0 8px 28px rgba(25, 55, 42, .055);
}

html { background: var(--paper); scroll-behavior: smooth; }
body {
    background:
        radial-gradient(circle at 85% 4%, rgba(16, 185, 129, .09), transparent 28rem),
        var(--paper);
    color: var(--ink);
    font-weight: 450;
    line-height: 1.45;
}
button, input, select, textarea { font-family: var(--sans); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(16, 185, 129, .2);
    outline-offset: 2px;
}
.amount,
.hero-number strong,
.metric strong,
.flow-summary strong,
.stock-price,
.holding-details strong,
.portfolio-summary strong,
.subscription-summary strong,
.korea-clock,
.admin-code {
    font-variant-numeric: tabular-nums;
}

/* Small utility names retained on the logo component without loading Tailwind. */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-3 { gap: 12px; }
.w-10 { width: 40px; }
.h-10 { height: 40px; }
.w-12 { width: 48px; }
.h-12 { height: 48px; }
.transition-transform { transition-property: transform; }
.duration-300 { transition-duration: 300ms; }
.cursor-pointer { cursor: pointer; }
.text-2xl { font-size: 24px; }
.font-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -.04em; }
.text-emerald-600, .text-emerald-500 { color: #059669; }
.hover\:scale-105:hover { transform: scale(1.05); }

.monee-logo { width: fit-content; color: #059669; user-select: none; }
.monee-lens { flex: 0 0 auto; filter: drop-shadow(0 8px 12px rgba(5, 150, 105, .13)); }
.monee-wordmark {
    color: #059669;
    font-size: 25px;
    font-weight: 790;
    letter-spacing: -.055em;
    line-height: 1;
}
.monee-logo.compact .monee-lens { width: 34px; height: 34px; }
.monee-logo.compact .monee-wordmark { font-size: 22px; }

.boot-screen { background: var(--paper); }
.boot-screen .monee-logo { margin: 0 auto 18px; }
.boot-screen p { color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.brand-mark, .mini-mark { display: none; }

.auth-page { grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); background: var(--paper); }
.auth-hero {
    padding: 42px clamp(32px, 5vw, 72px);
    border: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(52, 211, 153, .22), transparent 22rem),
        linear-gradient(145deg, #102d23 0%, #0b1f18 58%, #07140f 100%);
    color: white;
}
.auth-hero .monee-wordmark { color: #ecfdf5; }
.auth-hero .monee-lens circle:first-child { fill: rgba(236, 253, 245, .08); }
.hero-copy h1 {
    max-width: 900px;
    font-size: clamp(62px, 8vw, 132px);
    font-weight: 680;
    line-height: .82;
    letter-spacing: -.075em;
}
.hero-line-focus { color: #34d399; }
.hero-copy > p { color: rgba(255, 255, 255, .7); font-size: 17px; font-weight: 420; }
.hero-footer { border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .48); }
.auth-panel { padding: clamp(32px, 6vw, 86px); background: rgba(255, 255, 255, .72); }
.auth-box { max-width: 460px; }
.auth-tabs {
    width: fit-content;
    margin-bottom: 42px;
    padding: 5px;
    border: 0;
    border-radius: 14px;
    background: #eaf0ec;
}
.auth-tabs button {
    min-width: 108px;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
}
.auth-tabs button.active { border: 0; background: white; color: var(--ink); box-shadow: 0 4px 16px rgba(23, 37, 31, .08); }
.auth-box h2 { font-size: 38px; font-weight: 720; letter-spacing: -.045em; }

.app-shell { grid-template-columns: 272px minmax(0, 1fr); }
.sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: 272px;
    height: 100vh;
    padding: 18px 14px;
    border: 0;
    background: rgba(250, 252, 250, .9);
    box-shadow: 10px 0 40px rgba(25, 55, 42, .045);
    backdrop-filter: blur(18px);
}
.sidebar-head { padding: 14px 14px 24px; border: 0; }
.nav-list { padding: 6px 0; gap: 4px; }
.nav-link {
    min-height: 58px;
    padding: 9px 12px;
    border: 0;
    border-radius: 16px;
    gap: 12px;
    color: #596860;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-link:hover { border: 0; background: #eef4f0; color: var(--ink); transform: translateX(2px); }
.nav-link.active {
    border: 0;
    background: #dcf7eb;
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .09);
}
.nav-index {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(113, 128, 120, .08);
    color: #89968f;
    font-size: 9px;
}
.nav-link.active .nav-index { background: #10b981; color: white; }
.nav-copy { min-width: 0; display: grid; gap: 1px; text-align: left; }
.nav-copy strong { font-size: 14px; font-weight: 660; letter-spacing: -.02em; }
.nav-copy small { color: #93a099; font-size: 10px; font-weight: 520; }
.nav-link.active .nav-copy small { color: #46a884; }
.sidebar-foot {
    margin: auto 0 0;
    padding: 16px 8px 4px;
    border: 0;
}
.user-chip {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f0f5f2;
}
.user-chip strong { font-size: 13px; font-weight: 680; }
.user-chip span { margin-top: 2px; font-size: 11px; }
.main-area { grid-column: 2; }
.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    min-height: 92px;
    padding: 20px clamp(24px, 3vw, 46px);
    border: 0;
    background: rgba(244, 247, 244, .82);
    backdrop-filter: blur(20px);
}
.page-kicker { color: #87948d; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.page-title { margin-top: 4px; font-size: 27px; font-weight: 700; letter-spacing: -.045em; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.quick-add-btn {
    min-height: 46px;
    padding: 0 18px 0 10px;
    border: 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #0b8f65;
    color: white;
    box-shadow: 0 10px 25px rgba(5, 150, 105, .2);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.quick-add-btn:hover { transform: translateY(-2px); background: #047857; box-shadow: 0 15px 30px rgba(5, 150, 105, .25); }
.quick-add-btn > span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .16);
    font-size: 21px;
    font-weight: 350;
}
.quick-add-btn strong { font-size: 13px; font-weight: 700; }
.date-block { min-width: 160px; font-family: var(--sans); line-height: 1.25; }
.date-block strong { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.date-block span { color: #849189; font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.content { max-width: 1560px; margin: 0 auto; padding: 26px clamp(24px, 3vw, 46px) 60px; }

.hero-dashboard {
    min-height: 330px;
    border: 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at 80% 30%, rgba(52, 211, 153, .3), transparent 25rem),
        linear-gradient(135deg, #102d23, #071812);
    color: white;
    box-shadow: 0 24px 70px rgba(7, 24, 18, .18);
}
.hero-number { padding: clamp(32px, 5vw, 68px); border: 0; }
.hero-number .label { color: rgba(255, 255, 255, .55); font-family: var(--sans); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.hero-number strong {
    margin-top: 24px;
    font-size: clamp(50px, 7vw, 96px);
    font-weight: 680;
    letter-spacing: -.075em;
}
.hero-number p { color: rgba(255, 255, 255, .58); font-size: 14px; }
.hero-art { border: 0; background: transparent; }
.orbit { width: min(260px, 76%); border: 1px solid rgba(255, 255, 255, .28); }
.orbit::before, .orbit::after { border: 1px solid rgba(255, 255, 255, .42); }
.orbit::after { background: #34d399; box-shadow: 0 0 50px rgba(52, 211, 153, .42); }

.metric-grid, .metric-grid-four { margin-top: 18px; gap: 14px; }
.metric,
.metric:first-child,
.metric:last-child,
.metric-grid-four .metric:nth-child(3) {
    min-height: 164px;
    padding: 22px;
    border: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--card-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.metric:hover { transform: translateY(-3px); box-shadow: var(--soft-shadow); }
.metric span { color: #819088; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.metric strong { margin-top: 24px; font-size: clamp(28px, 3vw, 38px); font-weight: 680; letter-spacing: -.055em; }
.metric small { color: #91a098; }
.metric-sync-btn {
    padding: 7px 11px;
    border: 0;
    border-radius: 10px;
    background: #e6f8ef;
    color: #047857;
    font-weight: 650;
}
.metric-sync-btn:hover { background: #d1f3e3; }

.section-head { margin: 40px 0 16px; align-items: center; }
.section-head h2 { font-size: 29px; font-weight: 700; letter-spacing: -.045em; }
.section-head p { color: #87948d; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.panel {
    border: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--card-shadow);
}
.panel-body { padding: 24px; }
.split-layout { gap: 18px; }
.data-list { gap: 0; }
.data-row {
    min-height: 78px;
    border-color: #edf1ee;
    transition: background .15s ease;
}
.data-row:hover { background: #f8fbf9; }
.data-row:last-child { border-bottom: 0; }
.amount { font-weight: 680; }
.asset-icon {
    border: 0;
    border-radius: 12px;
    background: #f0f5f2;
}
.pill {
    border: 0;
    border-radius: 999px;
    background: #eff4f1;
    color: #617068;
    font-family: var(--sans);
    font-weight: 650;
}

.field { gap: 7px; }
.field label {
    color: #68776f;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 720;
    letter-spacing: .07em;
}
.field input, .field select, .field textarea {
    border: 1px solid #dde6e1;
    border-radius: 13px;
    background: #fbfdfb;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input:hover, .field textarea:hover { border-color: #c9d7cf; background: white; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: #34c995;
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .11);
}
.modern-select-trigger {
    border-color: #dde6e1;
    border-radius: 13px;
    background: #fbfdfb;
}
.modern-select-trigger:hover { border-color: #bfcfc6; background: white; }
.modern-select.open .modern-select-trigger { border-color: #34c995; box-shadow: 0 0 0 4px rgba(16, 185, 129, .11); }
.modern-select-menu {
    margin-top: 8px;
    border-color: #e2e9e5;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 50px rgba(23, 37, 31, .14);
    backdrop-filter: blur(16px);
}
.modern-select-option:hover, .modern-select-option:focus-visible { background: #e9f9f1; color: #047857; font-weight: 700; }
.modern-select-option.selected { background: #dff8ed; color: #047857; }
.file-control { border-color: #dde6e1; border-radius: 13px; background: #fbfdfb; }
.file-button { border: 0; border-radius: 9px; background: #edf4f0; color: #526259; font-family: var(--sans); font-weight: 650; }
.file-button:hover { background: #dff8ed; color: #047857; }
.form-note { color: #7a8981; }
.card-billing-fields, .installment-field {
    border: 0;
    border-radius: 16px;
    background: #f1faf6;
}
.loan-repayment-fields {
    border: 0;
    border-radius: 16px;
    background: #e8f8f0;
}
.loan-total-preview { border-color: #c9e8d8; }

.primary-btn, .secondary-btn, .danger-btn, .icon-btn {
    border: 0;
    border-radius: 12px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 720;
    letter-spacing: .02em;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.primary-btn { background: #0b8f65; color: white; box-shadow: 0 8px 18px rgba(5, 150, 105, .15); }
.primary-btn:hover { transform: translateY(-2px); background: #047857; box-shadow: 0 12px 22px rgba(5, 150, 105, .2); }
.secondary-btn { background: #edf3ef; color: #46564d; }
.secondary-btn:hover { background: #dff8ed; color: #047857; }
.danger-btn { background: #fff0f0; color: #c9363c; }
.danger-btn:hover { background: #ffe4e5; transform: translateY(-1px); }
.icon-btn { background: #f0f4f2; color: #617068; }
.icon-btn:hover { background: #e2f5eb; color: #047857; }

.flow-summary {
    gap: 14px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
.flow-summary article {
    min-height: 145px;
    padding: 22px;
    border: 0;
    border-radius: 22px;
    background: white;
    box-shadow: var(--card-shadow);
}
.flow-summary article:last-child {
    border: 0;
    background: linear-gradient(145deg, #ddf8eb, #edfcf5);
}
.flow-summary span { color: #718078; font-size: 12px; font-weight: 620; }
.flow-summary strong { font-size: clamp(26px, 3vw, 38px); font-weight: 680; }
.period-picker .modern-select-trigger, .transaction-filter .modern-select-trigger { border: 0; background: white; box-shadow: 0 3px 15px rgba(23, 37, 31, .06); }

.cashflow-layout { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); }
.cashflow-layout > .panel { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.calendar-toolbar {
    min-width: 560px;
    padding: 18px 20px;
    border-color: #edf1ee;
    background: #fbfdfb;
}
.calendar-toolbar h3 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.calendar-grid { min-width: 560px; background: #edf1ee; gap: 1px; }
.weekday {
    padding: 11px;
    border: 0;
    background: #f8fbf9;
    color: #8a9790;
    font-family: var(--sans);
    font-weight: 680;
    text-align: center;
}
.calendar-day {
    min-height: 112px;
    border: 0;
    background: white;
    transition: background .16s ease, box-shadow .16s ease;
}
.calendar-day:hover, .calendar-day:focus-visible {
    background: #f0faf5;
    box-shadow: inset 0 0 0 2px rgba(16, 185, 129, .18);
}
.calendar-day.outside { opacity: .46; background: #f8faf9; }
.day-number { color: #526259; font-family: var(--sans); font-size: 11px; font-weight: 700; }
.day-event {
    border: 0;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 650;
}
.calendar-day .day-event.income { background: #e8f0ff; color: #245ec7; }
.calendar-day .day-event.expense { background: #fff0f0; color: #c53b41; }
.calendar-day .day-event.transfer { background: #edf2ef; color: #526259; }
.calendar-day .day-event.repayment,
.calendar-day .day-event.investment_funding,
.day-event.planned { background: #fff6df; color: #a56a00; }
.calendar-day .day-event.investment_withdrawal { background: #e9f7f0; color: #087c59; }
.day-more { color: #7d8b83; font-family: var(--sans); font-weight: 650; }
.transaction-row { box-shadow: none !important; }
.transaction-row.type-income { border-left: 4px solid #3b82f6; }
.transaction-row.type-expense { border-left: 4px solid #ef6b70; }
.transaction-row.type-transfer { border-left: 4px solid #94a39b; }
.transaction-row.type-investment_funding { border-left: 4px solid #f5ae42; }
.transaction-row.type-investment_withdrawal { border-left: 4px solid #10b981; }
.transaction-row.type-repayment { border-left: 4px solid #d59b37; }
.transaction-pill.income { background: #e8f0ff; color: #245ec7; }
.transaction-pill.expense { background: #fff0f0; color: #c53b41; }
.transaction-pill.transfer { background: #edf2ef; color: #526259; }
.transaction-pill.repayment,
.transaction-pill.investment_funding { background: #fff6df; color: #9a6505; }
.transaction-pill.investment_withdrawal { background: #e9f7f0; color: #087c59; }

.subscription-summary {
    gap: 14px;
    border: 0;
    border-radius: 0;
    overflow: visible;
}
.subscription-summary .subscription-total,
.subscription-transfer-total {
    min-height: 150px;
    padding: 22px;
    border: 0;
    border-radius: 22px;
    background: white;
    box-shadow: var(--card-shadow);
}
.subscription-summary .subscription-total { background: linear-gradient(145deg, #dff8ed, #f0fcf6); }
.subscription-total span, .subscription-transfer-total span { color: #63736a; font-family: var(--sans); font-weight: 680; }
.subscription-total strong { font-size: clamp(32px, 4vw, 50px); font-weight: 680; }
.subscription-transfer-total strong { font-size: 26px; font-weight: 680; }

.segmented-control {
    padding: 5px;
    border: 0;
    border-radius: 15px;
    background: #eaf0ec;
}
.segmented-control button { border-radius: 11px; font-weight: 650; color: #627168; }
.segmented-control button.active { background: white; color: var(--ink); box-shadow: 0 5px 15px rgba(23, 37, 31, .08); }
.sliding-tabs .segment-slider, .stock-tabs .segment-slider { border-radius: 11px; background: white; box-shadow: 0 5px 15px rgba(23, 37, 31, .08); }
.sliding-tabs button.active, .stock-tabs button.active { color: #047857; }
.stock-tabs button .stock-tab-count { background: #dff8ed; color: #047857; }
.exchange-rate { border: 0; background: white; box-shadow: var(--card-shadow); }
.stock-intro, .market-index-intro {
    border: 0;
    border-radius: 28px;
    background: linear-gradient(145deg, #dff8ed, #f1fcf7);
    box-shadow: var(--card-shadow);
}
.stock-intro h2, .market-index-intro h2 {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -.06em;
}
.portfolio-intro { background: linear-gradient(145deg, #dff8ed, #edf9f3); }
.portfolio-manage-tools {
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 14px 40px rgba(23, 37, 31, .08);
}
.portfolio-summary {
    gap: 12px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
.portfolio-summary > * {
    border: 0;
    border-radius: 20px;
    background: white;
    box-shadow: var(--card-shadow);
}
.portfolio-summary-main::before, .portfolio-summary article::before { border-radius: 20px 0 0 20px; }
.stock-grid { gap: 16px; }
.stock-card {
    border: 0;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.stock-card:hover { transform: translateY(-3px); box-shadow: var(--soft-shadow); }
.stock-card h3 { font-size: 23px; font-weight: 680; }
.stock-price strong { font-size: 32px; font-weight: 680; }
.holding-details { border-color: #e7ede9; }
.holding-details article { border-color: #e7ede9; }
.holding-badge { border: 0; background: #dff8ed; color: #047857; font-family: var(--sans); font-weight: 700; }
.holding-edit-form { background: #f7faf8; }
.ticker-result { border: 0; border-radius: 11px; box-shadow: inset 0 0 0 1px #dce5e0; }
.ticker-result:hover { background: #e9f9f1; }

.shopping-form-panel { box-shadow: var(--card-shadow); }
.wish-card {
    border: 0;
    border-radius: 24px;
    background: white;
    box-shadow: var(--card-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.wish-card:hover { transform: translateY(-3px); box-shadow: var(--soft-shadow); }
.wish-card.frequent .wish-top { background: #e7f8ef; }
.wish-card.wishlist .wish-top { background: #f0f2ff; }
.wish-image { border: 0; border-radius: 16px; }
.deal-link, .card-actions { border-color: #edf1ee; }
.benefit-card {
    border: 0;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}
.benefit-card-mark { background: #0b8f65; }

.profile-hero {
    border: 0;
    border-radius: 28px;
    background: linear-gradient(145deg, #dff8ed, #effbf5);
    box-shadow: var(--card-shadow);
}
.korea-clock { font-size: clamp(32px, 5vw, 56px); font-weight: 680; letter-spacing: -.055em; }
.profile-identity .profile-avatar {
    border: 0;
    border-radius: 18px;
    background: white;
    color: #059669;
    font-family: var(--sans);
    font-size: 23px;
    font-weight: 760;
    box-shadow: 0 8px 22px rgba(23, 37, 31, .08);
}
.backup-panel { background: linear-gradient(145deg, white, #f7fbf8); }
.danger-zone {
    border: 1px solid #ffd9da;
    border-radius: 24px;
    background: #fff8f8;
}
.admin-code {
    border-radius: 24px;
    background: linear-gradient(135deg, #102d23, #071812);
    color: #6ee7b7;
    box-shadow: 0 18px 45px rgba(7, 24, 18, .16);
}
.user-table th, .user-table td { border-color: #edf1ee; }

.modal-backdrop { background: rgba(10, 24, 18, .42); backdrop-filter: blur(10px); }
.modal-card {
    border: 0;
    border-radius: 26px;
    background: #f8faf8;
    box-shadow: 0 28px 90px rgba(7, 24, 18, .25);
}
.modal-head { border-color: #e5ebe7; }
.modal-head h2 { font-size: 22px; font-weight: 700; }
.toast {
    border: 0;
    border-radius: 14px;
    background: #102d23;
    box-shadow: 0 16px 40px rgba(7, 24, 18, .22);
}

@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: sticky;
        inset: 0;
        width: 100%;
        height: auto;
        padding: 10px 16px 8px;
        border: 0;
    }
    .sidebar-head { padding: 2px 4px 10px; }
    .sidebar-head .monee-lens { width: 34px; height: 34px; }
    .sidebar-head .monee-wordmark { font-size: 22px; }
    .nav-list { display: flex; padding: 0; overflow-x: auto; scrollbar-width: none; }
    .nav-list::-webkit-scrollbar { display: none; }
    .nav-link { min-height: 46px; flex: 0 0 auto; padding: 8px 13px; }
    .nav-index, .nav-copy small { display: none; }
    .nav-copy strong { white-space: nowrap; font-size: 13px; }
    .sidebar-foot { display: none; }
    .main-area { grid-column: 1; }
    .topbar { top: 101px; }
    .hero-dashboard, .split-layout, .cashflow-layout, .account-layout { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .hero-number { border: 0; }
    .metric-grid-four { grid-template-columns: repeat(2, 1fr); }
    .portfolio-summary { grid-template-columns: repeat(3, 1fr); }
    .portfolio-summary-main { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero { min-height: 38vh; padding: 24px; }
    .hero-copy h1 { font-size: 58px; }
    .auth-panel { padding: 30px 20px 50px; }
    .sidebar { padding-inline: 12px; }
    .topbar {
        top: 93px;
        min-height: 78px;
        padding: 13px 18px;
        align-items: center;
    }
    .page-kicker { display: none; }
    .page-title { font-size: 21px; }
    .topbar-actions { gap: 8px; }
    .date-block { display: none; }
    .quick-add-btn { min-height: 42px; padding-right: 13px; }
    .content { padding: 16px 16px 48px; }
    .hero-dashboard { min-height: 260px; border-radius: 26px; }
    .hero-number { padding: 28px 22px; }
    .hero-number strong { font-size: clamp(42px, 13vw, 64px); }
    .metric-grid-four { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric, .metric:first-child, .metric:last-child, .metric-grid-four .metric:nth-child(3) {
        min-height: 132px;
        padding: 17px;
        border-radius: 19px;
    }
    .metric strong { margin-top: 16px; font-size: 25px; }
    .metric-sync-btn { font-size: 10px; }
    .section-head { margin-top: 32px; }
    .section-head h2 { font-size: 25px; }
    .panel { border-radius: 20px; }
    .flow-summary { grid-template-columns: 1fr; gap: 10px; }
    .flow-summary article { min-height: 108px; border: 0; border-radius: 19px; }
    .period-picker { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }
    .period-picker .secondary-btn { grid-column: 1 / -1; }
    .calendar-day { min-height: 100px; }
    .day-event { width: auto; height: auto; padding: 4px 5px; border-radius: 6px; display: block; font-size: 8px; }
    .day-more { font-size: 8px; }
    .profile-hero { min-height: 210px; padding: 24px; }
    .profile-form, .benefit-grid, .shopping-form, .holding-add-form, .holding-edit-form { grid-template-columns: 1fr; }
    .stock-intro, .market-index-intro { padding: 24px; }
    .stock-intro h2, .market-index-intro h2 { font-size: 38px; }
    .stock-grid { grid-template-columns: 1fr; }
    .portfolio-summary { grid-template-columns: 1fr; gap: 10px; }
    .portfolio-summary-main { grid-column: auto; }
    .subscription-summary { grid-template-columns: 1fr; gap: 10px; }
    .subscription-transfer-total { border: 0; }
    .backup-actions { width: 100%; flex-direction: column; }
    .user-table { min-width: 620px; }
    .panel:has(.user-table) { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Unified workspace · preview-led information architecture */
:root {
    --workspace-bg: #f5f7fa;
    --workspace-card: #ffffff;
    --workspace-ink: #151820;
    --workspace-muted: #8b95a5;
    --workspace-line: #edf0f4;
    --workspace-blue: #526cff;
    --workspace-coral: #ff6f61;
    --workspace-purple: #8c63ff;
    --workspace-green: #16b982;
}

body {
    background:
        radial-gradient(circle at 74% -10%, rgba(82, 108, 255, .055), transparent 36rem),
        var(--workspace-bg);
    color: var(--workspace-ink);
}

.app-shell { grid-template-columns: 228px minmax(0, 1fr); }
.sidebar {
    width: 228px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 1px 0 0 var(--workspace-line);
}
.sidebar-head { padding: 2px 6px 26px; }
.sidebar-head .monee-lens { width: 34px; height: 34px; }
.sidebar-head .monee-wordmark { color: #059669; font-size: 21px; font-weight: 760; }
.nav-list { padding: 0; gap: 7px; }
.nav-link {
    min-height: 52px;
    padding: 8px 11px;
    border-radius: 15px;
    color: #717b89;
}
.nav-link:hover { background: #f2f4f7; color: #252a33; transform: none; }
.nav-link.active {
    background: #edf0f4;
    color: #171a20;
    box-shadow: none;
}
.nav-index {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #f3f5f7;
    color: #9aa2ae;
}
.nav-link.active .nav-index { background: #171a20; color: white; }
.nav-svg { width: 18px; height: 18px; }
.nav-copy strong { font-size: 13px; font-weight: 650; letter-spacing: -.018em; }
.sidebar-foot { padding: 12px 0 0; }
.sidebar-add-btn {
    width: 100%;
    min-height: 48px;
    margin-bottom: 12px;
    border: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #171a20;
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(21, 24, 32, .16);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.sidebar-add-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 28px rgba(21, 24, 32, .2); }
.sidebar-add-btn span { font-size: 17px; font-weight: 400; }
.user-chip {
    width: 100%;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    background: #f7f8fa;
    color: var(--workspace-ink);
    text-align: left;
    cursor: pointer;
}
.user-chip:hover { background: #f0f2f5; }
.user-chip.active { background: #edf0f4; box-shadow: inset 0 0 0 1px #e1e5eb; }
.user-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: white;
    color: #596273;
    font-size: 12px;
    font-weight: 800;
}
.user-chip-copy { min-width: 0; display: grid; }
.user-chip-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-copy small { overflow: hidden; color: #9aa2ae; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-chip > .nav-svg { width: 15px; height: 15px; color: #a5adb8; }

.main-area { grid-column: 2; }
.topbar {
    min-height: 86px;
    padding: 16px clamp(28px, 4vw, 58px);
    background: rgba(245, 247, 250, .84);
    border-bottom: 1px solid rgba(237, 240, 244, .72);
}
.page-kicker {
    display: block;
    margin-bottom: 4px;
    color: #9ca8bb;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .13em;
}
.page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 720;
    letter-spacing: -.04em;
}
.topbar-actions { gap: 9px; }
.top-market, .weather-chip, .header-settings {
    min-height: 38px;
    border: 1px solid var(--workspace-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 5px 18px rgba(27, 35, 53, .035);
}
.top-market {
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.top-market span { color: #a0a9b7; font-size: 8px; font-weight: 750; letter-spacing: .08em; }
.top-market strong { font-size: 12px; font-weight: 760; font-variant-numeric: tabular-nums; }
.top-market em { padding: 4px 6px; border-radius: 7px; font-size: 8px; font-style: normal; font-weight: 750; }
.top-market em.up { background: #fff0f2; color: #ff5770; }
.top-market em.down { background: #edf1ff; color: #526cff; }
.weather-chip {
    padding: 0 13px;
    display: flex;
    align-items: center;
    color: #8f99a8;
    font-size: 9px;
    font-weight: 650;
}
.header-settings {
    width: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #8d97a5;
    cursor: pointer;
}
.header-settings:hover { color: #171a20; }
.header-settings .nav-svg { width: 16px; height: 16px; }
.content {
    width: min(1180px, calc(100% - 44px));
    max-width: none;
    margin: 0 auto;
    padding: 24px 0 84px;
}

.workspace-tabs {
    width: fit-content;
    margin-bottom: 18px;
    padding: 4px;
    border-radius: 13px;
    display: flex;
    gap: 3px;
    background: #eaedf2;
}
.workspace-tabs button {
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #818b99;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.workspace-tabs button.active {
    background: white;
    color: #171a20;
    box-shadow: 0 4px 14px rgba(27, 35, 53, .07);
}
.floating-add-btn {
    position: fixed;
    z-index: 35;
    right: 30px;
    bottom: 28px;
    min-height: 48px;
    padding: 0 19px;
    border: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #171a20;
    color: white;
    box-shadow: 0 14px 30px rgba(21, 24, 32, .2);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.floating-add-btn span { font-size: 18px; font-weight: 400; }
.floating-add-btn:hover { transform: translateY(-2px); }

/* Dashboard bento */
.dashboard-toolbar {
    min-height: 44px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.dashboard-toolbar > span { color: #9aa3b1; font-size: 10px; }
.dashboard-period { order: 2; }
.dashboard-period .modern-select-trigger,
.dashboard-period .secondary-btn {
    min-height: 36px;
    border: 0;
    background: white;
    box-shadow: 0 4px 14px rgba(27, 35, 53, .045);
}
.dashboard-period .modern-select { min-width: 100px; }
.dashboard-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}
.dashboard-bento > article {
    min-width: 0;
    border-radius: 25px;
    background: var(--workspace-card);
    box-shadow: 0 14px 38px rgba(27, 35, 53, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}
.dashboard-bento > article:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(27, 35, 53, .075);
}
.networth-card {
    position: relative;
    grid-column: span 8;
    min-height: 266px;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 20%, rgba(123, 138, 91, .34), transparent 25rem),
        linear-gradient(135deg, #1e222b, #11151d) !important;
    color: white;
}
.networth-head, .bento-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.networth-head > div { display: grid; gap: 5px; }
.networth-head span { color: #bcc4d1; font-size: 11px; font-weight: 700; }
.networth-head small { color: #7f8a9d; font-size: 9px; }
.networth-head button {
    position: relative;
    z-index: 2;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .76);
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
}
.networth-card > strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 48px;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 720;
    line-height: .95;
    letter-spacing: -.07em;
    font-variant-numeric: tabular-nums;
}
.networth-foot {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.networth-foot > span {
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(190, 255, 91, .16);
    color: #d0ff75;
    font-size: 10px;
    font-weight: 750;
}
.networth-foot > span.down { background: rgba(255, 111, 97, .16); color: #ff9b92; }
.networth-foot small { color: #8993a3; font-size: 10px; }
.networth-orbit { position: absolute; inset: 0 0 0 62%; pointer-events: none; }
.networth-orbit i {
    position: absolute;
    right: -24%;
    top: 50%;
    width: 320px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    transform: translateY(-50%);
}
.networth-orbit i:nth-child(2) { right: -4%; width: 235px; }
.networth-orbit i:nth-child(3) { right: 13%; width: 150px; background: rgba(112, 132, 82, .08); }
.investment-card {
    position: relative;
    grid-column: span 4;
    min-height: 266px;
    padding: 25px;
    overflow: hidden;
}
.bento-card-head > div > span {
    display: block;
    color: #9aa5b5;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .08em;
}
.bento-card-head h2 { margin: 5px 0 0; font-size: 19px; font-weight: 720; letter-spacing: -.035em; }
.bento-card-head > div > small,
.bento-card-head > small { color: #a5aeba; font-size: 9px; }
.investment-card > strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 22px;
    font-size: 30px;
    font-weight: 720;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}
.sync-icon-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    background: #f0f2ff;
    color: var(--workspace-blue);
    font-size: 18px;
    cursor: pointer;
}
.text-link {
    position: relative;
    z-index: 2;
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--workspace-blue);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.investment-sparkline { position: absolute; inset: auto 18px 16px; width: calc(100% - 36px); height: 100px; }
.dashboard-metric {
    grid-column: span 3;
    min-height: 138px;
    padding: 20px;
}
.dashboard-metric > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-metric span { color: #7f8998; font-size: 11px; font-weight: 650; }
.dashboard-metric em {
    padding: 5px 7px;
    border-radius: 999px;
    background: #f0f2ff;
    color: var(--workspace-blue);
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
}
.dashboard-metric.expense em { background: #fff0f2; color: #ff5c70; }
.dashboard-metric.card em { background: #fff7e9; color: #d18a13; }
.dashboard-metric.plan em { background: #f3efff; color: var(--workspace-purple); }
.dashboard-metric > strong {
    display: block;
    margin-top: 27px;
    font-size: 28px;
    font-weight: 720;
    letter-spacing: -.055em;
    font-variant-numeric: tabular-nums;
}
.dashboard-metric > small { display: block; margin-top: 7px; color: #a2abb7; font-size: 9px; }
.recent-flow-card { grid-column: span 8; min-height: 278px; padding: 23px; }
.category-card { grid-column: span 4; min-height: 278px; padding: 23px; }
.bento-card-head button {
    min-height: 31px;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    background: #f3f5f8;
    color: #8c96a4;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}
.dashboard-transaction-list { margin-top: 14px; display: grid; }
.dashboard-transaction-row {
    min-height: 64px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--workspace-line);
}
.dashboard-transaction-row:last-child { border-bottom: 0; }
.dashboard-transaction-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #f0f2ff;
    color: var(--workspace-blue);
    font-size: 15px;
    font-weight: 700;
}
.dashboard-transaction-icon.expense { background: #fff0f2; color: #ff5c70; }
.dashboard-transaction-icon.income { background: #edf9f5; color: var(--workspace-green); }
.dashboard-transaction-icon.investment { background: #f3efff; color: var(--workspace-purple); }
.dashboard-transaction-row > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.dashboard-transaction-row > div:nth-child(2) strong { overflow: hidden; font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-transaction-row small { color: #a0a9b6; font-size: 9px; }
.dashboard-transaction-amount { display: grid; gap: 3px; text-align: right; }
.dashboard-transaction-amount strong { font-size: 11px; font-weight: 720; font-variant-numeric: tabular-nums; }
.dashboard-transaction-amount strong.income { color: var(--workspace-blue); }
.dashboard-transaction-amount strong.expense { color: #eb5365; }
.category-content {
    min-height: 205px;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}
.category-donut {
    width: 130px;
    aspect-ratio: 1;
    padding: 23px;
    border-radius: 50%;
}
.category-donut > div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background: white;
    text-align: center;
}
.category-donut strong { font-size: 15px; font-weight: 740; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.category-donut span { margin-top: 2px; color: #a5adba; font-size: 7px; font-weight: 750; }
.category-legend { display: grid; gap: 11px; }
.category-legend > div {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
}
.category-legend i { width: 7px; height: 7px; border-radius: 50%; }
.category-legend span { overflow: hidden; color: #717b8a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.category-legend strong { font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.category-legend p { color: #a0a9b6; font-size: 10px; }

/* Quick add drawer */
.quick-drawer-backdrop {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 20, 28, 0);
    pointer-events: none;
    transition: background .2s ease;
}
.quick-drawer-backdrop.open { background: rgba(15, 20, 28, .34); pointer-events: auto; backdrop-filter: blur(4px); }
.quick-drawer {
    width: min(470px, 100%);
    height: 100%;
    overflow-y: auto;
    background: #f7f8fa;
    box-shadow: -24px 0 70px rgba(15, 20, 28, .18);
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}
.quick-drawer-backdrop.open .quick-drawer { transform: translateX(0); }
.quick-drawer-backdrop.closing { background: rgba(15, 20, 28, 0); }
.quick-drawer-backdrop.closing .quick-drawer { transform: translateX(100%); }
.quick-drawer-head {
    position: sticky;
    z-index: 2;
    top: 0;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    background: rgba(247, 248, 250, .92);
    backdrop-filter: blur(18px);
}
.quick-drawer-head p { margin: 0; color: #9ba5b3; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.quick-drawer-head h2 { margin: 4px 0 5px; font-size: 27px; letter-spacing: -.05em; }
.quick-drawer-head span { color: #87919f; font-size: 11px; }
.drawer-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: white;
    color: #7b8592;
    font-size: 24px;
    font-weight: 350;
    cursor: pointer;
}
.quick-drawer-body { padding: 0 20px 32px; }
.quick-drawer .transaction-entry-form {
    padding: 22px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 35px rgba(27, 35, 53, .065);
}

/* Existing feature pages inside the unified workspace */
.account-layout, .cashflow-layout { margin-top: 2px; }
.account-layout { grid-template-columns: 330px minmax(0, 1fr); }
.cashflow-layout { grid-template-columns: 330px minmax(0, 1fr); }
.section-head.inline-head { margin-top: 0; }
.stock-viewbar { margin-top: 2px; }
.profile-identity { flex-wrap: wrap; }

@media (max-width: 1180px) {
    .dashboard-bento { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .networth-card { grid-column: span 5; }
    .investment-card { grid-column: span 3; }
    .dashboard-metric { grid-column: span 2; }
    .recent-flow-card { grid-column: span 5; }
    .category-card { grid-column: span 3; }
    .category-content { grid-template-columns: 105px minmax(0, 1fr); }
    .category-donut { width: 104px; padding: 18px; }
}

@media (max-width: 900px) {
    body { padding-bottom: 76px; }
    .app-shell { display: block; }
    .sidebar {
        position: fixed;
        z-index: 120;
        inset: auto 10px 10px;
        width: auto;
        height: 64px;
        padding: 6px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 15px 45px rgba(27, 35, 53, .16);
        backdrop-filter: blur(18px);
    }
    .sidebar-head, .sidebar-foot { display: none; }
    .nav-list { height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; overflow: visible; }
    .nav-link {
        min-width: 0;
        min-height: 52px;
        padding: 5px 7px;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        border-radius: 15px;
    }
    .nav-index {
        width: 24px;
        height: 24px;
        background: transparent;
    }
    .nav-link.active .nav-index { background: transparent; color: #171a20; }
    .nav-svg { width: 17px; height: 17px; }
    .nav-copy strong { font-size: 9px; white-space: nowrap; }
    .main-area { width: 100%; }
    .topbar { top: 0; min-height: 76px; padding: 13px 18px; }
    .top-market, .weather-chip { display: none; }
    .content { width: calc(100% - 28px); padding-top: 14px; }
    .floating-add-btn { right: 18px; bottom: 88px; min-height: 44px; padding: 0 15px; }
    .dashboard-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .networth-card, .investment-card, .recent-flow-card, .category-card { grid-column: 1 / -1; }
    .dashboard-metric { grid-column: span 1; }
    .networth-card { min-height: 250px; }
    .investment-card { min-height: 225px; }
    .recent-flow-card, .category-card { min-height: auto; }
    .category-content { grid-template-columns: 128px minmax(0, 1fr); }
    .category-donut { width: 126px; padding: 22px; }
    .account-layout, .cashflow-layout { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
    .page-kicker { font-size: 8px; }
    .page-title { font-size: 20px; }
    .header-settings { width: 36px; min-height: 36px; }
    .workspace-tabs { width: 100%; }
    .workspace-tabs button { flex: 1; padding: 0 8px; font-size: 10px; }
    .dashboard-toolbar { align-items: stretch; flex-direction: column; }
    .dashboard-toolbar > span { order: 2; }
    .dashboard-period { width: 100%; order: 1; display: grid; grid-template-columns: 1fr 1fr auto; }
    .dashboard-period .modern-select { min-width: 0; }
    .networth-card { padding: 23px; }
    .networth-card > strong { margin-top: 45px; font-size: clamp(42px, 13vw, 60px); }
    .networth-foot { align-items: flex-start; flex-direction: column; }
    .networth-orbit { opacity: .65; }
    .dashboard-metric { min-height: 126px; padding: 17px; }
    .dashboard-metric > strong { margin-top: 24px; font-size: clamp(21px, 6.6vw, 27px); }
    .dashboard-metric > small { display: none; }
    .dashboard-transaction-row { grid-template-columns: 34px minmax(0, 1fr); }
    .dashboard-transaction-amount { grid-column: 2; display: flex; justify-content: space-between; text-align: left; }
    .category-content { grid-template-columns: 1fr; justify-items: center; }
    .category-legend { width: 100%; }
    .quick-drawer { width: 100%; }
    .quick-drawer-head { padding: 20px; }
    .quick-drawer-body { padding: 0 14px 28px; }
    .floating-add-btn { border-radius: 14px; font-size: 11px; }
}

/* 2026 fintech workspace */
.journal-page,
.subscription-page,
.portfolio-page { display: grid; gap: 20px; }
.journal-page-head,
.subscription-page-head,
.portfolio-page-head {
    min-height: 64px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.journal-page-head p,
.subscription-page-head p,
.portfolio-page-head p {
    margin: 0 0 5px;
    color: #9aa6b7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}
.journal-page-head h2,
.subscription-page-head h2,
.portfolio-page-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 720;
    letter-spacing: -.055em;
}
.journal-head-actions { display: flex; align-items: center; gap: 10px; }
.journal-filters,
.journal-view-toggle {
    padding: 4px;
    display: flex;
    gap: 3px;
    border-radius: 14px;
    background: #e9edf3;
}
.journal-filters button,
.journal-view-toggle button {
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8893a2;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.journal-filters button.active,
.journal-view-toggle button.active {
    background: #171a20;
    color: white;
    box-shadow: 0 7px 16px rgba(23, 26, 32, .14);
}
.journal-grid {
    display: grid;
    grid-template-columns: minmax(265px, .75fr) minmax(0, 2fr);
    gap: 16px;
}
.journal-summary-card,
.journal-list-card,
.journal-calendar-card,
.subscription-card,
.portfolio-allocation,
.portfolio-holdings-card {
    border: 0;
    border-radius: 26px;
    background: white;
    box-shadow: 0 16px 44px rgba(31, 39, 55, .055);
}
.journal-summary-card { min-height: 270px; padding: 28px; }
.journal-summary-card > span { color: #95a0b0; font-size: 11px; font-weight: 680; }
.journal-summary-card > strong {
    display: block;
    margin-top: 18px;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 740;
    letter-spacing: -.065em;
    font-variant-numeric: tabular-nums;
}
.journal-summary-split {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.journal-summary-split > div {
    min-width: 0;
    padding: 16px;
    border-radius: 17px;
    background: #f4f6fa;
}
.journal-summary-split > div:last-child { background: #fff1f3; }
.journal-summary-split small { display: block; color: #8b96a6; font-size: 9px; }
.journal-summary-split b {
    display: block;
    margin-top: 8px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 720;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}
.journal-list-card { overflow: hidden; }
.journal-list-head {
    min-height: 68px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #edf0f4;
}
.journal-list-head h3 { margin: 0; font-size: 14px; font-weight: 720; }
.journal-list-head > div { flex: 1 1 auto; min-width: 110px; }
.journal-list-head > div > span { display: block; margin-top: 3px; color: #a1aab7; font-size: 9px; }
.journal-search {
    width: min(190px, 42%);
    min-height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 12px;
    background: #f3f6fa;
    color: #a1aab7;
}
.journal-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }
.journal-transactions { max-height: 510px; overflow-y: auto; }
.journal-transaction-row {
    min-height: 76px;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #edf0f4;
    transition: background .18s ease;
}
.journal-transaction-row:hover { background: #fafbfc; }
.journal-transaction-row:last-child { border-bottom: 0; }
.journal-transaction-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f2efff;
    color: #8d68ff;
    font-size: 17px;
}
.journal-transaction-row.type-income .journal-transaction-icon { background: #edf9f5; color: #10a879; }
.journal-transaction-row.type-expense .journal-transaction-icon { background: #fff0f2; color: #f35c70; }
.journal-transaction-copy { min-width: 0; }
.journal-transaction-copy > strong { display: block; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.journal-transaction-copy > div { margin-top: 4px; color: #9ba5b4; font-size: 9px; }
.journal-transaction-value { min-width: 115px; text-align: right; }
.journal-transaction-value strong { display: block; font-size: 12px; font-weight: 730; font-variant-numeric: tabular-nums; }
.journal-transaction-value time { display: block; margin-top: 4px; color: #a6afbc; font-size: 9px; white-space: nowrap; }
.journal-transaction-row .row-actions { display: flex; gap: 6px; opacity: 0; transition: opacity .18s ease; }
.journal-transaction-row:hover .row-actions { opacity: 1; }
.journal-transaction-row .row-actions .icon-btn {
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #eef2f6;
    color: #6b7686;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}
.journal-transaction-row .row-actions .icon-btn:hover { background: var(--monee-emerald-soft); color: var(--monee-emerald-dark); }
.journal-transaction-row .row-actions [data-delete-transaction]:hover { background: #ffe9ec; color: #d64055; }
.journal-calendar-card { padding: 22px; overflow: visible; }

/* Quick add, focused and mobile friendly */
.quick-drawer { background: white; }
.quick-drawer-head { padding: 22px 26px; border-bottom: 1px solid #edf0f4; background: rgba(255,255,255,.94); }
.quick-drawer-head > div > span { display: none; }
.quick-drawer-body { padding: 24px 26px 34px; }
.quick-entry-form { min-height: calc(100vh - 120px); display: flex; flex-direction: column; gap: 20px; }
.quick-type-tabs {
    padding: 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    border-radius: 16px;
    background: #f2f4f7;
}
.quick-type-tabs button {
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #87919f;
    font-size: 12px;
    font-weight: 680;
    cursor: pointer;
}
.quick-type-tabs button.active { background: #171a20; color: white; box-shadow: 0 10px 22px rgba(23,26,32,.14); }
.quick-entry-form .form-grid { grid-template-columns: 1fr 1fr; }
.quick-entry-form .field label { margin-bottom: 8px; color: #697588; font-size: 10px; font-weight: 700; }
.quick-entry-form input,
.quick-entry-form select,
.quick-entry-form textarea {
    min-height: 52px;
    border: 1px solid #dfe4eb;
    border-radius: 15px;
    background: #f8f9fb;
}
.quick-entry-form .amount-input-wrap {
    min-height: 80px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 3px solid #edf0ff;
    border-radius: 22px;
    background: white;
}
.quick-entry-form .amount-input-wrap > span { color: #cbd2dc; font-size: 25px; font-weight: 700; }
.quick-entry-form .amount-input-wrap input {
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    text-align: right;
    font-size: 34px;
    font-weight: 740;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}
.quick-save-btn { min-height: 54px; margin-top: auto; border-radius: 16px; font-size: 13px; }

/* Subscription cards */
.subscription-totals { display: flex; gap: 10px; }
.subscription-totals > span {
    min-width: 132px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 28px rgba(31,39,55,.05);
    white-space: nowrap;
}
.subscription-totals small {
    color: #8a96a0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
}
.subscription-totals strong {
    color: var(--monee-text);
    font-size: 20px;
    font-weight: 760;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}
.subscription-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.subscription-card {
    position: relative;
    min-height: 205px;
    padding: 20px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.subscription-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(31,39,55,.08); }
.subscription-card > header,
.subscription-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.subscription-card .item-icon { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #edf9f5; color: #0aa878; font-size: 13px; }
.subscription-card.tone-1 .item-icon { background: #fff0f2; color: #f34e64; }
.subscription-card.tone-2 .item-icon { background: #eef1ff; color: #4f6bff; }
.subscription-card.tone-3 .item-icon { background: #f2edff; color: #8a5cff; }
.subscription-kind { padding: 5px 8px; border-radius: 8px; background: #f3f5f8; color: #97a1af; font-size: 8px; font-weight: 720; }
.subscription-card-copy { margin-top: 28px; }
.subscription-card-copy h3 { margin: 0; font-size: 15px; font-weight: 720; letter-spacing: -.03em; }
.subscription-card-copy p { margin: 7px 0 0; overflow: hidden; color: #9ba5b4; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.subscription-card > footer { margin-top: 25px; }
.subscription-card > footer strong { font-size: 22px; font-weight: 730; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.subscription-card > footer span { padding: 5px 7px; border-radius: 7px; background: #f0f3f7; color: #8f99a7; font-size: 8px; font-weight: 750; }
.subscription-card > footer span.soon { background: #fff0f2; color: #f05267; }
.subscription-card-actions {
    position: absolute;
    inset: auto 12px 10px auto;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .18s ease;
}
.subscription-card:hover .subscription-card-actions { opacity: 1; }
.subscription-card-actions button {
    padding: 5px 7px;
    border: 0;
    border-radius: 7px;
    background: #f1f3f6;
    color: #7f8997;
    font-size: 8px;
    cursor: pointer;
}
.subscription-add-card {
    min-height: 205px;
    border: 1px dashed #d6dce6;
    border-radius: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-content: center;
    justify-items: center;
    gap: 8px;
    background: rgba(255,255,255,.32);
    color: #98a3b2;
    cursor: pointer;
}
.subscription-add-card > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: white; font-size: 20px; }
.subscription-add-card strong { color: #3a414c; font-size: 12px; }
.subscription-add-card strong,
.subscription-add-card small { width: 100%; text-align: center; white-space: nowrap; }
.subscription-add-card small { font-size: 9px; }

/* Portfolio */
.portfolio-add-btn {
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 13px;
    background: #171a20;
    color: white;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}
.portfolio-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.portfolio-hero {
    position: relative;
    min-height: 290px;
    padding: 30px;
    overflow: hidden;
    border-radius: 27px;
    background:
        radial-gradient(circle at 82% 20%, rgba(130, 154, 92, .4), transparent 50%),
        linear-gradient(135deg, #20242d, #10141c);
    color: white;
    box-shadow: 0 20px 48px rgba(20,25,35,.14);
}
.portfolio-hero > span { color: #aeb7c5; font-size: 10px; font-weight: 680; }
.portfolio-hero > strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 14px;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 730;
    letter-spacing: -.065em;
    font-variant-numeric: tabular-nums;
}
.portfolio-hero > div { position: relative; z-index: 2; margin-top: 15px; display: flex; align-items: center; gap: 12px; }
.portfolio-hero > div b { padding: 7px 10px; border-radius: 9px; background: rgba(205,255,89,.14); color: #d4ff71; font-size: 10px; }
.portfolio-hero > div small { color: #8f99aa; font-size: 10px; }
.portfolio-hero > svg { position: absolute; inset: auto 25px 18px; width: calc(100% - 50px); height: 100px; }
.portfolio-hero > svg path { fill: none; stroke: #d7ff68; stroke-width: 4; stroke-linecap: round; }
.portfolio-allocation { min-height: 290px; padding: 27px; }
.portfolio-allocation > p { margin: 0; color: #9ba6b6; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.portfolio-allocation h3 { margin: 6px 0 26px; font-size: 18px; }
.allocation-row { margin-top: 20px; }
.allocation-row > div { display: flex; justify-content: space-between; font-size: 10px; }
.allocation-row > div b { font-variant-numeric: tabular-nums; }
.allocation-row i { height: 7px; margin-top: 9px; display: block; overflow: hidden; border-radius: 999px; background: #eef1f5; }
.allocation-row i em { height: 100%; display: block; border-radius: inherit; background: #4f6bff; }
.allocation-row.foreign i em { background: #9b72ef; }
.portfolio-allocation footer { margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid #edf0f4; color: #8f99a8; font-size: 10px; }
.portfolio-allocation footer strong { color: #171a20; font-size: 13px; font-variant-numeric: tabular-nums; }
.portfolio-holdings-card { overflow: hidden; }
.portfolio-holdings-card > header { min-height: 64px; padding: 0 22px; display: flex; align-items: center; border-bottom: 1px solid #edf0f4; }
.portfolio-holdings-card > header > div { width: 160px; }
.portfolio-holdings-card > header h3 { margin: 0; font-size: 14px; }
.portfolio-holdings-card > header > div > span { display: block; margin-top: 3px; color: #9ca6b4; font-size: 9px; }
.portfolio-table-head,
.portfolio-table-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr .75fr 90px;
    gap: 14px;
    align-items: center;
}
.portfolio-table-head { min-height: 34px; padding: 0 22px; color: #a0a9b6; font-size: 8px; border-bottom: 1px solid #edf0f4; }
.portfolio-table-row { min-height: 78px; padding: 12px 22px; border-bottom: 1px solid #edf0f4; }
.portfolio-table-row:last-child { border-bottom: 0; }
.portfolio-table-row > div > small { display: none; }
.portfolio-table-row > div > strong { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.portfolio-stock-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.portfolio-stock-name > span { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #eef1ff; color: #526cff; font-size: 10px; font-weight: 800; }
.portfolio-stock-name > div { min-width: 0; }
.portfolio-stock-name strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-stock-name small { display: block; margin-top: 3px; color: #9ca6b5; font-size: 8px; }
.portfolio-row-actions { display: flex; justify-content: flex-end; gap: 4px; opacity: 0; transition: opacity .18s ease; }
.portfolio-table-row:hover .portfolio-row-actions { opacity: 1; }
.portfolio-row-actions button { padding: 6px 8px; border: 0; border-radius: 8px; background: #f2f4f7; color: #7e8896; font-size: 8px; cursor: pointer; }
.holding-editor-stock { padding: 16px; border-radius: 16px; display: flex; justify-content: space-between; background: #f4f6f9; }
.holding-editor-stock span { color: #929ca9; font-size: 11px; }
.modern-editor-modal { border-radius: 26px; }
.portfolio-holdings-card .portfolio-empty { display: block; min-height: 190px; }

@media (max-width: 980px) {
    .journal-page-head,
    .subscription-page-head,
    .portfolio-page-head { align-items: flex-start; flex-direction: column; }
    .journal-head-actions { width: 100%; align-items: stretch; flex-direction: column; }
    .journal-filters { overflow-x: auto; }
    .journal-filters button { flex: 1 0 auto; }
    .journal-grid,
    .portfolio-hero-grid { grid-template-columns: 1fr; }
    .subscription-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .journal-page-head h2,
    .subscription-page-head h2,
    .portfolio-page-head h2 { font-size: 23px; }
    .journal-view-toggle { width: 100%; }
    .journal-view-toggle button { flex: 1; }
    .journal-summary-card { min-height: auto; }
    .journal-list-head { align-items: stretch; flex-direction: column; }
    .journal-search { width: 100%; }
    .journal-transaction-row { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 12px; }
    .journal-transaction-value { min-width: 88px; }
    .journal-transaction-row .row-actions { grid-column: 2 / -1; opacity: 1; justify-content: flex-end; }
    .subscription-totals { width: 100%; flex-wrap: wrap; }
    .subscription-card-grid { grid-template-columns: 1fr; }
    .subscription-card-actions { opacity: 1; }
    .portfolio-table-head { display: none; }
    .portfolio-table-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .portfolio-stock-name { grid-column: 1 / -1; }
    .portfolio-table-row > div > small { display: block; margin-bottom: 3px; color: #a0a9b6; font-size: 8px; }
    .portfolio-row-actions { grid-column: 1 / -1; opacity: 1; justify-content: flex-start; }
    .quick-type-tabs { grid-template-columns: repeat(2, 1fr); }
    .quick-entry-form .form-grid { grid-template-columns: 1fr; }
}

/* Cohesive emerald fintech system */
:root {
    --workspace-bg: #f3f7f5;
    --workspace-card: #ffffff;
    --workspace-ink: #17211d;
    --workspace-muted: #7e8d86;
    --workspace-line: #e7efeb;
    --workspace-green: #0ca678;
    --workspace-green-dark: #08785a;
    --workspace-green-soft: #e9f8f2;
}
body {
    background:
        radial-gradient(circle at 72% -8%, rgba(16,185,129,.1), transparent 38rem),
        var(--workspace-bg);
}
.monee-logo { padding: 0; border: 0; background: transparent; cursor: pointer; }
.app-shell { grid-template-columns: 268px minmax(0, 1fr); }
.sidebar {
    width: 268px;
    padding: 24px 20px;
    border: 0;
    box-shadow: 1px 0 0 var(--workspace-line), 12px 0 40px rgba(28,62,48,.025);
}
.sidebar-head { padding: 0 8px 30px; }
.sidebar-head .monee-lens { width: 40px; height: 40px; }
.sidebar-head .monee-wordmark { font-size: 25px; }
.nav-list { gap: 9px; }
.nav-link { min-height: 58px; padding: 10px 13px; border-radius: 18px; }
.nav-index { width: 38px; height: 38px; border-radius: 13px; background: #f2f7f5; color: #82918a; }
.nav-copy strong { font-size: 14px; }
.nav-link:hover { background: #f0f8f5; color: var(--workspace-green-dark); }
.nav-link.active { background: var(--workspace-green-soft); color: var(--workspace-green-dark); }
.nav-link.active .nav-index { background: var(--workspace-green); color: white; }
.sidebar-foot { display: grid; gap: 8px; }
.user-chip { min-height: 58px; padding: 10px 11px; border-radius: 17px; background: #f5f8f7; }
.user-avatar { background: var(--workspace-green-soft); color: var(--workspace-green-dark); }
.sidebar-logout-btn {
    min-height: 42px;
    padding: 0 13px;
    border: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    color: #8b9992;
    font-size: 11px;
    font-weight: 680;
    cursor: pointer;
}
.sidebar-logout-btn:hover { background: #f3f6f5; color: #45524c; }
.logout-symbol { font-size: 15px; transform: rotate(90deg); }
.main-area { grid-column: 2; }
.topbar { min-height: 96px; padding: 18px clamp(34px, 4.5vw, 72px); background: rgba(243,247,245,.86); }
.page-title { font-size: 28px; }
.top-time, .weather-chip, .header-settings {
    min-height: 42px;
    border: 1px solid var(--workspace-line);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 7px 22px rgba(27,63,47,.045);
}
.top-time {
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.top-time span { color: #96a39d; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.top-time strong { color: var(--workspace-green-dark); font-size: 12px; font-variant-numeric: tabular-nums; }
.weather-chip { padding: 0 15px; font-size: 10px; }
.header-settings { width: 42px; }
.content { width: min(1380px, calc(100% - 64px)); padding: 32px 0 100px; }
.workspace-tabs { margin-bottom: 24px; padding: 5px; border-radius: 16px; background: #e7efeb; }
.workspace-tabs button { min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 12px; }
.workspace-tabs button.active { color: var(--workspace-green-dark); box-shadow: 0 6px 18px rgba(28,76,56,.08); }
.primary-btn,
.accent-action-btn,
.portfolio-add-btn {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--workspace-green);
    color: white;
    box-shadow: 0 10px 24px rgba(12,166,120,.17);
    font-weight: 720;
}
.primary-btn:hover,
.accent-action-btn:hover,
.portfolio-add-btn:hover { background: var(--workspace-green-dark); transform: translateY(-1px); }
.secondary-btn {
    min-height: 44px;
    border-color: var(--workspace-line);
    border-radius: 14px;
    background: white;
    color: #52615a;
}
.floating-add-btn {
    right: 34px;
    bottom: 30px;
    min-height: 54px;
    padding: 0 20px 0 12px;
    border-radius: 999px;
    gap: 10px;
    background: var(--workspace-green);
    box-shadow: 0 16px 35px rgba(12,166,120,.28);
}
.floating-add-btn span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); }
.floating-add-btn strong { font-size: 12px; }
.networth-card,
.portfolio-hero {
    background:
        radial-gradient(circle at 80% 18%, rgba(91,190,143,.38), transparent 28rem),
        linear-gradient(135deg, #153a2d, #0b241b) !important;
}
.networth-foot > span,
.portfolio-hero > div b { background: rgba(119,234,176,.16); color: #a9f2cf; }
.dashboard-bento > article,
.journal-summary-card,
.journal-list-card,
.journal-calendar-card,
.subscription-card,
.portfolio-allocation,
.portfolio-holdings-card { box-shadow: 0 16px 44px rgba(31,68,51,.06); }
.dashboard-metric > strong { font-size: 31px; }
.journal-page-head h2,
.subscription-page-head h2,
.portfolio-page-head h2,
.accounts-page-head h2 { font-size: 32px; }
.journal-filters,
.journal-view-toggle { background: #e6efeb; }
.journal-filters button.active,
.journal-view-toggle button.active { background: var(--workspace-green); box-shadow: 0 8px 20px rgba(12,166,120,.18); }

/* Accounts */
.accounts-page { display: grid; gap: 22px; }
.accounts-page-head { min-height: 66px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.accounts-page-head p { margin: 0 0 5px; color: #8e9e96; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.accounts-page-head h2 { margin: 0; letter-spacing: -.05em; }
.accent-action-btn { padding: 0 18px; cursor: pointer; }
.account-overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.account-overview-grid article {
    min-height: 150px;
    padding: 24px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 15px 40px rgba(31,68,51,.055);
}
.account-overview-grid article.net { background: var(--workspace-green-soft); }
.account-overview-grid span { color: #7f8f87; font-size: 11px; font-weight: 680; }
.account-overview-grid strong { display: block; margin-top: 20px; font-size: 30px; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.account-overview-grid small { display: block; margin-top: 8px; color: #9aa7a1; font-size: 9px; }
.account-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.account-fintech-card {
    min-height: 210px;
    padding: 22px;
    border-radius: 25px;
    background: white;
    box-shadow: 0 15px 40px rgba(31,68,51,.055);
    transition: transform .2s ease, box-shadow .2s ease;
}
.account-fintech-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(31,68,51,.085); }
.account-fintech-card > header,
.account-fintech-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-fintech-card > header > span:last-child { color: #899890; font-size: 9px; font-weight: 720; }
.account-fintech-card .asset-icon { width: 42px; height: 42px; border: 0; border-radius: 14px; background: var(--workspace-green-soft); }
.account-fintech-card.debt .asset-icon { background: #fff1f2; }
.account-fintech-card > div { margin-top: 27px; }
.account-fintech-card h3 { margin: 0; font-size: 16px; }
.account-fintech-card p { margin: 7px 0 0; color: #96a39d; font-size: 9px; }
.account-fintech-card > footer { margin-top: 25px; }
.account-fintech-card > footer > strong { font-size: 23px; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.account-card-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .18s ease; }
.account-fintech-card:hover .account-card-actions { opacity: 1; }
.account-card-actions button { padding: 6px 8px; border: 0; border-radius: 8px; background: #f1f5f3; color: #74837c; font-size: 8px; cursor: pointer; }
.account-empty-card { min-height: 210px; border: 1px dashed #cddbd4; border-radius: 25px; background: rgba(255,255,255,.35); color: var(--workspace-green-dark); cursor: pointer; }

/* Subscriptions */
.subscription-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.subscription-card { min-height: 225px; }
.subscription-card.paused { opacity: .58; }
.subscription-switch {
    width: 42px;
    height: 24px;
    padding: 3px;
    border: 0;
    border-radius: 999px;
    background: #dfe7e3;
    cursor: pointer;
    transition: background .2s ease;
}
.subscription-switch span { width: 18px; height: 18px; display: block; border-radius: 50%; background: white; box-shadow: 0 2px 7px rgba(0,0,0,.12); transition: transform .2s ease; }
.subscription-switch.active { background: var(--workspace-green); }
.subscription-switch.active span { transform: translateX(18px); }
.subscription-card > footer span.paused-label { background: #edf0ef; color: #79867f; }
.subscription-add-card { min-height: 225px; grid-template-columns: 1fr; border-color: #bdd8cb; color: var(--workspace-green-dark); }
.subscription-add-card > span { background: var(--workspace-green-soft); color: var(--workspace-green-dark); }

/* Stocks */
.stock-viewbar { align-items: center; }
.stock-tabs { padding: 5px; border-radius: 17px; background: #e6efeb; }
.stock-tabs button { min-height: 44px; border-radius: 13px; font-size: 12px; }
.stock-tabs button.active { color: var(--workspace-green-dark); }
.stock-tabs .segment-slider { background: white; box-shadow: 0 7px 20px rgba(31,68,51,.09); }
.stock-modern-page { display: grid; gap: 20px; }
.portfolio-page-head > div > span { display: block; margin-top: 7px; color: #85948d; font-size: 11px; }
.watchlist-tool-card { padding: 22px; border-radius: 24px; background: white; box-shadow: 0 15px 40px rgba(31,68,51,.055); }
.watchlist-tool-card .stock-tools {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.watchlist-tool-card #ticker-search-results { grid-column: 1 / -1; }
.modern-watch-grid .stock-card,
.modern-index-grid .stock-card { border: 0; border-radius: 24px; background: white; box-shadow: 0 15px 40px rgba(31,68,51,.055); }
.modern-watch-grid .stock-card:hover,
.modern-index-grid .stock-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(31,68,51,.085); }
.allocation-row i em { background: var(--workspace-green); }
.allocation-row.foreign i em { background: #57c99f; }

/* Quick add */
.quick-drawer { width: min(520px,100%); }
.quick-drawer-head h2 { font-size: 30px; }
.quick-type-tabs { background: #e9f1ed; }
.quick-type-tabs button { min-height: 50px; border-radius: 14px; }
.quick-type-tabs button.active { background: var(--workspace-green); box-shadow: 0 10px 24px rgba(12,166,120,.2); }
.quick-entry-form .amount-input-wrap { border-color: #dff2e9; }
.quick-entry-form .amount-input-wrap:focus-within { border-color: rgba(12,166,120,.45); box-shadow: 0 0 0 5px rgba(12,166,120,.08); }
.quick-entry-form .amount-input-wrap input { color: #173c2f; }

@media (max-width: 1100px) {
    .account-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .app-shell { display: block; }
    .sidebar {
        inset: auto 14px 12px;
        width: auto;
        height: 70px;
        padding: 7px;
        border-radius: 23px;
    }
    .nav-link { min-height: 56px; padding: 5px; }
    .nav-index { width: 36px; height: 36px; background: transparent; }
    .nav-link.active .nav-index { background: var(--workspace-green-soft); color: var(--workspace-green-dark); }
    .nav-copy { display: none; }
    .nav-svg { width: 21px; height: 21px; }
    .topbar { min-height: 82px; padding: 14px 20px; }
    .top-time { display: flex; }
    .weather-chip { display: none; }
    .content { width: calc(100% - 32px); padding-top: 20px; }
    .floating-add-btn { bottom: 96px; }
}
@media (max-width: 680px) {
    .page-title { font-size: 22px; }
    .top-time { min-height: 36px; padding: 0 10px; }
    .top-time span { display: none; }
    .header-settings { width: 36px; min-height: 36px; }
    .account-overview-grid,
    .account-card-grid { grid-template-columns: 1fr; }
    .accounts-page-head { align-items: stretch; flex-direction: column; }
    .accent-action-btn { width: 100%; }
    .account-card-actions { opacity: 1; }
    .subscription-card-grid { grid-template-columns: 1fr; }
    .subscription-add-card strong,
    .subscription-add-card small { white-space: normal; }
    .watchlist-tool-card .stock-tools { grid-template-columns: 1fr; }
    .watchlist-tool-card #ticker-search-results { grid-column: auto; }
    .floating-add-btn {
        right: 20px;
        width: 54px;
        min-height: 54px;
        padding: 0;
        justify-content: center;
    }
    .floating-add-btn span { width: 38px; height: 38px; }
    .floating-add-btn strong { display: none; }
}

/* 2026-06 fintech readability pass */
:root {
    --monee-surface: #f4f8f6;
    --monee-card: rgba(255,255,255,.94);
    --monee-emerald: #10b981;
    --monee-emerald-dark: #047857;
    --monee-emerald-soft: #e4f8ef;
    --monee-text: #16221d;
}

body {
    font-size: 16px;
    color: var(--monee-text);
    background: var(--monee-surface);
}

.app-shell { grid-template-columns: 292px minmax(0, 1fr); }
.sidebar {
    width: 292px;
    padding: 26px 22px;
}
.content {
    width: min(1540px, calc(100% - 56px));
    padding-top: 38px;
}
.topbar {
    min-height: 108px;
    padding-inline: clamp(36px, 4vw, 78px);
}
.page-kicker { font-size: 12px; letter-spacing: .16em; }
.page-title {
    font-size: clamp(31px, 2.2vw, 40px);
    letter-spacing: -.055em;
}

.nav-list {
    position: relative;
    isolation: isolate;
    gap: 10px;
}
.nav-slider {
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    top: 0;
    height: 62px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 14px 34px rgba(28, 76, 56, .09);
    transition: transform .26s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}
.nav-list[data-active-index="0"] .nav-slider { transform: translateY(0); }
.nav-list[data-active-index="1"] .nav-slider { transform: translateY(72px); }
.nav-list[data-active-index="2"] .nav-slider { transform: translateY(144px); }
.nav-list[data-active-index="3"] .nav-slider { transform: translateY(216px); }
.nav-list[data-active-index="4"] .nav-slider { transform: translateY(288px); }
.nav-link {
    position: relative;
    z-index: 1;
    min-height: 62px;
    background: transparent !important;
}
.nav-link.active { color: var(--monee-emerald-dark); }
.nav-link.active .nav-index {
    background: var(--monee-emerald);
    color: white;
}
.nav-copy strong { font-size: 15px; }
.nav-svg { width: 23px; height: 23px; }

.workspace-tabs {
    position: relative;
    isolation: isolate;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 6px;
    border-radius: 18px;
    background: #e6efeb;
}
.workspace-tabs .workspace-slider {
    position: absolute;
    z-index: 0;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc((100% - 12px) / 2);
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 24px rgba(31,68,51,.08);
    transition: transform .24s cubic-bezier(.2,.8,.2,1), width .2s ease;
}
.workspace-tabs[data-active-index="1"] .workspace-slider { transform: translateX(100%); }
.workspace-tabs button {
    position: relative;
    z-index: 1;
    min-width: 154px;
    min-height: 40px;
    box-shadow: none !important;
    background: transparent !important;
    color: #6b7d73;
    font-size: 14px;
}
.workspace-tabs button.active {
    color: var(--monee-emerald-dark);
    font-weight: 780;
}

.topbar-actions { gap: 12px; }
.top-time,
.weather-chip {
    min-height: 48px;
    padding-inline: 18px;
    border: 0;
    background: white;
    box-shadow: 0 12px 28px rgba(28, 76, 56, .06);
}
.top-time span {
    color: #7f948a;
    font-size: 10px;
    text-transform: none;
    letter-spacing: .02em;
}
.top-time strong {
    color: var(--monee-emerald-dark);
    font-size: 15px;
}
.weather-chip {
    color: #33443c;
    font-size: 13px;
    font-weight: 760;
}
.header-settings {
    width: 48px;
    min-height: 48px;
    border: 0;
}

/* 날씨 + 시계 통합 글래스모피즘 위젯 */
.widget-glass-unified {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.widget-glass-unified .weather-section { display: flex; align-items: center; gap: 8px; }
.widget-glass-unified .icon { font-size: 22px; line-height: 1; }
.widget-glass-unified .info { display: flex; flex-direction: column; justify-content: center; }
.widget-glass-unified .city {
    margin-bottom: 3px;
    color: #8a948d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .5px;
}
.widget-glass-unified .temp { color: var(--monee-text); font-size: 14px; font-weight: 700; line-height: 1; }
.widget-glass-unified .divider { width: 1px; height: 24px; background: rgba(16, 185, 129, .16); }
.widget-glass-unified .time-section { display: flex; align-items: baseline; gap: 8px; }
.widget-glass-unified .date { color: #66756d; font-size: 13px; font-weight: 600; }
.widget-glass-unified .time {
    color: var(--monee-text);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
}

.dashboard-bento {
    gap: 18px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}
.dashboard-bento > article {
    border-radius: 30px;
    box-shadow: 0 22px 54px rgba(31,68,51,.07);
}
.networth-card {
    min-height: 280px;
    padding: 34px;
}
.networth-card > strong {
    font-size: clamp(46px, 3.8vw, 70px);
    letter-spacing: -.07em;
}
.investment-card { min-height: 280px; padding: 28px; }
.investment-card > strong,
.dashboard-metric > strong {
    font-size: clamp(26px, 1.7vw, 32px);
}
.investment-return-chip {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--monee-emerald-soft);
    color: var(--monee-emerald-dark);
    font-size: 13px;
    font-weight: 820;
    font-variant-numeric: tabular-nums;
}
.investment-return-chip.negative {
    background: #eef3ff;
    color: #315cff;
}
.sync-icon-btn {
    width: 40px;
    min-width: 0;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--monee-emerald-soft);
    color: var(--monee-emerald-dark);
    cursor: pointer;
    transition: background .18s ease;
}
.sync-icon-btn:hover { background: #d2f1e3; }
.sync-icon-btn.loading { opacity: .65; cursor: wait; }
.sync-icon-btn.loading svg { animation: monee-spin .9s linear infinite; }
@keyframes monee-spin { to { transform: rotate(360deg); } }
.dashboard-metric {
    min-height: 150px;
    padding: 22px;
}
.dashboard-metric span { font-size: 12px; }
.dashboard-metric small {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
}
.card-usage-card {
    grid-column: 1 / -1;
    padding: 26px 30px;
}
.card-usage-card .card-usage-total {
    align-self: center;
    color: var(--monee-emerald-dark);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.card-usage-bars {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px 28px;
}
.card-usage-bar { display: grid; gap: 9px; }
.card-usage-bar-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}
.card-usage-bar-top em {
    overflow: hidden;
    color: #4a5a52;
    font-style: normal;
    font-size: 13px;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-usage-bar-top strong {
    color: var(--monee-text);
    font-size: 15px;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
}
.card-usage-bar i {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #e8f1ec;
    overflow: hidden;
}
.card-usage-bar i span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--monee-emerald), var(--monee-emerald-dark));
    transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.card-usage-empty {
    margin: 0;
    color: #8a978f;
    font-size: 13px;
}

.journal-grid {
    align-items: start;
    grid-template-columns: minmax(360px, .78fr) minmax(0, 1.35fr);
}
.journal-summary-card {
    height: 270px;
    min-height: 270px;
}
.journal-summary-card > strong { font-size: clamp(36px, 3vw, 50px); }
.journal-summary-split > div:first-child {
    background: #eaf8f1;
}
.journal-summary-split > div:first-child small,
.journal-summary-split > div:first-child b { color: var(--monee-emerald-dark); }
.journal-summary-split > div:last-child small,
.journal-summary-split > div:last-child b { color: #d64055; }
.journal-filters {
    position: relative;
    padding: 6px;
    border-radius: 18px;
}
.journal-filters button {
    min-height: 40px;
    border-radius: 13px;
    font-size: 13px;
}
.journal-transaction-value strong.positive,
.dashboard-transaction-amount strong.income { color: var(--monee-emerald-dark); }
.journal-transaction-value strong.negative,
.dashboard-transaction-amount strong.expense { color: #d64055; }

.calendar-page {
    display: grid;
    gap: 22px;
}
.calendar-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}
.calendar-page-head p,
.calendar-page-head span {
    margin: 0;
    color: #819188;
    font-size: 13px;
    font-weight: 700;
}
.calendar-page-head h2 {
    margin: 5px 0 8px;
    font-size: clamp(32px, 2.4vw, 44px);
    letter-spacing: -.055em;
}
.calendar-month-summary {
    min-width: 250px;
    padding: 22px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 16px 38px rgba(31,68,51,.06);
}
.calendar-month-summary span,
.calendar-month-summary small {
    display: block;
    color: #84928b;
    font-size: 12px;
}
.calendar-month-summary strong {
    display: block;
    margin: 8px 0;
    font-size: 30px;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}
.calendar-main-card { padding: 24px; }
.calendar-toolbar {
    border: 0;
    padding: 0 0 18px;
}
.calendar-nav .icon-btn,
.modal-head .icon-btn {
    min-height: 38px;
    border: 0;
    border-radius: 14px;
    background: #eef5f1;
    color: var(--monee-emerald-dark);
}
.calendar-grid {
    border-radius: 24px;
    overflow: hidden;
}
.calendar-day {
    min-height: 132px;
    padding: 12px;
}
.calendar-detail-modal {
    border-radius: 30px;
    font-family: inherit;
}
.calendar-detail-item {
    min-height: 70px;
    padding: 16px 0;
}
.calendar-detail-item strong { font-size: 15px; }
.calendar-detail-item .amount { font-size: 17px; font-variant-numeric: tabular-nums; }

.account-section-label {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 2px;
    color: #87968e;
}
.account-section-label span {
    font-size: 12px;
    font-weight: 820;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.account-section-label strong {
    color: #607268;
    font-size: 14px;
}
.account-section-label-spaced {
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(130,151,141,.18);
}
.account-overview-grid article {
    min-height: 172px;
    border: 1px solid rgba(16,185,129,.10);
    background: linear-gradient(180deg, #fff, #f8fbfa);
}
.account-overview-grid article.net {
    background: linear-gradient(145deg, #e4f8ef, #f8fffb);
}
.account-card-grid {
    padding-top: 4px;
}

.stock-viewbar {
    gap: 14px;
}
.stock-tabs {
    min-height: 56px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stock-tabs[data-active="PORTFOLIO"] .segment-slider { transform: translateX(0); }
.stock-tabs[data-active="WATCHLIST"] .segment-slider { transform: translateX(100%); }
.stock-tabs[data-active="INDICES"] .segment-slider { transform: translateX(200%); }
.stock-tabs button {
    min-height: 46px;
    font-size: 14px;
}
.portfolio-page-head {
    gap: 14px;
}
.portfolio-sync-icon {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 4;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    backdrop-filter: blur(6px);
    transition: background .18s ease, transform .18s ease;
}
.portfolio-sync-icon:hover { background: rgba(255, 255, 255, .34); transform: translateY(-1px); }
.portfolio-sync-icon.loading { opacity: .65; cursor: wait; }
.portfolio-sync-icon.loading svg { animation: monee-spin .9s linear infinite; }
.portfolio-hero-grid {
    grid-template-columns: 1.45fr 1fr;
    gap: 20px;
}
.portfolio-hero {
    position: relative;
    min-height: 330px;
    padding: 38px;
}
.portfolio-hero > strong {
    font-size: clamp(44px, 4vw, 66px);
}
.portfolio-table-head,
.portfolio-table-row {
    grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(120px, .8fr)) 96px;
}
.portfolio-table-head {
    font-size: 11px;
}
.portfolio-table-row {
    min-height: 88px;
}
.portfolio-table-row > div > strong,
.portfolio-stock-name strong {
    font-size: 14px;
}
.portfolio-stock-name small {
    font-size: 11px;
}
.watchlist-tool-card {
    padding: 28px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 0%, rgba(16,185,129,.13), transparent 18rem),
        white;
}
.watchlist-tool-card .stock-tools {
    gap: 20px;
}
.watchlist-tool-card .field input {
    min-height: 50px;
    border: 1px solid rgba(16,185,129,.16);
    border-radius: 16px;
    background: #f7faf9;
}
.watchlist-tool-card .field label {
    color: #7d8d85;
    letter-spacing: .1em;
}
.watchlist-tool-card .field input:focus {
    border-color: var(--monee-emerald);
    box-shadow: 0 0 0 3px rgba(16,185,129,.16);
}
.watchlist-tool-card .primary-btn {
    border: 0;
    background: var(--monee-emerald);
    color: #fff;
}
.watchlist-tool-card .primary-btn:hover {
    background: var(--monee-emerald-dark);
    box-shadow: 0 10px 24px rgba(12,166,120,.22);
    transform: translateY(-1px);
}
.watchlist-tool-card .secondary-btn {
    border: 0;
    background: var(--monee-emerald-soft);
    color: var(--monee-emerald-dark);
}
.watchlist-tool-card .secondary-btn:hover { background: #d2f1e3; }
.btn-search-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 16px;
    background: var(--monee-emerald-soft);
    color: var(--monee-emerald-dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.btn-search-soft svg { flex: 0 0 auto; }
.btn-search-soft:hover { background: #d2f1e3; transform: translateY(-1px); }
.btn-search-soft:active { transform: translateY(0); }
.ticker-search-results { gap: 10px; margin-top: 2px; }
.ticker-result {
    padding: 12px 14px;
    border: 1px solid rgba(16,185,129,.18);
    border-radius: 14px;
    background: #fbfdfc;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.ticker-result:hover {
    border-color: var(--monee-emerald);
    background: var(--monee-emerald-soft);
    transform: translateY(-1px);
}
.ticker-result strong { color: var(--monee-emerald-dark); font-size: 12px; }
.ticker-result span { font-size: 13px; font-weight: 650; }
.ticker-result small { color: #93a39b; }
.ticker-search-status { color: #7d8d85; font-size: 13px; }
.ticker-search-status.error { color: #d64055; }
.ticker-search-link {
    padding: 11px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--monee-emerald-soft);
    color: var(--monee-emerald-dark);
    font-weight: 750;
}
.ticker-search-link:hover { background: #d2f1e3; }

.primary-btn,
.secondary-btn,
.danger-btn,
.accent-action-btn,
.portfolio-add-btn,
.text-link,
.icon-btn {
    min-height: 46px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 780;
}
.floating-add-btn {
    min-height: 60px;
    padding: 0 24px 0 13px;
    font-size: 14px;
}
.floating-add-btn > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.20);
}
.floating-add-btn strong,
.floating-add-btn strong span {
    width: auto;
    height: auto;
    display: inline;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
}
.quick-drawer {
    width: min(560px, 100%);
}
.quick-drawer-head {
    padding: 32px 32px 24px;
}
.quick-entry-form .amount-input-wrap input {
    font-size: clamp(34px, 7vw, 48px);
    letter-spacing: -.045em;
}

/* 가독성 보강 — 보조 텍스트 상향 + 대비 개선 (카드 크기는 유지) */
.bento-card-head > div > span { font-size: 10.5px; letter-spacing: .07em; color: #8a96a0; }
.bento-card-head h2 { font-size: 20px; }
.bento-card-head > div > small,
.bento-card-head > small { font-size: 11px; color: #8a96a0; }
.networth-head span { font-size: 12px; }
.networth-head small { font-size: 10.5px; color: #95a2b2; }
.networth-foot > span { font-size: 11px; }
.networth-foot small { font-size: 11px; color: #aab4c2; }
.dashboard-metric span { font-size: 12.5px; color: #6f7a86; }
.dashboard-metric em { font-size: 9px; }
.dashboard-metric > small { font-size: 11.5px; color: #8b95a1; }
.dashboard-transaction-row > div:nth-child(2) strong { font-size: 12.5px; }
.dashboard-transaction-row small { font-size: 10.5px; color: #8a939f; }
.dashboard-transaction-amount strong { font-size: 12.5px; }
.dashboard-transaction-amount small { font-size: 10px; color: #97a0ac; }
.category-donut strong { font-size: 16px; }
.category-donut span { font-size: 8px; }
.category-legend span { font-size: 11.5px; color: #5f6a64; }
.category-legend strong { font-size: 11.5px; }
.account-overview-grid span { font-size: 12px; }
.account-overview-grid small { font-size: 10.5px; color: #8ea49a; }
.account-fintech-card p { font-size: 10.5px; }

/* 토글 슬라이드 모션 통일 (가계부 필터 · 빠른입력 유형) */
.journal-filters,
.quick-type-tabs {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 0;
    padding: 5px;
}
.journal-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.quick-type-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journal-filters .toggle-slider,
.quick-type-tabs .toggle-slider {
    position: absolute;
    z-index: 0;
    top: 5px;
    bottom: 5px;
    left: 5px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(31, 68, 51, .1);
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}
.journal-filters .toggle-slider { width: calc((100% - 10px) / 5); }
.quick-type-tabs .toggle-slider { width: calc((100% - 10px) / 4); }
.journal-filters[data-active-index="1"] .toggle-slider { transform: translateX(100%); }
.journal-filters[data-active-index="2"] .toggle-slider { transform: translateX(200%); }
.journal-filters[data-active-index="3"] .toggle-slider { transform: translateX(300%); }
.journal-filters[data-active-index="4"] .toggle-slider { transform: translateX(400%); }
.quick-type-tabs[data-active-index="1"] .toggle-slider { transform: translateX(100%); }
.quick-type-tabs[data-active-index="2"] .toggle-slider { transform: translateX(200%); }
.quick-type-tabs[data-active-index="3"] .toggle-slider { transform: translateX(300%); }
.journal-filters button,
.quick-type-tabs button {
    position: relative;
    z-index: 1;
    background: transparent !important;
    box-shadow: none !important;
    transition: color .16s ease;
}
.journal-filters button.active,
.quick-type-tabs button.active {
    background: transparent !important;
    color: var(--monee-emerald-dark) !important;
    box-shadow: none !important;
}

/* 캘린더 날짜 상세 모달 — 프리미엄 카드 스택 */
.calendar-detail-modal { border-radius: 28px; }
.calendar-detail-body { padding: 18px 20px 22px; }
.calendar-detail-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.calendar-detail-summary > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 16px;
    border-radius: 16px;
    background: #f4f7f6;
}
.calendar-detail-summary span { color: #8a96a0; font-size: 11px; font-weight: 700; }
.calendar-detail-summary strong { font-size: 18px; font-weight: 760; font-variant-numeric: tabular-nums; }
.calendar-detail-summary strong.income { color: var(--monee-emerald-dark); }
.calendar-detail-summary strong.expense { color: #d64055; }
.calendar-detail-stack { display: grid; gap: 10px; }
.calendar-detail-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid rgba(16, 185, 129, .08);
    border-radius: 18px;
    background: #fbfdfc;
    box-shadow: 0 6px 18px rgba(31, 68, 51, .04);
}
.calendar-detail-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eef2f6;
    color: #6b7686;
    font-size: 18px;
    font-weight: 700;
}
.calendar-detail-card.tone-income .calendar-detail-icon { background: var(--monee-emerald-soft); color: var(--monee-emerald-dark); }
.calendar-detail-card.tone-expense .calendar-detail-icon { background: #ffe9ec; color: #d64055; }
.calendar-detail-card.tone-investment .calendar-detail-icon { background: #eef3ff; color: #4f6bff; }
.calendar-detail-card.tone-planned .calendar-detail-icon { background: #fff4e6; color: #c9760a; }
.calendar-detail-main { min-width: 0; }
.calendar-detail-main strong { display: block; overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.calendar-detail-main span { display: block; margin-top: 3px; overflow: hidden; color: #8a96a0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-detail-amount { font-size: 15px; font-weight: 760; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calendar-detail-card.tone-income .calendar-detail-amount { color: var(--monee-emerald-dark); }
.calendar-detail-card.tone-expense .calendar-detail-amount { color: #d64055; }
.calendar-detail-card.tone-planned .calendar-detail-amount { color: #c9760a; }

@media (max-width: 1200px) {
    .dashboard-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .networth-card,
    .investment-card,
    .recent-flow-card,
    .category-card { grid-column: 1 / -1; }
    .dashboard-metric { grid-column: span 1; }
    .portfolio-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .app-shell { display: block; }
    .content { width: calc(100% - 28px); padding-bottom: 112px; }
    .sidebar {
        height: 78px;
        padding: 8px;
        border-radius: 26px;
    }
    .nav-list {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
    }
    .nav-slider {
        left: 0;
        right: auto;
        top: 0;
        width: calc((100% - 16px) / 5);
        height: 62px;
    }
    .nav-list[data-active-index="0"] .nav-slider { transform: translateX(0); }
    .nav-list[data-active-index="1"] .nav-slider { transform: translateX(calc(100% + 4px)); }
    .nav-list[data-active-index="2"] .nav-slider { transform: translateX(calc(200% + 8px)); }
    .nav-list[data-active-index="3"] .nav-slider { transform: translateX(calc(300% + 12px)); }
    .nav-list[data-active-index="4"] .nav-slider { transform: translateX(calc(400% + 16px)); }
    .nav-link {
        min-height: 62px;
        padding: 0;
    }
    .nav-index {
        width: 42px;
        height: 42px;
        background: transparent;
    }
    .nav-link.active .nav-index {
        background: transparent;
        color: var(--monee-emerald-dark);
    }
    .nav-copy { display: none; }
    .topbar {
        padding: 18px 18px 12px;
    }
    .weather-chip { display: flex; }
    .journal-grid { grid-template-columns: 1fr; }
    .calendar-page-head {
        align-items: stretch;
        flex-direction: column;
    }
    .portfolio-table-head { display: none; }
    .portfolio-table-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .portfolio-stock-name,
    .portfolio-row-actions { grid-column: 1 / -1; }
    .portfolio-row-actions {
        opacity: 1;
        justify-content: flex-start;
    }
}

/* Premium net-worth tiers */
.card-perspective-wrapper {
    position: relative;
    grid-column: span 8;
    width: 100%;
    perspective: 1500px;
    transform-style: preserve-3d;
}
.networth-details-button {
    position: absolute;
    z-index: 60;
    top: 34px;
    right: 34px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.8);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.networth-details-button:hover {
    background: rgba(255,255,255,.18);
}
.card-perspective-wrapper.t-pro .networth-details-button,
.card-perspective-wrapper.t-elite .networth-details-button,
.card-perspective-wrapper.t-grand .networth-details-button {
    border-color: rgba(15,34,42,.12);
    background: rgba(255,255,255,.3);
    color: #17372a;
}
.card-perspective-wrapper .networth-card {
    width: 100%;
    height: 100%;
    min-height: 280px;
    padding: 34px;
    border-radius: 30px;
    transform-style: preserve-3d;
    transform: rotateX(0) rotateY(0);
    transition:
        transform .18s ease-out,
        background .8s cubic-bezier(.25,1,.5,1),
        color .8s cubic-bezier(.25,1,.5,1),
        box-shadow .8s cubic-bezier(.25,1,.5,1);
    will-change: transform;
}
.card-perspective-wrapper:hover .networth-card {
    box-shadow: 0 30px 65px rgba(15, 34, 26, .22);
}
.card-inner-content {
    position: relative;
    z-index: 10;
    transform: translateZ(28px);
    pointer-events: none;
}
.card-inner-content button { pointer-events: auto; }
.networth-tier-badge {
    position: absolute;
    top: 0;
    right: 116px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: inherit;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .09em;
    opacity: .82;
    backdrop-filter: blur(10px);
}
.networth-card .amount-text {
    display: block;
    margin-top: 48px;
    font-size: clamp(46px, 3.8vw, 70px);
    font-weight: 720;
    line-height: .95;
    letter-spacing: -.07em;
    font-variant-numeric: tabular-nums;
}
.networth-card .card-footer-layout {
    transform: translateZ(18px);
}
.networth-card::before,
.networth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.networth-card.t-starter {
    border: 1px solid rgba(235, 196, 154, .18);
    background:
        radial-gradient(circle at 82% 18%, rgba(217, 157, 101, .28), transparent 27rem),
        linear-gradient(135deg, #17654a 0%, #073b2a 58%, #032a1d 100%) !important;
    box-shadow: 0 25px 55px rgba(3, 68, 44, .22);
}
.networth-card.t-starter::before {
    width: 48%;
    left: -65%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
    transform: skewX(-25deg);
    animation: premiumLightSweep 4.8s infinite ease-in-out;
}
.networth-card.t-pro {
    border: 1px solid rgba(255,255,255,.66);
    background:
        repeating-linear-gradient(102deg, rgba(255,255,255,.1) 0 1px, transparent 1px 5px),
        linear-gradient(135deg, #edf2f5 0%, #9aa8b3 52%, #667783 100%) !important;
    color: #10222a;
    box-shadow: 0 25px 55px rgba(75, 93, 104, .18);
}
.networth-card.t-pro .networth-head span,
.networth-card.t-pro .networth-head small,
.networth-card.t-pro .networth-foot small { color: rgba(15, 34, 42, .6); }
.networth-card.t-pro .networth-head button,
.networth-card.t-pro .networth-tier-badge {
    border-color: rgba(15,34,42,.12);
    background: rgba(255,255,255,.28);
    color: #16313b;
}
.networth-card.t-elite {
    border: 1px solid rgba(255, 243, 174, .52);
    background:
        radial-gradient(circle at 24% 18%, rgba(255,255,255,.58), transparent 30%),
        linear-gradient(135deg, #f8e68a 0%, #d7a73f 50%, #8f5c0d 100%) !important;
    color: #4a2e05;
    box-shadow: 0 28px 65px rgba(153, 101, 17, .23);
}
.networth-card.t-elite::after {
    background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.4), transparent 55%);
    animation: premiumAmbientGlow 2.8s infinite alternate;
}
.networth-card.t-elite .networth-head span,
.networth-card.t-elite .networth-head small,
.networth-card.t-elite .networth-foot small { color: rgba(74,46,5,.62); }
.networth-card.t-elite .networth-head button,
.networth-card.t-elite .networth-tier-badge {
    border-color: rgba(74,46,5,.13);
    background: rgba(255,255,255,.22);
    color: #4a2e05;
}
.networth-card.t-master {
    border: 1px solid rgba(89, 202, 255, .32);
    background:
        radial-gradient(circle at 80% 15%, rgba(99,102,241,.25), transparent 31rem),
        linear-gradient(135deg, #111c2e, #080d17) !important;
    box-shadow: 0 28px 65px rgba(14,165,233,.16), inset 0 0 0 1px rgba(168,85,247,.08);
}
.networth-card.t-master::before {
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(110deg, #0ea5e9, #6366f1, #a855f7, #0ea5e9);
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: premiumBorderFlow 5s linear infinite;
}
.networth-card.t-master .amount-text {
    color: #59caff;
    text-shadow: 0 0 28px rgba(56,189,248,.34);
}
.networth-card.t-grand {
    border: 1px solid #dfe8e4;
    background:
        linear-gradient(125deg, rgba(255,88,88,.045), rgba(96,255,194,.06), rgba(96,129,255,.05)),
        #fbfdfc !important;
    color: #10251d;
    box-shadow: 0 28px 65px rgba(87, 115, 104, .17);
}
.networth-card.t-grand::before {
    background: linear-gradient(120deg, transparent 15%, rgba(119,232,196,.14), rgba(147,128,255,.12), transparent 82%);
    animation: premiumPrismShift 7s linear infinite;
}
.networth-card.t-grand .amount-text {
    background: linear-gradient(90deg, #0e2019, #668078, #122a21);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.networth-card.t-grand .networth-head span,
.networth-card.t-grand .networth-head small,
.networth-card.t-grand .networth-foot small { color: #73867f; }
.networth-card.t-grand .networth-head button,
.networth-card.t-grand .networth-tier-badge {
    border-color: #dce7e2;
    background: rgba(255,255,255,.62);
    color: #214c3b;
}
.networth-card.t-royal {
    border: 1px solid rgba(212,175,55,.28);
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 7px),
        radial-gradient(circle at 80% 12%, rgba(212,175,55,.19), transparent 25rem),
        #060806 !important;
    box-shadow: 0 28px 75px rgba(145, 111, 22, .25);
}
.networth-card.t-royal .amount-text {
    background: linear-gradient(90deg, #bf953f 0%, #fcf6ba 30%, #b38728 70%, #aa771c 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: premiumLiquidGold 3.8s linear infinite;
}
.networth-particles {
    position: absolute;
    z-index: 3;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.networth-particles i {
    position: absolute;
    left: var(--particle-left);
    bottom: -12px;
    width: var(--particle-size);
    height: var(--particle-size);
    border-radius: 50%;
    background: rgba(255, 244, 159, .9);
    box-shadow: 0 0 10px rgba(255,230,111,.65);
    opacity: 0;
    animation: premiumDustFloat var(--particle-duration) var(--particle-delay) infinite linear;
}

/* Card spending, reference-aligned */
.card-usage-card {
    padding: 30px;
}
.card-usage-bars {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 18px;
}
.card-usage-bar {
    gap: 14px;
    padding: 24px;
    border: 1px solid #dce8e2;
    border-radius: 22px;
    background: #fff;
}
.card-usage-bar-top em {
    color: #456456;
    font-size: 14px;
    font-weight: 760;
}
.card-usage-bar-top > span {
    color: #98a7a0;
    font-size: 12px;
    font-weight: 650;
}
.card-usage-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.card-usage-amount strong {
    color: #10251d;
    font-size: clamp(27px, 2.2vw, 34px);
    font-weight: 780;
    letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
}
.card-usage-amount span {
    color: #9aa9a2;
    font-size: 16px;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
}
.card-usage-bar > i {
    height: 12px;
    background: #edf3f0;
}
.card-goal-row {
    min-height: 38px;
    grid-template-columns: minmax(0, 1fr) auto;
}
.card-goal-row > button {
    width: fit-content;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #779086;
    background: transparent;
    color: #587166;
    font-size: 12px;
    font-weight: 720;
    cursor: pointer;
}
.card-goal-row > button:hover {
    border-color: var(--monee-emerald-dark);
    color: var(--monee-emerald-dark);
}
.card-goal-row .card-goal-input {
    width: min(190px, 100%);
}
.card-goal-row .card-goal-input[hidden] {
    display: none !important;
}
.card-goal-row small {
    grid-column: 2;
    grid-row: 1;
    min-width: 78px;
    color: var(--monee-emerald-dark);
    font-size: 13px;
    font-weight: 820;
}
.card-goal-row .card-goal-input:not([hidden]) {
    grid-column: 1;
    grid-row: 1;
}

@keyframes premiumLightSweep {
    0%, 58% { left: -65%; }
    82%, 100% { left: 125%; }
}
@keyframes premiumAmbientGlow {
    from { opacity: .35; }
    to { opacity: .8; }
}
@keyframes premiumBorderFlow {
    to { background-position: 300% 0; }
}
@keyframes premiumPrismShift {
    to { filter: hue-rotate(360deg); }
}
@keyframes premiumLiquidGold {
    to { background-position: 200% center; }
}
@keyframes premiumDustFloat {
    0% { transform: translateY(0) scale(.3); opacity: 0; }
    24% { opacity: .72; }
    100% { transform: translateY(-250px) scale(1.35); opacity: 0; }
}

@media (max-width: 1200px) {
    .card-perspective-wrapper { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .networth-details-button {
        top: 24px;
        right: 24px;
    }
    .card-perspective-wrapper .networth-card { min-height: 255px; padding: 24px; }
    .networth-card .amount-text { margin-top: 46px; font-size: clamp(39px, 11vw, 52px); }
    .networth-tier-badge { top: 42px; right: auto; left: 0; }
    .card-inner-content { transform: none; }
    .networth-card .card-footer-layout { transform: none; }
    .card-usage-card { padding: 20px; }
    .card-usage-bars { grid-template-columns: 1fr; }
    .card-usage-bar { padding: 20px; }
    .card-usage-amount { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .networth-card,
    .networth-card::before,
    .networth-card::after,
    .networth-particles i,
    .networth-card .amount-text {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 680px) {
    body { font-size: 15px; }
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        gap: 12px;
    }
    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
    .weather-chip {
        max-width: calc(100% - 112px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .dashboard-bento,
    .account-overview-grid,
    .account-card-grid {
        grid-template-columns: 1fr;
    }
    .networth-card,
    .investment-card,
    .dashboard-metric {
        min-height: auto;
        padding: 26px;
    }
    .networth-card > strong {
        font-size: 43px;
    }
    .workspace-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .workspace-tabs button {
        min-width: 0;
        font-size: 13px;
    }
    .calendar-day {
        min-height: 96px;
        padding: 8px;
    }
    .floating-add-btn {
        right: 18px;
        bottom: 100px;
        width: 58px;
        min-height: 58px;
        padding: 0;
    }
    .floating-add-btn > span {
        width: 40px;
        height: 40px;
    }
    .quick-drawer-head,
    .quick-drawer-body {
        padding-inline: 24px;
    }
}

/* Shared action language */
:where(
    [data-edit-account],
    [data-edit-subscription],
    [data-edit-benefit],
    [data-edit-stock],
    [data-edit-holding],
    [data-edit-transaction]
) {
    border: 0 !important;
    background: #eef2f6 !important;
    color: #6b7686 !important;
    font-weight: 760 !important;
}
:where(
    [data-edit-account],
    [data-edit-subscription],
    [data-edit-benefit],
    [data-edit-stock],
    [data-edit-holding],
    [data-edit-transaction]
):hover {
    background: var(--monee-emerald-soft) !important;
    color: var(--monee-emerald-dark) !important;
}
:where(
    [data-delete-account],
    [data-delete-subscription],
    [data-delete-benefit],
    [data-delete-shopping],
    [data-delete-stock],
    [data-delete-holding],
    [data-delete-transaction],
    [data-delete-user]
) {
    border: 0 !important;
    background: #eef2f6 !important;
    color: #6b7686 !important;
    font-weight: 760 !important;
}
:where(
    [data-delete-account],
    [data-delete-subscription],
    [data-delete-benefit],
    [data-delete-shopping],
    [data-delete-stock],
    [data-delete-holding],
    [data-delete-transaction],
    [data-delete-user]
):hover {
    background: #ffe9ec !important;
    color: #d64055 !important;
}

/* Stable page width with a top progress indicator instead of a side scrollbar. */
html {
    overflow-y: scroll;
    scrollbar-width: none;
}
html::-webkit-scrollbar {
    width: 0;
    height: 0;
}
body { overflow-x: hidden; }
.site-scroll-progress {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    overflow: hidden;
    background: rgba(255,255,255,.38);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(8px);
    transition: opacity .18s ease;
}
.site-scroll-progress.visible { opacity: 1; }
.site-scroll-progress span {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg, rgba(16,185,129,.38), rgba(5,150,105,.78));
    box-shadow: 0 0 14px rgba(16,185,129,.28);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .08s linear;
}

/* Keep the portfolio refresh glyph independent from the chart SVG. */
.portfolio-sync-icon svg {
    position: static !important;
    inset: auto !important;
    width: 20px !important;
    height: 20px !important;
    display: block;
}
.portfolio-sync-icon svg path,
.portfolio-sync-icon svg polyline {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
}

.calendar-detail-main strong {
    white-space: normal;
}
.calendar-detail-main > span { display: none; }
.calendar-detail-main strong span {
    display: inline;
    margin: 0;
    overflow: visible;
    color: inherit;
    font-size: inherit;
    text-overflow: clip;
    white-space: inherit;
}

.card-goal-row {
    display: grid;
    grid-template-columns: auto minmax(120px, 170px) auto;
    align-items: center;
    gap: 10px;
}
.card-goal-row label,
.card-goal-row small {
    color: #829188;
    font-size: 12px;
    font-weight: 700;
}
.card-goal-row small {
    min-width: 42px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.card-goal-input {
    min-height: 38px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(16,185,129,.16);
    border-radius: 12px;
    background: #f8fbfa;
}
.card-goal-input span {
    color: #92a098;
    font-size: 12px;
    font-weight: 700;
}
.card-goal-input input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--monee-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 760;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.card-usage-bar.goal-exceeded i span {
    background: linear-gradient(90deg, #f2a85d, #ef5d6d);
}
.card-usage-bar.goal-exceeded .card-goal-row small {
    color: #d64055;
}

/* Slight readability lift for supporting text without changing layout ratios. */
.page-kicker,
.accounts-page-head p,
.subscription-page-head p,
.portfolio-page-head p { font-size: 10px; }
.journal-transaction-copy > div,
.journal-transaction-value time,
.portfolio-stock-name small,
.account-fintech-card p,
.subscription-card-copy p { font-size: 11px; }
.field label,
.form-note,
.field-hint { font-size: 12px; }
.weekday,
.day-more { font-size: 10px; }

@media (max-width: 680px) {
    .card-goal-row {
        grid-template-columns: auto minmax(100px, 1fr) auto;
    }
}

@media (max-width: 900px) {
    .nav-index {
        display: grid !important;
        place-items: center !important;
        color: #65766d !important;
    }
    .nav-index .nav-svg {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
        stroke: currentColor !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .nav-link.active .nav-index {
        color: var(--monee-emerald-dark) !important;
    }
}

/* Final card-usage alignment after legacy form rules. */
.card-usage-card .card-goal-row {
    grid-template-columns: minmax(0, 1fr) auto;
}
.card-usage-card .card-goal-row > button,
.card-usage-card .card-goal-row .card-goal-input:not([hidden]) {
    grid-column: 1;
    grid-row: 1;
}
.card-usage-card .card-goal-row > small {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 82px;
    text-align: right;
}

/* Premium card information hierarchy */
.card-perspective-wrapper .card-inner-content {
    height: 100%;
    min-height: 212px;
    display: flex;
    flex-direction: column;
}
.card-perspective-wrapper .networth-head {
    position: relative;
    z-index: 20;
}
.card-perspective-wrapper .networth-head button {
    z-index: 30;
    pointer-events: auto;
    touch-action: manipulation;
}
.card-perspective-wrapper .networth-tier-badge {
    position: relative;
    inset: auto;
    width: fit-content;
    margin-top: 22px;
    padding: 7px 12px;
    order: 1;
}
.card-perspective-wrapper .amount-text {
    position: relative;
    z-index: 12;
    max-width: 78%;
    margin-top: 13px;
    order: 2;
}
.networth-summary-line {
    position: relative;
    z-index: 12;
    margin-top: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    order: 3;
}
.networth-summary-line > span {
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(119,234,176,.16);
    color: #a9f2cf;
    font-size: 11px;
    font-weight: 750;
}
.networth-summary-line > span.down {
    background: rgba(255,111,97,.16);
    color: #ff9b92;
}
.networth-summary-line small {
    color: rgba(255,255,255,.58);
    font-size: 11px;
}
.card-perspective-wrapper .networth-foot {
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    order: 4;
}
.card-perspective-wrapper .networth-foot > strong {
    color: inherit;
    font-size: 14px;
    font-weight: 760;
}
.card-perspective-wrapper .networth-foot > .networth-wordmark {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 17px;
    font-style: italic;
    font-weight: 880;
    letter-spacing: .06em;
    opacity: .22;
}
.networth-card.t-pro .networth-summary-line > span,
.networth-card.t-elite .networth-summary-line > span,
.networth-card.t-grand .networth-summary-line > span {
    background: rgba(255,255,255,.28);
    color: inherit;
}
.networth-card.t-pro .networth-summary-line small,
.networth-card.t-elite .networth-summary-line small,
.networth-card.t-grand .networth-summary-line small {
    color: currentColor;
    opacity: .58;
}
.networth-card.t-grand .networth-orbit {
    inset: 0 0 0 72%;
    opacity: .32;
    overflow: hidden;
}
.networth-card.t-grand .networth-orbit i {
    right: -44%;
    border-color: rgba(47, 101, 82, .18);
}
.networth-card.t-grand .networth-orbit i:nth-child(2) { right: -21%; }
.networth-card.t-grand .networth-orbit i:nth-child(3) { right: 2%; }
.networth-card.t-grand .card-inner-content {
    isolation: isolate;
}

/* Category total below the donut keeps large values readable. */
.category-donut-group {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
}
.category-card .category-content {
    transform: translateY(7px);
}
.category-donut-group .category-donut > div {
    background: white;
}
.category-total {
    max-width: 100%;
    display: grid;
    justify-items: center;
    gap: 3px;
    text-align: center;
}
.category-total span {
    color: #9aa6a0;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
}
.category-total strong {
    max-width: 100%;
    color: var(--monee-text);
    font-size: 14px;
    font-weight: 780;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .card-perspective-wrapper .card-inner-content { min-height: 207px; }
    .card-perspective-wrapper .networth-tier-badge {
        margin-top: 18px;
    }
    .card-perspective-wrapper .amount-text {
        max-width: 100%;
        margin-top: 12px;
    }
    .networth-summary-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
    .card-perspective-wrapper .networth-foot {
        padding-top: 14px;
    }
}
