:root {
  color-scheme: dark;
  --bg: #0c1219;
  --surface: #141e28;
  --surface-2: #192633;
  --surface-3: #223140;
  --text: #eff5f7;
  --muted: #8fa0ad;
  --muted-2: #657785;
  --line: rgba(203, 220, 231, .09);
  --accent: #c6f36c;
  --accent-ink: #192313;
  --blue: #7ab9ed;
  --cyan: #75d3c4;
  --danger: #fa8d91;
  --shadow: 0 18px 55px rgba(0, 0, 0, .23);
  --radius: 22px;
  --tg-bg: var(--bg);
  --tg-text: var(--text);
  --tg-hint: var(--muted);
  --tg-button: var(--accent);
  --tg-button-text: var(--accent-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; overflow-x: hidden; background: radial-gradient(ellipse at 20% -8%, rgba(74, 119, 143, .18), transparent 34%), radial-gradient(ellipse at 100% 28%, rgba(94, 131, 80, .09), transparent 26%), var(--bg); }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
.ambient { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(70px); opacity: .15; z-index: 0; }
.ambient-one { width: 210px; height: 210px; background: #8bc8a8; top: 22%; right: -160px; }
.ambient-two { width: 180px; height: 180px; background: #5289ca; bottom: 8%; left: -150px; }
.shell { width: min(100%, 980px); min-height: 100dvh; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 20px calc(100px + env(safe-area-inset-bottom)); position: relative; z-index: 1; }
.topbar { height: 54px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; color: var(--accent); display: grid; place-items: center; border: 1px solid rgba(198,243,108,.28); border-radius: 13px; background: linear-gradient(145deg, rgba(198,243,108,.12), rgba(198,243,108,.025)); box-shadow: 0 5px 20px rgba(198,243,108,.06); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-name { font-size: 12px; letter-spacing: .19em; font-weight: 850; }
.brand-caption { font-size: 10px; color: var(--muted); margin-top: 2px; letter-spacing: .02em; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); color: var(--muted); transition: .18s ease; }
.icon-button:active { transform: scale(.95); background: var(--surface-3); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main-content { position: relative; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.eyebrow { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .17em; line-height: 1.5; }
h1, h2, p { margin: 0; }
h1 { margin-top: 5px; font-size: clamp(25px, 6vw, 31px); letter-spacing: -.045em; line-height: 1.1; font-weight: 760; }
h2 { margin-top: 3px; font-size: 18px; letter-spacing: -.035em; font-weight: 720; }
.month-pill { white-space: nowrap; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: var(--muted); font-size: 11px; background: rgba(255,255,255,.025); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(198,243,108,.7); }
.month-switcher { display: flex; align-items: center; justify-content: space-between; margin: 0 0 15px; padding: 0 2px; }
.month-current { text-align: center; display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; }
.month-current small { font-size: 10px; color: var(--muted-2); font-weight: 500; }
.month-arrow { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); display: grid; place-items: center; }
.month-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-card { border-radius: 25px; padding: 21px 21px 17px; overflow: hidden; position: relative; background: linear-gradient(128deg, #233a37 0%, #1b2d32 49%, #192733 100%); border: 1px solid rgba(186, 226, 180, .15); box-shadow: 0 20px 48px rgba(0,0,0,.23); margin-bottom: 13px; }
.hero-glow { position: absolute; width: 210px; height: 210px; right: -75px; top: -128px; border-radius: 50%; background: #b4f06f; filter: blur(65px); opacity: .28; pointer-events: none; }
.hero-topline, .hero-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hero-label { font-size: 9px; letter-spacing: .16em; font-weight: 800; color: #b3c9c3; }
.hero-period { font-size: 8px; letter-spacing: .11em; color: #91aaa3; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 8px; }
.hero-total { position: relative; font-size: clamp(33px, 9vw, 46px); line-height: 1.1; letter-spacing: -.055em; font-weight: 780; margin-top: 19px; overflow-wrap: anywhere; }
.hero-currency { position: relative; font-size: 11px; color: #a9c0b9; margin-top: 6px; }
.conversion-list { position: relative; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.conversion-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 10px; background: rgba(5, 14, 18, .22); border: 1px solid rgba(255,255,255,.08); font-size: 10px; color: #dce8df; }
.conversion-chip b { color: #d0f28e; font-size: 10px; font-weight: 750; }
.hero-divider { height: 1px; background: rgba(255,255,255,.1); margin: 17px 0 13px; }
.hero-foot > div { display: flex; flex-direction: column; gap: 3px; }
.hero-foot span { color: #99b2a9; font-size: 10px; }
.hero-foot strong { font-size: 12px; font-weight: 700; }
.text-button, .subtle-link { border: 0; background: transparent; color: var(--accent); font-size: 11px; padding: 8px 0 8px 8px; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 13px; }
.metric-card { min-width: 0; padding: 13px 12px 12px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(26,39,51,.95), rgba(18,28,38,.95)); }
.metric-card.metric-accent { border-color: rgba(198,243,108,.19); }
.metric-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; margin-bottom: 10px; }
.metric-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-days { color: var(--accent); background: rgba(198,243,108,.1); }
.icon-units { color: var(--blue); background: rgba(122,185,237,.12); }
.icon-hours { color: var(--cyan); background: rgba(117,211,196,.1); }
.metric-value { font-size: clamp(19px, 5vw, 25px); line-height: 1; letter-spacing: -.05em; font-weight: 760; overflow: hidden; text-overflow: ellipsis; }
.metric-caption { font-size: 9px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(23,34,45,.97), rgba(17,27,37,.97)); padding: 18px 17px; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.chart-panel { margin-bottom: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.chart-legend { color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.activity-chart { width: 100%; height: 126px; position: relative; overflow: hidden; }
.activity-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-grid-line { stroke: rgba(167,190,201,.11); stroke-dasharray: 3 5; stroke-width: 1; }
.chart-bar { fill: rgba(198,243,108,.75); rx: 3; }
.chart-bar.strong { fill: var(--accent); }
.chart-label { fill: var(--muted-2); font-size: 9px; }
.chart-empty { color: var(--muted-2); font-size: 11px; display: grid; place-items: center; height: 100%; }
.chart-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.chart-footer span:first-child::before, .chart-footer span:last-child::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin: 0 6px 1px 0; background: var(--accent); }
.chart-footer span:last-child::before { background: var(--blue); }
.section-block { margin: 0 0 20px; }
.subtle-link { color: var(--muted); font-size: 10px; }
.shift-list { display: flex; flex-direction: column; gap: 8px; }
.shift-row { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: rgba(22,33,44,.82); padding: 12px; transition: background .15s, transform .15s; }
.shift-row:active { transform: scale(.99); background: var(--surface-2); }
.shift-date-badge { flex: 0 0 43px; height: 46px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 12px; background: rgba(198,243,108,.08); color: var(--accent); }
.shift-date-badge strong { font-size: 15px; line-height: 1.1; }
.shift-date-badge small { font-size: 8px; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.shift-main { min-width: 0; flex: 1; }
.shift-main strong { display: block; font-size: 12px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shift-main small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shift-end { text-align: right; flex: 0 0 auto; }
.shift-end strong { display: block; font-size: 11px; color: var(--text); }
.shift-end small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 4px; }
.empty-card { border: 1px dashed rgba(160,180,190,.2); border-radius: 17px; padding: 23px 16px; color: var(--muted); text-align: center; font-size: 11px; background: rgba(255,255,255,.015); }
.empty-card .empty-symbol { font-size: 25px; color: var(--accent); margin-bottom: 8px; }
.page-heading { padding: 3px 0 14px; }
.page-heading h1 { font-size: 27px; }
.page-heading p { color: var(--muted); font-size: 11px; margin-top: 7px; }
.report-summary { margin-bottom: 12px; }
.report-total-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; }
.report-total-row strong { font-size: 26px; letter-spacing: -.04em; }
.report-total-row span { font-size: 10px; color: var(--muted); }
.report-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 12px 0 20px; }
.report-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 13px; }
.report-kpi span { display: block; color: var(--muted); font-size: 9px; margin-bottom: 7px; }
.report-kpi strong { font-size: 17px; }
.page-actions { display: flex; gap: 9px; margin: 12px 0 17px; }
.primary-button, .secondary-button { min-height: 46px; border-radius: 14px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; font-size: 12px; font-weight: 750; transition: transform .15s, opacity .15s; }
.primary-button { background: var(--accent); color: var(--accent-ink); box-shadow: 0 7px 20px rgba(198,243,108,.13); }
.secondary-button { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.primary-button:active, .secondary-button:active { transform: scale(.98); }
.page-actions > button { flex: 1; }
.settings-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface); margin-bottom: 11px; }
.settings-card h3 { font-size: 13px; margin: 0 0 4px; }
.settings-card p { font-size: 10px; color: var(--muted); margin-bottom: 13px; }
.field-label { display: block; font-size: 10px; color: var(--muted); font-weight: 650; margin: 12px 0 6px; }
.field { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5,12,18,.35); color: var(--text); padding: 0 12px; font-size: 13px; color-scheme: dark; }
.field:focus { border-color: rgba(198,243,108,.5); outline: 0; box-shadow: 0 0 0 3px rgba(198,243,108,.08); }
.currency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.currency-option { min-height: 38px; border-radius: 11px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02); font-size: 10px; font-weight: 650; }
.currency-option.selected { color: var(--accent); border-color: rgba(198,243,108,.35); background: rgba(198,243,108,.08); }
.settings-save { width: 100%; margin-top: 14px; }
.fab { position: fixed; z-index: 10; right: max(20px, calc((100vw - 940px) / 2)); bottom: calc(82px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 49px; border: 0; border-radius: 999px; padding: 0 19px; color: var(--accent-ink); background: var(--accent); font-size: 12px; font-weight: 800; box-shadow: 0 9px 28px rgba(0,0,0,.35), 0 5px 18px rgba(198,243,108,.18); transition: transform .16s; }
.fab:active { transform: scale(.96); }
.fab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bottom-nav { position: fixed; z-index: 9; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 980px); display: flex; justify-content: space-around; padding: 10px 13px calc(10px + env(safe-area-inset-bottom)); background: rgba(12,18,25,.93); border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav-item { min-width: 65px; border: 0; background: transparent; color: #71828e; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 9px; padding: 2px 7px; transition: color .16s; }
.nav-item svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: var(--accent); }
.nav-item.active svg { filter: drop-shadow(0 0 5px rgba(198,243,108,.25)); }
.loading-state, .error-state { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); gap: 13px; }
.loading-state p, .error-state p { font-size: 12px; }
.loading-orbit { width: 37px; height: 37px; border: 2px solid rgba(198,243,108,.15); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(250,141,145,.1); color: var(--danger); font-size: 21px; font-weight: 800; }
.error-state h1 { font-size: 22px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.58); backdrop-filter: blur(7px); display: flex; align-items: flex-end; justify-content: center; animation: fade-in .16s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: min(100%, 580px); max-height: min(92dvh, 780px); overflow-y: auto; overscroll-behavior: contain; border-radius: 25px 25px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); background: #17232e; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 -18px 55px rgba(0,0,0,.4); animation: sheet-in .23s cubic-bezier(.2,.8,.2,1); }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.sheet-handle { width: 36px; height: 4px; border-radius: 99px; background: rgba(200,215,225,.25); margin: 0 auto 17px; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.sheet-header h2 { font-size: 21px; }
.close-modal { font-size: 24px; border: 0; background: rgba(255,255,255,.05); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note-field { min-height: 75px; resize: vertical; padding: 11px 12px; }
.overnight-toggle { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; padding: 12px 0 4px; }
.overnight-toggle input { accent-color: var(--accent); width: 15px; height: 15px; }
.preset-heading { margin-top: 15px; font-size: 10px; color: var(--muted); font-weight: 700; }
.preset-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 8px; }
.preset-button { min-height: 49px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 11px; color: var(--text); font-size: 12px; font-weight: 750; }
.preset-button small { display: block; color: var(--muted-2); font-size: 8px; font-weight: 500; margin-top: 3px; }
.preset-button:active, .preset-button.selected { border-color: rgba(198,243,108,.4); color: var(--accent); background: rgba(198,243,108,.08); }
.optional { font-size: 9px; color: var(--muted-2); font-weight: 400; margin-left: 4px; }
.form-error { color: var(--danger); font-size: 10px; margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(250,141,145,.08); }
.sheet-actions { display: flex; gap: 9px; margin-top: 17px; }
.sheet-actions button { flex: 1; }
.delete-button { margin-top: 10px; width: 100%; min-height: 40px; border: 1px solid rgba(250,141,145,.18); border-radius: 12px; background: rgba(250,141,145,.07); color: var(--danger); font-size: 11px; }
.toast { position: fixed; z-index: 40; bottom: calc(82px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 15px); background: #e6f4d1; color: #1a2713; border-radius: 999px; padding: 11px 15px; font-size: 11px; font-weight: 700; max-width: calc(100vw - 30px); text-align: center; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.light-theme { --bg: #f3f6f8; --surface: #ffffff; --surface-2: #f6f8f9; --surface-3: #e8eef0; --text: #17232c; --muted: #697b86; --muted-2: #93a1a8; --line: rgba(34,57,70,.1); --shadow: 0 18px 55px rgba(35,58,75,.12); }
.light-theme body { background: radial-gradient(ellipse at 20% -8%, rgba(100,170,150,.14), transparent 34%), var(--bg); }
.light-theme .hero-card { background: linear-gradient(128deg, #294b43, #213c40 55%, #253a49); }
.light-theme .metric-card, .light-theme .panel, .light-theme .shift-row, .light-theme .settings-card { background: #fff; }
.light-theme .bottom-nav { background: rgba(250,252,253,.92); border-top-color: rgba(31,58,70,.1); }
.light-theme .sheet { background: #fff; border-color: rgba(31,58,70,.12); }
.light-theme .field { background: #f7f9fa; color-scheme: light; color: #17232c; }
.light-theme .preset-button { background: #f7f9fa; color: #17232c; }
.light-theme .toast { background: #243d35; color: #efffe0; }
@media (min-width: 700px) {
  .shell { padding-left: 32px; padding-right: 32px; }
  .hero-card { padding: 26px 27px 20px; }
  .metric-grid { gap: 13px; }
  .metric-card { padding: 17px; }
  #appContent { display: grid; grid-template-columns: 1.25fr .75fr; column-gap: 16px; align-items: start; }
  .welcome-row, .month-switcher, .hero-card, .metric-grid { grid-column: 1 / -1; }
  .chart-panel { grid-column: 1 / 2; }
  .section-block { grid-column: 2 / 3; }
  .bottom-nav { border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; width: 460px; }
  .fab { right: calc(50% - 450px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.custom-currency-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.custom-currency-row .field { min-width: 0; }
.custom-currency-row .secondary-button { min-height: 42px; padding: 0 12px; font-size: 10px; }


/* Report details */
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.conversion-table { display: flex; flex-direction: column; gap: 0; }
.report-conversion { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.report-conversion:last-child { border-bottom: 0; padding-bottom: 2px; }
.report-conversion:first-child { padding-top: 2px; }
.report-conversion > span { display: flex; flex-direction: column; gap: 4px; color: var(--text); font-size: 12px; font-weight: 700; }
.report-conversion small { color: var(--muted-2); font-size: 9px; font-weight: 450; }
.report-conversion > strong { text-align: right; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.day-list { display: flex; flex-direction: column; gap: 8px; }
.day-summary { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.day-summary > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.day-summary > div:nth-child(2) { text-align: right; }
.day-summary strong { font-size: 11px; font-weight: 720; }
.day-summary small { color: var(--muted); font-size: 9px; }
.day-summary .day-units { min-width: 42px; text-align: right; color: var(--accent); font-size: 15px; font-weight: 800; }
.day-summary .day-units small { display: block; color: var(--muted-2); font-size: 8px; font-weight: 500; }
.page-actions { align-items: center; }
.page-actions .primary-button { min-height: 48px; width: 100%; }

/* Calendar */
.calendar-panel { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); padding: 15px; margin: 0 0 20px; }
.calendar-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.calendar-topline h2 { font-size: 15px; }
.calendar-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.calendar-legend i, .calendar-day i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(198,243,108,.35); }
.month-calendar { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 5px; }
.calendar-weekday { text-align: center; color: var(--muted-2); font-size: 9px; font-weight: 700; padding: 4px 0 7px; }
.calendar-blank { min-height: 39px; }
.calendar-day { position: relative; min-width: 0; min-height: 39px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid transparent; border-radius: 11px; background: rgba(255,255,255,.018); color: var(--text); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s, transform .15s; }
.calendar-day.weekend { color: var(--muted); }
.calendar-day.has-shift { background: rgba(198,243,108,.075); color: var(--accent); }
.calendar-day.selected { border-color: var(--accent); background: rgba(198,243,108,.15); box-shadow: inset 0 0 0 1px rgba(198,243,108,.12); }
.calendar-day:active { transform: scale(.94); }
.calendar-day i { width: 4px; height: 4px; }
.shift-list-heading { margin-top: 5px; }
@media (max-width: 360px) {
  .calendar-panel { padding: 11px; }
  .month-calendar { gap: 3px; }
  .calendar-day { min-height: 35px; border-radius: 9px; }
  .day-summary { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 6px; padding: 10px; }
}
