:root {
    color-scheme: light;
    --page: #f3f6f3;
    --surface: #fff;
    --ink: #162b25;
    --muted: #4c635a;
    --line: #d8e4dd;
    --sidebar: #112c25;
    --sidebar-text: #eef6ef;
    --accent: #1b6049;
    --accent-hover: #104834;
    --focus: #93440f;
    --radius: 14px;
    font: 100%/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
}

a {
    color: var(--accent);
    text-underline-offset: 0.2em;
}

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

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

.sidebar :focus-visible {
    outline-color: #f1c68e;
}

.visually-hidden, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    z-index: 2;
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
}

.panel {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 235px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100dvh;
    flex-direction: column;
    overflow-y: auto;
    padding: 1.65rem 1.1rem 1.1rem;
    background: linear-gradient(160deg, #163a30, var(--sidebar) 55%);
    color: var(--sidebar-text);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem 0.45rem;
    color: inherit;
    font-size: 1.06rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 2.15rem;
    place-items: center;
    border-radius: 0.55rem;
    background: #c7e8ca;
    color: #15392f;
    font-size: 1.12rem;
    font-weight: 800;
}

.brand-product {
    color: #b8c9bd;
    font-weight: 500;
}

.navigation {
    display: grid;
    gap: 0.35rem;
    margin-top: 2.55rem;
}

.navigation a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #cad8ce;
    font-size: 0.9rem;
    text-decoration: none;
}

.navigation a:hover, .navigation a[aria-current] {
    border-color: #527369;
    background: #28473e;
    color: #fff;
}

.navigation a[aria-current] {
    box-shadow: inset 3px 0 #9dd3a8;
    font-weight: 650;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.6rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #668e7f;
    border-radius: 8px;
    background: #28473e;
    color: var(--sidebar-text);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 650;
}

