:root {
    --ops-ink: #15221d;
    --ops-muted: #617069;
    --ops-line: #dce6e0;
    --ops-soft: #f5f8f6;
    --ops-accent: #0e9f6e;
    --ops-accent-dark: #087f5b;
    --ops-warn: #c47a0a;
    --ops-fail: #c2413b;
}

.ops-shell,
.opr-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; color: var(--ops-ink); }
.ops-shell { padding: 70px 0 90px; }
.ops-landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ops-landing-actions a,
.ops-landing-cta > a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.ops-landing-primary,
.ops-landing-cta > a { background: var(--ops-accent); color: #fff; }
.ops-landing-primary:hover,
.ops-landing-cta > a:hover { background: var(--ops-accent-dark); }
.ops-landing-secondary { border: 1px solid var(--ops-line); background: #fff; color: var(--ops-ink); }
.ops-hero { max-width: 850px; margin-bottom: 34px; }
.ops-eyebrow,
.opr-kicker,
.opr-panel-head span { color: var(--ops-accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ops-hero h1 { margin: 10px 0 14px; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.ops-hero > p { max-width: 730px; color: var(--ops-muted); font-size: 18px; line-height: 1.7; }
.ops-boundary-note { margin-top: 20px; padding: 15px 18px; border: 1px solid var(--ops-line); border-left: 4px solid var(--ops-accent); border-radius: 12px; background: #fff; color: var(--ops-muted); }
.ops-disabled { margin-bottom: 25px; padding: 18px 22px; border: 1px solid #efc47c; border-radius: 14px; background: #fff9eb; }
.ops-disabled p { margin: 5px 0 0; color: #725421; }
.ops-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
.ops-form,
.ops-side article,
.ops-plan-card,
.opr-panel { border: 1px solid var(--ops-line); border-radius: 18px; background: #fff; box-shadow: 0 16px 45px rgba(31, 54, 44, .055); }
.ops-form { overflow: hidden; }
.ops-form-section { padding: 28px; border-bottom: 1px solid var(--ops-line); }
.ops-step { display: flex; gap: 13px; align-items: center; margin-bottom: 20px; }
.ops-step > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--ops-ink); color: #fff; font-size: 12px; font-weight: 800; }
.ops-step strong,
.ops-step small { display: block; }
.ops-step small { margin-top: 3px; color: var(--ops-muted); }
.ops-field { display: grid; gap: 8px; font-weight: 700; }
.ops-field input,
.ops-field select,
.ops-field textarea { width: 100%; border: 1px solid #cbd8d0; border-radius: 10px; padding: 13px 14px; background: #fff; color: var(--ops-ink); font: inherit; font-weight: 500; }
.ops-field input:focus,
.ops-field select:focus,
.ops-field textarea:focus { outline: 3px solid rgba(14,159,110,.14); border-color: var(--ops-accent); }
.ops-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ops-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ops-type-card { position: relative; cursor: pointer; }
.ops-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.ops-type-card > span { display: block; min-height: 118px; padding: 16px; border: 1px solid var(--ops-line); border-radius: 12px; background: var(--ops-soft); transition: .18s ease; }
.ops-type-card strong,
.ops-type-card small { display: block; }
.ops-type-card small { margin-top: 7px; color: var(--ops-muted); font-weight: 500; line-height: 1.45; }
.ops-type-card input:checked + span { border-color: var(--ops-accent); background: #effbf6; box-shadow: inset 0 0 0 1px var(--ops-accent); }
.ops-type-card input:focus-visible + span { outline: 3px solid rgba(14,159,110,.18); }
.ops-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--ops-muted); font-size: 14px; }
.ops-consent input { margin-top: 3px; }
.ops-submit { display: flex; width: calc(100% - 56px); margin: 26px 28px; justify-content: space-between; align-items: center; padding: 15px 18px; border: 0; border-radius: 11px; background: var(--ops-accent); color: #fff; cursor: pointer; font: inherit; }
.ops-submit span { font-weight: 800; }
.ops-submit small { color: #d9fff0; }
.ops-submit:hover { background: var(--ops-accent-dark); }
.ops-submit:disabled { cursor: not-allowed; opacity: .5; }
.ops-side { display: grid; gap: 14px; }
.ops-side article,
.ops-plan-card { padding: 20px; }
.ops-side article strong { display: block; margin: 10px 0 6px; }
.ops-side article p,
.ops-plan-card p { margin: 0; color: var(--ops-muted); font-size: 14px; line-height: 1.6; }
.ops-side-icon { color: var(--ops-accent); font-weight: 900; }
.ops-plan-card { border-color: #a8ddc7; background: #effbf6; }
.ops-landing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.ops-landing-grid article,
.ops-plan-list article { padding: 25px; border: 1px solid var(--ops-line); border-radius: 18px; background: #fff; box-shadow: 0 16px 45px rgba(31, 54, 44, .055); }
.ops-landing-grid article > span { color: var(--ops-accent); font-weight: 900; }
.ops-landing-grid h2 { margin: 14px 0 8px; font-size: 21px; }
.ops-landing-grid p,
.ops-landing-detail p,
.ops-landing-cta p { color: var(--ops-muted); line-height: 1.65; }
.ops-landing-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; margin-top: 75px; }
.ops-landing-detail h2,
.ops-landing-cta h2 { margin: 9px 0 12px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.ops-plan-list { display: grid; gap: 14px; }
.ops-plan-list strong { font-size: 18px; }
.ops-plan-list p { margin-bottom: 0; }
.ops-landing-cta { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 75px; padding: 34px; border-radius: 20px; background: #12271f; color: #fff; }
.ops-landing-cta h2 { margin-bottom: 0; }
.ops-landing-copy,
.ops-landing-faq { max-width: 900px; margin-top: 72px; }
.ops-landing-copy h2,
.ops-landing-faq h2 { margin: 9px 0 16px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.ops-landing-copy p { color: var(--ops-muted); font-size: 17px; line-height: 1.8; }
.ops-landing-copy a { color: var(--ops-accent-dark); font-weight: 800; }
.ops-landing-faq > div { display: grid; gap: 10px; }
.ops-landing-faq details { border: 1px solid var(--ops-line); border-radius: 13px; background: #fff; }
.ops-landing-faq summary { padding: 18px 20px; cursor: pointer; font-weight: 800; }
.ops-landing-faq details p { margin: 0; padding: 0 20px 20px; color: var(--ops-muted); line-height: 1.7; }

.ops-shell--dashboard,
.opr-shell--embedded { width: 100%; margin: 0; }
.ops-shell--dashboard { padding: 0; }
.ops-layout--dashboard { grid-template-columns: minmax(0, 1fr) 290px; }
.opr-shell--embedded { padding: 0 0 30px; }
.opr-topbar--dashboard { padding-top: 4px; }
.opr-topbar--dashboard > div:first-child strong { display: block; margin-top: 4px; font-size: 20px; }

.opr-shell { padding: 20px 0 90px; }
.opr-topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 28px; }
.opr-brand { display: flex; align-items: center; gap: 10px; color: var(--ops-ink); text-decoration: none; }
.opr-brand img { width: 34px; height: 34px; object-fit: contain; }
.opr-brand strong,
.opr-brand small { display: block; }
.opr-brand small { color: var(--ops-muted); }
.opr-actions { display: flex; gap: 10px; align-items: center; }
.opr-actions a { padding: 9px 13px; color: var(--ops-ink); text-decoration: none; font-weight: 700; }
.opr-actions .primary { border-radius: 9px; background: var(--ops-ink); color: #fff; }
.opr-hero { display: grid; grid-template-columns: 1fr 190px; gap: 35px; align-items: center; padding: 42px; border-radius: 22px; background: #12271f; color: #fff; }
.opr-hero h1 { margin: 9px 0 10px; font-size: clamp(30px, 5vw, 51px); line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
.opr-url { color: #83e4bb; overflow-wrap: anywhere; }
.opr-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: #bed1c8; font-size: 13px; }
.opr-score { display: grid; width: 170px; height: 170px; place-items: center; justify-self: end; border-radius: 50%; background: conic-gradient(#45d497 calc(var(--score) * 1%), #314c41 0); text-align: center; position: relative; }
.opr-score::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #12271f; }
.opr-score > * { position: relative; z-index: 1; }
.opr-score div strong { display: block; font-size: 45px; line-height: 1; }
.opr-score div small,
.opr-score > span { color: #bed1c8; }
.opr-score.is-unavailable { background: #314c41; }
.opr-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.opr-summary-grid article { padding: 19px; border: 1px solid var(--ops-line); border-radius: 13px; background: #fff; }
.opr-summary-grid span,
.opr-summary-grid strong { display: block; }
.opr-summary-grid span { color: var(--ops-muted); font-size: 13px; }
.opr-summary-grid strong { margin-top: 4px; font-size: 25px; }
.opr-alert { margin: 18px 0; padding: 18px 21px; border-radius: 13px; }
.opr-alert p { margin: 5px 0 0; }
.opr-alert.is-warning { background: #fff6e5; color: #704b12; }
.opr-alert.is-error { background: #fff0ee; color: #822b25; }
.opr-panel { margin-top: 18px; padding: 26px; }
.opr-panel-head { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; margin-bottom: 20px; }
.opr-panel-head h2 { margin: 4px 0 0; font-size: 24px; }
.opr-panel-head p { max-width: 400px; margin: 0; color: var(--ops-muted); font-size: 13px; text-align: right; }
.opr-dimensions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.opr-dimensions article > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.opr-dimensions small { color: var(--ops-muted); }
.opr-bar { height: 8px; margin: 9px 0 6px; overflow: hidden; border-radius: 9px; background: #e8eeea; }
.opr-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ops-accent); }
.opr-comparison-score strong { font-size: 38px; }
.opr-comparison-score span { margin-left: 7px; color: var(--ops-muted); }
.opr-change-list { display: grid; gap: 7px; margin-top: 15px; }
.opr-change-list > div { display: grid; grid-template-columns: 1fr auto auto auto; gap: 9px; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--ops-soft); }
.opr-change-list span { padding: 3px 7px; border-radius: 6px; font-size: 12px; }
.opr-priorities { display: grid; gap: 10px; }
.opr-priorities article { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 17px; border-left: 4px solid var(--ops-warn); border-radius: 11px; background: var(--ops-soft); }
.opr-priorities article.ops-fail { border-left-color: var(--ops-fail); }
.opr-priorities article > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #fff; font-weight: 800; }
.opr-priorities h3 { margin: 3px 0 7px; }
.opr-priorities p { margin: 0; color: var(--ops-muted); }
.opr-priorities ul { margin-bottom: 0; color: var(--ops-muted); }
.opr-ai { border-color: #a8ddc7; background: linear-gradient(145deg, #fff, #f1fbf6); }
.opr-ai-status { padding: 6px 9px; border-radius: 7px; background: #dff6eb; }
.opr-ai-purpose,
.opr-quick-answer { padding: 17px; border-radius: 11px; background: #fff; }
.opr-ai-purpose p,
.opr-quick-answer p { margin-bottom: 0; line-height: 1.65; }
.opr-ai-states,
.opr-ai-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.opr-ai-states > div,
.opr-ai-columns > article { padding: 16px; border-radius: 11px; background: #fff; }
.opr-ai-states span,
.opr-ai-states strong { display: block; }
.opr-ai-states span { color: var(--ops-muted); font-size: 13px; }
.opr-ai-columns h3 { margin-top: 0; }
.opr-quick-answer { margin-top: 12px; }
.opr-quick-answer small { color: var(--ops-muted); }
.opr-ai-empty button,
.opr-ai-empty a { display: inline-block; padding: 10px 14px; border: 0; border-radius: 8px; background: var(--ops-accent); color: #fff; cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; }
.opr-checks { display: grid; gap: 8px; }
.opr-check { border: 1px solid var(--ops-line); border-left: 4px solid #93a29b; border-radius: 10px; background: #fff; }
.opr-check.ops-pass { border-left-color: var(--ops-accent); }
.opr-check.ops-warn { border-left-color: var(--ops-warn); }
.opr-check.ops-fail { border-left-color: var(--ops-fail); }
.opr-check summary { display: grid; grid-template-columns: 75px 1fr auto; gap: 12px; align-items: center; padding: 15px; cursor: pointer; }
.opr-check summary span { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.opr-check summary small { color: var(--ops-muted); }
.opr-check > div { padding: 0 18px 18px 102px; color: var(--ops-muted); }
.opr-check h4 { margin-bottom: 5px; color: var(--ops-ink); }
.opr-limitations ul { color: var(--ops-muted); line-height: 1.7; }
.opr-delete { margin-top: 18px; text-align: right; }
.opr-delete button { border: 0; background: transparent; color: var(--ops-fail); cursor: pointer; font: inherit; }
.ops-pass { color: var(--ops-accent-dark); }
.ops-warn { color: var(--ops-warn); }
.ops-fail { color: var(--ops-fail); }

@media (max-width: 900px) {
    .ops-layout { grid-template-columns: 1fr; }
    .ops-side { grid-template-columns: repeat(2, 1fr); }
    .ops-type-grid { grid-template-columns: repeat(2, 1fr); }
    .ops-landing-grid { grid-template-columns: 1fr; }
    .ops-landing-detail { grid-template-columns: 1fr; }
    .opr-hero { grid-template-columns: 1fr; }
    .opr-score { justify-self: start; }
}

@media (max-width: 620px) {
    .ops-shell,
    .opr-shell { width: min(100% - 20px, 1180px); }
    .ops-shell { padding-top: 42px; }
    .ops-form-section { padding: 20px; }
    .ops-submit { width: calc(100% - 40px); margin: 20px; align-items: flex-start; flex-direction: column; gap: 3px; }
    .ops-type-grid,
    .ops-field-row,
    .ops-side,
    .opr-summary-grid,
    .opr-dimensions,
    .opr-ai-states,
    .opr-ai-columns { grid-template-columns: 1fr; }
    .ops-landing-cta { align-items: flex-start; flex-direction: column; }
    .opr-topbar,
    .opr-actions { align-items: flex-start; }
    .opr-topbar { gap: 15px; flex-direction: column; }
    .opr-hero { padding: 25px; }
    .opr-panel { padding: 19px; }
    .opr-panel-head { flex-direction: column; }
    .opr-panel-head p { text-align: left; }
    .opr-check summary { grid-template-columns: 62px 1fr auto; gap: 7px; }
    .opr-check > div { padding-left: 18px; }
}

/* Dashboard premium UI */
.workspace-nav-item.is-locked {
    position: relative;
    border: 1px dashed rgba(97, 112, 105, .28);
    background: rgba(255, 255, 255, .04);
    cursor: not-allowed;
    opacity: .72;
}
.workspace-nav-item.is-locked .material-symbols-outlined { opacity: .68; }
.workspace-nav-soon {
    margin-left: auto;
    padding: 3px 7px;
    border: 1px solid rgba(14, 159, 110, .22);
    border-radius: 999px;
    background: rgba(14, 159, 110, .09);
    color: #0e9f6e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ops-workspace-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
    padding: 24px;
    border: 1px solid var(--ops-line);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #f7fbf9 100%);
    box-shadow: 0 18px 50px rgba(19, 42, 32, .055);
}
.ops-workspace-title { display: flex; align-items: flex-start; gap: 17px; }
.ops-workspace-mark {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #e9f8f2;
    color: var(--ops-accent-dark);
    font-size: 27px;
}
.ops-workspace-title h2 { margin: 4px 0 7px; color: var(--ops-ink); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -.025em; }
.ops-workspace-title p { max-width: 760px; margin: 0; color: var(--ops-muted); line-height: 1.65; }
.ops-workspace-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.ops-workspace-actions > a { display: inline-flex; min-height: 46px; align-items: center; gap: 7px; padding: 0 16px; border-radius: 11px; background: var(--ops-ink); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.ops-workspace-actions > a:hover { background: #21382f; transform: translateY(-1px); }
.ops-plan-pill { padding: 7px 10px; border-radius: 999px; background: #e9f8f2; color: var(--ops-accent-dark); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

.ops-form { border-radius: 20px; box-shadow: 0 20px 60px rgba(18, 39, 31, .07); }
.ops-form-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px; border-bottom: 1px solid var(--ops-line); background: linear-gradient(135deg, #fbfdfc, #f2f9f6); }
.ops-form-intro h3 { margin: 7px 0 8px; color: var(--ops-ink); font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.ops-form-intro p { max-width: 720px; margin: 0; color: var(--ops-muted); font-size: 14px; line-height: 1.65; }
.ops-time { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #cfe4da; border-radius: 999px; background: #fff; color: var(--ops-muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ops-time .material-symbols-outlined { color: var(--ops-accent); font-size: 16px; }
.ops-form-section { padding: 30px 28px; }
.ops-step { align-items: flex-start; margin-bottom: 22px; }
.ops-step > span { flex: 0 0 32px; width: 32px; height: 32px; background: #e5f6ef; color: var(--ops-accent-dark); }
.ops-step strong { color: var(--ops-ink); font-size: 17px; }
.ops-step small { max-width: 720px; line-height: 1.55; }
.ops-field > span { color: var(--ops-ink); font-size: 13px; }
.ops-field > small { color: var(--ops-muted); font-size: 12px; font-weight: 500; }
.ops-field input,
.ops-field select,
.ops-field textarea { min-height: 49px; border-color: #ccd9d3; border-radius: 12px; transition: border-color .18s ease, box-shadow .18s ease; }
.ops-url-field > div { position: relative; }
.ops-url-field > div > .material-symbols-outlined { position: absolute; left: 14px; top: 50%; z-index: 1; color: #84928b; font-size: 20px; transform: translateY(-50%); }
.ops-url-field input { padding-left: 44px; font-weight: 650; }
.ops-type-grid { gap: 12px; }
.ops-type-card > span { position: relative; min-height: 132px; padding: 17px; border-color: #d8e2dd; border-radius: 14px; background: #f7faf8; }
.ops-type-card:hover > span { border-color: #a9c9ba; background: #fbfdfc; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(22, 48, 37, .055); }
.ops-type-card input:checked + span { border-color: #11a775; background: #f0faf6; box-shadow: inset 0 0 0 1px #11a775, 0 10px 25px rgba(14, 159, 110, .08); }
.ops-type-icon { display: grid; width: 34px; height: 34px; margin-bottom: 13px; place-items: center; border-radius: 10px; background: #e7efeb; color: #50625a; font-size: 20px; }
.ops-type-card input:checked + span .ops-type-icon { background: #d8f4e8; color: var(--ops-accent-dark); }
.ops-type-check { position: absolute; top: 14px; right: 14px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--ops-accent); color: #fff; font-size: 15px; opacity: 0; transform: scale(.8); transition: .18s ease; }
.ops-type-card input:checked + span .ops-type-check { opacity: 1; transform: scale(1); }
.ops-type-card strong { color: var(--ops-ink); font-size: 15px; line-height: 1.3; }
.ops-type-card small { font-size: 12px; line-height: 1.5; }
.ops-intent-section { background: #f8fbfa; }
.ops-context { border-bottom: 1px solid var(--ops-line); background: #fff; }
.ops-context > summary { display: grid; grid-template-columns: 38px 1fr auto; gap: 13px; align-items: center; padding: 22px 28px; cursor: pointer; list-style: none; }
.ops-context > summary::-webkit-details-marker { display: none; }
.ops-context > summary > .material-symbols-outlined:first-child { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--ops-soft); color: var(--ops-accent-dark); }
.ops-context summary strong,
.ops-context summary small { display: block; }
.ops-context summary strong { color: var(--ops-ink); font-size: 15px; }
.ops-context summary small { margin-top: 3px; color: var(--ops-muted); font-size: 12px; }
.ops-context-toggle { color: var(--ops-muted); transition: transform .18s ease; }
.ops-context[open] .ops-context-toggle { transform: rotate(180deg); }
.ops-context-body { padding: 0 28px 28px 79px; }
.ops-form-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); gap: 24px; align-items: center; padding: 24px 28px; background: #fbfdfc; }
.ops-consent { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; margin: 0; cursor: pointer; }
.ops-consent input { position: absolute !important; width: 1px !important; min-width: 0 !important; height: 1px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden; opacity: 0; }
.ops-consent-box { display: grid; width: 20px; height: 20px; margin-top: 1px; place-items: center; border: 1.5px solid #aebdb5; border-radius: 6px; background: #fff; color: #fff; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.ops-consent-box .material-symbols-outlined { font-size: 15px; font-weight: 800; opacity: 0; transform: scale(.7); transition: opacity .16s ease, transform .16s ease; }
.ops-consent input:checked + .ops-consent-box { border-color: var(--ops-accent); background: var(--ops-accent); box-shadow: 0 4px 12px rgba(14, 159, 110, .22); }
.ops-consent input:checked + .ops-consent-box .material-symbols-outlined { opacity: 1; transform: scale(1); }
.ops-consent input:focus-visible + .ops-consent-box { outline: 3px solid rgba(14, 159, 110, .2); outline-offset: 2px; }
.ops-consent input:disabled + .ops-consent-box { cursor: not-allowed; opacity: .55; }
.ops-consent strong,
.ops-consent small { display: block; }
.ops-consent strong { color: var(--ops-ink); font-size: 13px; }
.ops-consent small { margin-top: 3px; color: var(--ops-muted); font-size: 12px; }
.ops-submit { display: grid; width: 100%; min-height: 58px; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; margin: 0; padding: 10px 15px; border-radius: 13px; box-shadow: 0 10px 24px rgba(14, 159, 110, .18); text-align: left; }
.ops-submit:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(8, 127, 91, .23); }
.ops-submit-copy strong,
.ops-submit-copy small { display: block; }
.ops-submit-copy strong { font-size: 14px; }
.ops-submit-copy small { margin-top: 2px; color: #d9fff0; font-size: 10px; }
.ops-submit-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .15); font-size: 20px; }
.ops-side { position: sticky; top: 86px; gap: 13px; }
.ops-side article { padding: 20px; border-radius: 16px; box-shadow: 0 14px 35px rgba(31, 54, 44, .045); }
.ops-side-heading { display: flex; align-items: center; gap: 11px; }
.ops-side-heading > .material-symbols-outlined { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #dff5ea; color: var(--ops-accent-dark); }
.ops-side-heading small,
.ops-side-heading strong { display: block; }
.ops-side-heading small { color: var(--ops-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ops-side-heading strong { margin: 2px 0 0 !important; color: var(--ops-ink); font-size: 16px; }
.ops-plan-overview > p { margin-top: 14px !important; }
.ops-side-guide ul { display: grid; gap: 16px; margin: 17px 0 0; padding: 0; list-style: none; }
.ops-side-guide li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.ops-side-guide li > .material-symbols-outlined { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--ops-soft); color: var(--ops-accent-dark); font-size: 17px; }
.ops-side-guide li strong,
.ops-side-guide li small { display: block; }
.ops-side-guide li strong { margin: 0; color: var(--ops-ink); font-size: 12px; }
.ops-side-guide li small { margin-top: 2px; color: var(--ops-muted); font-size: 11px; line-height: 1.45; }
.ops-side-note { display: flex; gap: 8px; margin: 0; padding: 12px 14px; border: 1px solid #dbe6e0; border-radius: 13px; background: #f7faf8; color: var(--ops-muted); font-size: 11px; line-height: 1.5; }
.ops-side-note .material-symbols-outlined { flex: 0 0 auto; color: var(--ops-accent-dark); font-size: 17px; }

.opr-shell--embedded { border-top: 0; padding-top: 0; }
.opr-topbar { padding: 0 2px 16px; }
.dashboard-light .opr-topbar--dashboard,
.dark .opr-topbar--dashboard { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.opr-topbar--dashboard > div:first-child strong { color: var(--ops-ink); font-size: 22px; }
.opr-topbar--dashboard > div:first-child small { display: block; margin-top: 3px; color: var(--ops-muted); font-size: 12px; }
.opr-actions { flex-wrap: wrap; }
.opr-actions a { display: inline-flex; min-height: 42px; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; }
.opr-actions a:not(.primary):hover { border-color: var(--ops-line); background: var(--ops-soft); }
.opr-actions a .material-symbols-outlined { font-size: 17px; }
.opr-actions .primary { padding: 0 15px; }
.opr-hero { grid-template-columns: minmax(0, 1fr) 190px; padding: 34px 38px; overflow: hidden; border: 1px solid #1d4435; border-radius: 22px; background: radial-gradient(circle at 88% 18%, rgba(69, 212, 151, .18), transparent 30%), linear-gradient(135deg, #0b241b 0%, #12372a 100%); box-shadow: 0 22px 55px rgba(8, 32, 23, .16); }
.opr-hero-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.opr-hero-badges span { padding: 5px 9px; border: 1px solid rgba(126, 225, 184, .25); border-radius: 999px; background: rgba(116, 226, 180, .09); color: #8ce9c1; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.dashboard-light .opr-hero .opr-hero-copy h2,
.opr-hero .opr-hero-copy h2 { max-width: 800px; margin: 14px 0 11px; color: #f5fff9 !important; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.opr-url { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; color: #78e4b7; font-size: 14px; text-decoration: none; }
.opr-url:hover { color: #b1f5d7; text-decoration: underline; }
.opr-url .material-symbols-outlined { flex: 0 0 auto; font-size: 15px; }
.opr-meta { gap: 9px; margin-top: 20px; }
.opr-meta > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #c6d9d0; font-size: 11px; }
.opr-meta .material-symbols-outlined { color: #72dcae; font-size: 14px; }
.opr-agent-prompt { display: inline-grid; min-width: min(100%, 330px); grid-template-columns: 36px 1fr 22px; gap: 10px; align-items: center; margin-top: 18px; padding: 10px 12px; border: 1px solid rgba(117, 230, 183, .32); border-radius: 12px; background: rgba(91, 221, 166, .1); color: #effff8; cursor: pointer; font: inherit; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.opr-agent-prompt:hover { border-color: rgba(129, 239, 194, .62); background: rgba(91, 221, 166, .17); transform: translateY(-1px); }
.opr-agent-prompt:focus-visible { outline: 3px solid rgba(99, 226, 174, .28); outline-offset: 3px; }
.opr-agent-prompt > .material-symbols-outlined:first-child { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #42d497; color: #092319; font-size: 19px; }
.opr-agent-prompt strong,
.opr-agent-prompt small { display: block; }
.opr-agent-prompt strong { color: #f4fff9; font-size: 12px; }
.opr-agent-prompt small { margin-top: 2px; color: #a9cfc0; font-size: 9px; line-height: 1.4; }
.opr-agent-prompt-action { color: #7ee4ba; font-size: 18px; }
.opr-agent-prompt.is-copied { border-color: #6ce4b3; background: rgba(66, 212, 151, .22); }
.opr-score { width: 166px; height: 166px; background: conic-gradient(#42d497 calc(var(--score) * 1%), rgba(255, 255, 255, .11) 0); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.opr-score::before { inset: 10px; background: #123329; }
.opr-score > div { width: 125px; }
.dashboard-light .opr-score strong,
.opr-score strong { color: #fff !important; font-size: 43px !important; }
.opr-score div small { display: block; margin-top: 2px; color: #a9c7ba; font-size: 10px; }
.opr-score div span { display: block; margin-top: 9px; color: #d5e8df; font-size: 12px; font-weight: 750; line-height: 1.3; }
.opr-tabs { position: sticky; top: 64px; z-index: 12; display: flex; gap: 5px; margin: 20px 0 0; padding: 6px; overflow-x: auto; border: 1px solid var(--ops-line); border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 9px 28px rgba(23, 48, 38, .07); backdrop-filter: blur(12px); scrollbar-width: none; }
.opr-tabs::-webkit-scrollbar { display: none; }
.opr-tabs button { display: inline-flex; min-height: 42px; flex: 1 0 auto; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 0; border-radius: 10px; background: transparent; color: var(--ops-muted); cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; }
.opr-tabs button:hover { background: var(--ops-soft); color: var(--ops-ink); }
.opr-tabs button[aria-selected="true"] { background: var(--ops-ink); color: #fff; box-shadow: 0 6px 15px rgba(21, 34, 29, .14); }
.opr-tabs button .material-symbols-outlined { font-size: 18px; }
.opr-tabs button b { min-width: 21px; padding: 2px 6px; border-radius: 999px; background: rgba(97, 112, 105, .11); font-size: 10px; }
.opr-tabs button[aria-selected="true"] b { background: rgba(255, 255, 255, .15); }
.opr-tab-panel { padding-top: 2px; }
.opr-tab-panel[hidden] { display: none !important; }
.opr-summary-grid { gap: 13px; margin: 18px 0 0; }
.opr-summary-grid article { position: relative; display: grid; min-height: 142px; grid-template-columns: 36px 1fr; gap: 12px; padding: 20px; overflow: hidden; border-radius: 16px; box-shadow: 0 10px 30px rgba(24, 48, 38, .035); }
.opr-summary-grid article > .material-symbols-outlined { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #edf3f0; color: var(--ops-muted); font-size: 19px; }
.opr-summary-grid article.is-pass > .material-symbols-outlined { background: #e5f6ee; color: var(--ops-accent-dark); }
.opr-summary-grid article.is-warning > .material-symbols-outlined { background: #fff2d9; color: var(--ops-warn); }
.opr-summary-grid article.is-score > .material-symbols-outlined { background: #e8f1ff; color: #3267a8; }
.opr-summary-grid article.is-type > .material-symbols-outlined { background: #f0ebff; color: #6a4aac; }
.opr-summary-grid article small { color: var(--ops-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.opr-summary-grid article strong { margin-top: 5px; color: var(--ops-ink); font-size: 24px; line-height: 1.1; }
.opr-summary-grid article strong em { margin-left: 2px; color: var(--ops-muted); font-size: 11px; font-style: normal; }
.opr-summary-grid article p { margin: 7px 0 0; color: var(--ops-muted); font-size: 11px; line-height: 1.45; }
.opr-alert { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; }
.opr-alert > .material-symbols-outlined { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .58); }
.opr-alert a { display: inline-flex; margin-top: 9px; color: inherit; font-size: 12px; font-weight: 800; }
.opr-panel { border-radius: 17px; box-shadow: 0 14px 40px rgba(25, 52, 40, .045); }
.opr-panel-head h3 { margin: 5px 0 0; color: var(--ops-ink); font-size: 22px; line-height: 1.2; }
.opr-panel-head > div > span { color: var(--ops-accent-dark); }
.opr-panel-head > a { color: var(--ops-accent-dark); font-size: 12px; font-weight: 800; }
.opr-next-step { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center; background: linear-gradient(135deg, #f3fbf7, #fff); }
.opr-next-step-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: var(--ops-accent); color: #fff; }
.opr-next-step h3 { margin: 4px 0 4px; color: var(--ops-ink); font-size: 18px; }
.opr-next-step p { margin: 0; color: var(--ops-muted); font-size: 13px; line-height: 1.55; }
.opr-next-step button { display: inline-flex; min-height: 42px; align-items: center; gap: 6px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--ops-ink); color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.opr-next-step button .material-symbols-outlined { font-size: 16px; }
.opr-dimensions { gap: 21px 28px; }
.opr-dimensions article { padding: 15px; border: 1px solid #e1e9e5; border-radius: 12px; background: #fbfdfc; }
.opr-dimensions article > div:first-child strong { color: var(--ops-ink); font-size: 13px; }
.opr-dimensions article > div:first-child span { color: var(--ops-accent-dark); font-size: 13px; font-weight: 850; }
.opr-section-intro { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding: 30px 4px 6px; }
.opr-section-intro h3 { margin: 5px 0 7px; color: var(--ops-ink); font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.opr-section-intro p { max-width: 760px; margin: 0; color: var(--ops-muted); font-size: 13px; line-height: 1.6; }
.opr-count-badge,
.opr-ai-status { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #fff2d9; color: #8f5a06; font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.opr-count-badge.is-pass { background: #e4f6ed; color: var(--ops-accent-dark); }
.opr-empty-state { margin-top: 18px; padding: 55px 25px; border: 1px dashed #c9d8d0; border-radius: 18px; background: #fbfdfc; text-align: center; }
.opr-empty-state > .material-symbols-outlined { display: grid; width: 50px; height: 50px; margin: 0 auto 13px; place-items: center; border-radius: 15px; background: #e8f7f0; color: var(--ops-accent-dark); font-size: 27px; }
.opr-empty-state h3 { margin: 0; color: var(--ops-ink); font-size: 19px; }
.opr-empty-state p { max-width: 570px; margin: 8px auto 0; color: var(--ops-muted); font-size: 13px; line-height: 1.6; }
.opr-checks { gap: 10px; }
.opr-check { overflow: hidden; border-left-width: 1px; border-radius: 13px; }
.opr-check.ops-pass { border-color: #cde8dc; }
.opr-check.ops-warn { border-color: #efd7a7; }
.opr-check.ops-fail { border-color: #efc3c0; }
.opr-check summary { grid-template-columns: 145px minmax(0, 1fr) auto 22px; gap: 14px; padding: 17px 18px; background: #fff; }
.opr-check summary:hover { background: #fbfdfc; }
.opr-check-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px !important; }
.opr-check-status .material-symbols-outlined { font-size: 17px; }
.opr-check-title strong,
.opr-check-title small { display: block; }
.opr-check-title strong { color: var(--ops-ink); font-size: 14px; }
.opr-check-title small { margin-top: 3px; color: var(--ops-muted); font-size: 10px; font-weight: 650; }
.opr-check-score { color: var(--ops-muted); font-size: 11px; font-weight: 800; }
.opr-check-chevron { color: var(--ops-muted); font-size: 18px; transition: transform .18s ease; }
.opr-check[open] .opr-check-chevron { transform: rotate(180deg); }
.opr-check-body { display: grid; gap: 16px; padding: 2px 20px 20px 177px !important; color: var(--ops-muted); }
.opr-check-body > div { padding: 14px 16px; border-radius: 11px; background: var(--ops-soft); }
.opr-check-body h4 { margin: 0 0 6px; color: var(--ops-ink); font-size: 12px; }
.opr-check-body p { margin: 0; font-size: 12px; line-height: 1.6; }
.opr-check-body p + p { margin-top: 6px; }
.opr-check-body ul { margin: 7px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.6; }
.opr-ai { border-color: #c7e7d9; background: linear-gradient(145deg, #fff, #f3fbf7); }
.opr-ai-purpose { display: grid; grid-template-columns: 40px 1fr; gap: 13px; align-items: start; }
.opr-ai-purpose > .material-symbols-outlined { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: #e3f6ed; color: var(--ops-accent-dark); }
.opr-ai-purpose strong { color: var(--ops-ink); }
.opr-ai-states > div { border: 1px solid #e1ebe6; }
.opr-ai-states strong { margin-top: 3px; color: var(--ops-ink); }
.opr-ai-columns > article { position: relative; border: 1px solid #e1ebe6; }
.opr-ai-columns > article > .material-symbols-outlined { color: var(--ops-accent-dark); }
.opr-ai-columns h4 { margin: 8px 0 9px; color: var(--ops-ink); }
.opr-ai-columns p,
.opr-ai-columns li { color: var(--ops-muted); font-size: 12px; line-height: 1.6; }
.opr-ai-empty { display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: start; padding: 20px; border: 1px dashed #bcdccb; border-radius: 14px; background: #fff; }
.opr-ai-empty > .material-symbols-outlined { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #e6f7ef; color: var(--ops-accent-dark); }
.opr-ai-empty h4 { margin: 0 0 6px; color: var(--ops-ink); }
.opr-ai-empty p { margin: 0 0 12px; color: var(--ops-muted); font-size: 13px; }
.opr-quick-answer > strong { display: block; margin-top: 5px; color: var(--ops-ink); }
.opr-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.opr-detail-grid article { min-width: 0; padding: 17px; border: 1px solid #e1e9e5; border-radius: 12px; background: #fbfdfc; }
.opr-detail-grid small,
.opr-detail-grid strong { display: block; }
.opr-detail-grid small { color: var(--ops-muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.opr-detail-grid strong { margin-top: 6px; color: var(--ops-ink); font-size: 13px; overflow-wrap: anywhere; }
.opr-limitations ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.opr-limitations li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; padding: 12px 14px; border-radius: 10px; background: var(--ops-soft); font-size: 12px; }
.opr-limitations li .material-symbols-outlined { color: var(--ops-accent-dark); font-size: 17px; }
.opr-delete { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid #efcfcc; border-radius: 14px; background: #fffafa; text-align: left; }
.opr-delete strong,
.opr-delete small { display: block; }
.opr-delete strong { color: #752d28; font-size: 13px; }
.opr-delete small { margin-top: 3px; color: #976d69; font-size: 11px; }
.opr-delete button { display: inline-flex; min-height: 40px; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid #e7bab7; border-radius: 9px; background: #fff; font-size: 12px; font-weight: 800; }
.opr-delete button:hover { background: #fff0ee; }

.ops-history { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--ops-line); }
.ops-history-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.ops-history-head h3 { margin: 5px 0 5px; color: var(--ops-ink); font-size: 26px; line-height: 1.15; }
.ops-history-head p { max-width: 690px; margin: 0; color: var(--ops-muted); font-size: 13px; }
.ops-history-head > span { padding: 7px 10px; border-radius: 999px; background: #e9f8f2; color: var(--ops-accent-dark); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.ops-history-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.ops-history-card { display: flex; min-width: 0; min-height: 265px; flex-direction: column; padding: 19px; border: 1px solid var(--ops-line); border-radius: 17px; background: #fff; box-shadow: 0 14px 38px rgba(24, 50, 39, .045); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.ops-history-card:hover { border-color: #b9d6c8; transform: translateY(-2px); box-shadow: 0 20px 45px rgba(24, 50, 39, .08); }
.ops-history-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ops-history-type { display: inline-flex; min-width: 0; align-items: center; gap: 6px; color: var(--ops-accent-dark); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.ops-history-type .material-symbols-outlined { font-size: 16px; }
.ops-history-score { display: inline-flex; align-items: baseline; gap: 2px; }
.ops-history-score strong { color: var(--ops-ink); font-size: 25px; line-height: 1; }
.ops-history-score small { color: var(--ops-muted); font-size: 9px; }
.ops-history-card-copy { margin: 25px 0 14px; }
.ops-history-card-copy h3 { margin: 0; color: var(--ops-ink); font-size: 19px; overflow-wrap: anywhere; }
.ops-history-card-copy p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--ops-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ops-history-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin-top: auto; color: var(--ops-muted); font-size: 10px; }
.ops-history-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.ops-history-meta .material-symbols-outlined { color: var(--ops-accent-dark); font-size: 14px; }
.ops-history-card > a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding: 0 13px; border-radius: 11px; background: var(--ops-soft); color: var(--ops-ink); font-size: 12px; font-weight: 850; text-decoration: none; transition: background .18s ease, color .18s ease; }
.ops-history-card > a:hover { background: var(--ops-accent); color: #fff; }
.ops-history-card > a .material-symbols-outlined { font-size: 17px; }
.ops-history-empty { margin-top: 20px; padding: 50px 25px; border: 1px dashed #c8d8d0; border-radius: 18px; background: #fbfdfc; text-align: center; }
.ops-history-empty > .material-symbols-outlined { display: grid; width: 50px; height: 50px; margin: 0 auto 13px; place-items: center; border-radius: 15px; background: #e8f7f0; color: var(--ops-accent-dark); }
.ops-history-empty h3 { margin: 0; color: var(--ops-ink); font-size: 19px; }
.ops-history-empty p { margin: 7px 0 16px; color: var(--ops-muted); font-size: 13px; }
.ops-history-empty a { color: var(--ops-accent-dark); font-size: 12px; font-weight: 850; }

/* One Page Scan dashboard dark theme */
.dark .ops-shell--dashboard,
.dark .opr-shell--embedded {
    --ops-ink: #edf7f3;
    --ops-muted: #9eb0a8;
    --ops-line: #294239;
    --ops-soft: #13281f;
    --ops-accent: #35d39a;
    --ops-accent-dark: #62e2b3;
    --ops-warn: #f1b557;
    --ops-fail: #f0837d;
    color-scheme: dark;
}
.dark .ops-workspace-heading {
    border-color: var(--ops-line);
    background: linear-gradient(135deg, #10231d 0%, #0c1c2a 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.dark .ops-workspace-mark,
.dark .ops-plan-pill,
.dark .ops-step > span,
.dark .ops-side-heading > .material-symbols-outlined,
.dark .ops-history-head > span { background: #173a2e; }
.dark .ops-workspace-actions > a,
.dark .opr-actions .primary,
.dark .opr-next-step button { background: #2bbd89; color: #071912; }
.dark .ops-workspace-actions > a:hover,
.dark .opr-actions .primary:hover { background: #42d69f; }
.dark .ops-form,
.dark .ops-side article,
.dark .opr-panel,
.dark .opr-summary-grid article,
.dark .ops-history-card { border-color: var(--ops-line); background: #0e1f2d; box-shadow: 0 16px 45px rgba(0, 0, 0, .14); }
.dark .ops-form-intro {
    border-color: var(--ops-line) !important;
    background: linear-gradient(135deg, #12271f, #0e1f2d) !important;
    box-shadow: none !important;
}
.dark .ops-form-section,
.dark .ops-context,
.dark .ops-form-footer { border-color: var(--ops-line); background: #0e1f2d; }
.dark .ops-intent-section { background: #10231f; }
.dark .ops-field input,
.dark .ops-field select,
.dark .ops-field textarea { border-color: #365047; background: #091723; color: var(--ops-ink); }
.dark .ops-field input::placeholder,
.dark .ops-field textarea::placeholder { color: #71867d; }
.dark .ops-time,
.dark .ops-consent-box { border-color: #3a5148; background: #102330; }
.dark .ops-consent input:checked + .ops-consent-box { border-color: var(--ops-accent); background: #25af7d; }
.dark .ops-type-card > span { border-color: #2c453c; background: #11252f; }
.dark .ops-type-card:hover > span { border-color: #487062; background: #142c37; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.dark .ops-type-card input:checked + span { border-color: #35d39a; background: #143629; box-shadow: inset 0 0 0 1px #35d39a, 0 10px 25px rgba(20, 180, 123, .1); }
.dark .ops-type-icon,
.dark .ops-context > summary > .material-symbols-outlined:first-child,
.dark .ops-side-guide li > .material-symbols-outlined { background: #193329; color: var(--ops-accent-dark); }
.dark .ops-side-note { border-color: var(--ops-line); background: #10232d; }
.dark .ops-plan-card { border-color: #2f6651; background: #123529; }
.dark .opr-actions a:not(.primary):hover { border-color: var(--ops-line); background: var(--ops-soft); }
.dark .opr-tabs { border-color: var(--ops-line); background: rgba(10, 25, 37, .94); box-shadow: 0 9px 28px rgba(0, 0, 0, .2); }
.dark .opr-tabs button[aria-selected="true"] { background: #286c52; color: #fff; }
.dark .opr-summary-grid article > .material-symbols-outlined,
.dark .opr-summary-grid article.is-pass > .material-symbols-outlined,
.dark .opr-summary-grid article.is-warning > .material-symbols-outlined,
.dark .opr-summary-grid article.is-score > .material-symbols-outlined,
.dark .opr-summary-grid article.is-type > .material-symbols-outlined { background: #183126; color: var(--ops-accent-dark); }
.dark .opr-alert > .material-symbols-outlined { background: rgba(255, 255, 255, .08); }
.dark .opr-alert.is-warning { background: #3b2c16; color: #f4d294; }
.dark .opr-alert.is-error { background: #3a211f; color: #f5aaa4; }
.dark .opr-next-step { background: linear-gradient(135deg, #15372b, #0e1f2d); }
.dark .opr-dimensions article,
.dark .opr-detail-grid article { border-color: var(--ops-line); background: #112632; }
.dark .opr-bar { background: #294139; }
.dark .opr-count-badge,
.dark .opr-ai-status { background: #3b2c16; color: #f4c776; }
.dark .opr-count-badge.is-pass { background: #173b2e; color: var(--ops-accent-dark); }
.dark .opr-empty-state,
.dark .ops-history-empty { border-color: #365046; background: #0f2230; }
.dark .opr-empty-state > .material-symbols-outlined,
.dark .ops-history-empty > .material-symbols-outlined { background: #173a2e; }
.dark .opr-check { border-color: #2b443a; background: #0e1f2d; }
.dark .opr-check summary { background: #0e1f2d; }
.dark .opr-check summary:hover { background: #122832; }
.dark .opr-check-body > div,
.dark .opr-change-list > div,
.dark .opr-limitations li { background: #132b25; }
.dark .opr-ai { border-color: #2e604d; background: linear-gradient(145deg, #0e1f2d, #123126); }
.dark .opr-ai-purpose,
.dark .opr-ai-states > div,
.dark .opr-ai-columns > article,
.dark .opr-quick-answer,
.dark .opr-ai-empty { border-color: var(--ops-line); background: #112632; }
.dark .opr-ai-purpose > .material-symbols-outlined,
.dark .opr-ai-empty > .material-symbols-outlined { background: #173a2e; }
.dark .opr-delete { border-color: #633b38; background: #2b1b20; }
.dark .opr-delete strong { color: #f3aaa5; }
.dark .opr-delete small { color: #c99894; }
.dark .opr-delete button { border-color: #754843; background: #362126; color: #ffc0bb; }
.dark .opr-delete button:hover { background: #47282b; }
.dark .ops-history-card:hover { border-color: #47705f; box-shadow: 0 20px 45px rgba(0, 0, 0, .22); }

@media (max-width: 1100px) {
    .ops-layout--dashboard { grid-template-columns: minmax(0, 1fr) 250px; }
    .ops-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .opr-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .ops-workspace-heading { align-items: flex-start; flex-direction: column; }
    .ops-layout--dashboard { grid-template-columns: 1fr; }
    .ops-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-side-note { grid-column: 1 / -1; }
    .opr-tabs { top: 62px; justify-content: flex-start; }
    .opr-tabs button { flex: 0 0 auto; }
    .opr-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .ops-workspace-heading { padding: 18px; }
    .ops-workspace-title { gap: 12px; }
    .ops-workspace-mark { flex-basis: 42px; width: 42px; height: 42px; }
    .ops-workspace-actions { width: 100%; justify-content: space-between; }
    .ops-form-intro { flex-direction: column; padding: 22px 20px; }
    .ops-form-section { padding: 24px 20px; }
    .ops-type-grid { grid-template-columns: 1fr; }
    .ops-type-card > span { min-height: 112px; }
    .ops-context > summary { grid-template-columns: 36px 1fr auto; padding: 20px; }
    .ops-context-body { padding: 0 20px 22px; }
    .ops-form-footer { grid-template-columns: 1fr; padding: 22px 20px; }
    .ops-submit { flex-direction: initial; align-items: center; margin: 0; }
    .ops-side { grid-template-columns: 1fr; }
    .opr-topbar { align-items: stretch; }
    .opr-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .opr-actions a { justify-content: center; border-color: var(--ops-line); }
    .opr-actions .primary { grid-column: 1 / -1; }
    .opr-hero { grid-template-columns: 1fr; padding: 27px 22px; }
    .opr-score { width: 145px; height: 145px; justify-self: start; }
    .opr-score > div { width: 110px; }
    .opr-summary-grid,
    .opr-dimensions,
    .opr-ai-states,
    .opr-ai-columns,
    .opr-detail-grid,
    .ops-history-grid { grid-template-columns: 1fr; }
    .opr-next-step { grid-template-columns: 42px 1fr; }
    .opr-next-step button { grid-column: 1 / -1; justify-content: center; }
    .opr-section-intro { align-items: flex-start; flex-direction: column; gap: 13px; padding-top: 25px; }
    .opr-check summary { grid-template-columns: 1fr auto 20px; gap: 9px; }
    .opr-check-status { grid-column: 1 / -1; }
    .opr-check-body { padding: 0 14px 16px !important; }
    .opr-delete { align-items: flex-start; flex-direction: column; }
    .opr-delete button { width: 100%; justify-content: center; }
    .ops-history-head { align-items: flex-start; flex-direction: column; gap: 12px; }
}
