:root {
  --bg: #f7f6f2;
  --paper: #fff;
  --ink: #253b33;
  --muted: #78837c;
  --line: #e4e8e0;
  --green: #2d684e;
  --pale: #eaf0e8;
  --purple: #9b73b2;
  --radius: 12px;
  font-family:
    Inter,
    "Noto Sans TC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a3bfa0;
  outline-offset: 3px;
}
.icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  vertical-align: middle;
}
.studio {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 238px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 30px 21px 18px;
  display: flex;
  flex-direction: column;
  background: #f0f2eb;
  position: fixed;
  inset: 0 auto 0 0;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -1px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 39px;
  border-radius: 12px 12px 12px 3px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 29px;
  letter-spacing: -3px;
  padding-right: 3px;
}
.project-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 44px 0 34px;
}
.project-monogram {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  border: 1px solid #c6d3bd;
  background: #dce6ce;
  border-radius: 10px;
  color: #5b6e46;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
}
.project-card strong {
  display: block;
  font-size: 13px;
}
.project-card span:not(.project-monogram) {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.nav-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--muted);
}
.nav-label {
  margin: 0 13px 14px;
}
nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 13px 14px;
  text-align: left;
  font-size: 13px;
  color: #788579;
}
.nav-item.active {
  color: var(--green);
  background: #dfe8d8;
  font-weight: 650;
}
.nav-item > span {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid #c2d1b9;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 60px;
}
.private-note {
  font-size: 11px;
  line-height: 1.6;
}
.private-note .icon {
  width: 13px;
  margin-right: 5px;
}
.private-note span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 8px 0 20px;
}
.forge-link {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.forge-link .icon {
  width: 13px;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dbe1d5;
  padding-top: 18px;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dccdad;
  color: #6e6049;
  font-size: 11px;
}
.user strong {
  display: block;
  font-size: 12px;
}
.user div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.icon-button {
  border: 0;
  background: none;
  padding: 8px;
  color: var(--muted);
  margin-left: auto;
}
.main {
  margin-left: 238px;
  width: calc(100% - 238px);
  padding: 0 36px;
}
.topbar {
  height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #768178;
}
.breadcrumb > span:not(.badge) {
  color: #b5bcb2;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 7px;
  line-height: 1;
  white-space: nowrap;
  background: #eff2eb;
  color: #71806d;
}
.badge .icon {
  width: 10px;
  height: 10px;
}
.private {
  border: 1px solid var(--line);
  background: transparent;
}
.ai {
  background: #f0e9f6 !important;
  color: #866199 !important;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid #dbe1d5;
  border-radius: 7px;
  background: #fff;
  padding: 8px 13px;
  color: #456149;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  background: #edf2e9;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: #24593f;
}
.button.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 37px 0 29px;
  gap: 16px;
}
.workspace-header h1 {
  font-size: 27px;
  font-weight: 590;
  letter-spacing: -0.7px;
  margin: 12px 0 10px;
}
.muted {
  color: var(--muted);
}
.workspace-header p {
  font-size: 12px;
  margin: 0;
}
.summary-strip {
  display: flex;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 1px;
  font-size: 11px;
  color: #737f70;
}
.summary-strip > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.summary-strip .icon {
  width: 13px;
}
.status-dot,
.legend-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #66845b;
}
.ai-summary {
  color: #9b79aa;
}
.summary-end {
  margin-left: auto;
}
.workspace-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0 13px;
  gap: 12px;
}
.branch-select {
  display: flex;
  align-items: center;
  gap: 12px;
}
.branch-select label {
  font-size: 11px;
  color: var(--muted);
}
select {
  max-width: 280px;
  border: 1px solid #dce2d5;
  border-radius: 7px;
  background: #fff;
  padding: 9px 32px 9px 12px;
  font-size: 12px;
  color: var(--ink);
}
#branch-actions {
  display: flex;
  gap: 8px;
}
.branch-note {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0 18px;
  flex-wrap: wrap;
}
.branch-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #58714d;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.branch-name .icon {
  height: 13px;
}
.tree-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(275px, 1fr);
  gap: 19px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  min-height: 52px;
  padding: 14px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: 13px;
  font-weight: 650;
  margin: 0;
}
.panel-heading h2 > span,
.section-heading h2 > span {
  font-size: 11px;
  font-weight: 400;
  border-radius: 5px;
  background: #f1f3ee;
  padding: 2px 6px;
  margin-left: 7px;
  color: var(--muted);
}
.small {
  font-size: 10px;
}
.history-scroll {
  height: 340px;
  overflow: auto;
  scrollbar-width: thin;
}
.history-inner {
  display: flex;
  min-width: 100%;
  width: max-content;
  padding: 0 13px;
}
.commit-graph {
  flex-shrink: 0;
}
.commit-list {
  min-width: 280px;
  flex: 1;
}
.commit-row {
  height: 67px;
  padding: 13px 10px;
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f0f2ec;
  background: #fff;
  color: var(--ink);
}
.commit-row:hover,
.commit-row.selected {
  background: #f0f5ec;
}
.commit-title {
  display: block;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  margin-bottom: 8px;
}
.ref-label {
  display: inline-block;
  vertical-align: middle;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #f0eee8;
  border-radius: 4px;
  margin-right: 6px;
  padding: 2px 5px;
  font-size: 9px;
}
.main-ref {
  color: var(--green);
  background: #e8f1e4;
}
.commit-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: #899086;
}
.commit-meta > span {
  margin-left: auto;
}
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}
.history-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  color: var(--muted);
  font-size: 9px;
}
.history-legend > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-dot {
  width: 5px;
  height: 5px;
}
.purple {
  background: var(--purple);
}
.history-legend > span:last-child {
  margin-left: auto;
}
.changes-revision {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid #f0f2eb;
}
.changes-revision .icon {
  height: 12px;
}
.changes-revision .badge {
  margin-left: auto;
}
.file-list {
  height: 292px;
  overflow: auto;
  scrollbar-width: thin;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 17px;
  background: #fff;
  border: 0;
  text-align: left;
  min-height: 40px;
  font-size: 11px;
  color: #687568;
}
.file-row > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row .icon {
  width: 14px;
  height: 14px;
  color: #8b9785;
}
.file-row:hover,
.file-row.selected {
  background: #f0f5ec;
  color: #2d684e;
}
.file-status {
  font-family: monospace;
  font-size: 9px;
  background: #edf3e8;
  color: #5d8150;
  min-width: 17px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 3px;
}
.status-M {
  color: #9c843f;
  background: #f7f1de;
}
.status-D {
  color: #a75c50;
  background: #faece8;
}
.file-legend {
  border-top: 1px solid var(--line);
  font-size: 9px;
  padding: 12px 18px;
  color: var(--muted);
}
.diff-panel {
  margin-top: 20px;
}
.diff-panel h2 {
  word-break: break-all;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.diff-code {
  margin: 0;
  max-height: 570px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.8;
  tab-size: 4;
  background: #fefefe;
  padding: 12px 0;
}
.diff-line {
  display: block;
  min-width: max-content;
  padding: 0 20px;
  color: #647366;
}
.diff-line.add {
  background: #edf7eb;
  color: #3e7144;
}
.diff-line.remove {
  background: #fff0eb;
  color: #a76559;
}
.diff-line.hunk {
  background: #edf2f7;
  color: #6a7c96;
  margin: 8px 0;
}
.empty {
  padding: 65px 20px;
  text-align: center;
  line-height: 1.9;
  color: #7d8a7a;
  font-size: 12px;
}
.empty.compact {
  padding: 35px 18px;
}
.error,
#confirm-error {
  color: #ad5046;
}
.notice {
  padding: 16px;
  background: #faf0d9;
  font-size: 12px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 10px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  color: #98a18f;
  font-size: 9px;
}
.workspace-footer span:first-child {
  display: flex;
  gap: 5px;
  align-items: center;
}
.workspace-footer .icon {
  width: 11px;
}
.image-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px;
}
.image-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 11px;
  color: var(--muted);
}
.checker {
  background-color: #f8f8f5;
  background-image:
    linear-gradient(45deg, #eaece5 25%, transparent 25%),
    linear-gradient(-45deg, #eaece5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eaece5 75%),
    linear-gradient(-45deg, transparent 75%, #eaece5 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
}
.compare-frame {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}
.compare-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 20px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.asset-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 14px;
}
.asset-image {
  height: 200px;
  display: grid;
  place-items: center;
  font-size: 12px;
  padding: 12px;
}
.asset-image img {
  max-width: 100%;
  max-height: 176px;
  object-fit: contain;
}
.asset-card strong {
  display: block;
  font-size: 12px;
  margin: 14px 15px 5px;
}
.asset-card > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin: 0 15px;
  word-break: break-all;
}
.activity-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.activity-row {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eef1e9;
  background: #fff;
  padding: 20px;
  gap: 12px;
}
.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ba77b;
  flex-shrink: 0;
}
.activity-row div {
  min-width: 0;
}
.activity-row strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-row div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.activity-row code {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}
.audit-row {
  padding: 19px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.audit-row strong,
.audit-row span {
  display: block;
  overflow-wrap: anywhere;
}
.audit-row span {
  color: var(--muted);
  margin-top: 7px;
  font-size: 10px;
}
.audit-row p {
  font-size: 10px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  max-width: 520px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 20px 90px #182f3226;
}
dialog::backdrop {
  background: #1b2b295e;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
  margin: 13px 0 20px;
}
dialog p {
  font-size: 13px;
  line-height: 1.8;
}
dialog label {
  display: block;
  font-size: 12px;
  margin: 22px 0 8px;
}
dialog label strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
dialog input {
  border: 1px solid #cdd7c7;
  border-radius: 7px;
  padding: 11px;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
}
.revision-box {
  background: #f1f4ec;
  border-radius: 8px;
  padding: 16px;
  font:
    11px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.dialog-actions .button {
  min-height: 42px;
}
.copy-row {
  display: flex;
  gap: 7px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  border-radius: 10px;
  background: #253f30;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 4px 20px #0002;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 10;
  max-width: calc(100% - 30px);
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.login {
  min-height: 100dvh;
  padding: 38px 6%;
  background:
    radial-gradient(ellipse at 85% 35%, #e1e9d3 0, transparent 55%), var(--bg);
}
.login-card {
  margin: 10vh auto 8vh;
  max-width: 530px;
  padding: 40px 48px;
  border: 1px solid #dfe5d8;
  border-radius: 24px;
  background: #fffffff0;
}
.login-card h1 {
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 43px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 1px;
}
.login-card > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 30px;
}
.large {
  font-size: 14px;
  padding: 14px 19px;
  min-height: 48px;
}
.login-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  font-size: 10px;
  color: var(--muted);
}
.login-note .icon {
  width: 12px;
}
.login-footer {
  text-align: center;
  color: #8b987f;
  font-size: 10px;
}
.loading {
  display: grid;
  place-content: center;
  justify-items: center;
  height: 100dvh;
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .main {
    padding: 0 60px;
  }
  .tree-layout {
    grid-template-columns: 1.6fr 1fr;
  }
  .history-scroll {
    height: 407px;
  }
  .file-list {
    height: 359px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 25px 16px;
  }
  .main {
    margin-left: 205px;
    width: calc(100% - 205px);
    padding: 0 22px;
  }
  .tree-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(235px, 1fr);
    gap: 12px;
  }
  .workspace-header h1 {
    font-size: 24px;
  }
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-heading {
    padding: 14px;
  }
  .panel-heading .small {
    font-size: 9px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 75px;
    padding: 23px 12px;
    align-items: center;
  }
  .wordmark {
    font-size: 0;
    gap: 0;
  }
  .brand-mark {
    font-size: 29px;
  }
  .project-card,
  .nav-label,
  .sidebar-bottom .private-note,
  .forge-link,
  .user div {
    display: none;
  }
  .sidebar nav {
    margin-top: 45px;
    width: 100%;
  }
  .nav-item {
    font-size: 0;
    padding: 14px;
    gap: 0;
  }
  .nav-item > span {
    display: none;
  }
  .sidebar-bottom {
    width: 100%;
    margin-top: auto;
  }
  .user {
    flex-direction: column;
  }
  .icon-button {
    margin: 0;
  }
  .main {
    margin-left: 75px;
    width: calc(100% - 75px);
  }
  .workspace-controls {
    align-items: flex-start;
  }
  .branch-select {
    display: grid;
    gap: 6px;
  }
  .summary-strip {
    gap: 18px;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .tree-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .file-list {
    height: auto;
    max-height: 200px;
  }
  .history-scroll {
    height: 300px;
  }
}
@media (max-width: 580px) {
  .studio {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 14px 18px;
    flex-direction: row;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .wordmark {
    font-size: 18px;
    gap: 9px;
  }
  .brand-mark {
    width: 30px;
    height: 32px;
    font-size: 25px;
    border-radius: 9px 9px 9px 2px;
  }
  .sidebar nav {
    display: flex;
    margin: 0;
    width: auto;
    gap: 5px;
  }
  .nav-item {
    padding: 10px;
  }
  .nav-item .icon {
    width: 18px;
    height: 18px;
  }
  .sidebar-bottom {
    display: none;
  }
  .main {
    margin: 0;
    width: 100%;
    padding: 0 17px;
  }
  .topbar {
    height: 67px;
    gap: 6px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 7px;
  }
  .breadcrumb .badge {
    display: none;
  }
  .topbar > .button {
    font-size: 10px;
    padding: 8px;
  }
  .topbar > .button .icon {
    width: 12px;
  }
  .workspace-header {
    padding: 26px 0 23px;
    align-items: flex-start;
  }
  .workspace-header h1 {
    font-size: 22px;
    margin-top: 10px;
  }
  .workspace-header p {
    font-size: 10px;
    line-height: 1.8;
  }
  .workspace-header > .button {
    font-size: 0;
    padding: 8px;
    min-height: 30px;
    gap: 0;
  }
  .workspace-header > .button .icon {
    width: 16px;
  }
  .summary-strip {
    font-size: 10px;
    gap: 15px;
    padding: 14px 0;
  }
  .summary-end {
    display: none !important;
  }
  .workspace-controls {
    display: block;
    padding-top: 21px;
  }
  .branch-select {
    display: flex;
    justify-content: space-between;
  }
  select {
    max-width: 75%;
    width: 75%;
    min-height: 40px;
  }
  #branch-actions:not(:empty) {
    display: flex;
    margin-top: 13px;
  }
  #branch-actions > .button {
    flex: 1;
    min-height: 40px;
  }
  .branch-note {
    gap: 8px;
    font-size: 10px;
    line-height: 1.8;
  }
  .branch-name {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .history-scroll {
    height: 290px;
  }
  .commit-row {
    padding-left: 5px;
  }
  .commit-title {
    font-size: 11px;
    max-width: 260px;
  }
  .commit-meta {
    font-size: 9px;
    gap: 8px;
  }
  .panel-heading h2 {
    font-size: 12px;
  }
  .history-legend {
    font-size: 8px;
    gap: 10px;
  }
  .image-compare {
    grid-template-columns: 1fr;
    padding: 13px;
    gap: 20px;
  }
  .compare-frame {
    height: 270px;
  }
  .asset-grid {
    gap: 12px;
  }
  .asset-image {
    height: 155px;
  }
  .asset-image img {
    max-height: 131px;
  }
  .asset-card strong {
    font-size: 11px;
    margin-left: 10px;
  }
  .asset-card > span {
    margin-left: 10px;
  }
  .diff-line {
    padding: 0 12px;
    font-size: 10px;
  }
  .workspace-footer {
    font-size: 8px;
  }
  .login {
    padding: 25px 22px;
  }
  .login > .wordmark {
    font-size: 22px;
    gap: 10px;
  }
  .login-card {
    padding: 30px 24px;
    margin: 12vh auto 8vh;
  }
  .login-card h1 {
    font-size: 33px;
  }
  .login-card > p {
    font-size: 13px;
  }
  .login-note {
    font-size: 9px;
  }
  dialog {
    padding: 23px;
  }
  dialog h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mobile-only {
  display: none;
}
.file-source-link {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  min-height: 28px;
  padding: 4px;
}
.file-source-link .icon {
  width: 12px;
}
#diff-note {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 580px) {
  .mobile-only {
    display: inline-flex;
  }
  .topbar-actions > .button {
    font-size: 10px;
    padding: 8px;
  }
  .topbar-actions > .button .icon {
    width: 12px;
  }
  .breadcrumb {
    font-size: 9px;
    gap: 5px;
  }
  .topbar-actions > .icon-button {
    padding: 8px 0 8px 6px;
  }
}
