:root {
  --navy: #0a2e5d;
  --navy-2: #123f77;
  --red: #cf142b;
  --red-dark: #a90f21;
  --ink: #182234;
  --muted: #68758a;
  --line: #dce3ec;
  --soft: #f3f6fa;
  --success: #198754;
  --shadow: 0 24px 80px rgba(10, 46, 93, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f6f8fb; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }

.brand-logo { display: block; width: 132px; height: auto; object-fit: contain; }
.brand-logo-large { width: 208px; }
.eyebrow { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.brand-corner { position: fixed; z-index: 0; pointer-events: none; }
.brand-corner::before, .brand-corner::after { content: ""; position: absolute; background: var(--red); }
.brand-corner-top { top: 0; right: 0; width: 220px; height: 165px; }
.brand-corner-top::before { top: 0; right: 0; width: 220px; height: 9px; }
.brand-corner-top::after { top: 0; right: 0; width: 9px; height: 165px; }
.brand-corner-bottom { bottom: 0; left: 0; width: 220px; height: 165px; }
.brand-corner-bottom::before { bottom: 0; left: 0; width: 220px; height: 9px; }
.brand-corner-bottom::after { bottom: 0; left: 0; width: 9px; height: 165px; }

.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; padding: 0 20px; font-size: 14px; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: white; box-shadow: 0 8px 20px rgba(10, 46, 93, .18); }
.button-primary:hover:not(:disabled) { background: var(--navy-2); }
.button-secondary { border-color: #c8d1dd; background: white; color: var(--navy); }
.button-success { background: var(--success); color: white; box-shadow: 0 8px 20px rgba(25, 135, 84, .16); }
.button-full { width: 100%; }

.landing-shell, .customer-shell { position: relative; display: grid; min-height: 100vh; place-items: center; overflow: hidden; padding: 48px 24px 88px; background: radial-gradient(circle at 15% 15%, rgba(207, 20, 43, .055), transparent 28%), linear-gradient(145deg, #fbfcfe 0%, #eef3f8 100%); }
.landing-card, .pin-card { position: relative; z-index: 1; width: min(620px, 100%); border: 1px solid rgba(10, 46, 93, .1); border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); padding: 54px 60px 48px; text-align: center; }
.landing-card::before, .pin-card::before { content: ""; position: absolute; top: 0; left: 60px; right: 60px; height: 4px; background: var(--red); }
.landing-card .brand-logo, .pin-card .brand-logo { margin: 0 auto 30px; }
.landing-card h1, .pin-card h1 { margin: 12px 0 14px; color: var(--navy); font-size: clamp(29px, 5vw, 42px); line-height: 1.08; }
.landing-card > p, .pin-card > p { margin: 0 auto; max-width: 500px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.landing-actions { display: flex; justify-content: center; margin-top: 28px; }
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-top: 1px solid var(--line); padding-top: 26px; }
.landing-features div { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.landing-features div:last-child { border-right: 0; }
.landing-features strong { color: var(--navy); font-size: 26px; }
.landing-features span { color: var(--muted); font-size: 12px; }
.simple-footer { position: absolute; z-index: 1; bottom: 27px; left: 50%; display: flex; width: min(620px, calc(100% - 48px)); justify-content: space-between; transform: translateX(-50%); color: #778499; font-size: 11px; font-weight: 700; letter-spacing: .04em; }

.pin-card { width: min(540px, 100%); }
.recipient-line { margin-top: 10px !important; }
.recipient-line strong { color: var(--navy); }
.pin-form { display: grid; gap: 11px; margin-top: 28px; text-align: left; }
.pin-form label, .identity-form > label, .create-form label, .modal-card > label { color: #34445a; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pin-form input { width: 100%; height: 62px; border: 1px solid #c9d2df; border-radius: 10px; outline: none; color: var(--navy); font-size: 25px; font-weight: 800; letter-spacing: .38em; text-align: center; }
.pin-form input:focus, .identity-form > input:focus, .create-form input:focus, .create-form select:focus, .question-content textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10, 46, 93, .09); }
.error-message { margin: -2px 0 2px; color: var(--red); font-size: 12px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; color: #6d798b; font-size: 11px; }
.security-note span { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #e6f5ed; color: var(--success); font-size: 10px; font-weight: 900; }
.identity-shell { overflow-y: auto; padding-block: 42px 88px; }
.identity-card { width: min(720px, 100%); padding: 42px 52px 38px; }
.identity-card .brand-logo { margin-bottom: 22px; }
.identity-card h1 { font-size: clamp(27px, 4vw, 36px); }
.identity-intro { max-width: 580px !important; font-size: 14px !important; }
.identity-form { display: grid; gap: 11px; margin-top: 24px; text-align: left; }
.identity-form > input { width: 100%; height: 50px; border: 1px solid #c9d2df; border-radius: 10px; outline: none; background: white; padding: 0 14px; color: var(--navy); font-size: 14px; }
.contact-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 7px 0 1px; border: 0; padding: 0; }
.contact-choice legend { grid-column: 1 / -1; margin-bottom: 7px; color: #34445a; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.contact-choice label { position: relative; }
.contact-choice input { position: absolute; opacity: 0; pointer-events: none; }
.contact-choice span { display: flex; height: 43px; align-items: center; justify-content: center; border: 1px solid #c9d2df; border-radius: 9px; background: #f8fafc; color: #5d6a7d; font-size: 12px; font-weight: 800; cursor: pointer; }
.contact-choice input:checked + span { border-color: var(--navy); background: #edf3f9; color: var(--navy); box-shadow: inset 0 -3px var(--red); }
.contact-choice input:focus-visible + span { outline: 3px solid rgba(10, 46, 93, .16); outline-offset: 2px; }
.privacy-box { margin-top: 6px; border: 1px solid #d7dfe9; border-radius: 12px; background: #f8fafc; padding: 17px 18px; }
.privacy-box > h2 { margin: 0 0 7px; color: var(--navy); font-size: 14px; }
.privacy-box > p { margin: 0; color: #5f6d80; font-size: 11px; line-height: 1.58; }
.privacy-box details { margin-top: 12px; border-top: 1px solid #dce3ec; border-bottom: 1px solid #dce3ec; }
.privacy-box summary { padding: 11px 0; color: var(--navy); font-size: 11px; font-weight: 800; cursor: pointer; }
.privacy-detail { max-height: 260px; overflow-y: auto; border-top: 1px solid #e0e6ee; padding: 13px 7px 14px 0; }
.privacy-detail h3 { margin: 12px 0 4px; color: #27364c; font-size: 11px; }
.privacy-detail h3:first-child { margin-top: 0; }
.privacy-detail p { margin: 0; color: #68758a; font-size: 10px; line-height: 1.55; }
.privacy-check { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; margin-top: 14px; color: #2d3b50; font-size: 11px; font-weight: 700; line-height: 1.45; cursor: pointer; }
.privacy-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy); }
.status-card { min-height: 410px; align-content: center; }
.status-symbol { display: grid; width: 64px; height: 64px; margin: 4px auto 20px; place-items: center; border-radius: 50%; background: #fff0f2; color: var(--red); font-size: 28px; font-weight: 900; }
.status-symbol.success { background: #e9f7f0; color: var(--success); }
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid #d9e0e9; border-top-color: var(--navy); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-app { min-height: 100vh; background: #f3f6fa; }
.form-header { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 116px; border-bottom: 1px solid var(--line); background: white; padding: 18px max(30px, calc((100vw - 1360px) / 2)); }
.header-copy { min-width: 0; border-left: 1px solid var(--line); padding-left: 25px; }
.header-copy h1 { margin: 5px 0 2px; overflow: hidden; color: var(--navy); font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.header-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.save-pill { display: flex; align-items: center; gap: 8px; border: 1px solid #dfe6ee; border-radius: 999px; background: #fafbfd; padding: 10px 13px; color: #657287; font-size: 11px; white-space: nowrap; }
.save-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(25, 135, 84, .1); }
.progress-wrap { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); padding: 12px max(30px, calc((100vw - 1360px) / 2)); backdrop-filter: blur(10px); }
.progress-copy { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 7px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.progress-copy strong, .progress-copy b { color: var(--navy); }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: #e4e9ef; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #e44b5c); transition: width .25s ease; }
.global-alert { display: flex; align-items: center; gap: 10px; width: min(1360px, calc(100% - 60px)); margin: 18px auto 0; border: 1px solid #f1b8c0; border-radius: 10px; background: #fff5f6; padding: 12px 15px; color: #8f1c2c; font-size: 13px; }
.global-alert > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--red); color: white; font-weight: 900; }
.global-alert button { margin-left: auto; border: 0; background: none; color: inherit; font-size: 20px; }
.form-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; width: min(1360px, calc(100% - 60px)); margin: 28px auto 50px; }
.section-nav { position: sticky; top: 78px; align-self: start; overflow: hidden; max-height: calc(100vh - 104px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(10, 46, 93, .06); }
.section-nav-heading { border-bottom: 1px solid var(--line); padding: 18px 20px 13px; color: #8a94a4; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.section-nav button { display: grid; grid-template-columns: 34px 1fr; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid #edf0f4; background: white; padding: 12px 15px; color: #536075; text-align: left; }
.section-nav button:last-child { border-bottom: 0; }
.section-nav button:hover { background: #f7f9fc; }
.section-nav button.active { background: #eef3f9; color: var(--navy); box-shadow: inset 4px 0 var(--red); }
.section-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; background: #eef2f7; color: var(--navy); font-size: 10px; font-weight: 900; }
.section-nav button.active .section-number { background: var(--navy); color: white; }
.section-nav strong, .section-nav small { display: block; }
.section-nav strong { overflow: hidden; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.section-nav small { margin-top: 3px; color: #939dac; font-size: 9px; }
.questions-panel { min-width: 0; }
.section-heading { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 18px; margin-bottom: 18px; border-radius: var(--radius); background: var(--navy); padding: 24px 28px; color: white; box-shadow: 0 12px 30px rgba(10, 46, 93, .15); }
.section-heading > span { align-self: center; color: rgba(255, 255, 255, .2); font-size: 42px; font-weight: 900; }
.section-heading p { margin: 0 0 4px; color: #ff8e9d; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.section-heading h2 { margin: 0 0 5px; font-size: 22px; }
.section-heading small { color: #c5d1df; font-size: 11px; }
.question-list { display: grid; gap: 14px; }
.question-card { display: grid; grid-template-columns: 54px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 5px 20px rgba(10, 46, 93, .045); }
.question-index { display: grid; place-items: start center; border-right: 1px solid var(--line); background: #f8fafc; padding-top: 22px; color: var(--red); font-size: 12px; font-weight: 900; }
.question-content { padding: 20px 22px 15px; }
.question-content > label { display: block; color: #1e2c40; font-size: 14px; font-weight: 750; line-height: 1.5; }
.question-hint { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 12px; color: #748195; font-size: 11px; line-height: 1.45; }
.question-hint span { display: grid; flex: 0 0 17px; height: 17px; place-items: center; border-radius: 50%; background: #e8eef5; color: var(--navy); font-size: 10px; font-weight: 900; }
.question-content textarea { width: 100%; min-height: 124px; resize: vertical; border: 1px solid #ccd5e0; border-radius: 9px; outline: none; background: #fcfdff; padding: 13px 14px; color: #253247; font-size: 13px; line-height: 1.55; }
.question-content textarea::placeholder { color: #a5afbc; }
.field-meta { display: flex; justify-content: space-between; margin-top: 7px; color: #9aa4b2; font-size: 9px; }
.field-meta span:last-child { color: var(--success); font-weight: 700; }
.form-actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 24px; }
.app-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); background: white; padding: 18px max(30px, calc((100vw - 1360px) / 2)); color: #8893a3; font-size: 10px; font-weight: 700; }

.admin-shell { min-height: 100vh; background: #f2f5f9; }
.admin-header { display: grid; grid-template-columns: 165px 1fr auto; align-items: center; gap: 24px; border-bottom: 4px solid var(--red); background: var(--navy); padding: 21px max(30px, calc((100vw - 1320px) / 2)); color: white; }
.admin-header .brand-logo { border-radius: 5px; background: white; padding: 5px; }
.admin-header > div { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 25px; }
.admin-header h1 { margin: 5px 0 3px; font-size: 25px; }
.admin-header p { margin: 0; color: #bdc9d8; font-size: 11px; }
.admin-header .button-primary { border-color: rgba(255, 255, 255, .25); background: white; color: var(--navy); box-shadow: none; }
.admin-header > .admin-header-actions { display: flex; gap: 9px; border: 0; padding: 0; }
.button-header-secondary { border-color: rgba(255, 255, 255, .35); background: transparent; color: white; }
.button-header-logout { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .10); color: white; }
.button-header-logout:hover { background: rgba(255, 255, 255, .18); }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(145deg, #eef3f8 0%, #f8fafc 55%, #e8eef5 100%); padding: 28px; }
.login-card { width: min(440px, 100%); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 18px 55px rgba(8, 34, 67, .12); overflow: hidden; }
.login-brand { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 20px; border-bottom: 4px solid var(--red); background: var(--navy); padding: 24px; color: white; }
.login-brand .brand-logo { border-radius: 5px; background: white; padding: 5px; }
.login-brand h1 { margin: 5px 0 2px; font-size: 22px; }
.login-brand p { margin: 0; color: #bdc9d8; font-size: 11px; }
.login-body { padding: 28px; }
.login-body h2 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
.login-body > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-form { display: grid; gap: 15px; }
.login-form label { display: grid; gap: 7px; color: var(--navy); font-size: 11px; font-weight: 800; }
.login-form input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; font: inherit; color: var(--navy); background: white; }
.login-form input:focus { outline: 2px solid rgba(11, 68, 126, .14); border-color: var(--blue); }
.login-error { margin: 0 0 16px; border: 1px solid #efc3c3; border-radius: 10px; background: #fff3f3; padding: 11px 12px; color: #9b1c1c; font-size: 12px; font-weight: 700; }
.login-note { margin-top: 17px; color: #7b8797; font-size: 10px; line-height: 1.5; }
.admin-content { width: min(1320px, calc(100% - 60px)); margin: 0 auto; padding: 34px 0 60px; }
.admin-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.admin-topline h2 { margin: 0 0 4px; color: var(--navy); font-size: 24px; }
.admin-topline p { margin: 0; color: var(--muted); font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--navy); font-size: 12px; font-weight: 800; }
.admin-content .global-alert { width: 100%; margin: 0 0 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.metric-grid article { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 20px 22px; box-shadow: 0 5px 18px rgba(10, 46, 93, .04); }
.metric-grid article::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--red); }
.metric-grid span, .metric-grid small { display: block; }
.metric-grid span { color: #8c97a7; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.metric-grid strong { display: block; margin: 7px 0 3px; color: var(--navy); font-size: 31px; }
.metric-grid small { color: var(--muted); font-size: 10px; }
.forms-section { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 8px 30px rgba(10, 46, 93, .055); }
.section-title-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 20px 24px; }
.section-title-row h2 { margin: 3px 0 0; color: var(--navy); font-size: 19px; }
.form-list-controls { display: flex; align-items: center; gap: 8px; }
.form-list-controls label { color: #7b8798; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.form-list-controls select { height: 35px; border: 1px solid #cbd4df; border-radius: 8px; outline: none; background: white; padding: 0 30px 0 10px; color: var(--navy); font-size: 10px; font-weight: 700; }
#record-count { border-radius: 999px; background: #edf2f7; padding: 7px 11px; color: #627086; font-size: 10px; font-weight: 800; white-space: nowrap; }
.empty-state { display: grid; min-height: 260px; place-items: center; align-content: center; gap: 8px; padding: 35px; text-align: center; }
.empty-state h3, .empty-state p { margin: 0; }
.empty-state h3 { color: var(--navy); font-size: 17px; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-state .button { margin-top: 8px; }
.empty-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: #eef3f8; color: var(--navy); font-size: 26px; }
.forms-table-wrap { overflow-x: auto; }
.forms-table { width: 100%; border-collapse: collapse; }
.forms-table th { background: #f8fafc; padding: 12px 17px; color: #8a95a5; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: left; }
.forms-table td { border-top: 1px solid #e7ebf0; padding: 16px 17px; color: #536176; font-size: 11px; vertical-align: middle; }
.forms-table tr.archived-row td { background: #fafbfc; color: #7f8997; }
.forms-table td:first-child { min-width: 330px; }
.forms-table td:first-child strong, .forms-table td:first-child span { display: block; }
.forms-table td:first-child strong { margin-bottom: 4px; color: var(--navy); font-size: 13px; }
.forms-table td:first-child span { max-width: 460px; overflow: hidden; color: #7b8798; text-overflow: ellipsis; white-space: nowrap; }
.respondent-cell { min-width: 200px; }
.respondent-cell strong, .respondent-cell span { display: block; }
.respondent-cell strong { margin-bottom: 4px; color: var(--navy); font-size: 11px; }
.respondent-cell span { max-width: 240px; overflow: hidden; color: #7b8798; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 9px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-draft { background: #fff3d6; color: #956800; }
.status-submitted { background: #e4f5ec; color: #147247; }
.status-cancelled { background: #eef0f3; color: #687386; }
.status-expired { background: #fde8eb; color: #a91f35; }
.status-archived { background: #e8edf4; color: #4e5d72; }
.table-progress { display: flex; align-items: center; gap: 9px; min-width: 145px; }
.table-progress > span { display: block; width: 100px; height: 6px; overflow: hidden; border-radius: 999px; background: #e5eaf0; }
.table-progress i { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.table-progress b { color: var(--navy); font-size: 10px; }
.table-action { border: 0; background: transparent; color: var(--navy); font-size: 10px; font-weight: 800; white-space: nowrap; }
.expired-date { color: var(--red) !important; font-weight: 800; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow-y: auto; background: rgba(7, 21, 42, .69); padding: 30px 20px; backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(600px, 100%); max-height: calc(100vh - 60px); overflow-y: auto; border-radius: 18px; background: white; box-shadow: 0 28px 90px rgba(0, 0, 0, .3); padding: 34px 38px; }
.modal-card h2 { margin: 7px 0 8px; color: var(--navy); font-size: 24px; }
.modal-card > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.modal-alert { width: 100%; margin: 0 0 16px; }
.modal-close { position: absolute; top: 15px; right: 17px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: #eef2f6; color: #536075; font-size: 20px; }
.create-form { display: grid; gap: 16px; margin-top: 24px; }
.create-form label { display: grid; gap: 7px; }
.create-form input, .create-form select, .copy-row input { width: 100%; height: 45px; border: 1px solid #cbd4df; border-radius: 8px; outline: none; background: white; padding: 0 12px; color: #263449; font-size: 13px; }
.field-help { color: #768397; font-size: 10px; font-weight: 500; letter-spacing: 0; line-height: 1.45; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pin-input-row, .copy-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.pin-input-row button, .copy-row button, .detail-toolbar button { border: 1px solid #cbd4df; border-radius: 8px; background: #f5f7fa; padding: 0 12px; color: var(--navy); font-size: 10px; font-weight: 800; }
.invitation-modal { text-align: center; }
.invitation-modal > label { display: grid; gap: 7px; margin-top: 16px; text-align: left; }
.success-check { display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; border-radius: 50%; background: #e5f6ed; color: var(--success); font-size: 25px; font-weight: 900; }
.pin-display { border: 1px dashed #aeb9c7; border-radius: 9px; background: #f5f8fb; padding: 15px; color: var(--navy); font-size: 25px; font-weight: 900; letter-spacing: .28em; text-align: center; }
.invite-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.detail-backdrop { place-items: stretch center; }
.detail-modal { width: min(1000px, 100%); }
.detail-header { display: flex; align-items: start; justify-content: space-between; gap: 22px; padding-right: 35px; }
.detail-header p { margin: 0; color: var(--muted); font-size: 11px; }
.respondent-summary { display: grid; grid-template-columns: 1.15fr 1fr 1.35fr 1.2fr 1fr; gap: 1px; overflow: hidden; margin-top: 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.respondent-summary > div { min-width: 0; background: #f8fafc; padding: 13px 15px; }
.respondent-summary span, .respondent-summary strong { display: block; }
.respondent-summary span { margin-bottom: 5px; color: #8a95a5; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.respondent-summary strong { overflow-wrap: anywhere; color: var(--navy); font-size: 10px; line-height: 1.45; }
.share-panel { margin-top: 16px; border: 1px solid #d7e0ea; border-radius: 13px; background: #f8fafc; padding: 17px; }
.share-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.share-panel-heading h3 { margin: 4px 0 5px; color: var(--navy); font-size: 15px; }
.share-panel-heading p { max-width: 680px; margin: 0; color: #68768a; font-size: 10px; line-height: 1.55; }
.share-state { flex: 0 0 auto; border-radius: 999px; background: #e8edf4; padding: 6px 9px; color: #5e6d82; font-size: 8px; font-weight: 900; letter-spacing: .04em; }
.share-state.ready { background: #e4f5ec; color: #147247; }
.share-url-label { display: grid; gap: 7px; margin-top: 14px; color: #34445a; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 11px; }
.share-actions .button { min-height: 36px; padding: 0 12px; font-size: 10px; }
.share-actions .button:disabled { cursor: not-allowed; opacity: .52; }
.rotated-pin-result { margin-top: 15px; border: 1px solid #bcdcca; border-radius: 11px; background: #f1faf5; padding: 15px; }
.rotated-pin-result > div:first-child > span { display: block; margin-bottom: 7px; color: #26724d; font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.rotated-pin-result .pin-display { border-color: #8fc5a8; background: white; }
.rotated-pin-result > p { margin: 9px 0 0; color: #51705f; font-size: 10px; line-height: 1.5; }
.share-feedback { min-height: 15px; margin: 9px 0 0; color: #147247; font-size: 10px; font-weight: 800; text-align: right; }
.detail-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; border-block: 1px solid var(--line); padding: 12px 0; }
.detail-toolbar button { min-height: 34px; }
.detail-toolbar button.danger { border-color: #f0c5cb; background: #fff3f5; color: var(--red); }
.detail-toolbar button.danger-solid { border-color: var(--red); background: var(--red); color: white; }
.expiry-modal { width: min(520px, 100%); }
.expiry-current { display: block; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; padding: 12px; color: var(--navy); font-size: 13px; letter-spacing: 0; }
.expiry-note { border: 1px solid #d9e3ef; border-radius: 9px; background: #f6f9fc; padding: 12px 14px; color: #5f6e82; font-size: 11px; line-height: 1.55; }
.expiry-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.answer-review { display: grid; gap: 9px; }
.answer-review article { display: grid; grid-template-columns: 43px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.answer-review article > span { display: grid; place-items: start center; background: #f6f8fb; padding-top: 14px; color: var(--red); font-size: 10px; font-weight: 900; }
.answer-review article > div { padding: 13px 15px; }
.answer-review h3 { margin: 0 0 7px; color: var(--navy); font-size: 12px; line-height: 1.45; }
.answer-review p { margin: 0; color: #566478; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.detail-template { display: block; margin-top: 6px; color: var(--navy); font-size: 10px; font-weight: 800; }

.templates-modal { width: min(980px, 100%); }
.template-editor-modal { width: min(1120px, 100%); }
.modal-title-row { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-right: 42px; }
.modal-title-row h2 { margin-bottom: 5px; }
.modal-title-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.templates-list { display: grid; gap: 10px; min-height: 120px; margin-top: 22px; }
.template-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; padding: 17px 18px; }
.template-card h3 { margin: 0 0 5px; color: var(--navy); font-size: 15px; }
.template-card p { margin: 0 0 7px; color: #647187; font-size: 11px; line-height: 1.45; }
.template-card span { color: #8a95a5; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.template-card > div:last-child { display: flex; flex-shrink: 0; gap: 6px; }
.template-card button, .template-section-header button, .template-question-options button { min-height: 32px; border: 1px solid #cad3df; border-radius: 7px; background: white; padding: 0 10px; color: var(--navy); font-size: 10px; font-weight: 800; }
.template-card button.danger, .template-section-header button.danger, .template-question-options button.danger { border-color: #f0c5cb; background: #fff5f6; color: var(--red); }
.template-meta-fields { display: grid; grid-template-columns: .8fr 1.2fr; gap: 14px; margin-top: 20px; }
.template-meta-fields label, .template-section-fields label, .template-question-row label { display: grid; gap: 6px; color: #34445a; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.template-meta-fields input, .template-meta-fields textarea, .template-section-fields input, .template-question-row input:not([type="checkbox"]), .template-question-row textarea { width: 100%; border: 1px solid #cbd4df; border-radius: 8px; outline: none; background: white; padding: 10px 11px; color: #263449; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.45; resize: vertical; }
.template-meta-fields input, .template-section-fields input, .template-question-row input:not([type="checkbox"]) { height: 42px; padding-block: 0; }
.template-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0 12px; border-block: 1px solid var(--line); padding: 12px 0; }
.template-editor-toolbar strong, .template-editor-toolbar small { display: block; }
.template-editor-toolbar strong { color: var(--navy); font-size: 12px; }
.template-editor-toolbar small { margin-top: 4px; color: #788598; font-size: 9px; }
.template-sections { display: grid; gap: 15px; }
.template-section-card { overflow: hidden; border: 1px solid #d5dde7; border-radius: 13px; background: #f7f9fc; }
.template-section-header { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; background: var(--navy); padding: 11px 13px; color: white; }
.template-section-header > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 7px; background: rgba(255,255,255,.12); color: #ff9aa6; font-size: 10px; font-weight: 900; }
.template-section-header > strong { font-size: 12px; }
.template-section-header > div { display: flex; gap: 5px; }
.template-section-header button { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: white; }
.template-section-header button.danger { border-color: rgba(255,160,170,.45); background: rgba(207,20,43,.2); color: white; }
.template-section-fields { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10px; padding: 14px; }
.template-question-list { display: grid; gap: 8px; padding: 0 14px 12px; }
.template-question-row { display: grid; grid-template-columns: 38px 1fr; overflow: hidden; border: 1px solid #dce3ec; border-radius: 10px; background: white; }
.template-question-row > span { display: grid; place-items: start center; background: #f0f3f7; padding-top: 13px; color: var(--red); font-size: 9px; font-weight: 900; }
.template-question-row > div { display: grid; gap: 9px; padding: 12px; }
.template-question-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.template-question-options > label { display: flex; align-items: center; color: #536176; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.template-question-options input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy); }
.template-question-options > div { display: flex; gap: 5px; }
.add-question-button { width: calc(100% - 28px); min-height: 38px; margin: 0 14px 14px; border: 1px dashed #aeb9c7; border-radius: 8px; background: white; color: var(--navy); font-size: 10px; font-weight: 800; }
.template-editor-actions { display: flex; justify-content: flex-end; gap: 9px; position: sticky; bottom: -34px; margin: 22px -38px -34px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); padding: 14px 38px; backdrop-filter: blur(8px); }

.whatsapp-modal { width: min(1180px, 100%); }
.success-alert { border-color: #b9dec9; background: #f0faf4; color: #146d43; }
.success-alert > span { background: var(--success); }
.whatsapp-master-switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 20px 0; border: 1px solid #d7dfe8; border-left: 4px solid var(--red); border-radius: 12px; background: #f8fafc; padding: 16px 18px; }
.whatsapp-master-switch span, .whatsapp-master-switch strong, .whatsapp-master-switch small { display: block; }
.whatsapp-master-switch strong { color: var(--navy); font-size: 13px; }
.whatsapp-master-switch small { margin-top: 4px; color: #6f7c90; font-size: 10px; line-height: 1.45; }
.whatsapp-master-switch > input { width: 42px; height: 22px; flex: 0 0 auto; accent-color: var(--navy); }
.whatsapp-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.whatsapp-panel, .whatsapp-log-panel { border: 1px solid #d8e0e9; border-radius: 13px; background: #fbfcfe; padding: 17px; }
.whatsapp-panel-title { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.whatsapp-panel-title h3, .whatsapp-test-panel h3 { margin: 0 0 4px; color: var(--navy); font-size: 14px; }
.whatsapp-panel-title p, .whatsapp-test-panel p { margin: 0; color: #738095; font-size: 10px; line-height: 1.45; }
.whatsapp-panel-title .button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; font-size: 10px; }
.whatsapp-editor { display: grid; gap: 12px; margin-top: 14px; border: 1px solid #cbd5e1; border-radius: 11px; background: white; padding: 15px; }
.whatsapp-editor label { display: grid; gap: 6px; color: #34445a; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.whatsapp-editor label small { color: #8490a1; font-size: 9px; font-weight: 500; letter-spacing: 0; }
.whatsapp-editor input:not([type="checkbox"]), .whatsapp-editor select, .whatsapp-test-panel select { width: 100%; height: 40px; border: 1px solid #cbd4df; border-radius: 8px; outline: none; background: white; padding: 0 10px; color: #263449; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.three-fields { display: grid; grid-template-columns: .7fr .6fr 1.35fr; gap: 10px; }
.four-fields { display: grid; grid-template-columns: .65fr .7fr 1.35fr .65fr; gap: 10px; }
.inline-check { display: flex !important; align-items: center; grid-template-columns: auto 1fr; gap: 7px !important; color: #526076 !important; font-size: 10px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.inline-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); }
.whatsapp-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.whatsapp-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.whatsapp-form-actions .button { min-height: 35px; padding: 0 12px; font-size: 10px; }
.whatsapp-card-list { display: grid; gap: 8px; margin-top: 13px; }
.whatsapp-empty { border: 1px dashed #c6d0dc; border-radius: 10px; padding: 24px 15px; color: #7b8798; font-size: 10px; text-align: center; }
.whatsapp-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid #dce3eb; border-radius: 10px; background: white; padding: 12px; }
.whatsapp-card h4 { margin: 0 0 4px; color: var(--navy); font-size: 12px; }
.whatsapp-card p { margin: 0; overflow-wrap: anywhere; color: #6d7a8e; font-size: 9px; line-height: 1.5; }
.whatsapp-card-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.whatsapp-mini-badge { border-radius: 999px; background: #edf2f7; padding: 4px 7px; color: #526177; font-size: 8px; font-weight: 800; }
.whatsapp-mini-badge.active { background: #e4f5ec; color: #147247; }
.whatsapp-mini-badge.test { background: #fff3d6; color: #956800; }
.whatsapp-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 200px; }
.whatsapp-card-actions button, .whatsapp-log button { min-height: 29px; border: 1px solid #cad3df; border-radius: 7px; background: white; padding: 0 8px; color: var(--navy); font-size: 9px; font-weight: 800; }
.whatsapp-card-actions button.danger { border-color: #f0c5cb; background: #fff5f6; color: var(--red); }
.whatsapp-test-panel { display: grid; grid-template-columns: minmax(220px, 1.25fr) 1fr 1fr auto; align-items: end; gap: 11px; margin-top: 16px; border: 1px solid #cfd9e4; border-radius: 13px; background: var(--navy); padding: 16px; color: white; }
.whatsapp-test-panel h3 { color: white; }
.whatsapp-test-panel p { color: #c6d1df; }
.whatsapp-test-panel code { color: #ff9aa6; }
.whatsapp-test-panel .button { min-height: 40px; padding: 0 13px; white-space: nowrap; }
.whatsapp-log-panel { margin-top: 16px; background: white; }
.whatsapp-log { min-height: 80px; margin-top: 13px; overflow-x: auto; }
.whatsapp-log table { width: 100%; border-collapse: collapse; }
.whatsapp-log th { background: #f5f7fa; padding: 9px 10px; color: #8490a1; font-size: 8px; letter-spacing: .06em; text-align: left; }
.whatsapp-log td { border-top: 1px solid #e4e9ef; padding: 10px; color: #526076; font-size: 9px; line-height: 1.4; vertical-align: top; }
.whatsapp-log td strong, .whatsapp-log td span { display: block; }
.whatsapp-log td strong { color: var(--navy); }
.whatsapp-log-error { max-width: 260px; overflow-wrap: anywhere; color: #9b2638 !important; }
.notification-sent { background: #e4f5ec; color: #147247; }
.notification-pending { background: #fff3d6; color: #956800; }
.notification-failed { background: #fff0f2; color: #a02034; }
.whatsapp-template-note { margin-top: 13px; border-left: 3px solid var(--red); background: #f7f9fc; padding: 11px 13px; color: #657287; font-size: 9px; line-height: 1.55; }
.whatsapp-template-note strong { color: var(--navy); }
.whatsapp-template-note code { border-radius: 4px; background: #e8edf4; padding: 2px 4px; color: var(--navy); }

@media (max-width: 900px) {
  .form-header { grid-template-columns: 125px 1fr; }
  .form-header .save-pill { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .form-layout { grid-template-columns: 1fr; }
  .section-nav { position: static; display: flex; overflow-x: auto; max-height: none; border-radius: 12px; }
  .section-nav-heading { display: none; }
  .section-nav button { min-width: 190px; border-right: 1px solid var(--line); border-bottom: 0; }
  .section-nav button.active { box-shadow: inset 0 -4px var(--red); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-header { grid-template-columns: 145px 1fr; }
  .admin-header > .admin-header-actions { grid-column: 1 / -1; }
  .whatsapp-columns { grid-template-columns: 1fr; }
  .whatsapp-test-panel { grid-template-columns: 1fr 1fr; }
  .whatsapp-test-panel > div { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand-corner-top, .brand-corner-bottom { width: 110px; height: 92px; }
  .brand-corner-top::before, .brand-corner-bottom::before { width: 110px; height: 6px; }
  .brand-corner-top::after, .brand-corner-bottom::after { width: 6px; height: 92px; }
  .landing-shell, .customer-shell { padding: 24px 15px 74px; }
  .landing-card, .pin-card { border-radius: 17px; padding: 38px 22px 34px; }
  .landing-card::before, .pin-card::before { left: 24px; right: 24px; }
  .brand-logo-large { width: 170px; }
  .identity-shell { padding-top: 18px; }
  .identity-card { padding-inline: 20px; }
  .contact-choice { grid-template-columns: 1fr 1fr; }
  .landing-features { margin-top: 28px; }
  .landing-features strong { font-size: 22px; }
  .simple-footer { bottom: 20px; width: calc(100% - 42px); font-size: 9px; }
  .section-title-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  .form-list-controls { width: 100%; flex-wrap: wrap; }
  .form-list-controls select { flex: 1; }
  .form-header { grid-template-columns: 1fr; gap: 12px; padding: 15px 18px; }
  .form-header .brand-logo { width: 115px; }
  .header-copy { border-left: 0; border-top: 1px solid var(--line); padding: 11px 0 0; }
  .header-copy h1 { font-size: 17px; white-space: normal; }
  .progress-wrap { padding: 11px 18px; }
  .global-alert, .form-layout { width: calc(100% - 30px); }
  .form-layout { gap: 15px; margin-top: 15px; }
  .section-nav button { min-width: 165px; }
  .section-heading { grid-template-columns: 45px 1fr; padding: 19px 17px; }
  .section-heading > span { font-size: 31px; }
  .section-heading h2 { font-size: 17px; }
  .question-card { grid-template-columns: 38px 1fr; }
  .question-index { padding-top: 18px; }
  .question-content { padding: 16px 14px 13px; }
  .question-content > label { font-size: 13px; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .app-footer { flex-direction: column; gap: 5px; padding: 16px 18px; text-align: center; }
  .admin-header { grid-template-columns: 1fr; padding: 18px; }
  .admin-header > div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding: 13px 0 0; }
  .admin-header > .admin-header-actions { grid-column: auto; display: grid; grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
  .admin-content { width: calc(100% - 30px); padding-top: 24px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-grid article { padding: 16px; }
  .metric-grid strong { font-size: 25px; }
  .section-title-row { padding: 17px; }
  .modal-card { padding: 29px 20px; }
  .two-fields { grid-template-columns: 1fr; }
  .invite-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .detail-header { display: block; }
  .detail-header .status-badge { margin-top: 12px; }
  .respondent-summary { grid-template-columns: 1fr; }
  .share-panel-heading { align-items: stretch; flex-direction: column; }
  .share-state { align-self: flex-start; }
  .share-actions { display: grid; grid-template-columns: 1fr; }
  .modal-title-row, .template-card, .template-editor-toolbar { align-items: stretch; flex-direction: column; }
  .modal-title-row { padding-right: 32px; }
  .template-card > div:last-child { flex-wrap: wrap; }
  .template-meta-fields, .template-section-fields { grid-template-columns: 1fr; }
  .template-section-header { grid-template-columns: 32px 1fr; }
  .template-section-header > div { grid-column: 1 / -1; }
  .template-question-options { align-items: flex-start; flex-direction: column; }
  .template-editor-actions { bottom: -29px; margin: 18px -20px -29px; padding-inline: 20px; }
  .whatsapp-master-switch, .whatsapp-panel-title, .whatsapp-card { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
  .whatsapp-card-actions { justify-content: flex-start; max-width: none; }
  .whatsapp-test-panel, .three-fields, .four-fields { grid-template-columns: 1fr; }
  .whatsapp-test-panel > div { grid-column: auto; }
}

@media print {
  body { background: white; }
  .admin-header, .admin-content, .modal-backdrop > :not(.detail-modal), .modal-close, .share-panel, .detail-toolbar { display: none !important; }
  .modal-backdrop.detail-backdrop { position: static; display: block; overflow: visible; background: white; padding: 0; }
  .detail-modal { width: 100%; max-height: none; overflow: visible; box-shadow: none; padding: 0; }
  .respondent-summary { break-inside: avoid; }
  .answer-review article { break-inside: avoid; }
}

/* v0.4.0 — Genel formlar ve dosya yükleme */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.choice-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d8e0e8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 600 !important;
}
.choice-option input { width: auto !important; margin: 0; }
.choice-option:has(input:checked) { border-color: #156a78; box-shadow: 0 0 0 2px rgba(21,106,120,.10); }
.upload-box {
  margin-top: 12px;
  border: 1px dashed #aabac6;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbfc;
}
.upload-box > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.upload-pick {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 9px;
  border: 1px solid #d4e0e5;
  background: #fff;
  cursor: pointer;
}
.upload-pick strong { color: #0f5f6e; font-size: 15px; }
.upload-pick span { color: #60717d; font-size: 12px; line-height: 1.45; }
.upload-list { display: grid; gap: 8px; margin-top: 10px; }
.upload-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #dbe4e9;
}
.upload-file-row > span { display: flex; flex-direction: column; min-width: 0; }
.upload-file-row strong { overflow-wrap: anywhere; }
.upload-file-row small { color: #73828c; margin-top: 2px; }
.upload-file-row button {
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  color: #a02034;
  background: #fff0f2;
  cursor: pointer;
}
.upload-status { margin: 9px 0 0; color: #63747e; font-size: 12px; }
.general-forms-section { margin-bottom: 24px; }
.general-forms-section .section-title-row > div > p { margin: 5px 0 0; color: #63747e; font-size: 13px; }
.general-detail-modal { width: min(1180px, 94vw); }
.general-submission-heading { margin: 22px 0 10px; }
.admin-upload-list { display: grid; gap: 8px; margin-top: 8px; }
.admin-upload-list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid #d6e0e6;
  border-radius: 8px;
  color: #0f5f6e;
  background: #f8fbfc;
  font-weight: 700;
  text-decoration: none;
}
.admin-upload-list a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .choice-grid { grid-template-columns: 1fr; }
  .upload-file-row { align-items: flex-start; }
}

/* v0.4.1 - Yönetim kullanıcıları */
.users-modal { width: min(980px, 100%); }
.admin-user-editor { margin: 18px 0 22px; padding: 18px; border: 1px solid #e4e9f0; border-radius: 14px; background: #f8fafc; }
.admin-user-editor > label, .admin-user-editor .two-fields > label { display: grid; gap: 7px; color: #34445a; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.admin-user-editor input, .admin-user-editor select { width: 100%; border: 1px solid #cfd7e3; border-radius: 10px; padding: 11px 12px; background: white; color: #17243a; font: inherit; }
.admin-user-editor small { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.users-list { margin-top: 12px; }
.users-table td { vertical-align: middle; }
.users-table td:first-child strong { display: block; color: var(--navy); }
.current-user-note { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.user-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.table-action.danger-link { color: var(--red); }
.security-note { display: block; margin-top: 18px; padding: 13px 15px; border-radius: 12px; background: #f3f6fa; color: #526176; font-size: 11px; line-height: 1.55; }


/* v0.4.2 - Kullanıcı yönetimi görünür kontroller + audit */
.compact-modal { width: min(560px, 100%); }
.admin-user-editor h3 { margin: 0 0 14px; color: var(--navy); }
.inline-role-control { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 190px; }
.compact-select { min-width: 112px; border: 1px solid #cfd7e3; border-radius: 8px; padding: 8px 9px; background: white; color: var(--navy); font: inherit; font-size: 11px; font-weight: 700; }
.user-actions { min-width: 260px; }
.user-actions .table-action { white-space: nowrap; }
.audit-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e4e9f0; }
.audit-panel-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.audit-panel-head h3 { margin: 3px 0 5px; color: var(--navy); }
.audit-panel-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.audit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.audit-filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 15px 0 10px; }
.audit-filters label { display: grid; gap: 5px; min-width: 180px; color: #34445a; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.audit-filters select { border: 1px solid #cfd7e3; border-radius: 9px; padding: 9px 10px; background: white; color: var(--navy); font: inherit; }
.audit-list { min-height: 80px; }
.audit-table-wrap { max-height: 330px; overflow: auto; }
.audit-table th { position: sticky; top: 0; z-index: 1; background: #f4f7fb; }
.audit-table td strong { color: var(--navy); }
@media (max-width: 900px) {
  .users-modal { width: min(100%, 96vw); }
  .audit-panel-head { flex-direction: column; }
  .user-actions { min-width: 220px; }
}

/* v0.4.3 - Genel Form Tasarımcısı */
.general-section-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.general-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; white-space:nowrap; }
.general-editor-modal { width:min(1180px, 96vw); }
.general-preview-modal { width:min(860px, 94vw); }
.general-meta-fields { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(150px,.45fr); gap:13px; margin-top:20px; }
.general-meta-fields > label { display:grid; gap:7px; color:#34445a; font-size:10px; font-weight:800; letter-spacing:.05em; }
.general-meta-fields input:not([type="checkbox"]), .general-meta-fields textarea, .general-question-row select, .general-file-settings select { width:100%; border:1px solid #cbd4df; border-radius:8px; outline:none; background:white; padding:10px 11px; color:#263449; font-size:12px; font-weight:500; letter-spacing:0; line-height:1.45; }
.general-meta-fields input:not([type="checkbox"]), .general-question-row select, .general-file-settings select { height:42px; }
.general-meta-fields textarea { resize:vertical; }
.general-description-field, .general-slug-field { grid-column:1 / -1; }
.general-active-check { grid-column:1 / -1; }
.slug-input-row { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; overflow:hidden; border:1px solid #cbd4df; border-radius:8px; background:white; }
.slug-input-row > span { align-self:stretch; display:grid; place-items:center; border-right:1px solid #d8e0e9; background:#f2f5f8; padding:0 11px; color:#718095; font-size:12px; font-weight:800; letter-spacing:0; }
.slug-input-row input { border:0 !important; border-radius:0 !important; }
.general-slug-field small { color:#7b8796; font-size:9px; font-weight:600; letter-spacing:0; }
.general-question-top { display:grid; grid-template-columns:minmax(190px,.65fr) 1fr; align-items:end; gap:12px; }
.general-question-top > label:first-child { display:grid; gap:6px; color:#34445a; font-size:10px; font-weight:800; letter-spacing:.05em; }
.general-required-check { padding-bottom:10px; }
.general-file-settings { display:grid; grid-template-columns:minmax(280px,1.6fr) minmax(130px,.55fr) minmax(150px,.65fr); align-items:end; gap:10px; border:1px solid #dce4ed; border-radius:10px; background:#f8fafc; padding:12px; }
.general-file-settings > label { display:grid; gap:6px; color:#34445a; font-size:10px; font-weight:800; letter-spacing:.05em; }
.general-file-settings > .inline-check { align-self:center; grid-column:1 / -1; }
.general-extension-settings { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.general-extension-settings > strong { width:100%; color:#34445a; font-size:10px; letter-spacing:.05em; }
.general-extension-settings .inline-check { display:flex !important; width:auto; }
.general-question-actions { justify-content:flex-end; padding-top:3px; }
.general-preview-content { display:grid; gap:15px; margin-top:20px; }
.general-preview-section { overflow:hidden; border:1px solid #d8e0e9; border-radius:12px; background:#f8fafc; padding:16px; }
.general-preview-section > h3 { margin:0 0 5px; color:var(--navy); }
.general-preview-section > p { margin:0 0 13px; color:#69778a; font-size:11px; }
.general-preview-section article { display:grid; gap:6px; border-top:1px solid #e1e7ee; padding:12px 0; }
.general-preview-section article:first-of-type { border-top:0; }
.general-preview-section article > strong { color:#27374c; font-size:12px; }
.general-preview-section article > small { color:#798596; font-size:10px; }
.general-preview-control { border:1px dashed #bdc9d6; border-radius:8px; background:white; padding:10px 11px; color:#6e7b8c; font-size:11px; }
.question-content > input[type="text"], .question-content > input[type="date"], .question-content > input[type="number"] { width:100%; height:46px; border:1px solid #ccd5e0; border-radius:9px; outline:none; background:#fcfdff; padding:0 13px; color:#253247; font-size:13px; }
.question-content > input:focus { border-color:var(--navy); box-shadow:0 0 0 3px rgba(10,46,93,.09); }
@media (max-width: 760px) {
  .general-section-actions, .general-row-actions { align-items:stretch; flex-direction:column; }
  .general-meta-fields, .general-question-top, .general-file-settings { grid-template-columns:1fr; }
  .general-description-field, .general-slug-field, .general-active-check { grid-column:auto; }
  .general-file-settings > .inline-check { grid-column:auto; }
}

/* v0.4.4 - Konum soru tipi + Ücretsiz Keşif Talebi */
.location-box {
  margin-top: 12px;
  border: 1px solid #d6e1e7;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbfc;
}
.location-actions { display:flex; gap:9px; flex-wrap:wrap; align-items:center; }
.location-button, .location-clear {
  border: 0;
  border-radius: 9px;
  padding: 11px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.location-button { background:#0f6574; color:#fff; }
.location-button:hover { filter:brightness(.96); }
.location-button:disabled { opacity:.65; cursor:wait; }
.location-clear { background:#eef2f5; color:#5b6878; }
.location-status {
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top:11px;
  padding:10px 12px;
  border:1px solid #d9e6e9;
  border-radius:9px;
  background:#fff;
}
.location-status strong { color:#125e6b; font-size:12px; }
.location-status small { color:#6b7a88; font-size:10px; line-height:1.45; }
.location-status.location-status-error { border-color:#edc6cd; background:#fff8f9; }
.location-status.location-status-error strong { color:#9e2f41; }
.location-divider {
  display:flex;
  align-items:center;
  gap:10px;
  margin:13px 0 9px;
  color:#8a96a3;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.location-divider::before, .location-divider::after { content:""; height:1px; background:#dce5ea; flex:1; }
.location-manual-label { display:grid !important; gap:7px; color:#455466; font-size:11px !important; font-weight:800 !important; }
.location-manual-label input { width:100%; border:1px solid #cbd8df; border-radius:9px; padding:11px 12px; background:#fff; color:#253447; font:inherit; }
.location-privacy { margin:9px 0 0; color:#75838f; font-size:10px; line-height:1.5; }
.admin-location-answer { display:grid; gap:5px; margin-top:7px; }
.admin-location-answer a { display:inline-flex; width:max-content; max-width:100%; align-items:center; gap:6px; border:1px solid #cfe0e5; border-radius:8px; background:#f5fbfc; padding:9px 11px; color:#0f6574; font-weight:800; text-decoration:none; }
.admin-location-answer a:hover { text-decoration:underline; }
.admin-location-answer small { color:#748191; font-size:10px; }
@media (max-width:720px) {
  .location-actions { display:grid; grid-template-columns:1fr; }
  .location-button, .location-clear { width:100%; }
}

.general-submission-tools { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.general-submission-tools strong { white-space:nowrap; }
@media (max-width: 720px) { .general-submission-tools { align-items:flex-end; flex-direction:column-reverse; gap:7px; } }

/* v0.4.6 - Zorunlu alan yonlendirme ve gorunurluk */
.global-alert { align-items: center; }
.global-alert.actionable { cursor: pointer; box-shadow: 0 8px 24px rgba(207, 20, 43, .10); }
.global-alert.actionable:hover { border-color: #dc7e8b; background: #fff0f2; }
.global-alert-icon { flex: 0 0 22px; }
.global-alert-copy { display: grid; min-width: 0; gap: 3px; }
.global-alert-copy b { line-height: 1.35; }
.global-alert-copy small { color: #9b4a57; font-size: 11px; line-height: 1.4; }
.global-alert .global-alert-action {
  flex: 0 0 auto;
  min-height: 36px;
  margin-left: auto;
  border: 1px solid #d98a95;
  border-radius: 8px;
  background: white;
  padding: 0 12px;
  color: #941f30;
  font-size: 11px;
  font-weight: 900;
}
.global-alert .global-alert-action:hover { background: #fff8f9; }
.global-alert .global-alert-close { flex: 0 0 auto; margin-left: 0; padding: 4px 7px; }

.section-nav button.has-required-pending { box-shadow: inset 4px 0 #e5a11a; }
.section-nav button.has-required-error { background: #fff4f5; color: #8e1c2b; box-shadow: inset 5px 0 var(--red); }
.section-nav button.has-required-error .section-number { background: #fff0f2; color: var(--red); }
.section-nav button.required-complete .section-number { background: #e9f7f0; color: var(--success); }
.section-required-count { display: block; margin-top: 4px; color: #b26a0a; font-size: 9px; font-style: normal; font-weight: 900; }
.section-nav button.has-required-error .section-required-count { color: var(--red); }
.section-nav button.required-complete .section-required-count { color: var(--success); }

.section-required-summary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 11px;
  border: 1px solid rgba(255, 208, 111, .38);
  border-radius: 999px;
  background: rgba(255, 192, 65, .13);
  padding: 6px 10px;
  color: #ffe0a0;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.3;
}
.section-required-summary.error { border-color: rgba(255, 136, 151, .5); background: rgba(207, 20, 43, .23); color: #ffd4da; }
.section-required-summary.complete { border-color: rgba(152, 226, 184, .36); background: rgba(25, 135, 84, .18); color: #c8f3db; }

.question-card { scroll-margin-top: 118px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease; }
.question-card.required-question { border-left: 4px solid #e5a11a; }
.question-card.required-unanswered { background: linear-gradient(90deg, #fffbf2 0, #fff 86px); }
.question-card.required-complete { border-left-color: var(--success); }
.question-card.required-missing { border-color: #e89aa5; border-left: 5px solid var(--red); background: linear-gradient(90deg, #fff2f4 0, #fff 100px); box-shadow: 0 8px 26px rgba(207, 20, 43, .10); }
.question-card.required-missing .question-index { background: #fff0f2; color: var(--red); }
.question-card.required-focus-pulse { outline: 4px solid rgba(207, 20, 43, .16); outline-offset: 3px; animation: required-focus-pulse 1.05s ease-in-out 2; }
@keyframes required-focus-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 26px rgba(207, 20, 43, .10); }
  50% { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(207, 20, 43, .20); }
}
.question-title-label { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px; }
.required-badge, .optional-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 7px; font-size: 8px; font-weight: 900; letter-spacing: .08em; line-height: 1; }
.required-badge { border: 1px solid #efb3bb; background: #fff0f2; color: var(--red); }
.optional-badge { border: 1px solid #d7dfe8; background: #f4f6f9; color: #7b8797; }
.required-state-text { display: flex; align-items: center; gap: 5px; margin: 7px 0 1px; color: #a7670b; font-size: 10px; font-weight: 800; }
.required-state-text::before { content: "!"; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: #fff0d3; color: #a7670b; font-size: 9px; font-weight: 900; }
.required-state-text.complete { color: var(--success); }
.required-state-text.complete::before { content: "✓"; background: #e9f7f0; color: var(--success); }
.required-missing .required-state-text { color: var(--red); }
.required-missing .required-state-text::before { background: #ffe5e9; color: var(--red); }
.question-card.required-missing input:not([type="radio"]):not([type="checkbox"]),
.question-card.required-missing textarea,
.question-card.required-missing .choice-option,
.question-card.required-missing .upload-box,
.question-card.required-missing .location-box { border-color: #df8a96; }
.upload-pick:focus-visible, .location-button:focus-visible, .question-card:focus-visible { outline: 3px solid rgba(207, 20, 43, .24); outline-offset: 3px; }

@media (max-width: 720px) {
  .global-alert { align-items: stretch; flex-wrap: wrap; }
  .global-alert-copy { flex: 1 1 calc(100% - 48px); }
  .global-alert .global-alert-action { order: 3; width: 100%; margin-left: 32px; }
  .global-alert .global-alert-close { position: absolute; right: 20px; }
  .section-required-summary { border-radius: 10px; }
  .question-title-label { align-items: flex-start; flex-direction: column; gap: 6px; }
}
