:root {
    --ink: #17211f;
    --ink-strong: #071111;
    --muted: #65736f;
    --soft: #87948f;
    --line: #d8e1dc;
    --paper: #f4f0e8;
    --paper-warm: #fbf8f1;
    --surface: #ffffff;
    --surface-sage: #edf5ef;
    --dark: #091313;
    --dark-soft: #11201f;
    --green: #6dbb87;
    --teal: #2aa79b;
    --blue: #557b9a;
    --amber: #c48a45;
    --danger: #a44d4d;
    --shadow: 0 18px 45px rgba(28, 42, 38, 0.12);
}

.process-panel {
    display: grid;
    gap: 10px;
    width: min(460px, 100%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(10, 25, 23, 0.72);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.process-panel div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fbf8;
}

.process-panel span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #73d7a1;
    color: #10231f;
    font-weight: 900;
}

.trust-statement,
.audit-cta {
    width: min(1080px, calc(100% - 36px));
    margin: 42px auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(13, 25, 23, 0.08);
}

.trust-statement h2,
.audit-cta h2 {
    margin-top: 0;
}

.trust-statement p:last-child,
.audit-cta p:last-child {
    margin-bottom: 0;
}

.audit-cta {
    display: grid;
    gap: 12px;
    background: #11231f;
    color: #f8fbf8;
}

.audit-cta .eyebrow {
    color: #73d7a1;
}

.audit-cta .button {
    width: fit-content;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(7, 17, 17, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    color: #f7fbf8;
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(109, 187, 135, 0.28));
}

.brand span {
    display: grid;
    gap: 1px;
}

.brand small,
.main-nav a,
.main-nav button {
    color: #b8c7c1;
    font-size: 0.9rem;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.main-nav a,
.main-nav button {
    border: 0;
    background: transparent;
    padding: 8px 11px;
    border-radius: 6px;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.main-nav a:hover,
.main-nav button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #f8fbf8;
    background: var(--dark);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 17, 17, 0.98) 0%, rgba(7, 17, 17, 0.9) 48%, rgba(7, 17, 17, 0.44) 100%),
        url("/static/img/hero-calm-ai-visibility.png") center right / cover no-repeat;
    opacity: 0.94;
}

.hero-inner,
.page-heading,
.workspace,
.article,
.section-grid,
.cards,
.method-body,
.content-needed,
.proof-strip {
    width: min(1120px, calc(100% - 36px));
    margin-inline: auto;
}

.hero-inner {
    position: relative;
    min-height: 580px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    align-items: center;
    gap: clamp(32px, 5vw, 68px);
    padding: 66px 0 42px;
}

.hero h1,
.page-heading h1,
.article h1 {
    margin: 0;
    font-size: clamp(2.25rem, 3.35vw, 3.5rem);
    line-height: 1.08;
    max-width: 700px;
    letter-spacing: 0;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.hero-copy .lead,
.hero-copy .lead p {
    max-width: 62ch;
    color: #edf7f1;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.36);
}

.lead,
.page-heading > p,
.score-row > p {
    color: var(--muted);
    font-size: clamp(1rem, 1.12vw, 1.1rem);
    max-width: 700px;
}

.lead p {
    margin-top: 0;
}

.contact-details {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    color: var(--ink-strong);
    font-weight: 800;
}

.contact-details span,
.contact-details a {
    display: block;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal);
    font-weight: 850;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero .eyebrow {
    color: #90e0c4;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    background: linear-gradient(135deg, #73d7a1, #63c6bc);
    color: #071111;
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(42, 167, 155, 0.22);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fbf8;
    border-color: rgba(255, 255, 255, 0.24);
}

.form-card .button.secondary,
.table-card .button.secondary {
    background: #eef8f4;
    color: var(--teal);
    border-color: #b7dbce;
}

.button.danger {
    background: #fff5f2;
    color: var(--danger);
    border-color: #e7c5bd;
}

.button.text {
    min-height: 44px;
    padding-inline: 4px;
    border-color: transparent;
    background: transparent;
    color: #90e0c4;
}

.signal-panel {
    display: grid;
    gap: 0;
    background: rgba(251, 248, 241, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    padding: 16px;
    color: var(--ink);
    box-shadow: var(--shadow);
    align-self: center;
    overflow: hidden;
}

.signal-logo {
    display: grid;
    place-items: center;
    min-height: 142px;
    margin: -2px -2px 8px;
    border: 1px solid #d8e1dc;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff, #edf5ef);
}

.signal-logo img {
    width: min(148px, 50%);
    max-height: 104px;
    object-fit: contain;
}

.signal-logo span {
    margin-top: 8px;
    color: var(--soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.signal-panel > div:not(.signal-logo) {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
}

.signal-panel > div:not(.signal-logo):last-child {
    border-bottom: 0;
}

.signal-panel > div:not(.signal-logo) span {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
}

.signal-panel > div:not(.signal-logo) strong {
    font-size: 0.94rem;
    line-height: 1.3;
}

.proof-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
    margin-top: -28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.proof-strip div {
    min-height: 96px;
    padding: 20px;
    background: var(--surface);
}

.proof-strip span,
.status,
.score-card span,
.metric-grid span,
.metric-grid small,
.score-card small {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.proof-strip span {
    display: block;
    margin-bottom: 7px;
}

.proof-strip strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.35;
}

.section-grid,
.dashboard-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.question-section {
    width: min(1120px, calc(100% - 36px));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
    align-items: start;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #edf5ef);
    box-shadow: var(--shadow);
}

.question-section h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: clamp(1.65rem, 2.5vw, 2.45rem);
    line-height: 1.15;
    text-wrap: balance;
}

.question-section p {
    max-width: 58ch;
    color: var(--muted);
}

.question-list {
    display: grid;
    gap: 12px;
}

.question-list article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 248, 241, 0.75);
}

.question-list span {
    display: block;
    margin-bottom: 6px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.question-list strong {
    display: block;
    color: var(--ink);
    line-height: 1.35;
}

.topic-link-panel,
.faq-section {
    width: min(1120px, calc(100% - 36px));
    margin: 28px auto;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 36px rgba(28, 42, 38, 0.07);
}

.topic-link-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 24px;
    align-items: start;
    background: linear-gradient(135deg, #ffffff, #edf5ef);
}

.topic-link-panel h2,
.faq-section h2 {
    margin: 0 0 10px;
    color: var(--ink-strong);
    font-size: clamp(1.55rem, 2.1vw, 2.15rem);
    line-height: 1.14;
    text-wrap: balance;
}

.topic-link-panel p {
    max-width: 58ch;
    color: var(--muted);
}

.topic-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.topic-link-grid a {
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 248, 241, 0.78);
    color: var(--ink);
    text-decoration: none;
}

.topic-link-grid a:hover {
    border-color: #9fd6c3;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(42, 167, 155, 0.13);
}

.topic-link-grid span {
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.topic-link-grid strong {
    font-size: 0.98rem;
    line-height: 1.34;
}

.faq-section {
    display: grid;
    gap: 12px;
}

.faq-section details {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-warm);
}

.faq-section summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--ink-strong);
    font-weight: 850;
}

