/* =========================================================
   INVITATION PLATFORM UI  (all selectors prefixed .ip-)
   v2 — premium gallery + studio-style editor
   ========================================================= */
:root {
  --ip-green: var(--green, #559643);
  --ip-green-d: #3f7a30;
  --ip-green-l: #e9f3e4;
  --ip-ink: #17201a;
  --ip-mute: #6b736d;
  --ip-line: #e6ebe3;
  --ip-soft: #f5f8f3;
  --ip-err: #b3261e;
  --ip-ease: cubic-bezier(.22, 1, .36, 1);
}
html.ip-lock { overflow: hidden !important; }

/* ---------- template gallery ---------- */
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; max-width: 1080px; margin: 0 auto; }
.ip-card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #fff; cursor: pointer; font: inherit; color: inherit;
  box-shadow: 0 1px 2px rgba(20, 40, 20, .06), 0 14px 34px -12px rgba(20, 50, 20, .22);
  transition: transform .5s var(--ip-ease), box-shadow .5s var(--ip-ease); isolation: isolate; }
.ip-card:hover, .ip-card:focus-visible { transform: translateY(-10px); box-shadow: 0 2px 4px rgba(20, 40, 20, .06), 0 36px 60px -16px rgba(60, 120, 50, .42); outline: none; }
.ip-card__stage { position: relative; display: block; background: #1c1530; overflow: hidden; }
.ip-card__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 18px 20px; background: #fff; }
.ip-card__body > span:first-child { min-width: 0; }
.ip-card__body b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--ip-ink); }
.ip-card__body small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--ip-green); }
.ip-card__badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--ip-mute); }
.ip-card__badge i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: ipPulse 1.8s infinite; }
@keyframes ipPulse { 70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
.ip-card__go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 30px; background: var(--ip-green-l); color: var(--ip-green-d); font-size: 13.5px; font-weight: 600; transition: background .3s, color .3s; }
.ip-card__go svg { width: 16px; height: 16px; transition: transform .4s var(--ip-ease); }
.ip-card:hover .ip-card__go, .ip-card:focus-visible .ip-card__go { background: var(--ip-green); color: #fff; }
.ip-card:hover .ip-card__go svg { transform: translateX(4px); }
.ip-mine { max-width: 1080px; margin: 0 auto 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.ip-chip { padding: 6px 15px; border: 1px solid var(--ip-line); border-radius: 20px; background: #fff; color: var(--ip-ink); text-decoration: none; }
.ip-chip:hover { border-color: var(--ip-green); color: var(--ip-green); }

/* live template preview (iframe of the real template, scaled) */
.ip-live { --s: 1; position: relative; display: block; width: 100%; aspect-ratio: 360 / 495; overflow: hidden; background: linear-gradient(110deg, #ece9e2 30%, #f6f4ef 48%, #ece9e2 66%) 0 0 / 220% 100%; animation: ipShimmer 1.6s linear infinite; }
.ip-live.is-ready { animation: none; background: #1c1530; }
@keyframes ipShimmer { to { background-position: -120% 0; } }
.ip-live__frame { position: absolute; left: 0; top: 0; width: 390px; height: 540px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; background: transparent; }
.ip-live__frame.is-on { opacity: 1; z-index: 1; }
.ip-live__spin { display: none; }

/* hero stack on the create page */
.hero-stack .ip-hero-card { position: absolute; width: 214px; border-radius: 28px; overflow: hidden; border: 6px solid #17201a; box-shadow: 0 34px 60px -14px rgba(30, 60, 20, .45); background: #17201a; animation: ipFloat 7s ease-in-out infinite; }
.hero-stack .ip-hero-card:nth-child(1) { left: 0; top: 70px; transform: rotate(-8deg); animation-delay: -1s; }
.hero-stack .ip-hero-card:nth-child(2) { left: 30%; top: 0; transform: rotate(2deg); z-index: 2; animation-delay: -3s; }
.hero-stack .ip-hero-card:nth-child(3) { left: 62%; top: 80px; transform: rotate(9deg); animation-delay: -5s; }
@keyframes ipFloat { 50% { translate: 0 -14px; } }

/* ---------- modal shell ---------- */
.ip-modal, .ip-modal * { box-sizing: border-box; }
.ip-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; background: #0e140f; font: 400 15px/1.5 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ip-ink); animation: ipIn .4s var(--ip-ease); cursor: auto; }
@keyframes ipIn { from { opacity: 0; transform: translateY(16px) scale(.995); } }
.ip-modal button, .ip-modal input, .ip-modal select, .ip-modal textarea { font-family: inherit; }
.ip-modal svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ip-bar { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--ip-line); flex: none; position: relative; z-index: 4; }
.ip-bar__title { flex: 1; min-width: 0; line-height: 1.2; }
.ip-bar__title b { display: block; font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-bar__title small { color: var(--ip-mute); font-size: 12px; }
.ip-iconbtn { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--ip-soft); color: var(--ip-ink); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.ip-iconbtn:hover { background: var(--ip-line); }
.ip-iconbtn:active { transform: scale(.94); }
.ip-tabs { display: none; }

.ip-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1.5px solid var(--ip-green); border-radius: 14px; background: #fff; color: var(--ip-green); font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, opacity .2s, transform .2s, box-shadow .2s; }
.ip-btn:hover { background: var(--ip-green-l); }
.ip-btn:active { transform: scale(.97); }
.ip-btn--primary { background: var(--ip-green); color: #fff; box-shadow: 0 8px 20px -6px rgba(85, 150, 67, .6); }
.ip-btn--primary:hover { background: var(--ip-green-d); }
.ip-btn--ghost { border-color: var(--ip-line); color: var(--ip-mute); }
.ip-btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 12px; }
.ip-btn--block { width: 100%; padding: 14px; }
.ip-btn:disabled { opacity: .6; cursor: progress; }

/* ---------- body: rail | form | stage ---------- */
.ip-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 84px minmax(320px, 400px) 1fr; background: #fff; }
.ip-rail { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 10px; border-right: 1px solid var(--ip-line); background: #fbfcfa; overflow-y: auto; scrollbar-width: none; }
.ip-rail::-webkit-scrollbar { display: none; }
.ip-rail button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px 9px; border: 0; border-radius: 14px; background: none; color: var(--ip-mute); font-size: 10.5px; font-weight: 500; line-height: 1.2; text-align: center; cursor: pointer; transition: background .2s, color .2s; }
.ip-rail button:hover { background: var(--ip-soft); color: var(--ip-ink); }
.ip-rail button.on { background: var(--ip-green-l); color: var(--ip-green-d); font-weight: 600; }
.ip-rail button.on::before { content: ""; position: absolute; left: -10px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: var(--ip-green); }
.ip-rail button span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.ip-edit { min-height: 0; min-width: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--ip-line); }
.ip-edit__head { flex: none; padding: 20px 22px 14px; }
.ip-edit__step { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ip-green); }
.ip-edit__head h3 { margin: 4px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.ip-edit__bar { height: 3px; margin-top: 14px; border-radius: 3px; background: var(--ip-line); overflow: hidden; }
.ip-edit__bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #7ab968, var(--ip-green)); transition: width .5s var(--ip-ease); }
.ip-edit__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 22px 24px; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.ip-edit__foot { flex: none; display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--ip-line); background: #fff; }
.ip-edit__foot .ip-btn { flex: 1; }
.ip-note { padding: 11px 14px; margin: 4px 0 12px; border-radius: 12px; background: #fff7e0; color: #6b5200; font-size: 13px; }
.ip-pane { animation: ipPane .45s var(--ip-ease); }
@keyframes ipPane { from { opacity: 0; transform: translateX(14px); } }
.ip-fields { padding: 0; }
.ip-pane > .ip-hint:first-child { margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--ip-soft); }

.ip-field { margin-top: 16px; }
.ip-field > label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #3a443d; }
.ip-modal input[type=text], .ip-modal input[type=date], .ip-modal input[type=time], .ip-modal input[type=number], .ip-modal input[type=url], .ip-modal select, .ip-modal textarea {
  width: 100%; margin: 0; padding: 12px 14px; border: 1.5px solid transparent; border-radius: 12px; background: var(--ip-soft); font-size: 14.5px; color: var(--ip-ink); box-shadow: none; height: auto; transition: border-color .2s, background .2s, box-shadow .2s; }
.ip-modal input:hover, .ip-modal select:hover, .ip-modal textarea:hover { background: #eff4ec; }
.ip-modal textarea { resize: vertical; min-height: 72px; }
.ip-modal input:focus, .ip-modal select:focus, .ip-modal textarea:focus { outline: 0; background: #fff; border-color: var(--ip-green); box-shadow: 0 0 0 4px rgba(85, 150, 67, .15); }
.ip-modal input[type=color] { width: 56px; height: 42px; padding: 3px; border: 1.5px solid var(--ip-line); border-radius: 12px; background: #fff; cursor: pointer; }
.ip-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ip-mute); }
.ip-err { margin: 8px 0 0; font-size: 13px; color: var(--ip-err); }
.ip-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ip-soft); cursor: pointer; font-weight: 500; }
.ip-toggle input { width: 18px; height: 18px; accent-color: var(--ip-green); }
.ip-row { display: flex; gap: 10px; align-items: center; }
.ip-row--wrap { flex-wrap: wrap; margin-top: 14px; }

.ip-img { display: flex; gap: 12px; align-items: flex-start; }
.ip-img__prev, .ip-gal__img { flex: none; width: 84px; height: 84px; border-radius: 14px; background: #efe6d2 center / cover no-repeat; border: 1px solid var(--ip-line); }
.ip-img__prev.empty { background-image: none !important; }
.ip-img__side { flex: 1; min-width: 0; display: grid; gap: 8px; justify-items: start; }
.ip-img__side input[type=text] { font-size: 13px; padding: 8px 10px; }
.ip-prog { width: 100%; height: 5px; border-radius: 3px; background: var(--ip-line); overflow: hidden; }
.ip-prog i { display: block; width: 0; height: 100%; background: var(--ip-green); transition: width .15s; }
.ip-audio { display: grid; gap: 8px; }
.ip-audio audio { width: 100%; height: 38px; }

.ip-gal { display: grid; gap: 8px; margin-bottom: 10px; }
.ip-gal__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--ip-line); border-radius: 10px; }
.ip-gal__img { width: 56px; height: 56px; border-radius: 8px; }
.ip-mini { display: inline-flex; gap: 4px; }
.ip-mini button { width: 28px; height: 28px; border: 1px solid var(--ip-line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ip-ink); }
.ip-mini button:hover { background: var(--ip-soft); }
.ip-mini button:last-child:hover { background: #fde8e6; color: var(--ip-err); }

.ip-list { display: grid; gap: 8px; margin-bottom: 10px; }
.ip-list__item { border: 1px solid var(--ip-line); border-radius: 14px; background: #fff; transition: box-shadow .25s; }
.ip-list__item[open] { box-shadow: 0 10px 26px -14px rgba(30,60,30,.3); }
.ip-list__item > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; font-weight: 600; font-size: 14px; }
.ip-list__item > summary::-webkit-details-marker { display: none; }
.ip-list__fields { padding: 0 12px 12px; }


/* ---------- stage / preview ---------- */
.ip-stage { position: relative; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 22px 96px 22px 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #1f3a22 0%, #0e140f 62%); }
.ip-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%); pointer-events: none; }
.ip-phone { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ip-device { position: relative; height: 100%; max-height: 860px; aspect-ratio: 390 / 800; max-width: 100%; padding: 11px; border-radius: 50px; background: linear-gradient(145deg, #2b2f2b, #0b0d0b); box-shadow: 0 0 0 1.5px #3b423b inset, 0 50px 90px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 120px rgba(85, 150, 67, .18); transition: aspect-ratio .4s var(--ip-ease), border-radius .4s var(--ip-ease), padding .4s; }
.ip-device::before { content: ""; position: absolute; z-index: 3; left: 50%; top: 20px; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #000; pointer-events: none; transition: opacity .3s; }
.ip-frame { display: block; width: 100%; height: 100%; border: 0; border-radius: 40px; background: #fff; transition: border-radius .4s var(--ip-ease); }
.ip-phone[data-dev="desktop"] .ip-device { height: auto; max-height: 100%; width: 100%; max-width: 1040px; aspect-ratio: 16 / 10; padding: 8px; border-radius: 18px; }
.ip-phone[data-dev="desktop"] .ip-device::before { opacity: 0; }
.ip-phone[data-dev="desktop"] .ip-frame { border-radius: 11px; }

/* floating side toolbar */
.ip-tools { position: absolute; z-index: 5; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5); }
.ip-tool { position: relative; width: 46px; height: 46px; border: 0; border-radius: 14px; background: transparent; color: rgba(255, 255, 255, .78); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.ip-tool:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ip-tool:active { transform: scale(.92); }
.ip-tool.on { background: #fff; color: var(--ip-green-d); }
.ip-tool[data-act="full"] { background: var(--ip-green); color: #fff; box-shadow: 0 8px 20px -6px rgba(85, 150, 67, .8); }
.ip-tool[data-act="full"]:hover { background: #67ad53; }
.ip-tool::after { content: attr(data-tip); position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); padding: 6px 11px; border-radius: 8px; background: #fff; color: var(--ip-ink); font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ip-ease); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.ip-tool:hover::after { opacity: 1; transform: translate(0, -50%); }
.ip-tools hr { width: 26px; height: 1px; margin: 2px auto; border: 0; background: rgba(255, 255, 255, .18); }

/* fullscreen mobile preview */
.ip-modal.is-full .ip-bar, .ip-modal.is-full .ip-rail, .ip-modal.is-full .ip-edit { display: none; }
.ip-modal.is-full .ip-body { grid-template-columns: 1fr; }
.ip-modal.is-full .ip-stage { padding: 20px 96px 20px 20px; }
.ip-modal.is-full .ip-device { max-height: none; }
.ip-modal.is-full .ip-tool[data-act="full"] { background: #fff; color: var(--ip-ink); }
.ip-modal.is-full .ip-tool[data-act="full"] .i-in { display: none; }
.ip-modal:not(.is-full) .ip-tool[data-act="full"] .i-out { display: none; }
.ip-exit { display: none; }
.ip-modal.is-full .ip-exit { display: inline-flex; position: absolute; z-index: 6; left: 18px; top: 18px; height: 42px; padding: 0 16px 0 12px; gap: 8px; align-items: center; border: 0; border-radius: 30px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; backdrop-filter: blur(10px); }
.ip-modal.is-full .ip-exit:hover { background: rgba(255, 255, 255, .24); }

/* publish sheet */
.ip-sheet { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(20, 28, 18, .55); animation: ipIn .25s ease; }
.ip-sheet__box { position: relative; width: min(520px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 18px; padding: 26px 24px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ip-sheet__box h3 { margin: 0 0 4px; font-size: 21px; font-weight: 700; padding-right: 36px; }
.ip-sheet__x { position: absolute; right: 14px; top: 14px; }
.ip-slug { margin: 14px 0 6px; }
.ip-slug span { display: block; font-size: 12px; color: var(--ip-mute); margin-bottom: 4px; word-break: break-all; }
.ip-linkbox { display: flex; gap: 8px; margin: 14px 0 4px; }
.ip-linkbox input { flex: 1; min-width: 0; }
.ip-rsvps { margin-top: 14px; }
.ip-table-wrap { overflow: auto; max-height: 240px; border: 1px solid var(--ip-line); border-radius: 10px; margin-bottom: 10px; }
.ip-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ip-table th, .ip-table td { padding: 7px 10px; border-bottom: 1px solid var(--ip-line); text-align: left; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ip-table th { background: var(--ip-soft); position: sticky; top: 0; }
.ip-toast { position: absolute; left: 50%; bottom: 20px; z-index: 9; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: 90vw; padding: 11px 20px; border-radius: 10px; background: #232323; color: #fff; font-size: 14px; transition: all .35s; }
.ip-toast.on { opacity: 1; transform: translate(-50%, 0); }


/* ---------- mobile / tablet ---------- */
@media (max-width: 1180px) { .ip-body { grid-template-columns: 76px minmax(300px, 360px) 1fr; } .ip-stage { padding-right: 84px; } }
@media (max-width: 900px) {
  .ip-bar { height: 56px; padding: 0 12px; gap: 8px; }
  .ip-bar [data-act="reset"] { display: none; }
  .ip-bar [data-act="publish"] { padding: 9px 14px; font-size: 13px; }
  .ip-body { display: block; position: relative; }
  .ip-rail, .ip-edit, .ip-stage { position: absolute; }
  .ip-rail { left: 0; right: 0; top: 0; z-index: 2; flex-direction: row; gap: 6px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--ip-line); overflow-x: auto; }
  .ip-rail button { flex: none; flex-direction: row; gap: 7px; padding: 9px 14px; border-radius: 30px; font-size: 12.5px; }
  .ip-rail button span { display: inline; -webkit-line-clamp: unset; white-space: nowrap; }
  .ip-rail button.on::before { display: none; }
  .ip-rail button svg.i { width: 17px; height: 17px; }
  .ip-edit { inset: 58px 0 0 0; border-right: 0; }
  .ip-edit__head { padding: 14px 16px 10px; } .ip-edit__head h3 { font-size: 19px; }
  .ip-edit__scroll { padding: 2px 16px 20px; } .ip-edit__foot { padding: 12px 16px calc(12px + 58px + env(safe-area-inset-bottom, 0px)); }
  .ip-stage { inset: 0; padding: 70px 12px 78px; }
  .ip-modal[data-tab="edit"] .ip-stage { visibility: hidden; }
  .ip-modal[data-tab="preview"] .ip-edit, .ip-modal[data-tab="preview"] .ip-rail { visibility: hidden; }
  .ip-device { max-height: none; padding: 8px; border-radius: 40px; }
  .ip-frame { border-radius: 32px; }
  .ip-device::before { top: 15px; width: 70px; height: 20px; margin-left: -35px; }
  .ip-phone[data-dev="desktop"] .ip-device { aspect-ratio: 390 / 800; max-width: 100%; border-radius: 40px; padding: 8px; }
  .ip-phone[data-dev="desktop"] .ip-device::before { opacity: 1; } .ip-phone[data-dev="desktop"] .ip-frame { border-radius: 32px; }
  .ip-tools { right: auto; left: 50%; top: 10px; transform: translateX(-50%); flex-direction: row; align-items: center; padding: 5px; gap: 4px; border-radius: 18px; background: rgba(20, 30, 22, .78); }
  .ip-tools hr { width: 1px; height: 24px; margin: 0 2px; }
  .ip-tool { width: 42px; height: 42px; } .ip-tool::after { display: none; }
  .ip-tools [data-dev="desktop"], .ip-tools hr.d { display: none; }
  /* bottom pill: Edit | Preview */
  .ip-tabs { display: inline-flex; width: max-content; white-space: nowrap; position: fixed; z-index: 9; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); padding: 5px; border-radius: 40px; background: rgba(23, 32, 26, .92); backdrop-filter: blur(12px); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
  .ip-tabs button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 0; background: none; padding: 11px 22px; border-radius: 30px; font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .7); cursor: pointer; transition: all .25s; }
  .ip-tabs button.on { background: #fff; color: var(--ip-ink); }
  .ip-modal.is-full .ip-tabs { display: none; }
  .ip-modal.is-full .ip-stage { inset: 0; padding: 0; visibility: visible; }
  .ip-modal.is-full .ip-device { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; padding: 0; border-radius: 0; box-shadow: none; background: #000; max-width: none; }
  .ip-modal.is-full .ip-device::before { display: none; }
  .ip-modal.is-full .ip-frame { border-radius: 0; }
  .ip-modal.is-full .ip-tools { top: calc(10px + env(safe-area-inset-top, 0px)); background: rgba(0, 0, 0, .45); }
  .ip-modal.is-full .ip-tools .m-hide { display: none; }
  .ip-modal.is-full .ip-exit { display: none; }
  .ip-grid { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) { .ip-modal, .ip-sheet, .ip-card, .ip-pane, .ip-hero-card, .ip-card__badge i { animation: none !important; transition: none !important; } }
