:root {
  --bg: #07090d;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f4f7fb;
  --muted: #97a1b3;
  --muted-2: #5f6a7c;
  --accent: #ff3b5c;
  --accent-soft: rgba(255, 59, 92, 0.16);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --amber: #ffb84d;
  --amber-soft: rgba(255, 184, 77, 0.16);
  --green: #34d399;
  --danger: #ef5350;
  --radius: 8px;
  --topbar-h: 60px;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Background layers */

.bg-grid,
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 45%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.35) 45%, transparent 92%);
}

.bg-noise {
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 30;
  background: linear-gradient(90deg, transparent, var(--accent) 28%, var(--cyan) 62%, var(--amber) 85%, transparent);
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1240px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #ff7a45);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 59, 92, 0.35);
}

.brand-mark svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  margin-left: 2px;
}

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

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-chip {
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.icon-btn,
.ghost-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.icon-btn:hover,
.ghost-icon:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.icon-btn:active,
.ghost-icon:active {
  transform: scale(0.94);
}

.icon-btn svg,
.ghost-icon svg {
  width: 17px;
  height: 17px;
}

/* Page */

.page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 44px;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 0 30px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
}

.badge-version {
  padding-left: 9px;
  border-left: 1px solid var(--border-strong);
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

.hero-title {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
}

.accent-gradient {
  margin-left: 10px;
  background: linear-gradient(100deg, var(--accent) 8%, var(--amber) 52%, var(--cyan) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.hero-tags span {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

/* Parse form */

.parse-shell {
  position: relative;
  width: min(760px, 100%);
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.parse-shell:focus-within {
  border-color: rgba(255, 59, 92, 0.65);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 59, 92, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.28);
}

.input-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-left: 14px;
  color: var(--muted-2);
}

#videoUrl {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 8px 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

#videoUrl::placeholder {
  color: var(--muted-2);
}

.ghost-icon.in-input {
  margin-right: 6px;
  border-color: transparent;
  background: transparent;
}

.primary-btn {
  height: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), #ff7a45);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(255, 59, 92, 0.32);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.primary-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(255, 59, 92, 0.42);
}

.primary-btn:active {
  transform: translateY(1px) scale(0.99);
}

.primary-btn svg {
  width: 16px;
  height: 16px;
}

.primary-btn.small {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* Line tabs */

.line-hint {
  margin: 16px 0 0;
  color: var(--amber);
  font-size: 12px;
}

.line-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  min-height: 38px;
}

.line-tab {
  position: relative;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.line-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.line-tab.active {
  color: #fff;
  border-color: rgba(255, 59, 92, 0.75);
  background: linear-gradient(135deg, rgba(255, 59, 92, 0.22), rgba(255, 122, 69, 0.16));
  box-shadow: 0 8px 22px rgba(255, 59, 92, 0.22);
}

.line-tab .tab-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 10px;
}

.line-tab.active .tab-index {
  background: var(--accent);
  color: #fff;
}

.line-tabs.attention {
  animation: attention-shake 0.5s ease;
}

@keyframes attention-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Workspace */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.player-column {
  min-width: 0;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #040507;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.player-corners span {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(34, 211, 238, 0.55);
  z-index: 2;
  pointer-events: none;
}

.player-corners span:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.player-corners span:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.player-corners span:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.player-corners span:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.player-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #040507;
}

.player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted-2);
}

.player-empty-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  margin-bottom: 4px;
}

.player-empty-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}

.player-empty-title {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.player-empty-sub {
  font-size: 12px;
}

.loading-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(4, 5, 7, 0.84);
  color: var(--muted);
  font-size: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Result bar */

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.platform-tag,
.line-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.platform-tag {
  background: var(--tag-bg, rgba(255, 255, 255, 0.1));
  color: var(--tag-color, var(--text));
}

.line-tag {
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.domain-text {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 184, 77, 0.7);
}

.status-dot.ok {
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.status-dot.error {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(239, 83, 80, 0.7);
}

.result-actions {
  display: flex;
  gap: 8px;
}

.small-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.small-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-3);
}

.small-btn svg {
  width: 15px;
  height: 15px;
}

/* Side column */

.side-column {
  display: grid;
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--border);
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.card h2 svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 7px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.text-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.text-btn svg {
  width: 13px;
  height: 13px;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 370px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.history-item {
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 9px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  transition: background 0.15s ease;
}

.history-item:hover {
  background: var(--surface-2);
}

.history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color, var(--muted));
}

.history-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.history-title {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-sub {
  color: var(--muted-2);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-open {
  color: var(--muted-2);
}

.history-open svg {
  width: 14px;
  height: 14px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  color: var(--muted-2);
  font-size: 13px;
}

.empty-state svg {
  width: 22px;
  height: 22px;
}

.quick-card h2 {
  padding: 14px 16px 11px;
  border-bottom: 1px solid var(--border);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 13px 15px 15px;
}

.quick-btn {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.quick-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-3);
  transform: translateY(-1px);
}

.quick-btn .chip-dot {
  width: 6px;
  height: 6px;
}

.chip-dot {
  border-radius: 50%;
  background: var(--dot-color, var(--muted));
}

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
}

/* Dialog */

.settings-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #10141b;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.settings-dialog::backdrop {
  background: rgba(3, 4, 7, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.settings-form {
  padding: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 90px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 16px;
}

.field {
  margin-bottom: 16px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.field-label-row label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.field-hint {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 12px;
}

.field-hint code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 11px;
}

.line-editor {
  display: grid;
  gap: 8px;
}

.line-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 34px;
  gap: 8px;
}

.line-row input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  outline: 0;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
}

.line-row input:focus {
  border-color: var(--accent);
}

.line-row .remove-line {
  width: 34px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.line-row .remove-line:hover {
  color: var(--danger);
  border-color: rgba(239, 83, 80, 0.5);
  background: rgba(239, 83, 80, 0.1);
}

.line-row .remove-line svg {
  width: 15px;
  height: 15px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 60;
  transform: translate(-50%, 16px);
  max-width: min(440px, calc(100% - 32px));
  padding: 11px 17px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(16, 20, 27, 0.92);
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.toast.error {
  border-color: rgba(239, 83, 80, 0.55);
}

.toast.success {
  border-color: rgba(52, 211, 153, 0.55);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise-in 0.5s ease both;
  }

  .hero > *:nth-child(2) { animation-delay: 0.04s; }
  .hero > *:nth-child(3) { animation-delay: 0.08s; }
  .hero > *:nth-child(4) { animation-delay: 0.12s; }
  .hero > *:nth-child(5) { animation-delay: 0.16s; }
  .hero > *:nth-child(6) { animation-delay: 0.2s; }

  .workspace {
    animation: rise-in 0.5s 0.22s ease both;
  }
}

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

/* Responsive */

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .side-column {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 24px, 1240px);
    padding-top: 16px;
  }

  .topbar-inner {
    width: calc(100% - 24px);
  }

  .brand-sub,
  .domain-chip {
    display: none;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .parse-shell {
    flex-direction: column;
    gap: 8px;
  }

  .primary-btn {
    width: 100%;
  }

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

  .result-actions {
    width: 100%;
  }

  .small-btn {
    flex: 1 1 0;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .line-row {
    grid-template-columns: 1fr;
  }

  .line-row .remove-line {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