.faq-section summary::marker {
    color: var(--teal);
}

.faq-section details[open] summary {
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.faq-section details p {
    margin: 0;
    padding: 14px 18px 18px;
    color: var(--muted);
}

.section-grid article,
.dashboard-columns article,
.card,
.metric-grid article,
.score-card,
.auth-card,
.method-body,
.prose-panel,
.credibility-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(28, 42, 38, 0.06);
}

.section-grid article:first-child {
    background: var(--surface-sage);
}

.section-grid h2,
.card h2,
.dashboard-columns h2 {
    margin-top: 0;
    color: var(--ink-strong);
    font-size: clamp(1.3rem, 1.9vw, 1.8rem);
    line-height: 1.25;
}

.section-grid p,
.card p,
.method-body p,
.method-body li,
.dashboard-columns li,
.content-needed li {
    max-width: 68ch;
}

.page-heading {
    padding: 64px 0 28px;
}

.page-heading h1 {
    color: var(--ink-strong);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card ul,
.dashboard-columns ul,
.content-needed ul {
    padding-left: 20px;
}

.card li + li,
.dashboard-columns li + li {
    margin-top: 6px;
}

.content-needed {
    display: none;
}

.founder-page {
    width: min(980px, calc(100% - 36px));
    margin-inline: auto;
}

.founder-page .page-heading {
    width: 100%;
}

.prose-panel {
    padding: clamp(24px, 4vw, 44px);
}

.credibility-panel {
    margin-top: 20px;
    padding: clamp(22px, 3vw, 34px);
    border-left: 5px solid var(--teal);
}

.prose-panel p,
.credibility-panel p {
    color: #33423e;
    font-size: clamp(1rem, 1.08vw, 1.12rem);
    margin: 0;
}

.prose-panel p + p,
.credibility-panel p + p {
    margin-top: 1.05rem;
}

.credibility-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

.workspace {
    padding-top: 46px;
}

.content-workspace {
    width: min(1600px, calc(100% - 36px));
}

.workspace-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.workspace-nav a {
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
}

.workspace-nav a:hover {
    background: var(--surface-sage);
    color: var(--ink);
}

.demo-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin: -12px 0 24px;
    padding: 12px 14px;
    border: 1px solid #d8c288;
    border-radius: 8px;
    background: #fff8df;
    color: #614f1f;
}

.demo-banner strong {
    color: #3d3214;
}

.workspace-heading,
.score-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 22px;
}

.workspace-heading h1 {
    margin: 0;
    color: var(--ink-strong);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.workspace-heading p {
    color: var(--muted);
}

.workspace-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 20px;
    align-items: start;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.table-card,
.form-card,
.compliance-banner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(28, 42, 38, 0.06);
}

.narrow-card {
    width: min(640px, 100%);
}

.table-card h2,
.form-card h2 {
    margin-top: 0;
    color: var(--ink-strong);
}

.table-card {
    overflow-x: auto;
}

.table-card td,
.table-card th {
    overflow-wrap: anywhere;
}

.table-card td:last-child {
    min-width: 180px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--teal);
    font-size: 0.78rem;
    text-transform: uppercase;
}

td small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.workspace-form {
    display: grid;
    gap: 14px;
}

.workspace-form label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.workspace-form > div,
.auth-card > div {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.workspace-form label span {
    color: var(--ink);
}

.workspace-form input,
.workspace-form select,
.workspace-form textarea,
.auth-card input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.workspace-form textarea {
    resize: vertical;
}

.workspace-form small,
.workspace-form .helptext {
    color: var(--muted);
    font-weight: 500;
}

.workspace-form ul.errorlist {
    margin: 0;
    padding-left: 18px;
    color: var(--danger);
    font-weight: 700;
}

.message-stack {
    width: min(1120px, calc(100% - 36px));
    margin: 18px auto 0;
    display: grid;
    gap: 8px;
}

.message {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-sage);
    color: var(--ink);
    font-weight: 750;
}

.message.error {
    background: #fff5f2;
    color: var(--danger);
    border-color: #e7c5bd;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 2px 3px 2px 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface-sage);
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 900;
}

.pill.muted {
    color: var(--muted);
    background: #eef0ed;
}

.danger-zone {
    border-color: #e7c5bd;
    background: #fffaf7;
}

.inline-action {
    margin-top: 14px;
}

.business-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.business-actions .button {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.84rem;
}

.compliance-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 20px;
    border-left: 5px solid var(--amber);
    background: #fff8ed;
}

.compliance-banner strong {
    color: var(--ink-strong);
}

.compliance-banner span {
    color: #6f5231;
}

.draft-list {
    display: grid;
    gap: 14px;
}

.draft-list article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-warm);
}

.draft-list span {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.draft-list h3 {
    margin: 6px 0;
}

code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #edf5ef;
    color: var(--ink-strong);
}

.score-row {
    background: var(--surface-sage);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.score-card {
    min-width: 170px;
}

.score-card strong {
    display: block;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--teal);
}

.metric-grid {
    margin-bottom: 18px;
}

.metric-grid strong {
    display: block;
    margin: 8px 0;
    font-size: 1.55rem;
}

.report-chart {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 24px;
    align-items: center;
    margin: 18px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #edf5ef);
    box-shadow: 0 10px 28px rgba(28, 42, 38, 0.06);
}

.report-chart h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.report-chart p {
    color: var(--muted);
}

.bar-stack {
    display: grid;
    gap: 14px;
}

.bar-stack div {
    display: grid;
    gap: 7px;
}

.bar-stack span {
    color: var(--ink);
    font-weight: 800;
}

.bar-stack strong {
    position: relative;
    display: block;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8e3;
}

.bar-stack strong::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--bar);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--green));
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.calendar-card,
.day-panel,
.chart-card,
.product-update-grid article,
.platform-card-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(28, 42, 38, 0.06);
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.calendar-toolbar h2 {
    margin: 0;
    color: var(--ink-strong);
}

.calendar-table {
    table-layout: fixed;
}

.calendar-table th {
    text-align: center;
}

.calendar-table td {
    height: 118px;
    padding: 0;
    background: #ffffff;
}

.calendar-table .muted-day {
    background: #f5f4ef;
}

.calendar-table .today {
    box-shadow: inset 0 0 0 2px rgba(42, 167, 155, 0.28);
}

.calendar-table .selected-day {
    background: var(--surface-sage);
}

.day-link {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 118px;
    padding: 9px;
    text-decoration: none;
}

.day-link span {
    color: var(--ink-strong);
    font-weight: 900;
}

