:root {
  color-scheme: dark;
  --bg: #0d1019;
  --ink: #f4f6ff;
  --muted: #b5bdd0;
  --line: #ffffff24;
  --accent: #bdff67;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 15% 5%, #39255375, transparent 46%),
    radial-gradient(ellipse at 88% 50%, #133b454d, transparent 50%), var(--bg);
  font:
    16px/1.6 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  min-height: 100vh;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 9;
}
.skip:focus {
  top: 8px;
  background: var(--bg);
  padding: 12px;
}
.tool-header {
  max-width: 1260px;
  margin: auto;
  min-height: 108px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  border-bottom: 1px solid var(--line);
}
.tool-brand img {
  display: block;
  object-fit: contain;
}
.studio-link {
  color: #edff45;
  text-decoration: none;
  font-weight: 700;
}
.tools-dropdown {
  position: relative;
}
.tools-dropdown summary {
  cursor: pointer;
  font-weight: 650;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff0b;
  list-style: none;
}
.tools-dropdown summary::-webkit-details-marker {
  display: none;
}
.tools-dropdown nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 270px;
  padding: 8px;
  background: #171825f5;
  backdrop-filter: blur(24px);
  border: 1px solid #ffffff40;
  border-radius: 16px;
  box-shadow: 0 20px 60px #0008;
  z-index: 20;
}
.tools-dropdown nav a {
  display: block;
  padding: 12px;
  text-decoration: none;
  border-radius: 10px;
}
.tools-dropdown nav a:hover {
  background: #ffffff12;
  color: var(--accent);
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 50px 24px 70px;
}
.tool-intro {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
h1 {
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.055em;
  margin: 20px 0;
}
h2 {
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.tool-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
  margin: 20px auto;
}
.free-badge {
  display: inline-block;
  border: 1px solid #bdff672b;
  color: #d4efb3;
  background: #bdff670a;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
}
.tool-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
  flex-wrap: wrap;
}
.tool-tabs a {
  padding: 10px 16px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
}
.tool-tabs a[aria-current] {
  background: #ffffff0d;
  color: var(--ink);
  border-color: #ffffff30;
}
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
}
.tool-panel {
  padding: 32px;
  border: 1px solid #ffffff29;
  border-radius: 26px;
  background: linear-gradient(145deg, #ffffff0f, #ffffff03);
  box-shadow:
    inset 0 1px #ffffff1c,
    0 24px 60px #0003;
  backdrop-filter: blur(16px);
}
.tool-aside {
  padding: 30px 12px 20px 28px;
}
.aside-symbol {
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin: 10px 0 30px;
}
.tool-aside h2 {
  font-size: 30px;
  font-weight: 550;
}
.tool-aside p {
  color: var(--muted);
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 9px;
}
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
  border: 1px solid #ffffff32;
  border-radius: 12px;
  background: #080b1480;
  color: var(--ink);
  padding: 15px;
  margin: 0 0 20px;
  min-height: 52px;
}
input[type="file"] {
  font-size: 13px;
  cursor: pointer;
  padding: 18px;
}
input[type="file"]::file-selector-button {
  background: #35344e;
  color: var(--ink);
  border: 0;
  padding: 9px 12px;
  border-radius: 6px;
  margin-right: 10px;
}
textarea {
  resize: vertical;
}
select {
  color-scheme: dark;
}
fieldset {
  padding: 0;
  margin: 0 0 20px;
  border: 0;
}
legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.format-choices {
  display: flex;
  gap: 12px;
}
.format-choices label {
  flex: 1;
  background: #ffffff05;
  border: 1px solid #ffffff22;
  border-radius: 14px;
  padding: 15px;
  cursor: pointer;
  margin: 0;
}
.format-choices label:has(input:checked) {
  background: #bdff6709;
  border-color: #bdff67a0;
}
.format-choices span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-left: 24px;
  font-weight: 400;
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent);
  min-width: 16px;
  min-height: 16px;
}
.permission {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  margin: 24px 0;
}
.tool-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffffff38;
  border-radius: 12px;
  padding: 13px 20px;
  background: linear-gradient(130deg, #ffffff20, #ffffff06);
  box-shadow: inset 0 1px #ffffff26;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.4;
  min-height: 48px;
}
.tool-button.primary {
  color: #0e1803;
  border-color: #c8ff8899;
  background: linear-gradient(130deg, #d2ff96e6, #a5e653b3);
}
form > .tool-button {
  width: 100%;
  margin-top: 10px;
}
.tool-button:hover {
  filter: brightness(1.1);
}
.tool-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.limits,
.field-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.limits {
  text-align: center;
  margin-bottom: 0;
}
.field-help {
  margin: 0 0 20px;
}
#tool-status {
  color: #d4efb3;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#tool-status:empty {
  margin: 0;
}
.error {
  color: #ffb5c9 !important;
}
.result-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}
.result-heading h2 {
  font-size: 22px;
}
.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
#tool-result {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 10px;
}
#result-name,
#save-status {
  overflow-wrap: anywhere;
  font-size: 14px;
}
#open-studio {
  display: block;
  color: var(--accent);
  margin-bottom: 20px;
}
.qr-preview {
  margin: 26px auto;
  max-width: 320px;
}
.qr-preview canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  border-radius: 10px;
}
#qr-result .result-actions {
  justify-content: center;
}
.tool-faq {
  max-width: 780px;
  margin: 65px auto 0;
}
.tool-faq h2 {
  font-size: 26px;
}
.tool-faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.tool-faq summary {
  cursor: pointer;
  font-weight: 600;
}
.tool-faq p {
  font-size: 14px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  padding: 30px;
  font-size: 12px;
  color: var(--muted);
}
footer a {
  text-decoration: none;
}
@media (max-width: 700px) {
  .tool-header {
    gap: 10px;
    padding: 10px 18px;
    flex-wrap: wrap;
  }
  .tool-brand img {
    width: 100px;
    height: 55px;
  }
  .studio-link {
    font-size: 12px;
  }
  .tools-dropdown {
    order: 3;
    width: 100%;
  }
  .tools-dropdown summary {
    text-align: center;
  }
  .tools-dropdown nav {
    left: 0;
    width: 100%;
  }
  main {
    padding: 30px 16px 48px;
  }
  .tool-intro {
    margin-bottom: 24px;
  }
  .tool-intro > p:not(.eyebrow) {
    font-size: 16px;
  }
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .tool-panel {
    padding: 23px 20px;
  }
  .tool-tabs {
    gap: 0;
  }
  .tool-tabs a {
    font-size: 12px;
    padding: 9px;
  }
  .tool-aside {
    padding: 10px 20px;
  }
  .aside-symbol {
    display: none;
  }
  .tool-aside h2 br {
    display: none;
  }
  .tool-aside h2 {
    font-size: 23px;
  }
  .tool-faq {
    margin-top: 30px;
  }
}