.menu-icon {
    width: 0.85rem;
    height: 0.65rem;
    border-block: 1px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.menu-toggle[hidden], .navigation[hidden] {
    display: none;
}

.nav-icon {
    display: inline-block;
    width: 1rem;
    height: 0.85rem;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 2px;
    color: #b9d5c3;
}

.nav-icon-accounts {
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

.nav-icon-plans {
    width: 0.8rem;
    height: 1rem;
    margin-inline: 0.1rem;
    background:
        linear-gradient(currentColor, currentColor) center 35% / 55% 1px no-repeat,
        linear-gradient(currentColor, currentColor) center 65% / 55% 1px no-repeat;
}

.nav-icon-packages {
    background: linear-gradient(currentColor, currentColor) center 35% / 40% 1px no-repeat;
}

.nav-icon-resellers {
    background:
        linear-gradient(currentColor, currentColor) center 35% / 55% 1px no-repeat,
        linear-gradient(currentColor, currentColor) center 65% / 75% 1px no-repeat;
}

.nav-icon-health {
    background:
        linear-gradient(currentColor, currentColor) 25% bottom / 1px 40% no-repeat,
        linear-gradient(currentColor, currentColor) center bottom / 1px 70% no-repeat,
        linear-gradient(currentColor, currentColor) 75% bottom / 1px 55% no-repeat;
}

.nav-icon-customers {
    position: relative;
    height: 0.46rem;
    margin-top: 0.47rem;
    border-radius: 0.4rem 0.4rem 2px 2px;
}

.nav-icon-customers::before {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    width: 0.39rem;
    height: 0.39rem;
    transform: translateX(-50%);
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
}

.sidebar-account {
    display: grid;
    gap: 0.3rem;
    margin-top: auto;
    padding: 0.85rem 0.55rem 0;
    border-top: 1px solid #3c594e;
    font-size: 0.88rem;
}

.operator {
    overflow-wrap: anywhere;
    font-weight: 650;
}

.sidebar-account button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #c1d4c7;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.main {
    width: 100%;
    max-width: 1320px;
    padding: clamp(1.25rem, 4vw, 4rem);
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.65rem;
}

.page-heading > div {
    min-width: 0;
}

.page-heading > .button {
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

h1, h2, p, dl {
    margin: 0;
}

h1 {
    overflow-wrap: anywhere;
    font-size: clamp(1.85rem, 4vw, 2.85rem);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

h2 {
    font-size: 1.12rem;
    font-weight: 700;
}

.heading-meta {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.surface {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 3px 9px #10291c0d;
}

.main > section.surface + section.surface {
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    min-height: 2.55rem;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.82rem;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.primary {
    background: var(--accent);
    color: #fff;
}

.primary:hover {
    background: var(--accent-hover);
}

.secondary {
    border-color: #c5d1c7;
    background: var(--surface);
    color: var(--ink);
}

.secondary:hover {
    background: #eaf0e9;
}

.toolbar, .section-heading, .pagination, .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.toolbar, .section-heading, .pagination {
    padding: 1rem 1.2rem;
}

.section-heading {
    justify-content: space-between;
}

.section-text {
    margin: 0.85rem 1.2rem;
    overflow-wrap: anywhere;
}

.account-toolbar {
    justify-content: space-between;
}

.account-toolbar form {
    min-width: 0;
    flex: 1 1 25rem;
}

.account-domain {
    margin-top: 0.22rem;
}

.account-heading-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    margin-top: 0.6rem;
    color: var(--muted);
}

.account-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.account-content :target {
    scroll-margin-top: 1rem;
}

.account-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
}

.account-navigation:empty {
    display: none;
}

.account-navigation a {
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 680;
    text-decoration: none;
}

.account-navigation a:hover {
    background: #e2eee6;
    text-decoration: underline;
}

.pagination {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

input:not([type="hidden"]), select, textarea {
    min-width: 0;
    padding: 0.48rem 0.68rem;
    border: 1px solid #bbcbbf;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
}

input:not([type="hidden"]), select {
    height: 2.55rem;
}

textarea {
    resize: vertical;
}

input::placeholder {
    color: var(--muted);
}

.toolbar input {
    width: min(100%, 20rem);
}

.quiet-link, .back-link {
    font-size: 0.88rem;
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.1rem;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 0.84rem 1.2rem;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
    vertical-align: top;
}

th {
    background: #edf4ef;
    color: #40594b;
    font-size: 0.78rem;
    font-weight: 700;
}

td {
    font-size: 0.93rem;
}

tbody tr:hover {
    background: #f6f8f3;
}

.surface > .table-scroll:first-child thead tr:first-child th {
    border-top: 0;
}

.surface > .table-scroll:first-child th:first-child {
    border-top-left-radius: var(--radius);
}

.surface > .table-scroll:first-child th:last-child {
    border-top-right-radius: var(--radius);
}

.cell-date, .status {
    white-space: nowrap;
}

.record-link {
    font-weight: 650;
}

.domain, code {
    font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    overflow-wrap: anywhere;
}

.domain {
    font-size: 0.88rem;
}

.muted, .empty {
    color: var(--muted);
}

.empty, .notice {
    padding: 1.1rem 1.2rem;
    font-size: 0.94rem;
}

.details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem 3rem;
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.25rem;
}

.details > div {
    min-width: 0;
}

dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
}

dd {
    margin: 0.28rem 0 0;
    overflow-wrap: anywhere;
}

.notice {
    margin-bottom: 1.15rem;
    border-left: 3px solid #8ca487;
    border-radius: 0 6px 6px 0;
    background: #e7eee5;
}

.customer-preview, .table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.customer-preview {
    justify-content: space-between;
    border-color: var(--focus);
    background: #f5ead6;
    color: #6b431b;
    overflow-wrap: anywhere;
}

.customer-preview p {
    margin: 0.2rem 0 0;
}

.status {
    display: inline-block;
    padding: 0.18rem 0.62rem;
    border-radius: 0.75rem;
    font-size: 0.78rem;
    font-weight: 680;
}

.status::before {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    margin-inline-end: 0.35rem;
    vertical-align: 0.08em;
    background: currentColor;
    content: "";
}

.status.ready, .status.active {
    background: #dcebdc;
    color: #205038;
}

.status.pending, .status.suspended {
    background: #f5ead6;
    color: #6b431b;
}

.status.failed {
    background: #f9e5e1;
    color: #862f25;
}

.configuration {
    margin: 0;
    overflow-x: auto;
    padding: 1.2rem;
    border-radius: 0 0 var(--radius) var(--radius);
    background: #192e28;
    color: #e6efe3;
    font-size: 0.88rem;
    line-height: 1.6;
    tab-size: 4;
}

.editor-surface {
    max-width: 600px;
    padding: 1.35rem;
}

.editor {
    display: grid;
    gap: 1rem;
}

.editor label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 680;
}

.editor input:not([type="hidden"]), .editor select, .editor textarea {
    width: 100%;
}

.reseller-editor fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
    margin: 0;
}

