:root {
  color-scheme: light;
  --ink: #18172c;
  --text: #34334b;
  --muted: #64647b;
  --subtle: #79798d;
  --line: #e9e9f1;
  --page: #f7f8fc;
  --white: #fff;
  --primary: #6443ee;
  --primary-dark: #5435d8;
  --lavender: #f0ebff;
  --radius: 17px;
  font-family: Inter, "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 14px;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); min-width: 320px; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #a28df9; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; background: var(--white); border-radius: 8px; }
.skip:focus { transform: none; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 26px; height: 26px; }
.app-shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--white); padding: 26px 16px 17px; z-index: 9; }
.brand { display: flex; align-items: center; gap: 10px; padding-left: 9px; width: max-content; margin-bottom: 40px; }
.brand img { width: 36px; height: 36px; }
.brand strong { display: block; font-size: 23px; font-weight: 850; letter-spacing: -.075em; line-height: 1.15; }
.brand small { display: block; font-size: 9px; color: var(--muted); font-weight: 750; letter-spacing: .11em; margin-top: 4px; }
.nav { display: flex; flex-direction: column; gap: 24px; }
.nav-group { display: grid; gap: 4px; }
.nav-heading { padding: 0 10px; margin-bottom: 5px; color: var(--subtle); font-size: 11px; font-weight: 750; }
.nav-item { min-height: 42px; display: flex; gap: 10px; align-items: center; padding: 0 10px; white-space: nowrap; font-size: 13px; font-weight: 650; color: #51516a; border-radius: 9px; }
.nav-item:hover { background: #f6f5fc; color: var(--primary-dark); }
.nav-item.active { background: var(--lavender); color: #5736d6; font-weight: 800; }
.nav-count { margin-left: auto; color: #5b3bbc; background: #eee8fe; min-width: 19px; border-radius: 7px; padding: 2px 5px; text-align: center; font-size: 10px; }
.topbar { height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); }
.top-left, .top-actions, .profile-trigger { display: flex; align-items: center; }
.top-left { gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.top-actions { gap: 13px; }
.top-actions .separator { width: 1px; height: 25px; background: var(--line); }
.mode-badge { align-items: center; display: inline-flex; gap: 6px; border: 1px solid #e9e1ff; background: #f8f4ff; color: #5d40b9; border-radius: 99px; padding: 5px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.mode-badge.live { background: #edf8f3; color: #1c6a53; border-color: #d8efe4; }
.mode-dot { height: 6px; width: 6px; border-radius: 50%; background: currentColor; }
.icon-button { display: inline-grid; place-items: center; border: 1px solid var(--line); width: 35px; height: 35px; border-radius: 9px; background: white; color: #51516b; flex: 0 0 auto; }
.icon-button:hover { background: #f5f1ff; color: var(--primary-dark); }
.profile-trigger { border: 0; padding: 0; gap: 8px; background: transparent; color: var(--muted); }
.profile-name { font-size: 12px; font-weight: 750; white-space: nowrap; color: var(--ink); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.avatar { display: inline-grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; color: #5d3bcf; background: #efe9ff; border-radius: 10px; font-weight: 850; font-size: 12px; }
.mobile-toggle { display: none; }
.main { max-width: 1530px; padding: 29px 32px 36px; margin: 0 auto; }
.auth-shell { display: block; }
.auth-shell .main { display: grid; min-height: 100svh; place-items: center; padding: clamp(16px, 5vw, 52px); }
.auth-screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); width: min(100%, 790px); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 16px 58px #30225c12; }
.auth-brand { min-height: 364px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: space-between; color: white; background: radial-gradient(ellipse at 77% 94%, #7c5cff 0, transparent 57%), linear-gradient(145deg, #31207f, #5431cb); }
.auth-brand .brand { padding-left: 0; margin-bottom: 0; }
.auth-brand .brand img { width: 43px; height: 43px; }
.auth-brand .brand small { color: #e5dcff; }
.auth-brand p { font-size: clamp(20px, 3vw, 31px); font-weight: 800; letter-spacing: -.06em; line-height: 1.32; }
.auth-card { align-self: center; padding: clamp(24px, 4vw, 42px); }
.auth-card h1 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 850; letter-spacing: -.055em; }
.auth-card > p { margin: 8px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-card > .notice { margin-bottom: 14px; }
.auth-card form { gap: 12px; }
.auth-card .field input { height: 42px; }
.auth-card [data-auth-feedback]:empty { display: none; }
.auth-card form .button { min-height: 43px; }
.loading, .empty { padding: 32px 15px; text-align: center; color: var(--muted); line-height: 1.7; }
.empty .icon { display: block; margin: 0 auto 7px; color: #8a78be; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); line-height: 1.24; font-weight: 850; letter-spacing: -.065em; }
.page-head p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 13px; min-height: 39px; border-radius: 9px; border: 1px solid #e4e3ed; background: #fff; color: var(--text); font-size: 12px; font-weight: 780; line-height: 1.2; white-space: nowrap; }
.button:hover { background: #f6f3ff; color: var(--primary-dark); }
.button.primary { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 3px 7px #6142e82a; }
.button.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button.soft { background: #f1ebff; color: #5737ca; border-color: #f1ebff; }
.button.danger { color: #ae3548; }
.button.small { padding: 6px 9px; min-height: 29px; font-size: 11px; }
.button:disabled { opacity: .54; cursor: default; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero { position: relative; display: flex; overflow: hidden; min-height: 173px; margin-bottom: 18px; padding: 23px 27px; border-radius: var(--radius); color: #fff; isolation: isolate; background: linear-gradient(108deg, #31207f 0%, #4826b5 50%, #7048f3 100%); }
.hero-content { position: relative; z-index: 1; max-width: 630px; }
.hero-label { display: flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 750; color: #e1d9ff; }
.hero-balance { margin-top: 7px; white-space: nowrap; font-size: clamp(25px, 4vw, 37px); font-weight: 850; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.hero-balance span { font-size: .55em; margin-left: 4px; color: #dfd3ff; font-weight: 750; }
.hero .button { margin-top: 14px; border-color: #fff; color: #43269e; padding: 7px 11px; min-height: 33px; }
.hero .button:hover { background: #eee8ff; }
.hero-art { pointer-events: none; position: absolute; right: -8px; bottom: -103px; width: min(48%, 420px); aspect-ratio: 1.12; opacity: .92; }
.orbit { position: absolute; left: 0; top: 0; width: 100%; height: 75%; border: 1px solid #f4eaff5c; border-radius: 48%; transform: rotate(-23deg); }
.orbit:nth-child(2) { inset: 14px -8px; }
.orbit:nth-child(3) { inset: 29px -16px; }
.orbit:nth-child(4) { inset: 45px -24px; }
.orbit:nth-child(5) { inset: 61px -32px; }
.orbit:nth-child(6) { inset: 77px -40px; }
.hero-coin { position: absolute; width: 79px; aspect-ratio: 1; display: grid; place-items: center; top: 23px; left: 35%; background: #a288fc40; border: 1px solid #eaddff87; border-radius: 24px; transform: rotate(-17deg); color: #f5edff; box-shadow: 8px 12px 0 #4d2ecf44; backdrop-filter: blur(3px); font-size: 39px; font-weight: 800; }
.hero-spark { position: absolute; top: 17px; right: 23%; font-size: 25px; color: #efddff; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 22px; }
.metric { background: #fff; display: block; padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; min-width: 0; }
.metric:hover { border-color: #cbbdfc; }
.metric-head { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 750; }
.tile-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #6847dd; background: #f0ecff; flex: 0 0 auto; }
.tile-icon.blue { color: #335ecc; background: #eaf0ff; }
.tile-icon.green { color: #1e835f; background: #e8f7ef; }
.tile-icon.orange { color: #ad631c; background: #fff2e3; }
.metric-value { display: block; margin-top: 7px; font-size: 25px; font-weight: 850; line-height: 1.12; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 12px; font-weight: 700; margin-left: 3px; color: var(--muted); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(247px, 1fr); gap: 16px; align-items: start; }
.panel { background: #fff; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; }
.panel-head h2 { font-size: 16px; font-weight: 850; letter-spacing: -.04em; }
.panel-head p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.text-button { display: inline-flex; align-items: center; gap: 4px; color: #6342d2; font-size: 11px; font-weight: 800; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
th { background: #fafafe; padding: 10px 14px; border-top: 1px solid #f0eff6; color: #64647b; text-align: left; font-size: 11px; font-weight: 750; }
td { padding: 10px 14px; height: 49px; border-top: 1px solid #f0eff6; color: var(--text); }
tr:hover td { background: #fbfaff; }
.right { text-align: right; }
.number { font-variant-numeric: tabular-nums; }
.record-link { padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font-size: 12px; font-weight: 780; }
.record-link:hover { color: var(--primary); text-decoration: underline; }
.table-detail { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 4px 7px; background: #f0eff5; color: #5c5a6c; font-size: 10px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.status::before { content: ""; background: currentColor; border-radius: 50%; width: 5px; height: 5px; }
.status.blue { background: #eaf0ff; color: #3459b7; }
.status.green { background: #e7f6ee; color: #1c7453; }
.status.orange { background: #fff2df; color: #935514; }
.status.purple { background: #efeaff; color: #6043ba; }
.status.red { background: #fceef1; color: #a6394b; }
.aside-rows { padding: 0 15px; }
.aside-item { display: flex; gap: 8px; align-items: center; padding: 10px 0; min-height: 54px; border-top: 1px solid var(--line); }
.aside-item b { display: block; font-size: 12px; font-weight: 790; }
.aside-item small { color: var(--muted); display: block; margin-top: 3px; font-size: 10px; }
.aside-item .amount { margin-left: auto; font-size: 12px; color: #5c3dcb; font-weight: 850; white-space: nowrap; }
.aside-foot { padding: 0 15px 13px; }
.aside-foot .button { width: 100%; }
.list-tools { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; padding: 0 15px 13px; }
.search-field { display: inline-flex; gap: 7px; align-items: center; border: 1px solid #e4e3ed; border-radius: 9px; padding: 0 9px; color: var(--muted); min-height: 36px; }
.search-field input { width: min(46vw,215px); padding: 7px 0; border: 0; outline: none; background: none; color: var(--ink); }
.search-field:focus-within { outline: 2px solid #a28df9; outline-offset: 2px; }
.search-field input:focus-visible { outline: 0; }
.list-tools select { border: 1px solid #e4e3ed; border-radius: 9px; min-height: 36px; padding: 6px 8px; color: var(--text); background: #fff; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.pager .icon-button { width: 29px; height: 29px; }
.stack { display: grid; gap: 14px; }
.tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); background: #f8f7fc; border-radius: 9px; width: max-content; max-width: 100%; }
.tab { border: 0; background: transparent; border-radius: 6px; color: var(--muted); padding: 7px 9px; font-weight: 750; font-size: 12px; }
.tab[aria-selected="true"] { color: #5737ca; background: #fff; box-shadow: 0 1px 4px #2d22571a; }
.content-pad { padding: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; min-width: 0; gap: 5px; align-content: start; color: var(--text); font-size: 12px; font-weight: 750; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 38px; border: 1px solid #dfdeeb; color: var(--ink); background: #fff; border-radius: 8px; padding: 8px 10px; font-weight: 500; }
.field small { color: var(--muted); font-weight: 500; line-height: 1.5; }
.field textarea { min-height: 74px; resize: vertical; line-height: 1.5; }
.schedule-options { padding: 0; margin: 0; border: 0; }
.schedule-options legend { padding: 0; margin-bottom: 5px; }
.schedule-options > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.schedule-options .checkline { align-items: center; cursor: pointer; }
.schedule-options input[type="checkbox"] { margin: 0; width: 15px; min-height: 15px; }
[data-schedule-deadline] { display: flex; align-items: center; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafafe; }
.schedule-preview { max-height: 250px; border: 1px solid var(--line); border-radius: 8px; }
.schedule-preview td { height: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
[data-photo-requirement] { font-weight: 500; overflow-wrap: anywhere; }
.field-combo { display: flex; gap: 6px; }
.field-combo input { min-width: 0; }
.notice { display: flex; align-items: flex-start; gap: 8px; border-radius: 9px; padding: 10px 11px; background: #f3effe; color: #5e4b91; font-size: 12px; line-height: 1.55; }
.notice.error { background: #fff0f2; color: #983549; }
.notice.success { background: #eaf8ef; color: #246447; }
.notice .icon { margin-top: 1px; }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list div { display: grid; grid-template-columns: minmax(80px, .45fr) minmax(0, 1fr); align-items: start; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.55; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.detail-list dd a { text-decoration: underline; color: var(--primary-dark); }
dialog { padding: 0; border: 1px solid var(--line); width: min(510px, calc(100% - 26px)); max-height: min(90dvh, 880px); border-radius: 17px; color: var(--ink); box-shadow: 0 24px 80px #28204540; }
dialog.wide { width: min(668px, calc(100% - 26px)); }
dialog::backdrop { background: #16132d66; backdrop-filter: blur(2px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 17px 13px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 19px; letter-spacing: -.045em; }
.dialog-head p { color: var(--muted); margin-top: 4px; line-height: 1.45; font-size: 12px; }
.dialog-body { padding: 16px 17px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 11px 17px; }
.role-list { display: grid; gap: 6px; }
.role-button { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; display: flex; width: 100%; gap: 8px; align-items: center; color: var(--ink); text-align: left; }
.role-button:hover, .role-button[aria-pressed="true"] { border-color: #c4b3f7; background: #faf7ff; }
.role-button b { display: block; font-size: 12px; }
.role-button small { color: var(--muted); font-size: 11px; display: block; margin-top: 3px; }
.role-button > .icon { margin-left: auto; color: var(--primary); }
.toasts { z-index: 14; position: fixed; right: 17px; bottom: 17px; display: grid; gap: 6px; max-width: min(390px,calc(100% - 34px)); }
.toast { border: 1px solid #ece9ff; background: #fff; color: var(--ink); padding: 11px 13px; border-radius: 10px; box-shadow: 0 6px 27px #21184326; font-size: 12px; }
.toast.error { border-color: #f5ced6; color: #99384b; }
.settings-link { color: var(--primary-dark); text-decoration: underline; }
.checkline { display: flex; gap: 7px; align-items: start; color: var(--text); font-size: 12px; line-height: 1.5; }
.checkline input { accent-color: var(--primary); }
.place-preferences { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.place-review-count { display: grid; gap: 6px; padding: 0 0 4px; color: var(--text); font-size: 12px; }
.place-review-count span { color: var(--ink); font-size: 14px; }
.place-choice-panel { grid-column: 1 / -1; display: grid; gap: 12px; color: var(--muted); font-size: 12px; }
.place-choice-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.place-choice-panel legend { padding: 0; margin-bottom: 5px; color: var(--text); font-weight: 750; }
.place-choice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 4px 10px; }
.place-choice-list .checkline { min-width: 0; align-items: center; padding: 3px 0; overflow-wrap: anywhere; }
.place-choice-list input { flex: 0 0 auto; }

@media (min-width: 1600px) { .main { padding-top: 35px; } }
@media (max-width: 1120px) { .app-shell { grid-template-columns: 195px minmax(0, 1fr); } .main, .topbar { padding-left: 23px; padding-right: 23px; } }
@media (max-width: 960px) { .overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 740px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; width: min(235px,84vw); left: 0; top: 0; transform: translateX(-105%); transition: transform .18s; visibility: hidden; box-shadow: 12px 0 45px #28204527; overflow: auto; }
  .sidebar.open { transform: none; visibility: visible; }
  .mobile-toggle { display: inline-grid; }
  .topbar { height: 58px; padding: 0 13px; }
  .top-actions { gap: 7px; } .top-actions .separator, .profile-name { display: none; }
  .main { padding: 18px 13px 24px; }
  .page-head { align-items: flex-start; margin-bottom: 14px; }
  .hero { padding: 19px 16px; min-height: 154px; }
  .hero-art { width: 225px; right: -40px; bottom: -84px; }
  .hero-coin { width: 53px; border-radius: 14px; top: 3px; font-size: 26px; }
  .hero-spark { top: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 13px; }
  .metric { padding: 9px; }
  .overview-grid { gap: 10px; }
  .panel-head { padding-left: 11px; padding-right: 11px; }
}
@media (max-width: 620px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-brand { min-height: 116px; justify-content: center; }
  .auth-brand p { display: none; }
  .auth-card { padding: 22px; }
}
@media (max-width: 430px) {
  .form-grid { grid-template-columns: 1fr; }
  .top-left > span:first-of-type, .top-left > .icon { display: none; }
  .profile-trigger > .icon { display: none; }
  .page-head p { font-size: 11px; }
  .page-head .button { padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
