/* Cove — generate-free-qr.com. Motor IDs untouched. */
:root {
  --sand: #f6f1e7;
  --foam: #fffdf8;
  --ink: #1c1914;
  --tide: #0d4f5b;
  --kelp: #1a7a6d;
  --coral: #e25c4a;
  --gold: #f3c98b;
  --mute: #5c574e;
  --line: #d8cfc0;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--sand) !important;
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden !important;
  max-width: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #0d4f5b #f6f1e7;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--sand) !important;
  color: var(--ink) !important;
  font: 17px/1.6 var(--font-body);
  overflow-x: hidden !important;
}

body, h1, h2, h3 {
  text-transform: none !important;
  overflow-wrap: break-word;
  word-break: normal;
}

a, summary, button, label {
  overflow-wrap: normal;
  word-break: normal;
}

button,
.tab,
.more-toggle,
.more-option,
.tabs .tab {
  text-transform: none !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  white-space: nowrap !important;
}

.sky {
  position: fixed;
  inset: -18vh -12vw;
  width: 124vw;
  height: 136vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 8% -6%, rgba(243, 201, 139, 0.5), transparent 62%),
    radial-gradient(900px 480px at 102% 4%, rgba(13, 79, 91, 0.14), transparent 58%),
    radial-gradient(900px 420px at 50% 118%, rgba(26, 122, 109, 0.16), transparent 60%),
    linear-gradient(180deg, #fbf6ec 0%, var(--sand) 46%, #e7f0ee 100%);
}

.mast,
.shore,
.harbour {
  position: relative;
  z-index: 1;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 64px;
  padding: 10px 14px;
  background: #f6f1e7;
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.mast__end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tide);
  text-decoration: none;
  min-width: 0;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.mast__nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.mast__nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 4px;
  white-space: nowrap;
  touch-action: manipulation;
}

.mast__nav a:hover { color: var(--tide); }

.lang-backdrop,
button.lang-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100040 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(28, 25, 20, 0.22) !important;
  color: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.lang-backdrop[hidden] { display: none !important; }

.langlist { position: relative; flex: 0 0 auto; z-index: 100050; }

.langlist summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  max-width: min(168px, 42vw);
  padding: 8px 34px 8px 12px;
  border: 1.5px solid var(--tide);
  border-radius: 999px;
  background: var(--foam);
  color: var(--tide);
  font: 700 14px/1.2 var(--font-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.langlist summary::-webkit-details-marker { display: none; }

.langlist summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: translateY(-70%) rotate(45deg);
}

.langlist[open] summary { background: #fff; }

.langlist ul,
#lang-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 100060;
  margin: 0;
  padding: 8px 0;
  min-width: 200px;
  max-width: min(280px, calc(100vw - 16px));
  max-height: min(60vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  border: 1.5px solid #d8cfc0;
  border-radius: 16px;
  background: #fffdf8 !important;
  color: #1c1914 !important;
  box-shadow: 0 16px 40px rgba(28, 25, 20, 0.12);
}

#lang-menu-list.is-anchored {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
}

.langlist a,
#lang-menu-list a {
  display: block !important;
  padding: 10px 16px !important;
  color: #1c1914 !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.langlist a[aria-current="page"],
#lang-menu-list a[aria-current="page"] {
  background: #f3eee4 !important;
  color: #0d4f5b !important;
}

@media (hover: hover) and (pointer: fine) {
  .langlist a:hover,
  #lang-menu-list a:hover {
    background: #f3eee4 !important;
    color: #0d4f5b !important;
  }
}

html[dir="rtl"] .langlist ul { right: auto; left: 0; }
html[dir="rtl"] .mast__nav { margin-inline-start: 0; margin-inline-end: auto; }

.shore { width: 100%; }

.page-inner .shore {
  width: min(1080px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

@media (min-width: 960px) {
  .page-guide .shore {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
    align-items: start;
  }
}

.tide {
  width: min(1080px, calc(100% - 32px));
  margin: 36px auto 8px;
  text-align: center;
}

.tide__kicker {
  margin: 0 auto 10px;
  max-width: 42ch;
  color: var(--kelp);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tide h1 {
  margin: 0 auto 12px;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--tide);
}

.tide__lead {
  margin: 0 auto 8px;
  max-width: none;
  color: var(--mute);
  font-size: clamp(0.92rem, 3.4vw, 1.15rem);
  white-space: nowrap;
}

.tide__go,
.harbour__biz,
.leaf__more a,
.islands__more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  white-space: normal;
  text-align: center;
}

.boat {
  width: min(1440px, calc(100% - 20px));
  margin: 20px auto 8px;
}

.boat__label {
  margin: 0 0 10px 8px;
  color: var(--tide);
  font-weight: 800;
}

.boat__well {
  padding: 18px;
  border-radius: 28px;
  background: var(--foam);
  border: 1.5px solid var(--line);
  box-shadow: 0 20px 50px rgba(13, 79, 91, 0.08);
}

.boat .layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px) !important;
  grid-template-areas: "form preview" !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.boat .panel {
  grid-area: form !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  min-width: 0 !important;
}

.boat .preview-col {
  grid-area: preview !important;
  width: min(100%, 400px) !important;
  padding: 16px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 22px !important;
  background: #fbf7ee !important;
}

.boat .tabs {
  width: 100%;
  margin: 0 0 14px;
  padding: 6px 0 12px;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap !important;
  overflow: visible !important;
}

.islands {
  width: min(1080px, calc(100% - 32px));
  margin: 36px auto 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.islands__lead {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--tide);
}

