/* 안심링크 — 말랑 파스텔 테마 */
:root {
  --bg: #FFF7F2;
  --surface: #FFFFFF;
  --ink: #3D2C3A;
  --muted: #7A6573;
  --line: #F5E3E8;
  --pink: #FF8FAB;
  --pink-deep: #D9466E;
  --pink-soft: #FFE6EE;
  --mint: #2E8B74;
  --mint-soft: #DFF6EF;
  --butter: #946400;
  --butter-soft: #FFF2CC;
  --lav: #6A55C8;
  --lav-soft: #EFEAFF;
  --peach-soft: #FFEADF;
  --sky-soft: #E3F1FF;
  --red: #C8344F;
  --shadow: 0 8px 24px rgba(217, 70, 110, .08);
  --radius: 24px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Features switched off in admin.js FEATURES. */
.feature-off { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(circle at 12% 8%, #FFE3EC 0, transparent 32%), radial-gradient(circle at 92% 88%, #E7F7F1 0, transparent 30%);
  background-attachment: fixed;
  font-family: -apple-system, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  letter-spacing: -0.01em;
}
a { color: var(--pink-deep); }
h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---- 틀 ---- */
.app { display: flex; min-height: 100vh; }
.side {
  flex: 0 0 236px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px);
  border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-size: 20px; font-weight: 800; color: var(--pink-deep); letter-spacing: -0.03em; }
.brand-mascot { width: 38px; height: 38px; }
.navs { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav {
  display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; color: var(--ink);
  padding: 11px 14px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; cursor: pointer;
  transition: background .15s, transform .15s;
}
.nav:hover { background: var(--pink-soft); }
.nav[aria-current="page"] { background: var(--pink-soft); color: var(--pink-deep); font-weight: 800; }
.ni { font-size: 18px; width: 24px; text-align: center; }
.me { margin-top: auto; padding: 10px 14px; color: var(--muted); font-weight: 600; }
.logout { color: var(--muted); }
.count { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: auto; border-radius: 999px; background: var(--pink-deep); color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.main { flex: 1; min-width: 0; padding: 32px 36px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 1120px; }
.main > section:not([hidden]) { display: flex; flex-direction: column; gap: 18px; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- 공통 부품 ---- */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.head p { margin: 6px 0 0; font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.panel.narrow { max-width: 480px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
button { font: inherit; cursor: pointer; }
a.primary { display: inline-flex; align-items: center; text-decoration: none; }
.primary {
  min-height: 46px; border: 0; border-radius: 999px; background: var(--pink-deep); color: #fff; padding: 0 22px;
  font-size: 15px; font-weight: 800; box-shadow: 0 6px 16px rgba(217, 70, 110, .25); transition: transform .12s, box-shadow .12s;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(217, 70, 110, .32); }
.primary:active { transform: translateY(1px); }
.ghost { min-height: 42px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); padding: 0 16px; font-size: 14px; font-weight: 700; }
.ghost:hover { border-color: var(--pink); background: #FFF9FB; }
.danger.ghost { color: var(--red); border-color: #F6CDD6; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.hint { font-size: 13px; margin: 0; color: var(--muted); }
.ok { color: var(--mint); }
.error { color: var(--red); font-size: 14px; margin: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); min-height: 44px; }
input, select { min-height: 46px; border: 1.5px solid #F0DCE2; border-radius: 14px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: #FFFCFD; }
input::placeholder { color: #B9A5B0; }
input[type="checkbox"] { min-height: 0; width: 22px; height: 22px; accent-color: var(--pink-deep); }
input:focus, select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
button:focus-visible, a:focus-visible, .kind:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
legend { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > form { flex: 3 1 440px; min-width: 0; }
.split > aside { flex: 2 1 300px; min-width: 0; position: sticky; top: 20px; }
.msg { white-space: pre-wrap; word-break: break-all; background: var(--pink-soft); border-radius: 18px; padding: 16px; font: inherit; font-size: 14px; line-height: 1.7; margin: 0; }
code { background: var(--pink-soft); padding: 1px 6px; border-radius: 6px; }

/* ---- 색깔 이름 ---- */
.pink { --tone: var(--pink-deep); --tone-soft: var(--pink-soft); }
.mint { --tone: var(--mint); --tone-soft: var(--mint-soft); }
.butter { --tone: var(--butter); --tone-soft: var(--butter-soft); }
.lav { --tone: var(--lav); --tone-soft: var(--lav-soft); }
.peach { --tone: #B4532A; --tone-soft: var(--peach-soft); }
.sky { --tone: #2C6BAE; --tone-soft: var(--sky-soft); }

/* ---- 들어가기 ---- */
.login { max-width: 460px; margin: 24px auto; text-align: center; background: var(--surface); border-radius: 32px; padding: 34px 28px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.login h1 { font-size: 24px; }
.lead { margin: 0; color: var(--muted); line-height: 1.7; font-size: 15px; }
.login-art { position: relative; height: 150px; display: flex; justify-content: center; align-items: center; }
.login-mascot { width: 130px; height: 130px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bubble { position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #fff; box-shadow: var(--shadow); }
.b1 { left: 18%; top: 14px; background: var(--pink-soft); }
.b2 { right: 16%; top: 30px; background: var(--mint-soft); }
.b3 { left: 24%; bottom: 4px; background: var(--butter-soft); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.chip { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--tone); background: var(--tone-soft); }
.kakao { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; background: #FEE500; color: #191919; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 6px 16px rgba(180, 150, 0, .2); }
.sub-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; text-align: left; }
.dev-only { border: 2px dashed #E6CFA0; background: var(--butter-soft); border-radius: 18px; padding: 14px; }

/* ---- 홈 ---- */
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px; border-radius: 28px;
  background: linear-gradient(135deg, #FFE1EA 0%, #FFEFE6 55%, #E9F7F2 100%); border: 1px solid #FFD7E2; box-shadow: var(--shadow);
}
.hero h1 { font-size: 28px; margin: 4px 0 8px; }
.hero p { margin: 0; color: var(--muted); line-height: 1.6; }
.hero-cta { margin-top: 14px; }
.hero .hero-date { font-size: 13px; font-weight: 700; color: var(--pink-deep); }
.hero-mascot { width: 110px; height: 110px; flex: 0 0 auto; animation: bob 3s ease-in-out infinite; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.card { position: relative; background: var(--tone-soft, #fff); border-radius: 22px; padding: 18px 20px; border: 1px solid rgba(0, 0, 0, .03); }
.card .label { font-size: 13px; font-weight: 700; color: var(--tone, var(--muted)); }
.card .num { font-size: 32px; font-weight: 800; margin-top: 2px; color: var(--ink); }
.card-ic { position: absolute; right: 16px; top: 14px; font-size: 24px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0 4px; text-align: center; color: var(--muted); }
.empty svg { width: 72px; height: 72px; opacity: .9; }
.empty p { margin: 0; line-height: 1.6; }

.cctv-guide { background: linear-gradient(135deg, #FFE6EE, #FFF7F2); }
.cctv-guide .steps a { color: var(--pink-deep); font-weight: 800; }
.soon { background: linear-gradient(135deg, #EFEAFF, #FFF7F2); border-color: #E3DBFF; }
.soon p { margin: 0; line-height: 1.6; }
.onboard { background: linear-gradient(135deg, #FFF2CC, #FFEADF); border-color: #F6E3A8; }
.steps { margin: 0; padding-left: 22px; line-height: 2; font-size: 15px; }

/* ---- 목록 ---- */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #FFFAFC; border: 1px solid var(--line); }
.row .who { flex: 1 1 220px; min-width: 0; }
.row .who strong { font-size: 15px; }
.row .who div { font-size: 13px; color: var(--muted); margin-top: 3px; }
.state { font-size: 12px; font-weight: 800; flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; }
.state.live { color: var(--mint); background: var(--mint-soft); }
.state.wait { color: var(--butter); background: var(--butter-soft); }
.state.off { color: var(--muted); background: #F4EEF1; }
.row .btns { display: flex; gap: 8px; }
.log { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.log summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-weight: 700; }
.log ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.8; }
.tabs { display: flex; gap: 8px; }
.tab { min-height: 40px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--pink-deep); color: #fff; border-color: var(--pink-deep); }

/* ---- 새 공유: 무엇을 ---- */
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kind { position: relative; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 2px solid transparent; border-radius: 20px; background: var(--tone-soft, var(--pink-soft)); cursor: pointer; color: var(--ink); min-height: 120px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.kind:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(61, 44, 58, .08); }
.kind:has(input:checked) { border-color: var(--tone, var(--pink-deep)); box-shadow: 0 0 0 3px #fff inset; }
.kind:has(input:checked)::after { content: "✓"; position: absolute; top: 10px; right: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tone, var(--pink-deep)); color: #fff; font-weight: 800; font-size: 14px; }
.kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-icon { font-size: 26px; width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.kind-text { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.kind-text strong { font-size: 15px; }
.kind-text span { font-size: 12px; color: var(--tone, var(--muted)); font-weight: 700; }

.upload-box { display: flex; flex-direction: column; gap: 10px; }
.up-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.up-pick { position: relative; flex: 1 1 160px; flex-direction: row; justify-content: center; align-items: center; min-height: 56px; border: 2px dashed #A9DCCB; border-radius: 18px; background: var(--mint-soft); color: var(--mint); font-size: 15px; font-weight: 800; cursor: pointer; }
.up-pick:hover { background: #CFF0E5; }
.up-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.up-pick:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }
.up-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.up-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: #FFFAFC; font-size: 14px; }
.up-name { flex: 1; min-width: 0; word-break: break-all; }
.up-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.up-x { border: 0; background: none; color: var(--muted); min-width: 32px; min-height: 32px; border-radius: 50%; }
.up-x:hover { background: var(--pink-soft); color: var(--red); }
.up-total { margin: 0; font-size: 13px; font-weight: 700; color: var(--mint); }
.upload-box .bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.upload-box .bar div { height: 100%; width: 0; background: linear-gradient(90deg, #7ED6C1, #2E8B74); border-radius: 999px; }
.up-progress { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--pink-deep); font-weight: 700; }
.up-progress .bar div { background: linear-gradient(90deg, #FF8FAB, #D9466E); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 10px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-align: left; }
.pick:hover { border-color: #FFC3D3; }
.pick[aria-pressed="true"] { border-color: var(--pink-deep); background: var(--pink-soft); }
.pick[aria-pressed="true"]::after { content: "✓"; font-weight: 800; color: var(--pink-deep); }
.pick-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--pink-soft); display: grid; place-items: center; font-size: 17px; }
.pick[aria-pressed="true"] .pick-ic { background: #fff; }
.pick-text { display: flex; flex-direction: column; }
.pick-text strong { font-size: 15px; }
.pick-text span { font-size: 12px; color: var(--muted); }
.picks-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--butter-soft); }
.picks-empty p { margin: 0; flex: 1 1 220px; font-size: 14px; line-height: 1.6; }

.dev-kinds summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.dev-kinds .kinds { margin-top: 8px; }
.files-opts { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 18px; background: var(--mint-soft); }
.opts-title { margin: 0 0 2px; font-size: 13px; font-weight: 800; color: var(--mint); }

/* ---- 알림 ---- */
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #FFFAFC; }
.alert-icon { font-size: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: var(--pink-soft); flex: 0 0 auto; position: relative; }
.alert-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.alert-text strong { font-size: 14px; font-weight: 600; line-height: 1.5; }
.alert.new { background: #FFF1F5; }
.alert.new .alert-text strong { font-weight: 800; }
.alert.new .alert-icon::after { content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink-deep); border: 2px solid #fff; }
.alert.waiting .alert-icon, .alert.locked .alert-icon { background: var(--butter-soft); }
.alert.received .alert-icon { background: var(--mint-soft); }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 360px; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 18px; font-size: 14px; box-shadow: 0 12px 28px rgba(61, 44, 58, .25); z-index: 10; animation: pop .25s ease-out; }

/* ---- 내 기기 ---- */
.tip { flex-direction: row; align-items: flex-start; gap: 12px; background: var(--butter-soft); border-color: #F6E3A8; box-shadow: none; }
.tip p { margin: 0; line-height: 1.7; font-size: 14px; }
.tip-ic { font-size: 22px; }
.box-list { display: flex; flex-direction: column; gap: 12px; }
.box-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; padding: 6px 0; }
.box-line .muted { min-width: 150px; }
.code-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.code-form label { flex: 1 1 220px; }
.code-made { background: var(--mint-soft); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.code-made .msg { background: #fff; }

/* ---- 내 카메라 보기 ---- */
.cam-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cam-btn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 10px; border: 0; border-radius: 999px; background: var(--pink-soft); color: var(--ink); font-weight: 700; }
.cam-btn:hover { background: #FFD6E2; }
.cam-btn .ic { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.cam-btn span:last-child { font-size: 12px; color: var(--muted); font-weight: 600; }
.box-line .cam-btn { min-height: 40px; padding: 4px 14px 4px 6px; }
.watch { position: fixed; inset: 0; z-index: 20; background: rgba(61, 44, 58, .55); display: grid; place-items: center; padding: 16px; }
.watch-box { width: min(880px, 100%); background: #fff; border-radius: 24px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 40px rgba(61, 44, 58, .3); }
.watch-head { display: flex; align-items: center; gap: 10px; }
.watch-head strong { flex: 1; font-size: 17px; }
.facing { display: flex; gap: 8px; }
.face { flex: 1; min-height: 44px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; }
.face[aria-pressed="true"] { border-color: var(--pink-deep); background: var(--pink-soft); color: var(--pink-deep); }
.watch-video { position: relative; aspect-ratio: 16 / 9; background: #3D2C3A; border-radius: 18px; overflow: hidden; display: grid; place-items: center; }
.watch-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.watch-video p { position: relative; color: #F5E9EE; margin: 0; padding: 16px; text-align: center; }

/* ---- 이 폰을 카메라로 ---- */
.cam-page { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.back-home { align-self: flex-start; display: inline-flex; align-items: center; text-decoration: none; }
.cam-preview { position: relative; aspect-ratio: 3 / 4; max-height: 60vh; background: #3D2C3A; border-radius: 18px; overflow: hidden; }
.cam-preview video { width: 100%; height: 100%; object-fit: cover; }
.cam-preview video.mirror { transform: scaleX(-1); }
.cam-actions { display: flex; gap: 8px; }
.cam-actions > * { flex: 1; }
.btn-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; }
.app-card { background: linear-gradient(135deg, #DFF6EF, #FFF7F2); }
.cam-actions .ghost { flex: 1; min-height: 48px; }
.cover { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; place-items: center; cursor: none; }
.cover p { color: #3a3a3a; text-align: center; font-size: 14px; line-height: 1.8; margin: 0; animation: drift 60s linear infinite; }
@keyframes drift { 0% { transform: translate(0, -30vh); } 25% { transform: translate(20vw, 0); } 50% { transform: translate(0, 30vh); } 75% { transform: translate(-20vw, 0); } 100% { transform: translate(0, -30vh); } }
.cam-watchers { margin: 0; font-weight: 800; color: var(--pink-deep); text-align: center; }
.cam-tips { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.phonecam { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.phonecam p { margin: 0; flex: 1 1 240px; font-size: 14px; line-height: 1.6; }

/* ---- 휴대폰 ---- */
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .side { position: sticky; top: 0; z-index: 5; height: auto; flex: 0 0 auto; padding: 10px 12px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 4px 6px; font-size: 18px; }
  .brand-mascot { width: 30px; height: 30px; }
  .navs { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .navs::-webkit-scrollbar { display: none; }
  .nav { flex: 0 0 auto; padding: 8px 12px; min-height: 40px; font-size: 14px; }
  .me { display: none; }
  .main { padding: 18px 16px 40px; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 23px; }
  .hero-mascot { width: 76px; height: 76px; }
  .kinds { grid-template-columns: repeat(2, 1fr); }
  .toast { left: 16px; right: 16px; max-width: none; }
  .split > aside { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 내 기기 · 내 기기 영상 */
.pick:disabled { opacity: .55; cursor: not-allowed; }
.cam-picks { margin-top: 12px; }
.cam-picks .opts-title { width: 100%; margin: 0 0 4px; }
.device-acts { flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* 내 화면 보여 주기 */
.screen-box { padding: 14px 16px; border-radius: 18px; background: var(--butter-soft, #FFF6DA); }
.screen-box p { margin: 0 0 6px; line-height: 1.6; }
.start-screen { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--butter-soft, #FFF6DA); text-align: center; }
.start-screen p { margin: 0 0 10px; }
.screen-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; width: fit-content; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 999px; background: #3D2C3A; color: #fff; box-shadow: 0 8px 24px rgba(61,44,58,.3); }
.screen-bar .ghost { background: #fff; color: #3D2C3A; border-color: #fff; min-height: 36px; padding: 0 14px; }
.screen-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #FF5A7A; flex: 0 0 auto; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.screen-bar .ghost { white-space: nowrap; flex: 0 0 auto; }
.screen-bar > span:nth-child(2) { font-size: 14px; line-height: 1.4; }

/* 가로로 보기: 화면 가득, 세로로 든 폰이면 영상을 돌려서 */
.rot-btn { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: #3D2C3A; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.rot-btn[hidden] { display: none; }
.land { position: fixed !important; inset: 0 !important; z-index: 1000; width: auto !important; height: auto !important; max-width: none !important; margin: 0 !important; border-radius: 0 !important; padding: 0 !important; background: #000 !important; aspect-ratio: auto !important; }
.land video { inset: 0 !important; width: 100% !important; height: 100% !important; }
.land.rot video { inset: auto !important; top: 50% !important; left: 50% !important; width: 100vh !important; height: 100vw !important; transform: translate(-50%, -50%) rotate(90deg); }
.land.rot .rot-btn { top: auto; bottom: 64px; right: -16px; transform: rotate(90deg); }
.land.rot .badge { transform: rotate(90deg); transform-origin: left top; left: auto; right: -40px; top: 16px; }
.watch-video .rot-btn { width: auto; margin: 0; }

/* 안심링크 PC 프로그램 안내 */
.pc-tip { margin-top: 8px; line-height: 1.6; }
.pc-guide { background: linear-gradient(135deg, #EAF6FF, #FFF7F2); border-color: #D6EBFA; }
.pc-guide ul { margin: 8px 0 12px; padding-left: 4px; list-style: none; line-height: 1.9; }

/* 링크·코드·QR */
.ways { display: flex; gap: 16px; align-items: center; margin: 12px 0; padding: 14px; border-radius: 18px; background: #FFF4F7; }
.qr-btn { flex: 0 0 auto; padding: 6px; border: 1px solid #F1DCE3; border-radius: 12px; background: #fff; cursor: zoom-in; }
.qr-btn img { display: block; width: 112px; height: 112px; image-rendering: pixelated; }
.code-box { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.code { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: #3D2C3A; font-variant-numeric: tabular-nums; }
.code-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.code-btns .ghost { min-height: 36px; padding: 0 12px; font-size: 13px; }
.qr-view { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(61, 44, 58, .55); }
.qr-view[hidden] { display: none; }
.qr-card { width: min(380px, 100%); padding: 22px; border-radius: 26px; background: #fff; text-align: center; }
.qr-card img { width: 100%; max-width: 300px; image-rendering: pixelated; }
.qr-title { margin: 0 0 8px; font-weight: 800; }
.qr-card .code { display: block; margin: 6px 0; }
.open-code { margin-top: 16px; }
.open-code label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.open-row { display: flex; gap: 8px; }
.open-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.login-code { margin: 18px 0 4px; padding: 14px; border-radius: 18px; background: #FFF4F7; text-align: left; }
@media (max-width: 480px) { .ways { flex-direction: column; text-align: center; } .code-btns { justify-content: center; } }

/* 승인 요청 */
.ask-bar { position: fixed; left: 16px; right: 16px; top: 16px; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); z-index: 70; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 22px; background: #fff; border: 2px solid #FFB0C6; box-shadow: 0 12px 32px rgba(217, 70, 110, .25); }
.ask-bar[hidden] { display: none; }
.ask-ic { font-size: 24px; }
.ask-bar #ask-text { font-weight: 800; line-height: 1.5; }
.ask-btns { display: flex; gap: 8px; margin-left: auto; }
