﻿  :root {
    --bg: #F0F3FA; --surface: #FFFFFF; --surface-warm: #FAFAF8;
    --ink: #1C1830; --ink-mid: #4A475E; --ink-light: #8A87A0;
    --sage: #1A6FD4; --sage-mid: #5B9BF0; --sage-light: #A8C8F0; --sage-pale: #EEF4FF;
    --rust: #E05C2C; --rust-pale: #FFF1EC;
    --gold: #D4A820; --gold-mid: #EFC84A; --gold-pale: #FFF8DA;
    --border: #E4E7F2;
    --sh-xs: 0 1px 4px rgba(28,24,48,0.06);
    --sh-sm: 0 2px 12px rgba(28,24,48,0.08);
    --sh-md: 0 4px 24px rgba(28,24,48,0.11);
    --r-pill: 100px; --r-lg: 22px; --r-md: 16px; --r-sm: 10px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'DM Sans', sans-serif; background: linear-gradient(150deg,#F0F3FA 0%,#EBF0FA 50%,#EEF4FF 100%); background-attachment: fixed; color: var(--ink); height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

  /* ── Header ── */
  header { background: #ffffff; color: #1a1a2e; padding: 11px 24px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; box-shadow: 0 2px 12px rgba(26,111,212,0.12); position: relative; z-index: 10; border-bottom: 1px solid #e8eef8; }
  header::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent 5%,rgba(26,111,212,0.5) 35%,rgba(26,111,212,0.9) 50%,rgba(26,111,212,0.5) 65%,transparent 95%); }
  .logo { font-family:'DM Serif Display',serif; font-size:1.4rem; color:#1a1a2e; display:flex; align-items:center; gap:7px; }
  .logo-pill { display:inline-block; background:linear-gradient(135deg,#5B9BF0,#1A6FD4); color:#fff; padding:2px 12px 3px; border-radius:var(--r-pill); font-style:italic; font-size:1.35rem; box-shadow:0 3px 10px rgba(26,111,212,0.45); }
  .logo-word { color:#1A6FD4; font-style:italic; }
  .header-actions { display:flex; gap:8px; align-items:center; }
  .loc-switcher { font-family:'DM Sans',sans-serif; font-size:0.8rem; font-weight:600; padding:7px 14px; border:1.5px solid var(--sage-light); border-radius:var(--r-pill); background:var(--sage-pale); color:var(--sage); cursor:pointer; outline:none; transition:all 0.2s; }
  .loc-switcher:hover { border-color:var(--sage); }
  .loc-switcher:focus { border-color:var(--sage); box-shadow:0 0 0 3px rgba(26,111,212,0.15); }
  .btn-header { font-family:'DM Sans',sans-serif; font-size:0.77rem; font-weight:500; padding:7px 16px; border-radius:var(--r-pill); cursor:pointer; border:none; transition:all 0.2s; letter-spacing:0.2px; }
  .btn-upload { background:transparent; color:#1A6FD4; border:1.5px solid #d0ddf5; }
  .btn-upload:hover { background:rgba(26,111,212,0.08); border-color:#1A6FD4; color:#1A6FD4; }
  .btn-export-main { background:linear-gradient(135deg,#5B9BF0,#1A6FD4); color:white; box-shadow:0 3px 10px rgba(26,111,212,0.35); }
  .btn-export-main:hover { box-shadow:0 5px 16px rgba(26,111,212,0.45); transform:translateY(-1px); }
  .btn-export-main:disabled { background:var(--border); box-shadow:none; cursor:not-allowed; color:var(--ink-light); transform:none; }

  /* ── Grid ── */
  .app { flex:1; display:grid; grid-template-columns:276px 1fr 316px; min-height:0; transition:grid-template-columns 0.25s ease; }
  .app.sidebar-collapsed { grid-template-columns:0px 1fr 316px; }
  .app.timesheet-collapsed { grid-template-columns:276px 1fr 0px; }
  .app.sidebar-collapsed.timesheet-collapsed { grid-template-columns:0px 1fr 0px; }

  /* ── Sidebar ── */
  .sidebar { background:var(--surface); border-right:1px solid var(--border); display:flex; flex-direction:column; overflow:hidden; position:relative; transition:min-width 0.25s ease; }
  .sidebar-section { padding:18px 16px 12px; border-bottom:1px solid var(--border); display:flex; align-items:flex-start; justify-content:space-between; }
  .sidebar-section-text { display:flex; flex-direction:column; gap:2px; }
  .btn-sidebar-collapse { background:none; border:1px solid var(--border); border-radius:6px; width:24px; height:24px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-light); flex-shrink:0; transition:all 0.2s; padding:0; }
  .btn-sidebar-collapse:hover { border-color:#1A6FD4; color:#1A6FD4; background:var(--sage-pale); }
  .chat-expand-tab { position:absolute; top:11px; background:var(--surface); border:1px solid var(--border); width:20px; height:28px; display:none; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-light); z-index:10; transition:all 0.2s; }
  .chat-expand-tab:hover { color:#1A6FD4; border-color:#1A6FD4; }
  .sidebar-expand-tab { left:0; border-left:none; border-radius:0 6px 6px 0; }
  .ts-expand-tab { right:0; border-right:none; border-radius:6px 0 0 6px; }
  .app.sidebar-collapsed .sidebar-expand-tab { display:flex; }
  .app.timesheet-collapsed .ts-expand-tab { display:flex; }
  .sidebar-title { font-family:'DM Serif Display',serif; font-size:0.95rem; color:var(--ink); margin-bottom:2px; }
  .sidebar-sub { font-size:0.7rem; color:var(--ink-light); }
  .category-list { flex:1; overflow-y:auto; padding:10px; display:flex; flex-direction:column; gap:6px; }
  .category-chip { display:flex; align-items:center; background:var(--bg); border:none; border-radius:var(--r-pill); padding:8px 12px 8px 10px; font-size:0.79rem; box-shadow:var(--sh-xs); transition:box-shadow 0.2s, transform 0.15s; }
  .category-chip:hover { box-shadow:var(--sh-sm); transform:translateY(-1px); }
  .chip-dot { width:8px; height:8px; border-radius:50%; margin-right:9px; flex-shrink:0; }
  .chip-name { flex:1; font-weight:500; color:var(--ink); }
  .chip-delete { background:none; border:none; cursor:pointer; color:var(--ink-light); font-size:1rem; transition:all 0.2s; opacity:0.4; padding:0 2px; }
  .chip-delete:hover { color:var(--rust); opacity:1; }
  .add-category { padding:10px; border-top:1px solid var(--border); display:flex; gap:7px; }
  .add-category input { flex:1; padding:8px 14px; border:1.5px solid var(--border); border-radius:var(--r-pill); background:var(--bg); font-family:'DM Sans',sans-serif; font-size:0.78rem; outline:none; transition:border-color 0.2s,box-shadow 0.2s; color:var(--ink); }
  .add-category input:focus { border-color:var(--sage); box-shadow:0 0 0 3px rgba(26,111,212,0.12); }
  .btn-add { background:linear-gradient(135deg,#5B9BF0,#1A6FD4); color:white; border:none; border-radius:var(--r-pill); padding:8px 14px; font-size:0.78rem; font-family:'DM Sans',sans-serif; cursor:pointer; font-weight:500; box-shadow:0 2px 8px rgba(26,111,212,0.3); transition:all 0.2s; }
  .btn-add:hover { filter:brightness(0.92); transform:translateY(-1px); box-shadow:0 4px 12px rgba(26,111,212,0.4); }
  .month-nav { padding:10px; border-top:1px solid var(--border); }
  .month-nav-title { font-size:0.67rem; font-family:'DM Mono',monospace; color:var(--ink-light); text-transform:uppercase; letter-spacing:0.8px; margin-bottom:8px; padding-left:4px; }
  .month-list { display:flex; flex-direction:column; gap:3px; max-height:180px; overflow-y:auto; }
  .month-chip { padding:7px 12px; border-radius:var(--r-pill); font-size:0.78rem; cursor:pointer; transition:all 0.15s; display:flex; justify-content:space-between; align-items:center; }
  .month-chip:hover { background:var(--sage-pale); }
  .month-chip.active { background:var(--sage-pale); color:var(--sage); font-weight:600; box-shadow:var(--sh-xs); }
  .month-chip-count { font-family:'DM Mono',monospace; font-size:0.66rem; background:rgba(26,111,212,0.14); color:var(--sage); padding:1px 7px; border-radius:var(--r-pill); }

  /* ── Chat ── */
  .chat-area { display:flex; flex-direction:column; background:linear-gradient(160deg,var(--bg) 0%,#E9EDF8 100%); overflow:hidden; position:relative; }
  .chat-messages { flex:1; overflow-y:auto; padding:20px 24px; display:flex; flex-direction:column; gap:14px; }
  .message { max-width:86%; animation:fadeUp 0.3s ease; }
  @keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
  .message.agent { align-self:flex-start; }
  .message.user  { align-self:flex-end; }
  .message-bubble { padding:12px 17px; border-radius:22px; font-size:0.86rem; line-height:1.65; box-shadow:var(--sh-xs); }
  .agent .message-bubble { background:var(--surface); border-bottom-left-radius:5px; }
  .user  .message-bubble { background:linear-gradient(135deg,#5B9BF0 0%,#1A6FD4 100%); color:rgba(255,255,255,0.95); border-bottom-right-radius:5px; }
  .message-label { font-family:'DM Mono',monospace; font-size:0.61rem; color:var(--ink-light); margin-bottom:4px; letter-spacing:0.6px; text-transform:uppercase; padding-left:4px; }
  .user .message-label { text-align:right; padding-right:4px; }
  .parsed-card { margin-top:10px; background:var(--sage-pale); border-radius:var(--r-md); padding:12px 14px; font-size:0.78rem; font-family:'DM Mono',monospace; box-shadow:0 2px 8px rgba(26,111,212,0.12); }
  .parsed-card .pc-row { display:flex; justify-content:space-between; padding:3px 0; border-bottom:1px solid var(--sage-light); }
  .parsed-card .pc-row:last-child { border-bottom:none; }
  .parsed-card .pc-label { color:var(--ink-light); }
  .parsed-card .pc-val { font-weight:500; color:var(--ink); }
  .parsed-card .pc-warn { color:var(--rust); font-weight:600; }
  .chat-input-area { padding:12px 20px 16px; border-top:1px solid var(--border); background:var(--surface); position:relative; }
  .chat-input-wrap { display:flex; gap:8px; align-items:flex-end; }
  .cat-autocomplete { display:none; position:absolute; bottom:100%; left:20px; right:20px; background:var(--surface); border:1.5px solid var(--border); border-radius:12px; box-shadow:0 -4px 16px rgba(0,0,0,0.08); max-height:180px; overflow-y:auto; z-index:50; }
  .cat-autocomplete.visible { display:block; }
  .cat-ac-item { padding:10px 16px; font-size:0.82rem; font-family:'DM Sans',sans-serif; color:var(--ink); cursor:pointer; display:flex; align-items:center; gap:8px; transition:background 0.15s; }
  .cat-ac-item:hover, .cat-ac-item.active { background:rgba(26,111,212,0.08); }
  .cat-ac-item:first-child { border-radius:12px 12px 0 0; }
  .cat-ac-item:last-child { border-radius:0 0 12px 12px; }
  .cat-ac-item:only-child { border-radius:12px; }
  .cat-ac-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
  .dash-loc-pills { display:flex; gap:6px; flex-wrap:wrap; }
  .dash-loc-pill { padding:5px 12px; border-radius:20px; font-size:0.72rem; font-family:'DM Sans',sans-serif; cursor:pointer; border:1.5px solid var(--border); background:var(--bg); color:var(--ink-light); transition:all 0.2s; white-space:nowrap; }
  .dash-loc-pill:hover { border-color:var(--sage); }
  .dash-loc-pill.active { background:linear-gradient(135deg,#5B9BF0,#1A6FD4); color:white; border-color:transparent; font-weight:600; }
  .cat-ac-match { font-weight:600; color:var(--blue,#1A6FD4); }
  .chat-input { flex:1; padding:12px 18px; border:1.5px solid var(--border); border-radius:var(--r-pill); background:var(--bg); font-family:'DM Sans',sans-serif; font-size:0.86rem; resize:none; outline:none; min-height:46px; max-height:130px; line-height:1.5; transition:border-color 0.2s,box-shadow 0.2s; color:var(--ink); }
  .chat-input:focus { border-color:var(--sage); box-shadow:0 0 0 3px rgba(26,111,212,0.12); }
  .btn-send { background:linear-gradient(135deg,#5B9BF0,#1A6FD4); color:white; border:none; border-radius:var(--r-pill); padding:11px 22px; font-family:'DM Sans',sans-serif; font-size:0.83rem; font-weight:600; cursor:pointer; transition:all 0.2s; white-space:nowrap; box-shadow:0 3px 10px rgba(26,111,212,0.35); }
  .btn-send:hover { filter:brightness(0.92); transform:translateY(-1px); box-shadow:0 5px 16px rgba(26,111,212,0.45); }
  .hint { font-size:0.69rem; color:var(--ink-light); margin-top:6px; font-family:'DM Mono',monospace; padding-left:4px; }

  /* ── Timesheet panel ── */
  .timesheet-panel { background:var(--surface-warm); border-left:1px solid var(--border); display:flex; flex-direction:column; overflow:hidden; }
  .ts-header { padding:15px 14px 11px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
  .ts-title { font-family:'DM Serif Display',serif; font-size:0.95rem; color:var(--ink); }
  .btn-panel-collapse { background:none; border:1px solid var(--border); border-radius:6px; width:24px; height:24px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-light); flex-shrink:0; transition:all 0.2s; padding:0; }
  .btn-panel-collapse:hover { border-color:#1A6FD4; color:#1A6FD4; background:var(--sage-pale); }
  .month-badge { font-family:'DM Mono',monospace; font-size:0.62rem; background:linear-gradient(135deg,var(--gold-pale),#FFF3C0); border:none; border-radius:var(--r-pill); padding:3px 11px; color:var(--gold); font-weight:600; box-shadow:0 1px 5px rgba(212,168,32,0.2); }
  .ts-entries { flex:1; overflow-y:auto; padding:10px; display:flex; flex-direction:column; gap:8px; min-height:200px; }
  .ts-entry { background:var(--surface); border:none; border-radius:var(--r-md); padding:12px; font-size:0.76rem; animation:fadeUp 0.3s ease; box-shadow:var(--sh-xs); transition:box-shadow 0.2s,transform 0.15s; }
  .ts-entry:hover { box-shadow:var(--sh-sm); transform:translateY(-1px); }
  .ts-entry-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:5px; }
  .ts-entry-header-left { display:flex; align-items:center; gap:8px; }
  .ts-entry-date { font-family:'DM Serif Display',serif; font-size:0.88rem; color:var(--ink); }
  .ts-hours-badge { font-family:'DM Mono',monospace; font-size:0.67rem; background:var(--sage-pale); color:var(--sage); border-radius:var(--r-pill); padding:2px 9px; font-weight:600; box-shadow:0 1px 4px rgba(26,111,212,0.15); }
  .ts-category-row { display:flex; justify-content:space-between; color:var(--ink-light); padding:2px 0; font-size:0.74rem; }
  .ts-menu-wrap { position:relative; }
  .ts-menu-btn { background:none; border:none; cursor:pointer; color:var(--ink-light); font-size:1rem; width:26px; height:26px; border-radius:6px; display:flex; align-items:center; justify-content:center; transition:all 0.15s; letter-spacing:1px; line-height:1; padding:0; }
  .ts-menu-btn:hover { color:var(--ink); background:var(--border); }
  .ts-entry-dropdown { position:absolute; top:30px; right:0; background:white; border:1px solid var(--border); border-radius:10px; box-shadow:0 4px 16px rgba(28,24,48,0.13); overflow:hidden; z-index:100; min-width:130px; }
  .ts-dropdown-item { display:flex; align-items:center; gap:8px; padding:9px 14px; font-size:0.8rem; cursor:pointer; transition:background 0.12s; color:var(--ink-mid); white-space:nowrap; }
  .ts-dropdown-item:hover { background:var(--sage-pale); color:var(--sage); }
  .ts-dropdown-item.ts-danger { color:var(--ink-mid); }
  .ts-dropdown-item.ts-danger:hover { background:var(--rust-pale); color:var(--rust); }
  .ts-dropdown-divider { height:1px; background:var(--border); }
  .ts-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--ink-light); font-size:0.78rem; text-align:center; padding:20px; gap:8px; }
  .ts-empty-icon { font-size:2.2rem; opacity:0.25; }
  .ts-footer { padding:10px 14px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:6px; max-height:40vh; overflow-y:auto; flex-shrink:0; }
  .footer-pill-badge { align-self:center; margin-top:6px; font-family:'DM Sans',sans-serif; font-size:0.65rem; font-weight:500; color:#fff; background:linear-gradient(135deg,#5B9BF0,#1A6FD4); padding:3px 14px; border-radius:999px; letter-spacing:0.5px; opacity:0.8; box-shadow:0 2px 8px rgba(26,111,212,0.3); }
  .ts-stats { font-family:'DM Mono',monospace; font-size:0.71rem; display:flex; flex-direction:column; gap:3px; margin-bottom:4px; }
  .ts-stat-row { display:flex; justify-content:space-between; color:var(--ink-light); }
  .ts-stat-row strong { color:var(--ink); font-weight:600; }
  .ts-stat-divider { height:1px; background:var(--border); margin:5px 0 3px; }
  .ts-stat-total { color:var(--ink) !important; }
  .ts-stat-total strong { color:#1A6FD4 !important; font-size:0.78rem; }
  .ts-stat-hint { font-size:0.68rem; color:var(--ink-light); font-style:italic; opacity:0.75; padding-top:1px; }
  .btn-clear { background:none; color:var(--ink-light); border:1.5px solid var(--border); border-radius:var(--r-pill); padding:6px; font-family:'DM Sans',sans-serif; font-size:0.74rem; cursor:pointer; transition:all 0.2s; text-align:center; width:100%; }
  .btn-clear:hover { border-color:var(--rust); color:var(--rust); background:var(--rust-pale); }
  #fileInput { display:none; }
  ::-webkit-scrollbar { width:4px; }
  ::-webkit-scrollbar-track { background:transparent; }
  ::-webkit-scrollbar-thumb { background:var(--border); border-radius:2px; }

  /* ── Invoice Panel ── */
  .invoice-panel { flex-shrink:0; background:var(--surface); display:flex; flex-direction:column; transition:height 0.3s cubic-bezier(0.4,0,0.2,1); overflow:hidden; border-radius:20px 20px 0 0; box-shadow:0 -4px 24px rgba(28,24,48,0.10); position:relative; z-index:5; }
  .invoice-panel.collapsed { height:40px; }
  .invoice-panel.expanded  { height:280px; }
  .invoice-toggle-bar { display:flex; align-items:center; justify-content:space-between; padding:0 20px; height:40px; flex-shrink:0; cursor:pointer; user-select:none; border-bottom:1px solid transparent; border-radius:20px 20px 0 0; transition:background 0.2s; }
  .invoice-toggle-bar:hover { background:var(--sage-pale); }
  .invoice-panel.expanded .invoice-toggle-bar { border-bottom-color:var(--border); border-radius:0; }
  .invoice-toggle-label { font-family:'DM Serif Display',serif; font-size:0.9rem; color:var(--ink); display:flex; align-items:center; gap:8px; }
  .invoice-toggle-label .itl-badge { font-family:'DM Mono',monospace; font-size:0.61rem; background:var(--gold-pale); color:var(--gold); border-radius:var(--r-pill); padding:2px 9px; font-weight:600; }
  .invoice-toggle-caret { font-size:0.7rem; color:var(--ink-light); transition:transform 0.3s; }
  .invoice-panel.expanded .invoice-toggle-caret { transform:rotate(180deg); }
  .invoice-body { flex:1; display:flex; flex-direction:column; overflow:hidden; min-height:0; }
  .invoice-months { display:flex; gap:3px; padding:8px 14px 0; overflow-x:auto; flex-shrink:0; border-bottom:1px solid var(--border); scrollbar-width:none; }
  .invoice-months::-webkit-scrollbar { display:none; }
  .inv-month-tab { padding:5px 12px 7px; font-family:'DM Mono',monospace; font-size:0.67rem; cursor:pointer; border-radius:var(--r-pill) var(--r-pill) 0 0; color:var(--ink-light); white-space:nowrap; transition:all 0.15s; text-transform:uppercase; letter-spacing:0.5px; border:1px solid transparent; border-bottom:2px solid transparent; position:relative; bottom:-1px; }
  .inv-month-tab:hover { color:var(--ink); background:var(--bg); }
  .inv-month-tab.active { color:var(--rust); border-color:var(--border); border-bottom-color:var(--surface); background:var(--surface); font-weight:600; }
  .inv-month-tab .itab-dot { display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--sage); margin-left:4px; vertical-align:middle; position:relative; top:-1px; }
  .invoice-table-wrap { flex:1; overflow:auto; padding:8px 16px 12px; }
  .invoice-table { width:100%; border-collapse:collapse; font-size:0.73rem; font-family:'DM Mono',monospace; }
  .invoice-table thead th { position:sticky; top:0; background:var(--surface); padding:5px 10px 5px 6px; text-align:left; color:var(--ink-light); font-weight:500; border-bottom:1px solid var(--border); white-space:nowrap; font-size:0.66rem; text-transform:uppercase; letter-spacing:0.5px; z-index:1; }
  .invoice-table thead th:first-child { padding-left:4px; }
  .invoice-table thead th.hours-col { text-align:right; color:var(--sage); }
  .invoice-table tbody tr:hover td { background:var(--sage-pale); }
  .invoice-table tbody td { padding:5px 10px 5px 6px; border-bottom:1px solid var(--border); color:var(--ink); white-space:nowrap; }
  .invoice-table tbody td:first-child { font-family:'DM Serif Display',serif; font-size:0.78rem; padding-left:4px; }
  .invoice-table tbody td.hours-col { text-align:right; color:var(--ink-light); }
  .invoice-table tbody td.hours-col.has-hours { color:var(--ink); }
  .invoice-table tbody td.total-col { text-align:right; font-weight:600; color:var(--rust); }
  .invoice-table tfoot td { padding:6px 10px 4px 6px; font-weight:700; font-size:0.72rem; border-top:2px solid var(--border); color:var(--ink); white-space:nowrap; }
  .invoice-table tfoot td:first-child { padding-left:4px; color:var(--ink-light); font-style:italic; }
  .invoice-table tfoot td.hours-col { text-align:right; color:var(--sage); }
  .invoice-table tfoot td.total-col { text-align:right; color:var(--rust); }
  .inv-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; color:var(--ink-light); font-size:0.78rem; gap:6px; font-family:'DM Sans',sans-serif; }
  .inv-empty-icon { font-size:1.7rem; opacity:0.25; }

  /* ── Confirmation UI ── */
  .confirm-card { display:flex; flex-direction:column; gap:10px; }
  .confirm-title { font-family:'DM Serif Display',serif; font-size:0.92rem; color:var(--ink); }
  .confirm-actions { display:flex; gap:8px; margin-top:4px; }
  .btn-confirm { background:linear-gradient(135deg,#5B9BF0,#1A6FD4); color:white; border:none; border-radius:var(--r-pill); padding:8px 18px; font-family:'DM Sans',sans-serif; font-size:0.8rem; font-weight:600; cursor:pointer; box-shadow:0 2px 8px rgba(26,111,212,0.35); transition:all 0.2s; }
  .btn-confirm:hover { transform:translateY(-1px); box-shadow:0 4px 14px rgba(26,111,212,0.45); }
  .btn-confirm:disabled { opacity:0.4; cursor:default; transform:none; box-shadow:none; }
  .btn-cancel-entry { background:var(--bg); color:var(--ink-light); border:1.5px solid var(--border); border-radius:var(--r-pill); padding:8px 16px; font-family:'DM Sans',sans-serif; font-size:0.8rem; font-weight:500; cursor:pointer; transition:all 0.2s; }
  .btn-cancel-entry:hover { border-color:var(--rust); color:var(--rust); background:var(--rust-pale); }
  .btn-cancel-entry:disabled { opacity:0.4; cursor:default; border-color:var(--border); color:var(--ink-light); background:var(--bg); }
  .new-cat-alert { background:var(--gold-pale); border-radius:var(--r-md); padding:10px 12px; }
  .nca-title { font-size:0.78rem; font-weight:600; color:var(--gold); margin-bottom:6px; }
  .nca-row { display:flex; align-items:center; justify-content:space-between; font-size:0.78rem; padding:4px 0; font-family:'DM Mono',monospace; color:var(--ink); }
  .btn-create-cat { background:linear-gradient(135deg,var(--gold-mid),var(--gold)); color:var(--ink); border:none; border-radius:var(--r-pill); padding:4px 12px; font-family:'DM Sans',sans-serif; font-size:0.72rem; font-weight:600; cursor:pointer; transition:all 0.2s; box-shadow:0 1px 4px rgba(212,168,32,0.3); }
  .btn-create-cat:hover { transform:translateY(-1px); box-shadow:0 3px 8px rgba(212,168,32,0.4); }
  .btn-create-cat:disabled { opacity:0.4; cursor:default; transform:none; box-shadow:none; }
  .confirm-warn { font-size:0.76rem; color:var(--rust); font-weight:500; padding:4px 0; }
  .btn-edit-entry { background:transparent; color:var(--ink-light); border:1.5px solid var(--border); border-radius:var(--r-pill); padding:8px 16px; font-family:'DM Sans',sans-serif; font-size:0.8rem; font-weight:500; cursor:pointer; transition:all 0.2s; margin-left:auto; }
  .btn-edit-entry:hover { border-color:var(--gold); color:var(--gold); }
  /* Edit-mode rows inside confirm card */
  .pc-row.edit-mode { flex-wrap:wrap; gap:4px; }
  .pc-row.edit-mode .pc-label { flex:0 0 110px; }
  .conf-input { font-family:'DM Mono',monospace; font-size:0.8rem; border:1.5px solid var(--border); border-radius:var(--r-sm); padding:3px 8px; background:var(--warmWhite); color:var(--ink); width:90px; transition:border-color 0.15s; }
  .conf-input:focus { outline:none; border-color:var(--sage); }
  .conf-select { font-family:'DM Sans',sans-serif; font-size:0.79rem; border:1.5px solid var(--border); border-radius:var(--r-sm); padding:3px 6px; background:var(--warmWhite); color:var(--ink); cursor:pointer; transition:border-color 0.15s; }
  .conf-select:focus { outline:none; border-color:var(--sage); }
  .cat-edit-row { display:flex; align-items:center; gap:6px; padding:3px 0; flex-wrap:wrap; }
  .btn-remove-cat { background:none; border:none; color:var(--rust); font-size:1rem; cursor:pointer; line-height:1; padding:0 2px; opacity:0.7; transition:opacity 0.15s; }
  .btn-remove-cat:hover { opacity:1; }
  .btn-add-cat-row { background:none; border:1.5px dashed var(--border); border-radius:var(--r-pill); color:var(--ink-light); font-size:0.75rem; padding:3px 10px; cursor:pointer; transition:all 0.15s; margin-top:2px; font-family:'DM Sans',sans-serif; }
  .btn-add-cat-row:hover { border-color:var(--sage); color:var(--sage); }

  /* ── Settings overlay & panel ── */
  .settings-overlay { display:none; position:fixed; inset:0; background:rgba(28,24,48,0.45); z-index:100; backdrop-filter:blur(2px); }
  .settings-overlay.open { display:block; }
  .settings-panel { position:fixed; top:58px; right:20px; width:340px; max-height:calc(100vh - 78px); overflow-y:auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:var(--sh-md); padding:20px; z-index:101; font-family:'DM Sans',sans-serif; display:none; }
  .settings-panel.open { display:block; }
  .settings-title { font-family:'DM Serif Display',serif; font-size:1rem; color:var(--ink); margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; }
  .settings-close { background:none; border:none; font-size:1.1rem; cursor:pointer; color:var(--ink-light); line-height:1; padding:0 2px; transition:color 0.2s; }
  .settings-close:hover { color:var(--rust); }
  .settings-field { margin-bottom:14px; }
  .settings-label { display:block; font-size:0.72rem; font-family:'DM Mono',monospace; color:var(--ink-light); text-transform:uppercase; letter-spacing:0.6px; margin-bottom:5px; }
  .settings-input-wrap { position:relative; display:flex; align-items:center; }
  .settings-input { flex:1; padding:9px 36px 9px 14px; border:1.5px solid var(--border); border-radius:var(--r-pill); background:var(--bg); font-family:'DM Mono',monospace; font-size:0.8rem; color:var(--ink); outline:none; transition:border-color 0.2s,box-shadow 0.2s; }
  .settings-input:focus { border-color:var(--sage); box-shadow:0 0 0 3px rgba(26,111,212,0.12); }
  .settings-show-key { position:absolute; right:10px; background:none; border:none; cursor:pointer; font-size:0.8rem; color:var(--ink-light); padding:0; transition:color 0.2s; }
  .settings-show-key:hover { color:var(--ink); }
  .settings-actions { display:flex; gap:8px; margin-top:4px; }
  .btn-settings-save { background:linear-gradient(135deg,var(--sage),#4A9668); color:white; border:none; border-radius:var(--r-pill); padding:8px 18px; font-family:'DM Sans',sans-serif; font-size:0.8rem; font-weight:600; cursor:pointer; box-shadow:0 2px 8px rgba(26,111,212,0.3); transition:all 0.2s; }
  .btn-settings-save:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(26,111,212,0.4); }
  .btn-settings-clear { background:none; color:var(--ink-light); border:1.5px solid var(--border); border-radius:var(--r-pill); padding:8px 14px; font-family:'DM Sans',sans-serif; font-size:0.8rem; cursor:pointer; transition:all 0.2s; }
  .btn-settings-clear:hover { border-color:var(--rust); color:var(--rust); background:var(--rust-pale); }
  .settings-status { font-size:0.72rem; font-family:'DM Mono',monospace; margin-top:8px; min-height:16px; color:var(--sage); }
  .settings-status.error { color:var(--rust); }
  .settings-hint { font-size:0.72rem; color:var(--ink-light); margin-bottom:10px; }
  .settings-divider { border:none; border-top:1px solid var(--border); margin:16px 0 14px; }
  .settings-section-label { font-size:0.67rem; font-family:'DM Mono',monospace; color:var(--ink-light); text-transform:uppercase; letter-spacing:0.8px; margin-bottom:10px; }
  .btn-danger { background:none; color:var(--rust); border:1.5px solid rgba(224,92,44,0.3); border-radius:var(--r-pill); padding:8px 14px; font-family:'DM Sans',sans-serif; font-size:0.8rem; cursor:pointer; transition:all 0.2s; }
  .btn-danger:hover { background:var(--rust-pale); border-color:var(--rust); }
  .settings-footer { margin-top:16px; padding-top:12px; border-top:1px solid var(--border); text-align:center; display:flex; justify-content:center; gap:16px; }
  .settings-footer a { font-size:0.72rem; color:var(--ink-light); text-decoration:none; transition:color 0.2s; }
  .settings-footer a:hover { color:var(--sage); }
  /* ── Modal (privacy policy) ── */
  .modal-overlay { display:none; position:fixed; inset:0; background:rgba(28,24,48,0.55); z-index:200; backdrop-filter:blur(3px); align-items:center; justify-content:center; }
  .modal-overlay.open { display:flex; }
  .modal-box { background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-md); padding:28px 28px 24px; max-width:520px; width:90%; max-height:80vh; overflow-y:auto; font-family:'DM Sans',sans-serif; position:relative; }
  .modal-title { font-family:'DM Serif Display',serif; font-size:1.1rem; color:var(--ink); margin-bottom:16px; padding-right:28px; }
  .modal-body { font-size:0.82rem; color:var(--ink-mid); line-height:1.7; }
  .modal-body h3 { font-size:0.68rem; color:var(--ink); margin:16px 0 5px; text-transform:uppercase; letter-spacing:0.7px; font-family:'DM Mono',monospace; }
  .modal-body p { margin-bottom:6px; }
  .modal-close-btn { position:absolute; top:16px; right:16px; background:none; border:none; font-size:1.1rem; cursor:pointer; color:var(--ink-light); line-height:1; }
  .modal-close-btn:hover { color:var(--rust); }

  /* ── Gear button ── */
  .btn-gear { background:rgba(26,111,212,0.07); color:#1A6FD4; border:1px solid rgba(26,111,212,0.22); border-radius:var(--r-pill); width:34px; height:34px; font-size:1rem; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; justify-content:center; padding:0; }
  .btn-gear:hover { background:rgba(239,200,74,0.18); border-color:var(--gold-mid); color:var(--gold-mid); transform:rotate(30deg); }
  .btn-gear.active { color:var(--gold-mid); border-color:var(--gold-mid); background:rgba(239,200,74,0.18); }

  /* ── Mic button ── */
  .btn-mic { background:var(--bg); border:1.5px solid var(--border); border-radius:var(--r-pill); width:46px; height:46px; font-size:1.1rem; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--ink-mid); }
  .btn-mic:hover { border-color:var(--sage); color:var(--sage); background:var(--sage-pale); }
  .btn-mic.recording { background:linear-gradient(135deg,#E05C2C,#C84E20); border-color:transparent; color:white; animation:micPulse 1.4s ease-out infinite; }
  @keyframes micPulse { 0%{box-shadow:0 0 0 0 rgba(224,92,44,0.5)} 70%{box-shadow:0 0 0 10px rgba(224,92,44,0)} 100%{box-shadow:0 0 0 0 rgba(224,92,44,0)} }

  /* ── Thinking dots ── */
  .thinking-dots { display:inline-flex; gap:3px; vertical-align:middle; margin-left:4px; }
  .thinking-dots span { display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--ink-light); animation:dotBlink 1.2s infinite ease-in-out; }
  .thinking-dots span:nth-child(2) { animation-delay:0.2s; }
  .thinking-dots span:nth-child(3) { animation-delay:0.4s; }
  @keyframes dotBlink { 0%,80%,100%{opacity:0.2;transform:scale(0.85)} 40%{opacity:1;transform:scale(1)} }

  /* ── AI badge ── */
  .ai-badge { display:none; background:linear-gradient(135deg,#6B45C8,#8B5CF6); color:white; font-size:0.62rem; font-family:'DM Mono',monospace; font-weight:600; padding:2px 8px 3px; border-radius:var(--r-pill); letter-spacing:0.4px; vertical-align:middle; margin-left:6px; box-shadow:0 1px 5px rgba(107,69,200,0.35); }
  .ai-badge.visible { display:inline-block; }

  /* ── Auth screen ── */
  #authScreen { position:fixed; inset:0; background:linear-gradient(150deg,#F0F3FA 0%,#EBF0FA 50%,#EEF4FF 100%); display:flex; align-items:center; justify-content:center; z-index:1000; }
  .auth-card { background:#fff; border-radius:var(--r-lg); box-shadow:var(--sh-md); padding:40px 36px; width:100%; max-width:380px; display:flex; flex-direction:column; gap:14px; }
  .auth-logo { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
  .auth-logo-title { font-family:'DM Serif Display',serif; font-size:1.6rem; color:var(--ink); }
  .auth-heading { font-size:0.78rem; color:var(--ink-light); font-family:'DM Mono',monospace; letter-spacing:0.4px; }
  .auth-input { width:100%; padding:10px 14px; border:1.5px solid var(--border); border-radius:var(--r-sm); font-family:'DM Sans',sans-serif; font-size:0.9rem; color:var(--ink); outline:none; transition:border-color 0.2s; }
  .auth-input:focus { border-color:#1A6FD4; box-shadow:0 0 0 3px rgba(26,111,212,0.1); }
  .btn-auth-primary { background:linear-gradient(135deg,#5B9BF0,#1A6FD4); color:white; border:none; border-radius:var(--r-pill); padding:11px; font-family:'DM Sans',sans-serif; font-size:0.9rem; font-weight:600; cursor:pointer; transition:all 0.2s; box-shadow:0 3px 10px rgba(26,111,212,0.35); }
  .btn-auth-primary:hover { filter:brightness(0.92); transform:translateY(-1px); }
  .btn-auth-secondary { background:transparent; color:#1A6FD4; border:1.5px solid #d0ddf5; border-radius:var(--r-pill); padding:10px; font-family:'DM Sans',sans-serif; font-size:0.9rem; font-weight:500; cursor:pointer; transition:all 0.2s; }
  .btn-auth-secondary:hover { background:var(--sage-pale); border-color:#1A6FD4; }
  .auth-divider { display:flex; align-items:center; gap:10px; color:var(--ink-light); font-size:0.75rem; }
  .auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
  .auth-error { background:#FFF1EC; color:#C84E20; border-radius:var(--r-sm); padding:9px 12px; font-size:0.78rem; border:1px solid #FFDDD0; white-space:pre-wrap; font-family:'DM Mono',monospace; line-height:1.6; }
  .auth-success { background:#EEF4FF; color:#1A6FD4; border-radius:var(--r-sm); padding:9px 12px; font-size:0.78rem; border:1px solid #d0ddf5; white-space:pre-wrap; font-family:'DM Mono',monospace; line-height:1.6; }
  #authScreen.hidden { display:none; }

  /* ── Sign-up screen ── */
  #signupScreen { position:fixed; inset:0; background:linear-gradient(150deg,#F0F3FA 0%,#EBF0FA 50%,#EEF4FF 100%); display:flex; align-items:center; justify-content:center; z-index:1000; }
  #signupScreen.hidden { display:none; }
  .signup-name-row { display:flex; gap:10px; }
  .signup-name-row .auth-input { flex:1; min-width:0; }
  .signup-consent { display:flex; align-items:flex-start; gap:8px; font-size:0.75rem; color:var(--ink-light); line-height:1.5; cursor:pointer; margin-bottom:2px; }
  .signup-consent input[type=checkbox] { margin-top:2px; flex-shrink:0; accent-color:#1A6FD4; cursor:pointer; }
  .signup-consent a { color:#1A6FD4; }
  /* ── Settings name row ── */
  .settings-name-row { display:flex; gap:8px; margin-bottom:6px; }
  .settings-name-row .settings-input { flex:1; min-width:0; padding:7px 10px; }
  /* ── Sync badge (offline queue indicator) ── */
  .sync-badge { background:#E05C2C; color:white; font-size:0.58rem; font-family:'DM Mono',monospace; font-weight:700; padding:1px 5px; border-radius:var(--r-pill); min-width:16px; text-align:center; margin-left:-4px; margin-top:-10px; align-self:flex-start; flex-shrink:0; }

  /* ── Auth confirm state ── */
  .auth-confirm { flex-direction:column; gap:12px; text-align:center; }
  .auth-confirm-icon { font-size:2.8rem; }
  .auth-confirm-heading { font-family:'DM Serif Display',serif; font-size:1.2rem; color:var(--ink); }
  .auth-confirm-email { background:var(--sage-pale); border-radius:var(--r-sm); padding:8px 14px; font-family:'DM Mono',monospace; font-size:0.78rem; color:var(--sage); word-break:break-all; }
  .auth-resend-msg { font-size:0.75rem; font-family:'DM Mono',monospace; color:var(--sage); min-height:1.2em; }

  /* ── Location filter in timesheet ── */
  .location-filter-wrap { padding:5px 10px 5px; border-bottom:1px solid var(--border); }
  .location-filter-select { width:100%; padding:5px 10px; border:1.5px solid var(--border); border-radius:var(--r-pill); font-family:'DM Sans',sans-serif; font-size:0.76rem; color:var(--ink); background:var(--bg); outline:none; cursor:pointer; transition:border-color 0.2s; }
  .location-filter-select:focus { border-color:var(--sage); }

  /* ── PDF export button ── */
  .btn-export-pdf { background:rgba(224,92,44,0.08); color:var(--rust); border:1.5px solid rgba(224,92,44,0.25); border-radius:var(--r-pill); padding:6px 12px; font-family:'DM Sans',sans-serif; font-size:0.74rem; cursor:pointer; transition:all 0.2s; width:100%; text-align:center; margin-bottom:5px; }
  .btn-export-pdf:hover { background:rgba(224,92,44,0.15); border-color:var(--rust); }

  /* ── Location management in settings ── */
  .loc-chip { display:flex; align-items:center; justify-content:space-between; background:var(--bg); border-radius:var(--r-pill); padding:6px 10px 6px 12px; font-size:0.79rem; box-shadow:var(--sh-xs); margin-bottom:5px; }
  .loc-chip-name { font-weight:500; color:var(--ink); flex:1; }

  /* ── Audit log modal ── */
  .audit-row { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--border); font-size:0.76rem; }
  .audit-row:last-child { border-bottom:none; }
  .audit-badge { font-size:0.62rem; font-family:'DM Mono',monospace; font-weight:700; padding:2px 7px; border-radius:var(--r-pill); flex-shrink:0; }
  .audit-badge.create { background:#EEF4FF; color:#1A6FD4; }
  .audit-badge.update { background:var(--gold-pale); color:var(--gold); }
  .audit-badge.delete { background:var(--rust-pale); color:var(--rust); }
  .audit-date { font-family:'DM Serif Display',serif; font-size:0.79rem; color:var(--ink); flex:1; }
  .audit-ts { font-family:'DM Mono',monospace; font-size:0.64rem; color:var(--ink-light); }

  /* ── Welcome / onboarding modal ── */
  .welcome-card { background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-md); padding:32px 28px 28px; max-width:420px; width:90%; font-family:'DM Sans',sans-serif; display:flex; flex-direction:column; gap:20px; animation:fadeUp 0.35s ease; }
  .welcome-header { display:flex; align-items:center; gap:10px; }
  .welcome-tagline { font-size:0.85rem; color:var(--ink-light); line-height:1.5; margin-top:-8px; }
  .welcome-steps { display:flex; flex-direction:column; gap:14px; }
  .welcome-step { display:flex; align-items:flex-start; gap:14px; }
  .welcome-step-num { flex-shrink:0; width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#5B9BF0,#1A6FD4); color:white; font-weight:700; font-size:0.78rem; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 8px rgba(26,111,212,0.3); margin-top:1px; }
  .welcome-step-body { display:flex; flex-direction:column; gap:3px; }
  .welcome-step-body strong { font-size:0.88rem; color:var(--ink); font-weight:600; }
  .welcome-step-body span { font-size:0.78rem; color:var(--ink-light); font-family:'DM Mono',monospace; line-height:1.4; }

  /* ── Location Wizard Modal ── */
  .wizard-overlay { display:none; position:fixed; inset:0; background:rgba(28,24,48,0.55); z-index:300; backdrop-filter:blur(4px); align-items:center; justify-content:center; }
  .wizard-overlay.open { display:flex; }
  .wizard-box { background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-md); padding:28px 28px 24px; max-width:480px; width:92%; max-height:85vh; overflow-y:auto; font-family:'DM Sans',sans-serif; position:relative; animation:fadeUp 0.3s ease; }
  .wizard-title { font-family:'DM Serif Display',serif; font-size:1.1rem; color:var(--ink); margin-bottom:6px; padding-right:28px; }
  .wizard-close { position:absolute; top:16px; right:16px; background:none; border:none; font-size:1.1rem; cursor:pointer; color:var(--ink-light); line-height:1; }
  .wizard-close:hover { color:var(--rust); }

  /* Step indicator */
  .wizard-steps-indicator { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:20px; }
  .wizard-dot { width:10px; height:10px; border-radius:50%; background:var(--border); transition:all 0.3s; cursor:default; }
  .wizard-dot.active { background:linear-gradient(135deg,#5B9BF0,#1A6FD4); box-shadow:0 2px 6px rgba(26,111,212,0.4); transform:scale(1.2); }
  .wizard-dot.done { background:var(--sage-light); }
  .wizard-dot-line { width:20px; height:2px; background:var(--border); border-radius:1px; }
  .wizard-dot-line.done { background:var(--sage-light); }

  /* Step content */
  .wizard-step { display:none; flex-direction:column; gap:10px; }
  .wizard-step.active { display:flex; }
  .wizard-step-label { font-size:0.67rem; font-family:'DM Mono',monospace; color:var(--ink-light); text-transform:uppercase; letter-spacing:0.8px; margin-bottom:2px; }
  .wizard-step-heading { font-family:'DM Serif Display',serif; font-size:0.95rem; color:var(--ink); margin-bottom:4px; }
  .wizard-step-hint { font-size:0.72rem; color:var(--ink-light); margin-bottom:4px; line-height:1.4; }
  .wizard-input { width:100%; padding:9px 14px; border:1.5px solid var(--border); border-radius:var(--r-sm); font-family:'DM Sans',sans-serif; font-size:0.85rem; color:var(--ink); outline:none; transition:border-color 0.2s, box-shadow 0.2s; background:var(--bg); }
  .wizard-input:focus { border-color:var(--sage); box-shadow:0 0 0 3px rgba(26,111,212,0.12); }
  .wizard-input-row { display:flex; gap:8px; }
  .wizard-input-row .wizard-input { flex:1; min-width:0; }
  .wizard-input-short { width:90px; flex:0 0 90px !important; }
  .wizard-select { width:100%; padding:9px 14px; border:1.5px solid var(--border); border-radius:var(--r-sm); font-family:'DM Sans',sans-serif; font-size:0.85rem; color:var(--ink); background:var(--bg); outline:none; cursor:pointer; transition:border-color 0.2s; }
  .wizard-select:focus { border-color:var(--sage); }

  /* Wizard nav buttons */
  .wizard-nav { display:flex; gap:10px; margin-top:16px; justify-content:flex-end; }
  .wizard-btn-next { background:linear-gradient(135deg,#5B9BF0,#1A6FD4); color:white; border:none; border-radius:var(--r-pill); padding:9px 22px; font-family:'DM Sans',sans-serif; font-size:0.82rem; font-weight:600; cursor:pointer; box-shadow:0 2px 8px rgba(26,111,212,0.35); transition:all 0.2s; }
  .wizard-btn-next:hover { transform:translateY(-1px); box-shadow:0 4px 14px rgba(26,111,212,0.45); }
  .wizard-btn-next:disabled { opacity:0.4; cursor:default; transform:none; box-shadow:none; }
  .wizard-btn-back { background:none; color:var(--ink-light); border:1.5px solid var(--border); border-radius:var(--r-pill); padding:9px 18px; font-family:'DM Sans',sans-serif; font-size:0.82rem; font-weight:500; cursor:pointer; transition:all 0.2s; }
  .wizard-btn-back:hover { border-color:var(--sage); color:var(--sage); }

  /* Archived locations section */
  .archived-section { margin-top:8px; }
  .archived-chip { display:flex; align-items:center; gap:8px; padding:6px 10px; margin-bottom:4px; background:var(--bg); border-radius:10px; border:1px dashed var(--border); opacity:0.7; }
  .archived-chip-name { flex:1; font-size:0.78rem; color:var(--ink-light); font-style:italic; }
  .btn-restore { background:none; border:1.5px solid var(--sage-light); border-radius:var(--r-pill); color:var(--sage); font-size:0.7rem; font-family:'DM Sans',sans-serif; padding:3px 10px; cursor:pointer; transition:all 0.2s; white-space:nowrap; }
  .btn-restore:hover { background:var(--sage-pale); border-color:var(--sage); }

  /* Location card in settings (updated) */
  .loc-card-info { display:flex; align-items:center; gap:6px; font-size:0.68rem; color:var(--ink-light); }
  .loc-card-edit { background:none; border:1px solid var(--border); border-radius:6px; width:24px; height:24px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink-light); font-size:0.72rem; transition:all 0.2s; padding:0; flex-shrink:0; }
  .loc-card-edit:hover { border-color:var(--sage); color:var(--sage); background:var(--sage-pale); }