:root {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #182737;
    background: #f4f6f9;
    font-size: 16px;
    line-height: 1.5;
    --ink: #172c42;
    --muted: #637589;
    --line: #dbe3ec;
    --accent: #155e75;
    --nav: #12283d;
    --white: #fff;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid #cbd6e1;
    border-radius: 6px;
    padding: 0.55rem 0.85rem;
    background: white;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.5;
    text-decoration: none;
}
button:hover,
.button:hover {
    background: #edf3f7;
    text-decoration: none;
}
button:disabled {
    opacity: 0.5;
    cursor: wait;
}
.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.primary:hover {
    background: #104a5b;
    color: white;
}
h1,
h2,
p {
    margin-top: 0;
}
h1 {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.045em;
    margin-bottom: 0;
    font-weight: 650;
}
h2 {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
small {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: 0.25rem;
}
.muted {
    color: var(--muted);
    font-size: 0.875rem;
}
.sidebar {
    background: var(--nav);
    width: 228px;
    position: fixed;
    inset: 0 auto 0 0;
    color: #e6edf5;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.25rem;
    z-index: 5;
}
.brand {
    color: white;
    font-size: 1.7rem;
    letter-spacing: -0.05em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}
.brand:hover {
    text-decoration: none;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 37px;
    height: 37px;
    color: white;
    background: #277990;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.1em;
    padding-right: 3px;
}
.brand-caption {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: #819cb4;
    width: 100%;
    margin-top: 0.5rem;
}
.sidebar nav {
    display: grid;
    gap: 0.4rem;
}
.sidebar nav a {
    padding: 0.8rem;
    color: #a9bdcf;
    display: flex;
    gap: 0.9rem;
    border-radius: 6px;
    font-size: 0.925rem;
}
.sidebar nav a:hover,
.sidebar nav .active {
    background: #223e56;
    color: white;
    text-decoration: none;
}
.account {
    margin-top: auto;
    border-top: 1px solid #2b4258;
    padding-top: 1.25rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}
.account strong {
    font-size: 0.875rem;
}
.account a {
    color: #a9bdcf;
    display: block;
    font-size: 0.75rem;
}
.account form {
    width: 100%;
}
.account button {
    color: #a9bdcf;
    padding: 0;
    margin-top: 0.5rem;
}
.avatar {
    background: #29485e;
    border-radius: 50%;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
}
.workspace {
    margin-left: 228px;
    padding: 1.7rem 2.5rem 3rem;
    max-width: 1900px;
}
.topline {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}
.topline span:first-child {
    font-weight: 700;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1.8rem 0;
}
.eyebrow {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 650;
    letter-spacing: 0.13em;
    margin-bottom: 0.5rem;
}
.count {
    font-size: 1rem;
    color: #698095;
    background: #e5edf3;
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
    vertical-align: middle;
    letter-spacing: 0;
    margin-left: 0.4rem;
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 1.5rem;
    margin: 0 0 1.25rem;
}
.panel.flush {
    padding: 0;
    overflow: hidden;
}
/* Search stays on its own row, with filters always visible below it. */
.filters { margin-bottom: 1.25rem; position: relative; }
.search-row { display: flex; gap: .65rem; align-items: center; }
.filters label { margin: 0; }
.search-label { position: relative; flex: 1; min-width: 0; }
.search-label > .icon { position: absolute; left: .8rem; top: 13px; color: var(--muted); }
.search-label input { padding-left: 2.6rem; }
.filters input, .filters select { margin: 0; height: 44px; }
.scope-select { width: 170px; }
.search-button { height: 44px; }
.filter-options { margin-top: .8rem; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .85rem; padding: 1rem; margin-top: .4rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.filter-grid label { font-size: .75rem; color: var(--muted); }
.filter-grid select { margin-top: .35rem; width: 100%; font-size: .8125rem; }
.reset { display: inline-block; margin-top: .5rem; font-size: .8125rem; }
.bulk-form {
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
}
.bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.bulk-toolbar button {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}
.bulk-actions {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
    flex-wrap: wrap;
}
.text-button {
    border: 0;
    background: transparent;
    font-weight: 500;
}
.table-wrap {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
}
th {
    color: #62758a;
    background: #f8fafc;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    font-weight: 600;
    white-space: nowrap;
}
th,
td {
    padding: 1rem;
    border-bottom: 1px solid #e8eef3;
    vertical-align: middle;
}
thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: #f8fbfd;
}
.select-column {
    width: 42px;
}
td input[type="checkbox"],
th input[type="checkbox"] {
    margin: 0;
}
.record-link {
    font-weight: 600;
    color: var(--ink);
    display: block;
    min-width: 100px;
}
.record-link:hover {
    color: var(--accent);
}
.badge {
    display: inline-block;
    background: #e9f3f6;
    color: #236274;
    padding: 0.17rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge.subtle {
    color: #6e7888;
    background: #edf0f4;
}
.date {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.8125rem;
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 0;
    color: var(--muted);
    font-size: 0.8125rem;
}
.pagination > div {
    display: flex;
    gap: 0.5rem;
}
.empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}
.empty h2 {
    font-size: 1.2rem;
    color: var(--ink);
}
.breadcrumbs {
    display: flex;
    gap: 0.7rem;
    color: var(--muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.case-tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    gap: 1.8rem;
    overflow: auto;
}
.case-tabs a {
    padding: 0.6rem 0 0.85rem;
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.875rem;
}
.case-tabs a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    font-weight: 600;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}
.wide {
    grid-column: 1/-1;
}
.record-form {
    max-width: 1150px;
}
fieldset {
    min-width: 0;
}
legend {
    font-weight: 650;
    font-size: 1rem;
    background: transparent;
    padding: 0;
}
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
label:has(+ input),
.field label {
    margin-bottom: 0.35rem;
}
.field label.check {
    margin-top: 1.8rem;
}
input,
select,
textarea {
    display: block;
    border: 1px solid #c9d5e2;
    border-radius: 5px;
    background: white;
    color: var(--ink);
    width: 100%;
    padding: 0.65rem 0.7rem;
    min-height: 43px;
    margin-top: 0.35rem;
    font-size: 0.9375rem;
}
textarea {
    resize: vertical;
}
input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-height: 0;
    accent-color: var(--accent);
    display: inline-block;
    flex-shrink: 0;
}
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #5babc0;
    outline-offset: 1px;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid #5babc0;
    outline-offset: 3px;
}
.check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.check input {
    margin: 0;
}
.required {
    color: #9d3f3f;
}
.form-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}
.sticky-actions {
    position: sticky;
    bottom: 0;
    background: #f4f6f9ef;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.alert {
    background: #fff1ef;
    color: #933e34;
    border: 1px solid #f0bcb6;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.alert ul {
    margin-bottom: 0;
}
.alert a {
    color: inherit;
}
.notice {
    background: #edf5f8;
    color: #275d70;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}
.invalid input,
.invalid select,
.invalid textarea {
    border-color: #b65347;
}
.field-error {
    color: #a44035;
}
.narrow {
    max-width: 620px;
}
.case-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 1.5rem 0;
}
.summary-tile {
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    background: white;
    border-radius: 7px;
    padding: 1.3rem;
    color: var(--ink);
    display: grid;
    gap: 0.7rem;
}
.summary-tile strong {
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.2;
}
.summary-tile span:last-child {
    font-size: 0.8rem;
    color: var(--accent);
}
.detail-layout {
    display: grid;
    grid-template-columns: minmax(350px, 1fr) minmax(0, 1.5fr);
    gap: 1.5rem;
}
.details dl {
    margin: 0;
    display: grid;
    gap: 0;
}
.details dl > div {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eef2f6;
    font-size: 0.875rem;
}
.details dl > div:last-child {
    border: 0;
}
dt {
    color: var(--muted);
}
dd {
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.report-layout {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 1.5rem;
}
.report-layout .details dl > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: .3rem 0;
    gap: .8rem;
    font-size: .8125rem;
}
.report-layout .panel { padding: 1rem 1.15rem; margin-bottom: .75rem; }
.report-layout .panel h2 { margin-bottom: .5rem; font-size: .875rem; }
.report-layout dd { text-align: right; font-weight: 550; }
.related-records p { margin: .5rem 0; font-size: .8125rem; }
.detail-sections { min-width: 0; }
.show-badges { display: flex; gap: .35rem; margin-top: .6rem; }
.heading-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.report-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    align-self: start;
    position: sticky;
    top: 1rem;
}
.report-toolbar {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem;
}
.report-toolbar > div {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.report-toolbar button {
    font-size: 0.75rem;
}
.report-panel iframe {
    width: 100%;
    height: 80vh;
    border: 0;
    background: #e2e8ef;
}
.report-panel [role="status"] {
    padding: 1rem;
    margin: 0;
}
.illustration-picker {
    max-height: 360px;
    overflow: auto;
}
.illustration-choice {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.illustration-choice[hidden] {
    display: none;
}
.picker-toolbar {
    display: flex;
    gap: 0.5rem;
    margin: 0.7rem 0;
}
.participation-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1.5fr auto;
    gap: 0.75rem;
    align-items: center;
}
.participation-row button {
    margin-top: 0.65rem;
}
.selection-order {
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.selection-order button {
    font-size: 0.75rem;
    margin: 0.15rem;
    padding: 0.25rem 0.5rem;
}
.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, #102639 0%, #1a3a51 52%, #245064 100%);
    padding: 2rem;
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 2rem;
    color: white;
    font-weight: 600;
    letter-spacing: -0.05em;
    margin-bottom: 1.8rem;
}
.auth-card {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 12px;
    padding: 2.3rem;
    box-shadow: 0 20px 60px #06131e44;
}
.auth-card h1 {
    margin-bottom: 0.7rem;
}
.auth-card form {
    margin-top: 1.7rem;
}
.auth-note {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 1.5rem 0 0;
}
.full-width {
    width: 100%;
}
.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
    position: fixed;
    z-index: 100;
    background: white;
    padding: 1rem;
}
.htmx-request {
    opacity: 0.7;
}
#global-message {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    max-width: 450px;
    padding: 1rem;
    background: #fff1ef;
    color: #933e34;
    border: 1px solid #f0bcb6;
    z-index: 20;
    border-radius: 6px;
}
@media (min-width: 1700px) {
    .workspace {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
    .report-layout {
        grid-template-columns: 420px minmax(0, 1fr);
    }
}
@media (max-width: 1150px) {
    .sidebar {
        width: 180px;
        padding: 1.5rem 1rem;
    }
    .workspace {
        margin-left: 180px;
        padding: 1.5rem;
    }
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .report-layout {
        grid-template-columns: 1fr;
    }
    .report-layout > .report-panel {
        grid-row: 1;
        position: static;
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .bulk-actions {
        margin-left: 0;
    }
}
@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: 100%;
        padding: 0.8rem 1rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .brand {
        margin: 0;
        font-size: 1.25rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    .brand-caption,
    .account,
    .brand-mark {
        display: none;
    }
    .sidebar nav {
        display: flex;
        flex: 1;
        justify-content: flex-end;
        gap: 0.1rem;
    }
    .sidebar nav a {
        padding: 0.5rem;
        gap: 0.3rem;
        font-size: 0.8125rem;
    }
    .workspace {
        margin: 0;
        padding: 1rem;
    }
    .topline {
        margin-bottom: 1rem;
        font-size: 0.6rem;
    }
    .page-heading {
        margin: 1.2rem 0;
    }
    h1 {
        font-size: 1.6rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .panel {
        padding: 1rem;
    }
    .case-summary {
        gap: 0.5rem;
    }
    .summary-tile {
        padding: 0.8rem;
    }
    .summary-tile strong {
        font-size: 1.8rem;
    }
    .summary-tile span {
        font-size: 0.8rem;
    }
    .participation-row {
        grid-template-columns: 1fr 1fr;
        border-bottom: 1px solid var(--line);
        padding: 1rem 0;
    }
    .search-row { flex-wrap: wrap; }
    .search-label { flex-basis: 100%; }
    .scope-select { flex: 1; }
    .case-tabs {
        gap: 1.2rem;
    }
    .auth-card {
        padding: 1.5rem;
    }
    .details dl > div {
        grid-template-columns: 1fr 1fr;
    }
    .pagination {
        gap: 1rem;
    }
    .report-panel iframe {
        height: 65vh;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}

/* Consistent icons and color-coded record actions. */
.icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
.sidebar nav .icon { width: 21px; height: 21px; }
.action-edit { color: #85500b; background: #fff6e5; border-color: #ecd7ac; }
.action-edit:hover { background: #ffebc6; }
.action-copy { color: #215c9e; background: #eef5ff; border-color: #c5d9f2; }
.action-copy:hover { background: #dfeeff; }
.action-pdf { color: #7043a3; background: #f5effc; border-color: #deceef; }
.action-pdf:hover { background: #eadcf9; }
.action-excel { color: #226344; background: #edf8f1; border-color: #bbdfca; }
.action-excel:hover { background: #d9f0e3; }
.action-delete { color: #a33636; background: #fff2f1; border-color: #ecc7c3; }
.action-delete:hover { background: #ffe2df; }
.danger { background: #b43e3e; border-color: #b43e3e; color: white; }
.danger:hover { background: #932d2d; color: white; }
.page-heading .muted { margin: .5rem 0 0; }
.selection-tools { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.selection-tools strong { color: var(--ink); margin-right: .25rem; }
.bulk-toolbar { background: #fbfcfe; }
.bulk-toolbar .icon, .row-actions .icon { width: 15px; height: 15px; }
.row-actions { width: 150px; white-space: nowrap; }
.row-actions .button { padding: .3rem .5rem; font-size: .75rem; }
.record-title { display: flex; align-items: baseline; gap: .6rem; }
.record-id { color: #82909e; font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.record-link { overflow-wrap: anywhere; }
.rich-table .record-link { font-size: .95rem; }
.rich-table td { vertical-align: top; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.rich-table .record-cell { min-width: 440px; width: 100%; }
.rich-table .updated-column { width: 100px; }
.record-subtitle { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.insured-line { color: #4e6275; font-size: .8rem; margin-top: .45rem; }
.record-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem 1.25rem; margin-top: .85rem; }
.metric { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.metric > span { font-size: .68rem; color: var(--muted); }
.metric > strong { font-size: .79rem; font-weight: 550; color: #2f465b; overflow-wrap: anywhere; }
.record-footnote { border-top: 1px solid #e9eef3; margin-top: .8rem; padding-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .75rem; color: var(--muted); }
.record-description { font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }
.delete-review { max-width: 800px; }
.delete-items { max-height: 260px; overflow: auto; padding-left: 1.3rem; }
@media (max-width: 1350px) {
    .record-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .page-heading { align-items: flex-start; }
    .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
    .rich-table .record-cell { min-width: 320px; }
    .record-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .updated-column { display: none; }
    .bulk-actions { width: 100%; }
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.badge.blue { color: #215c9e; background: #eaf2fc; }
.badge.purple { color: #7445a0; background: #f1eafa; }
.badge.amber { color: #815114; background: #fff2d9; }
.badge.rose { color: #a33653; background: #fbeaf0; }
.metric-label { font-weight: 600; margin-right: .25rem; }
.insured-separator { padding: 0 .5rem; color: #a3afbb; }

/* Policy forms follow the original workflow, with related fields kept together. */
.record-form.policy-form { max-width: 1050px; }
.record-form fieldset.panel { display: flow-root; }
.record-form legend {
    float: left;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0 0 .75rem;
    border-bottom: 2px solid #d7e5ec;
    background: transparent;
    color: #254e65;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.015em;
}
.record-form legend + * { clear: both; }
.policy-form .field.wide { grid-column: 1 / -1; width: 100%; }
.policy-form .rates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form-sections > fieldset { grid-column: 1 / -1; margin: 0; }
.form-sections > .half-section { grid-column: span 1; }
.form-grid.columns-1 { grid-template-columns: minmax(0, 1fr); }
.form-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .field { min-width: 0; }
.field label.check-card { border: 1px solid #c9d5e2; border-radius: 5px; min-height: 43px; padding: .65rem .7rem; margin: .35rem 0 0; font-weight: 400; }
.field .check-card input { margin: 0; }
.field .field-label { margin-bottom: .35rem; font-size: .875rem; font-weight: 500; }
.projection-input { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.projection-input textarea { margin-bottom: 1.25rem; }
.advanced-sections > .panel { margin-bottom: 1rem; }
.advanced-sections > .panel:last-child { margin-bottom: 0; }
.record-form > .panel { margin-top: 1.25rem; }
[data-inforce-fields][hidden] { display: none; }
@media (max-width: 760px) {
    .form-sections { grid-template-columns: minmax(0, 1fr); }
    .form-sections > .half-section { grid-column: 1 / -1; }
    .form-grid.columns-2, .form-grid.columns-3, .policy-form .rates-grid { grid-template-columns: minmax(0, 1fr); }
}
