body { background: var(--page); color: var(--text); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; translate: 0 -160%; padding: 10px 14px; background: var(--text); color: white; border-radius: 8px; }
.skip-link:focus { translate: 0; }
.tool-hero { width: min(1320px, calc(100% - 32px)); margin: auto; padding: clamp(60px,9vw,120px) 0 clamp(40px,6vw,70px); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: clamp(40px,8vw,120px); align-items: end; }
.eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tool-hero h1 { margin: 14px 0 22px; font-family: var(--font-serif); font-size: clamp(50px,7vw,96px); line-height: 1; letter-spacing: -.06em; }
.tool-hero h1 em { color: var(--primary); font-style: normal; }
.tool-hero p:last-child { max-width: 680px; color: var(--muted); line-height: 1.9; }
.privacy-card { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.privacy-dot { width: 10px; height: 10px; flex: none; margin-top: 5px; border-radius: 50%; background: var(--accent); }
.privacy-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.qr-workspace { width: min(1200px, calc(100% - 24px)); margin: auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.65fr); gap: 14px; }
.control-card, .preview-card, .content-section { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.control-card { overflow: hidden; }
.mode-tabs { display: flex; gap: 4px; padding: 12px 14px 0; background: var(--surface-soft); }
.mode-tabs button { min-height: 42px; border: 1px solid transparent; border-radius: 10px 10px 0 0; background: transparent; color: var(--muted); padding-inline: 18px; }
.mode-tabs button[aria-selected="true"] { border-color: var(--line); border-bottom-color: var(--surface); background: var(--surface); color: var(--primary); }
.form-panel { display: grid; gap: 14px; padding: 22px; }
.form-panel label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
textarea, input, select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); padding: 10px 12px; }
textarea { min-height: 180px; resize: vertical; }
.inline-option { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.inline-option input { min-height: auto; }
.options { margin: 0 22px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
.options legend { font-weight: 800; }
.options label { display: grid; gap: 7px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.primary-button { width: calc(100% - 44px); min-height: 48px; margin: 20px 22px 0; border: 0; border-radius: 12px; background: var(--primary); color: white; font-weight: 800; }
#app-status { margin: 12px 22px 22px; color: var(--muted); font-size: 11px; }

.preview-card { padding: 28px; align-self: start; }
.preview-card h2 { margin: 7px 0 18px; font-family: var(--font-serif); }
.preview-stage { display: grid; place-items: center; min-height: 360px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
#qr-canvas { width: min(100%, 320px); height: auto; background: white; }
.preview-card dl { display: grid; margin: 20px 0; }
.preview-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.preview-card dt { color: var(--muted); font-size: 11px; }
.preview-card dd { margin: 0; font-weight: 700; }
.download-button { min-height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--primary); color: white; font-weight: 800; }

.content-section { width: min(1180px, calc(100% - 32px)); margin: 30px auto 0; padding: 28px; }
.content-section h2 { margin: 0 0 18px; font-family: var(--font-serif); }

@media (max-width: 880px) { .tool-hero, .qr-workspace { grid-template-columns: 1fr; } }
