/* Tuvums booking — inspired by tuvums.lv (organic wellness).
   Warmer cream, soft borders, generous whitespace, no harsh boxes.
   Fonts: Fraunces (headings, warm serif with full Latvian support)
          Inter (body, perfect Latin Extended coverage) */

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

:root {
    --bg:         #FBF7EE;
    --bg-warm:    #F5EEE0;
    --card:       #FFFFFF;
    --ink:        #2A2018;
    --ink-soft:   #5A4B3E;
    --muted:      #8B7A6B;
    --sand:       #E6D3C4;
    --sand-soft:  #F0E4D4;
    --line:       rgba(157, 53, 25, 0.14);
    --line-soft:  rgba(157, 53, 25, 0.08);

    --accent:       #9D3519;
    --accent-hover: #7d2a13;
    --accent-soft:  rgba(157, 53, 25, 0.08);

    --slot-free:     #7BA76F;   /* green — available */
    --slot-reserved: #D9853A;   /* orange — held by others */
    --slot-mine:     #4A73B0;   /* blue — my hold */
    --slot-taken:    #B03A1A;   /* red — booked */
    --slot-empty:    #D9D0C4;   /* fallback */

    --err: #B03A1A;
    --ok:  #4A7A47;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Fraunces', Georgia, serif;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.04), 0 2px 8px rgba(60, 40, 20, 0.03);
    --shadow-md: 0 2px 4px rgba(60, 40, 20, 0.06), 0 8px 24px rgba(157, 53, 25, 0.06);
    --shadow-lg: 0 4px 12px rgba(60, 40, 20, 0.08), 0 24px 48px rgba(157, 53, 25, 0.10);

    --pad: clamp(16px, 4vw, 28px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(230, 211, 196, 0.4), transparent 50%),
        radial-gradient(circle at 85% 100%, rgba(157, 53, 25, 0.04), transparent 50%);
    background-attachment: fixed;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------- Layout ---------------- */
.wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--pad);
    padding-bottom: 80px;
}

.header {
    text-align: center;
    padding: 32px 0 24px;
    margin-bottom: 8px;
}

.brand {
    font-family: var(--font-head);
    font-weight: 400;
    font-size: clamp(32px, 8vw, 42px);
    letter-spacing: 0.02em;
    color: var(--accent);
    line-height: 1;
    font-variation-settings: 'opsz' 144;
}

.tagline {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* ---------------- Tabs ---------------- */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--sand-soft);
    padding: 4px;
    border-radius: 999px;
    margin: 0 auto 28px;
    max-width: 420px;
}

.tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab[aria-selected="true"] {
    background: var(--card);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.tab .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: 1px;
}

/* ---------------- Intro text ---------------- */
.intro {
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 20px 22px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}

.intro p + p { margin-top: 10px; }
.intro em { color: var(--accent); font-style: normal; font-weight: 500; }

/* ---------------- Slot list (time slots) ---------------- */
.slot-group { margin-bottom: 32px; }

.slot-group-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 14px;
    padding-left: 4px;
    font-variation-settings: 'opsz' 144;
}

.slot-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 18px 22px;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.slot-btn:hover, .slot-btn:focus {
    outline: none;
    transform: translateY(-1px);
    border-color: var(--line);
    box-shadow: var(--shadow-md);
}

.slot-btn-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.slot-btn-time {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.1;
    font-variation-settings: 'opsz' 144;
}

.slot-btn-sub {
    font-size: 13px;
    color: var(--muted);
}

.slot-btn-arrow {
    color: var(--muted);
    font-size: 22px;
    flex-shrink: 0;
}

.slot-btn-mini-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.slot-note {
    font-size: 14px;
    color: var(--muted);
    padding: 8px 20px 0;
    text-align: center;
    line-height: 1.7;
}

.slot-note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------------- Experience cards ---------------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0 0 20px 4px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

.slot-title {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 4px;
    line-height: 1.15;
    font-variation-settings: 'opsz' 144;
}

