@font-face {
    font-family: "Noto Sans Arabic";
    src: url("fonts/noto-sans-arabic-400.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

/* Editorial content workspace — approved September 2026 concept */
.editorial-heading {
    margin-bottom: 18px;
}

.editorial-heading > div:first-child span {
    color: #7b8e98;
    font-size: 11px;
}

.editorial-heading h1 {
    margin-top: 4px;
    font-size: clamp(24px, 2.3vw, 34px);
}

.editorial-heading p {
    max-width: 760px;
    font-size: 13px;
    line-height: 1.8;
}

.editorial-notice {
    margin-bottom: 14px;
}

.editorial-tabs {
    min-height: 54px;
    display: flex;
    align-items: end;
    gap: 30px;
    margin-bottom: 18px;
    padding-inline: 4px;
    border-bottom: 1px solid #dce5e8;
}

.editorial-tabs button {
    min-height: 54px;
    padding: 0 4px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #536d7a;
    font: 600 13px/1.4 "Noto Sans Arabic", sans-serif;
    cursor: pointer;
}

.editorial-tabs button:hover,
.editorial-tabs button:focus-visible {
    color: #087f75;
}

.editorial-tabs button.is-active {
    border-bottom-color: #0a8f83;
    color: #087f75;
    font-weight: 700;
}

.editorial-status-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.editorial-status-rail button {
    min-height: 62px;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #d8e2e6;
    border-radius: 7px;
    background: #fff;
    color: #516a76;
    font: 600 12px/1.5 "Noto Sans Arabic", sans-serif;
    text-align: right;
    cursor: pointer;
}

.editorial-status-rail button:hover,
.editorial-status-rail button:focus-visible,
.editorial-status-rail button.is-active {
    border-color: #89c8c1;
    box-shadow: inset 0 -2px #0a8f83;
}

.editorial-status-rail button > i,
.editorial-log-list article > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #83919a;
}

.editorial-status-rail button > strong {
    color: #092c3d;
    font: 700 23px/1 "Noto Kufi Arabic", sans-serif;
}

.editorial-status-rail button > .icon {
    width: 14px;
    height: 14px;
    color: #8799a2;
}

.editorial-registry,
.editorial-secondary-surface {
    overflow: hidden;
    border: 1px solid #d9e3e7;
    border-radius: 8px;
    background: #fff;
}

.editorial-toolbar {
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 145px 160px 155px auto;
    align-items: end;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid #dfe7ea;
}

.editorial-toolbar > label {
    display: grid;
    gap: 5px;
    color: #637a86;
    font-size: 10px;
    font-weight: 700;
}

.editorial-toolbar input,
.editorial-toolbar select {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #cfdce1;
    border-radius: 6px;
    background: #fff;
    color: #173b4d;
    font: 500 12px/1.5 "Noto Sans Arabic", sans-serif;
}

.editorial-search {
    position: relative;
    align-self: end;
}

.editorial-search > .icon {
    position: absolute;
    inset-inline-end: 12px;
    inset-block-end: 12px;
    z-index: 1;
    width: 16px;
    height: 16px;
    color: #66808d;
}

.editorial-search input {
    padding-inline-end: 40px;
}

.editorial-clear {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid #cfdce1;
    border-radius: 6px;
    background: #fff;
    color: #345462;
    font: 600 11px/1 "Noto Sans Arabic", sans-serif;
    cursor: pointer;
}

.editorial-clear:disabled {
    opacity: .45;
    cursor: default;
}

.editorial-clear .icon {
    width: 14px;
}

.editorial-content-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 305px;
    align-items: start;
}

.editorial-content-grid.without-inspector {
    grid-template-columns: 1fr;
}

.editorial-table-panel {
    min-width: 0;
}

.editorial-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.editorial-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.editorial-table th {
    height: 42px;
    padding: 8px 12px;
    border-bottom: 1px solid #dbe4e8;
    background: #f7f9fa;
    color: #5d7581;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.editorial-table th button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.editorial-table th button .icon {
    width: 11px;
    height: 11px;
}

.editorial-table td {
    height: 68px;
    padding: 11px 12px;
    border-bottom: 1px solid #e3eaed;
    color: #385562;
    font-size: 11px;
    vertical-align: middle;
}

.editorial-table tbody tr {
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.editorial-table tbody tr:hover {
    background: #fafcfc;
}

.editorial-table tbody tr.is-selected {
    background: #edf8f6;
    box-shadow: inset -3px 0 #0a8f83;
}

.editorial-table td strong,
.editorial-table td bdi,
.editorial-table td small {
    display: block;
}

.editorial-table td strong {
    max-width: 330px;
    color: #092c3d;
    font: 700 12px/1.65 "Noto Sans Arabic", sans-serif;
}

.editorial-table td bdi,
.editorial-table td small {
    margin-top: 2px;
    color: #7b8f99;
    font-size: 9px;
}

.editorial-table .row-action {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #44616e;
    cursor: pointer;
}

.editorial-table .row-action:hover,
.editorial-table .row-action:focus-visible {
    border-color: #cbd9de;
    background: #fff;
}

.editorial-table .row-action .icon {
    width: 17px;
}

.editorial-badge {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid #d3dde1;
    border-radius: 5px;
    background: #f5f7f8;
    color: #536872;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.editorial-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-published { color: #08756c !important; }
.editorial-badge.status-published { border-color: #bde2dc; background: #edf8f6; }
.status-scheduled { color: #b65d2e !important; }
.editorial-badge.status-scheduled { border-color: #f0c6ad; background: #fff4ed; }
.status-inreview { color: #a87400 !important; }
.editorial-badge.status-inreview { border-color: #ecd18e; background: #fff8e7; }
.status-draft { color: #657781 !important; }
.editorial-badge.status-draft { border-color: #d3dde1; background: #f5f7f8; }
.status-archived { color: #7a5a6b !important; }
.editorial-badge.status-archived { border-color: #decfd7; background: #faf4f7; }

.editorial-pagination {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    color: #6f838d;
    font-size: 10px;
}

.editorial-pagination > div {
    display: flex;
    gap: 5px;
}

.editorial-pagination button {
    min-width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0 7px;
    border: 1px solid #d5e0e4;
    border-radius: 5px;
    background: #fff;
    color: #294958;
    font: 600 10px/1 "Noto Sans Arabic", sans-serif;
    cursor: pointer;
}

.editorial-pagination button.is-current {
    border-color: #0a8f83;
    background: #0a8f83;
    color: #fff;
}

.editorial-pagination button:disabled {
    opacity: .35;
    cursor: default;
}

.editorial-pagination .icon {
    width: 13px;
}

.editorial-inspector {
    min-height: 100%;
    border-inline-start: 1px solid #dce5e8;
    background: #fff;
}

.editorial-inspector > header {
    position: relative;
    padding: 20px 20px 17px;
    border-bottom: 1px solid #e0e7ea;
}

.editorial-inspector > header > button {
    position: absolute;
    inset-inline-end: 13px;
    inset-block-start: 13px;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #6b7f89;
    cursor: pointer;
}

.editorial-inspector > header > button .icon {
    width: 15px;
}

.editorial-inspector > header > span:first-of-type {
    color: #68808c;
    font-size: 10px;
    font-weight: 700;
}

.editorial-inspector h2 {
    margin: 9px 0 11px;
    padding-inline-end: 22px;
    color: #092c3d;
    font: 700 17px/1.65 "Noto Kufi Arabic", sans-serif;
}

.editorial-inspector__body {
    padding: 17px 20px 20px;
}

.editorial-inspector dl {
    margin: 0;
}

.editorial-inspector dl > div {
    display: grid;
    grid-template-columns: 95px 1fr;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid #e6ecee;
}

.editorial-inspector dt {
    color: #7b8e98;
    font-size: 9px;
}

.editorial-inspector dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #183d4e;
    font-size: 10px;
    font-weight: 600;
}

.editorial-checklist {
    margin: 18px 0;
    padding: 15px 0;
    border-block: 1px solid #dfe7ea;
}

.editorial-checklist h3 {
    margin: 0 0 10px;
    color: #173b4d;
    font-size: 11px;
}

.editorial-checklist ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.editorial-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a5f24;
    font-size: 9px;
}

.editorial-checklist li.is-ready {
    color: #08756c;
}

.editorial-checklist li .icon {
    width: 14px;
    height: 14px;
}

.editorial-inspector__actions {
    display: grid;
    gap: 8px;
    margin-top: 17px;
}

.editorial-inspector > footer {
    padding: 0 20px 18px;
}

.editorial-inspector > footer button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid #e1e8eb;
    background: transparent;
    color: #087f75;
    font: 700 10px/1.5 "Noto Sans Arabic", sans-serif;
    cursor: pointer;
}

.editorial-inspector > footer button .icon {
    width: 15px;
}

.editorial-inspector > footer button .icon:last-child {
    margin-inline-start: auto;
}

.editorial-state {
    min-height: 320px;
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 35px;
    text-align: center;
}

.editorial-state > .icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    color: #0a8f83;
}

.editorial-state h2 {
    margin: 0 0 5px;
    color: #092c3d;
    font-size: 15px;
}

.editorial-state p {
    margin: 0 0 14px;
    color: #71848e;
    font-size: 11px;
}

.editorial-state button {
    padding: 8px 13px;
    border: 1px solid #b8d9d4;
    border-radius: 5px;
    background: #fff;
    color: #08756c;
    font: 700 10px/1.4 "Noto Sans Arabic", sans-serif;
    cursor: pointer;
}

.editorial-state.is-error > .icon {
    color: #b65d2e;
}

.editorial-spinner {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border: 3px solid #d6ebe8;
    border-top-color: #0a8f83;
    border-radius: 50%;
    animation: editorial-spin .8s linear infinite;
}

@keyframes editorial-spin { to { transform: rotate(360deg); } }

.editorial-secondary-surface > header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid #dfe7ea;
}

.editorial-secondary-surface > header h2 {
    margin: 0 0 3px;
    color: #092c3d;
    font: 700 17px/1.5 "Noto Kufi Arabic", sans-serif;
}

.editorial-secondary-surface > header p {
    margin: 0;
    color: #71858f;
    font-size: 10px;
}

.editorial-secondary-surface > header > span {
    color: #08756c;
    font-size: 11px;
    font-weight: 700;
}

.editorial-secondary-surface > footer {
    display: flex;
    align-items: start;
    gap: 9px;
    padding: 14px 20px;
    border-top: 1px solid #dfe7ea;
    background: #f8fafb;
    color: #647984;
}

.editorial-secondary-surface > footer .icon {
    width: 17px;
    color: #0a8f83;
}

.editorial-secondary-surface > footer p {
    margin: 0;
    font-size: 10px;
}

.editorial-static-list,
.editorial-category-list {
    display: grid;
}

.editorial-static-list article {
    min-height: 82px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 130px 90px;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid #e2e9ec;
}

.editorial-static-list article:last-child {
    border-bottom: 0;
}

.editorial-static-list article > .icon {
    width: 22px;
    color: #0a8f83;
}

.editorial-static-list strong,
.editorial-static-list p,
.editorial-static-list bdi {
    display: block;
}

.editorial-static-list strong {
    color: #14394a;
    font-size: 12px;
}

.editorial-static-list p {
    margin: 2px 0;
    color: #6f838d;
    font-size: 10px;
}

.editorial-static-list bdi {
    color: #8799a2;
    font-size: 9px;
}

.editorial-static-list article > span {
    color: #496570;
    font-size: 10px;
}

.editorial-static-list article > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #087f75;
    font-size: 10px;
    font-weight: 700;
}

.editorial-static-list article > a .icon {
    width: 14px;
}

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

.editorial-category-list article {
    min-height: 92px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e8eb;
    border-inline-end: 1px solid #e1e8eb;
}

.editorial-category-list article > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #c7dfdc;
    border-radius: 6px;
    color: #087f75;
}

.editorial-category-list article > span .icon {
    width: 18px;
}

.editorial-category-list strong,
.editorial-category-list small {
    display: block;
}

.editorial-category-list strong {
    color: #14394a;
    font-size: 12px;
}

.editorial-category-list small {
    margin-top: 3px;
    color: #738690;
    font-size: 9px;
}

.editorial-category-list article > b {
    color: #536c78;
    font-size: 10px;
}

.editorial-log > header > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #cfdce1;
    border-radius: 5px;
    background: #fff;
    color: #254958;
    font: 600 10px/1.4 "Noto Sans Arabic", sans-serif;
    cursor: pointer;
}

.editorial-log > header > button .icon {
    width: 14px;
}

.editorial-log-list article {
    min-height: 76px;
    display: grid;
    grid-template-columns: 9px 145px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e9ec;
}

.editorial-log-list time,
.editorial-log-list article > b {
    color: #647a85;
    font-size: 10px;
}

.editorial-log-list strong,
.editorial-log-list span,
.editorial-log-list bdi {
    display: block;
}

.editorial-log-list strong {
    color: #133849;
    font-size: 11px;
}

.editorial-log-list span,
.editorial-log-list bdi {
    margin-top: 2px;
    color: #7a8d96;
    font-size: 9px;
}

/* Full-screen announcement studio */
.content-studio {
    position: fixed;
    inset-block: 0;
    inset-inline-start: var(--sidebar);
    inset-inline-end: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f3f6f7;
    color: #173b4d;
}

.content-studio__topbar {
    position: relative;
    z-index: 3;
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    padding: 10px 22px;
    border-bottom: 1px solid #d6e1e5;
    background: #fff;
}

.content-studio__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-studio__identity > button {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid #d4dfe3;
    border-radius: 6px;
    background: #fff;
    color: #395765;
    cursor: pointer;
}

.content-studio__identity > button .icon {
    width: 15px;
}

.content-studio__identity span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6f838d;
    font-size: 9px;
}

.content-studio__identity span .icon {
    width: 10px;
}

.content-studio__identity h2 {
    max-width: 620px;
    margin: 3px 0 0;
    overflow: hidden;
    color: #092c3d;
    font: 700 15px/1.45 "Noto Kufi Arabic", sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-studio__save-state {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #66808c;
    font-size: 10px;
}

.content-studio__save-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0a8f83;
}

.content-studio__save-state.is-dirty i {
    background: #d09620;
}

.content-studio__top-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-button--review {
    border: 1px solid #d8bd79;
    background: #fffaf0;
    color: #936a10;
}

.admin-button--review:hover {
    background: #fff4d8;
}

.studio-more {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #cfdce1;
    border-radius: 6px;
    background: #fff;
    color: #345361;
    cursor: pointer;
}

.studio-more .icon {
    width: 18px;
}

.studio-more-menu {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 8;
    min-width: 190px;
    padding: 6px;
    border: 1px solid #d3dfe3;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(8, 36, 50, .14);
}

.studio-more-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #244654;
    font: 600 10px/1.5 "Noto Sans Arabic", sans-serif;
    text-align: right;
    cursor: pointer;
}

.studio-more-menu button:hover {
    background: #f2f7f7;
}

.studio-more-menu button.is-danger {
    color: #a64242;
}

.studio-more-menu .icon {
    width: 15px;
}

.studio-confirm,
.studio-error {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid #ead59e;
    background: #fff9e9;
    color: #765b1c;
}

.studio-confirm > .icon,
.studio-error > .icon {
    width: 19px;
    flex: 0 0 auto;
}

.studio-confirm > div {
    min-width: 0;
    flex: 1;
}

.studio-confirm strong {
    display: block;
    font-size: 11px;
}

.studio-confirm p {
    margin: 1px 0 0;
    font-size: 9px;
}

.studio-confirm > button {
    padding: 7px 10px;
    border: 1px solid #d6bd7c;
    border-radius: 4px;
    background: #fff;
    color: #765b1c;
    font: 700 9px/1.4 "Noto Sans Arabic", sans-serif;
    cursor: pointer;
}

.studio-confirm.is-danger,
.studio-error {
    border-color: #eccaca;
    background: #fff3f3;
    color: #923c3c;
}

.studio-error > span {
    flex: 1;
    font-size: 10px;
    font-weight: 600;
}

.studio-error > button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.studio-error > button .icon {
    width: 14px;
}

.content-studio__workspace {
    min-height: 0;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(560px, 1.12fr) minmax(390px, .82fr);
    overflow: hidden;
}

.content-studio__mobile-switch {
    display: none;
}

.studio-editor-pane {
    min-width: 0;
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    overflow: hidden;
    border-inline-end: 1px solid #d8e2e6;
    background: #fff;
}

.studio-steps {
    display: flex;
    flex-direction: column;
    padding: 18px 10px;
    border-inline-end: 1px solid #dfe7ea;
    background: #f8fafb;
}

.studio-steps a {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-inline-start: 2px solid transparent;
    color: #617783;
    font-size: 9px;
    font-weight: 600;
}

.studio-steps a span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #ccd9de;
    border-radius: 50%;
    font-size: 8px;
}

.studio-steps a:hover,
.studio-steps a.is-active {
    border-inline-start-color: #0a8f83;
    background: #edf7f5;
    color: #08756c;
}

.studio-steps a.is-active span {
    border-color: #0a8f83;
    background: #0a8f83;
    color: #fff;
}

.studio-form {
    min-width: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 16px 18px 70px;
    background: #f5f8f9;
}

.studio-form-section {
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid #d8e2e6;
    border-radius: 7px;
    background: #fff;
}

.studio-form-section > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e8eb;
}

.studio-form-section > header > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.studio-form-section > header > div > span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #edf7f5;
    color: #08756c;
    font-size: 9px;
    font-weight: 700;
}

.studio-form-section h3 {
    margin: 0;
    color: #092c3d;
    font-size: 12px;
}

.studio-form-section > header small {
    color: #7b8e98;
    font-size: 8px;
}

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

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

.studio-field {
    position: relative;
    display: grid;
    gap: 6px;
    margin-bottom: 13px;
    color: #405e6b;
    font-size: 9px;
    font-weight: 700;
}

.studio-field--full {
    width: 100%;
}

.studio-field > span b {
    color: #b34e3f;
}

.studio-field input,
.studio-field textarea,
.studio-field select,
.studio-block textarea,
.studio-block select,
.studio-attachments input {
    width: 100%;
    border: 1px solid #cfdce1;
    border-radius: 5px;
    background: #fff;
    color: #173b4d;
    font: 500 11px/1.8 "Noto Sans Arabic", sans-serif;
    outline: none;
}

.studio-field input,
.studio-field select {
    height: 40px;
    padding: 0 11px;
}

.studio-field textarea {
    min-height: 82px;
    padding: 9px 11px;
    resize: vertical;
}

.studio-field input:focus,
.studio-field textarea:focus,
.studio-field select:focus,
.studio-block textarea:focus,
.studio-block select:focus,
.studio-attachments input:focus {
    border-color: #0a8f83;
    box-shadow: 0 0 0 3px rgba(10, 143, 131, .1);
}

.studio-field > small {
    justify-self: end;
    color: #80919a;
    font-size: 8px;
    font-weight: 400;
}

.studio-slug {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    direction: ltr;
}

.studio-slug bdi {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #cfdce1;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    background: #f4f7f8;
    color: #6a808b;
    font-size: 10px;
}

.studio-slug input {
    border-radius: 0 5px 5px 0;
}

.studio-blocks,
.studio-attachments {
    display: grid;
    gap: 9px;
}

.studio-block {
    overflow: hidden;
    border: 1px solid #d8e2e6;
    border-radius: 6px;
    background: #fff;
}

.studio-block__toolbar {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 7px;
    border-bottom: 1px solid #e1e8eb;
    background: #f8fafb;
}

.studio-block__toolbar > span {
    color: #8799a2;
}

.studio-block__toolbar > span .icon {
    width: 14px;
}

.studio-block__toolbar select {
    width: 120px;
    height: 27px;
    padding: 0 7px;
    font-size: 9px;
}

.studio-block__toolbar > div {
    display: flex;
    gap: 3px;
    margin-inline-start: auto;
}

.studio-block__toolbar button,
.studio-attachments article > button {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #607783;
    cursor: pointer;
}

.studio-block__toolbar button:hover,
.studio-attachments article > button:hover {
    background: #eaf3f3;
    color: #08756c;
}

.studio-block__toolbar button:disabled {
    opacity: .3;
    cursor: default;
}

.studio-block__toolbar button .icon,
.studio-attachments article > button .icon {
    width: 13px;
}

.studio-block > textarea {
    min-height: 88px;
    padding: 10px;
    border: 0;
    border-radius: 0;
    resize: vertical;
}

.studio-block > small {
    display: block;
    padding: 0 10px 8px;
    color: #7b8e98;
    font-size: 8px;
}

.studio-add-block {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 9px;
    border: 1px dashed #80beb8;
    border-radius: 5px;
    background: #f7fcfb;
    color: #08756c;
    font: 700 10px/1.5 "Noto Sans Arabic", sans-serif;
    cursor: pointer;
}

.studio-add-block .icon {
    width: 15px;
}

.studio-attachments article {
    display: grid;
    grid-template-columns: 24px minmax(130px, 1fr) minmax(130px, 1fr) 105px 28px;
    align-items: end;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d8e2e6;
    border-radius: 6px;
}

.studio-attachments article > .icon {
    width: 18px;
    align-self: center;
    color: #0a8f83;
}

.studio-attachments label {
    display: grid;
    gap: 4px;
    color: #617783;
    font-size: 8px;
}

.studio-attachments input {
    height: 34px;
    padding: 0 8px;
    font-size: 9px;
}

.studio-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.studio-switches label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d7e1e5;
    border-radius: 6px;
    cursor: pointer;
}

.studio-switches input {
    width: 17px;
    height: 17px;
    accent-color: #0a8f83;
}

.studio-switches strong,
.studio-switches small {
    display: block;
}

.studio-switches strong {
    color: #173b4d;
    font-size: 10px;
}

.studio-switches small {
    margin-top: 2px;
    color: #738690;
    font-size: 8px;
}

.studio-field--urgent {
    padding: 12px;
    border: 1px solid #ecd18e;
    border-radius: 6px;
    background: #fffaf0;
}

.studio-schedule-button {
    margin-top: 2px;
}

.studio-readiness ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.studio-readiness li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8a6a23;
    font-size: 9px;
}

.studio-readiness li.is-ready {
    color: #08756c;
}

.studio-readiness li .icon {
    width: 14px;
}

.studio-readiness > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #e2e9ec;
    color: #6e828c;
    font-size: 9px;
}

.studio-readiness > div strong {
    font-size: 10px;
}

.studio-preview-pane {
    min-width: 0;
    overflow-y: auto;
    padding: 14px;
    background: #edf2f4;
}

.studio-preview-pane > header {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 0 4px 10px;
}

.studio-preview-pane > header strong,
.studio-preview-pane > header small {
    display: block;
}

.studio-preview-pane > header strong {
    color: #173b4d;
    font-size: 11px;
}

.studio-preview-pane > header small {
    margin-top: 2px;
    color: #71858f;
    font-size: 8px;
}

.studio-preview-pane > header > div:last-child {
    display: flex;
    border: 1px solid #ccd9de;
    border-radius: 5px;
    background: #fff;
}

.studio-preview-pane > header button {
    width: 34px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 0;
    border-inline-end: 1px solid #dbe4e7;
    background: transparent;
    color: #617783;
    cursor: pointer;
}

.studio-preview-pane > header button:last-child {
    border-inline-end: 0;
}

.studio-preview-pane > header button.is-active {
    background: #0a8f83;
    color: #fff;
}

.studio-preview-pane > header button .icon {
    width: 15px;
}

.studio-preview-frame {
    transition: width .2s ease;
}

.studio-preview-frame.is-phone {
    width: 360px;
    max-width: 100%;
    margin-inline: auto;
}

.studio-preview {
    overflow: hidden;
    border: 1px solid #cbd8dd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(9, 44, 61, .08);
}

.studio-preview__browser {
    height: 35px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-bottom: 1px solid #d8e2e6;
    background: #f5f7f8;
}

.studio-preview__browser > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #bac6cc;
}

.studio-preview__browser bdi {
    min-width: 0;
    flex: 1;
    margin-inline-start: 8px;
    overflow: hidden;
    color: #7c8d96;
    font-size: 7px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-preview__page {
    padding: 18px 22px 24px;
}

.studio-preview__brand {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e1e8eb;
    color: #092c3d;
    font-size: 8px;
}

.studio-preview__brand span {
    width: 24px;
    height: 24px;
    border: 1px solid #c8a85d;
    border-radius: 50%;
}

.studio-preview article {
    padding-top: 22px;
}

.studio-preview__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #788b95;
    font-size: 7px;
}

.studio-preview__meta span {
    color: #08756c;
    font-weight: 700;
}

.studio-preview h2 {
    margin: 10px 0 8px;
    color: #092c3d;
    font: 700 18px/1.75 "Noto Kufi Arabic", sans-serif;
}

.studio-preview__summary {
    margin: 0 0 17px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0e7ea;
    color: #395765;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.9;
}

