/* RELIS share pages — design mockup v17 "웹 화면" (RELIS_Design_Tokens, light only). Centre column 480 on wide screens. */
:root {
  --canvas: #FFFFFF; --subtle: #F4F4F2; --t1: #1C1C1E; --t2: #48484C; --t3: #6B6B70; --onpri: #FFFFFF;
  --border: #E7E6E3; --border-s: #D1D0CC; --pri: #1C1C1E; --acc: #0B7C71; --paper: #FFFFFF;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--canvas); color: var(--t1);
  font: 15px/1.45 "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  letter-spacing: -.01em; -webkit-text-size-adjust: 100%; word-break: keep-all; overflow-wrap: break-word;
}
main { max-width: 480px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
@media (min-width: 520px) { body { background: var(--subtle); } main { background: var(--canvas); border-left: 1px solid var(--border); border-right: 1px solid var(--border); } }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
a { color: inherit; }

/* header */
.webh { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 20px; flex: none; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .06em; font-size: 15px; }
.logo img { width: 24px; height: auto; display: block; }
.ro { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--subtle); font-size: 12.5px; font-weight: 600; color: var(--t2); white-space: nowrap; }
.ro svg.i { width: 14px; height: 14px; }
.ib { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; margin-left: -12px; }
.ib svg.i { width: 22px; height: 22px; }
.ib:focus-visible { outline: 2px solid var(--acc); }
.ttl { font-size: 16px; font-weight: 600; }
.content { flex: 1; }

