/* ==========================================================================
   Common Good CMS — shared application chrome
   Extracted from docs/mockups/*.html so the app matches the approved design.
   Screen-specific styles (page editor, asset manager, …) ship with their
   feature views; this file is the common look & feel only.
   ========================================================================== */

:root {
    --navy: #0b4466;
    --navy-deep: #082f47;
    --bright: #1584c6;
    --blue-text: #0e6da8;
    --gold: #f2b632;
    --bg: #eef1f5;
    --panel: #ffffff;
    --line: #d5dce3;
    --slate: #24313d;
    --slate-mid: #5a6a77;
    --selected: #e7f2fa;
    --green: #1d7a3d;
    --red: #b3261e;
    --focus: #b45309;
}

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

body {
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    background: var(--bg); color: var(--slate);
    font-size: 0.92rem; line-height: 1.45;
    min-height: 100vh; display: flex; flex-direction: column;
}
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* ---------- App bar ---------- */
.app-bar { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1.25rem; }
.app-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1rem; color: #fff; text-decoration: none; }
.app-brand .seal {
    width: 30px; height: 30px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--gold); flex: none;
    color: var(--navy); font-size: 0.68rem; font-weight: 800;
}
.app-brand small { display: block; font-weight: 400; font-size: 0.7rem; color: #a8c6dd; line-height: 1.1; }
.app-nav { display: flex; gap: 0.25rem; margin-left: 1.5rem; }
.app-nav a { color: #cfe0ee; text-decoration: none; font-size: 0.88rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 6px; }
.app-nav a:hover { background: var(--navy-deep); color: #fff; }
.app-nav a[aria-current="page"] { background: var(--navy-deep); color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.app-user { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: #cfe0ee; }
.app-user a { color: #cfe0ee; }
.app-user .avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--gold);
    color: var(--navy-deep); font-weight: 700; font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Toolbar ---------- */
.toolbar { background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.25rem; flex-wrap: wrap; }
.toolbar h1 { font-size: 1.05rem; color: var(--navy); font-weight: 700; margin-right: auto; }
.chip {
    display: inline-block; margin-left: 0.6rem; vertical-align: 1px;
    background: #e3eef7; color: var(--navy); border: 1px solid #b9d2e4;
    font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.6rem; border-radius: 999px;
}
.chip-green { background: #e6f3ea; color: var(--green); border-color: #bcdcc7; }
.chip-gray  { background: #f0f3f6; color: #8b98a3;      border-color: #dbe2e8; }
.chip-red   { background: #f9e9e8; color: var(--red);   border-color: #ebc4c1; }
.save-status { font-size: 0.8rem; color: var(--slate-mid); display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.4rem; }
.save-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    border-radius: 6px; padding: 0.45rem 0.9rem; font-size: 0.87rem; font-weight: 600;
    border: 1px solid #b7c5d1; background: #fff; color: var(--navy);
    text-decoration: none;
}
.btn:hover { border-color: var(--bright); color: var(--blue-text); }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-publish { background: var(--green); border-color: var(--green); color: #fff; }
.btn-publish:hover { background: #16612f; color: #fff; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--slate-mid); }
.btn-quiet:hover { color: var(--red); border-color: transparent; }
.btn-block { display: flex; width: 100%; }

/* ---------- Content area (default layout) ---------- */
.content {
    flex: 1; width: 100%; max-width: 1600px; margin: 0 auto;
    padding: 1.1rem 1.25rem 1.5rem;
}

/* ---------- Alerts / flash messages ---------- */
.alert { border: 1px solid; border-radius: 8px; padding: 0.7rem 1rem; margin-bottom: 1rem; font-size: 0.88rem; }
.alert-primary, .alert-info { background: #e7f2fa; border-color: #b9d2e4; color: var(--navy); }
.alert-success { background: #e6f3ea; border-color: #bcdcc7; color: var(--green); }
.alert-warning { background: #fdf3da; border-color: #d9b45e; color: #8a6414; }
.alert-danger  { background: #f9e9e8; border-color: #ebc4c1; color: var(--red); }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 0.95rem; color: var(--navy); }
.panel-head .hint { font-size: 0.76rem; color: var(--slate-mid); }
.panel-body { padding: 1rem 1.1rem; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--line); padding: 0.7rem 1.1rem; }
.hint { font-size: 0.76rem; color: var(--slate-mid); }

/* ---------- Dashboard stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; margin-bottom: 1.1rem; }
.stat { padding: 1rem 1.1rem; border-top: 4px solid var(--bright); }
.stat.gold  { border-top-color: var(--gold); }
.stat.green { border-top-color: var(--green); }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: 0.82rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.15rem; }
.stat-note { font-size: 0.78rem; color: var(--slate-mid); margin-top: 0.3rem; }

/* ---------- Data tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.data-table th {
    text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--slate-mid); font-weight: 700;
    padding: 0.6rem 1.1rem; border-bottom: 2px solid var(--line); background: #f8fafc;
}
.data-table td { padding: 0.6rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfcfe; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table a { color: var(--blue-text); font-weight: 600; text-decoration: none; }
.data-table a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-size: 0.78rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="date"], .field input[type="time"], .field input[type="number"],
.field select, .field textarea {
    font-family: inherit; font-size: 0.92rem; color: var(--slate);
    border: 1px solid #aebbc6; border-radius: 6px; background: #fff;
    padding: 0.5rem 0.65rem;
}
.field .subnote { font-size: 0.75rem; color: var(--slate-mid); }
.checks { display: flex; gap: 1.4rem; align-items: center; font-size: 0.87rem; flex-wrap: wrap; }
.checks label { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 600; color: var(--slate); }
.form-foot { display: flex; justify-content: flex-end; gap: 0.6rem; border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1rem; }
.form-foot .btn-quiet { margin-right: auto; }

/* ---------- Two-panel workspace (pages, later: assets, meetings) ---------- */
.workspace {
    display: grid; grid-template-columns: 340px 1fr;
    gap: 1.1rem; align-items: start;
}
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } }

/* ---------- Page tree ---------- */
.tree { list-style: none; padding: 0.6rem 0.75rem 0.4rem; }
.tree li { margin-bottom: 0.35rem; }
.tree-row {
    display: flex; align-items: center; gap: 0.5rem;
    background: #fbfcfe; border: 1px solid var(--line); border-radius: 8px;
    padding: 0.45rem 0.6rem;
}
.tree-row:hover { border-color: var(--bright); }
.tree-row.selected { background: var(--selected); border-color: var(--bright); box-shadow: inset 3px 0 0 var(--bright); }
.tree-title { flex: 1; min-width: 0; font-weight: 600; font-size: 0.87rem; color: var(--slate); text-decoration: none; }
.tree-title:hover { color: var(--blue-text); }
.tree-title small { display: block; font-weight: 400; font-size: 0.73rem; color: var(--slate-mid); overflow-wrap: anywhere; }
.rank-btns { display: flex; flex-direction: column; gap: 1px; flex: none; }
.rank-btn {
    border: 0; background: transparent; color: #93a4b2;
    font-size: 0.55rem; line-height: 1; padding: 2px 4px; border-radius: 3px;
}
.rank-btn:hover { background: #e4ebf1; color: var(--navy); }
.tree-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--line); padding: 0.7rem 1.1rem; }
.tree-foot .total { font-size: 0.8rem; color: var(--slate-mid); }
.add-btn {
    display: inline-block; text-decoration: none;
    border: 1px dashed #9fb2c1; background: #f6f9fb; color: var(--blue-text);
    border-radius: 6px; padding: 0.35rem 0.8rem; font-size: 0.84rem; font-weight: 600;
}
.add-btn:hover { border-color: var(--bright); background: #edf5fb; }

/* ---------- Page editor ---------- */
.editor-body { padding: 1.1rem 1.3rem 1.4rem; }
.crumb { font-size: 0.78rem; color: var(--slate-mid); margin-bottom: 0.9rem; }
.crumb strong { color: var(--navy); }
.slug-wrap { display: flex; align-items: stretch; }
.slug-wrap .prefix {
    display: flex; align-items: center; padding: 0 0.6rem;
    background: #f0f4f7; border: 1px solid #aebbc6; border-right: 0;
    border-radius: 6px 0 0 6px; color: var(--slate-mid); font-size: 0.85rem; white-space: nowrap;
}
.slug-wrap input { flex: 1; min-width: 0; border-radius: 0 6px 6px 0 !important; }
.content-label { font-size: 0.78rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; margin: 1.2rem 0 0.4rem; }
.token-bar {
    display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.token-btn {
    background: #fdf3da; border: 1px dashed #d9b45e; color: #8a6414;
    font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 6px;
}
.token-btn:hover { background: #fbe9bd; border-style: solid; }
.ck-editor__editable { min-height: 320px; }
.ck-content h2, .ck-content h3 { color: var(--navy); }
.content-textarea {
    width: 100%; font-family: Consolas, monospace; font-size: 0.86rem; line-height: 1.5;
    color: var(--slate); border: 1px solid #aebbc6; border-radius: 6px; background: #fff;
    padding: 0.8rem 0.9rem; resize: vertical;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.subpanel { border: 1px solid var(--line); border-radius: 8px; }
.subpanel h3 { font-size: 0.8rem; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); background: #f8fafc; border-radius: 8px 8px 0 0; }
.subpanel .inner { padding: 0.8rem 0.9rem; }
.charcount { font-size: 0.73rem; color: var(--slate-mid); text-align: right; margin-top: 0.25rem; }
.rev-list { list-style: none; font-size: 0.82rem; }
.rev-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.rev-list li:last-child { border-bottom: 0; }
.rev-list .who { color: var(--slate-mid); margin-left: auto; }
.rev-restore {
    border: 0; background: transparent; color: var(--blue-text);
    font-weight: 600; font-size: 0.82rem; padding: 0; text-decoration: none;
}
.rev-restore:hover { text-decoration: underline; }

/* ---------- Design & Layout ---------- */
.design-toolbar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.design-toolbar .spacer { flex: 1; }
.design-toolbar .chip { margin-left: 0; }
.site-switch { display: inline-flex; align-items: center; gap: 0.4rem; }
.site-switch select { font-family: inherit; font-size: 0.88rem; border: 1px solid #aebbc6; border-radius: 6px; background: #fff; padding: 0.35rem 0.5rem; }
.design-workspace { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.controls-col { display: flex; flex-direction: column; gap: 1.1rem; }
.controls-col .form-foot { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1.1rem; position: sticky; bottom: 0.5rem; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.7rem; }
.theme-card { border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; display: block; }
.theme-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.theme-card:hover { border-color: var(--bright); }
.theme-card.selected { border-color: var(--bright); box-shadow: 0 0 0 3px var(--selected); }
.theme-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-thumb { height: 64px; display: flex; flex-direction: column; }
.theme-thumb .t-head { height: 16px; }
.theme-thumb .t-hero { flex: 1; }
.theme-thumb .t-row { height: 10px; display: flex; gap: 3px; padding: 0 4px; align-items: center; }
.theme-thumb .t-row i { flex: 1; height: 5px; border-radius: 2px; background: #d7dee5; }
.theme-name { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; font-weight: 700; color: var(--slate); padding: 0.35rem 0.5rem; }
.theme-name .check { color: var(--green); font-size: 0.85rem; visibility: hidden; }
.theme-card.selected .theme-name .check { visibility: visible; }
.color-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.color-row:last-child { border-bottom: 0; }
.color-row .swatch { width: 38px; height: 34px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.15); padding: 0; background: none; flex: none; cursor: pointer; }
.color-row .cname { flex: 1; font-weight: 600; font-size: 0.85rem; }
.color-row .cname small { display: block; font-weight: 400; font-size: 0.73rem; color: var(--slate-mid); }
.color-row input[type="text"] { width: 92px; font-family: Consolas, monospace; font-size: 0.83rem; border: 1px solid #aebbc6; border-radius: 6px; padding: 0.35rem 0.5rem; color: var(--slate); }
.reset-link { font-size: 0.78rem; color: var(--blue-text); font-weight: 600; background: none; border: 0; cursor: pointer; }
.field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.logo-row { display: flex; align-items: center; gap: 1rem; }
.logo-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.logo-preview.seal-fallback { background: var(--navy); border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.4rem; }
.logo-meta { flex: 1; font-size: 0.8rem; color: var(--slate-mid); }
.logo-meta strong { display: block; color: var(--slate); font-size: 0.86rem; }
.preview-panel { position: sticky; top: 1.1rem; }
.device-toggle { display: flex; gap: 0.25rem; }
.device-toggle button { border: 1px solid #b7c5d1; background: #fff; color: var(--slate-mid); font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 6px; }
.device-toggle button.active { background: var(--selected); border-color: var(--bright); color: var(--blue-text); }
.preview-stage { padding: 1.1rem; background: #dfe5eb; border-radius: 0 0 10px 10px; text-align: center; }
.site-frame { width: 100%; height: calc(100vh - 14rem); min-height: 480px; border: 0; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(8, 47, 71, 0.25); transition: width 0.2s; }
@media (max-width: 1100px) { .design-workspace { grid-template-columns: 1fr; } .preview-panel { position: static; } }

/* ---------- Theme code editor ---------- */
.code-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.file-list { list-style: none; padding: 0.4rem 0; max-height: 40vh; overflow: auto; }
.file-list a { display: block; padding: 0.35rem 1.1rem; font-family: Consolas, monospace; font-size: 0.82rem; color: var(--slate); text-decoration: none; }
.file-list a:hover { background: #f2f5f8; }
.file-list a.selected { background: var(--selected); color: var(--blue-text); font-weight: 700; }
.editor-panel .panel-head { gap: 1rem; }
.editor-panel .panel-head h2 { flex: 1; }
.editor-panel kbd { font-size: 0.7rem; opacity: 0.7; margin-left: 0.3rem; }
.monaco-host { height: calc(100vh - 17rem); min-height: 420px; }
.monaco-fallback { width: 100%; min-height: 420px; font-family: Consolas, monospace; font-size: 0.85rem; border: 0; padding: 1rem; }
.region-textarea { font-family: Consolas, monospace; font-size: 0.85rem; }
@media (max-width: 900px) { .code-layout { grid-template-columns: 1fr; } }

/* ---------- Block builder (page editor) ---------- */
/* Canvas look from docs/mockups/page-builder.html: gray stage, white block
   cards with a colored type tag and icon tools, and a palette-style add
   grid at the bottom of each region. */
.region-blocks { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1.1rem; background: #dfe5eb; }
.region-blocks-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--line); background: #f2f5f8; border-radius: 10px 10px 0 0; }
.region-blocks-head h4 { font-size: 0.82rem; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.region-blocks-head .hint { margin-left: auto; }
.block-item { position: relative; background: #fff; border: 1.5px solid transparent; border-radius: 8px; margin: 0.8rem 0.8rem 0; padding: 1rem 0.9rem 0.8rem; box-shadow: 0 2px 8px rgba(8, 47, 71, 0.08); }
.block-item:last-of-type { margin-bottom: 0.8rem; }
.block-item:hover { border-color: #b9d2e4; }
.block-item:focus-within { border-color: var(--bright); box-shadow: 0 0 0 3px var(--selected); }
.block-item.locked { background: #fdf8ec; }
.block-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.block-type-chip { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: var(--bright); border-radius: 4px; padding: 0.12rem 0.5rem; }
.block-item.locked .block-type-chip { background: #b48a12; }
.block-lock-chip { font-size: 0.72rem; font-weight: 700; color: #8a6d1a; }
.block-head .grow { flex: 1; }
.block-btn { border: 1px solid #b7c5d1; background: #fff; color: var(--slate-mid); font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 5px; cursor: pointer; }
.block-btn:hover { border-color: var(--bright); color: var(--blue-text); }
.block-btn.danger:hover { border-color: var(--red); color: var(--red); }
.block-tool { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.block-tool svg { width: 15px; height: 15px; }
.block-fields { display: flex; flex-direction: column; gap: 0.5rem; }
.block-fields .row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.block-fields label { font-size: 0.74rem; font-weight: 700; color: var(--slate-mid); }
.block-fields input[type="text"], .block-fields select { font-family: inherit; font-size: 0.88rem; border: 1px solid #aebbc6; border-radius: 6px; padding: 0.35rem 0.55rem; }
.block-fields input.wide { flex: 1; min-width: 12rem; }
.block-fields textarea { width: 100%; font-family: inherit; font-size: 0.92rem; border: 1px solid #aebbc6; border-radius: 6px; padding: 0.5rem 0.65rem; }
.block-fields textarea.html-block { font-family: Consolas, monospace; font-size: 0.84rem; }
.card-rows { display: flex; flex-direction: column; gap: 0.4rem; }
.card-row { display: grid; grid-template-columns: 1fr 2fr 1fr 1fr auto; gap: 0.4rem; }
.card-row input { font-size: 0.84rem; }
.card-row.pcard-row { grid-template-columns: 1.4fr 1.2fr 1fr 1.6fr 0.9fr 1fr auto; }
.add-block-bar { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.7rem 0.9rem 0.9rem; background: #f2f5f8; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.add-block-bar .lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate-mid); padding-top: 0.55rem; white-space: nowrap; }
.add-block-bar .pal-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 0.45rem; }
.pal-block { border: 1px solid var(--line); border-radius: 7px; background: #fbfcfe; padding: 0.45rem 0.3rem 0.35rem; text-align: center; cursor: pointer; }
.pal-block:hover { border-color: var(--bright); background: #f2f8fc; }
.pal-block .ico { display: block; font-size: 1rem; line-height: 1.2; margin-bottom: 0.15rem; color: var(--navy); }
.pal-block .plbl { font-size: 0.72rem; font-weight: 700; color: var(--slate); }
.pal-block.smart { background: #fdf8ec; border-color: #ecd28e; }
.pal-block.smart:hover { border-color: var(--gold); }
.convert-banner { border: 1px dashed #b9d2e4; background: #f3f9fd; border-radius: 8px; padding: 0.7rem 1rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.8rem; font-size: 0.88rem; }
.convert-banner .grow { flex: 1; }

/* ---------- Calendar management ---------- */
.cal-layout { display: grid; grid-template-columns: 22rem minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 1000px) { .cal-layout { grid-template-columns: 1fr; } }
.cal-list { list-style: none; padding: 0.4rem 0; }
.cal-list a { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.1rem; color: var(--slate); text-decoration: none; font-weight: 600; }
.cal-list a:hover { background: #f2f5f8; }
.cal-list a.selected { background: var(--selected); color: var(--blue-text); box-shadow: inset 3px 0 0 var(--bright); }
.cal-list .chip { margin: 0; }
.cal-past-divider { background: #f2f5f8; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-mid); }
tr.cal-past td { color: var(--slate-mid); }
.cal-inline-form { display: inline-flex; align-items: center; gap: 0.5rem; }
.cal-inline-form input[type="date"] { border: 1px solid #aebbc6; border-radius: 6px; padding: 0.35rem 0.5rem; font-family: inherit; }