.studio-preview__content h3,
.studio-preview__attachments h3 {
    margin: 16px 0 7px;
    color: #14394a;
    font-size: 11px;
}

.studio-preview__content p,
.studio-preview__content li {
    color: #405e6b;
    font-size: 9px;
    line-height: 2;
}

.studio-preview__content p {
    margin: 0 0 10px;
}

.studio-preview__content ul {
    margin: 0 0 12px;
    padding-inline-start: 19px;
}

.studio-preview__content li::marker {
    color: #0a8f83;
}

.studio-preview__callout {
    display: flex;
    align-items: start;
    gap: 8px;
    margin: 11px 0;
    padding: 10px;
    border: 1px solid #c8e2df;
    border-radius: 5px;
    background: #f1f9f8;
    color: #176d66;
}

.studio-preview__callout.is-urgent {
    border-color: #ecd18e;
    background: #fff9e9;
    color: #9b6c00;
}

.studio-preview__callout .icon {
    width: 15px;
    flex: 0 0 auto;
}

.studio-preview__callout strong,
.studio-preview__callout small {
    display: block;
}

.studio-preview__callout strong {
    font-size: 8px;
}

.studio-preview__callout small,
.studio-preview__callout p {
    margin: 1px 0 0;
    color: inherit;
    font-size: 7px;
    line-height: 1.7;
}

.studio-preview__attachments > div {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #d8e2e6;
    border-radius: 5px;
}

.studio-preview__attachments .icon {
    width: 15px;
    color: #0a8f83;
}

.studio-preview__attachments strong,
.studio-preview__attachments small {
    display: block;
}

.studio-preview__attachments strong {
    color: #173b4d;
    font-size: 8px;
}

.studio-preview__attachments small {
    color: #7a8d96;
    font-size: 7px;
}

.studio-preview__action {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 5px;
    background: #0a8f83;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
}

.studio-preview__action .icon {
    width: 13px;
}

.studio-preview article > footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    padding: 9px;
    border: 1px solid #c9e0dd;
    background: #f2f8f7;
    color: #216c67;
    font-size: 7px;
}

.studio-preview article > footer .icon {
    width: 14px;
}

@media (max-width: 1280px) {
    .editorial-toolbar {
        grid-template-columns: minmax(230px, 1fr) repeat(3, 135px) auto;
    }

    .content-studio__workspace {
        grid-template-columns: minmax(510px, 1.08fr) minmax(350px, .72fr);
    }

    .studio-editor-pane {
        grid-template-columns: 145px minmax(0, 1fr);
    }

    .content-studio__topbar {
        gap: 12px;
        padding-inline: 16px;
    }

    .content-studio__save-state {
        display: none;
    }
}

@media (max-width: 1120px) {
    .editorial-toolbar {
        grid-template-columns: minmax(230px, 1fr) repeat(2, 140px) auto;
    }

    .editorial-toolbar > label:nth-of-type(4) {
        display: none;
    }

    .editorial-content-grid {
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .content-studio__workspace {
        grid-template-columns: minmax(500px, 1fr) minmax(320px, .62fr);
    }

    .studio-steps {
        display: none;
    }

    .studio-editor-pane {
        grid-template-columns: 1fr;
    }

    .studio-form-grid--three {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    .content-studio {
        inset-inline-start: 0;
    }

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

    .editorial-content-grid {
        grid-template-columns: 1fr;
    }

    .editorial-inspector {
        border-inline-start: 0;
        border-top: 1px solid #dce5e8;
    }

    .content-studio__workspace {
        grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
    }
}

@media (max-width: 820px) {
    .editorial-tabs {
        gap: 18px;
        overflow-x: auto;
    }

    .editorial-tabs button {
        flex: 0 0 auto;
    }

    .editorial-toolbar {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .editorial-search {
        grid-column: 1 / -1;
    }

    .editorial-toolbar > label:nth-of-type(4) {
        display: grid;
    }

    .editorial-static-list article {
        grid-template-columns: 32px minmax(0, 1fr) auto;
    }

    .editorial-static-list article > span {
        display: none;
    }

    .editorial-category-list {
        grid-template-columns: 1fr;
    }

    .editorial-category-list article {
        border-inline-end: 0;
    }

    .editorial-log-list article {
        grid-template-columns: 8px minmax(0, 1fr) auto;
    }

    .editorial-log-list time {
        grid-column: 2;
        grid-row: 2;
    }

    .content-studio__topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 68px;
    }

    .content-studio__top-actions .admin-button--outline {
        display: none;
    }

    .content-studio__mobile-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 8px 12px;
        border-bottom: 1px solid #d8e2e6;
        background: #fff;
    }

    .content-studio__mobile-switch button {
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 1px solid #cfdce1;
        background: #fff;
        color: #476370;
        font: 600 10px/1.5 "Noto Sans Arabic", sans-serif;
    }

    .content-studio__mobile-switch button:first-child {
        border-radius: 0 5px 5px 0;
    }

    .content-studio__mobile-switch button:last-child {
        border-inline-start: 0;
        border-radius: 5px 0 0 5px;
    }

    .content-studio__mobile-switch button.is-active {
        border-color: #0a8f83;
        background: #0a8f83;
        color: #fff;
    }

    .content-studio__mobile-switch .icon {
        width: 15px;
    }

    .content-studio__workspace,
    .content-studio__workspace.show-preview {
        display: block;
        overflow-y: auto;
    }

    .content-studio__workspace .studio-preview-pane {
        display: none;
    }

    .content-studio__workspace.show-preview .studio-editor-pane {
        display: none;
    }

    .content-studio__workspace.show-preview .studio-preview-pane {
        display: block;
        min-height: 100%;
    }

    .studio-editor-pane {
        min-height: 100%;
        overflow: visible;
    }

    .studio-form {
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .editorial-heading .management-heading__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .editorial-status-rail {
        gap: 8px;
    }

    .editorial-status-rail button {
        min-height: 57px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .editorial-status-rail button > strong {
        font-size: 18px;
    }

    .editorial-toolbar {
        grid-template-columns: 1fr;
    }

    .editorial-search,
    .editorial-toolbar > label:nth-of-type(4) {
        grid-column: auto;
    }

    .editorial-toolbar > label:nth-of-type(4) {
        display: none;
    }

    .editorial-clear {
        width: 100%;
    }

    .editorial-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .editorial-pagination > div {
        justify-content: center;
    }

    .editorial-static-list article {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .editorial-static-list article > a {
        grid-column: 2;
    }

    .editorial-secondary-surface > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-studio__topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-inline: 10px;
    }

    .content-studio__identity {
        gap: 8px;
    }

    .content-studio__identity h2 {
        max-width: 190px;
        font-size: 11px;
    }

    .content-studio__identity span {
        display: none;
    }

    .content-studio__top-actions .admin-button {
        min-width: 0;
        padding-inline: 9px;
        font-size: 9px;
    }

    .content-studio__top-actions .admin-button .icon {
        display: none;
    }

    .studio-form {
        padding: 10px 10px 60px;
    }

    .studio-form-section {
        padding: 13px;
    }

    .studio-form-section > header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .studio-form-grid,
    .studio-form-grid--three,
    .studio-switches,
    .studio-readiness ul {
        grid-template-columns: 1fr;
    }

    .studio-attachments article {
        grid-template-columns: 22px minmax(0, 1fr) 28px;
    }

    .studio-attachments article label {
        grid-column: 2;
    }

    .studio-attachments article > button {
        grid-column: 3;
        grid-row: 1;
    }

    .studio-confirm,
    .studio-error {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-inline: 12px;
    }

    .studio-preview-pane {
        padding: 10px;
    }

    .studio-preview__page {
        padding-inline: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .editorial-spinner { animation: none; }
    .studio-preview-frame { transition: none; }
}

/* Employee authentication */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(440px, 1.18fr);
    background: #f2f5f6;
    color: #102f40;
}

.auth-brand-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(32px, 5vw, 72px);
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 16% 18%, rgba(22, 147, 140, .28), transparent 30%),
        linear-gradient(145deg, #071d2a 0%, #0b3043 58%, #0d5960 125%);
    color: #fff;
}

.auth-brand-panel::after {
    content: "";
    width: 520px;
    height: 520px;
    position: absolute;
    inset-inline-start: -250px;
    bottom: -290px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 74px rgba(255, 255, 255, .025), 0 0 0 150px rgba(255, 255, 255, .018);
}

.auth-brand-lockup,
.auth-brand-copy,
.auth-security-note {
    position: relative;
    z-index: 1;
}

.auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-brand-lockup > span {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.auth-brand-lockup img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.auth-brand-lockup strong,
.auth-brand-lockup small {
    display: block;
}

.auth-brand-lockup strong {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 15px;
}

.auth-brand-lockup small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
}

.auth-brand-copy {
    max-width: 530px;
    margin-block: auto;
    padding-block: 72px;
}

.auth-brand-copy > span {
    display: inline-flex;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #9ce2d9;
    font-size: 11px;
    font-weight: 700;
}

.auth-brand-copy h1 {
    max-width: 470px;
    margin: 22px 0 14px;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.45;
}

.auth-brand-copy p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 2;
}

.auth-security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
}

.auth-security-note .icon {
    width: 17px;
    height: 17px;
    color: #70d4c9;
}

.auth-content {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(24px, 5vw, 72px);
}

.auth-card {
    width: min(500px, 100%);
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid #dce5e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(8, 37, 52, .1);
}

.auth-card > header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 28px;
}

.auth-card-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #e7f5f3;
    color: #08766f;
}

.auth-card-icon .icon {
    width: 23px;
    height: 23px;
}

.auth-card header small,
.auth-card--message > small {
    color: #078179;
    font-size: 10px;
    font-weight: 800;
}

.auth-card h2 {
    margin: 3px 0 5px;
    color: #0b2738;
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 21px;
}

.auth-card header p,
.auth-card--message p {
    margin: 0;
    color: #667b86;
    font-size: 11px;
    line-height: 1.8;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #e8bcbc;
    border-radius: 9px;
    background: #fff4f4;
    color: #982d2d;
    font-size: 11px;
}

.auth-alert .icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.auth-alert--info {
    border-color: #b9ddd8;
    background: #effaf8;
    color: #12665f;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form > label:not(.auth-remember) {
    display: grid;
    gap: 7px;
    color: #243f4d;
    font-size: 11px;
    font-weight: 700;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #cad7dc;
    border-radius: 9px;
    outline: none;
    background: #fbfcfc;
    color: #102f40;
    font-family: inherit;
    font-size: 13px;
    direction: ltr;
    text-align: left;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-form input:focus {
    border-color: #148e86;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 142, 134, .12);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #536b77;
    font-size: 10px;
    cursor: pointer;
}

.auth-remember input {
    width: 17px;
    height: 17px;
    accent-color: #0b7f78;
}

.auth-submit {
    width: 100%;
    min-height: 49px;
    justify-content: center;
    margin-top: 3px;
}

.auth-password-policy {
    margin: -4px 0 0;
    color: #667b86;
    font-size: 9px;
    line-height: 1.7;
}

.auth-card > footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e7edef;
    color: #71838c;
    font-size: 9px;
    line-height: 1.7;
}

.auth-card > footer .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #178b83;
}

.auth-card--message {
    text-align: center;
}

.auth-card--message .auth-card-icon {
    margin: 0 auto 16px;
}

.auth-card--message h2 {
    margin-block: 8px;
}

.auth-card--message .admin-button {
    justify-content: center;
    margin-top: 22px;
}

.auth-route-message {
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0;
    background: #f2f5f6;
    color: #506875;
}

.user-logout-form {
    margin: 0;
    border-top: 1px solid var(--line);
}

.user-logout-form button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 0;
    background: transparent;
    color: #9b3434;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.user-logout-form button:hover {
    background: #fff2f2;
}

.user-logout-form .icon {
    width: 15px;
    height: 15px;
}

@media (max-width: 880px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 24px;
    }

    .auth-brand-copy {
        margin: 44px 0 24px;
        padding: 0;
    }

    .auth-brand-copy h1 {
        font-size: clamp(25px, 7vw, 34px);
    }

    .auth-content {
        min-height: auto;
        padding: 26px 16px 40px;
    }
}

/* Private document review workspace */
.admin-document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-document-actions .admin-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 10px;
    white-space: nowrap;
}

.admin-document-actions .admin-button .icon {
    width: 14px;
    height: 14px;
}

.admin-document-preview-disabled,
.admin-document-preview-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 20px 0;
    padding: 11px 13px;
    border: 1px solid #ead39d;
    border-radius: 8px;
    background: #fff9ea;
    color: #72591e;
}

.admin-document-preview-error {
    margin-bottom: 14px;
    border-color: #e7b9b9;
    background: #fff3f3;
    color: #9d2c2c;
}

.admin-document-preview-disabled > .icon,
.admin-document-preview-error > .icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.admin-document-preview-disabled strong,
.admin-document-preview-disabled span {
    display: block;
}

.admin-document-preview-disabled strong {
    font-size: 10px;
}

.admin-document-preview-disabled span,
.admin-document-preview-error span {
    font-size: 9px;
}

.admin-document-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(4, 20, 29, .8);
    backdrop-filter: blur(4px);
}

.admin-document-preview-dialog {
    width: min(1060px, 100%);
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-rows: auto minmax(280px, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.admin-document-preview-dialog > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.admin-document-preview-dialog header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--teal-700);
    font-size: 9px;
    font-weight: 700;
}

.admin-document-preview-dialog header span .icon {
    width: 15px;
    height: 15px;
}

.admin-document-preview-dialog h2 {
    margin: 3px 0 1px;
    color: var(--navy-900);
    font-size: 17px;
}

.admin-document-preview-dialog header p {
    max-width: 720px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-document-preview-dialog header > button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4f7f8;
    color: var(--navy-900);
    cursor: pointer;
}

.admin-document-preview-dialog header > button .icon {
    width: 18px;
    height: 18px;
}

.admin-document-preview-canvas {
    min-height: 0;
    height: min(68vh, 740px);
    display: grid;
    place-items: center;
    padding: 17px;
    overflow: auto;
    background: #e5ebee;
}

.admin-document-preview-canvas iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
    background: #fff;
}

.admin-document-preview-canvas img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(11, 39, 56, .16);
}

.admin-document-preview-dialog > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 19px;
    border-top: 1px solid var(--line);
    background: #fbfcfc;
}

.admin-document-preview-dialog footer p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.admin-document-preview-dialog footer p .icon {
    width: 15px;
    height: 15px;
}

@media (max-width: 680px) {
    .admin-document-list li {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-document-actions {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-bottom: 10px;
    }

    .admin-document-preview-disabled,
    .admin-document-preview-error {
        margin-inline: 14px;
    }

    .admin-document-preview-backdrop {
        align-items: end;
        padding: 9px;
    }

    .admin-document-preview-dialog {
        max-height: calc(100vh - 18px);
        border-radius: 11px;
    }

    .admin-document-preview-dialog > header {
        padding: 13px;
    }

    .admin-document-preview-canvas {
        height: 61vh;
        padding: 7px;
    }

    .admin-document-preview-dialog > footer {
        align-items: stretch;
        flex-direction: column;
        padding: 10px 13px 13px;
    }

    .admin-document-preview-dialog footer .admin-button {
        justify-content: center;
        width: 100%;
    }
}

@font-face {
    font-family: "Noto Sans Arabic";
    src: url("fonts/noto-sans-arabic-600.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("fonts/noto-kufi-arabic-600.ttf") format("truetype");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Noto Kufi Arabic";
    src: url("fonts/noto-kufi-arabic-700.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --navy-950: #071d2f;
    --navy-900: #0b2942;
    --navy-800: #123b5a;
    --teal-700: #087f78;
    --teal-600: #0b9188;
    --teal-100: #dff4f1;
    --green-800: #066d67;
    --green-700: var(--teal-700);
    --gold: #c6a45e;
    --ink: #152a3b;
    --muted: #66798a;
    --line: #dfe7ec;
    --line-soft: #eaf0f3;
    --canvas: #f4f7f9;
    --surface: #fff;
    --warning: #b86508;
    --danger: #b42318;
    --success: #087268;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(9, 30, 47, .04), 0 8px 24px rgba(9, 30, 47, .055);
    --sidebar: 252px;
}

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

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

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

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: inherit;
    line-height: 1.35;
}

h1:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.admin-shell {
    min-height: 100vh;
    background: var(--canvas);
}

.admin-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 40;
    width: var(--sidebar);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-inline-end: 1px solid rgba(255, 255, 255, .06);
    background: var(--navy-900);
    color: #d9e5ec;
    transition: width .2s ease, transform .2s ease;
}

.admin-brand {
    height: 82px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 14px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
}

.admin-brand > a {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #fff;
}

.brand-mark img {
    width: 42px;
    height: 42px;
    padding: 3px;
    object-fit: contain;
    opacity: 1;
}

.brand-copy {
    min-width: 168px;
    line-height: 1.3;
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-copy small {
    margin-top: 5px;
    color: #94adbd;
    font-size: 11px;
    white-space: nowrap;
}

.mobile-sidebar-close {
    display: none;
    margin-inline-start: auto;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #fff;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 9px;
    overflow-y: auto;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
    scrollbar-width: thin;
}

.nav-section {
    margin-bottom: 11px;
}

.nav-section > p {
    margin: 0 0 7px;
    padding-inline: 13px;
    color: #7693a6;
    font-size: 10.5px;
    font-weight: 600;
}

.nav-section a {
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 3px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #b9cbd6;
    font-size: 13px;
    font-weight: 500;
    transition: background-color .16s ease, color .16s ease;
}

.nav-section a:hover {
    background: rgba(255, 255, 255, .055);
    color: #fff;
}

.nav-section a.active {
    background: #154763;
    color: #fff;
    box-shadow: inset -3px 0 0 #22b6aa;
}

.nav-section a.active > .icon:first-child {
    color: #64d8ce;
}

.nav-section a > span:not(.nav-count) {
    white-space: nowrap;
}

.nav-section .icon {
    width: 19px;
    height: 19px;
}

.nav-chevron {
    width: 15px !important;
    height: 15px !important;
    margin-inline-start: auto;
    opacity: 0;
}

.nav-section a:hover .nav-chevron {
    opacity: .6;
}

.nav-count {
    min-width: 21px;
    height: 19px;
    display: grid;
    place-items: center;
    margin-inline-start: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 9.5px;
}

.nav-count + .nav-chevron {
    margin-inline-start: 0;
}

.sidebar-footer {
    margin-top: auto;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.cycle-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.cycle-mini i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #42c7a4;
    box-shadow: 0 0 0 4px rgba(66, 199, 164, .12);
}

.cycle-mini div {
    min-width: 145px;
}

.cycle-mini small,
.cycle-mini strong {
    display: block;
}

.cycle-mini small {
    color: #88a2b3;
    font-size: 10px;
}

.cycle-mini strong {
    margin-top: 2px;
    color: #edf5f8;
    font-size: 12px;
}

.sidebar-footer > button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #809bad;
    font-size: 12px;
}

.sidebar-footer > button:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.sidebar-collapsed {
    --sidebar: 76px;
}

.sidebar-collapsed .admin-brand {
    padding-inline: 13px;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .nav-section > p,
.sidebar-collapsed .nav-section a > span,
.sidebar-collapsed .nav-chevron,
.sidebar-collapsed .cycle-mini div,
.sidebar-collapsed .sidebar-footer > button span {
    display: none;
}

.sidebar-collapsed .nav-section a,
.sidebar-collapsed .cycle-mini,
.sidebar-collapsed .sidebar-footer > button {
    justify-content: center;
}

.sidebar-collapsed .nav-section a {
    padding-inline: 0;
}

.sidebar-collapsed .sidebar-footer > button .icon {
    transform: rotate(180deg);
}

.admin-workspace {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-inline-start: var(--sidebar);
    transition: margin .2s ease;
}

.admin-topbar {
    position: sticky;
    inset-block-start: 0;
    z-index: 30;
    height: 66px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.topbar-title small {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #8a99a6;
    font-size: 10.5px;
    line-height: 1;
}

.topbar-title small .icon {
    width: 12px;
    height: 12px;
}

.topbar-title strong {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 15px;
}

.mobile-menu {
    display: none;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-search {
    min-width: 190px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafb;
    color: #728492;
    text-align: start;
    font-size: 11.5px;
}

.top-search span {
    flex: 1;
}

.top-search:hover {
    border-color: #b7c7d1;
    background: #fff;
}

.top-search .icon,
.system-secure .icon {
    width: 18px;
    height: 18px;
}

.system-secure {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid #cae8e4;
    border-radius: 8px;
    background: #f2fbfa;
    color: var(--teal-700);
    font-size: 10.5px;
}

.user-menu-wrap {
    position: relative;
}

.user-menu {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 3px 5px 3px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
}

.user-menu:hover {
    background: #f3f7f9;
}

.user-menu > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--navy-900);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.user-menu > div {
    min-width: 92px;
    text-align: start;
    line-height: 1.2;
}

.user-menu strong,
.user-menu small {
    display: block;
}

.user-menu strong {
    font-size: 11.5px;
}

.user-menu small {
    margin-top: 4px;
    color: #80909c;
    font-size: 9.5px;
}

.user-menu > .icon {
    width: 15px;
    height: 15px;
}

.user-popover {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 70;
    width: 265px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(5, 29, 46, .18);
}

.user-popover > div {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 5px;
    padding: 10px;
    border-radius: 7px;
    background: #f6f9fa;
}

.user-popover > div > span {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--navy-900);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.user-popover p {
    min-width: 0;
    flex: 1;
    margin: 0;
}

.user-popover p strong,
.user-popover p small,
.user-popover p code {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-popover p strong {
    color: #254154;
    font-size: 10.5px;
}

.user-popover p small {
    margin-top: 3px;
    color: #7f909b;
    font-size: 8.5px;
}

.user-popover p code {
    margin-top: 4px;
    color: var(--teal-700);
    font-size: 8px;
}

.user-popover > a {
    width: 100%;
    min-height: 37px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: transparent;
    color: #496171;
    font-size: 10.5px;
}

.user-popover > a:hover {
    background: #f3f7f9;
    color: var(--navy-900);
}

.user-popover > a .icon {
    width: 16px;
    height: 16px;
}

.admin-content {
    width: 100%;
    min-width: 0;
    max-width: 1580px;
    flex: 1;
    margin-inline: auto;
    padding: 28px 32px 38px;
}

.app-footer {
    height: 43px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 30px;
    border-top: 1px solid var(--line);
    background: #fff;
    color: #84939e;
    font-size: 10px;
}

.app-footer a {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-inline-start: auto;
    color: var(--teal-700);
}

.app-footer .icon {
    width: 14px;
    height: 14px;
}

.cycle-mini i.is-warning {
    background: #d6a43e;
    box-shadow: 0 0 0 4px rgba(214, 164, 62, .12);
}

.cycle-mini i.is-danger {
    background: #d45b54;
    box-shadow: 0 0 0 4px rgba(212, 91, 84, .12);
}

.app-footer a.is-warning {
    color: var(--warning);
}

.app-footer a.is-danger {
    color: var(--danger);
}

.quick-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: start center;
    padding: 96px 20px 20px;
    background: rgba(4, 22, 35, .48);
    backdrop-filter: blur(3px);
}

.quick-modal {
    width: min(100%, 560px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(5, 29, 46, .22);
}

.quick-modal > header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line-soft);
}

.quick-modal h2 {
    margin: 0;
    color: #183246;
    font-size: 16px;
}

.quick-modal header p {
    margin: 5px 0 0;
    color: #7a8c99;
    font-size: 10.5px;
}

.quick-modal header > button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #667b8b;
}

.quick-modal header > button:hover {
    border-color: #dbe5ea;
    background: #f0f5f7;
    color: var(--navy-900);
}

.quick-search-field {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px;
    padding: 0 12px;
    border: 1px solid #cfdae1;
    border-radius: 7px;
    color: #82929d;
}

.quick-search-field:focus-within {
    border-color: var(--teal-600);
    box-shadow: 0 0 0 3px rgba(11, 145, 136, .09);
}

.quick-search-field .icon {
    width: 18px;
    height: 18px;
}

.quick-search-field input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
}

.quick-results {
    max-height: 360px;
    padding: 0 8px 8px;
    overflow-y: auto;
}

.quick-results > button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #3d5667;
    text-align: start;
}

.quick-results > button:hover {
    background: #f3f7f9;
    color: var(--navy-900);
}

.quick-results > button > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #e8f3f2;
    color: var(--teal-700);
}

.quick-results > button > span .icon {
    width: 17px;
    height: 17px;
}

.quick-results > button > strong {
    flex: 1;
    font-size: 11.5px;
}

.quick-results > button > .icon {
    width: 15px;
    height: 15px;
    color: #91a0aa;
}

