.admin { max-width: 1000px; }
.admin .panel { margin-bottom: 14px; }
.admin form.panel, .admin .narrow { display: grid; gap: 10px; }
.narrow { max-width: 380px; margin: 24px auto; }
.linkbtn { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 14px; text-decoration: none; }
.upload-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.notice.good { background: #e4f1ef; color: var(--accent); }
.notice.bad { background: var(--bad-bg); color: var(--bad); white-space: pre-line; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.stats div { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.stats b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); }
#reviewErrors, #reviewWarnings { max-height: none; margin-top: 8px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding: 5px 8px; white-space: nowrap; }
table.data td { border-bottom: 1px solid var(--line); padding: 5px 8px; vertical-align: top; }
table.data .r { text-align: right; font-variant-numeric: tabular-nums; }
table.data .zh { font-family: var(--zh), var(--thai); font-size: 16px; white-space: nowrap; }
.up { color: var(--bad); } .down { color: var(--accent); }
details.group { margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
details.group summary { cursor: pointer; font-weight: 600; }
details.group table { margin-top: 6px; }
.publish { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); justify-items: start; }
.short { width: 200px; }
button:disabled, button.primary:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.stock-form { display: grid; grid-template-columns: 1.4fr 1.4fr 180px; gap: 10px; margin: 10px 0; }
.stock-form .short { width: auto; }
.stock-results { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.stock-results li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 8px; background: var(--bg); border-radius: 5px; }
.stock-results .zh { font-family: var(--zh), var(--thai); font-size: 16px; }
.role-stock .admin-only { display: none !important; }
@media (max-width: 640px) { .stock-form { grid-template-columns: minmax(0, 1fr); } }
