:root {
    --navy-950: #071c2c;
    --navy-900: #0b263a;
    --navy-800: #12364e;
    --blue-700: #0b66c3;
    --blue-600: #1478d4;
    --blue-100: #e7f2ff;
    --teal-500: #20c7b5;
    --teal-100: #dcfbf6;
    --slate-900: #17212b;
    --slate-700: #435363;
    --slate-600: #5d6c7b;
    --slate-500: #738190;
    --slate-300: #cdd6df;
    --slate-200: #e1e7ed;
    --slate-100: #eef2f6;
    --slate-50: #f7f9fb;
    --white: #ffffff;
    --green-700: #08775f;
    --green-100: #ddf8ef;
    --red-700: #aa2e3d;
    --red-100: #fde7ea;
    --amber-700: #8c5900;
    --amber-100: #fff1d2;
    --sidebar-width: 274px;
    --radius-sm: 9px;
    --radius-md: 15px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(7, 28, 44, 0.04), 0 8px 26px rgba(7, 28, 44, 0.06);
    --shadow-lg: 0 28px 70px rgba(4, 24, 38, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--slate-50);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--slate-900);
    background: var(--slate-50);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--blue-700);
    text-decoration: none;
}

a:hover {
    color: var(--blue-600);
}

button,
input,
select {
    font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(32, 199, 181, 0.32);
    outline-offset: 2px;
}

.sr-only {
    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;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--blue-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: #76e4d7;
}

.muted {
    color: var(--slate-600);
}

.brand-mark {
    display: inline-grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    color: var(--navy-950);
    background: linear-gradient(135deg, #55e2d3, #1ab2dd);
    box-shadow: 0 10px 24px rgba(32, 199, 181, 0.2);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark--large {
    width: 62px;
    height: 62px;
    margin-bottom: 20px;
    border-radius: 18px;
    font-size: 18px;
}

.brand-mark--inverse {
    color: var(--navy-950);
    background: var(--white);
    box-shadow: none;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.btn.is-loading {
    pointer-events: none;
    opacity: 0.72;
}

.btn-primary {
    color: var(--white);
    background: var(--blue-700);
    box-shadow: 0 8px 18px rgba(11, 102, 195, 0.17);
}

.btn-primary:hover {
    color: var(--white);
    background: #0958a9;
    box-shadow: 0 10px 24px rgba(11, 102, 195, 0.23);
}

.btn-secondary {
    color: var(--slate-700);
    border-color: var(--slate-200);
    background: var(--white);
}

.btn-secondary:hover {
    color: var(--slate-900);
    border-color: var(--slate-300);
    background: var(--slate-50);
}

.btn-accent {
    color: var(--navy-950);
    background: var(--teal-500);
    box-shadow: 0 10px 24px rgba(32, 199, 181, 0.18);
}

.btn-accent:hover {
    color: var(--navy-950);
    background: #4dd7c9;
}

.btn-small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.button-row--center {
    justify-content: center;
}

.text-link {
    font-weight: 750;
}

.app-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.84);
    background:
        radial-gradient(circle at 12% 88%, rgba(32, 199, 181, 0.13), transparent 28%),
        linear-gradient(180deg, var(--navy-950), #061722);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 21px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.sidebar-brand strong {
    color: var(--white);
    font-size: 14px;
    line-height: 1.3;
}

.sidebar-brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.51);
    font-size: 10px;
}

.main-nav {
    flex: 1;
    padding: 18px 14px;
}

.nav-label {
    margin: 18px 10px 7px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-label:first-child {
    margin-top: 0;
}

.nav-item {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    margin: 3px 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.68);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    text-align: left;
    transition: background 0.16s ease, color 0.16s ease;
}

.nav-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.nav-item.is-active {
    color: var(--white);
    background: linear-gradient(100deg, rgba(32, 199, 181, 0.2), rgba(20, 120, 212, 0.14));
    box-shadow: inset 3px 0 0 var(--teal-500);
}

.nav-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    color: #8ecfc8;
    background: rgba(255, 255, 255, 0.045);
    font-size: 11px;
    font-weight: 900;
}

