:root {
    --ink: #171a2b;
    --muted: #6e7385;
    --line: #e7e9f0;
    --surface: #ffffff;
    --canvas: #f6f7fa;
    --purple: #5b4cf0;
    --purple-dark: #4838dc;
    --purple-soft: #eeecff;
    --blue: #3478f6;
    --blue-soft: #e9f1ff;
    --green: #1da779;
    --green-soft: #e5f7f0;
    --coral: #ef6a65;
    --coral-soft: #fff0ee;
    --shadow: 0 8px 28px rgba(35, 39, 60, .06);
    --sidebar: 266px;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }

.v2-app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); padding: 24px 18px 18px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #7568ff, #4e3de6); font: 800 20px/1 Manrope, sans-serif; box-shadow: 0 8px 18px rgba(91, 76, 240, .25); }
.brand-mark.duo-mark { overflow: hidden; background: #fff; border: 1px solid #e4e6eb; box-shadow: 0 8px 18px rgba(36, 39, 57, .1); }
.brand-mark.duo-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-copy, .profile-row > span, .site-switcher > span { display: flex; min-width: 0; flex-direction: column; }
.brand-copy strong { font: 800 16px/1.2 Manrope, sans-serif; }
.brand-copy small, .profile-row small, .site-switcher small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.sidebar-close { display: none !important; }
.site-switcher { margin: 30px 0 20px; padding: 11px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; transition: .2s ease; }
.site-switcher:hover { border-color: #c8c3fb; box-shadow: 0 5px 18px rgba(38, 34, 78, .06); transform: translateY(-1px); }
.site-switcher strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.site-switcher > i { color: #9ca1af; font-size: 12px; }
.site-avatar, .profile-avatar { display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: #25283b; font-size: 11px; font-weight: 700; }
.site-switcher > .site-avatar, .profile-row > .profile-avatar { display: grid; place-items: center; line-height: 1; }
.site-avatar { width: 34px; height: 34px; overflow: hidden; background: #fff; border: 1px solid #e5e7ed; border-radius: 10px; }
.site-avatar img { width: 100%; height: 100%; display: block; object-fit: contain; }
.main-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-link { position: relative; height: 44px; padding: 0 13px; display: flex; align-items: center; gap: 13px; border-radius: 11px; color: #555b6d; font-size: 14px; font-weight: 600; transition: .18s ease; }
.nav-link i { width: 20px; color: #838898; font-size: 17px; text-align: center; }
.nav-link:hover { color: var(--ink); background: #f6f5ff; }
.nav-link.active { color: var(--purple); background: var(--purple-soft); }
.nav-link.active i { color: var(--purple); }
.nav-dot { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--coral); }
.sidebar-footer { margin-top: auto; }
.plan-card { padding: 15px; margin-bottom: 13px; display: flex; flex-direction: column; gap: 8px; background: #f7f7fb; border-radius: 13px; }
.plan-card strong { font-size: 12px; }
.plan-card a { color: var(--purple); font-size: 12px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; margin-right: 5px; display: inline-block; border-radius: 50%; background: #20b67d; box-shadow: 0 0 0 3px #dff6ed; }
.profile-row { padding: 10px 6px; display: flex; align-items: center; gap: 10px; }
.profile-row > span:nth-child(2) { flex: 1; }
.profile-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #f08c72, #dd625d); }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 20; height: 78px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; background: rgba(246, 247, 250, .91); border-bottom: 1px solid rgba(225, 227, 235, .8); backdrop-filter: blur(15px); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar h1 { margin: 0; font: 700 19px/1.2 Manrope, sans-serif; }
.mobile-brand { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-box { width: 270px; height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.search-box i { color: #8d92a1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
kbd { padding: 2px 6px; color: #8e93a2; background: #f5f6f8; border: 1px solid #e3e5eb; border-radius: 5px; box-shadow: none; font: 500 10px/1.4 "DM Sans", sans-serif; }
.icon-button { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; color: #697081; background: transparent; border: 0; border-radius: 10px; }
.icon-button:hover { color: var(--ink); background: #f0f1f5; }
.notification-button { position: relative; background: #fff; border: 1px solid var(--line); }
.notification-button span { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--coral); }
.menu-button { display: none; }
.button { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 700; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 6px 16px rgba(91, 76, 240, .2); }
.button-primary:hover { color: #fff; background: var(--purple-dark); }
.button-secondary { color: #3b4052; background: #fff; border-color: var(--line); }
.button-secondary:hover { color: var(--ink); border-color: #cfd2dc; }
.page-wrap { width: min(1440px, 100%); margin: 0 auto; padding: 36px 38px 55px; }

.welcome-row, .section-hero { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.date-label, .eyebrow { color: #8a8f9e; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.welcome-row h2, .section-hero h2, .help-hero h2 { margin: 7px 0 5px; font: 800 clamp(25px, 3vw, 34px)/1.2 Manrope, sans-serif; letter-spacing: -.035em; }
.welcome-row p, .section-hero p, .help-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.welcome-actions { display: flex; gap: 9px; }
.metrics-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card, .panel, .story-card, .toolbar-panel, .help-grid > a { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.metric-card { position: relative; min-height: 176px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.metric-icon, .quick-icon, .folder-icon { display: inline-grid; place-items: center; border-radius: 11px; }
.metric-icon { width: 38px; height: 38px; margin-bottom: 17px; font-size: 16px; }
.purple { color: var(--purple); background: var(--purple-soft); }
.blue { color: var(--blue); background: var(--blue-soft); }
.green { color: var(--green); background: var(--green-soft); }
.coral { color: var(--coral); background: var(--coral-soft); }
.metric-change { position: absolute; top: 19px; right: 18px; padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.metric-change.positive { color: #16875f; background: #e7f7f0; }
.metric-change.neutral { color: #5e6474; background: #f0f1f4; }
.metric-change.negative { color: #d65f5a; background: var(--coral-soft); }
.metric-card > strong { font: 800 27px/1 Manrope, sans-serif; letter-spacing: -.04em; }
.metric-card p { margin: 7px 0 3px; font-size: 13px; font-weight: 700; }
.metric-card small { color: var(--muted); font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .9fr); gap: 18px; }
.panel { min-width: 0; padding: 23px; }
.panel-heading { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading h3, .settings-card h3, .support-card h3 { margin: 5px 0 0; font: 750 17px/1.25 Manrope, sans-serif; letter-spacing: -.02em; }
.panel-heading select, .range-select { padding: 8px 30px 8px 10px; color: #626778; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; outline: 0; }
.performance-panel { min-height: 380px; }
.chart-summary { display: flex; align-items: baseline; gap: 10px; }
.chart-summary strong { font: 800 28px/1 Manrope, sans-serif; }
.chart-summary span { color: var(--muted); font-size: 11px; }
.chart-summary em { margin-left: auto; color: var(--green); font-size: 10px; font-style: normal; font-weight: 700; }
.chart { position: relative; height: 180px; margin-top: 18px; overflow: hidden; }
.chart-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid span { border-top: 1px dashed #e9eaf0; }
.chart-bars { position: absolute; inset: 7px 4px 0; display: flex; align-items: flex-end; gap: clamp(7px, 1.2vw, 15px); }
.chart-bars span { width: 100%; height: var(--bar-height); min-width: 8px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #7569f6, #5b4cf0); opacity: .86; transition: .2s; }
.chart-bars span:hover { opacity: 1; transform: scaleX(1.08); }
.chart-labels { margin-top: 8px; display: flex; justify-content: space-between; color: #9a9eac; font-size: 9px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid a { min-height: 123px; padding: 15px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 13px; transition: .18s; }
.quick-grid a:hover { border-color: #cbc7f5; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(35,39,60,.06); }
.quick-icon { width: 35px; height: 35px; margin-bottom: 12px; }
.quick-grid strong { font-size: 12px; }
.quick-grid small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.completion { padding: 5px 8px; color: var(--purple); background: var(--purple-soft); border-radius: 7px; font-size: 10px; font-weight: 800; }
.progress { height: 6px; margin: -5px 0 18px; overflow: hidden; background: #ececf2; border-radius: 99px; }
.progress span { display: block; height: 100%; background: var(--purple); border-radius: inherit; }
.checklist { display: flex; flex-direction: column; }
.checklist label { min-height: 62px; padding: 10px 0; display: flex; align-items: center; gap: 12px; border-top: 1px solid #eff0f4; }
.checklist label:first-child { border-top: 0; }
.checklist label > span { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; color: #7b8191; background: #f2f3f6; border-radius: 50%; font-size: 10px; font-weight: 800; }
.checklist label.complete > span { color: #fff; background: var(--green); }
.checklist label div { display: flex; flex: 1; flex-direction: column; }
.checklist strong { font-size: 11px; }
.checklist small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.checklist a { color: var(--purple); font-size: 10px; font-weight: 700; }
.activity-list { display: flex; flex-direction: column; }
.activity-list > div { min-height: 65px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #eff0f4; }
.activity-list > div:first-child { border-top: 0; }
.activity-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; font-size: 10px; font-weight: 800; }
.activity-list p { margin: 0; display: flex; flex-direction: column; }
.activity-list strong { font-size: 11px; }
.activity-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.text-button { padding: 0; color: var(--purple); background: none; border: 0; font-size: 11px; font-weight: 700; }

.section-hero { align-items: center; }
.section-hero h2 { margin-top: 5px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr); gap: 18px; }
.site-preview-card { padding: 14px; }
.browser-frame { overflow: hidden; border: 1px solid #dfe1e8; border-radius: 12px; }
.browser-bar { height: 37px; padding: 0 12px; display: flex; align-items: center; gap: 5px; background: #f1f2f5; border-bottom: 1px solid #e2e4e9; }
.browser-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #d5d7de; }
.browser-bar small { width: 55%; margin: 0 auto; padding: 5px; color: #9296a3; background: #fff; border-radius: 5px; font-size: 7px; text-align: center; }
.site-mock { min-height: 370px; background: #faf8f3; }
.mock-nav { height: 50px; padding: 0 25px; display: flex; align-items: center; gap: 18px; background: #fff; }
.mock-nav b { margin-right: auto; color: #183b36; font: 800 9px Manrope; }
.mock-nav i { width: 35px; height: 3px; background: #d7ddd9; border-radius: 2px; }
.mock-hero { min-height: 240px; padding: 50px 42px; display: flex; flex-direction: column; align-items: flex-start; background: linear-gradient(110deg, rgba(21,58,51,.93), rgba(36,91,79,.72)), radial-gradient(circle at 80% 20%, #9bb9a6, #305d53); color: #fff; }
.mock-hero span { font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.mock-hero strong { margin: 10px 0 6px; font: 800 26px Manrope; }
.mock-hero p { margin: 0; font-size: 9px; opacity: .8; }
.mock-hero button { margin-top: 18px; padding: 8px 12px; color: #183b36; background: #fff; border: 0; border-radius: 3px; font-size: 7px; }
.mock-cards { padding: 20px 30px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mock-cards i { height: 50px; background: #fff; border-radius: 4px; box-shadow: 0 4px 12px rgba(32,42,39,.08); }
.preview-actions { padding: 17px 4px 3px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.preview-actions > div { display: flex; flex-direction: column; }
.preview-actions strong { font-size: 13px; }
.preview-actions small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.page-list { display: flex; flex-direction: column; }
.page-list a { min-height: 68px; padding: 10px 2px; display: grid; grid-template-columns: 35px 1fr auto auto; align-items: center; gap: 9px; border-top: 1px solid #eef0f4; }
.page-list a:first-child { border-top: 0; }
.page-list > a > i:first-child { width: 32px; height: 32px; display: grid; place-items: center; color: #717788; background: #f2f3f6; border-radius: 9px; }
.page-list a > span { display: flex; flex-direction: column; }
.page-list strong { font-size: 11px; }
.page-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.page-list em { padding: 4px 7px; border-radius: 6px; font-size: 8px; font-style: normal; font-weight: 700; }
.page-list em.published { color: var(--green); background: var(--green-soft); }
.page-list em.draft { color: #826315; background: #fff6d7; }
.page-list > a > i:last-child { color: #a9adba; font-size: 10px; }

.analytics-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 18px; }
.analytics-main { min-height: 355px; }
.legend { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.legend span { width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--purple); }
.legend span:nth-child(2) { background: #c9cbd4; }
.line-chart { position: relative; height: 230px; margin-top: 25px; overflow: hidden; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 56px, #ebecf1 57px); }
.line-area { position: absolute; inset: 15% 0 0; background: linear-gradient(180deg, rgba(91,76,240,.16), rgba(91,76,240,0)); clip-path: polygon(0 72%, 9% 62%, 18% 67%, 27% 48%, 36% 52%, 45% 31%, 54% 40%, 63% 21%, 72% 26%, 81% 9%, 90% 16%, 100% 0, 100% 100%, 0 100%); }
.line-points { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; }
.line-points i { width: 7px; height: 7px; margin-bottom: calc(var(--point) - 4px); border: 2px solid #fff; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.donut-wrap { padding: 18px 5px; display: flex; align-items: center; justify-content: space-around; gap: 20px; }
.donut { width: 140px; height: 140px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--purple) 0 61%, var(--blue) 61% 93%, var(--green) 93%); position: relative; }
.donut::after { content:""; position:absolute; inset: 22px; background:#fff; border-radius:50%; }
.donut strong { z-index: 1; display: flex; flex-direction: column; align-items: center; font: 800 20px Manrope; }
.donut small { color: var(--muted); font: 500 9px "DM Sans"; }
.device-list { display: flex; flex: 1; flex-direction: column; gap: 13px; }
.device-list span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.device-list i { width: 8px; height: 8px; border-radius: 3px; }
.device-list b { color: var(--ink); }
.purple-bg { background: var(--purple); }.blue-bg { background: var(--blue); }.green-bg { background: var(--green); }
.full-width { grid-column: 1 / -1; }
.data-table { width: 100%; }
.data-table > div { min-height: 57px; display: grid; grid-template-columns: minmax(250px,2fr) repeat(3,1fr); align-items: center; gap: 15px; border-top: 1px solid #edf0f4; color: #5f6575; font-size: 11px; }
.data-table .table-head { min-height: 35px; color: #979ba8; border: 0; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.data-table > div > span:first-child { display: flex; flex-direction: column; }
.data-table b { color: var(--ink); }
.data-table small { margin-top: 3px; color: #9ba0ad; }
.trend-up { color: var(--green); font-weight: 700; }

.toolbar-panel { padding: 12px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.toolbar-panel > div { display: flex; gap: 6px; }
.filter-search { height: 39px; min-width: 270px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: #f7f8fa; border: 1px solid transparent; border-radius: 9px; }
.filter-search:focus-within { background: #fff; border-color: #bcb5fa; }
.filter-search i { color: #969ba8; }
.filter-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.filter-button, .view-toggle { height: 38px; padding: 0 11px; color: #696f7f; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; }
.view-toggle { width: 38px; padding: 0; }
.view-toggle.active { color: var(--purple); background: var(--purple-soft); border-color: #d8d3ff; }
.file-panel { padding-top: 18px; }
.file-folders { margin-bottom: 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.file-folders a { padding: 14px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; border: 1px solid var(--line); border-radius: 12px; transition: .18s; }
.file-folders a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.folder-icon { width: 35px; height: 35px; grid-row: span 2; }
.file-folders strong { font-size: 11px; }
.file-folders small { color: var(--muted); font-size: 9px; }
.file-table > div { grid-template-columns: minmax(240px,2fr) .5fr 1fr .6fr 35px; }
.file-table > div > span:first-child { flex-direction: row; align-items: center; gap: 9px; }
.file-type { width: 30px; height: 30px; display: grid; place-items: center; color: var(--coral); background: var(--coral-soft); border-radius: 8px; font-size: 14px; }

.content-tabs { margin-bottom: 18px; display: flex; align-items: center; gap: 4px; }
.content-tabs button { padding: 9px 12px; color: #747989; background: transparent; border: 0; border-radius: 8px; font-size: 11px; font-weight: 700; }
.content-tabs button.active { color: var(--purple); background: var(--purple-soft); }
.content-tabs button span { margin-left: 4px; opacity: .65; }
.content-tabs .filter-search { margin-left: auto; background: #fff; border-color: var(--line); }
.story-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.story-card { overflow: hidden; }
.story-image { position: relative; height: 190px; padding: 14px; display: flex; align-items: flex-start; justify-content: space-between; }
.gradient-one { background: linear-gradient(135deg,#244c43,#76ae91); }
.gradient-two { background: linear-gradient(135deg,#384e78,#a5b6d7); }
.gradient-three { background: linear-gradient(135deg,#724e66,#d39b9a); }
.story-image::after { content:""; position:absolute; inset:35% 12% 0; background:rgba(255,255,255,.12); border-radius:100px 100px 0 0; }
.story-image > span { z-index: 1; padding: 5px 8px; color: #fff; background: rgba(20,22,33,.48); border-radius: 7px; font-size: 9px; font-weight: 700; }
.story-image button { z-index: 1; color: #fff; background: rgba(20,22,33,.35); }
.story-card > div:last-child { padding: 19px; }
.story-card small { color: var(--muted); font-size: 9px; }
.story-card h3 { margin: 8px 0; font: 750 16px/1.3 Manrope; }
.story-card p { min-height: 38px; margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.story-card a { color: var(--purple); font-size: 10px; font-weight: 700; }

.events-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 18px; }
.calendar-card { padding: 26px; }
.calendar-header { margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.calendar-header h3 { margin: 0; min-width: 150px; font: 750 16px Manrope; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; }
.calendar-grid > * { aspect-ratio: 1.2; display: grid; place-items: center; border-radius: 9px; font-size: 11px; }
.calendar-grid b { aspect-ratio: auto; color: #9a9eaa; font-size: 9px; text-transform: uppercase; }
.calendar-grid span:hover { background: #f1f2f6; }
.calendar-grid .muted-day { color: #c2c5cd; }
.calendar-grid .today { color: #fff; background: var(--purple); font-weight: 800; }
.calendar-grid .has-event { position: relative; color: var(--purple); background: var(--purple-soft); font-weight: 800; }
.calendar-grid .has-event::after { content:""; position:absolute; bottom:6px; width:4px; height:4px; border-radius:50%; background:var(--purple); }
.event-list > div { min-height: 92px; display: flex; align-items: center; gap: 14px; border-top: 1px solid #edf0f4; }
.event-list > div:first-child { border-top: 0; }
.event-list time { width: 46px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--purple); background: var(--purple-soft); border-radius: 10px; }
.event-list time strong { font: 800 17px Manrope; }
.event-list time small { font-size: 8px; font-weight: 800; }
.event-list p { display: flex; flex-direction: column; }
.event-list p strong { font-size: 12px; }
.event-list p small { margin-top: 5px; color: var(--muted); font-size: 9px; }

.settings-layout { display: grid; grid-template-columns: 220px minmax(0,720px); gap: 18px; align-items: start; }
.settings-nav { padding: 7px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.settings-nav button { height: 43px; padding: 0 11px; display: flex; align-items: center; gap: 10px; color: #646a7b; background: transparent; border: 0; border-radius: 9px; font-size: 11px; font-weight: 600; text-align: left; }
.settings-nav button.active { color: var(--purple); background: var(--purple-soft); }
.settings-card { min-height: 500px; padding: 30px; }
.settings-card > .settings-pane > p { margin: 8px 0 25px; color: var(--muted); font-size: 11px; }
.settings-pane { display: none; }
.settings-pane.active { display: block; }
.settings-form { display: flex; flex-direction: column; gap: 18px; }
.settings-form label { display: flex; flex-direction: column; gap: 7px; color: #44495a; font-size: 10px; font-weight: 700; }
.settings-form input, .settings-form textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid #dfe1e8; border-radius: 9px; outline: 0; font-size: 12px; font-weight: 400; }
.settings-form input:focus, .settings-form textarea:focus { border-color: #9b91f7; box-shadow: 0 0 0 3px var(--purple-soft); }
.settings-form textarea { min-height: 90px; resize: vertical; }
.input-prefix { display: flex; align-items: center; overflow: hidden; border: 1px solid #dfe1e8; border-radius: 9px; }
.input-prefix span { padding: 0 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 400; }
.input-prefix input { border: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.help-hero { padding: 46px; margin-bottom: 22px; color: #fff; background: linear-gradient(120deg,#5141da,#7364f5); border-radius: 21px; text-align: center; }
.help-hero p { color: rgba(255,255,255,.75); }
.help-hero label { width: min(540px,100%); height: 49px; padding: 0 15px; margin: 25px auto 0; display: flex; align-items: center; gap: 10px; color: #73798a; background: #fff; border-radius: 12px; box-shadow: 0 12px 25px rgba(25,19,90,.18); }
.help-hero input { width: 100%; border: 0; outline: 0; }
.help-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.help-grid > a { position: relative; min-height: 180px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.help-grid strong { margin: 13px 0 5px; font-size: 12px; }
.help-grid small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.help-grid > a > i { position: absolute; right: 18px; bottom: 18px; color: var(--purple); }
.support-card, .support-card > div { display: flex; align-items: center; }
.support-card { justify-content: space-between; }
.support-card > div { gap: 15px; }
.support-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--purple); background: var(--purple-soft); border-radius: 13px; font-size: 20px; }
.support-card h3 { margin: 4px 0; }
.support-card p { margin: 0; color: var(--muted); font-size: 10px; }

.command-palette { position: fixed; inset: 0; z-index: 100; padding: 13vh 20px 20px; display: none; align-items: flex-start; justify-content: center; background: rgba(21,23,37,.38); backdrop-filter: blur(5px); }
.command-palette.open { display: flex; }
.command-dialog { width: min(580px,100%); overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 16px; box-shadow: 0 30px 80px rgba(20,22,40,.25); }
.command-dialog > label { height: 58px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.command-dialog input { width: 100%; border: 0; outline: 0; font-size: 14px; }
.command-results { padding: 10px; display: flex; flex-direction: column; }
.command-results > span { padding: 7px 9px; color: #9b9fac; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.command-results a { height: 43px; padding: 0 10px; display: flex; align-items: center; gap: 11px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.command-results a:hover { color: var(--purple); background: var(--purple-soft); }
.command-results a kbd { margin-left: auto; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 90; padding: 13px 17px; display: flex; align-items: center; gap: 9px; color: #fff; background: #232638; border-radius: 10px; box-shadow: 0 15px 35px rgba(25,28,45,.25); font-size: 11px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s ease; }
.toast i { color: #58d6a7; }
.toast.show { opacity: 1; transform: translateY(0); }
.sidebar-scrim { display: none; }

@media (max-width: 1180px) {
    .metrics-grid { grid-template-columns: repeat(2,1fr); }
    .dashboard-grid, .editor-layout, .analytics-layout { grid-template-columns: 1fr; }
    .story-grid { grid-template-columns: repeat(2,1fr); }
    .help-grid { grid-template-columns: repeat(2,1fr); }
    .performance-panel, .quick-panel, .setup-panel, .activity-panel { min-height: auto; }
}

@media (max-width: 860px) {
    :root { --sidebar: 280px; }
    .sidebar { transform: translateX(-102%); transition: transform .25s ease; box-shadow: 15px 0 50px rgba(21,24,42,.15); }
    .nav-open .sidebar { transform: translateX(0); }
    .sidebar-close, .menu-button { display: inline-grid !important; }
    .nav-open .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(20,22,35,.32); }
    .workspace { margin-left: 0; }
    .topbar { padding: 0 22px; }
    .page-wrap { padding: 28px 22px 45px; }
    .search-box { width: 42px; padding: 0; justify-content: center; }
    .search-box input, .search-box kbd { display: none; }
    .events-layout { grid-template-columns: 1fr; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { flex-direction: row; overflow-x: auto; }
    .settings-nav button { flex: 0 0 auto; }
    .file-folders { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
    .topbar { height: 66px; padding: 0 15px; }
    .topbar h1 { font-size: 15px; }
    .desktop-action { display: none; }
    .page-wrap { padding: 23px 15px 40px; }
    .welcome-row, .section-hero { align-items: flex-start; flex-direction: column; }
    .welcome-actions { width: 100%; }
    .welcome-actions .button { flex: 1; }
    .metrics-grid, .story-grid, .help-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 150px; }
    .quick-grid { grid-template-columns: 1fr 1fr; }
    .panel { padding: 18px; border-radius: 14px; }
    .chart-summary em { display: none; }
    .editor-layout, .analytics-layout { display: block; }
    .editor-layout > *, .analytics-layout > * { margin-bottom: 15px; }
    .site-mock { min-height: 280px; }
    .mock-hero { min-height: 185px; padding: 38px 26px; }
    .mock-hero strong { font-size: 20px; }
    .preview-actions { align-items: flex-start; flex-direction: column; }
    .preview-actions .button { width: 100%; }
    .toolbar-panel { align-items: stretch; flex-direction: column; gap: 10px; }
    .toolbar-panel > div { overflow-x: auto; }
    .filter-search { min-width: 0; width: 100%; }
    .file-folders { grid-template-columns: 1fr 1fr; }
    .data-table { overflow-x: auto; }
    .data-table > div { width: 650px; }
    .content-tabs { flex-wrap: wrap; }
    .content-tabs .filter-search { order: 2; flex-basis: 100%; }
    .calendar-card { padding: 15px; }
    .calendar-grid { gap: 3px; }
    .settings-nav { margin-bottom: 3px; }
    .settings-card { padding: 22px; }
    .form-row { grid-template-columns: 1fr; }
    .help-hero { padding: 34px 18px; }
    .support-card { align-items: flex-start; flex-direction: column; gap: 18px; }
    .support-card .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.auth-body { min-height: 100vh; background: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .95fr) minmax(480px, 1.05fr); }
.auth-brand-panel { position: relative; min-height: 100vh; padding: 48px clamp(45px,7vw,95px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background: linear-gradient(145deg,#4433d3,#695af2); }
.auth-brand-panel::before, .auth-brand-panel::after { content:""; position:absolute; border:1px solid rgba(255,255,255,.13); border-radius:50%; }
.auth-brand-panel::before { width:520px; height:520px; right:-270px; top:-170px; }
.auth-brand-panel::after { width:430px; height:430px; left:-250px; bottom:-230px; }
.auth-brand { z-index:1; display:flex; align-items:center; gap:11px; color:#fff; font:800 18px Manrope,sans-serif; }
.auth-brand > span { width:40px; height:40px; display:grid; place-items:center; color:var(--purple); background:#fff; border-radius:12px; }
.auth-brand > span img { width:100%; height:100%; display:block; object-fit:contain; border-radius:12px; }
.auth-council-mark { overflow:hidden; background:#fff; border:1px solid #e4e6eb; }
.auth-council-mark img { width:100%; height:100%; display:block; object-fit:contain; }
.auth-brand-panel > div { z-index:1; max-width:520px; }
.auth-kicker { font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; opacity:.7; }
.auth-brand-panel h1 { margin:18px 0 15px; font:800 clamp(34px,4vw,54px)/1.08 Manrope,sans-serif; letter-spacing:-.045em; }
.auth-brand-panel p { max-width:470px; margin:0; font-size:15px; line-height:1.7; opacity:.72; }
.auth-brand-panel > small { z-index:1; opacity:.6; }
.auth-form-panel { padding:40px; display:grid; place-items:center; }
.auth-form { width:min(410px,100%); display:flex; flex-direction:column; }
.auth-form > .brand-mark { display:none; }
.auth-form h2 { margin:0 0 7px; font:800 31px Manrope,sans-serif; letter-spacing:-.04em; }
.auth-form > p { margin:0 0 31px; color:var(--muted); font-size:13px; }
.auth-form label { margin-bottom:17px; display:flex; flex-direction:column; gap:8px; color:#44495a; font-size:11px; font-weight:700; }
.auth-form input { height:48px; padding:0 13px; color:var(--ink); background:#fff; border:1px solid #dfe1e8; border-radius:10px; outline:0; }
.auth-form input:focus { border-color:#9b91f7; box-shadow:0 0 0 3px var(--purple-soft); }
.auth-form .button { min-height:48px; margin-top:7px; border:0; }
.auth-error { padding:11px 13px; margin:0 0 18px; color:#b94743; background:var(--coral-soft); border:1px solid #ffd5d2; border-radius:9px; font-size:11px; }

@media (max-width: 820px) {
    .auth-shell { grid-template-columns:1fr; }
    .auth-brand-panel { display:none; }
    .auth-form-panel { min-height:100vh; padding:28px; }
    .auth-form > .brand-mark { margin-bottom:35px; display:grid; }
}
