/* =========================================================
   루엔 · 블랙 & 화이트 미니멀
   휴대폰이 다크 모드면 자동으로 검정 바탕
   ========================================================= */
:root {
  --bg: #ffffff; --bg2: #fafafa; --panel: #ffffff; --line: #e8e8e8; --line2: #f0f0f0;
  --text: #0a0a0a; --muted: #737373; --faint: #a3a3a3;
  --btn: #0a0a0a; --btn-text: #ffffff; --hover: #f5f5f5;
  --ok: #16a34a; --ok-bg: #f0fdf4; --warn: #b45309; --warn-bg: #fffbeb; --err: #dc2626; --err-bg: #fef2f2; --info-bg: #f5f5f5;
  --accent: var(--text);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a; --bg2: #111111; --panel: #111111; --line: #262626; --line2: #1c1c1c;
    --text: #fafafa; --muted: #a3a3a3; --faint: #737373;
    --btn: #fafafa; --btn-text: #0a0a0a; --hover: #1a1a1a;
    --ok: #4ade80; --ok-bg: #0f1f14; --warn: #fbbf24; --warn-bg: #1f1a0b; --err: #f87171; --err-bg: #1f0f0f; --info-bg: #1a1a1a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; max-width: 100%; overflow-x: hidden; background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img, input, select, textarea, table { max-width: 100%; }
h1, h2, h3 { letter-spacing: -.02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* 머리 */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.avatar { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font: 600 15px/1 inherit; font-family: inherit; border: 1px solid transparent; cursor: pointer; transition: opacity .15s, background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-white { background: var(--btn); color: var(--btn-text); }
.btn-white:hover { opacity: .86; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { background: var(--panel); color: var(--err); border-color: var(--line); }
.btn-danger:hover { background: var(--err-bg); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.link { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; padding: 0 4px; font-family: inherit; text-decoration: underline; }

/* 첫 화면 */
.hero { text-align: center; padding: 96px 0 64px; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.08; letter-spacing: -.045em; margin: 0; font-weight: 800; }
.hero p { color: var(--muted); font-size: 17px; margin: 20px auto 0; max-width: 32rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }

/* 카드·그리드 */
.grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; overflow-wrap: anywhere; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
h1.page { font-size: 26px; margin: 28px 0 4px; }
h2.sec { font-size: 17px; margin: 0; }
.stat p { font-size: 13px; color: var(--muted); }
.stat b { display: block; font-size: 26px; letter-spacing: -.03em; margin-top: 6px; }
.stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.stat span a { text-decoration: underline; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.actions { display: flex; gap: 6px; align-items: center; }
.product { margin-bottom: 12px; }
.product h3 { display: flex; align-items: center; gap: 8px; }
.guild { display: flex; align-items: center; gap: 14px; }
.guild:hover { border-color: var(--text); }
.guild img, .guild .ph { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: var(--hover); display: grid; place-items: center; font-weight: 700; }
.guild .name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 탭·칩 */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px 0; padding: 2px 0 6px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tabs a.on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chip.on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }

/* 입력 */
form .field { margin-bottom: 16px; }
label.lb { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input[type=text], input[type=number], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 13px; font-size: 15px; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=color] { width: 100%; height: 44px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; cursor: pointer; }
.switch input, .checks input { width: 18px; height: 18px; accent-color: var(--text); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.search input { width: 220px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14px; }
details > summary { cursor: pointer; list-style: none; color: var(--muted); margin-top: 10px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; }
details[open] > summary::before { content: "▾ "; }
details.card > summary { margin-top: 0; color: var(--text); }

/* 알림·뱃지 */
.flash { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 16px 0; border: 1px solid var(--line); }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }
.banner { background: var(--bg2); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); vertical-align: middle; }
.badge.on { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.badge.off { color: var(--muted); background: var(--info-bg); border-color: transparent; }
.badge.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.badge.info { color: var(--text); background: var(--info-bg); border-color: transparent; }

/* 표·목록 */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line2); }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; padding: 6px 14px; }
.table-wrap table { min-width: 560px; }
.list { list-style: none; padding: 0; margin: 10px 0 0; }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.list li:last-child { border-bottom: 0; }

/* 메뉴 (휴대폰 머리) */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; margin: 0; }
.menu summary::before, .menu summary::-webkit-details-marker { display: none; content: none; }
.menu-box { position: absolute; right: 0; top: 44px; min-width: 180px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.25); z-index: 30; }
.menu-box a { display: block; padding: 11px 12px; border-radius: 8px; font-size: 15px; }
.menu-box a:hover, .menu-box a:active { background: var(--hover); }
.menu-box p { padding: 4px 12px 8px; margin: 0 0 6px; border-bottom: 1px solid var(--line2); }

footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0; color: var(--muted); font-size: 13px; }

/* ---------- 대시보드 틀 ---------- */
.layout { display: block; }
.content { min-width: 0; }
.layout2 { display: block; margin-top: 16px; }
.side { position: sticky; top: 78px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--panel); }
.side-server { font-weight: 700; padding: 8px 10px 12px; border-bottom: 1px solid var(--line2); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-head { margin: 14px 10px 4px; font-size: 11.5px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.side-link { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.side-link:hover { background: var(--hover); color: var(--text); }
.side-link.on { background: var(--hover); color: var(--text); font-weight: 600; }
.page-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.page-head h1.page { margin: 0; font-size: 22px; }
.back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); font-size: 22px; line-height: 1; }
.subtabs { margin: 0 -16px 10px !important; padding: 2px 16px 6px !important; }

/* 홈 */
.server-card { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--panel); }
.server-card img, .server-card .ph { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; background: var(--hover); display: grid; place-items: center; font-weight: 700; font-size: 22px; }
.server-card h1 { margin: 0; font-size: 21px; }
.server-card p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.todos { display: grid; gap: 8px; margin-top: 12px; }
.todo { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; background: var(--panel); }
.todo:hover { border-color: var(--text); }
.todo.warn { background: var(--warn-bg); }
.todo.ok { color: var(--muted); text-align: center; }
.today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.today div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel); }
.today span { display: block; font-size: 12px; color: var(--muted); }
.today b { display: block; margin-top: 3px; font-size: 19px; letter-spacing: -.02em; }
.tiles-title { margin: 28px 2px 10px !important; font-size: 13px !important; color: var(--muted); font-weight: 600; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel); transition: border-color .15s; }
.tile:hover { border-color: var(--text); }
.tile-icon { font-size: 20px; line-height: 1; }
.tile-body b { display: block; font-size: 15px; margin-bottom: 5px; }
.tile-stat { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* 휴대폰 아래 메뉴바 */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; font-size: 11px; color: var(--faint); }
.bnav a span { font-size: 19px; line-height: 1.2; filter: grayscale(1); opacity: .55; }
.bnav a.on { color: var(--text); font-weight: 600; }
.bnav a.on span { filter: none; opacity: 1; }
.bnav-space { height: 76px; }

