:root {
    --bg: #f3ede1;
    --bg-strong: #f9f5eb;
    --ink: #14211f;
    --muted: #5d6b67;
    --line: rgba(20, 33, 31, 0.12);
    --line-strong: rgba(20, 33, 31, 0.24);
    --brand: #0e4d45;
    --brand-soft: #dce9df;
    --accent: #be6d3a;
    --accent-soft: #f6e0d1;
    --danger: #b54d45;
    --danger-soft: #f5ddda;
    --paper-shadow: 0 24px 70px rgba(22, 32, 27, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --font-display: "Palatino Linotype", "Book Antiqua", "Iowan Old Style", serif;
    --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(190, 109, 58, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(14, 77, 69, 0.14), transparent 24%),
        linear-gradient(180deg, #fbf8f1 0%, #efe7d9 100%);
}

body.body--admin {
    --bg: #f3f5fb;
    --bg-strong: #ffffff;
    --ink: var(--theme-secondary, #243c7c);
    --muted: var(--theme-neutral, #5d5d5d);
    --line: rgba(var(--theme-neutral-rgb, 93, 93, 93), 0.15);
    --line-strong: rgba(var(--theme-neutral-rgb, 93, 93, 93), 0.28);
    --brand: var(--theme-primary, #0072bc);
    --brand-soft: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.1);
    --accent: var(--theme-accent, #fff100);
    --accent-soft: rgba(var(--theme-accent-rgb, 255, 241, 0), 0.22);
    --accent-warm: var(--theme-accent-warm, #d6782a);
    --accent-warm-soft: rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.14);
    --danger: var(--theme-danger, #ff0000);
    --danger-soft: rgba(var(--theme-danger-rgb, 255, 0, 0), 0.1);
    --paper-shadow: 0 20px 48px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.08);
    --font-display: Arial, Helvetica, sans-serif;
    --font-body: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(var(--theme-primary-rgb, 0, 114, 188), 0.1), transparent 30%),
        radial-gradient(circle at top right, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.08), transparent 22%),
        radial-gradient(circle at bottom right, rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.08), transparent 26%),
        linear-gradient(180deg, #fbfdff 0%, #eef4fb 100%);
    display: flex;
    justify-content: center;
    overflow-x: clip;
}

body.body--admin .ambient {
    opacity: 0.52;
}

body.body--admin .ambient--top {
    top: 3rem;
    right: 9%;
    width: 22rem;
    height: 22rem;
    background: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.12);
}

body.body--admin .ambient--bottom {
    left: 6%;
    bottom: 2rem;
    width: 24rem;
    height: 24rem;
    background: rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.1);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

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

.ambient {
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    opacity: 0.6;
}

.ambient--top {
    top: 2rem;
    right: 8%;
    width: 16rem;
    height: 16rem;
    background: rgba(14, 77, 69, 0.16);
}

.ambient--bottom {
    left: 8%;
    bottom: 2rem;
    width: 18rem;
    height: 18rem;
    background: rgba(190, 109, 58, 0.14);
}

.shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

body.body--admin .shell {
    width: min(1280px, calc(100% - 6rem));
    max-width: 1280px;
    padding: 1.5rem 0 3.4rem;
}

body.body--admin .shell.shell--admin {
    width: calc(100% - clamp(1rem, 2vw, 2.5rem));
    max-width: none;
    padding: clamp(0.9rem, 1.8vw, 1.5rem) 0 clamp(1.2rem, 2.6vw, 3.4rem);
}

.admin-shell {
    display: grid;
    grid-template-columns: clamp(250px, 18vw, 300px) minmax(0, 1fr);
    gap: clamp(1rem, 1.8vw, 2rem);
    align-items: start;
    min-height: calc(100vh - clamp(1.8rem, 3vw, 3rem));
}

.admin-sidebar {
    position: sticky;
    top: clamp(0.75rem, 1.5vw, 1.5rem);
    display: grid;
    gap: 1.25rem;
    padding: 1.35rem 1.1rem;
    border-radius: 2rem;
    border: 1px solid rgba(var(--theme-primary-rgb, 0, 114, 188), 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 22px 58px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.1),
        inset 0 0 0 1px rgba(var(--theme-accent-rgb, 255, 241, 0), 0.18);
    backdrop-filter: blur(18px);
}

.admin-sidebar__brand {
    padding: 0.35rem 0.35rem 1rem;
    border-bottom: 1px solid rgba(var(--theme-primary-rgb, 0, 114, 188), 0.1);
}

body.body--admin .admin-sidebar__brand .brand__text {
    max-width: none;
}

.admin-sidebar__group {
    display: grid;
    gap: 0.7rem;
}

.admin-sidebar__eyebrow {
    margin: 0;
    padding-inline: 0.45rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-sidebar__nav {
    display: grid;
    gap: 0.55rem;
}

.admin-nav-link {
    display: grid;
    gap: 0.28rem;
    padding: 0.95rem 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(var(--theme-primary-rgb, 0, 114, 188), 0.08);
    background: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.035);
    color: var(--ink);
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-nav-link strong {
    font-size: 0.98rem;
}

.admin-nav-link span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-nav-link:hover,
.admin-nav-link--active {
    transform: translateX(4px);
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.18);
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.6), rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.12));
    box-shadow: 0 14px 30px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.08);
}

.admin-sidebar__account {
    display: grid;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(var(--theme-primary-rgb, 0, 114, 188), 0.1);
}

.admin-sidebar__status {
    display: grid;
    gap: 0.22rem;
    padding: 0.95rem 1rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(var(--theme-primary-rgb, 0, 114, 188), 0.12);
    background: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.05);
}

.admin-sidebar__status span,
.admin-sidebar__status small {
    color: var(--muted);
}

.admin-sidebar__status strong {
    color: var(--ink);
    font-size: 1rem;
}

.admin-sidebar__logout {
    width: 100%;
}

