:root{
  --kimse-navy:#17325c;
  --kimse-blue:#eaf4ff;
  --kimse-pink:#fff0f3;
  --kimse-mint:#e9f8f0;
  --kimse-amber:#fff6df;
  --kimse-purple:#f2edff;
  --kimse-bg:#fffaf7;
  --kimse-text:#17233b;
  --kimse-muted:#617087;
  --kimse-border:#dce4ee;
  --kimse-primary:#168f73;
  --kimse-danger:#c93b4b;
  --kimse-radius:22px;
  --kimse-touch:52px;
}
*{box-sizing:border-box}
html{background:var(--kimse-bg);color-scheme:light}
body{margin:0;background:linear-gradient(180deg,#fffaf7 0,#f8fbff 45%,#fff 100%);color:var(--kimse-text);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR",Arial,sans-serif;font-size:18px;line-height:1.5;min-height:100vh}
button,input,select,textarea{font:inherit}
button,a,[role="button"]{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #1155cc;outline-offset:3px}
.skip-link{position:fixed;left:12px;top:-80px;z-index:9999;background:#111;color:white;padding:12px 16px;border-radius:12px}.skip-link:focus{top:12px}
.offline-banner{position:sticky;top:0;z-index:50;background:#3b2f00;color:#fff6c7;padding:10px 16px;text-align:center;font-weight:700}
.kimse-app{min-height:100vh;padding-bottom:calc(90px + env(safe-area-inset-bottom))}
.app-header{position:sticky;top:0;z-index:30;backdrop-filter:blur(16px);background:rgba(255,255,255,.92);border-bottom:1px solid rgba(220,228,238,.9)}
.app-header-inner{max-width:760px;margin:auto;min-height:72px;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;color:var(--kimse-navy);font-weight:900;font-size:24px;text-decoration:none}.brand img{width:40px;height:40px;border-radius:12px}.brand-sub{font-size:13px;color:var(--kimse-muted);font-weight:700;display:block}
.icon-button{min-width:var(--kimse-touch);min-height:var(--kimse-touch);border:1px solid var(--kimse-border);background:white;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;color:var(--kimse-navy)}
.page{max-width:760px;margin:auto;padding:24px 18px 36px}.page.narrow{max-width:560px}
.eyebrow{color:#54708f;font-weight:800;font-size:14px;letter-spacing:.02em}.page-title{font-size:clamp(28px,6vw,38px);line-height:1.18;margin:5px 0 10px;font-weight:900;color:#10264a}.page-desc{color:var(--kimse-muted);font-size:17px;margin:0 0 22px}
.hero{border-radius:30px;padding:28px;background:linear-gradient(135deg,#fff2eb,#eaf6ff);border:1px solid #f0e7e1;box-shadow:0 18px 50px rgba(34,59,93,.08)}
.hero-logo{width:84px;height:84px;border-radius:24px;margin-bottom:18px}.hero h1{font-size:44px;margin:0 0 12px;color:#13284b}.hero p{font-size:20px;color:#46566d}.hero-actions{display:grid;gap:12px;margin-top:28px}
.btn-kimse{min-height:var(--kimse-touch);border:0;border-radius:16px;padding:14px 18px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn-primary-k{background:var(--kimse-primary);color:white}.btn-secondary-k{background:white;color:var(--kimse-navy);border:1px solid var(--kimse-border)}.btn-danger-k{background:#fff0f2;color:#9c2434;border:1px solid #f2c4ca}.btn-blue-k{background:#eaf2ff;color:#174a93;border:1px solid #cfe0ff}.btn-full{width:100%}
.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.action-card{min-height:126px;border:1px solid var(--kimse-border);border-radius:22px;background:white;padding:18px;text-align:left;color:var(--kimse-text);text-decoration:none;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 8px 24px rgba(25,50,92,.05)}.action-card .icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;font-size:26px}.action-card strong{font-size:20px}.action-card span{font-size:14px;color:var(--kimse-muted)}
.bg-pink{background:var(--kimse-pink)!important}.bg-blue{background:var(--kimse-blue)!important}.bg-mint{background:var(--kimse-mint)!important}.bg-amber{background:var(--kimse-amber)!important}.bg-purple{background:var(--kimse-purple)!important}
.role-card{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center;width:100%;min-height:108px;padding:16px;border-radius:22px;border:1px solid var(--kimse-border);background:white;text-align:left;color:var(--kimse-text)}.role-card+.role-card{margin-top:12px}.avatar-lg{width:72px;height:72px;border-radius:22px;display:grid;place-items:center;font-size:38px}.role-card h3{margin:0 0 4px;font-size:22px}.role-card p{margin:0;color:var(--kimse-muted);font-size:15px}
.notice{border-radius:18px;padding:15px 16px;background:#eef6ff;color:#234a78;margin:16px 0;font-size:15px}.notice strong{display:block;margin-bottom:2px}.notice.danger{background:#fff0f2;color:#8b2734}.notice.success{background:#eaf8f2;color:#126347}
.form-stack{display:grid;gap:14px}.field label{font-weight:800;display:block;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;min-height:var(--kimse-touch);border:1px solid #bfcbd9;border-radius:14px;padding:12px 14px;background:#fff;color:var(--kimse-text)}.field small{color:var(--kimse-muted)}
.section-title{font-size:22px;font-weight:900;margin:28px 0 12px}.summary-card{border:1px solid var(--kimse-border);border-radius:22px;background:white;padding:18px;margin-bottom:14px}.summary-card h3{margin:0 0 6px;font-size:20px}.summary-card p{margin:0;color:var(--kimse-muted)}
.context-chip{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 11px;background:#eef4ff;color:#204d8a;font-weight:800;font-size:14px}.context-chip.caregiver{background:#fff0f3;color:#912d4b}
.metric-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #edf1f5}.metric-row:last-child{border-bottom:0}.metric-label{display:flex;align-items:center;gap:10px;font-weight:800}.trend{font-weight:900}.trend.up::before{content:'↑ ';}.trend.down::before{content:'↓ ';}.trend.same::before{content:'→ ';}
.progress-k{height:10px;background:#e8edf3;border-radius:999px;overflow:hidden}.progress-k>span{display:block;height:100%;background:var(--kimse-primary);border-radius:999px}
.answer-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:24px 0}.answer{min-height:132px;border:2px solid var(--kimse-border);border-radius:20px;background:white;font-weight:900;font-size:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px}.answer[aria-pressed="true"]{border-color:#12735e;background:#ebfaf4}.answer .emoji{font-size:46px}
.bottom-nav{position:fixed;z-index:40;bottom:0;left:0;right:0;background:rgba(255,255,255,.97);border-top:1px solid var(--kimse-border);padding-bottom:env(safe-area-inset-bottom)}.bottom-nav-inner{max-width:760px;margin:auto;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 8px}.nav-item{min-height:62px;color:#677487;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:14px;font-weight:800;font-size:12px}.nav-item i{font-size:24px}.nav-item.active{color:#0e775e;background:#eef9f5}
.list{display:grid;gap:10px}.list-row{min-height:72px;border:1px solid var(--kimse-border);border-radius:18px;background:#fff;padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--kimse-text);text-decoration:none}.list-row strong{font-size:17px}.list-row small{color:var(--kimse-muted);display:block}
.switch-row{min-height:72px;border-bottom:1px solid #edf1f5;display:flex;align-items:center;justify-content:space-between;gap:12px}.switch-row label{font-weight:800}.switch{width:54px;height:32px;appearance:none;background:#c9d1dc;border-radius:999px;position:relative;transition:.2s}.switch:after{content:'';position:absolute;width:26px;height:26px;top:3px;left:3px;background:#fff;border-radius:50%;box-shadow:0 1px 4px #777;transition:.2s}.switch:checked{background:#138b6e}.switch:checked:after{left:25px}
.plan-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.plan{border:2px solid var(--kimse-border);border-radius:24px;background:#fff;padding:20px}.plan.featured{border-color:#f09ab0;background:#fff6f8}.plan h3{font-size:24px}.price{font-size:32px;font-weight:900}.plan ul{padding-left:20px}.plan li{margin-bottom:8px}
.market-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.market-card{border:1px solid var(--kimse-border);border-radius:20px;background:white;padding:18px;min-height:120px}.market-card .badge{margin-bottom:10px}.sponsored{font-size:12px;font-weight:900;color:#805200;background:#fff5cf;border:1px solid #eed783;border-radius:999px;padding:3px 8px;display:inline-flex}
.empty-state{text-align:center;padding:36px 18px;border:1px dashed #c7d1dd;border-radius:22px;background:#fafcff}.empty-state i{font-size:48px;color:#7b8aa0}
.sr-summary{border-left:5px solid #456da8;padding:12px 14px;background:#eef4ff;border-radius:12px;margin-top:12px}
.app-footer{text-align:center;color:#7b8797;font-size:12px;padding:18px 0 4px}
.large-text{font-size:22px}.large-text .page-desc,.large-text .action-card span,.large-text .role-card p{font-size:18px}.large-text .btn-kimse,.large-text .field input,.large-text .field select{font-size:21px;min-height:60px}.large-touch{--kimse-touch:60px}.high-contrast{--kimse-bg:#fff;--kimse-text:#000;--kimse-muted:#2d2d2d;--kimse-border:#666;--kimse-primary:#006342;--kimse-navy:#001d4a}.high-contrast .action-card,.high-contrast .summary-card,.high-contrast .list-row{border-width:2px}
@media(max-width:460px){.page{padding-left:16px;padding-right:16px}.hero{padding:24px 20px}.hero h1{font-size:38px}.plan-grid{grid-template-columns:1fr}.role-card{grid-template-columns:62px 1fr auto}.avatar-lg{width:62px;height:62px}.card-grid{gap:10px}.action-card{padding:15px}.app-header-inner{padding-left:14px;padding-right:14px}}
@media(min-width:760px){.page{padding-top:36px}.card-grid{grid-template-columns:repeat(4,1fr)}.action-card{min-height:150px}.market-grid{grid-template-columns:repeat(3,1fr)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.brand-mark,.hero-mark{display:grid;place-items:center;background:linear-gradient(135deg,#eaf4ff,#e9f8f0);color:#17325c;font-weight:950;border:1px solid #dce4ee}
.brand-mark{width:40px;height:40px;border-radius:12px;font-size:20px}
.hero-mark{width:84px;height:84px;border-radius:24px;margin-bottom:18px;font-size:38px}