.quick-results > p {
    margin: 0;
    padding: 32px 14px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

.dashboard-heading {
    min-height: 64px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-heading h1 {
    margin: 0;
    color: #10293c;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -.015em;
}

.dashboard-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12.5px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--teal-700);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(8, 127, 120, .14);
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.admin-button:hover {
    background: #066d67;
}

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

.admin-button--outline {
    border-color: #ccd8df;
    background: #fff;
    color: #294356;
    box-shadow: none;
}

.admin-button--outline:hover {
    border-color: #b7c7d1;
    background: #f7fafb;
    color: #294356;
}

.dashboard-loading {
    padding: 70px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    text-align: center;
}

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

.stat-card {
    min-height: 99px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}

.stat-card__icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #edf4f6;
    color: var(--navy-800, #13384d);
}

.stat-card__icon .icon {
    width: 22px;
    height: 22px;
}

.stat-card--total .stat-card__icon {
    background: #e9f5f2;
    color: var(--green-700);
}

.stat-card--warning .stat-card__icon {
    background: #fff4e3;
    color: var(--warning);
}

.stat-card--success .stat-card__icon {
    background: #eaf5ef;
    color: var(--success);
}

.stat-card small,
.stat-card strong,
.stat-card div > span {
    display: block;
}

.stat-card small {
    color: #718492;
    font-size: 10.5px;
    font-weight: 400;
}

.stat-card strong {
    margin-top: 4px;
    color: #173247;
    font-family: inherit;
    font-size: 22px;
    line-height: 1;
}

.stat-card div > span {
    margin-top: 7px;
    color: #8a989f;
    font-size: 8.8px;
}

.cycle-banner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 16px;
    padding: 20px 22px;
    border: 1px solid #cddfe5;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
}

.cycle-banner-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cycle-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--navy-900);
    color: #fff;
}

.cycle-icon .icon {
    width: 27px;
    height: 27px;
}

.cycle-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cycle-eyebrow > bdi {
    color: #7b8e9a;
    font: 600 9px ui-monospace, monospace;
}

.cycle-banner h2 {
    margin: 8px 0 3px;
    color: #112b3f;
    font-size: 19px;
}

.cycle-banner p {
    margin: 0;
    color: #748692;
    font-size: 10.5px;
}

.cycle-banner-meta {
    display: flex;
    align-items: center;
}

.cycle-banner-meta > div {
    min-width: 125px;
    padding: 0 20px;
    border-inline-start: 1px solid var(--line);
}

.cycle-banner-meta small,
.cycle-banner-meta strong {
    display: block;
}

.cycle-banner-meta small {
    color: #82929d;
    font-size: 9.5px;
}

.cycle-banner-meta strong {
    margin-top: 5px;
    color: #294357;
    font-size: 11.5px;
}

.cycle-banner-meta > a {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: 18px;
    color: var(--teal-700);
    font-size: 11px;
    font-weight: 600;
}

.cycle-banner-meta > a .icon {
    width: 16px;
    height: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr);
    gap: 14px;
    margin-bottom: 16px;
}

.dashboard-panel,
.applications-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 1px 1px rgba(10, 35, 52, .02);
}

.cycle-overview,
.attention-panel {
    min-height: 275px;
    padding: 24px 26px;
}

.cycle-overview > header,
.attention-panel > header,
.applications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cycle-overview header span,
.applications-header > div > span {
    color: var(--green-700);
    font-size: 10px;
    font-weight: 600;
}

.cycle-overview h2,
.attention-panel h2,
.applications-header h2 {
    margin: 1px 0 0;
    color: var(--navy-900);
    font-size: 16px;
}

.cycle-overview header a {
    color: var(--green-700);
    font-size: 11px;
    font-weight: 600;
}

.cycle-overview__progress {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-top: 29px;
    padding: 15px 17px;
    border-radius: 6px;
    background: var(--canvas);
}

.progress-copy strong,
.progress-copy span {
    display: block;
}

.progress-copy strong {
    font-size: 11px;
}

.progress-copy span {
    color: var(--muted);
    font-size: 9px;
}

.progress-track {
    appearance: none;
    width: 100%;
    border: 0;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: #dfe7e9;
}

.progress-track::-webkit-progress-value {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--green-700);
}

.progress-track::-webkit-progress-bar {
    border-radius: inherit;
    background: #dfe7e9;
}

.progress-track::-moz-progress-bar {
    border-radius: inherit;
    background: var(--green-700);
}

.settings-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cycle-overview__progress bdi {
    color: var(--green-700);
    font-weight: 700;
}

.cycle-milestones {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 26px;
}

.cycle-milestones::before {
    position: absolute;
    top: 14px;
    right: 11%;
    left: 11%;
    height: 1px;
    background: var(--line);
    content: "";
}

.cycle-milestones > div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #84939a;
    text-align: center;
}

.cycle-milestones > div > span {
    z-index: 1;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    font-size: 9px;
}

.cycle-milestones .icon {
    width: 14px;
}

.cycle-milestones strong {
    margin-top: 3px;
    font-size: 10px;
}

.cycle-milestones small {
    font-size: 8px;
}

.cycle-milestones .is-done > span,
.cycle-milestones .is-current > span {
    border-color: var(--green-700);
    background: var(--green-700);
    color: #fff;
}

.cycle-milestones .is-current strong {
    color: var(--green-700);
}

.attention-panel > header {
    margin-bottom: 14px;
}

.attention-panel > header > span {
    min-width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff0ee;
    color: var(--danger);
    font-size: 11px;
    font-weight: 700;
}

.attention-panel > a {
    min-height: 62px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
}

.attention-panel > a:hover strong {
    color: var(--green-700);
}

.attention-panel a strong,
.attention-panel a small {
    display: block;
}

.attention-panel a strong {
    color: var(--ink);
    font-size: 10px;
}

.attention-panel a small {
    color: var(--muted);
    font-size: 9px;
}

.attention-panel a > .icon {
    width: 15px;
    color: #98a5ab;
}

.attention-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-700);
}

.attention-dot--danger {
    background: var(--danger);
}

.attention-dot--warning {
    background: var(--warning);
}

.cycle-banner--empty {
    border-color: #dccb9f;
    background: #fffdf7;
}

.cycle-banner--empty .cycle-icon {
    background: #fff2cc;
    color: var(--warning);
}

.dashboard-panel-empty {
    min-height: 236px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 34px;
    color: var(--muted);
    text-align: center;
}

.dashboard-panel-empty > .icon {
    width: 31px;
    height: 31px;
    margin-bottom: 5px;
    color: var(--teal-700);
}

.dashboard-panel-empty h2,
.dashboard-panel-empty p {
    margin: 0;
}

.dashboard-panel-empty h2 {
    color: var(--navy-900);
    font-size: 15px;
}

.dashboard-panel-empty p,
.dashboard-panel-empty a {
    font-size: 10.5px;
}

.dashboard-panel-empty a {
    margin-top: 5px;
    color: var(--teal-700);
    font-weight: 700;
}

.attention-empty {
    min-height: 198px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 25px;
    color: var(--muted);
    text-align: start;
}

.attention-empty > .icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    color: var(--success);
}

.attention-empty strong,
.attention-empty small {
    display: block;
}

.attention-empty strong {
    color: var(--navy-900);
    font-size: 11px;
}

.attention-empty small {
    margin-top: 3px;
    font-size: 9.5px;
}

.dashboard-table-empty {
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
}

.dashboard-table-empty > .icon {
    width: 25px;
    height: 25px;
    color: #8ba0ac;
}

.dashboard-table-empty p {
    margin: 0;
    font-size: 10.5px;
}

/* Integration operations center */
.integration-heading button .icon {
    width: 16px;
    height: 16px;
}

.integration-loading {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
}

.integration-loading > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-700);
    animation: integration-pulse 1s ease-in-out infinite alternate;
}

.integration-loading > span:nth-child(2) {
    animation-delay: .18s;
}

.integration-loading > span:nth-child(3) {
    animation-delay: .36s;
}

.integration-loading p {
    margin: 0 8px 0 0;
    font-size: 11px;
}

@keyframes integration-pulse {
    to { opacity: .25; transform: translateY(-3px); }
}

.integration-feedback {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid #e6b8b5;
    border-radius: var(--radius);
    background: #fff4f3;
    color: var(--danger);
    font-size: 11px;
}

.integration-feedback .icon {
    width: 18px;
    height: 18px;
}

.integration-overview {
    min-height: 114px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    padding: 20px 22px;
    border: 1px solid #c8e1dc;
    border-inline-start: 4px solid var(--success);
    border-radius: var(--radius);
    background: #f7fcfb;
}

.integration-overview.is-warning {
    border-color: #e7d7ad;
    border-inline-start-color: var(--warning);
    background: #fffdf7;
}

.integration-overview.is-danger {
    border-color: #e8c2bf;
    border-inline-start-color: var(--danger);
    background: #fff8f7;
}

.integration-overview__icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e3f3ef;
    color: var(--success);
}

.integration-overview.is-warning .integration-overview__icon {
    background: #fff1cc;
    color: var(--warning);
}

.integration-overview.is-danger .integration-overview__icon {
    background: #fde9e7;
    color: var(--danger);
}

.integration-overview__icon .icon {
    width: 23px;
    height: 23px;
}

.integration-overview span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.integration-overview h2 {
    margin: 3px 0 4px;
    color: var(--navy-900);
    font-size: 16px;
}

.integration-overview p {
    margin: 0;
    color: var(--muted);
    font-size: 10.5px;
}

.integration-overview > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--teal-700);
    font-size: 10px;
    font-weight: 700;
}

.integration-overview > a .icon {
    width: 14px;
    height: 14px;
}

.integration-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.integration-metrics article {
    min-height: 102px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.integration-metrics article > span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--teal-100);
    color: var(--teal-700);
}

.integration-metrics article.is-danger > span {
    background: #fdebea;
    color: var(--danger);
}

.integration-metrics article > span .icon {
    width: 19px;
    height: 19px;
}

.integration-metrics small,
.integration-metrics strong,
.integration-metrics p {
    display: block;
    margin: 0;
}

.integration-metrics small {
    color: var(--muted);
    font-size: 9px;
}

.integration-metrics strong {
    margin-block: 2px;
    color: var(--navy-900);
    font-size: 19px;
}

.integration-metrics article:last-child strong {
    font-size: 12px;
}

.integration-metrics p {
    color: var(--muted);
    font-size: 9px;
}

.integration-channels,
.integration-trace {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.integration-channels > header,
.integration-trace > header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.integration-channels > header span,
.integration-trace > header span:not(.integration-version) {
    color: var(--teal-700);
    font-size: 9px;
    font-weight: 700;
}

.integration-channels > header h2,
.integration-trace > header h2 {
    margin: 2px 0 0;
    color: var(--navy-900);
    font-size: 15px;
}

.integration-channels > header p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    text-align: end;
}

.integration-channels > article {
    min-height: 96px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line-soft);
}

.integration-channels > article:last-child {
    border-bottom: 0;
}

.integration-channel-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid #dce7e9;
    border-radius: 7px;
    color: var(--teal-700);
}

.integration-channel-icon .icon {
    width: 19px;
    height: 19px;
}

.integration-channels article small {
    color: var(--teal-700);
    font-size: 8.5px;
    font-weight: 700;
}

.integration-channels article h3 {
    margin: 1px 0 3px;
    color: var(--navy-900);
    font-size: 12px;
}

.integration-channels article p {
    margin: 0;
    color: var(--muted);
    font-size: 9.5px;
}

.integration-channel-state {
    min-width: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef3f5;
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

.integration-channel-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.integration-channel-state.is-success,
.integration-channel-state.is-ready {
    background: #e6f5f1;
    color: var(--success);
}

.integration-channel-state.is-warning {
    background: #fff4d7;
    color: var(--warning);
}

.integration-channel-state.is-danger {
    background: #fdebea;
    color: var(--danger);
}

.integration-version {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-size: 9px;
}

.integration-version bdi {
    margin-inline-start: 5px;
    color: var(--navy-900);
    font-weight: 700;
}

.integration-trace dl {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 18px 20px;
}

.integration-trace dl > div {
    min-width: 0;
    padding: 8px 13px;
    border-inline-start: 1px solid var(--line-soft);
}

.integration-trace dl > div:first-child {
    border-inline-start: 0;
}

.integration-trace dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8.5px;
}

.integration-trace dd {
    margin: 0;
    overflow: hidden;
    color: var(--navy-900);
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.integration-trace__wide {
    grid-column: 1 / -1;
    margin-top: 9px;
    padding-top: 14px !important;
    border-top: 1px solid var(--line-soft);
    border-inline-start: 0 !important;
}

.integration-trace code {
    color: var(--teal-700);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 9px;
}

.integration-safety-note {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #dce6e9;
    border-inline-start: 3px solid var(--gold);
    border-radius: var(--radius);
    background: #f8fafb;
}

.integration-safety-note > .icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    color: var(--teal-700);
}

.integration-safety-note strong,
.integration-safety-note p {
    display: block;
    margin: 0;
}

.integration-safety-note strong {
    color: var(--navy-900);
    font-size: 10px;
}

.integration-safety-note p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9.5px;
}

@media (max-width: 880px) {
    .integration-metrics {
        grid-template-columns: 1fr;
    }

    .integration-overview {
        grid-template-columns: auto 1fr;
    }

    .integration-overview > a {
        grid-column: 2;
    }

    .integration-trace dl {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .integration-overview {
        grid-template-columns: 1fr;
    }

    .integration-overview__icon {
        width: 41px;
        height: 41px;
    }

    .integration-overview > a {
        grid-column: 1;
    }

    .integration-channels > header,
    .integration-trace > header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .integration-channels > header p {
        text-align: start;
    }

    .integration-channels > article {
        grid-template-columns: auto 1fr;
    }

    .integration-channel-state {
        grid-column: 2;
        justify-self: start;
    }

    .integration-trace dl {
        grid-template-columns: 1fr;
    }

    .integration-trace dl > div {
        border-block-end: 1px solid var(--line-soft);
        border-inline-start: 0;
    }

    .integration-trace__wide {
        grid-column: 1;
    }
}

.applications-panel {
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    scroll-margin-top: 20px;
}

.applications-header {
    padding: 22px 26px 17px;
}

.admin-search {
    width: min(310px, 45%);
    min-height: 41px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-inline: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #91a0a7;
}

.admin-search .icon {
    width: 17px;
}

.admin-search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: none;
    font-size: 11px;
}

.filter-row {
    display: flex;
    gap: 6px;
    padding: 0 26px 15px;
    border-bottom: 1px solid var(--line);
}

.filter-row button {
    padding: 6px 13px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

.filter-row button:hover,
.filter-row button.is-active {
    background: #eaf4f2;
    color: var(--green-700);
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.applications-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    text-align: right;
}

.applications-table th {
    position: relative;
    padding: 11px 18px;
    background: #f8fafb;
    color: #71838c;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.applications-table td {
    padding: 14px 18px;
    border-top: 1px solid #e7edef;
    color: #526770;
    font-size: 10px;
    white-space: nowrap;
}

.applications-table tbody tr {
    transition: background-color .15s ease;
}

.applications-table tbody tr:hover {
    background: #fbfcfc;
}

.applications-table td:first-child {
    color: var(--green-700);
    font-family: ui-monospace, monospace;
    font-weight: 700;
}

.applications-table td strong {
    color: var(--ink);
    font-size: 11px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge--review {
    background: #edf2f5;
    color: #60727f;
}

.status-badge--warning {
    background: #fff1dc;
    color: #9b5c0c;
}

.status-badge--success {
    background: #e2f5f1;
    color: #087268;
}

.row-action {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    color: var(--green-700);
    cursor: pointer;
}

.row-action .icon {
    width: 14px;
}

.empty-state {
    margin: 0;
    padding: 35px;
    color: var(--muted);
    text-align: center;
}

.applications-panel > footer {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 26px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.applications-panel > footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green-700);
    font-weight: 600;
}

.applications-panel > footer .icon {
    width: 14px;
}

.management-heading {
    min-height: 64px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.management-heading > div > span {
    color: #8a99a6;
    font-size: 10.5px;
    font-weight: 600;
}

.management-heading h1 {
    margin: 0;
    color: #10293c;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -.015em;
}

.management-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12.5px;
}

.management-panel {
    margin-top: 0;
}

.management-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.record-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr);
    align-items: start;
    gap: 20px;
}

.record-summary,
.audit-card,
.cycle-record,
.policy-card {
    padding: 25px 27px;
}

.record-summary > header,
.cycle-record > header,
.content-records > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.record-summary h2,
.audit-card h2,
.cycle-record h2,
.policy-card h2,
.content-records h2,
.empty-management-state h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: 16px;
}

.record-summary dl,
.cycle-record dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
}

.record-summary dl div,
.cycle-record dl div {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.record-summary dl div:nth-child(even),
.cycle-record dl div:nth-child(even) {
    padding-inline-start: 25px;
    border-inline-start: 1px solid var(--line);
}

.record-summary dt,
.cycle-record dt {
    color: var(--muted);
    font-size: 10px;
}

.record-summary dd,
.cycle-record dd {
    margin: 3px 0 0;
    color: var(--ink);
    font-weight: 600;
}

.audit-card ol {
    margin: 18px 0 0;
    padding: 0 20px 0 0;
}

.audit-card li {
    padding: 0 8px 18px 0;
    color: var(--green-700);
}

.audit-card li strong,
.audit-card li span {
    display: block;
}

.audit-card li strong {
    color: var(--ink);
    font-size: 11px;
}

.audit-card li span {
    color: var(--muted);
    font-size: 9px;
}

.cycle-record > header > div > span {
    color: var(--green-700);
    font-size: 10px;
    font-weight: 600;
}

.cycle-record > header h2 {
    margin-top: 2px;
}

.entity-list {
    overflow: hidden;
}

.entity-list > a {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 13px 22px;
    border-bottom: 1px solid var(--line);
}

.entity-list > a:last-child {
    border-bottom: 0;
}

.entity-list > a:hover {
    background: #f9fbfb;
}

.entity-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f4f1;
    color: var(--green-700);
    font-weight: 700;
}

.entity-list strong,
.entity-list small {
    display: block;
}

.entity-list strong {
    color: var(--ink);
}

.entity-list small,
.entity-list bdi {
    color: var(--muted);
    font-size: 10px;
}

.entity-list > a > .icon {
    width: 16px;
    color: var(--green-700);
}

.empty-management-state {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
    text-align: center;
}

.empty-management-state > .icon {
    width: 45px;
    height: 45px;
    margin-bottom: 16px;
    color: var(--green-700);
}

.empty-management-state p,
.policy-card li {
    color: var(--muted);
}

.empty-management-state p {
    max-width: 480px;
    margin: 8px 0 0;
}

.policy-card ul {
    margin: 17px 0 0;
    padding: 0 20px 0 0;
}

.policy-card li + li {
    margin-top: 10px;
}

.content-records {
    overflow: hidden;
}

.content-records > header {
    padding: 22px 25px;
}

.content-records > header > span {
    color: var(--muted);
    font-size: 10px;
}

.content-records article {
    min-height: 72px;
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 12px 25px;
    border-bottom: 1px solid var(--line);
}

.content-records article:last-child {
    border-bottom: 0;
}

.content-records time,
.content-records article > span {
    color: var(--green-700);
    font-size: 10px;
}

.content-records article > span {
    padding: 3px 9px;
    border-radius: 12px;
    background: #e8f4f1;
}

.settings-list {
    overflow: hidden;
}

.settings-list > div {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 15px 24px;
    border-bottom: 1px solid var(--line);
}

.settings-list > div:last-child {
    border-bottom: 0;
}

.settings-list > div > span {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #eaf4f2;
    color: var(--green-700);
}

.settings-list strong,
.settings-list small {
    display: block;
}

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

.settings-list bdi {
    padding: 4px 10px;
    border-radius: 12px;
    background: #fff3df;
    color: var(--warning);
    font-size: 9px;
    font-weight: 600;
}

.settings-list bdi.is-success {
    background: #e5f4ef;
    color: var(--green-700);
}

.settings-list bdi.is-danger {
    background: #fdebea;
    color: var(--danger);
}

.settings-list bdi.is-warning {
    background: #fff3df;
    color: var(--warning);
}

.settings-safety-note {
    margin-top: 18px;
}

.notification-list {
    overflow: hidden;
}

.notification-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.notification-totals a { display: grid; gap: 8px; padding: 18px; background: #fff; border: 1px solid #d7e0e5; border-radius: 10px; color: #0b2942; text-decoration: none; }
.notification-totals strong { font-size: 25px; }
.notification-totals small { color: #087f78; text-decoration: underline; text-underline-offset: 3px; }
.notification-totals-note { color: #526572; font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
@media (max-width: 800px) { .notification-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .notification-totals { grid-template-columns: 1fr; } }

.notification-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 23px;
    border-bottom: 1px solid var(--line);
    background: #f8fafb;
}

.notification-list__header h2,
.notification-list__header p {
    margin: 0;
}

.notification-list__header h2 {
    font: 600 15px/1.6 var(--font-heading);
    color: var(--ink);
}

.notification-list__header p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.notification-list__header > span {
    min-width: 30px;
    min-height: 30px;
    padding: 4px 10px;
    flex-shrink: 0;
    white-space: nowrap;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #e5f4ef;
    color: var(--green-700);
    font-weight: 700;
}

.notification-list > a {
    min-height: 83px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 13px 23px;
    border-bottom: 1px solid var(--line);
}

.notification-list > a:last-child {
    border-bottom: 0;
}

.notification-list > a:hover {
    background: #f9fbfb;
}

.notification-list strong,
.notification-list small {
    display: block;
}

.notification-list strong {
    color: var(--ink);
}

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

.notification-list time {
    display: block;
    margin-top: 5px;
    color: #79909b;
    font-size: 10px;
    direction: ltr;
    text-align: right;
}

.notification-list .icon {
    width: 16px;
    color: var(--green-700);
}

.notifications-empty {
    min-height: 300px;
}

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 22px;
    bottom: 22px;
    display: none;
    padding: 13px 17px;
    border-radius: 6px;
    background: var(--danger);
    color: #fff;
    box-shadow: var(--shadow);
}

#blazor-error-ui a {
    margin-inline: 10px;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
}

