:root {
    --ui-ink: #17263f;
    --ui-muted: #66768e;
    --ui-paper: #f4f7fc;
    --ui-surface: #fff;
    --ui-line: #dce5f1;
    --ui-primary: #2864c8;
    --ui-primary-dark: #1b4c9e;
    --ui-primary-soft: #e8f0fd;
    --ui-accent: #c58a2c;
    --ui-danger: #b64650;
    --ui-success: #187653;
    --ui-sidebar: #152c50;
    --ui-sidebar-deep: #10213e;
    --ui-radius: 17px;
    --ui-shadow: 0 9px 28px rgba(28, 57, 101, .07);
    --ui-sidebar-width: 276px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--ui-paper);
    color: var(--ui-ink);
    font-family: "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ui-primary);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--ui-primary-dark);
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--ui-ink);
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.wrap {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 36px);
}

body.has-sidebar .main {
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--ui-sidebar-width);
    display: flex;
    flex-direction: column;
}

body.has-sidebar .main .wrap {
    width: 100%;
    flex: 1;
}

.sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: var(--ui-sidebar-width);
    overflow-y: auto;
    padding: 18px 15px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background:
        radial-gradient(400px 260px at 5% 0, rgba(89, 190, 163, .16), transparent 70%),
        linear-gradient(160deg, var(--ui-sidebar), var(--ui-sidebar-deep));
    box-shadow: 8px 0 28px rgba(12, 45, 49, .12);
    color: #fff;
}

.sidebar .sidebar-inner {
    display: flex;
    min-height: calc(100vh - 36px);
    flex-direction: column;
    align-items: stretch;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 15px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.brand .logo,
.brand-logo {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: var(--ui-sidebar);
    object-fit: contain;
}

.brand-text {
    line-height: 1.2;
}

.brand-text small {
    display: inline-block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 600;
}

.sidebar .nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    margin-top: 19px;
}

.sidebar .nav a {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: rgba(255, 255, 255, .81);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.sidebar .nav a .ico {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .09);
    font-size: 14px;
}

.sidebar .nav a:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.sidebar .nav a.active {
    background: #fff;
    color: var(--ui-sidebar-deep);
}

.sidebar .nav a.active .ico {
    background: var(--ui-primary-soft);
    color: var(--ui-primary-dark);
}

