:root {
    --ink: #0d0d10;
    --panel: #1a1a20;
    --cyan: #5fd8e3;
    --orange: #ff6a1f;
    --bg: #f4f5f8;
    --text: #223137;
    --muted: #647078;
    --line: #e4e7ec;
    font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
a {
    color: inherit;
    text-decoration: none;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #228d9a;
    outline-offset: 4px;
}
input:focus,
select:focus {
    outline: 2px solid #40b9ca;
    outline-offset: 1px;
}
h1,
h2,
h3 {
    font-family: Manrope, "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.035em;
    line-height: 1.17;
    margin: 0;
    font-weight: 750;
}
h1 {
    font-size: 36px;
}
h2 {
    font-size: 22px;
}
h3 {
    font-size: 19px;
}
p {
    line-height: 1.65;
}
small {
    font-size: 12px;
}
.muted,
.field-hint {
    color: var(--muted);
}
.section-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #677980;
    margin-bottom: 12px;
}
.eyebrow {
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 0.15em;
    font-weight: 700;
    display: block;
    margin-bottom: 22px;
}
.eyebrow:before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 10px;
}
.brand img {
    display: block;
    width: 124px;
    height: auto;
}
.primary,
.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 650;
    min-height: 46px;
}
.primary {
    background: var(--orange);
    color: #111;
}
.primary:hover:not(:disabled) {
    background: #ee5a11;
    color: #fff;
}
.secondary {
    background: #ecfafc;
    border: 1px solid #a3dce2;
    color: #166671;
}
.text-button {
    border: 0;
    background: none;
    color: #286777;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 0;
    min-height: 40px;
}
.full {
    width: 100%;
    margin-top: 27px;
}
.back-link {
    font-size: 12px;
    color: #b0bbc0;
    display: block;
    margin-top: 24px;
}
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 22px 0 8px;
}
input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d9dfe4;
    border-radius: 10px;
    background: white;
    padding: 12px 14px;
    color: var(--text);
}
input::placeholder {
    color: #8b969e;
}
.notice {
    background: #ecfafc;
    border: 1px solid #cee9ed;
    border-radius: 12px;
    color: #285d68;
    padding: 15px 18px;
    font-size: 13px;
    line-height: 1.65;
    margin: 16px 0;
}
.notice.error {
    background: #fff0ec;
    border-color: #f2c9bb;
    color: #8b3419;
}
.offline {
    background: #ffedcf;
    padding: 12px 24px;
    font-size: 13px;
    text-align: center;
    color: #634511;
    position: sticky;
    top: 0;
    z-index: 20;
}
.loading-screen {
    min-height: 100vh;
    display: grid;
    place-content: center;
    text-align: center;
}
.loading-screen img {
    width: 124px;
    margin: auto;
}
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}
.login-story {
    background: var(--ink);
    color: white;
    padding: 48px 9%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.story-content {
    margin: 65px 0 35px;
    position: relative;
    z-index: 1;
}
.story-content h1 {
    font-size: clamp(36px, 3.65vw, 58px);
    letter-spacing: -0.05em;
}
.story-content h1 span {
    color: var(--cyan);
}
.story-content > p {
    color: #b0bbc0;
    font-size: 16px;
    margin-top: 24px;
}
.story-features {
    border-top: 1px solid #303139;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #a4b5bc;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding-top: 26px;
    margin-top: 50px;
}
.mail-art {
    width: 210px;
    background: #183846;
    border: 1px solid #386579;
    border-radius: 22px;
    padding: 25px 28px;
    position: relative;
    transform: rotate(-8deg);
    margin: 50px 15px 40px auto;
    box-shadow: 15px 20px 0 #14242c;
}
.mail-art-top {
    font:
        60px Georgia,
        serif;
    color: var(--cyan);
    line-height: 1.1;
}
.mail-art-line {
    height: 5px;
    width: 85%;
    background: #49717b;
    border-radius: 5px;
    margin: 16px 0 0;
}
.mail-art-line.short {
    width: 55%;
    margin-top: 9px;
}
.art-badge {
    position: absolute;
    bottom: 25px;
    right: -32px;
    background: var(--orange);
    color: #16171a;
    font-size: 11px;
    padding: 12px 16px;
    border-radius: 20px;
    transform: rotate(8deg);
}
.login-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 11%;
    position: relative;
}
.login-card {
    width: 100%;
    max-width: 380px;
}
.login-card h2 {
    font-size: 33px;
    margin-top: 14px;
}
.login-card > .muted {
    font-size: 14px;
    margin-bottom: 35px;
}
.login-help {
    font-size: 12px;
    color: #6b7880;
    border-top: 1px solid var(--line);
    padding-top: 25px;
    margin-top: 30px;
    line-height: 1.8;
}
.login-footer {
    position: absolute;
    bottom: 28px;
    left: 11%;
    right: 11%;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #869097;
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 242px;
    flex: none;
    background: var(--ink);
    color: #c9cbd1;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 5;
}
.sidebar .brand {
    padding-left: 14px;
    margin-bottom: 38px;
}
.workspace-label {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: #8b959e;
    margin: 25px 14px 12px;
}
.nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    min-height: 47px;
    padding: 12px 15px;
    border: 0;
    background: transparent;
    color: #b6bec6;
    border-radius: 9px;
    font-size: 12px;
    margin-bottom: 5px;
}
.nav-item small {
    margin-left: auto;
    background: #24414a;
    padding: 3px 7px;
    border-radius: 5px;
}
.nav-item:hover,
.nav-item.active {
    background: #19343c;
    color: var(--cyan);
}
.sidebar-bottom {
    margin-top: auto;
    padding: 30px 12px 0;
}
.support-card {
    border: 1px solid #31353b;
    border-radius: 12px;
    padding: 17px 14px;
    font-size: 12px;
}
.support-card p {
    font-size: 11px;
    color: #98a1aa;
}
.support-card a {
    color: var(--cyan);
    font-size: 11px;
}
.main-shell {
    margin-left: 242px;
    min-width: 0;
    flex: 1;
}
.topbar {
    height: 86px;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 15px;
}
.breadcrumb {
    color: #939da5;
    margin-left: 10px;
}
.account {
    display: flex;
    align-items: center;
    gap: 13px;
}
.account strong {
    font-size: 11px;
    display: block;
}
.account small {
    display: block;
    color: #8b969d;
    font-size: 10px;
    margin-top: 4px;
}
.avatar {
    border-radius: 50%;
    background: #e0f3f5;
    color: #1a6874;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    font-size: 13px;
}
.account button {
    margin-left: 15px;
}
.content {
    padding: 38px 40px 20px;
    max-width: 1500px;
    margin: auto;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}