.slot-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

.info-box {
    background: var(--sand-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.info-box ul { padding-left: 18px; margin: 0; }
.info-box li { margin-bottom: 4px; }
.info-box li:last-child { margin-bottom: 0; }

/* Individual experience card */
.exp-card {
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
}

.exp-card.is-disabled { opacity: 0.5; }

.exp-card.is-expanded {
    box-shadow: var(--shadow-md);
    border-color: var(--line);
}

.exp-card.is-mine {
    border-color: var(--accent);
    border-width: 1px;
    background: linear-gradient(180deg, var(--card) 0%, var(--sand-soft) 100%);
}

.exp-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.exp-card-head:hover { background: var(--sand-soft); }

.exp-card.is-expanded .exp-card-head:hover { background: transparent; }

.exp-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    font-variation-settings: 'opsz' 144;
}

.exp-card.is-mine .exp-number { background: var(--ok); }

.exp-main {
    flex: 1;
    min-width: 0;
}

.exp-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.25;
    font-variation-settings: 'opsz' 144;
    margin-bottom: 4px;
}

.exp-presenter {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    font-style: italic;
}

/* Slot dots visualization */
.slot-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 6px;
}

.slot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slot-empty);
    flex-shrink: 0;
}

.slot-dot.free     { background: var(--slot-free); }
.slot-dot.reserved { background: var(--slot-reserved); animation: pulse 2s ease-in-out infinite; }
.slot-dot.mine     { background: var(--slot-mine); border: 2px solid var(--slot-mine); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--slot-mine); }
.slot-dot.taken    { background: var(--slot-taken); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

.slot-status {
    font-size: 12px;
    color: var(--muted);
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.slot-status strong { color: var(--ink); font-weight: 600; }
.slot-status.full strong { color: var(--err); }
.slot-status.free-many strong { color: var(--ok); }

.exp-chevron {
    color: var(--muted);
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s;
    line-height: 1;
    padding-top: 4px;
}
.exp-card.is-expanded .exp-chevron { transform: rotate(180deg); }

/* Body (expanded content) */
.exp-body {
    padding: 4px 20px 20px;
    border-top: 1px solid var(--line-soft);
    display: none;
}
.exp-card.is-expanded .exp-body { display: block; }

.exp-body-inner { padding-top: 16px; }

.exp-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.exp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.reservation-timer {
    font-size: 13px;
    color: var(--slot-mine);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.reservation-timer.warn { color: var(--slot-reserved); }
.reservation-timer.expiring { color: var(--err); }

.reservation-timer::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.5s ease-in-out infinite;
}

.tag {
    display: inline-block;
    background: var(--sand-soft);
    color: var(--ink-soft);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    font-weight: 500;
}

.tag-mine {
    background: var(--ok);
    color: #fff;
}

.tag-drop-in {
    background: var(--sand);
    color: var(--ink);
}

.tag-full {
    background: var(--err);
    color: #fff;
}

/* ---------------- Buttons ---------------- */
.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { background: #C9BEB0; cursor: not-allowed; }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-outline:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.btn-danger {
    background: transparent;
    color: var(--err);
    border: 1px solid var(--err);
}
.btn-danger:hover:not(:disabled) { background: var(--err); color: #fff; }

.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------------- My bookings ---------------- */
.my-card {
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 20px 22px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.my-time {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    padding-top: 2px;
    font-variation-settings: 'opsz' 144;
}

.my-main { flex: 1; min-width: 0; }

.my-title {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 3px;
    font-variation-settings: 'opsz' 144;
    line-height: 1.3;
}

.my-presenter {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 6px;
}

.my-spot {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 14px;
}
.my-spot strong { color: var(--accent); font-weight: 700; font-size: 15px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 15px;
}
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }

/* ---------------- Modal ---------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(42, 32, 24, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.15s ease;
}

.modal {
    background: var(--bg);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.2s ease;
}

.modal h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
    font-variation-settings: 'opsz' 144;
}

.modal p { margin-bottom: 20px; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

.modal-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    margin-bottom: 20px;
    border-radius: var(--r-md);
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-actions .btn { flex: 1; }

/* ---------------- Legend + meta row ---------------- */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: var(--sand-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    font-size: 12px;
    color: var(--ink-soft);
    justify-content: center;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.exp-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 4px;
}

/* ---------------- Notice bar ---------------- */
.notice {
    background: linear-gradient(135deg, var(--sand-soft), var(--sand));
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

/* ---------------- Toast ---------------- */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--bg);
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 14px;
    max-width: 90vw;
    z-index: 2000;
    animation: slideUp 0.2s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
.modal { animation: modalIn 0.2s ease; }
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(4px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------------- Admin ---------------- */
.admin-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--pad);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.admin-brand {
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--accent);
    letter-spacing: 0.01em;
    font-weight: 500;
    font-variation-settings: 'opsz' 144;
}

.admin-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-nav a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-section {
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.admin-section h2 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 18px;
    font-variation-settings: 'opsz' 144;
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 600;
}

.form-field input, .form-field select, .form-field textarea {
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: var(--r-sm);
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gate-datetime {
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: var(--r-sm);
    color: var(--ink);
}
.gate-datetime:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.slot-heading {
    margin: 24px 0 10px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 18px;
    color: var(--accent);
    font-variation-settings: 'opsz' 144;
}
.slot-heading.empty { color: var(--muted); }
.slot-heading .muted { font-weight: 400; font-size: 14px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field.full { grid-column: 1 / -1; }

.form-field-inline {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.form-field-inline label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    cursor: pointer;
}
.form-field-inline input[type=checkbox] {
    width: 18px; height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.exp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.exp-table th, .exp-table td {
    text-align: left;
    padding: 12px 12px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
.exp-table th {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
}
.exp-table tr.is-disabled { opacity: 0.5; }
.exp-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.exp-table .row-actions .btn { padding: 5px 12px; font-size: 12px; }

.exp-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 13px;
    font-variation-settings: 'opsz' 144;
}

.booking-count { font-family: var(--font-head); font-weight: 500; font-size: 16px; }
.booking-count.full { color: var(--err); }

/* ---------------- Monitor ---------------- */
.monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.monitor-card {
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.monitor-card h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
    font-variation-settings: 'opsz' 144;
}

.monitor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
    gap: 10px;
}
.monitor-row:last-child { border-bottom: none; }

.monitor-row .fill-bar {
    flex: 1;
    height: 6px;
    background: var(--sand-soft);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 8px;
    min-width: 40px;
    position: relative;
}
.monitor-row .fill-bar > div {
    height: 100%;
    background: var(--slot-free);
    transition: width 0.3s, background 0.3s;
    border-radius: 3px;
}
.monitor-row .fill-bar > div.warn  { background: var(--slot-reserved); }
.monitor-row .fill-bar > div.full  { background: var(--slot-taken); }
.monitor-row .fill-bar > div.empty { background: var(--slot-empty); }

.monitor-row .label { flex: 0 0 auto; }
.monitor-row .monitor-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: var(--ink);
}
.monitor-row .num {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink);
    font-size: 13px;
    min-width: 42px;
    text-align: right;
}

.connection-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    padding: 5px 12px;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}
.status-dot.connected { background: var(--ok); }

/* ---------------- Utility ---------------- */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

@media (max-width: 560px) {
    .exp-table thead { display: none; }
    .exp-table tr {
        display: block;
        border-bottom: 1px solid var(--line-soft);
        padding: 14px 0;
    }
    .exp-table td {
        display: block;
        border: none;
        padding: 4px 0;
    }
    .exp-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--muted);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: inline-block;
        margin-right: 6px;
    }
    .exp-table td.row-actions-cell::before { content: ""; }
    .my-card { flex-direction: column; gap: 8px; }
    .my-time { font-size: 20px; }
}
