/* =============================================================================
   AcademyPilot — admin console
   ============================================================================= */
body.adm { background: #f4f5fa; }
.adm-shell { display: flex; min-height: calc(100vh - 34px); }
.adm-side {
    width: 264px; flex: none; background: #0f1024; color: #b7b9d1; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; padding: 1.1rem .9rem; z-index: 1040; transition: transform .3s ease;
}
.adm-brand { display: flex; align-items: center; gap: .7rem; padding: .3rem .4rem 1.3rem; text-decoration: none; color: #fff; }
.adm-brand .logo-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--accent)); flex: none; }
.adm-brand b { display: block; font-size: .98rem; line-height: 1.15; letter-spacing: -.01em; }
.adm-brand small { color: #7f82a3; font-size: .72rem; font-weight: 600; }
.adm-nav { flex: 1; overflow-y: auto; scrollbar-width: none; }
.adm-nav h6 { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5f6285; margin: 1.2rem .7rem .5rem; }
.adm-nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 12px; color: #b7b9d1; text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 2px; transition: background .15s, color .15s; }
.adm-nav a i { font-size: 1.05rem; width: 20px; text-align: center; }
.adm-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.adm-nav a.on { background: linear-gradient(90deg, rgba(var(--brand-rgb), .38), rgba(var(--brand-rgb), .12)); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.adm-nav .nb { margin-left: auto; font-size: .68rem; font-weight: 800; background: var(--accent); color: #fff; border-radius: 999px; padding: .12rem .45rem; }
.adm-nav .nb.soft { background: rgba(255, 255, 255, .1); color: #d6d7ea; }
.adm-nav .ai-tag { font-size: .6rem; font-weight: 800; background: linear-gradient(90deg, #a78bfa, #f472b6); color: #fff; border-radius: 6px; padding: .08rem .35rem; letter-spacing: .04em; }
.adm-side-foot { border-top: 1px solid rgba(255, 255, 255, .07); padding-top: .9rem; }
.adm-side-foot a.view { display: flex; align-items: center; gap: .6rem; color: #d6d7ea; text-decoration: none; font-weight: 700; font-size: .86rem; padding: .6rem .75rem; border-radius: 12px; background: rgba(255, 255, 255, .05); margin-bottom: .8rem; }
.adm-side-foot a.view:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.adm-user { display: flex; align-items: center; gap: .6rem; padding: .2rem .4rem; }
.adm-user b { display: block; color: #fff; font-size: .86rem; }
.adm-user small { color: #7f82a3; font-size: .72rem; }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 1030; background: rgba(244, 245, 250, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; align-items: center; gap: 1rem; padding: .9rem 1.8rem; border-bottom: 1px solid #e6e7f0; }
.adm-top h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.adm-top p { margin: 0; color: var(--muted); font-size: .84rem; }
.adm-search { margin-left: auto; display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #e6e7f0; border-radius: 12px; padding: 0 .8rem; width: 280px; }
.adm-search input { border: 0; outline: 0; padding: .55rem 0; font-size: .88rem; width: 100%; background: transparent; }
.live-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 700; color: #047857; background: #dcfce7; padding: .35rem .7rem; border-radius: 999px; white-space: nowrap; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; animation: pdot2 1.8s infinite; }
@keyframes pdot2 { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); } 70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } 100% { box-shadow: none; } }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #e6e7f0; background: #fff; display: grid; place-items: center; font-size: 1.05rem; color: var(--ink-2); position: relative; flex: none; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff; }
.adm-burger { display: none; }
.adm-body { padding: 1.6rem 1.8rem 3rem; }
@media (max-width: 1199.98px) { .adm-search { display: none !important; } }
@media (max-width: 991.98px) {
    .adm-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .adm-side.open { transform: none; }
    .adm-burger { display: grid; }
    .adm-top { padding: .8rem 1rem; }
    .adm-body { padding: 1.1rem 1rem 3rem; }
    .adm-top .hide-sm { display: none !important; }
}
.adm-scrim { position: fixed; inset: 0; background: rgba(15, 16, 36, .5); z-index: 1035; display: none; }
.adm-scrim.show { display: block; }

/* ---------- cards ---------- */
.panel { background: #fff; border: 1px solid #e8e9f2; border-radius: 18px; padding: 1.25rem 1.35rem; box-shadow: 0 1px 2px rgba(14, 16, 39, .03); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.panel-h h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -.015em; margin: 0; display: flex; align-items: center; gap: .5rem; }
.panel-h small { color: var(--muted); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-bottom: 1.3rem; }
@media (max-width: 1399.98px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .kpis { grid-template-columns: repeat(2, 1fr); gap: .7rem; } }
.kpi { background: #fff; border: 1px solid #e8e9f2; border-radius: 18px; padding: 1.05rem 1.1rem; position: relative; overflow: hidden; }
.kpi .ki { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; margin-bottom: .7rem; color: var(--brand); background: var(--brand-soft); }
.kpi:nth-child(2) .ki { color: #7c3aed; background: #f3e8ff; } .kpi:nth-child(3) .ki { color: #c2410c; background: #ffedd5; } .kpi:nth-child(4) .ki { color: #047857; background: #d1fae5; } .kpi:nth-child(5) .ki { color: #0369a1; background: #e0f2fe; } .kpi:nth-child(6) .ki { color: #be123c; background: #ffe4e6; }
.kpi b { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.kpi .delta { position: absolute; top: 1rem; right: 1rem; font-size: .72rem; font-weight: 800; color: #047857; background: #dcfce7; padding: .15rem .45rem; border-radius: 999px; }
.kpi .delta.down { color: #be123c; background: #ffe4e6; }

.insight { display: flex; gap: .8rem; padding: .85rem .9rem; border-radius: 14px; background: #fafaff; border: 1px solid #eeeefb; margin-bottom: .6rem; }
.insight .ii { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.insight.warn .ii { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.insight.good .ii { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.insight p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.insight a, .insight button.lnk { font-weight: 800; font-size: .8rem; color: var(--brand); text-decoration: none; background: none; border: 0; padding: 0; }
.ai-head { background: linear-gradient(90deg, #7c3aed, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }

.feed { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; }
.feed li { display: flex; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed #ececf4; font-size: .86rem; }
.feed li:last-child { border: 0; }
.feed .fi { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.feed small { display: block; color: var(--muted); font-size: .74rem; }
.feed a { color: inherit; text-decoration: none; }
.feed li.flash { animation: flash 2.4s ease; }
@keyframes flash { 0% { background: #ede9fe; } 100% { background: transparent; } }

.funnel { display: flex; flex-direction: column; gap: .45rem; }
.funnel .fr { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: .7rem; font-size: .84rem; }
.funnel .fr span { color: var(--ink-2); font-weight: 600; }
.funnel .bar { height: 30px; border-radius: 9px; background: #f1f2f8; overflow: hidden; }
.funnel .bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); }
.funnel .fr b { text-align: right; }
@media (max-width: 575.98px) { .funnel .fr { grid-template-columns: 105px 1fr 52px; font-size: .78rem; } }

.tbl { width: 100%; font-size: .86rem; border-collapse: collapse; }
.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: .6rem .7rem; border-bottom: 1px solid #ececf4; white-space: nowrap; text-align: left; }
.tbl td { padding: .7rem; border-bottom: 1px solid #f1f1f7; vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fafaff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- badges ---------- */
.score { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; font-size: .76rem; padding: .2rem .5rem; border-radius: 999px; }
.score.hot { background: #ffe4e6; color: #be123c; } .score.warm { background: #fef3c7; color: #b45309; } .score.cold { background: #e0f2fe; color: #0369a1; }
.stage { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); white-space: nowrap; }
.stage::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.src { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.src i { color: var(--brand); }
.src.ai i { color: #7c3aed; }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(250px, 1fr)); gap: .9rem; overflow-x: auto; padding-bottom: 1rem; align-items: start; }
.kcol { background: #ecedf5; border-radius: 16px; padding: .7rem; min-height: 300px; transition: background .15s, box-shadow .15s; }
.kcol.over { background: #e3e0fb; box-shadow: inset 0 0 0 2px rgba(var(--brand-rgb), .5); }
.kcol-h { display: flex; align-items: center; justify-content: space-between; padding: .2rem .3rem .7rem; font-weight: 800; font-size: .86rem; }
.kcol-h .cnt { font-size: .74rem; background: #fff; border-radius: 999px; padding: .1rem .5rem; color: var(--muted); }
.kcol-h .val { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.kcard { background: #fff; border-radius: 13px; padding: .75rem .8rem; margin-bottom: .55rem; box-shadow: 0 1px 2px rgba(14, 16, 39, .06); cursor: grab; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kcard:hover { box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .25); }
.kcard.dragging { opacity: .45; transform: rotate(2deg); }
.kcard.fresh { border-color: #c4b5fd; box-shadow: 0 0 0 3px #ede9fe; }
.kcard .top { display: flex; justify-content: space-between; gap: .4rem; align-items: flex-start; }
.kcard b { font-size: .9rem; }
.kcard .crs { font-size: .78rem; color: var(--muted); margin: .2rem 0 .5rem; }
.kcard .bot { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: var(--muted); }

/* ---------- drawer ---------- */
.offcanvas.lead-drawer { width: 520px; max-width: 100vw; border: 0; }
.ld-head { padding: 1.3rem 1.4rem 1.1rem; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; position: relative; }
.ld-head .btn-close { position: absolute; right: 1rem; top: 1rem; filter: invert(1); opacity: .8; }
.ld-head h4 { font-weight: 800; margin: .5rem 0 .1rem; letter-spacing: -.02em; }
.ld-head .meta { font-size: .84rem; opacity: .9; display: flex; gap: .9rem; flex-wrap: wrap; }
.ld-actions { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.ld-actions a, .ld-actions button { background: rgba(255, 255, 255, .16); color: #fff; border: 0; border-radius: 10px; padding: .5rem .8rem; font-size: .82rem; font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.ld-actions a:hover, .ld-actions button:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.ld-sec { padding: 1.1rem 1.4rem; border-bottom: 1px solid #eef0f6; }
.ld-sec h6 { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .7rem; display: flex; align-items: center; gap: .4rem; }
.ld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; font-size: .86rem; }
.ld-grid small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.ld-grid select { width: 100%; border: 1px solid #e3e4ee; border-radius: 9px; padding: .35rem .5rem; font-size: .84rem; font-weight: 600; }
.score-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--sc) calc(var(--p) * 1%), #eef0f6 0); position: relative; font-weight: 800; }
.score-ring::before { content: ''; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.score-ring span { position: relative; font-size: 1.05rem; }
.reasons { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.reasons li { display: flex; gap: .5rem; padding: .2rem 0; color: var(--ink-2); }
.reasons b { width: 34px; flex: none; font-variant-numeric: tabular-nums; color: #047857; }
.reasons b.neg { color: #be123c; }
.draft-box { background: #f8f7ff; border: 1px solid #e7e3ff; border-radius: 14px; padding: .9rem; }
.draft-box textarea { width: 100%; border: 0; background: transparent; resize: vertical; min-height: 120px; font-size: .88rem; line-height: 1.55; outline: 0; color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 .9rem 1.4rem; font-size: .84rem; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: #eceaf9; }
.timeline li:last-child::after { display: none; }
.timeline small { color: var(--muted); display: block; font-size: .74rem; }
.transcript { background: #f6f7fb; border-radius: 14px; padding: .8rem; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: .4rem; }
.transcript .m { max-width: 85%; padding: .45rem .7rem; border-radius: 12px; font-size: .82rem; line-height: 1.45; }
.transcript .m.bot { background: #fff; border: 1px solid #e8e9f2; align-self: flex-start; }
.transcript .m.user { background: var(--brand); color: #fff; align-self: flex-end; }
.transcript .m small { display: block; font-size: .66rem; opacity: .65; margin-top: .15rem; }

/* ---------- forms & tabs ---------- */
.adm-tabs { display: flex; gap: .25rem; background: #e9eaf3; border-radius: 13px; padding: .25rem; flex-wrap: wrap; }
.adm-tabs button { border: 0; background: none; border-radius: 10px; padding: .5rem .9rem; font-weight: 700; font-size: .86rem; color: var(--muted); display: inline-flex; gap: .4rem; align-items: center; }
.adm-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.adm-tabs .nb { font-size: .66rem; background: var(--accent); color: #fff; border-radius: 999px; padding: .05rem .4rem; }
.fld label { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-2); margin-bottom: .35rem; }
.fld input, .fld select, .fld textarea { width: 100%; border: 1.5px solid #e3e4ee; border-radius: 11px; padding: .6rem .75rem; font-size: .9rem; outline: none; background: #fff; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .1); }
.fld .hint { font-size: .74rem; color: var(--muted); margin-top: .3rem; }
.filters-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filters-row select, .filters-row input { border: 1px solid #e3e4ee; border-radius: 10px; padding: .48rem .7rem; font-size: .85rem; font-weight: 600; background: #fff; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d5d7e4; border-radius: 999px; transition: background .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(20px); }
.row-toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #f0f0f6; }
.row-toggle b { display: block; font-size: .9rem; } .row-toggle small { color: var(--muted); font-size: .8rem; }
.day-chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.day-chips button { width: 42px; height: 38px; border: 1.5px solid #e3e4ee; background: #fff; border-radius: 10px; font-weight: 700; font-size: .8rem; color: var(--muted); }
.day-chips button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- chatbot studio ---------- */
.inbox { display: grid; grid-template-columns: 340px 1fr; gap: 1rem; }
@media (max-width: 991.98px) { .inbox { grid-template-columns: 1fr; } }
.conv-list { max-height: 620px; overflow-y: auto; }
.conv-item { display: flex; gap: .7rem; padding: .75rem; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.conv-item:hover { background: #fafaff; }
.conv-item.on { background: var(--brand-soft); border-color: rgba(var(--brand-rgb), .25); }
.conv-item b { font-size: .88rem; } .conv-item p { margin: 0; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.conv-item small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.outcome { font-size: .68rem; font-weight: 800; padding: .12rem .45rem; border-radius: 999px; white-space: nowrap; }
.outcome.lead { background: #dcfce7; color: #047857; } .outcome.ans { background: #e0f2fe; color: #0369a1; } .outcome.hand { background: #fef3c7; color: #b45309; } .outcome.un { background: #ffe4e6; color: #be123c; }
.bot-test { height: 620px; border-radius: 18px; overflow: hidden; border: 1px solid #e8e9f2; }
.kb-row td:first-child { font-weight: 700; }
.kb-row .kw { display: flex; gap: .25rem; flex-wrap: wrap; }
.kb-row .kw span { font-size: .7rem; background: #f1f2f8; border-radius: 6px; padding: .1rem .4rem; color: var(--ink-2); }
.unans { display: flex; gap: .8rem; align-items: center; padding: .75rem .9rem; border: 1px dashed #fecdd3; background: #fff7f8; border-radius: 12px; margin-bottom: .55rem; }
.unans p { margin: 0; flex: 1; font-size: .88rem; font-weight: 600; }
.unans small { color: var(--muted); font-size: .74rem; display: block; font-weight: 500; }

/* ---------- blog writer ---------- */
.writer { display: grid; grid-template-columns: 380px 1fr; gap: 1.1rem; align-items: start; }
@media (max-width: 1199.98px) { .writer { grid-template-columns: 1fr; } }
.topic-sugg { display: flex; flex-direction: column; gap: .4rem; max-height: 220px; overflow-y: auto; }
.topic-sugg button { text-align: left; border: 1px solid #ececf4; background: #fff; border-radius: 11px; padding: .55rem .7rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); display: flex; gap: .5rem; align-items: flex-start; }
.topic-sugg button:hover { border-color: var(--brand); color: var(--brand); }
.topic-sugg button i { color: #f59e0b; margin-top: 2px; }
.gen-steps { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1rem; }
.gen-steps span { font-size: .76rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; background: #f1f2f8; color: var(--muted); display: inline-flex; gap: .35rem; align-items: center; transition: all .3s; }
.gen-steps span.on { background: #ede9fe; color: #6d28d9; }
.gen-steps span.done { background: #dcfce7; color: #047857; }
.doc { background: #fff; border: 1px solid #e8e9f2; border-radius: 18px; min-height: 560px; padding: 2rem 2.2rem; position: relative; }
@media (max-width: 575.98px) { .doc { padding: 1.3rem 1.1rem; } }
.doc-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 2rem; }
.doc-empty i { font-size: 3rem; background: linear-gradient(135deg, #8b5cf6, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc .d-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; outline: none; }
.doc .d-meta { color: var(--muted); font-size: .84rem; margin: .6rem 0 1.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.doc .article { font-size: 1rem; }
.doc .article h2 { font-size: 1.35rem; margin-top: 1.8rem; }
.caret::after { content: '▍'; color: var(--brand); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.seo-score { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.seo-ring { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--sc) calc(var(--p) * 1%), #eef0f6 0); position: relative; font-weight: 800; font-size: 1.3rem; flex: none; }
.seo-ring::before { content: ''; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.seo-ring span { position: relative; }
.checks { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.checks li { display: flex; gap: .5rem; padding: .3rem 0; color: var(--ink-2); }
.checks .bi-check-circle-fill { color: #10b981; } .checks .bi-x-circle-fill { color: #f43f5e; }
.repurpose { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 767.98px) { .repurpose { grid-template-columns: 1fr; } }
.rp { border: 1px solid #ececf4; border-radius: 14px; padding: .9rem; background: #fff; }
.rp h6 { font-weight: 800; font-size: .84rem; display: flex; align-items: center; gap: .45rem; margin-bottom: .55rem; }
.rp pre { white-space: pre-wrap; font-family: inherit; font-size: .8rem; color: var(--ink-2); margin: 0 0 .6rem; max-height: 180px; overflow-y: auto; background: #fafafd; padding: .6rem; border-radius: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal .dh { font-size: .7rem; font-weight: 800; color: var(--muted); text-align: center; text-transform: uppercase; padding-bottom: .2rem; }
.cal .dc { min-height: 82px; background: #fafafd; border: 1px solid #f0f0f6; border-radius: 10px; padding: .35rem; font-size: .7rem; }
.cal .dc.today { border-color: var(--brand); background: var(--brand-soft); }
.cal .dc .n { font-weight: 800; color: var(--muted); }
.cal .dc .ev { display: block; margin-top: .25rem; padding: .18rem .35rem; border-radius: 6px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev.pub { background: #dcfce7; color: #047857; } .cal .ev.sch { background: #ede9fe; color: #6d28d9; } .cal .ev.rev { background: #fef3c7; color: #b45309; }
@media (max-width: 767.98px) { .cal .dc { min-height: 56px; } .cal .dc .ev { font-size: 0; height: 6px; padding: 0; } }

/* ---------- settings ---------- */
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatches button { width: 38px; height: 38px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 0 0 1px #e3e4ee; }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.preview-site { border-radius: 18px; overflow: hidden; border: 1px solid #e8e9f2; background: #fff; box-shadow: var(--shadow); }
.ps-bar { display: flex; gap: .35rem; padding: .55rem .7rem; background: #f1f2f8; align-items: center; }
.ps-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5d7e4; }
.ps-bar span { margin-left: .6rem; font-size: .72rem; color: var(--muted); background: #fff; border-radius: 6px; padding: .15rem .6rem; flex: 1; }
.ps-hero { padding: 1.4rem; background: radial-gradient(60% 100% at 0% 0%, rgba(var(--brand-rgb), .14), transparent 60%), #fff; }
.ps-hero h4 { font-weight: 800; letter-spacing: -.03em; margin: .8rem 0 .4rem; }
.link-box { display: flex; gap: .5rem; align-items: stretch; }
.link-box input { flex: 1; min-width: 0; border: 1.5px solid #e3e4ee; border-radius: 11px; padding: .6rem .75rem; font-size: .82rem; background: #fafafd; color: var(--ink-2); }

.form-control-color { width: 46px; height: 38px; padding: 4px; border-radius: 12px; }
