:root {
  /* dark: neutral greys with a white accent */
  --bg: #0f0f10;
  --bg-2: #141415;
  --panel: #19191b;
  --panel-2: #202023;
  --line: #2a2a2e;
  --line-2: #38383d;
  --fg: #ededee;
  --muted: #a1a1a6;
  --faint: #6b6b71;
  --accent: #e6e6e8;
  --accent-2: #ffffff;
  --accent-ink: #111113;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --moss: rgba(255, 255, 255, 0.025);
  --good: #8fd16a;
  --warn: #ef8a4f;
  --bad: #ff8a76;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.35);
  --checker: #1c1c1e;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
  scrollbar-color: var(--line-2) transparent;
}
* { scrollbar-width: thin; }
/* light: neutral greys with a near-black accent */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f4f5;
    --bg-2: #ececee;
    --panel: #ffffff;
    --panel-2: #f7f7f8;
    --line: #e2e2e5;
    --line-2: #d1d1d6;
    --fg: #1c1c1e;
    --muted: #5c5c63;
    --faint: #96969c;
    --accent: #1c1c1e;
    --accent-2: #000000;
    --accent-ink: #ffffff;
    --accent-soft: rgba(0, 0, 0, 0.06);
    --moss: rgba(0, 0, 0, 0.02);
    --good: #3f7d1f;
    --warn: #b5501a;
    --bad: #b3261e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.07);
    --checker: #ececee;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f4f5; --bg-2: #ececee; --panel: #ffffff; --panel-2: #f7f7f8; --line: #e2e2e5; --line-2: #d1d1d6;
  --fg: #1c1c1e; --muted: #5c5c63; --faint: #96969c; --accent: #1c1c1e; --accent-2: #000000; --accent-ink: #ffffff;
  --accent-soft: rgba(0, 0, 0, 0.06); --moss: rgba(0, 0, 0, 0.02); --good: #3f7d1f; --warn: #b5501a; --bad: #b3261e;
  --checker: #ececee;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.07);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1100px 560px at 78% -12%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 520px at -8% 110%, var(--moss), transparent 60%),
    var(--bg);
  color: var(--fg);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--accent-2); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ layout: one screen */
.app {
  height: 100dvh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  grid-template-rows: 56px minmax(0, 1fr);
  gap: 0 18px;
  padding: 0 18px 18px;
}
.bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.rail {
  /* the gutter is always reserved so the controls don't narrow when the scrollbar appears;
     the right padding is smaller by about its width */
  display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 16px 8px 16px 16px;
  scrollbar-gutter: stable;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stage {
  display: flex; flex-direction: column; gap: 10px; min-height: 0; min-width: 0; padding: 10px; container-type: inline-size;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ------------------------------------------------------------------ header */
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent) inset, 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);
}
.logo svg { width: 24px; height: 24px; }
.dino { fill: currentColor; stroke: none; }
.name { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.name b { font-weight: 800; color: var(--accent-2); }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; min-width: 0; }
.status span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.dot.busy { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
.dot.err { background: var(--bad); }
@keyframes pulse { 50% { opacity: 0.35; } }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip {
  font-size: 12px; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); white-space: nowrap;
}
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
}
.icon-btn:hover:not(:disabled) { color: var(--fg); border-color: var(--line-2); }
.icon-btn.soft { background: var(--panel-2); }