.sidebar .nav-sep {
    margin: 14px 7px 3px;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sidebar-foot {
    display: grid;
    gap: 9px;
    margin-top: 15px;
    padding: 13px 10px 8px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.user-chip {
    color: #fff;
    font-size: 13px;
    font-weight: 750;
}

.user-chip small {
    color: rgba(255, 255, 255, .65);
}

.sidebar-foot .logout {
    display: block;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.sidebar-foot .logout:hover {
    background: rgba(255, 255, 255, .16);
}

.sidebar-overlay {
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(13, 34, 39, .55);
}

.mobilebar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--ui-line);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 16px rgba(31, 66, 64, .05);
    backdrop-filter: blur(12px);
}

.mobilebar-title {
    color: var(--ui-ink);
    font-weight: 850;
    letter-spacing: .02em;
}

.hamburger {
    padding: 7px 11px;
    border: 0;
    border-radius: 9px;
    background: var(--ui-sidebar);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

body.no-scroll {
    overflow: hidden;
}

.card,
.soras-card {
    position: relative;
    margin-bottom: 19px;
    padding: clamp(18px, 2.4vw, 27px);
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

.card h2 {
    margin: 0 0 8px;
    font-size: clamp(20px, 2vw, 25px);
}

.card h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.grid {
    display: grid;
    gap: 17px;
}

.g2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.stat {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 19px !important;
    border: 1px solid var(--ui-line);
    border-left: 5px solid var(--ui-primary);
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, #f3faf7);
    box-shadow: var(--ui-shadow);
}

.stat-blue {
    border-left-color: #3478c8;
}

.stat-green {
    border-left-color: #2b9973;
}

.stat-orange {
    border-left-color: #d39235;
}

.stat-purple {
    border-left-color: #7264b7;
}

.stat h3 {
    margin: 5px 0;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.stat p {
    margin: 0;
    color: var(--ui-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--ui-line);
    border-radius: 13px;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 13px;
    background: #fff;
}

.table-responsive table {
    min-width: 600px;
    border: 0;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid #e8efec;
    text-align: left;
    vertical-align: middle;
    font-size: 13.5px;
}

th {
    background: #eaf3f0;
    color: #344f53;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: 0;
}

tr:hover td {
    background: #f7fbf9;
}

.nowrap {
    white-space: nowrap;
}

.btn,
button.btn,
a.btn {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(23, 58, 60, .12);
}

.btn-p,
a.btn-p,
button.btn-p,
.btn-primary {
    background: var(--ui-primary);
    color: #fff;
}

.btn-p:hover,
a.btn-p:hover,
button.btn-p:hover,
.btn-primary:hover {
    background: var(--ui-primary-dark);
    color: #fff;
}

.btn-g,
a.btn-g,
button.btn-g {
    border-color: var(--ui-line);
    background: #f0f5f3;
    color: #29444a;
}

.btn-d,
a.btn-d,
button.btn-d {
    background: var(--ui-danger);
    color: #fff;
}

.btn-o,
a.btn-o,
button.btn-o {
    background: var(--ui-success);
    color: #fff;
}

.btn-w,
a.btn-w,
button.btn-w {
    background: var(--ui-accent);
    color: #fff;
}

.btn-sm {
    min-height: 31px !important;
    padding: 5px 9px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
}

.btn-block {
    width: 100%;
}

input,
select,
textarea {
    width: 100%;
    min-height: 43px;
    margin: 6px 0 12px;
    padding: 10px 12px;
    border: 1px solid #d2e0dc;
    border-radius: 10px;
    background: #fff;
    color: var(--ui-ink);
    font: inherit;
    font-size: 14px;
}

textarea {
    min-height: 108px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #69aaa0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 100, 200, .14);
}

label,
.form-label {
    color: #344b52;
    font-size: 12.5px;
    font-weight: 750;
}

.form-control,
.form-select {
    min-height: 42px;
    border-color: #d2e0dc;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: #69aaa0;
    box-shadow: 0 0 0 3px rgba(40, 100, 200, .14);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 13px;
    border: 1px solid var(--ui-line);
    border-radius: 13px;
    background: #f8fbf9;
}

.filters > * {
    min-width: 155px;
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
}

.b-green {
    border-color: #c5e8d7;
    background: #e6f6ed;
    color: #176844;
}

.b-yellow {
    border-color: #f0dfb0;
    background: #fff7dd;
    color: #8c6313;
}

.b-red {
    border-color: #f0c9cc;
    background: #fff0f0;
    color: #9c3843;
}

.b-blue {
    border-color: #c6dff0;
    background: #eaf5fb;
    color: #245c7a;
}

.b-purple {
    border-color: #ddd5ee;
    background: #f3effa;
    color: #624d83;
}

.b-gray {
    border-color: #dce5e2;
    background: #eff3f2;
    color: #4a5d5d;
}

.alert {
    margin: 11px 0;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13.5px;
}

.alert-ok {
    border-color: #c5e8d7;
    background: #e9f7ef;
    color: #176844;
}

.alert-err {
    border-color: #f0c9cc;
    background: #fff0f0;
    color: #9c3843;
}

.alert-info {
    border-color: #c8e0ec;
    background: #edf7fb;
    color: #285d72;
}

.alert-warning {
    border-color: #f0dfb0;
    background: #fff8e4;
    color: #7f601e;
}

.muted,
.text-muted,
.hint {
    color: var(--ui-muted) !important;
}

.welcome-banner {
    position: relative;
    overflow: hidden;
    margin-bottom: 19px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 19px;
    background:
        radial-gradient(300px 200px at 90% 10%, rgba(118, 171, 239, .2), transparent 70%),
        linear-gradient(115deg, #17345f, #2864c8);
    box-shadow: var(--ui-shadow);
    color: #fff;
}

.welcome-banner h1 {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
}

.welcome-eyebrow {
    color: #f8d99a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.welcome-description {
    max-width: 700px;
    color: rgba(255, 255, 255, .84);
}

.footer {
    padding: 18px;
    color: #71817e;
    font-size: 12px;
    text-align: center;
}

.footer::before {
    display: block;
    max-width: 1300px;
    height: 1px;
    margin: 0 auto 14px;
    background: var(--ui-line);
    content: "";
}

.login-wrap {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 25px 16px;
    background:
        radial-gradient(600px 430px at 8% 12%, rgba(92, 151, 235, .28), transparent 68%),
        radial-gradient(600px 400px at 100% 100%, rgba(89, 116, 190, .22), transparent 70%),
        linear-gradient(145deg, #12294d, #2055a0);
}

.login-card {
    width: 100%;
    max-width: min(100%, 500px);
    padding: clamp(23px, 5vw, 37px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(10, 38, 42, .27);
}

.login-card h2 {
    margin: 7px 0;
    font-size: 25px;
}

.login-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 78px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.login-card form {
    margin-top: 19px;
}

.captcha {
    margin: 7px 0 9px;
    padding: 12px;
    border: 1px dashed #9bcfc2;
    border-radius: 12px;
    background: #edf8f4;
    color: #155d58;
    font-size: 21px;
    font-weight: 850;
    letter-spacing: 4px;
    text-align: center;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: #eaf1fc;
    color: var(--ui-primary-dark);
    cursor: pointer;
    font-size: 12px;
}

.password-toggle:hover {
    background: #dce8fa;
}

input[type="password"],
input[type="text"] {
    padding-right: 72px;
}

.password-rules {
    display: grid;
    gap: 6px;
    margin: 10px 0 12px;
    color: var(--ui-muted);
    font-size: 12px;
}

.password-rule {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-indicator {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    color: #95a5a4;
    font-weight: 800;
}

.password-rule.valid,
.password-rule.valid .rule-indicator {
    color: var(--ui-success);
}

.strength-box {
    margin-bottom: 12px;
}

.strength-label,
#password-strength-text,
#admin-password-strength-text,
.password-match {
    color: var(--ui-muted);
    font-size: 12px;
}

.strength-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4ece9;
}

.strength-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--ui-primary);
    transition: width .2s ease;
}

.progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2ece8;
}

.progress-bar {
    background: var(--ui-primary);
}

.report-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.report-head img {
    width: auto;
    max-width: 110px;
    height: 66px;
    object-fit: contain;
}

.soras-topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px clamp(16px, 4vw, 46px);
    border-bottom: 1px solid var(--ui-line);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 15px rgba(31, 58, 99, .06);
    backdrop-filter: blur(12px);
}

.soras-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ui-ink);
    text-decoration: none;
}

.soras-brand b {
    font-size: 23px;
    letter-spacing: .01em;
}

.soras-brand b span {
    color: var(--ui-primary);
}

.soras-brand > .logo {
    background: var(--ui-primary) !important;
    color: #fff !important;
}

.soras-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 23px);
}

