.service-keys {
    --sk-ink: #263842;
    --sk-muted: #637780;
    --sk-line: #d7e1df;
    --sk-wash: #f3f7f5;
    --sk-paper: #fbfcfa;
    --sk-teal: #286b68;
    --sk-teal-dark: #1c514f;
    --sk-coral: #a94d3a;
    color: var(--sk-ink);
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.service-keys, .service-keys * { box-sizing: border-box; }
.service-keys [hidden] { display: none !important; }
.service-keys .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sk-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 22px 0 24px;
    border-bottom: 1px solid var(--sk-line);
}

.sk-eyebrow {
    color: var(--sk-teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sk-heading h1 {
    margin: 5px 0 8px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -.035em;
    font-weight: 650;
}

.sk-heading p, .sk-intro p {
    color: var(--sk-muted);
    line-height: 1.65;
}

.sk-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
    gap: 28px;
    padding: 20px 0 25px;
}

.sk-note {
    padding: 14px 16px;
    border-left: 3px solid var(--sk-teal);
    background: var(--sk-wash);
    color: var(--sk-ink);
    font-size: 13px;
    line-height: 1.6;
}
.sk-note strong { display: block; margin-bottom: 3px; }

.sk-grid {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 24px;
}

.sk-panel {
    border: 1px solid var(--sk-line);
    background: var(--sk-paper);
    border-radius: 12px;
    overflow: hidden;
}

.sk-panel-head {
    padding: 17px 19px 15px;
    background: var(--sk-wash);
    border-bottom: 1px solid var(--sk-line);
}
.sk-panel-head h2 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.sk-panel-head p { margin-top: 4px; color: var(--sk-muted); font-size: 12px; line-height: 1.5; }
.sk-form { padding: 18px 19px 20px; }
.sk-field { margin-bottom: 16px; }
.sk-field label, .sk-field legend {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 650;
}
.sk-field small { display: block; margin-top: 5px; color: var(--sk-muted); font-size: 11px; line-height: 1.45; }
.sk-input, .sk-search, .sk-secret-input {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #c8d5d2;
    border-radius: 7px;
    color: var(--sk-ink);
    background: #fff;
    font: inherit;
    font-size: 13px;
}
.sk-input:focus, .sk-search:focus, .sk-secret-input:focus, .sk-muni-check:focus-visible,
.sk-button:focus-visible, .sk-link:focus-visible {
    outline: 3px solid rgba(40, 107, 104, .24);
    outline-offset: 2px;
    border-color: var(--sk-teal);
}
.sk-muni-fieldset { min-width: 0; border: 0; padding: 0; }
.sk-muni-search-wrap { margin-bottom: 8px; }
.sk-muni-list {
    max-height: 225px;
    overflow-y: auto;
    border: 1px solid var(--sk-line);
    border-radius: 7px;
    background: #fff;
}
.sk-muni-option {
    display: flex;
    gap: 9px;
    align-items: center;
    min-height: 38px;
    padding: 7px 10px;
    border-bottom: 1px solid #edf1ef;
    font-size: 12px;
    cursor: pointer;
}
.sk-muni-option:last-child { border-bottom: 0; }
.sk-muni-option:hover { background: var(--sk-wash); }
.sk-muni-check { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--sk-teal); }
.sk-muni-empty { margin: 0; padding: 12px; color: var(--sk-muted); font-size: 12px; }
.sk-selected-count { margin-top: 7px; color: var(--sk-muted); font-size: 11px; }
.sk-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.sk-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.sk-button:active { transform: translateY(1px); }
.sk-button:disabled { opacity: .58; cursor: wait; }
.sk-primary { color: #fff; background: var(--sk-teal); }
.sk-primary:hover:not(:disabled) { background: var(--sk-teal-dark); }
.sk-secondary { color: var(--sk-ink); background: #fff; border-color: var(--sk-line); }
.sk-secondary:hover:not(:disabled) { background: var(--sk-wash); }
.sk-danger { color: var(--sk-coral); background: #fff; border-color: #e5c8c0; }
.sk-danger:hover:not(:disabled) { background: #fff5f2; }
.sk-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sk-message { min-height: 20px; margin: 10px 0 0; color: var(--sk-muted); font-size: 12px; line-height: 1.5; }
.sk-message[data-kind="error"] { color: #9c382c; }
.sk-message[data-kind="success"] { color: var(--sk-teal-dark); }

.sk-one-time {
    margin: 17px 0 0;
    padding: 15px;
    border: 1px solid #d9b76e;
    border-radius: 9px;
    background: #fff9e9;
}
.sk-one-time h3 { margin: 0 0 5px; font-size: 14px; }
.sk-one-time p { margin: 0 0 11px; color: #665b3c; font-size: 12px; line-height: 1.55; }
.sk-secret-row { display: flex; gap: 8px; }
.sk-secret-input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.sk-secret-actions { margin-top: 9px; }
.sk-copy-status { margin: 8px 0 0; color: #705f35; font-size: 11px; }
.sk-example { min-width: 0; border-top: 1px solid #d9b76e; padding-top: 14px; margin-top: 14px; }
.sk-example label { display: block; margin: 10px 0 5px; font-size: 12px; font-weight: 650; }
.sk-example .sk-button { margin: 6px 0 10px; max-width: 100%; }
.sk-example-value { resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }
.sk-one-time code { overflow-wrap: anywhere; }

.sk-list-panel { min-width: 0; }
.sk-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 17px;
    border-bottom: 1px solid var(--sk-line);
}
.sk-list-toolbar h2 { font-size: 16px; font-weight: 650; }
.sk-refresh { white-space: nowrap; }
.sk-list-content { min-height: 155px; }
.sk-state {
    padding: 26px 20px;
    color: var(--sk-muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}
.sk-skeleton { padding: 18px; }
.sk-skeleton-line {
    height: 11px;
    margin: 0 0 13px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e9efed, #f4f7f5, #e9efed);
    background-size: 200% 100%;
    animation: sk-shimmer 1.25s ease-in-out infinite;
}
@keyframes sk-shimmer { to { background-position: -200% 0; } }
.sk-keys { display: grid; }
.sk-key {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e8eeec;
}
.sk-key:last-child { border-bottom: 0; }
.sk-key-main { min-width: 0; }
.sk-key-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-key-title { overflow-wrap: anywhere; font-weight: 650; font-size: 13px; }
.sk-badge {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 20px;
    color: var(--sk-teal-dark);
    background: #e3f0ec;
    font-size: 10px;
    font-weight: 700;
}
.sk-badge-revoked { color: #79534a; background: #f2e8e4; }
.sk-fingerprint { margin-top: 5px; color: var(--sk-muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.sk-key-meta { display: flex; gap: 7px 13px; flex-wrap: wrap; margin-top: 9px; color: var(--sk-muted); font-size: 11px; line-height: 1.45; }
.sk-key-meta span { max-width: 100%; }
.sk-key-action { align-self: center; }
.sk-endpoints {
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--sk-line);
    border-radius: 10px;
    background: var(--sk-wash);
}
.sk-endpoints h2 { font-size: 14px; margin-bottom: 8px; }
.sk-endpoints p { margin: 5px 0; color: var(--sk-muted); font-size: 12px; line-height: 1.6; }
.sk-endpoints code { overflow-wrap: anywhere; color: var(--sk-ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.sk-links { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 8px; }
.sk-link { color: var(--sk-teal-dark); font-size: 12px; font-weight: 650; text-underline-offset: 3px; }

@media (max-width: 800px) {
    .sk-intro { grid-template-columns: 1fr; gap: 14px; }
    .sk-grid { grid-template-columns: 1fr; gap: 17px; }
}
@media (max-width: 520px) {
    .service-keys { padding-top: 0; }
    .sk-heading { padding: 17px 0 18px; }
    .sk-heading p { font-size: 12px; }
    .sk-form { padding: 15px; }
    .sk-panel-head { padding: 14px 15px; }
    .sk-dates { grid-template-columns: 1fr; gap: 0; }
    .sk-list-toolbar { align-items: flex-start; padding: 13px; }
    .sk-key { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
    .sk-key-action { justify-self: start; }
    .sk-secret-row { flex-direction: column; }
    .sk-secret-row .sk-button { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .sk-skeleton-line { animation: none; }
    .sk-button { transition: none; }
}
