:root {
    color-scheme: light;
    --ink: #171722;
    --rail: #121321;
    --muted: #656575;
    --line: #e3e2ec;
    --soft: #f7f7fb;
    --lavender: #eeebfa;
    --purple: #67549d;
    --lime: #c8f76b;
    --danger: #a52f47;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--soft);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, form, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid #8072cb; outline-offset: 3px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
.icon { flex: none; width: 19px; height: 19px; }
.dashboard { display: grid; grid-template-columns: 218px minmax(0,1fr); min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; display: flex; flex-direction: column; align-self: start;
    height: 100vh; height: 100dvh; padding: 34px 16px 22px;
    background: var(--rail); color: #f5f4ff;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 26px; font-weight: 680; letter-spacing: -.055em; }
.sidebar .brand { align-self: start; padding: 0 10px; }
.brand-light { font-weight: 420; }
.brand-mark {
    display: grid; place-items: center; width: 38px; height: 42px; color: var(--lime);
}
.brand-mark .icon { width: 38px; height: 38px; stroke-width: 1.9; }
.sidebar nav { display: grid; gap: 5px; border-top: 1px solid #333343; margin-top: 29px; padding-top: 25px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 12px 13px; color: #b9b7cf; border-radius: 8px; font-weight: 580; font-size: 14px; }
.nav-link[aria-current] { color: #f4f0ff; background: #302d42; }
.nav-link .icon { color: #ae9bdc; }
.nav-link[aria-current] .icon { color: var(--lime); }
.nav-link:hover, .logout button:hover { background: #272635; color: #fff; }
.logout { margin-top: auto; border-top: 1px solid #333343; padding-top: 14px; }
.logout button { width: 100%; display: flex; align-items: center; gap: 13px; border-radius: 7px; border: 0; padding: 12px 13px; color: #d0cede; background: none; font-size: 14px; text-align: left; }
.logout .icon { color: #b3abcf; }
.workspace { min-width: 0; }
.topbar { min-height: 69px; padding: 0 clamp(22px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb, .api-link { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; }
.breadcrumb { color: var(--muted); }
.breadcrumb .icon { width: 12px; height: 12px; color: #9894a8; }
.breadcrumb strong { color: var(--ink); font-weight: 580; }
.api-link { color: #565164; padding: 8px 0; font-weight: 570; }
.api-link:hover { color: #382779; }
.api-link .icon { width: 15px; height: 15px; }
.api-link .icon-arrow { width: 13px; height: 13px; color: #817b8d; }
.workspace main { max-width: 1280px; margin: 0 auto; padding: clamp(34px, 5vw, 68px) clamp(22px, 4vw, 64px) 64px; }
h1 { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.07; letter-spacing: -.057em; font-weight: 630; }
h2 { font-size: 18px; line-height: 1.35; font-weight: 630; letter-spacing: -.028em; }
h3 { font-size: 20px; line-height: 1.36; font-weight: 630; letter-spacing: -.035em; }
p, small { color: var(--muted); line-height: 1.5; }
.heading, .list-head, .buttons, .form-card-head, .actions > a { display: flex; align-items: center; }
.heading { justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.heading p { margin-top: 9px; font-size: 15px; }
.primary, .secondary, .destructive {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; border-radius: 8px;
    padding: 10px 17px; font-size: 14px; line-height: 1.4; font-weight: 630; white-space: nowrap;
}
.primary { color: #17200d; background: var(--lime); border: 1px solid #b9e95b; }
.primary:hover { background: #bbed59; }
.primary .icon, .destructive .icon { width: 17px; height: 17px; }
.secondary { border: 1px solid var(--line); background: #fff; }
.secondary:hover { background: var(--soft); }
.destructive { border: 1px solid #a52f47; color: #fff; background: #ac314b; }
.destructive:hover { background: #91253d; }
.list-card, .form-card, .login-card { border: 1px solid var(--line); border-radius: 15px; background: #fff; overflow: hidden; box-shadow: 0 3px 10px #292a4505; }
.list-head { justify-content: space-between; gap: 12px; padding: 22px 24px; }
.list-head h2 { display: inline-flex; align-items: center; gap: 10px; }
.total { font: 600 12px/1 var(--mono); color: var(--purple); background: var(--lavender); padding: 5px 7px; border-radius: 5px; }
.active-count { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; color: var(--muted); }
.dot, .state::before { width: 7px; height: 7px; border-radius: 50%; background: #67a845; flex: none; }
.directory { border-collapse: collapse; width: 100%; text-align: left; }
.directory th, .directory td { padding: 15px 12px; border-top: 1px solid var(--line); }
.directory th:first-child { padding-left: 24px; }
.directory td:last-child, .directory th:last-child { padding-right: 24px; }
.directory thead { color: #6d687c; background: #f7f6fb; }
.directory thead th { white-space: nowrap; font-size: 12px; font-weight: 570; padding-top: 11px; padding-bottom: 11px; }
.directory tbody tr:hover { background: #fcfbff; }
.directory tbody th { min-width: 130px; }
.server-name { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 620; }
.server-name:hover .wrap { text-decoration: underline; }
.wrap, code, .details dd { overflow-wrap: anywhere; }
.tile { flex: none; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--purple); background: var(--lavender); }
.tile.large { width: 50px; height: 50px; border-radius: 13px; }
.tile.large .icon { width: 24px; height: 24px; }
.tile.danger { color: var(--danger); background: #f9eaf0; }
.address { color: #484656; font-size: 13px; }
code { font: 500 0.98em/1.45 var(--mono); }
.state { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 5px; font-size: 12px; line-height: 1.25; font-weight: 600; white-space: nowrap; }
.state::before { content: ""; width: 6px; height: 6px; }
.online { color: #3c5b2e; background: #eef6e8; }
.offline { color: #625f70; background: #efedf2; }
.offline::before { background: #8f8897; }
.action-heading, .actions { text-align: right; }
.actions { white-space: nowrap; }
.actions > a { display: inline-flex; gap: 5px; }
.row-action { min-height: 34px; padding: 4px 7px; border-radius: 6px; color: #5b4e82; font-size: 13px; font-weight: 600; }
.row-action .icon { width: 15px; height: 15px; }
.row-action:hover { background: var(--lavender); }
.row-action.delete { color: var(--danger); }
.row-action.delete:hover { background: #faecf1; }
.empty { text-align: center; min-height: 268px; border-top: 1px solid var(--line); padding: 29px 18px 40px; }
.empty p { font-size: 14px; margin-top: 5px; }
.empty-graphic { display: grid; place-items: center; margin: 0 auto 10px; width: 130px; height: 108px; }
.ring { width: 93px; height: 93px; position: relative; display: grid; place-items: center; border: 1px dashed #d4cbe5; border-radius: 50%; background: #fbfaff; }
.ring::before { content: ""; position: absolute; inset: 10px; border: 1px solid #e4ddef; border-radius: 50%; }
.ring .tile { width: 46px; height: 46px; position: relative; }
.ring .icon { width: 25px; height: 25px; }
.back { color: #615484; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 580; }
.back:hover { text-decoration: underline; }
.back .icon { width: 15px; height: 15px; }
.form-heading { margin-bottom: 26px; }
.form-heading .back { margin-bottom: 13px; }
.form-card { padding: clamp(22px, 3vw, 33px); max-width: 660px; }
.form-card-head { gap: 11px; }
.fields { display: flex; flex-direction: column; }
.fields > label { font-size: 14px; font-weight: 610; margin: 21px 0 7px; }
.fields select, .fields input:not([type=checkbox],[type=hidden]) { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); border: 1px solid #c8c6d3; background: #fdfdff; border-radius: 7px; }
.fields input::placeholder { color: #797484; }
.fields small, .optional { color: var(--muted); font-size: 13px; font-weight: 400; }
.fields small { margin-top: 6px; }
.fields .check { display: flex; gap: 9px; align-items: center; margin-bottom: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.switch-row label { cursor: pointer; }
.switch-row strong { font-size: 15px; font-weight: 620; }
.switch-row small { display: block; margin-top: 4px; }
.switch { appearance: none; flex: none; width: 43px; height: 25px; margin: 0; padding: 3px; border: 1px solid #aaa7b4; border-radius: 20px; background: #c4c1ce; cursor: pointer; }
.switch::before { content: ""; display: block; width: 17px; height: 17px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #1717223d; }
.switch:checked { background: var(--lime); border-color: #8baa62; }
.switch:checked::before { transform: translateX(17px); background: #223615; }
.settings-form textarea { resize: vertical; min-height: 82px; max-width: 100%; font: inherit; color: var(--ink); line-height: 1.5; padding: 10px 12px; border: 1px solid #c8c6d3; border-radius: 7px; background: #fdfdff; }
.settings-form textarea:focus-visible { outline: 3px solid #8072cb; outline-offset: 3px; }
.saved { color: #345a2a; background: #eff7e7; padding: 11px 13px; border-radius: 7px; font-size: 14px; margin-top: 18px; }
.check input { margin: 0; width: 17px; height: 17px; accent-color: #574779; }
.buttons { margin-top: 25px; display: flex; gap: 9px; }
.details { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 2fr); gap: 12px 16px; padding: 18px; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { font-weight: 610; }
.confirm p { margin: 18px 0; }
.notice { color: #92233c; background: #ffedf0; padding: 11px 13px; border-radius: 7px; font-size: 14px; margin-top: 18px; }
.skip { position: fixed; left: 8px; top: -70px; z-index: 5; background: #fff; padding: 8px; }
.skip:focus { top: 8px; }
.login-bg { min-height: 100vh; background: linear-gradient(155deg,#f4f3fa 0%,#fbfafc 62%,#f4f3fa 100%); }
.login { width: min(calc(100% - 36px), 430px); margin: 0 auto; padding: clamp(50px, 13vh, 132px) 0 32px; }
.login-banner { padding: 19px 26px; border-radius: 15px 15px 0 0; background: var(--rail); color: #fff; }
.login-card { padding: 29px; border-top: 0; border-radius: 0 0 15px 15px; }
.login-card h1 { font-size: 29px; margin: 14px 0 5px; }
.login-card p { font-size: 14px; }
.login-card .full, .login-card .back { margin-top: 20px; }
.full { justify-content: space-between; }
@media (min-width: 821px) and (max-width: 1050px) {
    .dashboard { grid-template-columns: 186px minmax(0,1fr); }
    .sidebar { padding-left: 10px; padding-right: 10px; }
    .topbar, .workspace main { padding-left: 22px; padding-right: 22px; }
    .row-action { padding-left: 4px; padding-right: 4px; }
    .directory th, .directory td { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 820px) {
    .dashboard { display: block; }
    .sidebar { position: static; height: auto; padding: 11px 18px; flex-direction: row; align-items: center; gap: 17px; }
    .sidebar .brand { align-self: center; padding: 0; }
    .sidebar nav { display: flex; margin: 0 0 0 auto; padding: 0; border: 0; }
    .nav-link { padding: 9px; gap: 6px; }
    .logout { margin: 0; padding: 0; border: 0; }
    .logout button { padding: 8px; }
    .logout button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
    .topbar { min-height: 45px; }
}
@media (max-width: 640px) {
    .sidebar { flex-wrap: wrap; gap: 8px 16px; padding: 13px 16px 9px; }
    .brand { font-size: 23px; gap: 7px; }
    .brand-mark { width: 31px; height: 34px; }
    .brand-mark .icon { width: 31px; height: 31px; }
    .sidebar nav { order: 3; width: 100%; gap: 4px; border-top: 1px solid #333343; padding-top: 7px; }
    .nav-link { padding: 8px 11px; font-size: 13px; }
    .logout { margin-left: auto; }
    .logout button span { position: static; width: auto; height: auto; clip-path: none; }
    .logout button { gap: 6px; padding: 7px; }
    .topbar { min-height: 43px; padding: 0 16px; }
    .api-link, .breadcrumb { font-size: 12px; gap: 6px; }
    .workspace main { padding: 31px 16px 42px; }
    h1 { font-size: 34px; }
    .heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 19px; }
    .heading p { margin-top: 6px; font-size: 14px; }
    .list-head { padding: 16px; }
    .list-head h2 { font-size: 17px; gap: 7px; }
    .directory, .directory tbody { display: block; }
    .directory thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
    .directory tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; border-top: 1px solid var(--line); padding: 14px 16px 9px; }
    .directory tbody th, .directory tbody td { min-width: 0; padding: 0; border: 0; }
    .directory tbody th { grid-area: 1 / 1; align-self: center; }
    .server-name { gap: 8px; }
    .server-name .tile { width: 28px; height: 28px; border-radius: 7px; }
    .server-name .icon { width: 15px; height: 15px; }
    .status { grid-area: 1 / 2; align-self: center; justify-self: end; }
    .address { grid-area: 2 / 1 / 3 / -1; }
    .address::before { content: attr(data-label); margin-right: 8px; color: var(--muted); font-size: 12px; }
    .actions { grid-area: 3 / 1 / 4 / -1; justify-self: end; }
    .row-action { min-height: 37px; }
    .form-card, .login-card { padding: 20px; }
}

.support-row { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); }
.support-row:hover { background: var(--soft); }
.support-row > .icon { width: 15px; color: var(--muted); flex: none; }
.support-subject { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.support-subject strong, .support-subject small { display: block; }
.support-subject small, .post-head time, .support-id { color: var(--muted); font-size: 13px; }
.reply-state { padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.reply-state.pending { color: #624b86; background: #f0e9f9; }
.reply-state.answered { color: #355934; background: #edf5e8; }
.ticket-title, .support-id, .post p { overflow-wrap: anywhere; }
.support-id { margin-top: 9px; }
.thread-card { max-width: 820px; }
.posts { list-style: none; padding: 0; margin: 16px 0 0; }
.post { max-width: 90%; margin: 10px 0; padding: 14px 16px; border: 1px solid var(--line); background: #fbfaff; border-radius: 12px 12px 12px 3px; }
.post.admin { margin-left: auto; background: #f3f8ec; border-radius: 12px 12px 3px 12px; }
.post-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.post p { color: var(--ink); margin-top: 6px; white-space: pre-wrap; }
@media (max-width: 640px) {
    .sidebar nav { flex-wrap: wrap; }
    .nav-link { padding: 7px 8px; }
    .support-row { gap: 8px; padding: 13px; }
    .post { max-width: 96%; }
}

.privacy-document { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 60px) 22px; color: var(--ink); }
.privacy-document header { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.privacy-document header p { font-weight: 700; color: var(--purple); }
.privacy-document h1 { margin-top: 10px; font-size: clamp(2rem, 6vw, 3.25rem); }
.privacy-document section { margin-top: 26px; }
.privacy-document h2 { margin: 0 0 8px; font-size: 1.2rem; }
.privacy-document section p { line-height: 1.65; }

.activity-filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.activity-filters label { display: grid; min-width: 112px; gap: 5px; font-size: 12px; font-weight: 620; color: var(--muted); }
.activity-filters input { padding: 8px; min-height: 42px; min-width: 0; border: 1px solid #c8c6d3; border-radius: 7px; color: var(--ink); }
.activity-filters .back { align-self: center; }
.activity-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 9px; margin: 16px 0; }
.activity-metrics div { padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.activity-metrics small, .activity-row summary span { color: var(--muted); font-size: 13px; }
.activity-metrics strong { display: block; font-size: 20px; margin-top: 4px; }
.activity-row summary { display: flex; align-items: baseline; gap: 7px 14px; flex-wrap: wrap; cursor: pointer; padding: 13px 17px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.activity-row summary b { font-size: 12px; color: var(--purple); margin-left: auto; }
.activity-row summary::before { content: "▸"; }
.activity-row[open] summary::before { content: "▾"; }
.activity-row dl { margin: 0 16px 14px; overflow-wrap: anywhere; }
@media (max-width: 1060px) and (min-width: 641px) { .sidebar nav { flex-wrap: wrap; } }

.apple-scroll { max-width: 100%; overflow-x: auto; }
.apple-table { min-width: 720px; width: 100%; border-collapse: collapse; text-align: left; }
.apple-table th, .apple-table td { padding: 14px 12px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.apple-table thead th { background: var(--soft); color: var(--muted); font-weight: 650; font-size: 12px; }
.apple-table th:first-child, .apple-table td:first-child { padding-left: 19px; }
.apple-table tbody tr:hover { background: #fcfbff; }
.apple-table .apple-id, .apple-table td { overflow-wrap: anywhere; }
.apple-id { font-family: var(--mono); font-size: 12px; }
.apple-table a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.workspace main > p + .list-card, .workspace main > .list-card + .list-card { margin-top: 16px; }
.apple-table { min-width: 910px; }
.apple-table td { overflow-wrap: normal; }
.apple-table tbody th a, .apple-table .state { white-space: nowrap; }
.apple-table .apple-id { overflow-wrap: break-word; }

.live-table small { display: block; margin-top: 4px; color: var(--muted); }
.live-command { padding: 12px 16px; background: var(--soft); border-radius: 8px; }

.public-language { font-size: .92rem; }
.privacy-document a { color: #54438a; text-decoration: underline; text-underline-offset: .16em; }
.privacy-document > p { line-height: 1.65; }
.public-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin: 2rem 0 1rem; }
.privacy-document footer { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.web-ticket { margin-top: 1.5rem; }
.web-ticket label { display: grid; gap: .45rem; }
.web-ticket button { justify-self: start; }
.web-ticket label:has([type="checkbox"]) { display: block; }
.web-ticket [type="checkbox"] { width: auto; }
.web-ticket summary { cursor: pointer; }
