/*
 * Dialtone design system for the Virtual VoIP Server console.
 * Shares its tokens with the Dialtone web phone (Worker/SipsorceryWebPhone/wwwroot/css/webphone.css): Deep Navy primary,
 * Signal Blue for interaction, Quantum Cyan as a sparing accent, Cloud White canvas, Slate Ink text, Manrope headings and
 * Inter body, 12px control radius, 18px card radius, soft shadows only and a 4px spacing grid.
 */

/* ------------------------------------------------------------------------------------------------ Tokens */

:root {
    color-scheme: light;

    --navy: #0F172A;
    --signal: #3B82F6;
    --cyan: #06B6D4;
    --violet: #7C3AED;

    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-muted: #F1F5F9;
    --surface-sunken: #EBECEF;
    --text: #1E293B;
    --text-strong: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;

    --primary: #0F172A;
    --on-primary: #F8FAFC;
    --interactive: #3B82F6;
    --interactive-strong: #2563EB;
    --interactive-soft: rgba(59, 130, 246, 0.10);
    --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.35);

    --success: #16A34A;
    --success-strong: #15803D;
    --success-soft: rgba(22, 163, 74, 0.12);
    --warning: #D97706;
    --warning-soft: rgba(217, 119, 6, 0.12);
    --danger: #DC2626;
    --danger-strong: #B91C1C;
    --danger-soft: rgba(220, 38, 38, 0.10);
    --info: #0284C7;
    --info-soft: rgba(2, 132, 199, 0.10);

    --rail-bg: #0F172A;
    --rail-text: rgba(248, 250, 252, 0.68);
    --rail-text-muted: rgba(248, 250, 252, 0.42);
    --rail-text-active: #F8FAFC;
    --rail-active: rgba(59, 130, 246, 0.22);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.08), 0 24px 48px rgba(15, 23, 42, 0.14);

    --radius-control: 12px;
    --radius-card: 18px;
    --radius-pill: 999px;

    --font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --text-xs: 0.8rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5625rem;
    --text-2xl: 1.953rem;
    --text-3xl: 2.441rem;

    --sidebar-width: 256px;
    --topbar-height: 64px;

    /* Older page styles read these; they now resolve to the brand palette. */
    --ivr-ink: var(--text-strong);
    --ivr-muted: var(--text-muted);
    --ivr-accent: var(--interactive-strong);
    --ivr-accent-soft: #DBEAFE;
    --ivr-sun: var(--warning);
    --ivr-sand: var(--bg);
}

/* ------------------------------------------------------------------------------------------------ Base */

html,
body {
    background: var(--bg);
}

body {
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Font only: headings inherit their colour, so they stay light on the dark landing, first-run and sign-in panels. */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

/* Tailwind's reset makes headings inherit weight; the console's own headings use Manrope bold. */
.dt-topbar__title h1,
.dt-login-brand__body h1,
.dt-login-card__heading h2 {
    font-weight: 700;
}

.dt-topbar__title h1,
.dt-login-card__heading h2 {
    color: var(--text-strong);
}

::selection {
    background: rgba(59, 130, 246, 0.22);
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Each page moves focus to its heading after navigating (FocusOnNavigate), for screen readers. The heading can't be
   tabbed to, so it needs no focus ring. */
h1:focus,
h1:focus-visible,
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    box-shadow: none;
    outline: none;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--interactive) !important;
}

input[type="checkbox"],
input[type="radio"],
input[type="range"] {
    accent-color: var(--interactive);
}

* {
    scrollbar-color: var(--border-strong) transparent;
    scrollbar-width: thin;
}

.font-mono,
.mono,
code,
kbd,
pre {
    font-family: var(--font-mono);
}

/* ------------------------------------------------------------------------------------------------ Buttons */

.dt-btn,
.rf-btn {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    color: var(--text-strong);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0;
    min-height: 36px;
    padding: 0 14px;
    text-decoration: none;
    text-transform: none;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
    white-space: nowrap;
}

.dt-btn:hover:not(:disabled),
.rf-btn:hover:not(:disabled) {
    background: var(--surface-muted);
    border-color: var(--border-strong);
    color: var(--text-strong);
}

.dt-btn:active:not(:disabled),
.rf-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.dt-btn:disabled,
.rf-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.dt-btn--primary,
.rf-btn.rf-btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

.dt-btn--primary:hover:not(:disabled),
.rf-btn.rf-btn-primary:hover:not(:disabled) {
    background: #1E293B;
    border-color: #1E293B;
    color: var(--on-primary);
}

