:root {
    --paper: #f7f1e4;
    --paper-strong: #fff9ee;
    --ink: #261a14;
    --ink-soft: #5a4c41;
    --accent: #8f5a2f;
    --accent-strong: #b8793b;
    --panel: rgba(255, 250, 240, 0.82);
    --line: rgba(111, 87, 59, 0.18);
    --shadow: 0 18px 40px rgba(41, 22, 11, 0.12);
    --font-body: "Domine", Georgia, serif;
    --font-heading: "Source Sans 3", "Segoe UI", sans-serif;
}

html, body {
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(240, 223, 185, 0.55), transparent 28%),
        linear-gradient(180deg, #eadbc0 0%, #f4ecda 38%, #e2d3b7 100%);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
}

body {
    margin: 0;
}

html.critical-editor-scroll-locked,
body.critical-editor-scroll-locked {
    overflow: hidden;
}

body.critical-editor-scroll-locked {
    overscroll-behavior: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
label,
button,
summary,
th,
.eyebrow,
.panel-title,
.detail-label,
.branch-condition,
.critical-branch-condition,
.effect-stack h5,
.tag,
.stat-pill,
.chip,
.affix-badge,
.table-list-title,
.legend-label {
    font-family: var(--font-heading);
    font-weight: 400;
}

strong,
b {
    font-weight: 400;
}

a, .btn-link {
    color: var(--accent);
}

a:hover {
    color: #6e4320;
}

button,
input,
select,
textarea {
    font: inherit;
}

.dashboard-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.panel {
    padding: 1.35rem;
}

.panel-title {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
}

.panel-copy,
.muted {
    color: var(--ink-soft);
}

.lookup-form {
    display: grid;
    gap: 0.95rem;
}

.form-grid {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.field-shell {
    display: grid;
    gap: 0.35rem;
}

.roll-input-row {
    display: flex;
    gap: 0.55rem;
    align-items: stretch;
}

.roll-input-row .input-shell {
    flex: 1 1 auto;
}

.field-shell label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #75562f;
}

.input-shell {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(127, 96, 55, 0.2);
    background: rgba(255, 252, 247, 0.92);
    padding: 0.8rem 0.9rem;
    color: var(--ink);
    box-sizing: border-box;
}

.input-shell:focus {
    outline: 2px solid rgba(184, 121, 59, 0.35);
    border-color: rgba(184, 121, 59, 0.45);
}

.action-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-ritual {
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.15rem;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #fff8ef;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 18px rgba(143, 90, 47, 0.2);
}

.btn-ritual:hover {
    background: linear-gradient(135deg, #c38a4d, #8f5a2f);
}

.roll-button {
    flex: 0 0 auto;
    min-width: 4.5rem;
    border-radius: 14px;
    border: 1px solid rgba(127, 96, 55, 0.18);
    background: rgba(255, 248, 236, 0.9);
    color: #6a4b28;
    padding: 0.8rem 0.95rem;
}

.roll-button:hover {
    background: rgba(250, 236, 210, 0.95);
}

.lookup-roll-note {
    margin: 0;
    font-size: 0.88rem;
}

.lookup-roll-note.is-warning {
    color: #8d2b1e;
}

.tag-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    border-radius: 999px;
    border: 1px solid rgba(143, 90, 47, 0.18);
    padding: 0.4rem 0.7rem;
    background: rgba(255, 250, 242, 0.84);
    color: #5d4429;
    font-size: 0.82rem;
}

.result-shell {
    margin-top: 1rem;
    display: grid;
    gap: 0.85rem;
}

.result-card {
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(127, 96, 55, 0.14);
}

.result-card h3,
.result-card h4 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.detail-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 0.9rem;
}

.detail-item {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 250, 240, 0.72);
    border: 1px solid rgba(127, 96, 55, 0.12);
}

.detail-label {
    color: #75562f;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.result-stats {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.stat-pill {
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: rgba(238, 223, 193, 0.65);
    color: #5b4327;
    font-size: 0.85rem;
}

.callout {
    margin-top: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 247, 230, 0.76);
    border: 1px solid rgba(184, 121, 59, 0.18);
    color: #5b4327;
}

.branch-list {
    display: grid;
    gap: 0.75rem;
}

.branch-card {
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 252, 244, 0.75);
    border: 1px solid rgba(127, 96, 55, 0.14);
}

