:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --text: #0b1021;
    --muted: #4b5563;
    --accent: #0ea5e9;
    --accent-strong: #0b7fd1;
    --border: #d6dae5;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

.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;
}

body {
    margin: 0;
    padding: 18px 14px 36px;
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    background: #0f172a;
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    z-index: 50;
}

.skip-link:not(:focus):not(:focus-visible) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
    margin: 0 0 6px;
}

h1, h2, h3 {
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

.lede {
    margin: 6px 0 0;
    color: var(--muted);
    max-width: 760px;
}

.a11y-header {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.hint {
    color: var(--muted);
    font-size: 13px;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
}

.control--muted {
    color: var(--muted);
    font-weight: 600;
}

.control input,
.control select {
    padding: 11px 12px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: var(--text);
}

.status-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
}

.status-text {
    margin-top: 8px;
    min-height: 18px;
    color: var(--muted);
}

.status-text.ok { color: #15803d; }
.status-text.error { color: #b91c1c; }
.status-text.note { color: #6b21a8; }

.meeting-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meeting-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.meeting-meta {
    color: var(--muted);
    font-size: 14px;
}

.platform-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #0f172a;
    color: #f8fafc;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid var(--border);
}

.meeting-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    z-index: 2;
}

.info-button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #0f172a;
    color: #f8fafc;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.info-button:hover,
.info-button:focus-visible {
    transform: translateY(-1px);
    border-color: #0ea5e9;
    background: #0e7490;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    outline: none;
}

.info-bubble {
    position: absolute;
    top: 30px;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
    padding: 12px 14px;
    min-width: 220px;
    max-width: 340px;
    font-size: 13px;
    line-height: 1.5;
    z-index: 20;
}

.info-bubble::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 16px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent rgba(15, 23, 42, 0.95) transparent;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.3));
}

.meeting-info:not(.open) .info-bubble {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #075985;
    font-weight: 700;
    font-size: 12px;
}

.time-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.days-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.day-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    background: #f8fafc;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.badge {
    background: rgba(14, 165, 233, 0.16);
    color: #075985;
    border-radius: 999px;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 12px;
}

.ghost-btn,
.primary-btn {
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    background: #f8fafc;
    cursor: pointer;
}

.ghost-btn.small {
    padding: 8px 10px;
    font-size: 13px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #f8fafc;
    border: none;
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.25);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 640px) {
    body {
        padding: 14px 10px 28px;
    }
}
