*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #f9f8f5; --surface: #fff; --surface2: #f1efe8;
    --border: rgba(0,0,0,0.1); --border-md: rgba(0,0,0,0.18);
    --text: #1a1a18; --text-muted: #6b6a64; --text-hint: #9c9a92;
    --accent: #185fa5; --green: #0f6e56; --red: #a32d2d;
    --radius: 8px; --font: system-ui, -apple-system, sans-serif;
    --max-w: 860px;
    --nav-bg: #ffffff; --nav-text: #6b6a64; --nav-accent: #1a1a18;
}
body { font-family: var(--font); font-size: 16px; color: var(--text); background: var(--bg); line-height: 1.6; }
/* ── Header base ─────────────────────────────────────────────────────────── */
.site-header { background: var(--nav-bg); border-bottom: 0.5px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; height: 56px; gap: 24px;
}
.site-brand {
    font-weight: 600; font-size: 17px; text-decoration: none;
    color: var(--nav-accent); white-space: nowrap; flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
}
.site-logo-img { height: 32px; width: auto; display: block; }
/* ── Nav links ───────────────────────────────────────────────────────────── */
.site-nav {
    display: flex; align-items: center; gap: 4px;
    margin-left: auto;
}
.site-nav a {
    font-size: 14px; color: var(--nav-text); text-decoration: none;
    padding: 6px 10px; border-radius: 6px; transition: color .15s, background .15s;
    white-space: nowrap;
}
.site-nav a:hover  { color: var(--nav-accent); background: rgba(0,0,0,.04); }
.site-nav a.active { color: var(--nav-accent); font-weight: 500; }
/* ── Centred layout ──────────────────────────────────────────────────────── */
.site-header--centered .site-header-inner {
    flex-direction: column; height: auto; padding: 14px 24px 0; gap: 0;
}
.site-header--centered .site-brand { margin-bottom: 10px; }
.site-header--centered .site-nav   { margin-left: 0; border-top: 0.5px solid var(--border); width: 100%; justify-content: center; padding: 6px 0; }
/* ── Minimal left layout ─────────────────────────────────────────────────── */
.site-header--minimal { border-bottom-color: transparent; }
.site-header--minimal .site-header-inner { max-width: 100%; padding: 0 32px; }
.site-header--minimal .site-nav { margin-left: 12px; }
/* ── Hamburger button ────────────────────────────────────────────────────── */
.hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; background: none; border: none; cursor: pointer;
    padding: 6px; border-radius: 6px; margin-left: auto; flex-shrink: 0;
}
.hamburger:hover { background: rgba(0,0,0,.05); }
.hamburger span {
    display: block; height: 2px; width: 22px;
    background: var(--nav-text); border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
/* ── Responsive — hamburger below 640px ──────────────────────────────────── */
@media (max-width: 640px) {
    .hamburger { display: flex; }
    .site-nav {
        display: none; flex-direction: column; align-items: flex-start;
        gap: 2px; margin-left: 0;
        position: absolute; top: 56px; left: 0; right: 0;
        background: var(--nav-bg); border-bottom: 0.5px solid var(--border);
        padding: 8px 16px 12px; z-index: 200;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }
    .site-nav.open { display: flex; }
    .site-nav a { width: 100%; padding: 10px 12px; font-size: 15px; }
    .site-header--centered .site-nav {
        position: absolute; top: 80px;
    }
}
/* ── Main ────────────────────────────────────────────────────────────────── */
.site-main { min-height: calc(100vh - 56px - 48px); }
.site-body { max-width: var(--max-w); margin: 0 auto; padding: 40px 24px; }
/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 0.5px solid var(--border); background: var(--surface); }
.site-footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px 24px; font-size: 13px; color: var(--text-muted); }
/* ── Page plugin ──────────────────────────────────────────────────────────── */
.page-plugin h1 { font-size: 28px; font-weight: 600; margin-bottom: 20px; }
.page-content { font-size: 16px; line-height: 1.7; }
.page-content h2 { font-size: 22px; font-weight: 600; margin: 24px 0 12px; }
.page-content p { margin-bottom: 14px; }
.page-content a { color: var(--accent); }
.embed-slot { margin-top: 32px; }
/* ── List plugin ──────────────────────────────────────────────────────────── */
.list-plugin h1, .list-plugin-detail h1 { font-size: 28px; font-weight: 600; margin-bottom: 20px; }
.list-items { display: flex; flex-direction: column; gap: 16px; }
.list-item-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; gap: 16px; align-items: flex-start; }
.list-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.list-item-title { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.list-item-title a { color: var(--text); text-decoration: none; }
.list-item-title a:hover { color: var(--accent); }
.list-item-desc { font-size: 14px; color: var(--text-muted); }
/* ── List embed ───────────────────────────────────────────────────────────── */
.list-embed { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.list-embed h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.list-embed-items { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.list-embed-item { font-size: 15px; padding: 4px 0; border-bottom: 0.5px solid var(--border); }
.list-embed-item:last-child { border-bottom: none; }
.list-embed-item a { color: var(--text); text-decoration: none; }
.list-embed-item a:hover { color: var(--accent); }
.list-embed a.link-btn { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent); text-decoration: none; }
/* ── Slug detail ──────────────────────────────────────────────────────────── */
.list-plugin-detail .breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.list-plugin-detail .breadcrumb a { color: var(--text-muted); }
.detail-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.detail-desc { font-size: 16px; line-height: 1.7; margin: 16px 0 24px; color: var(--text-muted); }
/* ── Shared ───────────────────────────────────────────────────────────────── */
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.empty-state { padding: 60px 0; text-align: center; color: var(--text-hint); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: var(--radius); border: 0.5px solid var(--border-md); background: var(--surface); color: var(--text); font-size: 14px; font-family: var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface2); }
.btn-primary { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn-primary:hover { opacity: .85; }
/* ── List custom fields ──────────────────────────────────────────────────────── */
.list-item-field { display: flex; gap: 6px; align-items: baseline; font-size: 13px; margin-top: 4px; }
.list-item-field-name { font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.list-item-field-value { color: var(--text); }
/* ── Page hero image ─────────────────────────────────────────────────────────── */
.page-hero { margin: -28px -24px 28px; overflow: hidden; max-height: 360px; }
.page-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════════════════════════════════════════════════════════════════
   V1.2 Additions — Calendar, Gallery, Messaging, Auth, Checklist components
   ══════════════════════════════════════════════════════════════════════════════ */
/* ── Form components (shared by all submit pages) ───────────────────────────── */
.form-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > .form-field { flex: 1; min-width: 180px; }
.form-section-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 0.5px solid var(--border); }
.input { width: 100%; padding: 8px 12px; border: 0.5px solid var(--border-md); border-radius: var(--radius); font-size: 14px; font-family: var(--font); background: var(--surface); color: var(--text); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24,95,165,0.1); }
.input-select { appearance: auto; }
.input-textarea { resize: vertical; min-height: 80px; }
.field-hint { font-size: 11px; color: var(--text-hint); margin-top: 3px; display: block; }
.toggle-row { display: flex; align-items: center; gap: 8px; }
.toggle { width: 18px; height: 18px; accent-color: var(--accent); }
.link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-family: var(--font); font-size: 13px; padding: 0; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); }
.breadcrumb { font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
/* ── Alert banners ──────────────────────────────────────────────────────────── */
.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; }
.alert-success { background: rgba(15,110,86,0.08); color: var(--green); border: 0.5px solid rgba(15,110,86,0.2); }
.alert-error { background: rgba(163,45,45,0.08); color: var(--red); border: 0.5px solid rgba(163,45,45,0.2); }
/* ── Badge (status pill) ────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-active { background: rgba(15,110,86,0.1); color: var(--green); }
.badge-inactive { background: rgba(163,45,45,0.1); color: var(--red); }
/* ── Pill filter ────────────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 12px; border: 0.5px solid var(--border-md); text-decoration: none; color: var(--text-muted); background: var(--surface); transition: all .15s; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill-active { background: var(--text); color: var(--surface); border-color: var(--text); }
/* ── Notification card ──────────────────────────────────────────────────────── */
.notif-card { display: flex; gap: 12px; padding: 14px 16px; border: 0.5px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--surface); transition: border-color .15s; }
.notif-card:hover { border-color: var(--border-md); }
.notif-card.notif-unread { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.notif-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.notif-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.notif-meta { font-size: 11px; color: var(--text-hint); }
/* ── Calendar month grid ────────────────────────────────────────────────────── */
.cal-month-grid { border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-month-header { padding: 12px 16px; background: var(--surface2); font-weight: 600; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); background: var(--surface2); border-bottom: 0.5px solid var(--border); }
.cal-weekday { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 6px; }
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-day { min-height: 80px; border-right: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); padding: 4px; background: var(--surface); }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day-other { opacity: .35; }
.cal-day-today { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.cal-day-num { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.cal-day-today .cal-day-num { color: var(--accent); }
.cal-day-event { display: block; font-size: 10px; padding: 1px 4px; margin-bottom: 1px; border-radius: 3px; background: var(--surface2); color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-day-event:hover { background: var(--accent); color: #fff; }
/* ── Calendar week grid ─────────────────────────────────────────────────────── */
.cal-week-grid { display: grid; grid-template-columns: repeat(7,1fr); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-week-day { border-right: 0.5px solid var(--border); min-height: 120px; background: var(--surface); }
.cal-week-day:last-child { border-right: none; }
.cal-week-today { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.cal-week-day-header { padding: 8px; text-align: center; border-bottom: 0.5px solid var(--border); background: var(--surface2); }
.cal-week-day-name { font-size: 11px; font-weight: 600; color: var(--text-muted); display: block; }
.cal-week-day-num { font-size: 16px; font-weight: 700; }
.cal-week-event { display: block; padding: 4px 6px; margin: 4px; border-radius: 4px; background: var(--surface2); text-decoration: none; font-size: 11px; }
.cal-week-event:hover { background: var(--accent); color: #fff; }
/* ── Event card (calendar list) ─────────────────────────────────────────────── */
.event-card { display: flex; gap: 16px; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.event-card-img { width: 120px; flex-shrink: 0; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { flex: 1; padding: 14px 16px 14px 0; }
.event-card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.event-card-title a { text-decoration: none; color: var(--text); }
.event-card-title a:hover { color: var(--accent); }
.event-card-when { font-size: 13px; color: var(--text-muted); display: flex; gap: 14px; flex-wrap: wrap; }
/* ── Checklist card ─────────────────────────────────────────────────────────── */
.checklist-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.checklist-card.checklist-complete { border-color: rgba(15,110,86,0.3); }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 0.5px solid var(--border); }
.checklist-item:last-child { border-bottom: none; }
.checklist-checkbox { width: 22px; height: 22px; flex-shrink: 0; border: 1.5px solid var(--border-md); border-radius: 5px; background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; }
/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .form-row { flex-direction: column; gap: 10px; }
    .form-row > .form-field { min-width: 100%; }
    .event-card-img { display: none; }
    .cal-month-grid .cal-day { min-height: 50px; }
    .cal-day-event, .cal-day-more { display: none; }
    .cal-week-grid { grid-template-columns: 1fr; }
}

/* ── Auto-appended embed slots ──────────────────────────────────────────────── */
.embed-slots-auto { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.embed-slots-auto .embed-slot { margin-top: 0; }


/* ══════════════════════════════════════════════════════════════════════════════
   Plugin component styles — consolidated from inline <style> blocks
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Plugin.Messaging ── */
.inbox-wrap { max-width: 720px; }
.inbox-wrap h1 { font-size: 24px; font-weight: 600; margin-bottom: 0; }
.inbox-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.inbox-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #185fa5); flex-shrink: 0; margin-top: 6px; }
.notif-card.notif-unread .notif-dot { display: block; }
.notif-card:not(.notif-unread) .notif-dot { display: none; }
.notif-body { flex: 1; min-width: 0; }
.notif-title a { text-decoration: none; color: var(--text); }
.notif-title a:hover { color: var(--accent); }
.notif-actions { display: flex; gap: 4px; align-items: flex-start; flex-shrink: 0; }
@media (max-width: 640px) {
}

/* ── Plugin.Messaging ── */
.prefs-wrap { max-width: 640px; }
.prefs-wrap h1 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.prefs-table { width: 100%; border-collapse: collapse; }
.prefs-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1.5px solid var(--border-md); }
.prefs-table td { padding: 12px; border-bottom: 0.5px solid var(--border); }
.prefs-table tr:last-child td { border-bottom: none; }
.prefs-cat-name { font-size: 14px; font-weight: 500; }
.prefs-cat-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Plugin.Messaging ── */
.unsub-wrap { max-width: 480px; margin: 60px auto; text-align: center; }
.unsub-wrap h1 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.unsub-wrap p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.unsub-icon { font-size: 48px; margin-bottom: 16px; }

/* ── Plugin.Gallery ── */
.gallery-embed { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.gallery-embed h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.gallery-embed-grid { display: grid; gap: 8px; }
.gallery-embed-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-embed-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-embed-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-embed-thumb { aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--surface2); }
.gallery-embed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.gallery-embed-thumb:hover img { transform: scale(1.05); }
.gallery-embed-caption { font-size: 11px; color: var(--text-muted); padding: 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Plugin.Gallery ── */
.gallery-plugin h1 { font-size: 28px; font-weight: 600; margin-bottom: 20px; }
.gallery-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.gallery-header h1 { margin-bottom: 0; }
.gallery-grid { display: grid; gap: 12px; }
.gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) {
    .gallery-cols-3, .gallery-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
.gallery-card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 0.5px solid var(--border); }
.gallery-card.gallery-pending { border-color: rgba(24,95,165,0.3); background: #f5f9ff; }
.gallery-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--surface2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.gallery-card:hover .gallery-thumb img { transform: scale(1.03); }
.gallery-caption { padding: 8px 10px; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 0.5px solid var(--border); }
.gallery-caption a { color: var(--text-muted); text-decoration: none; }
.gallery-caption a:hover { color: var(--accent); }
.gallery-pending-badge { position: absolute; top: 8px; left: 8px; background: var(--blue-bg); color: var(--blue); border: 0.5px solid rgba(24,95,165,0.3); border-radius: 20px; font-size: 10px; font-weight: 600; padding: 2px 8px; z-index: 1; }

/* ── Plugin.Gallery ── */
.gallery-detail { max-width: 800px; }
.gallery-detail-img-wrap { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--surface2); }
.gallery-detail-img { width: 100%; height: auto; display: block; max-height: 70vh; object-fit: contain; }
.gallery-detail-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.gallery-detail-meta { display: flex; gap: 16px; align-items: center; }

/* ── Plugin.Gallery ── */
.gallery-submit-wrap { max-width: 600px; }
.gallery-submit-wrap h1 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.gallery-submit-wrap .form-card { padding: 24px; }
.gallery-submit-wrap .form-field label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.gallery-submit-success { text-align: center; padding: 60px 24px; }
.gallery-submit-success .success-icon { font-size: 48px; color: var(--green); margin-bottom: 16px; }
.gallery-submit-success h2 { font-size: 22px; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.gallery-submit-success p { color: var(--text-muted); font-size: 15px; }
.approval-notice { display: flex; align-items: flex-start; gap: 10px; background: #f5f9ff; border: 0.5px solid rgba(24,95,165,0.25); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: #185fa5; }

/* ── Plugin.Calendar ── */
.calendar-embed { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.calendar-embed h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.calendar-embed-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.calendar-embed-item { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 0.5px solid var(--border); }
.calendar-embed-item:last-child { border-bottom: none; }
.calendar-embed-item.cancelled { opacity: 0.5; }
.calendar-embed-date { width: 48px; height: 48px; flex-shrink: 0; text-align: center; background: var(--surface2); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.calendar-embed-day { display: block; font-size: 20px; font-weight: 800; line-height: 1; color: var(--text); }
.calendar-embed-month { display: block; font-size: 9px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px; }
.calendar-embed-info { flex: 1; min-width: 0; }
.calendar-embed-title { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; display: block; }
.calendar-embed-title:hover { color: var(--accent); }
.calendar-embed-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Plugin.Calendar ── */
.calendar-full h1 { font-size: 28px; font-weight: 600; margin-bottom: 0; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-card:hover { border-color: var(--border-md); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.event-card.event-cancelled { opacity: 0.6; }
.event-card-date { width: 72px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px; background: var(--surface2); border-right: 0.5px solid var(--border); text-align: center; }
.event-card-day { font-size: 26px; font-weight: 800; line-height: 1; color: var(--text); }
.event-card-month { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.event-card-dow { font-size: 10px; color: var(--text-muted); text-transform: uppercase; margin-top: 1px; }
.event-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.event-category { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; border: 0.5px solid var(--border); background: var(--surface2); color: var(--text-muted); }
.event-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.event-rsvp-inline { display: flex; align-items: center; gap: 12px; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
@media (max-width:640px) {
}
/* ── Month grid ── */
.cal-day-more { font-size: 10px; color: var(--text-muted); }
/* ── Week view ── */
.cal-week-today .cal-week-day-num { color: var(--accent, #185fa5); }
.cal-week-events { padding: 4px; }
.cal-week-event-time { display: block; font-size: 10px; color: var(--text-muted); }
.cal-week-event-title { font-weight: 500; color: var(--text); }
.cal-week-event:hover .cal-week-event-time, .cal-week-event:hover .cal-week-event-title { color: #fff; }
@media (max-width:640px) {
}

/* ── Plugin.Calendar ── */
.event-detail-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── Plugin.Calendar ── */
.event-submit-wrap { max-width: 640px; }
.event-submit-wrap h1 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.event-submit-wrap .form-card { padding: 24px; }
.event-submit-wrap .form-section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 0.5px solid var(--border); }
.event-submit-wrap .form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.event-submit-wrap .form-section-label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.event-submit-wrap .form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.event-submit-wrap .form-row > .form-field { flex: 1; min-width: 180px; }
@media (max-width: 640px) {
}

/* ── Plugin.Checklist ── */
.checklist-card-header { display:flex;align-items:flex-start;justify-content:space-between;gap:12px; }
.checklist-card-title { font-size:17px;font-weight:600; }
.checklist-item.checklist-item-done .checklist-item-title { text-decoration:line-through;color:var(--text-muted); }
.checklist-item-body { flex:1;min-width:0; }
.checklist-item-title { font-size:14px;font-weight:500;line-height:1.4; }
.checklist-item-desc { font-size:13px;color:var(--text-muted);margin-top:4px;line-height:1.6; }
.checklist-checkbox:hover:not(.locked):not(.checked) { border-color:var(--accent);background:var(--surface2); }
.checklist-checkbox.checked { background:var(--green);border-color:var(--green);color:#fff; }
.checklist-checkbox.locked { background:var(--surface2);border-color:var(--border);cursor:not-allowed;opacity:0.5; }

/* ── Plugin.List ── */
.detail-fields { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.detail-field { display: flex; flex-direction: column; gap: 2px; }
.detail-field-name { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.detail-field-value { font-size: 15px; color: var(--text); }

/* ── Plugin.List ── */
.submit-wrap { max-width: 600px; }
.submit-wrap h1 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.submit-wrap .form-card { padding: 24px; }
.submit-wrap .form-field label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.submit-wrap .form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.submit-wrap .form-row > .form-field { flex: 1; min-width: 180px; }
.submit-success { max-width: 480px; text-align: center; padding: 60px 24px; }
.submit-success h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.submit-success p { color: var(--text-muted); font-size: 15px; }
.submit-notice { display: flex; align-items: flex-start; gap: 10px; background: #f5f9ff; border: 0.5px solid rgba(24,95,165,0.25); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: #185fa5; margin-bottom: 20px; }
@media (max-width: 640px) {
}

/* ── Plugin.Auth ── */
.auth-wrap { max-width: 480px; margin: 40px auto; }
.auth-wrap h1 { font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.auth-wrap .form-card { padding: 24px; }
.auth-wrap .form-field label { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.auth-success { max-width: 480px; margin: 40px auto; text-align: center; }
.auth-success h1 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.auth-success p { color: var(--text-muted); font-size: 15px; }
.auth-footer { text-align: center; margin-top: 16px; }
.auth-footer a { font-size: 13px; color: var(--text-muted); }

/* ── Plugin.Auth ── */

/* ── Plugin.Auth ── */
.profile-wrap { max-width: 640px; }
.profile-wrap h1 { font-size: 24px; font-weight: 600; margin-bottom: 24px; }
.profile-wrap .form-card { padding: 24px; margin-bottom: 16px; }
.profile-wrap .form-section-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 0.5px solid var(--border); }
.profile-wrap .form-field label { font-size: 12px; font-weight: 500; color: var(--text-muted); }

/* ── Plugin.Auth ── */

/* ── Plugin.Auth ── */

/* ── Plugin.Video ── */
.video-embed { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.video-embed-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.video-embed-player { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; background: #000; }
.video-embed-linkout { display: block; text-decoration: none; }
.video-embed-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; background: #000; }
.video-embed-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-play-btn { width: 52px; height: 52px; background: rgba(255,0,0,0.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; padding-left: 4px; transition: transform 0.15s; }
.video-embed-thumb:hover .video-play-btn { transform: scale(1.1); }
.video-embed-watch { font-size: 13px; color: var(--text-muted); margin-top: 8px; text-decoration: underline; text-underline-offset: 2px; }
.video-embed-desc { font-size: 14px; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }
