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

:root {
    --bg:              #f7f5f0;
    --surface:         #ffffff;
    --border:          #e4e0d8;
    --text-primary:    #1a1814;
    --text-secondary:  #6b6760;
    --text-hint:       #a09d98;
    --accent:          #c8622a;
    --accent-light:    #f5ede6;
    --tag-activity-bg:    #e8f0fb; --tag-activity-text:    #1a4a8a;
    --tag-food-bg:        #faeae3; --tag-food-text:        #7a2e10;
    --tag-nature-bg:      #e6f2de; --tag-nature-text:      #2d5c12;
    --tag-event-bg:       #eeecfd; --tag-event-text:       #3a2f8a;
    --tag-rest-bg:        #f0eee8; --tag-rest-text:        #6b6760;
    --tag-travel-bg:      #faebd8; --tag-travel-text:      #6b3a0a;
    --tag-bday-bg:        #fbe8f0; --tag-bday-text:        #6b1f3e;
    --tag-flight-bg:      #dbeafe; --tag-flight-text:      #1e40af;
    --tag-hotel-bg:       #fef3c7; --tag-hotel-text:       #78350f;
    --tag-train-bg:       #d1fae5; --tag-train-text:       #065f46;
    --tag-car-bg:         #e2e8f0; --tag-car-text:         #1e3a5f;
    --tag-restaurant-bg:  #ffe4e6; --tag-restaurant-text:  #881337;
    --drag-over-bg:      #fff8e6;
    --drag-over-border:  #c8622a;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 1rem 4rem;
}

/* ── Global utility ── */
.hidden { display: none !important; }

/* ── Screens ── */
.screen { display: block; }
.screen.hidden { display: none; }

/* ── Home screen ── */
.home-container {
    max-width: 1020px; margin: 0 auto; padding: 3rem 1rem 4rem;
}
.home-header {
    display: flex; align-items: center; gap: 12px;
    border-bottom: 2px solid var(--accent); padding-bottom: 1rem; margin-bottom: 2rem;
}

/* ── Burger menu button (shared: home + planner headers) ── */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    border-radius: 6px;
    transition: background 0.15s;
}
.burger-btn:hover { background: var(--accent-light); }
.burger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: background 0.15s;
}
.burger-btn:hover span { background: var(--accent); }
.home-title {
    font-family: 'Playfair Display', serif; font-size: 2.2rem;
    color: var(--text-primary); letter-spacing: -0.02em;
}
.home-trips-bar {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem;
}
.home-trips-heading {
    font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text-primary);
}
.home-empty {
    color: var(--text-hint); font-style: italic; font-size: 13px; padding: 2rem 0;
}
.create-trip-btn {
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    background: var(--accent); color: white; border: none; border-radius: 99px;
    padding: 8px 18px; cursor: pointer; transition: opacity 0.15s;
}
.create-trip-btn:hover { opacity: 0.85; }

/* ── Trip cards ── */
.trip-cards-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.trip-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 22px 20px 18px; position: relative;
    transition: box-shadow 0.15s, border-color 0.15s;
    display: flex; flex-direction: column; gap: 6px;
}
.trip-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-color: var(--accent); }
.trip-card-title {
    font-family: 'Playfair Display', serif; font-size: 1.15rem;
    color: var(--text-primary); margin-bottom: 2px;
}
.trip-card-dates { font-size: 12px; color: var(--text-secondary); }
.trip-card-open {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    background: var(--accent); color: white; border: none; border-radius: 99px;
    padding: 6px 14px; cursor: pointer; transition: opacity 0.15s;
    align-self: flex-start; margin-top: 8px;
}
.trip-card-open:hover { opacity: 0.85; }
.trip-card-remove {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; cursor: pointer; font-size: 16px;
    color: var(--text-hint); line-height: 1; transition: color 0.15s; padding: 2px;
}
.trip-card-remove:hover { color: var(--text-primary); }

