:root {
  --navy: #0b1833;
  --navy-2: #112246;
  --accent: #ff4f4f;
  --bg: #eef2f7;
  --panel: rgba(255,255,255,0.93);
  --line: #d9e0eb;
  --text: #111827;
  --muted: #6b7280;
  --ok: #156b36;
  --warn: #b45309;
  --shadow: 0 12px 30px rgba(5, 15, 35, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Noto Sans KR', Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
body.att-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.att-topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.att-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.att-brand { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.att-brand img { height: 34px; width: auto; display: block; }
.att-logout-form { margin: 0; }
.att-container { max-width: 1200px; margin: 0 auto; padding: 28px 20px 40px; }
.att-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.att-login-wrap { min-height: calc(100vh - 82px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.att-login-card { width: min(480px, 100%); padding: 32px; }
.att-login-title { margin: 0 0 8px; font-size: 34px; font-weight: 900; }
.att-login-desc { margin: 0 0 28px; color: var(--muted); }
.att-field { display: grid; gap: 8px; margin-bottom: 16px; }
.att-field label { font-size: 14px; font-weight: 700; }
.att-input { width: 100%; height: 54px; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 0 16px; outline: none; }
.att-input:focus { border-color: #7c9cff; box-shadow: 0 0 0 4px rgba(94,133,255,.15); }
.att-btn { height: 54px; border: 0; border-radius: 16px; padding: 0 18px; cursor: pointer; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.att-btn-primary { background: var(--accent); color: #fff; }
.att-btn-dark { background: var(--navy); color: #fff; }
.att-btn-light { background: #edf2ff; color: var(--navy); border: 1px solid #d8e2ff; }
.att-btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.att-btn:disabled { opacity: .5; cursor: not-allowed; }
.att-grid { display: grid; gap: 20px; }
.att-main-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.att-stage { padding: 28px; min-height: 640px; position: relative; overflow: hidden; }
.att-title { margin: 0 0 8px; font-size: 40px; font-weight: 900; }
.att-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.att-code-dots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.att-dot { height: 76px; border-radius: 20px; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; }
.att-dot.active { border-color: #7c9cff; background: #f4f7ff; }
.att-dot.filled::before { content: '•'; }
.att-hidden-input { position: absolute; opacity: 0; pointer-events: none; }
.att-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.att-key { height: 92px; border-radius: 22px; background: #fff; border: 1px solid var(--line); font-size: 30px; font-weight: 900; color: var(--navy); box-shadow: 0 6px 16px rgba(7,18,48,.08); }
.att-side { padding: 28px; display: grid; gap: 18px; align-content: start; }
.att-side-title { margin: 0; font-size: 22px; font-weight: 900; }
.att-setting-list { display: grid; gap: 10px; }
.att-setting-item { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.att-setting-item span:first-child { color: var(--muted); }
.att-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.att-badge { border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; background: #edf2ff; color: var(--navy); }
.att-section { padding: 24px; }
.att-members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.att-member-card { display: grid; gap: 16px; padding: 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.att-member-card.is-disabled { opacity: .66; }
.att-member-top { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; }
.att-avatar { width: 86px; height: 86px; border-radius: 20px; object-fit: cover; border: 1px solid var(--line); background: #f3f4f6; }
.att-member-name { margin: 0; font-size: 26px; font-weight: 900; }
.att-member-sub { margin: 4px 0 0; color: var(--muted); }
.att-member-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.att-member-meta div { padding: 10px 12px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); font-size: 14px; }
.att-member-week { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.att-day { height: 44px; border-radius: 14px; background: #f3f4f6; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.att-day.on { background: #0f1f40; color: #fff; border-color: #0f1f40; }
.att-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.att-message-card { padding: 28px; text-align: center; }
.att-message-card h1 { margin: 0 0 10px; font-size: 34px; }
.att-message-card p { margin: 0; color: var(--muted); }
.att-result-layout { display: grid; gap: 22px; }
.att-result-hero { padding: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.att-result-avatar { width: 120px; height: 120px; border-radius: 26px; object-fit: cover; border: 1px solid var(--line); background: #f3f4f6; }
.att-result-headline { margin: 0 0 10px; font-size: 38px; font-weight: 900; }
.att-result-message { margin: 0 0 12px; font-size: 18px; }
.att-result-timing { display: flex; gap: 10px; flex-wrap: wrap; }
.att-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.att-result-panel { padding: 20px; }
.att-muted { color: var(--muted); }
.att-error { color: #b91c1c; font-weight: 700; }
.att-success { color: var(--ok); font-weight: 700; }
.att-inline-form { display: inline; }
.att-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.att-note { font-size: 14px; color: var(--muted); }
.page-bg-title { position: fixed; inset: auto auto 18px 20px; color: rgba(255,255,255,.18); font-size: 44px; font-weight: 900; pointer-events: none; z-index: 0; }
@media (max-width: 960px) {
  .att-main-layout { grid-template-columns: 1fr; }
  .att-stage { min-height: auto; }
  .att-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .att-topbar-inner, .att-container { padding-left: 14px; padding-right: 14px; }
  .att-login-card, .att-stage, .att-side, .att-section, .att-message-card, .att-result-hero, .att-result-panel { padding: 18px; }
  .att-brand span { display: none; }
  .att-title, .att-login-title, .att-result-headline, .att-member-name { font-size: 28px; }
  .att-member-top { grid-template-columns: 72px 1fr; }
  .att-avatar { width: 72px; height: 72px; }
  .att-code-dots { gap: 10px; }
  .att-dot { height: 60px; }
  .att-key { height: 78px; font-size: 26px; }
  .att-member-meta { grid-template-columns: 1fr; }
  .att-result-hero { grid-template-columns: 1fr; text-align: center; }
  .att-result-avatar { margin: 0 auto; }
}
