/*
 * MINUBOT (meeting minutes generator): the tool's own components, styled in the site's design language (6 Oct 2026,
 * on the UltraCompress Pro template). Base: /libs/site-pages.css (tokens, Inter and Space Grotesk, buttons, theme
 * toggle, focus rings) and /libs/shared-nav.css (the site's header and footer). This file holds only what the tool
 * itself needs: the toolbar, the editor and preview panels, the tabs, the forms, the list items, the windows, the
 * dashboard tiles and the toasts. Light is the default; dark applies when <html> has no data-theme. Every class and
 * id the script touches keeps its name, and the variable names the original rules and the script's markup use
 * (--primary, --secondary, --border, --bg-tertiary, --text-muted ...) are aliases of the site's tokens below.
 *
 * The minutes document (.preview-container) keeps fixed paper colours and its own copies of those variables, so it
 * looks the same in both page themes and in every export; Settings' two brand colours are written onto it as
 * --primary and --secondary, and the chosen document style is a style-* class.
 */

/* ----- Tokens the tool adds, and the aliases the original rules use ----- */
:root {
    --surface: #ffffff;
    --surface-2: #f3f4f8;
    --ring: rgba(139, 92, 246, 0.18);
    --app-max: 1600px;

    --primary: var(--brand);
    --primary-dark: #7C3AED;
    --primary-light: var(--brand-3);
    --secondary: var(--text-strong);
    --accent: #10b981;
    --accent-dark: #059669;
    --bg-primary: var(--surface);
    --bg-secondary: var(--surface-2);
    --bg-tertiary: var(--surface-2);
    --text-muted: var(--text-3);
    --border: var(--surface-border);
    --border-dark: var(--surface-border);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}
:root:not([data-theme="light"]) {
    --surface: #14141f;
    --surface-2: rgba(255, 255, 255, 0.05);
}

/* ----- Page: full width, the page provides the side space ----- */
.container.app-container { max-width: calc(var(--app-max) + 2 * var(--content-gutter)); margin-top: 16px; }
@media (min-width: 640px) { .container.app-container { margin-top: 24px; } }

/* ----- Tools back link above the header, as on every other tool: the bar scrolls away under the sticky header ----- */
body { padding-top: 0; }
.back-bar { height: 48px; display: flex; align-items: center; padding: 0 var(--zdu-gutter, 24px); }
body > header { position: sticky; top: 0; z-index: 50; }
header .site-nav { position: relative; top: auto; }
.theme-toggle { top: calc(90px + var(--bar-offset, 48px)); }
@media (max-width: 768px) { .theme-toggle { top: calc(75px + var(--bar-offset, 48px)); } }

/* ----- Hero: brand row, headline, tagline ----- */
.app-hero { margin: 0 0 2rem; text-align: center; }
.app-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text-strong); }
.app-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.app-hero h1 { margin-bottom: 0.75rem; }
.app-tagline { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; max-width: 46rem; margin: 0 auto; }

/* ----- Buttons: the site's pills, in the tool's sizes ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.925rem;
    line-height: 1.2;
    padding: 11px 22px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); color: #fff; }
.btn-secondary, .btn-outline { background: var(--surface); color: var(--text-strong); border: 1px solid var(--surface-border); padding: 10px 21px; }
.btn-secondary:hover, .btn-outline:hover { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 185, 129, 0.4); }
.btn-danger { background: var(--danger-strong); color: #fff; box-shadow: 0 4px 15px rgba(185, 28, 28, 0.25); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(185, 28, 28, 0.35); }
.btn-sm { font-size: 0.825rem; padding: 8px 15px; }
.btn-secondary.btn-sm { padding: 7px 14px; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 1rem; line-height: 1; box-shadow: none; }
.btn-icon.btn-danger { background: rgba(185, 28, 28, 0.08); color: var(--danger); border: 1px solid rgba(185, 28, 28, 0.3); }
.btn-icon.btn-danger:hover { background: var(--danger-strong); color: #fff; transform: none; box-shadow: none; }
.btn-icon.btn-secondary { border: 1px solid var(--chip-border); background: var(--chip); }

/* ----- The app: toolbar and the two panels ----- */
.app-shell { margin: 0 0 3rem; scroll-margin-top: 90px; }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 1.25rem; }
.page-title { margin: 0; font-size: 1.5rem; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.main-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); box-shadow: var(--surface-shadow); overflow: hidden; }
.panel--preview { position: sticky; top: 100px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; }
.panel-header { padding: 14px 20px; border-bottom: 1px solid var(--surface-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.panel-title { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text-strong); display: flex; align-items: center; gap: 8px; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-body { padding: 20px; }
.panel-body--preview { flex: 1; overflow-y: auto; padding: 20px; background: var(--surface-2); }

/* Tabs: a pill row inside a quiet track */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface-2); border: 1px solid var(--surface-border); padding: 4px; border-radius: 22px; margin-bottom: 1rem; }
.tab {
    flex: 1 0 auto;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    color: var(--text-2);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}
