:root {
    --primary: #0a7ea4;
    --primary-dark: #066685;
    --primary-soft: #e0f2fa;
    --accent: #14b8a6;
    --accent-soft: #ccfbf1;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e5e7eb;
    --green: #16a34a;
    --green-soft: #dcfce7;
    --amber: #d97706;
    --amber-soft: #fef3c7;
    --red: #dc2626;
    --red-soft: #fee2e2;
    --purple: #7c3aed;
    --purple-soft: #ede9fe;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

  html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--text); background: #f1f5f9;
    -webkit-font-smoothing: antialiased; height: 100%;
  }

  /* ============== APP SHELL ============== */
  body {
    display: flex; align-items: flex-start; justify-content: center;
    min-height: 100vh;
  }
  .app-shell {
    width: 100%; max-width: 480px;
    min-height: 100vh;
    background: #fff;
    display: flex; flex-direction: column;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.08);
  }

  /* On small screens fill edge-to-edge */
  @media (max-width: 499px) {
    body { background: #fff; }
    .app-shell { box-shadow: none; max-width: 100%; }
  }

  /* ============== APP HEADER (Today) ============== */
  .app-header {
    padding: 4px 18px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0; background: #fff;
  }
  .app-header .row1 {
    display: flex; align-items: center; gap: 10px;
  }
  .app-header .logo {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
  }
  .app-header .name { font-weight: 600; font-size: 15px; line-height: 1.2; }
  .app-header .name-sub { font-size: 11px; color: #888; }
  .app-header .greeting { font-size: 19px; font-weight: 600; margin-top: 12px; }
  .app-header .date { color: #888; font-size: 12px; margin-top: 2px; }

  /* Top bar for sub-screens */
  .top-bar {
    background: #fff; padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  }
  .back-btn, .close-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: #f3f4f6; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #444;
  }
  .top-bar h2 { font-size: 16px; font-weight: 600; }
  .top-bar .right { margin-left: auto; font-size: 12px; color: #888; }
  .top-bar .right.btn-text { color: var(--primary); font-weight: 600; cursor: pointer; }

  /* ============== CONTENT (scrollable) ============== */
  .content {
    flex: 1; overflow-y: auto;
    padding: 14px 16px 24px;
    background: #f9fafb;
    -webkit-overflow-scrolling: touch;
  }

  /* ============== BIG ACTION BUTTONS (Today) ============== */
  .big-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px;
  }
  .action-btn {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 14px; padding: 16px 12px; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px; position: relative;
    text-align: left;
  }
  .action-btn:active { transform: scale(0.98); }
  .action-btn.primary {
    background: var(--primary); border-color: var(--primary); color: #fff;
  }
  .action-btn.accent {
    background: var(--accent-soft); border-color: var(--accent);
  }
  .action-btn .ico {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    margin-bottom: 4px;
  }
  .action-btn.primary .ico { background: rgba(255,255,255,0.2); color: #fff; }
  .action-btn.accent .ico { background: var(--accent); color: #fff; }
  .action-btn .label { font-weight: 600; font-size: 14.5px; }
  .action-btn .meta { font-size: 11.5px; color: #666; }
  .action-btn.primary .meta { color: rgba(255,255,255,0.85); }
  .action-btn .badge-num {
    position: absolute; top: 10px; right: 10px;
    background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
  }

  /* Section header */
  .section-h {
    font-size: 13px; font-weight: 600; color: #555;
    margin: 8px 4px 8px; display: flex; align-items: center; justify-content: space-between;
  }
  .section-h .small-link { color: var(--primary); font-size: 12px; cursor: pointer; }

  /* ============== APPOINTMENT CARDS ============== */
  .appt-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
    margin-bottom: 8px;
    display: flex; gap: 12px; align-items: center;
    cursor: pointer;
  }
  .appt-card:active { background: #f5f5f5; }
  .appt-card .time-block {
    text-align: center; flex-shrink: 0;
    border-right: 1px solid #f0f0f0; padding-right: 12px; min-width: 64px;
  }
  .appt-card .time-block .t { font-weight: 700; font-size: 15px; }
  .appt-card .time-block .ampm { font-size: 11px; color: #888; }
  .appt-card .time-block .dur { font-size: 10px; color: #aaa; margin-top: 4px; }
  .appt-card .info { flex: 1; min-width: 0; }
  .appt-card .info .pname { font-weight: 600; font-size: 14px; }
  .appt-card .info .meta { font-size: 12px; color: #777; margin-top: 2px; }
  .appt-card .pill-status {
    font-size: 10.5px; padding: 4px 8px; border-radius: 8px; font-weight: 600;
    flex-shrink: 0;
  }
  .pill-confirmed { background: var(--green-soft); color: var(--green); }
  .pill-pending { background: var(--amber-soft); color: var(--amber); }
  .pill-checkedin { background: var(--blue-soft); color: var(--blue); }
  .pill-new { background: var(--purple-soft); color: var(--purple); }
  .pill-completed { background: #e2e8f0; color: #475569; }

  /* ============== PATIENT LIST ROWS ============== */
  .patient-row {
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
    margin-bottom: 8px;
    display: flex; gap: 12px; align-items: center;
    cursor: pointer;
  }
  .patient-row:active { background: #f5f5f5; }
  .avatar {
    width: 38px; height: 38px; border-radius: 50%;
    color: #fff; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .patient-row .info { flex: 1; min-width: 0; overflow: hidden; }
  .patient-row .info .pname {
    font-weight: 600; font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .patient-row .info .meta { font-size: 12px; color: #777; margin-top: 1px; }
  .patient-row .chev { color: #ccc; font-size: 18px; flex-shrink: 0; }

  /* ============== SEARCH BAR ============== */
  .search-bar {
    background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
    padding: 10px 14px; display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
  }
  .search-bar input {
    border: none; outline: none; flex: 1; font-size: 14px; background: transparent;
  }
  .search-bar input::placeholder { color: #aaa; }

  /* ============== FORMS ============== */
  .form-group { margin-bottom: 16px; }
  .form-group label {
    display: block; font-size: 12.5px; font-weight: 600;
    color: #444; margin-bottom: 6px;
  }
  .form-group label .opt { color: #aaa; font-weight: 400; }
  .form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 14px;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 14px; background: #fff; color: var(--text);
    font-family: inherit;
  }
  .form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--primary-soft); border-color: var(--primary);
  }
  .form-group .helper {
    font-size: 11.5px; color: #888; margin-top: 6px;
  }

  /* Service tiles */
  .service-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  }
  .service-tile {
    background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
    padding: 12px; text-align: center; cursor: pointer;
  }
  .service-tile.selected {
    border-color: var(--primary); background: var(--primary-soft);
  }
  .service-tile .name { font-weight: 600; font-size: 13px; }
  .service-tile .dur { font-size: 11px; color: #888; margin-top: 2px; }

  /* Mini calendar */
  .mini-cal {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 10px; padding: 12px;
  }
  .mini-cal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; font-weight: 600; font-size: 13px;
  }
  .mini-cal-header button {
    background: none; border: none; font-size: 16px; cursor: pointer;
    color: var(--primary); padding: 4px 8px;
  }
  .mini-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
    font-size: 12px; text-align: center;
  }
  .mini-cal-grid .dow { color: #999; padding: 4px 0; font-weight: 500; font-size: 10.5px; }
  .mini-cal-grid .day {
    padding: 8px 0; border-radius: 6px; cursor: pointer; position: relative;
  }
  .mini-cal-grid .day.disabled { color: #ddd; cursor: default; }
  .mini-cal-grid .day.today { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
  .mini-cal-grid .day.selected { background: var(--primary); color: #fff; font-weight: 700; }
  .mini-cal-grid .day:not(.disabled):not(.selected):hover { background: #f0f0f0; }
  .mini-cal-grid .day.has-appt::after {
    content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  }

  /* Time slots */
  .time-slots {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  }
  .time-slot {
    padding: 11px 0; border: 1.5px solid var(--border);
    border-radius: 8px; text-align: center; font-size: 13px;
    background: #fff; cursor: pointer;
  }
  .time-slot.taken { color: #ccc; background: #f8f8f8; text-decoration: line-through; cursor: not-allowed; }
  .time-slot.selected { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

  /* Save button */
  .save-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 16px; border-radius: 12px; font-size: 15px; font-weight: 600;
    width: 100%; margin-top: 8px; cursor: pointer;
  }
  .save-btn:active { background: var(--primary-dark); }
  .save-btn.large { padding: 18px; font-size: 16px; }
  .save-btn:disabled { background: #cbd5e1; cursor: not-allowed; }
  .save-btn.accent { background: var(--accent); }
  .save-btn.accent:active { background: #0e9488; }

  /* ============== RECALL ============== */
  .recall-summary {
    background: linear-gradient(135deg, var(--accent-soft), #fff);
    border: 1px solid var(--accent); border-radius: 12px;
    padding: 14px 16px; margin-bottom: 14px;
  }
  .recall-summary .title {
    font-weight: 600; font-size: 14px; margin-bottom: 4px;
  }
  .recall-summary .stats {
    display: flex; gap: 16px; margin-top: 8px;
  }
  .recall-summary .stats div { flex: 1; }
  .recall-summary .stats .v {
    font-size: 18px; font-weight: 700; color: var(--primary);
  }
  .recall-summary .stats .l { font-size: 10.5px; color: #666; }

  .recall-row {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 8px;
    display: flex; gap: 10px; align-items: center;
  }
  .recall-row.sent { opacity: 0.6; }
  .check-circle {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid #cbd5e1; flex-shrink: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .check-circle.checked {
    background: var(--accent); border-color: var(--accent); color: #fff;
    font-size: 13px; font-weight: 700;
  }
  .send-btn-small {
    background: var(--primary-soft); color: var(--primary);
    border: none; padding: 7px 12px;
    border-radius: 8px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  }
  .send-btn-small:active { background: var(--primary); color: #fff; }
  .send-btn-small.sent { background: var(--green-soft); color: var(--green); }

  /* ============== PATIENT DETAIL ============== */
  .patient-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; padding: 18px;
    border-radius: 14px; margin-bottom: 14px;
  }
  .patient-card .name { font-weight: 700; font-size: 19px; }
  .patient-card .meta { font-size: 12.5px; opacity: 0.9; margin-top: 4px; }
  .patient-card .badge-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
  .patient-card .badge {
    background: rgba(255,255,255,0.2); color: #fff;
    padding: 4px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 500;
  }

  .visit-row {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px;
  }
  .visit-row .dot {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--green-soft); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex-shrink: 0;
  }
  .visit-row.upcoming .dot { background: var(--primary-soft); color: var(--primary); }
  .visit-row .v-info { flex: 1; }
  .visit-row .v-info .label { font-weight: 600; font-size: 13px; }
  .visit-row .v-info .when { font-size: 11.5px; color: #777; margin-top: 1px; }

  .quick-action-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px;
  }
  .qa-btn {
    background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
    padding: 12px; text-align: center; font-size: 13px; font-weight: 500;
    color: #444; cursor: pointer;
  }
  .qa-btn:active { background: #f5f5f5; }
  .qa-btn.danger { color: var(--red); border-color: #fecaca; }
  .qa-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }

  /* ============== BOTTOM NAV ============== */
  .bottom-nav {
    background: #fff; border-top: 1px solid #f0f0f0;
    display: flex; padding: 8px 4px 14px;
    flex-shrink: 0;
  }
  .nav-tab {
    flex: 1; text-align: center; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 0; color: #888; font-size: 10.5px;
    background: transparent; border: none;
  }
  .nav-tab.active { color: var(--primary); }
  .nav-tab .ico { font-size: 18px; margin-bottom: 1px; }
  .nav-tab.has-badge { position: relative; }
  .nav-tab .nav-badge {
    position: absolute; top: 0; right: 25%;
    background: var(--red); color: #fff;
    font-size: 9px; font-weight: 700;
    padding: 1px 5px; border-radius: 7px;
    min-width: 14px;
  }

  /* ============== TOAST / SNACKBAR ============== */
  .toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
    background: #1a1a1a; color: #fff;
    padding: 12px 20px; border-radius: 24px; font-size: 13.5px;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
  }
  .toast.show { opacity: 1; }
  .toast .check { color: #4ade80; margin-right: 6px; }
  .toast .x { color: #f87171; margin-right: 6px; }

  /* ============== MODAL ============== */
  .modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 999; display: none; align-items: flex-end; justify-content: center;
    padding: 20px;
  }
  .modal-backdrop.show { display: flex; }
  .modal-card {
    background: #fff; border-radius: 16px; width: 100%; max-width: 360px;
    padding: 20px; animation: slideup 0.2s;
  }
  @keyframes slideup { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  .modal-card h3 { font-size: 16px; margin-bottom: 8px; }
  .modal-card p { font-size: 13px; color: #555; margin-bottom: 14px; }
  .modal-card .actions { display: flex; gap: 8px; }
  .modal-card .actions button {
    flex: 1; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px;
    border: none; cursor: pointer;
  }
  .modal-card .btn-cancel { background: #f3f4f6; color: #444; }
  .modal-card .btn-confirm { background: var(--primary); color: #fff; }
  .modal-card .btn-danger { background: var(--red); color: #fff; }

  /* ============== WHATSAPP PREVIEW MODAL ============== */
  .wa-modal-card {
    background: #efeae2; border-radius: 16px; width: 100%; max-width: 340px;
    padding: 0; overflow: hidden;
    background-image: radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 12px 12px;
  }
  .wa-modal-header {
    background: #075e54; color: #fff; padding: 12px 14px;
    display: flex; align-items: center; gap: 10px;
  }
  .wa-modal-header .close { margin-left: auto; cursor: pointer; font-size: 20px; opacity: 0.9; }
  .wa-modal-msgs {
    padding: 14px 12px; max-height: 400px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 4px;
  }
  .wa-msg-in {
    background: #fff; padding: 8px 11px; border-radius: 8px; border-top-left-radius: 0;
    max-width: 85%; align-self: flex-start;
    font-size: 13px; box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  }
  .wa-msg-out {
    background: #d9fdd3; padding: 8px 11px; border-radius: 8px; border-top-right-radius: 0;
    max-width: 85%; align-self: flex-end;
    font-size: 13px; box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  }
  .wa-modal-day {
    align-self: center; background: rgba(255,255,255,0.85);
    color: #667781; font-size: 11px; padding: 4px 10px;
    border-radius: 10px; margin: 4px 0;
  }
  .wa-modal-footer {
    padding: 10px 14px 14px; background: rgba(255,255,255,0.5);
    text-align: center;
  }
  .wa-modal-footer button {
    background: #1a1a1a; color: #fff; border: none;
    padding: 10px 22px; border-radius: 20px; font-size: 13px; font-weight: 600;
    cursor: pointer;
  }

  /* ============== EMPTY STATE ============== */
  .empty {
    text-align: center; padding: 40px 20px; color: #888;
  }
  .empty .ico { font-size: 36px; margin-bottom: 8px; opacity: 0.5; }
  .empty .title { font-weight: 600; color: #444; margin-bottom: 4px; }
  .empty .sub { font-size: 12.5px; }

  /* ============== SETTINGS ============== */
  .settings-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 16px; margin-bottom: 12px;
  }
  .settings-card h4 {
    font-size: 13px; font-weight: 600; color: #555;
    text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px;
  }
  .settings-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid #f0f0f0;
  }
  .settings-row:last-child { border-bottom: none; }
  .settings-row .label { font-size: 13.5px; }
  .settings-row .val { color: #666; font-size: 13px; }
  .reset-btn {
    background: var(--red-soft); color: var(--red);
    border: 1px solid #fecaca; padding: 12px;
    border-radius: 10px; font-weight: 600; font-size: 13.5px;
    width: 100%; cursor: pointer;
  }
  .signout-btn {
    background: #f3f4f6; color: #374151;
    border: 1px solid #e5e7eb; padding: 12px;
    border-radius: 10px; font-weight: 600; font-size: 13.5px;
    width: 100%; cursor: pointer; margin-top: 10px;
  }

  /* ============== LOGIN / OTP SCREENS ============== */
  .login-wrap {
    display: flex; flex-direction: column;
    min-height: 100%; padding: 48px 24px 32px;
    justify-content: center;
  }
  .login-logo {
    text-align: center; margin-bottom: 40px;
  }
  .login-icon {
    width: 72px; height: 72px; border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-weight: 700; font-size: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(10,126,164,0.25);
  }
  .login-title {
    font-size: 22px; font-weight: 700; margin-bottom: 4px;
  }
  .login-sub {
    font-size: 13px; color: #888;
  }
  .phone-input-row {
    display: flex; align-items: center;
    border: 1.5px solid var(--border); border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
  }
  .phone-input-row:focus-within { border-color: var(--primary); }
  .phone-cc {
    padding: 12px 10px 12px 14px;
    font-size: 15px; font-weight: 600;
    color: var(--text); background: #f9fafb;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
  }
  .phone-input-row input {
    border: none; border-radius: 0;
    padding: 12px 14px;
    font-size: 16px; flex: 1;
    outline: none; background: transparent;
  }
  .otp-input {
    width: 100%; text-align: center;
    font-size: 28px; font-weight: 700; letter-spacing: 12px;
    padding: 14px 8px;
    border: 1.5px solid var(--border); border-radius: 10px;
    outline: none; background: #fafafa;
    transition: border-color 0.15s;
  }
  .otp-input:focus { border-color: var(--primary); background: #fff; }
  .link-btn {
    color: var(--primary); font-size: 13px;
    cursor: pointer; font-weight: 500;
  }
  .link-btn:hover { text-decoration: underline; }

  /* ============== WEEK VIEW ============== */
  .day-group { margin-bottom: 14px; }
  .day-header {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 8px 4px 6px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px;
  }
  .day-header .dow {
    font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.5px;
  }
  .day-header .date { font-weight: 600; font-size: 15px; }
  .day-header .count { font-size: 11.5px; color: var(--primary); font-weight: 600; }
  .day-header.today .date { color: var(--primary); }

  /* ============== AUTOCOMPLETE ============== */
  .autocomplete-results {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    margin-top: 4px; max-height: 200px; overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .ac-result {
    padding: 10px 14px; border-bottom: 1px solid #f0f0f0; cursor: pointer;
    display: flex; align-items: center; gap: 10px;
  }
  .ac-result:last-child { border-bottom: none; }
  .ac-result:active { background: #f5f5f5; }
  .ac-result .info { flex: 1; }
  .ac-result .info .pname { font-size: 13.5px; font-weight: 500; }
  .ac-result .info .meta { font-size: 11.5px; color: #888; }
  .ac-add {
    padding: 12px 14px; color: var(--primary); font-weight: 600;
    font-size: 13.5px; cursor: pointer;
    background: var(--primary-soft);
  }

  /* ============== HINT BUBBLE ============== */
  .hint {
    background: var(--primary-soft); color: var(--primary);
    padding: 10px 14px; border-radius: 10px;
    font-size: 12px; line-height: 1.4; margin-bottom: 14px;
    display: flex; gap: 8px; align-items: flex-start;
  }
  .hint .ico { font-size: 14px; flex-shrink: 0; }
