/* marryes 소개·만들기 화면 */
:root {
  --bg: #f6f2ec;
  --card: #fffdf9;
  --ink: #2c2622;
  --muted: #847870;
  --line: #e5dcd2;
  --accent: #b9705d;
  --accent-ink: #fff;
  --field: #fff;
  --serif: "Gowun Batang", Georgia, serif;
  --sans: "Manrope", system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1714;
    --card: #231f1b;
    --ink: #f1e9e0;
    --muted: #a99b8f;
    --line: #3a332d;
    --accent: #e09a86;
    --accent-ink: #1a1714;
    --field: #1d1a17;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  word-break: keep-all;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 12px;
  letter-spacing: .18em;
}
.nav a { text-decoration: none; }
.brand { font-weight: 800; }
.brand span { color: var(--accent); }
.brand-row { display: flex; align-items: center; gap: 10px; }
.ver { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 600 11px var(--sans); letter-spacing: .04em; }
.ver:hover { border-color: var(--accent); color: var(--accent); }

/* 업데이트 소식 */
.news { margin: 0 0 40px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; background: var(--card); scroll-margin-top: 16px; }
.news h2 { margin: 0 0 8px; font-size: 14px; }
.news ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.news details { margin-top: 12px; font-size: 13px; color: var(--muted); }
.news summary { cursor: pointer; font-weight: 600; }
.news h3 { margin: 14px 0 4px; font-size: 13px; color: var(--ink); }
.news details ul { font-size: 13px; }