.page-heading .muted {
    font-size: 13px;
    margin: 12px 0 0;
}
.welcome-banner {
    border-radius: 20px;
    background: #102c36;
    color: white;
    padding: 32px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}
.welcome-banner h2 {
    font-size: 28px;
    line-height: 1.3;
}
.welcome-banner p {
    font-size: 12px;
    color: #a5c5cc;
    margin: 16px 0 0;
}
.welcome-banner .eyebrow {
    font-size: 9px;
    margin-bottom: 15px;
}
.banner-envelope {
    font:
        100px Georgia,
        serif;
    color: var(--cyan);
    text-align: center;
    width: 240px;
    border: 1px solid #345864;
    border-radius: 20px;
    background: #193c47;
    transform: rotate(-7deg);
    margin: 0 15px;
}
.banner-envelope span {
    font:
        8px "Segoe UI",
        sans-serif;
    letter-spacing: 0.18em;
    display: block;
    padding: 15px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 24px 0;
}
.stats article {
    border: 1px solid var(--line);
    background: white;
    border-radius: 14px;
    padding: 22px;
}
.stats span {
    font-size: 12px;
    color: #647078;
}
.stats strong {
    display: block;
    font-size: 33px;
    font-weight: 600;
    margin: 12px 0 8px;
    line-height: 1;
}
.stats small {
    color: #859198;
    font-size: 10px;
}
.panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    overflow: hidden;
    margin-bottom: 22px;
}
.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
    font-size: 17px;
}
.empty-state {
    text-align: center;
    padding: 34px 20px 38px;
}
.empty-icon {
    font-size: 30px;
    background: #ecfafc;
    border-radius: 16px;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    color: #2994a3;
}
.empty-state p {
    font-size: 12px;
    color: #7a878f;
}
.empty-state h3 {
    font-size: 17px;
}
.empty-state .secondary {
    margin-top: 8px;
    font-size: 12px;
}
.table-wrap {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}
th {
    text-align: left;
    padding: 17px 24px;
    background: #fafbfd;
    color: #859098;
    font-size: 10px;
    font-weight: 500;
}
td {
    padding: 21px 24px;
    border-bottom: 1px solid #eef0f2;
}
td strong {
    font-size: 12px;
}
td small {
    display: block;
    color: #859098;
    margin-top: 7px;
    overflow-wrap: anywhere;
    font-size: 10px;
}
tr:last-child td {
    border-bottom: 0;
}
.status {
    display: inline-block;
    background: #fff4e6;
    color: #835416;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
}
.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
}
.form-panel {
    padding: 28px 30px;
}
.form-panel h2 {
    font-size: 20px;
}
.steps {
    display: flex;
    gap: 25px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: #8a989f;
}
.steps b {
    font-weight: 500;
    margin-left: 6px;
}
.step-current {
    color: #1a7b89;
}
.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 24px 0;
}
.choice {
    border: 1px solid #dfe5e8;
    border-radius: 12px;
    padding: 18px;
    margin: 0;
    cursor: pointer;
    position: relative;
}
.choice input {
    width: 15px;
    min-height: 15px;
    position: absolute;
    top: 15px;
    right: 15px;
    accent-color: #218c9c;
}
.choice strong {
    font-size: 13px;
    display: block;
    margin: 10px 12px 9px 0;
}
.choice span {
    font-size: 11px;
    color: #7b888f;
    font-weight: 400;
    line-height: 1.6;
    display: block;
}
.choice.chosen {
    border-color: #39adbd;
    background: #f1fbfc;
}
.input-suffix {
    display: flex;
    align-items: center;
    border: 1px solid #d9dfe4;
    border-radius: 10px;
    overflow: hidden;
}
.input-suffix input {
    border: 0;
    border-radius: 0;
    min-width: 60px;
}
.input-suffix span {
    padding: 14px;
    background: #f5f8f9;
    font-size: 12px;
    overflow-wrap: anywhere;
    max-width: 60%;
}
.field-hint {
    font-size: 11px;
    line-height: 1.6;
    margin-top: 9px;
}
.address-preview {
    background: #f5f8fa;
    border-radius: 10px;
    padding: 19px;
    margin: 25px 0;
}
.address-preview small {
    display: block;
    color: #7b8b93;
    font-size: 9px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.address-preview strong {
    font-size: 18px;
    overflow-wrap: anywhere;
}
.form-aside {
    padding: 20px 0;
}
.form-aside h3 {
    font-size: 20px;
    line-height: 1.4;
}
.form-aside ol {
    padding-left: 19px;
    color: #63747d;
    font-size: 12px;
    line-height: 2.7;
}
.form-aside .muted {
    font-size: 12px;
}
.aside-icon {
    font-size: 40px;
    color: #31a6b5;
    margin-bottom: 15px;
}
.dns-record {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 15px;
    background: #f7f9fa;
    padding: 20px;
    border-radius: 12px;
    font-size: 12px;
    align-items: center;
}
.dns-record > span {
    color: #73828b;
}
code {
    overflow-wrap: anywhere;
    font-size: 12px;
}
.copy-line {
    display: flex;
    align-items: center;
    gap: 15px;
}
.copy-line code {
    min-width: 0;
}
.copy-line button {
    flex: none;
}
.spaced {
    margin-top: 32px;
}
.address-title {
    overflow-wrap: anywhere;
    font-size: 30px;
}
.timeline {
    margin-top: 25px;
}
.timeline article {
    display: flex;
    gap: 18px;
    padding-bottom: 20px;
}
.timeline small {
    font-size: 10px;
    color: #8b959b;
}
.timeline p {
    margin: 7px 0;
    font-size: 13px;
}
.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #40b9ca;
    flex: none;
    margin-top: 5px;
}
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.narrow {
    max-width: 600px;
}
.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8a969c;
    font-size: 10px;
    margin: 30px 0 0;
    gap: 15px;
}
.content-footer button {
    font-size: 10px;
}
#blazor-error-ui {
    display: none;
    background: #fff0ec;
    position: fixed;
    bottom: 0;
    padding: 15px;
    z-index: 100;
    width: 100%;
}
.dismiss {
    cursor: pointer;
    float: right;
}
@media (min-width: 1500px) {
    .content {
        padding: 45px 60px;
    }
    .topbar {
        padding: 0 60px;
    }
}
@media (max-width: 1100px) {
    .sidebar {
        width: 210px;
        padding: 25px 12px;
    }
    .main-shell {
        margin-left: 210px;
    }
    .content {
        padding: 28px 24px;
    }
    .topbar {
        padding: 0 24px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-aside {
        padding: 0;
    }
    .banner-envelope {
        width: 150px;
        font-size: 75px;
    }
    .login-story {
        padding: 35px 7%;
    }
    .login-panel {
        padding: 40px 8%;
    }
}
@media (max-width: 760px) {
    h1 {
        font-size: 27px;
    }
    .app-shell {
        display: block;
    }
    .sidebar {
        position: static;
        width: 100%;
        padding: 18px;
    }
    .sidebar .brand {
        padding: 0;
        margin: 0;
    }
    .sidebar .brand img {
        width: 90px;
    }
    .workspace-label,
    .sidebar-bottom {
        display: none;
    }
    .sidebar nav {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        margin-top: 17px;
    }
    .nav-item {
        white-space: nowrap;
        width: auto;
        flex: none;
        margin: 0;
        font-size: 11px;
        padding: 10px;
    }
    .main-shell {
        margin: 0;
    }
    .topbar {
        padding: 13px 20px;
        height: auto;
        min-height: 68px;
    }
    .topbar > span {
        display: none;
    }
    .account {
        width: 100%;
    }
    .account button {
        margin-left: auto;
    }
    .content {
        padding: 26px 18px 15px;
    }
    .page-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 15px;
    }
    .page-heading .primary {
        padding: 11px 18px;
        font-size: 12px;
        min-height: 40px;
    }
    .welcome-banner {
        padding: 25px;
    }
    .welcome-banner h2 {
        font-size: 24px;
    }
    .banner-envelope {
        display: none;
    }
    .stats {
        gap: 8px;
        margin: 18px 0;
    }
    .stats article {
        padding: 15px 10px;
    }
    .stats span {
        font-size: 10px;
    }
    .stats strong {
        font-size: 26px;
    }
    .stats small {
        font-size: 9px;
        line-height: 1.4;
        display: block;
    }
    .panel-heading {
        padding: 18px;
    }
    .form-panel {
        padding: 23px 18px;
    }
    .choices {
        gap: 9px;
    }
    .choice {
        padding: 13px;
    }
    .choice strong {
        font-size: 12px;
        margin-top: 22px;
    }
    .choice span {
        font-size: 10px;
    }
    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .dns-record {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .copy-line {
        flex-wrap: wrap;
    }
    .address-title {
        font-size: 24px;
    }
    .login-shell {
        display: block;
    }
    .login-story {
        padding: 25px;
        min-height: 150px;
    }
    .login-story .brand img {
        width: 95px;
    }
    .story-content {
        margin: 30px 0 0;
    }
    .story-content h1 {
        font-size: 32px;
    }
    .story-content > p,
    .story-features,
    .mail-art,
    .login-story > .back-link,
    .story-content > .eyebrow {
        display: none;
    }
    .login-panel {
        padding: 40px 24px 85px;
        min-height: calc(100vh - 235px);
    }
    .login-card h2 {
        font-size: 28px;
    }
    .login-card > .muted {
        margin-bottom: 24px;
    }
    .login-footer {
        left: 24px;
        right: 24px;
        bottom: 23px;
    }
    .content-footer {
        align-items: flex-start;
    }
    .steps {
        gap: 15px;
    }
    td,
    th {
        padding: 15px;
    }
    .status {
        min-width: 95px;
    }
}
.users-grid {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.users-grid > section {
    min-width: 0;
}
.user-fields {
    padding: 0;
    margin: 0;
    border: 0;
    min-width: 0;
}
.user-fields .full {
    margin-top: 12px;
}
.password-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    margin: 15px 0;
}
.password-toggle input {
    width: 18px;
    min-height: 18px;
    accent-color: #218c9c;
}
.field-error {
    color: #8b3419;
    font-size: 12px;
    line-height: 1.6;
    margin: 9px 0;
}
input[aria-invalid="true"] {
    border-color: #ba4c2c;
}
.users-list td {
    overflow-wrap: anywhere;
}
.users-list .panel-heading {
    gap: 12px;
    flex-wrap: wrap;
}
.users-count {
    display: inline-block;
    background: #ecfafc;
    color: #166671;
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 6px;
    vertical-align: middle;
}
.user-role {
    display: inline-block;
    border-radius: 6px;
    background: #f4f5f8;
    padding: 7px 9px;
    font-size: 11px;
}
.users-list td:first-child {
    width: 65%;
}
.users-list .text-button {
    flex: none;
}
@media (max-width: 1200px) {
    .users-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}

/* Shared field focus stays on the rounded container, including the address suffix. */
.input-suffix {
    overflow: visible;
    min-width: 0;
    transition: box-shadow 0.15s;
}
.input-suffix:focus-within {
    border-color: #169fb3;
    box-shadow: 0 0 0 3px #169fb326;
}
.input-suffix input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    border-radius: 10px 0 0 10px;
}
.input-suffix input:focus {
    outline: none;
    box-shadow: none;
}
.input-suffix > span {
    flex: 0 1 auto;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0 10px 10px 0;
}
.choice:focus-within {
    box-shadow: 0 0 0 3px #169fb326;
    border-color: #169fb3;
}
.choice input:focus {
    outline: none;
}
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #169fb3;
    outline-offset: 2px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
}
.nav-item svg {
    flex: 0 0 22px;
}
.request-summary {
    padding: 28px;
    margin-bottom: 24px;
    border-top: 3px solid #30b5c6;
}
.request-summary-top {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.request-summary-top h2 {
    margin: 8px 0;
}
.request-summary-top p {
    max-width: 740px;
    color: #566b75;
    line-height: 1.65;
    margin: 8px 0;
}
.request-icon {
    color: #147386;
    background: #ecf9fb;
    border-radius: 15px;
    padding: 16px;
    display: flex;
}
.request-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0;
    margin: 20px 0 0;
    border-top: 1px solid #e0e6eb;
}
.request-facts dt {
    font-size: 12px;
    color: #647581;
    margin-bottom: 7px;
}
.request-facts dd {
    margin: 0;
    font-weight: 600;
}
.request-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.request-actions a {
    text-decoration: none;
    display: inline-block;
}
.request-summary + .form-panel {
    margin-top: 0;
}
.access-active {
    color: #257264;
}
.access-paused,
.danger-text {
    color: #a62d37 !important;
}
.account-confirm {
    padding: 24px;
    margin: 16px;
    border: 1px solid #f1c4a6;
    background: #fff7ee;
    border-radius: 12px;
}
.account-confirm h3 {
    overflow-wrap: anywhere;
}
.audit-event {
    border-left: 4px solid #35a4b8;
}
.audit-event td {
    vertical-align: top;
}
.audit-event.severity-warning {
    border-left-color: #bf780b;
    background: #fff9ee;
}
.audit-event.severity-danger {
    border-left-color: #bf3443;
    background: #fff1f2;
}
.severity-label {
    display: table;
    margin-top: 8px;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 600;
    background: #e9f6fa;
    color: #246c7e;
}
.severity-warning .severity-label {
    background: #fff0ca;
    color: #875006;
}
.severity-danger .severity-label {
    background: #fbdde1;
    color: #9e2434;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e7ebef;
    font-size: 13px;
    color: #607480;
}
.audit-panel td {
    overflow-wrap: anywhere;
}
.audit-panel td:first-child {
    min-width: 130px;
}
.audit-panel td:nth-child(2) {
    min-width: 200px;
}
.support-thread {
    scroll-margin-top: 25px;
}
.chat-heading {
    padding: 0 0 16px;
    border: 0;
    gap: 16px;
}
.chat-heading h2 {
    margin: 8px 0 0;
}
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0;
}
.chat-message {
    max-width: 88%;
    width: fit-content;
    min-width: min(300px, 100%);
    padding: 16px 20px;
    border-radius: 14px 14px 14px 4px;
    background: #f1f4f7;
}
.chat-message.from-support {
    align-self: flex-end;
    background: #eaf8fa;
    border-radius: 14px 14px 4px 14px;
}
.chat-message header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #506976;
}
.chat-message header time {
    white-space: nowrap;
    font-size: 11px;
}
.chat-message p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.65;
    margin: 10px 0 0;
}
.chat-empty {
    background: #f7f9fb;
    border-radius: 10px;
    padding: 24px;
    color: #607480;
}
.support-thread textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    resize: vertical;
    font: inherit;
    border: 1px solid #cbd8e1;
    border-radius: 10px;
    padding: 14px;
}
.chat-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}
.chat-actions small {
    color: #657b88;
}
.inbox-item {
    display: flex;
    width: 100%;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border: 0;
    border-top: 1px solid #e2e8ed;
    background: white;
}
.inbox-item:hover {
    background: #f2fbfc;
}
.inbox-item strong {
    display: block;
    overflow-wrap: anywhere;
}
.inbox-item small {
    display: block;
    color: #607480;
    margin-top: 7px;
}
.mobile-dock,
.mobile-more,
.mobile-menu-backdrop {
    display: none;
}
.account .desktop-logout {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dce7eb;
    border-radius: 12px;
    background: #f5f9fa;
    color: #456c7a;
}
.account .desktop-logout:hover:not(:disabled) {
    background: #e7f5f7;
    border-color: #abd9e0;
    color: #146d7c;
}
@media (max-width: 760px) {
    .sidebar {
        display: none;
    }
    .main-shell {
        margin-left: 0;
    }
    .content {
        padding-bottom: calc(105px + env(safe-area-inset-bottom));
    }
    .topbar {
        padding: 14px 18px;
    }
    .topbar > span {
        display: none;
    }
    .topbar .account {
        width: 100%;
    }
    .topbar .account > button {
        margin-left: auto;
    }
    .topbar .desktop-logout {
        display: none;
    }
    .mobile-dock {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        z-index: 30;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 12px;
        right: 12px;
        max-width: 460px;
        margin: 0 auto;
        padding: 7px;
        border-radius: 40px;
        border: 1px solid #d8e4e8;
        background: #f4f8faf2;
        backdrop-filter: blur(18px);
        box-shadow: 0 8px 32px #183d4e30;
    }
    .mobile-dock button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 8px 2px;
        border: 0;
        border-radius: 28px;
        background: transparent;
        color: #647b88;
        font-size: 10px;
        white-space: nowrap;
    }
    .mobile-dock button.active {
        background: #dceff3;
        color: #145e72;
        font-weight: 700;
    }
    .mobile-more {
        display: block;
        position: fixed;
        z-index: 29;
        bottom: calc(98px + env(safe-area-inset-bottom));
        left: 16px;
        right: 16px;
        padding: 8px 16px 16px;
        background: #fff;
        border: 1px solid #e1e8ec;
        border-radius: 22px;
        box-shadow: 0 12px 40px #153b4e30;
    }
    .mobile-more .panel-heading {
        padding: 14px 4px;
    }
    .mobile-more .nav-item {
        width: 100%;
        color: #234553;
        background: #f4f8fa;
        margin-top: 8px;
    }
    .mobile-menu-backdrop {
        display: block;
        position: fixed;
        z-index: 28;
        inset: 0;
        background: #18313b50;
    }
    .request-summary {
        padding: 20px;
    }
    .request-summary-top {
        gap: 12px;
    }
    .request-icon {
        padding: 10px;
        border-radius: 10px;
    }
    .request-facts {
        grid-template-columns: 1fr 1fr;
        font-size: 13px;
    }
    .request-summary-top h2 {
        font-size: 20px;
    }
    .pagination {
        padding: 16px 12px;
        font-size: 11px;
        gap: 8px;
    }
    .pagination .secondary {
        padding: 9px 12px;
    }
    .chat-message {
        max-width: 100%;
        padding: 14px;
    }
    .chat-message header {
        gap: 10px;
        flex-wrap: wrap;
    }
    .chat-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .chat-actions {
        align-items: flex-end;
    }
    .chat-actions .primary {
        padding: 12px 16px;
    }
    .inbox-item {
        flex-wrap: wrap;
        padding: 18px;
    }
    .users-list table {
        min-width: 0;
        table-layout: fixed;
    }
    .users-list th,
    .users-list td {
        padding: 12px 8px;
        overflow-wrap: anywhere;
    }
    .users-list td .text-button {
        padding: 8px 0;
        font-size: 11px;
    }
    .user-role {
        font-size: 10px;
        white-space: normal;
    }
}

