/* ------------------------------------------------------------------
   UUID Studio — visual system
   ------------------------------------------------------------------ */

:root {
  --paper: #f2f0e9;
  --paper-deep: #e9e6dc;
  --surface: #fcfbf7;
  --surface-strong: #ffffff;
  --ink: #17191c;
  --ink-soft: #2c2f33;
  --muted: #706f68;
  --muted-light: #98968d;
  --line: rgba(23, 25, 28, 0.13);
  --line-strong: rgba(23, 25, 28, 0.24);
  --accent: #ff5c35;
  --accent-deep: #e5441d;
  --accent-soft: #ffe3d9;
  --green: #a9e26f;
  --dark: #151719;
  --dark-raised: #1c1f22;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-muted: #969993;
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-panel: 0 30px 80px rgba(29, 27, 20, 0.13), 0 2px 6px rgba(29, 27, 20, 0.05);
  --shadow-button: 0 12px 24px rgba(255, 92, 53, 0.25);
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Backdrop ---------------------------------------------------------- */

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(700px 420px at 86% -8%, rgba(255, 92, 53, 0.13), transparent 66%),
    radial-gradient(640px 500px at -8% 28%, rgba(199, 218, 174, 0.22), transparent 70%),
    var(--paper);
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(23, 25, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 28, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

/* Header ------------------------------------------------------------ */

.site-header {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 28px 48px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(23, 25, 28, 0.14);
  transition: transform 220ms ease, background 220ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.03);
  background: var(--accent);
  color: var(--ink);
}

.brand-mark i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.brand-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.055em;
}

.brand-name span {
  color: var(--accent);
  padding: 0 1px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4d8d2b;
  box-shadow: 0 0 0 3px rgba(77, 141, 43, 0.12);
}

.header-divider {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.rfc-label {
  color: var(--muted-light);
}

/* Hero -------------------------------------------------------------- */

main {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 0 48px;
}

.hero {
  padding: 60px 0 54px;
  animation: rise-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin-bottom: 34px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 54px;
  height: 1px;
  background: var(--line-strong);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 56px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(74px, 10vw, 152px);
  font-weight: 620;
  line-height: 0.8;
  letter-spacing: -0.075em;
  color: var(--ink);
}

.hero h1 em {
  display: block;
  margin-top: 0.19em;
  color: var(--accent);
  font-style: normal;
  font-size: 0.59em;
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.075em;
}

.hero-aside {
  padding-bottom: 7px;
}

.hero-aside p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
  max-width: 390px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.035em;
}

.hero-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.hero-facts strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* Studio shell ------------------------------------------------------ */

.studio {
  display: grid;
  grid-template-columns: minmax(400px, 460px) minmax(0, 1fr);
  min-height: 750px;
  margin-bottom: 60px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  animation: rise-in 760ms 80ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.control-panel {
  position: relative;
  z-index: 1;
  padding: 34px 34px 28px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), transparent 42%),
    var(--surface);
  border-right: 1px solid var(--line);
}

.panel-heading,
.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.step-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.step-label.light {
  color: #8f928d;
}

.panel-heading h2,
.result-header h2 {
  margin: 7px 0 0;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.panel-note {
  padding-top: 3px;
  color: var(--muted-light);
  font-size: 10.5px;
  white-space: nowrap;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.version-field {
  margin-top: 28px;
}

.version-field legend,
.field-heading-row label,
.field-label {
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
}

.version-option {
  position: relative;
  min-width: 0;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 11px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.version-option:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-2px);
}

.version-option.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 9px 20px rgba(23, 25, 28, 0.17);
}

.version-option.is-active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.version-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}

.version-code {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.08em;
}

