.account-report { min-height: 100dvh; }
.account-report a { text-decoration: none; }
.report-bar { height: 72px; border-bottom: 1px solid var(--soft-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 4vw, 70px); }
.report-bar > div, .back-chat, .report-owner, .report-side nav a, .report-cta { display: flex; align-items: center; gap: 10px; }
.report-bar > div { gap: 15px; color: var(--muted); }
.report-bar .brand { color: var(--ink); }
.bar-divider { height: 19px; width: 1px; background: var(--line); }
.back-chat { font-size: 13px; color: var(--muted); }
.back-chat:hover { color: var(--ink); }
.back-chat svg { width: 16px; transform: rotate(180deg); }
.report-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(24px, 5vw, 86px); max-width: 1370px; margin: auto; padding: 38px clamp(16px, 4vw, 70px) 70px; }
.report-side { align-self: start; }
.report-side nav { display: grid; gap: 4px; }
.report-side nav a { min-height: 41px; padding: 8px 12px; border-radius: 10px; font-weight: 550; color: var(--muted); }
.report-side nav a:hover, .report-side nav [aria-current="page"] { color: var(--ink); background: var(--field); }
.report-side nav svg { width: 18px; }
.report-owner { padding: 0 12px 18px; margin-bottom: 16px; border-bottom: 1px solid var(--soft-line); overflow-wrap: anywhere; }
.report-owner svg { width: 17px; color: var(--muted); }
.report-heading, .card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.report-heading { margin: 0 0 24px; }
.report-heading h1 { margin: 0; font-weight: 650; font-size: clamp(29px, 4vw, 43px); line-height: 1.15; letter-spacing: -.055em; }
.report-cta { justify-content: center; white-space: nowrap; }
.report-cta svg { width: 16px; height: 16px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.metric, .report-card, .report-plots .chat-chart { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.metric { padding: 17px clamp(10px, 1.6vw, 22px); }
.metric dt, .report-facts dt, .timezone { color: var(--muted); font-size: 12px; }
.metric dd { margin: 8px 0 0; font-size: clamp(20px, 2.7vw, 36px); font-weight: 620; letter-spacing: -.045em; overflow-wrap: anywhere; }
.metric small { font-size: .52em; color: var(--muted); font-weight: 550; letter-spacing: 0; white-space: nowrap; }
.balance-metrics .metric:first-child { background: var(--accent-bg); }
.balance-metrics .metric:first-child dd { color: var(--accent); }
.report-card, .report-plots .chat-chart { padding: clamp(14px, 2vw, 24px); }
.card-head { margin-bottom: 14px; }
.card-head h2, .report-plots figcaption { margin: 0; font-size: 18px; font-weight: 640; letter-spacing: -.025em; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-chips a { color: var(--muted); padding: 7px 12px; border-radius: 20px; font-size: 13px; }
.filter-chips [aria-current="true"], .filter-chips a:hover { background: var(--over); color: var(--ink); }
.bill-list { list-style: none; padding: 0; margin: 12px 0 0; }
.bill-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 14px; padding-block: 17px; border-top: 1px solid var(--soft-line); }
.bill-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); }
.bill-description strong, .bill-description time, .bill-value strong { display: block; }
.bill-description time, .bill-details { color: var(--muted); font-size: 12px; margin-top: 3px; }
.bill-details summary { cursor: pointer; width: fit-content; }
.bill-details code { display: block; margin-top: 5px; font-size: 11px; overflow-wrap: anywhere; user-select: all; }
.bill-details > span { display: block; margin-top: 5px; }
.pay-order { display: inline-block; padding-block: 6px; color: var(--accent); }
.bill-value { text-align: right; font-variant-numeric: tabular-nums; }
.order-status { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.status-paid { color: var(--green); }
.status-pending, .status-review, .status-creating { color: var(--accent); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.pagination span, .report-empty { color: var(--muted); }
.report-empty { padding-block: 26px; }
.report-filters > label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.report-filters > div { display: flex; gap: 8px; }
.report-filters select { width: min(100%, 370px); min-width: 0; padding: 8px 30px 8px 12px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; }
.period-filter { margin: 14px 0; }
.period-filter .timezone { align-self: center; margin-left: auto; }
.report-plots, .report-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-plots { margin: 0 0 16px; align-items: start; }
.report-plots .chat-chart { min-width: 0; margin: 0; }
.report-plots valera-plot { margin-top: 12px; height: clamp(170px, 20vw, 235px); }
.levels-table, .report-plots table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.levels-table :is(th,td), .report-plots :is(th,td) { text-align: right; padding: 9px 4px; border-bottom: 1px solid var(--soft-line); }
.levels-table th:first-child, .report-plots th:first-child { text-align: left; }
.levels-table thead { color: var(--muted); font-size: 12px; }
.report-pair { margin-top: 12px; }
.report-facts { margin: 0; }
.report-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; }
.report-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.activity-card { margin: 0 0 16px; min-width: 0; --day0: #2d302e; --day1: #16462e; --day2: #217647; --day3: #35a562; --day4: #7bd88e; }
[data-theme="light"] .activity-card { --day0: #e7ebe7; --day1: #acf0bd; --day2: #69cd83; --day3: #369c59; --day4: #1c683d; }
.activity-head, .activity-foot, .activity-key, .calendar-year { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.activity-head, .activity-foot { justify-content: space-between; }
.activity-head h2 { margin: 0; font-size: 18px; font-weight: 640; letter-spacing: -.025em; }
.activity-head p, .activity-foot { font-size: 12px; color: var(--muted); }
.activity-head p { margin: 4px 0 0; }
.activity-scroll { margin: 12px 0 10px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.activity-grid { border-collapse: separate; border-spacing: 3px; width: max-content; }
.activity-grid :is(th,td) { padding: 0; text-align: left; font-weight: 500; font-size: 10px; line-height: 1; color: var(--muted); }
.activity-grid thead th { height: 16px; }
.activity-grid tbody th { min-width: 22px; position: sticky; left: 0; z-index: 1; background: var(--panel); }
.activity-day, .activity-key i { display: block; width: 12px; height: 12px; border-radius: 3px; background: var(--cell); box-shadow: inset 0 0 0 1px #8882; }
.activity-day:is(:hover,:focus-visible,[data-selected]) { outline: 1px solid var(--ink); outline-offset: 0; }
.tone-0 { --cell: var(--day0); } .tone-1 { --cell: var(--day1); } .tone-2 { --cell: var(--day2); }
.tone-3 { --cell: var(--day3); } .tone-4 { --cell: var(--day4); }
.activity-key { gap: 4px; }
.activity-key i { width: 10px; height: 10px; }
.calendar-year select { background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 5px; }
.calendar-year .secondary { min-height: 30px; padding: 5px 9px; }
@media (max-width: 900px) {
  .report-layout { grid-template-columns: minmax(0,1fr); gap: 22px; padding-top: 16px; }
  .report-side nav { display: flex; flex-wrap: wrap; }
  .report-owner { display: none; }
}
@media (max-width: 620px) {
  .report-bar { height: 58px; }
  .report-bar .bar-divider, .bar-divider + span, .report-side nav svg { display: none; }
  .report-side nav a { font-size: 12px; padding: 5px 8px; min-height: 34px; }
  .report-heading { flex-wrap: wrap; margin-bottom: 16px; }
  .metrics { gap: 5px; }
  .metric { padding: 10px 7px; border-radius: 10px; }
  .metric dt { font-size: 11px; }
  .report-plots, .report-pair { grid-template-columns: 1fr; }
  .bill-row { gap: 9px; }
  .bill-icon { width: 29px; height: 29px; }
}