/* ------------------------------------------------------------------ shared controls */
.label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hint { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.help { margin: 0; font-size: 12px; color: var(--faint); }
.help.center { text-align: center; }
.muted { color: var(--faint); font-style: normal; font-weight: 400; }
.help code { font-size: 11px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; user-select: all; overflow-wrap: anywhere; }
#backendHelp { line-height: 1.6; }
.link { background: none; border: 0; padding: 0; color: var(--accent-2); font-size: 12px; }
.link:hover { text-decoration: underline; }
.small-link { font-size: 12px; cursor: pointer; }

textarea, input, select {
  font: inherit; color: inherit; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; width: 100%;
}
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { flex: 1 1 auto; min-height: 110px; resize: none; line-height: 1.5; }
textarea.neg { flex: none; min-height: 0; height: 64px; resize: vertical; font-size: 13px; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a993' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
select option { background: var(--panel); color: var(--fg); }
/* styled picker where the browser supports it (Chrome 135+); elsewhere the native one */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: flex; align-items: center; gap: 8px; background-image: none; padding-right: 12px; }
  select::picker-icon {
    content: ""; width: 14px; height: 14px; margin-left: auto; transition: rotate 0.15s;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a993' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
  }
  select:open::picker-icon { rotate: 180deg; }
  select:open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  ::picker(select) {
    margin-block: 6px; padding: 5px; border: 1px solid var(--line-2); border-radius: 12px;
    background: var(--panel); color: var(--fg); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    max-height: min(440px, 70dvh); overflow-y: auto;
  }
  optgroup {
    padding: 8px 10px 2px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--faint);
  }
  optgroup + optgroup { margin-top: 4px; border-top: 1px solid var(--line); }
  option {
    display: flex; align-items: center; gap: 8px; margin: 1px 0; padding: 7px 10px; border-radius: 8px;
    font-size: 13px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--fg);
    background: transparent; cursor: pointer;
  }
  optgroup option { margin-inline: -10px; }
  option:hover, option:focus-visible { background: var(--panel-2); outline: none; }
  option:checked { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
  option::checkmark { order: 1; margin-left: auto; content: "✓"; color: var(--accent-2); }
  option:disabled { color: var(--faint); cursor: default; background: transparent; }
  .batch { width: 64px; padding: 0 8px 0 12px; gap: 4px; }
  .batch::picker-icon { width: 12px; height: 12px; background-size: 12px; }
  .batch::picker(select) { min-width: 72px; }
  .batch option { justify-content: center; }
  .batch option::checkmark { display: none; }
}

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; padding: 0; background: transparent; border: 0; }
input[type="range"]:focus { box-shadow: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--accent); border: 2px solid var(--panel); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--panel); }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

.primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 16px; border: 0; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 0 color-mix(in srgb, white 25%, transparent) inset, 0 6px 20px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform 0.08s, filter 0.15s;
}
.primary:hover:not(:disabled) { filter: brightness(1.06); }
.primary:active:not(:disabled) { transform: translateY(1px); }
.primary.wide { width: auto; min-width: 240px; align-self: center; }
.primary.slim { width: auto; padding: 10px 18px; font-size: 14px; }
.ghost { background: transparent; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 14px; color: var(--fg); }
.ghost.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }

/* segmented control */
.seg { display: flex; padding: 3px; gap: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.seg button {
  flex: 1 1 0; min-width: 0; padding: 4px 2px; border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seg button[aria-checked="true"] { background: var(--panel-2); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); font-weight: 600; }
.seg button:hover:not([aria-checked="true"]) { color: var(--fg); }

/* pill toggles (new seed each time) */
.pill {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--faint); letter-spacing: 0.01em; white-space: nowrap;
}
.pill[aria-pressed="true"] { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); }
.pill:hover { color: var(--fg); }

.url-row { display: flex; gap: 8px; }
.url-row .ghost { flex: none; }

/* ------------------------------------------------------------------ rail: two views (main / LoRAs) */
.view { display: flex; flex-direction: column; gap: 12px; flex: 1 0 auto; }
.view.enter { animation: slideIn 0.18s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateX(12px); } }
.view-head { display: flex; align-items: center; gap: 10px; }
.view-head h2 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 700; flex: 1; }
.view-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 2px; }

.group { display: flex; flex-direction: column; gap: 8px; }
.group.grow { flex: 1 1 auto; min-height: 170px; }
.head-actions { display: flex; align-items: center; gap: 10px; }