@media (max-width: 1120px) {
    .admin-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .admin-brand,
    .admin-nav,
    .sidebar-footer {
        padding-inline: 13px;
    }

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .record-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .admin-brand {
        min-height: 78px;
    }

    .admin-brand img {
        width: 42px;
        height: 48px;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        padding-block: 9px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .admin-nav a {
        min-width: 0;
        min-height: 38px;
        justify-content: center;
        padding: 7px 11px;
        font-size: 11px;
        text-align: center;
    }

    .nav-count,
    .sidebar-footer {
        display: none;
    }

    .admin-topbar {
        padding-inline: 17px;
    }

    .admin-topbar > div:first-child {
        display: none;
    }

    .admin-topbar {
        justify-content: flex-end;
    }

    .admin-content {
        padding: 27px 17px 45px;
    }

    .dashboard-heading {
        align-items: flex-start;
    }

    .management-heading {
        align-items: flex-start;
    }

    .dashboard-heading h1 {
        font-size: 22px;
    }

    .dashboard-heading .admin-button {
        padding-inline: 12px;
        font-size: 11px;
    }

    .cycle-overview__progress {
        grid-template-columns: 1fr auto;
    }

    .progress-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .applications-table {
        min-width: 100%;
        table-layout: auto;
    }

    .applications-table th:nth-child(3),
    .applications-table td:nth-child(3),
    .applications-table th:nth-child(4),
    .applications-table td:nth-child(4),
    .applications-table th:nth-child(5),
    .applications-table td:nth-child(5) {
        display: none;
    }

    .applications-table th,
    .applications-table td {
        padding-inline: 10px;
    }
}

@media (max-width: 550px) {
    .admin-user > span:last-child {
        display: none;
    }

    .dashboard-heading {
        flex-direction: column;
    }

    .management-heading {
        flex-direction: column;
    }

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

    .stat-card {
        min-height: 116px;
    }

    .cycle-overview,
    .attention-panel {
        padding-inline: 18px;
    }

    .cycle-milestones {
        grid-template-columns: 1fr 1fr;
        gap: 20px 5px;
    }

    .cycle-milestones::before {
        display: none;
    }

    .applications-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-search {
        width: 100%;
    }

    .filter-row {
        overflow-x: auto;
    }

    .filter-row button {
        flex: 0 0 auto;
    }

    .record-summary dl,
    .cycle-record dl {
        grid-template-columns: 1fr;
    }

    .record-summary dl div:nth-child(even),
    .cycle-record dl div:nth-child(even) {
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .entity-list > a {
        grid-template-columns: auto 1fr auto;
    }

    .entity-list bdi {
        display: none;
    }

    .content-records article {
        grid-template-columns: 1fr auto;
    }

    .content-records time {
        grid-column: 1 / -1;
    }

    .settings-list > div {
        grid-template-columns: auto 1fr;
    }

    .settings-list bdi {
        grid-column: 2;
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}

/* Responsive shell aligned with ExamSys */
@media (max-width: 1250px) {
    .admin-shell {
        --sidebar: 244px;
    }

    .admin-content {
        padding-inline: 22px;
    }

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .admin-shell,
    .admin-shell.sidebar-collapsed {
        --sidebar: 0px;
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        width: 278px;
        height: 100vh;
        overflow-y: auto;
        transform: translateX(105%);
        box-shadow: -16px 0 40px rgba(4, 22, 35, .28);
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-brand {
        height: 88px;
        min-height: 88px;
        padding: 15px 18px;
    }

    .admin-brand .brand-mark img {
        width: 42px;
        height: 42px;
    }

    .sidebar-collapsed .brand-copy {
        display: block;
    }

    .sidebar-collapsed .nav-section > p {
        display: block;
    }

    .sidebar-collapsed .nav-section a > span:not(.nav-count) {
        display: inline;
    }

    .sidebar-collapsed .nav-count {
        display: grid;
    }

    .sidebar-collapsed .nav-chevron {
        display: block;
    }

    .admin-nav {
        display: flex;
        grid-template-columns: none;
        padding: 14px 10px;
        overflow-y: auto;
        border-top: 0;
    }

    .admin-nav .nav-section a,
    .sidebar-collapsed .nav-section a {
        min-height: 40px;
        justify-content: flex-start;
        padding: 9px 12px;
        font-size: 13px;
        text-align: start;
    }

    .sidebar-footer {
        display: block;
        padding: 10px;
    }

    .sidebar-footer > button {
        display: none;
    }

    .mobile-sidebar-close,
    .mobile-menu {
        display: grid;
        place-items: center;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 35;
        border: 0;
        background: rgba(4, 22, 35, .42);
    }

    .admin-workspace {
        margin-inline-start: 0;
    }

    .admin-topbar {
        justify-content: space-between;
        padding-inline: 18px;
    }

    .admin-topbar > div.topbar-title:first-child {
        display: flex !important;
    }

    .top-search {
        min-width: 150px;
    }

    .cycle-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cycle-banner-meta {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    .admin-workspace {
        width: 100%;
        overflow-x: hidden;
    }

    .admin-content {
        padding: 18px 12px 28px;
    }

    .admin-topbar {
        height: 62px;
        padding-inline: 12px;
    }

    .topbar-title small,
    .system-secure,
    .top-search,
    .user-menu > div,
    .user-menu > .icon {
        display: none;
    }

    .topbar-title strong {
        margin-top: 0;
        font-size: 14px;
    }

    .dashboard-heading,
    .management-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-heading h1,
    .management-heading h1 {
        font-size: 21px;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .admin-button {
        flex: 1;
    }

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

    .cycle-banner-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 0;
    }

    .cycle-banner-meta > div {
        min-width: 0;
        padding-inline: 12px;
    }

    .cycle-banner-meta > a {
        grid-column: 1 / -1;
        margin-inline-start: 0;
        padding-inline: 12px;
    }

    .app-footer {
        padding-inline: 12px;
    }

    .app-footer span:nth-child(2) {
        display: none;
    }

    .quick-modal-backdrop {
        place-items: end center;
        padding: 0;
    }

    .quick-modal {
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
}

/* Application review workspace */
.admin-loading {
    padding: 72px 24px;
    color: var(--muted);
    text-align: center;
}

.application-record-heading {
    align-items: center;
}

.record-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 15px;
    border: 1px solid;
    border-radius: 8px;
    font-weight: 600;
}

.admin-feedback .icon {
    width: 18px;
    height: 18px;
}

.admin-feedback--success {
    border-color: #a8d8d1;
    background: #eaf8f5;
    color: #096e67;
}

.admin-feedback--error {
    border-color: #efc4bf;
    background: #fff3f1;
    color: var(--danger);
}

.review-console {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 16px;
}

.review-console__record,
.review-console__decision {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.review-console__decision {
    position: sticky;
    top: 88px;
}

.review-section {
    overflow: hidden;
}

.review-section__header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 21px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfd;
}

.review-section__header > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-section__header > div:first-child > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--navy-900);
    color: #fff;
    font: 700 10px/1 "Noto Kufi Arabic", sans-serif;
}

.review-section__header h2,
.review-audit-card h2,
.decision-card h2,
.integration-card h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: 15px;
}

.review-section__header p,
.review-audit-card header p,
.decision-card header p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.verified-source,
.private-files-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--teal-100);
    color: var(--teal-700);
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.verified-source .icon,
.private-files-label .icon {
    width: 14px;
    height: 14px;
}

.admin-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 2px 21px 8px;
}

.admin-data-grid > div {
    min-width: 0;
    padding: 16px 2px;
    border-bottom: 1px solid var(--line-soft);
}

.admin-data-grid > div:nth-child(even):not(.admin-data-grid__wide) {
    padding-inline-start: 22px;
    border-inline-start: 1px solid var(--line-soft);
}

.admin-data-grid__wide {
    grid-column: 1 / -1;
}

.admin-data-grid dt {
    color: var(--muted);
    font-size: 9.5px;
}

.admin-data-grid dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.admin-data-grid dd small {
    display: inline-block;
    margin-inline-start: 6px;
    color: #81909c;
    font-size: 9px;
    font-weight: 400;
}

.admin-supplementary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 21px 20px;
    padding: 14px;
    border: 1px solid #dbe8eb;
    border-radius: 8px;
    background: #f7fbfb;
}

.admin-supplementary-grid span,
.admin-supplementary-grid strong,
.admin-supplementary-grid small {
    display: block;
}

.admin-supplementary-grid span,
.admin-supplementary-grid small {
    color: var(--muted);
    font-size: 9px;
}

.admin-supplementary-grid strong {
    margin-top: 2px;
    font-size: 11px;
}

.admin-document-list {
    margin: 0;
    padding: 4px 21px 10px;
    list-style: none;
}

.admin-document-list li {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.admin-document-list li:last-child {
    border-bottom: 0;
}

.document-state {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-100);
    color: var(--teal-700);
}

.document-state .icon {
    width: 15px;
    height: 15px;
    stroke-width: 2.5;
}

.admin-document-list strong,
.admin-document-list small {
    display: block;
}

.admin-document-list strong {
    font-size: 11px;
}

.admin-document-list small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.admin-document-list code,
.integration-meta code,
.payment-review-section .admin-data-grid code {
    padding: 4px 7px;
    border-radius: 5px;
    background: #f0f4f6;
    color: #496071;
    direction: ltr;
    font: 9px/1.3 Consolas, monospace;
}

.payment-review-actions {
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #fbfcfd;
}

.payment-review-actions .admin-field {
    margin: 0 0 12px;
}

.payment-override-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 9px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #e2d3b8;
    border-radius: 7px;
    background: #fffaf1;
    cursor: pointer;
}

.payment-override-row input {
    margin-top: 3px;
}

.payment-override-row strong,
.payment-override-row small {
    display: block;
}

.payment-override-row strong {
    color: #6d4d1e;
    font-size: 10px;
}

.payment-override-row small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8.5px;
    line-height: 1.6;
}

.payment-review-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-review-result {
    margin: 14px 16px 16px;
}

.decision-card {
    overflow: hidden;
}

.decision-card > header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--line);
}

.decision-card > header > span {
    color: var(--teal-700);
    font-size: 9px;
    font-weight: 700;
}

.decision-checklist {
    display: grid;
    gap: 8px;
    padding: 15px 16px 10px;
}

.decision-checklist label {
    min-height: 62px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.decision-checklist label.is-checked {
    border-color: #9dd3cd;
    background: #f1faf8;
}

.decision-checklist input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.decision-checklist label > span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd7dd;
    border-radius: 6px;
    color: transparent;
}

.decision-checklist label.is-checked > span {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
}

.decision-checklist .icon {
    width: 14px;
    height: 14px;
}

.decision-checklist strong,
.decision-checklist small {
    display: block;
}

.decision-checklist strong {
    font-size: 10.5px;
}

.decision-checklist small {
    color: var(--muted);
    font-size: 8.5px;
}

.admin-field {
    display: grid;
    gap: 6px;
    margin: 4px 16px 12px;
}

.admin-field > span {
    color: #354d5e;
    font-size: 10px;
    font-weight: 600;
}

.admin-field > span small {
    color: var(--muted);
    font-weight: 400;
}

.admin-field textarea {
    width: 100%;
    resize: vertical;
    padding: 10px 11px;
    border: 1px solid #ccd8df;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: 10px;
    line-height: 1.7;
}

.admin-field textarea:focus {
    border-color: var(--teal-700);
    outline: 2px solid rgba(8, 127, 120, .12);
}

.decision-approve {
    width: calc(100% - 32px);
    margin: 0 16px 12px;
}

.admin-button:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
}

.admin-button--warning {
    border-color: #e5b67e;
    background: #fff8ef;
    color: #9a5308;
    box-shadow: none;
}

.admin-button--warning:hover {
    background: #fff1dd;
}

.admin-button--danger {
    border-color: #d96459;
    background: var(--danger);
    color: #fff;
    box-shadow: none;
}

.admin-button--danger:hover {
    background: #8f1c14;
}

.decision-boundary {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 16px 15px;
    padding: 10px;
    border-radius: 7px;
    background: #f2f6f8;
    color: #4d6575;
}

.decision-boundary .icon {
    width: 16px;
    margin-top: 2px;
    color: var(--teal-700);
}

.decision-boundary strong,
.decision-boundary span {
    display: block;
}

.decision-boundary strong {
    color: #2b4455;
    font-size: 9.5px;
}

.decision-boundary span {
    font-size: 8.5px;
    line-height: 1.7;
}

.correction-action {
    padding: 15px 0 16px;
    border-top: 1px solid var(--line);
    background: #fffdf9;
}

.correction-action > span {
    display: block;
    padding: 0 16px 6px;
    color: var(--warning);
    font-size: 9px;
    font-weight: 700;
}

.correction-action .admin-button {
    width: calc(100% - 32px);
    margin-inline: 16px;
}

.rejection-action {
    border-top: 1px solid #f0d6d2;
    background: #fffafa;
}

.rejection-action summary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    color: var(--danger);
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    list-style: none;
}

.rejection-action summary::-webkit-details-marker {
    display: none;
}

.rejection-action summary .icon {
    width: 15px;
    height: 15px;
}

.rejection-action > div {
    padding-bottom: 16px;
}

.rejection-action > div > p {
    margin: 0;
    padding: 0 16px 4px;
    color: var(--muted);
    font-size: 8.5px;
    line-height: 1.7;
}

.rejection-action .admin-button {
    width: calc(100% - 32px);
    margin-inline: 16px;
}

.decision-card--complete {
    padding: 25px 20px;
    text-align: center;
}

.decision-result-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--teal-100);
    color: var(--teal-700);
}

.decision-card--complete > small {
    color: var(--muted);
    font-size: 9px;
}

.decision-card--complete > p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.decision-card--complete dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    text-align: start;
}

.decision-card--complete dt {
    color: var(--muted);
    font-size: 8.5px;
}

.decision-card--complete dd {
    margin: 2px 0 0;
    font-size: 10px;
    font-weight: 600;
}

.integration-card {
    padding: 17px 16px;
}

.integration-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.integration-card > header span {
    color: var(--teal-700);
    font-size: 8.5px;
    font-weight: 700;
}

.integration-card > header i {
    padding: 4px 7px;
    border-radius: 99px;
    background: #eef3f5;
    color: #657986;
    font-size: 8px;
    font-style: normal;
    font-weight: 700;
}

.integration-card > header i.is-ready {
    background: #fff4df;
    color: #9b610a;
}

.integration-card > header i.is-success {
    background: var(--teal-100);
    color: var(--teal-700);
}

.integration-card > header i.is-error {
    background: #fff0ee;
    color: var(--danger);
}

.integration-route {
    display: grid;
    grid-template-columns: 1fr 18px 1fr 18px 1fr;
    align-items: start;
    margin-top: 18px;
}

.integration-route > div {
    min-width: 0;
    text-align: center;
}

.integration-route > div > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    margin: 0 auto 6px;
    border: 1px solid #cad6dc;
    border-radius: 50%;
    background: #fff;
    color: #71838f;
    font-size: 8px;
    font-weight: 700;
}

.integration-route > div.is-current > span,
.integration-route > div.is-done > span {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
}

.integration-route .icon {
    width: 13px;
    height: 13px;
}

.integration-route > b {
    height: 1px;
    margin-top: 14px;
    background: #d5dfe4;
}

.integration-route strong,
.integration-route small {
    display: block;
    white-space: nowrap;
}

.integration-route strong {
    font-size: 8px;
}

.integration-route small {
    color: var(--muted);
    font-size: 7px;
}

.integration-meta {
    display: grid;
    gap: 8px;
    margin: 17px 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.integration-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.integration-meta dt {
    color: var(--muted);
    font-size: 8.5px;
}

.integration-meta dd {
    margin: 0;
    font-size: 9px;
    font-weight: 600;
}

.integration-error,
.integration-pending-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 13px;
    padding: 10px;
    border: 1px solid #f0cbc6;
    border-radius: 7px;
    background: #fff7f6;
    color: var(--danger);
}

.integration-error .icon,
.integration-pending-note .icon {
    width: 15px;
    min-width: 15px;
    margin-top: 1px;
}

.integration-error strong,
.integration-error span {
    display: block;
}

.integration-error strong {
    font-size: 9px;
}

.integration-error span,
.integration-pending-note span {
    color: #6e4a47;
    font-size: 8px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.integration-pending-note {
    border-color: #d9e3e7;
    background: #f7fafb;
    color: var(--teal-700);
}

.integration-pending-note span {
    color: var(--muted);
}

.integration-retry {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.integration-retry > p {
    margin: 0 0 7px;
}

.integration-retry > p strong,
.integration-retry > p span {
    display: block;
}

.integration-retry > p strong {
    color: var(--ink);
    font-size: 9px;
}

.integration-retry > p span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.6;
}

.integration-retry .admin-field {
    padding-inline: 0;
}

.integration-retry .admin-button {
    width: 100%;
}

.review-audit-card {
    padding: 0;
}

.review-audit-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 21px;
    border-bottom: 1px solid var(--line);
}

.review-audit-card > header > span {
    color: var(--muted);
    font-size: 9px;
}

.review-audit-card ol {
    margin: 0;
    padding: 8px 43px 8px 20px;
}

.review-audit-card li {
    position: relative;
    padding: 11px 9px 13px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--teal-700);
}

.review-audit-card li:last-child {
    border-bottom: 0;
}

.review-audit-card li::marker {
    font-size: 11px;
}

.review-audit-card li p {
    margin: 2px 0;
    color: #435b6b;
    font-size: 9.5px;
}

.status-badge--danger {
    background: #fff0ee;
    color: var(--danger);
}

@media (max-width: 1180px) {
    .review-console {
        grid-template-columns: minmax(0, 1fr) 315px;
    }
}

@media (max-width: 980px) {
    .review-console {
        grid-template-columns: 1fr;
    }

    .review-console__decision {
        position: static;
        grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
        align-items: start;
    }
}

@media (max-width: 720px) {
    .record-heading-actions {
        width: 100%;
        justify-content: space-between;
    }

    .review-console__decision {
        grid-template-columns: 1fr;
    }

    .review-section__header {
        align-items: flex-start;
        padding-inline: 15px;
    }

    .verified-source,
    .private-files-label {
        padding: 5px;
        font-size: 0;
    }

    .admin-data-grid {
        grid-template-columns: 1fr;
        padding-inline: 15px;
    }

    .admin-data-grid > div,
    .admin-data-grid > div:nth-child(even):not(.admin-data-grid__wide) {
        grid-column: auto;
        padding-inline-start: 2px;
        border-inline-start: 0;
    }

    .admin-supplementary-grid {
        grid-template-columns: 1fr;
        margin-inline: 15px;
    }

    .admin-document-list {
        padding-inline: 15px;
    }

    .admin-document-list li {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-document-list code {
        grid-column: 2;
        justify-self: start;
        margin-bottom: 10px;
    }
}

/* Applications operations queue */
.requests-heading {
    margin-bottom: 14px;
}

.requests-heading .admin-button {
    min-width: 126px;
}

.requests-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #d6e0e6;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(9, 35, 54, .035);
}

.request-metric {
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 12px 20px;
    border: 0;
    border-inline-end: 1px solid #e2e9ed;
    background: #fff;
    color: #536a7b;
    cursor: pointer;
    text-align: right;
    transition: background-color .15s ease, color .15s ease;
}

.request-metric:last-child {
    border-inline-end: 0;
}

.request-metric:hover,
.request-metric.is-active {
    background: #f6fbfa;
    color: var(--navy-900);
}

.request-metric::after {
    position: absolute;
    inset-inline: 28px;
    bottom: 0;
    height: 2px;
    background: transparent;
    content: "";
}

.request-metric.is-active::after {
    background: var(--teal-700);
}

.request-metric__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #5d7282;
}

.request-metric__icon .icon {
    width: 25px;
    height: 25px;
    stroke-width: 1.7;
}

.request-metric > span:nth-child(2) small,
.request-metric > span:nth-child(2) strong {
    display: block;
}

.request-metric small {
    color: #718391;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.request-metric strong {
    margin-top: 1px;
    color: #102d42;
    font-size: 21px;
    line-height: 1.1;
}

.request-metric > i {
    width: 6px;
    height: 6px;
    margin-top: 25px;
    border-radius: 50%;
    background: var(--teal-700);
}

.request-metric > i.is-warning {
    background: #bf7619;
}

.request-metric > i.is-danger {
    background: #c33127;
}

.requests-metrics.is-loading {
    min-height: 78px;
    padding: 18px;
    gap: 25px;
}

.requests-metrics.is-loading > span {
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f4f6 25%, #f7f9fa 50%, #f0f4f6 75%);
    background-size: 200% 100%;
    animation: requests-shimmer 1.2s infinite linear;
}

.requests-workspace {
    min-width: 0;
}

.requests-tabs {
    display: flex;
    align-items: stretch;
    gap: 28px;
    min-height: 48px;
    overflow-x: auto;
    border-bottom: 1px solid #d9e2e7;
    scrollbar-width: none;
}

.requests-tabs::-webkit-scrollbar {
    display: none;
}

.requests-tabs button {
    position: relative;
    min-width: max-content;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 2px 11px;
    border: 0;
    background: transparent;
    color: #5d7181;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.requests-tabs button::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: transparent;
    content: "";
}

.requests-tabs button:hover,
.requests-tabs button.is-active {
    color: var(--navy-900);
}

.requests-tabs button.is-active::after {
    background: var(--teal-700);
}

.requests-tabs b {
    min-width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    padding-inline: 5px;
    border-radius: 11px;
    background: #eaf0f3;
    color: #5c7181;
    font-size: 9px;
}

.requests-tabs button.is-active b {
    background: #dff2ef;
    color: var(--teal-700);
}

.requests-toolbar {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 205px 165px auto;
    gap: 9px;
    padding: 16px 0 12px;
}

.requests-search,
.requests-select,
.requests-sort,
.requests-advanced-filters label:not(.requests-check) {
    min-width: 0;
    display: flex;
    align-items: center;
    border: 1px solid #ccd8df;
    border-radius: 7px;
    background: #fff;
    color: #80909d;
}

.requests-search {
    min-height: 42px;
    gap: 9px;
    padding-inline: 12px;
}

.requests-search:focus-within,
.requests-select:focus-within,
.requests-sort:focus-within,
.requests-advanced-filters label:not(.requests-check):focus-within {
    border-color: var(--teal-700);
    box-shadow: 0 0 0 3px rgba(8, 127, 120, .09);
}

.requests-search > .icon {
    width: 18px;
    height: 18px;
}

.requests-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: 0;
    font-size: 11px;
}

.requests-search > button {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef3f5;
    color: #687d8b;
    cursor: pointer;
}

.requests-search > button .icon {
    width: 13px;
    height: 13px;
}

.requests-select {
    position: relative;
    min-height: 42px;
    padding-inline: 10px 7px;
}

.requests-select > .icon:first-child {
    width: 16px;
    height: 16px;
    margin-inline-end: 5px;
}

.requests-select > .icon:last-child,
.requests-sort > .icon {
    width: 13px;
    height: 13px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.requests-select select,
.requests-sort select {
    min-width: 0;
    flex: 1;
    appearance: none;
    border: 0;
    background: transparent;
    color: #334c5e;
    outline: 0;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 600;
}

.requests-filter-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #ccd8df;
    border-radius: 7px;
    background: #fff;
    color: #294356;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.requests-filter-toggle:hover,
.requests-filter-toggle.is-active {
    border-color: #95c9c4;
    background: #f2faf8;
    color: var(--teal-700);
}

.requests-filter-toggle .icon {
    width: 17px;
    height: 17px;
}

.requests-filter-toggle b {
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--teal-700);
    color: #fff;
    font-size: 8px;
}

.requests-advanced-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(125px, 1fr)) auto auto;
    align-items: end;
    gap: 9px;
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid #d8e2e7;
    border-radius: 8px;
    background: #f8fafb;
}

.requests-advanced-filters label:not(.requests-check) {
    position: relative;
    min-height: 54px;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
    padding: 6px 10px;
}

.requests-advanced-filters label > span:first-child {
    color: #7a8b98;
    font-size: 8px;
    font-weight: 600;
}

.requests-advanced-filters select {
    width: 100%;
    appearance: none;
    border: 0;
    background: transparent;
    color: #294356;
    outline: 0;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

.requests-check {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: #475f70;
    cursor: pointer;
    font-size: 9.5px;
}

.requests-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.requests-check > span {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border: 1px solid #bbcbd4;
    border-radius: 4px;
    background: #fff;
    color: transparent;
}

.requests-check > span .icon {
    width: 13px;
}

.requests-check input:checked + span {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
}

.requests-check input:focus-visible + span {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.requests-reset {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--teal-700);
    cursor: pointer;
    font-size: 9.5px;
    font-weight: 600;
    white-space: nowrap;
}

.requests-reset:disabled {
    cursor: default;
    opacity: .45;
}

.requests-reset .icon {
    width: 15px;
}

.requests-feedback {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 9px 12px;
    border: 1px solid #a9d7d1;
    border-radius: 7px;
    background: #eef9f7;
    color: #076c66;
    font-size: 10px;
    font-weight: 600;
}

.requests-feedback.is-error {
    border-color: #edc2be;
    background: #fff4f2;
    color: var(--danger);
}

.requests-feedback > .icon {
    width: 16px;
}

.requests-feedback > span {
    flex: 1;
}

.requests-feedback button {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.requests-feedback button .icon {
    width: 14px;
}

.requests-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: start;
    gap: 12px;
}

.requests-queue,
.requests-inspector {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d6e0e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(9, 35, 54, .025);
}

.requests-queue {
    position: relative;
}

.requests-queue__header {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 14px;
    border-bottom: 1px solid #e1e8ec;
}

.requests-queue__header > div:first-child strong,
.requests-queue__header > div:first-child span {
    display: block;
}

.requests-queue__header > div:first-child strong {
    color: #183549;
    font-size: 11px;
}

.requests-queue__header > div:first-child span {
    margin-top: 1px;
    color: #7a8c98;
    font-size: 8.5px;
}

.requests-queue__header > div:last-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.requests-sort {
    min-height: 33px;
    gap: 5px;
    padding-inline: 9px;
}

.requests-sort > span {
    color: #7d8f9a;
    font-size: 8.5px;
}

.requests-sort select {
    width: 83px;
    font-size: 9px;
}

.requests-refresh {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #ccd8df;
    border-radius: 6px;
    background: #fff;
    color: #607686;
    cursor: pointer;
}

.requests-refresh:hover {
    border-color: #99c9c5;
    color: var(--teal-700);
}

.requests-refresh:disabled {
    cursor: wait;
    opacity: .5;
}

.requests-refresh .icon {
    width: 15px;
}

.requests-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.requests-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: auto;
    text-align: right;
}

.requests-table th {
    height: 38px;
    padding: 8px 9px;
    background: #f8fafb;
    color: #71838f;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.requests-table td {
    height: 58px;
    padding: 8px 9px;
    border-top: 1px solid #e6ecef;
    color: #4e6473;
    font-size: 8.7px;
    vertical-align: middle;
    white-space: nowrap;
}

.requests-table tbody tr {
    transition: background-color .15s ease, box-shadow .15s ease;
}

.requests-table tbody tr:hover {
    background: #f9fcfc;
}

.requests-table tbody tr.is-selected {
    background: #edf9f7;
    box-shadow: inset 0 1px #76c6bf, inset 0 -1px #76c6bf;
}

.requests-table th:first-child,
.requests-table td:first-child {
    width: 34px;
    padding-inline: 9px 3px;
}

