/* Daily priorities, responsive navigation, and direct exploration of real records. */
:root { --motion: cubic-bezier(.2,.8,.2,1); }
@media (min-width:701px) {
  main { transition: margin-left .3s var(--motion); }
  #app:has(.sidebar:hover) main, #app:has(.sidebar:focus-within) main, .nav-pinned main { margin-left:276px; }
}
.topbar { gap:18px; }
.header-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.header-actions button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; }
.header-actions .nav-icon { width:20px; height:20px; }
.daily-hero { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:22px; margin-bottom:22px; }
.daily-hero .card { margin:0; }
.priorities { display:flex; flex-direction:column; }
.priority-row { display:flex; width:100%; align-items:center; gap:16px; text-align:left; border-radius:12px; padding:15px 8px; border-bottom:1px solid #edeff1; background:transparent; transition:background .2s,transform .2s; }
.priority-row:hover { background:#f2f4f7; transform:translateX(3px); }
.priority-row>span:nth-child(2) { flex:1; min-width:0; }
.priority-row strong { display:block; color:#25434a; font-size:15px; overflow-wrap:anywhere; }
.priority-row small { display:block; color:#828991; margin-top:5px; font-size:12px; }
.priority-row time,.priority-check { min-width:46px; font-size:17px; color:#2b5486; font-weight:600; }
.priority-check { font-size:26px; }
.priority-row .pill { flex-shrink:0; font-size:11px; }
.priority-arrow { color:#738192; }
.card-bottom { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #e9ebee; padding-top:14px; margin-top:20px; }
.priorities .card-bottom { margin-top:auto; }
.free-time { background:linear-gradient(135deg,#e9eef5,#f8fafc); border-color:#cfd9e6; }
.free-number { font-size:64px; line-height:1.2; color:#24374e; font-weight:650; letter-spacing:-3px; margin:8px 0; }
.free-number>span { font-size:15px; font-weight:500; letter-spacing:0; margin-left:12px; color:#6e7783; }
.slot-buttons { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:10px; margin:20px 0; }
.slot-button { text-align:left; padding:13px 15px; border:1px solid #cfd8e2; border-radius:14px; color:#34465d; background:rgba(255,255,255,.8); transition:transform .2s,box-shadow .2s; }
.slot-button:hover { transform:translateY(-3px); box-shadow:0 7px 16px #22354c10; }
.slot-button strong { font-size:15px; font-variant-numeric:tabular-nums; }
.slot-button small { display:flex; justify-content:space-between; margin-top:7px; font-size:11px; color:#7f8892; }
.draft-nudge { display:flex; justify-content:space-between; gap:12px; width:100%; text-align:left; padding:18px 22px; margin:0 0 20px; border-radius:16px; color:#705825; background:#fbf4df; }
.gpt-nudge { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:20px 24px; background:#eaedf1; border:1px solid #d9dfe6; border-radius:20px; margin:0 0 24px; }
.gpt-nudge strong { font-size:16px; }
.gpt-nudge p { font-size:12px; color:#778391; margin:6px 0 0; }
.gpt-nudge button { flex-shrink:0; }
.finance-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:15px; margin-bottom:22px; }
.period-switch { display:flex; align-items:center; gap:8px; }
.period-switch>button { min-height:44px; }
.period-switch>button:first-child,.period-switch>button:last-child { font-size:24px; width:36px; padding:4px; }
.period-button { display:flex; align-items:center; gap:12px; font-size:20px; font-weight:600; color:#2a394c; background:transparent; }
.finance-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.finance-stats .stat-box { text-align:left; background:#fff; margin:0; border-radius:20px; padding:22px; transition:transform .2s,box-shadow .2s; }
.finance-stats .stat-box:hover { transform:translateY(-4px); box-shadow:0 12px 30px #23354b10; }
.finance-stats .stat-box strong { display:block; font-size:30px; margin:13px 0; overflow-wrap:anywhere; }
.finance-stats .stat-box>span { display:flex; justify-content:space-between; color:#828b96; font-size:11px; }
.finance-stats .stat-box:first-child { background:#21354d; color:#fff; border-color:#21354d; }
.finance-stats .stat-box:first-child small,.finance-stats .stat-box:first-child span { color:#c2ccd8; }
.balance-note { margin:16px 0 24px; }
.chart-carousel { overflow:hidden; margin-bottom:22px; }
.chart-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:5px 0 22px; }
.chart-tab { border-radius:99px; padding:9px 16px; font-size:12px; color:#7a828c; background:#f2f4f6; min-height:40px; transition:background .2s,color .2s; }
.chart-tab.active { color:#fff; background:#2c507c; }
.carousel-arrows button { min-width:44px; min-height:44px; padding:8px 13px; }
.chart-stage { min-height:290px; touch-action:pan-y; }
.chart-stage .chart { margin:0; }
.chart-options { display:flex; justify-content:flex-end; margin-bottom:12px; }
.chart-options label { min-width:170px; }
.chart .pie-layout { grid-template-columns:minmax(145px,320px) minmax(0,1fr); align-items:center; }
.chart .pie-layout>svg { width:100%; max-width:320px; max-height:320px; margin:auto; }
.chart .pie-legend { display:block; min-width:0; }
.carousel-footer { display:flex; justify-content:space-between; gap:15px; align-items:center; margin-top:15px; }
.carousel-count { flex-shrink:0; font-size:12px; color:#6d7c8e; font-variant-numeric:tabular-nums; }
.chart-loading { display:grid; min-height:230px; place-items:center; color:#838c96; }
.chart [role="button"] { cursor:pointer; transition:filter .2s,opacity .2s,transform .3s var(--motion); }
.chart .chart-selected { filter:drop-shadow(0 3px 4px #18314f40); }
.chart circle.chart-selected { stroke:#1e3e66; stroke-width:3px; }
.chart [role="button"]:focus-visible { outline:2px solid #3c608c; outline-offset:3px; }
.pie-legend>button { display:grid; grid-template-columns:10px minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px 9px; width:100%; font-size:12px; text-align:left; border-radius:9px; background:transparent; }
.pie-legend>button.chart-selected,.pie-legend>button:hover { background:#ecf0f4; }
.pie-legend>button>i { width:8px; height:8px; border-radius:50%; }
.pie-legend>button>strong { text-align:right; font-weight:600; }
.category-summary { margin-bottom:22px; }
.category-summary th:not(:first-child),.category-summary td:not(:first-child) { text-align:right; }
.category-summary td button { display:inline-flex; align-items:center; gap:10px; padding:10px 0; color:#314359; }
.category-dot { width:8px; height:8px; border-radius:50%; display:inline-block; flex-shrink:0; }
.share-cell { display:flex; justify-content:flex-end; align-items:center; gap:12px; font-variant-numeric:tabular-nums; }
.share-track { display:block; width:72px; height:5px; border-radius:6px; background:#ebeef1; overflow:hidden; }
.share-track>i { height:100%; display:block; background:#6b85a5; border-radius:6px; }
.finance-options { margin-bottom:22px; }
.finance-options>summary { cursor:pointer; font-weight:600; color:#3a4757; }
.finance-options>summary>span { float:right; color:#899099; font-size:12px; }
.finance-options-body { padding-top:16px; }
.finance-options .fixed-list>div { flex-wrap:wrap; }
.finance-options .fixed-list small { display:block; }
.quick-dialog { max-width:900px; width:calc(100% - 32px); }
.quick-dialog .composer { padding:12px 0; border:0; box-shadow:none; margin:0; background:transparent; }
.quick-dialog .composer .section-heading h2 { font-size:21px; }
.quick-dialog .composer .section-heading>.pill { display:none; }
.quick-dialog .record-grid { grid-template-columns:1fr; }
.quick-dialog .draft-area { margin-top:10px; }
.detail-sheet { position:fixed; inset:0 0 0 auto; margin:0; height:100dvh; max-height:100dvh; width:min(660px,100%); max-width:100%; border-radius:28px 0 0 28px; padding:0 26px 28px; }
.detail-sheet[open] { animation:drawer-enter .32s var(--motion); }
.detail-sticky { position:sticky; top:0; background:rgba(255,255,255,.97); z-index:2; padding:25px 0 14px; border-bottom:1px solid #e9ebee; margin-bottom:18px; }
.detail-sticky .dialog-heading { margin-bottom:8px; }
.detail-sticky h2 { font-size:22px; overflow-wrap:anywhere; }
.detail-sheet .record-card { margin-bottom:14px; }
.detail-sheet .pagination { justify-content:space-between; gap:10px; font-size:12px; }
.detail-sheet .pagination button { min-height:44px; }
.gpt-dialog { max-width:580px; }
.gpt-status { display:inline-flex; gap:9px; align-items:center; border-radius:30px; padding:9px 14px; background:#f3eddf; color:#8b713b; font-size:12px; margin:0 0 16px; }
.gpt-status.connected { background:#e9eef4; color:#4f6580; }
.gpt-steps { margin:22px 0; }
.gpt-steps>div { display:flex; align-items:flex-start; gap:14px; margin:18px 0; }
.gpt-steps b { width:28px; height:28px; flex-shrink:0; display:grid; place-items:center; border-radius:50%; background:#e8edf3; color:#55667b; font-size:12px; }
.gpt-steps span { font-size:14px; }
.gpt-steps small { display:block; font-size:11px; color:#848b94; line-height:1.7; margin-top:5px; }
.gpt-open { display:flex; justify-content:center; text-decoration:none; padding:14px 18px; border-radius:12px; }
.gpt-first-setup { margin-top:22px; font-size:13px; }
.gpt-first-setup summary { cursor:pointer; }
@keyframes drawer-enter { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes sheet-enter { from { opacity:0; transform:translateY(35px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:1050px) {
  .finance-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .daily-hero { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  main { margin-left:0!important; }
  .workspace-line { margin-bottom:20px; }
  .topbar { align-items:center; gap:8px; margin-bottom:26px; }
  .topbar h1 { font-size:25px; }
  .topbar .eyebrow { font-size:10px; letter-spacing:.04em; }
  .header-actions { gap:7px; }
  .topbar .header-actions button { min-height:44px; padding:10px; font-size:12px; gap:6px; }
  .header-actions .calendar-shortcut { padding:10px 11px; }
  .header-actions .quick-shortcut { width:44px; font-size:20px; }
  .header-actions .quick-label { display:none; }
  .welcome-strip { margin-bottom:18px; }
  .welcome-strip p { display:none; }
  .daily-hero { gap:16px; }
  .daily-hero .card { padding:22px; }
  .daily-hero h2 { font-size:19px; }
  .priority-row { gap:10px; padding:14px 0; }
  .priority-row time,.priority-check { min-width:38px; font-size:15px; }
  .priority-row .pill { font-size:10px; padding:4px 7px; }
  .priority-row strong { font-size:14px; }
  .free-number { font-size:54px; }
  .gpt-nudge { padding:18px; flex-wrap:wrap; gap:12px; }
  .gpt-nudge button { width:100%; }
  .finance-heading { gap:12px; }
  .finance-heading>.row { width:100%; justify-content:flex-end; }
  .finance-heading>.row button { min-height:44px; }
  .finance-stats { gap:10px; }
  .finance-stats .stat-box { padding:18px 15px; border-radius:16px; }
  .finance-stats .stat-box strong { font-size:25px; }
  .chart-carousel { padding:22px 16px; }
  .chart-carousel .section-heading h2 { font-size:19px; }
  .chart-carousel .eyebrow { font-size:9px; }
  .chart-tabs { gap:5px; margin-bottom:18px; }
  .chart-tab { padding:8px 11px; font-size:11px; }
  .chart-stage { min-height:230px; }
  .chart .pie-layout { gap:12px; }
  .chart .pie-layout { grid-template-columns:minmax(110px,1fr) minmax(0,1fr); }
  .share-track { display:none; }
  .category-summary { padding:22px 16px; }
  .category-summary th,.category-summary td { font-size:12px; padding:10px 8px; }
  .detail-sheet { inset:auto 0 0; height:90dvh; max-height:90dvh; width:100%; border-radius:24px 24px 0 0; padding:0 18px 20px; }
  .detail-sheet[open] { animation:sheet-enter .3s var(--motion); }
  .quick-dialog { width:calc(100% - 20px); padding:20px; }
  .quick-dialog .composer-footer { flex-direction:column; align-items:stretch; }
  .quick-dialog .composer-footer>.row { justify-content:flex-end; }
  .quick-dialog .section-heading { display:block; }
  .finance-options>summary { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