/* /v list */
.wban { margin: 12px 20px 4px; padding: 12px 14px; border-radius: 12px; background: var(--subtle); display: flex; flex-direction: column; gap: 2px; }
.wban b { font-size: 15.5px; font-weight: 600; }
.wban span { font-size: 13px; color: var(--t2); }
.grp { padding: 12px 20px 4px; font-size: 12.5px; font-weight: 600; color: var(--t3); }
.rrow { display: flex; gap: 12px; align-items: center; padding: 11px 20px; position: relative; width: 100%; text-align: left; }
.rrow + .rrow::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: 1px; background: var(--border); }
.rrow:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.rth { width: 40px; height: 52px; border-radius: 6px; background: #FBFAF7; box-shadow: 0 0 0 1px var(--border); position: relative; flex: none; overflow: hidden; }
.rth::before { content: ""; position: absolute; left: 7px; right: 7px; top: 9px; height: 28px; background: repeating-linear-gradient(#cfcfcf 0 2px, transparent 2px 6px); }
.rth .n { position: absolute; right: 2px; bottom: 2px; font-size: 10px; background: rgba(28,28,30,.78); color: #fff; border-radius: 4px; padding: 0 4px; line-height: 15px; }
.rrow .mn { flex: 1; min-width: 0; }
.rrow .t { display: block; font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .t.none { color: var(--t3); font-weight: 500; }
.rrow .amt { font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rrow svg.i { color: var(--t3); width: 18px; height: 18px; }
.more { padding: 12px 20px 0; display: flex; }
.empty { margin: 16px 20px; color: var(--t2); font-size: 14px; }

/* /v detail */
.gut { padding: 0 20px; }
.tiles { display: flex; gap: 8px; padding-top: 12px; overflow-x: auto; }
.ptile { width: 72px; height: 92px; border-radius: 8px; background: #FBFAF7; box-shadow: 0 0 0 1px var(--border); position: relative; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; color: var(--t3); }
.ptile.on { box-shadow: 0 0 0 2px var(--acc); }
.ptile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptile .kind { font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.btns { display: flex; gap: 8px; padding-top: 10px; }
.btn { height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 16px; border: 1px solid transparent; flex: 1; text-decoration: none; }
.btn.md { height: 44px; font-size: 15px; }
.btn.pri { background: var(--pri); color: var(--onpri); }
.btn.sec { background: var(--canvas); border-color: var(--border-s); color: var(--t1); }
.btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: default; }
.rv { display: flex; gap: 12px; padding: 9px 0; font-size: 15px; line-height: 1.45; }
.rv + .rv { border-top: 1px solid var(--border); }
.rv .k { width: 68px; flex: none; font-size: 13px; color: var(--t3); padding-top: 2px; }
.rv .v { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.tnum { font-variant-numeric: tabular-nums; font-weight: 600; }
.msg { margin: 10px 20px 0; font-size: 13px; color: var(--t2); }

/* footer */
.wfoot { padding: 18px 20px 16px; font-size: 12px; color: var(--t3); text-align: center; line-height: 1.5; }

/* cannot open (one screen for every reason) */
.gone { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 28px 60px; text-align: center; }
.gone .ic { width: 80px; height: 80px; border-radius: 40px; background: var(--subtle); display: flex; align-items: center; justify-content: center; }
.gone .ic svg.i { width: 36px; height: 36px; }
.gone h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.gone p { font-size: 15px; color: var(--t2); line-height: 1.55; margin: 0; }
.loading { flex: 1; padding: 40px 20px; color: var(--t3); text-align: center; }

/* /c */
.wcard { margin: 20px 20px 8px; padding: 20px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--border), 0 2px 8px rgba(0,0,0,.06); }
.wcard h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.wcard .rl { font-size: 15px; color: var(--t2); margin-top: 2px; overflow-wrap: anywhere; }
.kv { display: flex; align-items: center; gap: 12px; padding: 2px 0; font-size: 15px; min-height: 48px; }
.kv + .kv { border-top: 1px solid var(--border); }
.kv svg.i { width: 18px; height: 18px; color: var(--t3); }
.kv .v { flex: 1; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; padding: 9px 0; }
.kv .act { font-size: 14px; font-weight: 600; color: var(--acc); height: 44px; display: flex; align-items: center; padding: 0 4px; text-decoration: none; }
.wapp { margin: 22px 20px 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--t2); line-height: 1.45; }
.wapp img { width: 22px; height: auto; flex: none; display: block; }
.wapp b { color: var(--t1); }

/* /s */
.inv { padding-top: 20px; }
.inv h1 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; margin: 0; }
.inv p { font-size: 14px; color: var(--t2); margin: 6px 0 0; }
.lockline { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--t3); margin-top: 8px; }
.lockline svg.i { width: 14px; height: 14px; }
.steps { list-style: none; margin: 18px 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.steps li b { width: 24px; height: 24px; border-radius: 12px; background: var(--pri); color: var(--onpri); font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.steps em { font-style: normal; font-weight: 600; }
.link { display: block; margin: 10px 20px 0; padding: 10px 12px; border-radius: 10px; background: var(--subtle); font: 12.5px/1.45 ui-monospace, Consolas, monospace; color: var(--t2); overflow-wrap: anywhere; user-select: all; }
.wstore { margin: 20px 20px 12px; padding: 14px; border-radius: 12px; background: var(--subtle); display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--t2); }
.wstore b { font-size: 15px; color: var(--t1); }

/* /delete-account, /privacy (안내 문서, 2026-11-22) */
.doc { padding: 20px 20px 32px; font-size: 15px; line-height: 1.6; }
.doc h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; margin: 4px 0 8px; }
.doc h2 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.doc p { margin: 8px 0; color: var(--t1); }
.doc ul, .doc ol:not(.steps) { margin: 8px 0; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--acc); }
.doc em { font-style: normal; font-weight: 600; }
.doc .steps { margin: 12px 0; }
.doc .draft { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--subtle); font-size: 13px; color: var(--t2); }
.doc .ph { color: var(--t3); font-size: .93em; }
.doc .mail { font-weight: 600; }
.doc .small { font-size: 13px; color: var(--t2); margin-top: 22px; }
.doc .tbl { overflow-x: auto; margin: 10px 0; border: 1px solid var(--border); border-radius: 10px; }
.doc table { border-collapse: collapse; min-width: 100%; font-size: 13px; line-height: 1.5; }
.doc th, .doc td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); min-width: 120px; }
.doc th { background: var(--subtle); font-weight: 600; color: var(--t2); }
.doc tr:last-child td { border-bottom: 0; }
