/* 여러 화면이 함께 쓰는 모양 */
:root {
  --bg: #f4f6fb; --card: #fff; --ink: #172036; --muted: #66708a; --line: #dbe1ee;
  --blue: #2f55f0; --blue-soft: #e2e8ff; --green: #13945f; --green-soft: #dcf4e9;
  --red: #c63a4c; --red-soft: #fde9ec; --amber: #c27a00; --amber-soft: #fff1d6; --star: #f2a900;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "Malgun Gothic", system-ui, sans-serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 20px 16px 48px; display: grid; gap: 16px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
h1 { margin: 0; font-size: 22px; }
h2 { margin: 0; font-size: 18px; }
h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
p { margin: 0; }
.sub { color: var(--muted); font-size: 13px; }
a { color: var(--blue); font-weight: 600; text-decoration: none; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: 1px 10px; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.gray { background: #eceff5; color: var(--muted); }
button { font: inherit; cursor: pointer; }
.btn { font-weight: 700; border: 0; border-radius: 999px; padding: 11px 20px; display: inline-block; text-align: center; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-gray { background: #e8ebf2; color: var(--ink); }
.btn-line { background: none; border: 1px solid var(--line); color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { border: 0; background: none; color: var(--blue); font-weight: 600; padding: 0; }
.link.red { color: var(--red); }
label.field { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.error { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; }
.note { background: var(--amber-soft); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; color: var(--muted); background: var(--card); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff;
         padding: 9px 16px; border-radius: 999px; font-size: 14px; max-width: calc(100% - 32px); z-index: 10; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar .brand { font-weight: 800; font-size: 18px; color: var(--ink); }
.topbar .who { color: var(--muted); font-size: 13px; display: flex; gap: 12px; align-items: center; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.scroll-x { overflow-x: auto; }
.stars { color: var(--star); letter-spacing: 1px; }