.admin-content {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(249, 245, 235, 0.75);
    border: 1px solid rgba(20, 33, 31, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.csi-logo,
.csi-logo svg {
    display: block;
}

.csi-logo svg {
    width: 100%;
    height: auto;
}

.csi-logo__image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand__logo {
    width: clamp(7.6rem, 11vw, 10.6rem);
    flex-shrink: 0;
}

.brand__text {
    display: grid;
    gap: 0.15rem;
}

.brand__text strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.brand__text small {
    color: var(--muted);
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.topbar__account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar__status {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.58);
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link--active {
    color: var(--ink);
    background: rgba(14, 77, 69, 0.09);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.nav-dropdown__caret {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 160ms ease;
}

.nav-dropdown[open] .nav-dropdown__caret {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 50%;
    z-index: 30;
    display: grid;
    gap: 0.45rem;
    min-width: 18rem;
    padding: 0.75rem;
    border-radius: 1.25rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 48px rgba(20, 33, 31, 0.12);
    transform: translateX(-50%);
}

.nav-dropdown__item {
    display: grid;
    gap: 0.18rem;
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.nav-dropdown__item strong,
.nav-dropdown__item span {
    margin: 0;
}

.nav-dropdown__item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-dropdown__item:hover,
.nav-dropdown__item--active {
    background: rgba(14, 77, 69, 0.08);
    transform: translateY(-1px);
}

.page {
    display: grid;
    gap: 1.5rem;
}

.page > * {
    min-width: 0;
}

.hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(140deg, rgba(14, 77, 69, 0.92), rgba(14, 77, 69, 0.82)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
    color: #fff;
    box-shadow: var(--paper-shadow);
}

.hero--form {
    align-items: center;
}

.eyebrow {
    margin: 0 0 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    color: inherit;
    opacity: 0.72;
}

.hero h1,
.panel h1,
.panel h2,
.panel h3 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(2.2rem, 3vw, 3.8rem);
    max-width: 12ch;
}

.lede {
    margin: 0.9rem 0 0;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.panel .lede {
    color: var(--muted);
}

.status-pills,
.action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
    gap: 1.5rem;
    align-items: start;
}

.page-grid--confirmation {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
}

.stack-lg {
    display: grid;
    gap: 1.25rem;
}

.panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 1.5rem;
    min-width: 0;
}

.panel--paper {
    background: linear-gradient(180deg, rgba(249, 245, 235, 0.98), rgba(245, 239, 229, 0.96));
    box-shadow: var(--paper-shadow);
}

.panel--soft {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
}

.panel--accent {
    background: linear-gradient(180deg, rgba(190, 109, 58, 0.96), rgba(167, 87, 39, 0.96));
    color: #fff;
    box-shadow: var(--paper-shadow);
}

.panel__header,
.section-block__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.panel__meta,
.section-block__header p,
.application-card__subhead,
.application-card__meta,
.submit-row__note,
.detail-list dt,
.detail-grid dt,
.reference-card__label {
    color: var(--muted);
}

.section-block {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

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

.fields-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field--wide {
    grid-column: span 2;
}

.field--full {
    grid-column: 1 / -1;
}

.field__label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
}

.field__input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(20, 33, 31, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.field__input:focus {
    outline: none;
    border-color: rgba(14, 77, 69, 0.5);
    box-shadow: 0 0 0 4px rgba(14, 77, 69, 0.1);
    transform: translateY(-1px);
}

.field__input--textarea {
    min-height: 8rem;
    resize: vertical;
}

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

.file-drop {
    display: grid;
    gap: 0.35rem;
    padding: 1.25rem;
    border: 1px dashed rgba(20, 33, 31, 0.24);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

.file-drop input {
    margin-top: 0.75rem;
}

.file-drop__title {
    font-weight: 700;
}

.file-drop__meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.signature-pad {
    display: grid;
    gap: 0.75rem;
}

.signature-pad canvas {
    width: 100%;
    min-height: 12rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(20, 33, 31, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 247, 239, 0.92)),
        repeating-linear-gradient(
            180deg,
            transparent 0,
            transparent 32px,
            rgba(14, 77, 69, 0.06) 32px,
            rgba(14, 77, 69, 0.06) 33px
        );
    touch-action: none;
    cursor: crosshair;
}

.signature-pad__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.9rem;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #1a665d);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    box-shadow: 0 14px 32px rgba(14, 77, 69, 0.18);
}

.button:hover {
    transform: translateY(-1px);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.52);
    color: var(--ink);
    box-shadow: none;
    border: 1px solid rgba(20, 33, 31, 0.12);
}

.button--small {
    min-height: 2.4rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.92rem;
}

.button--danger {
    background: linear-gradient(135deg, #ff0000, #d80000);
    box-shadow: 0 14px 32px rgba(255, 0, 0, 0.16);
}

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.feature-list,
.flash__list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.5rem;
    line-height: 1.55;
}

.detail-list,
.detail-grid {
    margin: 0;
    display: grid;
    gap: 1rem;
}

.detail-list dt,
.detail-grid dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.detail-list dd,
.detail-grid dd {
    margin: 0;
    line-height: 1.5;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid__full {
    grid-column: 1 / -1;
}

.prose-block {
    margin: 0;
    line-height: 1.7;
}

.reference-card,
.stat-card,
.flash {
    border-radius: var(--radius-md);
}

.reference-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.1rem 1.25rem;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.reference-card strong {
    font-size: 1.45rem;
    letter-spacing: 0.06em;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge--pending {
    background: rgba(20, 33, 31, 0.08);
    color: var(--ink);
}

.badge--selected {
    background: rgba(14, 77, 69, 0.14);
    color: var(--brand);
}

.badge--standby {
    background: rgba(190, 109, 58, 0.16);
    color: #9a572a;
}

.badge--rejected {
    background: rgba(181, 77, 69, 0.14);
    color: var(--danger);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.2rem 1.15rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(20, 33, 31, 0.08);
    backdrop-filter: blur(10px);
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.stat-card strong {
    font-size: 2rem;
    font-family: var(--font-display);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.filter-grid__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.application-list {
    display: grid;
    gap: 1rem;
}

.dashboard-toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.data-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
}

.data-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
}

.data-table--compact {
    min-width: 720px;
}

.data-table thead th {
    padding: 0.95rem 0.9rem;
    background: #243c7c;
    color: #fff;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 0.9rem;
    border-top: 1px solid var(--line);
    vertical-align: top;
    color: #243c7c;
    background: rgba(255, 255, 255, 0.96);
}

.data-table tbody tr:nth-child(even) td {
    background: rgba(36, 60, 124, 0.03);
}

.data-table__empty {
    text-align: center;
    color: var(--muted);
}

.table-note {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.table-link {
    color: #243c7c;
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.application-card__header,
.application-card__meta,
.action-row--spread {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    flex-wrap: wrap;
}

.application-card__meta {
    margin-top: 1rem;
    font-size: 0.94rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.media-preview,
.signature-preview {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(20, 33, 31, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

.media-preview {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.signature-preview {
    padding: 0.4rem;
}

.inline-media {
    display: grid;
    gap: 0.65rem;
}

.inline-media--stacked {
    gap: 0.3rem;
}

.entry-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.entry-card {
    display: grid;
    gap: 0.8rem;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(20, 33, 31, 0.08);
}

.entry-card h3,
.entry-card p {
    margin: 0;
}

.entry-card__eyebrow,
.entry-card__action {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.entry-card__eyebrow {
    color: var(--muted);
}

.entry-card__action {
    color: var(--brand);
}

.security-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.security-checklist span {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-wrap {
    min-height: 60vh;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(520px, 100%);
}

.flash {
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.flash--success {
    background: var(--brand-soft);
    border-color: rgba(14, 77, 69, 0.16);
    color: var(--brand);
}

.flash--error {
    background: var(--danger-soft);
    border-color: rgba(181, 77, 69, 0.18);
    color: #7b2f2a;
}

body.body--admin .topbar {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    position: relative;
    z-index: 50;
    overflow: visible;
    width: 100%;
    margin-inline: auto;
    gap: 1.25rem;
    padding: 1rem 1.3rem;
    margin-bottom: 1.8rem;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.1);
    box-shadow:
        0 18px 45px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.08),
        inset 0 0 0 1px rgba(var(--theme-accent-rgb, 255, 241, 0), 0.22);
}

body.body--admin .brand__logo {
    filter: drop-shadow(0 10px 24px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.16));
}

body.body--admin .brand {
    min-width: 0;
}

body.body--admin .brand__logo {
    width: clamp(6.8rem, 9vw, 9.2rem);
}

body.body--admin .brand__text {
    max-width: 11rem;
}

body.body--admin .nav-link {
    color: var(--muted);
}

body.body--admin .nav-link:hover,
body.body--admin .nav-link--active {
    color: var(--ink);
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.72), rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.18));
}

body.body--admin .topbar__nav {
    justify-self: center;
}

body.body--admin .topbar__account {
    justify-self: end;
}

body.body--admin .nav-dropdown__menu {
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 253, 0.96));
    box-shadow:
        0 18px 38px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.12),
        inset 0 0 0 1px rgba(var(--theme-accent-rgb, 255, 241, 0), 0.12);
}

body.body--admin .nav-dropdown__item:hover,
body.body--admin .nav-dropdown__item--active {
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.5), rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.12));
}

body.body--admin .hero {
    position: relative;
    overflow: hidden;
    align-items: center;
    min-height: 14.5rem;
    padding: 2rem 2.35rem;
    border-radius: 2rem;
    background:
        radial-gradient(circle at 84% 28%, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.16), transparent 12rem),
        linear-gradient(135deg, var(--brand) 0%, var(--ink) 56%, var(--muted) 100%);
    box-shadow: 0 26px 64px rgba(var(--theme-secondary-rgb, 36, 60, 124), 0.18);
}

