:root { color-scheme: light; font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif; color: #17211b; background: #eef1ed; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #17211b 0 42%, #eef1ed 42%); }
.login-panel { width: min(400px, 100%); padding: 32px; border: 1px solid #d7ded8; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgb(23 33 27 / 16%); }
.mark { display: grid; place-items: center; width: 46px; height: 46px; color: #f7fb8f; background: #17211b; border-radius: 8px; font-weight: 800; letter-spacing: .04em; }
.mark.small { display: inline-grid; width: 28px; height: 28px; margin-right: 10px; font-size: 11px; vertical-align: middle; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 25px; }
h2 { margin-bottom: 4px; font-size: 19px; }
label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 650; }
input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #b9c2bb; border-radius: 6px; background: #fff; }
input:focus { outline: 3px solid rgb(50 112 79 / 20%); border-color: #32704f; }
.primary, .quiet, .danger, .danger-text, .icon-button { border: 0; border-radius: 6px; min-height: 44px; padding: 0 14px; }
.primary { color: #fff; background: #276347; font-weight: 700; }
.primary:hover { background: #1f513a; }
.quiet { color: #34433a; background: #e7ebe7; }
.danger { color: #fff; background: #a33c32; }
.danger-text { color: #92362d; background: #f7e8e6; }
.icon-button { width: 44px; min-height: 44px; flex-shrink: 0; padding: 0; background: transparent; font-size: 22px; }
.login-panel .primary { width: 100%; margin-top: 22px; }
.muted { color: #657168; }
.error { color: #a1281d; }
.center-view { width: min(1280px, 100%); margin: 0 auto; padding: 0 28px 40px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d3dad4; }
.topbar strong { font-size: 17px; }
.host { margin-left: 12px; color: #6b766e; font: 12px ui-monospace, monospace; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)) auto; gap: 1px; margin: 26px 0; overflow: hidden; border: 1px solid #d2dad3; border-radius: 8px; background: #d2dad3; }
.summary > div { display: grid; gap: 3px; padding: 18px 20px; background: #fff; }
.summary > div > span, .summary small { color: #68736b; font-size: 12px; }
.summary strong { font-size: 28px; line-height: 1.1; }
.summary .primary { align-self: center; margin: 0 18px; min-height: 44px; }
.keys-section { padding: 22px; border: 1px solid #d2dad3; border-radius: 8px; background: #fff; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.section-heading p { margin-bottom: 0; }
.section-heading > button { flex-shrink: 0; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.status.online { color: #195438; background: #dff1e5; }
.status.warning { color: #855d0d; background: #f8edce; }
.status.neutral { color: #58635b; background: #edf0ed; }
.status.error { color: #902c22; background: #f8e4e1; }
.empty { padding: 34px 0; text-align: center; color: #6d786f; }
dialog { width: min(480px, calc(100vw - 32px)); padding: 24px; border: 1px solid #c7d0c8; border-radius: 8px; box-shadow: 0 24px 80px rgb(23 33 27 / 25%); }
dialog::backdrop { background: rgb(16 27 20 / 55%); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 22px; }
.slug-field { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 5px; color: #59655c; font-family: ui-monospace, monospace; }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; min-height: 20px; }
#secret-value { display: block; padding: 13px; overflow-wrap: anywhere; border: 1px solid #cbd4cc; border-radius: 6px; background: #f4f7f3; font-size: 12px; }
@media (max-width: 720px) { .center-view { padding: 0 14px 24px; } .summary { grid-template-columns: 1fr 1fr; } .summary .primary { margin: 12px; grid-column: 1 / -1; } .topbar { align-items: flex-start; height: auto; padding: 14px 0; } .host { display: none; } .keys-section { padding: 16px; } }
.back-home { color: #276347; font-size: 13px; text-underline-offset: 4px; }
.login-panel .back-home { display: block; margin-top: 18px; text-align: center; }
.home-view { max-width: 1120px; margin: 0 auto; padding: 0 28px 48px; }
.home-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid #d3dad4; }
.home-brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; font-weight: 750; white-space: nowrap; }
.home-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.home-admin { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 14px; }
.home-intro { padding: 58px 0 30px; }
.home-eyebrow { color: #52695a; font-size: 13px; }
.home-intro h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.3; margin-bottom: 12px; }
.home-intro p:last-child { margin-bottom: 0; line-height: 1.7; }
.home-list-heading { display: flex; gap: 12px; align-items: center; }
.home-list-heading h2 { margin: 0; }
.home-nodes > p { margin: 14px 0 20px; font-size: 13px; line-height: 1.6; }
.home-nodes button { min-height: 44px; }
.home-node-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.home-node { display: flex; flex-direction: column; height: 100%; min-height: 200px; padding: 22px; border: 1px solid #cbd6ce; border-radius: 8px; color: inherit; background: #fff; text-decoration: none; }
.home-node:hover { border-color: #32704f; background: #f9fcf9; }
.home-view a:focus-visible, .home-view button:focus-visible, .back-home:focus-visible { outline: 3px solid #32704f; outline-offset: 4px; }
.home-node-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; color: #657168; font-size: 12px; }
.home-node strong { font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.home-node .mono { color: #657168; overflow-wrap: anywhere; margin: 6px 0 24px; }
.home-node-action { margin-top: auto; color: #276347; font-size: 14px; font-weight: 700; }
.home-empty { padding: 48px 20px; border: 1px dashed #b9c9bd; border-radius: 8px; text-align: center; background: #f8faf7; }
.home-empty strong { display: block; margin-bottom: 10px; font-size: 18px; }
.home-empty p { margin: 0; color: #657168; line-height: 1.7; }
@media (max-width: 960px) { .home-node-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-view { padding: 0 18px 32px; } .home-header { gap: 8px; } .home-admin { padding: 0 10px; font-size: 13px; } .home-intro { padding: 38px 0 28px; } .home-node-list { grid-template-columns: 1fr; } .home-node { min-height: 180px; } .top-actions { gap: 8px; } }

button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #32704f; outline-offset: 3px; }
select, textarea { width: 100%; padding: 10px; border: 1px solid #b9c2bb; border-radius: 6px; background: #fff; color: inherit; }
select { min-height: 44px; } textarea { resize: vertical; overflow-wrap: anywhere; }
input { min-height: 44px; }
p { line-height: 1.6; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.field-hint { color: #657168; font-size: 13px; margin: 8px 0; }
.notice { padding: 12px; border-radius: 6px; background: #f8edce; overflow-wrap: anywhere; }
#list-message { margin: 12px 0 0; overflow-wrap: anywhere; }
.filters { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(170px, 220px) auto; align-items: end; gap: 16px; margin-bottom: 20px; }
.filters label { margin-top: 16px; } .filters > span { padding-bottom: 12px; font-size: 13px; }
.node-list { display: grid; gap: 12px; }
.node-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(140px, .7fr) auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid #d7ded8; border-radius: 8px; }
.node-info { min-width: 0; } .node-info h3 { margin: 0 0 6px; font-size: 16px; overflow-wrap: anywhere; } .node-info .mono { color: #657168; overflow-wrap: anywhere; }
.node-meta { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; } .node-expiry { font-size: 13px; color: #657168; }
.node-actions { display: flex; gap: 8px; align-items: center; }
.node-enter { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; white-space: nowrap; font-size: 14px; }
.node-enter[aria-disabled="true"] { color: #657168; background: #edf0ed; cursor: default; }
.node-more { position: relative; } .node-more summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; } .node-more summary::-webkit-details-marker { display: none; }
.node-menu { position: absolute; z-index: 2; right: 0; top: calc(100% + 6px); display: grid; gap: 6px; min-width: 200px; padding: 8px; border: 1px solid #cbd4cc; border-radius: 8px; background: #fff; box-shadow: 0 10px 30px rgb(23 33 27 / 15%); }
.node-menu button { text-align: left; }
@media (max-width: 640px) { .node-actions { position: relative; } .node-more { position: static; } .node-menu { left: 0; right: 0; min-width: 0; max-height: min(320px, calc(100dvh - 32px)); overflow-y: auto; } }
.empty { line-height: 1.7; } .empty ol { max-width: 540px; padding-left: 26px; margin: 18px auto; text-align: left; } .empty li { margin: 10px 0; }
#node-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; font-size: 14px; } #node-details dt { color: #657168; } #node-details dd { margin: 0; overflow-wrap: anywhere; }
#secret-value { user-select: all; margin-bottom: 8px; } .dialog-actions { flex-wrap: wrap; }
@media (max-width: 1050px) { .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .summary > .primary { grid-column: 1 / -1; margin: 12px; } .node-row { grid-template-columns: minmax(0, 1fr) auto; } .node-meta { grid-column: 1; flex-direction: row; align-items: center; flex-wrap: wrap; } .node-actions { grid-column: 2; grid-row: 1 / 3; } }
@media (max-width: 640px) { .topbar { flex-wrap: wrap; gap: 12px; } .top-actions { width: 100%; justify-content: space-between; } .summary { margin: 18px 0; } .summary > div { padding: 14px; } .summary strong { font-size: 24px; } .filters { grid-template-columns: 1fr; gap: 0; } .filters > span { padding-top: 12px; padding-bottom: 0; } .section-heading { gap: 12px; } .node-row { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; } .node-actions { flex-wrap: wrap; } .node-actions .node-enter { flex: 1; } .node-actions button { font-size: 14px; padding: 0 10px; } .login-panel { padding: 24px; } dialog { padding: 20px; } }
