:root { color-scheme: light; font-family: Arial, "Microsoft YaHei", sans-serif; color: #1c2524; background: #f5f7f6; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { background: #fff; border-bottom: 1px solid #dbe2df; }
.topbar-inner { max-width: 1200px; margin: auto; padding: 0 22px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 20px; font-weight: 700; color: #125348; }
.brand span { margin-left: 9px; color: #5c6864; font-size: 13px; font-weight: 400; }
.workspace { max-width: 1200px; margin: auto; padding: 28px 22px 64px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
h1, h2, p { margin: 0; }
h1 { font-size: 25px; line-height: 1.3; }
h2 { font-size: 17px; line-height: 1.4; }
.page-heading p { color: #68736e; font-size: 13px; margin-top: 6px; }
section { border-top: 1px solid #dce3df; padding: 20px 0 28px; }
.section-heading { display: flex; gap: 16px; align-items: baseline; margin-bottom: 16px; }
.section-heading span { font-size: 13px; color: #8a5a22; }
.create-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #40504a; }
input, textarea { background: #fff; border: 1px solid #bdc9c3; border-radius: 4px; padding: 9px 10px; outline: 0; color: #1c2524; }
input:focus, textarea:focus { border-color: #137a68; box-shadow: 0 0 0 2px #bfe6d9; }
input[type=number] { width: 110px; }
.label-field { flex: 1 1 180px; }
.label-field input { width: 100%; }
button { border-radius: 4px; border: 1px solid transparent; min-height: 37px; padding: 8px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.primary { background: #126857; color: #fff; }
.primary:hover { background: #0c5647; }
.secondary { background: #fff; color: #265249; border-color: #b8cdc4; }
.secondary:hover, .quiet:hover { background: #e9f1ed; }
.quiet { background: transparent; color: #345a50; padding: 7px 9px; }
.danger { color: #a03328; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid #dce3df; border-radius: 6px; }
table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #e9eeeb; }
th { color: #596861; background: #f7faf8; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.mono { font-family: Consolas, monospace; white-space: nowrap; }
.status { display: inline-block; font-size: 12px; font-weight: 600; }
.status.active { color: #116d4a; }
.status.unused { color: #4b687e; }
.status.expired, .status.muted { color: #8c5f22; }
.actions { display: flex; align-items: start; gap: 3px; }
.actions form { margin: 0; }
details { position: relative; }
summary { cursor: pointer; color: #345a50; padding: 9px 7px; list-style: none; white-space: nowrap; }
summary::-webkit-details-marker { display: none; }
.details-content { width: min(310px, 82vw); padding: 16px; background: #fff; border: 1px solid #bfcfc6; border-radius: 6px; }
.details-content strong { font-size: 13px; }
.details-content p { margin: 9px 0; font-size: 13px; color: #6d7773; }
.details-content ul { padding: 0; list-style: none; margin: 10px 0; max-height: 180px; overflow: auto; }
.details-content li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 12px; border-bottom: 1px solid #e9eeeb; }
.details-content li small { display: block; margin-top: 3px; color: #68736e; }
.details-content li button { margin-top: 0; }
.details-content form + form { margin-top: 18px; }
.details-content label { margin: 12px 0 6px; }
.details-content textarea { width: 100%; resize: vertical; }
.details-content button { margin-top: 8px; }
.empty { text-align: center; color: #697671; padding: 32px; }
.generated { background: #e8f4ee; border: 1px solid #b8d9c8; border-radius: 6px; padding: 18px; margin-bottom: 28px; }
.generated textarea { width: 100%; height: 112px; resize: vertical; font-family: Consolas, monospace; }
.generated button { margin-top: 8px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-form { width: min(100%, 360px); background: #fff; border: 1px solid #dbe2df; border-radius: 6px; padding: 30px; }
.login-form h1 { font-size: 22px; margin: 28px 0 24px; }
.login-form input, .login-form button { width: 100%; }
.login-form button { margin-top: 20px; }
.alert { padding: 10px; border-radius: 4px; font-size: 13px; margin-bottom: 16px; }
.alert.error { background: #fbebea; color: #a03328; }
@media (max-width: 640px) { .workspace { padding: 22px 14px 48px; } .topbar-inner { padding: 0 14px; } .create-form label { flex: 1 1 105px; } input[type=number] { width: 100%; } .create-form button { width: 100%; } }
