@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #182334;
  --muted: #778396;
  --soft: #9aa5b4;
  --line: #e9edf2;
  --surface: #fff;
  --canvas: #f5f7fa;
  --accent: #3278e8;
  --green: #1e9b6a;
  --red: #df6670;
  --gold: #f1ad3d;
  font-family: 'DM Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }

.dashboard-layout { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 3;
  display: flex; width: 236px; flex-direction: column;
  padding: 25px 16px 19px; border-right: 1px solid var(--line); background: #fff;
}
.side-brand { display: flex; min-width: 0; align-items: center; gap: 11px; padding: 2px 7px 28px; }
.brand-symbol { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 13px; color: white; background: var(--accent); font-family: Manrope, sans-serif; font-size: 15px; font-weight: 800; box-shadow: 0 5px 12px color-mix(in srgb, var(--accent) 22%, transparent); }
.brand-name { overflow: hidden; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-caption { padding: 0 11px 10px; color: #a7b0bd; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.side-nav { display: grid; gap: 4px; }
.nav-item { display: flex; min-height: 42px; align-items: center; gap: 11px; padding: 0 11px; border-radius: 10px; color: #667386; font-size: 12px; font-weight: 600; transition: background .16s, color .16s; }
.nav-item:hover { color: var(--accent); background: #f5f8fd; }
.nav-item.active { color: var(--accent); background: #edf4ff; }
.nav-icon { display: grid; width: 19px; place-items: center; font-size: 16px; }
.sidebar-bottom { display: grid; gap: 16px; margin-top: auto; padding: 12px 6px 2px; }
.local-badge { display: flex; align-items: center; gap: 7px; color: #778396; font-size: 10px; }
.local-badge span { width: 7px; height: 7px; border-radius: 50%; background: #e2a63e; box-shadow: 0 0 0 3px #fff4df; }
.back-link { color: #8a96a6; font-size: 10px; }
.back-link:hover { color: var(--accent); }

.main-content { min-height: 100vh; margin-left: 236px; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; height: 67px; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.93); backdrop-filter: blur(12px); }
.breadcrumb { color: #95a0ae; font-size: 11px; }
.breadcrumb span { padding: 0 8px; color: #c1c8d1; }
.breadcrumb strong { color: #475366; font-weight: 650; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.month-picker { display: flex; align-items: center; gap: 8px; color: #798597; font-size: 10px; }
.month-picker input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: #4f5b6d; background: white; font-size: 10px; }
.avatar { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 11px; color: white; background: var(--accent); font-size: 11px; font-weight: 750; }
.topbar-mobile-brand { display: none; align-items: center; gap: 8px; font-size: 12px; font-weight: 750; }
.topbar-mobile-brand .brand-symbol { width: 30px; height: 30px; flex-basis: 30px; border-radius: 10px; font-size: 12px; }
.content-wrap { width: min(100%, 1370px); margin: 0 auto; padding: 31px clamp(22px, 4vw, 48px) 24px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.eyebrow { margin: 0 0 6px; color: #9aa5b3; font-size: 9px; font-weight: 750; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
.page-heading h1 { margin: 0; font-family: Manrope, 'DM Sans', sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -.055em; }
.page-subtitle { margin: 5px 0 0; color: #8994a3; font-size: 11px; }
.button { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-size: 10px; font-weight: 700; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--accent); box-shadow: 0 5px 11px color-mix(in srgb, var(--accent) 17%, transparent); }
.button-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #142f59); }
.button-secondary { border-color: var(--line); color: #5c6878; background: #fff; }
.button-secondary:hover { background: #f7f9fc; }
.button span { font-size: 16px; line-height: 0; }

.notice { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; padding: 10px 13px; border: 1px solid #f1e7c9; border-radius: 11px; background: #fffaf0; }
.notice-icon { display: grid; width: 16px; height: 16px; flex: 0 0 16px; place-items: center; border-radius: 50%; color: #956c1d; background: #f8e8ba; font-size: 10px; font-weight: 800; }
.notice p { margin: 0; color: #8d7546; font-size: 10px; line-height: 1.5; }
.notice strong { color: #725c2f; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi-card { position: relative; min-height: 133px; overflow: hidden; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { color: #778395; font-size: 10px; font-weight: 600; }
.kpi-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; font-size: 15px; font-weight: 700; }
.icon-income { color: #218e67; background: #e9f8f1; }
.icon-expense { color: #d6656f; background: #fff0f1; }
.icon-profit { color: #7a64cd; background: #f0edff; }
.icon-review { color: #c58921; background: #fff7e7; }
.kpi-value { display: block; margin: 13px 0 4px; font-family: Manrope, 'DM Sans', sans-serif; font-size: clamp(17px, 1.8vw, 23px); font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.kpi-value.negative { color: var(--red); }
.kpi-foot { display: block; position: relative; z-index: 1; color: #99a3b0; font-size: 9px; }
.average-stars { color: #d3992f; font-weight: 750; }
.kpi-spark { position: absolute; right: 10px; bottom: -1px; left: 10px; display: flex; height: 25px; align-items: end; gap: 4px; opacity: .55; }
.kpi-spark i { flex: 1; height: 20%; border-radius: 3px 3px 0 0; background: #d6f0e4; }
.kpi-spark i:nth-child(3n) { height: 60%; }.kpi-spark i:nth-child(4n) { height: 39%; }.kpi-spark i:nth-child(5n) { height: 84%; }.kpi-spark i:nth-child(7n) { height: 52%; }
.spark-expense i { background: #f8dfe1; }.spark-expense i:nth-child(3n) { height: 36%; }.spark-expense i:nth-child(5n) { height: 64%; }
.spark-profit i { background: #e6e0ff; }.spark-profit i:nth-child(3n) { height: 67%; }.spark-profit i:nth-child(5n) { height: 92%; }
.review-meter { position: absolute; right: 15px; bottom: 10px; left: 15px; height: 4px; overflow: hidden; border-radius: 9px; background: #f7edda; }
.review-meter span { display: block; height: 100%; border-radius: inherit; background: #e5ae50; transition: width .25s; }

.main-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: 13px; margin-top: 14px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.finance-panel, .reviews-panel { min-height: 272px; padding: 18px 19px 15px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.panel-heading h2 { margin: 0; font-family: Manrope, 'DM Sans', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: -.035em; }
.period-pill { padding: 6px 9px; border: 1px solid #edf0f4; border-radius: 8px; color: #8490a0; background: #fbfcfd; font-size: 9px; }
.chart-legend { display: flex; gap: 14px; margin-top: 18px; color: #8b96a4; font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; }
.legend-income { background: #75c6a3; }.legend-expense { background: #eca0a6; }
.chart-area { display: flex; height: 142px; align-items: stretch; justify-content: space-around; gap: 7px; margin-top: 11px; padding: 0 2px; border-bottom: 1px solid #edf0f4; background: repeating-linear-gradient(to bottom, transparent 0, transparent 34px, #f1f3f6 35px); }
.chart-column { display: flex; min-width: 8px; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-pair { display: flex; width: 100%; max-width: 25px; height: calc(100% - 17px); align-items: end; justify-content: center; gap: 3px; }
.bar-income, .bar-expense { display: block; width: 7px; min-height: 0; border-radius: 3px 3px 0 0; transition: height .2s; }
.bar-income { background: #76c9a5; }.bar-expense { background: #eea1a7; }
.chart-column small { color: #a6afbb; font-size: 8px; }
.chart-axis { display: flex; justify-content: space-between; padding-top: 7px; color: #a0aab7; font-size: 8px; }
.text-button { padding: 6px 0 6px 9px; border: 0; color: var(--accent); background: transparent; cursor: pointer; font-size: 10px; font-weight: 700; }
.rating-summary { display: flex; align-items: center; gap: 11px; margin: 18px 0 13px; padding-bottom: 13px; border-bottom: 1px solid #f0f2f5; }
.rating-summary > strong { font-family: Manrope, sans-serif; font-size: 31px; font-weight: 800; letter-spacing: -.06em; }
.rating-summary > span { display: grid; gap: 3px; }.star-gold { color: #edae3f; font-size: 12px; letter-spacing: .08em; }.rating-summary small { color: #9aa4b0; font-size: 9px; }
.rating-bars { display: grid; gap: 7px; }
.rating-bar-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 27px; align-items: center; gap: 7px; color: #8792a1; font-size: 9px; }
.rating-bar-row b { color: #e6aa3c; font-size: 10px; }.rating-bar-row small { color: #98a2b0; text-align: right; font-size: 9px; }
.bar-track { height: 6px; overflow: hidden; border-radius: 8px; background: #f0f2f5; }.bar-track i { display: block; height: 100%; border-radius: inherit; background: #efba60; transition: width .3s; }
.review-note { margin: 12px 0 0; color: #a0a9b4; font-size: 8px; line-height: 1.5; }

.transactions-panel { margin-top: 14px; padding: 18px 19px 14px; }
.transaction-heading { margin-bottom: 15px; }.table-actions { display: flex; gap: 7px; }
.table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
thead { background: #fafbfd; }
th { padding: 10px 9px; color: #a1aab6; font-size: 8px; font-weight: 750; letter-spacing: .08em; }
td { padding: 10px 9px; border-bottom: 1px solid #f0f2f5; color: #687486; font-size: 9px; }
tbody tr:last-child td { border-bottom: 0; }
.transaction-name { display: flex; align-items: center; gap: 9px; }.transaction-name > span:last-child { display: grid; gap: 2px; }.transaction-name strong { color: #354154; font-size: 10px; font-weight: 650; }.transaction-name small { color: #9aa4b1; font-size: 8px; }
.transaction-icon { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; font-size: 13px; font-weight: 700; }.income-bg { color: #228d68; background: #eaf8f1; }.expense-bg { color: #d26971; background: #fff0f1; }
.category-pill { padding: 4px 7px; border-radius: 6px; color: #758194; background: #f4f6f9; font-size: 8px; }.date-cell { color: #8c97a5; }.type-label { font-size: 9px; }.type-income, .amount-income { color: #258d69; }.type-expense, .amount-expense { color: #d56a72; }.align-right { text-align: right; }.amount { font-weight: 700; }.delete-cell { width: 28px; }
.delete-button { width: 23px; height: 23px; border: 0; border-radius: 7px; color: #a5aebb; background: transparent; cursor: pointer; font-size: 16px; }.delete-button:hover { color: #cb4f59; background: #fff0f1; }
.empty-state { display: grid; justify-items: center; padding: 26px 10px 22px; text-align: center; }.empty-state[hidden] { display: none; }.empty-icon { display: grid; width: 40px; height: 40px; margin-bottom: 10px; place-items: center; border-radius: 13px; color: #7c9ac5; background: #eef4fc; font-size: 21px; }.empty-state strong { color: #586577; font-size: 11px; }.empty-state p { max-width: 290px; margin: 5px 0 13px; color: #99a3b0; font-size: 9px; line-height: 1.5; }
.dashboard-footer { display: flex; justify-content: space-between; padding: 16px 2px 0; color: #a3acb8; font-size: 8px; }

.modal { width: min(100% - 28px, 470px); max-height: min(92vh, 760px); padding: 0; overflow: auto; border: 0; border-radius: 17px; color: var(--ink); background: transparent; }
.modal::backdrop { background: rgba(24, 35, 52, .35); backdrop-filter: blur(3px); }
.modal-card { position: relative; display: grid; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 24px 70px rgba(24,35,52,.18); }
.modal-card > .eyebrow { margin: 0; }.modal-card h2 { margin: -7px 0 -7px; font-family: Manrope, sans-serif; font-size: 19px; letter-spacing: -.04em; }.modal-subtitle { margin: 0 0 4px; color: #8792a1; font-size: 10px; line-height: 1.5; }
.modal-close { position: absolute; top: 13px; right: 13px; width: 29px; height: 29px; border: 0; border-radius: 8px; color: #7f8a98; background: #f3f5f8; cursor: pointer; font-size: 18px; }
.modal-card label { display: grid; gap: 6px; color: #566275; font-size: 10px; font-weight: 650; }.modal-card input, .modal-card select { width: 100%; min-height: 37px; padding: 0 10px; border: 1px solid #e5e9ef; border-radius: 8px; outline: none; color: #354154; background: white; font-size: 10px; }.modal-card input:focus, .modal-card select:focus { border-color: #8eb7f4; box-shadow: 0 0 0 3px rgba(50,120,232,.1); }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }.optional { color: #a0a9b5; font-weight: 400; }
.modal-actions { display: flex; justify-content: end; gap: 8px; margin-top: 6px; padding-top: 13px; border-top: 1px solid #eff1f4; }
.star-input-list { display: grid; gap: 8px; }.star-input-list label { display: grid; grid-template-columns: 62px 1fr 76px; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #eff1f4; border-radius: 9px; color: #5c6878; font-weight: 550; }.star-input-list label span { overflow: hidden; color: #e2a93e; font-size: 10px; letter-spacing: .02em; white-space: nowrap; }.star-input-list input { min-height: 32px; text-align: right; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 5; max-width: min(90vw, 360px); padding: 11px 15px; transform: translateY(12px); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: white; background: #27384f; box-shadow: 0 10px 30px rgba(24,35,52,.2); opacity: 0; pointer-events: none; font-size: 10px; transition: opacity .18s, transform .18s; }.toast.show { transform: translateY(0); opacity: 1; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }

@media (min-width: 1500px) { .content-wrap { padding-top: 38px; }.kpi-grid { gap: 15px; }.main-grid { gap: 16px; }.finance-panel, .reviews-panel { min-height: 300px; padding: 21px; }.chart-area { height: 166px; } }
@media (max-width: 1100px) { .sidebar { width: 205px; }.main-content { margin-left: 205px; }.kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.main-grid { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr); } }
@media (max-width: 820px) { .sidebar { width: 66px; padding-inline: 9px; }.side-brand { justify-content: center; padding: 1px 0 25px; }.side-brand .brand-name, .sidebar-caption, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.nav-item { justify-content: center; gap: 0; padding: 0; }.nav-icon { width: 100%; font-size: 17px; }.nav-item.active { font-size: 0; }.sidebar-bottom { justify-items: center; }.local-badge { width: 10px; height: 10px; overflow: hidden; font-size: 0; }.local-badge span { flex: 0 0 7px; }.back-link { width: 22px; height: 22px; overflow: hidden; font-size: 0; }.back-link::first-letter { font-size: 16px; }.main-content { margin-left: 66px; }.main-grid { grid-template-columns: 1fr; }.reviews-panel { min-height: auto; } }
@media (max-width: 560px) { .sidebar { display: none; }.main-content { margin-left: 0; }.topbar { height: 57px; padding: 0 15px; }.topbar-mobile-brand { display: flex; }.breadcrumb { display: none; }.topbar-actions { gap: 9px; }.month-picker { gap: 5px; font-size: 9px; }.month-picker input { max-width: 130px; padding: 6px; font-size: 9px; }.avatar { width: 28px; height: 28px; }.content-wrap { padding: 23px 14px 20px; }.page-heading { align-items: center; }.page-heading h1 { font-size: 22px; }.page-subtitle { max-width: 230px; font-size: 9px; line-height: 1.5; }.page-heading > .button { min-height: 33px; padding: 0 9px; font-size: 9px; }.notice { padding: 9px; }.notice p { font-size: 9px; }.kpi-grid { gap: 8px; }.kpi-card { min-height: 120px; padding: 12px; border-radius: 12px; }.kpi-label { font-size: 9px; }.kpi-icon { width: 24px; height: 24px; }.kpi-value { margin-top: 12px; font-size: clamp(16px, 5vw, 20px); }.kpi-foot { font-size: 8px; }.main-grid { gap: 9px; margin-top: 9px; }.finance-panel, .reviews-panel, .transactions-panel { padding: 15px 13px; border-radius: 12px; }.chart-area { height: 128px; }.transactions-panel { margin-top: 9px; }.transaction-heading { align-items: flex-start; }.table-actions { gap: 5px; }.table-actions .button { min-height: 31px; padding: 0 8px; font-size: 8px; }.dashboard-footer { font-size: 7px; }.modal-card { padding: 22px 17px 17px; }.form-row { gap: 8px; }.modal-card input, .modal-card select { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