.sidebar-logout {
    padding: 12px 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-button {
    font-family: inherit;
}

.sidebar-overlay {
    display: none;
}

.app-main {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
    grid-column: 2;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 16px;
    padding: 15px clamp(20px, 3vw, 44px);
    border-bottom: 1px solid rgba(205, 214, 223, 0.72);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.topbar-kicker {
    margin: 0 0 2px;
    color: var(--slate-500);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.topbar h1 {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 10px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--white);
}

.menu-button span:not(.sr-only) {
    display: block;
    width: 19px;
    height: 2px;
    margin: 3px auto;
    border-radius: 2px;
    background: var(--navy-900);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    padding: 7px 11px 7px 7px;
    border: 1px solid var(--slate-200);
    border-radius: 13px;
    background: var(--white);
}

.user-chip small,
.user-chip strong {
    display: block;
    line-height: 1.25;
}

.user-chip small {
    color: var(--slate-500);
    font-size: 9px;
}

.user-chip strong {
    margin-top: 2px;
    font-size: 12px;
}

.user-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--blue-700);
    background: var(--blue-100);
    font-size: 13px;
    font-weight: 900;
}

.content-area {
    width: 100%;
    max-width: 1540px;
    flex: 1;
    margin: 0 auto;
    padding: 30px clamp(20px, 3vw, 44px) 42px;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(20px, 3vw, 44px);
    border-top: 1px solid var(--slate-200);
    color: var(--slate-500);
    font-size: 11px;
    background: var(--white);
}

.panel,
.hero-panel,
.search-page-card,
.search-result-card,
.not-found-card,
.detail-hero,
.assignment-card {
    border: 1px solid rgba(205, 214, 223, 0.78);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.panel {
    min-width: 0;
    padding: clamp(20px, 2.5vw, 30px);
}

.panel--narrow {
    max-width: 820px;
    margin: 0 auto;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.panel-header h2 {
    margin: 0;
    font-size: clamp(19px, 2vw, 24px);
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.panel-header p:not(.eyebrow) {
    margin: 5px 0 0;
    color: var(--slate-600);
    font-size: 13px;
}

.panel-header--actions {
    align-items: center;
}

.hero-panel {
    position: relative;
    display: grid;
    min-height: 205px;
    align-items: center;
    gap: 28px;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    margin-bottom: 22px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    color: var(--white);
    border: 0;
    background:
        radial-gradient(circle at 85% 10%, rgba(32, 199, 181, 0.22), transparent 29%),
        linear-gradient(120deg, var(--navy-950), #0b3d58);
    box-shadow: 0 18px 42px rgba(7, 28, 44, 0.16);
}

.hero-panel::after {
    position: absolute;
    right: -60px;
    bottom: -105px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: '';
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-panel .eyebrow {
    color: #69e2d5;
}

.hero-panel h2 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.hero-panel p:not(.eyebrow) {
    max-width: 530px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.66);
}

.hero-search {
    display: flex;
    gap: 9px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    height: 49px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    color: var(--slate-900);
    background: var(--white);
}

.stat-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.stat-card {
    display: flex;
    min-height: 135px;
    align-items: center;
    gap: 17px;
    padding: 22px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 900;
}

.stat-icon--blue {
    color: var(--blue-700);
    background: var(--blue-100);
}

.stat-icon--green {
    color: var(--green-700);
    background: var(--green-100);
}

.stat-card small,
.stat-card strong,
.stat-card a {
    display: block;
}

.stat-card small {
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 700;
}

.stat-card strong {
    margin: 3px 0;
    font-size: 28px;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.stat-card a:not(.btn) {
    font-size: 11px;
    font-weight: 750;
}

.stat-card--action {
    color: var(--white);
    border: 0;
    background: linear-gradient(125deg, var(--blue-700), #124e85);
}

.stat-card--action small {
    color: rgba(255, 255, 255, 0.6);
}

.stat-card--action strong {
    margin: 4px 0 12px;
    font-size: 20px;
}

.stat-card--action .btn {
    color: var(--navy-950);
    background: var(--teal-500);
    box-shadow: none;
}

.content-grid {
    display: grid;
    align-items: start;
    gap: 22px;
}

.content-grid--dashboard {
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.72fr);
}

.content-grid--form {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.58fr);
}

.quick-panel {
    padding: 24px;
}

.quick-link {
    display: grid;
    align-items: center;
    gap: 11px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 13px 0;
    border-top: 1px solid var(--slate-100);
    color: var(--slate-900);
}

.quick-link:hover {
    color: var(--blue-700);
}

.quick-link > span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    color: var(--blue-700);
    background: var(--blue-100);
    font-weight: 900;
}

.quick-link strong,
.quick-link small {
    display: block;
}

.quick-link strong {
    font-size: 13px;
}

.quick-link small {
    margin-top: 2px;
    color: var(--slate-500);
    font-size: 10px;
}

.quick-link b {
    color: var(--slate-300);
    font-size: 24px;
    font-weight: 400;
}

.alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 650;
}

.alert button {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.alert-success {
    color: var(--green-700);
    border-color: #b9ebdd;
    background: var(--green-100);
}

.alert-error {
    color: var(--red-700);
    border-color: #f3c3ca;
    background: var(--red-100);
}

.alert-info {
    color: var(--blue-700);
    border-color: #bfdbf7;
    background: var(--blue-100);
}

.stack-form {
    display: grid;
    gap: 18px;
}

.form-card {
    padding-top: 5px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    color: var(--slate-700);
    font-size: 12px;
    font-weight: 800;
}

.form-group label span {
    color: var(--red-700);
}

.form-group small,
.form-note {
    color: var(--slate-500);
    font-size: 11px;
}

.form-note {
    margin: 16px 0 0;
    text-align: center;
}

input,
select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid var(--slate-300);
    border-radius: 9px;
    color: var(--slate-900);
    background: var(--white);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input::placeholder {
    color: #9aa6b1;
}

input:focus,
select:focus {
    border-color: var(--blue-600);
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 120, 212, 0.1);
}

select {
    cursor: pointer;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 66px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 8px;
    padding: 7px 9px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    color: var(--blue-700);
    background: var(--blue-100);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid var(--slate-100);
}

.info-panel {
    position: sticky;
    top: 115px;
}

.info-panel h3 {
    margin: 12px 0 7px;
    font-size: 18px;
}

.info-panel p {
    color: var(--slate-600);
    font-size: 12px;
}

.info-symbol {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--blue-700);
    background: var(--blue-100);
    font-size: 17px;
    font-weight: 900;
}

.clean-list {
    display: grid;
    gap: 7px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.clean-list li {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--slate-700);
    background: var(--slate-50);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 13px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--slate-50);
}

