:root {
    --bg: #f5f7fa;
    --panel: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #d8dee8;
    --accent: #1769aa;
    --accent-dark: #105080;
    --ok: #087443;
    --danger: #b42318;
    --warn: #946200;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
    height: 36px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    padding: 0 12px;
    font-weight: 650;
    cursor: pointer;
}

button:hover {
    background: var(--accent-dark);
}

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

button.small {
    height: 30px;
    padding: 0 9px;
    font-size: 12px;
}

button.danger {
    border-color: var(--danger);
    background: var(--danger);
}

.button-link {
    display: inline-flex;
    height: 36px;
    align-items: center;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    padding: 0 12px;
    font-weight: 650;
    text-decoration: none;
}

.button-link:hover {
    background: var(--accent-dark);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    outline: none;
}

input,
select {
    height: 36px;
    padding: 0 9px;
}

textarea {
    min-height: 84px;
    padding: 9px;
    resize: vertical;
}

textarea.yaml {
    min-height: 520px;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

label.check {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--text);
    font-size: 14px;
}

label.check input {
    width: auto;
    height: auto;
}

label.setting-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: start;
    color: var(--text);
    font-size: 14px;
}

label.setting-check .field-help {
    grid-column: 2;
}

.wide-field {
    margin-top: 12px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    padding: 14px 22px;
}

.topbar div {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.topbar span {
    color: var(--muted);
}

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

nav {
    border-right: 1px solid var(--line);
    background: #fff;
    padding: 16px;
}

nav a {
    display: block;
    border-radius: 6px;
    color: var(--text);
    padding: 9px 10px;
    text-decoration: none;
}

nav a.active,
nav a:hover {
    background: #eaf3fb;
    color: var(--accent-dark);
}

main {
    min-width: 0;
    padding: 22px;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 18px;
}

.login-panel {
    display: grid;
    width: min(420px, 100%);
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 20px;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 17px;
}

.section-head,
.hero {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.section-head span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 16px;
    margin-bottom: 16px;
}

.panel h2 {
    margin-bottom: 14px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.panel-head h2 {
    margin-bottom: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 12px;
    width: min(560px, 100%);
}

.stats div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.stats span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.stats strong {
    display: block;
    margin-top: 4px;
    font-size: 26px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
}

.service-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.service-grid .wide {
    grid-column: span 2;
}

.service-grid.tunnel-grid {
    margin-top: 14px;
}

.service-grid.tunnel-grid code {
    display: block;
    max-width: none;
}

.service-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.service-grid strong {
    display: block;
    margin-top: 4px;
    min-height: 20px;
    overflow-wrap: anywhere;
}

.service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.logs-box {
    margin-top: 14px;
}

.logs-box pre {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #101828;
    color: #f2f4f7;
    padding: 12px;
    font: 12px/1.45 "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    white-space: pre-wrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
}

.api-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr) minmax(0, 1.4fr) auto;
    gap: 12px;
    align-items: end;
}

.api-response {
    max-height: 620px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #101828;
    color: #f2f4f7;
    padding: 12px;
    font: 12px/1.5 "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    white-space: pre-wrap;
}

.api-meta {
    margin-bottom: 14px;
}

.settings-grid {
    display: grid;
    gap: 12px;
    align-items: start;
}

.settings-grid.one {
    grid-template-columns: 1fr;
}