/* 패널 올리기·등급 줄 */
.panel-card { border-style: dashed; }
.panel-row { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-row select { flex: 1 1 200px; }
.tier-row { display: grid; grid-template-columns: 16px 1.2fr 1fr 1.2fr .7fr; gap: 8px; align-items: center; margin-bottom: 8px; }

/* 공지 편집기 */
.elist { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.elist:hover, .elist.on { border-color: var(--text); }
.erow { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line2); }
.erow:first-child { border-top: 0; padding-top: 0; }
.erow .link { justify-self: start; }
@media (min-width: 720px) { .erow[data-row="button"] { grid-template-columns: 70px 1fr 1.4fr auto; align-items: center; } }
.ecols { display: grid; gap: 16px; }
@media (min-width: 1024px) { .ecols { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .epreview { position: sticky; top: 78px; } }
/* 디스코드 미리보기는 실제 디스코드 색 그대로 */
.dc { background: #313338; border-radius: 12px; padding: 16px; color: #dbdee1; font-size: 15px; line-height: 1.375; }
.dc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #f2f3f5; }
.dc-ava { width: 36px; height: 36px; border-radius: 999px; background: #5865f2; flex-shrink: 0; }
.dc-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.dc-content { margin: 0 0 6px 44px; overflow-wrap: anywhere; }
.dc-embed { position: relative; margin-left: 44px; background: #2b2d31; border-left: 4px solid #8fd3ff; border-radius: 4px; padding: 10px 14px 14px; display: grid; gap: 6px; overflow-wrap: anywhere; }
.dc-author { font-size: 13px; font-weight: 600; color: #f2f3f5; }
.dc-author:empty, .dc-title:empty, .dc-desc:empty, .dc-footer:empty, .dc-fields:empty, .dc-content:empty, .dc-btns:empty { display: none; }
.dc-title { font-weight: 700; color: #00a8fc; }
.dc-desc { font-size: 14px; }
.dc-desc code, .dc-content code { background: #1e1f22; padding: 1px 4px; border-radius: 4px; font-size: 13px; }
.dc-desc a, .dc-content a { color: #00a8fc; }
.dc-mention { background: rgba(88,101,242,.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dc-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dc-field { flex: 1 1 100%; font-size: 14px; }
.dc-field.in { flex: 1 1 28%; }
.dc-field b { display: block; font-size: 13px; color: #f2f3f5; margin-bottom: 2px; }
.dc-thumb { display: none; position: absolute; top: 12px; right: 12px; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.dc-image { display: none; width: 100%; border-radius: 4px; margin-top: 6px; }
.dc-footer { font-size: 12px; color: #b5bac1; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 44px; }
.dc-btn { background: #4e5058; color: #fff; font-size: 14px; padding: 6px 14px; border-radius: 4px; }

/* ---------- 화면 크기별 ---------- */
@media (max-width: 767px) {
  .pc-only { display: none !important; }
  .wrap { padding: 0 16px; }
  header.top .wrap { height: 54px; }
  h1.page { font-size: 22px; margin-top: 22px; }
  .hero { padding: 64px 0 44px; }
  .card { padding: 18px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 20px; }
  .row { grid-template-columns: 1fr; }
  .btn { height: 46px; }
  .btn-sm { height: 36px; }
  .tabs { margin: 12px -16px; padding: 2px 16px 6px; }
  .table-wrap { padding: 4px 10px; }
  .table-wrap table { min-width: 520px; }
  input[type=text], input[type=number], input[type=url], input[type=datetime-local], select, textarea { font-size: 16px; } /* 자동 확대 방지 */
  .toolbar { align-items: flex-start; }
  .search, .search input { width: 100%; }
  .tier-row { grid-template-columns: 16px 1fr 1fr; }
  .tier-row select { grid-column: 2 / 3; }
  .tier-row input[name="tdisc"] { grid-column: 3 / 4; }
  footer { padding-bottom: 90px; }
}
@media (min-width: 768px) { .mobile-only { display: none !important; } }
@media (min-width: 1024px) {
  .layout2 { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
  .card { padding: 24px; }
  .table-wrap table { min-width: 0; }
  .hero h1 { font-size: 68px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* 태블릿: 왼쪽 메뉴 대신 아래 메뉴바 */
  .layout2 .side { display: none !important; }
  .bnav.mobile-only, .bnav-space.mobile-only, .subtabs.mobile-only, .back.mobile-only { display: flex !important; }
  .bnav-space.mobile-only { display: block !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =========================================================
   고급스럽게 다듬기
   ========================================================= */
:root { --bg: #fafafa; --panel: #ffffff; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) { :root { --bg: #09090b; --panel: #111113; --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px -12px rgba(0,0,0,.6); } }
html, body { background: var(--bg); }
body { font-feature-settings: "tnum" 1; }
header.top { background: color-mix(in srgb, var(--panel) 86%, transparent); }
.logo { font-weight: 800; letter-spacing: -.02em; }
h1.page, .page-head h1.page { font-weight: 800; letter-spacing: -.035em; }

.card, .tile, .today div, .todo, .side, .server-card { box-shadow: var(--shadow); }
.card { border-radius: 16px; }
.btn-white { box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-ghost { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
input[type=text], input[type=number], input[type=url], input[type=datetime-local], select, textarea { background: var(--panel); }

/* 첫 화면 */
.hero { padding-bottom: 40px; }
.hero h1 { font-weight: 900; letter-spacing: -.055em; }
.hero-card { display: block; width: min(560px, 92%); height: auto; margin: 52px auto 0; border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45), 0 12px 24px -12px rgba(0,0,0,.25); transform: perspective(1200px) rotateX(8deg); }
.hero-note { font-size: 13px !important; margin-top: 18px !important; color: var(--faint) !important; }

/* 서버 카드는 이미지 카드처럼 검정 고급 카드로 */
.server-card { background: linear-gradient(135deg, #0c0c0e, #1b1b20 60%, #26262d); color: #fff; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 22px; position: relative; overflow: hidden; }
.server-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 220px at 90% -20%, rgba(255,255,255,.14), transparent 70%); pointer-events: none; }
.server-card h1 { color: #fff; font-weight: 800; letter-spacing: -.03em; }
.server-card p { color: rgba(255,255,255,.6); }
.server-card img, .server-card .ph { border: 2px solid rgba(255,255,255,.85); background: #2a2a30; color: #fff; }

/* 숫자 칸 */
.today b { font-weight: 800; font-size: 21px; }
.stat b { font-weight: 800; }

/* 타일 */
.tile { border-radius: 16px; padding: 16px; gap: 12px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--line); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 16px 32px -16px rgba(0,0,0,.22); }
.tile-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--hover); border: 1px solid var(--line2); }
.tile-body b { font-weight: 700; letter-spacing: -.02em; }

/* 왼쪽 메뉴: 고른 메뉴는 검정 */
.side { border-radius: 18px; padding: 12px; }
.side-link.on { background: var(--btn); color: var(--btn-text); }
.side-link.on:hover { background: var(--btn); color: var(--btn-text); }

/* 아래 메뉴바: 고른 메뉴 위에 짧은 막대 */
.bnav a { position: relative; }
.bnav a.on::before { content: ""; position: absolute; top: -4px; left: 50%; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--text); transform: translateX(-50%); }

/* 처리할 일 */
.todo { border-radius: 12px; font-weight: 500; }
.todo b { font-weight: 800; }

/* 자판기 관리 / 서버 관리 전환 */
.space-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 16px; background: var(--hover); border: 1px solid var(--line); border-radius: 14px; }
.space-switch a { text-align: center; padding: 11px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.space-switch a.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px -6px rgba(0,0,0,.18); }
@media (min-width: 1024px) { .space-switch { max-width: 420px; margin-top: 24px; } }

/* =========================================================
   설정 앱처럼 묶인 목록 (타일 대신)
   ========================================================= */
.lhead { margin: 26px 6px 8px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.lgroup { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.lrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 66px; transition: background .12s; }
.lrow + .lrow { border-top: 1px solid var(--line2); }
.lrow:hover { background: var(--hover); }
.lrow:active { background: var(--hover); transform: none; }
.lrow-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: var(--hover); border: 1px solid var(--line2); }
.lrow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lrow-body b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.lrow-body small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.st.on { color: var(--ok); }
.st.warn { color: var(--warn); }
.lrow-go { flex-shrink: 0; font-size: 20px; color: var(--faint); margin-left: 2px; }
@media (min-width: 1024px) { .lrow { padding: 14px 20px; } }
