:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #18212f;
    --muted: #667085;
    --line: #e4e8ee;
    --primary: #155eef;
    --primary-dark: #004eeb;
    --navy: #132238;
    --success: #067647;
    --danger: #b42318;
    --shadow: 0 14px 40px rgba(21, 34, 50, 0.07);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(228, 232, 238, .9); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; background: linear-gradient(145deg, #155eef, #0040c1); box-shadow: 0 7px 18px rgba(21, 94, 239, .25); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 9px 14px; border-radius: 10px; color: #475467; font-size: 14px; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: #eff4ff; }
.page-shell { min-height: calc(100vh - 150px); padding: 42px 0 70px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; padding: 38px 40px; overflow: hidden; position: relative; border-radius: 24px; color: #fff; background: linear-gradient(125deg, #132238 0%, #1b3354 62%, #155eef 160%); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -125px; width: 330px; height: 330px; border: 55px solid rgba(255,255,255,.05); border-radius: 50%; }
.hero-admin { background: linear-gradient(125deg, #172033 0%, #283d5b 70%, #155eef 165%); }
.compact-hero { padding-top: 30px; padding-bottom: 30px; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { margin: 5px 0 8px; max-width: 760px; font-size: clamp(30px, 4.1vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
.hero p { margin: 0; max-width: 680px; color: #d0d8e5; font-size: 16px; }
.eyebrow { color: #84adff; font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; gap: 14px; margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 30px rgba(21, 34, 50, .04); }
.filter-bar label, .field-block { display: grid; gap: 7px; }
.filter-bar label > span, .field-block > span, fieldset legend { color: #344054; font-size: 12px; font-weight: 750; }
.filter-note { margin: -11px 0 22px; color: var(--muted); font-size: 12px; }
input[type="text"], input[type="search"], textarea, select { width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; outline: 0; color: var(--text); background-color: #fff; transition: border .16s, box-shadow .16s; }
input[type="text"], input[type="search"], select { min-height: 44px; padding: 9px 13px; }
textarea { padding: 11px 13px; resize: vertical; }
select { appearance: none; padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5.5 7.5 4.5 4.5 4.5-4.5' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: #84adff; box-shadow: 0 0 0 4px #eff4ff; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid var(--primary); border-radius: 10px; cursor: pointer; color: #fff; font-weight: 750; text-decoration: none; background: var(--primary); box-shadow: 0 2px 4px rgba(21, 94, 239, .2); }
.button:hover { background: var(--primary-dark); }
.button-secondary { border-color: #d0d5dd; color: #344054; background: #fff; box-shadow: none; }
.button-secondary:hover { color: var(--primary); background: #f8faff; }
.button-ghost { border-color: transparent; color: #475467; background: transparent; box-shadow: none; }
.button-small { min-height: 38px; padding: 7px 12px; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { display: flex; align-items: baseline; gap: 10px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stat-card strong { color: var(--navy); font-size: 27px; line-height: 1; }
.stat-card span { color: var(--muted); font-size: 13px; }
.timeline { display: grid; gap: 18px; }
.date-card { display: grid; grid-template-columns: 150px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 8px 26px rgba(21, 34, 50, .04); }
.date-column { padding: 24px; color: #fff; background: var(--navy); }
.date-column span { display: block; color: #aab8cc; font-size: 12px; text-transform: uppercase; }
.date-column .day-number { margin-bottom: 7px; color: #fff; font-size: 46px; font-weight: 780; line-height: 1; letter-spacing: -.04em; }
.date-content { padding: 24px 28px; }
.date-heading, .panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.date-heading h2, .panel-heading h2 { margin: 0 0 9px; font-size: 21px; letter-spacing: -.015em; }
.workday-label { display: block; margin: -5px 0 9px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.transfer-warning { display: inline-flex; margin: 0 0 10px; padding: 5px 8px; border-radius: 7px; color: #b54708; font-size: 11px; font-weight: 700; background: #fffaeb; }
.source-link { flex: 0 0 auto; color: var(--primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--tag-color) 30%, white); border-radius: 999px; color: var(--tag-color); font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--tag-color) 8%, white); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tag-color); }
.tag-neutral { --tag-color: #667085; }
.deadline-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.deadline-list li { display: grid; grid-template-columns: 7px 1fr; align-items: start; gap: 12px; color: #344054; font-size: 14px; }
.deadline-list a { text-decoration: none; }
.deadline-list a:hover { color: var(--primary); }
.event-topic { display: block; margin-bottom: 3px; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.topic-groups { display: grid; gap: 0; margin-top: 20px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.topic-group { display: grid; grid-template-columns: minmax(190px, 30%) 1fr; background: #fff; }
.topic-group + .topic-group { border-top: 1px solid var(--line); }
.topic-group h3 { margin: 0; padding: 16px; border-right: 1px solid var(--line); color: var(--navy); font-size: 13px; line-height: 1.4; background: #f8fafc; }
.topic-details { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.topic-details li { display: grid; grid-template-columns: 7px 1fr; align-items: start; gap: 11px; padding: 14px 16px; color: #344054; font-size: 13px; }
.topic-details li + li { border-top: 1px solid var(--line); }
.topic-details a { text-decoration: none; }
.topic-details a:hover { color: var(--primary); }
.topic-details .audience-source { display: inline-block; margin-top: 7px; color: var(--primary); font-size: 11px; font-weight: 700; }
.item-instruction { margin: 7px 0 0; padding: 8px 10px; border-radius: 8px; color: #475467; font-size: 12px; background: #f8fafc; }
.bullet { width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: #84adff; }
.note { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid #fdb022; color: #475467; font-size: 13px; background: #fffaeb; }
.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 18px; color: #667085; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; background: #f8fafc; }
td { padding: 17px 18px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); }
.count-badge { min-width: 30px; height: 30px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 9px; color: var(--primary); font-size: 12px; font-weight: 800; background: #eff4ff; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-live { color: var(--success); }
.status-live::before { background: #17b26a; }
.status-hidden { color: var(--muted); }
.status-hidden::before { background: #98a2b3; }
.row-link, .inline-link { color: var(--primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
.muted { color: #98a2b3; }
.alert { margin-bottom: 18px; padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 650; }
.alert-success { border: 1px solid #abefc6; color: #067647; background: #ecfdf3; }
.alert-error { border: 1px solid #fecdca; color: #b42318; background: #fef3f2; }
.empty-state { display: grid; place-items: center; gap: 7px; min-height: 230px; padding: 40px; border: 1px dashed #cfd6df; border-radius: var(--radius); color: var(--muted); text-align: center; background: rgba(255,255,255,.58); }
.empty-state strong { color: var(--text); font-size: 18px; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 22px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.editor-panel, .source-panel, .add-category { padding: 28px; }
.editor-panel h1 { margin: 5px 0 4px; font-size: 34px; line-height: 1.15; }
.lead { margin: 0 0 25px; color: var(--muted); }
fieldset { margin: 0 0 24px; padding: 0; border: 0; }
fieldset legend { margin-bottom: 10px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.check-card { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; color: #344054; font-size: 13px; }
.check-card:has(input:checked) { border-color: #84adff; background: #f5f8ff; }
.check-card input { width: 16px; height: 16px; accent-color: var(--primary); }
.check-card.disabled { opacity: .45; cursor: not-allowed; }
.color-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot-color); }
.field-block { margin-bottom: 22px; }
.toggle-row { display: flex; align-items: center; gap: 12px; margin: 5px 0 26px; cursor: pointer; }
.toggle-row > input { position: absolute; opacity: 0; pointer-events: none; }
.toggle { position: relative; width: 44px; height: 24px; flex: 0 0 auto; border-radius: 999px; background: #d0d5dd; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .2s; }
.toggle-row input:checked + .toggle { background: var(--primary); }
.toggle-row input:checked + .toggle::after { transform: translateX(20px); }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row small { color: var(--muted); font-size: 12px; }
.form-actions { display: flex; gap: 8px; }
.events-editor { display: grid; gap: 14px; }
.events-editor > .panel-heading { padding: 0 4px; }
.item-editor { padding: 22px; scroll-margin-top: 90px; }
.item-editor:target { border-color: #84adff; box-shadow: 0 0 0 4px #eff4ff; }
.item-editor h3 { margin: 0 0 18px; font-size: 15px; line-height: 1.4; }
.item-editor h3 a { text-decoration: none; }
.item-editor h3 a:hover { color: var(--primary); }
.compact-fieldset { margin-bottom: 15px; }
.compact-fieldset legend { margin-bottom: 7px; }
.check-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.check-pills label { cursor: pointer; }
.check-pills input { position: absolute; opacity: 0; }
.check-pills span { display: inline-flex; padding: 6px 9px; border: 1px solid #d0d5dd; border-radius: 999px; color: #475467; font-size: 11px; font-weight: 650; background: #fff; }
.check-pills input:checked + span { border-color: #84adff; color: var(--primary); background: #eff4ff; }
.item-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.item-settings label { display: grid; gap: 6px; }
.item-settings label > span { color: #344054; font-size: 11px; font-weight: 750; }
.item-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.deadline-list.compact li { font-size: 13px; }
.source-button { display: block; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--primary); font-size: 13px; font-weight: 750; text-decoration: none; }
.category-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .7fr); gap: 22px; align-items: start; }
.category-layout > .panel:first-child { padding: 26px; }
.category-list { display: grid; gap: 10px; margin-top: 20px; }
.category-row { display: grid; grid-template-columns: 38px minmax(180px, .85fr) 1fr auto auto; gap: 9px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 12px; }
.color-input { width: 38px; height: 38px; padding: 3px; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; }
.wide-color { width: 100%; height: 44px; padding: 4px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; }
.mini-check { display: flex; align-items: center; gap: 7px; color: #475467; font-size: 12px; white-space: nowrap; }
.mini-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.add-category { position: sticky; top: 94px; }
.add-category h2 { margin: 5px 0 22px; }
.add-category .button { width: 100%; margin-top: 22px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: #fff; }
.site-footer .container { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
.site-footer a { color: var(--primary); }

.page-shell:has(.client-hero) { padding-top: 20px; }
.client-hero { margin-bottom: 18px; padding-top: 26px; padding-bottom: 26px; }
.client-hero h1 { font-size: clamp(31px, 3.2vw, 43px); }
.personal-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.personal-panel { min-width: 0; min-height: 590px; padding: 22px 20px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(21, 34, 50, .035); }
.step-heading { display: flex; align-items: flex-start; gap: 17px; }
.step-heading h2 { margin: 0 0 1px; color: var(--navy); font-size: 17px; line-height: 1.35; letter-spacing: -.015em; }
.step-heading p { margin: 0; color: #667085; font-size: 13px; }
.step-number { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); font-size: 18px; font-weight: 800; background: #eaf1ff; }
.date-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 15px; padding: 4px; border: 1px solid #dce4f0; border-radius: 10px; background: #f8fafc; }
.date-mode-switch label { cursor: pointer; }
.date-mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.date-mode-switch span { display: grid; place-items: center; min-height: 40px; border-radius: 7px; color: #52617a; font-size: 14px; font-weight: 700; }
.date-mode-switch input:checked + span { color: var(--primary); background: #dbe8ff; }
.date-mode-switch input:focus-visible + span { outline: 3px solid #84adff; outline-offset: 1px; }
.date-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 17px; }
.date-inputs label { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 700; }
.date-inputs input { width: 100%; min-width: 0; min-height: 46px; padding: 8px 13px; border: 1px solid #cdd6e4; border-radius: 9px; color: var(--text); background: #fff; }
.date-inputs input:focus { outline: 0; border-color: #84adff; box-shadow: 0 0 0 4px #eff4ff; }
.date-inputs.single-mode { grid-template-columns: 1fr; }
.date-inputs.single-mode #date-to-field { display: none; }
.picker-calendar { margin-top: 18px; }
.picker-calendar-heading { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 15px; margin-bottom: 13px; }
.picker-calendar-heading strong { color: var(--navy); font-size: 17px; }
.month-nav { padding: 7px 10px; border: 1px solid #e5eaf2; border-radius: 8px; cursor: pointer; color: var(--primary); font-size: 12px; font-weight: 800; background: #fff; }
.month-nav:hover { background: #eff4ff; }
.month-nav:disabled { opacity: .35; cursor: default; }
.picker-timezone { justify-self: end; color: #71809a; font-size: 11px; white-space: nowrap; }
.picker-weekdays, .picker-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.picker-weekdays { margin-bottom: 7px; color: #71809a; font-size: 12px; }
.picker-days { gap: 2px 0; }
.picker-days button, .picker-days span { width: 100%; min-height: 39px; display: grid; place-items: center; border: 0; color: var(--navy); font-size: 14px; background: transparent; }
.picker-days button { cursor: pointer; border-radius: 8px; }
.picker-days button:hover { background: #eff4ff; }
.picker-days button.is-in-range { border-radius: 0; background: #dbe8ff; }
.picker-days button.is-endpoint { border-radius: 999px; color: #fff; font-weight: 800; background: var(--primary); }
.picker-days button.is-today:not(.is-endpoint) { color: var(--primary); font-weight: 800; }
.picker-days span { color: #b8c1d0; }
.profile-panel { display: flex; flex-direction: column; padding: 20px 22px 17px; }
.profile-step { margin-bottom: 15px; }
.profile-step .step-heading { margin-bottom: 8px; }
.profile-step select { width: calc(100% - 61px); margin-left: 61px; min-height: 45px; border-color: #cdd6e4; }
.profile-step .field-help { margin: 5px 0 0 61px; }
.field-help { color: #71809a; font-size: 11px; }
.feature-step { margin-bottom: 12px; }
.feature-choices { display: flex; flex-wrap: wrap; gap: 9px 19px; margin-left: 61px; }
.feature-choices label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #344054; font-size: 13px; }
.feature-choices input, .review-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--primary); }
.personal-submit { width: 100%; margin-top: auto; font-size: 15px; }
.personal-empty { min-height: 125px; margin-top: 16px; background: #fff; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 25px 0 14px; }
.result-heading h2 { margin: 0; font-size: 23px; }
.result-heading span { color: var(--muted); font-size: 13px; }
.review-check { display: flex; align-items: flex-start; gap: 10px; margin: 5px 0 19px; padding: 12px; border: 1px solid #c5d7ff; border-radius: 10px; background: #f6f9ff; cursor: pointer; }
.review-check strong, .review-check small { display: block; }
.review-check strong { color: var(--navy); font-size: 13px; }
.review-check small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.monthly-layout { grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); align-items: start; }
.calendar-panel { min-height: 590px; padding: 25px 26px 21px; }
.monthly-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.monthly-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: clamp(23px, 2.4vw, 31px); letter-spacing: -.025em; }
.monthly-navigation { display: flex; gap: 8px; }
.monthly-navigation a, .monthly-navigation span { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #dce4f0; border-radius: 10px; color: var(--primary); font-size: 21px; text-decoration: none; background: #fff; }
.monthly-navigation a:hover { border-color: #84adff; background: #eff4ff; }
.monthly-navigation span { color: #b8c1d0; background: #f8fafc; }
.calendar-summary { min-height: 43px; margin: 15px 0 20px; color: #52617a; font-size: 13px; }
.monthly-weekdays, .monthly-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.monthly-weekdays { margin-bottom: 8px; color: #71809a; font-size: 12px; font-weight: 750; text-align: center; }
.monthly-days { align-items: stretch; }
.monthly-day { min-width: 0; min-height: 75px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 5px; padding: 9px 8px; border: 1px solid #e6ebf2; border-radius: 10px; color: #475467; text-decoration: none; background: #fbfcfe; }
.monthly-day strong { font-size: 16px; line-height: 1; }
.monthly-day small { font-size: 10px; line-height: 1.15; font-weight: 700; }
.monthly-day-nonworking:not(.monthly-day-matched) { color: #98a2b3; background: #f7f9fc; }
.monthly-day-today { box-shadow: inset 0 0 0 2px #d8e6ff; }
.monthly-day-matched { border-color: #8eb4ff; color: #155eef; background: #eaf2ff; box-shadow: 0 3px 10px rgba(21, 94, 239, .08); }
.monthly-day-matched:hover { border-color: #155eef; background: #dbe9ff; }
.monthly-day-selected { border-color: #155eef; color: #fff; background: #155eef; }
.monthly-day-selected:hover { color: #fff; background: #004eeb; }
.calendar-legend { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #71809a; font-size: 11px; }
.calendar-legend span { width: 11px; height: 11px; border: 1px solid #8eb4ff; border-radius: 3px; background: #eaf2ff; }
.profile-heading { margin-bottom: 20px; }
.profile-heading h2 { margin: 5px 0 4px; color: var(--navy); font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.profile-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-state { margin-top: auto; padding: 12px; border-radius: 10px; color: #52617a; font-size: 12px; background: #f3f7ff; }
.selected-date-panel { margin-top: 20px; padding: 27px 30px 30px; scroll-margin-top: 92px; }
.selected-date-panel .date-heading h2 { margin: 3px 0 6px; }
.calendar-selection-tip { margin: 17px 3px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 1000px) {
    .personal-grid { grid-template-columns: 1fr; }
    .personal-panel { min-height: 0; }
    .monthly-layout .profile-panel { order: -1; }
}

@media (max-width: 900px) {
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-bar .button { align-self: stretch; }
    .stats-grid { grid-template-columns: 1fr; }
    .editor-grid, .category-layout { grid-template-columns: 1fr; }
    .add-category { position: static; }
    .table-card { overflow-x: auto; }
    table { min-width: 820px; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 24px, 1320px); }
    .header-inner { min-height: 64px; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
    .brand { width: 100%; }
    .brand strong { font-size: 13px; }
    .main-nav { width: 100%; justify-content: space-between; gap: 1px; }
    .main-nav a { padding: 8px 10px; font-size: 12px; }
    .page-shell { padding-top: 22px; }
    .hero { padding: 28px 23px; }
    .hero h1 { font-size: 32px; }
    .filter-bar { grid-template-columns: 1fr; }
    .date-card { grid-template-columns: 1fr; }
    .date-column { display: flex; align-items: baseline; gap: 12px; padding: 15px 20px; }
    .date-column .day-number { margin: 0; font-size: 32px; }
    .date-content { padding: 20px; }
    .topic-group { grid-template-columns: 1fr; }
    .topic-group h3 { border-right: 0; border-bottom: 1px solid var(--line); }
    .date-heading { display: block; }
    .source-link { display: inline-block; margin-top: 12px; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .category-row { grid-template-columns: 38px 1fr; }
    .category-row select { grid-column: span 1; }
    .category-row .mini-check, .category-row .button { grid-column: span 1; }
    .site-footer .container { padding: 16px 0; flex-direction: column; align-items: start; gap: 5px; }
    .client-hero { padding: 25px 22px; }
    .personal-panel { padding: 18px 15px; }
    .date-inputs { gap: 10px; }
    .picker-calendar-heading { grid-template-columns: auto 1fr auto; gap: 7px; }
    .picker-timezone { display: none; }
    .picker-days button, .picker-days span { min-height: 36px; }
    .profile-step select, .profile-step .field-help, .feature-choices { width: 100%; margin-left: 0; }
    .step-heading { gap: 11px; }
    .step-number { width: 38px; height: 38px; flex-basis: 38px; }
    .feature-choices { gap: 12px; }
    .calendar-panel { padding: 19px 14px; }
    .monthly-weekdays, .monthly-days { gap: 3px; }
    .monthly-day { min-height: 59px; padding: 7px 4px; border-radius: 7px; }
    .monthly-day strong { font-size: 13px; }
    .monthly-day small { font-size: 8px; }
    .selected-date-panel { padding: 20px 15px; }
}

