:root {
  --bg: #0e0f13;
  --panel: #16181f;
  --panel-2: #1d2029;
  --line: #2a2e3a;
  --text: #e9ebf1;
  --muted: #8b90a0;
  --accent: #ff6a3d;
  --accent-2: #ffb03d;
  --active: #2b2f3d;
  --danger: #ff5a6a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.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; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .dropzone:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- top bar */
.topbar {
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; }
.logo {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111; font-weight: 800;
}
.project-name {
  background: transparent; border: 1px solid transparent; color: var(--text);
  font: inherit; font-weight: 600; padding: 6px 8px; border-radius: 6px; min-width: 200px;
}
.project-name:hover, .project-name:focus { border-color: var(--line); outline: none; }
.spacer { flex: 1; }
.save-state { color: var(--muted); font-size: 12px; }

/* ---------- buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #3a3f4f; background: #242836; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #111; }
.btn.primary:hover { background: #ff7d55; }
.btn.ghost { background: transparent; }
.btn.tiny { padding: 4px 8px; font-size: 12px; border-radius: 6px; }
.btn.wide { width: 100%; }
.btn.round { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 14px; }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }

input[type="number"], select, textarea {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 8px; font: inherit;
}
input[type="number"]:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="checkbox"] { accent-color: var(--accent); }
input[type="color"] {
  width: 44px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer;
}

/* ---------- home */
.home { max-width: 1120px; width: 100%; margin: 0 auto; padding: 40px 20px 70px; overflow-y: auto; }
.home-intro { margin-bottom: 28px; }
.home-eyebrow { margin: 0 0 8px; color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.home-intro h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.03em; }
.home-intro > div > p:last-child { margin: 10px 0 0; color: #b8bdc8; font-size: 15px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--line); border-radius: 16px; padding: 56px 16px; cursor: pointer;
  background: var(--panel); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #1b1d25; }
.drop-icon { font-size: 34px; color: var(--accent); }
.drop-title { font-size: 20px; font-weight: 700; }
.drop-sub { color: var(--muted); }
.dropzone .progress { width: 60%; margin-top: 12px; }
.upload-status { min-height: 18px; color: #b8bdc8; font-size: 12px; }
.projects-section { margin-top: 35px; }
.projects-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.projects-heading h2 { margin: 0; color: var(--text); font-size: 21px; }
.project-search-label { display: grid; gap: 5px; color: #b8bdc8; font-size: 12px; }
.project-search-label input { min-width: 240px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--text); font: inherit; font-size: 14px; }
.project-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.project-card:hover, .project-card:focus-within { border-color: #4b5060; }
.project-open { display: block; color: var(--text); text-decoration: none; }
.project-thumbnail { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #303442, #1b1d25 55%, #533226); }
.project-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbnail-fallback { color: #c8ccd6; font-size: 30px; opacity: .7; }
.project-card-copy { display: grid; gap: 6px; padding: 13px 14px 8px; }
.project-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.project-card-meta { color: #aeb3c0; font-size: 12px; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px 10px 14px; }
.status-chip { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid #4b4a39; border-radius: 999px; color: #f3d58e; background: #2a261e; font-size: 11px; font-weight: 700; }
.status-chip.status-error { border-color: #63383f; background: #2d1d22; color: #ff9ca6; }
.project-empty { grid-column: 1 / -1; padding: 40px 22px; border: 1px dashed #4b5060; border-radius: 12px; background: var(--panel); text-align: center; }
.project-empty h3 { margin: 8px 0 6px; font-size: 18px; }
.project-empty p { margin: 0 0 14px; color: #b8bdc8; }
.empty-icon { color: var(--accent); font-size: 28px; }
.project-skeleton { aspect-ratio: 1.2; border-radius: 12px; background: linear-gradient(110deg, #1d2029 8%, #303440 18%, #1d2029 33%); background-size: 220% 100%; animation: skeleton 1.4s linear infinite; }
@keyframes skeleton { to { background-position-x: -220%; } }
.project-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.project-item:hover { border-color: #3a3f4f; }
.project-item .name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-item .meta { color: var(--muted); font-size: 12px; }
.empty { color: var(--muted); padding: 12px 0; }

/* ---------- editor layout */
.editor { flex: 1; display: grid; grid-template-columns: 340px minmax(0, 1fr) 356px; min-height: 0; }
.panel { background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.panel.left { border-right: 1px solid var(--line); }
.panel.right { border-left: 1px solid var(--line); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700;
}

.transcribe-box { padding: 14px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.transcribe-box p { margin: 0; color: var(--muted); }
.transcribe-box label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.transcribe-box .output-hint { font-size: 12px; line-height: 1.4; }

.caption-tools { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.caption-tools .row { display: flex; align-items: end; gap: 8px; }
.caption-tools label { display: grid; gap: 2px; font-size: 11px; color: var(--muted); flex: 1; }
.caption-tools input { width: 100%; padding: 4px 6px; }

.caption-list { overflow-y: auto; flex: 1; padding: 6px; }
.cap {
  border: 1px solid transparent; border-radius: 8px; padding: 8px; margin-bottom: 4px;
  background: transparent;
}
.cap:hover { background: var(--panel-2); }
.cap.active { background: var(--active); border-color: #3b4153; }
.cap-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cap-time {
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted);
  background: none; border: none; padding: 2px 4px; border-radius: 4px; cursor: pointer;
}
.cap-time:hover { color: var(--text); background: var(--bg); }
.cap-actions { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .1s; }
.cap:hover .cap-actions, .cap.active .cap-actions, .cap:focus-within .cap-actions { opacity: 1; }
.icon-btn {
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px;
  padding: 3px 6px; border-radius: 4px;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
.cap textarea {
  width: 100%; resize: none; min-height: 34px; background: transparent; border-color: transparent;
  font-size: 14px; line-height: 1.35; padding: 4px 6px;
}
.cap textarea:hover { border-color: var(--line); }
.cap textarea:focus { background: var(--bg); }
.cap-words { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 6px; }
.cap-word { font: inherit; font-size: 11px; color: #b8bdc8; padding: 0 4px; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.cap-word:hover { color: var(--text); background: var(--bg); }
.cap-word.on { color: #111; background: var(--accent-2); }
.word-edit { width: 84px; min-width: 60px; font-size: 11px; padding: 1px 4px; }

/* ---------- stage */
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #0a0b0e; }
.player-wrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.player { position: relative; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.player video, .player canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.player video { object-fit: fill; }
.player canvas { cursor: grab; touch-action: none; }
.player canvas.dragging { cursor: grabbing; }
.transport {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 20px;
  border-top: 1px solid var(--line); background: var(--panel);
}
.time { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #b8bdc8; min-width: 120px; }
.speed-label { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #b8bdc8; font-size: 11px; }
.speed-label select { padding: 4px; font-size: 12px; }
.waveform-wrap { position: relative; min-height: 48px; padding: 0 20px; background: var(--panel); }
.waveform-wrap canvas { display: block; width: 100%; height: 48px; }
.waveform-wrap span { position: absolute; top: 16px; left: 28px; color: #b8bdc8; font-size: 11px; }
.seek-row { padding: 0 20px 5px; background: var(--panel); }
.seek-row input { display: block; margin: 0; }
.hint { text-align: center; color: var(--muted); font-size: 11px; padding: 6px; background: var(--panel); }

/* ---------- style panel */
.style-panel-head { min-height: 67px; padding: 13px 16px; }
.style-panel-head > div { display: grid; gap: 2px; }
.style-panel-head span { font-size: 16px; letter-spacing: -.015em; }
.style-panel-head small { color: var(--muted); font-size: 11px; font-weight: 500; }
.style-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px;
  padding: 8px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.style-tabs button {
  min-width: 0; min-height: 48px; display: grid; place-items: center; align-content: center; gap: 3px;
  padding: 5px 3px; border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: var(--muted); font: inherit; font-size: 10px; font-weight: 650; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.style-tabs button span { font-size: 15px; line-height: 1; }
.style-tabs button:hover { color: var(--text); background: var(--panel-2); }
.style-tabs button[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, var(--panel)); color: var(--accent);
}
.style-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 28px; scrollbar-gutter: stable; }
.style-tab-panel { min-width: 0; }
.style-tab-hint { margin: 0; padding: 13px 2px 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin: 18px 0 8px; font-weight: 700;
}
.style-group { border-top: 1px solid var(--line); padding-bottom: 10px; }
.style-group summary { cursor: pointer; list-style: none; padding: 15px 2px 13px; color: #d6d9e2; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.style-group summary::-webkit-details-marker { display: none; }
.style-group summary::after { content: "+"; float: right; color: var(--accent-2); font-size: 17px; line-height: 14px; }
.style-group[open] summary::after { content: "−"; }
.templates-group { border-top: 0; padding: 0; }
.templates-group > summary { display: none; }
.template-search {
  height: 40px; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--muted);
}
.template-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 13%, transparent); }
.template-search > span:first-child { flex: none; font-size: 18px; line-height: 1; transform: rotate(-18deg); }
.template-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.template-search input::placeholder { color: #6f7380; }
.field { margin-bottom: 13px; }
.field > label, .field .two label, .field.two label { display: flex; justify-content: space-between; font-size: 12px; color: #c6cad6; margin-bottom: 4px; }
.field output { color: var(--muted); font-variant-numeric: tabular-nums; }
.field select { width: 100%; min-height: 38px; padding-inline: 10px; }
.field.color { display: flex; align-items: center; justify-content: space-between; }
.field.color label { margin: 0; }
.field.color input[type="color"] { width: 50px; height: 32px; border-radius: 8px; }
.field.check label { display: flex; gap: 8px; align-items: center; justify-content: flex-start; cursor: pointer; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline { display: flex; gap: 6px; }
.inline select { flex: 1; min-width: 0; }
.upload-font { font-size: 16px; cursor: pointer; }

.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 4px; }
.preset {
  height: 112px; border-radius: 11px; border: 1px solid var(--line); cursor: pointer;
  background: #2c2f38 center/cover; display: flex; flex-direction: column; position: relative; overflow: hidden;
  padding: 0; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.preset:hover { border-color: var(--accent); transform: translateY(-1px); }
.preset canvas { width: 100%; height: 82px; display: block; object-fit: cover; }
.preset span {
  display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  min-height: 29px; font-size: 11px; font-weight: 650; color: #fff; background: #20232b; padding: 6px 7px; text-align: left;
}
.preset-empty { grid-column: 1 / -1; margin: 6px 0 0; padding: 24px 14px; border: 1px dashed var(--line); border-radius: 11px; color: var(--muted); text-align: center; font-size: 12px; }

/* ---------- modal / toast */
.progress { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; width: min(440px, 100%); display: grid; gap: 14px; }
.modal-title { font-weight: 700; font-size: 16px; }
.modal-msg { color: var(--muted); font-size: 13px; white-space: pre-wrap; max-height: 200px; overflow: auto; word-break: break-word; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: #2a2e3a; border: 1px solid #3a3f4f; padding: 10px 16px; border-radius: 8px; max-width: calc(100% - 32px);
}
.toast.error { border-color: var(--danger); }
.shortcuts-dialog { width: min(440px, calc(100% - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); }
.shortcuts-dialog::backdrop { background: rgba(0,0,0,.7); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { margin: 0; font-size: 19px; }
.shortcuts-dialog dl { display: grid; gap: 0; margin: 18px 0 0; }
.shortcuts-dialog dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid var(--line); }
.shortcuts-dialog dt { font-weight: 700; white-space: nowrap; }
.shortcuts-dialog dd { margin: 0; color: #b8bdc8; text-align: right; }

@media (max-width: 1100px) {
  body { overflow: auto; }
  .editor { display: flex; flex-direction: column; flex: 0 0 auto; width: 100%; }
  .stage { order: -1; position: sticky; top: 0; z-index: 5; height: min(58vh, 520px); min-height: 300px; }
  .panel.left, .panel.right { border: none; border-top: 1px solid var(--line); max-height: none; flex: none; }
  .panel.left { height: 420px; }
  .panel.right { height: auto; }
  .style-tabs { position: sticky; top: 0; z-index: 2; }
  .panel.right .style-scroll { overflow: visible; }
}
@media (max-width: 600px) {
  .topbar.editor-mode { height: auto; min-height: 56px; flex-wrap: wrap; gap: 7px; padding: 8px; }
  .topbar.editor-mode .brand { order: 1; font-size: 0; }
  .topbar.editor-mode .brand .logo { font-size: 16px; }
  .topbar.editor-mode .project-name { order: 2; flex: 1 1 120px; min-width: 0; width: 0; }
  .topbar.editor-mode .user-menu { order: 3; }
  .topbar.editor-mode .spacer { order: 4; flex: 0 0 100%; height: 0; }
  .topbar.editor-mode #srtBtn { order: 5; }
  .topbar.editor-mode #renderBtn { order: 6; }
  .topbar.editor-mode .save-state { order: 7; margin-left: auto; }
  .home { padding: 28px 16px 48px; }
  .projects-heading { align-items: stretch; flex-direction: column; }
  .project-search-label input { min-width: 0; width: 100%; }
  .project-list { grid-template-columns: 1fr; }
  .dropzone { padding: 40px 14px; text-align: center; }
  .dropzone .progress { width: 100%; }
  .stage { height: min(46vh, 370px); min-height: 260px; }
  .transport { gap: 5px; padding: 6px 8px; }
  .transport .btn.tiny { padding: 4px 6px; }
  .time { min-width: 96px; font-size: 10px; }
  .waveform-wrap, .seek-row { padding-inline: 8px; }
  .hint { display: none; }
  .style-panel-head { min-height: 60px; }
  .style-scroll { padding-inline: 12px; }
  .style-tabs { padding-inline: 6px; }
  .style-tabs button { font-size: 9px; }
  .preset { height: 104px; }
  .preset canvas { height: 75px; }
}
@media (prefers-reduced-motion: reduce) { .project-skeleton { animation: none; } .preset, .style-tabs button { transition: none; } .preset:hover { transform: none; } }

/* ---------- login */
.login { flex: 1; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(255,106,61,.14), transparent 60%), var(--bg); }
.login-card { width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.45); text-align: center; }
.login-brand { display: flex; justify-content: center; margin-bottom: 14px; }
.logo.big { width: 52px; height: 52px; border-radius: 14px; font-size: 26px; }
.login h1 { margin: 0; font-size: 22px; }
.login-sub { color: var(--muted); margin: 6px 0 24px; }
.login-step { text-align: left; }
.login-label { display: block; font-size: 13px; color: #c6cad6; margin-bottom: 6px; }
.login-label b { color: var(--text); font-weight: 600; word-break: break-all; }
.login-input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; }
.login-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,61,.18); }
.login-input.code { text-align: center; letter-spacing: .5em; font-size: 24px; font-variant-numeric: tabular-nums; }
.login-btn { margin-top: 12px; padding: 12px; font-size: 15px; border-radius: 10px; }
.login-note { color: var(--muted); font-size: 12px; margin: 12px 0 0; text-align: center; }
.login-links { display: flex; justify-content: space-between; margin-top: 12px; }
.link-btn { background: none; border: none; color: var(--accent-2); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; }
.link-btn:disabled { color: var(--muted); cursor: default; }
.login-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 12px; }

/* ---------- user menu */
.user-menu { position: relative; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: linear-gradient(135deg, #2b2f3d, #1d2029); color: var(--text); font-weight: 700; }
.avatar:hover { border-color: var(--accent); }
.dropdown { position: absolute; right: 0; top: 42px; min-width: 220px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; z-index: 40; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.dropdown-email { padding: 8px 10px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.dropdown-item { width: 100%; text-align: left; background: none; border: none; color: var(--text); font: inherit;
  padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.dropdown-item:hover { background: var(--active); }
.dropdown-item { display: block; text-decoration: none; box-sizing: border-box; }
.login-credits { display: inline-block; margin-top: 16px; color: var(--muted); font-size: 12px; text-decoration: none; }
.login-credits:hover { color: var(--text); }