.tab:hover { color: var(--text-strong); }
.tab.active { background: var(--gradient-brand); color: #fff; box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3); }
.tab-content, .subtab-content, .settings-tab-content { display: none; }
.tab-content.active, .subtab-content.active, .settings-tab-content.active { display: block; }

/* ----- Forms ----- */
.form-group { margin-bottom: 14px; }
.form-group--tight { margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.form-row .form-group { margin-bottom: 14px; }
.form-row .form-group--tight { margin-bottom: 0; }
.form-row--followup { grid-template-columns: auto minmax(0, 1fr) auto; }
.form-group--wide { grid-column: auto; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-strong); margin-bottom: 6px; }
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-input, .form-select, .form-textarea, .search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.925rem;
    background: var(--field);
    border: 1px solid var(--field-border);
    border-radius: 12px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder, .form-textarea::placeholder, .search-input::placeholder { color: var(--placeholder); }
.form-input:focus, .form-select:focus, .form-textarea:focus, .search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.form-textarea { min-height: 90px; resize: vertical; }
.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b93a1' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.form-select option { color: #0a0a14; background: #fff; }
.form-select--auto { width: auto; }
.form-input[type="date"], .form-input[type="time"] { color-scheme: light; }
:root:not([data-theme="light"]) .form-input[type="date"], :root:not([data-theme="light"]) .form-input[type="time"] { color-scheme: dark; }
.form-hint { font-size: 0.78rem; color: var(--text-3); margin: 5px 0 0; }
.meeting-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; background: var(--surface-2); }