.version-tag {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.version-tag.hot {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.version-option.is-active .version-tag {
  background: rgba(255, 255, 255, 0.11);
  color: #d0d1cc;
}

.version-option.is-active .version-tag.hot {
  background: rgba(255, 92, 53, 0.18);
  color: #ff8d70;
}

.version-name {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-option.is-active .version-name {
  color: #aeb0ab;
}

.version-description {
  min-height: 37px;
  margin: 10px 1px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* Count ------------------------------------------------------------- */

.field-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.field-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-limit,
.format-sample {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.count-controls {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 10px;
}

.count-stepper {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.count-stepper:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 25, 28, 0.06);
}

.step-btn {
  width: 35px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.step-btn:hover {
  background: var(--paper);
  color: var(--ink);
}

#count {
  width: 56px;
  height: 100%;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  outline: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 650;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

#count::-webkit-outer-spin-button,
#count::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.preset-group {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.preset-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  cursor: pointer;
  transition: all 160ms ease;
}

.preset-btn:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.preset-btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Namespace settings ------------------------------------------------ */

.name-settings {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(255, 92, 53, 0.28);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 227, 217, 0.45), rgba(255, 255, 255, 0.65));
}

.name-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.mini-tag {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.name-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.input-field input,
.input-field select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-field input:focus,
.input-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 53, 0.1);
}

.input-field input::placeholder {
  color: #b3b0a7;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.input-field select {
  padding-right: 26px;
  appearance: none;
  cursor: pointer;
}

.custom-namespace-field {
  margin-top: 8px;
}

.custom-namespace-field input {
  font-size: 10.5px;
}

.field-hint {
  margin: 9px 1px 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.field-error {
  margin: 7px 1px 0;
  color: #c93718;
  font-size: 10px;
  font-weight: 600;
}

/* Formatting -------------------------------------------------------- */

.format-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.switch-list {
  margin-top: 7px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  border-bottom: 1px solid rgba(23, 25, 28, 0.075);
  cursor: pointer;
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.switch-copy strong {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.switch-copy small {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8.5px;
  white-space: nowrap;
}

.switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  position: relative;
  flex: 0 0 auto;
  width: 35px;
  height: 20px;
  border-radius: 20px;
  background: #d8d5cb;
  transition: background 180ms ease;
}

.switch-ui span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 25, 28, 0.2);
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switch-row input:checked + .switch-ui {
  background: var(--ink);
}

.switch-row input:checked + .switch-ui span {
  transform: translateX(15px);
}

.switch-row input:focus-visible + .switch-ui {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.switch-row:hover .switch-ui {
  background: #c8c4b8;
}

.switch-row:hover input:checked + .switch-ui {
  background: #34373b;
}

/* Generate ---------------------------------------------------------- */

.form-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.generate-btn {
  flex: 1;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.015em;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.generate-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.generate-btn:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 92, 53, 0.3);
}

.generate-btn:hover svg {
  transform: translateX(3px);
}

.generate-btn:active {
  transform: translateY(0);
}

.shortcut-hint {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.shortcut-hint kbd {
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1;
}

/* Result panel ------------------------------------------------------ */

.result-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px 34px 26px;
  background:
    radial-gradient(600px 260px at 92% 0%, rgba(255, 92, 53, 0.11), transparent 64%),
    linear-gradient(165deg, #1a1d20 0%, var(--dark) 58%);
  color: #f6f4ed;
}

.result-header {
  align-items: flex-start;
}

.result-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f6f4ed;
  font-size: 23px;
}

.result-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 92, 53, 0.16);
  color: #ff8e71;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.output-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--dark-line);
  border-radius: 20px;
  color: #a9aca6;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.output-status span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(169, 226, 111, 0.1);
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 12px 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.result-version {
  overflow: hidden;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--dark-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #c5c7c1;
  cursor: pointer;
  transition: all 160ms ease;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.copy-btn {
  height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease;
}

.copy-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-btn:hover {
  background: #ff704d;
  border-color: #ff704d;
  transform: translateY(-1px);
}

.copy-btn.is-copied {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.output-shell {
  position: relative;
  flex: 1 1 0;
  min-height: 390px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background:
    radial-gradient(520px 240px at 86% 112%, rgba(255, 92, 53, 0.065), transparent 68%),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    #101214;
  background-size: auto, 40px 40px, 40px 40px, auto;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b3f42 #101214;
}

.output-shell::-webkit-scrollbar {
  width: 9px;
}

.output-shell::-webkit-scrollbar-track {
  background: #101214;
}

.output-shell::-webkit-scrollbar-thumb {
  border: 3px solid #101214;
  border-radius: 9px;
  background: #3b3f42;
}

.uuid-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.uuid-row {
  width: 100%;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
  color: #e8e7e1;
  text-align: left;
  cursor: pointer;
  transition: background 130ms ease;
}

.uuid-row:last-child,
.uuid-list > li:last-child .uuid-row {
  border-bottom: 0;
}

.uuid-row:hover,
.uuid-row:focus-visible {
  background: rgba(255, 255, 255, 0.052);
}

.uuid-row:focus-visible {
  outline-offset: -2px;
}

.uuid-index {
  color: #555a5c;
  font-family: var(--mono);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  user-select: none;
}

.uuid-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: inherit;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.55;
}

.uuid-copy-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #737876;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 140ms ease, stroke 140ms ease;
}

.uuid-row:hover .uuid-copy-icon,
.uuid-row:focus-visible .uuid-copy-icon {
  opacity: 1;
}

.uuid-row:hover .uuid-copy-icon {
  stroke: var(--accent);
}

.uuid-row.is-copied .uuid-value {
  color: var(--green);
}

.uuid-row.is-copied .uuid-copy-icon {
  stroke: var(--green);
  opacity: 1;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 13px;
  color: #777c7b;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.015em;
}

.copy-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-tip svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#output-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Notes ------------------------------------------------------------- */

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 60px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  padding: 2px 28px;
  border-right: 1px solid var(--line);
}

.note-card:first-child {
  padding-left: 0;
}

.note-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.note-index {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.note-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.005em;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
}

.note-card code {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(23, 25, 28, 0.06);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
}

/* Footer ------------------------------------------------------------ */

