/* Shared look for the login and admin pages (the builder carries the same tokens inline). */
:root {
  --accent: #ff4f1f; --accent-dark: #e63f10; --accent-soft: #fff1ec;
  --bg: #f4f5f7; --card: #fff; --soft: #f7f8fa; --text: #1c1f24; --muted: #6b7280; --line: #e2e5ea;
  --ok: #15803d; --ok-soft: #ecfdf3; --warn: #b45309; --warn-soft: #fffbeb; --err: #dc2626; --err-soft: #fef2f2;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14.5px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--accent-dark); }

header.top { background: var(--card); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
header.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand .logo { width: 46px; height: 46px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 26px; }
.brand b { display: block; font-size: 20px; line-height: 1.15; }
.brand span { display: block; font-size: 17px; font-weight: 500; line-height: 1.2; }
.nav { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; margin: 0 auto; }
.nav a { height: 40px; padding: 0 24px; border-radius: 8px; display: flex; align-items: center; color: var(--text); text-decoration: none; font-weight: 500; border: 1px solid transparent; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.6); }
.nav a.active { background: #fff; color: var(--accent); font-weight: 600; border-color: #ffd5c7; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.who form { margin: 0; }
@media (max-width: 900px) { .nav { order: 3; width: 100%; } .nav a { flex: 1; justify-content: center; padding: 0 8px; } .who { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 7px; border: 1px solid transparent; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; background: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn { width: 32px; height: 32px; border-radius: 6px; border: 0; background: none; cursor: pointer; color: #374151; display: inline-grid; place-items: center; padding: 0; text-decoration: none; }
.icon-btn:hover { background: var(--bg); }
.icon-btn.done { color: var(--ok); }
.icon-btn.danger:hover { background: var(--err-soft); color: var(--err); }
.icon-btn.confirm { background: var(--err); color: #fff; width: auto; padding: 0 10px; font-size: 12.5px; font-weight: 600; }
.icon-btn svg { width: 17px; height: 17px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { margin-bottom: 14px; min-width: 0; }
.field > label { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 6px; }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 40px; padding: 0 13px; background: #fff; border: 1px solid var(--line); border-radius: 7px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 64px; padding: 9px 13px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,79,31,.14); }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.alert { padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; }
.alert.err { background: var(--err-soft); color: #b91c1c; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