.settings-grid.two {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.settings-grid.three {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.timing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    align-items: start;
}

textarea.proxies {
    min-height: 260px;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
}

.hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.hint.no-margin {
    margin: 0;
}

.inline-hint {
    align-self: center;
    margin: 0;
}

.field-help {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.domain-check-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.domain-check-results {
    margin-top: 14px;
    overflow-x: auto;
}

.domain-check-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    color: var(--muted);
}

.domain-check-head strong {
    color: var(--text);
}

.mono {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.sticky-actions span {
    color: var(--muted);
}

.collapsed-panel details {
    min-width: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.form-actions span {
    color: var(--muted);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
}

code {
    display: inline-block;
    max-width: 100%;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

td code {
    display: block;
    max-width: 280px;
    margin-top: 4px;
}

.stack-table td {
    vertical-align: middle;
}

.stack-table td:first-child {
    min-width: 220px;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
}

.badge.ok {
    background: #e6f6ee;
    color: var(--ok);
}

.badge.danger {
    background: #ffe9e7;
    color: var(--danger);
}

.badge.warn {
    background: #fff4d6;
    color: var(--warn);
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

details {
    min-width: 280px;
}

summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 650;
}

.edit-form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.alert {
    border: 1px solid #b7e4ce;
    border-radius: 8px;
    background: #ecfdf3;
    color: var(--ok);
    padding: 10px 12px;
    margin-bottom: 14px;
}

.alert.error {
    border-color: #f4b7b0;
    background: #fff1f0;
    color: var(--danger);
}

.package-modal {
    width: min(720px, calc(100vw - 32px));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    padding: 18px;
    color: var(--text);
}

.package-modal::backdrop {
    background: rgba(15, 23, 42, 0.42);
}

.modal-head,
.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.modal-head h2 {
    margin: 0;
    font-size: 20px;
}

#package-copy-text {
    width: 100%;
    min-height: 230px;
    border-color: #cbd5e1;
    background: #f8fafc;
    margin-top: 12px;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
}

.modal-form {
    margin-top: 14px;
}

.modal-form textarea {
    min-height: 120px;
}

.modal-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

@media (max-width: 920px) {
    .app,
    .api-form,
    .form-grid,
    .settings-grid,
    .timing-grid,
    .service-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .service-grid .wide {
        grid-column: auto;
    }

    nav {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .topbar,
    .section-head,
    .hero {
        align-items: stretch;
        flex-direction: column;
    }
}


/* --- Боковое меню и раздел «Клиенты и ключи» (задача 0021) --- */

nav.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100vh;
}

nav.sidebar .brand {
    padding: 4px 10px 14px;
    font-weight: 700;
    font-size: 15px;
}

nav.sidebar .sidebar-foot {
    margin-top: auto;
    padding: 0 10px;
}

.button-link.ghost {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.row-actions.no-margin {
    margin: 0;
}

.crm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 16px;
    align-items: start;
}

.crm-list,
.crm-card {
    margin-bottom: 0;
}

.crm-card {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.crm-card h3 {
    margin: 18px 0 8px;
    font-size: 14px;
}

.crm-search {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.crm-search input {
    flex: 1;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    padding: 3px 10px;
    font-size: 12px;
    text-decoration: none;
}

.chip.active,
.chip:hover {
    border-color: #b9d6ee;
    background: #eaf3fb;
    color: var(--accent-dark);
}

.crm-table td {
    vertical-align: middle;
}

.crm-table tbody tr[data-href] {
    cursor: pointer;
}

.crm-table tbody tr[data-href]:hover {
    background: #f7fafd;
}

.crm-table tbody tr.selected {
    background: #eaf3fb;
}

.crm-table a {
    color: var(--text);
    text-decoration: none;
}

.crm-table td.right {
    text-align: right;
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: start;
}

.key-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.key-card.revoked {
    opacity: .6;
}

.key-card.fresh {
    border-color: #8fc3ea;
    background: #f4f9fd;
}

.key-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.key-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.key-value code {
    display: inline-block;
    margin: 0;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.key-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.key-actions form,
.crm-table form {
    margin: 0;
}

.key-card details,
.crm-card details {
    min-width: 0;
    margin-top: 8px;
}

.new-key {
    display: grid;
    gap: 12px;
}

.new-key form {
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 10px;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
    margin-top: 10px;
}

.edit-form.narrow {
    max-width: 720px;
}

.journal {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.journal li {
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
}

.badge.info {
    background: #e8f1fb;
    color: var(--accent-dark);
}

.badge.muted {
    background: #eef0f3;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .crm {
        grid-template-columns: 1fr;
    }

    .crm-card {
        position: static;
        max-height: none;
    }
}

@media (max-width: 760px) {
    .app {
        grid-template-columns: 1fr;
    }

    nav.sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
    }

    nav.sidebar .sidebar-foot {
        margin-top: 0;
    }
}

.stats.four {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    width: min(720px, 100%);
}

/* --- Страница клиента и выбор галочками --- */

.back-link {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

.button-link.small-link {
    padding: 4px 10px;
    font-size: 12px;
}

.key-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 12px;
}

.key-grid .key-card {
    margin: 0;
}

.key-facts {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 4px 10px;
    margin: 10px 0 0;
    font-size: 13px;
}

.key-facts dt {
    color: var(--muted);
}

.key-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.new-key.two {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

.new-key h3 {
    margin: 0;
    font-size: 15px;
}

label.short {
    max-width: 160px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 16px;
}

.field-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.picker {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
    padding: 8px 10px;
}

.picker label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--text);
    font-weight: 400;
}

.picker input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.picker-all {
    font-weight: 650 !important;
}

.picker-group {
    margin-top: 8px;
}

.picker-title {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.picker-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.picker.is-all .picker-group {
    opacity: .45;
}

.notes {
    border-left: 3px solid var(--line);
    color: var(--muted);
    margin: -6px 0 16px;
    padding: 2px 10px;
}

.key-value.big code {
    font-size: 15px;
}

.key-value.big {
    margin: -6px 0 16px;
}

.segmented {
    display: inline-flex;
    gap: 6px;
}

.segmented label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 400;
    cursor: pointer;
}

.segmented input {
    width: auto;
    margin: 0;
}

.segmented label:has(input:checked) {
    border-color: #8fc3ea;
    background: #eaf3fb;
    color: var(--accent-dark);
}

.term-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.presets {
    display: flex;
    gap: 6px;
    padding-bottom: 2px;
}

.manage-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.manage-row:last-child {
    border-bottom: 0;
}

.manage-row form {
    margin: 0;
}

.key-head .button-link.small-link {
    margin-left: auto;
}

.manage-row button,
.key-actions button,
.row-actions .button-link,
.row-actions button {
    white-space: nowrap;
}

/* --- Статистика ключа --- */

.bars {
    display: flex;
    align-items: stretch;
    gap: 3px;
    height: 120px;
    margin: 6px 0 14px;
}

.bar {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.bar-stack {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 3px;
    background: #f1f4f8;
    overflow: hidden;
}

.bar-ok {
    display: block;
    background: #4f8fd0;
}

.bar-denied {
    display: block;
    background: #e8a19a;
}

.bar-label {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
}

.usage-tables table td {
    padding: 6px 8px;
}

.legend {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    vertical-align: -1px;
}

.legend.ok {
    background: #4f8fd0;
}

.legend.denied {
    background: #e8a19a;
    margin-left: 10px;
}

.usage-legend {
    margin: 12px 0 0;
}

.key-title-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

.key-title-link:hover strong {
    text-decoration: underline;
}

.button-link svg {
    vertical-align: -2px;
}

.key-head .icon-link {
    margin-left: auto;
    padding: 4px 7px;
    line-height: 1;
}

.key-head .icon-link + .button-link.small-link {
    margin-left: 0;
}

/* --- Список клиентов: запросы --- */

.sort-link {
    color: inherit;
    text-decoration: none;
}

.sort-link.active,
.sort-link:hover {
    color: var(--accent, #1f5fa8);
}

.clients-table {
    table-layout: fixed;
}

.clients-table .c-client { width: 34%; }
.clients-table .c-keys { width: 16%; }
.clients-table .c-activity { width: 30%; }
.clients-table .c-term { width: 20%; }

.clients-table td {
    vertical-align: middle;
}

.client-name {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.activity {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.spark {
    display: inline-flex;
    align-items: flex-end;
    gap: 1px;
    height: 22px;
}

.spark i {
    display: block;
    width: 4px;
    border-radius: 1px;
    background: #4f8fd0;
}

.spark i.empty {
    background: #dfe6ee;
}

.activity-day {
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.activity-sub {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #c5ccd6;
    vertical-align: 1px;
}

.pulse.live {
    background: #2e9e5b;
}

.text-danger {
    color: #b3261e;
}

.group-row td {
    padding: 0;
    background: #f6f8fa;
}

.group-toggle {
    width: 100%;
    height: auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.group-toggle:hover,
.group-toggle:focus-visible {
    background: #eef2f6;
    color: var(--text);
}

.group-toggle:disabled {
    background: transparent;
    color: var(--muted);
    cursor: default;
}

.group-toggle .chevron {
    display: inline-block;
    margin-right: 4px;
    transition: transform .15s;
}

.group-toggle.open .chevron {
    transform: rotate(90deg);
}

.dead-row td {
    color: var(--muted);
}

.dead-row .client-name {
    color: var(--muted);
}

.quiet-row {
    display: none;
}

.show-quiet .quiet-row {
    display: table-row;
}

/* --- Доступ по IP --- */

.segmented.wrap {
    flex-wrap: wrap;
}

.access-lists {
    align-items: start;
}

.sources-table {
    table-layout: fixed;
}

.sources-table .c-src { width: 44%; }
.sources-table .c-req { width: 12%; }
.sources-table .c-last { width: 18%; }
.sources-table .c-act { width: 26%; }

.sources-table code {
    word-break: break-all;
}

.sources-gap {
    margin-top: 16px;
}

.access-lists textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

.sources-table td,
.sources-table th {
    padding: 6px 8px;
}

.sources-table .inline-form {
    display: inline;
}

.nowrap {
    white-space: nowrap;
}

.access-lists textarea::placeholder {
    color: #b4bcc8;
    font-style: italic;
}

.token-ips summary {
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
}

.token-ips textarea {
    width: 100%;
    margin: 6px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.token-source {
    margin-top: 4px;
    font-size: 12px;
}

.token-source .inline-form {
    display: inline;
}
