/* S.O.S inner pages (2026-11-12). Loaded after soft.css.
   Dark header + white rounded sheet, option cards with a check circle, pill tabs,
   progress ring and vertical timeline. Point colour (--accent) only on key actions. */

/* ---------- headers: big title, light subtitle, line art on the right ---------- */
html body .view:not(#home) .page-intro{position:relative;overflow:hidden;min-height:150px;padding:30px 24px 56px!important}
html body .view:not(#home) .page-intro h1{position:relative;z-index:1;max-width:64%;font-size:30px!important;line-height:1.15!important}
html body .view:not(#home) .page-intro p{position:relative;z-index:1;max-width:64%;font-size:14px;line-height:1.5}
html body .view:not(#home) .page-intro:not(.my-head)::after{content:"";position:absolute;right:-18px;top:14px;width:52%;height:150px;background:center/cover no-repeat;filter:invert(1);opacity:.32;mix-blend-mode:screen;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 40%);mask-image:linear-gradient(90deg,transparent,#000 40%);pointer-events:none}
html body #repair .page-intro::after{background-image:url(/static/images/service-water-sketch.png)}
html body #project .page-intro::after{background-image:url(/static/images/service-tile-sketch.png)}
html body #community .page-intro::after{background-image:url(/static/images/service-window-sketch.png)}
html body #admin .page-intro::after{background-image:url(/static/images/service-electric-sketch.png)}
html body #community .page-intro~.page-intro{margin:30px 0 18px!important;border-radius:var(--r-xl)!important;min-height:0;padding-bottom:28px!important}
html body #community .page-intro~.page-intro::after{background-image:url(/static/images/service-hvac-sketch.png)}

/* ---------- the white sheet that rises over the dark header ---------- */
html body #repairFormHost{position:relative;z-index:2;margin:-38px -20px 0;padding:0}
html body .form-card{margin:0!important;padding:24px 20px 26px!important;background:var(--paper)!important;background-image:none!important;border:0!important;border-radius:30px 30px 0 0!important;box-shadow:0 -10px 30px #1d22350f!important}
html body .form-card::before{content:"";display:block;width:44px;height:5px;margin:-10px auto 16px;border-radius:5px;background:var(--line)}
html body .step-label{margin:0 0 8px!important;font:800 13px var(--font)!important;letter-spacing:0!important;text-transform:none!important;color:var(--ink)!important}
html body .progress{height:6px!important;margin:0 0 22px!important;background:var(--soft)!important;border-radius:6px!important;border:0!important}
html body .progress span{background:var(--char)!important;border-radius:6px}
html body .form-card .fields{display:flex!important;flex-direction:column!important;gap:16px!important}
html body .form-card [data-step]{display:flex;flex-direction:column;gap:16px}
html body .form-card [data-step][hidden]{display:none}

/* ---------- fields ---------- */
html body .field{display:flex!important;flex-direction:column!important;gap:7px!important;font:700 13px var(--font)!important;color:var(--ink)!important}
html body main input:not([type=checkbox]):not([type=radio]):not([type=file]),html body main select,html body main textarea{width:100%;min-height:52px;padding:0 16px!important;background:var(--paper)!important;border:1.5px solid var(--line)!important;border-radius:16px!important;font:500 16px var(--font)!important;color:var(--ink)!important;box-sizing:border-box}
html body main textarea{min-height:116px;padding:14px 16px!important;line-height:1.5}
html body main input:focus,html body main select:focus,html body main textarea:focus{border-color:var(--char)!important;box-shadow:0 0 0 3px #2b2b2b14!important}
html body main input::placeholder,html body main textarea::placeholder{color:#b0b4bd}

/* ---------- visit options: cards with a check circle ---------- */
html body .visit-picker{border:0!important;padding:0!important;margin:0!important;background:none!important}
html body .visit-picker legend{padding:0;margin-bottom:8px;font:700 13px var(--font);color:var(--ink)}
html body .visit-options{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important}
html body .visit-choice{position:relative;display:block!important;cursor:pointer;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body .visit-choice input{position:absolute;opacity:0;width:1px;height:1px}
html body .visit-choice>span{display:flex!important;flex-direction:column;gap:4px;min-height:112px;padding:14px 12px!important;border:1.5px solid var(--line)!important;border-radius:20px!important;background:var(--paper)!important;background-image:none!important;box-shadow:none!important;color:var(--ink)!important;transition:border-color .2s,background .2s}
html body .visit-choice strong{font:800 14px/1.25 var(--font)!important;color:inherit!important;padding-right:18px}
html body .visit-choice small{display:none!important}
html body .visit-choice em{font:500 12px/1.4 var(--font)!important;font-style:normal!important;color:var(--muted)!important}
html body .visit-choice .visit-selected{display:none!important}
html body .visit-choice>span::after{content:"";position:absolute;right:10px;top:12px;width:18px;height:18px;border-radius:50%;border:1.5px solid #c7cad2;box-sizing:border-box;background:var(--paper)}
html body .visit-choice:has(input:checked)>span{border-color:var(--char)!important;background:var(--char)!important;color:#fff!important}
html body .visit-choice:has(input:checked) em{color:#c9cbd1!important}
html body .visit-choice:has(input:checked)>span::after{border:0;background:var(--char);box-shadow:inset 0 0 0 5px var(--accent)}
html body .visit-choice:has(input:focus-visible)>span{outline:2.5px solid var(--char);outline-offset:3px}
html body .visit-picker .tiny{margin:8px 0 0!important}

/* ---------- checkboxes, notes, buttons ---------- */
html body .check{display:flex!important;gap:12px;align-items:flex-start;font:500 14px/1.5 var(--font)!important;color:var(--ink)!important;padding:14px 16px;border-radius:16px;background:var(--soft);border:0!important}
html body .check input{flex:0 0 auto;width:20px;height:20px;margin:1px 0 0;accent-color:var(--char)}
html body .note{margin:0!important;padding:14px 16px!important;border-radius:16px!important;background:var(--pale)!important;color:var(--ink)!important;border:0!important;font-size:13px;line-height:1.55}
html body main .btn{min-height:52px;padding:0 20px!important;border-radius:999px!important;font:800 15px var(--font)!important;display:inline-flex;align-items:center;justify-content:center;gap:6px}
html body .form-card [data-step]>.btn,html body .form-card .toolbar .btn{width:100%}
html body .toolbar{display:flex!important;gap:10px!important;flex-wrap:wrap}
html body .form-card .toolbar .btn{flex:1}
html body .form-card .toolbar .btn.ui-priority{flex:2}

/* ---------- community: pill tabs + card rail ---------- */
html body #community .card .toolbar{gap:8px!important}
html body #community .card .toolbar .btn{min-height:42px;padding:0 16px!important;font-size:13px!important;width:auto;flex:0 0 auto}
html body #community .card .toolbar .btn:not(.outline){background:var(--char)!important;color:#fff!important}
html body #community .card .toolbar .btn.outline{background:var(--soft)!important;box-shadow:none!important;color:var(--ink)!important}
html body main .card{padding:20px!important}
html body main .card h3{font:800 18px/1.3 var(--font)!important;margin:0 0 12px!important}
html body #journal{display:flex!important;gap:14px!important;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -20px 24px!important;padding:4px 20px 12px!important;scrollbar-width:none;grid-template-columns:none!important}
html body #journal::-webkit-scrollbar{display:none}
html body #journal article{flex:0 0 220px;scroll-snap-align:start;border:0!important;border-radius:26px!important;background:var(--paper)!important;box-shadow:var(--lift)!important;overflow:hidden;padding:0!important}
html body #journal article:first-child{background:var(--char)!important}
html body #journal article:first-child h3{color:#fff!important}
html body #journal article:first-child p{color:#c9cbd1!important}
html body #journal img{width:100%;height:130px;object-fit:cover;filter:grayscale(1) contrast(1.1);border-radius:0!important;display:block}
html body #journal .body{padding:16px 18px 18px!important}
html body #journal h3{font:800 16px var(--font)!important;margin:0 0 6px!important}
html body #journal p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}

/* ---------- project page: dark card rail over the header, then the form ---------- */
html body #portfolio{position:relative;z-index:2;display:flex!important;gap:14px!important;overflow-x:auto;scroll-snap-type:x mandatory;margin:-38px -20px 22px!important;padding:0 20px 14px!important;scrollbar-width:none;grid-template-columns:none!important}
html body #portfolio::-webkit-scrollbar{display:none}
html body #portfolio article{position:relative;flex:0 0 230px;scroll-snap-align:start;border:0!important;border-radius:28px!important;background:var(--char)!important;overflow:hidden;padding:0!important;box-shadow:var(--lift)!important}
html body #portfolio img{width:100%;height:150px;object-fit:cover;filter:url(#lineart);opacity:.6;border-radius:0!important;display:block}
html body #portfolio .body{padding:14px 18px 18px!important;background:none!important}
html body #portfolio h3{font:800 17px var(--font)!important;color:#fff!important;margin:0 0 4px!important}
html body #portfolio p{font-size:13px;color:#c9cbd1!important;margin:0 0 12px}
html body #portfolio .btn{min-height:40px;font-size:13px!important;background:var(--accent)!important;color:var(--on-accent)!important;box-shadow:none!important}
html body #projectFormHost{position:relative;margin:0 -20px}
html body #project .form-card{border-radius:30px!important}

/* ---------- My S.O.S result: status pill, progress ring, journey, timeline ---------- */
html body .task-panel{display:flex;flex-direction:column;gap:14px}
html body .state-summary{align-self:flex-start;margin:0!important;padding:8px 16px;border-radius:999px;background:var(--char);color:#fff!important;font:800 15px var(--font)!important}
html body .sos-ring{display:flex;align-items:center;gap:18px;padding:18px 20px;border-radius:26px;background:var(--soft)}
html body .sos-ring svg{width:96px;height:96px;flex:0 0 auto;transform:rotate(-90deg)}
html body .sos-ring circle{fill:none;stroke-width:9;stroke-linecap:round}
html body .sos-ring .track{stroke:#dfe2ea}
html body .sos-ring .bar{stroke:var(--char);transition:stroke-dashoffset .6s ease}
html body .sos-ring strong{display:block;font:900 34px/1 var(--font);letter-spacing:-.03em;color:var(--ink)}
html body .sos-ring small{display:block;margin-top:6px;font:600 13px var(--font);color:var(--muted)}
html body .journey{padding:18px!important;border-radius:26px!important;background:var(--char)!important;border:0!important;color:#fff}
html body .journey h3,html body .journey .journey-heading{color:#fff!important}
html body .journey-track{gap:8px!important}
html body .journey-step{border:0!important;border-radius:18px!important;background:#ffffff12!important;box-shadow:none!important;color:#d6d8dd!important}
html body .journey-step.is-done{background:#ffffff1f!important;color:#fff!important}
html body .journey-step.is-current{background:var(--accent)!important;color:var(--on-accent)!important}
html body .journey-step.is-current strong,html body .journey-step.is-current small{color:var(--on-accent)!important}
html body .journey-number{background:#ffffff22!important;color:#fff!important;border:0!important}
html body .journey-step.is-current .journey-number{background:var(--char)!important;color:var(--accent)!important}
html body .journey-caption{color:#aeb1b9!important;font-size:12px}
html body .section-title{font:800 18px var(--font)!important;margin:10px 0 4px!important;color:var(--ink)!important}
html body .timeline{position:relative;list-style:none;margin:0!important;padding:4px 0 0 30px!important;border:0!important}
html body .timeline::before{content:"";position:absolute;left:8px;top:12px;bottom:12px;width:2px;background:var(--char);border-radius:2px}
html body .timeline li{position:relative;display:flex;justify-content:space-between;gap:10px;padding:10px 0!important;margin:0!important;border:0!important;background:none!important;font:700 15px var(--font);color:var(--ink)}
html body .timeline li::before{content:"";position:absolute;left:-28px;top:13px;width:14px;height:14px;border-radius:50%;background:var(--paper);border:2px solid var(--char);box-sizing:border-box}
html body .timeline li:last-child::before{background:var(--accent);border-color:var(--char)}
html body .timeline time{font:500 12px var(--font);color:var(--muted)}
html body .record{padding:16px 18px!important;border:0!important;border-radius:20px!important;background:var(--soft)!important;color:var(--ink)!important;box-shadow:none!important}
html body .record strong{color:var(--ink)!important}
html body .badge{display:inline-block;padding:4px 10px!important;border-radius:999px!important;background:var(--char)!important;color:#fff!important;border:0!important;font:700 12px var(--font)!important}
html body .notification{padding:14px 16px!important;border-radius:18px!important;background:var(--paper)!important;border:1.5px solid var(--line)!important;color:var(--ink)!important;box-shadow:none!important;margin:0 0 8px!important}
html body .notification p{margin:0 0 4px!important;color:var(--ink)!important;font-weight:600}
html body .notification.read{opacity:.6}
html body .notification:not(.read){border-color:var(--char)!important}
html body .gallery img{border-radius:18px!important}
html body .role-panel,html body .support-panel{border:0!important;border-radius:22px!important;background:var(--soft)!important;color:var(--ink)!important;box-shadow:none!important;padding:16px 18px!important}
html body .role-panel *,html body .support-panel *{color:var(--ink)!important}
html body .role-panel .btn.ui-priority,html body .support-panel .btn.ui-priority{color:var(--on-accent)!important}

/* ---------- admin / owner desk ---------- */
html body .filters{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto;margin:0 -20px 14px!important;padding:2px 20px 8px!important;scrollbar-width:none}
html body .filters::-webkit-scrollbar{display:none}
html body .filters button{flex:0 0 auto;min-height:40px;padding:0 16px!important;border:0!important;border-radius:999px!important;background:var(--soft)!important;background-image:none!important;box-shadow:none!important;color:var(--ink)!important;font:700 13px var(--font)!important;outline:0!important}
html body .filters button.active{background:var(--char)!important;color:#fff!important}
html body #adminWorkspace>.toolbar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
html body #adminWorkspace>.toolbar .btn{width:100%;min-height:48px;font-size:14px!important}
html body #adminWorkspace .btn.outline{background:var(--paper)!important;color:var(--ink)!important;box-shadow:inset 0 0 0 1.5px var(--line)!important}
html body #loginForm{border-radius:30px 30px 26px 26px!important;margin-top:-38px!important;position:relative;z-index:2}

/* ---------- dark display ---------- */
html.theme-dark body .sos-ring .track{stroke:#3a3c42}
html.theme-dark body main input:not([type=checkbox]):not([type=radio]):not([type=file]),html.theme-dark body main select,html.theme-dark body main textarea{background:var(--soft)!important}

/* woman photo drawn as white line illustration on the dark panel */
html body #home>.sos-top .sos-face{filter:url(#lineart) grayscale(1) brightness(1.15)!important;opacity:.9!important}
html body .sos-hello{letter-spacing:.01em}
/* ink-illustration look: two tones, black ink on cream paper */
html body #home>.sos-top .sos-face{filter:url(#ink)!important;opacity:1!important;width:64%!important;object-position:50% 20%!important;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 38%)!important;mask-image:linear-gradient(90deg,transparent 0,#000 38%)!important}
html body #home>.sos-top .sos-face{object-position:62% 44%!important}
html body .view:not(#home) .page-intro:not(.my-head)::after{display:block!important;visibility:visible!important;z-index:0!important;inset:auto!important;right:-18px!important;top:14px!important;width:52%!important;height:150px!important;transform:none!important;animation:none!important;border:0!important}
html body .view:not(#home) .page-intro h1{max-width:74%!important;font-size:28px!important;word-break:keep-all}
html body .view:not(#home) .page-intro p{max-width:70%!important;word-break:keep-all}
html body #community .card .toolbar{flex-direction:row!important;flex-wrap:wrap!important;align-items:center}
html body #community .card .toolbar .btn{width:auto!important;flex:0 0 auto!important}
html body .visit-choice em{font-size:11.5px!important;word-break:keep-all}
html body .visit-choice strong{word-break:keep-all}
html body #repair .page-intro::after{background-image:url(/static/images/service-water-sketch.png)!important}
html body #project .page-intro::after{background-image:url(/static/images/service-tile-sketch.png)!important}
html body #community .page-intro::after{background-image:url(/static/images/service-window-sketch.png)!important}
html body #community .page-intro~.page-intro::after{background-image:url(/static/images/service-hvac-sketch.png)!important}
html body #admin .page-intro::after{background-image:url(/static/images/service-electric-sketch.png)!important}
html body #community .card .toolbar{flex-wrap:nowrap!important;overflow-x:auto;margin:0 -20px 12px!important;padding:0 20px 4px!important;scrollbar-width:none}
html body #community .card .toolbar::-webkit-scrollbar{display:none}

/* ---------- interior / work-type photos drawn as illustrations ----------
   #illus: white + flat greys with black outlines (light surfaces)
   #illus-dark: dark greys with white outlines (charcoal cards)
   Customer work photos (.gallery) stay real photographs on purpose. */
html body .card-dots img{filter:url(#illus)!important}
html body #homeProjects .feature .card-lines{filter:url(#illus-dark)!important}
html body #homeProjects .feature.is-current .card-lines{opacity:.75!important}
html body #portfolio img{filter:url(#illus-dark)!important;opacity:1!important}
html body #journal img{filter:url(#illus)!important}
html body #journal article:first-child img{filter:url(#illus-dark)!important}
html body .service-card:not(:nth-child(even)) .card-lines{opacity:.5!important}
html body .card-dots img{filter:grayscale(1) contrast(1.2) brightness(1.05)!important}
html body #homeProjects .feature.is-current .card-lines{opacity:.7!important;-webkit-mask-image:linear-gradient(90deg,transparent 0,#0006 30%,#000 70%);mask-image:linear-gradient(90deg,transparent 0,#0006 30%,#000 70%)}
html body #portfolio article img{-webkit-mask-image:linear-gradient(180deg,#000 60%,transparent);mask-image:linear-gradient(180deg,#000 60%,transparent)}

/* 전기·조명: the user's pendant-lamp photo, hung from the top right of the card */
html body .service-card .card-lines[src$="electric-lamp.png"]{inset:0 8px auto auto!important;width:auto!important;height:68%!important;object-fit:contain!important;object-position:top right!important;opacity:.9!important;mix-blend-mode:screen;filter:invert(1) contrast(1.15)!important}
html body .service-card:nth-child(even) .card-lines[src$="electric-lamp.png"]{mix-blend-mode:multiply;filter:contrast(1.1)!important;opacity:.95!important}