body.body--admin .hero::before {
    content: "";
    position: absolute;
    top: -1.6rem;
    right: 2rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.9) 0, rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.24) 48%, transparent 74%);
    filter: blur(10px);
}

body.body--admin .hero::after {
    content: "";
    position: absolute;
    left: 2.2rem;
    right: 2.2rem;
    bottom: 1.25rem;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 34%, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.1) 100%);
}

body.body--admin .hero > * {
    position: relative;
    z-index: 1;
    max-width: 42rem;
}

body.body--admin .hero .eyebrow {
    color: var(--accent);
    opacity: 1;
}

body.body--admin .hero .lede {
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.9);
}

body.body--admin .panel--paper {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 253, 0.96));
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.12);
    border-radius: 1.9rem;
    box-shadow:
        0 18px 48px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.08),
        inset 0 0 0 1px rgba(var(--theme-accent-rgb, 255, 241, 0), 0.18);
}

body.body--admin .button {
    background: linear-gradient(135deg, var(--brand), var(--ink));
    box-shadow: 0 14px 32px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.16);
}

body.body--admin .button--ghost {
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.34), rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.12));
    color: var(--ink);
    border: 1px solid rgba(var(--theme-primary-rgb, 0, 114, 188), 0.18);
    box-shadow: none;
}

body.body--admin .button--danger {
    background: linear-gradient(135deg, var(--danger), color-mix(in srgb, var(--danger) 82%, #000000));
}

body.body--admin .badge--pending {
    background: rgba(var(--theme-neutral-rgb, 93, 93, 93), 0.12);
    color: var(--muted);
}

body.body--admin .badge--selected {
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.72), rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.16));
    color: var(--ink);
}

body.body--admin .badge--standby {
    background: rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.14);
    color: var(--accent-warm);
}

body.body--admin .badge--rejected {
    background: rgba(var(--theme-danger-rgb, 255, 0, 0), 0.1);
    color: var(--danger);
}

body.body--admin .panel__header .eyebrow,
body.body--admin .field__label {
    color: var(--ink);
}

body.body--admin .panel__header .eyebrow {
    opacity: 0.72;
}

body.body--admin .stat-card strong,
body.body--admin .field__label,
body.body--admin .panel h1,
body.body--admin .panel h2,
body.body--admin .panel h3 {
    color: #243c7c;
}

body.body--admin .field__input:focus {
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.5);
    box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.1);
}

body.body--admin .page {
    gap: 1.75rem;
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

body.body--admin .admin-content .flash {
    margin-bottom: 1.25rem;
}

body.body--admin .hero,
body.body--admin .panel--paper,
body.body--admin .stats-grid,
body.body--admin .pager {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    min-width: 0;
}

body.body--admin .stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
}

body.body--admin .stat-card {
    position: relative;
    padding: 1.35rem 1.2rem 1.15rem;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.12);
    box-shadow: 0 12px 30px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.05);
}

body.body--admin .panel--paper,
body.body--admin .hero {
    width: 100%;
    margin-inline: auto;
}

body.body--admin .stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--brand) 0 72%, var(--accent) 72% 100%);
}

body.body--admin .stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--muted) 0 72%, var(--accent-warm) 72% 100%);
}

body.body--admin .stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--ink) 0 72%, var(--accent) 72% 100%);
}

body.body--admin .stat-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--brand) 0 72%, var(--accent-warm) 72% 100%);
}

body.body--admin .stat-card:nth-child(5)::before {
    background: linear-gradient(90deg, var(--muted) 0 72%, var(--danger) 72% 100%);
}

body.body--admin .stat-card span {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
}

body.body--admin .stat-card strong {
    color: var(--brand);
    font-size: 2.25rem;
}

body.body--admin .stat-card:nth-child(2) strong {
    color: var(--muted);
}

body.body--admin .stat-card:nth-child(3) strong {
    color: var(--ink);
}

body.body--admin .stat-card:nth-child(4) strong {
    color: var(--accent-warm);
}

body.body--admin .stat-card:nth-child(5) strong {
    color: var(--danger);
}

body.body--admin .dashboard-toolbar {
    gap: 0.85rem;
    justify-content: flex-end;
}

body.body--admin .entry-card {
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 253, 0.92));
    box-shadow: 0 14px 30px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.05);
}

body.body--admin .entry-card:hover {
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.26);
    box-shadow: 0 18px 36px rgba(var(--theme-primary-rgb, 0, 114, 188), 0.08);
}

body.body--admin .entry-card__eyebrow {
    color: var(--brand);
}

body.body--admin .entry-card__action {
    color: var(--accent-warm);
}

body.body--admin .security-checklist span {
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.14);
    background: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.05);
    color: var(--ink);
}

body.body--admin .filter-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr) auto;
    gap: 1.15rem;
}

body.body--admin .filter-grid__actions {
    justify-content: flex-start;
    min-width: 0;
}

body.body--admin .panel h2 {
    margin-top: 0.1rem;
}

body.body--admin .field__input {
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.14);
    background: rgba(255, 255, 255, 0.96);
}

body.body--admin .data-table-wrap {
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.14);
    border-radius: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(var(--theme-accent-rgb, 255, 241, 0), 0.28);
}

body.body--admin .data-table thead th {
    background: linear-gradient(180deg, var(--ink), var(--brand));
    border-bottom: 4px solid var(--accent);
}

body.body--admin .data-table tbody td {
    color: var(--ink);
}

body.body--admin .data-table tbody tr:nth-child(even) td {
    background: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.035);
}

body.body--admin .data-table tbody tr:hover td {
    background: linear-gradient(180deg, rgba(var(--theme-accent-rgb, 255, 241, 0), 0.12), rgba(var(--theme-accent-warm-rgb, 214, 120, 42), 0.06));
}

body.body--admin .table-link {
    color: var(--brand);
}

body.body--admin .table-link:hover {
    color: var(--accent-warm);
}

body.body--admin .topbar__status {
    border-color: rgba(var(--theme-primary-rgb, 0, 114, 188), 0.14);
    background: rgba(255, 255, 255, 0.88);
}

body.body--admin .pager {
    padding-top: 0.3rem;
}

@media (max-width: 1440px) {
    body.body--admin .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.body--admin .filter-grid {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
    }

    body.body--admin .filter-grid__actions {
        grid-column: 1 / -1;
    }

    body.body--admin .panel__header {
        align-items: stretch;
    }

    body.body--admin .dashboard-toolbar {
        justify-content: flex-start;
    }
}

@media (max-width: 1100px) {
    .page-grid,
    .page-grid--confirmation,
    .stats-grid,
    .entry-card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-sidebar__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .topbar,
    .hero,
    .panel__header,
    .section-block__header,
    .submit-row,
    .application-card__header,
    .application-card__meta,
    .action-row--spread {
        flex-direction: column;
        align-items: stretch;
    }

    .fields-grid,
    .fields-grid--three,
    .media-grid,
    .filter-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .field--wide,
    .field--full,
    .detail-grid__full {
        grid-column: auto;
    }

    .shell {
        width: min(100% - 1rem, 1240px);
    }

    body.body--admin .shell {
        width: min(100% - 1rem, 1440px);
    }

    body.body--admin .shell.shell--admin {
        width: calc(100% - 1rem);
    }

    .topbar {
        border-radius: 28px;
    }

    body.body--admin .topbar {
        grid-template-columns: 1fr;
        width: 100%;
    }

    body.body--admin .topbar__nav,
    body.body--admin .topbar__account {
        justify-self: stretch;
    }

    .topbar__account {
        justify-content: flex-start;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown__trigger {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown__menu {
        position: static;
        min-width: 0;
        margin-top: 0.55rem;
        transform: none;
    }

    .admin-sidebar {
        border-radius: 1.6rem;
    }

    .admin-sidebar__nav {
        grid-template-columns: 1fr;
    }

    body.body--admin .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shell {
        padding-top: 0.75rem;
    }

    .hero,
    .panel {
        padding: 1.2rem;
    }

    .stats-grid,
    body.body--admin .stats-grid {
        grid-template-columns: 1fr;
    }

    body.body--admin .admin-sidebar {
        padding: 1rem 0.9rem;
    }
}

body.body--sheet {
    background: #e6e6e6;
    color: #101010;
    font-family: Arial, Helvetica, sans-serif;
}

body.body--sheet .ambient {
    display: none;
}

body.body--sheet .shell.shell--sheet {
    width: min(calc(100% - 1.5rem), 1580px);
    padding: 0.8rem 0 1.8rem;
}

body.body--sheet .page.page--sheet {
    gap: 0.7rem;
}

.sheet-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.35rem;
}

.sheet-toolbar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.45rem 1.15rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #374048;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 8px 16px rgba(36, 41, 50, 0.06);
}