.requests-table th:last-child,
.requests-table td:last-child {
    width: 39px;
    padding-inline: 3px 8px;
}

.request-row-check {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #afc0cb;
    border-radius: 4px;
    background: #fff;
    color: transparent;
    cursor: pointer;
}

.request-row-check.is-selected {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
}

.request-row-check .icon {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

.request-applicant {
    min-width: 0;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: right;
}

.request-applicant strong,
.request-applicant span {
    display: block;
}

.request-applicant strong,
.request-cell-title {
    color: #183044;
    font-size: 9.4px;
    font-weight: 600;
}

.request-applicant span,
.request-cell-subtitle {
    margin-top: 2px;
    color: #718492;
    font-size: 7.8px;
    font-weight: 400;
}

.request-applicant em {
    display: inline-flex;
    margin-inline-start: 5px;
    padding: 1px 4px;
    border-radius: 3px;
    background: #fff0dc;
    color: #9a5b0a;
    font-size: 6.8px;
    font-style: normal;
}

.request-cell-title,
.request-cell-subtitle {
    display: block;
}

.is-overdue {
    color: var(--danger) !important;
}

.integration-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #647987;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.integration-state > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.integration-state.is-synced,
.integration-state.is-ready {
    color: #0a8379;
}

.integration-state.is-failed {
    color: var(--danger);
}

.integration-state.is-pending {
    color: #6f808c;
}

.requests-table .status-badge {
    font-size: 8px;
}

.requests-table .row-action {
    width: 27px;
    height: 27px;
}

.requests-table .row-action .icon {
    transform: rotate(180deg);
}

.requests-mobile-list {
    display: none;
}

.requests-loading {
    min-height: 280px;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 25px;
    text-align: center;
}

.requests-loading > span {
    width: min(520px, 90%);
    height: 28px;
    margin-inline: auto;
    border-radius: 5px;
    background: linear-gradient(90deg, #f0f4f6 25%, #f8fafb 50%, #f0f4f6 75%);
    background-size: 200% 100%;
    animation: requests-shimmer 1.2s infinite linear;
}

.requests-loading p {
    margin: 8px 0 0;
    color: #718491;
    font-size: 10px;
}

.requests-loading-overlay {
    position: absolute;
    inset: 54px 0 0;
    z-index: 5;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .74);
    color: var(--teal-700);
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(1px);
}

.requests-empty {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 35px;
    text-align: center;
}

.requests-empty > .icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    color: #8ba0ad;
}

.requests-empty h2 {
    margin: 0;
    color: #183549;
    font-size: 15px;
}

.requests-empty p {
    max-width: 330px;
    margin: 7px 0 16px;
    color: #718491;
    font-size: 10px;
}

.requests-pagination {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 14px;
    border-top: 1px solid #e1e8ec;
    color: #70828f;
    font-size: 8.5px;
}

.requests-pagination > div {
    display: flex;
    align-items: center;
    gap: 4px;
    direction: rtl;
}

.requests-pagination button {
    min-width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #fff;
    color: #526a7a;
    cursor: pointer;
    font-size: 8.5px;
}

.requests-pagination button:hover:not(:disabled),
.requests-pagination button.is-active {
    border-color: #b7cbd4;
    color: var(--teal-700);
}

.requests-pagination button:disabled {
    cursor: default;
    opacity: .35;
}

.requests-pagination button .icon {
    width: 12px;
    height: 12px;
}

.requests-pagination button.is-next .icon {
    transform: rotate(180deg);
}

.requests-inspector {
    position: sticky;
    top: 12px;
}

.requests-inspector__handle {
    display: none;
}

.requests-inspector__header {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 13px;
    border-bottom: 1px solid #e1e8ec;
}

.requests-inspector__header > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1b394d;
    font-size: 10px;
    font-weight: 700;
}

.requests-inspector__header > div .icon {
    width: 15px;
    height: 15px;
    color: var(--teal-700);
}

.requests-inspector__header > button {
    display: none;
}

.requests-inspector__empty {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px;
    color: #748795;
    text-align: center;
}

.requests-inspector__empty .icon {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
}

.requests-inspector__empty strong {
    color: #28465a;
    font-size: 11px;
}

.requests-inspector__empty p {
    margin: 5px 0 0;
    font-size: 9px;
}

.requests-inspector__content {
    padding: 0 13px 13px;
}

.inspector-identity {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 0;
    border-bottom: 1px solid #e5ebee;
}

.inspector-identity > div strong,
.inspector-identity > div bdi {
    display: block;
}

.inspector-identity > div strong {
    color: #173247;
    font-size: 11.5px;
}

.inspector-identity > div bdi {
    margin-top: 1px;
    color: #718491;
    font-size: 8.5px;
}

.inspector-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid #e5ebee;
}

.inspector-facts > div {
    min-width: 0;
    padding: 7px 5px;
}

.inspector-facts dt,
.inspector-timing span,
.inspector-documents > div > span,
.inspector-assignment > span,
.inspector-integration > span {
    color: #7a8d99;
    font-size: 8px;
}

.inspector-facts dd {
    overflow: hidden;
    margin: 2px 0 0;
    color: #294356;
    font-size: 9px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inspector-timing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px 0;
    border-bottom: 1px solid #e5ebee;
}

.inspector-timing > div {
    min-width: 0;
    padding-inline: 7px;
    border-inline-start: 1px solid #e5ebee;
}

.inspector-timing > div:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.inspector-timing span,
.inspector-timing strong {
    display: block;
}

.inspector-timing strong {
    margin-top: 4px;
    color: #294356;
    font-size: 8.5px;
}

.inspector-timing .status-badge {
    padding: 3px 5px;
    font-size: 7px;
}

.inspector-documents {
    padding: 12px 0;
    border-bottom: 1px solid #e5ebee;
}

.inspector-documents > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inspector-documents > div:first-child strong {
    color: var(--teal-700);
    font-size: 9px;
}

.inspector-progress {
    appearance: none;
    display: block;
    width: 100%;
    border: 0;
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 3px;
    background: #dce5e9;
}

.inspector-progress::-webkit-progress-value {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--teal-700);
}

.inspector-progress::-webkit-progress-bar {
    border-radius: inherit;
    background: #dce5e9;
}

.inspector-progress::-moz-progress-bar {
    border-radius: inherit;
    background: var(--teal-700);
}

.inspector-documents small {
    display: block;
    margin-top: 6px;
    color: #718491;
    font-size: 7.5px;
}

.inspector-assignment {
    padding: 12px 0;
    border-bottom: 1px solid #e5ebee;
}

.inspector-reviewer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 7px 8px;
    border: 1px solid #d4dee4;
    border-radius: 6px;
    background: #fbfcfc;
}

.inspector-reviewer > .icon {
    width: 18px;
    height: 18px;
    color: #315267;
}

.inspector-reviewer p {
    min-width: 0;
    margin: 0;
}

.inspector-reviewer strong,
.inspector-reviewer small {
    display: block;
}

.inspector-reviewer strong {
    color: #294356;
    font-size: 9px;
}

.inspector-reviewer small {
    color: #7a8d99;
    font-size: 7px;
}

.inspector-assign {
    width: 100%;
    min-height: 32px;
    margin-top: 7px;
    font-size: 9px;
}

.inspector-integration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid #e5ebee;
}

.inspector-feedback {
    margin: 10px 0 0;
    padding: 8px;
    border-radius: 6px;
    font-size: 8px;
    line-height: 1.65;
}

.inspector-feedback.is-success {
    background: #eaf8f5;
    color: #087268;
}

.inspector-feedback.is-error {
    background: #fff0ee;
    color: var(--danger);
}

.inspector-actions {
    display: grid;
    gap: 7px;
    padding-top: 12px;
}

.inspector-actions .admin-button {
    width: 100%;
    min-height: 34px;
    padding-inline: 8px;
    font-size: 9px;
}

.admin-button--warning-outline {
    border-color: #dfb06f;
    background: #fff;
    color: #995809;
    box-shadow: none;
}

.admin-button--warning-outline:hover {
    background: #fff7eb;
    color: #995809;
}

.requests-inspector-backdrop {
    display: none;
}

@keyframes requests-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (max-width: 1260px) {
    .requests-toolbar {
        grid-template-columns: minmax(260px, 1fr) 190px 155px auto;
    }

    .requests-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
    }

    .requests-table {
        min-width: 875px;
    }
}

@media (max-width: 1180px) {
    .requests-advanced-filters {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .requests-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .requests-inspector {
        position: static;
    }

    .requests-inspector__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 18px;
    }

    .inspector-identity,
    .inspector-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .admin-topbar {
        height: 68px;
        padding-inline: 16px;
    }

    .topbar-title small,
    .system-secure,
    .top-search,
    .user-menu > div,
    .user-menu > .icon {
        display: none;
    }

    .topbar-title strong {
        margin-top: 0;
        font-size: 14px;
    }

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

    .request-metric {
        border-inline-end: 1px solid #e2e9ed;
    }

    .request-metric:last-child {
        display: none;
    }

    .requests-workspace {
        display: flex;
        flex-direction: column;
    }

    .requests-toolbar {
        order: 1;
    }

    .requests-advanced-filters {
        order: 2;
    }

    .requests-tabs {
        order: 3;
    }

    .requests-feedback {
        order: 4;
    }

    .requests-layout {
        order: 5;
    }

    .requests-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 4px 0 10px;
    }

    .requests-search {
        grid-column: auto;
    }

    .requests-select--cycle,
    .requests-select--type {
        display: none;
    }

    .requests-filter-toggle span {
        display: inline;
    }

    .requests-tabs {
        margin-bottom: 10px;
    }

    .requests-advanced-filters {
        grid-template-columns: 1fr 1fr;
    }

    .requests-table-wrap {
        display: none;
    }

    .requests-mobile-list {
        display: grid;
        gap: 8px;
        padding: 9px;
        background: #f7f9fa;
    }

    .request-mobile-card {
        overflow: hidden;
        border: 1px solid #d4dfe5;
        border-radius: 8px;
        background: #fff;
    }

    .request-mobile-card.is-selected {
        border-color: var(--teal-700);
        box-shadow: 0 0 0 1px rgba(8, 127, 120, .08);
    }

    .request-mobile-card__main {
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(130px, 1.35fr) minmax(105px, 1fr) minmax(82px, .7fr);
        align-items: center;
        gap: 11px;
        padding: 13px 12px;
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
        text-align: right;
    }

    .request-mobile-identity strong,
    .request-mobile-identity bdi,
    .request-mobile-study strong,
    .request-mobile-study small,
    .request-mobile-time strong,
    .request-mobile-time small {
        display: block;
    }

    .request-mobile-identity strong {
        color: #153247;
        font-size: 11px;
    }

    .request-mobile-identity bdi,
    .request-mobile-study small,
    .request-mobile-time small {
        margin-top: 2px;
        color: #718491;
        font-size: 8.5px;
    }

    .request-mobile-study strong,
    .request-mobile-time strong {
        color: #526979;
        font-size: 9.5px;
    }

    .request-mobile-card__meta {
        min-height: 48px;
        display: grid;
        grid-template-columns: minmax(120px, 1fr) minmax(95px, .8fr) minmax(125px, 1fr) auto;
        align-items: center;
        gap: 9px;
        padding: 8px 12px;
        border-top: 1px solid #e2e9ed;
    }

    .request-mobile-card__meta > span:nth-child(2) strong,
    .request-mobile-card__meta > span:nth-child(2) small {
        display: block;
    }

    .request-mobile-card__meta > span:nth-child(2) strong {
        color: #294356;
        font-size: 9.5px;
    }

    .request-mobile-card__meta > span:nth-child(2) small {
        color: #7a8d99;
        font-size: 7.5px;
    }

    .request-mobile-card__meta .row-action .icon {
        transform: rotate(180deg);
    }

    .requests-inspector {
        position: fixed;
        top: auto;
        inset-inline: 0;
        bottom: 0;
        z-index: 80;
        width: 100%;
        max-height: min(76vh, 700px);
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(105%);
        transition: transform .22s ease, opacity .2s ease;
    }

    .requests-inspector.is-mobile-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .requests-inspector__handle {
        width: 42px;
        height: 4px;
        display: block;
        margin: 9px auto 0;
        border-radius: 2px;
        background: #cfdae0;
    }

    .requests-inspector__header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
    }

    .requests-inspector__header > button {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        background: transparent;
        color: #607686;
        cursor: pointer;
    }

    .requests-inspector__header > button .icon {
        width: 18px;
    }

    .requests-inspector__content {
        display: block;
        padding: 0 20px 20px;
    }

    .inspector-identity {
        padding-block: 16px;
    }

    .inspector-identity > div strong {
        font-size: 14px;
    }

    .inspector-identity > div bdi,
    .inspector-facts dt,
    .inspector-timing span,
    .inspector-documents > div > span,
    .inspector-assignment > span,
    .inspector-integration > span {
        font-size: 9.5px;
    }

    .inspector-facts dd,
    .inspector-timing strong,
    .inspector-documents > div:first-child strong,
    .inspector-reviewer strong {
        font-size: 10.5px;
    }

    .inspector-reviewer small,
    .inspector-documents small {
        font-size: 8.5px;
    }

    .inspector-actions .admin-button,
    .inspector-assign {
        font-size: 10.5px;
    }

    .requests-inspector-backdrop {
        position: fixed;
        inset: 0;
        z-index: 75;
        display: block;
        border: 0;
        background: rgba(6, 27, 43, .34);
        backdrop-filter: blur(1px);
    }
}

@media (max-width: 620px) {
    .requests-heading {
        flex-direction: row;
        align-items: flex-start;
    }

    .requests-heading p {
        display: none;
    }

    .requests-heading .admin-button {
        min-width: 105px;
        font-size: 10px;
    }

    .requests-metrics {
        grid-template-columns: repeat(3, minmax(112px, 1fr));
        overflow-x: auto;
    }

    .request-metric {
        min-height: 74px;
        gap: 7px;
        padding-inline: 11px;
    }

    .request-metric__icon {
        width: 27px;
    }

    .request-metric__icon .icon {
        width: 21px;
        height: 21px;
    }

    .request-metric small {
        font-size: 8.5px;
    }

    .request-metric strong {
        font-size: 18px;
    }

    .requests-tabs {
        gap: 20px;
    }

    .requests-toolbar {
        grid-template-columns: minmax(0, 1fr) 46px;
        padding-top: 13px;
    }

    .requests-filter-toggle span {
        display: none;
    }

    .requests-search {
        min-height: 44px;
    }

    .requests-advanced-filters {
        grid-template-columns: 1fr;
    }

    .requests-queue__header {
        align-items: flex-start;
    }

    .requests-queue__header > div:first-child span,
    .requests-sort > span {
        display: none;
    }

    .requests-sort select {
        width: 71px;
    }

    .request-mobile-card__main {
        grid-template-columns: auto minmax(0, 1.45fr) minmax(78px, .8fr);
        gap: 9px;
        padding-inline: 10px;
    }

    .request-mobile-study {
        display: none;
    }

    .request-mobile-card__meta {
        grid-template-columns: minmax(100px, 1fr) minmax(82px, .75fr) minmax(95px, 1fr) auto;
        gap: 6px;
        padding-inline: 10px;
    }

    .request-mobile-card__meta .status-badge,
    .request-mobile-card__meta .integration-state {
        font-size: 7.5px;
    }

    .requests-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .requests-pagination > div {
        width: 100%;
        justify-content: center;
    }

    .requests-inspector {
        max-height: 82vh;
    }

    .requests-inspector__content {
        padding-inline: 14px;
    }

    .inspector-actions {
        grid-template-columns: 1.25fr 1fr;
    }
}

@media (max-width: 390px) {
    .requests-heading {
        flex-direction: column;
    }

    .requests-heading .admin-button {
        width: 100%;
    }

    .request-mobile-card__meta {
        grid-template-columns: 1fr 1fr auto;
    }

    .request-mobile-card__meta > .integration-state {
        display: none;
    }

    .inspector-actions {
        grid-template-columns: 1fr;
    }
}

/* Examination cycles integration command center */
.cycles-heading {
    align-items: center;
    margin-bottom: 16px;
}

.cycles-heading__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cycles-heading__actions .admin-button {
    min-width: 142px;
}

.cycles-heading__actions .icon {
    width: 17px;
    height: 17px;
}

.cycles-feedback {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    padding: 9px 13px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
}

.cycles-feedback.is-success {
    border-color: #b7ded8;
    background: #eff9f7;
    color: #087268;
}

.cycles-feedback.is-error {
    border-color: #edc0ba;
    background: #fff3f1;
    color: var(--danger);
}

.cycles-feedback > .icon {
    width: 17px;
    height: 17px;
}

.cycles-feedback > span {
    flex: 1;
}

.cycles-feedback > button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: currentColor;
    cursor: pointer;
}

.cycles-feedback > button:hover {
    background: rgba(7, 52, 75, .06);
}

.cycles-feedback > button .icon {
    width: 14px;
    height: 14px;
}

.cycle-active-card {
    overflow: hidden;
    border: 1px solid #d3e0e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 15px rgba(9, 35, 54, .045);
}

.cycle-active-card__header {
    min-height: 96px;
    display: flex;
    align-items: flex-start;
    gap: 34px;
    padding: 21px 25px 16px;
    border-bottom: 1px solid #edf2f4;
}

.cycle-active-card__identity {
    min-width: 0;
    order: 2;
}

.cycle-active-card__identity > span {
    display: block;
    color: var(--teal-700);
    font-size: 10.5px;
    font-weight: 700;
}

.cycle-active-card__identity h2 {
    margin: 2px 0 1px;
    color: var(--navy-900);
    font-size: 21px;
    line-height: 1.4;
}

.cycle-active-card__identity bdi {
    color: #6a7e8d;
    font-family: Arial, sans-serif;
    font-size: 11px;
    direction: ltr;
}

.cycle-active-card__status {
    min-width: 185px;
    display: grid;
    order: 1;
    padding-inline-end: 28px;
    border-inline-end: 1px solid #dce6ea;
}

.cycle-active-card__status small {
    margin-top: 7px;
    color: #718492;
    font-size: 9px;
}

.cycle-active-card__status strong {
    margin-top: 1px;
    color: #22394b;
    font-size: 12px;
}

.cycle-stage-badge {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.cycle-stage-badge i,
.cycle-integration-state i,
.cycle-sync-state i,
.cycle-mobile-card__sync i {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.cycle-stage-badge.is-open {
    background: #e2f5f1;
    color: #087268;
}

.cycle-stage-badge.is-draft {
    background: #eef2f4;
    color: #657885;
}

.cycle-stage-badge.is-progress {
    background: #e8f2f7;
    color: #245f7b;
}

.cycle-stage-badge.is-closed {
    background: #f1f3f4;
    color: #697985;
}

.cycle-lifecycle {
    padding: 16px 28px 10px;
}

.cycle-lifecycle__desktop {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.cycle-lifecycle__desktop li {
    position: relative;
    min-width: 0;
    padding: 28px 4px 0;
    color: #7c8e9a;
    text-align: center;
}

.cycle-lifecycle__desktop li::after {
    content: "";
    position: absolute;
    top: 13px;
    right: 50%;
    z-index: 0;
    width: 100%;
    height: 2px;
    background: #d7e1e6;
}

.cycle-lifecycle__desktop li:last-child::after {
    display: none;
}

.cycle-lifecycle__desktop li.is-complete::after {
    background: #55bfb6;
}

.cycle-lifecycle__desktop li > span {
    position: absolute;
    top: 2px;
    left: 50%;
    z-index: 1;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border: 2px solid #cbd8de;
    border-radius: 50%;
    background: #fff;
    color: #6e838f;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.cycle-lifecycle__desktop li.is-complete > span {
    border-color: var(--teal-600);
    background: var(--teal-600);
    color: #fff;
}

.cycle-lifecycle__desktop li.is-current > span {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
    box-shadow: 0 0 0 4px #dff4f1;
}

.cycle-lifecycle__desktop li > strong {
    display: block;
    overflow: hidden;
    color: inherit;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cycle-lifecycle__desktop li.is-current {
    color: var(--teal-700);
}

.cycle-lifecycle__desktop li.is-current > strong {
    font-weight: 700;
}

.cycle-lifecycle__mobile {
    display: none;
}

.cycle-active-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 10px 25px 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe5e9;
    border-radius: 7px;
}

.cycle-active-facts > div {
    min-width: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 12px 15px;
    border-inline-end: 1px solid #dbe5e9;
}

.cycle-active-facts > div:last-child {
    border-inline-end: 0;
}

.cycle-active-facts .icon {
    width: 25px;
    height: 25px;
    color: #536d7e;
    stroke-width: 1.7;
}

.cycle-active-facts dt,
.cycle-active-facts dd {
    margin: 0;
}

.cycle-active-facts dt {
    color: #607484;
    font-size: 9.5px;
    white-space: nowrap;
}

.cycle-active-facts dd {
    margin-top: 1px;
    color: var(--navy-900);
    font-family: Arial, "Noto Sans Arabic", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.cycles-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 308px;
    grid-template-areas: "records readiness";
    gap: 14px;
    margin-top: 14px;
    direction: ltr;
}

.cycles-records-panel,
.cycle-readiness-panel {
    min-width: 0;
    border: 1px solid #d5e0e5;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 13px rgba(9, 35, 54, .035);
    direction: rtl;
}

.cycles-records-panel {
    grid-area: records;
    min-height: 414px;
    overflow: hidden;
}

.cycle-readiness-panel {
    grid-area: readiness;
    align-self: start;
    padding: 19px 18px 17px;
}

.cycles-records-header {
    min-height: 72px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px 0;
    border-bottom: 1px solid #dfe7eb;
}

.cycles-records-header h2,
.cycle-readiness-panel > header h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: 15px;
}

.cycles-records-header h2 {
    align-self: flex-start;
}

.cycles-tabs {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
}

.cycles-tabs button {
    min-width: 92px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6b7e8b;
    cursor: pointer;
    font-size: 10px;
    font-weight: 600;
}

.cycles-tabs button:hover {
    background: #f7fafb;
    color: #29485c;
}

.cycles-tabs button.is-active {
    border-bottom-color: var(--teal-700);
    color: var(--teal-700);
}

.cycles-tabs button b {
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #edf2f4;
    color: #5f7381;
    font-family: Arial, sans-serif;
    font-size: 9px;
}

.cycles-tabs button.is-active b {
    background: var(--teal-700);
    color: #fff;
}

.cycles-search-row {
    padding: 11px 16px;
    border-bottom: 1px solid #e5ecef;
}

.cycles-search {
    width: min(285px, 100%);
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid #cbd8df;
    border-radius: 7px;
    background: #fff;
    color: #708391;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cycles-search:focus-within {
    border-color: var(--teal-600);
    box-shadow: 0 0 0 3px rgba(11, 145, 136, .1);
}

.cycles-search > .icon {
    width: 17px;
    height: 17px;
}

.cycles-search input {
    min-width: 0;
    flex: 1;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 10.5px;
}

.cycles-search input::placeholder {
    color: #8595a0;
}

.cycles-search button {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #6b7d89;
    cursor: pointer;
}

.cycles-search button:hover {
    background: #eef3f5;
}

.cycles-search button .icon {
    width: 13px;
    height: 13px;
}

.cycle-records-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.cycle-records-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.cycle-records-table th {
    height: 38px;
    padding: 8px 11px;
    border-bottom: 1px solid #e1e8ec;
    background: #f7f9fa;
    color: #6b7d89;
    font-size: 8.5px;
    font-weight: 600;
    text-align: start;
    white-space: nowrap;
}

.cycle-records-table th:first-child {
    width: 27%;
}

.cycle-records-table th:nth-child(2) {
    width: 16%;
}

.cycle-records-table th:nth-child(3) {
    width: 17%;
}

.cycle-records-table th:nth-child(4) {
    width: 16%;
}

.cycle-records-table th:nth-child(5) {
    width: 13%;
}

.cycle-records-table th:nth-child(6) {
    width: 11%;
}

.cycle-records-table td {
    height: 66px;
    padding: 10px 11px;
    border-bottom: 1px solid #e6edef;
    color: #435b6b;
    font-size: 9px;
    vertical-align: middle;
}

.cycle-records-table tbody tr {
    position: relative;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
}

.cycle-records-table tbody tr:hover {
    background: #f7fbfb;
}

.cycle-records-table tbody tr.is-selected {
    background: #f2fbfa;
    box-shadow: inset -3px 0 var(--teal-700);
}

.cycle-record-select {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: start;
}

.cycle-record-select strong,
.cycle-record-select bdi {
    display: block;
}

.cycle-record-select strong {
    color: var(--navy-900);
    font-size: 10px;
}

.cycle-record-select bdi {
    margin-top: 2px;
    color: #6c7f8c;
    font-family: Arial, sans-serif;
    font-size: 8.5px;
    direction: ltr;
}

.cycle-integration-state,
.cycle-sync-state,
.cycle-mobile-card__sync {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    white-space: nowrap;
}

.cycle-integration-state.is-success,
.cycle-sync-state.is-success,
.cycle-mobile-card__sync.is-success {
    color: #087268;
}

.cycle-integration-state.is-warning,
.cycle-sync-state.is-warning,
.cycle-mobile-card__sync.is-warning {
    color: #a65c05;
}

.cycle-integration-state.is-danger,
.cycle-sync-state.is-danger,
.cycle-mobile-card__sync.is-danger {
    color: var(--danger);
}

.cycle-integration-state.is-muted,
.cycle-sync-state.is-muted,
.cycle-mobile-card__sync.is-muted {
    color: #6d7d87;
}

.cycle-records-mobile {
    display: none;
}

.cycles-pagination {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    color: #6e808d;
    font-size: 9px;
}

.cycles-pagination > div {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.cycles-pagination button {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d3dee4;
    border-radius: 6px;
    background: #fff;
    color: #8b9aa4;
}

.cycles-pagination button:disabled {
    opacity: .55;
}

.cycles-pagination button .icon {
    width: 13px;
    height: 13px;
}

.cycles-pagination button.is-next .icon {
    transform: rotate(180deg);
}

.cycles-pagination b {
    color: #657885;
    font-family: Arial, sans-serif;
    font-size: 9px;
}

.cycle-readiness-panel > header {
    padding-bottom: 11px;
    border-bottom: 1px solid #e3eaed;
}

.cycle-readiness-list {
    margin: 0;
    padding: 8px 0 10px;
    border-bottom: 1px solid #e3eaed;
    list-style: none;
}

.cycle-readiness-list li {
    min-height: 32px;
    display: grid;
    grid-template-columns: 19px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    color: #4f6675;
}

.cycle-readiness-icon {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.cycle-readiness-icon .icon {
    width: 10px;
    height: 10px;
    stroke-width: 2.2;
}

.cycle-readiness-list li.is-ready .cycle-readiness-icon,
.cycle-readiness-list li.is-ready b {
    color: #07836f;
}

.cycle-readiness-list li.is-waiting .cycle-readiness-icon,
.cycle-readiness-list li.is-waiting b {
    color: #bd6807;
}

.cycle-readiness-list li.is-attention .cycle-readiness-icon,
.cycle-readiness-list li.is-attention b {
    color: var(--danger);
}

.cycle-readiness-list strong {
    color: #405967;
    font-size: 9.5px;
    font-weight: 600;
}

.cycle-readiness-list b {
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.cycle-sync-summary {
    padding-top: 12px;
}

.cycle-sync-summary h3 {
    margin: 0 0 8px;
    color: var(--navy-900);
    font-size: 12px;
}

.cycle-sync-state {
    font-size: 9.5px;
}

.cycle-sync-summary > p {
    margin: 3px 0 9px;
    color: #71838f;
    font-size: 8.5px;
}

.cycle-sync-details-toggle {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid #aebfc8;
    border-radius: 6px;
    background: #fff;
    color: #29475a;
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
}

.cycle-sync-details-toggle:hover {
    border-color: var(--teal-600);
    background: #f5fbfa;
    color: var(--teal-700);
}

.cycle-sync-details-toggle .icon {
    width: 14px;
    height: 14px;
}

.cycle-sync-details {
    margin: 9px 0 0;
    padding: 9px 10px;
    border: 1px solid #dce6ea;
    border-radius: 6px;
    background: #f8fafb;
}

.cycle-sync-details > div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    padding: 4px 0;
}

.cycle-sync-details dt,
.cycle-sync-details dd {
    margin: 0;
    font-size: 8px;
}

.cycle-sync-details dt {
    color: #71838f;
}

.cycle-sync-details dd {
    overflow-wrap: anywhere;
    color: #304a5b;
    font-weight: 600;
}

.cycle-next-action {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #e3eaed;
}

.cycle-next-action > .icon {
    width: 25px;
    height: 25px;
    color: #526c7c;
}

.cycle-next-action > div {
    min-width: 0;
}

.cycle-next-action span,
.cycle-next-action strong,
.cycle-next-action p {
    display: block;
}

.cycle-next-action span {
    color: #72838f;
    font-size: 8px;
}

.cycle-next-action strong {
    margin-top: 2px;
    color: var(--navy-900);
    font-size: 11.5px;
}

.cycle-next-action p {
    margin: 4px 0 0;
    color: #748692;
    font-size: 7.5px;
    line-height: 1.65;
}

.cycles-empty {
    min-height: 232px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    color: #7a8c98;
    text-align: center;
}

.cycles-empty > .icon {
    width: 31px;
    height: 31px;
    margin-bottom: 8px;
    color: #93a4ae;
}

.cycles-empty h2 {
    margin: 0;
    color: #294356;
    font-size: 14px;
}

.cycles-empty p {
    max-width: 330px;
    margin: 5px 0 12px;
    font-size: 10px;
}

.cycles-no-active {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid #d4e1e6;
    border-radius: 9px;
    background: #fff;
}

.cycles-no-active > .icon {
    width: 27px;
    height: 27px;
    color: var(--teal-700);
}

.cycles-no-active > div {
    flex: 1;
}

.cycles-no-active h2 {
    margin: 0;
    font-size: 14px;
}

.cycles-no-active p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.cycles-loading {
    position: relative;
}

.cycles-loading__active,
.cycles-loading__workspace > span {
    overflow: hidden;
    border: 1px solid #e0e8ec;
    border-radius: 9px;
    background: linear-gradient(90deg, #f5f7f8 20%, #eef2f4 38%, #f5f7f8 58%);
    background-size: 200% 100%;
    animation: cycles-shimmer 1.3s linear infinite;
}

.cycles-loading__active {
    height: 280px;
}

.cycles-loading__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 308px;
    gap: 14px;
    margin-top: 14px;
}

.cycles-loading__workspace > span {
    height: 360px;
}

.cycles-loading > p {
    position: absolute;
    top: 112px;
    inset-inline: 0;
    color: #657a88;
    font-size: 11px;
    text-align: center;
}

.cycles-error {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    border: 1px solid #d7e1e6;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.cycles-error > .icon {
    width: 40px;
    height: 40px;
    color: var(--danger);
}

.cycles-error h2 {
    margin: 12px 0 0;
    font-size: 17px;
}

.cycles-error p {
    margin: 5px 0 15px;
    color: var(--muted);
    font-size: 11px;
}

.cycle-stages-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    border: 0;
    background: rgba(5, 25, 40, .48);
}

.cycle-stages-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 95;
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    border: 1px solid #d3dfe5;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(6, 27, 43, .28);
}

.cycle-stages-dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border-bottom: 1px solid #e1e8eb;
}

.cycle-stages-dialog h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: 15px;
}