.soras-nav a {
    color: #40565b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.soras-nav a:hover {
    color: var(--ui-primary);
}

.soras-nav .btn-portal {
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--ui-primary);
    box-shadow: none;
    color: #fff !important;
}

.soras-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 82px) 25px 112px;
    background:
        radial-gradient(450px 300px at 93% 5%, rgba(125, 169, 235, .22), transparent 70%),
        linear-gradient(125deg, #142d52 0%, #1e559e 68%, #3478c8 100%);
    color: #fff;
}

.soras-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 1190px);
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
}

.soras-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(238, 204, 144, .45);
    border-radius: 999px;
    background: rgba(238, 204, 144, .12);
    color: #cfe0ff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
}

.soras-hero h1 {
    margin: 18px 0;
    color: #fff;
    font-size: clamp(39px, 6vw, 68px);
    line-height: 1.03;
}

.soras-hero h1 .l1,
.soras-hero h1 .l2,
.soras-hero h1 .l3 {
    color: #fff !important;
}

.soras-hero h1 .l2 {
    color: #a9ccff !important;
}

.soras-hero h1 .l3 {
    color: #d5e8ff !important;
}

.soras-hero p.lead {
    max-width: 600px;
    color: rgba(255, 255, 255, .84);
    font-size: 16px;
    line-height: 1.7;
}