.sheet-toolbar__link--admin {
    border-color: #ff120d;
    background: linear-gradient(180deg, #ff2a24 0%, #e80d08 100%);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(255, 18, 13, 0.22);
}

.sheet-toolbar__link--iconless {
    width: 3.4rem;
    min-width: 3.4rem;
    min-height: 2.9rem;
    padding: 0;
}

.sheet-toolbar__link--admin:hover,
.sheet-toolbar__link--admin:focus-visible {
    color: #ffffff;
    background: linear-gradient(180deg, #ff3b35 0%, #ef120c 100%);
    box-shadow: 0 16px 28px rgba(255, 18, 13, 0.26);
    transform: translateY(-1px);
    outline: none;
}

button.sheet-toolbar__link {
    cursor: pointer;
}

.csi-sheet {
    position: relative;
    padding: 1.7rem;
    background: #dddddd;
    border: 12px solid rgba(255, 255, 255, 0.88);
    border-radius: 26px;
    box-shadow:
        0 32px 90px rgba(29, 34, 43, 0.1),
        inset 0 0 0 1px rgba(68, 60, 48, 0.08);
    overflow: hidden;
    animation: sheet-rise 480ms ease-out;
}

.csi-sheet::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: #222;
}

.csi-sheet::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(64, 56, 45, 0.07);
    pointer-events: none;
}

.csi-sheet__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 450px;
    gap: 1.2rem;
    align-items: start;
}

.csi-sheet__title {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: min(100%, 980px);
    margin: 1.55rem auto 0;
    box-shadow: 0 20px 36px rgba(28, 34, 44, 0.08);
}

.csi-sheet__title-tag,
.csi-sheet__title-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.65rem;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.csi-sheet__title-tag {
    width: 190px;
    background: #ff120d;
    font-size: 2rem;
}

.csi-sheet__title-main {
    flex: 1;
    background: linear-gradient(90deg, #ff120d, #ff120d);
    border-left: 14px solid #f3a300;
    font-size: clamp(1.9rem, 2.2vw, 3rem);
}

.csi-company {
    display: grid;
    grid-template-areas:
        "logo"
        "phones"
        "contact";
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0.78rem;
    justify-items: stretch;
    padding-top: 0.45rem;
}

.csi-company__logo {
    display: block;
    width: min(100%, 21rem);
    justify-self: center;
    grid-area: logo;
}

.csi-company__logo svg {
    width: 100%;
    height: auto;
}

.csi-company__figure {
    position: relative;
    width: 62px;
    height: 108px;
}

.csi-company__head {
    position: absolute;
    top: 0;
    left: 17px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e07b22;
}

.csi-company__body {
    position: absolute;
    top: 24px;
    left: 20px;
    width: 22px;
    height: 76px;
    background: #0b74b3;
    border-radius: 18px;
}

.csi-company__body::before,
.csi-company__body::after {
    content: "";
    position: absolute;
    background: #0b74b3;
    border-radius: 18px;
}

.csi-company__body::before {
    width: 54px;
    height: 10px;
    top: 16px;
    left: -16px;
}

.csi-company__body::after {
    width: 10px;
    height: 78px;
    top: 0;
    left: 6px;
    box-shadow: -14px 32px 0 #0b74b3, 14px 32px 0 #0b74b3;
}

.csi-company__wordmark {
    display: grid;
    gap: 0.1rem;
    color: #2a438a;
    text-align: center;
}

.csi-company__csi {
    font-size: 4.1rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.csi-company__manpower {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.15rem;
    padding: 0.4rem 1.1rem;
    border: 5px solid #2a438a;
    border-radius: 999px;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: rgba(255, 255, 255, 0.55);
}

.csi-company__phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.72rem;
    width: 100%;
    grid-area: phones;
}

.csi-company__phone {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 3.35rem;
    padding: 0.38rem 1rem 0.38rem 0.52rem;
    border: 3px solid rgba(141, 141, 141, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    color: #8b8b8b;
    font-size: clamp(1.2rem, 1.7vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(41, 39, 35, 0.05);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.csi-company__phone:hover,
.csi-company__phone:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(41, 39, 35, 0.09);
    border-color: rgba(36, 60, 124, 0.45);
    outline: none;
}

.csi-company__phone--icon-only {
    grid-template-columns: 1fr;
    justify-content: center;
    width: 6.2rem;
    min-width: 6.2rem;
    min-height: 6.2rem;
    padding: 0.62rem;
    border-width: 4px;
    background: linear-gradient(180deg, #f8fbff 0%, #e9f2ff 100%);
    color: #1f4f96;
    box-shadow: 0 14px 26px rgba(31, 79, 150, 0.18);
}

.csi-company__phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border: 4px solid currentColor;
    border-radius: 999px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.92);
}

.csi-company__phone--whatsapp .csi-company__phone-icon {
    background: rgba(255, 255, 255, 0.96);
}

.csi-company__phone--icon-only:not(.csi-company__phone--whatsapp) {
    border-color: rgba(31, 79, 150, 0.45);
    background: linear-gradient(180deg, #f4f9ff 0%, #dcebff 100%);
    color: #1f4f96;
}

.csi-company__phone--whatsapp {
    border-color: rgba(23, 168, 92, 0.45);
    background: linear-gradient(180deg, #effcf5 0%, #daf6e6 100%);
    color: #17a85c;
}

.csi-company__phone-icon svg {
    width: 2.4rem;
    height: 2.4rem;
    display: block;
}

.csi-company__phone-value {
    line-height: 1;
    white-space: nowrap;
}

.csi-company__contact {
    display: grid;
    gap: 0.32rem;
    justify-items: center;
    width: 100%;
    padding: 0.95rem 1rem 1.05rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(242, 246, 252, 0.96) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(42, 67, 138, 0.08),
        0 10px 22px rgba(29, 34, 44, 0.06);
    text-align: center;
    grid-area: contact;
    justify-self: end;
}

.csi-company__contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: clamp(1.28rem, 1.65vw, 2rem);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-decoration: none;
    color: #16233f;
    word-break: break-word;
    transition: color 160ms ease, transform 160ms ease;
}

.csi-company__contact a:hover,
.csi-company__contact a:focus-visible {
    color: #23448f;
    transform: translateY(-1px);
    outline: none;
}

.csi-sheet__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 450px;
    gap: 1.35rem;
    margin-top: 0.95rem;
}

.csi-sheet__main,
.csi-sheet__side {
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

.csi-grid {
    display: grid;
    gap: 0.65rem;
}

[hidden] {
    display: none !important;
}

.csi-grid--double,
.csi-grid--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.csi-field-row {
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: stretch;
}

.csi-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.45rem;
    padding: 0.4rem 1rem;
    background: #666666;
    color: #fff;
    font-size: clamp(1.05rem, 1.2vw, 1.5rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.csi-label > span:last-child,
.csi-label__star {
    color: #ff120d;
    font-size: 1.4em;
}

.csi-label--with-hint {
    gap: 0.8rem;
    padding-block: 0.7rem;
}

.csi-label__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
}

.csi-label__title {
    line-height: 1;
}

.csi-label__hint {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.72rem, 0.72vw, 0.95rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.08em;
}

.csi-control,
.csi-side-field__control {
    position: relative;
    min-height: 3.45rem;
    background: #ffffff;
    border: 2px solid #a1a1a1;
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 18px rgba(39, 39, 39, 0.04);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.csi-control::before,
.csi-side-field__control::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: #ff120d;
    border-radius: 12px 0 0 12px;
}

.csi-control:focus-within,
.csi-side-field__control:focus-within,
.csi-position-picker__option:hover,
.csi-photo-card__box:hover {
    transform: translateY(-1px);
    box-shadow:
        0 18px 32px rgba(28, 34, 43, 0.08),
        inset 0 0 0 1px rgba(36, 59, 99, 0.06);
}

.csi-control.is-disabled,
.csi-side-field__control.is-disabled {
    background: #f0f0f0;
    border-color: #bebebe;
    box-shadow: none;
}

.csi-control.is-disabled::before,
.csi-side-field__control.is-disabled::before {
    background: #d8d8d8;
}

.csi-control.is-disabled .csi-input,
.csi-side-field__control.is-disabled .csi-side-field__input {
    color: #b6b6b6;
    cursor: not-allowed;
}

.csi-label.is-disabled {
    background: #7d7d7d;
    color: rgba(255, 255, 255, 0.72);
}

.csi-input,
.csi-side-field__input {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 0.65rem 0.95rem 0.65rem 1.35rem;
    color: #151515;
    font-size: clamp(1rem, 1.15vw, 1.35rem);
    font-weight: 800;
    text-transform: uppercase;
    outline: none;
    letter-spacing: 0.03em;
}

select.csi-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.8rem;
}

.csi-control--select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0;
    height: 0;
    border-left: 0.42rem solid transparent;
    border-right: 0.42rem solid transparent;
    border-top: 0.62rem solid #a0a0a0;
    transform: translateY(-30%);
    pointer-events: none;
}

.csi-input::placeholder,
.csi-side-field__input::placeholder,
.csi-summary__input::placeholder {
    color: #d8d8d8;
}

.csi-control--flag .csi-input {
    padding-left: 4.5rem;
}

.csi-control--contact {
    display: grid;
    grid-template-columns: minmax(0, 158px) minmax(0, 1fr);
    align-items: stretch;
    padding-right: 0;
    overflow: visible;
}

.csi-contact-field__code-wrap,
.csi-contact-field__number-wrap {
    min-width: 0;
}

.csi-contact-field__code-wrap {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    padding-left: 0.85rem;
    border-right: 2px solid #a1a1a1;
    isolation: isolate;
    z-index: 4;
}

.csi-contact-field__code,
.csi-contact-field__number {
    height: 100%;
}

.csi-contact-field__code {
    padding-left: 0.45rem;
    padding-right: 0.35rem;
}

.csi-contact-field__number {
    padding-left: 0.85rem;
}

.csi-contact-field__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    font-size: 1.15rem;
    line-height: 1;
}

