:root {
  color-scheme: light;
  --ink: #123330;
  --muted: #617572;
  --green: #0d3b38;
  --green-2: #155a54;
  --mint: #b8f2df;
  --mint-soft: #eafaf4;
  --line: #dce8e4;
  --paper: #ffffff;
  --bg: #f1f7f5;
  --danger: #b33d32;
  --shadow: 0 28px 70px rgba(13, 59, 56, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(184, 242, 223, .55), transparent 26rem),
    radial-gradient(circle at 92% 98%, rgba(89, 177, 160, .18), transparent 30rem),
    var(--bg);
}

button, input, textarea, select { font: inherit; }
button, summary, select, input[type="color"] { cursor: pointer; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.brand { color: var(--green); display: inline-flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { position: relative; display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); gap: 4px; width: 32px; height: 32px; padding: 3px; background: var(--green); border-radius: 8px; }
.brand-mark i { display: block; border: 2px solid var(--mint); }
.brand-mark i:last-child { border: 0; background: var(--mint); width: 5px; height: 5px; align-self: end; justify-self: end; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-action { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; color: var(--green); background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: .82rem; font-weight: 780; text-decoration: none; }
.top-action:hover { background: white; border-color: #b9d2cc; }
.quiet-action { color: var(--muted); }
.signup-action { color: white; background: var(--green); border-color: var(--green); }
.signup-action:hover { color: var(--green); }
.user-name { max-width: 130px; color: var(--muted); font-size: .8rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-picker { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 8px; color: var(--green); background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 999px; }
.language-picker select { width: auto; min-height: 34px; margin: 0; padding: 4px 22px 4px 2px; color: var(--green); background: transparent; border: 0; box-shadow: none; font-size: .78rem; font-weight: 750; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); background: rgba(255,255,255,.91); border: 1px solid rgba(255,255,255,.8); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(16px); }
.editor-panel { padding: clamp(28px, 4vw, 50px); }
.preview-panel { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); background: var(--green); color: white; }

.eyebrow { margin: 0 0 8px; color: #39766f; font-size: .74rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.intro h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; line-height: .98; }
.intro > p:last-child { color: var(--muted); margin: 14px 0 0; font-size: 1rem; }

.type-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 30px 0 28px; }
.type-tabs button { color: var(--muted); background: #f4f8f7; border: 1px solid transparent; border-radius: 999px; padding: 10px 15px; font-size: .9rem; font-weight: 750; transition: .18s ease; }
.type-tabs button:hover { color: var(--green); border-color: var(--line); }
.type-tabs button[aria-selected="true"] { color: var(--green); background: var(--mint); border-color: var(--mint); }

.form-view { animation: appear .22s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } }
label { display: block; color: #294b47; font-size: .86rem; font-weight: 750; }
label span { color: var(--muted); font-weight: 500; }
input, textarea, select { width: 100%; margin-top: 8px; color: var(--ink); background: white; border: 1px solid #cbdad6; border-radius: 12px; padding: 13px 14px; min-height: 48px; outline: 0; transition: border .18s, box-shadow .18s; }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: #3b8e83; box-shadow: 0 0 0 4px rgba(59,142,131,.13); }
.hint { margin: 9px 0 0; color: var(--muted); font-size: .82rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-grid .wide { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 9px; min-height: 32px; }
.check-row input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--green); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 80px; }
.password-wrap button { position: absolute; right: 7px; top: 15px; color: var(--green-2); background: transparent; border: 0; padding: 8px; font-size: .75rem; font-weight: 800; }
.tracking-switch { margin-top: 17px; padding: 12px 13px; background: var(--mint-soft); border: 1px solid #d1ece3; border-radius: 12px; }
.tracking-options { margin-top: 10px; padding: 15px; background: #f7fbfa; border: 1px solid var(--line); border-radius: 13px; }
.account-hint { margin: 9px 2px 0; color: var(--muted); font-size: .8rem; }
.account-hint a { color: var(--green-2); font-weight: 750; }
.small-action { margin-top: 12px; color: white; background: var(--green); border: 0; border-radius: 10px; padding: 10px 13px; font-size: .82rem; font-weight: 800; }
.small-action:disabled { opacity: .5; cursor: wait; }
.error { min-height: 22px; margin-top: 12px; color: var(--danger); font-size: .84rem; font-weight: 650; }

.design-options { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 18px; }
.design-options summary { color: var(--green-2); font-size: .87rem; font-weight: 800; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.option-grid label:last-child { grid-column: 1 / -1; }
input[type="color"] { height: 47px; padding: 5px; }
.mobile-preview-button { display: none; }

.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.preview-head .eyebrow { color: #81c8ba; }
.preview-head h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.03em; }
.status-badge { color: #a5c9c2; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 10px; font-size: .72rem; font-weight: 800; }
.status-badge.valid { color: var(--mint); background: rgba(184,242,223,.1); }
.canvas-frame { position: relative; display: grid; place-items: center; width: 100%; margin: 30px 0 25px; padding: clamp(18px, 4vw, 30px); background: white; border-radius: 20px; box-shadow: 0 18px 40px rgba(0,0,0,.16); }
#qr-canvas { display: block; width: 100%; max-width: 100%; height: auto !important; aspect-ratio: 1 / 1; flex: none; image-rendering: pixelated; }
.empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-align: center; padding: 24px; }
.empty-state.hidden { display: none; }
.empty-state strong { color: #385b56; font-size: 1rem; }
.empty-state span:last-child { font-size: .82rem; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--green); background: var(--mint-soft); border-radius: 14px; font-size: 1.7rem; }
.actions { display: grid; gap: 10px; margin-top: auto; }
.actions button { min-height: 50px; border-radius: 12px; border: 0; padding: 12px 16px; font-weight: 820; transition: transform .15s, opacity .15s, background .15s; }
.actions button:not(:disabled):active { transform: translateY(1px); }
.actions button:disabled { cursor: not-allowed; opacity: .42; }
.primary { color: var(--green); background: var(--mint); }
.primary:hover:not(:disabled) { background: #d0faec; }
.primary span { font-size: 1.15rem; margin-right: 7px; }
.secondary { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18) !important; }
.secondary:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.privacy-note { margin: 18px 0 0; color: #9fc0ba; font-size: .75rem; line-height: 1.5; text-align: center; }
.privacy-note span { color: #9fc0ba; font-size: .68rem; }
.statistics-panel { margin-top: 24px; padding: clamp(24px, 4vw, 38px); background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 55px rgba(13,59,56,.09); }
.statistics-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.statistics-head h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-cards article { padding: 17px; background: var(--mint-soft); border: 1px solid #d7eee7; border-radius: 15px; }
.stat-cards span { display: block; min-height: 36px; color: var(--muted); font-size: .78rem; font-weight: 730; }
.stat-cards strong { display: block; margin-top: 8px; color: var(--green); font-size: 1.75rem; letter-spacing: -.04em; }
.statistics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.stats-box { padding: 18px; border: 1px solid var(--line); border-radius: 15px; }
.stats-box h3 { margin: 0 0 14px; font-size: .97rem; }
.type-statistics, .daily-statistics { display: grid; gap: 9px; }
.type-row, .day-row { display: grid; grid-template-columns: 92px 1fr 38px; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; }
.stat-track { height: 8px; overflow: hidden; background: #edf3f1; border-radius: 99px; }
.stat-track i { display: block; height: 100%; background: #3b8e83; border-radius: inherit; }
.type-row strong, .day-row strong { color: var(--green); text-align: right; }
.tracked-links-box { margin-top: 14px; }
.admin-overview { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.admin-overview h3 { margin: 0 0 14px; font-size: 1rem; }
.admin-overview .stat-cards { grid-template-columns: repeat(3, 1fr); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
td strong, td small { display: block; }
td small { max-width: 420px; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.scan-count { color: var(--green); font-weight: 850; }

.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card { width: min(100%, 430px); padding: 30px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.auth-card .brand { margin-bottom: 28px; }
.auth-card h1 { margin: 0; font-size: 1.8rem; letter-spacing: -.04em; }
.auth-card > p { color: var(--muted); line-height: 1.55; }
.auth-card form { display: grid; gap: 15px; margin-top: 22px; }
.auth-submit { min-height: 49px; color: white; background: var(--green); border: 0; border-radius: 12px; font-weight: 820; }
.auth-error { color: var(--danger) !important; font-size: .86rem; font-weight: 700; }
.auth-switch { margin: 20px 0 0; text-align: center; font-size: .88rem; }
.auth-switch a { color: var(--green-2); font-weight: 800; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.setup-card { width: min(100%, 520px); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 4px 0; color: var(--muted); font-size: .76rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--green-2); font-weight: 700; text-decoration: none; }
.footer-link-button { margin: 0; padding: 0; color: var(--green-2); background: transparent; border: 0; font-size: inherit; font-weight: 700; }
.consent-banner { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; width: min(760px, calc(100% - 28px)); padding: 20px; color: var(--ink); background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 70px rgba(13,59,56,.2); }
.consent-banner[hidden] { display: none; }
.consent-copy strong { display: block; margin-bottom: 5px; font-size: .98rem; }
.consent-copy p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.consent-copy a { color: var(--green-2); font-weight: 750; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions button { min-height: 42px; padding: 9px 13px; color: var(--green); background: var(--mint-soft); border: 1px solid var(--line); border-radius: 10px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.consent-actions .consent-accept { color: white; background: var(--green); border-color: var(--green); }
.seo-content { margin-top: 26px; padding: clamp(30px, 5vw, 56px); background: white; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 20px 55px rgba(13,59,56,.07); }
.seo-content h2 { margin: 0 0 18px; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.seo-intro { max-width: 820px; margin-bottom: 40px; }
.seo-intro > p:last-child, .guide-heading p { color: var(--muted); font-size: 1rem; line-height: 1.72; }
.benefit-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit-grid article, .guide-grid article { padding: 22px; background: var(--mint-soft); border: 1px solid #d7eee7; border-radius: 17px; }
.benefit-grid h3, .guide-grid h3 { margin: 12px 0 8px; font-size: 1rem; }
.benefit-grid p, .guide-grid p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.6; }
.benefit-check { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--green); border-radius: 50%; font-weight: 900; }
.how-section, .guide-heading, .faq-section { margin-top: 42px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.how-steps li { display: flex; gap: 13px; }
.how-steps li > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; color: var(--green); background: var(--mint); border-radius: 10px; font-weight: 900; }
.how-steps h3 { margin: 2px 0 6px; font-size: .96rem; }
.how-steps p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.guide-heading p { margin: -8px 0 18px; }
.guide-grid article { display: flex; flex-direction: column; background: white; }
.guide-grid .guide-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--mint); background: var(--green); border-radius: 11px; font-size: 1.1rem; font-weight: 900; }
.guide-grid a { margin-top: auto; padding-top: 18px; color: var(--green-2); font-size: .86rem; font-weight: 850; text-decoration: none; }
.faq-section { max-width: 850px; }
.faq-section details, .guide-faq details { border-top: 1px solid var(--line); }
.faq-section details:last-child, .guide-faq details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary, .guide-faq summary { padding: 17px 2px; color: var(--ink); font-weight: 800; }
.faq-section details p, .guide-faq details p { margin: -4px 2px 18px; color: var(--muted); line-height: 1.65; }
.guide-shell { max-width: 1050px; }
.guide-languages { display: flex; gap: 3px; padding: 3px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 999px; }
.guide-languages a { display: grid; place-items: center; min-width: 31px; min-height: 31px; color: var(--muted); border-radius: 50%; font-size: .7rem; font-weight: 850; text-decoration: none; }
.guide-languages a[aria-current="page"] { color: var(--green); background: var(--mint); }
.breadcrumbs { display: flex; gap: 9px; margin: 4px 0 18px; color: var(--muted); font-size: .8rem; }
.breadcrumbs a { color: var(--green-2); text-decoration: none; }
.guide-article { padding: clamp(28px, 6vw, 68px); background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.guide-hero { max-width: 820px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.guide-hero h1 { margin: 0; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.guide-hero > p:last-of-type { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.guide-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 13px 17px; color: white; background: var(--green); border-radius: 12px; font-weight: 850; text-decoration: none; }
.guide-article > section { max-width: 820px; margin-top: 36px; }
.guide-article section h2 { margin: 0 0 10px; font-size: 1.45rem; letter-spacing: -.03em; }
.guide-article section > p { color: var(--muted); line-height: 1.75; }
.guide-steps { padding-left: 23px; color: var(--muted); line-height: 1.8; }
.guide-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 44px; padding: 24px; background: var(--mint-soft); border-radius: 18px; }
.guide-bottom-cta h2 { margin: 0; font-size: 1.2rem; }
.legal-page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 60px; }
.legal-card { margin-top: 26px; padding: clamp(24px, 5vw, 48px); background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.legal-card h1 { margin: 0 0 28px; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.045em; }
.legal-card section { margin-top: 24px; }
.legal-card h2 { margin: 0 0 8px; font-size: 1.05rem; }
.legal-card p { color: var(--muted); line-height: 1.7; }
.legal-contact { padding-top: 18px; border-top: 1px solid var(--line); }
.legal-card a { color: var(--green-2); font-weight: 750; }
.back-link { display: inline-block; margin-top: 16px; }
.admin-shell { width: min(1320px, calc(100% - 40px)); }
.admin-hero { margin-bottom: 22px; padding: clamp(24px, 4vw, 38px); color: white; background: var(--green); border-radius: 24px; box-shadow: var(--shadow); }
.admin-hero .eyebrow { color: #91d6c8; }
.admin-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; }
.admin-hero p:last-child { max-width: 760px; margin: 12px 0 0; color: #c8ddd8; line-height: 1.6; }
.admin-flash { margin: 0 0 18px; padding: 13px 15px; border-radius: 12px; font-weight: 750; }
.admin-flash.success { color: #135d45; background: #ddf7ec; border: 1px solid #b5e8d6; }
.admin-flash.error { color: #8e3028; background: #fff0ee; border: 1px solid #f2c9c4; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-stat-grid article { min-width: 0; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.admin-stat-grid span { display: block; min-height: 34px; color: var(--muted); font-size: .76rem; font-weight: 760; }
.admin-stat-grid strong { display: block; margin-top: 7px; color: var(--green); font-size: 1.75rem; letter-spacing: -.04em; }
.admin-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; margin-bottom: 18px; }
.admin-card { padding: clamp(20px, 3vw, 28px); background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 35px rgba(13,59,56,.07); }
.admin-card h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.admin-card h3 { margin: 0; font-size: .95rem; }
.admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-card-head > strong { color: var(--green); font-size: 1.55rem; }
.admin-card-text { margin: 8px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.admin-version { padding: 6px 9px; color: var(--green); background: var(--mint-soft); border-radius: 999px; font-size: .74rem; font-weight: 850; }
.admin-details { display: grid; gap: 0; margin: 20px 0; }
.admin-details div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.admin-details dt { color: var(--muted); font-size: .82rem; }
.admin-details dd { margin: 0; font-size: .84rem; font-weight: 760; text-align: right; }
.admin-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .7rem; font-weight: 850; }
.admin-badge.active { color: #126044; background: #dcf6eb; }
.admin-badge.disabled { color: #963a31; background: #ffebe8; }
.admin-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; color: white; background: var(--green); border: 1px solid var(--green); border-radius: 11px; font-size: .82rem; font-weight: 820; }
.admin-button.secondary { color: var(--green); background: white; border-color: #b9d2cc; }
.admin-maintenance-actions { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 14px; margin-top: 18px; }
.admin-upload { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.admin-upload label { font-size: .78rem; }
.admin-upload input[type="file"] { min-height: 42px; margin-top: 6px; padding: 8px 10px; font-size: .76rem; }
.admin-warning { margin: 14px 0 0; color: #765c19; background: #fff8db; border-radius: 10px; padding: 10px 12px; font-size: .76rem; line-height: 1.5; }
.admin-backups { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-backups ul { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.admin-backups li { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .76rem; }
.admin-backups li span, .admin-backups li small { display: block; min-width: 0; overflow-wrap: anywhere; }
.admin-backups li small { margin-top: 2px; color: #7a8e8b; }
.admin-backups a { color: var(--green-2); font-weight: 800; text-decoration: none; }
.admin-table-card { margin-top: 18px; }
.admin-table { min-width: 850px; margin-top: 18px; }
.admin-table td { max-width: 330px; }
.admin-table td small { max-width: 330px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.admin-text-button { padding: 0; color: var(--green-2); background: transparent; border: 0; font-size: .77rem; font-weight: 820; }
.admin-text-button.danger { color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 5; color: white; background: #102d2a; border-radius: 999px; padding: 11px 17px; font-size: .84rem; font-weight: 750; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .shell { width: min(100% - 22px, 680px); padding-top: 18px; }
  .privacy { font-size: 0; padding: 8px; }
  .privacy span { font-size: .75rem; }
  .workspace { grid-template-columns: 1fr; border-radius: 22px; }
  .preview-panel { min-height: 0; }
  .canvas-frame { max-width: 360px; justify-self: center; margin-block: 22px; }
  .mobile-preview-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
    color: white;
    background: var(--green);
    border: 0;
    border-radius: 12px;
    font-weight: 820;
  }
  .mobile-preview-button:disabled { opacity: .38; cursor: not-allowed; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .admin-overview .stat-cards { grid-template-columns: 1fr 1fr; }
  .statistics-grid { grid-template-columns: 1fr; }
  .benefit-grid, .guide-grid, .how-steps { grid-template-columns: 1fr; }
  .guide-bottom-cta { align-items: flex-start; flex-direction: column; }
  .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  body { background: white; }
  .shell { width: 100%; padding: 0; }
  .topbar { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .brand { font-size: .96rem; }
  .brand-mark { width: 29px; height: 29px; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); }
  .top-actions { gap: 5px; }
  .topbar { flex-wrap: wrap; }
  .top-action { min-height: 34px; padding: 7px 10px; font-size: .74rem; }
  .language-picker { min-height: 34px; padding-inline: 7px; }
  .language-picker select { max-width: 76px; min-height: 30px; font-size: .72rem; }
  .user-name { display: none; }
  .admin-shell { width: 100%; padding-bottom: 30px; }
  .admin-shell > section, .admin-shell > .admin-grid { margin-inline: 12px; }
  .admin-hero { margin-inline: 0 !important; border-radius: 0; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-stat-grid article { padding: 14px; }
  .admin-maintenance-actions, .admin-upload { grid-template-columns: 1fr; }
  .admin-maintenance-actions .admin-button, .admin-upload .admin-button { width: 100%; }
  .workspace { border: 0; border-radius: 0; box-shadow: none; }
  .editor-panel { padding: 24px 16px 28px; }
  .preview-panel { min-height: 0; padding: 24px 16px 28px; }
  .intro h1 { font-size: 2.15rem; }
  .intro > p:last-child { margin-top: 10px; font-size: .94rem; }
  .field-grid, .option-grid { grid-template-columns: 1fr; }
  .field-grid .wide, .option-grid label:last-child { grid-column: auto; }
  .type-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 22px 0; }
  .type-tabs button { width: 100%; padding: 10px 5px; font-size: .82rem; }
  input, textarea, select { font-size: 1rem; }
  .design-options { margin-top: 10px; }
  .preview-head h2 { font-size: 1.25rem; }
  .status-badge { padding: 6px 9px; }
  .canvas-frame { width: min(100%, 300px); height: auto; margin: 18px auto; padding: 17px; border-radius: 16px; }
  .actions button { min-height: 48px; }
  .privacy-note { margin-top: 14px; }
  .statistics-panel { margin: 0; padding: 24px 16px; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
  .statistics-head { align-items: flex-start; }
  .stat-cards { gap: 8px; }
  .stat-cards article { padding: 14px; }
  .stat-cards strong { font-size: 1.5rem; }
  .type-row, .day-row { grid-template-columns: 78px 1fr 32px; gap: 7px; }
  th, td { padding: 10px 7px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  .auth-card { padding: 24px 19px; border-radius: 18px; }
  .site-footer { flex-direction: column; padding: 22px 16px; text-align: center; }
  .site-footer nav { justify-content: center; }
  .consent-banner { bottom: max(10px, env(safe-area-inset-bottom)); grid-template-columns: 1fr; gap: 14px; width: calc(100% - 20px); padding: 17px; border-radius: 15px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions button { white-space: normal; }
  .seo-content { margin: 0; padding: 32px 16px; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
  .guide-article { padding: 30px 17px; border-width: 1px 0; border-radius: 0; box-shadow: none; }
  .breadcrumbs { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