.btn-get {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 21px;
    padding: 12px 20px;
    border-radius: 10px;
    background: #d8e8ff;
    color: #17345f;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.btn-get:hover {
    background: #e8f1ff;
    color: #17345f;
}

.soras-hero a[style] {
    color: #fff !important;
}

.soras-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 27px;
}

.soras-hero-stats div b {
    display: block;
    color: #fff;
    font-size: 21px;
}

.soras-hero-stats div span {
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.soras-seal {
    display: grid;
    width: min(290px, 70vw);
    height: min(290px, 70vw);
    place-items: center;
    margin: 0 auto;
    border: 7px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: #f7faff;
    box-shadow: 0 18px 50px rgba(15, 41, 79, .28), inset 0 0 0 8px #e1ebfa;
}

.soras-seal-inner {
    color: var(--ui-primary-dark);
    text-align: center;
}

.soras-seal-inner strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    letter-spacing: .12em;
}

.soras-seal-inner small {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
}

.soras-seal-inner img {
    width: min(100px, 28vw);
    height: auto;
}

.soras-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 47px;
    border-radius: 55% 55% 0 0 / 100% 100% 0 0;
    background: var(--ui-paper);
}

.soras-section {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 48px 25px;
}

.soras-section-head {
    max-width: 680px;
    margin: 0 auto 25px;
    text-align: center;
}

.soras-section-head h2 {
    margin: 0 0 9px;
    font-size: clamp(25px, 3vw, 34px);
}

.soras-section-head p {
    color: var(--ui-muted);
}

.soras-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.soras-card {
    border-top: 3px solid var(--ui-primary) !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.soras-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(24, 58, 111, .14);
}

.soras-card h3 {
    margin: 12px 0 7px;
    font-size: 17px;
}

.soras-card .feat-ico {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 12px;
    background: var(--ui-primary-soft) !important;
    color: var(--ui-primary-dark) !important;
    font-size: 20px;
}

.soras-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.soras-step {
    padding: 17px;
    border: 1px solid var(--ui-line);
    border-radius: 13px;
    background: #fff;
    color: var(--ui-ink);
}

.soras-step b {
    color: var(--ui-primary);
}

.soras-footer {
    padding: 23px 16px;
    background: var(--ui-sidebar-deep);
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    text-align: center;
}

.help-center,
.help-document {
    border-radius: var(--ui-radius);
}

.list-group-item {
    border-color: var(--ui-line);
}