.csi-contact-field__picker-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.csi-contact-field__picker-caret {
    width: 0;
    height: 0;
    border-left: 0.38rem solid transparent;
    border-right: 0.38rem solid transparent;
    border-top: 0.54rem solid #a0a0a0;
    transition: transform 160ms ease;
}

.csi-contact-field__code-wrap.is-open .csi-contact-field__picker-caret {
    transform: rotate(180deg);
}

.csi-contact-picker {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    width: min(420px, calc(100vw - 3rem));
    padding: 0.65rem;
    border: 1px solid rgba(138, 138, 138, 0.42);
    border-radius: 16px;
    background: rgba(251, 251, 251, 0.98);
    box-shadow: 0 18px 36px rgba(29, 34, 43, 0.16);
    backdrop-filter: blur(14px);
    z-index: 35;
}

.csi-contact-picker__search-wrap {
    margin-bottom: 0.5rem;
}

.csi-contact-picker__search {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid rgba(161, 161, 161, 0.85);
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    background: #fff;
    color: #1b1b1b;
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
}

.csi-contact-picker__search::placeholder {
    color: #9e9e9e;
}

.csi-contact-picker__options {
    display: grid;
    gap: 0.28rem;
    max-height: 16.5rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.csi-contact-picker__option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #232323;
    text-align: left;
    cursor: pointer;
}

.csi-contact-picker__option:hover,
.csi-contact-picker__option:focus-visible,
.csi-contact-picker__option.is-selected {
    background: rgba(36, 60, 124, 0.1);
    outline: none;
}

.csi-contact-picker__flag {
    font-size: 1.1rem;
    line-height: 1;
}

