* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  background: #f6f8f3; color: #193b30;
  font-family: Tahoma, Arial, sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #318457; outline-offset: 3px; }
.site-header { background: #fff; border-bottom: 1px solid #dce5da; }
.header-inner, .home-main, .site-footer { max-width: 1230px; margin-inline: auto; padding-inline: clamp(16px, 4.2vw, 58px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand, .header-nav, .header-nav a { display: inline-flex; align-items: center; text-decoration: none; }
.brand { gap: 9px; font-size: 32px; line-height: 1; }
.brand-mark { width: 36px; height: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 10px; background: #173f32; padding: 7px; direction: ltr; }
.brand-mark i { border: 2px solid #d9f2ae; border-radius: 2px; }
.brand-mark i:last-child { border: 0; background: conic-gradient(#d9f2ae 25%,transparent 25% 50%,#d9f2ae 50% 75%,transparent 75%); }
.header-nav { gap: 10px; font-weight: bold; font-size: 14px; }
.header-nav a { padding: 8px 17px; border-radius: 10px; min-height: 37px; }
.header-nav .scanner-link { color: #365845; }
.header-nav .library-link { background: #e8f0e3; }
.header-nav a:hover { background: #dbead5; }
.home-main { padding-block: 22px 44px; }
.app { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 22px; border-top: 1px solid #dbe4d8; padding-top: 34px; scroll-margin-top: 18px; }
.panel { min-width: 0; padding: clamp(20px,3vw,32px); background: white; border: 1px solid #dde5d9; border-radius: 20px; }
.panel h2 { font-size: 22px; margin: 0 0 18px; }
.tabs { display: flex; gap: 4px; background: #f2f6ef; padding: 4px; border-radius: 11px; margin-bottom: 22px; }
.app button { border: 0; border-radius: 8px; padding: 11px 14px; }
.tabs button { flex: 1; background: transparent; color: #506353; }
.tabs button.active { background: #204536; color: white; }
.app label { display: block; font-size: 13px; margin: 15px 0 7px; }
.app input, .app textarea, .app select { width: 100%; border: 1px solid #dce4da; border-radius: 9px; padding: 11px; background: #fcfdfa; color: #173a30; }
.app textarea { min-height: 95px; resize: vertical; }
.hint, .live { color: #5b705e; font-size: 12px; line-height: 1.75; }
.options { display: flex; gap: 15px; border-top: 1px solid #e4eae1; margin-top: 18px; }
.options>div { flex: 1; min-width: 0; }
input[type=color] { height: 43px; padding: 5px; }
.preview { display: flex; flex-direction: column; align-items: center; text-align: center; background: #edf3e9; }
.qrbox { display: grid; place-items: center; width: min(100%,230px); aspect-ratio: 1; background: white; border-radius: 14px; }
.qrbox canvas { width: 90%; height: auto; image-rendering: pixelated; }
.live { margin: 8px 0; }
.download { display: flex; width: 100%; gap: 8px; }
.download button { flex: 1; background: #234a36; color: white; font-weight: bold; }
.download button:last-child { background: white; color: #264a33; border: 1px solid #d7e0d2; }
#design-quick { background: transparent; color: #28573d; text-decoration: underline; }
.app button:disabled { opacity: .5; cursor: default; }
#error { min-height: 1em; color: #98352a; font-size: 12px; }
.hidden { display: none; }
.site-footer { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; border-top: 1px solid #dce5da; font-size: 13px; color: #526756; }
@media (max-width:740px) {
  .app { grid-template-columns: 1fr; }
  .header-inner { min-height: 58px; }
  .header-nav { gap: 4px; }
  .header-nav a { padding-inline: 11px; }
  .home-main { padding-block: 16px 28px; }
}

.quick-form .quick-intro { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.quick-page .app { border: 0; padding-block-start: 8px; align-items: start; }
.quick-page #quick-title { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); }