.branch-condition {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #75562f;
}

.branch-copy,
.branch-affix {
    margin-top: 0.55rem;
    margin-bottom: 0;
}

.critical-cell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 100%;
}

.critical-cell-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.critical-cell-description {
    margin: 0;
    color: #2c1a10;
    font-size: 1.2rem;
    line-height: 1.4;
}

.critical-branch-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.critical-branch-card {
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(127, 96, 55, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.critical-branch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.critical-branch-condition {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b4c29;
}

.critical-branch-description {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #3b2a21;
}

.critical-branch-header .affix-badge-list {
    margin-top: 0;
    justify-content: flex-end;
}

.critical-cell-footer .affix-badge-list {
    justify-content: flex-end;
}

.effect-stack {
    margin-top: 0.85rem;
}

.effect-stack h5 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #75562f;
}

.effect-list {
    list-style: none;
    padding: 0;
    margin: 0.7rem 0 0;
    display: grid;
    gap: 0.45rem;
}

.effect-item {
    display: flex;
    gap: 0.65rem;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 252, 244, 0.72);
    border: 1px solid rgba(127, 96, 55, 0.12);
}

.effect-token {
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    background: rgba(238, 223, 193, 0.72);
    color: #5b4327;
    font-size: 0.82rem;
}

.branch-effects {
    margin-top: 0.75rem;
}

.affix-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.affix-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem;
    border: 1px solid rgba(127, 96, 55, 0.18);
    background: rgba(255, 250, 242, 0.9);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #5b4327;
}

.affix-badge-symbol {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    min-width: 1.25em;
    height: 1em;
    line-height: 1;
    flex: 0 0 1.25em;
    margin-top: 0.2rem;
}

.affix-badge-value {
    letter-spacing: 0.04em;
}

.affix-badge-fallback {
    text-transform: none;
}

.error-text {
    color: #8d2b1e;
}

.table-list {
    display: grid;
    gap: 0.8rem;
}

.table-list-item {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(127, 96, 55, 0.12);
}

