:root {
  --bg: #111111;
  --bg-deep: #050505;
  --surface: rgb(28 28 28 / 82%);
  --surface-solid: #1c1c1c;
  --surface-raised: #282828;
  --line: rgb(255 255 255 / 15%);
  --line-strong: rgb(255 255 255 / 25%);
  --text: #f5f5f5;
  --muted: #aaaaaa;
  --brand: #ffffff;
  --brand-soft: rgb(255 255 255 / 11%);
  --green: #65dc98;
  --green-soft: rgb(101 220 152 / 14%);
  --red: #f2747b;
  --red-soft: rgb(242 116 123 / 14%);
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  --bg: #fafafa;
  --bg-deep: #e9e9e9;
  --surface: rgb(255 255 255 / 82%);
  --surface-solid: #ffffff;
  --surface-raised: #f0f0f0;
  --line: rgb(0 0 0 / 14%);
  --line-strong: rgb(0 0 0 / 25%);
  --text: #1b1b1b;
  --muted: #707070;
  --brand: #222222;
  --brand-soft: rgb(0 0 0 / 8%);
  --green: #168f56;
  --green-soft: rgb(22 143 86 / 12%);
  --red: #c83d49;
  --red-soft: rgb(200 61 73 / 11%);
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }

/* Discord-inspired scrollbars: slim, rounded, and quiet until hovered. */
html, body, .member-dialog, .settings-dialog, .custom-dropdown-menu, .ranking-list {
  scrollbar-color: rgb(255 255 255 / 30%) transparent;
  scrollbar-width: thin;
}
html::-webkit-scrollbar, body::-webkit-scrollbar, .member-dialog::-webkit-scrollbar,
.settings-dialog::-webkit-scrollbar, .custom-dropdown-menu::-webkit-scrollbar,
.ranking-list::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, .member-dialog::-webkit-scrollbar-track,
.settings-dialog::-webkit-scrollbar-track, .custom-dropdown-menu::-webkit-scrollbar-track,
.ranking-list::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-button, body::-webkit-scrollbar-button, .member-dialog::-webkit-scrollbar-button,
.settings-dialog::-webkit-scrollbar-button, .custom-dropdown-menu::-webkit-scrollbar-button,
.ranking-list::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, .member-dialog::-webkit-scrollbar-thumb,
.settings-dialog::-webkit-scrollbar-thumb, .custom-dropdown-menu::-webkit-scrollbar-thumb,
.ranking-list::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: rgb(255 255 255 / 25%); background-clip: padding-box; }
html:hover::-webkit-scrollbar-thumb, body:hover::-webkit-scrollbar-thumb, .member-dialog:hover::-webkit-scrollbar-thumb,
.settings-dialog:hover::-webkit-scrollbar-thumb, .custom-dropdown-menu:hover::-webkit-scrollbar-thumb,
.ranking-list:hover::-webkit-scrollbar-thumb { background: rgb(255 255 255 / 42%); background-clip: padding-box; }
:root[data-theme="light"] html, :root[data-theme="light"] body, :root[data-theme="light"] .member-dialog,
:root[data-theme="light"] .settings-dialog, :root[data-theme="light"] .custom-dropdown-menu,
:root[data-theme="light"] .ranking-list { scrollbar-color: rgb(0 0 0 / 30%) transparent; }
:root[data-theme="light"] html::-webkit-scrollbar-thumb, :root[data-theme="light"] body::-webkit-scrollbar-thumb,
:root[data-theme="light"] .member-dialog::-webkit-scrollbar-thumb, :root[data-theme="light"] .settings-dialog::-webkit-scrollbar-thumb,
:root[data-theme="light"] .custom-dropdown-menu::-webkit-scrollbar-thumb, :root[data-theme="light"] .ranking-list::-webkit-scrollbar-thumb { background: rgb(0 0 0 / 22%); background-clip: padding-box; }
:root[data-theme="light"] html:hover::-webkit-scrollbar-thumb, :root[data-theme="light"] body:hover::-webkit-scrollbar-thumb,
:root[data-theme="light"] .member-dialog:hover::-webkit-scrollbar-thumb, :root[data-theme="light"] .settings-dialog:hover::-webkit-scrollbar-thumb,
:root[data-theme="light"] .custom-dropdown-menu:hover::-webkit-scrollbar-thumb, :root[data-theme="light"] .ranking-list:hover::-webkit-scrollbar-thumb { background: rgb(0 0 0 / 38%); background-clip: padding-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(150deg, var(--bg) 0%, var(--bg-deep) 100%);
}

:root[data-theme="light"] body {
  background: linear-gradient(150deg, var(--bg) 0%, var(--bg-deep) 100%);
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .48; }
h1, h2, h3, p { margin: 0; }