canvas,
img,
svg,
video {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid rgba(40, 100, 200, .62);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .g4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .soras-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .mobilebar {
        display: flex;
    }

    body.has-sidebar .main {
        margin-left: 0;
    }

    .sidebar {
        width: min(var(--ui-sidebar-width), 88vw);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .wrap {
        padding: 19px 15px;
    }

    .soras-topbar {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .soras-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding: 3px 0 6px;
        white-space: nowrap;
    }

    .soras-hero-grid {
        grid-template-columns: 1.1fr .8fr;
        gap: 20px;
    }

    .soras-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wrap {
        padding: 15px 12px;
    }

    .card {
        padding: 17px;
        border-radius: 14px;
    }

    .g2,
    .g3,
    .g4,
    .soras-cards,
    .soras-hero-grid,
    .soras-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .soras-topbar {
        padding: 10px 14px;
    }

    .soras-brand b {
        font-size: 20px;
    }

    .soras-hero {
        padding: 38px 17px 83px;
    }

    .soras-hero h1 {
        font-size: clamp(36px, 11vw, 48px);
    }

    .soras-hero p.lead {
        font-size: 14px;
    }

    .soras-hero-grid > div:last-child {
        order: -1;
    }

    .soras-seal {
        width: 165px;
        height: 165px;
    }

    .soras-seal-inner img {
        width: 62px;
    }

    .soras-seal-inner strong {
        font-size: 16px;
    }

    .soras-seal-inner small {
        font-size: 7px;
    }

    .soras-section {
        padding: 35px 15px;
    }

    .filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .filters > * {
        min-width: 0;
    }

    .report-head {
        flex-direction: column;
    }

    .login-card {
        padding: 22px 17px;
    }

    table {
        min-width: 600px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .sidebar,
    .mobilebar,
    .sidebar-overlay,
    .no-print {
        display: none !important;
    }

    body,
    body.has-sidebar,
    body.has-sidebar .main {
        margin: 0;
        background: #fff;
    }

    .wrap {
        max-width: none;
        padding: 0;
    }

    .card {
        border: 0;
        box-shadow: none;
    }
}

/* Blue-forward theme accents used by the shared application and public pages. */
.sidebar {
    background:
        radial-gradient(400px 260px at 5% 0, rgba(89, 160, 255, .2), transparent 70%),
        linear-gradient(160deg, var(--ui-sidebar), var(--ui-sidebar-deep));
    box-shadow: 8px 0 28px rgba(13, 36, 74, .16);
}

.mobilebar {
    box-shadow: 0 4px 16px rgba(31, 58, 99, .06);
}

.stat {
    background: linear-gradient(145deg, #fff, #f3f7ff);
}

.table-responsive,
table {
    border-color: #dce5f1;
}

th {
    background: #eaf1fc;
    color: #344967;
}

tr:hover td {
    background: #f5f8fe;
}

.btn:hover {
    box-shadow: 0 6px 15px rgba(25, 62, 122, .14);
}

.btn-g,
a.btn-g,
button.btn-g {
    border-color: #dce5f1;
    background: #f0f4fb;
    color: #2e4567;
}

input,
select,
textarea,
.form-control,
.form-select {
    border-color: #d2deed;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: #77a4e7;
    box-shadow: 0 0 0 3px rgba(40, 100, 200, .14);
}

.filters {
    border-color: #dce5f1;
    background: #f7f9fd;
}

.welcome-banner {
    background:
        radial-gradient(300px 200px at 90% 10%, rgba(119, 173, 246, .22), transparent 70%),
        linear-gradient(115deg, #17345f, #2864c8);
}

.login-wrap {
    background:
        radial-gradient(600px 430px at 8% 12%, rgba(92, 151, 235, .28), transparent 68%),
        radial-gradient(600px 400px at 100% 100%, rgba(89, 116, 190, .22), transparent 70%),
        linear-gradient(145deg, #12294d, #2055a0);
}

.captcha {
    border-color: #a9c5ed;
    background: #edf4fe;
    color: #214f91;
}

.password-toggle {
    background: #eaf1fc;
}

.password-toggle:hover {
    background: #dce8fa;
}

.strength-bar,
.progress {
    background: #e5ebf4;
}

.soras-topbar {
    box-shadow: 0 3px 15px rgba(31, 58, 99, .06);
}

.soras-nav a {
    color: #425570;
}

.soras-hero {
    background:
        radial-gradient(450px 300px at 93% 5%, rgba(125, 169, 235, .22), transparent 70%),
        linear-gradient(125deg, #142d52 0%, #1e559e 68%, #3478c8 100%);
}

.soras-badge {
    border-color: rgba(169, 204, 255, .4);
    background: rgba(169, 204, 255, .1);
    color: #cfe0ff;
}

.soras-hero h1 .l2 {
    color: #a9ccff !important;
}

.soras-hero h1 .l3 {
    color: #d5e8ff !important;
}

.btn-get,
.btn-get:hover {
    background: #d8e8ff;
    color: #17345f;
}

.soras-seal {
    background: #f7faff;
    box-shadow: 0 18px 50px rgba(15, 41, 79, .28), inset 0 0 0 8px #e1ebfa;
}

.soras-card:hover {
    box-shadow: 0 16px 34px rgba(24, 58, 111, .14);
}

:focus-visible {
    outline-color: rgba(40, 100, 200, .62);
}

/* Workspace navigation and page context */
.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 9px;
    background: #fff;
    color: var(--ui-primary-dark);
    box-shadow: var(--ui-shadow);
    font-weight: 750;
}

.skip-link:focus {
    transform: translateY(0);
}

.sidebar {
    border-right: 1px solid #e0e8f2;
    background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
    box-shadow: 5px 0 24px rgba(27, 55, 96, .06);
    color: var(--ui-ink);
}

.brand {
    border-color: #e2eaf5;
    background: #f3f7fd;
    color: var(--ui-ink);
}

.brand-text small {
    color: var(--ui-muted);
}

.sidebar .nav-sep {
    margin-top: 17px;
    color: #7d8ca3;
}

.sidebar .nav a {
    color: #4a5d78;
}

.sidebar .nav a .ico {
    background: #edf2f9;
    color: #647995;
}

.sidebar .nav a:hover {
    background: #f0f5fc;
    color: var(--ui-primary-dark);
}

.sidebar .nav a.active {
    position: relative;
    background: #e9f1ff;
    color: #17488f;
    box-shadow: inset 3px 0 0 var(--ui-primary);
}

.sidebar .nav a.active .ico {
    background: #d7e6ff;
    color: #1d57aa;
}

.sidebar-foot {
    border-top-color: #e2eaf3;
}

.user-chip {
    color: var(--ui-ink);
}

.user-chip small {
    color: var(--ui-muted);
}

.sidebar-foot .logout {
    border-color: #dce5f1;
    background: #f0f4fb;
    color: #344967;
}

.sidebar-foot .logout:hover {
    background: #e4edfb;
}

.workspace-bar {
    position: sticky;
    z-index: 25;
    top: 0;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px clamp(18px, 3vw, 36px);
    border-bottom: 1px solid var(--ui-line);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 16px rgba(28, 57, 101, .035);
    backdrop-filter: blur(12px);
}

.workspace-kicker {
    color: #7a8aa2;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.workspace-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 2px;
    color: #8593a8;
    font-size: 12px;
}

.workspace-breadcrumb .bi {
    font-size: 9px;
}

.workspace-breadcrumb h1 {
    margin: 0;
    color: #1c3152;
    font-size: 17px;
    font-weight: 800;
}

.workspace-account {
    display: flex;
    align-items: center;
    gap: 13px;
}

.workspace-notifications {
    position: relative;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid #e0e8f2;
    border-radius: 12px;
    background: #f7f9fd;
    color: #536884;
    font-size: 17px;
    text-decoration: none;
}

.workspace-notifications:hover {
    background: #eaf1fc;
    color: var(--ui-primary-dark);
}

.workspace-notifications span {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d94d5a;
    color: #fff;
    font-size: 9px;
    font-weight: 850;
}

.workspace-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 13px;
    border-left: 1px solid #e2eaf3;
}

.workspace-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #cfe0fb;
    border-radius: 12px;
    background: #e9f1ff;
    color: #1d57aa;
    font-size: 13px;
    font-weight: 850;
}

.workspace-user-copy {
    display: grid;
    line-height: 1.25;
}

.workspace-user-copy strong {
    color: #293d5c;
    font-size: 12px;
}

.workspace-user-copy small {
    margin-top: 3px;
    color: #7c8ba1;
    font-size: 10px;
}

.mobilebar {
    min-height: 57px;
}

.mobilebar-title {
    overflow: hidden;
    color: #233c61;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .workspace-bar {
        display: none;
    }

    .sidebar {
        border-right: 1px solid #dfe8f3;
        box-shadow: 10px 0 35px rgba(20, 43, 78, .16);
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: min(300px, 88vw);
    }

    .sidebar .nav a {
        min-height: 46px;
        font-size: 13.5px;
    }
}
