/* 2026-11-18: Pretendard (SIL OFL 1.1, fonts/Pretendard-LICENSE.txt) bundled locally — bold titles, clear body */
@font-face{font-family:'Pretendard';font-style:normal;font-weight:45 920;font-display:swap;src:url(/static/fonts/PretendardVariable.woff2) format('woff2-variations'),url(/static/fonts/PretendardVariable.woff2) format('woff2')}
/* S.O.S white-first pass (2026-11-13). Loaded last.
   The references are white screens: big black title on white, grey subtitle,
   black only for accent cards. The home top panel stays dark (user's own reference). */

/* ---------- inner page headers: white, big black title, black line art ---------- */
html body .view:not(#home) .page-intro{background:var(--paper)!important;border-radius:0!important;margin:0 -20px 8px!important;padding:22px 24px 26px!important;min-height:0!important}
html body .view:not(#home) .page-intro h1{color:var(--ink)!important;font-size:32px!important;line-height:1.12!important;max-width:70%!important}
html body .view:not(#home) .page-intro p{color:var(--muted)!important;max-width:66%!important}
html body .view:not(#home) .page-intro:not(.my-head)::after{filter:none!important;mix-blend-mode:multiply!important;opacity:.55!important;top:4px!important;height:130px!important}
html body #community .page-intro~.page-intro{background:var(--soft)!important;border-radius:var(--r-xl)!important;margin:30px 0 18px!important;padding:24px!important}

/* the form is a white card on the light ground, no longer a sheet over a dark header */
html body #repairFormHost{margin:0 -20px!important}
html body .form-card{border-radius:30px!important;box-shadow:var(--lift)!important}
html body .form-card::before{display:none!important}
html body #repair .form-card,html body #project .form-card{margin:0 0 8px!important}
html body #portfolio{margin:6px -20px 22px!important}
html body #loginForm{margin-top:0!important;border-radius:30px!important}

/* ---------- admin header ---------- */
html body #adminTitle{color:var(--ink)!important}
html.owner-mode body #adminTitle{color:var(--ink)!important}
html.owner-mode body #admin .page-intro h1::after{content:"";display:inline-block;width:12px;height:12px;margin-left:10px;border-radius:50%;background:var(--accent);vertical-align:middle}

/* ---------- 마이소스: white profile header + white menu card ---------- */
html body .my-head{background:var(--paper)!important;padding:22px 20px 18px!important;margin:0 -20px 14px!important}
html body .my-head h1{color:var(--ink)!important}
html body .my-hello{color:var(--muted)!important}
html body .my-avatar{border-color:var(--accent)}
html body .my-menu{background:var(--paper)!important;border-radius:24px;box-shadow:var(--lift);padding:6px}
html body .my-menu>button,html body .my-menu>.my-lang{color:var(--ink)!important}
html body .my-menu svg{color:var(--ink)!important}
html body .my-menu>button:hover,html body .my-menu>button[aria-expanded=true]{background:var(--soft)!important}
html body .my-menu>button:focus-visible,html body .my-lang:focus-within{outline-color:var(--char)!important}
html body .my-chev{border-color:#b9bcc4!important}
html body .my-lang select{background:var(--soft)!important;color:var(--ink)!important}
html body .my-menu>button+button,html body .my-menu>.my-lang+button,html body .my-menu>button+.my-lang{box-shadow:none!important}
html body .my-menu>button[data-my=logout],html body .my-menu>button[data-my=logout] svg{color:#d2443b!important}
html body .my-menu>.my-upgrade,html body .my-menu>.my-upgrade svg{color:var(--on-accent)!important}

/* ---------- home: soften the dark weight below the top panel ---------- */
html body .service-card:nth-child(n){background:var(--pale)!important;color:var(--ink)!important}
html body .service-card:nth-child(n) .card-lines{filter:contrast(1.3)!important;mix-blend-mode:multiply!important;opacity:.3!important}
html body .service-card:nth-child(n) strong{color:var(--ink)!important}
html body .service-card:nth-child(n) small{color:var(--muted)!important}
html body .service-card:nth-child(n) .card-dots img{border-color:var(--pale)!important}
html body .service-card:nth-child(n) .card-go{background:var(--char)!important}
html body .service-card:nth-child(n) .card-go::after{border-color:#fff!important}
/* one dark accent card leads the row, as in the references */
html body .service-card:first-child{background:var(--char)!important;color:#fff!important}
html body .service-card:first-child strong{color:#fff!important}
html body .service-card:first-child small{color:#c9cbd1!important}
html body .service-card:first-child .card-dots img{border-color:var(--char)!important}
html body .service-card:first-child .card-go{background:var(--accent)!important}
html body .service-card:first-child .card-go::after{border-color:var(--char)!important}
html body .service-card:first-child .card-lines{mix-blend-mode:screen!important;filter:invert(1) contrast(1.4)!important;opacity:.45!important}
html body .service-card:first-child .card-lines[src$="electric-lamp.png"]{filter:invert(1) contrast(1.15)!important;opacity:.9!important}
html body .service-card:not(:first-child) .card-lines[src$="electric-lamp.png"]{filter:contrast(1.1)!important;mix-blend-mode:multiply!important;opacity:.95!important}

/* journal + portfolio rails: white cards, one dark lead card */
html body #portfolio article{background:var(--paper)!important}
html body #portfolio article img{filter:url(#illus)!important;opacity:1!important}
html body #portfolio h3{color:var(--ink)!important}
html body #portfolio p{color:var(--muted)!important}
html body #portfolio article:first-child{background:var(--char)!important}
html body #portfolio article:first-child img{filter:url(#illus-dark)!important}
html body #portfolio article:first-child h3{color:#fff!important}
html body #portfolio article:first-child p{color:#c9cbd1!important}

/* status filters & role panels stay light; journey strip keeps its one dark card */
html body .role-panel,html body .support-panel{background:var(--soft)!important}

/* dark mode is opt-in only (설정 > 화면 표시 > 어둡게) */
html.theme-dark body .view:not(#home) .page-intro,html.theme-dark body .my-head,html.theme-dark body .my-menu{background:var(--paper)!important}
html.theme-dark body .view:not(#home) .page-intro:not(.my-head)::after{filter:invert(1)!important;mix-blend-mode:screen!important}
html body .my-plan{white-space:nowrap}

/* top panel: white cat paw reaching up from the bottom right (replaces the woman image) */
html body #home>.sos-top .sos-face.sos-paw{top:auto!important;bottom:34px!important;right:12px!important;width:auto!important;height:80%!important;max-height:190px;object-fit:contain!important;object-position:bottom right!important;
  filter:invert(1) contrast(1.3)!important;mix-blend-mode:screen!important;opacity:1!important;-webkit-mask-image:none!important;mask-image:none!important;border-radius:0!important}
html body #home>.sos-top .sos-me{right:auto!important;left:auto!important;position:relative!important;align-self:flex-start;margin-left:auto}

/* paw v2: transparent white PNG, no filters needed */
html body #home>.sos-top .sos-face.sos-paw{filter:none!important;mix-blend-mode:normal!important;height:86%!important;max-height:200px;right:18px!important;bottom:34px!important;top:auto!important;width:auto!important;object-fit:contain!important;opacity:.95!important}

/* service cards: square, smaller corners, no leftover dark fade */
html body .service-card{flex:0 0 168px!important;width:168px!important;height:168px!important;aspect-ratio:1/1;border-radius:20px!important;padding:14px!important}
html body .service-card::before,html body .service-card::after{content:none!important;display:none!important;background:none!important}
html body .service-card .card-dots{position:absolute!important;left:14px;top:14px}
html body .service-card .card-dots img{width:30px!important;height:30px!important;margin-right:-8px!important}
html body .service-card>div{position:absolute!important;left:14px;right:14px;bottom:14px;margin:0!important}
html body .service-card strong{font-size:17px!important}
html body .service-card small{font-size:12px!important}
html body .service-card .card-go{right:12px!important;top:12px!important;bottom:auto!important;width:32px!important;height:32px!important}
html body .service-card .card-go::after{left:10px!important;top:11px!important;width:8px!important;height:8px!important}
html body .service-card .card-lines{border-radius:20px!important}
html body .service-card .card-lines[src$="electric-lamp.png"]{inset:4px 44px auto auto!important;height:58%!important}
html body #home>.sos-top .sos-face.sos-paw{right:78px!important;height:78%!important;max-height:180px}
html body #home>.sos-top .sos-face.sos-paw{bottom:34px!important;height:82%!important;max-height:200px;right:84px!important;object-position:bottom center!important}
html body #home>.sos-top .sos-face.sos-paw{bottom:-40px!important;height:auto!important;max-height:none!important;width:112px!important;right:82px!important}

/* hero: keep the S.O.S text in front of the paw */
html body #home>.sos-top .sos-top-text{position:relative;z-index:3}

/* ---------- first-run welcome / login screen (white, centred art, black pill) ---------- */
html.welcome-open,html.welcome-open body{overflow:hidden}
html body .welcome{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:40px 32px calc(40px + env(safe-area-inset-bottom));background:var(--paper);text-align:center;transition:opacity .28s ease,transform .28s ease}
html body .welcome[hidden]{display:none}
html body .welcome.is-leaving{opacity:0;transform:translateY(-12px)}
html body .welcome-art{position:relative;display:flex;flex-direction:column;align-items:center;margin-top:auto}
html body .welcome-art img{width:96px;height:auto;display:block}
html body .welcome-floor{display:block;width:120px;height:3px;margin-top:-2px;border-radius:3px;background:#d7dae1}
html body .welcome h1{margin:30px 0 10px!important;font:700 19px/1.4 var(--font)!important;letter-spacing:-.01em!important;color:var(--ink)!important}
html body .welcome p{margin:0;font:500 14px/1.5 var(--font);color:var(--muted)}
html body .welcome-actions{margin-top:auto;width:100%;max-width:320px;display:flex;flex-direction:column;align-items:center;gap:16px}
html body .welcome-start{width:100%;height:56px;border:0;border-radius:18px;background:var(--char);color:#fff;font:700 16px var(--font);cursor:pointer}
html body .welcome-start:active{transform:scale(.98)}
html body .welcome-start:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
html body .welcome-skip{border:0;background:none;color:var(--muted);font:500 13px var(--font);cursor:pointer;padding:6px 10px}
html body .welcome-skip:focus-visible{outline:2px solid var(--char);border-radius:8px}
@media (min-width:520px){html body .welcome{left:50%;right:auto;width:480px;transform:translateX(-50%);border-radius:0}html body .welcome.is-leaving{transform:translate(-50%,-12px)}}
@media (prefers-reduced-motion:reduce){html body .welcome{transition:none}}
html.welcome-open body #feedback{display:none!important}
html body #home>.sos-top .sos-face.sos-paw{right:30px!important;width:100px!important}

/* welcome: S.O.S title on top, larger crisp paw */
html body .welcome-brand{position:absolute;top:calc(36px + env(safe-area-inset-top));left:0;right:0;margin:0;font:900 40px/1 var(--font);letter-spacing:-.04em;color:var(--ink)}
html body .welcome-brand small{display:block;margin-top:8px;font:600 12px var(--font);letter-spacing:.02em;color:var(--muted)}
html body .welcome-brand::after{content:"";display:block;width:8px;height:8px;margin:10px auto 0;border-radius:50%;background:var(--accent)}
html body .welcome-art img{width:150px!important}
html body .welcome-floor{width:190px}
html body .welcome .welcome-brand{font:900 44px/1 var(--font)!important;letter-spacing:-.04em!important;color:var(--ink)!important}html body .welcome .welcome-brand small{font:600 12px var(--font)!important;color:var(--muted)!important;letter-spacing:.02em!important}

/* paw v3: long arm from the S.O.S cap line down behind the search bar; top set by soft-ui.js */
html body #home>.sos-top .sos-face.sos-paw{top:0;bottom:-70px!important;height:auto!important;max-height:none!important;width:104px!important;right:34px!important;object-fit:cover!important;object-position:top center!important}
html body .welcome .welcome-start{width:200px!important;max-width:60%;height:52px!important;border-radius:16px!important}
html body .welcome-floor{display:none!important}
html body .welcome-auth{display:flex;align-items:center;justify-content:center;gap:10px;color:#c7cad2;font-size:13px}
html body .welcome-auth .welcome-skip{color:var(--ink);font-weight:600}
html body .welcome-note{min-height:18px;margin:-6px 0 0;font:500 12px var(--font)!important;color:var(--muted)!important}
html body .welcome .welcome-brand{display:flex;flex-direction:column;align-items:center}
html body .welcome .welcome-sos{display:inline-block;font:900 44px/.9 var(--font);letter-spacing:-.04em;color:var(--ink);white-space:nowrap}
html body .welcome .welcome-brand small{display:inline-block!important;white-space:nowrap;font-size:13px!important}
html body .welcome{padding-top:180px!important}html body .welcome-art img{width:140px!important}
html body .welcome .welcome-lead{margin:18px 0 0!important}html body .welcome h1{margin:18px 0 0!important}
html body .welcome .welcome-actions h1{margin:0 0 8px!important;font:700 19px/1.25 var(--font)!important}
html body .welcome .welcome-lead{margin:4px 0 0!important;color:#c85f00!important;font:700 14px/1.5 var(--font)!important}
html body .welcome .welcome-lead{color:#f07a10!important}

/* home top panel: white sitting cat (replaces the paw), no wave lines, deep black ground */
html body #home>.sos-top::before{background:#0b0b0c!important}
html body #home>.sos-top .sos-waves{display:none!important}
html body #home>.sos-top .sos-face.sos-cat{position:absolute;z-index:0;top:auto!important;bottom:0!important;right:22px!important;left:auto!important;width:auto!important;height:168px!important;max-height:none!important;
  object-fit:contain!important;object-position:bottom right!important;filter:none!important;mix-blend-mode:normal!important;opacity:1!important;-webkit-mask-image:none!important;mask-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
html body #home>.sos-top .sos-me{box-shadow:0 0 0 3px #0b0b0c!important}
html body #home>.sos-top .sos-face.sos-cat{height:150px!important;right:62px!important}
html body #home>.sos-top .sos-face.sos-cat{height:144px!important;right:50px!important}
/* 2026-11-14: smaller welcome paw, headline removed */
html body .welcome-art img{width:96px!important}
/* 2026-11-14: more space between the welcome line and the clock */
html body .welcome .welcome-clock{margin:64px 0 0!important}
html body .welcome .welcome-clock time{font-size:40px!important}
/* 2026-11-18: select arrow sits inside the box (native arrow hugged the right edge) */
html body .field select,html body .x-sheet select,html body .x-filter select{-webkit-appearance:none;appearance:none;background-image:url(/static/chevron-down.svg)!important;background-repeat:no-repeat!important;background-position:right 18px center!important;background-size:14px 14px!important;padding-right:44px!important}
html.theme-dark body .field select,html.theme-dark body .x-sheet select,html.theme-dark body .x-filter select{background-image:url(/static/chevron-down-light.svg)!important}
html body .sos-first-aid{padding:0 18px!important}
/* 2026-11-18: profile photo viewer */
html body #myAvatar,html body #myPhotoPreview{cursor:zoom-in}
html body .photo-view{position:fixed;inset:0;z-index:2100;display:grid;place-items:center;padding:20px;background:#0b0b0ccc}
html body .photo-view-card{width:min(100%,380px);display:grid;gap:16px;justify-items:center}
html body .photo-view-card img{width:min(80vw,320px);aspect-ratio:1;border-radius:50%;object-fit:cover;background:#e9ebf0;border:4px solid var(--accent)}
html body .photo-view-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
html body .photo-view-btns [data-pv=change]{grid-column:1/-1}
/* 2026-11-18: default photo is the S.O.S cat; the reset link shows the cat above its label */
html body .my-cat-reset{display:inline-flex!important;flex-direction:column;align-items:center;gap:4px;text-decoration:none!important}
html body .my-cat-reset img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--accent)}
html body .my-cat-reset span{text-decoration:underline;text-underline-offset:3px}
/* 2026-11-18: hero sub line under the two-line headline */
html body #home>.sos-top .sos-sub{margin:8px 0 0 1px;font:500 12.5px/1.45 var(--font);color:#c9cbd1;letter-spacing:-.01em;max-width:62%}
/* 2026-11-18: no sideways swiping — project types and care notes fit the screen width as compact tiles */
html body :is(#portfolio,#journal).portfolio[class]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;scroll-snap-type:none!important;padding:0!important;margin-left:0!important;margin-right:0!important}
html body :is(#portfolio,#journal).portfolio[class]>article{position:relative;min-width:0!important;width:auto!important;flex:none!important;margin:0!important;padding:0!important;border-radius:16px!important;overflow:hidden}
html body :is(#portfolio,#journal).portfolio[class]>article img{display:block;width:100%!important;height:auto!important;aspect-ratio:1;object-fit:cover}
html body :is(#portfolio,#journal).portfolio[class]>article .body{padding:6px 6px 8px!important;text-align:center}
html body :is(#portfolio,#journal).portfolio[class]>article h3{margin:0!important;font-size:13px!important;font-weight:800!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body :is(#portfolio,#journal).portfolio[class]>article p{display:none!important}
html body :is(#portfolio,#journal).portfolio[class]>article .btn[class][class][class]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:transparent!important;font-size:0!important;z-index:2}
html body :is(#portfolio,#journal).portfolio[class]>article .btn[class][class][class]:focus-visible{outline:3px solid var(--accent)!important;outline-offset:-3px}
/* care notes (no button): two columns, short text kept to two lines */
html body #journal.portfolio[class]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body #journal.portfolio[class]>article img{aspect-ratio:16/10}
html body #journal.portfolio[class]>article .body{text-align:left;padding:8px 10px 10px!important}
html body #journal.portfolio[class]>article p{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:3px 0 0!important;font-size:12px!important;line-height:1.4!important}
/* 2026-11-18: when text wraps, keep lines even (no one long line + one stub) and never split Korean words */
html body h1,html body h2,html body h3,html body h4,html body .btn,html body button,html body summary,html body label,html body .tiny,html body .muted,html body figcaption,html body .x-flag,html body .sos-sub,html body .welcome p{text-wrap:balance}
html body p,html body li,html body dd{text-wrap:pretty}
html body{word-break:keep-all;overflow-wrap:anywhere}
html body #portfolio.portfolio[class]>article .btn[class][class][class]::before,html body #portfolio.portfolio[class]>article .btn[class][class][class]::after{display:none!important;content:none!important}
html body #portfolio.portfolio[class]>article::before,html body #portfolio.portfolio[class]>article::after{display:none!important}
html body #portfolio.portfolio[class]>article img{opacity:1!important}
html body #portfolio.portfolio[class]>article h3{color:#fff!important}
html body #portfolio.portfolio[class]>article .btn[class][class][class]{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;filter:none!important;text-shadow:none!important}
/* 2026-11-18: 마이소스 hub (내 접수 · 신고 · 관리 · 혜택) and the separate 계정·프로필 page */
html body #mine[data-mode] [data-mine-group]{display:none!important}
html body #mine[data-mode=account] [data-mine-group=account]{display:block!important}
html body #mine[data-mode=account] .my-head[data-mine-group]{display:block!important}
html body #mine[data-mode=account] #xMineCard .x-grid{display:none!important}
html body #mine[data-mode=hub] [data-mine-group=hub],
html body #mine[data-mode=hub][data-tab=req] [data-mine-group=req],
html body #mine[data-mode=hub][data-tab=report] [data-mine-group=report],
html body #mine[data-mode=hub][data-tab=manage] [data-mine-group=manage],
html body #mine[data-mode=hub][data-tab=benefit] [data-mine-group=benefit]{display:block!important}
html body #mine[data-mode=hub] #lookupResult:empty{display:none!important}
html body .mine-hub{margin:0 0 10px}
html body .mine-hub-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 12px}
html body .mine-hub-head h1,html body .mine-account-top h1{margin:0!important;font-size:26px!important;font-weight:900!important;letter-spacing:-.03em}
html body .mine-me{display:flex;align-items:center;gap:6px;border:1.5px solid var(--line,#e6e6e2);border-radius:999px;background:#fff;padding:4px 12px 4px 4px;font:700 13px var(--font);color:var(--ink,#0b0b0c);cursor:pointer}
html body .mine-me img{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#eef0e8}
html body .mine-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:#fff;box-shadow:0 2px 10px #0b0b0c0f}
html body .mine-tabs button{border:0;border-radius:10px;background:transparent;font:700 14px var(--font);color:#666;padding:10px 2px;cursor:pointer;white-space:nowrap}
html body .mine-tabs button[aria-selected=true]{background:#0b0b0c;color:#fff}
html body .mine-note{margin:0 2px 8px!important}
html body .mine-actions h3{margin:0 0 10px!important;font-size:17px!important;font-weight:800!important}
html body .mine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body .mine-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
html body .mine-act{display:grid;gap:2px;align-content:center;min-height:56px;padding:10px 8px;border:1.5px solid var(--line,#e6e6e2);border-radius:14px;background:#fff;font:inherit;color:var(--ink,#0b0b0c);text-align:center;cursor:pointer}
html body .mine-act b{font-size:14px;font-weight:800}
html body .mine-act small{font-size:11.5px;color:#777}
html body .mine-act.is-main{background:var(--accent);border-color:var(--accent);color:#0b0b0c}
html body .mine-act.is-main small{color:#3a2a1a}
html body .mine-actions .tiny{margin:10px 0 0!important}
html body details.mine-fold{padding:0!important;overflow:hidden}
html body details.mine-fold>summary{list-style:none;cursor:pointer;padding:14px 16px;font:800 15px var(--font);display:flex;justify-content:space-between;align-items:center}
html body details.mine-fold>summary::-webkit-details-marker{display:none}
html body details.mine-fold>summary::after{content:"+";font-size:20px;font-weight:700;color:#999}
html body details.mine-fold[open]>summary::after{content:"−"}
html body details.mine-fold>.mine-fold-body{margin:0!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding-top:0!important}
html body details.mine-fold>.mine-fold-body>h3:first-child{display:none}
html body .mine-account-top{margin:0 0 10px}
html body .mine-back{border:0;background:transparent;font:700 14px var(--font);color:#666;padding:6px 0;cursor:pointer}
html.theme-dark body .mine-tabs,html.theme-dark body .mine-act,html.theme-dark body .mine-me{background:#1c1c1e;color:#eee;border-color:#333}
html body #mine[data-mode] [data-mine-group][hidden]{display:none!important}
html body{font-family:'Pretendard','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',system-ui,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-synthesis:none}
html body input,html body select,html body textarea,html body button{font-family:inherit}
html body h1,html body h2{font-weight:850!important;letter-spacing:-.035em}
html body h3,html body h4,html body .mine-act b{font-weight:750!important;letter-spacing:-.025em}
html body p,html body li,html body .tiny,html body small{letter-spacing:-.01em}
html body #home>.sos-top .sos-sub{max-width:none;white-space:nowrap;font-size:12px;text-wrap:nowrap;position:relative;z-index:2}