/* Trip card — button row + share */
.trip-card-btn-row   { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.trip-card-share {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    background: none; color: var(--text-secondary); border: 1px solid var(--border);
    border-radius: 99px; padding: 5px 12px; cursor: pointer; transition: all 0.15s;
}
.trip-card-share:hover { background: var(--surface-hover, #f8fafc); color: var(--text-primary); border-color: var(--accent); }

/* Share panel */
.trip-card-share-panel {
    border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px;
    display: flex; flex-direction: column; gap: 10px;
}
.trip-share-link-row    { display: flex; gap: 6px; }
.trip-share-link-input  {
    flex: 1; font-size: 11px; padding: 6px 9px; border: 1px solid var(--border);
    border-radius: 6px; background: var(--background); color: var(--text-secondary);
    font-family: monospace; min-width: 0;
}
.trip-share-copy-btn {
    font-size: 12px; font-weight: 500; padding: 6px 11px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
    cursor: pointer; white-space: nowrap; transition: all 0.15s; flex-shrink: 0;
}
.trip-share-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.trip-share-divider  { margin: 0; font-size: 11px; font-weight: 600; color: var(--text-hint); text-transform: uppercase; letter-spacing: 0.5px; }
.trip-share-invite-row   { display: flex; gap: 6px; }
.trip-share-email-input  {
    flex: 1; font-size: 13px; padding: 7px 10px; border: 1px solid var(--border);
    border-radius: 6px; background: var(--background); color: var(--text-primary); min-width: 0;
}
.trip-share-invite-btn {
    font-size: 12px; font-weight: 600; padding: 7px 13px;
    background: var(--accent); color: #fff; border: none; border-radius: 6px;
    cursor: pointer; white-space: nowrap; transition: opacity 0.15s; flex-shrink: 0;
}
.trip-share-invite-btn:hover { opacity: 0.85; }
.trip-share-invite-btn:disabled { opacity: 0.6; cursor: default; }
.trip-share-status      { margin: 0; font-size: 12px; }
.trip-share-status--success { color: #16a34a; }
.trip-share-status--error   { color: #dc2626; }

/* Member row resend button */
.menu-member-actions  { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.menu-member-resend {
    background: none; border: 1px solid var(--border); border-radius: 4px;
    padding: 1px 7px; font-size: 13px; cursor: pointer; color: var(--text-secondary);
    transition: all 0.15s; line-height: 1.5;
}
.menu-member-resend:hover  { border-color: var(--accent); color: var(--accent); }
.menu-member-resend:disabled { opacity: 0.5; cursor: default; }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal-box {
    background: var(--surface); border-radius: 16px; padding: 32px;
    width: 100%; max-width: 460px; box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
.modal-title {
    font-family: 'Playfair Display', serif; font-size: 1.4rem;
    color: var(--text-primary); margin-bottom: 22px;
}
.modal-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.modal-field label {
    font-size: 11px; font-weight: 600; color: var(--text-hint);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.modal-field input {
    font-family: 'Inter', sans-serif; font-size: 13px;
    border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px;
    outline: none; background: var(--bg); color: var(--text-primary);
    transition: border-color 0.15s;
}
.modal-field input:focus { border-color: var(--accent); background: var(--surface); }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }
.btn-primary {
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    background: var(--accent); color: white; border: none; border-radius: 99px;
    padding: 8px 18px; cursor: pointer; transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.btn-secondary {
    font-family: 'Inter', sans-serif; font-size: 13px;
    background: none; color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 99px;
    padding: 8px 18px; cursor: pointer; transition: border-color 0.15s;
}
.btn-secondary:hover    { border-color: var(--text-secondary); }
.btn-secondary:disabled { opacity: 0.5; cursor: default; }
.btn-ai {
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    background: var(--accent-light); color: var(--accent);
    border: 1px solid var(--accent); border-radius: 99px;
    padding: 8px 18px; cursor: pointer; transition: background 0.15s, opacity 0.15s;
    margin-left: auto;
}
.btn-ai:hover    { background: var(--accent); color: #fff; }
.btn-ai:disabled { opacity: 0.5; cursor: default; }

/* ── Join screen ── */
.join-container {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; padding: 2rem;
}
.join-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 44px 52px; text-align: center; max-width: 440px; width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.join-icon { font-size: 2.5rem; margin-bottom: 16px; }
.join-box h2 {
    font-family: 'Playfair Display', serif; font-size: 1.6rem;
    color: var(--text-primary); margin-bottom: 8px;
}
.join-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.join-trip-name {
    font-family: 'Playfair Display', serif; font-size: 1.4rem;
    color: var(--text-primary); margin: 8px 0 4px;
}
.join-trip-dates { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.join-actions      { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.join-private-note { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 12px; }

/* ── Header ── */
header {
    max-width: 1020px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: stretch;
    gap: 2rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
}
.header-left {
    flex: 1; display: flex; flex-direction: column; gap: 2px; justify-content: space-between;
}
.header-overview-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.header-overview-label {
    font-size: 11px; font-weight: 600; color: var(--text-hint);
    text-transform: uppercase; letter-spacing: 0.07em;
}
.header-overview-input {
    font-family: 'Inter', sans-serif; font-size: 12px; line-height: 1.5;
    color: var(--text-primary); background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 10px; resize: none; width: 100%;
    flex: 1; min-height: 60px;
    transition: border-color 0.15s;
}
.header-overview-input:focus { outline: none; border-color: var(--accent); }
.header-overview-input::placeholder { color: var(--text-hint); }
.header-main { display: flex; align-items: baseline; gap: 1.5rem; }
.back-link {
    font-size: 12px; color: var(--text-hint); text-decoration: none;
    transition: color 0.15s; display: inline-block; margin-bottom: 4px;
}
.back-link:hover { color: var(--accent); }
.header-main h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-main h1:hover .edit-icon { opacity: 1; }
.edit-icon { font-size: 14px; opacity: 0; transition: opacity 0.15s; color: var(--text-hint); font-family: 'Inter', sans-serif; }
.title-input {
    font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 600;
    color: var(--text-primary); letter-spacing: -0.02em;
    border: none; border-bottom: 2px solid var(--accent);
    background: transparent; outline: none; width: 100%; min-width: 200px;
}
.header-main p { font-size: 13px; color: var(--text-secondary); }

/* ── Top area (hint + legend + who's coming) ── */
.top-area {
    max-width: 1020px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: stretch;
    gap: 12px;
}
.top-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hint {
    font-size: 12px;
    color: var(--text-hint);
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
}

/* ── Members panel ── */
.members-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 10px 14px;
    display: flex; flex-direction: column; gap: 8px;
    width: 200px; flex-shrink: 0;
    justify-content: space-between;
}
.members-panel-label {
    font-size: 11px; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.member-roster { display: flex; flex-wrap: wrap; gap: 4px; }
.member-roster-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500;
    background: var(--accent-light); color: var(--accent);
    padding: 2px 8px; border-radius: 99px; white-space: nowrap;
}
.member-roster-remove {
    background: none; border: none; cursor: pointer;
    font-size: 11px; line-height: 1; opacity: 0.4;
    padding: 0; color: var(--accent); transition: opacity 0.15s;
}
.member-roster-remove:hover { opacity: 1; }
.member-addall-btn {
    background: none; border: none; cursor: pointer;
    font-size: 10px; font-family: 'Inter', sans-serif; font-weight: 600;
    color: var(--accent); opacity: 0.5; padding: 0;
    transition: opacity 0.15s; line-height: 1;
}
.member-addall-btn:hover { opacity: 1; }
.member-add-row { display: flex; gap: 4px; align-items: center; }
.member-add-input {
    font-family: 'Inter', sans-serif; font-size: 11px;
    border: 1px solid var(--border); border-radius: 99px;
    padding: 3px 9px; color: var(--text-primary); background: var(--bg);
    outline: none; flex: 1; min-width: 0; transition: border-color 0.15s;
}
.member-add-input:focus { border-color: var(--accent); background: var(--surface); }
.member-add-input::placeholder { color: var(--text-hint); }
.member-add-btn {
    font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1;
    background: none; border: 1px solid var(--border); border-radius: 99px;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    color: var(--text-hint); cursor: pointer; flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
}
.member-add-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Add event panel ── */
.add-panel {
    max-width: 1020px; margin: 0 auto 2rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 18px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.add-panel-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; margin-right: 4px; }
.add-panel-input {
    font-family: 'Inter', sans-serif; font-size: 13px;
    border: 1px solid var(--border); border-radius: 99px;
    padding: 5px 14px; color: var(--text-primary); background: var(--bg);
    outline: none; flex: 1; min-width: 180px; transition: border-color 0.15s;
}
.add-panel-input:focus { border-color: var(--accent); background: var(--surface); }
.add-panel-input::placeholder { color: var(--text-hint); }
.add-panel-select {
    font-family: 'Inter', sans-serif; font-size: 12px;
    border: 1px solid var(--border); border-radius: 99px;
    padding: 5px 10px; color: var(--text-secondary); background: var(--bg);
    outline: none; cursor: pointer; transition: border-color 0.15s;
}
.add-panel-select:focus { border-color: var(--accent); }

/* Split add button */
.add-btn-group { position: relative; display: inline-flex; }
.add-panel-btn-main {
    font-family: 'Inter', sans-serif; font-size: 12px;
    background: var(--accent); color: white;
    border: none; border-radius: 99px 0 0 99px;
    padding: 6px 14px; cursor: pointer; font-weight: 500;
    border-right: 1px solid rgba(255,255,255,0.3);
}
.add-panel-btn-main:hover { opacity: 0.85; }
.add-panel-btn-arrow {
    font-family: 'Inter', sans-serif; font-size: 11px;
    background: var(--accent); color: white;
    border: none; border-radius: 0 99px 99px 0;
    padding: 6px 10px; cursor: pointer;
}
.add-panel-btn-arrow:hover { opacity: 0.85; }
.add-panel-btn-clear {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 99px;
    padding: 5px 11px; cursor: pointer; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s, opacity 0.15s;
}
.add-panel:hover .add-panel-btn-clear { opacity: 1; pointer-events: auto; }
.add-panel-btn-clear:hover { color: var(--text-primary); border-color: var(--text-secondary); background: var(--bg); }
.add-dropdown {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden; display: none; z-index: 100; min-width: 160px;
}
.add-dropdown.open { display: block; }
.add-dropdown-item {
    font-family: 'Inter', sans-serif; font-size: 12px;
    padding: 9px 14px; cursor: pointer; color: var(--text-primary);
    display: block; width: 100%; text-align: left; background: none; border: none;
    transition: background 0.1s;
}
.add-dropdown-item:hover { background: var(--bg); }

/* Extra details form */
.add-details-form {
    width: 100%; display: none; flex-wrap: wrap; gap: 8px;
    padding-top: 8px; border-top: 1px solid var(--border); margin-top: 4px;
}
.add-details-form.open { display: flex; }
.add-details-input {
    font-family: 'Inter', sans-serif; font-size: 12px;
    border: 1px solid var(--border); border-radius: 99px;
    padding: 4px 12px; color: var(--text-primary); background: var(--bg);
    outline: none; transition: border-color 0.15s;
}
.add-details-input:focus { border-color: var(--accent); background: var(--surface); }
.add-details-input::placeholder { color: var(--text-hint); }
.add-details-desc-wrap { width: 100%; }
.add-desc-area { min-height: 36px; max-height: 90px; border-radius: 8px; }

/* ── Menu — Documents section ── */
.menu-docs-section { padding: 0; }
.menu-docs-upload-btn {
    display: flex; align-items: center; gap: 6px;
    width: 100%; background: var(--bg);
    border: 1px dashed var(--border); border-radius: 8px;
    padding: 9px 12px; cursor: pointer; font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 500; color: var(--text-secondary);
    transition: border-color 0.15s, color 0.15s; margin-bottom: 8px;
    text-align: left;
}
.menu-docs-upload-btn:hover    { border-color: var(--accent); color: var(--accent); }
.menu-docs-upload-btn:disabled { opacity: 0.5; cursor: default; }
.menu-docs-status {
    font-size: 11px; color: var(--text-secondary);
    margin-bottom: 6px; padding: 0 2px;
}
.menu-docs-status--success { color: #16a34a; }
.menu-docs-status--error   { color: #dc2626; }
.menu-docs-list { display: flex; flex-direction: column; gap: 4px; }
.menu-docs-empty {
    font-size: 12px; color: var(--text-hint);
    padding: 6px 2px; font-style: italic;
}
.menu-doc-row {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 8px; border-radius: 7px;
    background: var(--bg); border: 1px solid var(--border);
    transition: border-color 0.12s;
}
.menu-doc-row:hover { border-color: var(--text-hint); }
.menu-doc-icon { font-size: 16px; flex-shrink: 0; line-height: 1; }
.menu-doc-info {
    display: flex; flex-direction: column; gap: 1px;
    flex: 1; min-width: 0;
}
.menu-doc-name {
    font-size: 12px; font-weight: 500; color: var(--text-primary);
    text-decoration: none; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; display: block;
}
.menu-doc-name:hover { color: var(--accent); text-decoration: underline; }
.menu-doc-meta { font-size: 10px; color: var(--text-hint); }
.menu-doc-delete {
    background: none; border: none; cursor: pointer;
    font-size: 16px; color: var(--text-hint); padding: 0 2px;
    line-height: 1; flex-shrink: 0; transition: color 0.1s;
}
.menu-doc-delete:hover    { color: #dc2626; }
.menu-doc-delete:disabled { opacity: 0.4; cursor: default; }

/* ── Upload booking confirmation ── */
.upload-booking-row {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding-top: 4px;
}
.upload-booking-btn {
    background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 12px;
    color: var(--text-secondary); padding: 2px 0;
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap; transition: color 0.15s;
}
.upload-booking-btn:hover  { color: var(--text-primary); }
.upload-booking-btn:disabled { opacity: 0.5; cursor: default; }
.upload-booking-status {
    font-size: 11px; color: var(--text-secondary);
}
.upload-booking-status.success { color: #16a34a; }
.upload-booking-status.error   { color: #dc2626; }
.upload-booking-status.warning { color: #d97706; }

/* ── Admin Screen ───────────────────────────────────────────────────────── */
.admin-screen     { overflow-y: auto; }
.admin-container  { max-width: 700px; margin: 0 auto; padding: 36px 24px 60px; }

.admin-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
}
.admin-back-btn {
    background: none; border: 1px solid var(--border); border-radius: 8px;
    padding: 7px 14px; font-family: 'Inter', sans-serif; font-size: 13px;
    color: var(--text-secondary); cursor: pointer; white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.admin-back-btn:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
.admin-title { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 0; }

.admin-section       { margin-bottom: 32px; }
.admin-section-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0 0 6px; }
.admin-hint          { font-size: 12px; color: var(--text-hint); margin: 0 0 16px; }
.admin-empty         { font-size: 13px; color: var(--text-hint); margin: 0; }

/* Feature list */
.admin-feature-list  { display: flex; flex-direction: column; gap: 8px; }
.admin-feature-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 14px;
    transition: opacity 0.15s;
}
.admin-feature-row--off { opacity: 0.5; }
.admin-feature-left  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-feature-key   { font-size: 13px; font-weight: 600; color: var(--text-primary); font-family: 'Courier New', monospace; }
.admin-feature-desc  {
    font-size: 12px; color: var(--text-secondary);
    background: none; border: none; border-bottom: 1px dashed var(--border);
    padding: 1px 0; width: 100%; font-family: 'Inter', sans-serif;
    outline: none;
}
.admin-feature-desc:focus { border-bottom-color: var(--accent); }
.admin-feature-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.admin-tier-select {
    font-size: 12px; font-family: 'Inter', sans-serif;
    padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px;
    background: var(--bg); color: var(--text-primary); cursor: pointer;
}
.admin-delete-btn {
    background: none; border: none; cursor: pointer; font-size: 18px;
    color: var(--text-hint); line-height: 1; padding: 0 2px;
    transition: color 0.15s;
}
.admin-delete-btn:hover { color: #dc2626; }

/* Toggle switch */
.admin-toggle        { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; flex-shrink: 0; }
.admin-toggle input  { opacity: 0; width: 0; height: 0; }
.admin-toggle-slider {
    position: absolute; inset: 0; background: var(--border);
    border-radius: 20px; transition: background 0.2s;
}
.admin-toggle-slider::before {
    content: ''; position: absolute;
    width: 14px; height: 14px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%;
    transition: transform 0.2s;
}
.admin-toggle input:checked + .admin-toggle-slider { background: var(--accent); }
.admin-toggle input:checked + .admin-toggle-slider::before { transform: translateX(16px); }

/* Add feature form */
.admin-add-form  { border-top: 1px solid var(--border); padding-top: 24px; }
.admin-add-row   { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.admin-add-key   {
    font-family: 'Courier New', monospace; font-size: 13px;
    padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text-primary); width: 160px;
}
.admin-add-desc  {
    flex: 1; min-width: 140px;
    padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 13px;
}
.admin-add-btn {
    padding: 8px 16px; background: var(--accent); color: #fff;
    border: none; border-radius: 8px; font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s;
}
.admin-add-btn:hover:not(:disabled) { opacity: 0.88; }
.admin-add-btn:disabled { opacity: 0.5; cursor: default; }
.admin-add-err  { font-size: 12px; color: #dc2626; margin: 6px 0 0; }
.admin-seed-btn {
    margin-top: 10px; padding: 8px 16px;
    background: var(--bg); border: 1.5px dashed var(--border); border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    color: var(--text-secondary); cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.admin-seed-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.admin-seed-btn:disabled { opacity: 0.5; cursor: default; }

/* User tier section */
.admin-user-section { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 8px; }
.admin-user-msg     { font-size: 12px; margin: 8px 0 0; }
.admin-user-msg--ok  { color: #16a34a; }
.admin-user-msg--err { color: #dc2626; }

/* User accounts list */
.admin-user-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.admin-user-list-header .admin-section-title { margin: 0; }
.admin-user-list        { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 320px; overflow-y: auto; }
.admin-user-row         { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.admin-user-row-left    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.admin-user-email       { font-size: 13px; font-weight: 500; color: var(--text-primary); word-break: break-all; }
.admin-user-badges      { display: flex; gap: 4px; flex-shrink: 0; }
.admin-user-badge       { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; }
.admin-user-badge--admin  { background: #fef3c7; color: #92400e; }
.admin-user-badge--free   { background: #f1f5f9; color: #475569; }
.admin-user-badge--pro    { background: #ede9fe; color: #6d28d9; }
.admin-user-badge--teams  { background: #dbeafe; color: #1d4ed8; }

/* Admin link in menu */
.menu-admin-btn {
    display: block; width: 100%; padding: 8px 0; margin-top: 6px;
    background: none; border: none; cursor: pointer; text-align: left;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); transition: color 0.15s;
}
.menu-admin-btn:hover { color: var(--accent); }

/* ── Preferences Screen ─────────────────────────────────────────────────── */
.prefs-screen { overflow-y: auto; }
.prefs-container { max-width: 620px; margin: 0 auto; padding: 36px 24px 60px; }

.prefs-header { margin-bottom: 36px; }
.prefs-back-btn {
    background: none; border: none; color: var(--accent); font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 500; cursor: pointer; padding: 0; margin-bottom: 20px; display: block;
}
.prefs-back-btn:hover { opacity: 0.7; }
.prefs-title { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--text-primary); margin: 0 0 8px; }
.prefs-subtitle { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

.prefs-section { padding-top: 28px; margin-top: 0; border-top: 1px solid var(--border); }
.prefs-section:first-of-type { border-top: none; padding-top: 0; }
.prefs-section-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 4px; }
.prefs-section-hint  { font-size: 12px; color: var(--text-secondary); margin: 0 0 12px; }

.prefs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prefs-chip {
    font-family: 'Inter', sans-serif; font-size: 13px;
    background: var(--surface); color: var(--text-secondary);
    border: 1.5px solid var(--border); border-radius: 99px;
    padding: 6px 14px; cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.prefs-chip:hover { border-color: var(--accent); color: var(--accent); }
.prefs-chip.active { background: var(--accent); color: white; border-color: var(--accent); }

.prefs-name-row { display: flex; gap: 10px; }
.prefs-name-input {
    flex: 1; font-family: 'Inter', sans-serif; font-size: 13px;
    background: var(--surface); color: var(--text-primary);
    border: 1.5px solid var(--border); border-radius: 8px;
    padding: 8px 12px; outline: none;
    transition: border-color 0.15s;
}
.prefs-name-input:focus { border-color: var(--accent); }

.prefs-radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.prefs-radio-btn {
    font-family: 'Inter', sans-serif; font-size: 13px;
    background: var(--surface); color: var(--text-secondary);
    border: 1.5px solid var(--border); border-radius: 8px;
    padding: 8px 18px; cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.prefs-radio-btn:hover  { border-color: var(--accent); color: var(--accent); }
.prefs-radio-btn.active { background: var(--accent); color: white; border-color: var(--accent); font-weight: 500; }

.prefs-status { font-size: 12px; color: var(--text-secondary); margin-top: 24px; min-height: 18px; }
.prefs-status--ok    { color: #16a34a; }
.prefs-status--error { color: #dc2626; }

/* ── Flight timezone display ─────────────────────────────────────────────── */
.flight-tz-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.flight-tz-inp {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    color: var(--text-secondary); background: var(--bg);
    border: 1px solid var(--border); border-radius: 6px;
    padding: 4px 8px; flex: 1; min-width: 0; cursor: default;
}
.flight-tz-arrow { font-size: 11px; color: var(--text-hint); flex-shrink: 0; }

/* ── Month sections ── */
.month-section { max-width: 1020px; margin: 0 auto 2.5rem; }
.month-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; color: var(--accent); margin-bottom: 0.75rem;
}
.days-list { display: flex; flex-direction: column; gap: 2px; }

/* ── Day row ── */
.day-row {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px;
    display: grid; grid-template-columns: 72px 90px 1fr 150px;
    min-height: 64px;
    transition: background 0.15s, border-color 0.15s;
}
.day-row.drag-over  { background: var(--drag-over-bg); border-color: var(--drag-over-border); border-style: dashed; }
.day-row.rest-day   { opacity: 0.7; }

/* Day label */
.day-label {
    padding: 12px 10px; border-right: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px;
}
.day-name  { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.day-date  { font-size: 18px; font-weight: 600; color: var(--text-primary); line-height: 1; }
.day-month { font-size: 10px; color: var(--text-hint); text-transform: uppercase; letter-spacing: 0.06em; }

/* Time column */
.time-col {
    padding: 12px 10px; border-right: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    min-width: 90px;
}
.time-display { display: flex; flex-direction: column; gap: 1px; cursor: pointer; }
.time-display:hover .time-val { color: var(--accent); }
.time-val   { font-size: 13px; font-weight: 500; color: var(--text-primary); transition: color 0.15s; }
.time-arrow { font-size: 10px; color: var(--text-hint); line-height: 1; }
.time-edit-form        { display: none; flex-direction: column; gap: 4px; }
.time-edit-form.active { display: flex; }
.time-display.hidden   { display: none; }
.time-input {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    border: 1px solid var(--accent); border-radius: 4px; padding: 3px 5px;
    width: 78px; color: var(--text-primary); background: var(--surface); outline: none;
}
.time-save-btn {
    font-family: 'Inter', sans-serif; font-size: 11px; background: var(--accent); color: white;
    border: none; border-radius: 4px; padding: 3px 8px; cursor: pointer; align-self: flex-start;
}
.time-save-btn:hover { opacity: 0.85; }
.time-allday { font-size: 11px; color: var(--text-hint); font-style: italic; }
.allday-toggle {
    font-size: 10px; color: var(--accent); background: none; border: none;
    cursor: pointer; padding: 0; margin-top: 4px; text-decoration: underline;
    font-family: 'Inter', sans-serif; opacity: 0.8;
}
.allday-toggle:hover { opacity: 1; }

/* Content column */
.day-content {
    padding: 10px 12px;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    min-width: 0; border-right: 1px solid var(--border);
}
.events-container { display: flex; flex-wrap: wrap; gap: 5px; min-height: 28px; align-items: flex-start; }
.events-container.empty::after {
    content: 'Drop events here';
    font-size: 11px; color: var(--text-hint); font-style: italic; line-height: 28px;
}

/* Event chips */
.event-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; padding: 4px 8px 4px 6px; border-radius: 99px;
    cursor: grab; user-select: none;
    transition: opacity 0.15s, transform 0.15s; white-space: nowrap;
}
.event-chip:active  { cursor: grabbing; transform: scale(0.97); }
.event-chip.dragging  { opacity: 0.4; }
.event-chip.expanded  { outline: 2px solid currentColor; outline-offset: 1px; }
.drag-handle { font-size: 10px; opacity: 0.4; }

/* Clickable type badge — left side of each chip */
.chip-type-badge {
    font-size: 10px; font-weight: 700; font-family: 'Inter', sans-serif;
    background: rgba(0,0,0,0.08); color: inherit;
    border: none; border-radius: 4px;
    padding: 1px 5px; cursor: pointer; flex-shrink: 0;
    line-height: 1.4; transition: background 0.1s;
    user-select: none;
}
.chip-type-badge:hover { background: rgba(0,0,0,0.18); }

/* Type picker popup */
.type-picker-popup {
    position: absolute; z-index: 3000;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    padding: 8px; display: flex; flex-wrap: wrap; gap: 5px;
    width: 240px;
}
.type-picker-opt {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
    border: none; border-radius: 99px; padding: 4px 11px;
    cursor: pointer; transition: opacity 0.12s, transform 0.12s;
}
.type-picker-opt:hover { opacity: 0.75; transform: scale(1.04); }
.type-picker-opt.selected { outline: 2px solid rgba(0,0,0,0.25); outline-offset: 1px; }

/* Add panel — full type-specific section (same layout as the detail panel) */
.add-type-section-wrap {
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.add-type-section-wrap:empty { display: none; }
/* Make the grid inside the add panel slightly more compact */
.add-type-section-wrap .event-details-grid { gap: 6px; }
.add-type-section-wrap .detail-input {
    font-size: 12px; padding: 5px 10px;
}
.add-type-section-wrap .detail-type-heading {
    font-size: 11px;
}
.remove-btn {
    background: none; border: none; cursor: pointer;
    font-size: 13px; line-height: 1; opacity: 0.4;
    padding: 0 0 0 2px; display: flex; align-items: center;
    color: inherit; transition: opacity 0.15s;
}
.remove-btn:hover { opacity: 1; }
.chip-label { display: flex; flex-direction: column; gap: 1px; }
.chip-time {
    font-size: 10px; font-style: italic; opacity: 0.65; white-space: nowrap;
}
.chip-people { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
.chip-person-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; border-radius: 50%;
    font-size: 8px; font-weight: 700; font-style: normal;
    background: rgba(0,0,0,0.15);
}

/* Hover tooltip */
.ev-tooltip {
    position: fixed; z-index: 999;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    padding: 12px 14px; min-width: 180px; max-width: 280px;
    pointer-events: none; opacity: 0; transition: opacity 0.15s;
    font-size: 12px; color: var(--text-primary);
    display: flex; flex-direction: column; gap: 6px;
}
.ev-tooltip.visible     { opacity: 1; pointer-events: auto; }
.ev-tooltip-name        { font-weight: 600; font-size: 13px; }
.ev-tooltip-row         { display: flex; flex-direction: column; gap: 1px; }
.ev-tooltip-label       { font-size: 10px; font-weight: 600; color: var(--text-hint); text-transform: uppercase; letter-spacing: 0.06em; }
.ev-tooltip-val         { color: var(--text-primary); }
.ev-tooltip-val ul,
.ev-tooltip-val ol      { padding-left: 16px; margin: 2px 0; }
.ev-tooltip-val li      { margin: 1px 0; }
.ev-tooltip-link        { color: var(--accent); text-decoration: none; }
.ev-tooltip-link:hover  { text-decoration: underline; }
.ev-tooltip-hint        { font-size: 10px; color: var(--text-hint); border-top: 1px solid var(--border); padding-top: 6px; margin-top: 2px; }

/* Event details slide-open panel */
.event-details-panel {
    width: 100%; background: var(--bg);
    border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; max-height: 0;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 12px;
}
.event-details-panel.open { max-height: 500px; padding: 10px 12px; overflow-y: auto; }
.event-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-field       { display: flex; flex-direction: column; gap: 3px; }
.detail-field.full  { grid-column: 1 / -1; }
.detail-label {
    font-size: 10px; font-weight: 600; color: var(--text-hint);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.detail-input {
    font-family: 'Inter', sans-serif; font-size: 12px;
    border: 1px solid var(--border); border-radius: 6px;
    padding: 4px 8px; color: var(--text-primary); background: var(--surface);
    outline: none; transition: border-color 0.15s; width: 100%;
}
.detail-input:focus      { border-color: var(--accent); }
.detail-input::placeholder { color: var(--text-hint); }
.detail-website-link     { font-size: 12px; color: var(--accent); text-decoration: none; }
.detail-website-link:hover { text-decoration: underline; }
.detail-maps-link        { font-size: 12px; color: var(--accent); text-decoration: none; }
.detail-maps-link:hover  { text-decoration: underline; }

/* ── Description rich-text editor ── */
.detail-desc-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px;
}
.detail-desc-expand-btn {
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: var(--text-hint); padding: 0 2px; line-height: 1;
    transition: color 0.15s;
}
.detail-desc-expand-btn:hover { color: var(--accent); }
.detail-desc-toolbar {
    display: flex; gap: 3px; margin-bottom: 4px;
}
.detail-desc-tool-btn {
    background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
    cursor: pointer; font-size: 11px; padding: 2px 7px; line-height: 1.5;
    color: var(--text-primary); font-family: 'Inter', sans-serif;
    transition: background 0.15s, border-color 0.15s;
}
.detail-desc-tool-btn:hover { background: var(--accent-light); border-color: var(--accent); }
.detail-desc-tool-btn.fmt-bold      { font-weight: 700; }
.detail-desc-tool-btn.fmt-italic    { font-style: italic; }
.detail-desc-tool-btn.fmt-underline { text-decoration: underline; }
.detail-desc-area {
    font-family: 'Inter', sans-serif; font-size: 12px; line-height: 1.6;
    border: 1px solid var(--border); border-radius: 6px;
    padding: 6px 8px; background: var(--surface); color: var(--text-primary);
    outline: none; width: 100%;
    min-height: 52px; max-height: 110px; overflow-y: auto;
    transition: border-color 0.15s, min-height 0.2s, max-height 0.2s;
}
.detail-desc-area:focus { border-color: var(--accent); }
.detail-desc-area:empty::before { content: 'Add a description…'; color: var(--text-hint); }
.detail-desc-area--expanded { min-height: 160px; max-height: 280px; }
.detail-desc-area ul, .detail-desc-area ol { padding-left: 18px; margin: 2px 0; }
.detail-desc-area li { margin: 1px 0; }
.detail-people-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.detail-people-picker { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.note { font-size: 11px; color: var(--text-hint); font-style: italic; line-height: 1.5; }
.note-editable {
    cursor: pointer; border-radius: 4px;
    padding: 2px 5px; margin-left: -5px;
    transition: background 0.15s;
}
.note-editable:hover { background: var(--border); }
.note-placeholder { opacity: 0.45; }
.note-input {
    font-family: 'Inter', sans-serif; font-size: 11px; font-style: italic;
    color: var(--text-hint); border: none; border-bottom: 1px solid var(--accent);
    background: transparent; outline: none; width: 100%; padding: 2px 0;
}

/* ── Who's joining column ── */
.joining-col {
    padding: 10px 12px;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    min-width: 150px;
}
.people-list { display: flex; flex-direction: column; gap: 4px; }
.person-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500;
    background: var(--accent-light); color: var(--accent);
    padding: 3px 8px; border-radius: 99px; width: fit-content; white-space: nowrap;
}
.person-remove {
    background: none; border: none; cursor: pointer;
    font-size: 12px; line-height: 1; opacity: 0.5;
    padding: 0; color: var(--accent); display: flex; align-items: center;
    transition: opacity 0.15s;
}
.person-remove:hover { opacity: 1; }
.add-person-row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.member-pick-btn {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
    background: var(--bg); color: var(--accent);
    border: 1px solid var(--accent); border-radius: 99px;
    padding: 2px 9px; cursor: pointer; white-space: nowrap;
    transition: background 0.15s;
}
.member-pick-btn:hover { background: var(--accent-light); }
.add-person-input {
    font-family: 'Inter', sans-serif; font-size: 12px;
    border: 1px solid var(--border); border-radius: 99px;
    padding: 3px 9px; color: var(--text-primary); background: var(--bg);
    outline: none; width: 90px; transition: border-color 0.15s;
}
.add-person-input:focus       { border-color: var(--accent); background: var(--surface); }
.add-person-input::placeholder { color: var(--text-hint); font-size: 11px; }
.add-person-btn {
    font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1;
    background: none; border: 1px solid var(--border); border-radius: 99px;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    color: var(--text-hint); cursor: pointer; transition: border-color 0.15s, color 0.15s; flex-shrink: 0;
}
.add-person-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Tags ── */
.tag { display: inline-flex; align-items: center; font-size: 12px; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.tag-activity, .event-chip.tag-activity { background: var(--tag-activity-bg); color: var(--tag-activity-text); }
.tag-food,     .event-chip.tag-food     { background: var(--tag-food-bg);     color: var(--tag-food-text);     }
.tag-nature,   .event-chip.tag-nature   { background: var(--tag-nature-bg);   color: var(--tag-nature-text);   }
.tag-event,    .event-chip.tag-event    { background: var(--tag-event-bg);    color: var(--tag-event-text);    }
.tag-rest,     .event-chip.tag-rest     { background: var(--tag-rest-bg);     color: var(--tag-rest-text);     }
.tag-travel,   .event-chip.tag-travel   { background: var(--tag-travel-bg);   color: var(--tag-travel-text);   }
.tag-bday,       .event-chip.tag-bday       { background: var(--tag-bday-bg);       color: var(--tag-bday-text);       }
.tag-flight,     .event-chip.tag-flight     { background: var(--tag-flight-bg);     color: var(--tag-flight-text);     }
.tag-hotel,      .event-chip.tag-hotel      { background: var(--tag-hotel-bg);      color: var(--tag-hotel-text);      }
.tag-train,      .event-chip.tag-train      { background: var(--tag-train-bg);      color: var(--tag-train-text);      }
.tag-car,        .event-chip.tag-car        { background: var(--tag-car-bg);        color: var(--tag-car-text);        }
.tag-restaurant, .event-chip.tag-restaurant { background: var(--tag-restaurant-bg); color: var(--tag-restaurant-text); }

/* chip-type-icon removed — replaced by .chip-type-badge */

/* ── Type-specific detail panel sections ── */
.detail-type-heading {
    grid-column: 1 / -1;
    font-size: 10px; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 10px 0 2px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.detail-select {
    width: 100%; cursor: pointer;
}
.detail-flight-row {
    display: flex; gap: 8px; align-items: center;
}
.detail-flight-row .detail-input { flex: 1; }
.detail-find-btn {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
    background: none; border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-secondary); padding: 5px 10px; cursor: pointer;
    white-space: nowrap; transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}
.detail-find-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.detail-find-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.detail-flight-link {
    font-size: 12px; color: var(--accent); text-decoration: none; display: inline-block;
}
.detail-flight-link:hover { text-decoration: underline; }

/* ── AI Suggestions button ── */
.ai-sparkle-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    font-size: 15px; padding: 2px 4px; border-radius: 6px;
    opacity: 0.35; transition: opacity 0.15s, background 0.15s;
    line-height: 1; flex-shrink: 0;
}
.ai-sparkle-btn:hover { opacity: 1; background: rgba(0,0,0,0.06); }

/* ── AI Suggestions popup ── */
.ai-popup {
    position: absolute; z-index: 1200;
    width: 300px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}
.ai-popup-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.ai-popup-title {
    font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.ai-popup-close {
    background: none; border: none; cursor: pointer;
    font-size: 14px; color: var(--text-hint); padding: 0 2px;
    line-height: 1; transition: color 0.15s;
}
.ai-popup-close:hover { color: var(--text-primary); }
.ai-popup-body {
    padding: 8px;
    display: flex; flex-direction: column; gap: 6px;
}
.ai-popup-loading {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 8px; font-size: 13px; color: var(--text-secondary);
}
.ai-popup-error { color: var(--text-hint); padding: 16px 8px; font-size: 13px; }
.ai-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: ai-spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

/* ── AI popup: category step ── */
.ai-back-btn {
    background: none; border: none; cursor: pointer;
    font-size: 11px; color: var(--text-hint); padding: 0;
    transition: color 0.15s; white-space: nowrap; margin-left: auto;
}
.ai-back-btn:hover { color: var(--accent); }
.ai-category-prompt {
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    padding: 4px 0 2px;
}
.ai-category-grid {
    display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0;
}
.ai-category-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    background: var(--bg); color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 99px;
    padding: 4px 10px; cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ai-category-chip:hover  { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.ai-category-chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.ai-category-hint {
    font-size: 11px; color: var(--text-hint); padding: 2px 0 4px;
}
.ai-context-wrap {
    margin: 6px 0 2px;
}
.ai-context-input {
    font-family: 'Inter', sans-serif; font-size: 12px;
    width: 100%; box-sizing: border-box;
    padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text-primary);
    transition: border-color 0.15s;
}
.ai-context-input::placeholder { color: var(--text-secondary); }
.ai-context-input:focus { outline: none; border-color: var(--accent); }
.ai-get-btn {
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    background: var(--accent); color: #fff; border: none; border-radius: 8px;
    padding: 9px 16px; cursor: pointer; width: 100%; margin-top: 8px;
    transition: opacity 0.15s;
}
.ai-get-btn:hover { opacity: 0.88; }
.ai-selected-tags {
    display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 0 4px;
}
.ai-selected-tag {
    font-size: 11px; background: var(--accent-light); color: var(--accent);
    border-radius: 99px; padding: 2px 8px; white-space: nowrap;
}

.ai-suggestion-card {
    padding: 10px 12px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: background 0.12s, border-color 0.12s, transform 0.1s;
}
.ai-suggestion-card:hover {
    background: var(--accent-light); border-color: var(--accent);
    transform: translateY(-1px);
}
.ai-suggestion-header {
    display: flex; align-items: center; gap: 7px; margin-bottom: 5px;
}
.ai-suggestion-emoji { font-size: 16px; line-height: 1; flex-shrink: 0; }
.ai-suggestion-name  { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.ai-suggestion-desc  {
    font-size: 12px; color: var(--text-secondary); line-height: 1.45;
    margin: 0;
}
.ai-suggestion-loc {
    margin-top: 6px; font-size: 11px; color: var(--text-hint);
}

/* ── History toggle button ── */
.planner-toolbar {
    max-width: 1020px; margin: 0 auto 0.75rem;
    display: flex; align-items: center; gap: 8px; justify-content: flex-end;
}
.history-toggle-btn {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    background: var(--surface); color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 99px;
    padding: 5px 14px; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.history-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Save version ── */
.save-version-wrap { display: flex; align-items: center; gap: 6px; }
.save-version-btn {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    background: var(--accent); color: #fff;
    border: none; border-radius: 99px;
    padding: 5px 14px; cursor: pointer;
    transition: opacity 0.15s;
}
.save-version-btn:hover { opacity: 0.85; }
.save-version-form {
    display: flex; align-items: center; gap: 5px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-width 0.2s ease, opacity 0.15s ease;
}
/* Show on wrapper hover OR when the input inside is focused */
.save-version-wrap:hover .save-version-form,
.save-version-form:focus-within {
    max-width: 320px;
    opacity: 1;
    pointer-events: auto;
}
.save-version-input {
    font-family: 'Inter', sans-serif; font-size: 12px;
    padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px;
    background: var(--surface); color: var(--text-primary);
    width: 190px; outline: none;
    transition: border-color 0.15s;
}
.save-version-input:focus { border-color: var(--accent); }
.save-version-confirm {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    background: var(--accent); color: #fff; border: none;
    border-radius: 99px; padding: 4px 12px; cursor: pointer;
    transition: opacity 0.15s;
}
.save-version-confirm:hover { opacity: 0.85; }

/* ── Menu drawer ── */
.menu-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 2099;
    opacity: 0;
    transition: opacity 0.2s;
}
.menu-backdrop.visible { display: block; opacity: 1; }

.menu-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 280px; height: 100%;
    background: var(--surface);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    z-index: 2100;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.menu-drawer.open { transform: translateX(0); }

.menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.menu-drawer-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.menu-drawer-close {
    background: none; border: none; cursor: pointer;
    font-size: 16px; color: var(--text-secondary);
    padding: 4px 6px; border-radius: 4px; line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.menu-drawer-close:hover { background: var(--accent-light); color: var(--accent); }

.menu-account { padding: 16px; }

.menu-section-title {
    font-size: 13px; font-weight: 600;
    color: var(--text-primary); margin-bottom: 12px;
}

.menu-divider {
    border: none;
    margin: 14px 0;
    display: flex; align-items: center; gap: 10px;
}
.menu-divider span {
    font-size: 12px; color: var(--text-secondary); white-space: nowrap; flex-shrink: 0;
}
.menu-divider::before, .menu-divider::after {
    content: ''; flex: 1; border-top: 1px solid var(--border);
}

/* Google sign-in button */
.menu-google-btn {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    width: 100%; padding: 10px 12px;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 8px; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
    color: var(--text-primary);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.menu-google-btn:hover { background: var(--accent-light); border-color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* Sign in / Create account mode tabs */
.menu-mode-row {
    display: flex; gap: 0;
    background: var(--bg); border-radius: 8px;
    padding: 3px; margin-bottom: 14px;
    border: 1px solid var(--border);
}
.menu-mode-tab {
    flex: 1; padding: 7px 6px;
    background: none; border: none; cursor: pointer; border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}
.menu-mode-tab.active {
    background: var(--surface); color: var(--text-primary); font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.menu-mode-tab:not(.active):hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }

/* Email auth form */
.menu-email-form { display: flex; flex-direction: column; gap: 10px; }
.menu-auth-note  { font-size: 12px; color: var(--text-secondary); line-height: 1.4; margin: 0; }
.menu-auth-error { font-size: 12px; color: #dc2626; margin: 0; padding: 8px 10px; background: #fee2e2; border-radius: 6px; border-left: 3px solid #dc2626; }
.menu-auth-input {
    width: 100%; padding: 9px 12px; box-sizing: border-box;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 14px;
    background: var(--bg); color: var(--text-primary);
    transition: border-color 0.15s;
}
.menu-auth-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.menu-auth-input::placeholder { color: var(--text-hint); }
.menu-auth-submit {
    width: 100%; padding: 10px;
    background: var(--accent); color: #fff; border: none; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: opacity 0.15s; margin-top: 2px;
    letter-spacing: 0.01em;
}
.menu-auth-submit:hover:not(:disabled) { opacity: 0.88; }
.menu-auth-submit:disabled { opacity: 0.5; cursor: default; }

/* Signed-in state */
.menu-user-row  { display: flex; gap: 10px; align-items: flex-start; }
.menu-user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.menu-user-avatar--google { background: #4285f4; color: #fff; }
.menu-user-avatar--email  { background: var(--accent); color: #fff; }
.menu-user-info   { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-user-email  { font-size: 13px; font-weight: 600; color: var(--text-primary); word-break: break-all; }
.menu-user-provider { font-size: 11px; color: var(--text-hint); }
.menu-user-unverified { font-size: 11px; color: #d97706; margin-top: 2px; }
.menu-resend-btn {
    background: none; border: none; cursor: pointer; padding: 0; margin-top: 4px;
    font-family: 'Inter', sans-serif; font-size: 11px; color: var(--accent);
    text-decoration: underline; text-align: left;
}
.menu-resend-btn:disabled { opacity: 0.5; cursor: default; }
.menu-signout-btn {
    width: 100%; padding: 8px;
    background: none; border: 1px solid var(--border); border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.menu-signout-btn:hover { background: #fee2e2; border-color: #dc2626; color: #dc2626; }
.menu-prefs-btn {
    width: 100%; padding: 8px;
    background: none; border: 1px solid var(--border); border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); cursor: pointer; text-align: left;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    margin-bottom: 8px;
}
.menu-prefs-btn:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.menu-signed-in-badge {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    color: #16a34a; background: #dcfce7;
    padding: 2px 8px; border-radius: 10px;
    margin-bottom: 4px;
}

/* ── Menu — trip sharing section ── */
.menu-trip-section { padding: 16px; border-top: 1px solid var(--border); }
.menu-trip-label   { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 10px 0 6px; }

.menu-invite-panel { margin-top: 4px; }
.menu-invite-row   { display: flex; gap: 6px; align-items: center; }
.menu-invite-input { flex: 1; font-size: 12px !important; padding: 7px 8px !important; }
.menu-invite-btn   {
    flex-shrink: 0; padding: 7px 12px;
    background: var(--accent); color: #fff; border: none; border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: opacity 0.15s;
}
.menu-invite-btn:hover:not(:disabled) { opacity: 0.88; }
.menu-invite-btn:disabled { opacity: 0.5; cursor: default; }
.menu-invite-msg { font-size: 12px; margin: 6px 0 0; }
.menu-invite-msg--success { color: #16a34a; }
.menu-invite-msg--error   { color: #dc2626; }

.menu-summary-panel  { margin-top: 4px; }
.menu-summary-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0 12px; }
.menu-summary-hint   { font-size: 12px; color: var(--text-secondary); margin: 0 0 10px; line-height: 1.4; }

.menu-members-wrap  { margin-top: 14px; }
.menu-members-list  { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.menu-members-empty { font-size: 12px; color: var(--text-hint); margin: 0; }
.menu-member-row    { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg); border-radius: 6px; padding: 5px 8px; }
.menu-member-email  { font-size: 12px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-member-remove {
    background: none; border: none; cursor: pointer; color: var(--text-hint);
    font-size: 16px; line-height: 1; padding: 0 2px; flex-shrink: 0;
    transition: color 0.15s;
}
.menu-member-remove:hover { color: #dc2626; }

/* ── Menu — collapsible sections ── */
.menu-collapsible {
    border-top: 1px solid var(--border);
}
.menu-collapsible-header {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 13px 16px;
    background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    color: var(--text-primary); text-align: left;
    transition: background 0.12s;
}
.menu-collapsible-header:hover { background: var(--bg); }
.menu-collapsible-chevron {
    font-size: 16px; color: var(--text-hint);
    transition: transform 0.2s ease;
    display: inline-block; transform: rotate(0deg);
}
.menu-collapsible.open .menu-collapsible-chevron { transform: rotate(90deg); }
.menu-collapsible-body { display: none; padding: 0 16px 14px; }
.menu-collapsible.open .menu-collapsible-body { display: block; }
/* Hide inner section titles — the collapsible header is the title */
.menu-collapsible-body .menu-section-title { display: none; }
/* Remove the padding that .menu-account adds — collapsible body handles it */
.menu-collapsible-body .menu-account,
.menu-collapsible-body .menu-signed-in,
.menu-collapsible-body .menu-signed-out,
.menu-collapsible-body .menu-trip-section { padding: 0; border: none; }

/* ── Menu — export section ── */
.menu-export-btn {
    width: 100%; padding: 9px 12px; margin-bottom: 8px;
    background: var(--accent-light); color: var(--accent);
    border: 1.5px solid var(--accent); border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: left;
    transition: background 0.15s, opacity 0.15s;
}
.menu-export-btn:hover { opacity: 0.85; }
.menu-export-hint {
    font-size: 11px; color: var(--text-hint); margin: 0;
    line-height: 1.4;
}

/* ── History panel backdrop ── */
.history-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.18); z-index: 1999;
}
.history-backdrop.visible { display: block; }

/* ── History panel ── */
.history-panel {
    position: fixed; top: 0; left: 0;
    width: 280px; height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    z-index: 2000;
    display: flex; flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}
.history-panel.open { transform: translateX(0); }
.history-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.history-panel-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.history-close-btn {
    background: none; border: none; cursor: pointer;
    font-size: 14px; color: var(--text-hint); padding: 0;
    transition: color 0.15s; line-height: 1;
}
.history-close-btn:hover { color: var(--text-primary); }
.history-panel-hint {
    font-size: 11px; color: var(--text-hint); padding: 10px 16px 6px;
    border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.history-list {
    overflow-y: auto; flex: 1; padding: 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.history-empty {
    font-size: 12px; color: var(--text-hint); padding: 16px 8px; line-height: 1.5;
}
.history-item {
    padding: 10px 12px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--bg);
    display: flex; flex-direction: column; gap: 4px;
}
.history-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.history-badge {
    font-size: 10px; font-weight: 600; border-radius: 99px;
    padding: 1px 7px; white-space: nowrap; flex-shrink: 0;
}
.history-badge--manual { background: var(--accent-light); color: var(--accent); }
.history-badge--auto   { background: var(--tag-rest-bg);  color: var(--text-secondary); }
.history-time { font-size: 10px; color: var(--text-hint); margin-left: auto; }
.history-item--auto { opacity: 0.75; }
.history-label { font-size: 12px; font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.history-revert-btn {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
    background: none; color: var(--accent); border: 1px solid var(--accent);
    border-radius: 99px; padding: 3px 10px; cursor: pointer;
    align-self: flex-start; margin-top: 2px;
    transition: background 0.12s, color 0.12s;
}
.history-revert-btn:hover { background: var(--accent); color: #fff; }

/* ── Day timeline ── */
.day-label {
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.day-label:hover { background: var(--accent-light); border-radius: 6px 0 0 6px; }
.day-label.timeline-active {
    background: var(--accent-light);
    border-radius: 6px 0 0 0;
}
.day-label.timeline-active .day-date { color: var(--accent); }

.day-timeline-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 8px 8px;
    margin-top: -2px;
    padding: 16px 20px 28px;
    animation: timeline-open 0.18s ease;
}
@keyframes timeline-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* All-day zone — permanent drop target at top of timeline */
.timeline-allday-zone {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 8px 10px 10px;
    margin-bottom: 10px;
    border: 1px dashed var(--border);
    border-radius: 6px;
    transition: background 0.15s, border-color 0.15s;
    min-height: 40px;
}
.timeline-allday-zone.drop-active {
    background: var(--accent-light);
    border-color: var(--accent);
    border-style: dashed;
}

/* Unscheduled row (legacy — kept for compat) */
.timeline-unscheduled {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.timeline-col-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-hint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: 52px;
    min-width: 52px;
    text-align: right;
    padding-top: 5px;
    padding-right: 10px;
    flex-shrink: 0;
}
.timeline-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Hour grid */
.timeline-grid {
    position: relative;
    margin-left: 62px;
    overflow: visible;
}
.timeline-hour-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: var(--border);
}
.timeline-hour-line:first-of-type { background: transparent; }
.timeline-hour-label {
    position: absolute;
    right: calc(100% + 8px);
    top: -8px;
    font-size: 10px;
    color: var(--text-hint);
    white-space: nowrap;
    min-width: 46px;
    text-align: right;
}

/* Events area */
.timeline-events-area {
    position: absolute;
    inset: 0;
    overflow: visible;
}

/* Scheduled event block */
.timeline-event-block {
    position: absolute;
    left: 6px; right: 6px;
    border-radius: 6px;
    padding: 4px 8px 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1px;
    cursor: grab;
    user-select: none;
    border: 1px solid rgba(0,0,0,0.1);
    transition: box-shadow 0.1s;
    overflow: hidden;
}
.timeline-event-block:hover  { box-shadow: 0 2px 10px rgba(0,0,0,0.18); }
.timeline-event-block.tl-dragging {
    cursor: grabbing;
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    z-index: 10;
    opacity: 0.9;
}
.timeline-block-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.timeline-block-time {
    font-size: 10px;
    opacity: 0.72;
    line-height: 1.2;
}

/* Resize handles — invisible strips at top/bottom of each block */
.timeline-resize-top,
.timeline-resize-bottom {
    position: absolute;
    left: 0; right: 0;
    height: 10px;
    cursor: ns-resize;
    z-index: 2;
}
.timeline-resize-top    { top: 0; }
.timeline-resize-bottom { bottom: 0; }
/* Subtle visual indicator on hover */
.timeline-resize-top::after,
.timeline-resize-bottom::after {
    content: '';
    display: block;
    height: 2px;
    background: rgba(0,0,0,0.18);
    border-radius: 1px;
    margin: 4px 12px 0;
    opacity: 0;
    transition: opacity 0.15s;
}
.timeline-event-block:hover .timeline-resize-top::after,
.timeline-event-block:hover .timeline-resize-bottom::after { opacity: 1; }
.timeline-resize-bottom::after { margin-top: 0; margin-bottom: 4px; }

/* "All day" button on each block — appears on hover */
.timeline-block-allday-btn {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: inherit;
    background: rgba(0,0,0,0.12);
    border: none;
    border-radius: 3px;
    padding: 2px 5px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.1s;
    align-self: flex-start;
    margin-top: 2px;
    line-height: 1.4;
    pointer-events: none;
}
.timeline-event-block:hover .timeline-block-allday-btn {
    opacity: 1;
    pointer-events: auto;
}
.timeline-block-allday-btn:hover { background: rgba(0,0,0,0.22); }

/* Ghost shown when dragging unscheduled chip over the grid */
.tl-ghost {
    pointer-events: none;
    border-radius: 6px;
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid rgba(0,0,0,0.1);
}

.timeline-empty {
    font-size: 13px;
    color: var(--text-hint);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

/* ── Footer ── */
footer { max-width: 1020px; margin: 2rem auto 0; text-align: center; font-size: 11px; color: var(--text-hint); }

/* ── Responsive ── */

/* Tablet (601–700px): shrink columns, hide joining col */
@media (max-width: 700px) {
    .day-row { grid-template-columns: 60px 85px 1fr; }
    .joining-col { display: none; }
}

/* Mobile (≤ 600px): full stack layout */
@media (max-width: 600px) {
    body { padding: 0.75rem 0.75rem 3rem; -webkit-text-size-adjust: 100%; }

    /* ── Header ── */
    header { margin-bottom: 1rem; }
    .header-main { gap: 0.5rem; flex-wrap: wrap; }
    .header-main h1 { font-size: 1.4rem; }
    .header-main p  { font-size: 12px; }
    .title-input    { font-size: 1.4rem; min-width: 0; }

    /* ── Home ── */
    .home-container { padding: 1.25rem 0 2.5rem; }
    .home-title { font-size: 1.6rem; }

    /* ── Join ── */
    .join-box { padding: 28px 20px; }
    .join-box h2 { font-size: 1.3rem; }

    /* ── Top area: stack vertically ── */
    .top-area { flex-direction: column; }
    .members-panel { width: 100%; }
    .hint { display: none; } /* redundant on mobile */

    /* ── Add panel ── */
    .add-panel { padding: 12px; }
    .add-panel-input { min-width: 0; }
    .add-panel-select { flex: 1; min-width: 100px; }

    /* ── Day row: day label + time on top row, content + joining below ── */
    .day-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
    }
    .day-label {
        grid-row: 1; grid-column: 1;
        flex-direction: row; align-items: baseline; gap: 4px;
        padding: 10px 12px;
    }
    .day-name  { font-size: 11px; }
    .day-date  { font-size: 14px; }
    .day-month { font-size: 11px; }
    .time-col    { grid-row: 1; grid-column: 2; border-right: none; min-width: 0; }
    .day-content { grid-row: 2; grid-column: 1 / 3; border-right: none; border-top: 1px solid var(--border); }
    .joining-col { grid-row: 3; grid-column: 1 / 3; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border); min-width: 0; }
    .people-list { flex-direction: row; flex-wrap: wrap; }
    .add-person-row { flex-wrap: wrap; }

    /* ── Event detail panel: single column ── */
    .event-details-grid       { grid-template-columns: 1fr; }
    .detail-field.full        { grid-column: 1; }
    .event-details-panel.open { max-height: 70vh; }

    /* ── People input: let it grow ── */
    .add-person-input { width: auto; flex: 1; min-width: 0; }

    /* ── Month section ── */
    .month-section { margin-bottom: 1.5rem; }
    .month-label   { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════
   Chat assistant — floating bubble + panel
   ═══════════════════════════════════════════════════════ */

.chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.chat-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(0,0,0,0.24);
}
.chat-bubble--hidden { opacity: 0; pointer-events: none; }

/* Panel */
.chat-panel {
    position: fixed;
    bottom: 92px;   /* above bubble */
    right: 24px;
    z-index: 1099;
    width: 360px;
    height: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Hidden state */
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transform-origin: bottom right;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16,1,0.3,1),
                transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-panel-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.chat-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
}
.chat-panel-close:hover { background: var(--accent-light); color: var(--accent); }

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}
.chat-msg { display: flex; }
.chat-msg--user     { justify-content: flex-end; }
.chat-msg--assistant { justify-content: flex-start; }

.chat-msg-bubble {
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.chat-msg--user .chat-msg-bubble {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg--assistant .chat-msg-bubble {
    background: var(--accent-light);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.chat-msg--error .chat-msg-bubble {
    background: #fde8e8;
    color: #9b1c1c;
}

/* Loading dots */
.chat-msg-bubble--loading {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
}
.chat-msg-bubble--loading span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
    animation: chat-dot-pulse 1.2s ease-in-out infinite;
}
.chat-msg-bubble--loading span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg-bubble--loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-dot-pulse {
    0%, 80%, 100% { opacity: 0.4; transform: scale(1); }
    40%           { opacity: 1;   transform: scale(1.25); }
}

/* Input row */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s;
}
.chat-input::placeholder { color: var(--text-hint); }
.chat-input:focus { border-color: var(--accent); }
.chat-input:disabled { opacity: 0.5; }

/* Links inside chat bubbles */
.chat-msg-bubble .chat-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}
.chat-msg--user .chat-msg-bubble .chat-link {
    color: #ffe0cc;
}
.chat-link:hover { opacity: 0.8; }

.chat-send-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s, transform 0.12s;
}
.chat-send-btn:hover { opacity: 0.88; transform: scale(1.07); }

/* Confirm / cancel action row */
.chat-confirm-row {
    display: flex;
    gap: 8px;
    padding: 2px 0 4px 2px;
}
.chat-confirm-btn {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
}
.chat-confirm-btn:hover:not(:disabled) { opacity: 0.85; transform: scale(1.03); }
.chat-confirm-btn:disabled { cursor: default; }
.chat-confirm-btn--apply  { background: #22c55e; color: #fff; }
.chat-confirm-btn--cancel { background: var(--accent-light); color: var(--accent); }
.chat-confirm-btn--done   { opacity: 0.55; transform: none !important; }

/* ── Place search result cards ── */
.chat-place-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 8px 8px;
    width: 100%;
}
.chat-place-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-place-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.chat-place-card-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
}
.chat-place-card-price {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.chat-place-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.chat-place-card-rating {
    font-size: 0.75rem;
    color: #f59e0b;
    font-weight: 600;
}
.chat-place-card-open {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 10px;
}
.chat-place-card-open.open   { background: #dcfce7; color: #16a34a; }
.chat-place-card-open.closed { background: #fee2e2; color: #dc2626; }
.chat-place-card-address {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}
.chat-place-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}
.chat-place-card-website {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    padding: 3px 8px;
    border: 1px solid var(--accent);
    border-radius: 6px;
}
.chat-place-card-website:hover { background: var(--accent-light); }
.chat-place-card-add {
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.chat-place-card-add:hover:not(:disabled) { opacity: 0.88; }
.chat-place-card-add:disabled             { cursor: default; }
.chat-place-card-add--done                { background: #22c55e !important; opacity: 0.85; }
.chat-place-date-select {
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 6px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
}

/* Narrow screens */
@media (max-width: 420px) {
    .chat-panel { width: calc(100vw - 24px); right: 12px; bottom: 84px; }
    .chat-bubble { right: 12px; bottom: 12px; }
}

/* ── Welcome / onboarding modal ──────────────────────────────────────────── */
.wlc-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 900;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.wlc-overlay.hidden { display: none; }

.wlc-card {
    display: flex;
    width: 100%; max-width: 860px; max-height: 92vh;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

/* Left — branded panel */
.wlc-left {
    background: linear-gradient(145deg, #c2410c, #f97316);
    color: #fff; padding: 44px 36px; flex: 0 0 42%;
    display: flex; flex-direction: column; overflow-y: auto;
}
.wlc-logo   { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.wlc-title  { font-size: 26px; font-weight: 700; margin: 0 0 6px; color: #fff; font-family: 'Playfair Display', serif; }
.wlc-tagline { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0 0 28px; }
.wlc-features {
    list-style: none; padding: 0; margin: 0 0 32px;
    display: flex; flex-direction: column; gap: 14px;
}
.wlc-features li { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,0.9); }
.wlc-features strong { color: #fff; }
.wlc-pro {
    background: rgba(255,255,255,0.15); border-radius: 10px;
    padding: 14px 16px; margin-top: auto;
}
.wlc-pro-heading { margin: 0 0 5px; font-size: 13px; font-weight: 700; color: #fff; }
.wlc-pro-body    { margin: 0; font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.55; }

/* Right — form panel */
.wlc-right {
    background: var(--bg); padding: 40px 36px; flex: 1;
    display: flex; flex-direction: column; overflow-y: auto;
}
.wlc-skip {
    align-self: flex-end; background: none; border: none;
    color: var(--text-secondary); font-size: 12px;
    font-family: 'Inter', sans-serif; cursor: pointer; padding: 0 0 16px;
}
.wlc-skip:hover { color: var(--text-primary); }
.wlc-heading { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0 0 20px; }
.wlc-google-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 20px; background: var(--surface);
    border: 1.5px solid var(--border); border-radius: 10px;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
    color: var(--text-primary); cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.wlc-google-btn:hover { border-color: #4285F4; box-shadow: 0 0 0 3px rgba(66,133,244,0.12); }
.wlc-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 20px 0; color: var(--text-secondary); font-size: 12px;
}
.wlc-divider::before, .wlc-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.wlc-tabs {
    display: flex; border-radius: 8px;
    border: 1.5px solid var(--border); overflow: hidden; margin-bottom: 16px;
}
.wlc-tab {
    flex: 1; padding: 9px 12px; background: var(--surface); border: none;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text-secondary); cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.wlc-tab + .wlc-tab { border-left: 1.5px solid var(--border); }
.wlc-tab.active { background: var(--accent); color: #fff; }
.wlc-form      { display: flex; flex-direction: column; gap: 10px; }
.wlc-form-note { font-size: 12px; color: var(--text-secondary); margin: 0; }
.wlc-input {
    padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: 'Inter', sans-serif;
    background: var(--surface); color: var(--text-primary); outline: none;
    transition: border-color 0.15s;
}
.wlc-input:focus { border-color: var(--accent); }
.wlc-input.hidden { display: none; }
.wlc-error { font-size: 12px; color: #dc2626; margin: 0; }
.wlc-error.hidden { display: none; }
.wlc-submit {
    width: 100%; padding: 12px; background: var(--accent); color: #fff;
    border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
    font-family: 'Inter', sans-serif; cursor: pointer; transition: opacity 0.15s;
}
.wlc-submit:hover    { opacity: 0.88; }
.wlc-submit:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 620px) {
    .wlc-card    { flex-direction: column; }
    .wlc-left    { padding: 28px 24px; flex: none; }
    .wlc-logo    { font-size: 32px; }
    .wlc-title   { font-size: 20px; }
    .wlc-tagline { margin-bottom: 12px; }
    .wlc-features, .wlc-pro { display: none; }
    .wlc-right   { padding: 24px; }
}

/* ── Untimed events button ────────────────────────────────────────────────── */
.time-fixer-btn {
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
    background: var(--surface); color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 99px;
    padding: 5px 14px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: border-color 0.15s, color 0.15s;
}
.time-fixer-btn:hover { border-color: var(--accent); color: var(--accent); }
.time-fixer-btn--active { border-color: #f97316; color: #f97316; }

.time-fixer-count {
    background: #f97316; color: #fff;
    font-size: 10px; font-weight: 700; line-height: 1;
    border-radius: 99px; padding: 2px 6px; min-width: 16px; text-align: center;
}
.time-fixer-count.hidden { display: none; }

/* ── Untimed events panel (slides in from right) ─────────────────────────── */
.time-fixer-panel {
    position: fixed; top: 0; right: 0;
    width: 420px; max-width: 100vw; height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 2000;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
.time-fixer-panel.open { transform: translateX(0); }

.time-fixer-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.time-fixer-panel-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.time-fixer-hint {
    font-size: 11px; color: var(--text-hint); padding: 10px 16px 6px;
    border-bottom: 1px solid var(--border); flex-shrink: 0; margin: 0;
}

.time-fixer-list {
    overflow-y: auto; flex: 1; padding: 8px;
    display: flex; flex-direction: column; gap: 2px;
}

/* ── Individual event rows ────────────────────────────────────────────────── */
.time-fixer-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 8px;
}

.time-fixer-meta { display: flex; flex-direction: column; gap: 2px; }

.time-fixer-date {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-hint);
}
.time-fixer-name {
    font-size: 13px; font-weight: 500; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.time-fixer-controls {
    display: flex; align-items: flex-end; gap: 8px;
}

.time-fixer-field {
    display: flex; flex-direction: column; gap: 3px;
    font-size: 10px; font-weight: 600; color: var(--text-hint);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.time-fixer-time-inp {
    font-family: 'Inter', sans-serif; font-size: 12px;
    padding: 5px 8px;
    border: 1.5px solid var(--border); border-radius: 6px;
    background: var(--bg); color: var(--text-primary);
    outline: none; width: 100px;
    transition: border-color 0.15s;
}
.time-fixer-time-inp:focus { border-color: var(--accent); }

.time-fixer-alldaybtn {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500;
    padding: 5px 10px; border-radius: 6px;
    background: var(--surface); color: var(--text-secondary);
    border: 1.5px solid var(--border); cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap; align-self: flex-end;
}
.time-fixer-alldaybtn:hover { border-color: var(--accent); color: var(--accent); }

.time-fixer-empty {
    font-size: 13px; color: var(--text-hint);
    text-align: center; padding: 32px 16px; margin: 0;
}