.search-input {
    min-width: 220px;
    flex: 1;
}

.search-input input {
    height: 42px;
    background: var(--white);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--slate-200);
    border-radius: 11px;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th,
td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--slate-100);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--slate-500);
    background: var(--slate-50);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td {
    color: var(--slate-600);
    font-size: 12px;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover td {
    background: #fbfcfd;
}

td strong {
    color: var(--slate-900);
}

.table-number {
    color: var(--slate-500);
    font-variant-numeric: tabular-nums;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.table-actions a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid var(--slate-200);
    border-radius: 7px;
    color: var(--blue-700);
    background: var(--white);
    font-size: 10px;
    font-weight: 800;
}

.table-actions a:hover {
    border-color: #b9d6f2;
    background: var(--blue-100);
}

.domain-name {
    color: var(--navy-900);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.server-badge,
.count-badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

.server-badge {
    color: var(--blue-700);
    background: var(--blue-100);
}

.count-badge {
    min-width: 29px;
    justify-content: center;
    color: var(--green-700);
    background: var(--green-100);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    color: var(--slate-500);
    font-size: 11px;
}

.pagination a {
    padding: 7px 10px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: var(--white);
    font-weight: 750;
}

.empty-state {
    display: grid;
    max-width: 520px;
    min-height: 250px;
    align-content: center;
    justify-items: center;
    margin: 0 auto;
    padding: 35px 20px;
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 15px;
    color: var(--blue-700);
    background: var(--blue-100);
    font-weight: 900;
}

.empty-state h3 {
    margin: 0;
    font-size: 18px;
}

.empty-state p {
    margin: 7px 0 18px;
    color: var(--slate-600);
    font-size: 12px;
}

.search-page-card {
    display: grid;
    align-items: end;
    gap: 36px;
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    margin-bottom: 22px;
    padding: clamp(26px, 4vw, 44px);
    color: var(--white);
    border: 0;
    background:
        radial-gradient(circle at 92% 0%, rgba(32, 199, 181, 0.22), transparent 30%),
        linear-gradient(120deg, var(--navy-950), #0d425e);
}

.search-page-card .eyebrow {
    color: #69e2d5;
}

.search-page-card h2 {
    margin: 0;
    font-size: clamp(27px, 3vw, 39px);
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.search-page-card p:not(.eyebrow) {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.66);
}

.large-search label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.large-search > div {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.large-search input {
    height: 52px;
    border: 0;
}

.search-result-card {
    display: grid;
    align-items: center;
    gap: 25px;
    grid-template-columns: minmax(210px, 0.7fr) minmax(280px, 1.3fr) auto;
    padding: clamp(24px, 3vw, 36px);
    border-top: 4px solid var(--teal-500);
}

.result-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-status > span {
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 50%;
    color: var(--green-700);
    background: var(--green-100);
    font-weight: 900;
}

.result-status small,
.result-status strong,
.result-hosting small {
    display: block;
}

.result-status small,
.result-hosting small {
    color: var(--slate-500);
    font-size: 10px;
    font-weight: 750;
}

.result-status strong {
    margin-top: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.result-hosting {
    padding-left: 24px;
    border-left: 1px solid var(--slate-200);
}

.result-hosting h2 {
    margin: 3px 0;
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: -0.035em;
}

.result-hosting p {
    margin: 0;
    color: var(--slate-500);
    font-size: 10px;
}

.not-found-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: clamp(24px, 3vw, 36px);
}

.not-found-card > span {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 15px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-size: 20px;
    font-weight: 900;
}

.not-found-card h2 {
    margin: 0;
    font-size: 22px;
}

.not-found-card p:not(.eyebrow) {
    margin: 7px 0 17px;
    color: var(--slate-600);
}

.detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: clamp(22px, 3vw, 32px);
}

.detail-hero > div:first-child {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 16px;
    color: var(--blue-700);
    background: var(--blue-100);
    font-size: 17px;
    font-weight: 900;
}

.detail-hero h2 {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 31px);
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.detail-hero p:not(.eyebrow) {
    margin: 4px 0 0;
    color: var(--slate-500);
    font-size: 11px;
}

.detail-hero--domain .detail-icon {
    color: var(--green-700);
    background: var(--green-100);
}

.detail-meta-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.mini-card {
    padding: 18px 20px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
}

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

.mini-card small {
    color: var(--slate-500);
    font-size: 10px;
    font-weight: 750;
}

.mini-card strong {
    margin-top: 4px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.assignment-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    padding: clamp(24px, 3vw, 34px);
    color: var(--white);
    border: 0;
    background: linear-gradient(120deg, var(--navy-950), #0c4562);
}

.assignment-card small {
    color: rgba(255, 255, 255, 0.57);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.assignment-card h2 {
    margin: 3px 0 8px;
    font-size: clamp(23px, 3vw, 34px);
    letter-spacing: -0.04em;
}

.assignment-card .text-link {
    color: #76e4d7;
    font-size: 11px;
}

.connection-mark {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: var(--teal-500);
    background: rgba(255, 255, 255, 0.06);
    font-size: 28px;
}

.auth-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 12% 8%, rgba(32, 199, 181, 0.12), transparent 25%),
        radial-gradient(circle at 88% 90%, rgba(20, 120, 212, 0.14), transparent 30%),
        #eef3f7;
}

.auth-shell {
    width: min(100%, 560px);
}

.auth-shell--wide {
    width: min(100%, 650px);
}

.setup-card {
    padding: clamp(27px, 5vw, 48px);
    border: 1px solid rgba(205, 214, 223, 0.8);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.setup-card h1 {
    margin: 0;
    font-size: clamp(27px, 4vw, 37px);
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.setup-card > .muted {
    margin: 11px 0 23px;
}

.credential-card {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 11px;
    background: var(--slate-200);
}

.credential-card > div {
    padding: 14px;
    background: var(--slate-50);
}

.credential-card small,
.credential-card strong {
    display: block;
}

.credential-card small {
    color: var(--slate-500);
    font-size: 9px;
}

.credential-card strong {
    margin-top: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.setup-checks {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.setup-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--slate-200);
    border-radius: 11px;
    background: var(--slate-50);
}

.setup-check > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 9px;
    color: var(--slate-600);
    background: var(--slate-200);
    font-size: 11px;
    font-weight: 900;
}

.setup-check.is-ready > span {
    color: var(--green-700);
    background: var(--green-100);
}

.setup-check strong,
.setup-check small {
    display: block;
}

.setup-check strong {
    font-size: 12px;
}

.setup-check small {
    margin-top: 2px;
    color: var(--slate-500);
    font-size: 10px;
}

.login-layout {
    display: grid;
    width: min(100%, 1050px);
    min-height: 620px;
    overflow: hidden;
    grid-template-columns: 1.02fr 0.98fr;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(35px, 6vw, 64px);
    color: var(--white);
    background:
        radial-gradient(circle at 80% 18%, rgba(32, 199, 181, 0.24), transparent 28%),
        radial-gradient(circle at 10% 92%, rgba(20, 120, 212, 0.2), transparent 28%),
        linear-gradient(145deg, var(--navy-950), #0c3c56);
}

.login-brand-panel h1 {
    max-width: 430px;
    margin: 0;
    font-size: clamp(34px, 5vw, 53px);
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.login-brand-panel p:not(.eyebrow) {
    max-width: 420px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.63);
}

.login-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.login-feature-list span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.05);
    font-size: 9px;
    font-weight: 700;
}

.login-form-panel {
    display: grid;
    place-items: center;
    padding: clamp(28px, 5vw, 58px);
}

.login-form-wrap {
    width: min(100%, 360px);
}

.login-form-wrap h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.05em;
}

.login-form-wrap > .muted {
    margin: 8px 0 26px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .hero-panel,
    .search-page-card {
        grid-template-columns: 1fr;
    }

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

    .quick-panel {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 18px;
    }

    .quick-panel .panel-header {
        grid-column: 1 / -1;
    }

    .search-result-card {
        grid-template-columns: 0.75fr 1.25fr;
    }

    .search-result-card .button-row {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 40;
        inset: 0;
        display: block;
        visibility: hidden;
        border: 0;
        opacity: 0;
        background: rgba(4, 18, 28, 0.6);
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .nav-open .sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

    .nav-open {
        overflow: hidden;
    }

    .app-main {
        min-height: 100vh;
    }

    .menu-button {
        display: block;
        flex: 0 0 42px;
    }

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

    .stat-card--action {
        grid-column: 1 / -1;
    }

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

    .info-panel {
        position: static;
    }

    .login-layout {
        width: min(100%, 680px);
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 340px;
    }

    .login-form-panel {
        min-height: 420px;
    }
}

@media (max-width: 680px) {
    .auth-body {
        padding: 0;
        background: var(--white);
    }

    .login-layout {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand-panel {
        min-height: 310px;
        padding: 32px 24px;
    }

    .login-brand-panel h1 {
        font-size: 37px;
    }

    .login-feature-list {
        display: none;
    }

    .login-form-panel {
        min-height: 430px;
        padding: 34px 24px;
    }

    .auth-shell,
    .auth-shell--wide {
        width: 100%;
    }

    .setup-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .topbar {
        min-height: 75px;
        padding: 11px 15px;
    }

    .topbar-kicker,
    .user-chip span:not(.user-avatar) {
        display: none;
    }

    .user-chip {
        padding: 5px;
        border: 0;
        background: transparent;
    }

    .content-area {
        padding: 18px 14px 32px;
    }

    .app-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .hero-panel {
        min-height: auto;
        padding: 28px 21px;
    }

    .hero-panel h2 {
        font-size: 31px;
    }

    .hero-search,
    .large-search > div {
        display: grid;
    }

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

    .stat-card--action {
        grid-column: auto;
    }

    .quick-panel {
        display: block;
    }

    .panel,
    .search-page-card,
    .search-result-card,
    .not-found-card,
    .detail-hero,
    .assignment-card {
        border-radius: 13px;
    }

    .panel-header,
    .panel-header--actions {
        display: grid;
        align-items: start;
    }

    .panel-header--actions .btn {
        width: 100%;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .filter-bar .text-link {
        grid-column: 1 / -1;
        text-align: center;
    }

    .search-page-card {
        padding: 28px 21px;
    }

    .search-result-card {
        grid-template-columns: 1fr;
    }

    .result-hosting {
        padding: 18px 0 0;
        border-top: 1px solid var(--slate-200);
        border-left: 0;
    }

    .search-result-card .button-row {
        grid-column: auto;
    }

    .search-result-card .btn {
        width: 100%;
    }

    .detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-hero .button-row,
    .detail-hero .button-row .btn {
        width: 100%;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .assignment-card h2 {
        overflow-wrap: anywhere;
    }

    .connection-mark {
        display: none;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .credential-card {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

