:root {
  font: 15px/1.5 "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  color: #202c27;
  background: #f3f6f2;
  --paper: #fff;
  --green: #245c48;
  --muted: #596961;
  --line: #d9e3da;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(25px, 5vw, 34px); letter-spacing: -.035em; }
h2 { font-size: 18px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
button:hover { background: #edf4ed; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid #338265; outline-offset: 3px; }
.primary { background: var(--green); color: white; border-color: var(--green); font-weight: 650; }
.primary:hover { background: #194b39; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-panel, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 5vw, 28px); box-shadow: 0 7px 26px #152d2110; }
.login-panel { width: min(100%, 410px); display: grid; gap: 19px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 650; }
input:not([type=file]) { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px clamp(16px, 5vw, 48px); background: var(--paper); border-bottom: 1px solid var(--line); }
.dashboard { width: min(100%, 1000px); margin: auto; padding: 28px clamp(16px, 4vw, 34px); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; margin-top: 18px; }
.card { display: grid; gap: 12px; }
.image-frame { background: #f4f7f4; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.image-frame img { display: block; width: 100%; height: min(330px, 64vw); object-fit: contain; }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
code { font-size: 12px; }
.file-field { padding: 12px; border: 1px dashed #adc7b7; border-radius: 8px; background: #f6faf6; }
.file-field input { width: 100%; font-size: 13px; }
input::file-selector-button { border: 1px solid var(--line); background: var(--paper); color: inherit; padding: 7px; border-radius: 5px; cursor: pointer; }
small, .muted { color: var(--muted); font-weight: 400; }
.feedback { color: var(--green); font-size: 13px; overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.feedback.error { color: #a13729; }
@media (max-width: 700px) { .cards { grid-template-columns: minmax(0, 1fr); } }