.reseller-editor legend {
    margin-bottom: 0.65rem;
    font-weight: 680;
}

.reseller-editor input[type="checkbox"] {
    width: auto;
}

.editor .errorlist {
    margin: 0;
    padding: 0 0 0 1.1rem;
    color: #902d29;
    font-size: 0.87rem;
}

.editor [aria-invalid="true"] {
    border-color: #902d29;
}

.sign-in {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1.5rem;
    background: radial-gradient(ellipse at 25% 0%, #2b5343, var(--sidebar) 67%);
}

.sign-in-inner {
    width: min(100%, 415px);
}

.sign-in-brand {
    margin-bottom: 1.15rem;
    color: var(--sidebar-text);
}

.sign-in-card {
    padding: clamp(1.3rem, 4vw, 2rem);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 16px 44px #08141045;
}

.sign-in-card h1 {
    margin-bottom: 1.25rem;
    font-size: 2rem;
}

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

    .sidebar {
        position: static;
        display: grid;
        height: auto;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 0.65rem 0.3rem;
        padding: 0.65rem 0.75rem;
    }

    .brand {
        font-size: 1rem;
    }

    .brand-mark {
        width: 1.95rem;
        height: 1.95rem;
        flex-basis: 1.95rem;
    }

    .navigation {
        display: flex;
        flex-wrap: wrap;
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
    }

    .navigation a {
        min-height: 2.6rem;
        padding: 0.38rem 0.65rem;
    }

    .menu-toggle {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
    }

    .sidebar-account {
        grid-column: 2;
        grid-row: 1;
        max-width: 8.5rem;
        justify-items: end;
        margin: 0;
        padding: 0 0.35rem;
        border-top: 0;
        text-align: right;
    }
}

@media (max-width: 375px) {
    .sidebar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .menu-toggle {
        grid-column: 2;
    }

    .sidebar-account {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        max-width: none;
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .page-heading {
        flex-direction: column;
    }

    .toolbar input {
        width: auto;
        flex: 1 1 45%;
    }

    th, td, .toolbar, .section-heading, .pagination {
        padding-inline: 0.8rem;
    }

    .cell-date {
        display: none;
    }
}

.dns-answer {
    max-width: 38rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.dns-answer p {
    margin: 0.25rem 0;
}

.dns-instructions {
    padding: 1.2rem;
}

.dns-instructions p,
.dns-instructions ul {
    margin: 0;
}

.dns-instructions li + li {
    margin-top: 0.5rem;
}

.dns-instructions input {
    min-width: 12rem;
}

.file-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 1rem 1.2rem 0;
    list-style: none;
}

.file-breadcrumbs li {
    overflow-wrap: anywhere;
}

.file-breadcrumbs li + li::before {
    content: "/";
    margin-right: 0.4rem;
    color: var(--muted);
}

.file-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
    align-items: start;
    gap: 1rem;
    margin-block-end: 1.25rem;
    padding-inline: 1.2rem;
}

.file-forms form,
.file-forms input[type="file"] {
    min-width: 0;
    max-width: 100%;
}

.file-table .file-name {
    min-width: 7rem;
    max-width: 28rem;
}

.file-table th:nth-child(2),
.file-table td:nth-child(2),
.file-table .table-actions {
    white-space: nowrap;
}

.file-name {
    overflow-wrap: anywhere;
}