.island,
.island--wide {
  min-width: 0;
  padding: 18px 18px 10px;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
}

.island--wide { margin: 0; }

.island h2,
.island--wide h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--tide);
}

.island ul,
.island--wide ul,
.sibs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.island li,
.island--wide li {
  border-top: 1px solid var(--line);
}

.island a,
.island--wide a,
.sibs a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.island a:hover,
.island--wide a:hover,
.sibs a:hover { color: var(--coral); }

.islands__more {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

.leaf { min-width: 0; }

.leaf__crumb {
  margin: 0 0 10px;
  font-weight: 700;
}

.leaf__crumb a { color: var(--kelp); }

.leaf__head h1,
.leaf h2 {
  font-family: var(--font-display);
  color: var(--tide);
  overflow-wrap: anywhere;
}

.leaf__head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.leaf__head p,
.leaf p { color: var(--mute); }

.leaf h2 {
  margin: 26px 0 8px;
  font-size: 1.25rem;
}

.leaf__more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.leaf__more a:last-child {
  background: var(--tide);
}

.sibs {
  padding: 16px;
  border-radius: 18px;
  background: var(--foam);
  border: 1px solid var(--line);
}

.sibs a { padding: 8px 0; font-size: 0.95rem; }

.harbour {
  width: min(1080px, calc(100% - 32px));
  margin: 48px auto 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.harbour__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.harbour__mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--tide);
}

.harbour__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.harbour__nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.harbour__fine {
  margin: 12px 0 0;
  color: var(--mute);
  font-size: 0.95rem;
  max-width: 62ch;
  overflow-wrap: anywhere;
  white-space: normal;
}

.bit-rain { display: none !important; }

.preview-col { align-self: start !important; }

.kiln #stage,
.dock #stage,
.preview-col #stage {
  display: grid !important;
  place-items: center !important;
  width: min(360px, 100%) !important;
  max-width: 360px !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.kiln #stage #qr,
.dock #stage #qr,
.preview-col #stage #qr {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  background: #fff !important;
}

.kiln #stage.has-frame,
.dock #stage.has-frame,
.preview-col #stage.has-frame {
  aspect-ratio: auto !important;
  height: auto !important;
}

.kiln #stage.has-frame #qr,
.dock #stage.has-frame #qr,
.preview-col #stage.has-frame #qr {
  aspect-ratio: auto !important;
  height: auto !important;
}

.frame-options {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line, #d5dbe3);
  background: var(--panel, #f4f7fb);
}

.frame-options[hidden] {
  display: none !important;
}

.size-badge,
#size-badge {
  color: #ffffff !important;
}

.hidden,
.fields.hidden,
[hidden] { display: none !important; }

.kiln .fields:not(.hidden),
.dock .fields:not(.hidden) { display: grid; gap: 12px; }

@media (max-width: 920px) {
  .mast {
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 8px 10px;
  }
  .mast__end {
    gap: 8px;
  }
  .mast__nav {
    width: auto !important;
    margin: 0 !important;
    order: 0 !important;
  }
  .islands { grid-template-columns: 1fr; }
  .boat .layout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "preview" "form" !important;
  }
  .tide h1 { max-width: none; }
  .langlist ul,
  #lang-menu-list {
    min-width: 200px;
  }
}

.dynamic-panel {
  background: #fbf7ee !important;
  border: 1px solid var(--line) !important;
  color: #1c1914 !important;
}

.style-studio,
.style-studio-pane,
.captcha-box,
.preview-col .actions {
  background: transparent !important;
  color: #1c1914 !important;
}

.more-menu,
#more-menu,
#vcard-menu {
  background: #fffdf8 !important;
  color: #1c1914 !important;
  border: 1.5px solid #0d4f5b !important;
  box-shadow: 0 16px 36px rgba(28, 25, 20, 0.14) !important;
  z-index: 4200 !important;
}

.more-option,
.more-menu .more-option,
.tabs .more-option {
  color: #1c1914 !important;
  background: transparent !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  text-align: left !important;
  width: 100% !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  font-weight: 700 !important;
}

.more-option:hover,
.tabs .more-option:hover {
  background: #0d4f5b !important;
  color: #fff !important;
}

.more-option .option-icon {
  color: #0d4f5b !important;
}

.more-option:hover .option-icon {
  color: #f3c98b !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 1024px) {
  .panel-data,
  .panel-params,
  .preview-col,
  .boat .preview-col,
  .kiln .preview-col,
  .dock .preview-col {
    background: #fbf7ee !important;
    color: #1c1914 !important;
  }

  .boat .tabs,
  .kiln .tabs,
  .dock .tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .boat .tabs .tab,
  .kiln .tabs .tab,
  .dock .tabs .tab,
  .tabs .more-toggle,
  .tabs .tab-business,
  .tabs .tab-more > .tab,
  .style-studio-tab,
  .file-picker-btn,
  .harbour__biz,
  #btn-make-dynamic,
  .btn-gen-another,
  .actions button,
  .more-option {
    width: auto !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    letter-spacing: 0.01em !important;
    white-space: nowrap !important;
    touch-action: manipulation !important;
  }

  .tab-more.open > .more-menu,
  .more-menu.is-fixed-open {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(62vh, 420px) !important;
    overflow: auto !important;
    z-index: 100070 !important;
  }
}

@media (max-width: 600px) {
  .tide h1,
  .boat h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
  }
  .preview-col h2,
  .island h2,
  .islands__lead {
    font-size: 1.15rem !important;
  }
  .brand__word { font-size: 1.35rem; }
  .langlist summary { max-width: min(140px, 38vw); }
}
