:root { color-scheme: dark; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #090f1c; color: #f4f6fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 76% -8%, #233758 0, transparent 33%), #090f1c; }
main { max-width: 1280px; margin: 0 auto; padding: 40px 28px 80px; }
.hidden { display: none !important; }
.masthead { padding: 8px 0 40px; border-bottom: 1px solid #2a3752; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .16em; }
.brand b, .quiet { color: #84e4d4; }
.brand-tail { color: #657d9e; font-size: 11px; }
.mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #79e4cf; border-radius: 9px; color: #79e4cf; font-size: 19px; }
.eyebrow { color: #8da1bc; font-size: 12px; letter-spacing: .2em; margin-top: 54px; }
.eyebrow.small { margin: 0; font-size: 10px; }
h1 { font-size: clamp(33px, 4.6vw, 58px); letter-spacing: -.05em; line-height: 1.16; max-width: 850px; margin: 12px 0 17px; }
.masthead p { color: #9eafc7; max-width: 770px; line-height: 1.75; margin: 0; }
.panel { margin-top: 24px; padding: 25px; border: 1px solid #2c3850; border-radius: 18px; background: #111a2b; box-shadow: 0 18px 42px #0002; }
.login { max-width: 820px; margin-top: 34px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 13px; font-weight: 750; letter-spacing: .08em; color: #dbe6f5; margin-bottom: 20px; }
.minor, .hint { color: #89a0bd; font-size: 12px; line-height: 1.65; }
.hint { margin: 16px 0 21px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; max-width: 780px; }
.form-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; max-width: none; }
label { color: #aebfd3; font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
input, select { width: 100%; padding: 11px 12px; border-radius: 9px; border: 1px solid #3a4962; outline: none; background: #0b1321; color: #f4f6fa; font: inherit; }
input:focus, select:focus { border-color: #79e4cf; box-shadow: 0 0 0 3px #79e4cf25; }
button { cursor: pointer; font: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
.primary, .danger { justify-self: start; padding: 11px 17px; border: 0; border-radius: 9px; font-size: 12px; font-weight: 750; min-height: 41px; }
.primary { color: #071821; background: #82e4d0; }
.danger { background: #593038; color: #f8bec3; }
.quiet { border: 0; background: transparent; text-decoration: none; padding: 7px; font-size: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 34px; }
.toolbar h2 { margin: 8px 0 3px; font-size: 28px; letter-spacing: -.03em; }
.toolbar-actions { display: flex; gap: 15px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.metric { padding: 18px; border: 1px solid #2c3850; border-radius: 13px; background: #111a2b; }
.metric strong { display: block; font-size: 26px; letter-spacing: -.04em; margin: 10px 0 4px; }
.metric span { color: #8da1bc; font-size: 11px; letter-spacing: .08em; }
.metric small { color: #93a6c0; font-size: 11px; overflow-wrap: anywhere; }
.coverage { border-left: 3px solid #82e4d0; background: #152b39; padding: 13px 17px; color: #b4d8d6; font-size: 12px; line-height: 1.7; margin: 18px 0 8px; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.asset-group h3 { color: #829aba; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.asset-group ul { list-style: none; padding: 0; margin: 0; }
.asset-group li { color: #d6e1f0; padding: 7px 0; border-bottom: 1px solid #26344c; font-size: 12px; overflow-wrap: anywhere; }
.asset-group small { color: #7890ac; float: right; margin-left: 8px; }
.stack { display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border: 1px solid #293951; border-radius: 10px; background: #0b1321; padding: 13px 15px; }
.row-main { min-width: 0; }
.row strong { display: block; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.row small { display: block; color: #879db7; font-size: 11px; margin-top: 5px; overflow-wrap: anywhere; line-height: 1.5; }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions button { border: 1px solid #42556f; border-radius: 7px; background: transparent; color: #b8e6df; font-size: 11px; padding: 7px 10px; white-space: nowrap; }
.badge { display: inline-block; color: #88e3d2; background: #1a4147; border-radius: 6px; padding: 4px 7px; font-size: 10px; margin-right: 8px; }
.badge.stale, .badge.rejected, .badge.expired { color: #efa2a6; background: #472a34; }
.badge.pending, .badge.in_review, .badge.draft { color: #f0d2a5; background: #4c3e2b; }
.badge.published, .badge.approved { color: #8ce2d4; background: #1b4144; }
.preview { border-left: 3px solid #80dfcd; margin: 10px 0 0; padding: 10px 14px; background: #102432; color: #c7dcdf; font-size: 12px; line-height: 1.65; }
.preview p { margin: 4px 0; }
.notice { color: #9cb2ce; min-height: 22px; margin-top: 20px; font-size: 13px; }
.notice.error { color: #f0a9ae; }
.one-time { padding: 12px 15px; background: #1a3e42; color: #d2f3ee; border-radius: 8px; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .columns { grid-template-columns: 1fr; } .form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { main { padding: 25px 15px 60px; } .eyebrow { margin-top: 38px; } .form-grid, .form-grid.compact, .metrics, .assets { grid-template-columns: 1fr; } .toolbar { align-items: start; } .toolbar-actions { flex-direction: column; gap: 2px; } .row { flex-direction: column; } .row-actions { justify-content: flex-start; } .panel { padding: 18px; } }

.preview pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 460px; overflow-y: auto; font-size: 11px; }
.badge.error, .badge.revoked, .badge.stopped { color: #efa2a6; background: #472a34; }

.badge.已接管 { color: #9ae7d4; background: #204546; }
.badge.未接管, .badge.待确认 { color: #f0d2a5; background: #4c3e2b; }
#inventory .row strong { overflow-wrap: anywhere; }

.row-main { min-width: 0; overflow-wrap: anywhere; }
.preview { overflow-wrap: anywhere; }
.preview button { border: 1px solid #4c647c; background: #173345; color: #b8e6df; border-radius: 7px; padding: 8px 12px; margin: 7px 0; }

.badge.已观察 { color: #f0d2a5; background: #4c3e2b; }