.cycle-stages-dialog header p {
    margin: 2px 0 0;
    color: #71838f;
    font-size: 9px;
}

.cycle-stages-dialog header button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #f1f5f6;
    color: #5c7180;
    cursor: pointer;
}

.cycle-stages-dialog header button .icon {
    width: 16px;
    height: 16px;
}

.cycle-stages-dialog ol {
    margin: 0;
    padding: 10px 17px 17px;
    list-style: none;
}

.cycle-stages-dialog li {
    position: relative;
    min-height: 42px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    color: #657986;
}

.cycle-stages-dialog li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 31px;
    right: 13px;
    width: 2px;
    height: 22px;
    background: #dbe4e8;
}

.cycle-stages-dialog li.is-complete:not(:last-child)::after {
    background: var(--teal-600);
}

.cycle-stages-dialog li > span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1.5px solid #cbd8de;
    border-radius: 50%;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
}

.cycle-stages-dialog li.is-complete > span,
.cycle-stages-dialog li.is-current > span {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
}

.cycle-stages-dialog li.is-current strong {
    color: var(--teal-700);
}

.cycle-stages-dialog li > strong {
    font-size: 10px;
}

.cycle-stages-dialog li > small {
    padding: 3px 6px;
    border-radius: 4px;
    background: #e2f5f1;
    color: #087268;
    font-size: 7.5px;
    font-weight: 700;
}

@keyframes cycles-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (max-width: 1180px) {
    .cycles-workspace,
    .cycles-loading__workspace {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "records" "readiness";
    }

    .cycle-readiness-panel {
        width: 100%;
    }

    .cycle-readiness-panel > header,
    .cycle-readiness-list,
    .cycle-sync-summary,
    .cycle-next-action {
        max-width: none;
    }

    .cycle-readiness-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
    }
}

@media (max-width: 900px) {
    .cycle-lifecycle {
        padding-inline: 18px;
    }

    .cycle-lifecycle__desktop li > strong {
        font-size: 7.5px;
    }

    .cycle-active-facts {
        margin-inline: 18px;
    }

    .cycle-active-facts > div {
        padding-inline: 10px;
    }
}

@media (max-width: 720px) {
    .cycles-heading {
        gap: 15px;
        margin-bottom: 17px;
    }

    .cycles-heading > div:first-child > span {
        display: none;
    }

    .cycles-heading h1 {
        font-size: 25px;
    }

    .cycles-heading p {
        margin-top: 4px;
        font-size: 11.5px;
    }

    .cycles-heading__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .cycles-heading__actions a.admin-button {
        order: -1;
    }

    .cycles-heading__actions .admin-button {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding-inline: 9px;
        font-size: 10.5px;
    }

    .cycles-feedback {
        font-size: 10px;
    }

    .cycle-active-card__header {
        min-height: 126px;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 20px 19px 15px;
    }

    .cycle-active-card__identity {
        order: 1;
    }

    .cycle-active-card__identity h2 {
        margin-top: 4px;
        font-size: 20px;
    }

    .cycle-active-card__identity bdi {
        font-size: 10.5px;
    }

    .cycle-active-card__status {
        min-width: 132px;
        order: 2;
        justify-items: start;
        padding-inline-end: 0;
        border-inline-end: 0;
    }

    .cycle-active-card__status small {
        margin-top: 15px;
    }

    .cycle-active-card__status strong {
        font-size: 10px;
    }

    .cycle-lifecycle {
        padding: 17px 19px 3px;
    }

    .cycle-lifecycle__desktop {
        display: none;
    }

    .cycle-lifecycle__mobile {
        display: block;
    }

    .cycle-mobile-progress__heading,
    .cycle-mobile-progress__next {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .cycle-mobile-progress__heading strong {
        color: #435c6c;
        font-size: 11.5px;
    }

    .cycle-mobile-progress__heading span,
    .cycle-mobile-progress__next span:first-child {
        color: var(--teal-700);
        font-size: 10px;
        font-weight: 700;
    }

    .cycle-mobile-progress {
        display: grid;
        grid-template-columns: repeat(9, minmax(0, 1fr));
        gap: 5px;
        margin: 10px 0 9px;
        direction: rtl;
    }

    .cycle-mobile-progress i {
        height: 5px;
        border-radius: 3px;
        background: #dce4e8;
    }

    .cycle-mobile-progress i.is-complete {
        background: #86d0c9;
    }

    .cycle-mobile-progress i.is-current {
        background: var(--teal-700);
        box-shadow: 0 0 0 2px #dff4f1;
    }

    .cycle-mobile-progress__next span:last-child {
        color: #40596a;
        font-size: 9.5px;
    }

    .cycle-stage-toggle {
        min-height: 44px;
        display: block;
        margin: 7px auto 0;
        padding: 7px 13px;
        border: 0;
        background: transparent;
        color: var(--teal-700);
        cursor: pointer;
        font-size: 10.5px;
        font-weight: 700;
    }

    .cycle-active-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 6px 19px 18px;
    }

    .cycle-active-facts > div:nth-child(4) {
        order: 3;
    }

    .cycle-active-facts > div:nth-child(3) {
        order: 4;
    }

    .cycle-active-facts > div {
        min-height: 72px;
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .cycle-active-facts > div:nth-child(2) {
        border-inline-end: 0;
    }

    .cycle-active-facts > div:nth-child(-n+2) {
        border-bottom: 1px solid #dbe5e9;
    }

    .cycle-active-facts .icon {
        width: 23px;
        height: 23px;
    }

    .cycle-active-facts dt {
        font-size: 9.5px;
    }

    .cycle-active-facts dd {
        font-size: 17px;
    }

    .cycles-workspace {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }

    .cycles-records-panel {
        min-height: 0;
    }

    .cycles-records-header {
        min-height: 59px;
        display: block;
        padding: 0;
    }

    .cycles-records-header h2 {
        display: none;
    }

    .cycles-tabs {
        width: 100%;
        min-height: 58px;
        align-items: stretch;
    }

    .cycles-tabs button {
        min-width: 0;
        min-height: 58px;
        flex: 1;
        padding-inline: 5px;
        border-inline-end: 1px solid #dce5e9;
        font-size: 10px;
    }

    .cycles-tabs button:last-child {
        border-inline-end: 0;
    }

    .cycles-search-row {
        display: none;
    }

    .cycle-records-table-wrap {
        display: none;
    }

    .cycle-records-mobile {
        display: block;
        padding: 9px;
    }

    .cycle-mobile-card {
        padding: 16px 14px 13px;
        border: 1px solid #d5e0e5;
        border-radius: 8px;
        background: #fff;
    }

    .cycle-mobile-card.is-selected {
        border-color: var(--teal-700);
        box-shadow: inset -2px 0 var(--teal-700);
    }

    .cycle-mobile-card + .cycle-mobile-card {
        margin-top: 9px;
    }

    .cycle-mobile-card > header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .cycle-mobile-card > header strong,
    .cycle-mobile-card > header bdi {
        display: block;
    }

    .cycle-mobile-card > header strong {
        color: var(--navy-900);
        font-size: 15px;
    }

    .cycle-mobile-card > header bdi {
        margin-top: 1px;
        color: #6b7e8c;
        font-family: Arial, sans-serif;
        font-size: 9.5px;
        direction: ltr;
    }

    .cycle-mobile-card dl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 15px;
        margin: 14px 0 0;
        padding: 12px 0;
        border-top: 1px solid #e1e9ec;
        border-bottom: 1px solid #e1e9ec;
    }

    .cycle-mobile-card dt,
    .cycle-mobile-card dd {
        margin: 0;
    }

    .cycle-mobile-card dt {
        color: #72838f;
        font-size: 8.5px;
    }

    .cycle-mobile-card dd {
        margin-top: 1px;
        color: #294356;
        font-size: 10px;
        font-weight: 600;
    }

    .cycle-mobile-card__sync {
        margin: 10px 0;
        font-size: 9.5px;
    }

    .cycle-mobile-card > button {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 8px 12px;
        border: 1px solid #0c6174;
        border-radius: 6px;
        background: #fff;
        color: #163c55;
        cursor: pointer;
        font-size: 10px;
        font-weight: 600;
    }

    .cycle-mobile-card > button .icon {
        width: 15px;
        height: 15px;
    }

    .cycles-pagination {
        min-height: 49px;
        padding-inline: 11px;
    }

    .cycles-pagination > span {
        display: none;
    }

    .cycles-pagination > div {
        width: 100%;
        justify-content: space-between;
    }

    .cycle-readiness-panel {
        padding: 17px 15px 16px;
    }

    .cycle-readiness-panel > header h2 {
        font-size: 16px;
    }

    .cycle-readiness-list {
        display: block;
        padding-block: 10px;
    }

    .cycle-readiness-list li {
        min-height: 38px;
        border-bottom: 1px solid #edf1f3;
    }

    .cycle-readiness-list li:last-child {
        border-bottom: 0;
    }

    .cycle-readiness-list strong,
    .cycle-readiness-list b {
        font-size: 10px;
    }

    .cycle-sync-summary h3 {
        font-size: 13px;
    }

    .cycle-sync-state,
    .cycle-sync-summary > p {
        font-size: 9.5px;
    }

    .cycle-sync-details-toggle {
        min-height: 44px;
        font-size: 10px;
    }

    .cycle-next-action {
        display: block;
        margin-top: 12px;
        padding-top: 12px;
        text-align: center;
    }

    .cycle-next-action > .icon,
    .cycle-next-action span,
    .cycle-next-action strong {
        display: none;
    }

    .cycle-next-action p {
        margin: 0;
        color: #70818c;
        font-size: 9.5px;
        line-height: 1.6;
    }

    .cycles-loading__active {
        height: 500px;
    }

    .cycles-loading__workspace {
        grid-template-columns: 1fr;
    }

    .cycles-loading__workspace > span {
        height: 280px;
    }

    .cycles-no-active {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cycles-no-active > div {
        min-width: calc(100% - 44px);
    }

    .cycles-no-active .admin-button {
        width: 100%;
    }

    .cycle-stages-dialog {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 82vh;
        transform: none;
        border-radius: 12px 12px 0 0;
    }
}

@media (max-width: 430px) {
    .cycles-heading__actions {
        grid-template-columns: 1.08fr .92fr;
    }

    .cycles-heading__actions .admin-button {
        font-size: 9.5px;
    }

    .cycle-active-card__header {
        padding-inline: 15px;
    }

    .cycle-active-card__identity h2 {
        font-size: 18px;
    }

    .cycle-active-card__status {
        min-width: 118px;
    }

    .cycle-stage-badge {
        font-size: 8.5px;
    }

    .cycle-lifecycle {
        padding-inline: 15px;
    }

    .cycle-mobile-progress__next {
        align-items: flex-start;
        flex-direction: column;
        gap: 1px;
    }

    .cycle-active-facts {
        margin-inline: 15px;
    }

    .cycle-active-facts > div {
        gap: 9px;
        padding-inline: 10px;
    }
}

/* Unified applicant registry */
.applicants-heading {
    margin-bottom: 14px;
}

.applicants-heading .admin-button {
    min-width: 132px;
}

.applicant-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #d6e0e6;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(9, 35, 54, .035);
}

.applicant-metric {
    position: relative;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 12px 20px;
    border: 0;
    border-inline-end: 1px solid #e2e9ed;
    background: #fff;
    color: #536a7b;
    cursor: pointer;
    text-align: right;
    transition: background-color .15s ease, color .15s ease;
}

.applicant-metric:last-child {
    border-inline-end: 0;
}

.applicant-metric:hover,
.applicant-metric.is-active {
    background: #f5fbfa;
    color: var(--navy-900);
}

.applicant-metric::after {
    position: absolute;
    inset-inline: 26px;
    bottom: 0;
    height: 2px;
    background: transparent;
    content: "";
}

.applicant-metric.is-active::after {
    background: var(--teal-700);
}

.applicant-metric__icon {
    width: 36px;
    height: 36px;
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 9px;
    background: #edf4f5;
    color: #486677;
}

.applicant-metric__icon.is-warning {
    background: #fff5e8;
    color: #ad6815;
}

.applicant-metric__icon .icon {
    width: 20px;
    height: 20px;
}

.applicant-metric small,
.applicant-metric strong {
    display: block;
}

.applicant-metric small {
    color: #718391;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.applicant-metric strong {
    margin-top: 1px;
    color: #102d42;
    font-size: 21px;
    line-height: 1.1;
}

.applicant-metrics.is-loading {
    min-height: 78px;
    padding: 18px;
    gap: 25px;
}

.applicant-metrics.is-loading > span {
    border-radius: 6px;
    background: #edf2f4;
    animation: applicant-pulse 1.1s ease-in-out infinite alternate;
}

.applicants-directory {
    min-width: 0;
}

.applicants-toolbar {
    display: grid;
    grid-template-columns: minmax(270px, 1.35fr) repeat(4, minmax(130px, .72fr)) auto;
    gap: 8px;
    padding-bottom: 12px;
}

.applicants-search,
.applicants-select,
.applicants-sort {
    min-width: 0;
    display: flex;
    align-items: center;
    border: 1px solid #ccd8df;
    border-radius: 7px;
    background: #fff;
    color: #80909d;
}

.applicants-search {
    min-height: 42px;
    gap: 9px;
    padding-inline: 12px;
}

.applicants-search:focus-within,
.applicants-select:focus-within,
.applicants-sort:focus-within {
    border-color: var(--teal-700);
    box-shadow: 0 0 0 3px rgba(8, 127, 120, .09);
}

.applicants-search > .icon {
    width: 18px;
    height: 18px;
}

.applicants-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: 0;
    font-family: inherit;
    font-size: 11px;
}

.applicants-search > button {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef3f5;
    color: #687d8b;
    cursor: pointer;
}

.applicants-search > button .icon {
    width: 13px;
    height: 13px;
}

.applicants-select {
    position: relative;
    min-height: 42px;
    padding-inline: 10px 7px;
}

.applicants-select select,
.applicants-sort select {
    min-width: 0;
    flex: 1;
    appearance: none;
    border: 0;
    background: transparent;
    color: #334c5e;
    outline: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
}

.applicants-select > .icon,
.applicants-sort > .icon {
    width: 13px;
    height: 13px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.applicants-reset {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #ccd8df;
    border-radius: 7px;
    background: #fff;
    color: var(--teal-700);
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.applicants-reset:disabled {
    color: #8798a3;
    cursor: default;
    opacity: .55;
}

.applicants-reset .icon {
    width: 15px;
}

.applicants-reset b {
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--teal-700);
    color: #fff;
    font-size: 8px;
}

.applicants-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 12px;
    direction: ltr;
}

.applicant-registry,
.applicant-inspector {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d6e0e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(9, 35, 54, .025);
    direction: rtl;
}

.applicant-registry {
    position: relative;
}

.applicant-registry__header {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 14px;
    border-bottom: 1px solid #e1e8ec;
}

.applicant-registry__header > div:first-child strong,
.applicant-registry__header > div:first-child span {
    display: block;
}

.applicant-registry__header > div:first-child strong {
    color: #183549;
    font-size: 11px;
}

.applicant-registry__header > div:first-child span {
    margin-top: 2px;
    color: #7a8c98;
    font-size: 8.5px;
}

.applicant-registry__header > div:last-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.applicants-sort {
    min-height: 34px;
    gap: 5px;
    padding-inline: 9px;
}

.applicants-sort > span {
    color: #7d8f9a;
    font-size: 8.5px;
}

.applicants-sort select {
    width: 85px;
    font-size: 9px;
}

.applicants-refresh {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d2dde2;
    border-radius: 7px;
    background: #fff;
    color: #526b7c;
    cursor: pointer;
}

.applicants-refresh:hover:not(:disabled) {
    border-color: #9fcfc9;
    color: var(--teal-700);
}

.applicants-refresh:disabled {
    opacity: .55;
}

.applicants-refresh .icon {
    width: 15px;
}

.applicant-table-wrap {
    overflow-x: auto;
}

.applicant-table {
    width: 100%;
    min-width: 790px;
    border-collapse: collapse;
    table-layout: auto;
}

.applicant-table th {
    height: 38px;
    padding: 8px 11px;
    border-bottom: 1px solid #dfe7eb;
    background: #f7f9fa;
    color: #71838f;
    font-size: 8px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.applicant-table th:first-child {
    padding-inline-start: 14px;
}

.applicant-table td {
    height: 70px;
    padding: 9px 11px;
    border-bottom: 1px solid #e7edef;
    color: #344e60;
    font-size: 9.5px;
    vertical-align: middle;
}

.applicant-table tbody tr {
    transition: background-color .12s ease, box-shadow .12s ease;
}

.applicant-table tbody tr:hover,
.applicant-table tbody tr.is-selected {
    background: #f5fbfa;
}

.applicant-table tbody tr.is-selected {
    box-shadow: inset -3px 0 var(--teal-700);
}

.applicant-table tbody tr:last-child td {
    border-bottom: 0;
}

.applicant-identity {
    min-width: 176px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
}

.applicant-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #cbe1df;
    border-radius: 50%;
    background: #e8f5f3;
    color: #08766f;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.applicant-avatar--large {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 12px;
}

.applicant-identity strong,
.applicant-identity small {
    display: block;
}

.applicant-identity strong {
    color: #173449;
    font-size: 10px;
    white-space: nowrap;
}

.applicant-identity small {
    margin-top: 3px;
    color: #84939d;
    font-size: 8px;
}

.applicant-alert {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    margin-inline-start: auto;
    border-radius: 50%;
    background: #fff3e4;
    color: #b06c18;
}

.applicant-alert .icon {
    width: 12px;
    height: 12px;
}

.applicant-national {
    color: #3f596b;
    font-size: 9px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.applicant-cell-title,
.applicant-cell-subtitle {
    display: block;
}

.applicant-cell-title {
    color: #294458;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.applicant-cell-subtitle {
    max-width: 145px;
    margin-top: 3px;
    overflow: hidden;
    color: #83929c;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.applicant-count {
    min-width: 28px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    padding-inline: 7px;
    border-radius: 13px;
    background: #edf3f5;
    color: #294b60;
    font-size: 9px;
    font-weight: 800;
}

.applicant-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #506a7b;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.applicant-status > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #477990;
}