/* 전용 화면 표시 */
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .92); color: #2c2622; font: 700 11px var(--sans); letter-spacing: .02em; box-shadow: 0 2px 8px rgb(0 0 0 / .15); }
.badge.new { background: #e8643c; color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.btn.danger { border-color: #c0392b; color: #c0392b; }

/* ---- 소개 ---- */
.intro { padding: 72px 0 48px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }
.intro h1 {
  margin: 18px 0;
  font: 400 clamp(40px, 8vw, 84px)/1.15 var(--serif);
  letter-spacing: -.05em;
}
.intro h1 em { font-style: normal; color: var(--accent); }
.intro p { max-width: 480px; color: var(--muted); margin: 0 0 30px; }
.intro .row { display: flex; flex-wrap: wrap; gap: 10px; }

.mine { margin: 0 0 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.mine h2 { margin: 0 0 8px; font-size: 14px; }
.mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mine li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.mine li span { color: var(--muted); }
.mine li a { margin-left: 10px; font-weight: 600; }

.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; padding-bottom: 60px; }
.theme-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.theme-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(0 0 0 / .12); }
.poster {
  position: relative;
  height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  overflow: hidden;
  color: #fff;
}
.poster > * { position: relative; }
.poster .k { font-size: 10px; letter-spacing: .2em; margin: 0 0 10px; opacity: .85; }
.poster .t { font: 400 32px/1.15 var(--serif); letter-spacing: -.04em; white-space: pre-line; }
.p-letter { background: linear-gradient(180deg, #bfd6dd 0, #e9dfc8 46%, #8fb3b4 47%, #6f9c9f 62%, #c9c09a 63%, #a6a275 100%); }
.p-letter::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(20 32 28 / .7), transparent 65%); }
.p-cinema { background: radial-gradient(circle at 50% 34%, #f3deba 0 13%, transparent 13.5%), linear-gradient(150deg, #301c23, #934c3c 58%, #d9ab78); }
.p-hanji { background: #e8e7d9; color: #30372f; }
.p-hanji > div { position: static; }
.p-hanji .t { writing-mode: vertical-rl; position: absolute; top: 30px; right: 40px; letter-spacing: .2em; line-height: 1.6; }
.p-seep {
  background:
    radial-gradient(circle at 22% 30%, rgb(156 196 240 / .75), transparent 42%),
    radial-gradient(circle at 80% 48%, rgb(232 167 185 / .6), transparent 40%),
    radial-gradient(circle at 45% 80%, rgb(197 224 216 / .7), transparent 42%),
    #f5f9fd;
  color: #2f3f55;
}
.p-seep .k { color: #5b8fd6; }
.p-seep .t { font-family: "Nanum Myeongjo", var(--serif); }
.p-blue { background: #123bd6; }
.p-blue .t { font: 800 44px/.92 var(--sans); text-transform: uppercase; letter-spacing: -.06em; }
.p-blue .k { color: #d9fa6d; }
.p-lunar { background: radial-gradient(circle at 66% 34%, #b3b8b6 0, #5b6870 17%, #1a2633 30%, #111821 60%); }
.p-lunar .k { font-family: "DM Mono", monospace; }
.p-ivory { background: radial-gradient(circle at 85% 8%, transparent 0 90px, #e7ddd2 91px 92px, transparent 93px), #fbf8f3; color: #3a3330; }
.p-ivory .k { color: #b5867a; }
.p-pullrequest { background: #0e1116; font-family: "DM Mono", monospace; }
.p-pullrequest .k { color: #3fb950; }
.p-pullrequest .t { font: 600 30px/1.3 var(--sans); }
.p-pullrequest::before {
  content: "- 혼자 먹는 저녁\A+ 둘이 먹는 저녁\A+ status: 평생 함께";
  white-space: pre;
  position: absolute;
  top: 26px;
  left: 24px;
  right: 24px;
  padding: 12px;
  border: 1px solid #262c36;
  border-radius: 8px;
  color: #aff5b4;
  font: 12px/1.9 "DM Mono", monospace;
  background: linear-gradient(rgb(248 81 73 / .15) 0 33%, rgb(46 160 67 / .15) 33%);
}
.p-boarding { background: #1d2a44; }
.p-boarding .k { color: #ffd166; font-family: "DM Mono", monospace; }
.p-boarding::before {
  content: "✈";
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 54px;
  color: #e8643c;
}
.p-receipt { background: #e9e6df; color: #232323; font-family: "DM Mono", monospace; }
.p-receipt::before {
  content: "사랑      1    ∞\A약속      1   평생\A──────────────\A합계          평생";
  white-space: pre;
  position: absolute;
  top: 24px;
  left: 50%;
  translate: -50% 0;
  width: 200px;
  padding: 16px;
  background: #fff;
  font: 12px/1.9 "DM Mono", monospace;
}
.p-pixel { background: linear-gradient(#211d4f 0 30%, #2c2870 30% 55%, #3b3796 55% 75%, #5450bf 75%); }
.p-pixel .k { color: #ffcc4d; }
.p-pixel .t { font: 26px/1.5 "Press Start 2P", monospace; text-shadow: 3px 3px 0 #ff4d6d; }
.theme-info { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; }
.theme-info strong { display: block; font-size: 15px; }
.theme-info small { color: var(--muted); font-size: 12px; }

/* ---- 메인 화면 ---- */
.home .mine { margin-top: 8px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; padding: 40px 0 72px; }
.hero h1 { margin: 18px 0; font: 400 clamp(38px, 6.4vw, 72px)/1.18 var(--serif); letter-spacing: -.05em; }
.hero h1 em, .sec-h h2 em, .final h2 em { font-style: normal; color: var(--accent); }
.hero-text > p { max-width: 500px; margin: 0 0 28px; color: var(--muted); }
.hero .row { display: flex; flex-wrap: wrap; gap: 10px; }
.promise { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.promise li::before { content: "✓ "; color: var(--accent); }

.stage { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.stage-hint { margin: 0; color: var(--muted); font-size: 12px; }
.handset { width: min(340px, 100%); height: 680px; padding: 9px; border-radius: 46px; background: #1f1b18; box-shadow: 0 30px 60px rgb(60 40 20 / .22); }
.handset iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 37px; background: #fff; }
.chips { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.sec { padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 10px; }
.sec-h { max-width: 620px; margin-bottom: 34px; }
.sec-h h2 { margin: 12px 0 10px; font: 400 clamp(30px, 4.6vw, 46px)/1.25 var(--serif); letter-spacing: -.04em; }
.sec-h p { margin: 0; color: var(--muted); }
.mood-h { margin: 34px 0 14px; font-size: 14px; letter-spacing: .04em; }
.mood-h:first-of-type { margin-top: 0; }
.home .themes { padding-bottom: 0; }
.home .poster { height: 260px; }
.poster > .badge { position: absolute; }
.home .theme-info small { display: block; margin-top: 2px; color: var(--ink); font-size: 13px; font-weight: 600; }

/* 세 단계 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.steps li { position: relative; padding: 64px 24px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); counter-increment: st; }
.steps li::before { content: counter(st); position: absolute; top: 22px; left: 24px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px; }
.steps b, .flow b { display: block; font: 700 18px var(--serif); }
.steps p, .flow p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* 하객 흐름: 작은 그림 + 설명 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mock { display: grid; place-items: center; height: 170px; margin-bottom: 16px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.kakao { background: #b2c7da; border: 0; }
.kk-bubble { width: 170px; overflow: hidden; border-radius: 12px; background: #fff; color: #222; font-size: 11px; box-shadow: 0 2px 6px rgb(0 0 0 / .12); }
.kk-bubble img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.kk-bubble b { display: block; padding: 7px 9px 0; font-size: 12px; }
.kk-bubble small { display: block; padding: 0 9px 7px; color: #999; font-size: 10px; }
.opener { background: linear-gradient(135deg, #cdbb9a, #b9a37f); border: 0; }
.m-env { position: relative; display: grid; place-items: center; width: 150px; height: 100px; border-radius: 5px; background: #f6ecd8; box-shadow: 0 10px 18px rgb(60 40 20 / .3); }
.m-env::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; background: #eadcc1; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.m-env i { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d9584a, #9b2d24 70%); color: #f6d5c8; font-style: normal; font-size: 14px; animation: m-pulse 2s ease-in-out infinite; }
@keyframes m-pulse { 50% { transform: scale(1.1); } }
.rsvp { gap: 8px; align-content: center; }
.m-seg { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; }
.m-seg i { padding: 4px 12px; border-radius: 999px; font-style: normal; color: var(--muted); }
.m-seg i.on { background: var(--ink); color: var(--bg); }
.m-line { color: var(--muted); font-size: 12px; }
.notes { position: relative; background: #f3efe6; border: 0; }
.m-note { position: absolute; left: 22%; top: 22%; padding: 10px 12px; background: #fff3a8; color: #3a3226; font: 19px/1.15 "Nanum Pen Script", cursive; box-shadow: 0 4px 10px rgb(0 0 0 / .12); transform: rotate(-4deg); }
.m-note.c1 { left: 46%; top: 52%; background: #ffd9e0; transform: rotate(3deg); }

/* 보낸 뒤: 회신 정리 예시 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; }
.split .sec-h { margin: 0; }
.dash { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 18px 40px rgb(60 40 20 / .1); font-size: 13px; }
.dash-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dash-sum div { padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.dash-sum small { display: block; color: var(--muted); font-size: 11px; }
.dash-sum b { font-size: 24px; }
.dash-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr .9fr; gap: 6px; padding: 9px 4px; border-top: 1px solid var(--line); }
.dash-row .ok { color: #3a9a5b; font-weight: 700; }
.dash-row .no { color: var(--muted); }

/* 담기는 것 */
.inside { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.inside li { padding: 18px 0; border-top: 1px solid var(--line); }
.inside b { display: block; font: 700 16px var(--serif); }
.inside span { color: var(--muted); font-size: 13px; }

/* 자주 묻는 질문 */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.final { padding: 80px 0 90px; border-top: 1px solid var(--line); text-align: center; }
.final h2 { margin: 0 0 26px; font: 400 clamp(30px, 5vw, 50px)/1.25 var(--serif); letter-spacing: -.04em; }
.home .foot a { text-decoration: none; }

.sticky-cta { display: none; }

/* 테마 미리보기 창 */
dialog.peek { width: min(400px, calc(100% - 20px)); max-height: calc(100dvh - 20px); padding: 14px; }
.peek-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin: 2px 4px 12px; }
.peek-head b { display: block; font-size: 15px; }
.peek-head small { color: var(--muted); font-size: 13px; }
.peek-x { flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: none; }
.peek .handset { width: 100%; height: min(660px, calc(100dvh - 170px)); border-radius: 38px; }
.peek .handset iframe { border-radius: 30px; }
.peek .row { display: flex; gap: 8px; justify-content: stretch; margin-top: 12px; }
.peek .row .btn { flex: 1; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 24px 0 56px; }
  .handset { height: 580px; }
  .steps, .flow { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .inside { grid-template-columns: 1fr 1fr; }
  .sec { padding: 56px 0; }
  .sticky-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    box-shadow: 0 10px 24px rgb(0 0 0 / .2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity .25s, transform .25s;
  }
  .sticky-cta.show { opacity: 1; pointer-events: auto; transform: none; }
}
@media (max-width: 560px) {
  .steps, .flow { grid-template-columns: 1fr; }
  .flow .mock { height: 150px; }
  /* 휴대폰: 분위기 묶음마다 옆으로 넘기는 줄 */
  .home .themes { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
  .home .themes::-webkit-scrollbar { display: none; }
  .home .theme-card { flex: 0 0 78%; scroll-snap-align: start; }
  .home .theme-card:hover { transform: none; box-shadow: none; }
  .home .poster { height: 250px; }
  .home .theme-info { padding: 14px 16px; }
}

.foot { padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---- 만들기 ---- */
.maker { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; padding-bottom: 120px; }
.maker h1 { font: 400 34px/1.3 var(--serif); margin: 10px 0 4px; letter-spacing: -.03em; }
.maker .lead { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.box { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.box > h2 { margin: 0 0 16px; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.box > h2 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.fields.wide { grid-template-columns: 1fr; }
.fld { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fld input, .fld textarea, .fld select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.fld textarea { resize: vertical; line-height: 1.7; }
.sub-h { margin: 18px 0 10px; font-size: 13px; font-weight: 700; }
.sub-h:first-child { margin-top: 0; }

.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.theme-pick label { position: relative; cursor: pointer; }
.theme-pick input { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; }
.theme-pick .sw { display: block; height: 70px; border-radius: 10px; border: 2px solid transparent; }
.theme-pick input:checked + .sw { border-color: var(--accent); box-shadow: 0 0 0 3px var(--bg) inset; }
.theme-pick input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-pick b { display: block; font-size: 12px; margin-top: 6px; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / .6);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}
.ph .mv { left: 4px; right: auto; }
.add-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.add-photo input { display: none; }
.cover-slot { width: 140px; }

.acc-row { display: grid; grid-template-columns: 90px 1fr 1.4fr 1fr 34px; gap: 8px; margin-bottom: 8px; }
.acc-row select, .acc-row input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: 15px; min-width: 0; }
.acc-row button { border: 0; background: none; color: var(--muted); font-size: 20px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 6px; }

.preview-col { position: sticky; top: 20px; }
.phone {
  width: 100%;
  height: min(780px, calc(100vh - 80px));
  border: 10px solid #1f1b18;
  border-radius: 36px;
  overflow: hidden;
  background: #1f1b18;
}
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 26px; background: #fff; }
.preview-col p { text-align: center; color: var(--muted); font-size: 12px; }

.savebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.savebar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 0; }
.savebar .status { margin-right: auto; color: var(--muted); font-size: 13px; }
.show-preview { display: none; }

.manage table { width: 100%; border-collapse: collapse; font-size: 13px; }
.manage th, .manage td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.manage th { color: var(--muted); font-weight: 600; }
.manage td button { border: 0; background: none; color: var(--muted); font-size: 16px; }
.manage .sum { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; }
.manage .sum b { font-size: 20px; margin-left: 4px; }
.scroll-x { overflow-x: auto; }
.empty { color: var(--muted); font-size: 13px; margin: 0; }

dialog {
  width: min(460px, calc(100% - 32px));
  padding: 28px;
  border: 0;
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
}
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog h2 { margin: 0 0 6px; font: 400 26px var(--serif); }
dialog p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.linkbox { display: flex; gap: 8px; margin-bottom: 14px; }
.linkbox input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); font-size: 14px; }
.linkbox-label { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.warn { font-size: 12px; color: var(--accent); }
dialog .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.keep { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.keep input { width: 18px; height: 18px; accent-color: var(--accent); }
#open-invite.off { opacity: .4; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.linkish { padding: 0; border: 0; background: none; font-size: inherit; text-decoration: underline; cursor: pointer; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 40;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: .2s;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .maker { grid-template-columns: 1fr; }
  .preview-col { display: none; position: fixed; inset: 0; z-index: 30; padding: 16px; background: rgb(0 0 0 / .7); }
  .preview-col.open { display: grid; place-items: center; }
  .phone { max-width: 400px; height: calc(100vh - 100px); }
  .preview-col p { color: #fff; }
  .show-preview { display: inline-flex; }
  .acc-row { grid-template-columns: 1fr 1fr 34px; }
  .acc-row select { grid-column: 1 / -1; }
}