.dt-btn--danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.dt-btn--danger:hover:not(:disabled) {
    background: var(--danger-strong);
    border-color: var(--danger-strong);
    color: #fff;
}

.dt-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}

.dt-btn--icon {
    padding: 0;
    width: 36px;
}

/* ------------------------------------------------------------------------------------------------ Chips */

.dt-pill {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    display: inline-flex;
    font-size: var(--text-xs);
    font-weight: 600;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    white-space: nowrap;
}

.dt-pill::before {
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--success-soft);
    content: "";
    height: 8px;
    width: 8px;
}

.dt-pill--plain::before {
    display: none;
}

.dt-pill[data-state="warning"]::before {
    background: var(--warning);
    box-shadow: 0 0 0 3px var(--warning-soft);
}

.dt-pill[data-state="danger"]::before {
    background: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-soft);
}

/* ------------------------------------------------------------------------------------------------ App shell */

.dt-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.dt-sidebar {
    background: var(--rail-bg);
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100vh;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 60;
}

.dt-sidebar__brand {
    align-items: center;
    display: flex;
    gap: 12px;
    padding: 20px 20px 12px;
    text-decoration: none;
}

.dt-sidebar__brand img {
    flex: none;
    height: 40px;
    max-width: 96px;
    object-fit: contain;
    width: auto;
}

.dt-sidebar__brand strong {
    color: var(--rail-text-active);
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.15;
}

.dt-sidebar__brand small {
    color: var(--rail-text-muted);
    display: block;
    font-size: var(--text-xs);
    line-height: 1.3;
}

.dt-sidebar__nav {
    display: grid;
    flex: 1;
    gap: 2px;
    align-content: start;
    overflow-y: auto;
    padding: 4px 12px 16px;
    scrollbar-color: rgba(248, 250, 252, 0.16) transparent;
}

.dt-nav-group {
    display: grid;
    gap: 2px;
}

.dt-nav-group + .dt-nav-group {
    margin-top: 6px;
}

.dt-nav-group__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--rail-text-muted);
    cursor: pointer;
    display: flex;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    gap: 8px;
    letter-spacing: 0.06em;
    padding: 10px 12px 6px;
    text-align: left;
    text-transform: uppercase;
    width: 100%;
}

.dt-nav-group__toggle:hover {
    color: var(--rail-text-active);
}

.dt-nav-group__toggle .fa-chevron-down {
    font-size: 0.625rem;
    margin-left: auto;
    transition: transform 150ms ease;
}

.dt-nav-group.is-collapsed .dt-nav-group__toggle .fa-chevron-down {
    transform: rotate(-90deg);
}

.dt-nav-group.is-collapsed .dt-nav-group__items {
    display: none;
}

.dt-nav-group__items {
    display: grid;
    gap: 2px;
}

.dt-nav-item {
    align-items: center;
    border-radius: var(--radius-control);
    color: var(--rail-text);
    display: flex;
    font-size: var(--text-sm);
    font-weight: 500;
    gap: 12px;
    min-height: 40px;
    padding: 0 12px;
    position: relative;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease;
}

.dt-nav-item i {
    font-size: 0.9375rem;
    text-align: center;
    width: 20px;
}

.dt-nav-item:hover {
    background: rgba(248, 250, 252, 0.06);
    color: var(--rail-text-active);
}

.dt-nav-item.is-active {
    background: var(--rail-active);
    color: var(--rail-text-active);
    font-weight: 600;
}

.dt-nav-item.is-active::before {
    background: var(--cyan);
    border-radius: 0 4px 4px 0;
    content: "";
    height: 24px;
    left: -12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
}

.dt-sidebar__footer {
    border-top: 1px solid rgba(248, 250, 252, 0.08);
    display: grid;
    gap: 6px;
    padding: 14px 20px 18px;
}

