/* iMAT Site Survey — public app (Rev 271) */
[hidden] { display: none !important; }
body.ss { margin: 0; background: #F4F6FA; color: #161A25; }
.ss-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
          background: #fff; border-bottom: 1px solid #E2E6EF; }
.ss-brand img { height: 30px; display: block; }
.ss-title { flex: 1; font-size: 15px; color: #2B3990; }
.ss-pane { max-width: 960px; margin: 0 auto; padding: 18px 16px 40px; }
.ss-pane h1 { font-size: clamp(24px, 5vw, 34px); margin: 4px 0 6px; text-wrap: balance; }
.ss-lead { color: #3C4A66; margin: 0 0 14px; max-width: 62ch; }
.ss-search { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid #CFD5E3; border-radius: 10px; font: inherit; margin-bottom: 14px; }
.ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ss-card { display: flex; flex-direction: column; gap: 4px; text-align: left; background: #fff; border: 1px solid #E2E6EF; border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; color: inherit; }
.ss-card:hover, .ss-card:focus-visible { border-color: #2B3990; }
.ss-card img, .ss-noimg { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #F7F8FB; border-radius: 8px; }
.ss-noimg { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #9AA3B8; }
.ss-card b { font-size: 14px; line-height: 1.25; } .ss-card small { color: #5B6172; font-size: 12px; }
.ss-foot { color: #5B6172; font-size: 13px; margin-top: 22px; }
.ss-back { margin-bottom: 8px; }
#ss-mv { width: 100%; height: min(60vh, 520px); background: #fff; border: 1px solid #E2E6EF; border-radius: 14px; }
.ss-ar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; }
.ss-dim { color: #33405C; font-weight: 700; font-size: 14px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.ss-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ss-hint { color: #5B6172; font-size: 13.5px; }
.ss-cam { position: fixed; inset: 0; z-index: 50; background: #000; overflow: hidden; touch-action: none; }
#ss-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#ss-ov { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; --poster-color: transparent; }
.ss-markers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ss-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-mk { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(190,30,45,.85); color: #fff; border: 3px solid #fff;
         display: flex; align-items: center; justify-content: center; font-weight: 800; pointer-events: auto; touch-action: none; cursor: grab; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.ss-panel { position: absolute; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 4; background: rgba(13,17,38,.82); color: #fff;
            border-radius: 12px; padding: 10px 12px; font-size: 13.5px; max-width: 520px; }
.ss-panel p { margin: 0 0 8px; } .ss-panel input[type=number] { width: 72px; padding: 5px; border-radius: 6px; border: 0; font: inherit; }
.ss-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ss-qty { margin-left: auto; } .ss-qty input { width: 54px !important; }
.ss-site { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 7px 9px; border-radius: 7px; border: 0; font: inherit; }
.ss-scale { font-weight: 700; }
.ss-shutter { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 4; width: 74px; height: 74px;
              border-radius: 50%; border: 5px solid #fff; background: #BE1E2D; box-shadow: 0 4px 18px rgba(0,0,0,.5); cursor: pointer; }
.ss-close { position: absolute; right: 12px; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); z-index: 5; }
.ss-result { position: absolute; inset: 0; z-index: 6; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.ss-result img { max-width: 100%; max-height: 78vh; border-radius: 8px; }
.ss-camerr { position: absolute; left: 16px; right: 16px; bottom: 120px; z-index: 7; background: #FCEEEF; color: #8E1B26; border-radius: 10px; padding: 10px 12px; }
.ss-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; } .ss-thumbs img { width: 86px; height: 86px; object-fit: cover; border-radius: 8px; }
#ss-form { display: grid; gap: 10px; max-width: 520px; }
#ss-form label { display: grid; gap: 4px; font-weight: 700; font-size: 13.5px; }
#ss-form input, #ss-form textarea { padding: 10px 12px; border: 1px solid #CFD5E3; border-radius: 9px; font: inherit; font-weight: 400; }
.ss-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ss-err { color: #8E1B26; background: #FCEEEF; border-radius: 8px; padding: 8px 10px; margin: 0; }
.ss-done { background: #EDFAF1; color: #176A36; border: 1px solid #BCE8CB; border-radius: 10px; padding: 14px; font-weight: 700; }
.ss-inst { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #DDE3F7; border-left: 4px solid #BE1E2D; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ss-inst img { width: 40px; height: 40px; border-radius: 9px; }
.ss-inst div { flex: 1; min-width: 160px; font-size: 13.5px; } .ss-inst div > b { display: block; font-size: 14.5px; } .ss-inst span { color: #3C4A66; }
.ss-inst-x { background: none; border: 0; font-size: 16px; color: #5B6172; cursor: pointer; padding: 4px; }
.ss-guide { position: fixed; inset: 0; z-index: 100; background: rgba(13,17,38,.78); display: flex; flex-direction: column; align-items: flex-end; padding: 16px; }
.ss-guide-up { justify-content: flex-start; padding-top: calc(4px + env(safe-area-inset-top, 0px)); }
.ss-guide-down { justify-content: flex-end; align-items: center; flex-direction: column-reverse; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.ss-guide-arrow { font-size: 54px; color: #fff; line-height: 1; margin: 0 6px 6px; animation: ssbob 1s ease-in-out infinite alternate; }
@keyframes ssbob { to { transform: translateY(-10px); } }
.ss-guide-box { background: #fff; border-radius: 14px; padding: 16px 18px; max-width: 360px; width: 100%; box-sizing: border-box; font-size: 15px; }
.ss-guide-box ol { padding-left: 20px; margin: 8px 0 12px; } .ss-guide-box li { margin: 6px 0; }
.ss-share { display: inline-block; border: 1.5px solid #2B3990; border-radius: 4px; padding: 0 4px; color: #2B3990; font-size: 13px; }
/* ── Rev 280: simpler flow ── */
.ss-big { display: block; width: 100%; box-sizing: border-box; border: 0; border-radius: 14px; padding: 16px 18px; font: inherit; font-size: 17px; font-weight: 800;
          background: #BE1E2D; color: #fff; cursor: pointer; box-shadow: 0 8px 22px rgba(190,30,45,.3); margin-top: 14px; text-align: center; }
.ss-big:active { transform: translateY(1px); }
.ss-big-ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; border: 2px solid rgba(255,255,255,.7); }
.ss-link { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; font-size: 13.5px; padding: 8px 4px; cursor: pointer; opacity: .9; }
.ss-plink { display: inline-block; margin-top: 6px; color: #2B3990; font-weight: 700; font-size: 14px; }
.ss-ar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; border: 0; border-radius: 999px; padding: 10px 18px;
         background: #fff; color: #2B3990; font: inherit; font-weight: 800; box-shadow: 0 4px 16px rgba(22,26,37,.22); cursor: pointer; }
.ss-fin { margin-top: 10px; }
.ss-fin-h { font-size: 13px; color: #5B6172; } .ss-fin-h b { color: #161A25; }
.ss-fin-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ss-sw { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #E2E6EF; background: #fff; padding: 3px; cursor: pointer; display: inline-flex; }
.ss-sw-on { border-color: #BE1E2D; box-shadow: 0 0 0 2px rgba(190,30,45,.25); }
.ss-dot { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.ss-dot-factory { background: conic-gradient(#C2C8CE, #8C939B, #EFEFEF, #C2C8CE); }
.ss-dot-any { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.ss-sw-any input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ss-camtop { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px;
             padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px; background: linear-gradient(rgba(0,0,0,.55), transparent); color: #fff; }
.ss-step { font-weight: 800; font-size: 15px; }
.ss-kept { margin-left: auto; background: #17803D; color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.ss-iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #161A25; font-size: 18px; cursor: pointer; flex: none; }
.ss-guide-cam { position: absolute; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 5; background: rgba(13,17,38,.86); color: #fff;
                border-radius: 16px; padding: 14px 16px; font-size: 15px; max-width: 520px; margin: 0 auto; }
.ss-guide-cam p { margin: 0 0 8px; }
.ss-guide-cam input[type=number] { width: 80px; padding: 6px; border-radius: 8px; border: 0; font: inherit; font-weight: 800; }
.ss-guide-shoot { top: calc(70px + env(safe-area-inset-top, 0px)); bottom: auto; padding: 10px 14px; }
.ss-guide-shoot .ss-row { margin-top: 4px; }
.ss-mk { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 0; background: #BE1E2D; border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(190,30,45,.35), 0 2px 10px rgba(0,0,0,.5); }
.ss-shutter { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); width: 84px; height: 84px; }
.ss-done-cam { position: absolute; right: 14px; bottom: calc(44px + env(safe-area-inset-bottom, 0px)); z-index: 5; border: 0; border-radius: 999px; padding: 12px 16px;
               background: #fff; color: #BE1E2D; font: inherit; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.35); cursor: pointer; }
.ss-close { display: none; }
.ss-result .ss-row-c { width: 100%; max-width: 480px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.ss-result .ss-big { margin-top: 0; }
.ss-reqbar { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; border: 0; border-radius: 14px; padding: 15px;
             background: #BE1E2D; color: #fff; font: inherit; font-size: 16px; font-weight: 800; box-shadow: 0 10px 28px rgba(190,30,45,.4); cursor: pointer; max-width: 560px; margin: 0 auto; }
.ss-reqbar-off { display: none; }
body.ss .ss-pane { padding-bottom: 96px; }
.ss-lines { display: grid; gap: 12px; margin-bottom: 16px; }
.ss-line { background: #fff; border: 1px solid #E2E6EF; border-radius: 12px; padding: 12px; }
.ss-line-h { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ss-qtybox { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #5B6172; }
.ss-qtybox button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #CFD5E3; background: #fff; font-size: 18px; cursor: pointer; }
.ss-qtybox b { min-width: 22px; text-align: center; color: #161A25; font-size: 16px; }
.ss-line .ss-thumbs { margin: 10px 0 0; }
.ss-th { position: relative; } .ss-th img { width: 78px; height: 78px; object-fit: cover; border-radius: 8px; display: block; }
.ss-th button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #161A25; color: #fff; font-size: 12px; cursor: pointer; }
#ss-mv { height: min(46vh, 520px); }
.ss-camerr { top: calc(70px + env(safe-area-inset-top, 0px)); bottom: auto; }