.ambient-glow { display: none; }
.glow-one { top: 12rem; right: -20rem; background: var(--brand); }
.glow-two { bottom: -20rem; left: -19rem; background: #3cae9d; animation-delay: -7s; }
.welcome-toast { position: fixed; z-index: 100; top: 20px; left: 50%; display: flex; width: min(330px, calc(100vw - 40px)); align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--text); background: var(--surface-solid); box-shadow: 0 18px 42px rgb(0 0 0 / 24%); opacity: 0; pointer-events: none; transform: translate(-50%, -10px) scale(.98); transition: opacity .24s ease, transform .24s cubic-bezier(.2, .8, .2, 1); }
.welcome-toast[hidden] { display: none; }
.welcome-toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.welcome-toast-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #112218; background: var(--green); font-size: 15px; font-weight: 900; }
.welcome-toast-copy { display: grid; min-width: 0; gap: 2px; }
.welcome-toast-copy strong { font-size: 13px; letter-spacing: -.01em; }
.welcome-toast-copy small { color: var(--muted); font-size: 11px; }
.shell { width: calc(100% - 32px); margin: 0 auto; padding: clamp(16px, 2.2vw, 26px) 0 clamp(40px, 8vw, 68px); animation: page-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.topbar, .toolbar, .filters, .date-control, .brand, .summary, .panel-heading, .member-identity, .detail-profile, .detail-stats { display: flex; align-items: center; }
.topbar { align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: clamp(18px, 3vw, 28px); }
.brand { gap: clamp(8px, 2vw, 13px); }
.brand-visual { width: clamp(40px, 4vw, 52px); height: clamp(40px, 4vw, 52px); flex: 0 0 auto; }
.brand-mark, .server-icon { display: grid; width: 100%; height: 100%; place-items: center; border: 1px solid rgb(255 255 255 / 16%); border-radius: 14px; box-shadow: 0 12px 28px rgb(0 0 0 / 34%), inset 0 1px 0 rgb(255 255 255 / 20%); }
.brand-mark[hidden], .server-icon[hidden] { display: none; }
.brand-mark { background: linear-gradient(145deg, #f2f2f2, #bdbdbd); color: #151515; font-size: clamp(24px, 4vw, 31px); font-weight: 700; line-height: 1; }
.server-icon { display: block; background: var(--surface-raised); object-fit: cover; }
h1 { font-size: clamp(20px, 3vw, 31px); letter-spacing: -.035em; line-height: 1.15; }
h2 { font-size: clamp(17px, 2.5vw, 20px); letter-spacing: -.02em; }
.eyebrow { margin-bottom: 5px; color: var(--muted); font-size: clamp(9px, 1.2vw, 10px); font-weight: 700; letter-spacing: .16em; }
.live-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: clamp(11px, 1.5vw, 13px); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(101 220 152 / 45%); animation: live-pulse 2.4s ease-out infinite; }
.header-actions { display: flex; align-items: center; gap: clamp(6px, 1.5vw, 13px); padding-top: 0; }
.theme-toggle, .settings-button, .logout-button { display: inline-flex; min-height: 33px; align-items: center; gap: 6px; padding: 0 clamp(8px, 1.5vw, 10px); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgb(255 255 255 / 4%); font-size: clamp(11px, 1.5vw, 12px); font-weight: 700; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.theme-toggle:hover, .settings-button:hover { border-color: rgb(255 255 255 / 45%); color: var(--text); background: var(--brand-soft); }
.theme-toggle[aria-pressed="true"] { color: var(--text); background: var(--brand-soft); }
.logout-button:hover { border-color: rgb(255 255 255 / 45%); color: var(--text); background: var(--brand-soft); }
.settings-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.toolbar { position: relative; z-index: 10; display: grid; grid-template-columns: minmax(265px, 300px) minmax(0, 1fr); align-items: end; gap: clamp(16px, 2.2vw, 26px); padding: clamp(14px, 2.5vw, 18px) clamp(14px, 2.5vw, 20px); overflow: visible; border: 1px solid var(--line); border-radius: clamp(14px, 2vw, 17px); background: linear-gradient(135deg, rgb(34 34 34 / 92%), rgb(22 22 22 / 76%)); box-shadow: 0 18px 42px rgb(0 0 0 / 22%); backdrop-filter: blur(16px); }
.toolbar::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 30%), transparent); content: ""; }
.date-control { width: min(100%, 300px); gap: clamp(6px, 1.5vw, 9px); min-width: 0; align-items: flex-end; }
.date-label { position: relative; display: grid; flex: 1; min-width: 0; gap: 5px; color: var(--muted); font-size: clamp(9px, 1.2vw, 10px); font-weight: 700; letter-spacing: .08em; }
input[type="search"], select, .custom-dropdown-button, #password { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--text); background: rgb(12 12 12 / 74%); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input:focus, select:focus, .custom-dropdown-button:focus-visible { border-color: rgb(255 255 255 / 72%); box-shadow: 0 0 0 3px rgb(255 255 255 / 14%); background: rgb(20 20 20 / 94%); }
select, .custom-dropdown-button { height: 40px; width: 100%; padding: 0 40px 0 12px; appearance: none; -webkit-appearance: none; color-scheme: dark; background: linear-gradient(135deg, rgb(28 28 28 / 96%), rgb(13 13 13 / 96%)); font-weight: 650; }
select:hover, .custom-dropdown-button:hover:not(:disabled) { border-color: var(--line-strong); background: linear-gradient(135deg, rgb(39 39 39 / 98%), rgb(19 19 19 / 98%)); }

/* ===== 완벽 정렬 아이콘 버튼 ===== */
.icon-button, .dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: rgb(255 255 255 / 5%);
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.icon-button:not(:disabled):hover, .dialog-close:hover {
  border-color: rgb(255 255 255 / 42%);
  background: var(--brand-soft);
  transform: translateY(-1px);
}
.nav-chevron { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.25; }
.dialog-close-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2.25; }

/* ===== 네이티브 드롭다운 화살표 (우리가 맞춘 그대로) ===== */
.date-label::after,
.select-label::after {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(16px, 2vw, 20px);
  height: clamp(16px, 2vw, 20px);
  border-radius: 6px;
  color: #d4d4d4;
  background: rgb(255 255 255 / 7%);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.date-label::after {
  content: "▾";
  top: calc(100% - 20px);
  right: clamp(5px, 1vw, 9px);
  transform: translateY(-50%);
}
.select-label::after {
  content: "▾";
  top: 50%;
  right: clamp(5px, 1vw, 9px);
  transform: translateY(-50%);
}

/* ===== 네이티브 드롭다운 옵션 ===== */
option {
  background-color: #1c1c1c;
  color: #f5f5f5;
  padding: 8px 12px;
  font-weight: 500;
}
:root[data-theme="light"] option {
  background-color: #ffffff;
  color: #1b1b1b;
}

.date-status { display: none; }
.filters { display: grid; grid-template-columns: minmax(210px, 1.35fr) minmax(165px, .95fr) minmax(145px, .8fr); gap: clamp(8px, 1.4vw, 12px); min-width: 0; width: 100%; }
.search { position: relative; display: flex; align-items: center; }
.search .search-icon { position: absolute; top: 50%; left: 11px; width: 18px; height: 18px; color: var(--muted); fill: none; pointer-events: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transform: translateY(-50%); }
.search input { width: 100%; padding: 0 12px 0 35px; }
.select-label { position: relative; min-width: 0; }

/* ===== 커스텀 드롭다운 (JS 연동, 화살표 통일 완료) ===== */
.date-label.custom-dropdown-ready::after,
.select-label.custom-dropdown-ready::after { display: none; }
.custom-dropdown { position: relative; display: block; width: 100%; min-width: 0; }
.custom-dropdown-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.custom-dropdown-button { position: relative; display: block; overflow: hidden; text-align: left; }
.date-label .custom-dropdown-button { font-size: clamp(12px, 1.7vw, 14px); }

/* ✅ 기존 span 화살표 숨기고, 버튼에 ::after로 통일 */
.custom-dropdown-arrow { display: none; }
.custom-dropdown-button::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: clamp(8px, 1vw, 11px);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition: transform .16s ease;
}
.custom-dropdown.is-open .custom-dropdown-button::after {
  transform: translateY(-50%) rotate(180deg);
}
.custom-dropdown-button.has-leading-icon { padding-left: 45px; }
.dropdown-voice-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }
.dropdown-text-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; stroke: none; }
.dropdown-role-icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; color: currentColor; }
.custom-dropdown-button .dropdown-leading-icon { position: absolute; top: 50%; left: 13px; color: var(--muted); transform: translateY(-50%); }
.custom-dropdown-option.has-leading-icon { display: flex; align-items: center; gap: 10px; }
.custom-dropdown-button.has-voice-icon { padding-left: 38px; }
.custom-dropdown-button.has-voice-icon::before,
.custom-dropdown-option.has-voice-icon::before { display: inline-block; width: 17px; height: 17px; flex: 0 0 auto; background: currentColor; content: ""; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10v4h4l5 4V6l-5 4H3zm11.5 2a4 4 0 0 0-2-3.46v1.82a2.25 2.25 0 0 1 0 3.28v1.82A4 4 0 0 0 14.5 12zm0-7.5v1.82a6.25 6.25 0 0 1 0 11.36v1.82a8 8 0 0 0 0-15Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.custom-dropdown-button.has-voice-icon::before { position: absolute; top: 50%; left: 12px; color: var(--muted); transform: translateY(-50%); }
.custom-dropdown-option.has-voice-icon { display: flex; align-items: center; gap: 8px; }

.custom-dropdown-menu { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; left: 0; display: grid; gap: 4px; max-height: 228px; padding: 6px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-solid); box-shadow: 0 16px 30px rgb(0 0 0 / 24%); animation: dropdown-menu-in .16s cubic-bezier(.2, .8, .2, 1) both; }
.custom-dropdown-menu[hidden] { display: none; }
.custom-dropdown-option { display: block; width: 100%; min-height: 36px; padding: 0 10px; overflow: hidden; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.custom-dropdown-option:hover, .custom-dropdown-option:focus-visible, .custom-dropdown-option.is-selected { outline: none; color: var(--text); background: var(--brand-soft); }
@keyframes dropdown-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.summary { margin: clamp(14px, 2vw, 20px) 0; overflow: hidden; border: 1px solid var(--line); border-radius: clamp(12px, 2vw, 14px); background: var(--surface); box-shadow: 0 12px 34px rgb(0 0 0 / 12%); backdrop-filter: blur(13px); }
.summary > div { flex: 1 1 0; min-width: 0; padding: clamp(13px, 2vw, 17px) clamp(15px, 2.5vw, 22px); border-right: 1px solid var(--line); transition: background .2s ease; }
.summary > div:hover { background: rgb(255 255 255 / 3%); }
.summary > div:last-child { border-right: 0; }
.summary-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: clamp(10px, 1.5vw, 12px); }
.summary strong { font-size: clamp(13px, 1.8vw, 15px); font-weight: 700; letter-spacing: -.01em; }