.applicant-status.is-warning { color: #9b5d10; }
.applicant-status.is-warning > i { background: #c67c1b; }
.applicant-status.is-success { color: #08736d; }
.applicant-status.is-success > i { background: #119186; }
.applicant-status.is-danger { color: #ad342c; }
.applicant-status.is-danger > i { background: #c8483e; }

.applicant-table .row-action {
    width: 28px;
    height: 28px;
    border-color: #d6e0e5;
    color: #5b7281;
}

.applicant-table .row-action .icon {
    width: 13px;
}

.applicant-mobile-list {
    display: none;
}

.applicant-pagination {
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 14px;
    border-top: 1px solid #e1e8ec;
    color: #758995;
    font-size: 8.5px;
}

.applicant-pagination > div {
    display: flex;
    gap: 4px;
    direction: rtl;
}

.applicant-pagination button {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d4dfe4;
    border-radius: 6px;
    background: #fff;
    color: #526b7b;
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
}

.applicant-pagination button.is-active {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
}

.applicant-pagination button:disabled {
    cursor: default;
    opacity: .45;
}

.applicant-pagination button .icon {
    width: 12px;
}

.applicant-pagination button.is-next .icon {
    transform: rotate(180deg);
}

.applicants-loading,
.applicants-empty {
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 38px 20px;
    text-align: center;
}

.applicants-loading {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
}

.applicants-loading > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-700);
    animation: applicant-pulse .7s ease-in-out infinite alternate;
}

.applicants-loading > span:nth-child(2) { animation-delay: .15s; }
.applicants-loading > span:nth-child(3) { animation-delay: .3s; }

.applicants-loading p {
    width: 100%;
    margin: 4px 0 0;
    color: #758894;
    font-size: 10px;
}

.applicants-empty > .icon {
    width: 31px;
    height: 31px;
    color: #6a818f;
}

.applicants-empty h2 {
    margin: 13px 0 5px;
    color: #18364a;
    font-size: 14px;
}

.applicants-empty p {
    max-width: 330px;
    margin: 0 0 16px;
    color: #758894;
    font-size: 9px;
    line-height: 1.8;
}

.applicants-loading-overlay {
    position: absolute;
    inset: 56px 0 53px;
    z-index: 3;
    display: grid;
    place-items: start center;
    padding-top: 16px;
    background: rgba(255, 255, 255, .72);
    pointer-events: none;
}

.applicants-loading-overlay span {
    padding: 7px 12px;
    border: 1px solid #cfe1df;
    border-radius: 15px;
    background: #fff;
    color: var(--teal-700);
    font-size: 9px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(9, 45, 60, .08);
}

.applicant-inspector {
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd9df transparent;
}

.applicant-inspector__handle {
    display: none;
}

.applicant-inspector__header {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #e1e8ec;
}

.applicant-inspector__header > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #213f52;
    font-size: 10px;
    font-weight: 800;
}

.applicant-inspector__header > div .icon {
    width: 17px;
    height: 17px;
    color: var(--teal-700);
}

.applicant-inspector__header > button {
    display: none;
}

.applicant-inspector__empty {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px;
    color: #7b8d98;
    text-align: center;
}

.applicant-inspector__empty > .icon {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
}

.applicant-inspector__empty strong {
    color: #29485b;
    font-size: 11px;
}

.applicant-inspector__empty p {
    margin: 5px 0 0;
    font-size: 9px;
    line-height: 1.8;
}

.applicant-inspector__content {
    padding: 15px;
}

.applicant-profile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
}

.applicant-profile-head > div strong,
.applicant-profile-head > div bdi {
    display: block;
}

.applicant-profile-head > div strong {
    overflow: hidden;
    color: #17364a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.applicant-profile-head > div bdi {
    margin-top: 3px;
    color: #7c8e99;
    font-size: 8.5px;
}

.archive-state {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 5px;
    margin-top: 2px;
    padding: 4px 8px;
    border-radius: 12px;
    background: #eef3f5;
    color: #617886;
    font-size: 8px;
    font-weight: 700;
}

.archive-state > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8497a2;
}

.archive-state.is-found {
    background: #e9f7f4;
    color: #08756e;
}

.archive-state.is-found > i { background: #159286; }
.archive-state.is-loading > i { animation: applicant-pulse .7s infinite alternate; }
.archive-state.is-error { background: #fff0ee; color: #ac3830; }
.archive-state.is-error > i { background: #c54840; }

.applicant-identity-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 13px;
    padding: 9px 10px;
    border: 1px solid #efd3ad;
    border-radius: 7px;
    background: #fff8ed;
    color: #8f5b1d;
}

.applicant-identity-warning > .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin-top: 1px;
}

.applicant-identity-warning strong,
.applicant-identity-warning small {
    display: block;
}

.applicant-identity-warning strong { font-size: 8.5px; }
.applicant-identity-warning small { margin-top: 2px; font-size: 7.5px; line-height: 1.7; }

.applicant-profile-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid #e0e7eb;
    border-radius: 7px;
}

.applicant-profile-facts > div {
    min-width: 0;
    padding: 9px 10px;
    border-bottom: 1px solid #e8edef;
    border-inline-end: 1px solid #e8edef;
}

.applicant-profile-facts > div:nth-child(2n) { border-inline-end: 0; }
.applicant-profile-facts > div:nth-last-child(-n+2) { border-bottom: 0; }

.applicant-profile-facts dt {
    color: #81919b;
    font-size: 7.5px;
}

.applicant-profile-facts dd {
    margin: 3px 0 0;
    overflow: hidden;
    color: #2c4859;
    font-size: 8.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.applicant-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
    border: 1px solid #e0e7eb;
    border-radius: 7px;
    background: #f8fafb;
}

.applicant-summary-strip > span {
    min-width: 0;
    padding: 9px 7px;
    border-inline-end: 1px solid #e3e9ec;
    text-align: center;
}

.applicant-summary-strip > span:last-child { border-inline-end: 0; }
.applicant-summary-strip small,
.applicant-summary-strip strong { display: block; }
.applicant-summary-strip small { color: #82919b; font-size: 7px; }
.applicant-summary-strip strong { margin-top: 2px; overflow: hidden; color: #244355; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.applicant-history {
    margin-top: 15px;
}

.applicant-history > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.applicant-history > header > div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #29475a;
    font-size: 9.5px;
    font-weight: 800;
}

.applicant-history > header .icon { width: 15px; height: 15px; color: var(--teal-700); }
.applicant-history > header > small { color: #8a99a2; font-size: 7.5px; }

.applicant-timeline {
    margin: 0;
    padding: 0 7px 0 0;
    list-style: none;
}

.applicant-timeline li {
    position: relative;
    min-height: 58px;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 8px;
    padding-bottom: 10px;
}

.applicant-timeline li::before {
    position: absolute;
    top: 12px;
    right: 5px;
    bottom: -1px;
    width: 1px;
    background: #dbe5e8;
    content: "";
}

.applicant-timeline li:last-child::before { display: none; }

.applicant-timeline li > i {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #5c8497;
    box-shadow: 0 0 0 1px #94acb8;
}

.applicant-timeline li.is-success > i { background: #159186; box-shadow: 0 0 0 1px #6fbbb5; }
.applicant-timeline li.is-warning > i { background: #c27a1c; box-shadow: 0 0 0 1px #d6ac74; }
.applicant-timeline li.is-danger > i { background: #c54840; box-shadow: 0 0 0 1px #dc8e89; }

.applicant-timeline strong,
.applicant-timeline span,
.applicant-timeline small { display: block; }
.applicant-timeline strong { color: #274557; font-size: 8.5px; }
.applicant-timeline span { margin-top: 2px; color: #607887; font-size: 7.5px; }
.applicant-timeline small { margin-top: 2px; color: #87969f; font-size: 7px; }

.applicant-timeline em {
    align-self: start;
    padding: 3px 6px;
    border-radius: 9px;
    background: #eef3f5;
    color: #617987;
    font-size: 6.5px;
    font-style: normal;
    font-weight: 700;
}

.applicant-history-loading,
.applicant-history-empty {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    border: 1px dashed #d4e0e5;
    border-radius: 7px;
    color: #7e909a;
    font-size: 8px;
}

.applicant-history-loading > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-700);
    animation: applicant-pulse .7s infinite alternate;
}

.applicant-history-loading p { margin: 0; }
.applicant-history-note { display: block; margin-top: 3px; color: #87969f; font-size: 7px; }

.applicant-archive-error,
.applicant-archive-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 8px 9px;
    border: 1px solid #dbe5e9;
    border-radius: 7px;
    background: #f7fafb;
    color: #617987;
    font-size: 7.5px;
}

.applicant-archive-error {
    border-color: #edc2be;
    background: #fff4f2;
    color: #a93c34;
}

.applicant-archive-error .icon,
.applicant-archive-note .icon { width: 14px; height: 14px; flex: 0 0 14px; }
.applicant-archive-error span,
.applicant-archive-note span { flex: 1; }
.applicant-archive-error button { border: 0; background: transparent; color: inherit; cursor: pointer; font-family: inherit; font-size: 7.5px; font-weight: 800; }

.applicant-inspector-actions {
    display: block;
    margin-top: 13px;
}

.applicant-inspector-actions .admin-button {
    width: 100%;
    min-height: 38px;
    padding-inline: 8px;
    font-size: 8.5px;
}

.applicant-inspector-actions .icon { width: 14px; height: 14px; }

.applicant-privacy {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 11px 0 0;
    color: #87969f;
    font-size: 6.8px;
    line-height: 1.7;
}

.applicant-privacy .icon { width: 12px; height: 12px; flex: 0 0 12px; margin-top: 1px; }
.applicant-inspector-backdrop { display: none; }

@keyframes applicant-pulse {
    from { opacity: .45; }
    to { opacity: 1; }
}

@media (max-width: 1320px) {
    .applicants-toolbar {
        grid-template-columns: minmax(250px, 1.25fr) repeat(2, minmax(135px, .7fr)) auto;
    }

    .applicants-toolbar .applicants-select:nth-of-type(4),
    .applicants-toolbar .applicants-select:nth-of-type(5) {
        grid-row: 2;
    }

    .applicants-toolbar .applicants-select:nth-of-type(4) { grid-column: 2; }
    .applicants-toolbar .applicants-select:nth-of-type(5) { grid-column: 3; }
}

@media (max-width: 1100px) {
    .applicants-layout {
        display: block;
    }

    .applicant-inspector {
        position: fixed;
        top: 0;
        right: auto;
        bottom: 0;
        left: 0;
        z-index: 120;
        width: min(390px, 94vw);
        max-height: none;
        border-radius: 0 10px 10px 0;
        box-shadow: 16px 0 44px rgba(4, 25, 39, .2);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .applicant-inspector.is-mobile-open {
        transform: translateX(0);
    }

    .applicant-inspector__header > button {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #edf3f5;
        color: #536d7d;
        cursor: pointer;
    }

    .applicant-inspector__header > button .icon { width: 14px; height: 14px; }

    .applicant-inspector-backdrop {
        position: fixed;
        inset: 0;
        z-index: 119;
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
        background: rgba(5, 26, 38, .42);
        cursor: pointer;
    }
}

@media (max-width: 820px) {
    .applicant-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .applicant-metric:nth-child(2) { border-inline-end: 0; }
    .applicant-metric:nth-child(-n+2) { border-bottom: 1px solid #e2e9ed; }

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

    .applicants-search {
        grid-column: 1 / -1;
    }

    .applicants-toolbar .applicants-select:nth-of-type(4),
    .applicants-toolbar .applicants-select:nth-of-type(5) {
        grid-row: auto;
        grid-column: auto;
    }

    .applicants-reset {
        grid-column: 1 / -1;
    }

    .applicant-table-wrap { display: none; }
    .applicant-mobile-list { display: block; }

    .applicant-mobile-card {
        width: 100%;
        min-height: 76px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 10px;
        padding: 11px 13px;
        border: 0;
        border-bottom: 1px solid #e5ecef;
        background: #fff;
        color: #294557;
        cursor: pointer;
        font-family: inherit;
        text-align: right;
    }

    .applicant-mobile-card:hover,
    .applicant-mobile-card.is-selected {
        background: #f4faf9;
    }

    .applicant-mobile-card.is-selected { box-shadow: inset -3px 0 var(--teal-700); }

    .applicant-mobile-card__identity strong,
    .applicant-mobile-card__identity small,
    .applicant-mobile-card__meta small { display: block; }

    .applicant-mobile-card__identity strong { font-size: 10.5px; }
    .applicant-mobile-card__identity small { margin-top: 3px; color: #7e909b; font-size: 8px; }
    .applicant-mobile-card__meta { text-align: left; }
    .applicant-mobile-card__meta small { margin-top: 4px; color: #84939d; font-size: 7.5px; }
    .applicant-mobile-card > .icon { width: 14px; height: 14px; transform: rotate(180deg); color: #718591; }
}

@media (max-width: 540px) {
    .applicants-heading {
        align-items: stretch;
    }

    .applicants-heading .admin-button {
        width: 100%;
    }

    .applicant-metric {
        min-height: 70px;
        justify-content: flex-start;
        padding-inline: 13px;
    }

    .applicant-metric__icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .applicant-metric strong { font-size: 18px; }
    .applicant-metric small { font-size: 8.5px; }

    .applicants-toolbar {
        grid-template-columns: 1fr;
    }

    .applicants-search,
    .applicants-reset {
        grid-column: auto;
    }

    .applicant-registry__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .applicant-registry__header > div:last-child,
    .applicants-sort { width: 100%; }

    .applicants-sort select { width: auto; }
    .applicant-mobile-card { grid-template-columns: auto minmax(0, 1fr) auto; }
    .applicant-mobile-card__meta { grid-column: 2; text-align: right; }
    .applicant-mobile-card > .icon { grid-column: 3; grid-row: 1 / span 2; }

    .applicant-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .applicant-inspector {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 88vh;
        border-radius: 12px 12px 0 0;
        transform: translateY(105%);
    }

    .applicant-inspector.is-mobile-open { transform: translateY(0); }
    .applicant-inspector__handle { width: 38px; height: 4px; display: block; margin: 8px auto 0; border-radius: 3px; background: #c8d5da; }
    .applicant-inspector__header { padding-top: 5px; }
    .applicant-inspector__content { padding-bottom: 24px; }
}

/* 2026 results and content workspaces */
.management-heading__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-overview,
.content-summary {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #dce4e7;
    border-radius: 7px;
    background: #fff;
}

.results-overview article {
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 19px;
    border-inline-end: 1px solid #e2e8ea;
}

.results-overview article:last-child,
.content-summary article:last-child { border-inline-end: 0; }
.results-overview article > span,
.content-summary small { color: #71838d; font-size: 8.5px; font-weight: 700; }
.results-overview article > strong { margin: 2px 0; color: #092c3d; font: 700 23px/1.3 "Noto Kufi Arabic", sans-serif; }
.results-overview article > small { color: #87969e; font-size: 7.5px; }
.results-overview .results-cycle-card { border-top: 3px solid #c6a45e; background: #0b2d3e; }
.results-overview .results-cycle-card > span { color: #d6c28d; }
.results-overview .results-cycle-card > strong { color: #fff; font-size: 15px; }
.results-overview .results-cycle-card > small { color: #b8c8cf; }

.results-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(285px, .65fr);
    align-items: start;
    gap: 14px;
}

.results-registry,
.result-release-inspector,
.content-filters,
.content-registry,
.content-inspector { border-radius: 7px; box-shadow: none; }
.results-registry > header,
.content-registry > header { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; border-bottom: 1px solid #e2e8ea; }
.results-registry > header h2,
.content-registry > header h2 { margin: 0 0 2px; color: #092c3d; font-size: 12px; }
.results-registry > header p,
.content-registry > header p { margin: 0; color: #788b95; font-size: 8px; }
.results-registry > header > span,
.content-registry > header > span { padding: 3px 8px; border-radius: 999px; background: #edf6f4; color: #08756c; font-size: 8px; font-weight: 700; }
.results-empty { min-height: 330px; display: grid; justify-items: center; align-content: center; padding: 35px; text-align: center; }
.results-empty > .icon { width: 34px; height: 34px; margin-bottom: 12px; color: #08756c; }
.results-empty h3 { margin: 0 0 6px; color: #092c3d; font-size: 13px; }
.results-empty p { max-width: 480px; margin: 0 0 17px; color: #73858f; font-size: 9px; line-height: 1.8; }
.results-table-wrap,
.content-table-wrap { overflow-x: auto; }
.results-table-wrap,
.content-table-wrap {
    max-width: 100%;
    direction: rtl;
    contain: inline-size layout paint;
}
.results-table,
.content-table { direction: rtl; }
.results-table,
.content-table { width: 100%; border-collapse: collapse; }
.results-table th,
.content-table th { height: 36px; padding: 7px 11px; border-bottom: 1px solid #dce4e7; background: #f6f8f9; color: #647985; font-size: 7.5px; font-weight: 700; text-align: right; white-space: nowrap; }
.results-table td,
.content-table td { min-height: 53px; padding: 10px 11px; border-bottom: 1px solid #e6ecee; color: #344f5e; font-size: 8.5px; }
.results-table tbody tr:hover,
.content-table tbody tr:hover { background: #fafcfc; }
.results-table tbody tr.is-selected,
.content-table tbody tr.is-selected { background: #edf7f5; box-shadow: inset -3px 0 #08756c; }
.results-table td strong,
.results-table td small,
.content-table td strong,
.content-table td small { display: block; }
.results-table td strong,
.content-table td strong { color: #092c3d; font-size: 9px; }
.results-table td small,
.content-table td small { margin-top: 2px; color: #80919a; font-size: 7px; }
.results-table .row-action,
.content-table .row-action { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d6e0e4; border-radius: 5px; background: #fff; color: #08756c; cursor: pointer; }
.results-table .row-action .icon,
.content-table .row-action .icon { width: 13px; height: 13px; }
.result-release-inspector,
.content-inspector { position: sticky; top: 82px; min-height: 392px; overflow: hidden; }
.result-release-inspector__placeholder,
.content-inspector__placeholder { min-height: 390px; display: grid; justify-items: center; align-content: center; padding: 25px; text-align: center; }
.result-release-inspector__placeholder > .icon,
.content-inspector__placeholder > .icon { width: 30px; height: 30px; margin-bottom: 10px; color: #95a5ad; }
.result-release-inspector__placeholder h2,
.content-inspector__placeholder h2 { margin: 0 0 4px; color: #092c3d; font-size: 12px; }
.result-release-inspector__placeholder p,
.content-inspector__placeholder p { margin: 0; color: #7c8d96; font-size: 8.5px; }
.result-release-inspector > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 17px; border-bottom: 1px solid #e2e8ea; }
.result-release-inspector > header > div > span,
.content-inspector > header > span { color: #08756c; font-size: 7.5px; font-weight: 700; }
.result-release-inspector > header h2,
.content-inspector > header h2 { margin: 3px 0 0; color: #092c3d; font-size: 14px; }
.result-release-inspector dl,
.content-inspector dl { margin: 0; padding: 9px 17px; }
.result-release-inspector dl div,
.content-inspector dl div { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #edf1f2; }
.result-release-inspector dt,
.content-inspector dt { color: #7b8d97; font-size: 7.5px; }
.result-release-inspector dd,
.content-inspector dd { max-width: 65%; margin: 0; overflow-wrap: anywhere; color: #183b4c; font-size: 8px; font-weight: 700; text-align: left; }
.result-release-inspector > section { padding: 13px 17px; border-top: 1px solid #e2e8ea; }
.result-release-inspector > section h3 { margin: 0 0 9px; color: #092c3d; font-size: 9px; }
.result-outcomes { display: grid; gap: 6px; }
.result-outcomes span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; color: #556d79; font-size: 8px; }
.result-outcomes i { width: 6px; height: 6px; border-radius: 50%; background: #87969e; }
.result-outcomes i.is-success { background: #08756c; }
.result-outcomes i.is-warning { background: #c1811f; }
.result-outcomes i.is-danger { background: #b74444; }
.result-outcomes strong { color: #092c3d; }
.result-correction-note,
.result-release-inspector > footer,
.content-inspector > footer { display: flex; align-items: start; gap: 8px; margin: 12px 17px; padding: 10px; background: #f3f6f7; }
.result-correction-note > .icon,
.result-release-inspector > footer > .icon,
.content-inspector > footer > .icon { width: 15px; height: 15px; flex: 0 0 15px; color: #08756c; }
.result-correction-note p,
.result-correction-note strong,
.result-correction-note span { margin: 0; }
.result-correction-note strong,
.result-correction-note span { display: block; }
.result-correction-note strong { color: #092c3d; font-size: 8px; }
.result-correction-note span,
.result-release-inspector > footer p,
.content-inspector > footer p { margin: 0; color: #748791; font-size: 7.5px; }

.content-summary article {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border-inline-end: 1px solid #e2e8ea;
}
.content-summary article:first-child { border-top: 3px solid #c6a45e; }
.content-summary article > .icon { width: 24px; height: 24px; color: #08756c; }
.content-summary small,
.content-summary strong { display: block; }
.content-summary strong { margin-top: 1px; color: #092c3d; font: 700 18px "Noto Kufi Arabic", sans-serif; }
.content-workspace { display: grid; grid-template-columns: 210px minmax(430px, 1fr) 285px; align-items: start; gap: 12px; }
.content-filters { padding: 14px; }
.content-filters > header { display: flex; align-items: start; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #e2e8ea; }
.content-filters > header > .icon { width: 17px; height: 17px; color: #08756c; }
.content-filters h2 { margin: 0; color: #092c3d; font-size: 10px; }
.content-filters header p { margin: 1px 0 0; color: #83929a; font-size: 7px; }
.content-filters > label { display: block; margin-top: 12px; }
.content-filters > label > span { display: block; margin-bottom: 4px; color: #526b78; font-size: 7.5px; font-weight: 700; }
.content-filters label > div { position: relative; }
.content-filters label > div > .icon { position: absolute; top: 50%; right: 9px; width: 13px; height: 13px; color: #718690; transform: translateY(-50%); pointer-events: none; }
.content-filters input,
.content-filters select { width: 100%; height: 34px; padding: 6px 9px; border: 1px solid #d7e0e4; border-radius: 5px; background: #fff; color: #183b4c; font-size: 8px; }
.content-filters input { padding-right: 29px; }
.filter-reset { width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; border: 1px solid #cdd9dd; border-radius: 5px; background: #fff; color: #315260; cursor: pointer; font-size: 8px; font-weight: 700; }
.filter-reset:disabled { cursor: default; opacity: .45; }
.filter-reset .icon { width: 13px; }
.content-filters > footer { display: flex; align-items: start; gap: 7px; margin-top: 14px; padding: 10px; background: #f6f8f9; }
.content-filters > footer .icon { width: 14px; height: 14px; flex: 0 0 14px; color: #08756c; }
.content-filters > footer p { margin: 0; color: #748791; font-size: 6.8px; line-height: 1.7; }
.content-loading,
.content-no-results { min-height: 260px; display: grid; justify-items: center; align-content: center; gap: 8px; color: #7b8e98; font-size: 8px; }
.content-loading > span { width: 23px; height: 23px; border: 2px solid #d9e4e6; border-top-color: #08756c; border-radius: 50%; animation: admin-spin .8s linear infinite; }
.content-no-results > .icon { width: 26px; color: #91a2aa; }
.content-no-results p { margin: 0; }
.content-no-results button { border: 0; background: transparent; color: #08756c; cursor: pointer; font-size: 8px; font-weight: 700; }
.content-inspector > header { padding: 17px; border-bottom: 1px solid #e2e8ea; }
.content-inspector > header bdi { display: block; margin-top: 5px; color: #82929a; font-size: 7px; }
.content-inspector__body { min-height: 85px; padding: 14px 17px; border-bottom: 1px solid #e2e8ea; }
.content-inspector__body p { margin: 0; color: #4f6875; font-size: 8.5px; line-height: 1.8; }

@media (max-width: 1180px) {
    .content-workspace { grid-template-columns: 200px minmax(0, 1fr); }
    .content-inspector { position: static; grid-column: 1 / -1; min-height: 0; }
    .content-inspector__placeholder { min-height: 150px; }
}

@media (max-width: 860px) {
    .results-overview,
    .content-summary { grid-template-columns: 1fr 1fr; }
    .results-overview article:nth-child(2),
    .content-summary article:nth-child(2) { border-inline-end: 0; }
    .results-overview article:nth-child(-n + 2),
    .content-summary article:nth-child(-n + 2) { border-bottom: 1px solid #e2e8ea; }
    .results-workspace { grid-template-columns: 1fr; }
    .result-release-inspector { position: static; min-height: 0; }
    .result-release-inspector__placeholder { min-height: 160px; }
    .content-workspace { grid-template-columns: 1fr; }
    .content-inspector { grid-column: auto; }
    .content-filters { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 9px; }
    .content-filters > header,
    .content-filters > footer { grid-column: 1 / -1; }
    .filter-reset { align-self: end; }
}

@media (max-width: 560px) {
    .management-heading__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .management-heading__actions .admin-button { width: 100%; }
    .results-overview,
    .content-summary { grid-template-columns: 1fr; }
    .results-overview article,
    .content-summary article { min-height: 66px; border-bottom: 1px solid #e2e8ea; border-inline-end: 0; }
    .results-overview article:last-child,
    .content-summary article:last-child { border-bottom: 0; }
    .content-filters { display: block; }
    .results-table,
    .content-table { min-width: 650px; }
}

.content-workspace,
.content-workspace > *,
.content-registry,
.content-table-wrap,
.results-workspace,
.results-workspace > *,
.results-registry,
.results-table-wrap {
    min-width: 0;
}

/* Durable content editor */
.content-notice {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 9px 13px;
    border: 1px solid #b9ddd7;
    border-inline-start: 3px solid #08756c;
    border-radius: 5px;
    background: #f0f8f6;
    color: #18574f;
    font-size: 8.5px;
    font-weight: 700;
}

.content-notice > .icon { width: 16px; height: 16px; }
.content-notice > span { flex: 1; }
.content-notice > button {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #55756f;
    cursor: pointer;
}
.content-notice > button .icon { width: 13px; height: 13px; }

.content-inspector__actions {
    display: grid;
    gap: 7px;
    padding: 13px 17px 2px;
}

.content-inspector__actions .admin-button {
    width: 100%;
    min-height: 34px;
}

.content-editor-backdrop {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 22, 35, .56);
    backdrop-filter: blur(3px);
}

.content-editor {
    width: min(100%, 900px);
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #cfdadd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(4, 29, 44, .24);
}

.content-editor > header {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 15px 20px;
    border-bottom: 1px solid #dfe7e9;
}

.content-editor > header span {
    color: #08756c;
    font-size: 7.5px;
    font-weight: 700;
}

.content-editor > header h2 {
    margin: 3px 0 2px;
    color: #092c3d;
    font: 700 15px "Noto Kufi Arabic", sans-serif;
}

.content-editor > header p {
    margin: 0;
    color: #768993;
    font-size: 8px;
}

.content-editor > header > button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d8e1e4;
    border-radius: 5px;
    background: #fff;
    color: #506976;
    cursor: pointer;
}

.content-editor > header > button:disabled { cursor: default; opacity: .55; }
.content-editor > header > button .icon { width: 14px; height: 14px; }

.content-editor__body {
    min-height: 0;
    overflow-y: auto;
    padding: 17px 20px 20px;
}

.content-editor__error {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #e8c7c7;
    border-inline-start: 3px solid #b74444;
    background: #fff7f7;
    color: #8f3434;
    font-size: 8px;
    font-weight: 700;
}

.content-editor__error .icon { width: 16px; height: 16px; flex: 0 0 16px; }

.content-editor__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: start;
    gap: 20px;
}

.content-editor__main,
.content-editor__settings {
    min-width: 0;
    display: grid;
    gap: 13px;
}

.content-editor__settings {
    padding: 15px;
    border: 1px solid #dfe7e9;
    background: #f8fafb;
}

.content-editor label > span,
.content-editor__state > span {
    display: block;
    margin-bottom: 5px;
    color: #3f5a68;
    font-size: 7.5px;
    font-weight: 700;
}

.content-editor input[type="text"],
.content-editor input[type="date"],
.content-editor textarea,
.content-editor select {
    width: 100%;
    border: 1px solid #cfdadd;
    border-radius: 5px;
    background: #fff;
    color: #173948;
    font: 400 8.5px "Noto Naskh Arabic", sans-serif;
    outline: none;
}

.content-editor input[type="text"],
.content-editor input[type="date"],
.content-editor select {
    height: 37px;
    padding: 6px 10px;
}

.content-editor textarea {
    display: block;
    min-height: 76px;
    padding: 9px 10px;
    resize: vertical;
    line-height: 1.7;
}

.content-editor textarea.content-editor__body-input { min-height: 205px; }
.content-editor input:focus,
.content-editor textarea:focus,
.content-editor select:focus {
    border-color: #16897f;
    box-shadow: 0 0 0 3px rgba(8, 117, 108, .08);
}

.content-editor input[readonly] {
    background: #eef2f3;
    color: #687d87;
    cursor: not-allowed;
}

.content-editor label > small {
    display: block;
    margin-top: 4px;
    color: #81919a;
    font-size: 7px;
    line-height: 1.6;
}

.content-editor__main label > small { text-align: left; }

.content-editor__slug {
    direction: ltr;
    display: flex;
    align-items: stretch;
}

.content-editor__slug > bdi {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #cfdadd;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    background: #eef2f3;
    color: #72848d;
    font-size: 7px;
}

.content-editor__slug input {
    min-width: 0;
    border-radius: 0 5px 5px 0 !important;
    text-align: left;
}

.content-editor__check {
    display: flex;
    align-items: start;
    gap: 9px;
    padding: 10px;
    border: 1px solid #dce5e7;
    background: #fff;
    cursor: pointer;
}

.content-editor__check input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: #08756c;
}

.content-editor__check span { margin: 0 !important; }
.content-editor__check strong,
.content-editor__check small { display: block; }
.content-editor__check strong { color: #183b4c; font-size: 8px; }
.content-editor__check small { margin-top: 2px; color: #7b8e98; font-size: 6.8px; font-weight: 400; line-height: 1.55; }

.content-editor__state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 11px;
    border-top: 1px solid #dce5e7;
}

.content-editor__state > span { margin: 0; }
.content-editor__state strong {
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff3dc;
    color: #9b681d;
    font-size: 7px;
}
.content-editor__state strong.is-published { background: #e8f5f2; color: #08756c; }

.content-editor__confirm {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 13px;
    border: 1px solid #ecd39e;
    background: #fffaf0;
}

.content-editor__confirm > .icon { width: 18px; height: 18px; color: #b1781f; }
.content-editor__confirm strong { display: block; color: #71470d; font-size: 8px; }
.content-editor__confirm p { margin: 2px 0 0; color: #8f733f; font-size: 7px; }
.content-editor__confirm button {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #d8bd86;
    border-radius: 4px;
    background: #fff;
    color: #805414;
    cursor: pointer;
    font-size: 7px;
    font-weight: 700;
}
.content-editor__confirm button:first-of-type { border-color: #ad6f1a; background: #ad6f1a; color: #fff; }

.content-editor > footer {
    min-height: 61px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 11px 20px;
    border-top: 1px solid #dfe7e9;
    background: #fbfcfc;
}

.content-editor > footer .admin-button { min-width: 112px; }
.content-editor > footer .admin-button.is-danger { border-color: #d8aaaa; color: #a13d3d; }

@media (max-width: 760px) {
    .content-editor-backdrop { place-items: start center; padding: 10px; }
    .content-editor { max-height: calc(100vh - 20px); }
    .content-editor > header { min-height: 76px; padding: 12px 14px; }
    .content-editor > header h2 { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
    .content-editor__body { padding: 13px; }
    .content-editor__grid { grid-template-columns: 1fr; gap: 14px; }
    .content-editor__settings { padding: 12px; }
    .content-editor__confirm { grid-template-columns: auto 1fr; }
    .content-editor__confirm button { grid-column: span 1; }
    .content-editor > footer { flex-wrap: wrap; padding: 10px 13px; }
    .content-editor > footer .admin-button { min-width: 0; flex: 1 1 110px; }
}

/* ExamSys-aligned employee authentication surface */
.auth-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    padding: clamp(28px, 5vh, 58px) clamp(20px, 5vw, 72px) 32px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 87% 14%, rgba(18, 59, 90, .10), transparent 27%),
        radial-gradient(circle at 8% 88%, rgba(11, 145, 136, .08), transparent 24%),
        var(--canvas);
}

.auth-ambient {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    will-change: transform;
    pointer-events: none;
}

.auth-ambient--navy {
    width: 330px;
    height: 330px;
    inset-block-start: -180px;
    inset-inline-end: -100px;
    background: rgba(18, 59, 90, .055);
    animation: auth-ambient-navy-drift 14s ease-in-out infinite;
}

.auth-ambient--teal {
    width: 260px;
    height: 260px;
    inset-block-end: -150px;
    inset-inline-start: -80px;
    background: rgba(11, 145, 136, .045);
    animation: auth-ambient-teal-drift 17s ease-in-out infinite;
}

.auth-page .auth-shell {
    width: min(1040px, 100%);
    min-height: min(610px, calc(100vh - 118px));
    display: grid;
    grid-template-columns: minmax(390px, 42%) minmax(440px, 58%);
    grid-template-areas: "form brand";
    direction: ltr;
    overflow: hidden;
    border: 1px solid #d9e4ea;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 29, 47, .16), 0 3px 12px rgba(7, 29, 47, .06);
    animation: auth-shell-enter .32s cubic-bezier(.2, .8, .2, 1) backwards;
}

.auth-page .auth-brand-panel {
    position: relative;
    grid-area: brand;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 54px clamp(42px, 5vw, 72px) 38px;
    overflow: hidden;
    direction: rtl;
    color: #fff;
    background:
        radial-gradient(circle at 15% 92%, rgba(34, 182, 170, .12) 0 18%, transparent 18.2%),
        linear-gradient(142deg, var(--navy-950), var(--navy-900) 62%, var(--navy-800));
}

.auth-page .auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: -28px;
    opacity: .055;
    background-image:
        linear-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .7) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
    will-change: transform;
    animation: auth-grid-drift 22s linear infinite;
}

.auth-page .auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    inset-inline-start: -245px;
    inset-block-end: -250px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(255, 255, 255, .025), 0 0 0 96px rgba(255, 255, 255, .018);
    transform-origin: center;
    will-change: transform, opacity;
    animation: auth-rings-drift 11s cubic-bezier(.45, 0, .55, 1) infinite;
}

.auth-brand-identity {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: auth-item-enter .28s cubic-bezier(.2, .8, .2, 1) .035s backwards;
}

.auth-logo-medallion {
    position: relative;
    isolation: isolate;
    width: 174px;
    height: 174px;
    display: grid;
    place-items: center;
    margin: 0 auto 26px;
    padding: 25px;
    border: 10px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 13px 35px rgba(3, 20, 34, .24), inset 0 0 0 1px rgba(8, 127, 120, .11);
    overflow: hidden;
    will-change: transform;
    animation: auth-logo-float 6s cubic-bezier(.45, 0, .55, 1) infinite;
}

.auth-logo-medallion::before {
    content: "";
    position: absolute;
    z-index: 2;
    width: 24px;
    inset-block: -26px;
    inset-inline-start: -38px;
    background: linear-gradient(90deg, transparent, rgba(40, 190, 179, .16), rgba(255, 196, 87, .28), rgba(255, 255, 255, .58), transparent);
    transform: translate3d(0, 0, 0) skewX(-15deg);
    will-change: transform, opacity;
    pointer-events: none;
    animation: auth-logo-sheen 7.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.auth-logo-medallion::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 8px;
    border: 1px solid rgba(11, 145, 136, .2);
    border-radius: 50%;
    transform: translateZ(0);
    will-change: transform, opacity;
    pointer-events: none;
    animation: auth-logo-ring-breathe 6s cubic-bezier(.45, 0, .55, 1) infinite;
}

.auth-logo-medallion img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.auth-brand-identity p {
    margin: 0 0 8px;
    color: #64d8ce;
    font-size: 12px;
    font-weight: 600;
}

.auth-brand-identity h1 {
    max-width: 520px;
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.35;
    letter-spacing: -.02em;
}

.auth-brand-identity > strong {
    display: block;
    margin-top: 9px;
    color: #d9e5ec;
    font-size: 15px;
    font-weight: 500;
}

.auth-trust-note {
    position: absolute;
    z-index: 1;
    inset-inline: 34px;
    inset-block-end: 30px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 10px;
    background: rgba(4, 20, 34, .24);
    color: #64d8ce;
    text-align: start;
    animation: auth-item-enter .26s cubic-bezier(.2, .8, .2, 1) .09s backwards;
}

.auth-trust-note > .icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    margin-top: 2px;
}

.auth-trust-note strong,
.auth-trust-note small {
    display: block;
}

.auth-trust-note strong {
    color: #fff;
    font-size: 11px;
}

.auth-trust-note small {
    margin-top: 3px;
    color: #becfd9;
    font-size: 9.5px;
    line-height: 1.5;
}

.auth-page .auth-content {
    grid-area: form;
    min-width: 0;
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 52px clamp(34px, 4.2vw, 58px);
    direction: rtl;
    background: #fff;
}

.auth-page .auth-card {
    width: min(100%, 390px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-page .auth-form-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 27px;
    animation: auth-item-enter .28s cubic-bezier(.2, .8, .2, 1) .03s backwards;
}

.auth-page .auth-card-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--teal-100);
    color: var(--teal-700);
}

.auth-page .auth-card-icon .icon {
    width: 22px;
    height: 22px;
}

.auth-page .auth-card header small,
.auth-page .auth-card--message > small {
    color: var(--teal-700);
    font-size: 11px;
    font-weight: 650;
}

.auth-page .auth-card h2 {
    margin: 2px 0;
    color: var(--navy-950);
    font-family: inherit;
    font-size: 25px;
}

.auth-page .auth-card header p {
    margin: 0;
    color: #7e918b;
    font-size: 11px;
}

.auth-page .auth-alert {
    margin-bottom: 14px;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 9.5px;
    animation: auth-item-enter .16s cubic-bezier(.2, .8, .2, 1) backwards;
}

.auth-page .auth-form {
    display: block;
}

.auth-page .auth-field {
    display: block;
    margin-bottom: 16px;
    color: #40596a;
    font-size: 12px;
    font-weight: 600;
    animation: auth-item-enter .28s cubic-bezier(.2, .8, .2, 1) backwards;
}

.auth-page .auth-field:nth-of-type(1) { animation-delay: .05s; }
.auth-page .auth-field:nth-of-type(2) { animation-delay: .07s; }

.auth-page .auth-field > span:first-child {
    display: block;
    margin-bottom: 7px;
}

.auth-input-shell {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-inline-start: 13px;
    border: 1px solid #cbd7de;
    border-radius: 9px;
    background: #fff;
    color: #788b98;
    transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.auth-input-shell:focus-within {
    border-color: var(--teal-600);
    background: #fcfffe;
    box-shadow: 0 0 0 3px rgba(11, 145, 136, .1);
}

.auth-input-shell > .icon {
    width: 17px;
    height: 17px;
}

.auth-page .auth-form .auth-input-shell input {
    min-width: 0;
    height: 46px;
    min-height: 0;
    flex: 1;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    direction: ltr;
    text-align: left;
}

.auth-input-shell > button {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #788b98;
    transition: color .12s ease, background-color .12s ease, transform .12s cubic-bezier(.2, .8, .2, 1);
}

.auth-input-shell > button:hover {
    background: #eef7f7;
    color: var(--teal-700);
}

.auth-input-shell > button:active {
    transform: scale(.92);
}

.auth-input-shell > button.is-changing .icon {
    animation: auth-icon-settle .15s cubic-bezier(.2, .8, .2, 1) backwards;
}

.auth-input-shell > button.is-visible .icon {
    opacity: .72;
}

.auth-input-shell > button.is-visible::after {
    content: "";
    position: absolute;
    width: 20px;
    border-top: 1.8px solid currentColor;
    transform: rotate(-42deg);
}

.auth-page .auth-remember {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1px 0 21px;
    color: #687d8b;
    font-size: 10.5px;
    cursor: pointer;
    animation: auth-item-enter .28s cubic-bezier(.2, .8, .2, 1) .085s backwards;
}

.auth-page .auth-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-remember-box {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid #c6d4dc;
    border-radius: 5px;
    background: #fff;
    color: transparent;
}

.auth-remember-box .icon {
    width: 13px;
    height: 13px;
}

.auth-remember input:focus-visible + .auth-remember-box {
    outline: 2px solid rgba(11, 145, 136, .35);
    outline-offset: 2px;
}

.auth-remember input:checked + .auth-remember-box {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
}

.auth-page .auth-submit {
    position: relative;
    width: 100%;
    min-height: 48px;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
    animation: auth-item-enter .28s cubic-bezier(.2, .8, .2, 1) .1s backwards;
}

.auth-session-policy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 9px 10px;
    border: 1px solid #d3e7e4;
    border-radius: 7px;
    background: #f3faf9;
    color: #54746f;
    font-size: 9px;
    line-height: 1.55;
    animation: auth-item-enter .28s cubic-bezier(.2, .8, .2, 1) .085s backwards;
}

.auth-session-policy .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--teal-700);
}

.auth-submit-default,
.auth-submit-busy {
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .12s ease, transform .2s cubic-bezier(.2, .8, .2, 1);
}

.auth-submit-busy {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(9px);
}

.auth-submit.is-submitting .auth-submit-default {
    opacity: 0;
    transform: translateY(-9px);
}

.auth-submit.is-submitting .auth-submit-busy {
    opacity: 1;
    transform: translateY(0);
}

.auth-button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-button-spin .8s linear infinite;
}

.auth-page .auth-card > footer {
    display: block;
    margin-top: 18px;
    padding: 0;
    border: 0;
    color: var(--muted);
    text-align: center;
    font-size: 9.5px;
    line-height: 1.55;
    animation: auth-item-enter .28s cubic-bezier(.2, .8, .2, 1) .1s backwards;
}

.auth-page .auth-card--message {
    text-align: center;
}

.auth-page .auth-card--message .auth-card-icon {
    margin: 0 auto 16px;
}

.auth-page .auth-card--message p {
    color: var(--muted);
    font-size: 11px;
}

.auth-page .auth-card--message .admin-button {
    margin-top: 22px;
}

.auth-page-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 10px;
    animation: auth-item-enter .22s cubic-bezier(.2, .8, .2, 1) .1s backwards;
}

.auth-page-footer .icon {
    width: 14px;
    height: 14px;
}

@keyframes auth-shell-enter {
    from { opacity: 0; transform: translateY(12px) scale(.994); }
}

@keyframes auth-item-enter {
    from { opacity: 0; transform: translateY(8px); }
}

@keyframes auth-icon-settle {
    from { opacity: .3; transform: scale(.82); }
}

@keyframes auth-button-spin {
    to { transform: rotate(360deg); }
}

@keyframes auth-ambient-navy-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-28px, 22px, 0) scale(1.08); }
}

@keyframes auth-ambient-teal-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(30px, -20px, 0) scale(1.1); }
}

@keyframes auth-grid-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-28px, 28px, 0); }
}

@keyframes auth-rings-drift {
    0%, 100% { opacity: .72; transform: translate3d(0, 0, 0) scale(1); }
    50% { opacity: 1; transform: translate3d(-10px, -8px, 0) scale(1.035); }
}

@keyframes auth-logo-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -6px, 0); }
}

@keyframes auth-logo-sheen {
    0%, 62% { opacity: 0; transform: translate3d(0, 0, 0) skewX(-15deg); }
    69% { opacity: .78; }
    88%, 100% { opacity: 0; transform: translate3d(-250px, 0, 0) skewX(-15deg); }
}

@keyframes auth-logo-ring-breathe {
    0%, 100% { opacity: .48; transform: translateZ(0) scale(.985); }
    50% { opacity: .9; transform: translateZ(0) scale(1.018); }
}

@media (max-width: 980px) {
    .auth-page { padding: 26px; }

    .auth-page .auth-shell {
        min-height: 570px;
        grid-template-columns: minmax(340px, 44%) minmax(390px, 56%);
    }

    .auth-page .auth-brand-panel { padding-inline: 35px; }
    .auth-logo-medallion { width: 150px; height: 150px; }
    .auth-page .auth-content { padding-inline: 32px; }
}

@media (max-width: 720px) {
    .auth-page {
        min-height: 100dvh;
        padding: 14px 12px 20px;
    }

    .auth-page .auth-shell {
        width: min(100%, 500px);
        min-height: auto;
        grid-template-columns: 1fr;
        grid-template-areas: "brand" "form";
        border-radius: 18px;
    }

    .auth-page .auth-brand-panel {
        min-height: 202px;
        display: grid;
        place-items: center;
        padding: 24px 20px;
    }

    .auth-page .auth-brand-panel::after {
        width: 220px;
        height: 220px;
        inset-inline-start: -150px;
        inset-block-end: -165px;
    }

    .auth-brand-identity {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        align-items: center;
        column-gap: 15px;
        text-align: start;
    }

    .auth-logo-medallion {
        width: 78px;
        height: 78px;
        grid-row: 1 / 4;
        margin: 0;
        padding: 12px;
        border-width: 5px;
    }

    .auth-brand-identity p { margin: 0 0 2px; font-size: 9.5px; }
    .auth-brand-identity h1 { font-size: 20px; }
    .auth-brand-identity > strong { margin-top: 3px; font-size: 11px; }
    .auth-trust-note { display: none; }

    .auth-page .auth-content {
        min-height: auto;
        align-items: start;
        padding: 28px 22px 30px;
    }

    .auth-page .auth-card { width: 100%; }
    .auth-page .auth-form-heading { margin-bottom: 23px; }
    .auth-page-footer { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-ambient,
    .auth-page .auth-shell,
    .auth-page .auth-brand-panel::before,
    .auth-page .auth-brand-panel::after,
    .auth-brand-identity,
    .auth-logo-medallion,
    .auth-logo-medallion::before,
    .auth-logo-medallion::after,
    .auth-page .auth-form-heading,
    .auth-page .auth-alert,
    .auth-page .auth-field,
    .auth-session-policy,
    .auth-page .auth-submit,
    .auth-page .auth-card > footer,
    .auth-page-footer,
    .auth-input-shell > button.is-changing .icon {
        animation: none;
    }

    .auth-logo-medallion::before { display: none; }
}

/* Content workspace mobile containment: off-canvas navigation and tables must not widen the page. */
@media (max-width: 980px) {
    .admin-shell,
    .admin-workspace,
    .admin-content,
    .editorial-registry,
    .editorial-content-grid,
    .editorial-table-panel,
    .editorial-table-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .admin-sidebar {
        display: none;
        transform: none;
    }

    .admin-sidebar.mobile-open {
        display: flex;
        transform: none;
    }

    .editorial-table-wrap {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .content-studio {
        width: 100%;
        max-width: 100vw;
    }
}

@media (max-width: 600px) {
    .editorial-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .editorial-table th:nth-child(4),
    .editorial-table td:nth-child(4),
    .editorial-table th:nth-child(5),
    .editorial-table td:nth-child(5),
    .editorial-table th:nth-child(6),
    .editorial-table td:nth-child(6),
    .editorial-table th:nth-child(7),
    .editorial-table td:nth-child(7) {
        display: none;
    }

    .editorial-table th:nth-child(1) { width: 51%; }
    .editorial-table th:nth-child(2) { width: 22%; }
    .editorial-table th:nth-child(3) { width: 27%; }

    .editorial-table th,
    .editorial-table td {
        height: auto;
        padding: 10px 7px;
        white-space: normal;
    }

    .editorial-table td strong {
        max-width: none;
        overflow-wrap: anywhere;
        font-size: 10px;
    }

    .editorial-table td bdi,
    .editorial-table td small {
        overflow-wrap: anywhere;
        font-size: 7px;
    }

    .editorial-badge {
        max-width: 100%;
        padding-inline: 5px;
        font-size: 7px;
        white-space: normal;
    }

    .content-studio__save-state {
        display: none;
    }
}

/* Keep the full-screen editor isolated from the registry underneath it. */
html:has(.content-studio),
body:has(.content-studio) {
    block-size: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

.content-studio {
    block-size: 100dvh;
    max-block-size: 100dvh;
    overscroll-behavior: contain;
}

/* Authenticated-session inactivity warning */
.session-timeout-warning {
    position: fixed;
    inset-inline-end: 24px;
    bottom: 24px;
    z-index: 1200;
    width: min(420px, calc(100vw - 32px));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e5bd64;
    border-radius: 12px;
    background: #fffaf0;
    box-shadow: 0 18px 44px rgb(11 41 66 / 20%);
    color: #5b430d;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.session-timeout-warning[hidden] {
    display: none;
}

.session-timeout-warning.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.session-timeout-warning__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f6dfaa;
    color: #8a5e00;
}

.session-timeout-warning__icon .icon {
    width: 22px;
    height: 22px;
}

.session-timeout-warning strong {
    display: block;
    margin-bottom: 3px;
    color: #493400;
    font-size: 14px;
}

.session-timeout-warning time {
    display: inline-block;
    min-width: 42px;
    color: #a46600;
    direction: ltr;
    font-variant-numeric: tabular-nums;
}

.session-timeout-warning p {
    margin: 0;
    color: #755d28;
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .session-timeout-warning {
        inset-inline: 16px;
        bottom: 16px;
        width: auto;
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .session-timeout-warning {
        transition: none;
    }
}