/* Keep navigation reachable on short desktop viewports and audit entries readable on phones. */
.sidebar {
    overflow-y: auto;
}
@media (max-width: 760px) {
    .audit-panel table {
        display: block;
        min-width: 0;
        width: 100%;
    }
    .audit-panel thead {
        display: none;
    }
    .audit-panel tbody {
        display: block;
    }
    .audit-panel .audit-event {
        display: block;
        padding: 14px;
        border-bottom: 1px solid #e1e7eb;
    }
    .audit-panel .audit-event td {
        display: block;
        padding: 7px;
        min-width: 0;
        border: 0;
    }
    .audit-panel .audit-event td:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    .audit-panel .severity-label {
        display: inline-block;
        margin: 0;
    }
}

/* Decorative network for the login page: low contrast behind text, brighter at the edges. */
.login-story {
    isolation: isolate;
    background:
        radial-gradient(ellipse at 94% 12%, #19424b 0, transparent 52%),
        radial-gradient(ellipse at 20% 94%, #123239 0, transparent 53%), #0c171d;
}
.login-story > .brand,
.login-story > .back-link {
    position: relative;
    z-index: 1;
    width: fit-content;
}
.network-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(110deg, #0008, #0003 36%, #000b 75%, #000);
}
.network-map {
    position: absolute;
    inset: -4%;
    width: 108%;
    height: 108%;
}
.network-links {
    stroke: #69d4df;
    stroke-width: 0.8;
    opacity: 0.24;
}
.network-nodes {
    fill: #87e8ef;
}
.network-nodes circle {
    opacity: 0.48;
    animation: network-glow 7s ease-in-out infinite alternate;
}
.network-nodes circle:nth-child(3n) {
    animation-delay: -2s;
}
.network-nodes circle:nth-child(3n + 1) {
    animation-delay: -5s;
}
.network-halos {
    fill: #6cd5df0d;
    stroke: #6cd5df;
    stroke-width: 1;
    opacity: 0.22;
}
.network-halos circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: network-pulse 9s ease-in-out infinite alternate;
}
.network-halos circle:nth-child(2) {
    animation-delay: -4s;
}
.network-halos circle:nth-child(3) {
    animation-delay: -7s;
}
.network-motion-toggle {
    position: absolute;
    top: 48px;
    right: 9%;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #7bd5df35;
    border-radius: 50%;
    background: #112c3380;
    color: #a0d8df;
}
.network-motion-toggle:hover {
    background: #234750;
    border-color: #7bd5df88;
}
.network-motion-toggle:focus-visible {
    outline: 2px solid #66d7e4;
    outline-offset: 3px;
}
.network-background.is-paused .network-map,
.network-background.is-paused circle {
    animation-play-state: paused;
}
.login-help a {
    color: #146d7c;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.login-help a:hover {
    color: #0c4954;
}
.login-help a:focus-visible {
    outline: 2px solid #169fb3;
    outline-offset: 4px;
    border-radius: 2px;
}
@keyframes network-glow {
    from {
        opacity: 0.3;
    }
    to {
        opacity: 0.8;
    }
}
@keyframes network-pulse {
    from {
        opacity: 0.3;
        transform: scale(0.8);
    }
    to {
        opacity: 0.85;
        transform: scale(1.15);
    }
}
@media (max-width: 1100px) {
    .network-motion-toggle {
        top: 35px;
        right: 7%;
    }
}
@media (max-width: 760px) {
    .network-motion-toggle {
        top: 25px;
        right: 25px;
    }
    .network-background {
        mask-image: linear-gradient(100deg, #0004, #000a);
    }
    .network-links {
        opacity: 0.2;
    }
}
@media (prefers-reduced-motion: reduce) {
    .network-background .network-map,
    .network-background circle {
        animation: none;
    }
    .network-motion-toggle {
        display: none;
    }
}
