  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

  :root {
    --bg:        #0b0a0f;
    --surface:   #13111a;
    --surface2:  #1a1724;
    --border:    #2e2e38;
    --text:      #ffffff;
    --text-dim:  #555566;
    --text-mid:  #aaaabc;
    --done-color:#7fd4a8;
    --p1: #ff6b8a;
    --p2: #ffaa60;
    --p3: #f0d060;
    --p4: #7fd4a8;
    --sched:  #7ec8e3;
    --break:  #9863f3;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* ── TITLEBAR ─────────────────────────────────────────────────────────── */
  .titlebar {
    width: 100%; background: var(--surface); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 20px; flex-shrink: 0; user-select: none;
    position: relative; z-index: 10000;
  }
  .app-name { font-weight: 800; font-size: 12px; letter-spacing: 0.2em; color: #fff; text-transform: uppercase; }
  .titlebar-right { display: flex; align-items: center; gap: 12px; }
  .queue-count { font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; }

  /* ── LAYOUT ───────────────────────────────────────────────────────────── */
  .main-layout { display: flex; flex: 1; min-height: 0; overflow: hidden; }

  /* ── LEFT PANEL ───────────────────────────────────────────────────────── */
  .left-panel {
    width: 200px; flex-shrink: 0; border-right: 1px solid var(--border);
    display: flex; flex-direction: column; overflow: hidden;
  }

  .clock-section {
    flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
    padding: 28px 12px 20px; border-bottom: 1px solid var(--border);
  }
  .clock-time {
    font-size: 52px; font-weight: 800; line-height: 1;
    letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums;
  }
  .clock-time-row   { display: flex; align-items: baseline; justify-content: center; gap: 7px; }
  .clock-ampm-inline { display: flex; align-items: baseline; gap: 4px; padding-bottom: 4px; }
  .clock-ampm { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--text-mid); text-transform: uppercase; }
  .clock-tz   { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; color: var(--text-dim); }
  .clock-date {
    font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: #c0c0d0;
    text-align: center; margin-top: 10px; text-transform: uppercase;
  }

  /* ── CALENDAR ─────────────────────────────────────────────────────────── */
  .calendar-section { flex: 1; overflow-y: auto; overflow-x: hidden; }
  .calendar-section::-webkit-scrollbar { width: 3px; }
  .calendar-section::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  .cal-container { position: relative; margin: 0 8px 16px 8px; padding-top: 8px; }

  .cal-hour-row {
    position: absolute; left: 0; right: 0;
    display: flex; align-items: flex-start; pointer-events: none;
  }
  .cal-hour-label {
    width: 36px; flex-shrink: 0; font-size: 8px; font-weight: 600;
    letter-spacing: 0.06em; color: var(--text-dim); text-align: right;
    padding-right: 6px; line-height: 1; margin-top: -4px;
  }
  .cal-hour-line { flex: 1; height: 1px; background: var(--border); }

  .cal-track { position: absolute; left: 42px; right: 0; top: 0; bottom: 0; }

  .cal-block {
    position: absolute; left: 0; right: 0; border-radius: 4px; padding: 3px 5px;
    overflow: hidden; cursor: default; border-left: 3px solid transparent; transition: opacity 0.2s;
  }
  .cal-block-title {
    display: block; font-size: 8px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
  }
  .cal-block-meta {
    display: block; font-size: 7px; opacity: 0.7;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
  }
  .cal-block.done-block { opacity: 0.35; filter: grayscale(0.6); cursor: grab; }
  .cal-block.done-block:hover { opacity: 0.62; filter: grayscale(0.3); }
  .cal-block.done-block.cal-dragging { opacity: 0.88; filter: none; cursor: grabbing; }
  .cal-resize-handle {
    position: absolute; left: 0; right: 0; height: 8px; cursor: ns-resize; z-index: 2;
  }
  .cal-resize-handle.cal-resize-top { top: 0; }
  .cal-resize-handle.cal-resize-bot { bottom: 0; }
  .cal-block.pc-1 { background: rgba(255,107,138,0.18); border-color: var(--p1); color: var(--p1); }
  .cal-block.pc-2 { background: rgba(255,170,96,0.18);  border-color: var(--p2); color: var(--p2); }
  .cal-block.pc-3 { background: rgba(240,208,96,0.18);  border-color: var(--p3); color: var(--p3); }
  .cal-block.pc-4 { background: rgba(127,212,168,0.18); border-color: var(--p4); color: var(--p4); }

  .cal-now-line {
    position: absolute; left: 0; right: 0; height: 2px;
    background: #fff; z-index: 10; box-shadow: 0 0 6px rgba(255,255,255,0.5);
  }
  .cal-now-line::before {
    content: ''; position: absolute; left: -4px; top: -3px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.6);
  }

  /* ── TASK PANEL ───────────────────────────────────────────────────────── */
  .task-panel {
    flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 20px 32px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
  }
  .task-panel::-webkit-scrollbar { width: 4px; }
  .task-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
  .task-panel > * { width: 100%; max-width: 480px; flex-shrink: 0; }

  .sec-hdr { font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; transition: color 0.3s; }

  /* ── TASK CARDS ───────────────────────────────────────────────────────── */
  .task-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 16px; position: relative; overflow: hidden; text-align: center; transition: border-color 0.4s;
  }
  .task-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: var(--card-bar, transparent); transition: background 0.4s;
  }
  .task-card.empty { border-color: var(--border) !important; }
  .task-card.empty::before { opacity: 0; }
  .card-task-title { font-weight: 700; font-size: 18px; line-height: 1.3; color: #fff; margin: 8px 0 10px; }

  .task-meta { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

  .priority-badge { font-size: 9px; letter-spacing: 0.1em; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; font-weight: 600; cursor: pointer; user-select: none; }
  .priority-badge:hover { filter: brightness(1.2); }
  .task-age { font-size: 9px; color: #fff; opacity: 0.45; }

  /* Time display (start/end) */
  .time-display {
    font-size: 9px; font-weight: 600; letter-spacing: 0.05em;
    padding: 2px 8px; border-radius: 3px; background: rgba(255,255,255,0.07); color: #fff;
  }
  .time-display.end-warn   { background: rgba(240,208,96,0.15); color: var(--p3); }
  .time-display.end-urgent { background: rgba(255,107,138,0.2);  color: var(--p1); animation: urgentPulse 1.3s ease-in-out infinite; }
  .time-display.end-over   { background: rgba(255,107,138,0.25); color: var(--p1); }
  @keyframes urgentPulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

  /* ── SYNC STATUS ──────────────────────────────────────────────────────── */
  .sync-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
  .sync-dot.synced  { background: var(--done-color); }
  .sync-dot.syncing { background: var(--p3); animation: syncPulse 1s ease-in-out infinite; }
  .sync-dot.error   { background: var(--p1); }
  .sync-dot.offline { background: var(--text-dim); }
  @keyframes syncPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
  .sync-label { font-size: 10px; color: var(--text-dim); letter-spacing: 0.05em; }

  .duration-display {
    font-size: 9px; font-weight: 600; letter-spacing: 0.1em; padding: 2px 7px;
    border-radius: 3px; text-transform: uppercase;
    background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.15);
  }
  .carried-badge {
    font-size: 9px; font-weight: 600; letter-spacing: 0.08em; padding: 2px 7px;
    border-radius: 3px; text-transform: uppercase;
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .title-edit-input {
    background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.4);
    outline: none; color: #fff; font-family: 'Inter', sans-serif;
    font-size: 18px; font-weight: 700; width: 100%; text-align: center;
    padding: 0; line-height: 1.3;
  }
  .bbp-divider { height: 1px; background: var(--border); margin: 6px 0 4px; }
  .escalation-badge { font-size: 9px; color: var(--p3); font-weight: 600; letter-spacing: 0.04em; }

  .done-btn {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px; color: #fff; font-family: 'Inter',sans-serif;
    font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 10px; cursor: pointer; transition: all 0.15s;
  }
  .done-btn:hover { background: #fff; color: #0b0a0f; border-color: #fff; }

  .delete-btn {
    position: absolute; top: 8px; right: 8px; background: none; border: none;
    color: var(--text-dim); font-size: 12px; line-height: 1; cursor: pointer;
    padding: 2px 4px; border-radius: 3px; transition: color 0.12s, background 0.12s;
  }
  .delete-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

  /* ── DIVIDERS ─────────────────────────────────────────────────────────── */
  .divider-row { display: flex; align-items: center; gap: 8px; }
  .divider-row::before,.divider-row::after { content:''; flex:1; height:1px; background:var(--border); }



  /* ── COMPLETED ────────────────────────────────────────────────────────── */
  .done-toggle {
    background: none; border: none; font-family: 'Inter',sans-serif; font-weight: 700;
    font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
    cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 0; transition: opacity 0.15s; white-space: nowrap;
  }
  .done-toggle:hover { opacity: 0.7; }
  .done-arrow { display: inline-block; font-size: 8px; transition: transform 0.2s; }
  .done-arrow.open { transform: rotate(90deg); }
  .done-list { display: flex; flex-direction: column; gap: 4px; overflow: hidden; max-height: 0; transition: max-height 0.25s ease; }
  .done-list.open { max-height: 9999px; margin-top: 6px; transition: max-height 0.5s ease; }
  .done-item {
    background: var(--surface2); border: 1px solid var(--border); border-radius: 6px;
    padding: 7px 12px; display: flex; align-items: center; gap: 8px; opacity: 0.55;
  }
  .done-check { color: var(--done-color); font-size: 10px; flex-shrink: 0; }
  .done-title { font-size: 10px; color: var(--text-mid); flex: 1; text-decoration: line-through; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .done-age   { font-size: 8px; color: var(--text-dim); flex-shrink: 0; }
  .undo-btn {
    background: none; border: 1px solid var(--border); border-radius: 3px;
    color: var(--text-dim); font-family: 'Inter',sans-serif; font-size: 9px;
    padding: 2px 6px; cursor: pointer; transition: all 0.12s; flex-shrink: 0;
  }
  .undo-btn:hover { border-color: #fff; color: #fff; }

  /* ── ADD TASK ─────────────────────────────────────────────────────────── */
  .add-toggle-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  }
  .add-toggle-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.25); }
  .add-toggle-icon { font-size: 15px; line-height: 1; font-weight: 300; }

  /* ── ADD TASK LIGHTBOX ────────────────────────────────────────────────── */
  .add-form-overlay {
    display: none; position: fixed; inset: 0; z-index: 9100;
    background: rgba(0,0,0,0.65); align-items: center; justify-content: center;
  }
  .add-form-overlay.active { display: flex; }
  .add-form-modal {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px; padding: 24px; width: 380px; max-width: calc(100vw - 32px);
    display: flex; flex-direction: column; gap: 14px; position: relative;
    transition: border-color 0.25s;
  }
  .add-form-modal.pcolor-1 { border-color: rgba(255,107,138,0.5); }
  .add-form-modal.pcolor-2 { border-color: rgba(255,170,96,0.5); }
  .add-form-modal.pcolor-3 { border-color: rgba(240,208,96,0.5); }
  .add-form-modal.pcolor-4 { border-color: rgba(127,212,168,0.5); }
  .add-form-modal-header {
    display: flex; align-items: center; justify-content: space-between;
  }
  .add-form-modal-title {
    font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.02em;
  }
  .add-form-modal-close {
    background: none; border: none; color: var(--text-dim); cursor: pointer;
    font-size: 16px; padding: 2px 6px; border-radius: 4px; line-height: 1;
    transition: color 0.15s;
  }
  .add-form-modal-close:hover { color: #fff; }
  .add-form { display: flex; flex-direction: column; gap: 12px; }

  .form-label {
    display: block; font-size: 8px; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px;
  }
  .task-input, .time-input, .duration-select {
    -webkit-appearance: none; appearance: none;
    width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
    color: #fff; font-family: 'Inter',sans-serif; font-size: 12px; padding: 8px 10px;
    outline: none; transition: border-color 0.15s;
  }
  .task-input:focus, .time-input:focus, .duration-select:focus { border-color: rgba(255,255,255,0.35); }
  .task-input::placeholder { color: var(--text-dim); }
  .time-input::-webkit-calendar-picker-indicator { filter: invert(0.35); cursor: pointer; }

  /* ── SMART TIME PICKER ────────────────────────────────────────────────── */
  .smart-time {
    display: flex; align-items: stretch;
    background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
    overflow: hidden; width: 100%; transition: border-color 0.15s; box-sizing: border-box;
  }
  .smart-time:focus-within { border-color: rgba(255,255,255,0.35); }
  .st-hour, .st-min {
    background: none; border: none; outline: none;
    color: #fff; font-family: 'Inter',sans-serif; font-size: 12px;
    text-align: center; -moz-appearance: textfield; padding: 8px 0;
  }
  .st-hour::-webkit-outer-spin-button, .st-hour::-webkit-inner-spin-button,
  .st-min::-webkit-outer-spin-button,  .st-min::-webkit-inner-spin-button { -webkit-appearance: none; }
  .st-hour { width: 30px; padding-left: 10px; }
  .st-min  { width: 26px; padding-right: 4px; }
  .st-sep  { color: var(--text-dim); font-size: 12px; display: flex; align-items: center; padding: 0 1px; }
  .st-ampm {
    background: none; border: none; border-left: 1px solid var(--border);
    color: var(--text-dim); font-family: 'Inter',sans-serif; font-size: 11px; font-weight: 600;
    padding: 0 9px; cursor: pointer; transition: all 0.12s; white-space: nowrap;
  }
  .st-ampm:hover, .st-ampm:focus { background: rgba(255,255,255,0.08); color: #fff; outline: none; }
  .smart-time.compact .st-hour, .smart-time.compact .st-min { font-size: 11px; padding-top: 5px; padding-bottom: 5px; }
  .smart-time.compact .st-sep  { font-size: 11px; }
  .smart-time.compact .st-ampm { font-size: 10px; padding: 0 7px; }
  .duration-select option { background: #1a1724; }

  .form-row-half { display: flex; gap: 12px; align-items: flex-start; }
  .form-row-half > div { flex: 1; }

  .check-label {
    display: flex; align-items: center; gap: 7px; cursor: pointer;
    font-size: 11px; color: var(--text-mid); user-select: none; height: 30px;
  }
  .check-label input[type="checkbox"] { width: 14px; height: 14px; accent-color: #fff; cursor: pointer; }

  .priority-group { display: flex; gap: 5px; flex-wrap: wrap; }
  .p-btn {
    height: 30px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text-dim); font-family: 'Inter',sans-serif;
    font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    cursor: pointer; transition: all 0.12s; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  }
  .p-btn:hover { border-color: var(--text-mid); color: #fff; }
  .p-btn.sel-1 { background: rgba(255,107,138,0.15); border-color: var(--p1); color: var(--p1); }
  .p-btn.sel-2 { background: rgba(255,170,96,0.15);  border-color: var(--p2); color: var(--p2); }
  .p-btn.sel-3 { background: rgba(240,208,96,0.15);  border-color: var(--p3); color: var(--p3); }
  .p-btn.sel-4 { background: rgba(127,212,168,0.15); border-color: var(--p4); color: var(--p4); }

  .add-btn {
    width: 100%; height: 34px; background: #fff; border: none; border-radius: 5px;
    color: #0b0a0f; font-family: 'Inter',sans-serif; font-weight: 700; font-size: 10px;
    letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, opacity 0.15s, transform 0.1s;
  }
  .add-btn:hover { opacity: 0.85; }
  .add-btn:active { transform: scale(0.98); }
  .add-btn:disabled { opacity: 0.2; cursor: default; }
  .add-btn.pcolor-1 { background: var(--p1); color: #0b0a0f; }
  .add-btn.pcolor-2 { background: var(--p2); color: #0b0a0f; }
  .add-btn.pcolor-3 { background: var(--p3); color: #0b0a0f; }
  .add-btn.pcolor-4 { background: var(--p4); color: #0b0a0f; }

  /* ── PRIORITY BADGE COLORS ────────────────────────────────────────────── */
  .pc-1 { background: rgba(255,107,138,0.15); color: var(--p1); border: 1px solid rgba(255,107,138,0.3); }
  .pc-2 { background: rgba(255,170,96,0.15);  color: var(--p2); border: 1px solid rgba(255,170,96,0.3); }
  .pc-3 { background: rgba(240,208,96,0.15);  color: var(--p3); border: 1px solid rgba(240,208,96,0.3); }
  .pc-4 { background: rgba(127,212,168,0.15); color: var(--p4); border: 1px solid rgba(127,212,168,0.3); }

  /* ── PRIORITY DROPDOWN ───────────────────────────────────────────────── */
  .p-dropdown {
    position: fixed; z-index: 9950;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 5px; box-shadow: 0 8px 28px rgba(0,0,0,0.6);
    display: none; flex-direction: column; gap: 3px; min-width: 90px;
  }
  .p-dropdown.open { display: flex; }
  .pd-btn {
    background: none; border: 1px solid transparent; border-radius: 5px;
    font-family: 'Inter',sans-serif; font-size: 9px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px;
    cursor: pointer; text-align: left; transition: background 0.1s, border-color 0.1s;
  }
  .pd-btn:hover { border-color: currentColor; background: rgba(255,255,255,0.05); }
  .pd-btn-1 { color: var(--p1); }
  .pd-btn-2 { color: var(--p2); }
  .pd-btn-3 { color: var(--p3); }
  .pd-btn-4 { color: var(--p4); }

  .p-dropdown.sched-dropdown { min-width: 210px; }
  .p-btn.sel-sched { border-color: var(--sched); color: var(--sched); background: rgba(126,200,227,0.1); }

  /* ── DROPDOWN HELPERS ─────────────────────────────────────────────────── */
  .dd-body       { padding: 4px 6px 6px; display: flex; flex-direction: column; gap: 6px; }
  .dd-label      { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); padding: 2px 0 0; }
  .dd-save-btn   { -webkit-appearance: none; appearance: none; width: 100%; padding: 5px 0; border-radius: 4px; border: none; background: #fff; color: #0b0a0f; font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
  .dd-save-btn.sched { background: var(--sched); }
  .dd-sec-btn    { -webkit-appearance: none; appearance: none; width: 100%; padding: 4px 0; border-radius: 4px; border: 1px solid var(--border); background: none; color: var(--text-dim); font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
  .dd-anchor-btn { flex: 1; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 0; border-radius: 4px; border: 1px solid var(--border); background: none; color: var(--text-dim); cursor: pointer; }
  .dd-anchor-btn.active { border-color: var(--sched); background: rgba(126,200,227,0.15); color: var(--sched); }
  .cat-dd-btn    { -webkit-appearance: none; appearance: none; color: #fff; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; width: 100%; padding: 5px 8px; border-radius: 4px; cursor: pointer; text-align: left; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); }
  .cat-dd-btn.active { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.15); }
  .badge-break   { background: rgba(152,99,243,0.15); color: #9863f3; border: 1px solid rgba(152,99,243,0.3); }
  .badge-sched   { background: rgba(126,200,227,0.15); color: var(--sched); border: 1px solid rgba(126,200,227,0.3); }
  .badge-cat     { background: rgba(255,255,255,0.07); color: #fff; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; }
  .cal-bounds-section { flex-shrink: 0; border-top: 1px solid var(--border); padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
  .history-no-data    { text-align: center; color: var(--text-dim); font-size: 11px; padding: 10px 0; letter-spacing: 0.06em; font-style: italic; }

  /* ── SLOT LABELS ───────────────────────────────────────────────────────── */
  .slot-label { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); transition: color 0.3s; }

  /* ── CARD SLOTS (drop zones) ─────────────────────────────────────────── */
  .card-slot { border-radius: 10px; min-height: 90px; position: relative; transition: background 0.12s, outline 0.12s; }
  .card-slot.drag-over { background: rgba(255,255,255,0.03); outline: 1px dashed rgba(255,255,255,0.22); outline-offset: 3px; }

  /* ── DRAGGABLE FLEX CARDS ────────────────────────────────────────────── */
  .task-card.flex-card { cursor: grab; user-select: none; }
  .task-card.flex-card:active { cursor: grabbing; }
  .task-card.flex-card.dragging { opacity: 0.35; }
  .task-card.more-drag-over { outline: 2px dashed rgba(255,255,255,0.3); outline-offset: 2px; }

  /* ── SCHEDULED DRAG ERROR ────────────────────────────────────────────── */
  .task-card.sched-drag-error { opacity: 0.45; transition: opacity 0.15s; }
  .task-card.sched-drag-error .sched-error-msg { display: flex !important; }
  .sched-error-msg { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; background: rgba(11,10,15,0.88); font-size: 10px; color: var(--text-mid); text-align: center; padding: 16px; border-radius: 10px; line-height: 1.6; font-weight: 500; z-index: 10; pointer-events: none; }

  /* ── MORE SECTION ────────────────────────────────────────────────────── */
  .more-header { padding: 4px 0; }
  .more-arrow { font-size: 8px; transition: transform 0.2s; display: inline-block; }
  .more-arrow.open { transform: rotate(90deg); }
  .more-count { font-size: 10px; color: var(--text-dim); }
  .more-cards { display: flex; flex-direction: column; gap: 8px; overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
  .more-cards.open { max-height: 9999px; transition: max-height 0.5s ease; }
  .more-cards.drag-over { padding: 4px 0; background: rgba(255,255,255,0.02); border-radius: 8px; outline: 1px dashed rgba(255,255,255,0.12); outline-offset: 3px; }

  /* ── CALENDAR BLOCK DRAG ─────────────────────────────────────────────── */
  .cal-block.sched-block  { cursor: ns-resize; background: rgba(126,200,227,0.15); border-color: var(--sched);  color: var(--sched); }
  .cal-block.break-block  { background: rgba(152,99,243,0.18); border-color: var(--break); color: var(--break); }
  .cal-block.cal-dragging { opacity: 0.8; z-index: 20; box-shadow: 0 4px 20px rgba(0,0,0,0.6); }
  .empty-queue { text-align: center; color: var(--text-dim); font-size: 10px; padding: 6px 0; }

  /* ── Two-button add row ───────────────────────────────────────────────── */
  .add-btns-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 4px; }
  .add-btns-row > button { grid-column: span 2; }
  .add-btns-row > button:nth-child(4) { grid-column: 2 / span 2; }
  .add-btns-row > button:nth-child(5) { grid-column: 4 / span 2; }
  .add-btns-row > button {
    color: #fff !important;
    font-family: 'Inter',sans-serif; font-weight: 600;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 9px 8px; border-radius: 8px; min-height: 52px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    text-align: center; line-height: 1.3;
    transition: all 0.2s;
  }
  .add-sched-toggle-btn {
    background: rgba(126,200,227,0.07); border: 1px solid rgba(126,200,227,0.25);
  }
  .add-sched-toggle-btn:hover { background: rgba(126,200,227,0.13); border-color: rgba(126,200,227,0.5); }
  .add-sched-form { display: flex; flex-direction: column; gap: 12px; }
  .add-sched-btn {
    width: 100%; height: 34px; background: var(--sched); border: none; border-radius: 5px;
    color: #0b0a0f; font-family: 'Inter',sans-serif; font-weight: 700; font-size: 10px;
    letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: opacity 0.15s, transform 0.1s;
  }
  .add-sched-btn:hover { opacity: 0.85; }
  .add-sched-btn:active { transform: scale(0.98); }
  .add-sched-btn:disabled { opacity: 0.2; cursor: default; }

  /* ── RECURRING DAY PICKER ─────────────────────────────────────────────── */
  .recur-toggle-row {
    display: flex; align-items: center; gap: 8px;
  }
  .recur-day-picker {
    display: none; flex-wrap: wrap; gap: 5px; margin-top: 8px;
  }
  .recur-day-picker.visible { display: flex; }
  .recur-day-btn {
    height: 28px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text-dim); font-family: 'Inter',sans-serif;
    font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    cursor: pointer; transition: all 0.12s;
  }
  .recur-day-btn.active {
    background: rgba(126,200,227,0.15); border-color: var(--sched); color: var(--sched);
  }

  /* ── RECURRING TASKS MODAL ────────────────────────────────────────────── */
  .recur-task-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
  }
  .recur-task-header {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .recur-task-title { font-size: 14px; font-weight: 700; color: #fff; }
  .recur-task-meta  { font-size: 11px; color: var(--text-dim); }
  .recur-task-days  { display: flex; gap: 5px; flex-wrap: wrap; }
  .recur-day-chip {
    font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-dim);
  }
  .recur-day-chip.on { border-color: var(--sched); color: var(--sched); background: rgba(126,200,227,0.12); }
  .recur-delete-btn {
    background: none; border: 1px solid var(--border); border-radius: 5px;
    color: var(--text-dim); font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; padding: 4px 9px; cursor: pointer; transition: all 0.12s;
    white-space: nowrap; flex-shrink: 0;
  }
  .recur-delete-btn:hover { border-color: #ff6b8a; color: #ff6b8a; }
  .recur-empty {
    color: var(--text-dim); font-size: 13px; text-align: center; padding: 40px 0;
  }

  /* Sign-out button in titlebar */
  .signout-btn {
    background: none; border: 1px solid var(--border); border-radius: 4px;
    color: var(--text-dim); font-family: 'Inter', sans-serif; font-size: 9px;
    letter-spacing: 0.1em; padding: 3px 8px; cursor: pointer;
    transition: all 0.15s; text-transform: uppercase;
  }
  .signout-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }

  /* ── TITLEBAR UNDO ────────────────────────────────────────────────────── */
  .titlebar-undo-btn {
    background: none; border: 1px solid var(--border); border-radius: 4px;
    color: var(--text-dim); font-size: 15px; width: 28px; height: 26px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; padding: 0;
  }
  .titlebar-undo-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }

  /* ── GEAR MENU ────────────────────────────────────────────────────────── */
  .gear-wrap { position: relative; }
  .gear-btn {
    background: none; border: 1px solid var(--border); border-radius: 4px;
    color: var(--text-dim); font-size: 14px; width: 28px; height: 26px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; padding: 0;
  }
  .gear-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }
  .gear-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    min-width: 148px; padding: 4px; z-index: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .gear-menu.open { display: block; }
  .gear-menu-item {
    display: block; width: 100%; background: none; border: none;
    color: var(--text-mid); font-family: 'Inter', sans-serif; font-size: 11px;
    font-weight: 500; padding: 7px 10px; border-radius: 5px;
    cursor: pointer; text-align: left; transition: all 0.12s;
  }
  .gear-menu-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
  .gear-menu-divider { height: 1px; background: var(--border); margin: 3px 0; }

  /* ── STRESS WEIGHTS MODAL ───────────────────────────────────────────── */
  .stress-overlay {
    display: none; position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,0.75); align-items: center; justify-content: center;
  }
  .stress-overlay.active { display: flex; }
  .stress-modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 28px; width: 420px; max-width: 94vw;
    display: flex; flex-direction: column; gap: 20px;
  }
  .stress-modal-title {
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text);
  }
  .stress-modal-sub {
    font-size: 11px; color: var(--text-dim); margin-top: -12px; line-height: 1.5;
  }
  .stress-factor { display: flex; flex-direction: column; gap: 6px; }
  .stress-factor-header {
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .stress-factor-name { font-size: 12px; font-weight: 600; color: var(--text); }
  .stress-factor-desc { font-size: 10px; color: var(--text-dim); }
  .stress-factor-val {
    font-size: 12px; font-weight: 700; color: var(--text-mid);
    min-width: 24px; text-align: right;
  }
  .stress-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px; border-radius: 2px;
    background: var(--border); outline: none; cursor: pointer;
  }
  .stress-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
  }
  .stress-modal-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 4px; border-top: 1px solid var(--border);
  }
  .stress-section-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-dim);
    border-top: 1px solid var(--border); padding-top: 14px; margin-top: 2px;
  }
  .stress-cat-list { display: flex; flex-direction: column; gap: 8px; }
  .stress-cat-row {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
  }
  .stress-cat-row input[type="checkbox"] {
    width: 15px; height: 15px; accent-color: #fff; cursor: pointer; flex-shrink: 0;
  }
  .stress-cat-row label {
    font-size: 12px; color: var(--text); cursor: pointer; user-select: none;
  }
  .stress-reset-btn {
    font-size: 11px; color: var(--text-dim); background: none; border: none;
    cursor: pointer; padding: 0; text-decoration: underline;
  }
  .stress-reset-btn:hover { color: var(--text); }
  .stress-close-btn {
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; background: rgba(255,255,255,0.08);
    border: 1px solid var(--border); border-radius: 6px;
    color: var(--text); cursor: pointer; padding: 6px 16px;
  }
  .stress-close-btn:hover { background: rgba(255,255,255,0.14); }

  /* ── APP DETAILS OVERLAY ────────────────────────────────────────────── */
  .app-details-overlay {
    display: none; position: fixed; inset: 0; z-index: 1100;
    background: rgba(0,0,0,0.75); align-items: center; justify-content: center;
  }
  .app-details-overlay.active { display: flex; }
  .app-details-modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 28px; width: 400px; max-width: 94vw; max-height: 80vh;
    overflow-y: auto; position: relative;
  }
  .app-details-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; color: var(--text-dim);
    font-size: 18px; cursor: pointer; line-height: 1; padding: 4px;
  }
  .app-details-close:hover { color: #fff; }
  .app-details-masthead {
    margin: -28px -28px 20px; padding: 28px 28px 22px;
    background: var(--surface2); border-bottom: 1px solid var(--border);
    border-radius: 14px 14px 0 0;
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  }
  .app-details-masthead-name {
    font-size: 22px; font-weight: 800; letter-spacing: 0.2em;
    text-transform: uppercase; color: #fff;
  }
  .app-details-masthead-sub {
    font-size: 10px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase;
  }
  .app-details-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 12px; }
  .app-details-label { color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
  .app-details-value { color: #fff; font-weight: 600; }
  .app-details-changes-header { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin: 16px 0 8px; }
  .app-details-change { font-size: 12px; color: var(--text-mid); padding: 4px 0; padding-left: 12px; position: relative; line-height: 1.5; }
  .app-details-change::before { content: '·'; position: absolute; left: 2px; color: var(--text-dim); }
  .app-details-dev-note {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 11px; color: var(--text-dim); line-height: 1.6; font-style: italic;
  }
  .app-details-update-btn {
    background: none; border: 1px solid var(--border); border-radius: 5px;
    color: var(--text-mid); font-family: 'Inter', sans-serif; font-size: 10px;
    font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
    padding: 4px 10px; cursor: pointer; transition: all 0.12s; white-space: nowrap;
  }
  .app-details-update-btn:hover:not(:disabled) { border-color: #fff; color: #fff; }
  .app-details-update-btn:disabled { opacity: 0.4; cursor: default; }
  .app-details-update-status { font-size: 11px; color: var(--text-dim); flex: 1; text-align: right; padding-right: 10px; }

  /* ── APPROVAL SCREEN ─────────────────────────────────────────────────── */
  #approvalScreen {
    position: fixed; inset: 0; z-index: 9100;
    background: var(--bg); display: flex; align-items: center; justify-content: center;
  }
  #approvalScreen.hidden { display: none; }
  .approval-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 40px 36px; width: 100%; max-width: 360px;
    display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  }
  .approval-logo { font-weight: 800; font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; }
  .approval-title { font-size: 15px; font-weight: 700; color: #fff; }
  .approval-body  { font-size: 12px; color: var(--text-mid); line-height: 1.6; }
  .approval-request-btn {
    width: 100%; padding: 13px; border-radius: 8px;
    background: #fff; border: none; color: #0b0a0f;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
    transition: opacity 0.12s;
  }
  .approval-request-btn:disabled { opacity: 0.5; cursor: default; }
  .approval-cancel {
    background: none; border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-dim); font-family: 'Inter', sans-serif; font-size: 10px;
    font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 7px 18px; cursor: pointer; transition: all 0.12s; margin-top: 4px;
  }
  .approval-cancel:hover { border-color: #fff; color: #fff; }
  .approval-spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border); border-top-color: var(--text-mid);
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── END DAY MODAL ───────────────────────────────────────────────────── */
  .end-day-overlay {
    display: none; position: fixed; inset: 0; z-index: 1100;
    background: rgba(0,0,0,0.75); align-items: center; justify-content: center;
  }
  .end-day-overlay.active { display: flex; }
  .end-day-modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 28px; width: 520px; max-width: 94vw; max-height: 88vh;
    overflow-y: auto; position: relative; display: flex; flex-direction: column; gap: 26px;
  }
  .edm-title { font-size: 18px; font-weight: 700; color: #fff; }
  .edm-section-label {
    font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 8px;
  }
  .edm-task-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .edm-task-title { font-size: 12px; color: var(--text-mid); }
  .edm-task-time  { font-size: 11px; color: var(--text-dim); }
  .edm-cat-subtotal { display: flex; justify-content: space-between; padding: 5px 0 2px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.1); margin-top: 1px; }
  .edm-priority-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .edm-priority-chip {
    padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
  }
  .edm-stress {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.04); border-radius: 10px; padding: 14px 16px;
  }
  .edm-stress-score {
    font-size: 36px; font-weight: 800; min-width: 48px; text-align: center;
  }
  .edm-stress-label { font-size: 11px; color: var(--text-dim); line-height: 1.5; }
  .edm-stress-desc  { font-size: 12px; color: var(--text-mid); font-weight: 600; }
  .edm-choice-row { display: flex; gap: 10px; margin-top: 4px; }
  .edm-choice-btn {
    flex: 1; padding: 10px 0; border-radius: 8px; border: 1px solid var(--border);
    background: none; color: var(--text-mid); font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: all 0.15s;
  }
  .edm-choice-btn:hover { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.3); }
  .edm-choice-btn.carry { border-color: rgba(126,200,227,0.4); color: var(--sched); }
  .edm-choice-btn.carry:hover { background: rgba(126,200,227,0.1); }
  .edm-choice-btn.clear { border-color: rgba(255,107,138,0.4); color: var(--p1); }
  .edm-choice-btn.clear:hover { background: rgba(255,107,138,0.1); }
  .edm-incomplete-count { font-size: 12px; color: var(--text-mid); text-align: center; margin-bottom: 10px; }

  /* ── DAY OFF OVERLAY ─────────────────────────────────────────────────── */
  .day-off-overlay {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(11,10,15,0.92); backdrop-filter: blur(6px);
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  }
  .day-off-overlay.active { display: flex; }
  .dob-heading {
    font-size: 88px; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1;
  }
  .dob-title {
    font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim);
  }
  .dob-sub {
    font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; text-align: center;
  }
  .dob-cancel-btn {
    background: #fff; border: none; border-radius: 6px; color: #0b0a0f;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; padding: 13px 36px;
    cursor: pointer; transition: opacity 0.15s;
  }
  .dob-cancel-btn:hover { opacity: 0.85; }

  /* ── HISTORY OVERLAY ─────────────────────────────────────────────────── */
  .history-overlay {
    display: none; position: fixed; inset: 0; z-index: 9800;
    background: rgba(0,0,0,0.85); overflow-y: auto;
  }
  .history-overlay.active { display: block; }
  .history-inner {
    max-width: 680px; margin: 0 auto; padding: 70px 20px 60px;
    display: flex; flex-direction: column; gap: 16px;
  }
  .history-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px;
  }
  .history-title { font-size: 20px; font-weight: 800; color: #fff; }
  .history-close {
    background: none; border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-dim); font-size: 14px; width: 32px; height: 32px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
  }
  .history-close:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
  .history-day-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
  }
  .hdc-header { display: flex; align-items: center; justify-content: space-between; }
  .hdc-date { font-size: 14px; font-weight: 700; color: #fff; }
  .hdc-stress { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
  .hdc-tasks { display: flex; flex-direction: column; gap: 2px; }
  .hdc-task-row { display: flex; justify-content: space-between; font-size: 11px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .hdc-task-title { color: var(--text-mid); font-size: 10px; }
  .hdc-task-time  { color: var(--text-dim); font-size: 10px; flex-shrink: 0; margin-left: 6px; }
  .hdc-cat-subtotal { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; padding: 4px 0 2px; color: rgba(255,255,255,0.5); border-top: 1px solid rgba(255,255,255,0.08); margin-top: 1px; }
  .hdc-cat-header-sm { display: flex; justify-content: space-between; align-items: center; font-size: 8px; }
  .hdc-cat-hd-time { font-size: 9px; color: rgba(255,255,255,0.45); font-weight: 600; letter-spacing: 0.04em; }
  .hdc-empty-cat { font-size: 9px; color: var(--text-dim); font-style: italic; padding: 3px 2px; opacity: 0.5; }
  .edm-drag-row.hdc-drag-row { padding: 4px 2px; }
  .edm-drag-row.hdc-drag-row .edm-drag-handle { font-size: 9px; }
  .hdc-priority-row { display: flex; gap: 6px; flex-wrap: wrap; }
  .hdc-priority-chip { padding: 2px 8px; border-radius: 20px; font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
  .history-empty { text-align: center; color: var(--text-dim); font-size: 13px; padding: 60px 0; }

  /* ── GOOGLE CALENDAR IMPORT ─────────────────────────────────────────── */
  .gcal-import-btn {
    background: rgba(66,133,244,0.07); border: 1px solid rgba(66,133,244,0.22);
  }
  .gcal-import-btn:hover { background: rgba(66,133,244,0.14); border-color: rgba(66,133,244,0.45); }
  .sidequest-btn {
    background: rgba(126,200,227,0.07); border: 1px solid rgba(126,200,227,0.22);
  }
  .sidequest-btn:hover { background: rgba(126,200,227,0.14); border-color: rgba(126,200,227,0.45); }
  .gcal-overlay {
    display: none; position: fixed; inset: 0; z-index: 8500;
    background: rgba(0,0,0,0.75); align-items: center; justify-content: center;
  }
  .gcal-overlay.active { display: flex; }
  .gcal-modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 28px; width: 520px; max-width: 94vw; max-height: 88vh;
    overflow-y: auto; position: relative; display: flex; flex-direction: column; gap: 20px;
  }
  .gcal-title { font-size: 18px; font-weight: 700; color: #fff; }
  .gcal-event-list { display: flex; flex-direction: column; gap: 8px; }
  .gcal-event-row {
    display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border);
    border-radius: 8px; cursor: pointer; transition: all 0.15s; user-select: none;
  }
  .gcal-event-row:hover { background: rgba(255,255,255,0.05); }
  .gcal-event-row.checked { border-color: rgba(66,133,244,0.4); background: rgba(66,133,244,0.07); }
  .gcal-event-check { margin-top: 2px; flex-shrink: 0; accent-color: #4285f4; width: 15px; height: 15px; cursor: pointer; }
  .gcal-event-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .gcal-event-title { font-size: 13px; color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gcal-event-meta { font-size: 11px; color: var(--text-dim); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .gcal-est-badge {
    font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 1px 5px; border-radius: 3px; background: rgba(255,170,96,0.15); color: var(--p2);
  }
  .gcal-empty { font-size: 13px; color: var(--text-dim); text-align: center; padding: 30px 0; }
  .gcal-actions { display: flex; gap: 10px; }
  .gcal-confirm-btn {
    flex: 1; padding: 10px 0; border-radius: 8px; border: 1px solid rgba(66,133,244,0.4);
    background: rgba(66,133,244,0.1); color: #adc8ff; font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: all 0.15s;
  }
  .gcal-confirm-btn:hover:not(:disabled) { background: rgba(66,133,244,0.2); border-color: rgba(66,133,244,0.6); color: #c8daff; }
  .gcal-confirm-btn:disabled { opacity: 0.35; cursor: default; }
  .gcal-cancel-btn {
    flex: 1; padding: 10px 0; border-radius: 8px; border: 1px solid var(--border);
    background: none; color: var(--text-mid); font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: all 0.15s;
  }
  .gcal-cancel-btn:hover { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.3); }

  /* ── BLOCK DETAIL MODAL ──────────────────────────────────────────────── */
  .block-detail-overlay {
    display: none; position: fixed; inset: 0; z-index: 8000;
    background: rgba(0,0,0,0.65); align-items: center; justify-content: center;
  }
  .block-detail-overlay.active { display: flex; }
  .block-detail-modal { position: relative; width: 520px; max-width: 95vw; }
  .block-detail-close {
    position: absolute; top: -10px; right: -10px; z-index: 10;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 50%; color: var(--text-mid); font-size: 11px;
    width: 26px; height: 26px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all 0.15s;
  }
  .block-detail-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .block-detail-time-edit {
    display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap;
  }
  .block-detail-time-edit label {
    font-size: 8px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text-dim);
  }
  .block-detail-time-edit input[type="time"] {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 5px; color: #fff; font-family: 'Inter', sans-serif;
    font-size: 11px; padding: 3px 7px; outline: none; cursor: pointer;
  }
  .block-detail-time-edit input[type="time"]:focus { border-color: rgba(255,255,255,0.35); }
  .block-detail-delete-row {
    display: flex; justify-content: flex-end; margin-top: 10px;
  }
  .block-detail-delete-btn {
    background: rgba(220,60,60,0.12); border: 1px solid rgba(220,60,60,0.35);
    border-radius: 6px; color: rgba(220,80,80,0.9); font-size: 11px;
    font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.04em;
    padding: 5px 14px; cursor: pointer; transition: all 0.15s;
  }
  .block-detail-delete-btn:hover {
    background: rgba(220,60,60,0.25); border-color: rgba(220,60,60,0.6); color: #ff6b6b;
  }

  /* ── PASSWORD MODAL ───────────────────────────────────────────────────── */
  .pw-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,0.7); align-items: center; justify-content: center;
  }
  .pw-modal-overlay.active { display: flex; }
  .pw-modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 28px 24px; width: 320px; display: flex; flex-direction: column; gap: 16px;
  }
  .pw-modal-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
  .pw-modal-subtitle { font-size: 10px; color: var(--text-dim); margin-top: -10px; line-height: 1.5; }
  .pw-modal-fields { display: flex; flex-direction: column; gap: 8px; }
  .pw-modal-error { font-size: 10px; color: var(--p1); min-height: 14px; }
  .pw-modal-actions { display: flex; gap: 8px; }
  .pw-modal-actions button { flex: 1; height: 36px; border-radius: 6px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.15s; }
  .pw-modal-actions button:hover { opacity: 0.85; }
  .pw-modal-actions button:disabled { opacity: 0.25; cursor: default; }
  .pw-modal-cancel { background: var(--surface2); color: var(--text-mid); border: 1px solid var(--border) !important; }
  .pw-modal-submit { background: #fff; color: #0b0a0f; }
  .view-segment {
    display: flex; border: 1px solid var(--border); border-radius: 5px; overflow: hidden;
  }
  .seg-btn {
    background: none; border: none; border-radius: 0;
    color: var(--text-dim); font-family: 'Inter', sans-serif; font-size: 9px;
    letter-spacing: 0.08em; padding: 3px 9px; cursor: pointer;
    transition: all 0.15s; text-transform: uppercase; white-space: nowrap;
  }
  .seg-btn:first-child { border-right: 1px solid var(--border); }
  .seg-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
  .seg-btn.active { background: rgba(255,255,255,0.12); color: #fff; }

  /* ── MOBILE LAYOUT ────────────────────────────────────────────────────── */
  body.mobile-view {
    overflow: hidden;
    height: 100dvh;
    overscroll-behavior-y: none;
  }

  /* ── PULL-TO-REFRESH ──────────────────────────────────────────────────── */
  .ptr-indicator {
    position: fixed; top: 0; left: 50%; z-index: 2000;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: 0 3px 14px rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    transform: translate(-50%, -100%);
    will-change: transform, opacity;
  }
  .ptr-arrow { color: var(--sched); font-size: 13px; line-height: 1; display: block; }
  .ptr-spinner {
    display: none; width: 14px; height: 14px;
    border: 2px solid rgba(126,200,227,0.25);
    border-top-color: var(--sched); border-radius: 50%;
    animation: ptr-spin 0.65s linear infinite;
  }
  @keyframes ptr-spin { to { transform: rotate(360deg); } }

  /* main-layout is the slide container */
  body.mobile-view .main-layout {
    flex: 1;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 0;
    flex-direction: unset;
    align-items: unset;
    height: auto;
  }

  /* Left panel = Timeline slide (hidden off-screen left by default) */
  body.mobile-view .left-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    border-right: none;
    border-bottom: none;
    flex-shrink: 0;
    z-index: 1;
  }
  body.mobile-view .left-panel::-webkit-scrollbar { display: none; }

  /* When show-timeline: slide left panel in, task panel out */
  body.mobile-view .main-layout.show-timeline .left-panel  { transform: translateX(0); }
  body.mobile-view .main-layout.show-timeline .task-panel  { transform: translateX(100%); }

  /* Clock row in timeline slide */
  body.mobile-view .clock-section {
    flex-shrink: 0;
    background: var(--bg);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    border-right: none;
    gap: 0;
    position: static;
    z-index: auto;
  }
  body.mobile-view .clock-time { font-size: 32px; }
  body.mobile-view .clock-ampm { font-size: 11px; }
  body.mobile-view .clock-tz   { font-size: 8px; }
  body.mobile-view .clock-date { font-size: 10px; margin-top: 0; }

  /* Calendar fills the timeline slide */
  body.mobile-view .calendar-section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    padding: 0;
    cursor: default;
  }
  body.mobile-view .calendar-section::-webkit-scrollbar { display: none; }
  body.mobile-view .calendar-section .cal-container { display: block; }

  /* Day bounds pinned to bottom of timeline slide */
  body.mobile-view .cal-bounds-section {
    padding: 10px 12px;
    order: unset;
    flex-shrink: 0;
    position: static;
    bottom: auto;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 1;
  }
  body.mobile-view .clock-section    { order: unset; }
  body.mobile-view .calendar-section { order: unset; }

  /* Hide drawer mechanism — timeline is always inline */
  .cal-drawer-label { display: none; }
  body.mobile-view .cal-drawer-label    { display: none; }
  .cal-drawer-overlay                   { display: none; }
  .cal-drawer-panel                     { display: none; }
  .cal-drawer-close-btn                 { display: none; }
  body.mobile-view.cal-drawer-open .cal-drawer-overlay  { display: none; }
  body.mobile-view.cal-drawer-open .cal-drawer-panel    { display: none; }
  body.mobile-view.cal-drawer-open .cal-drawer-close-btn{ display: none; }

  /* Larger text on timeline blocks for mobile readability */
  body.mobile-view .cal-block-title { font-size: 11px; }
  body.mobile-view .cal-block-meta  { font-size: 10px; }

  /* Task panel = Queue slide (visible by default) */
  body.mobile-view .task-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px 100px;
    flex-shrink: 0;
    z-index: 1;
  }
  body.mobile-view .task-panel::-webkit-scrollbar { display: none; }
  body.mobile-view .task-panel > * { max-width: 100%; }

  /* Touch-friendly cards */
  body.mobile-view .task-card { padding: 14px 12px; }
  body.mobile-view .card-task-title { font-size: 17px; }
  body.mobile-view .done-btn { padding: 7px 12px; font-size: 10px; }
  body.mobile-view .delete-btn { padding: 6px 8px; font-size: 14px; top: 8px; right: 8px; }
  body.mobile-view .priority-badge { padding: 4px 8px; font-size: 10px; }

  /* Add buttons: full-width single-column in Queue slide */
  body.mobile-view .add-btns-row { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  body.mobile-view .add-btns-row > button { font-size: 10px; padding: 8px 4px; min-height: 48px; }
  body.mobile-view .break-budget-panel { display: none; }
  body.mobile-view .add-btn,
  body.mobile-view .add-sched-btn { height: 40px; font-size: 11px; }

  /* DAY buttons: stack full-width */
  body.mobile-view .end-btns-row { flex-direction: column; gap: 6px; }
  body.mobile-view .end-btns-row .end-day-btn { width: 100%; }

  /* Hide the desktop footer on mobile — replaced by bottom nav */
  body.mobile-view .app-footer { display: none; }

  /* Hide ADD button row on mobile — replaced by FAB in nav bar */
  body.mobile-view #bottomSectionAdd { display: none; }

  /* ── MOBILE FAB (lives in the bottom nav bar) ───────────────────────────── */
  .mobile-add-fab {
    display: none;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 24px; font-weight: 300; line-height: 1;
    cursor: pointer; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
  }
  body.mobile-view .mobile-add-fab { display: flex; }
  .mobile-add-fab:active { background: rgba(255,255,255,0.15); transform: scale(0.92); }

  /* ── MOBILE ACTION SHEET ────────────────────────────────────────────────── */
  .mobile-action-sheet-overlay {
    display: none; position: fixed; inset: 0; z-index: 9200;
    background: rgba(0,0,0,0.55); align-items: flex-end;
  }
  .mobile-action-sheet-overlay.open { display: flex; }
  .mobile-action-sheet {
    width: 100%; background: var(--surface);
    border-radius: 14px 14px 0 0; border-top: 1px solid var(--border);
    padding: 8px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    animation: masSlideUp 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  @keyframes masSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .mas-handle {
    width: 32px; height: 3px; background: var(--border);
    border-radius: 2px; margin: 6px auto 14px;
  }
  .mas-title {
    font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text-dim);
    margin-bottom: 12px; text-align: center;
  }
  .mas-options { display: flex; flex-direction: column; gap: 8px; }
  .mas-btn {
    width: 100%; padding: 14px 16px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface2); color: #fff;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
    text-align: center; justify-content: center; cursor: pointer; display: flex; align-items: center; gap: 10px;
    transition: background 0.12s; -webkit-tap-highlight-color: transparent;
  }
  .mas-btn:active { background: rgba(255,255,255,0.08); }
  .mas-btn:disabled { opacity: 0.35; pointer-events: none; }
  .mas-btn.mas-sched { border-color: rgba(126,200,227,0.3); color: var(--sched); }
  .mas-btn.mas-break { border-color: rgba(152,99,243,0.3); color: var(--break); }
  .mas-btn.mas-quest { border-color: rgba(255,75,180,0.35); color: #ff4bb4; }

  /* ── Mobile task-edit bottom sheet ─────────────────────────────────── */
  .mobile-task-edit-overlay {
    display: none; position: fixed; inset: 0; z-index: 9300;
    background: rgba(0,0,0,0.55); align-items: flex-end;
  }
  .mobile-task-edit-overlay.open { display: flex; }
  .mobile-task-edit-sheet {
    width: 100%; background: var(--surface); border-radius: 14px 14px 0 0;
    border-top: 1px solid var(--border);
    padding: 8px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    animation: slideUp 0.28s cubic-bezier(0.4,0,0.2,1);
  }
  .mte-handle { width: 32px; height: 3px; background: var(--border); border-radius: 2px; margin: 6px auto 18px; }
  .mte-field-label {
    font-size: 9px; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-dim); margin-bottom: 7px;
  }
  .mte-input {
    width: 100%; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 13px 14px; color: #fff;
    font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500;
    outline: none; margin-bottom: 16px; box-sizing: border-box;
  }
  .mte-input:focus { border-color: rgba(255,255,255,0.28); }
  .mte-priority-row { display: flex; gap: 6px; margin-bottom: 18px; }
  .mte-p-btn {
    flex: 1; padding: 10px 4px; border-radius: 7px;
    border: 1px solid var(--border); background: var(--surface2);
    color: var(--text-mid); font-family: 'Inter', sans-serif;
    font-size: 9px; font-weight: 700; letter-spacing: 0.09em;
    text-transform: uppercase; cursor: pointer; transition: background 0.12s;
  }
  .mte-p-btn.mte-active-1 { border-color: var(--p1); color: var(--p1); background: rgba(255,107,138,0.12); }
  .mte-p-btn.mte-active-2 { border-color: var(--p2); color: var(--p2); background: rgba(255,170,96,0.12); }
  .mte-p-btn.mte-active-3 { border-color: var(--p3); color: var(--p3); background: rgba(240,208,96,0.12); }
  .mte-p-btn.mte-active-4 { border-color: var(--p4); color: var(--p4); background: rgba(127,212,168,0.12); }
  .mte-actions { display: flex; gap: 8px; margin-top: 6px; }
  .mte-save-btn {
    flex: 1; padding: 15px; border-radius: 10px;
    background: #fff; border: none; color: #0b0a0f;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  }
  .mte-delete-btn {
    padding: 15px 20px; border-radius: 10px;
    border: 1px solid rgba(255,107,138,0.35); background: transparent;
    color: var(--p1); font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600; cursor: pointer;
  }

  /* 16px prevents iOS auto-zoom on input focus */
  body.mobile-view .task-input,
  body.mobile-view .time-input,
  body.mobile-view .duration-select { font-size: 16px; padding: 10px 10px; }
  body.mobile-view .smart-time .st-hour,
  body.mobile-view .smart-time .st-min { font-size: 16px; padding-top: 10px; padding-bottom: 10px; }
  body.mobile-view .smart-time .st-sep  { font-size: 16px; }
  body.mobile-view .smart-time .st-ampm { font-size: 14px; }

  /* More section touch target */
  body.mobile-view .more-header { padding: 10px 2px; }

  /* ── MOBILE BOTTOM NAV ──────────────────────────────────────────────────── */
  .mobile-bottom-nav {
    display: none;
  }
  body.mobile-view .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
    height: 56px;
    flex-shrink: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 2px;
    background: var(--p2);
    border-radius: 0 0 2px 2px;
    opacity: 0;
    transition: opacity 0.15s;
  }
  .mobile-nav-btn.active { color: #fff; }
  .mobile-nav-btn.active::after { opacity: 1; }
  .mobile-nav-icon { font-size: 19px; line-height: 1; }
  /* Day section: keep visible on mobile, no label, full-width stacked buttons */
  body.mobile-view #bottomSectionDay { border-top: none; padding-top: 0; }
  body.mobile-view #bottomSectionDay .bottom-section-label { display: none; }

  /* Undo button: rotate glyph to correct orientation on mobile */
  body.mobile-view .titlebar-undo-btn {
    font-size: 15px;
    transform: rotate(-90deg);
    width: 28px; height: 26px;
  }

  /* Day Ended / Day Off overlay headings — scale down for mobile */
  body.mobile-view .deo-heading {
    font-size: clamp(28px, 9vw, 44px);
    text-align: center; padding: 0 20px;
  }
  body.mobile-view .dob-heading {
    font-size: clamp(44px, 14vw, 64px);
    text-align: center;
  }

  /* ── AUTH SCREEN ──────────────────────────────────────────────────────── */
  #authScreen {
    position: fixed; inset: 0; z-index: 9000;
    background: var(--bg); display: flex; align-items: center; justify-content: center;
  }
  #authScreen.hidden { display: none; }
  .auth-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 36px 32px; width: 100%; max-width: 340px; display: flex;
    flex-direction: column; align-items: center; gap: 20px;
  }
  .auth-logo { font-weight: 800; font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; }
  .auth-subtitle { font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; margin-top: -12px; }
  .auth-divider { width: 100%; display: flex; align-items: center; gap: 10px; }
  .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .auth-divider span { font-size: 9px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
  .auth-fields { width: 100%; display: flex; flex-direction: column; gap: 10px; }
  .auth-input {
    width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
    color: #fff; font-family: 'Inter', sans-serif; font-size: 13px; padding: 10px 12px; outline: none;
    transition: border-color 0.15s;
  }
  .auth-input:focus { border-color: rgba(255,255,255,0.35); }
  .auth-input::placeholder { color: var(--text-dim); }
  .auth-btn {
    width: 100%; height: 38px; border: none; border-radius: 6px; cursor: pointer;
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px;
    letter-spacing: 0.12em; text-transform: uppercase; transition: opacity 0.15s;
  }
  .auth-btn:hover { opacity: 0.85; }
  .auth-btn:disabled { opacity: 0.25; cursor: default; }
  .auth-btn.primary { background: #fff; color: #0b0a0f; }
  .auth-btn.google {
    background: var(--surface2); color: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .auth-btn.google:hover { border-color: #fff; }
  .auth-error { font-size: 10px; color: var(--p1); text-align: center; min-height: 14px; }
  .auth-switch { font-size: 10px; color: var(--text-dim); }
  .auth-switch a { color: var(--text-mid); cursor: pointer; text-decoration: underline; }
  .auth-keep { font-size: 10px; color: var(--text-dim); }
  .auth-keep label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

  /* ── BREAK BUTTON / CONTROLS ──────────────────────────────────────────── */
  .slot-label-row { padding: 2px 2px 5px; }
  .break-toggle-btn {
    background: rgba(152,99,243,0.07); border: 1px solid rgba(152,99,243,0.28);
  }
  .break-toggle-btn:hover:not(:disabled) { background: rgba(152,99,243,0.14); border-color: rgba(152,99,243,0.55); }
  .break-toggle-btn:disabled { opacity: 0.25; cursor: default; }
  .break-toggle-btn.over { border-color: var(--p1); color: #fff; background: rgba(255,107,138,0.07); }
  .break-toggle-btn.over:hover:not(:disabled) { color: var(--p1); }

  /* ── BOTTOM PANEL SECTIONS ────────────────────────────────────────────── */
  .bottom-section {
    margin-top: 0; padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .bottom-section-label {
    font-size: 8px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-dim); margin-bottom: 7px;
  }

  /* ── END DAY BUTTON ───────────────────────────────────────────────────── */
  .end-btns-row {
    display: flex; gap: 8px;
  }
  .end-btns-row .end-day-btn { margin-top: 0; flex: 1; }
  .end-day-btn {
    width: 100%; margin-top: 6px; padding: 9px 14px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: rgba(255,255,255,0.45);
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px;
    letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
    transition: all 0.2s;
  }
  .end-day-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.75); }
  /* ── DAY ENDED GREY STATE ─────────────────────────────────────────────── */
  body.day-ended .right-panel { opacity: 0.35; pointer-events: none; }
  body.day-ended .add-btns-row,
  body.day-ended .add-form-wrap,
  body.day-ended .add-sched-form-wrap { opacity: 0.35; pointer-events: none; }
  /* ── BREAK BUDGET PANEL (inside interval timer panel) ────────────────── */
  .break-budget-panel {
    flex-shrink: 0; border-top: 1px solid var(--border);
    padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 7px;
  }
  .bbp-header { display: flex; align-items: center; justify-content: space-between; }
  .bbp-label {
    font-size: 8px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-dim);
  }
  .bbp-select {
    -webkit-appearance: none; appearance: none;
    background: transparent; border: none; color: #fff;
    font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
    letter-spacing: 0.05em; cursor: pointer; outline: none; padding: 0;
  }
  .bbp-select option { background: var(--surface2); color: #fff; }
  .bbp-bar-wrap {
    height: 3px; background: rgba(152,99,243,0.18); border-radius: 2px; overflow: hidden;
  }
  .bbp-bar-fill {
    height: 100%; width: 0%; border-radius: 2px;
    background: var(--break); transition: width 0.4s ease, background 0.3s;
  }
  .bbp-bar-fill.over { background: var(--p1); }
  .bbp-tally {
    font-size: 9px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-mid);
    transition: color 0.2s;
  }
  .bbp-tally.over { color: var(--p1); }
  /* ── AUTO-BREAK PROMPT ─────────────────────────────────────────────────── */
  .auto-break-prompt {
    position: fixed; inset: 0; z-index: 9100;
    display: none; align-items: center; justify-content: center;
    background: rgba(11,10,15,0.75); backdrop-filter: blur(4px);
  }
  .auto-break-prompt.active { display: flex; }
  .abp-card {
    background: #1a1825; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 32px 36px; max-width: 320px; width: 90%;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  }
  .abp-icon { font-size: 36px; line-height: 1; }
  .abp-title {
    font-size: 15px; font-weight: 700; color: #e0daf8; letter-spacing: 0.01em;
  }
  .abp-body {
    font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.6;
  }
  .abp-btns {
    display: flex; gap: 10px; margin-top: 8px; width: 100%;
  }
  .abp-btn-start {
    flex: 1; padding: 10px; border-radius: 9px; border: none;
    background: #7c5cbf; color: #fff; font-size: 12px; font-weight: 700;
    cursor: pointer; letter-spacing: 0.03em;
    transition: background 0.15s;
  }
  .abp-btn-start:hover { background: #8d6dd0; }
  .abp-btn-skip {
    flex: 1; padding: 10px; border-radius: 9px;
    background: transparent; color: var(--text-dim);
    border: 1px solid rgba(255,255,255,0.12); font-size: 12px; font-weight: 600;
    cursor: pointer; letter-spacing: 0.03em; transition: background 0.15s;
  }
  .abp-btn-skip:hover { background: rgba(255,255,255,0.06); }

  /* ── BREAK OVERLAY ────────────────────────────────────────────────────── */
  .break-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(11,10,15,0.92); backdrop-filter: blur(6px);
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  }
  .break-overlay.active { display: flex; }
  .break-overlay.over { background: rgba(20,5,5,0.94); }
  .break-heading {
    font-size: 11px; font-weight: 800; letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-dim);
  }
  .break-type-badge {
    font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-dim);
  }
  .break-budget-info {
    font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em;
    display: flex; align-items: center; gap: 10px;
  }
  .break-budget-info-bar-wrap {
    width: 120px; height: 3px; background: rgba(152,99,243,0.2); border-radius: 2px; overflow: hidden;
  }
  .break-budget-info-bar {
    height: 100%; border-radius: 2px; background: var(--break); transition: width 0.4s, background 0.3s;
  }
  .break-budget-info-bar.over { background: var(--p1); }
  .break-budget-info-text { transition: color 0.3s; }
  .break-budget-info-text.over { color: var(--p1); }
  .break-timer {
    font-size: 88px; font-weight: 800; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums; color: #fff; line-height: 1; transition: color 0.4s;
  }
  .break-timer.over { color: var(--p1); }
  .break-status {
    font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; text-align: center;
    line-height: 1.9; transition: color 0.4s;
  }
  .break-status.over { color: var(--p1); }
  .end-break-btn {
    background: #fff; border: none; border-radius: 6px; color: #0b0a0f;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; padding: 13px 36px;
    cursor: pointer; transition: opacity 0.15s, background 0.3s, color 0.3s;
  }
  .end-break-btn:hover { opacity: 0.85; }
  .end-break-btn.over { background: var(--p1); color: #fff; }

  /* ── DAY ENDED OVERLAY ────────────────────────────────────────────────── */
  .day-ended-overlay {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(11,10,15,0.92); backdrop-filter: blur(6px);
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  }
  .day-ended-overlay.active { display: flex; }
  .deo-label {
    font-size: 11px; font-weight: 800; letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-dim);
  }
  .deo-heading {
    font-size: 72px; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1;
  }
  .deo-sub {
    font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em;
  }
  .deo-resume-btn {
    background: #fff; border: none; border-radius: 6px; color: #0b0a0f;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; padding: 13px 36px;
    cursor: pointer; transition: opacity 0.15s;
  }
  .deo-resume-btn:hover { opacity: 0.85; }

  /* ── SIDEQUEST OVERLAY ────────────────────────────────────────────────── */
  .sidequest-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(6,10,18,0.93); backdrop-filter: blur(6px);
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  }
  .sidequest-overlay.active { display: flex; }
  .sq-heading {
    font-size: 11px; font-weight: 800; letter-spacing: 0.35em; text-transform: uppercase;
    color: #7ec8e3;
  }
  .sq-icon { font-size: 36px; line-height: 1; }
  .sq-task-title {
    font-size: 22px; font-weight: 700; color: #fff; text-align: center;
    max-width: 320px; line-height: 1.3;
  }
  .sq-timer {
    font-size: 72px; font-weight: 800; letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums; color: #7ec8e3; line-height: 1;
  }
  .sq-paused-label {
    font-size: 11px; color: var(--text-dim); letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .sq-paused-task {
    font-size: 13px; color: var(--text-mid); text-align: center;
    max-width: 280px; line-height: 1.4;
  }
  .sq-end-btn {
    background: #7ec8e3; border: none; border-radius: 6px; color: #0b0a0f;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; padding: 13px 36px;
    cursor: pointer; transition: opacity 0.15s;
  }
  .sq-end-btn:hover { opacity: 0.85; }

  /* ── INTERVAL TIMER PANEL ────────────────────────────────────────────────────── */
  /* ── AUTO-BREAK TOGGLE ───────────────────────────────────────────────── */
  .ab-toggle {
    position: relative; display: inline-flex; align-items: center;
    width: 36px; height: 20px; cursor: pointer; flex-shrink: 0;
  }
  .ab-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
  .ab-track {
    position: absolute; inset: 0; border-radius: 10px;
    background: var(--border); transition: background 0.2s;
  }
  .ab-toggle input:checked ~ .ab-track { background: #9863f3; }
  .ab-thumb {
    position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: transform 0.2s; z-index: 1;
  }
  .ab-toggle input:checked ~ .ab-thumb { transform: translateX(16px); }

  /* ── ADD TASK BUTTONS ─────────────────────────────────────────────────── */
  .add-btns-row { margin-top: 0; }

  .bcr-section { flex: 1; display: flex; flex-direction: column; gap: 4px; }
  .bcr-hd { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
  .bcr-label {
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
  }

  /* ── DAY OFF history badge ────────────────────────────────────────────── */
  .hdc-day-off-badge {
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-dim); background: rgba(255,255,255,0.06); border-radius: 20px; padding: 4px 10px;
  }

  /* ── APP FOOTER (day bounds + category tally + break controls) ────────── */
  .app-footer {
    display: flex; flex-shrink: 0;
    border-top: 1px solid var(--border); background: var(--bg);
    position: sticky; bottom: 0; z-index: 2;
  }
  .footer-daybounds {
    width: 200px; flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding: 10px 12px; display: flex; flex-direction: column; gap: 7px;
  }
  .footer-section {
    flex: 1; display: flex; flex-direction: column; gap: 4px;
    padding: 10px 12px;
  }
  .footer-section + .footer-section { border-left: 1px solid rgba(255,255,255,0.07); }

  /* ── CATEGORY TALLY PANEL ─────────────────────────────────────────────── */
  .cat-tally-panel {
    flex-shrink: 0;
    display: flex; flex-direction: column; gap: 5px;
  }
  .cat-tally-label {
    font-size: 8px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-dim); margin-bottom: 3px;
  }
  .cat-tally-row {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
  }
  .cat-tally-name {
    font-size: 8px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-mid);
  }
  .cat-tally-time {
    font-size: 9px; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums;
  }
  .cat-tally-bar-wrap {
    flex: 1; height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; overflow: hidden; min-width: 20px;
  }
  .cat-tally-bar { height: 100%; border-radius: 1px; transition: width 0.5s ease; }
  .cat-tally-empty { font-size: 9px; color: var(--text-dim); font-style: italic; }
  body.mobile-view .cat-tally-panel { display: none; }

  /* ── END DAY — CATEGORY SECTIONS ─────────────────────────────────────── */
  .edm-cat-section {
    border: 1px solid transparent; border-radius: 8px;
    padding: 6px 8px 2px; transition: border-color 0.15s, background 0.15s;
  }
  .edm-cat-section.edm-drag-over {
    border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04);
  }
  .edm-cat-header {
    font-size: 8px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 4px; padding: 0 2px;
  }
  .edm-cat-tasks { display: flex; flex-direction: column; }
  .edm-cat-empty {
    font-size: 10px; color: var(--text-dim); padding: 6px 2px; font-style: italic;
  }
  .edm-drag-row {
    display: flex; align-items: center; gap: 8px; padding: 8px 2px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: grab; user-select: none;
  }
  .edm-drag-row:last-child { border-bottom: none; }
  .edm-drag-row:active { cursor: grabbing; }
  .edm-drag-row.edm-dragging { opacity: 0.4; }
  .edm-drag-handle {
    font-size: 11px; color: var(--text-dim); flex-shrink: 0; line-height: 1; opacity: 0.5;
  }
  .edm-drag-row .edm-task-title { flex: 1; font-size: 12px; color: var(--text-mid); }
  .edm-drag-row .edm-task-time  { font-size: 11px; color: var(--text-dim); flex-shrink: 0; }

  /* ── CATEGORY MANAGER MODAL ──────────────────────────────────────────── */
  .cat-mgr-overlay {
    display: none; position: fixed; inset: 0; z-index: 9900;
    background: rgba(0,0,0,0.85); overflow-y: auto;
  }
  .cat-mgr-overlay.active { display: block; }
  .cat-mgr-modal {
    max-width: 560px; margin: 0 auto; padding: 70px 20px 60px;
    display: flex; flex-direction: column; gap: 20px;
  }
  .cat-mgr-header {
    display: flex; align-items: center; justify-content: space-between;
  }
  .cat-mgr-title { font-size: 20px; font-weight: 800; color: #fff; }
  .cat-mgr-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
  }
  .cat-mgr-card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .cat-mgr-cat-name { font-size: 14px; font-weight: 700; color: #fff; }
  .cat-mgr-delete-btn {
    background: none; border: 1px solid var(--border); border-radius: 5px;
    color: var(--text-dim); font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; padding: 4px 9px; cursor: pointer; transition: all 0.12s;
    white-space: nowrap; flex-shrink: 0;
  }
  .cat-mgr-delete-btn:hover { border-color: #ff6b8a; color: #ff6b8a; }
  .cat-mgr-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; }
  .cat-mgr-chip {
    display: flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 20px;
    background: rgba(255,255,255,0.07); border: 1px solid var(--border);
    font-size: 10px; color: var(--text-mid); font-weight: 500;
  }
  .cat-mgr-chip-remove {
    background: none; border: none; color: var(--text-dim); font-size: 11px; cursor: pointer;
    padding: 0 0 0 2px; line-height: 1; transition: color 0.1s; display: flex; align-items: center;
  }
  .cat-mgr-chip-remove:hover { color: #ff6b8a; }
  .cat-mgr-add-kw {
    display: flex; gap: 6px;
  }
  .cat-mgr-add-kw input {
    flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
    color: #fff; font-family: 'Inter', sans-serif; font-size: 11px; padding: 6px 10px;
    outline: none; transition: border-color 0.15s;
  }
  .cat-mgr-add-kw input:focus { border-color: rgba(255,255,255,0.3); }
  .cat-mgr-add-kw input::placeholder { color: var(--text-dim); }
  .cat-mgr-add-kw-btn {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
    color: #fff; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; cursor: pointer;
    transition: all 0.12s; white-space: nowrap;
  }
  .cat-mgr-add-kw-btn:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.3); }
  .cat-mgr-no-kw { font-size: 10px; color: var(--text-dim); font-style: italic; }
  .cat-mgr-new-row {
    display: flex; gap: 8px;
  }
  .cat-mgr-new-row input {
    flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
    color: #fff; font-family: 'Inter', sans-serif; font-size: 12px; padding: 9px 12px;
    outline: none; transition: border-color 0.15s;
  }
  .cat-mgr-new-row input:focus { border-color: rgba(255,255,255,0.3); }
  .cat-mgr-new-row input::placeholder { color: var(--text-dim); }
  .cat-mgr-new-btn {
    background: #fff; border: none; border-radius: 6px;
    color: #0b0a0f; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 16px; cursor: pointer;
    transition: opacity 0.15s; white-space: nowrap;
  }
  .cat-mgr-new-btn:hover { opacity: 0.85; }
  .cat-mgr-catch-all-note {
    font-size: 9px; color: var(--text-dim); margin-top: -4px; font-style: italic;
  }

  /* ── SETTINGS OVERLAY ────────────────────────────────────────────────── */
  .settings-overlay {
    display: none; position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,0.85); align-items: center; justify-content: center;
    padding: 32px 20px;
  }
  .settings-overlay.active { display: flex; }
  .settings-inner {
    display: flex; width: 100%; max-width: 820px; max-height: calc(100vh - 64px);
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden;
  }
  .settings-sidebar {
    width: 180px; flex-shrink: 0; border-right: 1px solid var(--border);
    padding: 20px 0; display: flex; flex-direction: column; gap: 2px;
    background: var(--surface2);
  }
  .settings-sidebar-title {
    font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-dim); padding: 0 16px 14px; border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .settings-tab {
    display: block; width: 100%; background: none; border: none;
    color: var(--text-mid); font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    padding: 8px 16px; cursor: pointer; text-align: left; transition: all 0.12s; border-radius: 0;
  }
  .settings-tab:hover { color: #fff; background: rgba(255,255,255,0.05); }
  .settings-tab.active { color: #fff; background: rgba(255,255,255,0.09); font-weight: 600; }
  .settings-close-btn {
    margin-top: auto; padding: 10px 16px; background: none; border: none; border-top: 1px solid var(--border);
    color: var(--text-dim); font-family: 'Inter', sans-serif; font-size: 11px;
    cursor: pointer; text-align: left; transition: color 0.12s;
  }
  .settings-close-btn:hover { color: #fff; }
  .settings-content {
    flex: 1; overflow-y: auto; padding: 32px; min-width: 0;
  }
  .settings-panel { display: none; }
  .settings-panel.active { display: block; }
  .settings-panel-title {
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text); margin-bottom: 24px;
  }
  /* Data panel */
  .settings-data-section {
    padding: 20px 0; border-bottom: 1px solid var(--border);
  }
  .settings-data-section:last-child { border-bottom: none; }
  .settings-data-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
  .settings-data-desc { font-size: 11px; color: var(--text-dim); margin-bottom: 14px; line-height: 1.5; }
  .settings-data-btn {
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-mid); cursor: pointer; padding: 7px 16px; transition: all 0.12s;
    font-family: 'Inter', sans-serif;
  }
  .settings-data-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .settings-data-btn.danger { border-color: rgba(255,107,138,0.4); color: var(--p1); }
  .settings-data-btn.danger:hover { background: rgba(255,107,138,0.08); }
  .settings-data-confirm {
    display: none; margin-top: 14px; padding: 14px 16px;
    background: rgba(255,107,138,0.07); border: 1px solid rgba(255,107,138,0.2);
    border-radius: 8px; flex-wrap: wrap; align-items: center; gap: 10px;
  }
  .settings-data-confirm.visible { display: flex; }
  .settings-data-confirm-text {
    font-size: 11px; color: var(--text-mid); flex: 1; line-height: 1.5; min-width: 160px;
  }
  .settings-data-confirm-yes {
    font-size: 11px; font-weight: 700; background: none; border: 1px solid rgba(255,107,138,0.5);
    border-radius: 5px; color: var(--p1); padding: 6px 14px; cursor: pointer; transition: all 0.12s;
    font-family: 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  }
  .settings-data-confirm-yes:hover { background: rgba(255,107,138,0.15); }
  .settings-data-confirm-no {
    font-size: 11px; background: none; border: 1px solid var(--border);
    border-radius: 5px; color: var(--text-dim); padding: 6px 14px; cursor: pointer; transition: all 0.12s;
    font-family: 'Inter', sans-serif;
  }
  .settings-data-confirm-no:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
  /* Account panel tweaks */
  .settings-panel .pw-modal-actions { margin-top: 4px; }
  /* About panel tweaks */
  .settings-panel .app-details-masthead {
    margin: -32px -32px 24px; border-radius: 0; border-top: none;
  }