.day-link strong {
    width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--teal);
    color: #ffffff;
    font-size: 0.78rem;
}

.day-link small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.day-panel h2,
.chart-card h2,
.product-update-grid h2 {
    margin: 0 0 14px;
    color: var(--ink-strong);
}

.day-item-list {
    display: grid;
    gap: 12px;
}

.day-item-list article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-warm);
}

.day-item-list h3 {
    margin: 8px 0 4px;
}

.day-item-list p,
.day-item-list small {
    color: var(--muted);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.funnel-bars,
.donut-list {
    display: grid;
    gap: 14px;
}

.funnel-bars div,
.donut-list div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
}

.funnel-bars span,
.donut-list span,
.platform-card-grid span {
    color: var(--muted);
    font-weight: 850;
}

.funnel-bars strong,
.donut-list strong {
    position: relative;
    display: block;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8e3;
}

.funnel-bars strong::after,
.donut-list strong::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--bar);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--green));
}

.funnel-bars strong.dashed::after {
    background: repeating-linear-gradient(90deg, var(--blue) 0 12px, transparent 12px 18px);
}

.funnel-bars strong.muted::after {
    background: #b8c7c1;
}

.product-update-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.product-update-grid h2 {
    font-size: 1.08rem;
    line-height: 1.35;
}

.product-update-grid ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.platform-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.platform-card-grid strong {
    display: block;
    margin: 8px 0;
    color: var(--teal);
    font-size: 2rem;
    line-height: 1;
}

.platform-card-grid p,
.platform-card-grid small {
    color: var(--muted);
}

.executive-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.executive-kpis article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(28, 42, 38, 0.06);
}

.executive-kpis span,
.executive-kpis small {
    display: block;
    color: var(--muted);
    font-weight: 850;
}

.executive-kpis strong {
    display: block;
    margin: 8px 0;
    color: var(--teal);
    font-size: 2rem;
    line-height: 1;
}

.executive-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pie-chart {
    width: min(220px, 70vw);
    aspect-ratio: 1;
    margin: 8px auto 18px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 22px rgba(255, 255, 255, 0.55);
}

.legend-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.legend-list span {
    width: 12px;
    height: 12px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 3px;
    background: var(--swatch);
}

.svg-line-chart svg {
    width: 100%;
    min-height: 210px;
}

.svg-line-chart line {
    stroke: #d8e1dc;
    stroke-width: 2;
}

.svg-line-chart polyline {
    fill: none;
    stroke: var(--teal);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-line-chart circle {
    fill: var(--green);
    stroke: #ffffff;
    stroke-width: 3;
}

.line-labels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.line-labels div {
    display: grid;
    gap: 4px;
}

.line-labels span,
.line-labels strong {
    text-align: center;
    color: var(--muted);
}

.horizontal-bars {
    display: grid;
    gap: 12px;
}

.horizontal-bars div {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
}

.horizontal-bars strong {
    position: relative;
    height: 13px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe8e3;
}

.horizontal-bars strong::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--bar);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--green));
}

.template-grid {
    display: grid;
    gap: 12px;
}

.template-grid article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-warm);
}

.suggestion-card-list {
    display: grid;
    gap: 12px;
    max-height: 920px;
    overflow: auto;
    padding-right: 4px;
}