.table-list-title {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.chip-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.chip {
    border-radius: 999px;
    padding: 0.38rem 0.68rem;
    background: rgba(238, 223, 193, 0.5);
    border: 1px solid rgba(127, 96, 55, 0.14);
    color: #5b4327;
    font-size: 0.82rem;
}

.chip small {
    color: var(--ink-soft);
}

.details-block {
    margin-top: 0.85rem;
}

.details-block summary {
    cursor: pointer;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.stacked-copy {
    margin: 0;
    white-space: pre-wrap;
}

.code-block {
    margin: 0;
    padding: 1rem;
    border-radius: 16px;
    background: #2a1d17;
    color: #f9ecd2;
    overflow-x: auto;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.55;
}

.api-grid {
    display: grid;
    gap: 1rem;
}

.blazor-error-boundary {
    background: #7e2c22;
    color: #fff7ee;
}

.tables-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.table-browser-toolbar {
    display: grid;
    gap: 0.85rem;
}

.table-selector {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.table-browser-toolbar-copy,
.table-browser-reading-hint,
.table-browser-edit-hint {
    margin: 0;
    color: var(--ink-soft);
}

.table-shell {
    border-radius: 20px;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(127, 96, 55, 0.2);
    box-shadow: 0 18px 30px rgba(41, 22, 11, 0.08);
}

.table-browser-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.table-browser-reading-hint {
    margin-top: 0.2rem;
}

.table-browser-edit-hint {
    white-space: nowrap;
}

.table-shell .table-scroll {
    overflow-x: auto;
}

.critical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

.critical-table th,
.critical-table td {
    border: 1px solid rgba(127, 96, 55, 0.2);
    padding: 0.35rem;
    vertical-align: top;
}

.critical-table th {
    background: rgba(238, 223, 193, 0.45);
    text-transform: uppercase;
    text-align: center;
    vertical-align: middle;
    letter-spacing: 0.08em;
}

.critical-table td {
    background: rgba(255, 255, 255, 0.85);
    min-width: 190px;
    max-width: 250px;
    padding: 0;
}

.critical-table-cell {
    position: relative;
}

.critical-table-cell.is-editable {
    cursor: pointer;
    transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.critical-table-cell.is-editable:hover,
.critical-table-cell.is-editable:focus-visible {
    background: rgba(255, 248, 232, 0.98);
    box-shadow: inset 0 0 0 2px rgba(184, 121, 59, 0.4);
    outline: none;
}

.critical-table td .critical-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.55rem;
    box-sizing: border-box;
}

.critical-table .roll-band-header {
    width: 96px;
    background: rgba(255, 247, 230, 0.52);
    font-size: 1.5rem;
    text-align: center;
    vertical-align: middle;
}

.critical-table thead th {
    font-size: 2rem;
}

.critical-table-cell.is-editable:hover .critical-cell-description,
.critical-table-cell.is-editable:focus-visible .critical-cell-description {
    color: #8f5a2f;
}

.empty-cell {
    color: #a08464;
    font-style: italic;
    display: block;
    padding: 1rem 0.75rem;
    text-align: center;
}

.critical-legend {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(235, 226, 209, 0.6);
    border: 1px solid rgba(127, 96, 55, 0.2);
}

.critical-legend-header {
    display: grid;
    gap: 0.2rem;
}

.critical-legend-header h4 {
    margin: 0;
}

.legend-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.legend-symbol {
    font-size: 1.3rem;
    line-height: 1;
}

.legend-item strong {
    display: block;
    font-size: 0.95rem;
}

.critical-editor-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 1.25rem;
    background: rgba(38, 26, 20, 0.44);
    backdrop-filter: blur(4px);
}

.critical-editor-dialog {
    --critical-editor-control-height: 3.15rem;
    --critical-editor-label-height: 1.05rem;
    --critical-editor-field-gap: 0.35rem;
    --critical-editor-control-offset: calc(var(--critical-editor-label-height) + var(--critical-editor-field-gap));
    width: min(1100px, 100%);
    max-height: calc(100vh - 2.5rem);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid rgba(127, 96, 55, 0.18);
    box-shadow: 0 28px 60px rgba(41, 22, 11, 0.24);
}

.critical-editor-form {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

.critical-editor-header,
.critical-editor-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(127, 96, 55, 0.12);
}

.critical-editor-footer {
    border-top: 1px solid rgba(127, 96, 55, 0.12);
    border-bottom: none;
    align-items: center;
}

.critical-editor-close {
    white-space: nowrap;
}

.critical-editor-meta {
    margin-bottom: 0;
}

.critical-editor-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.25rem 1.25rem;
    display: grid;
    gap: 1rem;
}

.critical-editor-section,
.critical-editor-subsection {
    display: grid;
    gap: 0.85rem;
}

.critical-editor-section h4,
.critical-editor-subsection h5 {
    margin: 0;
}

.critical-editor-section-header > div,
.critical-editor-card-header > div {
    display: grid;
    gap: 0.2rem;
}

.critical-editor-section-header,
.critical-editor-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.critical-editor-card {
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(127, 96, 55, 0.15);
}

.critical-editor-card.nested {
    background: rgba(252, 248, 238, 0.96);
}

.critical-editor-textarea {
    min-height: 7rem;
}

.critical-editor-textarea.compact {
    min-height: 3.5rem;
}

.critical-editor-textarea.json {
    min-height: 12rem;
}

.critical-editor-textarea.tall {
    min-height: 8rem;
}

.critical-editor-dialog input.input-shell,
.critical-editor-dialog select.input-shell {
    height: var(--critical-editor-control-height);
}

.critical-editor-dialog .field-shell label {
    line-height: var(--critical-editor-label-height);
}

.critical-editor-error {
    margin: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(141, 43, 30, 0.08);
    border: 1px solid rgba(141, 43, 30, 0.18);
}

.critical-editor-inline-copy {
    margin: 0;
}

.critical-editor-quick-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
}

.critical-editor-quick-legend-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.critical-editor-quick-legend-item .affix-badge-list {
    margin-top: 0;
}

.critical-editor-quick-legend-item code {
    font-size: 0.9rem;
    color: #5b4327;
}

.critical-editor-quick-legend-equals {
    color: #8d5e1a;
    font-weight: 700;
    margin-left: 0.2rem;
    margin-right: 0.2rem;
}

.critical-editor-compare-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.critical-editor-compare-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(127, 96, 55, 0.12);
}

.critical-editor-compare-card .critical-cell {
    min-height: 100%;
}

.critical-editor-inline-list {
    display: grid;
    gap: 0.55rem;
}

