:root {
    --bg: #f5f2ee;
    --surface: #ffffff;
    --surface2: #f0ece6;
    --border: #ddd8d0;
    --purple: #4a2d8f;
    --purple-light: #6b47c4;
    --purple-pale: #ede8f9;
    --gold: #c9822a;
    --green: #2a7a52;
    --green-pale: #e8f5ee;
    --red: #c0392b;
    --red-pale: #fdecea;
    --text: #1a1612;
    --muted: #7a7268;
    --muted2: #a09890;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { background: var(--bg); color: var(--text); font-family: 'Instrument Sans', sans-serif; min-height: 100vh; padding-bottom: 60px; }

  /* ── HEADER ── */
  .site-header { background: var(--purple); padding: 0 28px; height: 60px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 16px rgba(74,45,143,0.25); }
  .site-header-inner { max-width: 860px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .site-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -0.3px; white-space: nowrap; flex-shrink: 0; }
  .site-logo span { color: #c9b8f5; font-weight: 400; }
  .header-nav { display: flex; gap: 4px; background: rgba(0,0,0,0.22); border-radius: 8px; padding: 4px; }
  .hnav-btn { background: none; border: none; color: rgba(255,255,255,0.65); font-family: 'Syne', sans-serif; font-weight: 600; font-size: 12px; padding: 7px 16px; border-radius: 5px; cursor: pointer; transition: all 0.15s; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
  .hnav-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
  .hnav-btn.active { background: #fff; color: var(--purple); }
  .header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .user-chip { background: rgba(255,255,255,0.15); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 100px; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
  .signout-btn { background: none; border: 1px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.75); font-family: 'Instrument Sans', sans-serif; font-size: 11px; padding: 5px 10px; border-radius: 6px; cursor: pointer; transition: all 0.15s; }
  .signout-btn:hover { border-color: #fff; color: #fff; }

  /* ── CONTAINER ── */
  .container { max-width: 860px; margin: 0 auto; padding: 32px 20px 0; }

  /* ── NAME GATE ── */
  .name-gate { background: var(--surface); border-radius: 16px; padding: 52px 44px; box-shadow: 0 2px 20px rgba(0,0,0,0.07); text-align: center; max-width: 480px; margin: 64px auto 0; }
  .name-gate-icon { font-size: 52px; margin-bottom: 20px; }
  .name-gate h1 { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 8px; }
  .name-gate p { color: var(--muted); font-size: 14px; margin-bottom: 28px; line-height: 1.6; }
  .directory-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; max-height: 160px; overflow-y: auto; }
  .directory-chip { background: var(--purple-pale); border: 1.5px solid var(--purple-pale); color: var(--purple); border-radius: 100px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
  .directory-chip:hover { border-color: var(--purple); background: #fff; }
  .directory-empty { font-size: 13px; color: var(--muted); font-style: italic; }
  .name-input-wrap { display: flex; gap: 10px; margin-bottom: 10px; }
  .name-input-wrap:last-of-type { margin-bottom: 0; }
  .name-input-row input { flex: 1; min-width: 0; }
  .admin-link { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; margin-top: 8px; text-decoration: underline; }
  .admin-link:hover { color: var(--purple); }
  .gate-secondary-btns { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); width: 100%; }
  .btn-view-schedule-gate { background: var(--purple-pale); border: 1.5px solid var(--purple-light); color: var(--purple); border-radius: 8px; padding: 10px 20px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; transition: all 0.15s; }
  .btn-view-schedule-gate:hover { background: var(--purple); color: #fff; }

  /* ── ADMIN PANEL ── */
  .admin-card { background: var(--surface); border-radius: 14px; padding: 22px 24px; box-shadow: 0 1px 8px rgba(0,0,0,0.06); border: 1px solid var(--border); margin-bottom: 20px; }
  .admin-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .admin-table th { text-align: left; padding: 8px 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
  .admin-table td { padding: 10px; border-bottom: 1px solid var(--border); }
  .admin-actions-cell { display: flex; gap: 8px; }
  .btn-admin-action { background: var(--surface2); border: 1.5px solid var(--border); color: var(--text); border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
  .btn-admin-action:hover { border-color: var(--purple); color: var(--purple); }
  .btn-admin-action.danger:hover { border-color: var(--red); color: var(--red); }
  .admin-remove-btn { background: none; border: none; color: var(--red); font-size: 14px; font-weight: 700; cursor: pointer; padding: 0 2px; line-height: 1; }
  .admin-remove-btn:hover { color: #fff; background: var(--red); border-radius: 50%; }
  .lock-months-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
  .lock-month-btn { background: var(--surface2); border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 8px; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 6px; transition: all 0.15s; color: var(--text); }
  .lock-month-btn:hover { border-color: var(--gold); color: var(--gold); }
  .lock-month-btn.locked { background: var(--red-pale); border-color: var(--red); color: var(--red); }
  .lock-icon { font-size: 14px; }
  .locked-month-banner { background: var(--red-pale); border: 2px solid var(--red); border-radius: 12px; padding: 28px 24px; text-align: center; font-size: 15px; color: var(--red); margin-top: 8px; line-height: 1.6; }
  @media (max-width: 560px) { .lock-months-grid { grid-template-columns: repeat(3,1fr); } }
  input[type="text"], input[type="password"], input[type="tel"] { flex: 1; background: var(--surface2); border: 2px solid var(--border); border-radius: 8px; padding: 12px 16px; font-family: 'Instrument Sans', sans-serif; font-size: 15px; color: var(--text); outline: none; transition: border-color 0.2s; width: 100%; box-sizing: border-box; }
  input[type="text"]:focus, input[type="password"]:focus, input[type="tel"]:focus { border-color: var(--purple-light); }
  .btn-start { background: var(--purple); color: #fff; border: none; border-radius: 8px; padding: 12px 22px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
  .btn-start:hover { background: var(--purple-light); transform: translateY(-1px); }

  /* ── MONTH DROPDOWN ── */
  .month-dropdown { background: var(--surface2); border: 1.5px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; outline: none; transition: border-color 0.15s; margin-left: 4px; }
  .month-dropdown:hover, .month-dropdown:focus { border-color: var(--purple); }

  /* ── DASHBOARD WELCOME ── */
  .dash-welcome { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%); border-radius: 16px; padding: 28px 32px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
  .dash-welcome-left h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 5px; }
  .dash-welcome-left p { font-size: 13px; opacity: 0.82; line-height: 1.5; }
  .btn-go-signup { background: #fff; color: var(--purple); border: none; border-radius: 8px; padding: 11px 22px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.15s; white-space: nowrap; flex-shrink: 0; }
  .btn-go-signup:hover { opacity: 0.9; transform: translateY(-1px); }
  .btn-go-signup.done-btn { background: rgba(255,255,255,0.18); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); pointer-events: none; }

  /* ── STATS ── */
  .dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 28px; }
  .stat-card { background: var(--surface); border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); border: 1px solid var(--border); }
  .stat-number { font-family: 'Syne', sans-serif; font-size: 30px; font-weight: 800; color: var(--purple); line-height: 1; margin-bottom: 5px; }
  .stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }

  /* ── SCHEDULE TABLE ── */
  .dash-section-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
  .dash-section-title span { font-size: 12px; font-weight: 500; color: var(--muted); font-family: 'Instrument Sans', sans-serif; }
  .dash-week-block { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 8px rgba(0,0,0,0.06); margin-bottom: 20px; border: 1px solid var(--border); }
  .dash-week-header { background: var(--purple); color: #fff; padding: 14px 22px; display: flex; align-items: center; gap: 12px; }
  .dash-week-pill { background: rgba(255,255,255,0.18); font-family: 'Syne', sans-serif; font-weight: 800; font-size: 11px; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em; }
  .dash-week-label { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; }
  .dash-week-dates { font-size: 12px; opacity: 0.7; margin-left: auto; }
  .dash-service-section { border-bottom: 1px solid var(--border); padding: 18px 22px; }
  .dash-service-section:last-child { border-bottom: none; }
  .dash-svc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .dash-svc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
  .dash-svc-dot.gold { background: var(--gold); }
  .dash-svc-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; }
  .dash-svc-time { font-size: 11px; color: var(--muted); background: var(--surface2); padding: 3px 10px; border-radius: 100px; margin-left: auto; }
  .dash-roles-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
  .dash-role-row { display: flex; align-items: center; gap: 10px; background: var(--surface2); border-radius: 8px; padding: 11px 14px; min-width: 0; border: 1.5px solid transparent; }
  .dash-role-row.is-you-row { border-color: var(--green); background: var(--green-pale); }
  .dash-role-icon { font-size: 16px; flex-shrink: 0; }
  .dash-role-name { font-size: 11px; font-weight: 600; color: var(--muted); flex-shrink: 0; min-width: 92px; text-transform: uppercase; letter-spacing: 0.04em; }
  .dash-assigned { font-size: 13px; font-weight: 600; color: var(--purple); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dash-assigned.is-you { color: var(--green); }
  .dash-assigned.empty { color: var(--muted2); font-weight: 400; font-style: italic; font-size: 12px; }
  .you-tag { display: inline-block; font-size: 10px; background: var(--green); color: #fff; border-radius: 100px; padding: 2px 7px; font-weight: 700; flex-shrink: 0; margin-left: 5px; vertical-align: middle; }
  .unavail-row { margin-top: 10px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .unavail-chip { background: var(--red-pale); color: var(--red); border: 1px solid rgba(192,57,43,0.22); border-radius: 100px; padding: 2px 9px; font-size: 10px; font-weight: 600; }

  /* ── SIGNUP TOP BAR ── */
  .signup-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
  .signup-month-info h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; margin-bottom: 4px; }
  .signup-month-info p { font-size: 13px; color: var(--muted); }
  .btn-change-month { background: var(--surface); border: 1.5px solid var(--border); color: var(--text); border-radius: 8px; padding: 9px 16px; font-family: 'Instrument Sans', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; gap: 6px; }
  .btn-change-month:hover { border-color: var(--purple); color: var(--purple); }

  /* ── MONTH MODAL ── */
  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.15s ease; }
  @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
  .modal-card { background: var(--surface); border-radius: 16px; padding: 32px; max-width: 520px; width: 100%; box-shadow: 0 16px 48px rgba(0,0,0,0.18); animation: slideUp 0.2s ease; }
  @keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
  .modal-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; margin-bottom: 6px; }
  .modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
  .modal-year-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .modal-year-label { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 16px; }
  .btn-year { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; width: 32px; height: 32px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
  .btn-year:hover { border-color: var(--purple); color: var(--purple); }
  .btn-year:disabled { opacity: 0.3; cursor: not-allowed; }
  .modal-months-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 22px; }
  .modal-month-btn { background: var(--surface2); border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 8px; text-align: center; cursor: pointer; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); transition: all 0.15s; position: relative; }
  .modal-month-btn:hover { border-color: var(--purple-light); background: var(--purple-pale); color: var(--purple); }
  .modal-month-btn.selected { background: var(--purple); border-color: var(--purple); color: #fff; }
  .modal-month-btn.completed { border-color: var(--green); color: var(--green); }
  .modal-month-btn.completed.selected { background: var(--purple); border-color: var(--purple); color: #fff; }
  .modal-month-btn.partial { border-color: var(--gold); color: var(--gold); }
  .modal-month-btn.partial.selected { background: var(--purple); border-color: var(--purple); color: #fff; }
  .modal-month-btn.current-cal { box-shadow: inset 0 0 0 2px rgba(74,45,143,0.25); }
  .modal-status-dot { width: 7px; height: 7px; border-radius: 50%; position: absolute; top: 5px; right: 5px; }
  .modal-status-dot.done { background: var(--green); }
  .modal-status-dot.partial { background: var(--gold); }
  .modal-warning { background: var(--gold-pale, #fdf3e7); border: 1.5px solid var(--gold); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: var(--gold); margin-bottom: 16px; display: none; }
  .modal-warning.show { display: block; }
  .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
  .btn-modal-cancel { background: none; border: 1.5px solid var(--border); color: var(--muted); border-radius: 8px; padding: 10px 20px; font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
  .btn-modal-cancel:hover { border-color: var(--text); color: var(--text); }
  .btn-modal-confirm { background: var(--purple); color: #fff; border: none; border-radius: 8px; padding: 10px 22px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.15s; }
  .btn-modal-confirm:hover { background: var(--purple-light); }
  .btn-modal-confirm:disabled { opacity: 0.4; cursor: not-allowed; }

  /* ── PROGRESS BAR ── */
  .progress-bar-wrap { margin-bottom: 28px; }
  .progress-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .progress-label-left { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; color: var(--purple); text-transform: uppercase; letter-spacing: 0.08em; }
  .progress-label-right { font-size: 12px; color: var(--muted); }
  .progress-track { height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; }
  .progress-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple-light)); border-radius: 100px; transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1); }

  /* ── WEEK CARDS ── */
  .weeks-list { display: flex; flex-direction: column; gap: 16px; }
  .week-card { background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 8px rgba(0,0,0,0.06); border: 2px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
  .week-card.active { border-color: var(--purple); box-shadow: 0 4px 24px rgba(74,45,143,0.15); }
  .week-card.completed { border-color: var(--green); opacity: 0.9; }
  .week-card.locked { opacity: 0.42; pointer-events: none; }
  .week-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--surface2); cursor: pointer; user-select: none; gap: 12px; }
  .week-header-left { display: flex; align-items: center; gap: 14px; }
  .week-number { background: var(--purple); color: #fff; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 13px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .week-card.completed .week-number { background: var(--green); }
  .week-card.locked .week-number { background: var(--muted2); }
  .week-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; }
  .week-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .week-status { font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
  .status-done   { background: var(--green-pale); color: var(--green); }
  .status-active { background: var(--purple-pale); color: var(--purple); }
  .status-locked { background: var(--surface); color: var(--muted2); border: 1px solid var(--border); }
  .week-body { padding: 24px 22px; display: none; animation: slideDown 0.25s ease; }
  .week-body.open { display: block; }
  @keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

  /* ── SERVICE BLOCKS ── */
  .service-block { margin-bottom: 24px; }
  .service-block:last-child { margin-bottom: 0; }
  .service-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .service-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
  .service-dot.gold { background: var(--gold); }
  .service-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; }
  .service-time { font-size: 12px; color: var(--muted); margin-left: auto; }
  .rules-box { background: var(--purple-pale); border-left: 3px solid var(--purple-light); border-radius: 0 8px 8px 0; padding: 12px 14px; font-size: 13px; color: var(--purple); margin-bottom: 16px; line-height: 1.5; }
  .rules-box strong { font-weight: 600; }
  .role-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .role-btn { background: var(--surface2); border: 2px solid var(--border); border-radius: 10px; padding: 14px 16px; text-align: left; cursor: pointer; font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--text); transition: all 0.15s; display: flex; align-items: center; gap: 10px; }
  .role-btn:hover:not(:disabled) { border-color: var(--purple-light); background: var(--purple-pale); color: var(--purple); }
  .role-btn.selected { border-color: var(--purple); background: var(--purple-pale); color: var(--purple); font-weight: 600; }
  .role-btn.unavailable-btn { grid-column: 1 / -1; color: var(--muted); }
  .role-btn.unavailable-btn:hover:not(:disabled) { border-color: var(--red); background: var(--red-pale); color: var(--red); }
  .role-btn.unavailable-btn.selected { border-color: var(--red); background: var(--red-pale); color: var(--red); }
  .role-btn:disabled { cursor: not-allowed; opacity: 0.45; }
  .role-btn.filled:not(.unavailable-btn) { opacity: 0.35; pointer-events: none; }
  .role-icon { font-size: 18px; flex-shrink: 0; }
  .submitted-state { background: var(--green-pale); border: 1.5px solid var(--green); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--green); font-weight: 600; }
  .submitted-unavail { background: var(--red-pale); border-color: var(--red); color: var(--red); }
  .service-divider { height: 1px; background: var(--border); margin: 22px 0; }
  .week-submit-row { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
  .btn-submit-week { background: var(--purple); color: #fff; border: none; border-radius: 8px; padding: 13px 28px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.15s; }
  .btn-submit-week:hover { background: var(--purple-light); transform: translateY(-1px); }
  .btn-submit-week:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

  /* ── ALL DONE ── */
  .all-done-card { background: var(--surface); border-radius: 16px; padding: 36px 32px; text-align: center; box-shadow: 0 2px 20px rgba(0,0,0,0.07); margin-top: 24px; border: 2px solid var(--green); }
  .all-done-card .big { font-size: 48px; margin-bottom: 12px; }
  .all-done-card h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; margin-bottom: 8px; color: var(--green); }
  .all-done-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 6px; }
  .all-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
  .btn-view-schedule { background: var(--purple); color: #fff; border: none; border-radius: 8px; padding: 12px 24px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.15s; }
  .btn-view-schedule:hover { background: var(--purple-light); }
  .btn-another-month { background: var(--surface2); color: var(--text); border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 24px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.15s; }
  .btn-another-month:hover { border-color: var(--purple); color: var(--purple); }

  /* ── TOAST ── */
  .toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--text); color: #fff; padding: 12px 22px; border-radius: 100px; font-size: 13px; font-weight: 500; opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); z-index: 999; pointer-events: none; white-space: nowrap; }
  .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

  @media (max-width: 560px) {
    .container { padding: 20px 14px 0; }
    .site-header { padding: 0 14px; }
    .site-logo { font-size: 13px; }
    .hnav-btn { padding: 6px 10px; font-size: 10px; }
    .dash-roles-grid, .role-options { grid-template-columns: 1fr; }
    .role-btn.unavailable-btn { grid-column: 1; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .dash-welcome { flex-direction: column; align-items: flex-start; }
    .modal-months-grid { grid-template-columns: repeat(3,1fr); }
    .name-gate { padding: 36px 24px; }
    .name-input-wrap { flex-direction: column; }
    .name-input-row { flex-direction: row; }
    .signup-top, .week-header, .dash-week-header { flex-wrap: wrap; }
    .week-header-left { flex: 1; min-width: 0; }
    .week-title, .dash-role-name { overflow: hidden; text-overflow: ellipsis; }
    .dash-week-dates { margin-left: 0; flex-basis: 100%; }
    .admin-table-wrap { overflow-x: auto; }
    .admin-card { padding: 18px 16px; }
  }

  @media (max-width: 400px) {
    .site-header { height: auto; padding: 10px 12px; }
    .site-header-inner { flex-wrap: wrap; row-gap: 8px; }
    .header-nav { order: 3; width: 100%; justify-content: center; }
    .stat-number { font-size: 24px; }
    .dash-stats { grid-template-columns: 1fr; }
  }