.suggestion-card-list article {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.suggestion-card-list span {
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.suggestion-card-list h3 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.35;
}

.suggestion-card-list p,
.suggestion-card-list small {
    margin: 0;
    color: var(--muted);
}

.suggestion-card-list.compact {
    max-height: 430px;
}

.suggestion-card-list.compact article {
    gap: 4px;
    padding: 10px 12px;
}

.suggestion-card-list.compact span {
    font-size: 0.7rem;
}

.suggestion-card-list.compact h3 {
    font-size: 0.9rem;
}

.muted-copy {
    color: var(--muted);
}

.content-editor-full {
    display: grid;
    margin-bottom: 20px;
}

.content-editor-full .content-editor-card {
    width: 100%;
}

.content-editor-full .rich-editor-canvas {
    min-height: 460px;
}

.content-saved-layout {
    display: grid;
    margin-bottom: 20px;
}

.content-bottom-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.compact-panel h2 {
    font-size: 1.35rem;
}

.content-editor-layout {
    grid-template-columns: minmax(520px, 1fr) minmax(320px, 0.7fr);
}

.content-editor-card {
    align-self: start;
}

.rich-editor-shell {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    background: #f7faf6;
}

.editor-tool,
.editor-select,
.editor-color {
    min-height: 34px;
    border: 1px solid #cad8d1;
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 850;
}

.editor-tool {
    min-width: 34px;
    padding: 0 9px;
    cursor: pointer;
}

.editor-tool:hover,
.editor-select:hover,
.editor-color:hover {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(42, 167, 155, 0.12);
}

.editor-select {
    max-width: 138px;
    padding: 0 8px;
}

.editor-color {
    width: 38px;
    padding: 3px;
}

.rich-editor-canvas {
    min-height: 280px;
    padding: 16px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    overflow-wrap: anywhere;
}

.rich-editor-canvas:focus {
    box-shadow: inset 0 0 0 2px rgba(42, 167, 155, 0.22);
}

.rich-editor-canvas h2,
.rich-editor-canvas h3,
.rich-editor-canvas p,
.rich-editor-canvas ul,
.rich-editor-canvas ol,
.rich-editor-canvas table,
.rich-editor-canvas blockquote {
    margin-top: 0;
}

.rich-editor-canvas table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.rich-editor-canvas th,
.rich-editor-canvas td {
    border: 1px solid #cad8d1;
    padding: 8px;
}

.rich-editor-canvas img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.rich-editor-shell textarea {
    min-height: 280px;
    border: 0;
    border-radius: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.design-studio {
    width: 100%;
    height: 100vh;
    margin: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    color: #171d1b;
    background: #f1f3f6;
    overflow: hidden;
}

.design-studio-body .site-header,
.design-studio-body .site-footer {
    display: none;
}

.design-topbar {
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 12px 18px;
    color: #f8fbf8;
    background: linear-gradient(90deg, #0fb3b8, #7442e8);
}

.design-topbar h1 {
    margin: 0;
    font-size: 1.08rem;
}

.design-topbar .eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.studio-back {
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.studio-save-form {
    display: flex;
    align-items: center;
}

.design-workspace-tabs {
    overflow-x: auto;
    background: #ffffff;
    border-bottom: 1px solid #d9dee7;
}

.design-workspace-tabs .workspace-nav {
    width: auto;
    margin: 0;
    padding: 8px 16px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: visible;
}

.design-workspace-tabs .workspace-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 6px;
    background: #f5f7fa;
    color: #26322f;
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
}

.design-workspace-tabs .workspace-nav a:hover {
    background: #ece4ff;
    color: #5a35d6;
}

.design-workspace-tabs .demo-banner {
    margin: 0;
    border-radius: 0;
}

.design-app {
    display: grid;
    grid-template-columns: 104px minmax(300px, 340px) minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
}

.design-rail {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding: 14px 6px;
    background: #ffffff;
    border-right: 1px solid #d9dee7;
    overflow-y: auto;
}

.design-rail button {
    min-height: 58px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #3e4744;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.1;
    overflow-wrap: normal;
    cursor: pointer;
}

.design-rail button.active,
.design-rail button:hover {
    background: #ece4ff;
    color: #5a35d6;
}

.design-panel {
    overflow: auto;
    min-height: 0;
    padding: 18px;
    background: #ffffff;
    border-right: 1px solid #d9dee7;
    box-shadow: 12px 0 28px rgba(31, 42, 54, 0.08);
}

.design-panel-section {
    display: none;
}

.design-panel-section.active {
    display: grid;
    gap: 16px;
}

.design-panel h2 {
    margin: 6px 0 0;
    font-size: 1rem;
}

.studio-search {
    display: grid;
    gap: 6px;
    color: #4f5d59;
    font-weight: 800;
}

.studio-search input,
.design-panel input,
.design-panel select,
.design-panel textarea,
.studio-meta-panel input,
.studio-meta-panel select,
.design-toolbar input,
.design-toolbar select {
    min-height: 42px;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    padding: 9px 12px;
    font: inherit;
    box-sizing: border-box;
}

.studio-meta-panel input,
.studio-meta-panel select {
    width: 100%;
    min-width: 0;
}

.design-panel label,
.studio-publish-form {
    display: grid;
    gap: 7px;
    color: #26312e;
    font-weight: 850;
}

.design-panel textarea {
    min-height: 124px;
    resize: vertical;
}

.platform-choice-group {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.platform-choice-group legend {
    margin-bottom: 2px;
    font-weight: 900;
}

.studio-publish-form .choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    background: #f8faf9;
}

.studio-publish-form .choice-row input {
    width: auto;
    min-height: 0;
}

.draft-edit-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #b7dbce;
    border-radius: 8px;
    background: #eef8f4;
    color: #11231f;
}

.draft-edit-state span {
    font-weight: 900;
}

.draft-edit-state button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #b7dbce;
    border-radius: 6px;
    background: #ffffff;
    color: #11231f;
    font-weight: 850;
    cursor: pointer;
}

.primary-action {
    background: #73d7a1;
    border-color: #73d7a1;
    color: #11231f;
}

.studio-saved-list {
    display: grid;
    gap: 10px;
}

.saved-draft-shell {
    position: relative;
}

.idea-draft-form {
    margin: 0;
}

.studio-saved-list article:not(.saved-draft-shell),
.saved-draft-card,
.idea-draft-card {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 12px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #f8faf9;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.saved-draft-card {
    padding-right: 48px;
}

.saved-draft-card:hover,
.saved-draft-card:focus-visible,
.idea-draft-card:hover,
.idea-draft-card:focus-visible {
    border-color: #8b3ffc;
    background: #f1e9ff;
    outline: 0;
}

.saved-draft-delete-form {
    position: absolute;
    top: 8px;
    right: 8px;
}

.saved-draft-delete {
    position: relative;
    width: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    background: #ffffff;
    color: #202826;
    cursor: pointer;
}

.saved-draft-delete:hover,
.saved-draft-delete:focus-visible {
    border-color: #e15d5d;
    background: #fff0f0;
    color: #b42323;
    outline: 0;
}

.saved-draft-delete span {
    position: relative;
    width: 13px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.saved-draft-delete i {
    position: absolute;
    top: 9px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.saved-draft-delete::before {
    content: "";
    position: absolute;
    top: 6px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.saved-draft-delete::after {
    content: "";
    position: absolute;
    top: 14px;
    width: 8px;
    height: 8px;
    border-inline: 2px solid currentColor;
}

.studio-saved-list span {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ece4ff;
    color: #5a35d6;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.studio-saved-list h3,
.studio-saved-list p {
    margin: 0;
}

.studio-saved-list h3 {
    font-size: 0.95rem;
}

.studio-saved-list p,
.studio-saved-list small {
    color: #5c6b66;
}

.template-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-category-tabs button,
.design-toolbar button,
.studio-panel-action,
.element-grid button,
.element-choice-row button,
.font-combo-grid button {
    min-height: 38px;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    background: #ffffff;
    color: #202826;
    font-weight: 850;
    cursor: pointer;
}

.template-category-tabs button {
    padding: 0 14px;
    border-radius: 999px;
}

.template-category-tabs button.active,
.template-category-tabs button:hover,
.studio-panel-action:hover,
.element-grid button:hover,
.element-choice-row button:hover,
.shape-dialog-grid button:hover,
.font-combo-grid button:hover {
    border-color: #8b3ffc;
    background: #f1e9ff;
    color: #5b2bc6;
}

.element-menu {
    display: grid;
    gap: 18px;
}

.element-category {
    display: grid;
    gap: 8px;
}

.element-category header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.element-category h3 {
    margin: 0;
    color: #3e4744;
    font-size: 0.95rem;
}

.element-category header button {
    min-height: 28px;
    border: 0;
    background: transparent;
    color: #3e4744;
    font-weight: 850;
    cursor: pointer;
}

.element-choice-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.element-choice-row button {
    min-height: 62px;
    display: grid;
    place-items: center;
    padding: 8px;
}

.shape-preview {
    position: relative;
    display: block;
    width: 48px;
    height: 40px;
    color: #020403;
    background: currentColor;
}

.shape-preview.line-solid,
.shape-preview.line-dashed,
.shape-preview.line-dotted,
.shape-preview.line-arrow-right,
.shape-preview.line-arrow-left,
.shape-preview.line-arrow-both {
    width: 58px;
    height: 20px;
    background: transparent;
}

.shape-preview.line-solid::before,
.shape-preview.line-dashed::before,
.shape-preview.line-dotted::before,
.shape-preview.line-arrow-right::before,
.shape-preview.line-arrow-left::before,
.shape-preview.line-arrow-both::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 3px solid currentColor;
}

.shape-preview.line-dashed::before {
    border-top-style: dashed;
}

.shape-preview.line-dotted::before {
    border-top-style: dotted;
}

.shape-preview.line-arrow-right::after {
    content: "";
    position: absolute;
    right: -1px;
    top: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    transform: rotate(45deg);
}

.shape-preview.line-arrow-left::after,
.shape-preview.line-arrow-both::after {
    content: "";
    position: absolute;
    left: -1px;
    top: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-bottom: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: rotate(45deg);
}

.shape-preview.line-arrow-both::before {
    box-shadow: 0 0 0 currentColor;
}

.shape-preview.line-arrow-both {
    --arrow-both: 1;
}

.shape-preview.line-arrow-both .unused {
    display: none;
}

.shape-preview.line-arrow-both::before {
    right: 0;
}

.shape-preview.line-arrow-both {
    background: transparent;
}

.shape-preview.line-arrow-both::after {
    left: -1px;
}

.shape-preview.line-arrow-both {
    border: 0;
}

.shape-preview.rounded-square,
.shape-preview.flow-process {
    border-radius: 8px;
}

.shape-preview.circle {
    border-radius: 999px;
}

.shape-preview.triangle {
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.shape-preview.triangle-down {
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.shape-preview.trapezoid {
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}

.shape-preview.parallelogram {
    clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
}

.shape-preview.plus {
    clip-path: polygon(36% 0, 64% 0, 64% 36%, 100% 36%, 100% 64%, 64% 64%, 64% 100%, 36% 100%, 36% 64%, 0 64%, 0 36%, 36% 36%);
}

.shape-preview.pentagon {
    clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}

.shape-preview.hexagon {
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.shape-preview.octagon {
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.shape-preview.heptagon {
    clip-path: polygon(50% 0, 88% 18%, 100% 58%, 72% 100%, 28% 100%, 0 58%, 12% 18%);
}

.shape-preview.bevel {
    clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
}

.shape-preview.diamond,
.shape-preview.flow-decision {
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.shape-preview.star4 {
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.shape-preview.star5 {
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
}

.shape-preview.starburst {
    clip-path: polygon(50% 0, 61% 24%, 87% 12%, 78% 39%, 100% 50%, 78% 61%, 87% 88%, 61% 76%, 50% 100%, 39% 76%, 13% 88%, 22% 61%, 0 50%, 22% 39%, 13% 12%, 39% 24%);
}

.shape-preview.star6 {
    clip-path: polygon(50% 0, 62% 30%, 95% 25%, 72% 50%, 95% 75%, 62% 70%, 50% 100%, 38% 70%, 5% 75%, 28% 50%, 5% 25%, 38% 30%);
}

.shape-preview.seal {
    clip-path: polygon(50% 0, 58% 13%, 72% 8%, 76% 23%, 92% 28%, 87% 42%, 100% 50%, 87% 58%, 92% 72%, 76% 77%, 72% 92%, 58% 87%, 50% 100%, 42% 87%, 28% 92%, 24% 77%, 8% 72%, 13% 58%, 0 50%, 13% 42%, 8% 28%, 24% 23%, 28% 8%, 42% 13%);
}

.shape-preview.arrow-right,
.shape-preview.arrow-left,
.shape-preview.arrow-up,
.shape-preview.arrow-down {
    clip-path: polygon(0 28%, 58% 28%, 58% 0, 100% 50%, 58% 100%, 58% 72%, 0 72%);
}

.shape-preview.arrow-left {
    transform: scaleX(-1);
}

.shape-preview.arrow-up {
    transform: rotate(-90deg);
}

.shape-preview.arrow-down {
    transform: rotate(90deg);
}

.shape-preview.chevron-right,
.shape-preview.chevron-left {
    clip-path: polygon(0 18%, 52% 50%, 0 82%, 26% 100%, 100% 50%, 26% 0);
}

.shape-preview.chevron-left {
    transform: scaleX(-1);
}

.shape-preview.flow-terminator {
    border-radius: 999px;
}

.shape-preview.flow-database {
    border-radius: 45% 45% 10% 10% / 18% 18% 10% 10%;
}

.shape-preview.flow-document {
    clip-path: polygon(0 0, 100% 0, 100% 86%, 76% 74%, 52% 86%, 26% 74%, 0 86%);
}

.shape-preview.flow-preparation {
    clip-path: polygon(18% 0, 82% 0, 100% 50%, 82% 100%, 18% 100%, 0 50%);
}

.shape-preview.speech-square {
    clip-path: polygon(0 0, 100% 0, 100% 76%, 32% 76%, 12% 100%, 12% 76%, 0 76%);
}

.shape-preview.speech-round,
.shape-preview.thought-bubble {
    border-radius: 999px;
}

.shape-preview.speech-tail-right {
    clip-path: polygon(0 0, 100% 0, 100% 76%, 86% 76%, 90% 100%, 66% 76%, 0 76%);
}

.shape-preview.cloud,
.shape-preview.cloud-wide {
    border-radius: 999px 999px 55% 55%;
}

.shape-preview.cloud-wide {
    width: 58px;
    height: 30px;
}

.shape-preview.cloud-soft {
    width: 58px;
    height: 34px;
    border-radius: 45% 55% 48% 52%;
}

.shape-preview.heart,
.shape-preview.heart-soft {
    clip-path: polygon(50% 88%, 12% 50%, 4% 28%, 18% 8%, 40% 12%, 50% 28%, 60% 12%, 82% 8%, 96% 28%, 88% 50%);
}

.shape-preview.heart-soft {
    border-radius: 30%;
}

.shape-preview.heart-wide {
    width: 58px;
    clip-path: polygon(50% 88%, 10% 52%, 0 30%, 15% 8%, 40% 14%, 50% 30%, 60% 14%, 85% 8%, 100% 30%, 90% 52%);
}

.shape-preview.banner {
    clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%, 14% 50%);
}

.shape-preview.bookmark {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
}

.shape-preview.ribbon {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.shape-preview.ribbon-notch {
    clip-path: polygon(0 0, 100% 0, 84% 50%, 100% 100%, 0 100%);
}

.shape-preview.flag {
    clip-path: polygon(0 0, 100% 0, 84% 50%, 100% 100%, 0 100%);
}

.shape-preview.teardrop,
.shape-preview.pin {
    border-radius: 80% 0 80% 80%;
    transform: rotate(-45deg);
}

.shape-preview.leaf {
    border-radius: 90% 0 90% 0;
    transform: rotate(-35deg);
}

.shape-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 18, 16, 0.42);
}

.shape-dialog {
    width: min(720px, 94vw);
    max-height: min(760px, 88vh);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(13, 25, 23, 0.32);
}

.shape-dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #d9dee7;
}

.shape-dialog h2 {
    margin: 0;
    font-size: 1.15rem;
}

.shape-dialog-close {
    width: 40px;
    min-height: 40px;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    background: #ffffff;
    color: #202826;
    font-size: 1.4rem;
    cursor: pointer;
}

.shape-dialog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 12px;
    padding: 18px;
    overflow: auto;
}

.shape-dialog-grid button {
    min-height: 110px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 12px 10px;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    background: #ffffff;
    color: #202826;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.shape-dialog-grid small {
    color: #4f5d59;
    font-size: 0.76rem;
    text-align: center;
}

.template-thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.template-thumb {
    display: grid;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #202826;
    text-align: left;
    cursor: pointer;
}

.template-preview {
    position: relative;
    aspect-ratio: 1;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f3f5;
    box-shadow: inset 0 0 0 1px #d9dee7;
}

.template-preview i {
    position: absolute;
    display: block;
    opacity: 0.92;
}

.template-thumb strong,
.template-thumb small {
    padding-inline: 2px;
}

.template-thumb small {
    color: #66736f;
}

.studio-panel-action {
    width: 100%;
    padding: 0 14px;
}

.font-combo-grid,
.element-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.brand-swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.brand-swatches button {
    aspect-ratio: 1;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--swatch);
    box-shadow: 0 0 0 1px #ccd6d1;
    cursor: pointer;
}

.brand-logo-upload {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    background: #f8fafc;
    color: #26322f;
    font-weight: 850;
}

.brand-logo-upload input {
    width: 100%;
    min-height: 38px;
    font: inherit;
}

.brand-logo-upload img {
    width: 100%;
    height: 96px;
    object-fit: contain;
    padding: 10px;
    border-radius: 8px;
    background: #11231f;
    border: 1px solid #d2d8e2;
}

.asset-library {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.asset-item {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    background: #ffffff;
    color: #26322f;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.asset-item.active,
.asset-item:hover {
    border-color: #8b3ffc;
    box-shadow: 0 0 0 2px rgba(139, 63, 252, 0.14);
}

.asset-item img {
    width: 100%;
    height: 78px;
    object-fit: contain;
    border-radius: 6px;
    background: #11231f;
}

.asset-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
}

.asset-item i {
    justify-self: start;
    color: #a44d4d;
    font-style: normal;
    font-size: 0.78rem;
}

.layer-list {
    display: grid;
    gap: 8px;
}

.layer-list button {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    background: #ffffff;
    color: #26322f;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.layer-list button.active,
.layer-list button:hover {
    border-color: #8b3ffc;
    background: #f1e9ff;
    color: #5b2bc6;
}

.design-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    overflow: hidden;
}

.design-toolbar {
    z-index: 15;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #d9dee7;
    backdrop-filter: blur(12px);
    overflow-x: auto;
    overflow-y: hidden;
}

.design-toolbar #selected-text-input {
    min-width: 240px;
    flex: 1;
}

.design-toolbar .text-copy-field {
    display: none;
}

.design-toolbar:not(.has-text-selection) .text-only-tool {
    display: none;
}

.design-toolbar:not(.has-selection) .text-color-button {
    display: none;
}

.design-toolbar select {
    width: 148px;
    flex: 0 0 auto;
}

.font-size-stepper {
    display: grid;
    grid-template-columns: 38px 62px 38px;
    align-items: center;
    min-height: 42px;
    border: 1px solid #d2d8e2;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    flex: 0 0 auto;
}

.font-size-stepper button {
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #202826;
    font-size: 1.2rem;
    font-weight: 800;
}

.font-size-stepper input {
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font: inherit;
    font-weight: 850;
    color: #202826;
    appearance: textfield;
}

.font-size-stepper input::-webkit-outer-spin-button,
.font-size-stepper input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.design-toolbar button {
    padding: 0 12px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.design-toolbar .text-format-button,
.design-toolbar .text-color-button {
    width: 40px;
    min-height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border-color: transparent;
    background: transparent;
    color: #111817;
    font-size: 1.1rem;
    font-weight: 600;
}

.design-toolbar .text-format-button.active {
    background: #ece4ff;
    color: #5a35d6;
}

.text-format-bold {
    font-weight: 900;
}

.text-format-italic {
    font-family: Georgia, serif;
    font-style: italic;
}

.text-format-underline {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.text-format-strike {
    text-decoration: line-through;
}

.text-format-uppercase {
    font-size: 1rem;
}

.design-toolbar .text-color-button {
    gap: 0;
    align-content: center;
}

.text-color-button span {
    line-height: 1;
    font-size: 1.25rem;
    font-weight: 500;
}

.text-color-button i {
    display: block;
    width: 24px;
    height: 5px;
    margin-top: -2px;
    border-radius: 999px;
    background: #11231f;
}

.text-color-button.shape-color-mode span {
    display: none;
}

.text-color-button.shape-color-mode i {
    width: 26px;
    height: 26px;
    margin: 0;
    border: 2px solid #ffffff;
    border-radius: 7px;
    box-shadow: 0 0 0 1px #cbd5df;
}

.sr-only-color {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

.design-toolbar .align-cycle-button {
    width: 46px;
    padding: 0;
    display: grid;
    place-items: center;
    gap: 2px;
    align-content: center;
}

.align-cycle-button span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #202826;
}

.align-cycle-button span:nth-child(1),
.align-cycle-button span:nth-child(3) {
    width: 22px;
}

.align-cycle-button span:nth-child(2),
.align-cycle-button span:nth-child(4) {
    width: 14px;
}

.align-cycle-button[data-current-align="left"] span {
    justify-self: start;
    margin-left: 11px;
}

.align-cycle-button[data-current-align="center"] span {
    justify-self: center;
}

.align-cycle-button[data-current-align="right"] span {
    justify-self: end;
    margin-right: 11px;
}

.design-toolbar .layer-icon-button {
    width: 40px;
    min-height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border-color: transparent;
    background: transparent;
    color: #202826;
    font-size: 1.55rem;
    font-weight: 950;
    line-height: 1;
}

.design-toolbar .layer-icon-button:hover {
    background: #f1e9ff;
    color: #5b2bc6;
}

.design-toolbar .layer-icon-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.trash-icon-button {
    position: relative;
    color: #111817;
}

.trash-icon-button span {
    position: relative;
    width: 16px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.trash-icon-button i {
    position: absolute;
    top: 11px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.trash-icon-button::before {
    content: "";
    position: absolute;
    top: 7px;
    width: 9px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.trash-icon-button::after {
    content: "";
    position: absolute;
    top: 16px;
    width: 10px;
    height: 9px;
    border-inline: 2px solid currentColor;
}

.design-toolbar input[type="color"] {
    width: 44px;
    flex: 0 0 auto;
    padding: 3px;
}

.design-stage {
    min-height: 0;
    overflow: auto;
    display: grid;
    place-items: start center;
    padding: 42px;
}

.design-canvas-wrap {
    width: min(820px, 92vw);
    padding: 14px;
    background: #dfe4ec;
    box-shadow: 0 18px 50px rgba(31, 42, 54, 0.18);
}

.design-canvas {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
}

.design-canvas.canvas-selected {
    outline: 3px solid #8b3ffc;
    outline-offset: 5px;
}

.design-element {
    position: absolute;
    padding: 8px;
    user-select: none;
    cursor: move;
    overflow: visible;
}

.design-element.selected {
    outline: 0;
}

.design-text {
    display: flex;
    align-items: center;
    line-height: 1.05;
    overflow: visible;
    caret-color: #202826;
}

.design-text-content {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 1em;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    outline: 0;
    caret-color: inherit;
}

.design-text-content[contenteditable="true"] {
    user-select: text;
    cursor: text;
}

.design-text-content[contenteditable="true"]:focus {
    outline: 0;
}

.design-shape {
    padding: 0;
}

.design-shape[data-shape-kind^="line-"] {
    background: transparent;
}

.design-shape[data-shape-kind^="line-"]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: max(3px, 0.35em) solid currentColor;
}

.design-shape[data-shape-kind="line-arrow-left"]::after,
.design-shape[data-shape-kind="line-arrow-both"]::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(50% - 9px);
    width: 18px;
    height: 18px;
    border-bottom: max(3px, 0.35em) solid currentColor;
    border-left: max(3px, 0.35em) solid currentColor;
    transform: rotate(45deg);
}

.design-shape[data-shape-kind="line-dashed"]::before {
    border-top-style: dashed;
}

.design-shape[data-shape-kind="line-dotted"]::before {
    border-top-style: dotted;
}

.design-shape[data-shape-kind="line-arrow-right"]::after {
    content: "";
    position: absolute;
    right: 0;
    top: calc(50% - 9px);
    width: 18px;
    height: 18px;
    border-top: max(3px, 0.35em) solid currentColor;
    border-right: max(3px, 0.35em) solid currentColor;
    transform: rotate(45deg);
}

.design-shape[data-shape-kind="rounded-square"],
.design-shape[data-shape-kind="flow-process"] {
    border-radius: 12%;
}

.design-shape[data-shape-kind="circle"] {
    border-radius: 999px;
}

.design-shape[data-shape-kind="pill"],
.design-shape[data-shape-kind="flow-terminator"] {
    border-radius: 999px;
}

.design-shape[data-shape-kind="triangle"] {
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.design-shape[data-shape-kind="triangle-down"] {
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.design-shape[data-shape-kind="trapezoid"] {
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}

.design-shape[data-shape-kind="parallelogram"] {
    clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
}

.design-shape[data-shape-kind="plus"] {
    clip-path: polygon(36% 0, 64% 0, 64% 36%, 100% 36%, 100% 64%, 64% 64%, 64% 100%, 36% 100%, 36% 64%, 0 64%, 0 36%, 36% 36%);
}

.design-shape[data-shape-kind="pentagon"] {
    clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}

.design-shape[data-shape-kind="hexagon"] {
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.design-shape[data-shape-kind="octagon"] {
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.design-shape[data-shape-kind="heptagon"] {
    clip-path: polygon(50% 0, 88% 18%, 100% 58%, 72% 100%, 28% 100%, 0 58%, 12% 18%);
}

.design-shape[data-shape-kind="bevel"] {
    clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
}

.design-shape[data-shape-kind="diamond"],
.design-shape[data-shape-kind="flow-decision"] {
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.design-shape[data-shape-kind="star4"] {
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.design-shape[data-shape-kind="star5"] {
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
}

.design-shape[data-shape-kind="starburst"] {
    clip-path: polygon(50% 0, 61% 24%, 87% 12%, 78% 39%, 100% 50%, 78% 61%, 87% 88%, 61% 76%, 50% 100%, 39% 76%, 13% 88%, 22% 61%, 0 50%, 22% 39%, 13% 12%, 39% 24%);
}

.design-shape[data-shape-kind="star6"] {
    clip-path: polygon(50% 0, 62% 30%, 95% 25%, 72% 50%, 95% 75%, 62% 70%, 50% 100%, 38% 70%, 5% 75%, 28% 50%, 5% 25%, 38% 30%);
}

.design-shape[data-shape-kind="seal"] {
    clip-path: polygon(50% 0, 58% 13%, 72% 8%, 76% 23%, 92% 28%, 87% 42%, 100% 50%, 87% 58%, 92% 72%, 76% 77%, 72% 92%, 58% 87%, 50% 100%, 42% 87%, 28% 92%, 24% 77%, 8% 72%, 13% 58%, 0 50%, 13% 42%, 8% 28%, 24% 23%, 28% 8%, 42% 13%);
}

.design-shape[data-shape-kind="arrow-right"],
.design-shape[data-shape-kind="arrow-left"],
.design-shape[data-shape-kind="arrow-up"],
.design-shape[data-shape-kind="arrow-down"] {
    clip-path: polygon(0 28%, 58% 28%, 58% 0, 100% 50%, 58% 100%, 58% 72%, 0 72%);
}

.design-shape[data-shape-kind="arrow-left"] {
    transform: scaleX(-1);
}

.design-shape[data-shape-kind="arrow-up"] {
    transform: rotate(-90deg);
}

.design-shape[data-shape-kind="arrow-down"] {
    transform: rotate(90deg);
}

.design-shape[data-shape-kind="chevron-right"],
.design-shape[data-shape-kind="chevron-left"] {
    clip-path: polygon(0 18%, 52% 50%, 0 82%, 26% 100%, 100% 50%, 26% 0);
}

.design-shape[data-shape-kind="chevron-left"] {
    transform: scaleX(-1);
}

.design-shape[data-shape-kind="flow-database"] {
    border-radius: 45% 45% 10% 10% / 18% 18% 10% 10%;
}

.design-shape[data-shape-kind="flow-document"] {
    clip-path: polygon(0 0, 100% 0, 100% 86%, 76% 74%, 52% 86%, 26% 74%, 0 86%);
}

.design-shape[data-shape-kind="flow-preparation"] {
    clip-path: polygon(18% 0, 82% 0, 100% 50%, 82% 100%, 18% 100%, 0 50%);
}

.design-shape[data-shape-kind="speech-square"] {
    clip-path: polygon(0 0, 100% 0, 100% 76%, 32% 76%, 12% 100%, 12% 76%, 0 76%);
}

.design-shape[data-shape-kind="speech-tail-right"] {
    clip-path: polygon(0 0, 100% 0, 100% 76%, 86% 76%, 90% 100%, 66% 76%, 0 76%);
}

.design-shape[data-shape-kind="speech-round"],
.design-shape[data-shape-kind="thought-bubble"],
.design-shape[data-shape-kind="cloud"],
.design-shape[data-shape-kind="cloud-wide"] {
    border-radius: 999px;
}

.design-shape[data-shape-kind="cloud"],
.design-shape[data-shape-kind="cloud-wide"] {
    border-radius: 999px 999px 55% 55%;
}

.design-shape[data-shape-kind="cloud-soft"] {
    border-radius: 45% 55% 48% 52%;
}

.design-shape[data-shape-kind="heart"],
.design-shape[data-shape-kind="heart-soft"] {
    clip-path: polygon(50% 88%, 12% 50%, 4% 28%, 18% 8%, 40% 12%, 50% 28%, 60% 12%, 82% 8%, 96% 28%, 88% 50%);
}

.design-shape[data-shape-kind="heart-wide"] {
    clip-path: polygon(50% 88%, 10% 52%, 0 30%, 15% 8%, 40% 14%, 50% 30%, 60% 14%, 85% 8%, 100% 30%, 90% 52%);
}

.design-shape[data-shape-kind="banner"] {
    clip-path: polygon(0 0, 100% 0, 86% 50%, 100% 100%, 0 100%, 14% 50%);
}

.design-shape[data-shape-kind="bookmark"],
.design-shape[data-shape-kind="ribbon"] {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.design-shape[data-shape-kind="ribbon-notch"],
.design-shape[data-shape-kind="flag"] {
    clip-path: polygon(0 0, 100% 0, 84% 50%, 100% 100%, 0 100%);
}

.design-shape[data-shape-kind="teardrop"],
.design-shape[data-shape-kind="pin"] {
    border-radius: 80% 0 80% 80%;
    transform: rotate(-45deg);
}

.design-shape[data-shape-kind="leaf"] {
    border-radius: 90% 0 90% 0;
    transform: rotate(-35deg);
}

.design-selection-box {
    position: absolute;
    border: 2px solid #8b3ffc;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.design-resize-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #8b3ffc;
    box-shadow: 0 4px 12px rgba(31, 42, 54, 0.28);
    pointer-events: auto;
    z-index: 5;
}

.handle-nw {
    left: -9px;
    top: -9px;
    cursor: nwse-resize;
}

.handle-n {
    left: calc(50% - 8px);
    top: -9px;
    cursor: ns-resize;
}

.handle-ne {
    right: -9px;
    top: -9px;
    cursor: nesw-resize;
}

.handle-e {
    right: -9px;
    top: calc(50% - 8px);
    cursor: ew-resize;
}

.handle-se {
    right: -9px;
    bottom: -9px;
    cursor: nwse-resize;
}

.handle-s {
    left: calc(50% - 8px);
    bottom: -9px;
    cursor: ns-resize;
}

.handle-sw {
    left: -9px;
    bottom: -9px;
    cursor: nesw-resize;
}

.handle-w {
    left: -9px;
    top: calc(50% - 8px);
    cursor: ew-resize;
}

.design-logo img,
.design-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.studio-meta-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(150px, 0.55fr) minmax(0, 1.35fr);
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #d9dee7;
}

.studio-meta-panel label {
    display: grid;
    gap: 6px;
    min-width: 0;
    font-weight: 850;
}

@media (max-width: 1180px) {
    .studio-meta-panel {
        grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
    }

    .studio-meta-panel label:last-child {
        grid-column: 1 / -1;
    }
}

.ollama-scan-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ollama-scan-form label {
    display: grid;
    gap: 6px;
    color: var(--ink-strong);
    font-weight: 800;
}

.auth-wrap {
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: 36px 18px;
}

.auth-card {
    width: min(460px, 100%);
    display: grid;
    gap: 16px;
}

.auth-card h1 {
    margin: 0;
}

.auth-card label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.auth-demo-button {
    color: var(--teal);
    background: #eef8f4;
    border-color: #b7dbce;
}

.auth-card input:focus {
    border-color: var(--teal);
    outline: 2px solid rgba(42, 167, 155, 0.18);
}

.checkbox-row,
.auth-card .checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input,
.auth-card .checkbox-row input,
.workspace-form input[type="checkbox"] {
    width: auto;
    min-height: 0;
}

.choice-group {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-group legend {
    margin-bottom: 2px;
    font-weight: 850;
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.choice-row input {
    width: auto;
    min-height: 0;
}

.auth-card .choice-row {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
}

.auth-card .choice-row input[type="radio"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
}

.quiet-link {
    color: var(--teal);
    font-weight: 800;
    text-decoration: none;
}

.demo-logins {
    display: grid;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.error {
    color: var(--danger);
    font-weight: 800;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(220px, auto);
    align-items: flex-start;
    gap: 24px;
    margin-top: 72px;
    padding: 24px clamp(18px, 4vw, 56px);
    color: #f8fbf8;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
    margin: 6px 0 0;
    color: #b8c7c1;
}

.site-footer div:last-child {
    display: grid;
    gap: 6px;
    text-align: right;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
}

.site-footer nav a {
    color: #b8c7c1;
    font-size: 0.92rem;
    text-decoration: none;
}

.site-footer nav a:hover {
    color: #90e0c4;
}

@media (max-width: 860px) {
    .site-header {
        position: static;
        display: grid;
        gap: 14px;
    }

    .brand {
        min-width: 0;
    }

    .main-nav {
        justify-content: start;
    }

    .hero-inner,
    .section-grid,
    .dashboard-columns,
    .cards,
    .metric-grid,
    .proof-strip,
    .question-section,
    .topic-link-panel,
    .topic-link-grid,
    .report-chart,
    .workspace-split,
    .settings-grid,
    .calendar-layout,
    .analytics-grid,
    .product-update-grid,
    .platform-card-grid,
    .executive-kpis,
    .executive-chart-grid,
    .site-footer,
    .workspace-heading,
    .score-row {
        grid-template-columns: 1fr;
    }

    .design-topbar,
    .design-app,
    .studio-meta-panel {
        grid-template-columns: 1fr;
    }

    .design-studio {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .design-topbar {
        position: static;
    }

    .design-rail {
        display: flex;
        overflow-x: auto;
        padding: 8px;
        border-right: 0;
        border-bottom: 1px solid #d9dee7;
    }

    .design-rail button {
        min-width: 96px;
        min-height: 44px;
    }

    .design-panel {
        max-height: none;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid #d9dee7;
    }

    .design-toolbar {
        position: static;
        flex-wrap: wrap;
        overflow: visible;
    }

    .design-workspace-tabs .workspace-nav {
        flex-wrap: wrap;
    }

    .design-stage {
        min-height: auto;
        padding: 18px;
    }

    .design-canvas-wrap {
        width: min(680px, 100%);
    }

    .hero-inner {
        min-height: auto;
        padding: 40px 0 44px;
    }

    .hero-backdrop {
        background:
            linear-gradient(180deg, rgba(7, 17, 17, 0.93) 0%, rgba(7, 17, 17, 0.86) 54%, rgba(7, 17, 17, 0.8) 100%),
            url("/static/img/hero-calm-ai-visibility.png") center / cover no-repeat;
    }

    .hero h1 {
        font-size: clamp(2.05rem, 9.5vw, 3rem);
    }

    .signal-panel {
        max-width: 480px;
    }

    .proof-strip {
        margin-top: -18px;
    }

    .calendar-card {
        overflow-x: auto;
    }

    .calendar-table {
        min-width: 720px;
    }

    .calendar-table td,
    .day-link {
        height: 96px;
        min-height: 96px;
    }

    .funnel-bars div,
    .donut-list div {
        grid-template-columns: 70px minmax(0, 1fr) 34px;
    }

    .site-footer div:last-child {
        text-align: left;
    }

    .site-footer nav {
        justify-content: start;
    }
}