.dt-sidebar__footer span {
    align-items: center;
    color: var(--rail-text-muted);
    display: flex;
    font-size: var(--text-xs);
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-dot {
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
    display: inline-block;
    flex: none;
    height: 8px;
    width: 8px;
}

.dt-dot.amber {
    background: var(--warning);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.dt-dot.red {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.dt-workspace {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dt-topbar {
    align-items: center;
    backdrop-filter: blur(8px);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 24px;
    height: var(--topbar-height);
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.dt-topbar__menu {
    display: none;
}

.dt-topbar__title {
    min-width: 0;
}

.dt-topbar__title p {
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.dt-topbar__title h1 {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-search {
    flex: 1;
    max-width: 440px;
    position: relative;
}

.dt-search__box {
    align-items: center;
    background: var(--surface-muted);
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    height: 40px;
    padding: 0 12px;
    transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.dt-search__box:focus-within {
    background: var(--surface);
    border-color: var(--interactive);
    box-shadow: var(--focus-ring);
}

.dt-search__box input {
    background: transparent;
    border: 0;
    color: var(--text-strong);
    flex: 1;
    font-size: var(--text-sm);
    min-width: 0;
    outline: none;
}

.dt-search__box input:focus-visible {
    box-shadow: none;
}

.dt-search__box kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    padding: 1px 6px;
}

.dt-search__results {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 2px;
    left: 0;
    max-height: 420px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 70;
}

.dt-search__result {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--text);
    display: flex;
    font-size: var(--text-sm);
    gap: 12px;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.dt-search__result i {
    color: var(--text-muted);
    text-align: center;
    width: 20px;
}

.dt-search__result small {
    color: var(--text-muted);
    font-size: var(--text-xs);
    margin-left: auto;
}

.dt-search__result:hover,
.dt-search__result.is-selected {
    background: var(--interactive-soft);
    color: var(--interactive-strong);
}

.dt-search__result:hover i,
.dt-search__result.is-selected i {
    color: var(--interactive-strong);
}

.dt-search__empty {
    color: var(--text-muted);
    font-size: var(--text-sm);
    padding: 12px;
}

.dt-topbar__status {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.dt-identity {
    position: relative;
}

.dt-identity__button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    display: flex;
    gap: 10px;
    padding: 4px 8px 4px 4px;
    text-align: left;
}

.dt-identity__button:hover {
    background: var(--surface-muted);
}

.dt-identity__button strong {
    color: var(--text-strong);
    display: block;
    font-size: var(--text-sm);
    line-height: 1.2;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-identity__button small {
    color: var(--text-muted);
    display: block;
    font-size: var(--text-xs);
    line-height: 1.2;
}

.dt-identity__button > i {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.dt-avatar {
    align-items: center;
    background: #DBEAFE;
    border-radius: 50%;
    color: #1E40AF;
    display: inline-flex;
    flex: none;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.dt-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 2px;
    min-width: 220px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 70;
}

.dt-menu__header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    padding: 8px 10px 12px;
}

.dt-menu__header strong {
    color: var(--text-strong);
    display: block;
    font-size: var(--text-sm);
}

.dt-menu__header span {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.dt-menu form {
    margin: 0;
}

.dt-menu a,
.dt-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--text);
    display: flex;
    font-size: var(--text-sm);
    gap: 10px;
    padding: 9px 10px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.dt-menu a:hover,
.dt-menu button:hover {
    background: var(--surface-muted);
}

.dt-menu i {
    color: var(--text-muted);
    text-align: center;
    width: 18px;
}

.dt-menu .is-danger,
.dt-menu .is-danger i {
    color: var(--danger);
}

.dt-scrim {
    display: none;
}

.dt-main {
    flex: 1;
    font-size: var(--text-sm);
    line-height: 1.45;
    min-width: 0;
    padding: 24px 32px 32px;
}

/* The developer feedback button sat in the old menu bar's corner; it now floats bottom right, clear of the topbar. */
.ivr-feedback-button {
    bottom: 24px;
    color: var(--interactive-strong) !important;
    top: auto !important;
}

.ivr-feedback-button:hover {
    border-color: var(--interactive) !important;
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.2) !important;
}

@media (max-width: 1100px) {
    .dt-search {
        max-width: 280px;
    }

    .dt-topbar__status .dt-pill {
        display: none;
    }
}

@media (max-width: 900px) {
    .dt-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .dt-sidebar {
        box-shadow: var(--shadow-lg);
        left: 0;
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        width: min(var(--sidebar-width), 86vw);
        z-index: 80;
    }

    .dt-shell.is-nav-open .dt-sidebar {
        transform: none;
    }

    .dt-shell.is-nav-open .dt-scrim {
        background: rgba(15, 23, 42, 0.45);
        display: block;
        inset: 0;
        position: fixed;
        z-index: 75;
    }

    .dt-topbar {
        gap: 12px;
        padding: 0 16px;
    }

    .dt-topbar__menu {
        display: inline-flex;
    }

    .dt-topbar__title {
        display: none;
    }

    .dt-search {
        max-width: none;
    }

    .dt-identity__button > span:not(.dt-avatar),
    .dt-search__box kbd {
        display: none;
    }

    .dt-main {
        padding: 16px;
    }
}

/* ------------------------------------------------------------------------------------------------ Sign in */

.dt-login {
    display: grid;
    grid-template-columns: minmax(360px, 5fr) 7fr;
    min-height: 100vh;
}

.dt-login-brand {
    background:
        radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 42%),
        radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--signal) 22%, transparent), transparent 46%),
        var(--navy);
    color: var(--rail-text);
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow: hidden;
    padding: 48px;
    position: relative;
}

.dt-login-brand__logo {
    height: 52px;
    object-fit: contain;
    object-position: left;
    position: relative;
    width: auto;
    z-index: 1;
}

.dt-login-brand__body {
    display: grid;
    gap: 20px;
    margin-top: auto;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.dt-eyebrow {
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin: 0;
    text-transform: uppercase;
}

.dt-login-brand__body .dt-eyebrow {
    color: var(--cyan);
}

.dt-login-brand__body h1 {
    color: var(--rail-text-active);
    font-size: var(--text-3xl);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

.dt-login-brand__body > p {
    color: var(--rail-text);
    font-size: var(--text-base);
    margin: 0;
}

.dt-login-brand__features {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.dt-login-brand__features li {
    align-items: center;
    color: var(--rail-text);
    display: flex;
    font-size: var(--text-sm);
    gap: 12px;
}

.dt-login-brand__features i {
    align-items: center;
    background: rgba(248, 250, 252, 0.08);
    border-radius: 10px;
    color: var(--cyan);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.dt-login-brand__footer {
    color: var(--rail-text-muted);
    font-size: var(--text-xs);
    margin: auto 0 0;
    position: relative;
    z-index: 1;
}

/* The logo's keypad dots, scaled up as a quiet backdrop. */
.dt-login-brand__keypad {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, 56px);
    opacity: 0.16;
    position: absolute;
    right: -24px;
    top: 120px;
}

.dt-login-brand__keypad span {
    border-radius: 50%;
    height: 56px;
    width: 56px;
}

.dt-login-main {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding: 24px 32px 32px;
}

.dt-login-card {
    display: grid;
    gap: 24px;
    margin: auto;
    max-width: 420px;
    padding: 24px 0;
    width: 100%;
}

.dt-login-card__mark {
    display: none;
    height: 48px;
    width: auto;
}

.dt-login-card__heading h2 {
    font-size: var(--text-2xl);
    letter-spacing: -0.01em;
    margin: 0;
}

.dt-login-card__heading p {
    color: var(--text-muted);
    margin: 8px 0 0;
}

.dt-form {
    display: grid;
    gap: 18px;
}

.dt-field {
    display: grid;
    gap: 8px;
}

.dt-field__label {
    color: var(--text-strong);
    font-size: var(--text-sm);
    font-weight: 600;
}

.dt-input {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-control);
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.dt-input:focus-within {
    border-color: var(--interactive);
    box-shadow: var(--focus-ring);
}

.dt-input input {
    background: transparent;
    border: 0;
    color: var(--text-strong);
    flex: 1;
    font-size: var(--text-base);
    height: 100%;
    min-width: 0;
    outline: none;
}

.dt-input input:focus-visible {
    box-shadow: none;
}

.dt-alert {
    align-items: flex-start;
    border-radius: var(--radius-control);
    display: flex;
    font-size: var(--text-sm);
    gap: 10px;
    padding: 12px 14px;
}

.dt-alert i {
    margin-top: 3px;
}

.dt-alert--danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.dt-btn--lg {
    font-size: var(--text-base);
    min-height: 48px;
    padding: 0 20px;
}

.dt-btn--block {
    width: 100%;
}

.dt-form-links {
    display: flex;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    gap: 8px 20px;
    justify-content: space-between;
}

.dt-form-links a {
    color: var(--interactive-strong);
    font-weight: 600;
    text-decoration: none;
}

.dt-form-links a:hover {
    text-decoration: underline;
}

.dt-login-status {
    align-items: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    font-size: var(--text-xs);
    gap: 10px;
    padding-top: 20px;
}

.dt-setup-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 16px 18px;
}

.dt-setup-panel strong {
    color: var(--text-strong);
    font-size: var(--text-sm);
}

.dt-setup-panel img {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    height: 180px;
    padding: 8px;
    width: 180px;
}

.dt-setup-panel code {
    background: var(--surface-muted);
    border-radius: 8px;
    color: var(--text-strong);
    font-size: var(--text-sm);
    padding: 6px 10px;
    word-break: break-all;
}

@media (max-width: 900px) {
    .dt-login {
        grid-template-columns: minmax(0, 1fr);
    }

    .dt-login-brand {
        display: none;
    }

    .dt-login-card__mark {
        display: block;
    }

    .dt-login-main {
        padding: 24px 16px;
    }
}
