.jl-dashboard {
  --jld-rule: #e6e1db;
  --jld-muted: #675e56;
  --jld-inset: clamp(16px, 2.3vw, 30px);
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  color: var(--ink);
}
.jl-dashboard *, .jl-dashboard *::before, .jl-dashboard *::after { box-sizing: border-box; }
.jl-dashboard h1, .jl-dashboard h2, .jl-dashboard p { margin: 0; color: inherit; }
.jld-heading, .jld-section-heading, .jld-dialog-head, .jld-kpi-head, .jld-empty {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.jld-heading { flex-wrap: wrap; margin: 0 0 clamp(16px, 2vw, 26px); }
.jld-heading h1 { font-size: clamp(29px, 3vw, 43px); font-weight: 710; line-height: 1.1; letter-spacing: -.05em; }
.jld-tools, .jld-year-control, .jld-create, .jld-month-nav, .jld-icon-btn, .jld-glyph { display: inline-flex; align-items: center; }
.jld-tools { flex-wrap: wrap; gap: 9px; }
.jld-year-control { gap: 6px; min-height: 41px; margin: 0; border: 1px solid var(--jld-rule); border-radius: 10px; padding: 0 11px; background: #fff; }
.jld-year-control > span { font-size: 12px; font-weight: 500; color: var(--jld-muted); }
.jl-dashboard .jld-year { color: var(--ink); background-color: transparent; min-height: 39px; min-width: 0; width: auto; border: 0; border-radius: 5px; font: inherit; font-weight: 650; padding: 0 2px; }
.jld-create { gap: 7px; min-height: 41px; font-size: 13px; }
.jld-create svg, .jld-icon-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.jld-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.jld-kpi, .jld-panel, .jld-empty {
  border: 1px solid var(--jld-rule); background: #fff; border-radius: var(--radius, 15px);
}
.jld-kpi { min-width: 0; padding: clamp(17px, 2vw, 25px); }
.jld-kpi-head { min-height: 30px; gap: 8px; }
.jld-kpi-head h2 { font-size: clamp(13px, 1.15vw, 16px); line-height: 1.35; font-weight: 620; letter-spacing: -.015em; }
.jld-glyph { border-radius: 9px; width: 32px; height: 32px; background: var(--surface); color: var(--secondary); justify-content: center; flex-shrink: 0; }
.jld-glyph svg { width: 18px; height: 18px; }
.jld-kpi-value {
  display: block; margin: 14px 0 6px; color: var(--ink); font-size: clamp(26px, 2.8vw, 41px);
  font-weight: 650; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
.jld-kpi small { color: var(--jld-muted); font-size: 12px; line-height: 1.4; }
.jld-kpi-accent { background: #fff8f1; border-color: #f3d4b8; }
.jld-kpi-accent .jld-glyph { background: #ffe5cd; color: #8b3a00; }
.jld-empty { background: #fbfaf8; margin-top: 14px; padding: 13px var(--jld-inset); flex-wrap: wrap; }
.jld-empty p { font-size: 14px; font-weight: 550; }
.jld-panel { margin-top: clamp(14px, 1.75vw, 24px); padding: var(--jld-inset); }
.jld-section-heading { flex-wrap: wrap; gap: 8px 16px; }
.jld-section-heading h2, .jld-dialog-head h2 { font-size: clamp(17px, 1.6vw, 22px); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.jld-unit { display: inline-flex; align-items: center; gap: 7px; color: var(--jld-muted); font-size: 12px; }
.jld-unit::before { content: ''; width: 8px; height: 8px; background: var(--orange); border-radius: 2px; }
.jld-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 11px; margin-top: 32px; }
.jld-axis { display: flex; align-items: flex-end; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--jld-muted); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jld-axis span:first-child { transform: translateY(-50%); }
.jld-axis span:last-child { transform: translateY(50%); }
.jld-plot-grid, .jld-plot-labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.jld-plot-grid {
  min-width: 0; height: clamp(150px, 14vw, 210px); position: relative;
  border-bottom: 1px solid var(--jld-rule); 
  background: repeating-linear-gradient(to bottom, var(--jld-rule) 0 1px, transparent 1px 25%);
}
.jld-chart-column {
  display: flex; align-items: flex-end; justify-content: center; min-width: 0; border: 0; border-radius: 5px 5px 0 0;
  margin: 0; padding: 0; background: transparent; color: inherit;
}
.jld-chart-column:is(:hover, :focus-visible) { background: rgb(255 107 0 / 7%); }
.jld-bar { width: 56%; max-width: 56px; border-radius: 5px 5px 0 0; background: var(--orange); transition: background-color .15s ease; }
.jld-bar-positive { min-height: 1px; }
.jld-chart-column:is(:hover, :focus-visible) .jld-bar { background: var(--orange-ink); }
.jld-plot-labels { grid-column: 2; text-align: center; font-size: 12px; color: var(--jld-muted); }
.jld-tooltip { position: absolute; z-index: 2; pointer-events: none; top: 6px; display: grid; gap: 4px; max-width: 100%; padding: 8px 12px; background: var(--ink); color: white; font-size: 12px; line-height: 1.35; border-radius: 8px; box-shadow: 0 3px 10px rgb(23 20 17 / 13%); }
.jld-tooltip[hidden] { display: none; }
.jld-tooltip span { color: #e9dfd6; }
.jld-tooltip strong { font-variant-numeric: tabular-nums; }
.jld-month-nav { gap: 9px; }
.jld-month-nav > span { min-width: 108px; text-align: center; font-size: 13px; font-weight: 650; }
.jld-icon-btn { width: 35px; height: 35px; padding: 0; justify-content: center; border-radius: 9px; border: 1px solid var(--jld-rule); background: white; color: var(--ink); }
.jld-icon-btn:hover, .jld-open:hover { border-color: var(--orange-ink); background: var(--orange-wash); }
.jld-calendar { margin-top: 20px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--jld-rule); border-bottom: 0; border-right: 0; border-radius: 10px; overflow: hidden; }
.jld-weekday, .jld-day, .jld-outside { border: 0; border-right: 1px solid var(--jld-rule); border-bottom: 1px solid var(--jld-rule); }
.jld-weekday { padding: 9px 10px; font-size: 11px; font-weight: 650; color: var(--jld-muted); background: #f9f8f6; }
.jld-day, .jld-outside { min-height: clamp(64px, 5.5vw, 82px); }
.jld-outside { background: #fbfaf9; }
.jld-day { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; min-width: 0; padding: 7px 9px; background: #fff; font: inherit; color: var(--ink); border-radius: 0; }
.jld-day:hover { background: var(--orange-wash); }
.jld-day:focus-visible { position: relative; outline-offset: -3px!important; }
.jld-day-number { display: grid; place-items: center; padding: 2px; min-width: 23px; min-height: 23px; border-radius: 50%; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.jld-day[aria-current="date"] .jld-day-number { background: var(--ink); color: #fff; font-weight: 650; }
.jld-day-count { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; color: #813600; background: #ffebdc; font-size: 11px; font-weight: 650; }
.jld-day-count::before { content: ''; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #cb5300; }
.jld-count-short { display: none; }
.jld-day-dialog { position: fixed; width: min(780px,calc(100vw - 32px)); max-height: 84vh; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: white; border: 1px solid var(--jld-rule); border-radius: 16px; padding: clamp(16px,3vw,30px); box-shadow: 0 16px 65px #17141133; }
.jld-day-dialog::backdrop { background: rgb(23 20 17 / 35%); }
.jld-dialog-head { margin-bottom: 15px; }
.jld-day-empty { padding: 10px 0 4px; color: var(--jld-muted); }
.jld-day-table { width: 100%; border-collapse: collapse; font: inherit; font-size: 13px; line-height: 1.45; }
.jld-day-table :is(th,td) { padding: 10px 7px; border-bottom: 1px solid var(--jld-rule); text-align: start; overflow-wrap: anywhere; }
.jld-day-table th { color: var(--jld-muted); font-size: 11px; }
.jld-day-table td:first-child { font-weight: 650; }
.jld-day-table td:nth-child(4) { font-variant-numeric: tabular-nums; }
.jld-open { min-height: 35px; border: 1px solid var(--jld-rule); border-radius: 8px; background: white; color: var(--ink); font: inherit; font-weight: 650; padding: 5px 12px; }
@media (max-width: 720px) {
  .jld-metrics { gap: 8px; }
  .jld-kpi { padding: 13px 12px; }
  .jld-kpi-head { align-items: flex-start; }
  .jld-glyph { display: none; }
  .jld-kpi-value { margin: 10px 0 6px; }
  .jld-kpi small { font-size: 11px; }
  .jld-plot { column-gap: 5px; }
  .jld-plot-labels { font-size: 10px; }
  .jld-weekday { padding: 8px; }
  .jld-day { padding: 5px; }
  .jld-day-count { font-size: 10px; }
}
@media (max-width: 520px) {
  .jld-heading { align-items: flex-start; gap: 12px; }
  .jld-heading h1 { flex-basis: 100%; }
  .jld-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .jld-kpi-head { min-height: 0; }
  .jld-kpi-accent { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto); column-gap: 8px; align-items: center; }
  .jld-kpi-accent .jld-kpi-value { grid-row: 1/3; grid-column: 2; margin: 0; text-align: right; }
  .jld-kpi-accent small { margin-top: 3px; }
  .jld-chart-panel { padding-inline: 10px; }
  .jld-chart-panel .jld-section-heading { padding-inline: 3px; }
  .jld-axis { font-size: 9px; }
  .jld-plot-labels { font-size: 9px; }
  .jld-bar { width: 65%; }
  .jld-calendar-panel { padding: 13px 10px; }
  .jld-month-nav { gap: 4px; margin-left: auto; }
  .jld-month-nav > span { min-width: 93px; }
  .jld-icon-btn { min-width: 36px; min-height: 36px; }
  .jld-weekday { padding: 6px; font-size: 10px; }
  .jld-day { padding: 3px; min-height: 53px; }
  .jld-day-number { font-size: 12px; }
  .jld-outside { min-height: 53px; }
  .jld-count-full { display: none; }
  .jld-count-short { display: inline; }
  .jld-day-count { padding: 2px 4px; gap: 3px; }
  .jld-day-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .jld-day-table, .jld-day-table tbody, .jld-day-table tr { display: block; }
  .jld-day-table tr { border-top: 1px solid var(--jld-rule); padding-block: 7px; }
  .jld-day-table td { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border: 0; text-align: right; }
  .jld-day-table td[data-label]::before { content: attr(data-label); font-size: 12px; color: var(--jld-muted); font-weight: 400; }
  .jld-day-table td:last-child { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .jld-bar { transition: none; }
}
