:root {
  --blue: #3478e5;
  --blue-dark: #2463c8;
  --blue-soft: #eaf2ff;
  --ink: #171b27;
  --muted: #737b8d;
  --line: #e2e7ef;
  --paper: #fff;
  --page: #f4f7fb;
  --danger: #bd4357;
  --shadow: 0 14px 38px rgba(39, 55, 85, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; }
body { min-width: 320px; margin: 0; background: var(--page); color: var(--ink); font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topbar { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(20px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--blue); color: #fff; font-size: 20px; line-height: 1; box-shadow: 0 7px 16px rgba(52,120,229,.25); }
.brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 18px; letter-spacing: -.3px; }
.brand small { color: #9299a8; font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }
.product-nav { height: 42px; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f5f7fa; }
.product-nav a { min-width: 92px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #7b8392; font-size: 12px; font-weight: 800; text-decoration: none; transition: color .18s, background .18s, box-shadow .18s; }
.product-nav a:hover { color: var(--blue); }
.product-nav a.is-active { background: #fff; color: var(--blue); box-shadow: 0 3px 10px rgba(39,55,85,.1); }
.product-nav > span { width: 1px; height: 14px; background: #dce2ea; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.admin-link, .button-link { height: 38px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #3f4654; font-size: 12px; font-weight: 800; text-decoration: none; }

.builder-shell { max-width: 1420px; margin: 0 auto; padding: 38px clamp(18px, 3vw, 42px) 70px; }
.coming-soon-shell { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 54px 20px; background: radial-gradient(circle at 50% 24%, rgba(93,151,239,.12), transparent 34%), var(--page); }
.coming-soon-card { width: min(100%, 620px); padding: 58px 54px 52px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.94); box-shadow: 0 22px 60px rgba(39,55,85,.11); text-align: center; }
.video-symbol { width: 104px; height: 104px; display: grid; place-items: center; margin: 0 auto 27px; position: relative; border-radius: 30px; background: linear-gradient(145deg,#eef5ff,#dceaff); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(52,120,229,.09); }
.video-frame { width: 52px; height: 40px; display: grid; place-items: center; border: 3px solid currentColor; border-radius: 12px; }
.video-frame i { width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor; }
.video-symbol b { position: absolute; right: 14px; top: 12px; color: #f2ae3f; font-size: 20px; }
.coming-soon-kicker { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: 2.5px; }
.coming-soon-card h1 { margin: 0; font-size: clamp(28px,4vw,38px); letter-spacing: -1.2px; }
.coming-soon-copy { max-width: 430px; margin: 17px auto 0; color: var(--muted); font-size: 14px; line-height: 1.75; word-break: keep-all; }
.coming-soon-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.coming-soon-features span { padding: 8px 12px; border: 1px solid #dce6f6; border-radius: 99px; background: #f5f9ff; color: #65758d; font-size: 10px; font-weight: 700; }
.coming-soon-action { min-width: 184px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.hero { text-align: center; }
.hero h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -1.2px; }
.hero > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.step-nav { max-width: 720px; height: 58px; display: flex; align-items: center; justify-content: center; margin: 28px auto; padding: 0 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(39,55,85,.05); }
.step-nav span { display: inline-flex; align-items: center; gap: 7px; color: #8a91a0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.step-nav span b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #eef1f5; font-size: 10px; }
.step-nav span.is-active { color: var(--blue); }
.step-nav span.is-active b { background: var(--blue); color: #fff; }
.step-nav i { width: 48px; height: 1px; margin: 0 12px; background: var(--line); }

.builder-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 20px; align-items: start; }
.workspace-stack { min-width: 0; display: grid; gap: 20px; }
.surface { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.source-card { padding: 23px; position: sticky; top: 88px; }
.surface-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.surface-heading.small { margin-bottom: 20px; }
.section-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 900; }
.surface-heading h2 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.25px; }
.surface-heading p { margin: 0; color: #8b92a1; font-size: 11px; }
.panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.panel-heading h2 { margin: 0 0 3px; font-size: 16px; }
.panel-heading p { margin: 0; color: #8b92a1; font-size: 11px; }
.step { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 900; }
.source-card h3, .inline-heading h3 { margin: 0 0 10px; font-size: 12px; }
.inline-heading { display: flex; align-items: center; justify-content: space-between; }
.inline-heading small { color: var(--muted); font-size: 10px; }

.upload-card { min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #bdc9da; border-radius: 14px; background: #f8faff; text-align: center; cursor: pointer; transition: .18s; }
.upload-card:hover, .upload-card.is-over { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-1px); }
.upload-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 20px; }
.upload-card strong { font-size: 12px; }
.upload-card small { margin-top: 5px; color: #9097a6; font-size: 10px; }
.file-chip { display: grid; grid-template-columns: 46px 1fr 28px; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; }
.file-thumb { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: repeating-conic-gradient(#e9ebef 0 25%, #fff 0 50%) 50%/10px 10px; }
.file-thumb img { max-width: 100%; max-height: 100%; }
.file-chip > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.file-chip strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.file-chip small { color: var(--muted); font-size: 10px; }
.file-chip button { width: 27px; height: 27px; border: 0; border-radius: 7px; background: #f0f3f7; color: #687080; font-size: 17px; }
.section-divider { height: 1px; margin: 22px 0; background: var(--line); }
.search-box { height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #80889a; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.background-list { height: 290px; margin-top: 10px; padding-right: 4px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c8d1de transparent; }
.background-item { width: 100%; display: grid; grid-template-columns: 76px 1fr 16px; align-items: center; gap: 9px; margin-bottom: 6px; padding: 6px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; }
.background-item:hover { background: #f6f8fb; }
.background-item.is-selected { border-color: #a9c7f7; background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.background-item img { width: 76px; height: 46px; display: block; object-fit: cover; border-radius: 7px; }
.background-item > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.background-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.background-item small { color: #888f9e; font-size: 9px; }
.background-item b { color: var(--blue); opacity: 0; }
.background-item.is-selected b { opacity: 1; }
.empty-list { padding: 28px 6px; color: var(--muted); font-size: 11px; text-align: center; }

.preview-card { padding: 22px; }
.preview-heading { margin-bottom: 18px; }
.preview-heading .toolbar-actions { margin-left: auto; display: flex; gap: 7px; }
.subtle-button { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #60697a; font-size: 10px; font-weight: 700; }
.subtle-button:hover, .subtle-button[aria-pressed="true"] { border-color: #a8c5f5; background: var(--blue-soft); color: var(--blue-dark); }
.preview-stage { display: grid; place-items: center; padding: 24px; border: 1px solid #dfe5ee; border-radius: 16px; background: #eef2f7; overflow: hidden; }
.signature-preview { width: 720px; height: 405px; position: relative; overflow: hidden; border: 1px solid #bed0ea; border-radius: 13px; background: #e8edf5; box-shadow: 0 16px 34px rgba(38,52,78,.18); transform-origin: center; }
#composer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#composer.is-dragging { cursor: grabbing; }
.signature-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(247,250,255,0) 30%, rgba(244,248,254,.54) 49%, rgba(245,248,253,.94) 70%, #f6f8fc 100%); }
.signature-content { width: 326px; position: absolute; right: 24px; top: 39px; pointer-events: none; color: #455065; }
.preview-eyebrow { margin: 0 0 17px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 2.7px; }
.preview-title { display: block; overflow: hidden; color: #1b2a42; font-family: Georgia, "Times New Roman", serif; font-size: 36px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.preview-description { min-height: 45px; margin: 21px 0 15px; color: #657086; font-size: 12px; line-height: 1.7; }
.preview-line { height: 1px; margin-bottom: 14px; background: linear-gradient(90deg, #8eb8f4, rgba(142,184,244,.1)); }
.preview-label { display: block; margin-bottom: 7px; color: #64728a; font-size: 10px; }
.preview-input { width: 218px; height: 41px; padding: 0 12px; border: 1px solid #bcc9dc; border-radius: 7px; background: rgba(255,255,255,.86); color: #34415a; font-size: 12px; line-height: 39px; }
.preview-buttons { display: flex; gap: 5px; margin-top: 8px; }
.preview-buttons span { min-width: 45px; height: 34px; padding: 0 9px; border-radius: 7px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; line-height: 34px; text-align: center; }
.preview-brand { position: absolute; right: 24px; bottom: 13px; color: #7d9dcc; font-size: 8px; font-weight: 800; letter-spacing: 2.3px; pointer-events: none; }
.empty-canvas { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(235,240,247,.86); color: #6f7889; pointer-events: none; }
.empty-canvas b { color: var(--blue); font-size: 21px; }
.empty-canvas strong { font-size: 12px; }
.canvas-help { display: flex; justify-content: center; flex-wrap: wrap; gap: 17px; padding-top: 13px; color: #8b92a1; font-size: 9px; }
.canvas-help kbd { padding: 2px 5px; border: 1px solid #d2d8e2; border-radius: 4px; background: #f4f6f9; font-family: inherit; font-size: 8px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-card { padding: 22px; }
.control-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 22px; }
.range-control { display: grid; gap: 9px; }
.range-control > span { display: flex; justify-content: space-between; }
.range-control b { font-size: 11px; }
.range-control output { color: var(--blue); font-size: 10px; font-weight: 800; }
input[type="range"] { width: 100%; height: 4px; margin: 0; appearance: none; border-radius: 99px; background: linear-gradient(90deg,var(--blue) var(--range-progress,50%),#dbe1e9 var(--range-progress,50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; appearance: none; background: var(--blue); box-shadow: 0 1px 5px rgba(36,99,200,.3); }
input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); }
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 20px; }
.quick-actions button { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fb; color: #566074; }
.quick-actions button:hover { border-color: #a9c7f7; background: var(--blue-soft); color: var(--blue); }
.switch-row { display: grid; grid-template-columns: 1fr 40px; align-items: center; gap: 12px; margin-top: 19px; cursor: pointer; }
.switch-row span { display: flex; flex-direction: column; gap: 3px; }
.switch-row b { font-size: 11px; }
.switch-row small { color: #8c94a3; font-size: 9px; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row i { width: 40px; height: 23px; border-radius: 99px; background: #d6dce5; position: relative; transition: .2s; }
.switch-row i::after { content: ''; width: 17px; height: 17px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.17); transition: .2s; }
.switch-row input:checked + i { background: var(--blue); }
.switch-row input:checked + i::after { transform: translateX(17px); }
.text-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.text-controls label { display: grid; gap: 6px; }
.text-controls label:nth-child(4) { grid-column: 1 / -1; }
.text-controls span { font-size: 10px; font-weight: 800; }
.text-controls input, .text-controls textarea, .text-controls select { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; color: var(--ink); outline: 0; font-size: 11px; }
.text-controls input { height: 39px; padding: 0 11px; }
.text-controls select { height: 39px; padding: 0 11px; }
.text-controls textarea { height: 65px; padding: 10px 11px; resize: vertical; }
.text-controls input:focus, .text-controls textarea:focus, .text-controls select:focus { border-color: #91b7ef; box-shadow: 0 0 0 3px var(--blue-soft); }

.publish-card { padding: 22px; }
.publish-info { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; }
.publish-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-soft); color: var(--blue); font-size: 18px; font-weight: 800; }
.publish-info h2 { margin: 0 0 4px; font-size: 15px; }
.publish-info p { margin: 0 0 5px; color: #687286; font-size: 11px; }
.publish-info small { color: #999fac; font-size: 9px; }
.primary-button, .secondary-button { min-height: 43px; padding: 0 17px; border-radius: 9px; font-size: 11px; font-weight: 800; }
.primary-button { border: 0; background: var(--blue); color: #fff; box-shadow: 0 7px 15px rgba(52,120,229,.2); }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); }
.primary-button:disabled { cursor: not-allowed; opacity: .43; box-shadow: none; }
.secondary-button { border: 1px solid #bfd0e8; background: #fff; color: #3d5f90; }
.source-result { margin-top: 19px; padding-top: 19px; border-top: 1px solid var(--line); }
.result-status { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 10px; }
.result-status span { color: #329365; font-weight: 800; }
.result-status a { color: var(--blue); text-decoration: none; }
#sourceCode { width: 100%; height: 210px; padding: 14px; border: 1px solid #d7dfea; border-radius: 10px; background: #f7f9fc; color: #3f4a5c; font-family: Consolas, monospace; font-size: 10px; line-height: 1.55; resize: vertical; }
.result-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.toast { max-width: calc(100vw - 32px); position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 11px 16px; border-radius: 9px; background: #202735; color: #fff; font-size: 11px; box-shadow: 0 12px 30px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

/* 관리자 */
.admin-body { min-height: 100vh; }
.logout-form { display: flex; align-items: center; gap: 8px; }
.login-shell { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 28px 18px; }
.login-card { width: min(100%,430px); padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.admin-badge { display: inline-flex; padding: 5px 9px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: 1.3px; }
.login-card h1 { margin: 17px 0 8px; font-size: 28px; }
.login-card > p { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.login-card label, .admin-upload-card > label:not(.admin-file) { display: grid; gap: 7px; margin-bottom: 14px; text-align: left; }
.login-card label span, .admin-upload-card label > span { font-size: 10px; font-weight: 800; }
.login-card input, .admin-upload-card input[type="text"], .library-heading input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; outline: 0; }
.login-card .primary-button, .admin-upload-card .primary-button { width: 100%; }
.back-link { display: block; margin-top: 16px; color: var(--muted); font-size: 10px; text-decoration: none; }
.alert { margin: 0 0 16px; padding: 11px 13px; border-radius: 9px; font-size: 11px; }
.alert.error { border: 1px solid #f1c6ce; background: #fff2f4; color: #9b354a; }
.alert.success { border: 1px solid #bfe3cf; background: #effaf4; color: #2f7c51; }
.admin-shell { max-width: 1380px; margin: 0 auto; padding: 38px clamp(18px,4vw,56px) 65px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.admin-heading h1 { margin: 0; font-size: 30px; }
.admin-heading > p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-layout { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; }
.admin-upload-card, .admin-library { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.admin-upload-card { padding: 23px; position: sticky; top: 88px; }
.admin-file { min-height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 4px 0 15px; border: 1.5px dashed #bdc9da; border-radius: 12px; background: #f8faff; cursor: pointer; }
.admin-file input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.admin-file small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.admin-library { padding: 22px; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.library-heading > div { display: flex; align-items: baseline; gap: 9px; }
.library-heading h2, .library-heading p { margin: 0; }
.library-heading h2 { font-size: 17px; }
.library-heading p { color: var(--muted); font-size: 10px; }
.library-heading input { width: 220px; height: 38px; font-size: 10px; }
.admin-background-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.admin-background-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.admin-background-item > img { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; }
.admin-background-item > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 11px 12px; }
.admin-background-item span { color: var(--blue); font-size: 8px; font-weight: 900; }
.admin-background-item strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-background-item form { position: absolute; top: 6px; right: 6px; }
.admin-background-item button { padding: 5px 8px; border: 0; border-radius: 6px; background: rgba(25,31,42,.8); color: #fff; font-size: 9px; opacity: 0; }
.admin-background-item:hover button, .admin-background-item button:focus { opacity: 1; }

/* 배경 요청 */
.request-link.is-active { border-color: #b8cff3; background: var(--blue-soft); color: var(--blue); }
.request-shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: 64px 0 80px; }
.request-intro { margin-bottom: 26px; text-align: center; }
.request-badge { display: inline-flex; padding: 6px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: 1.7px; }
.request-intro h1 { margin: 16px 0 10px; font-size: clamp(26px,4vw,38px); letter-spacing: -1.2px; }
.request-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; word-break: keep-all; }
.request-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.request-field { display: grid; gap: 8px; margin-bottom: 18px; }
.request-field > span { display: flex; align-items: center; justify-content: space-between; }
.request-field b { font-size: 12px; }
.request-field small { color: var(--muted); font-size: 9px; }
.request-field textarea, .request-field input { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: #fafbfd; color: var(--ink); outline: 0; }
.request-field textarea { min-height: 190px; padding: 14px; line-height: 1.7; resize: vertical; }
.request-field input { height: 45px; padding: 0 13px; }
.request-field textarea:focus, .request-field input:focus { border-color: #91b7ef; box-shadow: 0 0 0 3px var(--blue-soft); }
.request-honeypot { width: 1px; height: 1px; position: absolute; left: -10000px; overflow: hidden; }
.request-submit { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 4px; }
.request-submit p { margin: 0; color: var(--muted); font-size: 10px; }
.request-admin-section { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.request-admin-heading { margin-bottom: 16px; }
.request-admin-list { display: grid; gap: 10px; }
.request-admin-item { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.request-admin-item.is-completed { background: #f8fafc; opacity: .76; }
.request-admin-meta { display: flex; align-items: center; gap: 9px; }
.request-admin-meta strong { font-size: 11px; }
.request-admin-meta time { margin-left: auto; color: var(--muted); font-size: 9px; }
.request-status { padding: 4px 7px; border-radius: 99px; background: #fff1d8; color: #a76a00; font-size: 8px; font-weight: 900; }
.is-completed .request-status { background: #e7f6ed; color: #2f8053; }
.request-admin-item > p { margin: 13px 0; color: #4e586a; font-size: 12px; line-height: 1.7; word-break: break-word; }
.request-admin-actions { display: flex; justify-content: flex-end; gap: 7px; }
.request-admin-actions button { height: 32px; padding: 0 11px; border-radius: 7px; font-size: 9px; font-weight: 800; }
.request-complete-button { border: 0; background: var(--blue); color: #fff; }
.request-delete-button { border: 1px solid #efccd2; background: #fff; color: var(--danger); }
.request-empty { margin: 0; padding: 34px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 1180px) {
  .builder-grid { grid-template-columns: 280px minmax(0,1fr); }
  .signature-preview { transform: scale(.82); margin: -36px -65px; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .step-nav { overflow-x: auto; justify-content: flex-start; }
  .builder-grid { grid-template-columns: 1fr; }
  .source-card { position: static; }
  .background-list { height: 220px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; gap: 5px; }
  .signature-preview { transform: scale(.72); margin: -57px -101px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-upload-card { position: static; }
  .admin-background-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .topbar { height: 62px; grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 12px; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .product-nav { justify-self: center; height: 38px; padding: 3px; }
  .product-nav a { min-width: 72px; height: 30px; font-size: 11px; }
  .product-nav > span { display: none; }
  .admin-link { padding: 0 10px; }
  .coming-soon-shell { min-height: calc(100vh - 62px); padding: 32px 12px; }
  .coming-soon-card { padding: 42px 22px 38px; border-radius: 20px; }
  .video-symbol { width: 88px; height: 88px; margin-bottom: 23px; border-radius: 25px; }
  .builder-shell { padding: 28px 10px 48px; }
  .hero > p:last-child { padding: 0 16px; font-size: 12px; line-height: 1.55; }
  .step-nav { margin: 22px 0 14px; border-radius: 13px; }
  .step-nav i { width: 20px; margin: 0 7px; }
  .surface { border-radius: 16px; }
  .source-card, .preview-card, .settings-card, .publish-card { padding: 17px; }
  .background-list { display: block; }
  .preview-stage { padding: 12px; }
  .signature-preview { transform: scale(.47); margin: -107px -191px; }
  .preview-heading { align-items: flex-start; flex-wrap: wrap; }
  .preview-heading .toolbar-actions { width: 100%; margin: 0; }
  .control-stack, .text-controls { grid-template-columns: 1fr; }
  .text-controls label:nth-child(4) { grid-column: auto; }
  .publish-info { grid-template-columns: 40px 1fr; }
  .generate-button { grid-column: 1 / -1; width: 100%; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
  .admin-shell { padding: 28px 10px 48px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-background-grid { grid-template-columns: 1fr; }
  .library-heading { align-items: stretch; flex-direction: column; }
  .library-heading input { width: 100%; }
  .admin-entry { display: none; }
  .request-shell { width: min(100% - 20px,760px); padding: 36px 0 52px; }
  .request-card { padding: 20px 16px; }
  .request-submit { align-items: stretch; flex-direction: column; }
  .request-submit button { width: 100%; }
  .request-admin-meta { flex-wrap: wrap; }
  .request-admin-meta time { width: 100%; margin-left: 0; }
}
