
/* ---- Top bar + Google Login + History + Mobile Menu Folding ---- */
.bar .wrap{position:relative;display:flex;align-items:center;gap:14px;min-height:58px}
.sctm-desk-links{display:contents}
.sctm-bar-right{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
.sctm-hist-link{display:inline-flex;align-items:center;gap:5px;color:#d9cde8;font-size:13.5px;text-decoration:none;white-space:nowrap;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.08)}
.sctm-hist-link:hover{background:rgba(255,255,255,.16);color:#fff}
.sctm-hist-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#f2a65a;color:#24143a;font-size:11px;font-weight:800;line-height:1}
.sctm-auth-slot{display:inline-flex;align-items:center;min-height:36px}
.sctm-menu-btn{display:none;align-items:center;justify-content:center;gap:6px;background:rgba(255,255,255,.12);color:#fbf7f2;border:1px solid rgba(255,255,255,.22);border-radius:10px;padding:0 12px;height:40px;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
.sctm-menu-btn:hover{background:rgba(255,255,255,.2)}
.sctm-drawer{display:none;background:#1e1130;border-top:1px solid rgba(255,255,255,.12);padding:12px 18px 18px}
.sctm-drawer.open{display:block}
.sctm-drawer-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:1040px;margin:0 auto}
.sctm-drawer a{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.08);color:#fbf7f2;text-decoration:none;padding:11px 13px;border-radius:10px;font-size:14.5px;font-weight:600;min-height:44px}
.sctm-drawer a:hover{background:rgba(255,255,255,.16)}
.sctm-drawer a.sctm-cta{grid-column:1 / -1;background:#f2a65a;color:#24143a;font-weight:800;justify-content:center}

@media(max-width:860px){
  .bar .wrap{flex-wrap:nowrap !important;gap:6px !important;padding:8px 10px !important;min-height:56px !important;max-width:100% !important;box-sizing:border-box !important}
  .bar .logo{width:auto !important;flex:0 1 auto !important;min-width:0 !important;font-size:14px !important;margin-right:auto !important;white-space:nowrap !important}
  .bar a.nl,.sctm-hist-link{display:none !important}
  .sctm-menu-btn{display:inline-flex !important;flex-shrink:0 !important;padding:0 9px !important;height:36px !important;font-size:12.5px !important}
  .sctm-bar-right{gap:5px;margin-left:0;min-width:0;flex-shrink:0}
  .sctm-auth-slot [data-google-login] button,.sctm-auth-slot button{padding:6px 8px !important;font-size:11.5px !important;height:36px !important;max-width:154px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* ---- English-Only Custom File Upload Control (Eliminates Browser-Locale File Input Leaks) ---- */
.sctm-sr-file{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;opacity:0 !important}
.sctm-file-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0 8px}
.sctm-file-btn{display:inline-flex !important;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 18px !important;cursor:pointer;font-weight:700;text-decoration:none}
.sctm-file-name{font-size:14px;color:#5e4d70;word-break:break-word}

/* ---- Pre-upload Interactive Daylight Sample Showcase ---- */
.sctm-samples{margin-top:16px;padding-top:14px;border-top:1px solid #ede4f2}
.sctm-samples-hd{margin:0 0 10px;font-size:13.5px;color:#4a3b5c}
.sctm-sgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.sctm-scard{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;background:#fbf7f2;border:1.5px solid #e6daec;border-radius:14px;padding:10px 6px 9px;cursor:pointer;color:#24143a;transition:border-color .15s,transform .15s,box-shadow .15s}
.sctm-scard:hover{border-color:#7a2e6b;transform:translateY(-1px);box-shadow:0 6px 16px rgba(36,20,58,.1);background:#fff}
.sctm-scard img{width:62px;height:62px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 8px rgba(36,20,58,.15)}
.sctm-sname{font-size:13px;font-weight:800;line-height:1.15;margin-top:2px}
.sctm-stag{font-size:11.5px;color:#655478;line-height:1.15}
.sctm-sdots{display:inline-flex;gap:4px;margin:2px 0}
.sctm-sdots i{width:11px;height:11px;border-radius:50%;display:inline-block;border:1px solid rgba(0,0,0,.12)}
.sctm-sgo{font-size:11.5px;font-weight:700;color:#7a2e6b;margin-top:1px}
.sctm-sample-banner{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;background:#f4eefb;border:1.5px solid #d5c1e8;border-radius:12px;padding:10px 12px;margin:10px 0 8px;font-size:13.5px;color:#24143a}
.sctm-sample-banner button{background:#24143a;color:#fff;border:0;border-radius:8px;padding:6px 11px;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}

/* ---- Professional 3-Tier Pricing Table (No Clutter, Crisp Contrast) ---- */
.sctm-plans{padding:32px 0 !important}
.sctm-plans-hd{margin-bottom:20px}
.sctm-plans-hd h2{margin:0 0 6px}
.sctm-plans-hd p{margin:0;font-size:15px}
.sctm-pgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.sctm-pcard{background:#fff;border:1.5px solid #e4d9ec;border-radius:18px;padding:24px 22px 20px;display:flex;flex-direction:column;position:relative;box-shadow:0 4px 18px rgba(36,20,58,.04)}
.sctm-pcard.pop{border:2px solid #24143a;box-shadow:0 16px 38px rgba(36,20,58,.12);background:linear-gradient(180deg,#ffffff 0%,#fdf9ff 100%)}
.sctm-ptop{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #efe7f4}
.sctm-pbadge{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:4px 10px;border-radius:999px;margin-bottom:10px}
.sctm-pbadge.muted{background:#f2edf6;color:#5e4d70}
.sctm-pbadge.pop{background:#24143a;color:#f2a65a}
.sctm-pbadge.dark{background:#efe7f7;color:#7a2e6b}
.sctm-pcard h3{margin:0 0 6px;font-size:20px;color:#24143a}
.sctm-pamt{font-size:38px;font-weight:800;letter-spacing:-.03em;color:#24143a;line-height:1.05;margin:4px 0 8px}
.sctm-pamt small{font-size:15px;font-weight:600;color:#655478;letter-spacing:0}
.sctm-pdesc{margin:0;font-size:14px;color:#5e4d70;line-height:1.45}
.sctm-plist{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-direction:column;gap:9px;flex:1}
.sctm-plist li{position:relative;padding-left:24px;font-size:14px;line-height:1.4;color:#24143a}
.sctm-plist li.yes::before{content:"✓";position:absolute;left:0;top:0;color:#237a4b;font-weight:900;font-size:14px}
.sctm-plist li.no{color:#9a8ea8;text-decoration:line-through;text-decoration-color:rgba(154,142,168,.55)}
.sctm-plist li.no::before{content:"✕";position:absolute;left:1px;top:0;color:#b8acc6;font-weight:700;font-size:12.5px}
.sctm-pfoot{margin-top:auto}
.sctm-direct-form{margin:0}
.sctm-pbtn{display:flex !important;align-items:center;justify-content:center;width:100% !important;min-height:48px !important;font-size:15.5px !important;font-weight:800 !important;border-radius:12px !important;box-sizing:border-box;text-decoration:none !important;text-align:center}
.sctm-pmicro{margin:8px 0 0;font-size:12.5px;color:#655478;text-align:center}
.sctm-pmicro a{color:#7a2e6b;font-weight:600;text-decoration:none}
.sctm-pmicro a:hover{text-decoration:underline}
.sctm-trust-bar{margin:16px 0 0;padding:12px 16px;background:#f7f2fb;border-radius:12px;font-size:13px;color:#5e4d70;text-align:center;line-height:1.5}
.sctm-trust-bar a{color:#7a2e6b;font-weight:600}
@media(max-width:860px){
  .sctm-pgrid{grid-template-columns:1fr;gap:14px}
  .sctm-pcard.pop{order:-1}
}

/* ---- Mobile Action Buttons & Pill Grids (clean fold, 44px touch targets, 0 overflow) ---- */
@media(max-width:640px){
  html,body{overflow-x:clip !important;max-width:100% !important}
  .tbl{overflow-x:auto !important;max-width:100% !important;-webkit-overflow-scrolling:touch}
  .acts,.sctm-actions{display:grid !important;grid-template-columns:1fr 1fr !important;gap:8px !important;width:100%}
  .acts .btn,.acts a.btn,.sctm-actions .btn,.sctm-actions a.btn{width:100% !important;min-height:44px !important;padding:10px 10px !important;font-size:14px !important;text-align:center !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;box-sizing:border-box}
  .acts .btn:first-child:nth-last-child(odd),.sctm-actions .sctm-full{grid-column:1 / -1 !important}
  .pills,.quiz-opts{display:grid !important;grid-template-columns:1fr !important;gap:8px !important}
  .pills .pill,.quiz-opts .pill{width:100% !important;min-height:44px !important;text-align:left !important;border-radius:12px !important;padding:10px 13px !important}
  .ptabs{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:6px !important;overflow:visible !important;width:100% !important}
  .ptabs button{width:100% !important;min-height:38px !important;padding:6px 5px !important;font-size:11.5px !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
  .chk-row{display:grid !important;grid-template-columns:52px 1fr !important;gap:8px !important}
  .chk-row input[type=text]{width:100% !important}
  .chk-row .btn{grid-column:1 / -1 !important;width:100% !important;min-height:44px !important}
  #id-pills{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:6px !important}
  #id-pills button{width:100% !important;min-height:40px !important;font-size:12.5px !important;padding:6px 8px !important}
  .season-list{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important}
  .season-link{justify-content:flex-start !important;min-height:40px !important}
  .sctm-drawer-grid{grid-template-columns:1fr}
  .sctm-scard{padding:8px 4px}
  .sctm-scard img{width:52px;height:52px}
}

/* ---- Share Card Trigger ---- */
.sctm-share-bar{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.sctm-share-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#7a2e6b;color:#fbf7f2;border:0;border-radius:10px;padding:11px 16px;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none;min-height:44px}
.sctm-share-btn:hover{background:#5e2152}
.sctm-share-btn.sec{background:#efe7f7;color:#24143a}
.sctm-share-btn.sec:hover{background:#e2d5f0}

/* ---- Viral Share Card Studio Modal ---- */
.sctm-modal{position:fixed;inset:0;z-index:9999;background:rgba(20,10,34,.78);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;padding:14px;overflow-y:auto}
.sctm-modal.open{display:flex}
.sctm-sheet{background:#fbf7f2;color:#24143a;border-radius:18px;max-width:560px;width:100%;max-height:94vh;overflow-y:auto;padding:18px;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.sctm-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.sctm-sheet-head h3{margin:0;font-size:19px}
.sctm-close{background:#efe7f7;color:#24143a;border:0;border-radius:999px;width:36px;height:36px;font-size:20px;line-height:1;cursor:pointer;font-weight:700}
.sctm-controls{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.sctm-chip{background:#efe7f7;color:#24143a;border:1px solid #d9cde8;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:700;cursor:pointer;min-height:36px}
.sctm-chip.on{background:#24143a;color:#fbf7f2;border-color:#24143a}
.sctm-preview-wrap{background:#e9e1d8;border-radius:14px;padding:10px;display:flex;justify-content:center;margin-bottom:12px}
.sctm-preview-wrap canvas{max-width:100%;max-height:54vh;width:auto;height:auto;border-radius:10px;box-shadow:0 8px 24px rgba(36,20,58,.18)}
.sctm-sheet-acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sctm-sheet-acts button{min-height:44px;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;border:0;padding:10px 12px}
.sctm-sheet-acts .pri{background:#24143a;color:#fbf7f2;grid-column:1 / -1}
.sctm-sheet-acts .sec{background:#efe7f7;color:#24143a}
.sctm-toast{margin:8px 0 0;font-size:13.5px;color:#2e6b47;font-weight:600;min-height:18px;text-align:center}

/* ---- History Page (Photo Thumbnail Ring + Visual Test Breakdown) ---- */
.sctm-h-list{display:grid;gap:16px;margin:16px 0}
.sctm-h-card{background:#fff;border:1px solid #e8dfd3;border-radius:16px;padding:18px;box-shadow:0 2px 8px rgba(36,20,58,.05)}
.sctm-h-body{display:flex;gap:16px;align-items:flex-start}
.sctm-h-media{flex:0 0 auto}
.sctm-h-main{flex:1;min-width:0}
.sctm-h-ring{width:84px;height:84px;border-radius:50%;padding:5px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(36,20,58,.14)}
.sctm-h-ring img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:2px solid #fff;display:block}
.sctm-h-priv{font-size:10.5px;color:#655478;text-align:center;margin-top:5px;line-height:1.2}
.sctm-h-testbox{width:142px;background:#fbf7f2;border:1px solid #e8dfd3;border-radius:12px;padding:10px;box-sizing:border-box}
.sctm-h-testlbl{font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#7a2e6b;margin-bottom:7px}
.sctm-h-axis{margin-bottom:6px}
.sctm-h-axis:last-child{margin-bottom:0}
.sctm-h-axlbl{display:flex;justify-content:space-between;font-size:10px;color:#655478;font-weight:700;margin-bottom:2px}
.sctm-h-track{height:6px;border-radius:4px;background:#e6dce9;position:relative}
.sctm-h-track i{position:absolute;top:50%;width:10px;height:10px;border-radius:50%;background:#24143a;border:2px solid #fff;transform:translate(-50%,-50%);box-shadow:0 1px 3px rgba(0,0,0,.25)}
.sctm-h-top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-bottom:8px}
.sctm-tag{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#efe7f7;color:#24143a}
.sctm-tag.paid{background:#24143a;color:#f2a65a}
.sctm-h-ans{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.sctm-h-ans span{background:#f7f2fb;border:1px solid #e5d8f0;color:#3d2f4d;border-radius:7px;padding:3px 8px;font-size:12px}
.sctm-sw-strip{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.sctm-sw-dot{display:inline-flex;align-items:center;gap:6px;background:#fbf7f2;border:1px solid #e8dfd3;border-radius:8px;padding:4px 8px;font-size:12px}
.sctm-sw-dot i{width:16px;height:16px;border-radius:4px;display:inline-block;border:1px solid rgba(0,0,0,.1)}
@media(max-width:560px){
  .sctm-h-body{flex-direction:column;gap:12px}
  .sctm-h-testbox{width:100%}
}
