:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #20252c;
  background: #f1f3f5;
  --red: #df1638;
  --red-dark: #bd0e2b;
  --muted: #707780;
  --line: #e1e4e8;
  --soft: #f7f8f9;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(160deg, #f6f7f8, #eceff1); min-height: 100vh; }
.shell { width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 48px; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.brand-mark { width: 45px; height: 45px; border-radius: 13px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; box-shadow: 0 8px 22px #df163833; }
.eyebrow { margin: 0; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.topbar h1 { font-size: 22px; line-height: 1.2; margin: 2px 0 0; }
.badge { margin-left: auto; border: 1px solid #f3b8c3; background: #fff1f4; color: #bb1631; border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.card { background: #fff; border: 1px solid #e7e9ec; border-radius: 18px; padding: 28px; box-shadow: 0 14px 38px #1c26300c; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-heading > span { width: 31px; height: 31px; border-radius: 9px; background: #fff0f3; color: var(--red); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.section-heading h2, .result h2 { font-size: 17px; margin: 0; }
.section-heading p, .comment-row p, .expiry p, .result-copy > p:last-child { font-size: 12px; color: var(--muted); margin: 3px 0 0; line-height: 1.45; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12px; font-weight: 700; margin: 0 0 7px; }
.field b { color: var(--red); }
input, textarea { width: 100%; border: 1px solid #d9dde2; border-radius: 10px; background: #fff; padding: 11px 12px; font: inherit; font-size: 13px; outline: none; transition: .16s; }
input:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px #df163812; }
input[aria-invalid="true"] { border-color: var(--red); background: #fffafb; }
textarea { resize: vertical; }
.error { display: block; color: #c1132f; font-size: 11px; margin-top: 5px; }
.error:empty { display: none; }
.divider { height: 1px; background: var(--line); margin: 8px 0 24px; }
.comment-row { display: flex; justify-content: space-between; align-items: center; background: var(--soft); border-radius: 12px; padding: 13px 15px; margin: 2px 0 16px; }
.comment-row strong { font-size: 13px; }
.switch { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; }
.switch span { width: 38px; height: 22px; background: #bbbfc5; border-radius: 999px; position: relative; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: .2s; }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--muted); }
.expiry { display: flex; align-items: center; gap: 12px; border: 1px solid #e5e7e9; border-radius: 12px; padding: 13px 15px; margin-top: 4px; }
.expiry > span { font-size: 23px; color: var(--red); }
.expiry strong { font-size: 12px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.button { border: 0; border-radius: 10px; padding: 11px 17px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.button.primary { background: var(--red); color: #fff; box-shadow: 0 6px 15px #df163825; }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { background: #f0f2f4; color: #4f555d; }
.button:disabled { opacity: .65; cursor: wait; }
.message { padding: 12px 14px; border-radius: 10px; margin-top: 14px; font-size: 12px; line-height: 1.45; }
.error-message { background: #fff0f3; color: #a80d28; border: 1px solid #f5c1ca; }
.result { margin-top: 18px; display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; }
.result[hidden] { display: none; }
.success-icon { width: 42px; height: 42px; background: #e8f8ee; color: #168340; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.url-box { grid-column: 1/-1; display: flex; margin-top: 18px; }
.url-box input { border-radius: 10px 0 0 10px; background: #f7f8f9; }
.icon-button { width: 45px; border: 0; border-radius: 0 10px 10px 0; background: #252a31; color: #fff; font-size: 18px; cursor: pointer; }
.result .actions, .copy-status { grid-column: 1/-1; }
.copy-status { min-height: 16px; text-align: right; color: #168340; font-size: 11px; margin: 7px 0 0; }
dialog { width: min(430px, calc(100% - 32px)); border: 0; padding: 0; border-radius: 18px; box-shadow: 0 24px 80px #11182740; }
dialog::backdrop { background: #11182773; backdrop-filter: blur(2px); }
.dialog-card { padding: 28px; }
.dialog-card h2 { margin: 14px 0 5px; font-size: 19px; }
.dialog-card > p { color: var(--muted); font-size: 12px; margin: 0; }
.dialog-icon { width: 38px; height: 38px; border-radius: 11px; background: #fff0f3; color: var(--red); display: grid; place-items: center; font-weight: 900; }
dl { background: var(--soft); border-radius: 12px; padding: 4px 14px; margin: 20px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; font-size: 12px; font-weight: 800; text-align: right; }
[hidden] { display: none !important; }
@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 720px); padding-top: 20px; }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .badge { margin-left: 59px; }
  .card { padding: 20px; }
  .grid.two { grid-template-columns: 1fr; gap: 0; }
  .actions { flex-direction: column-reverse; }
  .button { width: 100%; }
}