.site-footer {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 0 48px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-light);
  font-size: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer > p:first-child {
  color: var(--muted);
}

.site-footer span {
  padding: 0 3px;
  color: var(--muted-light);
}

.footer-meta {
  font-family: var(--mono);
  letter-spacing: 0.004em;
}

/* Toast ------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: var(--ink);
  color: #f8f6ef;
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: 0 18px 45px rgba(23, 25, 28, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error svg {
  stroke: #ff8d70;
}

/* Animations -------------------------------------------------------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive -------------------------------------------------------- */

@media (max-width: 1180px) {
  .site-header,
  main,
  .site-footer {
    padding-left: 32px;
    padding-right: 32px;
  }

  .studio {
    grid-template-columns: minmax(380px, 420px) minmax(0, 1fr);
  }

  .control-panel,
  .result-panel {
    padding-left: 28px;
    padding-right: 28px;
  }

  .count-controls {
    gap: 10px;
  }

  .preset-btn {
    min-width: 30px;
    padding: 0 5px;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 46px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero-aside {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    padding-bottom: 0;
  }

  .hero-aside p {
    margin-bottom: 0;
  }

  .hero-facts {
    flex: 0 0 auto;
    border-top: 0;
    padding-top: 0;
  }

  .studio {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .control-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 32px;
  }

  .result-panel {
    height: auto;
    min-height: 0;
    padding: 32px;
  }

  .version-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .version-option {
    min-height: 79px;
  }

  .version-top {
    flex-wrap: wrap;
  }

  .name-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }

  .output-shell {
    flex: 0 0 420px;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-header {
    padding-top: 20px;
  }

  .header-meta {
    gap: 10px;
  }

  .rfc-label,
  .header-divider {
    display: none;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(62px, 18vw, 108px);
  }

  .hero-aside {
    display: block;
  }

  .hero-aside p {
    max-width: 100%;
    margin-bottom: 22px;
  }

  .hero-facts {
    padding-top: 16px;
    border-top: 1px solid var(--line);
    gap: 16px 22px;
  }

  .studio {
    margin-bottom: 38px;
    border-radius: 24px;
  }

  .control-panel,
  .result-panel {
    padding: 24px 20px;
  }

  .version-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .version-option {
    min-height: 77px;
  }

  .version-top {
    flex-wrap: nowrap;
  }

  .name-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-panel {
    height: auto;
    min-height: 0;
  }

  .output-shell {
    flex: 0 0 340px;
    min-height: 0;
    margin-top: 16px;
  }

  .uuid-row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    padding: 11px 12px;
  }

  .uuid-copy-icon {
    display: none;
  }

  .uuid-value {
    font-size: 11px;
  }

  .notes {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 26px 0;
    margin-bottom: 38px;
  }

  .note-card,
  .note-card:first-child,
  .note-card:last-child {
    padding: 0;
    border-right: 0;
  }

  .note-card + .note-card {
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .site-footer {
    display: block;
    padding-bottom: 24px;
  }

  .site-footer p + p {
    margin-top: 6px;
  }
}

@media (max-width: 470px) {
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 11px;
  }

  .header-meta {
    font-size: 8.5px;
  }

  .local-badge {
    gap: 5px;
  }

  .hero h1 {
    font-size: clamp(54px, 19vw, 82px);
  }

  .hero-facts {
    gap: 12px 18px;
    font-size: 8.5px;
  }

  .hero-facts strong {
    font-size: 16px;
  }

  .panel-heading h2,
  .result-header h2 {
    font-size: 21px;
  }

  .panel-note {
    display: none;
  }

  .version-code {
    font-size: 20px;
  }

  .version-name {
    font-size: 10px;
  }

  .count-controls {
    flex-wrap: wrap;
  }

  .count-stepper {
    width: 100%;
  }

  #count {
    flex: 1;
  }

  .preset-group {
    width: 100%;
    justify-content: space-between;
  }

  .preset-btn {
    flex: 1;
    height: 31px;
  }

  .form-footer {
    display: block;
  }

  .generate-btn {
    width: 100%;
  }

  .shortcut-hint {
    display: none;
  }

  .result-toolbar {
    align-items: flex-start;
  }

  .result-version {
    padding-top: 9px;
    max-width: 140px;
  }

  .copy-btn span {
    display: none;
  }

  .copy-btn {
    width: 35px;
    padding: 0;
    justify-content: center;
  }

  .output-status {
    font-size: 8px;
  }

  .result-footer {
    display: block;
  }

  #output-meta {
    display: block;
    margin-top: 6px;
  }

  .toast {
    bottom: 18px;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 10px;
  }

  .header-meta {
    font-size: 8px;
  }

  .version-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .version-option {
    min-height: 73px;
  }

  .result-version {
    max-width: 108px;
  }

  .uuid-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 11px 10px;
  }

  .uuid-index {
    display: none;
  }

  .uuid-value {
    font-size: 9.5px;
    letter-spacing: 0;
  }
}
