*{box-sizing:border-box}
:root{font-family:"Malgun Gothic",system-ui,sans-serif;color:#14263c;background:#edf2f7}
body{margin:0}
main{max-width:1200px;margin:auto;padding:32px}
header,nav,.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
header{justify-content:space-between;border-bottom:1px solid #d6e0ec;padding-bottom:16px}
h1{font-size:1.55rem} h2{font-size:1.25rem}
nav{margin:22px 0 12px}
button,input,select{font:inherit;border:1px solid #acbdd2;border-radius:7px;padding:9px 12px;background:white;color:inherit}
button{cursor:pointer}
button[aria-current="page"],button.primary{background:#0a5380;color:white;border-color:#0a5380}
button:disabled{cursor:default;opacity:.6}
section,.auth{background:white;padding:24px;border-radius:13px;border:1px solid #d6e0ec}
.auth{max-width:440px;margin:9vh auto}
.auth form,.stack{display:grid;gap:14px}
.auth label,.stack label{display:grid;gap:5px}
.small{font-size:.875rem;color:#52657a}
[role="alert"]{color:#a12034}
.table{overflow:auto}
table{border-collapse:collapse;width:100%;margin-top:18px;text-align:left}
td,th{padding:10px;border-bottom:1px solid #dde5ee;white-space:nowrap}
th{background:#edf4fa}
fieldset{margin:0 0 12px;border:1px solid #d6e0ec;border-radius:7px}
@media(max-width:650px){main{padding:14px}section,.auth{padding:16px}}

.guide-link{display:inline-block;width:fit-content;font-size:.875rem;color:#07537b;text-decoration:underline;text-underline-offset:3px}
.field-with-help{display:grid;gap:5px}
.guide nav{gap:16px}
.guide section{margin:14px 0}
.guide dt{font-weight:700;margin-top:14px;scroll-margin-top:20px}
.guide dd{margin:5px 0 0;line-height:1.6}
.guide [id]:target{background:#fff4cf}

.connection-page{--connection-border:#dce4ef;--connection-muted:#4d6178}
.connection-intro{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:17px;color:var(--connection-muted)}
.connection-intro p,.connection-intro h3{margin:0}
.business-name-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px;background:#f3f7fb;border:1px solid var(--connection-border);border-radius:9px}
.business-name-form .field-with-help{flex:1 1 260px;max-width:440px}
.store-tabs{margin-bottom:10px;gap:8px}
.connection-card{padding:18px;border:1px solid var(--connection-border);border-radius:10px;margin-bottom:24px}
.connection-form{display:grid;justify-items:start;gap:14px;margin-top:12px}
.connection-fields{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.connection-page .field-with-help label{display:grid;gap:6px;font-size:.92rem;font-weight:600}
.connection-page .field-with-help input{width:100%;min-width:0;font-weight:400}
.connection-page .field-with-help .guide-link{font-size:.79rem}
.connection-detail{border-top:1px solid var(--connection-border);margin-top:15px;padding-top:15px}
.connection-status{list-style:none;margin:0;padding:12px;background:#f3f7fb;border-radius:7px;color:var(--connection-muted);font-size:.88rem}
.connection-status li{display:grid;gap:3px;overflow-wrap:anywhere}
.connection-status li+li{margin-top:9px}
.connection-status strong{color:#203851}
@media(max-width:480px){.connection-fields{grid-template-columns:1fr}.connection-card{padding:13px}}

.embedded-admin{background:transparent}
.embedded-admin main{max-width:none;padding:0}
.embedded-admin-panel{padding:20px}
.embedded-admin-panel h1{margin-top:0}
.member-permission-preview{margin:16px 0 6px}
.member-permission-preview table{margin-top:0;font-size:.875rem;min-width:800px}
.member-permission-preview caption{text-align:left;margin-bottom:8px;font-weight:700}
.member-permission-preview td,.member-permission-preview th{padding:7px 8px;white-space:nowrap}
.member-permission-preview th[scope="row"]{background:transparent}
.member-permission-preview :is(td,th):nth-child(n+3){text-align:center}
.member-permission-preview td[data-open="false"]{color:#64748b}
.member-permission-preview td[data-open="true"]{color:#17516f}
.member-permission-preview [data-saved="true"]{background:#eff4f9}
.member-permission-preview [data-proposed="true"]{box-shadow:inset 2px 0 #4f46e5,inset -2px 0 #4f46e5}
.member-permission-preview tr[data-change="opened"] th,.member-permission-preview tr[data-change="opened"] td:last-child{background:#edf9f2}
.member-permission-preview tr[data-change="opened"] td:last-child{color:#166534;font-weight:700}
.member-permission-preview tr[data-change="closed"] th,.member-permission-preview tr[data-change="closed"] td:last-child{background:#fff2ed}
.member-permission-preview tr[data-change="closed"] td:last-child{color:#9a3412;font-weight:700}
.guide{max-width:1100px}
.guide .grade-table th,.guide .grade-table td{white-space:normal}
.guide figure{margin:18px 0 0;padding:0}
.guide figure img{width:100%;height:auto;display:block;border:1px solid #dae3ee;border-radius:10px;background:#edf2f7}
.guide #signup figure{max-width:440px}
.guide figcaption{margin-top:8px;color:#40566f;font-size:.9rem;line-height:1.55}
.guide .screen-explanation{border-top:1px solid #dde5ee;padding-top:20px;margin-top:24px}
.guide .screen-explanation h3{margin:0}
.guide .grade-pill{display:inline-flex;align-items:center;border-radius:99px;padding:3px 9px;background:#f0edff;color:#4b42c0;font-weight:700;font-size:.82rem}
.overview-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:18px;margin-top:20px}
.dashboard-wide{max-width:1880px}
.overview-sidebar{border:1px solid #dce5ef;border-radius:12px;min-width:0;padding:13px;background:#fff}
.overview-sidebar h3,.overview-chart h3{margin:0 0 12px;font-size:1rem}
.overview-sidebar input{width:100%;margin:0 0 10px}
.overview-choices{display:grid;align-content:start;max-height:620px;overflow:auto;gap:7px}
.overview-choices button{text-align:left;overflow-wrap:anywhere;background:#f6f8fb;border-color:#dce5ef;font-size:.88rem}
.overview-choices button[aria-current]{background:#eef1ff;color:#4b46c6;border-color:#837cff}
.overview-choices small{display:block;margin-top:4px;color:#647a96}
.overview-main{min-width:0}.overview-main>p:first-child{margin-top:0}
.overview-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px}
.overview-kpi,.overview-chart{background:#fff;border:1px solid #e0e8f0;border-radius:12px;padding:16px;box-shadow:0 2px 5px #26405909}
.overview-kpi span,.overview-kpi strong{display:block}.overview-kpi span{color:#627993;font-size:.85rem}
.overview-kpi strong{margin-top:15px;font-size:1.3rem;overflow-wrap:anywhere}
.overview-chart{margin-top:16px}
.overview-bars{display:flex;gap:16px;min-height:200px;overflow:auto;align-items:flex-end;padding:8px 4px 0;border-bottom:1px solid #e0e8f0}
.overview-day{flex:1;min-width:29px;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:7px;height:190px;color:#607896;font-size:.74rem}
.overview-bar{width:65%;height:var(--bar);position:relative;min-height:2px;background:#4887eb;border-radius:4px 4px 0 0;overflow:hidden}
.overview-rocket{position:absolute;bottom:0;left:0;right:0;height:var(--segment);background:#e9782d}
.overview-legend{color:#75523c}
@media(max-width:700px){.overview-layout{grid-template-columns:1fr}.overview-choices{max-height:170px}.overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