/* LoRA entry row */
.lora-entry {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-2); text-align: left; flex: none;
}
.lora-entry:hover { border-color: var(--line-2); }
.lora-entry .label { flex: none; }
.lora-entry .stack { display: flex; }
.lora-entry .stack img, .lora-entry .stack i {
  width: 22px; height: 22px; border-radius: 6px; object-fit: cover; border: 2px solid var(--bg-2); margin-left: -6px; background: var(--panel-2);
}
.lora-entry .stack :first-child { margin-left: 0; }
.lora-sum { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.chev { width: 16px; height: 16px; color: var(--faint); flex: none; }

/* canvas: aspect ratios and sizes | width and height sliders */
.canvas-grid { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 8px 10px; align-items: center; }
.canvas-grid .seg button { padding: 5px 0; }
.shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.shape {
  display: flex; align-items: center; justify-content: center; height: 32px; padding: 0;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); color: var(--muted);
}
.shape i { display: block; border: 1.5px solid currentColor; border-radius: 3px; }
.shape[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
.shape:hover { border-color: var(--line-2); }
.slider { display: grid; grid-template-columns: 12px minmax(0, 1fr) 34px; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.slider > span { text-align: center; }
.slider output { font-variant-numeric: tabular-nums; text-align: right; color: var(--fg); font-size: 12px; }

/* sampling */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips button {
  font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chips button:hover, .chips button[aria-expanded="true"] { color: var(--fg); border-style: solid; border-color: var(--accent); }
.chips button b { color: var(--fg); font-weight: 600; }

.popover {
  position: fixed; z-index: 20; width: 240px; padding: 12px; border-radius: 12px; background: var(--panel);
  border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 8px;
}
.popover .row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; align-items: center; }
.popover output { text-align: right; font-variant-numeric: tabular-nums; }
.popover .opts { display: flex; flex-direction: column; gap: 4px; }
.popover .opts button { text-align: left; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 13px; }
.popover .opts button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.popover .opts button small { display: block; color: var(--faint); font-size: 11px; }

/* seed */
.seed-row { display: flex; align-items: center; gap: 6px; }
.seed-row input { padding: 6px 10px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.seed-row .icon-btn { width: 32px; height: 32px; flex: none; }

/* generate row */
.go-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; margin-top: auto; flex: none; }
.go-row .primary { height: 46px; gap: 8px; padding: 0 14px; }
.go-sub { font-size: 12px; font-weight: 500; opacity: 0.75; }
.go-sub::before { content: "· "; }
.go-sub:empty { display: none; }
.batch { width: 58px; height: 46px; padding: 0 22px 0 10px; font-weight: 600; text-align: center; background-position: right 6px center; background-size: 12px; }
.stop { width: 46px; height: 46px; color: var(--bad); }
.stop svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ LoRA view */
.lora-card {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-2);
}
.lora-card img, .lora-card .noimg { width: 56px; height: 74px; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.lora-card h3 { margin: 0 0 2px; font-size: 15px; }
.lora-card .meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.badge.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.words { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.words span { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--panel-2); color: var(--fg); }
.card-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.dl { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.dl .bar-progress { max-width: none; }
.dl-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.loras { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 60px; overflow-y: auto; scrollbar-width: thin; }
.loras:empty::after { content: "No LoRAs yet."; font-size: 12px; color: var(--faint); }
.lora {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 7px 8px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line);
}
.lora.off { opacity: 0.55; }
.lora.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.lora .thumb {
  width: 40px; height: 40px; border-radius: 7px; background: var(--panel-2); border: 0; padding: 0;
  display: grid; place-items: center; font-size: 11px; color: var(--faint); overflow: hidden;
}
.lora .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lora .mid { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lora.pending .mid { gap: 5px; }
.lora .title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lora .title small { color: var(--faint); }
.lora .str { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 6px; align-items: center; }
.lora .str output { font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.lora .bar-progress { max-width: none; height: 4px; }
.lora .msg { font-size: 11px; color: var(--bad); }
.lora .btns { display: flex; gap: 2px; }
.lora .btns a, .lora .btns button {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; border: 0; background: transparent; color: var(--muted);
}
.lora .btns a:hover, .lora .btns button:hover { color: var(--fg); background: var(--panel-2); }
.lora .btns svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ stage: viewer */
.canvas-box {
  position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; overflow: hidden;
  background: var(--bg-2); border-radius: var(--radius-sm);
}
canvas {
  position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); display: block;
  object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}
.panel-center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  gap: 14px; padding: 32px; text-align: center; overflow-y: auto;
}
.panel-center h1 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.panel-center h2 { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 700; }
.welcome-mark { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 2px; }
.welcome-mark svg { width: 38px; height: 38px; }
.lead { margin: 0; max-width: 520px; color: var(--muted); }
.empty-art { width: 148px; height: 104px; color: var(--accent-2); }
.empty-art svg { width: 100%; height: 100%; stroke-width: 1.6; }
.empty-art .ground { stroke: var(--line-2); }
.empty-art .sun { fill: var(--accent-soft); stroke: color-mix(in srgb, var(--accent) 45%, transparent); }
.empty-art .body { fill: var(--accent-soft); stroke: var(--accent); }
.empty-art .eye { fill: var(--accent); stroke: none; }
.empty-art .fern { stroke: color-mix(in srgb, var(--good) 55%, transparent); }

.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 560px; }
.preset {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
}
.preset:hover { border-color: var(--line-2); }
.preset[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.preset b { font-size: 14px; }
.preset .size { font-size: 13px; font-variant-numeric: tabular-nums; }
.preset .desc { font-size: 12px; color: var(--muted); }
.preset .tag { position: absolute; top: 10px; right: 10px; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.preset .saved { font-size: 11px; color: var(--good); }

.welcome-token { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.welcome-token .label em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 4px; }
.welcome-token .ghost { flex: none; display: inline-flex; align-items: center; text-decoration: none; font-size: 13px; white-space: nowrap; }
.welcome-token .help.ok { color: var(--good); }
.welcome-token .help.err { color: var(--bad); }

/* an egg about to hatch */
.spinner {
  width: 32px; height: 40px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background:
    radial-gradient(circle at 34% 30%, var(--accent) 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 64% 50%, var(--accent) 0 2.2px, transparent 2.8px),
    radial-gradient(circle at 40% 70%, var(--accent) 0 1.4px, transparent 2px),
    radial-gradient(circle at 70% 24%, var(--accent) 0 1.2px, transparent 1.8px),
    var(--panel-2);
  box-shadow: inset -5px -6px 0 color-mix(in srgb, var(--bg) 35%, transparent), 0 0 0 1.5px var(--line-2);
  transform-origin: 50% 100%; animation: wobble 1.4s ease-in-out infinite;
}
@keyframes wobble { 0%, 55%, 100% { rotate: 0deg; } 10% { rotate: -9deg; } 22% { rotate: 7deg; } 34% { rotate: -4deg; } 45% { rotate: 2deg; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.bar-progress { width: 100%; max-width: 420px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-progress > div { height: 100%; width: 0; background: var(--accent); transition: width 0.25s; }

.progress-card {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(420px, calc(100% - 40px));
  display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 85%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.progress-card .bar-progress { max-width: none; }
.error-card {
  position: absolute; left: 50%; top: 20px; transform: translateX(-50%); max-width: calc(100% - 40px);
  padding: 10px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent);
  background: var(--panel); color: var(--bad); font-size: 13px;
}

/* all images of the session, covering the viewer */
.gallery {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 12px;
  background: var(--bg-2);
}
.gallery-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gallery-head .help { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-head .icon-btn { width: 32px; height: 32px; }
.gallery-grid {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: max-content; gap: 10px; align-content: start;
}
.gallery-grid .tile { height: auto; width: 100%; font-size: 12px; }
.gallery-grid .tile .ring { width: 40px; height: 40px; }

/* ------------------------------------------------------------------ stage: info line + image strip */
/* Fixed heights, so the viewer never changes size as info or thumbnails come and go. */
.stage-foot { flex: none; display: flex; flex-direction: column; gap: 8px; }
.info {
  display: flex; align-items: center; gap: 12px; height: 32px; min-width: 0; padding: 0 2px 0 4px;
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.info .meta { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info .meta b { font-weight: 600; color: var(--fg); }
.info .meta .sep { color: var(--faint); margin: 0 6px; }
.info .meta .note { color: var(--warn); }
.info .actions { flex: none; display: flex; gap: 6px; }
.info .actions button, .info .actions a {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--fg); font-size: 12px; text-decoration: none; white-space: nowrap;
}
.info .actions button:hover, .info .actions a:hover { border-color: var(--line-2); }
.info .actions svg { width: 14px; height: 14px; }
@container (max-width: 640px) { .info .actions span { display: none; } .info .actions button, .info .actions a { padding: 0 8px; } }

.strip-row { display: flex; gap: 8px; height: 64px; }
.strip { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.strip:empty::before { content: "Your images will show up here."; align-self: center; padding-left: 4px; font-size: 12px; color: var(--faint); }
.all-btn {
  flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums;
}
.all-btn:hover:not(:disabled) { color: var(--fg); border-color: var(--line-2); }
.all-btn[aria-pressed="true"] { color: var(--fg); background: var(--accent-soft); border-color: var(--accent); }

/* one tile: a finished image, the one being made (live preview), or a queued job */
.tile {
  position: relative; flex: none; height: 64px; aspect-ratio: 1; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); font-size: 11px;
}
.tile img, .tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile[aria-current="true"] { border-color: var(--accent); }
.tile:hover:not([aria-current="true"]) { border-color: var(--line-2); }
.tile.queued { border: 1.5px dashed var(--line-2); cursor: default; }
.tile.queued .x {
  position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--panel-2);
  color: var(--muted); display: none; place-items: center; font-size: 12px; line-height: 1; padding: 0;
}
.tile.queued:hover .x, .tile.queued:focus-within .x { display: grid; }
.tile.running canvas { filter: saturate(0.85); }
.tile .ring { width: 30px; height: 30px; }
.tile .ring circle { fill: none; stroke-width: 3; }
.tile .ring .bg { stroke: var(--line-2); }
.tile .ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 0.3s; }
.tile.has-preview .ring { display: none; }
.tile .tile-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.tile .tile-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }

/* ------------------------------------------------------------------ settings dialog */
dialog {
  border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--panel); color: var(--fg);
  width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
dialog::backdrop { background: rgba(6, 8, 5, 0.6); backdrop-filter: blur(3px); }
.dialog { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 700; }
.dialog .presets { max-width: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.storage { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.storage p { margin-top: 2px; }
.storage-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.fatal {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--bg); color: var(--bad);
  white-space: pre-wrap; text-align: center; font-size: 15px;
}

/* ------------------------------------------------------------------ small screens: stack and scroll */
@media (max-width: 900px) {
  .app { height: auto; min-height: 100dvh; grid-template-columns: 1fr; grid-template-rows: 56px auto auto; gap: 12px; padding: 0 12px 16px; }
  .bar { gap: 10px; order: -2; }
  .status { display: none; }
  .stage { order: -1; }
  .canvas-box { min-height: 60vh; }
  .rail { overflow: visible; }
  .group.grow { min-height: 0; }
  .presets { grid-template-columns: 1fr; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .rail { padding: 12px 4px 12px 12px; }
  .view { gap: 8px; }
}

/* ======================================================================================
   WeReCooking fork: our own look and layout (appended; overrides the tokens and layout above)
   - midnight-plum / paper themes, pink-to-indigo accent, serif wordmark
   - the canvas is the page; the prompt, shape and Generate live in one dock under it
   ====================================================================================== */
:root {
  --bg: #100c18; --bg-2: #160f22; --panel: #1b1428; --panel-2: #251b36;
  --line: #31264a; --line-2: #443762;
  --fg: #f4effc; --muted: #b6aacb; --faint: #8073a0;
  --accent: #ff8cc6; --accent-2: #a597ff; --accent-ink: #1c1026; --accent-soft: rgba(255, 140, 198, 0.13);
  --grad: linear-gradient(135deg, #ff8cc6 0%, #c9a0ff 55%, #8f9bff 100%);
  --radius: 20px; --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(8, 3, 20, 0.5);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f1ea; --bg-2: #f0e8de; --panel: #fffaf4; --panel-2: #f8efe4;
    --line: #e5d9c9; --line-2: #d4c4ae;
    --fg: #2b2134; --muted: #6b5e79; --faint: #9a8eaa;
    --accent: #c4337f; --accent-2: #5d4dd8; --accent-ink: #ffffff; --accent-soft: rgba(196, 51, 127, 0.1);
    --grad: linear-gradient(135deg, #d6458f 0%, #9a56d6 55%, #5d4dd8 100%);
    --shadow: 0 14px 40px rgba(90, 60, 30, 0.14);
  }
}
body { background: radial-gradient(1200px 520px at 15% -10%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%), radial-gradient(900px 480px at 100% 0%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 70%), var(--bg); }

.app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr) auto; gap: 12px; padding: 0 22px 18px; max-width: 1280px; margin: 0 auto; }
.name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: 0; }
.name b { font-style: italic; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { background: var(--grad); color: var(--accent-ink); border-radius: 12px; }
.stage { grid-row: 2; background: transparent; border: 0; box-shadow: none; padding: 0; }
.canvas-box { border-radius: var(--radius); }

/* the dock */
.rail { grid-row: 3; overflow: visible; padding: 14px; scrollbar-gutter: auto; border-radius: 26px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); }
#mainView { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px) 190px; grid-template-areas: "prompt mid go"; gap: 14px; align-items: stretch; flex: none; }
.prompt-wrap { grid-area: prompt; position: relative; min-height: 0; }
.prompt-wrap textarea { min-height: 92px; height: 100%; resize: none; border-radius: 16px; padding: 12px 14px 30px; font-size: 15px; line-height: 1.45; }
.prompt-example { position: absolute; right: 12px; bottom: 8px; font-size: 12px; }
.dock-mid { grid-area: mid; display: flex; flex-direction: column; gap: 8px; justify-content: space-between; min-width: 0; }
.dock-mid .shapes { gap: 6px; }
.dock-mid .hint { font-size: 12px; color: var(--faint); text-align: center; }
.go-row { grid-area: go; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.go-row .primary { flex: 1; min-height: 56px; border-radius: 16px; font-family: var(--serif); font-size: 19px; font-weight: 600; background: var(--grad); color: var(--accent-ink); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 32%, transparent); flex-direction: column; gap: 0; }
.go-row .primary:disabled { filter: grayscale(0.7) brightness(0.8); box-shadow: none; }
.go-row .batch { height: 32px; }
.go-row .go-sub::before { content: ""; }
.go-row .stop { position: absolute; }

.opts > summary { cursor: pointer; list-style: none; text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; border-radius: 8px; user-select: none; }
.opts > summary::-webkit-details-marker { display: none; }
.opts > summary::after { content: " ▾"; }
.opts[open] > summary::after { content: " ▴"; }
.opts > summary:hover { color: var(--fg); }
.opts-body { position: absolute; z-index: 15; right: 14px; bottom: calc(100% + 8px); width: min(340px, calc(100vw - 52px)); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.dock-mid, .rail { position: relative; }
.opts-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.opts-foot .link { font-size: 12px; }
.link.danger { color: var(--bad); }

/* LoRA list: a drawer, not a swap of the dock */
.rail:has(#loraView:not([hidden])) #mainView { display: none; }
.rail:has(#loraView:not([hidden])) { position: fixed; z-index: 30; right: 16px; top: 64px; bottom: 16px; width: min(440px, calc(100vw - 32px)); overflow-y: auto; box-shadow: var(--shadow); background: var(--panel); }

@media (max-width: 900px) {
  .app { grid-template-rows: 56px auto auto; padding: 0 12px 14px; }
  .stage { order: 0; }
  .rail { order: 1; }
  #mainView { grid-template-columns: 1fr; grid-template-areas: "prompt" "mid" "go"; }
  .go-row { flex-direction: row; }
  .go-row .primary { min-height: 52px; }
  .opts-body { right: 0; left: 0; width: auto; }
}
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.name { white-space: nowrap; }
@media (max-width: 520px) { .name { font-size: 18px; } .chip { display: none; } }
.go-row { position: relative; }
.go-row .stop { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; z-index: 2; border-radius: 50%; background: color-mix(in srgb, var(--accent-ink) 22%, transparent); color: var(--accent-ink); }
.go-row .stop .fill { fill: currentColor; }
.rail { z-index: 10; } .stage { z-index: 1; }

/* tag suggestions */
.taglist { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 25; max-height: min(300px, 38vh); overflow-y: auto; display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); overscroll-behavior: contain; }
.taglist[hidden] { display: none; }
.tag { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 42px; padding: 8px 10px; border-radius: 10px; text-align: left; color: var(--fg); }
.tag.on, .tag:hover { background: var(--accent-soft); }
.tag .tn { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tag .tv, .tag .tm { font-size: 12px; color: var(--faint); white-space: nowrap; }
.tag[data-cat="artist"] .tm { color: #e9a45f; } .tag[data-cat="character"] .tm { color: #62c48e; } .tag[data-cat="copyright"] .tm { color: #b48cf0; }

/* phones and touch */
button, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 900px) {
  .rail { position: sticky; bottom: 8px; z-index: 40; margin-top: auto; }
  .prompt-wrap textarea { font-size: 16px; min-height: 84px; }
  .dock-mid .shape { height: 44px; }
  .go-row .batch { height: 44px; min-width: 64px; }
  .opts > summary { padding: 10px 0; font-size: 13px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .app { min-height: 100dvh; }
  .canvas-box { min-height: 52vh; }
}
@media (max-width: 900px) and (pointer: coarse) { #seed { font-size: 16px; } input, textarea, select { font-size: 16px; } }
.tag { background: transparent; border: 0; font: inherit; font-size: 14.5px; cursor: pointer; }
.tag.on { background: var(--accent-soft); }
@media (max-width: 900px) {
  .rail { padding: 10px; border-radius: 22px; }
  #mainView { gap: 8px; }
  .prompt-wrap textarea { min-height: 64px; padding: 10px 12px 26px; }
  .dock-mid { position: static; flex-direction: row; align-items: center; gap: 8px; }
  .dock-mid .shapes { flex: 1; min-width: 0; gap: 5px; }
  .dock-mid .shape { height: 40px; }
  .dock-mid .hint { display: none; }
  .opts { flex: none; }
  .opts > summary { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--fg); }
  .go-row .primary { min-height: 50px; font-size: 17px; }
  .go-row .batch { height: 50px; }
  .stage-foot .info { font-size: 12px; }
  .canvas-box { min-height: 58vh; }
  .panel-center { padding: 18px 16px; }
  .panel-center h1 { font-size: 22px; line-height: 1.2; }
  .welcome-mark { display: none; }
  .panel-center .lead { font-size: 14px; }
}

/* ======================================================================================
   v3: no wasted space. The image fills the page; one slim dock; thumbnails, progress and info share one bar.
   ====================================================================================== */
.app { grid-template-rows: 44px minmax(0, 1fr) auto; gap: 8px; padding: 0 14px 12px; max-width: none; }
.bar { min-height: 0; }
#gpuChip { display: none !important; }
.logo { width: 30px; height: 30px; border-radius: 10px; }
.logo svg { width: 22px; height: 22px; }
.stage { gap: 6px; }
.canvas-box { border-radius: 18px; }
canvas { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }

/* the dock: one slim row */
.rail { padding: 10px 12px; border-radius: 20px; }
#mainView { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.prompt-wrap textarea { height: 62px; min-height: 0; padding: 8px 104px 8px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.4; }
.prompt-example { top: 6px; bottom: auto; right: 12px; font-size: 11.5px; }
.dock-mid { position: static; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
.dock-mid .shapes { gap: 5px; width: 250px; }
.dock-mid .shape { height: 40px; }
.dock-mid .hint { display: none; }
.opts > summary { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--fg); font-size: 13px; }
.go-row { flex-direction: row; align-items: center; gap: 8px; }
.go-row .primary { flex: none; width: 236px; min-height: 52px; padding: 0 14px; border-radius: 14px; font-size: 17px; flex-direction: row; gap: 8px; }
.go-row .batch { height: 52px; min-width: 62px; }
.go-row .go-sub { font-size: 12px; }
.go-row .go-sub::before { content: "· "; }
.go-row .stop { position: static; width: 40px; height: 40px; background: var(--bg-2); color: var(--bad); border: 1px solid var(--line); }

/* one bar under the image: thumbnails | progress | info and actions */
.stage-foot { flex-direction: row; align-items: center; gap: 12px; min-width: 0; }
.strip-row { flex: 0 1 auto; max-width: 38%; height: 44px; gap: 6px; order: 1; }
.strip { gap: 6px; }
.strip:empty::before { content: ""; }
.tile { height: 44px; border-radius: 9px; }
.all-btn { width: 46px; border-radius: 9px; font-size: 10px; gap: 1px; }
.progress-card { order: 2; position: static; transform: none; flex: none; width: auto; flex-direction: row; align-items: center; gap: 8px; padding: 0; border: 0; background: none; backdrop-filter: none; font-size: 12px; white-space: nowrap; }
.progress-card[hidden] { display: none; }
.progress-card .bar-progress { width: 110px; height: 5px; }
.info { order: 3; flex: 1 1 auto; height: 44px; }

@media (max-width: 900px) {
  .app { grid-template-rows: 44px auto auto; padding: 0 10px 10px; gap: 8px; }
  .stage-foot { flex-wrap: wrap; gap: 4px 10px; }
  .strip-row { max-width: 100%; flex: 1 1 100%; }
  .info { flex: 1 1 100%; height: auto; min-height: 30px; flex-wrap: wrap; }
  .progress-card { flex: 1 1 100%; }
  .progress-card .bar-progress { flex: 1; width: auto; }
  .prompt-wrap textarea { height: auto; min-height: 60px; padding: 8px 12px 24px; }
  .prompt-example { top: auto; bottom: 6px; }
  .dock-mid .shapes { width: auto; flex: 1; }
  .go-row .primary { flex: 1; width: auto; min-height: 48px; }
  .go-row .batch { height: 48px; }
}
.group.grow.prompt-wrap { min-height: 0; flex: none; }
.go-row .batch { font-size: 15px; }
@media (max-width: 900px) {
  /* phones: exactly one screen; the image takes what the dock and bar leave (the keyboard shrinks the image, not the prompt) */
  .app { height: 100dvh; min-height: 0; grid-template-rows: 44px minmax(0, 1fr) auto; }
  .stage { min-height: 0; }
  .canvas-box { min-height: 0; }
  .rail { position: relative; bottom: auto; margin-top: 0; }
}
@media (max-width: 900px) {
  .stage-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; height: auto; align-items: center; }
  .strip-row { grid-row: 1; max-width: none; flex: none; height: 40px; }
  .tile { height: 40px; }
  .all-btn { height: 40px; width: 44px; }
  .progress-card { grid-row: 2; width: auto; }
  .progress-card[hidden] { display: none; }
  .progress-card .bar-progress { flex: 1 1 auto; width: auto; min-width: 80px; }
  .info { grid-row: 3; height: auto; min-height: 32px; flex-wrap: nowrap; gap: 8px; }
  .info .meta { font-size: 11.5px; }
  .info .actions button, .info .actions a { height: 32px; }
}