.critical-editor-inline-row {
    display: block;
}

.critical-editor-effect-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(127, 96, 55, 0.12);
}

.critical-editor-effect-row-main {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(88px, auto) minmax(180px, 1.3fr) minmax(130px, 0.8fr);
    align-items: end;
    flex: 1 1 auto;
}

.critical-editor-effect-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--critical-editor-control-height);
    min-width: 0;
    margin-top: var(--critical-editor-control-offset);
}

.critical-editor-effect-badge .affix-badge-list {
    width: 100%;
    margin-top: 0;
    align-items: center;
    justify-content: center;
}

.critical-editor-effect-badge .affix-badge {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.critical-editor-effect-kind,
.critical-editor-effect-value,
.critical-editor-effect-extra {
    min-width: 0;
}

.critical-editor-branch-line {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr);
}

.critical-editor-branch-outcome {
    min-width: 0;
}

.critical-editor-validation-list {
    display: grid;
    gap: 0.45rem;
}

.critical-editor-validation-item {
    margin: 0;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    background: rgba(184, 121, 59, 0.12);
    color: #6b4c29;
}

.critical-editor-advanced-hint {
    margin: 0;
}

.critical-editor-advanced {
    border-radius: 18px;
    border: 1px solid rgba(127, 96, 55, 0.14);
    background: rgba(247, 239, 225, 0.3);
    overflow: hidden;
}

.critical-editor-advanced-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    color: #5b4327;
}

.critical-editor-advanced-summary::-webkit-details-marker {
    display: none;
}

.critical-editor-advanced-meta {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #7b6243;
}

.critical-editor-advanced-body {
    display: grid;
    gap: 0.85rem;
    padding: 0 0.9rem 0.9rem;
}

.critical-editor-diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.critical-editor-diagnostic-grid dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a7355;
}

.critical-editor-diagnostic-grid dd {
    margin: 0.2rem 0 0;
    color: #4f3c25;
}

.critical-editor-diagnostic-block {
    margin: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(92, 68, 41, 0.08);
    border: 1px solid rgba(92, 68, 41, 0.12);
    color: #3f311f;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
    overflow-x: auto;
}

.critical-editor-diagnostic-list {
    display: grid;
    gap: 0.65rem;
}

.critical-editor-diagnostic-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(127, 96, 55, 0.1);
}

.critical-editor-diagnostic-values {
    display: grid;
    gap: 0.25rem;
    justify-items: end;
    color: #5d4429;
    text-align: right;
}

.diagnostics-page {
    display: grid;
    gap: 1rem;
}

.diagnostics-page-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.diagnostics-selector-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.diagnostics-selection-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(247, 239, 225, 0.65);
    border: 1px solid rgba(127, 96, 55, 0.12);
    color: #5d4429;
}

.critical-diagnostics-body {
    display: grid;
    gap: 0.85rem;
}

.critical-editor-inline-button {
    border: none;
    background: transparent;
    color: var(--accent);
    min-height: var(--critical-editor-control-height);
    margin-top: var(--critical-editor-control-offset);
    padding: 0.2rem 0.1rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.critical-editor-inline-button:hover {
    color: #6e4320;
}

.critical-editor-compact-button {
    padding: 0.55rem 0.9rem;
    box-shadow: none;
}

@media (max-width: 640.98px) {
    .content-shell {
        padding: 1rem;
    }

    .panel {
        border-radius: 20px;
    }

    .critical-editor-backdrop {
        padding: 0.65rem;
    }

    .critical-editor-dialog {
        width: 100%;
    }

    .table-browser-header {
        flex-direction: column;
    }

    .table-browser-edit-hint {
        white-space: normal;
    }

    .critical-editor-header,
    .critical-editor-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .critical-editor-effect-row,
    .critical-editor-card-header,
    .critical-editor-section-header,
    .critical-editor-advanced-summary,
    .critical-editor-diagnostic-item {
        flex-direction: column;
        align-items: stretch;
    }

    .critical-editor-effect-row-main,
    .critical-editor-branch-line {
        grid-template-columns: 1fr;
    }

    .critical-editor-diagnostic-values {
        justify-items: start;
        text-align: left;
    }

    .diagnostics-page-header,
    .diagnostics-selection-summary {
        flex-direction: column;
        align-items: stretch;
    }
}
