:root {
  --bg: #f3f4f1;
  --paper: #f0ece4;
  --surface: #ffffff;
  --surface-soft: #f9fbfc;
  --text: #101624;
  --muted: #657084;
  --line: #d8dee7;
  --line-strong: #b9c2d0;
  --primary: #152238;
  --accent: #1f8a70;
  --accent-dark: #146955;
  --danger: #a23232;
  --success: #256b49;
  --focus: #2563eb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

button,
a,
select,
input,
textarea {
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1680px;
  margin: 0 auto 10px;
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.generation-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.generation-counter::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  content: "";
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topnav a,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 13px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  min-height: 32px;
  border: 1px solid rgba(15, 92, 70, 0.2);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--accent-dark);
  background: rgba(30, 132, 101, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signed-user-pill {
  letter-spacing: 0;
  text-transform: none;
}

.topnav a:hover,
button:hover:not(:disabled),
.button:hover {
  border-color: var(--line-strong);
  background: #eef3f6;
}

button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.button.primary,
button.primary {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.button.primary:hover,
button.primary:hover:not(:disabled) {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.button.ghost {
  background: transparent;
}

.button.ink,
button.ink {
  border-color: #111111;
  color: #ffffff;
  background: #111111;
}

.button.ink:hover,
button.ink:hover:not(:disabled) {
  border-color: #262626;
  background: #262626;
}

.button.outline {
  border-color: #c8c2b8;
  background: transparent;
}

.button.large {
  min-height: 56px;
  padding: 0 28px;
  font-weight: 850;
  text-transform: uppercase;
}

.language-picker select {
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  font-weight: 750;
}

.help-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.help-dialog:not([open]) {
  display: none;
}

.help-dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
}

.help-dialog-inner {
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.help-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.help-header h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-intro {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dbe7dc;
  border-radius: 8px;
  color: #28513f;
  background: #f2fbf5;
  font-size: 14px;
  line-height: 1.55;
}

.feedback-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-message {
  min-height: 190px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.public-name-notice,
.feedback-first-post-note {
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.feedback-bbs-shell {
  display: grid;
  gap: 16px;
}

.feedback-bbs-shell > :not(.topbar) {
  width: min(100%, 1100px);
  margin-right: auto;
  margin-left: auto;
}

.feedback-bbs-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  background: var(--surface);
}

.feedback-bbs-intro h2 {
  max-width: 760px;
  margin: 5px 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.12;
}

.feedback-bbs-intro p {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feedback-login-card {
  display: grid;
  gap: 14px;
  border-left: 3px solid var(--accent);
  padding: 14px 0 14px 18px;
}

.feedback-login-actions,
.feedback-board-heading,
.feedback-thread-header,
.feedback-reply-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-composer,
.feedback-board {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: var(--surface);
}

.feedback-composer > h2,
.feedback-board-heading h2 {
  margin: 0;
  font-size: 20px;
}

.feedback-author-note {
  margin: 0;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.feedback-page-size-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feedback-page-size-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 28px 0 10px;
  color: var(--text);
  background: var(--surface);
}

.feedback-thread-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.feedback-thread {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  background: var(--surface-soft);
}

.feedback-thread.is-pending {
  border-style: dashed;
  background: #fffaf0;
}

.feedback-thread-header h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.feedback-thread-header time,
.feedback-reply-heading time,
.feedback-edit-note {
  color: var(--muted);
  font-size: 12px;
}

.feedback-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.feedback-status.pending {
  color: #854d0e;
  background: #fef3c7;
}

.feedback-status.answered {
  color: #166534;
  background: #dcfce7;
}

.feedback-pending-note {
  margin: 14px 0 0;
  color: #854d0e;
  font-size: 13px;
}

.feedback-thread-content {
  margin-top: 14px;
  color: #263248;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.feedback-thread-content p {
  margin: 0 0 10px;
}

.feedback-thread-content p:last-child,
.feedback-thread-content ul:last-child,
.feedback-thread-content blockquote:last-child {
  margin-bottom: 0;
}

.feedback-thread-content blockquote {
  margin: 10px 0;
  border-left: 3px solid var(--line-strong);
  padding: 3px 0 3px 14px;
  color: var(--muted);
}

.feedback-thread-content code {
  border-radius: 4px;
  padding: 2px 5px;
  background: #e9eef4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.feedback-thread-content a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feedback-attachment-preview {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
}

.feedback-attachment-preview img {
  display: block;
  max-width: min(100%, 560px);
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  object-fit: contain;
}

.feedback-edit-note {
  margin: 12px 0 0;
}

.feedback-official-reply {
  margin-top: 16px;
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  background: #f0faf5;
}

.feedback-official-reply .feedback-thread-content {
  margin-top: 8px;
}

.feedback-empty {
  margin-top: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  padding: 36px 20px;
  text-align: center;
}

.feedback-empty h3,
.feedback-empty p {
  margin: 0;
}

.feedback-empty p {
  margin-top: 6px;
  color: var(--muted);
}

.feedback-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.feedback-pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
}

.landing-links .feedback-open {
  min-height: auto;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-weight: 750;
}

.landing-links .feedback-open:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.help-section {
  display: grid;
  gap: 12px;
  padding: 18px 20px 0;
}

.help-section:last-child {
  padding-bottom: 20px;
}

.help-section h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.help-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.help-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.help-table th,
.help-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5eaf0;
  text-align: left;
  vertical-align: top;
}

.help-table th {
  color: #334155;
  background: #f8fafc;
  font-weight: 800;
}

.help-table tr:last-child td {
  border-bottom: 0;
}

.help-table code {
  white-space: nowrap;
}

.help-code {
  max-height: none;
  font-size: 12px;
}

.help-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.about-shell {
  display: grid;
  align-content: start;
  gap: 10px;
}

.about-panel {
  display: grid;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.guide-panel .help-section {
  padding: 0;
}

.guide-panel .help-table {
  min-width: 0;
}

.about-hero-block {
  display: grid;
  gap: 12px;
}

.about-hero-block h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.about-hero-block p:last-child {
  max-width: 760px;
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.55;
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.about-meta div {
  padding: 18px;
  background: #fbfdff;
}

.about-meta dt {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
}

.about-copy {
  display: grid;
  gap: 10px;
}

.about-copy h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.about-copy p,
.about-copy li {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
}

.about-copy p,
.about-copy ul {
  margin: 0;
}

.about-copy ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.coffee-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.coffee-qr {
  display: block;
  width: min(320px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.coffee-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 850;
}

.coffee-link:hover {
  background: var(--accent-dark);
}

.coffee-button {
  cursor: pointer;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-shell {
  min-height: 100vh;
  color: #171717;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(120deg, #f2eee6, #f7f5ef 54%, #edf1f0);
}

.landing-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 0 clamp(22px, 5vw, 88px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.13);
}

.brand-mark,
.landing-links,
.landing-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-logo-image {
  display: block;
  width: 240px;
  max-width: 32vw;
  height: auto;
}

.landing-links {
  justify-content: center;
  color: #5c5a56;
  font-weight: 750;
}

.landing-actions {
  justify-content: flex-end;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: center;
  padding: clamp(44px, 6vw, 88px) clamp(22px, 5vw, 88px) 54px;
}

.hero-copy {
  max-width: 860px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 46px;
  color: #706c65;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 840px;
  margin: 0;
  color: #111111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 42px 0 0;
  color: #5c5a56;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.32;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 54px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 68px;
  color: #726e67;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-notes span::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #a56d4d;
  content: "";
}

.hero-side {
  display: grid;
  gap: 22px;
}

.feature-visual {
  min-height: 0;
  border: 1px solid rgba(17, 17, 17, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  overflow: hidden;
}

.feature-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-update {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
  max-height: 360px;
  padding: 34px clamp(22px, 5vw, 88px);
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.42);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.landing-update .eyebrow {
  margin-bottom: 10px;
  color: #8a5a40;
}

.landing-update p {
  max-width: 720px;
  margin: 0;
  color: #4f4b45;
  font-size: 17px;
  line-height: 1.55;
}

.landing-update ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-update li {
  position: relative;
  padding-left: 24px;
  color: #312d28;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.landing-update li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.landing-syntax-details {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.landing-syntax-details summary {
  width: fit-content;
  color: #625d55;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.release-syntax-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.release-syntax-table {
  min-width: 760px;
  border: 1px solid rgba(17, 17, 17, 0.11);
  background: rgba(255, 255, 255, 0.38);
}

.release-syntax-table th,
.release-syntax-table td {
  border-color: rgba(17, 17, 17, 0.1);
  color: #4f4b45;
  font-size: 12px;
  line-height: 1.45;
}

.release-syntax-table code {
  color: #27231f;
  font-size: 12px;
}

.landing-seo-content {
  padding: clamp(42px, 6vw, 76px) clamp(22px, 5vw, 88px);
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.28);
}

.landing-seo-heading {
  max-width: 820px;
}

.landing-seo-heading .eyebrow {
  margin: 0 0 12px;
  color: #8a5a40;
}

.landing-seo-heading h2 {
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

.landing-seo-heading > p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: #56514a;
  font-size: 17px;
  line-height: 1.68;
}

.landing-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 52px);
  margin-top: 44px;
}

.landing-seo-grid article {
  padding-top: 18px;
  border-top: 2px solid rgba(138, 90, 64, 0.46);
}

.landing-seo-grid h3 {
  margin: 0;
  color: #27231f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.3;
}

.landing-seo-grid p,
.landing-seo-footer {
  color: #625d55;
  font-size: 15px;
  line-height: 1.65;
}

.landing-seo-grid p {
  margin: 13px 0 0;
}

.landing-seo-footer {
  max-width: 820px;
  margin: 38px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.landing-about {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  gap: 1px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(17, 17, 17, 0.1);
}

.landing-about-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1px;
  margin: 0;
  background: rgba(17, 17, 17, 0.1);
}

.landing-about-meta > div,
.landing-coffee {
  min-height: 104px;
  padding: 18px clamp(22px, 5vw, 88px);
  background: rgba(247, 245, 239, 0.92);
}

.landing-about-meta dt {
  margin-bottom: 8px;
  color: #706c65;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-about-meta dd {
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.25;
}

.landing-coffee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-coffee h2 {
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.2;
}

.landing-coffee p {
  max-width: 620px;
  margin: 6px 0 0;
  color: #625d55;
  font-size: 13px;
  line-height: 1.5;
}

.landing-coffee .coffee-link {
  flex: 0 0 auto;
  justify-self: auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.workspace-support {
  max-width: 1680px;
  margin: 12px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.workspace-support .landing-about-meta > div,
.workspace-support .landing-coffee {
  min-height: 64px;
  padding: 10px 14px;
}

.workspace-support .landing-about-meta dt {
  margin-bottom: 4px;
  font-size: 9px;
}

.workspace-support .landing-about-meta dd {
  font-size: 14px;
}

.workspace-support .landing-coffee {
  gap: 14px;
}

.workspace-support .landing-coffee h2 {
  font-size: 15px;
}

.workspace-support .landing-coffee p {
  margin-top: 3px;
  font-size: 11px;
}

.workspace-support .landing-coffee .coffee-link {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.alipay-dialog {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 10px;
  color: #171717;
  background: #f8f6f0;
  box-shadow: 0 24px 70px rgba(16, 22, 36, 0.28);
  overflow: auto;
}

.alipay-dialog::backdrop {
  background: rgba(16, 22, 36, 0.58);
  backdrop-filter: blur(2px);
}

.alipay-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.alipay-dialog .eyebrow {
  margin: 0 0 8px;
  color: #8a5a40;
}

.alipay-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.alipay-dialog > p {
  margin: 14px 0 18px;
  color: #625d55;
}

.alipay-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.alipay-dialog-close {
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 50%;
  place-items: center;
  color: #312d28;
  background: #ffffff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.alipay-dialog-close:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.landing-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(17, 17, 17, 0.1);
}

.landing-band > div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 0 clamp(22px, 5vw, 88px);
  background: rgba(247, 245, 239, 0.88);
}

.landing-band strong {
  color: #a56d4d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.landing-band span {
  font-weight: 800;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  grid-template-rows: max-content minmax(0, 1fr);
  gap: 12px;
  max-width: 1680px;
  min-height: calc(100vh - 112px);
  margin: 0 auto;
}

.workspace.guest-workspace {
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
}

.control-panel,
.input-panel,
.preview-panel,
.account-card,
.history-card,
.auth-card,
.admin-panel,
.stat-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.control-panel,
.input-panel,
.account-panel,
.auth-card,
.history-card {
  min-width: 0;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.field,
.stack-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 210px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px 10px;
  color: #111827;
  background: #fbfdff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.input-panel {
  grid-column: 1 / -1;
  align-self: start;
  display: grid;
  gap: 3px;
  min-height: 0;
  padding: 6px 16px;
}

#sourceInput {
  min-height: 44px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.6;
}

.input-panel .field {
  gap: 4px;
}

.input-heading-row,
.input-history-controls,
.hidden-branches-heading,
.hidden-branch-item {
  display: flex;
  align-items: center;
}

.input-heading-row {
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.input-history-controls {
  gap: 6px;
}

.input-history-controls .small-button {
  min-height: 28px;
  padding: 0 9px;
}

.input-panel .muted {
  font-size: 12px;
  line-height: 1.2;
}

input,
select {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0 11px;
  color: #111827;
  background: #ffffff;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.notice,
.flash {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #334155;
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.4;
}

.notice.success,
.flash.success {
  border-color: #b8d8c4;
  color: var(--success);
  background: #f1fbf4;
}

.notice.error,
.flash.error {
  border-color: #efb4b4;
  color: var(--danger);
  background: #fff5f5;
}

.flash {
  max-width: 1680px;
  margin: 0 auto 12px;
}

.settings-grid {
  display: grid;
  gap: 10px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.setting-row select {
  width: 132px;
}

.setting-row input[type="text"] {
  width: 160px;
}

.annotation-text-row {
  align-items: flex-start;
}

.checkbox-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--accent);
}

.movement-toggle-list {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.movement-toggle-list:empty {
  display: none;
}

.movement-toggle-item {
  display: grid;
  gap: 7px;
}

.movement-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.movement-toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.movement-style-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.movement-style-row select {
  width: 112px;
  min-height: 32px;
  font-size: 12px;
}

.movement-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-left: 1px;
}

.annotation-color-row {
  align-items: flex-start;
}

.annotation-color-palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  max-width: 160px;
}

.movement-color-swatch {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.movement-color-swatch.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.22);
}

.movement-color-swatch.empty {
  background: #ffffff;
  border-style: dashed;
}

.movement-color-swatch:hover:not(:disabled) {
  border-color: #64748b;
  transform: translateY(-1px);
}

.movement-color-swatch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.free-drawing-tools {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.free-drawing-title {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.hidden-branches-panel {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.hidden-branches-panel[hidden] {
  display: none;
}

.hidden-branches-heading {
  justify-content: space-between;
  gap: 10px;
}

.hidden-branches-heading p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.hidden-branches-list {
  display: grid;
  gap: 6px;
}

.hidden-branch-item {
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
}

.hidden-branch-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hidden-branch-item button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.visually-hidden-color-input {
  position: fixed;
  inset: auto auto 0 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.button-grid .primary {
  grid-column: 1 / -1;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.small-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.latex-panel,
.syntax-reference-panel {
  display: grid;
  gap: 10px;
}

.syntax-reference-grid {
  width: 100%;
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.syntax-reference-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid #e5eaf0;
  border-radius: 7px;
  background: #fbfdff;
}

.syntax-reference-row > div {
  min-width: 0;
  padding: 7px 8px;
  overflow: hidden;
}

.syntax-reference-row > div + div {
  border-left: 1px solid #e5eaf0;
}

.syntax-reference-head {
  color: #334155;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 850;
}

.syntax-reference-head > div {
  background: #f8fafc;
}

.syntax-reference-grid code {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.syntax-effect {
  color: #050505;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.15;
  background: #ffffff;
}

.syntax-effect sub,
.syntax-effect sup {
  font-size: 60%;
  font-style: italic;
}

.syntax-effect sup {
  font-style: normal;
}

.syntax-strike {
  text-decoration: line-through;
  text-decoration-thickness: 1.3px;
}

.syntax-hollow {
  color: #ffffff;
  -webkit-text-stroke: 0.65px #050505;
  paint-order: stroke;
}

.syntax-roof {
  font-size: 16px;
}

.syntax-effect-note {
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  color: #475569;
}

.syntax-empty-demo {
  display: inline-grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.syntax-empty-stem {
  display: block;
  width: 2px;
  height: 30px;
  justify-self: center;
  border-radius: 999px;
  background: #050505;
}

.syntax-curve-demo {
  display: inline-block;
  width: 54px;
  height: 32px;
  margin-right: 7px;
  vertical-align: middle;
}

.syntax-curve-demo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.syntax-curve-demo path {
  fill: none;
  stroke: #050505;
  stroke-width: 2.4;
  stroke-linecap: round;
}

pre {
  overflow: auto;
  max-height: 250px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #1f2937;
  background: #f8fafc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.preview-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.preview-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.preview-toolbar h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.preview-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.icon-button,
.zoom-value {
  min-width: 36px;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0 10px;
  color: #111827;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.zoom-value {
  min-width: 58px;
  font-size: 12px;
}

.icon-button:disabled,
.zoom-value:disabled {
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.canvas-wrap {
  overflow: auto;
  min-height: 460px;
  padding: 20px;
  background:
    linear-gradient(#edf2f7 1px, transparent 1px),
    linear-gradient(90deg, #edf2f7 1px, transparent 1px);
  background-size: 24px 24px;
}

.canvas-stage {
  position: relative;
  min-width: max-content;
  min-height: max-content;
}

.tree-svg {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  overflow: visible;
  background: transparent;
}

.branch {
  fill: none;
  stroke: #0f172a;
  stroke-width: 1.55;
  stroke-linecap: round;
  cursor: pointer;
}

.branch.dashed,
.movement.dashed {
  stroke-dasharray: 9 7;
}

.movement {
  fill: none;
  stroke: #0f172a;
  stroke-width: 1.55;
  stroke-linecap: round;
  cursor: pointer;
}

.free-curve {
  fill: none;
  stroke: #0f172a;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: grab;
}

.free-curve.bold {
  stroke-width: 4.2;
}

.free-curve.dashed {
  stroke-dasharray: 9 7;
}

.branch-hit,
.movement-hit,
.triangle-hit,
.free-curve-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 16;
  stroke-linecap: round;
  pointer-events: stroke;
  cursor: pointer;
}

.triangle-hit {
  fill: transparent;
  pointer-events: all;
}

.branch.selected,
.movement.selected,
.free-curve.selected {
  filter: drop-shadow(0 0 2px rgba(29, 78, 216, 0.45));
}

.movement-handle,
.branch-handle,
.triangle-handle,
.free-curve-handle {
  fill: #ffffff;
  stroke: #1d4ed8;
  stroke-width: 2;
  cursor: grab;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.18));
}

.movement-handle.control {
  fill: #eff6ff;
}

.movement-handle:hover,
.movement-handle:focus,
.branch-handle:hover,
.branch-handle:focus,
.triangle-handle:hover,
.triangle-handle:focus,
.free-curve-handle:hover,
.free-curve-handle:focus {
  fill: #dbeafe;
  outline: none;
}

.movement-handle:active,
.branch-handle:active,
.triangle-handle:active,
.free-curve-handle:active {
  cursor: grabbing;
}

.free-annotation {
  cursor: grab;
}

.free-annotation:active,
.free-curve:active {
  cursor: grabbing;
}

.free-annotation-text {
  fill: #050505;
  font-family: "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 400;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.node-group {
  cursor: grab;
}

.node-group:active {
  cursor: grabbing;
}

.node-group.label-selected .node-label,
.node-group.triangle-selected .node-label,
.node-group.triangle-selected .triangle-roof {
  filter: drop-shadow(0 0 2px rgba(29, 78, 216, 0.5));
}

.label-selection-box {
  fill: none;
  stroke: #1d4ed8;
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.annotation-selection-box {
  fill: none;
  stroke: #1d4ed8;
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.extra-delete-menu {
  cursor: pointer;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.22));
}

.extra-delete-menu-bg {
  fill: #172033;
  stroke: #0f172a;
  stroke-width: 1;
}

.extra-delete-menu-text {
  fill: #ffffff;
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
}

.empty-terminal-hit {
  fill: transparent;
  pointer-events: all;
}

.node-label {
  fill: #050505;
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.node-label.phrase {
  font-size: 25px;
}

.node-label.leaf {
  font-size: 20px;
}

.node-label .subscript {
  font-size: 58%;
  font-style: italic;
}

.node-label .superscript {
  font-size: 58%;
}

.node-label .italic-stem,
.node-label .initial-lowercase {
  font-style: italic;
}

.node-label .hollow-stem {
  fill: #ffffff;
  paint-order: normal;
  stroke: #050505;
  stroke-width: 0.8px;
}

.label-strike-line {
  stroke: #050505;
  stroke-width: 1.45;
  stroke-linecap: round;
  pointer-events: none;
}

.triangle-roof {
  stroke-linejoin: round;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 300px;
  color: var(--muted);
  font-size: 14px;
}

.account-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.account-card,
.history-card,
.auth-card {
  padding: 16px;
}

.auth-landing {
  border-color: rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(10px);
}

.account-card h2 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.account-card p:last-child,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.history-card {
  display: grid;
  gap: 12px;
}

.compact-history {
  padding: 0;
}

.compact-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  cursor: pointer;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.compact-history summary::-webkit-details-marker {
  display: none;
}

.compact-history summary::after {
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  content: "+";
}

.compact-history[open] summary {
  border-bottom: 1px solid #e2e8f0;
}

.compact-history[open] summary::after {
  content: "-";
}

.compact-history summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.compact-history > .muted,
.compact-history > .history-list {
  padding: 12px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  justify-items: start;
  gap: 4px;
  width: 100%;
  min-height: auto;
  padding: 10px;
  text-align: left;
}

.history-item span {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.35;
}

.history-item small {
  color: var(--muted);
  font-size: 11px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}

.auth-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 5px;
  color: var(--muted);
  font-weight: 700;
}

.auth-tabs a.active {
  color: #ffffff;
  background: var(--primary);
}

.stack-form {
  display: grid;
  gap: 12px;
}

.oauth-grid {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.guest-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid #c8c2b8;
  border-radius: 7px;
  color: #25211d;
  font-weight: 800;
  background: transparent;
}

.oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 700;
}

.oauth-button[disabled] {
  color: #98a2b3;
  background: #f8fafc;
}

.admin-shell {
  max-width: 1400px;
  margin: 0 auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-grid > div {
  display: grid;
  gap: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.stat-grid > div::after {
  content: attr(data-stat-icon);
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #edf4ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

.stat-grid span {
  color: var(--muted);
  font-size: 13px;
}

.stat-grid strong {
  font-size: 28px;
}

.admin-panel {
  margin-bottom: 14px;
  padding: 16px;
}

.admin-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #334155;
  font-weight: 800;
}

.inline-form,
.action-cell form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reset-form input {
  width: 150px;
  min-height: 34px;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  }

  .workspace.guest-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .landing-nav {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .landing-links,
  .landing-actions {
    justify-content: flex-start;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .hero-kicker {
    margin-bottom: 28px;
  }

  .hero-notes {
    margin-top: 38px;
  }

  .landing-update,
  .landing-about,
  .landing-band {
    grid-template-columns: 1fr;
  }

  .landing-seo-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .app-shell {
    padding: 10px;
  }

  .topbar,
  .workspace,
  .account-panel,
  .stat-grid,
  .feedback-bbs-intro,
  .about-meta {
    grid-template-columns: 1fr;
  }

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

  .generation-counter {
    margin-left: 0;
  }

  .topnav {
    justify-content: flex-start;
  }

  .feedback-bbs-intro,
  .feedback-composer,
  .feedback-board,
  .feedback-thread {
    padding: 16px;
  }

  .feedback-login-card {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 16px 0 0;
  }

  .preview-toolbar {
    flex-direction: column;
  }

  .zoom-controls {
    align-self: flex-end;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    display: grid;
  }

  .button.large {
    width: 100%;
  }

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

  .setting-row select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .landing-about-meta {
    grid-template-columns: 1fr;
  }

  .landing-about-meta > div,
  .landing-coffee {
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .workspace-support .landing-about-meta > div,
  .workspace-support .landing-coffee {
    padding: 10px 14px;
  }

  .alipay-dialog {
    padding: 18px;
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -60;
  }
}

@keyframes pulse-dot {
  50% {
    opacity: 0.35;
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