/* Template picker: eight cards, four per row */
.template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1rem; }
.template-card {
    padding: 12px 8px;
    background: var(--surface);
    border: 2px solid var(--surface-border);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.template-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.template-card.selected { border-color: var(--brand); background: var(--tint-brand); }
.template-icon { font-size: 1.6rem; margin-bottom: 4px; line-height: 1; }
.template-name { font-size: 0.8rem; font-weight: 600; color: var(--text-strong); }

/* ----- Cards and list items the editor draws ----- */
.card { background: var(--surface-2); border: 1px solid var(--surface-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.card--form { background: var(--surface); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text); }
.empty-state { text-align: center; padding: 40px 16px; color: var(--text-3); }
.empty-state p { margin: 0; color: var(--text-3); }
.empty-icon { font-size: 2.5rem; margin-bottom: 10px; opacity: 0.6; line-height: 1; }
.empty-icon--small { font-size: 1.8rem; margin-bottom: 6px; }
.empty-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; color: var(--text-2); }

.attendee-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--surface-border); border-radius: 12px; margin-bottom: 8px; }
.attendee-info { display: flex; flex-direction: column; min-width: 0; }
.attendee-name { font-weight: 600; color: var(--text-strong); font-size: 0.925rem; }
.attendee-role { font-size: 0.8rem; color: var(--text-3); }
.attendee-status, .priority-badge, .followup-type { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; border-radius: 9999px; white-space: nowrap; }
.priority-badge { text-transform: uppercase; letter-spacing: 0.04em; }
.status-present, .priority-low { background: #dcfce7; color: #166534; }
.status-absent, .priority-high { background: #fee2e2; color: #991b1b; }
.status-excused, .priority-medium { background: #fef3c7; color: #92400e; }
.status-video { background: #dbeafe; color: #1e40af; }
.type-parking { background: #fef3c7; color: #92400e; }
.type-deferred { background: #fee2e2; color: #991b1b; }
.type-outstanding { background: #dbeafe; color: #1e40af; }

.agenda-item { background: var(--surface-2); border: 1px solid var(--surface-border); border-left: 3px solid var(--brand); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.agenda-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.agenda-number { background: var(--gradient-brand); color: #fff; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; margin-right: 10px; }
.agenda-title { font-weight: 600; color: var(--text-strong); }
.agenda-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }

.action-item { background: var(--surface-2); border: 1px solid var(--surface-border); border-left: 3px solid #d97706; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.action-item.priority-high { border-left-color: #dc2626; }
.action-item.priority-medium { border-left-color: #d97706; }
.action-item.priority-low { border-left-color: #16a34a; }
.action-item .form-select { width: auto; display: inline-block; padding: 4px 28px 4px 10px; font-size: 0.78rem; margin-left: 6px; }
.action-item p { color: var(--text-strong); }
.decision-item { background: var(--tint-brand); border: 1px solid var(--tint-brand-border); border-left: 3px solid var(--brand); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.decision-marker { background: var(--gradient-brand); color: #fff; padding: 2px 8px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; border-radius: 9999px; margin-right: 6px; }
.motion-item { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.3); border-left: 3px solid #10b981; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.motion-item p { color: var(--text); }
.vote-results { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.vote-count { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.vote-for { color: var(--success); }
.vote-against { color: var(--danger); }
.vote-abstain { color: var(--text-3); }
.followup-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--surface-border); border-radius: 12px; margin-bottom: 8px; }
.attachment-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--surface-2); border: 1px solid var(--surface-border); border-radius: 12px; margin-bottom: 6px; }
.attachment-icon { font-size: 1.1rem; }
.attachment-name { flex: 1; font-size: 0.9rem; font-weight: 500; overflow-wrap: anywhere; }
.amendment-item { background: rgba(217, 119, 6, 0.08); border: 1px solid rgba(217, 119, 6, 0.3); border-left: 3px solid #d97706; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.amendment-header { font-weight: 600; font-size: 0.8rem; color: var(--warning); margin-bottom: 4px; }
.previous-actions { margin-top: 1.25rem; }
.previous-actions h4 { margin: 0 0 10px; }

/* ===== The minutes document: fixed paper colours, the same in both page themes and in the exports ===== */
.preview-container {
    --primary: #2563eb;
    --secondary: #0f172a;
    --border: #e2e8f0;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    background: #ffffff;
    color: #0f172a;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.preview-container h2, .preview-container h3, .preview-container h4 { font-family: inherit; color: inherit; }
.preview-container p { color: inherit; line-height: inherit; }
.preview-container table { background: none; border-radius: 0; margin: 0; }
.preview-container th, .preview-container td { color: inherit; }
.preview-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--secondary); }
.preview-logo { width: 80px; height: 80px; margin: 0 auto 1rem; background: #f1f5f9; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.logo-preview { max-width: 150px; max-height: 100px; margin: 0.5rem auto; display: block; }
.preview-title { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 0.5rem; color: var(--primary); }
.preview-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; margin-bottom: 1.5rem; font-size: 0.925rem; }
.preview-section { margin-bottom: 1.5rem; }
.preview-section-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; margin: 0 0 0.75rem; }
.confidential-banner { background: #b91c1c; color: #fff; text-align: center; padding: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; border-radius: 6px; }
.series-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
/* The five document styles */
.preview-container.style-corporate { font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; }
.preview-container.style-minimal { font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; }
.preview-container.style-minimal .preview-title, .preview-container.style-minimal .preview-section-title { color: var(--secondary); letter-spacing: 0.02em; }
.preview-container.style-minimal .preview-header { border-bottom-width: 1px; border-bottom-color: var(--border); }
.preview-container.style-minimal .series-badge { background: var(--secondary); }
.preview-container.style-legal { font-family: 'Times New Roman', Times, serif; }
.preview-container.style-legal .preview-title { color: var(--secondary); letter-spacing: 3px; text-decoration: underline; text-underline-offset: 6px; }
.preview-container.style-legal .preview-header { border-bottom: 3px double var(--secondary); }
.preview-container.style-legal .preview-section-title { color: var(--secondary); border-bottom-color: var(--secondary); }
.preview-container.style-creative { font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif; }
.preview-container.style-creative .preview-title { font-size: 1.75rem; background: linear-gradient(90deg, var(--primary), #ec4899); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.preview-container.style-creative .preview-header { border-bottom: 0; background: linear-gradient(90deg, var(--primary), #ec4899) bottom / 100% 4px no-repeat; }
.preview-container.style-creative .preview-section-title { border-bottom: 0; border-left: 4px solid var(--primary); padding-left: 10px; }
.preview-container.style-government { font-family: Georgia, 'Times New Roman', serif; }
.preview-container.style-government .preview-title { color: var(--secondary); letter-spacing: 3px; }
.preview-container.style-government .preview-header { border-top: 3px double var(--secondary); border-bottom: 3px double var(--secondary); padding-top: 1rem; }
.preview-container.style-government .preview-section-title { color: var(--secondary); background: #f1f5f9; padding: 4px 8px; border-bottom: 0; }

/* ----- Windows ----- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(12px);
    transition: transform 0.25s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal--wide { max-width: 800px; }
.modal--wider { max-width: 900px; }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--surface-border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-title { margin: 0; font-size: 1.15rem; }
.modal-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--chip-border);
    background: var(--chip);
    color: var(--text-strong);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.modal-close:hover { border-color: var(--brand); color: var(--link); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--surface-border); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* Export window */
.export-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.export-option {
    padding: 18px 12px;
    background: var(--surface);
    border: 2px solid var(--surface-border);
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.export-option:hover { border-color: var(--brand); background: var(--tint-brand); transform: translateY(-2px); }
.export-icon { font-size: 2rem; margin-bottom: 8px; line-height: 1; }
.export-name { font-weight: 700; color: var(--text-strong); margin-bottom: 2px; }
.export-desc { font-size: 0.8rem; color: var(--text-3); }
.email-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--surface-border); }
.email-block h4 { margin: 0 0 12px; }
.email-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; min-height: 8px; }
.email-chips span { background: var(--chip) !important; border: 1px solid var(--chip-border); color: var(--text-2); }

/* Archive window */
.search-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.search-bar .search-input { flex: 1; min-width: 0; }
.search-bar .btn { padding-left: 14px; padding-right: 14px; }
.meeting-list { max-height: 420px; overflow-y: auto; }
.meeting-list-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--surface-border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s ease; }
.meeting-list-item:hover { border-color: var(--brand); }
.meeting-list-item > div:last-child { display: flex; gap: 6px; flex-shrink: 0; }
.meeting-list-title { font-weight: 600; color: var(--text-strong); }
.meeting-list-date { font-size: 0.8rem; color: var(--text-3); }

/* Dashboard window: five tiles that fill their row */
.dashboard-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { background: var(--surface-2); border: 1px solid var(--surface-border); padding: 12px 8px; border-radius: 12px; text-align: center; }
.stat-number { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--link); line-height: 1.1; }
.stat-label { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }
.dashboard-filters { margin-bottom: 14px; align-items: center; }

/* Settings window */
.logo-upload { border: 2px dashed rgba(139, 92, 246, 0.45); border-radius: 14px; padding: 20px 16px; text-align: center; cursor: pointer; color: var(--text-2); transition: border-color 0.2s ease, background 0.2s ease; }
.logo-upload:hover { border-color: var(--brand); background: var(--tint-brand); }
.logo-upload p { margin: 0; color: var(--text-2); font-size: 0.9rem; }
.color-picker-wrapper { display: flex; align-items: center; gap: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; color: var(--text-2); }
.color-picker { width: 48px; height: 40px; border: 1px solid var(--surface-border); border-radius: 10px; cursor: pointer; padding: 2px; background: var(--surface); }
.color-picker-wrapper .color-picker { width: 48px; } /* the site base's .form-group input { width: 100% } stretched it (8 Oct 2026) */
.style-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--surface-border); border-radius: 12px; cursor: pointer; margin-bottom: 8px; transition: border-color 0.2s ease, background 0.2s ease; }
.style-option:hover { border-color: var(--brand); }
.style-option.selected { border-color: var(--brand); background: var(--tint-brand); }
.style-option strong { color: var(--text-strong); }
.style-option .form-hint { margin: 0; }
.style-preview { width: 60px; height: 40px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
/* The swatches carry the same style-* names as the preview container, so they are scoped to .style-preview */
.style-preview.style-corporate { background: linear-gradient(135deg, #1e3a5f, #2d5a87); color: #fff; }
.style-preview.style-minimal { background: #f8f8f8; color: #333; border: 1px solid #ddd; }
.style-preview.style-legal { background: #f5f0e8; color: #3d3d3d; }
.style-preview.style-creative { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.style-preview.style-government { background: #f0f4f8; color: #1a365d; border: 1px solid #2c5282; }

/* ----- Toasts ----- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: #0a0a14; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12); border-left: 4px solid #38bdf8; border-radius: 14px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); max-width: 360px; font-size: 0.9rem; font-weight: 500; animation: slideIn 0.3s ease; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast-success { border-left-color: #4ade80; }
.toast-error { border-left-color: #f87171; }
.toast-warning { border-left-color: #fbbf24; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ----- Information sections below the tool ----- */
.info-section { margin: 0 0 2.5rem; }
.info-section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.info-section > p { max-width: 70ch; }
.info-section .info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1rem 0 1.5rem; }
.info-stack { display: grid; gap: 12px; }
.info-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 16px; box-shadow: var(--surface-shadow); padding: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--surface-hover-shadow); }
.info-card--small { padding: 16px; box-shadow: none; }
.info-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.info-card p { color: var(--text-2); margin-bottom: 0.75rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-section article:not(.info-card) p { color: var(--text-2); max-width: 70ch; }
.step-card { position: relative; padding-top: 24px; }
.step-num { position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; }
.step-head h3 { margin: 0; }
.step-emoji { font-size: 1.6rem; line-height: 1; }
.info-section details.info-card { padding: 0; }
.info-section details.info-card summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.info-section details.info-card summary::-webkit-details-marker { display: none; }
.info-section details.info-card summary::after { content: '+'; color: var(--link); font-weight: 700; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.info-section details.info-card[open] summary::after { content: '\2212'; }
.info-section details.info-card p { padding: 0 20px 16px; margin: 0; color: var(--text-2); }

/* ----- Tablets ----- */
@media (max-width: 1023px) {
    .main-container { grid-template-columns: 1fr; }
    .panel--preview { position: static; max-height: none; order: -1; }
    .panel-body--preview { max-height: 520px; }
    .dashboard-stats { grid-template-columns: repeat(6, 1fr); }
    .dashboard-stats > .stat-card { grid-column: span 2; }
    .dashboard-stats > .stat-card:nth-child(4), .dashboard-stats > .stat-card:nth-child(5) { grid-column: span 3; }
    .info-section .info-grid, .info-three { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Phones ----- */
@media (max-width: 639px) {
    .app-hero { margin-bottom: 1.5rem; }
    .app-tagline { font-size: 1rem; }
    .app-toolbar { gap: 10px; }
    .page-title { font-size: 1.25rem; }
    .app-actions { width: 100%; }
    .app-actions .btn { flex: 1 1 auto; padding-left: 12px; padding-right: 12px; }
    .panel-header, .panel-body { padding-left: 16px; padding-right: 16px; }
    .panel-body--preview { padding: 12px; }
    .preview-container { padding: 1.25rem; }
    .preview-meta { grid-template-columns: 1fr; }
    .template-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .form-row--followup { grid-template-columns: 1fr; }
    .attendee-item { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .dashboard-stats > .stat-card, .dashboard-stats > .stat-card:nth-child(4) { grid-column: auto; }
    .dashboard-stats > .stat-card:nth-child(5) { grid-column: span 2; }
    .export-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .search-bar { flex-wrap: wrap; }
    .search-bar .search-input { flex: 1 1 100%; }
    .modal-overlay { padding: 8px; }
    .modal-body, .modal-header, .modal-footer { padding-left: 16px; padding-right: 16px; }
    .toast-container { bottom: 16px; right: 16px; left: 16px; align-items: flex-end; }
    .info-section h2 { font-size: 1.4rem; }
    .info-section .info-grid, .info-three { grid-template-columns: 1fr; }
    .info-card { padding: 16px; }
    .step-num { left: 16px; }
}

/* ----- Print: only the minutes ----- */
@media print {
    .back-bar, body > header, body > footer, .theme-toggle, .app-hero, .app-toolbar, .info-section, .panel:not(.panel--preview), .panel--preview .panel-header, .toast-container, .modal-overlay, #zdu-cookie-banner, noscript { display: none !important; }
    body { padding: 0; background: #fff; }
    body::before { display: none; }
    .container.app-container { max-width: none; margin: 0; padding: 0; }
    .main-container { display: block; }
    .panel--preview { position: static; max-height: none; border: 0; box-shadow: none; }
    .panel-body--preview { padding: 0; background: #fff; max-height: none; overflow: visible; }
    .preview-container { box-shadow: none; border: 0; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .template-card, .export-option, .info-card, .modal, .toast { transition: none; animation: none; }
}

/* Phones: 16 px text, 44 px tap targets (AdSense audit H-04, 8 Oct 2026) */
@media (max-width: 639.98px) {
    main button, main select, main summary, main [role="button"],
    main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]) { min-height: 44px; }
    div.form-group > p.form-hint { font-size: 1rem; }
}