.activity-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: clamp(14px, 2vw, 17px); background: linear-gradient(145deg, rgb(38 38 38 / 93%), rgb(23 23 23 / 89%)); box-shadow: 0 22px 56px rgb(0 0 0 / 24%); backdrop-filter: blur(14px); }
.activity-panel::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 22%), transparent); content: ""; }
.panel-heading { justify-content: space-between; padding: clamp(16px, 2.5vw, 24px) clamp(14px, 2.5vw, 23px) clamp(14px, 2.5vw, 19px); }
.updated-time { color: var(--muted); font-size: clamp(10px, 1.5vw, 12px); font-variant-numeric: tabular-nums; }
.table-head, .member-row { display: grid; grid-template-columns: minmax(220px, 1.45fr) minmax(120px, .8fr) minmax(112px, .75fr) minmax(138px, .95fr); column-gap: clamp(12px, 1.8vw, 20px); align-items: center; }
.table-head { padding: 11px clamp(14px, 2.5vw, 23px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); background: rgb(7 9 15 / 19%); font-size: clamp(10px, 1.3vw, 11px); font-weight: 700; letter-spacing: .04em; }
.member-row { width: 100%; padding: clamp(10px, 1.8vw, 14px) clamp(14px, 2.5vw, 23px); border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; animation: row-in .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--row-index) * 35ms); transition: background .18s ease, transform .18s ease; }
.member-row:last-child { border-bottom: 0; }
.member-row:hover, .member-row:focus-visible { outline: none; background: linear-gradient(90deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 2%)); transform: translateX(3px); }
.member-identity { min-width: 0; gap: clamp(8px, 1.5vw, 12px); }
.avatar, .avatar-fallback { width: clamp(34px, 5vw, 40px); height: clamp(34px, 5vw, 40px); flex: 0 0 auto; border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgb(0 0 0 / 18%); }
.avatar-fallback { display: grid; place-items: center; background: linear-gradient(145deg, #5a5a5a, #242424); color: white; font-size: clamp(11px, 1.8vw, 13px); font-weight: 700; }
.member-copy { min-width: 0; }
.member-name, .member-handle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-name { font-size: clamp(12px, 1.8vw, 14px); font-weight: 700; }
.member-handle { margin-top: 3px; color: var(--muted); font-size: clamp(10px, 1.5vw, 12px); }
.presence { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--green); font-size: clamp(10px, 1.3vw, 11px); font-weight: 700; }
.presence::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; box-shadow: 0 0 8px currentColor; }
.duration { color: #f8f9ff; font-size: clamp(12px, 1.8vw, 14px); font-weight: 700; font-variant-numeric: tabular-nums; }
.permission { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: clamp(4px, 0.8vw, 5px) clamp(7px, 1.2vw, 9px); border: 1px solid transparent; border-radius: 99px; font-size: clamp(10px, 1.3vw, 12px); font-weight: 700; }
.permission::before { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: currentColor; content: ""; }
.permission.yes { border-color: rgb(101 220 152 / 18%); color: #bdf5d2; background: var(--green-soft); }
.permission.no { border-color: rgb(242 116 123 / 16%); color: #ffc3c8; background: var(--red-soft); }
.permission-time { color: var(--muted); font-size: clamp(9px, 1.2vw, 11px); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.permission-time.is-empty { opacity: .65; }
.empty-state, .error-state { padding: 42px 23px; color: var(--muted); text-align: center; }
.error-state { color: #ffc3c8; }

.member-dialog { position: fixed; top: 50%; left: 50%; translate: -50% -50%; margin: 0; width: min(560px, calc(100% - 32px)); max-height: min(730px, calc(100% - 32px)); padding: clamp(20px, 3vw, 29px); overflow: auto; border: 1px solid var(--line-strong); border-radius: clamp(14px, 2vw, 18px); color: var(--text); background: #1c1c1c; box-shadow: 0 24px 90px rgb(0 0 0 / 65%); animation: dialog-in .22s ease-out; }
.member-dialog::backdrop { background: rgb(5 6 10 / 72%); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 15px; right: 15px; font-size: 20px; }
.settings-dialog { position: fixed; top: 50%; left: 50%; width: min(480px, calc(100% - 40px)); max-height: calc(100dvh - 40px); margin: 0; padding: 22px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--text); background: #1c1c1c; box-shadow: 0 24px 90px rgb(0 0 0 / 65%); translate: -50% -50%; animation: dialog-in .22s ease-out; }
.settings-dialog::backdrop { background: rgb(5 6 10 / 72%); backdrop-filter: blur(4px); }
.settings-heading { padding-right: 42px; }
.settings-heading > p:last-child { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.settings-form { display: grid; gap: 14px; margin-top: 20px; }
.settings-field { position: relative; display: grid; grid-template-rows: auto 42px auto; gap: 5px; min-width: 0; }
.settings-field > span { color: var(--text); font-size: 12px; font-weight: 750; }
.settings-field small { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.settings-field .custom-dropdown { width: 100%; }
.settings-field .custom-dropdown-button { display: flex; min-height: 42px; height: 42px; align-items: center; border-radius: 9px; font-size: 13px; line-height: 1; }
.settings-field .custom-dropdown-menu { top: calc(100% + 8px); max-height: 210px; border-radius: 10px; }
.settings-field .custom-dropdown-option { display: flex; min-height: 38px; align-items: center; padding: 0 12px; font-size: 13px; }
.settings-time-control { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 42px; gap: 8px; }
.settings-time-control .settings-number-control { min-width: 0; }
.settings-number-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: 42px; align-items: center; gap: 10px; padding-right: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(135deg, rgb(28 28 28 / 96%), rgb(13 13 13 / 96%)); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.settings-number-control:focus-within { border-color: rgb(255 255 255 / 72%); background: rgb(20 20 20 / 94%); box-shadow: 0 0 0 3px rgb(255 255 255 / 14%); }
.settings-number-control input { width: 100%; height: 100%; min-width: 0; padding: 0 12px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; font-weight: 650; }
.settings-number-control input:disabled { cursor: not-allowed; }
.settings-number-control b { color: var(--muted); font-size: 12px; font-weight: 700; }
.settings-number-control input::-webkit-inner-spin-button { margin-left: 4px; opacity: .65; }
.settings-status { min-height: 16px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.settings-status[data-type="success"] { color: var(--green); }
.settings-status[data-type="error"] { color: var(--red); }
.settings-save { min-height: 42px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 9px; color: #111111; background: linear-gradient(135deg, #ffffff, #cfcfcf); box-shadow: 0 10px 22px rgb(0 0 0 / 24%); font-size: 12px; font-weight: 800; transition: filter .18s ease, transform .18s ease; }
.settings-save:not(:disabled):hover { filter: brightness(1.07); transform: translateY(-1px); }
.detail-profile { gap: clamp(8px, 1.5vw, 13px); padding-right: 45px; }
.detail-profile .avatar, .detail-profile .avatar-fallback { width: clamp(44px, 6vw, 53px); height: clamp(44px, 6vw, 53px); font-size: clamp(14px, 2vw, 17px); }
.detail-stats { gap: clamp(6px, 1.5vw, 10px); margin: clamp(16px, 2.5vw, 24px) 0; }
.detail-stat { flex: 1; padding: clamp(10px, 1.8vw, 14px); border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); }
.detail-stat span { display: block; color: var(--muted); font-size: clamp(10px, 1.3vw, 11px); }
.detail-stat strong { display: block; margin-top: 5px; font-size: clamp(12px, 1.8vw, 14px); font-variant-numeric: tabular-nums; }
.history-heading { margin: 12px 0 8px; font-size: clamp(12px, 1.8vw, 14px); }
.history-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: clamp(11px, 1.5vw, 13px); }
.history-date-copy { display: grid; min-width: 0; gap: 3px; }
.history-permission-time { color: var(--green); font-size: clamp(9px, 1.2vw, 11px); font-weight: 700; font-variant-numeric: tabular-nums; }
.history-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.login-body { display: grid; min-height: 100vh; place-items: center; padding: 20px; }
.login-card { position: relative; width: min(430px, 100%); padding: clamp(24px, 5vw, 34px); overflow: hidden; border: 1px solid var(--line); border-radius: clamp(16px, 2vw, 20px); background: var(--surface-solid); box-shadow: 0 24px 70px rgb(0 0 0 / 30%); }
.login-card::before { position: absolute; top: 0; right: 12%; left: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 28%), transparent); content: ""; }
.login-access-badge { position: absolute; top: 18px; right: 20px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgb(255 255 255 / 4%); font-size: 10px; font-weight: 750; }
.login-card .brand-visual { width: 52px; height: 52px; margin-bottom: 17px; }
.login-card .eyebrow { margin-bottom: 5px; }
.login-card h1 { margin-bottom: 18px; font-size: clamp(22px, 4vw, 28px); }
.login-copy { margin: 0 0 24px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: clamp(12px, 2vw, 14px); line-height: 1.55; }
.login-card form { display: grid; gap: 9px; }
.login-card label { color: var(--text); font-size: clamp(11px, 1.8vw, 13px); font-weight: 700; }
.login-card .login-error { min-height: 14px; margin: -3px 0 0; padding: 0; color: #ffc3c8; font-size: 11px; line-height: 1.25; text-align: left; }
.password-field { position: relative; width: 100%; }
#password { width: 100%; min-height: 45px; padding: 0 43px 0 12px; }
.password-field.has-error #password { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.password-toggle { position: absolute; top: 50%; right: 7px; display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; transform: translateY(-50%); transition: color .18s ease, background .18s ease; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--text); background: rgb(255 255 255 / 8%); outline: none; }
.password-toggle:focus-visible { box-shadow: 0 0 0 2px rgb(255 255 255 / 38%); }
.password-toggle-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.password-toggle .eye-closed, .password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-closed { display: block; }
.primary-button { min-height: 45px; margin-top: 9px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 10px; color: #111111; background: linear-gradient(135deg, #ffffff, #cfcfcf); box-shadow: 0 10px 22px rgb(0 0 0 / 28%); font-weight: 750; letter-spacing: -.01em; transition: transform .18s ease, filter .18s ease; }
.primary-button:hover { filter: brightness(1.07); transform: translateY(-1px); }

.login-card { animation: login-card-in .48s cubic-bezier(.2, .8, .2, 1) both; }
.login-card .brand-visual { animation: login-brand-in .5s cubic-bezier(.2, .9, .2, 1) .08s both; }
.login-card .eyebrow, .login-card h1, .login-card .login-copy, .login-card label, .login-card .primary-button { animation: login-item-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.login-card .eyebrow { animation-delay: .13s; }
.login-card h1 { animation-delay: .17s; }
.login-card .login-copy { animation-delay: .21s; }
.login-card label { animation-delay: .26s; }
.login-card .password-field { transition: transform .18s ease, filter .18s ease; }
.login-card .password-field #password { animation: login-item-in .4s cubic-bezier(.2, .8, .2, 1) .3s both; }
.login-card .password-field .password-toggle { animation: login-control-in .4s cubic-bezier(.2, .8, .2, 1) .3s both; }
.login-card .primary-button { animation-delay: .35s; }
.password-field:focus-within { filter: brightness(1.05); transform: translateY(-1px); }
.password-toggle { transition: color .18s ease, background .18s ease, transform .18s ease; }
.password-toggle.is-visible .eye-closed, .password-toggle:not(.is-visible) .eye-open { animation: password-icon-in .18s cubic-bezier(.2, .8, .2, 1) both; }
.login-card .login-error:not([hidden]) { animation: login-error-in .22s cubic-bezier(.2, .8, .2, 1) both; }
.password-field.has-error { animation: login-input-shake .32s ease-in-out; }
.primary-button:active { transform: translateY(0) scale(.98); }

:root[data-theme="light"] .toolbar { background: linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(242 242 242 / 88%)); box-shadow: 0 18px 42px rgb(0 0 0 / 10%); }
:root[data-theme="light"] input[type="search"],
:root[data-theme="light"] select,
:root[data-theme="light"] .custom-dropdown-button,
:root[data-theme="light"] #password { background: #ffffff; color: var(--text); }
:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus,
:root[data-theme="light"] .custom-dropdown-button:focus-visible { background: #ffffff; }
:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus,
:root[data-theme="light"] .custom-dropdown-button:focus-visible { border-color: rgb(0 0 0 / 55%); box-shadow: 0 0 0 3px rgb(0 0 0 / 10%); }
:root[data-theme="light"] .icon-button,
:root[data-theme="light"] .dialog-close,
:root[data-theme="light"] .theme-toggle,
:root[data-theme="light"] .settings-button,
:root[data-theme="light"] .logout-button { background: rgb(0 0 0 / 5%); }
:root[data-theme="light"] .icon-button:not(:disabled):hover,
:root[data-theme="light"] .dialog-close:hover,
:root[data-theme="light"] .theme-toggle:hover,
:root[data-theme="light"] .settings-button:hover,
:root[data-theme="light"] .logout-button:hover { border-color: rgb(0 0 0 / 38%); }
:root[data-theme="light"] .date-label::after,
:root[data-theme="light"] .select-label::after { color: #555555; background: rgb(0 0 0 / 8%); }
:root[data-theme="light"] .activity-panel { background: linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(247 247 247 / 91%)); box-shadow: 0 22px 56px rgb(0 0 0 / 11%); }
:root[data-theme="light"] .table-head { background: rgb(0 0 0 / 5%); }
:root[data-theme="light"] .member-row:hover,
:root[data-theme="light"] .member-row:focus-visible { background: linear-gradient(90deg, rgb(0 0 0 / 9%), rgb(0 0 0 / 2%)); }
:root[data-theme="light"] .duration { color: var(--text); }
:root[data-theme="light"] .permission.yes { color: #157246; border-color: rgb(22 143 86 / 20%); }
:root[data-theme="light"] .permission.no { color: #ad3440; border-color: rgb(200 61 73 / 18%); }
:root[data-theme="light"] .member-dialog { background: #ffffff; box-shadow: 0 24px 90px rgb(0 0 0 / 20%); }
:root[data-theme="light"] .member-dialog::backdrop { background: rgb(0 0 0 / 28%); }
:root[data-theme="light"] .settings-dialog { background: #ffffff; box-shadow: 0 24px 90px rgb(0 0 0 / 20%); }
:root[data-theme="light"] .settings-dialog::backdrop { background: rgb(0 0 0 / 28%); }
:root[data-theme="light"] .settings-number-control { background: #ffffff; }
:root[data-theme="light"] .settings-number-control:focus-within { border-color: rgb(0 0 0 / 55%); background: #ffffff; box-shadow: 0 0 0 3px rgb(0 0 0 / 10%); }
:root[data-theme="light"] .settings-save { color: #ffffff; background: linear-gradient(135deg, #242424, #050505); box-shadow: 0 10px 22px rgb(0 0 0 / 22%); }
:root[data-theme="light"] .login-card { background: rgb(255 255 255 / 94%); box-shadow: 0 22px 60px rgb(0 0 0 / 14%); }
:root[data-theme="light"] .login-card .login-error { color: #ad3440; }
:root[data-theme="light"] .primary-button { color: #ffffff; background: linear-gradient(135deg, #242424, #050505); box-shadow: 0 10px 22px rgb(0 0 0 / 22%); }

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after { transition-property: color, background, background-color, border-color, box-shadow, fill, stroke; transition-duration: .2s; transition-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(root) { animation: theme-fade-out .2s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: theme-fade-in .2s cubic-bezier(0, 0, .2, 1) both; }

@keyframes page-in { from { opacity: 0; filter: blur(7px); transform: translateY(14px) scale(.99); } to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
@keyframes row-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgb(101 220 152 / 42%); } 70% { box-shadow: 0 0 0 8px rgb(101 220 152 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(101 220 152 / 0%); } }
@keyframes drift { from { transform: translate3d(-16px, -7px, 0) scale(.96); } to { transform: translate3d(16px, 10px, 0) scale(1.05); } }
@keyframes theme-fade-out { to { opacity: 0; } }
@keyframes theme-fade-in { from { opacity: 0; } }
@keyframes login-card-in { from { opacity: 0; filter: blur(10px); transform: translateY(18px) scale(.96); } to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }
@keyframes login-brand-in { from { opacity: 0; transform: translateY(8px) scale(.72) rotate(-7deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes login-item-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes login-control-in { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: blur(0); } }
@keyframes password-icon-in { from { opacity: 0; transform: scale(.65) rotate(-16deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes login-error-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes login-input-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 55% { transform: translateX(4px); } 78% { transform: translateX(-2px); } }

@media (prefers-reduced-motion: reduce) {
  html.theme-transition, html.theme-transition *, html.theme-transition *::before, html.theme-transition *::after { transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .login-card, .login-card *, .password-field { animation: none !important; transition: none !important; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 1320px); padding-top: 24px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .toolbar { display: flex; align-items: flex-start; flex-direction: column; }
  .header-actions { flex-wrap: wrap; padding-left: 2px; }
  .live-state { padding-left: 2px; }
  .date-control { width: 100%; }
  .date-label { flex: 1; min-width: 0; }
  .date-status { display: none; }
  .filters { display: flex; width: 100%; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .select-label { flex: 1 1 0; }
  .summary { flex-wrap: wrap; }
  .summary > div { min-width: 50%; border-bottom: 1px solid var(--line); }
  .summary > div:nth-child(2) { border-right: 0; }
  .summary > div:last-child { border-bottom: 0; }
  .table-head { display: none; }
  .member-row { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 14px; }
  .member-identity { grid-row: span 3; }
  .duration { grid-column: 2; grid-row: 1; justify-self: end; }
  .permission { grid-column: 2; grid-row: 2; justify-self: end; }
  .permission-time { grid-column: 2; grid-row: 3; justify-self: end; }
  .permission-time:not(.is-empty)::before { content: "허가 처리 "; }
  .panel-heading { padding: 20px 14px 17px; }
  .updated-time { display: none; }
  .detail-stats { align-items: stretch; flex-direction: column; }
}

@media (max-width: 600px) {
  .settings-dialog { top: 12px; max-height: calc(100dvh - 24px); padding: 20px; overflow-y: auto; translate: -50% 0; }
  .settings-form { gap: 15px; }
  .settings-heading > p:last-child { font-size: 11px; }
}

@media (max-width: 1240px) and (min-width: 761px) {
  .toolbar { grid-template-columns: 1fr; gap: 14px; }
  .date-control { width: auto; }
  .filters { grid-template-columns: minmax(200px, 1fr) minmax(160px, 0.8fr) minmax(140px, 0.7fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Attendance view */
.view-tabs { position: relative; display: inline-flex; gap: 4px; margin: calc(clamp(18px, 3vw, 28px) * -1 + 5px) 0 clamp(14px, 2vw, 18px); padding: 4px; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 8px 20px rgb(0 0 0 / 12%); }
.view-tabs::before { display: none; }
.view-tab { position: relative; z-index: 1; min-height: 35px; padding: 0 15px; overflow: hidden; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; letter-spacing: -.01em; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.view-tab::before { display: none; }
.view-tab:hover, .view-tab:focus-visible { outline: none; color: var(--text); background: var(--brand-soft); }
.view-tab.is-active { color: var(--text); }
.view-tab:active { transform: scale(.96); }
.view-tab-indicator { position: absolute; z-index: 0; top: 4px; left: var(--view-indicator-left, 4px); width: var(--view-indicator-width, 67px); height: calc(100% - 8px); border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised); box-shadow: 0 3px 8px rgb(0 0 0 / 13%); pointer-events: none; transition: left .34s cubic-bezier(.2, .85, .2, 1), width .34s cubic-bezier(.2, .85, .2, 1); }
.view-tab-indicator::before { display: none; }
.dashboard-view[hidden] { display: none; }
.log-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; gap: clamp(18px, 2vw, 28px); }
.log-main { min-width: 0; }
.ranking-panel { position: sticky; top: 18px; display: flex; flex-direction: column; height: min(650px, calc(100vh - 36px)); min-height: 360px; padding: clamp(16px, 2.2vw, 20px); overflow: hidden; border: 1px solid var(--line); border-radius: clamp(14px, 2vw, 17px); background: linear-gradient(145deg, rgb(38 38 38 / 93%), rgb(23 23 23 / 89%)); box-shadow: 0 18px 44px rgb(0 0 0 / 19%); }
.ranking-panel::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 18%), transparent); content: ""; }
.ranking-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.ranking-caption { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgb(255 255 255 / 4%); font-size: 10px; font-weight: 700; }
.ranking-list { display: grid; flex: 1; gap: 4px; min-height: 0; margin: 13px -5px 0 0; padding: 0 6px 0 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.ranking-list::-webkit-scrollbar { width: 8px; }
.ranking-list::-webkit-scrollbar-track { background: transparent; }
.ranking-row { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 48px; padding: 6px 5px; border-radius: 9px; transition: background .16s ease, transform .16s ease; }
.ranking-row:hover { background: rgb(255 255 255 / 6%); transform: translateX(2px); }
.ranking-number { color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.ranking-row:nth-child(1) .ranking-number { color: #f5d77c; }
.ranking-row:nth-child(2) .ranking-number { color: #d8dde3; }
.ranking-row:nth-child(3) .ranking-number { color: #d79c75; }
.ranking-avatar, .ranking-avatar-fallback { width: 30px; height: 30px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%; object-fit: cover; }
.ranking-avatar-fallback { display: grid; place-items: center; background: var(--surface-raised); color: var(--text); font-size: 10px; font-weight: 800; }
.ranking-copy { min-width: 0; }
.ranking-name { display: block; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ranking-handle { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ranking-value { color: var(--text); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ranking-empty { padding: 44px 10px; color: var(--muted); font-size: 12px; text-align: center; }
.attendance-toolbar .date-control { max-width: 330px; }
.attendance-filters { grid-template-columns: minmax(210px, 260px) minmax(155px, 190px); justify-content: end; }
.attendance-panel { min-height: 190px; }
.attendance-table-head, .attendance-row { display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(130px, .7fr) minmax(135px, .75fr); column-gap: clamp(12px, 1.8vw, 20px); align-items: center; }
.attendance-row { padding: clamp(10px, 1.8vw, 14px) clamp(14px, 2.5vw, 23px); border-bottom: 1px solid var(--line); animation: row-in .3s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--row-index) * 28ms); }
.attendance-row:last-child { border-bottom: 0; }
.attendance-row.is-missing { background: linear-gradient(90deg, var(--red-soft), transparent 48%); }
.attendance-identity { display: flex; min-width: 0; align-items: center; gap: clamp(8px, 1.5vw, 12px); }
.attendance-status { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.attendance-status::before { width: 8px; height: 8px; border-radius: 50%; background: currentColor; content: ""; }
.attendance-status.checked { border-color: rgb(101 220 152 / 20%); color: #bdf5d2; background: var(--green-soft); }
.attendance-status.missing { border-color: rgb(242 116 123 / 20%); color: #ffc3c8; background: var(--red-soft); }
.attendance-time { color: var(--muted); font-size: clamp(10px, 1.4vw, 12px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.attendance-time.is-empty { opacity: .65; }
:root[data-theme="light"] .view-tabs { background: var(--surface); box-shadow: 0 8px 20px rgb(0 0 0 / 7%); }
:root[data-theme="light"] .view-tab:hover, :root[data-theme="light"] .view-tab:focus-visible { background: var(--brand-soft); }
:root[data-theme="light"] .view-tab-indicator { border-color: var(--line-strong); background: #ffffff; box-shadow: 0 3px 8px rgb(0 0 0 / 7%); }
:root[data-theme="light"] .ranking-panel { background: linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(247 247 247 / 91%)); box-shadow: 0 18px 44px rgb(0 0 0 / 9%); }
:root[data-theme="light"] .ranking-row:hover { background: rgb(0 0 0 / 5%); }
:root[data-theme="light"] .attendance-status.checked { color: #157246; border-color: rgb(22 143 86 / 20%); }
:root[data-theme="light"] .attendance-status.missing { color: #ad3440; border-color: rgb(200 61 73 / 18%); }

@media (max-width: 760px) {
  .view-tabs { margin-top: -11px; }
  .attendance-toolbar .date-control { max-width: none; }
  .attendance-filters { grid-template-columns: 1fr 1fr; }
  .attendance-table-head { display: none; }
  .attendance-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .attendance-identity { grid-row: span 2; }
  .attendance-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .attendance-time { grid-column: 2; grid-row: 2; justify-self: end; }
}

@media (max-width: 1060px) {
  .log-layout { grid-template-columns: 1fr; }
  .ranking-panel { position: relative; top: auto; height: min(560px, calc(100vh - 32px)); min-height: 320px; }
}

/* --------------------------------------------------------------------------
   Refined dashboard system
   A restrained, token-led finish inspired by mature admin interfaces.  The
   neutral layers keep the data in focus and work equally in both themes.
   -------------------------------------------------------------------------- */
:root {
  --bg: #0d1117;
  --bg-deep: #010409;
  --surface: #161b22;
  --surface-solid: #161b22;
  --surface-raised: #21262d;
  --line: rgb(240 246 252 / 13%);
  --line-strong: rgb(240 246 252 / 23%);
  --text: #f0f6fc;
  --muted: #8b949e;
  --brand: #f0f6fc;
  --brand-soft: rgb(240 246 252 / 8%);
  --green: #3fb950;
  --green-soft: rgb(63 185 80 / 14%);
  --red: #f85149;
  --red-soft: rgb(248 81 73 / 13%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 1px rgb(1 4 9 / 30%), 0 8px 20px rgb(1 4 9 / 15%);
  --shadow-lg: 0 18px 48px rgb(1 4 9 / 35%);
}

:root[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-deep: #eef1f4;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-raised: #f6f8fa;
  --line: rgb(31 35 40 / 14%);
  --line-strong: rgb(31 35 40 / 24%);
  --text: #1f2328;
  --muted: #59636e;
  --brand: #1f2328;
  --brand-soft: rgb(31 35 40 / 6%);
  --green: #1a7f37;
  --green-soft: rgb(26 127 55 / 11%);
  --red: #cf222e;
  --red-soft: rgb(207 34 46 / 10%);
  --shadow-sm: 0 1px 1px rgb(31 35 40 / 4%), 0 8px 20px rgb(31 35 40 / 5%);
  --shadow-lg: 0 18px 48px rgb(31 35 40 / 12%);
}

body { background: linear-gradient(145deg, var(--bg) 0%, var(--bg-deep) 130%); }
.shell { width: min(calc(100% - 48px), 1440px); padding-top: clamp(22px, 3vw, 36px); }

.topbar {
  align-items: center;
  min-height: 64px;
  margin-bottom: 0;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.brand { gap: 12px; }
.brand-visual { width: 46px; height: 46px; }
.brand-mark, .server-icon {
  border-color: var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: none;
}
.brand-mark { background: #f0f6fc; color: #0d1117; }
h1 { font-size: clamp(22px, 2.3vw, 29px); font-weight: 720; letter-spacing: -.04em; }
h2 { font-weight: 700; letter-spacing: -.025em; }
.eyebrow { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.header-actions { gap: 8px; }
.live-state { gap: 7px; padding-right: 5px; font-size: 12px; }
.live-dot { width: 7px; height: 7px; box-shadow: none; animation: none; }
.theme-toggle, .settings-button, .logout-button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset;
  font-size: 12px;
}
.theme-toggle:hover, .settings-button:hover, .logout-button:hover { border-color: var(--line-strong); background: var(--surface-raised); }

.view-tabs {
  gap: 3px;
  margin: 18px 0;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.view-tab { min-height: 34px; padding: 0 14px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.view-tab-indicator { top: 3px; height: calc(100% - 6px); border-color: var(--line); border-radius: 7px; background: var(--surface-raised); box-shadow: 0 1px 2px rgb(1 4 9 / 25%); }

.log-layout { gap: clamp(16px, 2vw, 24px); }
.toolbar {
  grid-template-columns: minmax(280px, 312px) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
.toolbar::before, .activity-panel::before, .ranking-panel::before, .login-card::before { display: none; }
.date-control { width: min(100%, 312px); gap: 8px; }
.date-label { gap: 6px; font-size: 10px; letter-spacing: .06em; }
input[type="search"], select, .custom-dropdown-button, #password {
  min-height: 42px;
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: rgb(1 4 9 / 45%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 3%) inset;
}
input:focus, select:focus, .custom-dropdown-button:focus-visible {
  border-color: rgb(240 246 252 / 48%);
  background: rgb(1 4 9 / 65%);
  box-shadow: 0 0 0 3px rgb(240 246 252 / 9%);
}
select, .custom-dropdown-button { height: 42px; padding-left: 13px; background: rgb(1 4 9 / 45%); font-weight: 650; }
select:hover, .custom-dropdown-button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-raised); }
.icon-button, .dialog-close { width: 42px; height: 42px; border-radius: var(--radius-sm); color: var(--muted); background: var(--surface-raised); }
.icon-button:not(:disabled):hover, .dialog-close:hover { border-color: var(--line-strong); color: var(--text); background: var(--brand-soft); transform: none; }
.filters { gap: 10px; }
.search .search-icon { left: 12px; width: 17px; height: 17px; }
.search input { padding-left: 37px; }

.custom-dropdown-menu {
  top: calc(100% + 8px);
  gap: 3px;
  padding: 5px;
  border-color: var(--line-strong);
  border-radius: 10px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
}
.custom-dropdown-option { min-height: 38px; border-radius: 7px; color: var(--muted); font-size: 12px; }
.custom-dropdown-option:hover, .custom-dropdown-option:focus-visible, .custom-dropdown-option.is-selected { color: var(--text); background: var(--surface-raised); }

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.summary > div {
  min-height: 78px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.summary > div:hover { background: var(--surface-raised); }
.summary-label { margin-bottom: 7px; font-size: 11px; }
.summary strong { font-size: 15px; font-weight: 720; }

.activity-panel, .ranking-panel {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: none;
}
.panel-heading { min-height: 82px; padding: 18px 20px; }
.updated-time { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--brand-soft); font-size: 10px; }
.table-head { padding: 12px 20px; border-top-color: var(--line); border-bottom-color: var(--line); background: rgb(1 4 9 / 18%); font-size: 10px; }
.member-row { padding: 13px 20px; }
.member-row:hover, .member-row:focus-visible { background: var(--surface-raised); transform: none; }
.avatar, .avatar-fallback { border-color: var(--line-strong); box-shadow: none; }
.avatar-fallback { background: #30363d; }
.member-name { font-weight: 700; }
.duration { color: var(--text); font-weight: 720; }
.permission { gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 11px; }
.permission::before { width: 7px; height: 7px; }
.permission.yes { color: #7ee787; border-color: rgb(63 185 80 / 22%); }
.permission.no { color: #ffaba8; border-color: rgb(248 81 73 / 22%); }

.ranking-panel { top: 20px; height: min(680px, calc(100vh - 40px)); padding: 18px; }
.ranking-heading { align-items: center; padding: 1px 1px 15px; }
.ranking-caption { padding: 4px 8px; border-radius: 999px; background: var(--brand-soft); font-size: 10px; }
.ranking-list { gap: 3px; margin-top: 12px; }
.ranking-row { min-height: 50px; padding: 7px 6px; border-radius: 8px; }
.ranking-row:hover { background: var(--surface-raised); transform: none; }
.ranking-avatar, .ranking-avatar-fallback { border-color: var(--line); box-shadow: none; }

.member-dialog, .settings-dialog {
  border-color: var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: 0 28px 80px rgb(1 4 9 / 62%);
}
.member-dialog::backdrop, .settings-dialog::backdrop { background: rgb(1 4 9 / 72%); backdrop-filter: blur(6px); }
.dialog-close { top: 14px; right: 14px; }
.settings-dialog { width: min(500px, calc(100% - 32px)); padding: 24px; }
.settings-form { gap: 15px; margin-top: 22px; }
.settings-field { gap: 6px; }
.settings-number-control { border-radius: var(--radius-sm); background: rgb(1 4 9 / 45%); }
.settings-number-control:focus-within { border-color: rgb(240 246 252 / 48%); background: rgb(1 4 9 / 65%); box-shadow: 0 0 0 3px rgb(240 246 252 / 9%); }
.settings-save, .primary-button { border-color: rgb(240 246 252 / 16%); border-radius: var(--radius-sm); background: #f0f6fc; box-shadow: 0 8px 20px rgb(1 4 9 / 24%); font-weight: 750; }
.settings-save:not(:disabled):hover, .primary-button:hover { filter: brightness(.96); transform: translateY(-1px); }

.login-card {
  width: min(456px, 100%);
  padding: clamp(28px, 5vw, 38px);
  border-color: var(--line-strong);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: 0 26px 70px rgb(1 4 9 / 42%);
}
.login-access-badge { top: 18px; right: 18px; border-color: var(--line); background: var(--brand-soft); font-weight: 700; }
.login-card .brand-visual { width: 50px; height: 50px; margin-bottom: 18px; }
.login-card h1 { margin-bottom: 20px; font-size: clamp(24px, 4vw, 30px); }
.login-copy { margin-bottom: 25px; padding-top: 15px; }
#password { min-height: 46px; background: rgb(1 4 9 / 45%); }
.password-field:focus-within { filter: none; transform: none; }
.primary-button { min-height: 46px; margin-top: 10px; }

:root[data-theme="light"] .toolbar,
:root[data-theme="light"] .activity-panel,
:root[data-theme="light"] .ranking-panel,
:root[data-theme="light"] .login-card { background: var(--surface); box-shadow: var(--shadow-sm); }
:root[data-theme="light"] input[type="search"],
:root[data-theme="light"] select,
:root[data-theme="light"] .custom-dropdown-button,
:root[data-theme="light"] #password,
:root[data-theme="light"] .settings-number-control { background: var(--surface-raised); }
:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus,
:root[data-theme="light"] .custom-dropdown-button:focus-visible,
:root[data-theme="light"] .settings-number-control:focus-within { border-color: rgb(31 35 40 / 45%); background: #ffffff; box-shadow: 0 0 0 3px rgb(9 105 218 / 12%); }
:root[data-theme="light"] .table-head { background: var(--surface-raised); }
:root[data-theme="light"] .member-row:hover, :root[data-theme="light"] .member-row:focus-visible,
:root[data-theme="light"] .ranking-row:hover { background: var(--surface-raised); }
:root[data-theme="light"] .permission.yes { color: #1a7f37; }
:root[data-theme="light"] .permission.no { color: #cf222e; }
:root[data-theme="light"] .settings-save, :root[data-theme="light"] .primary-button { color: #ffffff; background: #1f2328; box-shadow: 0 8px 20px rgb(31 35 40 / 16%); }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 24px), 1440px); padding-top: 18px; }
  .topbar { align-items: flex-start; min-height: auto; padding-bottom: 16px; }
  .header-actions { width: 100%; padding-left: 0; }
  .live-state { padding-left: 0; }
  .view-tabs { margin: 14px 0; }
  .toolbar { padding: 14px; }
  .summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary > div { min-width: 0; min-height: 72px; border: 1px solid var(--line); }
  .summary > div:nth-child(2) { border-right: 1px solid var(--line); }
  .summary > div:last-child { border-bottom: 1px solid var(--line); }
  .summary > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .panel-heading { min-height: 76px; padding: 17px 14px; }
  .member-row { padding: 14px; }
  .ranking-panel { height: min(560px, calc(100vh - 32px)); }
}

@media (max-width: 480px) {
  .brand-visual { width: 42px; height: 42px; }
  h1 { font-size: 22px; }
  .header-actions { gap: 6px; }
  .live-state { width: 100%; }
  .theme-toggle, .settings-button, .logout-button { min-height: 33px; padding: 0 9px; }
  .view-tab { padding: 0 11px; }
  .settings-dialog { width: calc(100% - 20px); padding: 20px; }
  .login-card { padding: 26px 22px; }
}

/* Settings dialog: one clear vertical form rhythm, with grouped time controls. */
.settings-dialog {
  width: min(548px, calc(100% - 32px));
  max-height: min(720px, calc(100dvh - 40px));
  padding: 26px;
  border-radius: 18px;
}
.settings-heading {
  min-height: 70px;
  padding: 1px 50px 17px 0;
  border-bottom: 1px solid var(--line);
}
.settings-heading .eyebrow { margin-bottom: 6px; }
.settings-heading h2 { font-size: 21px; line-height: 1.2; }
.settings-heading > p:last-child { max-width: 390px; margin-top: 8px; font-size: 12px; line-height: 1.5; }
.settings-form { gap: 18px; margin-top: 18px; }
.settings-field {
  grid-template-rows: 16px 44px minmax(28px, auto);
  gap: 7px;
}
.settings-field > span:first-child { align-self: center; font-size: 13px; font-weight: 750; line-height: 1; }
.settings-field small { max-width: 450px; padding: 0 1px; font-size: 11px; line-height: 1.45; }
.settings-field .custom-dropdown-button,
.settings-number-control { min-height: 44px; height: 44px; border-radius: 10px; }
.settings-field .custom-dropdown-button { padding-right: 42px; font-size: 13px; }
.settings-field .custom-dropdown-option { min-height: 40px; font-size: 13px; }
.settings-field .custom-dropdown-menu { top: calc(100% + 9px); max-height: 224px; padding: 6px; border-radius: 11px; }
.settings-time-control { height: 44px; gap: 10px; }
.settings-time-control .settings-number-control { grid-template-columns: minmax(0, 1fr) auto; padding-right: 13px; }
.settings-number-control input { padding: 0 13px; font-size: 14px; font-variant-numeric: tabular-nums; }
.settings-number-control b { font-size: 12px; }
.settings-status {
  min-height: 18px;
  margin: -2px 1px 0;
  font-size: 11px;
  line-height: 1.45;
}
.settings-save { min-height: 46px; border-radius: 10px; font-size: 13px; }
.settings-dialog .dialog-close { top: 17px; right: 17px; width: 36px; height: 36px; }

@media (max-width: 600px) {
  .settings-dialog {
    top: 12px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    padding: 21px 18px;
    translate: -50% 0;
  }
  .settings-heading { min-height: 0; padding: 1px 42px 15px 0; }
  .settings-heading h2 { font-size: 20px; }
  .settings-heading > p:last-child { font-size: 11px; }
  .settings-form { gap: 16px; margin-top: 16px; }
  .settings-field { grid-template-rows: 16px 43px minmax(26px, auto); gap: 6px; }
  .settings-field .custom-dropdown-button,
  .settings-number-control,
  .settings-time-control { min-height: 43px; height: 43px; }
  .settings-field small { font-size: 10px; }
}

/* Select anatomy: value, leading icon, and selected state share one baseline. */
.custom-dropdown-button {
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
}
.custom-dropdown-text {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-dropdown-button::after {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  color: var(--muted);
  background: none;
  font-size: 0;
  transform: translateY(-65%) rotate(45deg);
}
.custom-dropdown.is-open .custom-dropdown-button::after { transform: translateY(-35%) rotate(225deg); }
.custom-dropdown-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 38px 0 12px;
  line-height: 1.25;
}
.custom-dropdown-option-text {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-dropdown-option .dropdown-leading-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--muted);
}
.custom-dropdown-option.is-selected .dropdown-leading-icon { color: var(--text); }
.custom-dropdown-check {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}
.custom-dropdown-option.is-selected { color: var(--text); background: var(--surface-raised); }
.custom-dropdown-option:focus-visible { box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Discord's own icon scale: `sm` is an 18px square for channel-type markers. */
.settings-field .custom-dropdown-button.has-leading-icon {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.settings-field .custom-dropdown-button.has-leading-icon .dropdown-leading-icon {
  position: static;
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--muted);
  transform: none;
}
.settings-field .custom-dropdown-button.has-leading-icon .custom-dropdown-text {
  grid-column: 2;
  line-height: 18px;
}
.settings-field .custom-dropdown-button.has-leading-icon::after {
  position: static;
  top: auto;
  right: auto;
  grid-column: 3;
  justify-self: end;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  transform: rotate(45deg);
}
.settings-field .custom-dropdown.is-open .custom-dropdown-button.has-leading-icon::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.settings-field .custom-dropdown-option.has-leading-icon {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.settings-field .custom-dropdown-option.has-leading-icon .dropdown-leading-icon {
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--muted);
}
.settings-field .custom-dropdown-option.has-leading-icon .custom-dropdown-option-text { line-height: 18px; }
.settings-field .dropdown-voice-icon {
  width: 18px;
  height: 18px;
  transform: none;
}
.settings-field .dropdown-text-icon {
  width: 18px;
  height: 18px;
  transform: none;
}
.settings-field .dropdown-role-icon {
  display: block;
  width: 18px;
  height: 18px;
  transform: none;
}

/* Settings selects use a regular-weight value line with equal breathing room
   above and below it.  This keeps Korean names from looking packed together. */
.settings-field .custom-dropdown-button,
.settings-field .custom-dropdown-option {
  font-weight: 500;
  letter-spacing: 0;
}
.settings-field .custom-dropdown-button.has-leading-icon,
.settings-field .custom-dropdown-option.has-leading-icon {
  align-content: center;
}
.settings-field .custom-dropdown-button.has-leading-icon .custom-dropdown-text,
.settings-field .custom-dropdown-option.has-leading-icon .custom-dropdown-option-text {
  align-self: center;
  line-height: 20px;
}
.settings-field .custom-dropdown-button.has-leading-icon::after {
  margin-top: -1px;
}
.settings-field .custom-dropdown.is-open .custom-dropdown-button.has-leading-icon::after {
  margin-top: 1px;
}

/* Discord OAuth sign-in: uses the same monochrome language as the rest of
   the dashboard while making the authentication choice immediately obvious. */
.discord-login-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgb(240 246 252 / 16%);
  border-radius: var(--radius-sm);
  color: #0d1117;
  background: #f0f6fc;
  box-shadow: 0 8px 20px rgb(1 4 9 / 24%);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  animation: login-item-in .4s cubic-bezier(.2, .8, .2, 1) .3s both;
}
.discord-login-button svg { width: 20px; height: 20px; fill: currentColor; }
.discord-login-button:hover { filter: brightness(.96); transform: translateY(-1px); box-shadow: 0 11px 24px rgb(1 4 9 / 30%); }
.discord-login-button:active { transform: translateY(0) scale(.985); }
.discord-login-button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.oauth-login-error { min-height: 0 !important; margin: -9px 0 14px !important; padding: 0 !important; }
.login-hint { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
:root[data-theme="light"] .discord-login-button { color: #ffffff; background: #1f2328; box-shadow: 0 8px 20px rgb(31 35 40 / 16%); }