.csi-contact-picker__country {
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csi-contact-picker__code {
    font-size: 0.92rem;
    font-weight: 800;
    color: #5b5b5b;
}

.csi-contact-picker__empty {
    padding: 0.7rem 0.8rem;
    color: #7c7c7c;
    font-size: 0.88rem;
    font-weight: 700;
}

.csi-contact-field__number-wrap.is-disabled {
    background: #f0f0f0;
}

.csi-contact-field__number-wrap.is-disabled .csi-contact-field__number {
    color: #b6b6b6;
    cursor: not-allowed;
}

.csi-contact-field input[type="hidden"],
.csi-contact-field__number-wrap input[type="hidden"] {
    min-width: 0;
    display: none;
}

.csi-flag {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    width: 38px;
    height: 30px;
    transform: translateY(-50%);
    background:
        linear-gradient(90deg, #ff120d 0 25%, transparent 25%),
        linear-gradient(180deg, #009f4d 0 33%, #ffffff 33% 66%, #000000 66% 100%);
    border: 1px solid rgba(25, 29, 38, 0.14);
    border-radius: 4px;
}

.csi-position-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.csi-position-slot {
    display: grid;
    gap: 0.28rem;
    align-content: start;
}

.csi-position-picker__option {
    position: relative;
    min-height: 3.45rem;
    padding: 0.65rem 0.95rem 0.65rem 1.35rem;
    border: 2px solid #a1a1a1;
    border-radius: 14px;
    background: #ffffff;
    color: #131313;
    text-align: left;
    font-size: clamp(1rem, 1.05vw, 1.3rem);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.csi-position-picker__option::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 10px;
    background: #ff120d;
    border-radius: 12px 0 0 12px;
}

.csi-position-picker__option.is-active {
    background: linear-gradient(180deg, #fff3f3, #ffffff);
    border-color: rgba(255, 18, 13, 0.35);
    box-shadow:
        inset 0 0 0 1px rgba(255, 18, 13, 0.18),
        0 16px 30px rgba(31, 44, 66, 0.06);
}

.csi-section-banner {
    display: flex;
    align-items: center;
    width: min(76%, 980px);
    min-height: 3.95rem;
    margin: 0.85rem auto 0.3rem;
    padding: 0 0 0 1.5rem;
    background: #666666;
    color: #fff;
    font-size: clamp(1.4rem, 1.6vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(29, 35, 44, 0.08);
}

.csi-section-banner::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 142px;
    background: linear-gradient(80deg, transparent 0 16%, #ff1a1a 16% 100%);
    border-radius: 0 18px 18px 0;
}

.csi-summary {
    position: relative;
    min-height: 12rem;
    padding: 0.95rem 1rem 0.85rem;
    border: 2px solid #8b8b8b;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 238, 8, 0.98), rgba(255, 238, 8, 0.98)),
        repeating-linear-gradient(
            180deg,
            transparent 0,
            transparent 38px,
            rgba(0, 0, 0, 0.04) 38px,
            rgba(0, 0, 0, 0.04) 39px
        );
    box-shadow: 0 18px 36px rgba(29, 34, 44, 0.06);
}

.csi-summary__label {
    display: inline-flex;
    margin-bottom: 0.4rem;
    color: #141414;
    font-size: clamp(1.15rem, 1.4vw, 1.8rem);
    font-weight: 700;
    transition: opacity 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

.csi-summary__label::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 1.8rem;
    margin-left: 0.6rem;
    background: #ff120d;
    border-radius: 999px;
}

.csi-summary--filled .csi-summary__label {
    opacity: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.csi-summary--filled .csi-summary__label::after {
    display: none;
}

.csi-summary__input {
    width: 100%;
    min-height: 9rem;
    border: 0;
    resize: vertical;
    background: transparent;
    color: #141414;
    font-size: 1.08rem;
    line-height: 1.55;
    outline: none;
}

.csi-status-strip {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 1.8rem;
    align-items: center;
    padding: 0.15rem 0;
}

.csi-status-option {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #575757;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.csi-status-option input {
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    border: 2px solid #747474;
    background: #f8f8f8;
}

.csi-photo-card__box {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 24rem;
    border: 2px solid #9f9f9f;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 18px 36px rgba(29, 34, 44, 0.05);
}

.csi-photo-card__box:focus-visible {
    outline: none;
    box-shadow:
        0 18px 32px rgba(28, 34, 43, 0.08),
        inset 0 0 0 2px rgba(36, 59, 99, 0.2);
}

.csi-photo-card__box.is-dragover {
    border-color: rgba(36, 60, 124, 0.65);
    box-shadow:
        0 22px 38px rgba(28, 34, 43, 0.12),
        inset 0 0 0 2px rgba(36, 59, 99, 0.12);
}

.csi-photo-card__media {
    position: relative;
    min-height: 19rem;
}

.csi-photo-card__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.csi-photo-card__preview,
.csi-photo-card__image {
    position: absolute;
    inset: 0;
}

.csi-photo-card__preview {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 0;
    padding: 1.6rem 1rem 1rem;
    text-align: center;
    color: #979797;
    font-size: 1.45rem;
    font-weight: 300;
}

.csi-photo-card__preview > span {
    align-self: end;
}

.csi-photo-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    opacity: 0;
    transition: opacity 180ms ease;
}

.csi-photo-card__image.is-visible {
    opacity: 1;
}

.csi-photo-card__footer {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
    padding: 0.9rem 1rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, #ffffff 100%);
    border-top: 1px solid rgba(159, 159, 159, 0.35);
}

.csi-photo-card__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.csi-photo-card__action,
.csi-photo-card__drag-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.csi-photo-card__action {
    border: 1px solid rgba(36, 60, 124, 0.22);
    background: rgba(36, 60, 124, 0.07);
    color: #243c7c;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.csi-photo-card__action:hover,
.csi-photo-card__action:focus-visible {
    transform: translateY(-1px);
    background: rgba(36, 60, 124, 0.12);
    border-color: rgba(36, 60, 124, 0.35);
    outline: none;
}

.csi-photo-card__action--camera {
    background: rgba(214, 120, 42, 0.08);
    border-color: rgba(214, 120, 42, 0.22);
    color: #b8641b;
}

.csi-photo-card__action--camera:hover,
.csi-photo-card__action--camera:focus-visible {
    background: rgba(214, 120, 42, 0.14);
    border-color: rgba(214, 120, 42, 0.32);
}

.csi-photo-card__drag-hint {
    border: 1px dashed rgba(141, 141, 141, 0.85);
    background: rgba(246, 246, 246, 0.95);
    color: #6c6c6c;
}

.csi-photo-card__file-name {
    display: block;
    text-align: center;
    font-size: 0.86rem;
    color: #6f6f6f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csi-camera {
    position: relative;
    width: 170px;
    height: 120px;
    border: 7px solid #8a8a8a;
    border-radius: 26px;
}

.csi-camera::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 28px;
    width: 24px;
    height: 14px;
    border-radius: 8px 8px 0 0;
    background: #8a8a8a;
}

.csi-camera::after {
    content: "";
    position: absolute;
    top: -26px;
    right: 22px;
    width: 30px;
    height: 22px;
    border-radius: 8px;
    border: 6px solid #8a8a8a;
}

.csi-camera__lens {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    border: 7px solid #8a8a8a;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.csi-camera__lens::after {
    content: "";
    position: absolute;
    inset: 17px;
    border: 5px solid #8a8a8a;
    border-radius: 50%;
}

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

.csi-side-field__label {
    display: inline-flex;
    align-items: center;
    min-height: 100%;
    margin: 0;
    padding: 0.35rem 1rem 0.35rem 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: clamp(1rem, 1.05vw, 1.25rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #9d9d9d;
    white-space: nowrap;
}

.csi-side-field__label::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: calc(100% + 4px);
    margin-right: 1rem;
    background: #ff120d;
    border-radius: 0;
}

.csi-side-field__control {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    min-height: 3.45rem;
    padding-right: 0.75rem;
}

.csi-side-field__input {
    padding: 0.4rem 0.25rem 0.4rem 0;
    text-transform: uppercase;
}

.csi-side-field__input::placeholder {
    color: transparent;
}

.csi-side-field__input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.csi-side-field__input[type="number"]::-webkit-outer-spin-button,
.csi-side-field__input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.csi-sheet__footer {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.csi-signature-strip {
    display: grid;
    grid-template-columns: minmax(0, 30rem);
    gap: 1rem;
    align-items: end;
}

.csi-sign-line {
    display: grid;
    gap: 0.3rem;
}

.csi-sign-line__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: #686868;
    font-size: 0.95rem;
}

.signature-pad--sheet canvas {
    min-height: 8.8rem;
    border: 2px solid #a1a1a1;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
        repeating-linear-gradient(
            180deg,
            transparent 0,
            transparent 30px,
            rgba(255, 18, 13, 0.06) 30px,
            rgba(255, 18, 13, 0.06) 31px
        );
}

.signature-pad--sheet .signature-pad__footer {
    justify-content: flex-start;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.csi-submit-box {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.csi-submit-box__button {
    width: min(100%, 18rem);
    min-height: 3.25rem;
    background: linear-gradient(180deg, #ff120d, #e90d08);
    box-shadow: 0 20px 34px rgba(255, 18, 13, 0.18);
}

body.body--sheet .sheet-toolbar__link,
body.body--sheet .csi-sheet,
body.body--sheet .csi-sheet * {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
}

@keyframes sheet-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1500px) {
    .csi-sheet__top,
    .csi-sheet__body {
        grid-template-columns: minmax(0, 1fr) 384px;
    }

    .csi-field-row {
        grid-template-columns: 290px minmax(0, 1fr);
    }
}

@media (min-width: 1501px) {
    body.body--sheet .shell.shell--sheet {
        width: min(80vw, 1580px);
    }
}

@media (max-width: 1180px) {
    .csi-sheet {
        padding: 1.4rem;
    }

    .csi-sheet__top,
    .csi-sheet__body,
    .csi-grid--double,
    .csi-grid--pair {
        grid-template-columns: 1fr;
    }

    .csi-sheet__title {
        margin-top: 1.4rem;
    }

    .csi-field-row,
    .csi-field-row--positions {
        grid-template-columns: 1fr;
    }

    .csi-control--contact {
        grid-template-columns: minmax(0, 136px) minmax(0, 1fr);
    }

    .csi-section-banner {
        width: 100%;
    }
}

@media (max-width: 720px) {
    body.body--sheet.phone-picker-open {
        overflow: hidden;
    }

    .csi-sheet {
        padding: 0.9rem;
        border-width: 6px;
    }

    .csi-sheet__top {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .csi-company {
        order: -1;
        width: 100%;
        margin: 0 auto;
        grid-template-areas:
            "logo"
            "phones"
            "contact";
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.75rem;
        padding-top: 0;
    }

    .csi-sheet__title {
        order: 1;
        margin-top: 0;
        flex-direction: column;
        width: 100%;
    }

    .csi-sheet__title-tag {
        width: 100%;
    }

    .csi-company__logo {
        width: min(100%, 17rem);
    }

    .csi-company__manpower {
        font-size: 1.85rem;
        min-height: 3.4rem;
    }

    .csi-company__phones {
        justify-content: center;
    }

    .csi-company__contact {
        width: min(100%, 22rem);
        margin: 0 auto;
    }

    .csi-field-row,
    .csi-position-slot,
    .csi-control--select {
        position: relative;
        z-index: 1;
    }

    .csi-field-row:focus-within,
    .csi-position-slot:focus-within,
    .csi-control--select:focus-within {
        z-index: 80;
    }

    .csi-contact-field__code-wrap.is-open {
        z-index: 2600;
    }

    .csi-contact-picker {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        top: auto;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        width: auto;
        max-height: min(30rem, calc(100vh - 2rem));
        padding: 0.7rem;
        border-radius: 20px;
        z-index: 2700;
    }

    .csi-contact-picker__search-wrap {
        position: sticky;
        top: 0;
        z-index: 1;
        padding-bottom: 0.35rem;
        background: rgba(251, 251, 251, 0.98);
    }

    .csi-contact-picker__options {
        max-height: calc(min(30rem, calc(100vh - 2rem)) - 4.5rem);
    }

    .csi-position-picker {
        grid-template-columns: 1fr;
    }

    .csi-label {
        font-size: 1rem;
    }

    .csi-photo-card__box {
        min-height: 24rem;
    }

    .csi-status-strip,
    .csi-signature-strip {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1181px) {
    body.body--sheet {
        min-height: 100vh;
        display: grid;
        place-items: center;
        padding: 1rem 0;
    }

    body.body--sheet .shell.shell--sheet {
        width: min(calc(100vw - 3rem), 1210px);
        margin: 0 auto;
        padding: 1.15rem 0 0;
    }

    body.body--sheet .page.page--sheet {
        gap: 0;
    }

    .sheet-toolbar {
        position: absolute;
        top: -0.1rem;
        right: 0.15rem;
        z-index: 5;
        margin: 0;
    }

    .sheet-toolbar__link {
        min-height: 2.9rem;
        padding: 0.42rem 1.45rem;
        border: 2px solid #e05f59;
        border-radius: 999px;
        background: linear-gradient(180deg, #fcf7f7 0%, #f2f2f2 100%);
        color: #23448f;
        font-size: 0.96rem;
        font-weight: 900;
        letter-spacing: 0.05em;
        text-transform: none;
        box-shadow: 0 10px 20px rgba(35, 68, 143, 0.08);
    }

    .sheet-toolbar__link--admin {
        border-color: #ff120d;
        background: linear-gradient(180deg, #ff2a24 0%, #e80d08 100%);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(255, 18, 13, 0.18);
    }

    .sheet-toolbar__link--iconless {
        width: 3rem;
        min-width: 3rem;
        min-height: 2.6rem;
        padding: 0;
    }

    .csi-sheet {
        padding: 1.45rem 1.9rem 1.15rem;
        background: #efefef;
        border: 1px solid rgba(121, 121, 121, 0.25);
        border-radius: 1.55rem;
        box-shadow: none;
    }

    .csi-sheet__top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 318px;
        gap: 1rem;
        align-items: start;
        min-height: 14.2rem;
        padding-right: 0;
    }

    .csi-sheet__title {
        width: 595px;
        margin: 0.85rem auto 0;
        box-shadow: none;
    }

    .csi-sheet__title-tag,
    .csi-sheet__title-main {
        min-height: 3.05rem;
        letter-spacing: 0.03em;
        text-shadow: none;
    }

    .csi-sheet__title-tag {
        width: 135px;
        font-size: 0.84rem;
    }

    .csi-sheet__title-main {
        font-size: 1rem;
    }

    .csi-company {
        position: static;
        width: 318px;
        justify-self: center;
        margin-top: 1.55rem;
        gap: 0.16rem;
        padding-top: 0;
    }

    .csi-company__logo {
        width: 296px;
        margin-left: 0;
    }

    .csi-company__figure {
        width: 46px;
        height: 78px;
    }

    .csi-company__head {
        left: 13px;
        width: 20px;
        height: 20px;
    }

    .csi-company__body {
        top: 19px;
        left: 15px;
        width: 15px;
        height: 56px;
    }

    .csi-company__body::before {
        width: 40px;
        height: 7px;
        top: 13px;
        left: -12px;
    }

    .csi-company__body::after {
        width: 7px;
        height: 58px;
        left: 4px;
        box-shadow: -10px 24px 0 #0b74b3, 10px 24px 0 #0b74b3;
    }

    .csi-company__csi {
        font-size: 2.65rem;
    }

    .csi-company__manpower {
        min-height: 2.6rem;
        padding: 0.18rem 0.78rem;
        font-size: 1.42rem;
        border-width: 3px;
    }

    .csi-company__phones {
        gap: 0.18rem;
    }

    .csi-company__phone {
        gap: 0.35rem;
        min-height: 2.12rem;
        padding: 0.08rem 0.48rem 0.08rem 0.14rem;
        border-width: 2px;
        font-size: 0.8rem;
        box-shadow: none;
        background: transparent;
    }

    .csi-company__phone--icon-only {
        width: 3.85rem;
        min-width: 3.85rem;
        min-height: 3.85rem;
        padding: 0.24rem;
        border-width: 2px;
    }

    .csi-company__phone-icon {
        width: 3rem;
        height: 3rem;
        border-width: 2px;
    }

    .csi-company__phone-icon svg {
        width: 1.55rem;
        height: 1.55rem;
    }

    .csi-company__contact {
        gap: 0.16rem;
        margin-top: 0.18rem;
        padding: 0.6rem 0.8rem 0.72rem;
        border-radius: 16px;
        box-shadow:
            inset 0 0 0 1px rgba(42, 67, 138, 0.08),
            0 6px 12px rgba(29, 34, 44, 0.04);
    }

    .csi-company__contact a {
        font-size: 1.18rem;
        font-weight: 950;
        line-height: 1.02;
        letter-spacing: -0.04em;
    }

    .csi-sheet__body {
        grid-template-columns: minmax(0, 1fr) 318px;
        gap: 1rem;
        margin-top: 0.12rem;
        align-items: start;
    }

    .csi-sheet__main,
    .csi-grid {
        gap: 0.32rem;
    }

    .csi-sheet__side {
        margin-top: clamp(2.8rem, 4.8vw, 4.6rem);
        gap: 0.42rem;
    }

    .csi-field-row {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 0.24rem;
    }

    .csi-grid--pair .csi-field-row {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .csi-grid--pair .csi-field-row--contact-entry {
        grid-template-columns: 168px minmax(0, 1fr);
    }

    .csi-grid--double .csi-field-row {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .csi-field-row--contact-entry .csi-control--contact {
        grid-template-columns: minmax(0, 106px) minmax(0, 1fr);
    }

    .csi-field-row--contact-entry .csi-contact-field__code {
        min-width: 2.7rem;
        padding-left: 0.3rem;
        padding-right: 0.2rem;
        font-size: 0.72rem;
    }

    .csi-field-row--contact-entry .csi-contact-field__number {
        padding-left: 0.45rem;
        font-size: 0.72rem;
        letter-spacing: 0;
    }

    .csi-field-row--contact-entry .csi-contact-field__code-wrap {
        grid-template-columns: auto minmax(2.7rem, 1fr) auto;
        padding-left: 0.5rem;
    }

    .csi-contact-field__flag {
        min-width: 1.2rem;
        font-size: 0.85rem;
    }

    .csi-contact-field__picker-toggle {
        width: 1.7rem;
    }

    .csi-contact-field__picker-caret {
        border-left-width: 5px;
        border-right-width: 5px;
        border-top-width: 7px;
    }

    .csi-contact-picker {
        width: min(320px, calc(100vw - 1.5rem));
        padding: 0.45rem;
    }

    .csi-contact-picker__search {
        min-height: 2.1rem;
        padding: 0.45rem 0.7rem;
        font-size: 0.72rem;
    }

    .csi-contact-picker__option {
        min-height: 2.1rem;
        padding: 0.45rem 0.55rem;
        gap: 0.4rem;
    }

    .csi-contact-picker__country,
    .csi-contact-picker__code,
    .csi-contact-picker__empty {
        font-size: 0.68rem;
    }

    .csi-contact-picker__flag {
        font-size: 0.8rem;
    }

    .csi-label,
    .csi-control,
    .csi-side-field__control,
    .csi-position-picker__option {
        min-height: 2.05rem;
    }

    .csi-label {
        padding: 0.15rem 0.85rem;
        font-size: 0.78rem;
        border-radius: 0;
        box-shadow: none;
    }

    .csi-label--with-hint {
        min-height: 2.7rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .csi-label__hint {
        font-size: 0.52rem;
        letter-spacing: 0.05em;
    }

    .csi-input,
    .csi-side-field__input,
    .csi-position-picker__option {
        font-size: 0.75rem;
        letter-spacing: 0.01em;
    }

    .csi-input,
    .csi-side-field__input {
        padding: 0.22rem 0.7rem 0.22rem 1.15rem;
    }

    select.csi-input {
        padding-right: 1.85rem;
    }

    .csi-control--flag .csi-input {
        padding-left: 2.85rem;
    }

    .csi-flag {
        left: 0.8rem;
        width: 22px;
        height: 18px;
        border-radius: 0;
    }

    .csi-position-picker__option {
        min-height: 2.05rem;
        padding: 0.22rem 1.9rem 0.22rem 1.15rem;
        border-width: 2px;
        border-radius: 0;
        box-shadow: none;
        font-size: 0.75rem;
    }

    .csi-position-slot {
        gap: 0.18rem;
    }

    .csi-control,
    .csi-side-field__control {
        border-width: 2px;
        border-radius: 0;
        box-shadow: none;
        transition: none;
    }

    .csi-control::before,
    .csi-side-field__control::before,
    .csi-position-picker__option::before {
        width: 9px;
        border-radius: 0;
    }

    .csi-control--select::after {
        right: 0.7rem;
        border-left-width: 6px;
        border-right-width: 6px;
        border-top-width: 9px;
    }

    .csi-position-picker__option::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0.7rem;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 9px solid #9a9a9a;
        transform: translateY(-30%);
    }

    .csi-control:focus-within,
    .csi-side-field__control:focus-within,
    .csi-position-picker__option:hover,
    .csi-photo-card__box:hover {
        transform: none;
        box-shadow: none;
    }

    .csi-section-banner {
        width: 592px;
        min-height: 2.5rem;
        margin: 0.42rem auto 0.38rem;
        padding-left: 0.82rem;
        font-size: 0.86rem;
        border-radius: 0;
        box-shadow: none;
    }

    .csi-section-banner::after {
        width: 84px;
        border-radius: 0;
    }

    .csi-summary {
        height: 7.9rem;
        padding: 0.35rem 0.42rem;
        border-width: 2px;
        border-radius: 0;
        background: #ffed00;
        box-shadow: none;
    }

    .csi-summary__label {
        margin-bottom: 0.12rem;
        font-size: 0.78rem;
    }

    .csi-summary__label::after {
        width: 4px;
        height: 1rem;
        margin-left: 0.3rem;
        border-radius: 0;
    }

    .csi-summary__input {
        height: 6.1rem;
        font-size: 0.72rem;
        line-height: 1.22;
        resize: none;
    }

    .csi-photo-card__box {
        min-height: 15.2rem;
        height: auto;
        border-radius: 0;
        box-shadow: none;
    }

    .csi-photo-card__media {
        min-height: 11rem;
    }

    .csi-photo-card__preview {
        padding: 0.9rem 0.7rem 0.6rem;
        font-size: 0.82rem;
    }

    .csi-photo-card__footer {
        gap: 0.45rem;
        padding: 0.55rem 0.6rem 0.65rem;
    }

    .csi-photo-card__actions {
        gap: 0.35rem;
    }

    .csi-photo-card__action,
    .csi-photo-card__drag-hint {
        min-height: 1.95rem;
        padding: 0.35rem 0.3rem;
        font-size: 0.54rem;
    }

    .csi-photo-card__file-name {
        font-size: 0.54rem;
    }

    .csi-camera {
        width: 116px;
        height: 80px;
        border-width: 5px;
        border-radius: 16px;
    }

    .csi-camera::before {
        top: -11px;
        left: 18px;
        width: 18px;
        height: 10px;
    }

    .csi-camera::after {
        top: -18px;
        right: 15px;
        width: 22px;
        height: 15px;
        border-width: 5px;
    }

    .csi-camera__lens {
        width: 66px;
        height: 66px;
        border-width: 5px;
    }

    .csi-camera__lens::after {
        inset: 11px;
        border-width: 4px;
    }

    .csi-side-field {
        gap: 0.12rem;
    }

    .csi-side-field__label {
        font-size: 0.72rem;
        padding-right: 0.55rem;
    }

    .csi-side-field__label::before {
        width: 9px;
        height: calc(100% + 4px);
        margin-right: 0.55rem;
    }

    .csi-side-field__control {
        min-height: 2.05rem;
        padding-right: 0.35rem;
    }

    .csi-side-field__input {
        padding: 0.12rem 0.15rem 0.12rem 0;
        font-size: 0.72rem;
    }

    .csi-status-strip {
        gap: 2.5rem;
        margin-top: 0.42rem;
        padding-left: 0.4rem;
    }

    .csi-status-option {
        gap: 0.55rem;
        font-size: 0.82rem;
    }

    .csi-status-option input {
        width: 1.15rem;
        height: 1.15rem;
    }

    .csi-sheet__footer {
        margin-top: 0.18rem;
        gap: 0.28rem;
    }

    .csi-signature-strip {
        grid-template-columns: minmax(0, 26rem);
        gap: 0.5rem;
    }

    .csi-sign-line {
        gap: 0.12rem;
    }

    .csi-sign-line__head {
        font-size: 0.78rem;
    }

    .sheet-toolbar__link--button {
        min-height: 1.5rem;
        padding: 0.1rem 0.6rem;
        font-size: 0.64rem;
        border-color: rgba(120, 120, 120, 0.45);
        color: #666;
    }

    .signature-pad--sheet canvas {
        min-height: 5rem;
    }

    .csi-submit-box {
        margin-top: 0.2rem;
    }

    .csi-submit-box__button {
        width: 185px;
        min-height: 1.9rem;
        padding: 0.12rem 0.7rem;
        border-radius: 999px;
        font-size: 0.66rem;
        box-shadow: none;
    }
}

@media (min-width: 1181px) and (max-height: 860px) {
    body.body--sheet .shell.shell--sheet {
        width: min(calc(100vw - 2rem), 1220px);
        padding-top: 0.9rem;
    }

    .csi-sheet {
        padding: 1.15rem 1.55rem 1rem;
    }

    .csi-sheet__top {
        grid-template-columns: minmax(0, 1fr) 320px;
        min-height: 12.6rem;
        padding-right: 0;
    }

    .csi-sheet__title,
    .csi-section-banner {
        margin-left: auto;
        margin-right: auto;
    }

    .csi-sheet__body {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 0.9rem;
    }

    .csi-sheet__side {
        margin-top: 2.25rem;
    }

    .csi-company {
        width: 320px;
        margin-top: 1.15rem;
    }

    .csi-company__logo {
        width: 292px;
    }

    .csi-photo-card__box {
        min-height: 13.8rem;
        height: auto;
    }

    .csi-summary {
        height: 6.8rem;
    }

    .csi-summary__input {
        height: 5rem;
    }
}
