:root {
  color-scheme: light;
  --bg: #ffffff;
  --canvas: #f6f8fa;
  --canvas-subtle: #f0f3f6;
  --panel: #ffffff;
  --panel-subtle: #fbfcfe;
  --text: #24292f;
  --text-strong: #1f2328;
  --muted: #57606a;
  --muted-soft: #6e7781;
  --border: #d0d7de;
  --border-soft: #d8dee4;
  --accent: #0969da;
  --accent-soft: #ddf4ff;
  --success: #1a7f37;
  --done: #8250df;
  --attention: #bf8700;
  --shadow: none;
  --shadow-raised: none;
  --focus: 0 0 0 3px rgba(9, 105, 218, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Mona Sans", "Hubot Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 10px 24px;
  background: #0d1117;
  color: #ffffff;
  border-bottom: 1px solid rgba(240, 246, 252, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f0f6fc;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: #ffffff;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: "IBM Plex Sans", "Mona Sans", "Hubot Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.brand-name-primary {
  font-weight: 700;
  letter-spacing: -0.045em;
}

.brand-name-secondary {
  font-weight: 600;
  opacity: 0.92;
}

.brand-name-product {
  margin-left: 0.08em;
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 2em;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.4;
  opacity: 0.72;
  text-transform: uppercase;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #24292f;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(27, 31, 36, 0.12), 0 1px 8px rgba(255, 255, 255, 0.08);
}

.brand-code-loop {
  position: relative;
  display: inline-grid;
  place-items: center;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
  overflow: hidden;
}

.brand-code-text {
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
  text-align: center;
  font-weight: 800;
  font-size: 1.08em;
  line-height: 1;
  white-space: nowrap;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.global-nav a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  opacity: 0.86;
}

.global-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.top-actions,
.repo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-guest-actions,
.auth-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.is-authenticated .auth-guest-actions {
  display: none !important;
}

body:not(.is-authenticated) .auth-user-actions {
  display: none !important;
}

.icon-button,
.small-button,
.repo-actions button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.icon-button {
  width: 34px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.small-button {
  padding: 0 12px;
  background: #238636;
  border-color: rgba(240, 246, 252, 0.12);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.small-button:hover,
.primary-button:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

.repo-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  border-bottom: 1px solid var(--border);
}

.repo-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 0;
}

.repo-path {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 20px;
  color: var(--accent);
}

.repo-path strong {
  color: #0969da;
  font-weight: 650;
}

.repo-path .slash {
  color: var(--muted);
}

.status-pill,
.issue-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: rgba(246, 248, 250, 0.75);
}

.status-pill-private {
  background: #fff8c5;
  border-color: rgba(125, 78, 0, 0.18);
  color: #7d4e00;
}

.repo-subtitle {
  max-width: 760px;
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.repo-actions button {
  padding: 0 12px;
  background: #f6f8fa;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.repo-actions button:hover {
  background: #eef2f6;
  border-color: #afb8c1;
}

.icon-button svg,
.auth-link svg,
.small-button svg,
.primary-button svg,
.repo-actions button svg,
.auth-tabs button svg,
.auth-close svg,
.auth-form .primary-button svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.repo-tabs {
  display: flex;
  gap: 4px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
}

.repo-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 12px;
  color: var(--text);
  border-radius: 6px 6px 0 0;
  font-weight: 500;
  white-space: nowrap;
}

.repo-tabs a:hover {
  background: rgba(208, 215, 222, 0.28);
  text-decoration: none;
}

.repo-tabs a.active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  border-radius: 2px;
  background: #fd8c73;
  content: "";
}

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px 36px;
  width: 100%;
  overflow: hidden;
}

.sidebar,
.content {
  min-width: 0;
}

.content {
  display: grid;
  gap: 18px;
  align-content: start;
  align-items: start;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.side-panel,
.readme,
.section,
.os-preview {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 18px;
  margin-bottom: 16px;
}

.profile-panel {
  position: relative;
  overflow: hidden;
  padding-top: 20px;
}

.profile-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 72px;
  background: linear-gradient(135deg, #ddf4ff 0%, #ffffff 55%, #dafbe1 100%);
  border-bottom: 1px solid rgba(208, 215, 222, 0.7);
  content: "";
}

.avatar {
  width: 72px;
  height: 72px;
  position: relative;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 30% 24%, #ffffff 0 24%, #ddf4ff 25% 58%, #b6e3ff 100%);
  color: #1f2328;
  font-size: 24px;
}

.side-panel h1,
.side-panel h2,
.section h2,
.readme-body h2,
.service-card h3,
.issue-row h3,
.roadmap-item h3,
.contact-section h2 {
  margin: 0;
  line-height: 1.25;
}

.side-panel h1 {
  font-size: 24px;
  color: var(--text-strong);
  font-weight: 750;
}

.side-panel h2 {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
}

.side-panel p,
.muted,
.contact-section p {
  color: var(--muted);
}

.primary-button {
  padding: 0 14px;
  background: linear-gradient(180deg, #2cbe4e 0%, #22863a 100%);
  border-color: rgba(27, 31, 36, 0.15);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(27, 31, 36, 0.12);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  background-color: #f6f8fa;
  color: #24292f;
  box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.secondary-button:hover {
  background-color: #eaeef2;
  border-color: rgba(27, 31, 36, 0.15);
  text-decoration: none;
}

.secondary-button.delete-btn {
  color: #cf222e;
}

.secondary-button.delete-btn:hover {
  background-color: #ffebe9;
  border-color: rgba(207, 34, 46, 0.15);
}

.tag-grid,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-grid span,
.feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.compact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.compact-list li::marker {
  color: #2da44e;
}

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

.section-head-stack {
  align-items: flex-start;
}

.section-head-copy {
  min-width: 0;
}

.section-desc {
  margin: 6px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.readme-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-subtle);
  color: var(--muted);
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}

.readme-title-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.readme-title .lucide-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #57606a;
}

.readme-body {
  padding: 28px;
}

.readme-body h2 {
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: 30px;
  font-weight: 800;
}

.readme-body p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.readme-body .readme-lead {
  margin-bottom: 14px;
}

.readme-body .readme-extended {
  margin-bottom: 18px;
}

.readme-highlights {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--text);
  font-size: 14.5px;
}

.readme-highlights li {
  line-height: 1.55;
}

.readme-highlights li::marker {
  color: #2da44e;
}

.profile-role {
  margin: 4px 0 2px;
  color: #0969da;
  font-size: 14px;
  font-weight: 650;
}

.profile-fullname {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.profile-meta {
  display: grid;
  gap: 6px;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.profile-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.profile-meta li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2da44e;
  content: "";
  flex-shrink: 0;
}

.profile-panel .primary-button,
.profile-panel .profile-email {
  width: 100%;
  margin-top: 8px;
}

.profile-panel .primary-button {
  margin-top: 0;
}

.repo-card-slug {
  margin: -2px 0 8px;
  color: #656d76;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.section-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.experience-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.experience-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.experience-row:first-child {
  border-top: 0;
}

.experience-row:hover {
  background: #f6f8fa;
}

.experience-period {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}

.experience-body h3 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
}

.experience-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.experience-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #f6f8fa;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
}

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

.workflow-card {
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.workflow-card:hover {
  border-color: #afb8c1;
  box-shadow: 0 1px 3px rgba(27, 31, 36, 0.08);
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  margin-bottom: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ddf4ff;
  color: #0969da;
  font-size: 11px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.workflow-card h3 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.roadmap-item.done > span {
  background: #dafbe1;
  color: #1a7f37;
}

.roadmap-item.done h3 {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(101, 109, 118, 0.45);
}

.experience-section,
.workflow-section {
  padding: 18px;
}

.public-page-banner {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fa 55%, #ddf4ff 100%);
  box-shadow: var(--shadow);
}

.public-page-banner-inner h2 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 700;
}

.public-page-banner-inner p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.product-card {
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.product-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-card-head h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.product-card-foot strong {
  color: var(--text-strong);
  font-size: 13px;
}

.public-empty-note {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--border-soft);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.site-content-panel {
  margin-bottom: 16px;
}

.site-content-panel:last-child {
  margin-bottom: 0;
}

.admin-site-profile-form {
  display: grid;
  gap: 16px;
}

.admin-site-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.admin-site-profile-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.admin-site-profile-grid label em {
  font-weight: 500;
  color: var(--muted);
}

.admin-site-profile-grid input,
.admin-site-profile-grid textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.admin-site-profile-grid textarea {
  min-height: 84px;
  line-height: 1.45;
}

.admin-site-profile-span2 {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .admin-site-profile-grid {
    grid-template-columns: 1fr;
  }
}

.site-content-subhead {
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: 0;
}

.site-content-subhead h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.table-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.route-services .pinned-section,
body.route-projects #case-studies {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

body.route-services .pinned-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

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

  .experience-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.profile-quicknav {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.profile-quicknav-head {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #f6f8fa 0%, #fbfcfd 100%);
}

.profile-quicknav-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #57606a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.profile-quicknav-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.profile-quicknav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f6f8fa 100%);
}

.profile-quicknav-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.profile-quicknav-card:hover {
  border-color: #0969da;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12), 0 1px 2px rgba(27, 31, 36, 0.06);
  transform: translateY(-1px);
  text-decoration: none;
}

.profile-quicknav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.profile-quicknav-icon svg {
  width: 16px;
  height: 16px;
}

.profile-quicknav-icon-blue {
  background: #ddf4ff;
  color: #0969da;
  border-color: rgba(9, 105, 218, 0.14);
}

.profile-quicknav-icon-purple {
  background: #fbefff;
  color: #8250df;
  border-color: rgba(130, 80, 223, 0.14);
}

.profile-quicknav-icon-green {
  background: #dafbe1;
  color: #1a7f37;
  border-color: rgba(26, 127, 55, 0.14);
}

.profile-quicknav-icon-orange {
  background: #fff1e5;
  color: #bc4c00;
  border-color: rgba(188, 76, 0, 0.14);
}

.profile-quicknav-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 1px;
}

.profile-quicknav-copy strong {
  font-size: 14px;
  font-weight: 650;
  color: #24292f;
  line-height: 1.25;
  transition: color 140ms ease;
}

.profile-quicknav-card:hover .profile-quicknav-copy strong {
  color: #0969da;
}

.profile-quicknav-copy span {
  font-size: 12px;
  color: #57606a;
  line-height: 1.35;
}

body:not(.route-overview) .profile-quicknav {
  display: none;
}

@media (max-width: 640px) {
  .profile-quicknav-grid {
    grid-template-columns: 1fr;
  }
}

/* Show full README on overview (lead + extended + all highlights). */

body.route-overview #overview .readme-body {
  padding: 24px;
}

body.route-overview #overview .readme-body h2 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
}

body.route-overview #overview .readme-highlights {
  margin-bottom: 4px;
}

body.route-overview #overview .metrics {
  margin-top: 20px;
}

body.route-overview .pinned-section + .pinned-section {
  margin-top: 2px;
}

body.route-overview #services .pinned-grid .repo-card:nth-child(n + 5) {
  display: none;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.metrics div {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.metrics strong {
  display: block;
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 800;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 18px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 750;
}

.section-head a {
  font-size: 13px;
  font-weight: 600;
}

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

.service-card {
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.service-card:hover {
  border-color: #afb8c1;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #ddf4ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
}

.service-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
}

.language-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: -1px;
}

.green {
  background: #2da44e;
}

.blue {
  background: #0969da;
}

.orange {
  background: #fb8500;
}

.purple {
  background: #8250df;
}

.issue-list {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.issue-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  background: #ffffff;
  transition: background-color 120ms ease;
}

.issue-row:hover {
  background: #f6f8fa;
}

.issue-row + .issue-row {
  border-top: 1px solid var(--border-soft);
}

.issue-row h3 {
  margin-bottom: 3px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
}

.issue-row p {
  margin: 0;
  color: var(--muted);
}

.issue-copy {
  min-width: 0;
}

.issue-gallery-btn {
  margin-top: 10px;
}

.cs-gallery-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(1, 4, 9, 0.72);
}

.cs-gallery-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 12px;
  background: #0d1117;
  color: #c9d1d9;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.cs-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #21262d;
}

.cs-gallery-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cs-gallery-title strong {
  color: #f0f6fc;
  font-size: 15px;
}

.cs-gallery-title span {
  color: #8b949e;
  font-size: 12px;
}

.cs-gallery-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 20px 56px;
  background: #010409;
}

.cs-gallery-stage img {
  max-width: 100%;
  max-height: min(62vh, 560px);
  object-fit: contain;
  border-radius: 6px;
}

.cs-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #30363d;
  border-radius: 999px;
  background: #161b22;
  color: #f0f6fc;
  cursor: pointer;
}

.cs-gallery-prev {
  left: 12px;
}

.cs-gallery-next {
  right: 12px;
}

.cs-gallery-next .lucide-icon {
  transform: rotate(180deg);
}

.cs-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 16px;
}

.cs-gallery-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #161b22;
  cursor: pointer;
}

.cs-gallery-thumb.is-active,
.cs-gallery-thumb:hover {
  border-color: #58a6ff;
}

.cs-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.casestudy-gallery-editor {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #f6f8fa;
}

.casestudy-gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.casestudy-gallery-hint,
.casestudy-gallery-note,
.casestudy-gallery-empty {
  color: var(--muted);
  font-size: 12px;
}

.casestudy-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 28px;
}

.casestudy-gallery-thumb-card {
  position: relative;
  width: 88px;
  height: 66px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.casestudy-gallery-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.casestudy-gallery-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(1, 4, 9, 0.75);
  color: #fff;
  cursor: pointer;
}

.casestudy-gallery-upload {
  display: inline-flex;
  cursor: pointer;
}

.casestudy-gallery-note {
  margin: 8px 0 0;
}

.issue-state {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.issue-state.open {
  color: var(--success);
}

.issue-state.done {
  color: var(--done);
  background: var(--done);
}

.issue-state.progress {
  color: var(--attention);
  border-radius: 4px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: center;
}

.feature-list {
  margin-top: 16px;
}

.os-preview {
  padding: 15px;
  background: linear-gradient(180deg, #f6f8fa 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.preview-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8c959f;
}

.preview-bar span:nth-child(1) {
  background: #ff7b72;
}

.preview-bar span:nth-child(2) {
  background: #f2cc60;
}

.preview-bar span:nth-child(3) {
  background: #3fb950;
}

.preview-task {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--text-strong);
}

.progress-track {
  height: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #d0d7de;
}

.progress-track span {
  display: block;
  width: 72%;
  height: 100%;
  background: #2da44e;
}

.preview-message {
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #ffffff;
}

.preview-message + .preview-message {
  margin-top: 10px;
}

.preview-message p {
  margin: 4px 0 0;
  color: var(--muted);
}

.preview-message.reply {
  border-color: #9aebaf;
  background: #dafbe1;
}

.roadmap {
  display: grid;
  gap: 14px;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.roadmap-item span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  font-weight: 700;
}

.roadmap-item.current span {
  background: #ddf4ff;
  border-color: #54aeff;
  color: #0969da;
}

.roadmap-item h3 {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 700;
}

.roadmap-item p {
  margin: 3px 0 0;
  color: var(--muted);
}

.contact-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 4px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 58%, #0d1117 100%);
  color: #ffffff;
  border-color: #30363d;
}

.contact-section-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
}

.contact-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  color: #ffffff;
}

.contact-section p {
  margin: 8px 0 0;
  max-width: 56ch;
  color: #8b949e;
  font-size: 14px;
  line-height: 1.55;
}

.contact-section-cta,
.contact-section .primary-button {
  flex: 0 0 auto;
  align-self: center;
  min-height: 40px;
  padding: 0 20px;
  white-space: nowrap;
}

.contact-section .primary-button svg,
.contact-section-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .topbar,
  .repo-head,
  .layout {
    padding-right: 16px;
    padding-left: 16px;
  }

  .global-nav {
    display: none;
  }

  .repo-head,
  .contact-section {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-section-cta,
  .contact-section .primary-button {
    width: 100%;
    justify-content: center;
  }

  .repo-tabs {
    padding: 0 16px;
  }

  .layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .issue-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .issue-label {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .top-actions .icon-button {
    display: none;
  }

  .repo-path {
    font-size: 17px;
  }

  .readme-body,
  .section {
    padding: 16px;
  }

  .readme-body h2 {
    font-size: 22px;
  }
}

/* GitHub profile-style refinement */
:root {
  --canvas: #ffffff;
  --canvas-subtle: #f6f8fa;
  --shadow-raised: none;
}

body {
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
}

svg {
  width: 16px;
  height: 16px;
}

.topbar {
  min-height: 56px;
  padding-right: 32px;
  padding-left: 32px;
}

.brand {
  font-size: inherit;
  font-weight: inherit;
}

.profile-tabs-wrap {
  position: sticky;
  top: 56px;
  z-index: 9;
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
}

.profile-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  flex-wrap: wrap;
  overflow: visible;
}

.profile-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 8px;
  color: #24292f;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.profile-tabs a:hover {
  text-decoration: none;
}

.profile-tabs a.active {
  font-weight: 600;
}

.profile-tabs a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #fd8c73;
  border-radius: 2px;
  content: "";
}

.profile-tabs .lucide-icon,
.repo-path-icon .lucide-icon,
.overview-hero-badge .lucide-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #57606a;
}

.profile-tabs a.active .lucide-icon {
  color: #24292f;
}

.repo-path-icon {
  display: inline-flex;
  align-items: center;
}

.overview-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-tabs span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eaeef2;
  color: #24292f;
  font-size: 12px;
  font-weight: 500;
}

.repo-hero {
  background: #ffffff;
}

.repo-head {
  padding: 20px 32px 8px;
}

.repo-path {
  font-size: 20px;
}

.repo-subtitle {
  margin-bottom: 14px;
}

.repo-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 18px;
  overflow: visible;
}

.repo-meta-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #f6f8fa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.content > * {
  min-width: 0;
}

.side-panel,
.readme,
.os-preview {
  border-radius: 6px;
}

.section {
  padding: 18px;
  border-radius: 6px;
}

.pinned-section,
.contribution-section {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.section-head {
  margin-bottom: 0;
  padding: 0 0 12px;
}

.section-head h2 {
  color: #24292f;
  font-size: 16px;
  font-weight: 400;
}

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

.repo-card {
  min-height: 118px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.repo-card:hover {
  border-color: #afb8c1;
  background: #f6f8fa;
}

.repo-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.repo-card-title svg {
  flex: 0 0 auto;
  color: #57606a;
}

.repo-card-title h3 {
  min-width: 0;
  margin: 0;
  color: #0969da;
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.repo-card-title h3 a {
  color: inherit;
  text-decoration: none;
}

.repo-card-title h3 a:hover {
  text-decoration: underline;
}

.repo-card-title span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: #57606a;
  font-size: 12px;
  font-weight: 600;
}

.repo-card p {
  min-height: 42px;
  margin: 0 0 12px;
  color: #57606a;
  font-size: 14px;
}

.repo-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #57606a;
  font-size: 12px;
}

.repo-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.language-dot {
  width: 12px;
  height: 12px;
  margin-right: 0;
  border: 1px solid rgba(27, 31, 36, 0.12);
}

.contribution-box {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  min-width: 686px;
  padding: 18px 24px 4px 58px;
  color: #24292f;
  font-size: 14px;
}

.contribution-scroll {
  display: flex;
  gap: 8px;
  overflow: visible;
  padding: 0 18px 10px;
}

.week-days {
  display: grid;
  grid-template-rows: repeat(7, 10px);
  gap: 3px;
  flex: 0 0 32px;
  padding-top: 14px;
  color: #24292f;
  font-size: 13px;
}

.week-days span:nth-child(1) {
  grid-row: 2;
}

.week-days span:nth-child(2) {
  grid-row: 4;
}

.week-days span:nth-child(3) {
  grid-row: 6;
}

.heatmap {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 10px);
  gap: 3px;
  min-width: 686px;
  padding-top: 14px;
}

.heatmap span,
.heatmap-footer i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  outline: 1px solid rgba(27, 31, 36, 0.06);
  outline-offset: -1px;
}

.heatmap span[data-level="0"],
.heatmap-footer i:nth-of-type(1) {
  background: #ebedf0;
}

.heatmap span[data-level="1"],
.heatmap-footer i:nth-of-type(2) {
  background: #9be9a8;
}

.heatmap span[data-level="2"],
.heatmap-footer i:nth-of-type(3) {
  background: #40c463;
}

.heatmap span[data-level="3"],
.heatmap-footer i:nth-of-type(4) {
  background: #30a14e;
}

.heatmap span[data-level="4"],
.heatmap-footer i:nth-of-type(5) {
  background: #216e39;
}

.heatmap-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 24px 20px 58px;
  color: #57606a;
  font-size: 14px;
}

.heatmap-footer div {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hidden {
  display: none !important;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(240, 246, 252, 0.18);
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: underline;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 17, 23, 0.45);
  backdrop-filter: blur(4px);
}

.auth-dialog {
  position: relative;
  width: min(100%, 380px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(27, 31, 36, 0.18);
  overflow: hidden;
  animation: authDialogIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authDialogIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.auth-close svg.lucide-icon {
  width: 16px;
  height: 16px;
}

.auth-close:hover {
  background: #f6f8fa;
  color: var(--text-strong);
}

.auth-dialog-header {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 24px 0;
  text-align: center;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #24292f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-brand-mark.brand-code-loop {
  font-size: 16px;
  font-weight: 900;
}

.auth-dialog-header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.auth-dialog-subtitle {
  margin: 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin: 20px 24px 0;
  border-bottom: 1px solid var(--border-soft);
}

.auth-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-height: 40px;
  padding: 0 12px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.auth-tabs button:hover {
  color: var(--text-strong);
}

.auth-tabs button.active {
  color: var(--text-strong);
}

.auth-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #fd8c73;
}

.auth-dialog-body {
  padding: 18px 24px 0;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-label {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
}

.auth-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.auth-form input {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-form input::placeholder {
  color: #8c959f;
}

.auth-form input:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

.auth-submit {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.auth-submit svg.lucide-icon {
  width: 16px;
  height: 16px;
}

.auth-message {
  display: none;
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-message.is-visible {
  display: block;
}

.auth-message.error {
  color: #82071e;
  background: #ffebe9;
  border-color: rgba(207, 34, 46, 0.28);
}

.auth-message.success {
  color: #116329;
  background: #dafbe1;
  border-color: rgba(26, 127, 55, 0.28);
}

.auth-dialog-footer {
  margin-top: 18px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border-soft);
  background: #f6f8fa;
  text-align: center;
}

.auth-dialog-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-dialog-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0969da;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.auth-dialog-footer button:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-modal {
    padding: 16px;
    align-items: flex-end;
  }

  .auth-dialog {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .auth-dialog-header h2 {
    font-size: 22px;
  }
}

.account-panel {
  padding: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-card {
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #ffffff;
}

.account-card h3 {
  margin: 0 0 6px 0;
  color: var(--text-strong);
  font-size: 15px;
}

.account-card p {
  margin: 0;
  color: var(--muted);
}

.admin-stats {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar,
  .repo-head,
  .layout,
  .profile-tabs,
  .repo-meta-strip {
    padding-right: 16px;
    padding-left: 16px;
  }

  .profile-tabs-wrap {
    top: 56px;
  }

  .profile-tabs {
    gap: 6px 10px;
  }

  .profile-tabs a {
    min-height: 42px;
    font-size: 14px;
  }

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

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

  .repo-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .repo-head {
    padding-top: 18px;
  }

  .repo-actions {
    width: 100%;
  }

  .repo-actions button {
    flex: 1;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .layout {
    gap: 14px;
    padding-top: 16px;
  }

  .readme-body,
  .section {
    padding: 16px;
  }

  .pinned-section,
  .contribution-section {
    padding: 0;
  }

  .readme-body h2 {
    font-size: 21px;
  }

  .repo-card-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .repo-card-title h3 {
    font-size: 16px;
  }

  .repo-card p {
    min-height: 0;
    font-size: 14px;
  }

  .repo-card-meta {
    gap: 12px;
    font-size: 12px;
  }

  .months {
    min-width: 264px;
    padding: 14px 10px 2px 40px;
    font-size: 11px;
  }

  .contribution-scroll {
    gap: 6px;
    padding: 0 8px 8px;
  }

  .week-days {
    grid-template-rows: repeat(7, 4px);
    gap: 1px;
    flex-basis: 22px;
    padding-top: 12px;
    font-size: 10px;
  }

  .heatmap {
    grid-template-rows: repeat(7, 4px);
    gap: 1px;
    min-width: 264px;
    padding-top: 12px;
  }

  .heatmap span,
  .heatmap-footer i {
    width: 4px;
    height: 4px;
    border-radius: 1px;
  }

  .heatmap-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 6px 10px 14px 40px;
    font-size: 12px;
  }
}

/* Auth Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}

.dashboard-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-email {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}

.dashboard-column {
  display: grid;
  gap: 20px;
}

.dashboard-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
}

.dashboard-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f6f8fa;
  border-bottom: 1px solid var(--border-soft);
}

.dashboard-card .card-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}

.dashboard-card .card-body {
  padding: 16px;
}

.project-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.project-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-progress-wrap {
  display: grid;
  gap: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
}

.progress-bar-container {
  height: 8px;
  background: #eaeef2;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  display: block;
  height: 100%;
  background: #2da44e;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ─── Horizontal dots progress bar ────────────────────────────────────────── */

.dots-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dots-progress-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 24px;
  border-radius: 999px;
  background: #c8d1da;
  border: 1px solid #b1bac4;
  overflow: hidden;
}

.dots-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5fe3d4 0%, #2eb8a8 55%, #1f9a8c 100%);
  transition: width 0.4s ease;
}

.dots-progress-dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--dot-count, 16), minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  padding: 0 3px;
  pointer-events: none;
}

.dots-progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.dots-progress-dot.is-on {
  background: #ffffff;
}

.dots-progress-value {
  font-size: 12px;
  font-weight: 700;
  color: #57606a;
  min-width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.dots-progress-active .dots-progress-fill {
  background: linear-gradient(180deg, #79c0ff 0%, #218bff 55%, #0969da 100%);
}

.dots-progress-complete .dots-progress-fill {
  background: linear-gradient(180deg, #6fdd8b 0%, #2da44e 55%, #1a7f37 100%);
}

.dots-progress-early .dots-progress-fill {
  background: linear-gradient(180deg, #f0c14b 0%, #bf8700 55%, #9a6700 100%);
}

.dots-progress.is-compact .dots-progress-track {
  height: 20px;
}

.dots-progress.is-compact .dots-progress-dot {
  width: 7px;
  height: 7px;
}

.dots-progress.is-compact .dots-progress-value {
  font-size: 11px;
  min-width: 30px;
}

.project-pinned-grid {
  padding: 12px;
  gap: 10px 12px;
}

.project-pinned-grid.pinned-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-repo-card {
  cursor: pointer;
  min-height: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.project-repo-card .repo-card-title {
  margin-bottom: 5px;
  gap: 6px;
}

.project-repo-card .repo-card-title h3 {
  font-size: 14px;
  line-height: 1.25;
}

.project-repo-card .repo-card-title span {
  min-height: 20px;
  padding: 0 7px;
  font-size: 11px;
}

.project-repo-card .repo-card-title svg {
  width: 14px;
  height: 14px;
}

.project-repo-card p {
  min-height: 0;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-repo-card .dots-progress {
  margin: 0 0 8px;
}

.project-repo-card .dots-progress-track {
  height: 20px;
}

.project-repo-card .dots-progress-dots {
  padding: 0 2px;
}

.project-repo-card .dots-progress-value {
  font-size: 10px;
  min-width: 28px;
}

.project-repo-card .repo-card-meta {
  margin-top: auto;
  gap: 10px;
  font-size: 11px;
}

.project-pinned-empty {
  grid-column: 1 / -1;
  padding: 36px 20px;
  text-align: center;
  font-size: 13px;
  color: #57606a;
  line-height: 1.5;
  border: 1px dashed var(--border-soft);
  border-radius: 8px;
  background: #f6f8fa;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #ddf4ff;
  color: #0969da;
}

.deliverables-section,
.invoices-section {
  margin-bottom: 20px;
}

.deliverables-section:last-child,
.invoices-section:last-child {
  margin-bottom: 0;
}

.deliverables-section h4,
.invoices-section h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.file-download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.file-download-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #ffffff;
}

.file-icon {
  width: 20px;
  height: 20px;
  color: #57606a;
  flex: 0 0 auto;
}

.file-download-list li div {
  flex: 1;
  min-width: 0;
}

.file-download-list li strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-download-list li span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.file-action {
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  background: #f6f8fa;
}

.file-action:hover {
  text-decoration: none;
  background: #eaeef2;
}

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

.invoice-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #ffffff;
}

.invoice-info {
  display: flex;
  flex-direction: column;
}

.invoice-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.invoice-amount {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.invoice-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: capitalize;
}

.invoice-status-badge.paid {
  background: #dafbe1;
  color: #1a7f37;
}

.invoice-status-badge.pending {
  background: #fff8c5;
  color: #9a6700;
}

/* Chat Card Styles */
.chat-card {
  display: flex;
  flex-direction: column;
  height: 480px;
}

.chat-status-indicator {
  font-size: 12px;
  font-weight: 600;
  color: #1a7f37;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status-indicator::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #1a7f37;
  border-radius: 50%;
}

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
}

.chat-msg-bubble {
  max-width: 85%;
  display: flex;
  flex-direction: column;
}

.chat-msg-bubble.client {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg-bubble.admin {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-sender {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.msg-text-box {
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chat-msg-bubble.client .msg-text-box {
  background: #0969da;
  color: #ffffff;
  border-radius: 12px 12px 0 12px;
}

.chat-msg-bubble.admin .msg-text-box {
  background: #ffffff;
  color: var(--text-strong);
  border: 1px solid var(--border-soft);
  border-radius: 12px 12px 12px 0;
}

.msg-time {
  font-size: 10px;
  color: var(--muted-soft);
  margin-top: 4px;
}

.chat-input-area {
  padding: 12px;
  background: #f6f8fa;
  border-top: 1px solid var(--border-soft);
}

.chat-input-form {
  display: flex;
  gap: 8px;
}

.chat-input-form input {
  flex: 1;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
}

.chat-input-form input:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: var(--focus);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(27, 31, 36, 0.15);
  border-radius: 6px;
  background: #2da44e;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
}

.chat-send-btn:hover {
  background: #2c974b;
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

/* Admin Dashboard Specific Styles */
.admin-summary-card {
  border-color: #ddf4ff;
}

.admin-summary-card .card-header {
  background: #ddf4ff;
  border-color: #b6e3ff;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-box {
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  text-align: center;
  background: #f6f8fa;
}

.stat-box strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
}

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

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

/* Logged-in workspace view toggle */
body.logged-in-view .profile-tabs-wrap,
body.logged-in-view .repo-hero,
body.logged-in-view .sidebar,
body.logged-in-view .readme,
body.logged-in-view .pinned-section,
body.logged-in-view .contribution-section,
body.logged-in-view .section:not(#account-panel),
body.logged-in-view .contact-section {
  display: none !important;
}

body.logged-in-view .layout {
  grid-template-columns: 1fr;
}

/* Sidebar Workspace Layout Styles */
.workspace-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 120px);
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
  background: var(--canvas-subtle);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.workspace-sidebar {
  background: #f6f8fa;
  color: var(--text-strong);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-soft);
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 8px;
  color: var(--text-strong);
}

.workspace-brand .brand-name {
  color: var(--text-strong);
  font-size: 16px;
}

.workspace-brand .brand-name-product {
  border-color: var(--border);
  color: var(--muted);
  opacity: 1;
}

.workspace-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #24292f;
  color: #ffffff;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.workspace-menu {
  display: grid;
  gap: 2px;
  align-content: start;
  flex: 1;
}

.workspace-menu .menu-item {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #24292f;
  text-align: left;
  font-size: 13px;
  font-weight: 550;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 120ms ease, color 120ms ease;
}

.workspace-menu .menu-item-text {
  flex: 1;
  min-width: 0;
}

.menu-item-chat {
  position: relative;
}

.menu-unread-badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #cf222e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #f6f8fa;
}

.menu-unread-badge[hidden] {
  display: none !important;
}

.workspace-menu .menu-item.active .menu-unread-badge {
  box-shadow: 0 0 0 2px #ffffff;
}

.workspace-menu .menu-item svg {
  width: 16px;
  height: 16px;
  color: #57606a;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.workspace-menu .menu-item:hover {
  background: #eaeef2;
  color: #24292f;
}

.workspace-menu .menu-item:hover svg {
  color: #24292f;
}

.workspace-menu .menu-item.active {
  background: #ffffff;
  color: #24292f;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #fd8c73;
}

.workspace-menu .menu-item.active svg {
  color: #24292f;
}

.workspace-user-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  margin-top: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2da44e;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-text-details strong {
  display: block;
  font-size: 13px;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-text-details span,
.user-text-details .user-email {
  display: block;
  font-size: 11px;
  color: #57606a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Workspace main content */
.workspace-main {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.workspace-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-soft);
  background: #ffffff;
}

.workspace-topbar-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workspace-topbar-label {
  font-size: 11px;
  font-weight: 600;
  color: #57606a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workspace-topbar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.2;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-tab-content {
  flex: 1;
  min-height: 0;
  padding: 24px;
  background: #f6f8fa;
  overflow-y: auto;
}

.workspace-tab-content:has(#pane-chat.active) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* Tab pane visibility toggling */
.workspace-tab-content {
  position: relative;
}

.tab-pane {
  display: none;
}

.tab-pane.active,
.tab-pane.tab-enter {
  display: block;
  animation: content-enter 220ms ease;
}

.tab-pane > .gh-panel + .gh-panel {
  margin-top: 16px;
}

#pane-chat.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#pane-chat.active .gh-chat-panel,
#pane-chat.active .gh-admin-chat-hub {
  flex: 1;
  min-height: 0;
  max-height: none;
  height: 100%;
}

/* Loading skeletons */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes content-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pd-overlay-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Public portfolio: show skeletons until API content is ready (no dummy-text flash). */
body.portfolio-loading .portfolio-ready-panel {
  display: none !important;
}

body:not(.portfolio-loading) .portfolio-loading-panel {
  display: none !important;
}

.portfolio-loading-panel {
  display: grid;
  gap: 8px;
}

/* Same shimmer bars as README/profile — laid out like the real badge/tag row */
body.portfolio-loading .portfolio-skel-badge-row,
body.portfolio-loading .portfolio-skel-tag-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.portfolio-skel-badge-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 32px 18px;
}

.portfolio-skel-tag-row {
  padding: 2px 0 4px;
}

.portfolio-skel-badge-row .skeleton-line,
.portfolio-skel-tag-row .skeleton-line {
  margin-top: 0 !important;
  flex: 0 0 auto;
}

@media (max-width: 860px) {
  .portfolio-skel-badge-row {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.portfolio-skel-subtitle {
  margin-top: 8px;
  max-width: 720px;
}

.portfolio-skel-profile {
  margin: 8px 0 14px;
}

.portfolio-skel-readme {
  padding: 4px 0 8px;
}

.portfolio-skel-bullets {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.portfolio-skel-experience,
.portfolio-skel-issues {
  display: grid;
  gap: 12px;
}

.portfolio-skel-workflow {
  display: grid;
  gap: 12px;
}

@media (min-width: 800px) {
  .portfolio-skel-workflow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.portfolio-ready .readme-body > .portfolio-ready-panel {
  animation: portfolioReveal 0.28s ease;
}

@keyframes portfolioReveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.skeleton {
  display: block;
  background: linear-gradient(90deg, #f0f2f4 0%, #e8ebef 45%, #f6f8fa 55%, #f0f2f4 100%);
  background-size: 200% 100%;
  animation: shimmer 1.15s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-line + .skeleton-line {
  margin-top: 8px;
}

.skeleton-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #ffffff;
}

.skeleton-stack {
  display: grid;
  gap: 10px;
}

.skeleton-project-card {
  min-height: 108px;
}

.skeleton-chat-bubble {
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #ffffff;
}

.skeleton-chat-stack {
  padding: 4px 0;
}

.skeleton-block {
  min-height: 72px;
}

.skeleton-block.tall {
  min-height: 180px;
}

.pd-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.pd-skeleton-grid .skeleton-block:nth-child(1) { grid-column: span 4; }
.pd-skeleton-grid .skeleton-block:nth-child(2) { grid-column: span 8; }
.pd-skeleton-grid .skeleton-block:nth-child(3) { grid-column: span 7; }
.pd-skeleton-grid .skeleton-block:nth-child(4) { grid-column: span 5; }

.skeleton-row td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.content-enter {
  animation: content-enter 220ms ease both;
}

body.auth-resolving .workspace-main {
  opacity: 1;
}

body.workspace-ready .workspace-main {
  animation: content-enter 240ms ease;
}

.gh-btn.is-busy {
  position: relative;
  gap: 8px;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

.gh-project-card,
.gh-stat-card,
.admin-table tbody tr {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.gh-btn,
.menu-item,
.gh-filter-pill,
.auth-link,
.small-button,
.primary-button {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.gh-btn:active:not(:disabled),
.primary-button:active,
.small-button:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .btn-spinner,
  .content-enter,
  .tab-pane.active,
  .pd-overlay,
  body.workspace-ready .workspace-main {
    animation: none !important;
    transition: none !important;
  }
}

/* Pane interior components */
.pane-grid {
  display: grid;
  gap: 16px;
}

.overview-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.client-overview .overview-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ─── Client overview dashboard ─────────────────────────────────────────── */

.admin-overview {
  gap: 20px;
}

.admin-overview-hero::before {
  background: linear-gradient(90deg, #8250df 0%, #0969da 100%);
}

.overview-requests-list,
.overview-clients-list {
  display: grid;
}

.overview-request-row,
.overview-client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.overview-request-row:last-child,
.overview-client-row:last-child {
  border-bottom: 0;
}

.overview-request-row:hover,
.overview-client-row:hover {
  background: #f6f8fa;
}

.overview-request-main,
.overview-client-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.overview-client-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.overview-request-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff8c5;
  color: #9a6700;
  flex-shrink: 0;
}

.overview-request-icon svg {
  width: 16px;
  height: 16px;
}

.overview-request-copy strong,
.overview-client-copy strong {
  display: block;
  font-size: 13px;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.overview-request-copy span,
.overview-client-copy span {
  display: block;
  font-size: 11px;
  color: #667781;
}

.overview-request-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.overview-client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a7f37;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.overview-client-date {
  flex-shrink: 0;
  font-size: 11px;
  color: #667781;
}

.client-contact-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}

.client-contact-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}

.client-contact-form input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: var(--text-strong);
  box-sizing: border-box;
  height: auto;
}

.client-contact-form input:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.client-contact-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.crud-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.crud-contact-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crud-contact-full {
  grid-column: 1 / -1;
}

.contact-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.contact-chip {
  display: inline-block;
  max-width: 140px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f6f8fa;
  border: 1px solid var(--border-soft);
  font-size: 10px;
  font-weight: 600;
  color: #57606a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-chip-wa {
  background: #e7f8ef;
  border-color: rgba(37, 211, 102, 0.25);
  color: #128c47;
}

.contact-chip-tg {
  background: #e8f4fd;
  border-color: rgba(34, 158, 217, 0.25);
  color: #0969da;
}

.text-muted {
  color: #667781;
  font-size: 12px;
}

@media (max-width: 768px) {
  .client-contact-form {
    grid-template-columns: 1fr;
  }
}

.client-overview {
  gap: 20px;
}

.overview-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(9, 105, 218, 0.06) 0%, rgba(45, 164, 78, 0.05) 100%),
    #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.overview-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0969da 0%, #2da44e 100%);
}

.overview-hero-content {
  min-width: 0;
  flex: 1;
}

.overview-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(9, 105, 218, 0.18);
  border-radius: 999px;
  background: rgba(9, 105, 218, 0.08);
  color: #0969da;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.overview-hero-badge svg {
  width: 12px;
  height: 12px;
}

.overview-hero h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.25;
}

.overview-hero p {
  margin: 0;
  max-width: 52ch;
  font-size: 14px;
  color: #57606a;
  line-height: 1.55;
}

.overview-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-content: flex-start;
  max-width: 360px;
}

.overview-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.overview-action-chip svg {
  width: 14px;
  height: 14px;
  color: #57606a;
}

.overview-action-chip:hover {
  background: #f6f8fa;
  border-color: #afb8c1;
}

.overview-action-chip-primary {
  background: #2da44e;
  border-color: rgba(27, 31, 36, 0.15);
  color: #ffffff;
}

.overview-action-chip-primary svg {
  color: #ffffff;
}

.overview-action-chip-primary:hover {
  background: #2c974b;
}

.overview-stat-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.overview-stat-card:hover {
  border-color: #afb8c1;
}

.overview-stat-card.is-alert {
  border-color: rgba(191, 135, 0, 0.35);
  background: linear-gradient(180deg, #fff8e6 0%, #ffffff 100%);
}

.overview-stat-card.is-alert .overview-stat-icon {
  background: #fff1c2;
  color: #9a6700;
}

.overview-stat-card.is-alert .overview-stat-value {
  color: #9a6700;
}

.overview-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: #f6f8fa;
  color: #57606a;
}

.overview-stat-icon svg {
  width: 16px;
  height: 16px;
}

.overview-stat-label {
  font-size: 12px;
  color: #57606a;
}

.overview-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.1;
}

.overview-stat-hint {
  font-size: 11px;
  color: #8b949e;
}

.overview-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .client-overview .overview-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-main-grid {
    grid-template-columns: 1fr;
  }
}

.overview-section .gh-panel-header {
  align-items: flex-start;
}

.overview-projects-list,
.overview-invoices-list {
  display: grid;
}

.overview-project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 120ms ease;
}

.overview-project-row:last-child {
  border-bottom: 0;
}

.overview-project-row:hover {
  background: #f6f8fa;
}

.overview-project-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.overview-project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ddf4ff;
  color: #0969da;
  flex-shrink: 0;
}

.overview-project-icon svg {
  width: 18px;
  height: 18px;
}

.overview-project-copy {
  min-width: 0;
}

.overview-project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #8b949e;
}

.overview-project-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.overview-invoice-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid rgba(191, 135, 0, 0.28);
  border-radius: 8px;
  background: #fff8e6;
  color: #7d4e00;
  font-size: 12px;
}

.overview-invoice-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bf8700;
  flex-shrink: 0;
}

.overview-invoice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
}

.overview-invoice-row:last-child {
  border-bottom: 0;
}

.overview-invoice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff1c2;
  color: #9a6700;
  flex-shrink: 0;
}

.overview-invoice-icon svg {
  width: 16px;
  height: 16px;
}

.overview-invoice-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.overview-invoice-copy strong {
  font-size: 13px;
  color: var(--text-strong);
}

.overview-invoice-copy span {
  font-size: 12px;
  color: #57606a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-invoice-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.overview-invoice-amount {
  font-size: 14px;
  color: #9a6700;
}

.overview-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 20px;
  text-align: center;
}

.overview-empty-state strong {
  font-size: 14px;
  color: var(--text-strong);
}

.overview-empty-state p {
  margin: 0;
  max-width: 34ch;
  font-size: 12px;
  color: #57606a;
  line-height: 1.5;
}

.overview-empty-state-success .overview-empty-icon {
  background: #dafbe1;
  color: #1a7f37;
}

.overview-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f6f8fa;
  color: #57606a;
}

.overview-empty-icon svg {
  width: 18px;
  height: 18px;
}

.overview-section-footer {
  display: flex;
  justify-content: center;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border-soft);
  background: #f6f8fa;
}

.overview-chat-peek {
  padding: 8px 12px 10px;
}

.gh-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 14px 16px;
}

.gh-stat-card span {
  display: block;
  font-size: 12px;
  color: #57606a;
  margin-bottom: 4px;
}

.gh-stat-card strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.2;
}

.table-empty {
  text-align: center;
  color: #57606a;
  padding: 24px 16px !important;
  font-size: 13px;
}

.recent-messages-card {
  background: #ffffff;
}

.card-action-btn {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}

.card-action-btn:hover {
  text-decoration: underline;
}

.full-pane-card {
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  height: 100%;
}

.full-pane-card.chat-card {
  height: 520px;
}

@media (max-width: 768px) {
  .workspace-layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: calc(100vh - 120px);
  }

  .workspace-tab-content:has(#pane-chat.active) {
    flex: 1;
    min-height: calc(100dvh - 220px);
  }
  
  .workspace-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  
  .overview-stats-grid,
  .client-overview .overview-stats-grid,
  .overview-main-grid {
    grid-template-columns: 1fr;
  }

  .overview-hero {
    flex-direction: column;
  }

  .overview-quick-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .overview-project-row,
  .overview-invoice-row {
    flex-direction: column;
    align-items: stretch;
  }

  .overview-project-side,
  .overview-invoice-side {
    justify-content: space-between;
  }

  .gh-projects-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .gh-projects-toolbar .gh-repo-search-field,
  .gh-projects-toolbar .gh-projects-search {
    min-width: 0;
    width: 100%;
  }

  .project-pinned-grid.pinned-grid {
    grid-template-columns: 1fr;
  }

  .gh-repo-item {
    flex-direction: column;
    align-items: stretch;
  }

  .gh-repo-item-aside {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .gh-repo-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .gh-repo-search-field {
    min-width: 0;
    width: 100%;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Public Route visibility rules */
body.route-overview .content > section {
  display: none !important;
}
body.route-overview .content > #overview,
body.route-overview .content > #repositories-preview,
body.route-overview .content > #services {
  display: block !important;
}
body.route-overview .content > .experience-section,
body.route-overview .content > .workflow-section,
body.route-overview .content > .contribution-section,
body.route-overview .content > #case-studies {
  display: none !important;
}

body:not(.logged-in-view) .layout > .contact-section {
  display: flex !important;
}

body:not(.route-overview):not(.route-services) .content > #repositories-preview,
body:not(.route-overview):not(.route-services) .content > #services {
  display: none !important;
}

body.route-services .content > section,
body.route-services .content > .readme,
body.route-services .content > .public-page-banner {
  display: none !important;
}
body.route-services .content > .public-page-banner,
body.route-services .content > #services {
  display: block !important;
}

body.route-projects .content > section,
body.route-projects .content > .readme,
body.route-projects .public-page-banner {
  display: none !important;
}
body.route-projects .content > .public-page-banner,
body.route-projects .content > #case-studies {
  display: block !important;
}

body.route-contact .content > section,
body.route-contact .content > .readme,
body.route-contact .content > .public-page-banner {
  display: none !important;
}
body.route-contact .content > #contact-page {
  display: block !important;
}
body.route-contact .layout > .contact-section {
  display: none !important;
}

body.route-repositories .content > section,
body.route-repositories .content > .readme,
body.route-repositories .public-page-banner {
  display: none !important;
}
body.route-repositories .content > #repositories-page {
  display: block !important;
}

body.route-repo-detail .content > section,
body.route-repo-detail .content > .readme,
body.route-repo-detail .public-page-banner {
  display: none !important;
}
body.route-repo-detail .content > #repository-detail-page {
  display: block !important;
}

body.route-repositories #repositories-page,
body.route-repo-detail #repository-detail-page {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-page {
  padding: 20px;
}

.contact-page-head {
  margin-bottom: 16px;
}

.contact-page-head h2 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 700;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.contact-page-channels h3,
.contact-page-form h3 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
}

.contact-page-channels {
  display: grid;
  gap: 10px;
}

.contact-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.contact-channel-card:hover {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

.contact-channel-card.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.contact-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-channel-icon svg {
  width: 16px;
  height: 16px;
}

.contact-channel-icon-mail {
  background: #ddf4ff;
  color: #0969da;
  border: 1px solid rgba(9, 105, 218, 0.14);
}

.contact-channel-icon-wa {
  background: #dafbe1;
  color: #1a7f37;
  border: 1px solid rgba(26, 127, 55, 0.14);
}

.contact-channel-icon-tg {
  background: #ddf4ff;
  color: #0969da;
  border: 1px solid rgba(9, 105, 218, 0.14);
}

.contact-channel-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.contact-channel-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.contact-channel-copy span {
  font-size: 12px;
  color: #57606a;
  word-break: break-word;
}

.contact-page-form {
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

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

.contact-form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.contact-form-grid label em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.contact-form-full {
  grid-column: 1 / -1;
}

.contact-form-grid input,
.contact-form-grid textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #ffffff;
  font: inherit;
  color: var(--text);
}

.contact-form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.contact-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #f6f8fa;
}

.contact-captcha-label-text {
  flex: 1 1 180px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.contact-captcha-label-text strong {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #0969da;
}

.contact-captcha-row input {
  width: 88px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.contact-captcha-row input:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.contact-captcha-refresh {
  margin-left: auto;
}

.contact-fab {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

body.logged-in-view .contact-fab {
  display: none;
}

.contact-fab.is-empty {
  display: none;
}

.contact-fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.contact-fab:hover .contact-fab-menu,
.contact-fab.is-open .contact-fab-menu,
.contact-fab:focus-within .contact-fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-fab-panel {
  min-width: 220px;
  padding: 8px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(140, 149, 159, 0.18);
}

.contact-fab-panel-head {
  margin: 0 0 6px;
  padding: 0 8px 6px;
  border-bottom: 1px solid #eaeef2;
  color: #57606a;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.contact-fab-trigger {
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 16px 0 14px;
  gap: 8px;
  border: 1px solid #30363d;
  border-radius: 999px;
  background: #24292f;
  color: #f6f8fa;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1), 0 4px 12px rgba(27, 31, 36, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.contact-fab-trigger:hover {
  background: #32383f;
  border-color: #484f58;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1), 0 6px 16px rgba(27, 31, 36, 0.2);
  transform: translateY(-1px);
}

.contact-fab-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-fab-trigger-icon svg.lucide-icon {
  width: 17px;
  height: 17px;
}

.contact-fab-trigger-label {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
}

.contact-fab-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
  color: #24292f;
  transition: background 120ms ease;
}

.contact-fab-option:hover {
  background: #f6f8fa;
  color: #24292f;
  text-decoration: none;
}

.contact-fab-option.is-disabled {
  display: none;
}

.contact-fab-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #f6f8fa;
  color: #57606a;
}

.contact-fab-option-icon svg.lucide-icon {
  width: 14px;
  height: 14px;
}

.contact-fab-option-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.contact-fab-option-copy strong {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.contact-fab-option-copy span {
  color: #57606a;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-fab-option:hover .contact-fab-option-icon {
  color: #24292f;
  border-color: #afb8c1;
  background: #ffffff;
}

@media (max-width: 860px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin Dashboard Panel Styles */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.admin-table th {
  font-weight: 600;
  color: var(--muted);
  background: rgba(246, 248, 250, 0.5);
}

.admin-table tbody tr:hover {
  background: rgba(246, 248, 250, 0.3);
}

.admin-pane-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 960px) {
  .admin-pane-split {
    grid-template-columns: 1fr;
  }
}

.admin-editor-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.admin-editor-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
}

.admin-editor-form input[type="text"],
.admin-editor-form input[type="number"],
.admin-editor-form select,
.admin-editor-form textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  color: var(--text-strong);
}

.admin-editor-form input:focus,
.admin-editor-form select:focus,
.admin-editor-form textarea:focus {
  border-color: #0969da;
  outline: none;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.admin-form-group {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.admin-form-group label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.admin-select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  background: #f6f8fa;
}

.admin-chat-hub {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 550px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-hub-sidebar {
  border-right: 1px solid var(--border-soft);
  background: #f6f8fa;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.chat-hub-sidebar h4 {
  padding: 14px 18px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-strong);
}

.chat-threads-list {
  display: flex;
  flex-direction: column;
}

.chat-thread-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s ease;
  font-family: inherit;
}

.chat-thread-item:hover {
  background: #f6f8fa;
}

.chat-thread-item.active {
  background: #ddf4ff;
  box-shadow: inset 3px 0 0 #0969da;
}

.chat-thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a7f37;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.chat-thread-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-thread-top,
.chat-thread-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.chat-thread-top strong {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #667781;
}

.chat-thread-preview {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #667781;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-unread {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.chat-hub-main {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

@media (max-width: 768px) {
  .gh-form-row {
    grid-template-columns: 1fr;
  }

  .gh-admin-chat-hub {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .gh-chat-sidebar {
    max-height: 200px;
  }

  .chat-hub-sidebar {
    height: 180px;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
}

/* CRUD Modal Styles */
.crud-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease-in-out;
}

.crud-modal-backdrop.hidden {
  display: none !important;
}

.crud-modal-content {
  background: #ffffff;
  border-radius: 12px;
  width: min(520px, 92vw);
  max-height: 90vh;
  box-shadow: 0 4px 16px rgba(27, 31, 36, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.crud-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f8fa;
}

.crud-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}

.crud-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.crud-modal-close svg {
  width: 16px;
  height: 16px;
}

.crud-modal-close:hover {
  color: var(--text-strong);
  background: #f6f8fa;
}

.crud-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.crud-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crud-fields.hidden {
  display: none !important;
}

.crud-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
}

.crud-fields input[type="text"],
.crud-fields input[type="email"],
.crud-fields input[type="password"],
.crud-fields input[type="number"],
.crud-fields input[type="tel"],
.crud-fields select,
.crud-fields textarea {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: var(--text-strong);
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

.crud-fields textarea {
  min-height: 96px;
  line-height: 1.5;
}

.crud-progress-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f6f8fa;
}

.crud-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
}

.crud-progress-header strong {
  font-size: 15px;
  color: #0969da;
  white-space: nowrap;
}

.crud-progress-slider {
  width: 100%;
  height: 6px;
  margin: 0;
  accent-color: #0969da;
  cursor: pointer;
}

.crud-submit-btn {
  width: 100%;
  margin-top: 16px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
}

.crud-fields input:focus,
.crud-fields select:focus,
.crud-fields textarea:focus {
  border-color: #0969da;
  outline: none;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

/* Status Badges */
.status-badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
}

.status-badge.status-planning {
  background: rgba(175, 184, 193, 0.2);
  color: #57606a;
}

.status-badge.status-in-progress {
  background: rgba(2, 154, 233, 0.15);
  color: #029ae9;
}

.status-badge.status-review {
  background: rgba(227, 179, 11, 0.15);
  color: #b08a00;
}

.status-badge.status-completed {
  background: rgba(46, 160, 67, 0.15);
  color: #1f883d;
}

/* Explicit full width button overrides */
.auth-form .auth-submit,
#admin-crud-form button[type="submit"] {
  width: 100%;
}

/* ─── Toast notifications ─────────────────────────────────────────────── */

.toast-host {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-strong);
  pointer-events: auto;
  animation: toast-in 160ms ease;
}

.toast-out {
  animation: toast-out 160ms ease forwards;
}

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

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.toast-indicator {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast-success .toast-indicator {
  background: #1a7f37;
}

.toast-error .toast-indicator {
  background: #cf222e;
}

.toast-warning .toast-indicator {
  background: #9a6700;
}

.toast-info .toast-indicator {
  background: #0969da;
}

.toast-message {
  min-width: 0;
  word-break: break-word;
}

.toast-close {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.toast-close:hover {
  color: var(--text-strong);
  background: #f6f8fa;
}

/* ─── GitHub-style project UI ─────────────────────────────────────────── */

.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f6f8fa;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.gh-btn:hover {
  background: #eef1f4;
  border-color: #afb8c1;
}

.gh-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gh-btn-primary {
  background: #2da44e;
  border-color: rgba(27, 31, 36, 0.15);
  color: #ffffff;
}

.gh-btn-primary:hover {
  background: #2c974b;
  border-color: rgba(27, 31, 36, 0.15);
}

.gh-btn-sm {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.gh-btn-danger {
  color: #cf222e;
}

.gh-btn-icon {
  width: 28px;
  min-width: 28px;
  padding: 0;
}

.gh-label {
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 2em;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.gh-label-planning {
  background: #f6f8fa;
  border-color: var(--border);
  color: var(--muted);
}

.gh-label-in-progress {
  background: #ddf4ff;
  color: #0969da;
}

.gh-label-review {
  background: #fff8c5;
  color: #9a6700;
}

.gh-label-completed {
  background: #dafbe1;
  color: #1a7f37;
}

.gh-label-pending {
  background: #fff8c5;
  color: #9a6700;
}

.gh-project-page {
  padding: 0;
}

.gh-repo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.gh-repo-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gh-repo-owner {
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}

.gh-repo-slash {
  color: var(--muted-soft);
  font-size: 20px;
  font-weight: 300;
}

.gh-repo-name {
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.gh-repo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gh-project-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.gh-project-main {
  min-width: 0;
}

.gh-file-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.gh-file-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: #f6f8fa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.gh-file-header svg {
  width: 14px;
  height: 14px;
  color: var(--muted-soft);
}

.gh-file-content {
  padding: 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.gh-project-sidebar {
  display: grid;
  gap: 12px;
}

.gh-about-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.gh-about-box h3,
.gh-panel-title {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #f6f8fa;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.workspace-tab-content .gh-project-page {
  max-width: 1100px;
}

.gh-about-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.gh-about-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.gh-about-progress-head strong {
  color: var(--text-strong);
  font-size: 13px;
}

.gh-meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.gh-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.gh-meta-list li span {
  color: var(--muted);
}

.gh-meta-list li strong {
  color: var(--text-strong);
  font-weight: 600;
  text-align: right;
}

.gh-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Project detail overlay */
.pd-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  overflow: hidden;
  animation: pd-overlay-enter 220ms ease;
}

.pd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.pd-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pd-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pd-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
  flex: 1;
  overflow: hidden;
}

.pd-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.pd-panel:last-child {
  border-right: 0;
}

.pd-panel-main {
  overflow-y: auto;
  padding: 16px;
  background: var(--canvas);
}

.pd-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.pd-panel-footer {
  padding: 10px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.pd-panel-footer textarea {
  width: 100%;
  min-height: 72px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  resize: vertical;
}

.pd-panel-footer textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: var(--focus);
}

.pd-body {
  width: 100%;
  margin: 0;
}

.pd-body-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.pd-cell-progress {
  grid-column: span 4;
}

.pd-cell-meta {
  grid-column: span 8;
}

.pd-cell-scope {
  grid-column: span 7;
}

.pd-cell-billing {
  grid-column: span 5;
}

.pd-cell-review {
  grid-column: span 12;
}

.pd-review-box .gh-about-body {
  display: grid;
  gap: 12px;
}

.pd-review-head h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}

.pd-review-head p {
  margin: 0;
  font-size: 12px;
  color: #57606a;
  line-height: 1.45;
}

.pd-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pd-star-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8b949e;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.pd-star-btn svg {
  width: 22px;
  height: 22px;
}

.pd-star-rating .star-icon-filled {
  fill: currentColor;
  stroke: none;
}

.pd-star-rating .star-icon-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pd-star-btn:hover,
.pd-star-btn.is-active {
  color: #bf8700;
  background: #fff8e6;
}

.pd-star-btn:active {
  transform: scale(0.96);
}

.pd-star-rating-readonly .pd-star-display {
  display: inline-flex;
  color: #d0d7de;
}

.pd-star-rating-readonly .pd-star-display.is-active {
  color: #bf8700;
}

.pd-star-rating-readonly .pd-star-display svg {
  width: 20px;
  height: 20px;
}

.pd-star-rating-readonly .star-icon-filled {
  fill: currentColor;
  stroke: none;
}

.pd-star-rating-readonly .star-icon-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pd-review-text {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.pd-review-text:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.pd-review-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-review-saved,
.pd-review-meta {
  font-size: 11px;
  color: #8b949e;
}

.pd-review-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-review-quote {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #bf8700;
  border-radius: 0 6px 6px 0;
  background: #fffdf5;
  color: #24292f;
  font-size: 13px;
  line-height: 1.5;
}

.pd-review-empty-text {
  margin: 0;
  font-size: 12px;
  color: #57606a;
}

.pd-card-fill {
  height: 100%;
}

.pd-meta-grid {
  height: 100%;
}

.pd-meta-grid .gh-stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
}

.pd-cell-scope .gh-file-box {
  min-height: 100%;
}

.pd-cell-billing .pd-billing-box {
  height: 100%;
}

.pd-cell-addon {
  grid-column: span 12;
}

.pd-addon-panel-body {
  padding: 14px 16px;
}

.pd-addon-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr auto;
  gap: 12px;
  align-items: end;
}

.pd-addon-form-grid .gh-form-field textarea {
  min-height: 72px;
}

.pd-addon-form-action {
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

.pd-addon-panel .pd-addon-section {
  border-top: 1px solid var(--border-soft);
}

.pd-billing-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.pd-billing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f6f8fa;
  border-bottom: 1px solid var(--border-soft);
}

.pd-billing-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.pd-billing-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.pd-billing-stat {
  background: #ffffff;
  padding: 12px 14px;
}

.pd-billing-stat span {
  display: block;
  font-size: 11px;
  color: #57606a;
  margin-bottom: 4px;
}

.pd-billing-stat strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}

.pd-billing-stat .pd-paid {
  color: #1a7f37;
}

.pd-billing-stat .pd-outstanding {
  color: #9a6700;
}

.pd-invoice-list {
  display: grid;
  gap: 0;
}

.pd-invoice-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.pd-invoice-row:last-child {
  border-bottom: 0;
}

.pd-invoice-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.pd-invoice-top strong {
  font-size: 13px;
}

.pd-invoice-desc {
  font-size: 12px;
  color: #57606a;
  margin-bottom: 4px;
}

.pd-invoice-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}

.pd-invoice-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.pd-billing-admin,
.pd-billing-client {
  padding: 14px;
  border-top: 1px solid var(--border-soft);
  background: #fafbfc;
}

.pd-subsection-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}

.pd-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pd-inline-input {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  background: #ffffff;
}

.pd-inline-grow {
  flex: 1;
  min-width: 160px;
}

.pd-billing-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #57606a;
}

.pd-sub-section {
  margin: 16px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.pd-sub-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}

.pd-sub-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #f6f8fa;
}

.pd-sub-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.pd-sub-meta,
.pd-sub-desc {
  font-size: 12px;
  color: #57606a;
}

.pd-sub-desc {
  margin-top: 4px;
}

.pd-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.pd-sub-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.pd-sub-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #57606a;
  white-space: nowrap;
}

.muted-meta {
  font-size: 11px;
  color: #57606a;
  margin-top: 2px;
}

#assign-service-form .field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #24292f;
}

#assign-service-form .field .pd-inline-input,
#assign-service-form .field select,
#assign-service-form .field input,
#assign-service-form .field textarea {
  width: 100%;
}

.svc-terms-input {
  min-height: 110px;
  padding: 10px !important;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

.svc-client-list {
  gap: 14px;
}

.svc-client-card {
  display: block;
  background: #ffffff;
}

.svc-terms-block {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #f6f8fa;
}

.svc-terms-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #57606a;
  margin-bottom: 6px;
}

.svc-terms-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #24292f;
  white-space: pre-wrap;
}

.svc-invoice-history {
  margin-top: 14px;
}

.svc-invoice-history-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
}

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

.svc-invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #f6f8fa;
}

.svc-invoice-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.svc-invoice-desc,
.svc-invoice-meta,
.svc-invoice-empty {
  font-size: 12px;
  color: #57606a;
}

.svc-invoice-empty {
  padding: 8px 0;
}

.svc-invoice-actions {
  flex-shrink: 0;
}

.pd-addon-section {
  padding: 14px;
  border-top: 1px solid var(--border-soft);
}

.pd-addon-card {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  background: #ffffff;
}

.pd-addon-card p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #57606a;
  line-height: 1.45;
}

.pd-addon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pd-addon-head strong {
  font-size: 13px;
}

.pd-addon-budget {
  margin-top: 8px;
  font-size: 11px;
  color: #57606a;
}

.pd-addon-admin-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}

.pd-addon-invoice-fields {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.pd-addon-invoice-fields input,
.pd-addon-amount,
.pd-addon-desc {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}

.pd-addon-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-scope-wrap {
  padding: 14px 16px 16px;
}

.pd-scope-wrap .pd-addon-form-grid,
.pd-scope-wrap .pd-scope-form-stack,
.pd-scope-wrap .pd-scope-update-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.pd-scope-wrap .gh-form-field {
  display: grid;
  gap: 6px;
}

.pd-scope-wrap .gh-form-field input,
.pd-scope-wrap .gh-form-field textarea {
  width: 100%;
  box-sizing: border-box;
}

.pd-scope-wrap .pd-addon-form-action,
.pd-scope-wrap .pd-scope-update-action {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  padding-bottom: 0;
}

.pd-scope-wrap .pd-addon-form-action .gh-btn,
.pd-scope-wrap .pd-scope-update-action .gh-btn {
  width: 100%;
}

.pd-scope-wrap .pd-addon-invoice-fields {
  grid-template-columns: 1fr;
}

.pd-scope-wrap .pd-addon-admin-actions {
  flex-direction: column;
}

.pd-scope-wrap .pd-addon-admin-actions .gh-btn {
  width: 100%;
}

.pd-scope-box .gh-file-header {
  border-bottom: 1px solid var(--border-soft);
}

.pd-scope-base {
  font-size: 13px;
  line-height: 1.55;
  color: #24292f;
  margin-bottom: 4px;
}

.pd-scope-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
}

.pd-scope-heading {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #57606a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pd-scope-addon {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  background: #ffffff;
}

.pd-scope-addon p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #57606a;
  line-height: 1.45;
}

.pd-scope-addon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pd-scope-addon-head strong {
  font-size: 13px;
}

.pd-scope-addon-pending {
  background: #fffef5;
}

.pd-scope-addon-declined {
  opacity: 0.75;
}

.pd-scope-request-form {
  padding-bottom: 4px;
}

.pd-scope-hint {
  margin: 0 0 10px;
  font-size: 11px;
  color: #57606a;
  line-height: 1.45;
}

.pd-scope-update-form {
  display: grid;
  gap: 10px;
}

.pd-scope-update-action {
  display: flex;
  justify-content: flex-end;
}

.scope-roadmap {
  display: grid;
  gap: 18px;
}

.scope-current-card {
  position: relative;
  border-radius: 10px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #f6fff8 0%, #ffffff 55%, #f0f7ff 100%);
  border: 1px solid #b7e4c7;
}

.scope-current-card.scope-tone-update {
  background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 55%, #f3f0ff 100%);
  border-color: #9ec5fe;
}

.scope-current-card.scope-tone-addon {
  background: linear-gradient(135deg, #fffaf2 0%, #ffffff 55%, #f6fff8 100%);
  border-color: #f0d58c;
}

.scope-current-card.scope-current-empty {
  background: #fafbfc;
  border-color: var(--border-soft);
  box-shadow: none;
}

.scope-current-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.scope-current-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a7f37;
}

.scope-current-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2da44e;
  box-shadow: 0 0 0 4px rgba(45, 164, 78, 0.18);
}

.scope-current-type,
.scope-timeline-badge,
.scope-badge-initial,
.scope-badge-update,
.scope-badge-addon {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.scope-badge-initial,
.scope-current-type.scope-badge-initial {
  background: #dafbe1;
  color: #1a7f37;
}

.scope-badge-update,
.scope-current-type.scope-badge-update {
  background: #ddf4ff;
  color: #0969da;
}

.scope-badge-addon,
.scope-current-type.scope-badge-addon {
  background: #fff8c5;
  color: #9a6700;
}

.scope-current-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
  color: #1f2328;
}

.scope-current-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #424a53;
}

.scope-current-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(27, 31, 35, 0.12);
  font-size: 11px;
  color: #656d76;
}

.scope-journey-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.scope-journey-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d0d7de, transparent);
}

.scope-journey-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #656d76;
  white-space: nowrap;
}

.scope-timeline {
  display: grid;
  gap: 0;
  padding-left: 2px;
}

.scope-timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding-bottom: 14px;
}

.scope-timeline-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.scope-timeline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #2da44e;
  box-shadow: 0 0 0 3px rgba(45, 164, 78, 0.12);
  flex-shrink: 0;
  margin-top: 14px;
}

.scope-tone-update .scope-timeline-dot {
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.scope-tone-addon .scope-timeline-dot {
  border-color: #bf8700;
  box-shadow: 0 0 0 3px rgba(191, 135, 0, 0.12);
}

.scope-timeline-line {
  flex: 1;
  width: 2px;
  margin-top: 4px;
  background: linear-gradient(180deg, #d0d7de 0%, rgba(208, 215, 222, 0.2) 100%);
}

.scope-timeline-card {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.scope-timeline-current .scope-timeline-card {
  border-color: #b7e4c7;
  background: #fcfffd;
}

.scope-timeline-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.scope-timeline-date {
  font-size: 10px;
  color: #656d76;
  white-space: nowrap;
}

.scope-timeline-title {
  margin: 0 0 6px;
  font-size: 13px;
  color: #1f2328;
}

.scope-timeline-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #57606a;
}

.scope-timeline-foot {
  margin-top: 8px;
  font-size: 10px;
  color: #8c959f;
}

@media (max-width: 720px) {
  .pd-billing-summary {
    grid-template-columns: 1fr;
  }

  .pd-addon-invoice-fields {
    grid-template-columns: 1fr;
  }

  .pd-cell-scope,
  .pd-cell-billing,
  .pd-cell-addon {
    grid-column: span 12;
  }

  .pd-addon-form-grid {
    grid-template-columns: 1fr;
  }
}

.gh-comment {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.gh-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  background: #f6f8fa;
}

.gh-comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.gh-comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.gh-comment-avatar.admin {
  background: #0969da;
}

.gh-comment-avatar.client {
  background: #1a7f37;
}

.gh-comment-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.gh-comment-name {
  color: var(--text-strong);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.gh-comment-dot,
.gh-comment-time {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.gh-comment-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 120ms ease, background-color 120ms ease;
}

.gh-comment-delete svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gh-comment-delete:hover {
  color: #cf222e;
  background: rgba(207, 34, 46, 0.08);
}

.gh-comment-meta strong {
  color: var(--text-strong);
  font-weight: 600;
}

.gh-comment-meta span {
  color: var(--muted);
  font-size: 11px;
}

.gh-comment-body {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}

.gh-file-row:has(.gh-file-row-info) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
}

.gh-file-row-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.gh-file-row-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f6f8fa;
  flex-shrink: 0;
}

.gh-file-row-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
  word-break: break-word;
}

.gh-file-row-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.gh-file-row-actions {
  display: flex;
  gap: 4px;
}

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

.gh-stat-item {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
}

.gh-stat-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gh-stat-item strong {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
}

.gh-admin-table-wrap .admin-table td,
.gh-admin-table-wrap .admin-table th {
  padding: 8px 10px;
  font-size: 12px;
}

.gh-admin-table-wrap .admin-table tbody tr:hover {
  background: #f6f8fa;
}

.gh-progress-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.gh-progress-inline .progress-bar-container {
  flex: 1;
  height: 6px;
}

.gh-progress-inline strong {
  font-size: 11px;
  color: var(--muted);
  min-width: 28px;
  text-align: right;
}

/* ─── GitHub-style workspace panels ───────────────────────────────────── */

.gh-panel {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
}

.gh-panel-intro {
  padding: 20px 24px;
}

.gh-panel-intro h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
}

.gh-panel-intro p {
  margin: 0;
  font-size: 14px;
  color: #57606a;
  line-height: 1.5;
}

.gh-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f6f8fa;
  border-bottom: 1px solid var(--border-soft);
}

.gh-panel-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-panel-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: #57606a;
  font-weight: 400;
}

.gh-panel-body {
  padding: 16px;
}

.gh-panel-body.table-responsive {
  padding: 0;
}

.gh-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
  background: #f6f8fa;
}

.gh-panel-alert {
  border-color: #d4a72c;
}

.gh-panel-alert .gh-panel-header {
  background: #fff8c5;
}

.gh-form {
  display: grid;
  gap: 16px;
}

.gh-form-narrow {
  max-width: 640px;
}

.gh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.gh-form-row-hint {
  margin: -4px 0 8px;
}

.gh-form-field {
  display: grid;
  gap: 6px;
}

.gh-form-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.gh-required {
  color: #cf222e;
  font-style: normal;
}

.gh-form-field input,
.gh-form-field textarea,
.gh-form-field select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  color: var(--text-strong);
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(27, 31, 36, 0.04);
}

.gh-form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.gh-form-field input:focus,
.gh-form-field textarea:focus,
.gh-form-field select:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.gh-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-form-msg {
  font-size: 13px;
  color: #57606a;
}

.gh-form-hint {
  font-size: 11px;
  color: #8b949e;
  line-height: 1.4;
}

.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;
}

.gh-project-tag {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ddf4ff;
  color: #0969da;
  border: 1px solid rgba(9, 105, 218, 0.18);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-project-tag-general {
  background: #f6f8fa;
  color: #57606a;
  border-color: var(--border-soft);
}

.docs-search-field {
  min-width: 220px;
}

.docs-search-field input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
  color: var(--text-strong);
}

.docs-search-field input:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.docs-file-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-file-name svg {
  width: 16px;
  height: 16px;
  color: #57606a;
  flex-shrink: 0;
}

#pane-docs .gh-panel-header,
#pane-invoices .gh-panel-header,
#pane-admin-invoices .gh-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.invoice-panel-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gh-label-rejected {
  background: #ffebe9;
  color: #cf222e;
  border-color: rgba(207, 34, 46, 0.2);
}

/* ─── WhatsApp-style live chat ──────────────────────────────────────────── */

.wa-chat-shell {
  overflow: hidden;
  border-radius: 8px;
}

.wa-chat-header {
  padding: 8px 12px !important;
  background: #f0f2f5;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.wa-chat-header-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wa-chat-header-copy {
  min-width: 0;
  flex: 1;
}

.wa-chat-header-copy h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-chat-back-btn {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #54656f;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}

.wa-chat-back-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wa-chat-back-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.wa-chat-status {
  font-size: 11px;
  color: #25a366;
  font-weight: 500;
  line-height: 1.2;
}

.wa-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0969da;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.wa-chat-avatar-client {
  background: #1a7f37;
}

.wa-chat-thread {
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px) 0 0 / 16px 16px,
    #efeae2;
  gap: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.wa-chat-empty {
  margin: auto;
  text-align: center;
  color: #667781;
  font-size: 12px;
  padding: 16px 10px;
}

.wa-date-sep {
  display: flex;
  justify-content: center;
  margin: 6px 0 4px;
}

.wa-date-sep span {
  background: rgba(255, 255, 255, 0.92);
  color: #54656f;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(11, 20, 26, 0.08);
}

.wa-bubble-row {
  display: flex;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.wa-chat-thread .wa-date-sep + .wa-bubble-row,
.wa-chat-thread .wa-bubble-row + .wa-bubble-row {
  margin-top: 10px;
}

.wa-chat-thread .wa-bubble-row.is-grouped-next {
  margin-top: 4px;
}

.wa-bubble-row.is-sent {
  justify-content: flex-end;
  padding-left: clamp(52px, 14vw, 80px);
  padding-right: 6px;
}

.wa-bubble-row.is-received {
  justify-content: flex-start;
  padding-right: clamp(52px, 14vw, 80px);
  padding-left: 6px;
}

.wa-bubble-row.is-grouped-prev {
  margin-bottom: 0;
}

.wa-bubble-row.is-grouped-next {
  margin-bottom: 0;
}

.wa-bubble {
  max-width: min(82%, 360px);
  padding: 3px 7px 2px 9px;
  border-radius: 7.5px;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.wa-bubble-inner {
  display: block;
  line-height: 1.3;
}

.wa-bubble-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.3;
  color: #111b21;
  white-space: pre-wrap;
  word-break: break-word;
  display: inline;
}

.wa-bubble.has-attachment {
  padding: 4px 5px 3px 6px;
  min-width: 210px;
}

.wa-bubble.has-attachment .wa-bubble-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.wa-bubble.has-attachment .wa-bubble-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-bubble.has-attachment .wa-bubble-text {
  display: block;
  margin-top: 0;
  padding: 0 2px;
}

.wa-bubble.has-attachment .wa-bubble-meta {
  float: none;
  align-self: flex-end;
  margin-left: 0;
  margin-top: 2px;
  padding-right: 1px;
}

.wa-bubble.is-attachment-only {
  min-width: 220px;
}

.wa-bubble-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.wa-bubble-row.is-received .wa-bubble-attachment {
  background: rgba(0, 0, 0, 0.05);
}

.wa-bubble-row.is-sent .wa-bubble-attachment {
  background: rgba(0, 0, 0, 0.07);
}

.wa-bubble-attachment:hover:not(.is-local) {
  filter: brightness(0.98);
}

.wa-bubble-attachment.is-local {
  cursor: default;
}

.wa-bubble-attachment-icon {
  width: 36px;
  height: 40px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #d93025;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

.wa-bubble-row.is-sent .wa-bubble-attachment-icon {
  background: rgba(255, 255, 255, 0.95);
}

.wa-bubble-attachment-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-bubble-attachment-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: #111b21;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-bubble-attachment-size {
  font-size: 11px;
  line-height: 1.2;
  color: #667781;
}

.wa-bubble-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  float: right;
  margin-left: 8px;
  margin-top: 3px;
  white-space: nowrap;
  vertical-align: bottom;
  position: relative;
  top: 1px;
}

.wa-bubble-meta time {
  font-size: 10px;
  color: #667781;
  line-height: 1;
}

.wa-tick {
  font-size: 10px;
  line-height: 1;
  letter-spacing: -1px;
}

.wa-tick.is-sent,
.wa-tick.is-pending,
.wa-tick.is-delivered {
  color: #8696a0;
}

.wa-tick.is-read {
  color: #53bdeb;
}

.wa-tick.is-failed {
  color: #cf222e;
}

.wa-bubble-row.is-sent .wa-bubble {
  background: #d9fdd3;
}

.wa-bubble-row.is-received .wa-bubble {
  background: #ffffff;
}

.wa-bubble-row:not(.is-grouped-prev).is-sent .wa-bubble {
  border-top-right-radius: 0;
}

.wa-bubble-row:not(.is-grouped-prev).is-received .wa-bubble {
  border-top-left-radius: 0;
}

.wa-bubble-row.is-grouped-prev.is-grouped-next .wa-bubble {
  border-radius: 7.5px;
}

.wa-bubble-row.is-grouped-prev:not(.is-grouped-next).is-sent .wa-bubble {
  border-bottom-right-radius: 2px;
}

.wa-bubble-row.is-grouped-prev:not(.is-grouped-next).is-received .wa-bubble {
  border-bottom-left-radius: 2px;
}

.wa-bubble-row.is-grouped-next:not(.is-grouped-prev).is-sent .wa-bubble {
  border-top-right-radius: 2px;
}

.wa-bubble-row.is-grouped-next:not(.is-grouped-prev).is-received .wa-bubble {
  border-top-left-radius: 2px;
}

.wa-bubble-row.is-pending .wa-bubble {
  opacity: 0.72;
}

.wa-bubble-row.is-failed .wa-bubble {
  background: #ffebe9;
}

.wa-compose {
  padding: 6px 8px !important;
  background: #f0f2f5;
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.wa-compose-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}

.wa-compose-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.wa-compose-pending.hidden {
  display: none;
}

.wa-compose-pending-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  font-size: 12px;
}

.wa-compose-pending-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-strong);
}

.wa-compose-pending-size {
  color: #667781;
  flex-shrink: 0;
}

.wa-compose-pending-remove {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #f0f2f5;
  color: #667781;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.wa-compose-pending-remove:hover {
  background: #e9edef;
  color: var(--text-strong);
}

.wa-attach-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: #54656f;
  cursor: pointer;
  flex-shrink: 0;
}

.wa-attach-btn:hover:not(:disabled) {
  background: #e9edef;
  color: #111b21;
}

.wa-attach-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wa-attach-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wa-compose-form input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 20px;
  padding: 0 14px;
  font-size: 13px;
  background: #ffffff;
  color: var(--text-strong);
}

.wa-compose-form input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.15);
}

.wa-compose-form input[type="text"]:disabled {
  background: #e9edef;
  color: #667781;
}

.wa-send-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms ease;
}

.wa-send-btn:hover:not(:disabled) {
  background: #20bd5a;
}

.wa-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wa-send-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

.overview-chat-peek-bubble .wa-bubble-row {
  margin-bottom: 0;
  padding: 0;
}

.overview-chat-peek-bubble .wa-bubble {
  max-width: 100%;
}

@media (min-width: 768px) {
  .gh-chat-thread.wa-chat-thread {
    padding: 12px 14px !important;
  }

  .wa-bubble-row.is-sent {
    padding-left: 80px;
    padding-right: 8px;
  }

  .wa-bubble-row.is-received {
    padding-right: 80px;
    padding-left: 8px;
  }

  .wa-bubble {
    max-width: min(72%, 420px);
  }

  .wa-compose {
    padding: 8px 12px !important;
  }
}

@media (max-width: 767px) {
  #pane-chat {
    padding: 0;
  }

  #pane-chat .gh-panel,
  #pane-chat .gh-admin-chat-hub {
    border: 0;
    border-radius: 0;
  }

  .workspace-topbar {
    padding: 10px 14px;
  }

  .workspace-tab-content:has(#pane-chat.active) {
    padding: 0;
    overflow: hidden;
  }

  #pane-chat.tab-pane {
    min-height: 0;
    height: 100%;
  }

  .wa-chat-shell.gh-chat-panel {
    border-radius: 0;
    min-height: 0;
    max-height: none;
    height: 100%;
  }

  .gh-admin-chat-hub {
    position: relative;
    display: block;
    gap: 0;
    min-height: 0;
    max-height: none;
    height: 100%;
  }

  .gh-admin-chat-hub .gh-chat-sidebar {
    max-height: none;
    height: 100%;
    min-height: calc(100dvh - 132px);
    border-radius: 0;
    border: 0;
  }

  .gh-admin-chat-hub .gh-chat-panel {
    display: none;
    position: absolute;
    inset: 0;
    min-height: 0;
    max-height: none;
    height: 100%;
    z-index: 3;
    border-radius: 0;
  }

  .gh-admin-chat-hub.show-conversation .gh-chat-sidebar {
    display: none;
  }

  .gh-admin-chat-hub.show-conversation .gh-chat-panel {
    display: flex;
  }

  .gh-admin-chat-hub.show-conversation .wa-chat-back-btn {
    display: grid;
  }

  .gh-chat-threads .chat-thread-item {
    padding: 10px 12px;
  }

  .wa-bubble-row.is-sent {
    padding-left: clamp(36px, 10vw, 52px);
    padding-right: 4px;
  }

  .wa-bubble-row.is-received {
    padding-right: clamp(36px, 10vw, 52px);
    padding-left: 4px;
  }

  .wa-bubble {
    max-width: min(88%, 320px);
  }

  .wa-compose {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .wa-compose-form input[type="text"] {
    height: 40px;
    font-size: 16px;
  }

  .wa-send-btn {
    width: 40px;
    height: 40px;
  }
}

/* ─── GitHub-style chat thread ──────────────────────────────────────────── */

.gh-chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.gh-chat-panel .gh-panel-header,
.gh-chat-panel .gh-panel-footer,
.gh-chat-panel .wa-compose {
  flex-shrink: 0;
}

.gh-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gh-chat-thread.wa-chat-thread {
  padding: 10px 8px !important;
}

.gh-chat-thread .gh-empty {
  padding: 24px 16px;
}

.gh-chat-compose {
  padding: 12px 16px !important;
}

.gh-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.gh-chat-form textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background: #ffffff;
  color: var(--text-strong);
}

.gh-chat-form textarea:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.gh-chat-form textarea:disabled {
  background: #f6f8fa;
  color: #57606a;
}

.gh-admin-chat-hub {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.gh-admin-chat-hub .gh-chat-sidebar {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gh-admin-chat-hub .gh-chat-threads {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.gh-chat-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gh-chat-sidebar-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: #f6f8fa;
}

.gh-chat-sidebar-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.gh-chat-threads {
  flex: 1;
  overflow-y: auto;
}

.gh-chat-threads .chat-thread-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 120ms ease;
  font-family: inherit;
}

.gh-chat-threads .chat-thread-item:hover {
  background: #f6f8fa;
}

.gh-chat-threads .chat-thread-item.active {
  background: #ddf4ff;
  box-shadow: inset 3px 0 0 #0969da;
}

.gh-chat-threads .chat-thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a7f37;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.gh-chat-threads .chat-thread-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.gh-chat-threads .chat-thread-top,
.gh-chat-threads .chat-thread-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.gh-chat-threads .chat-thread-top strong {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-chat-threads .chat-thread-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #667781;
  line-height: 1.2;
}

.gh-chat-threads .chat-thread-preview {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #667781;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.gh-chat-threads .chat-thread-unread {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.gh-admin-chat-hub .gh-chat-panel {
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow: hidden;
}

/* ─── Client projects list (GitHub repositories style) ─────────────────── */

.gh-projects-page .gh-panel-body {
  padding: 0;
}

.gh-projects-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.gh-projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: #f6f8fa;
}

.gh-projects-toolbar .gh-project-filters {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.gh-projects-toolbar .gh-repo-search-field,
.gh-projects-search {
  min-width: 200px;
  margin: 0;
  flex-shrink: 0;
}

.gh-repo-list-shell {
  overflow: hidden;
}

.gh-repo-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
  background: #ffffff;
}

.gh-repo-list-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gh-repo-list-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
}

.gh-repo-list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 2em;
  background: #f6f8fa;
  font-size: 12px;
  font-weight: 600;
  color: #57606a;
}

.gh-repo-list-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
}

.gh-repo-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
}

.gh-repo-filter-tabs .gh-filter-pill {
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  margin-bottom: -1px;
  padding: 12px 14px;
  color: #57606a;
}

.gh-repo-filter-tabs .gh-filter-pill:hover {
  background: transparent;
  color: var(--text-strong);
  border-bottom-color: #d0d7de;
}

.gh-repo-filter-tabs .gh-filter-pill.active {
  background: transparent;
  border-color: transparent;
  border-bottom-color: #fd8c73;
  color: var(--text-strong);
}

.gh-repo-filter-tabs .gh-filter-pill.active .gh-filter-count {
  background: rgba(253, 140, 115, 0.15);
  color: #bc4c00;
}

.gh-repo-search-field {
  min-width: 220px;
  margin: 10px 0;
}

.gh-repo-search-field input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
  color: var(--text-strong);
}

.gh-repo-search-field input:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.gh-repo-list {
  display: grid;
  background: #ffffff;
}

.gh-repo-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 120ms ease;
}

.gh-repo-item:last-child {
  border-bottom: 0;
}

.gh-repo-item:hover {
  background: #f6f8fa;
}

.gh-repo-item-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.gh-repo-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 6px;
  background: #f6f8fa;
  border: 1px solid var(--border-soft);
  color: #57606a;
  flex-shrink: 0;
}

.gh-repo-item-icon svg {
  width: 16px;
  height: 16px;
}

.gh-repo-item-body {
  min-width: 0;
  flex: 1;
}

.gh-repo-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.gh-repo-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.gh-repo-link .gh-repo-owner {
  color: #0969da;
  font-size: 14px;
  font-weight: 600;
}

.gh-repo-link .gh-repo-slash {
  color: #8b949e;
  font-size: 14px;
  font-weight: 400;
  margin: 0 1px;
}

.gh-repo-link .gh-repo-name {
  color: #0969da;
  font-size: 14px;
  font-weight: 600;
}

.gh-repo-link:hover .gh-repo-owner,
.gh-repo-link:hover .gh-repo-name {
  text-decoration: underline;
}

.gh-repo-item-desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: #57606a;
  line-height: 1.5;
  max-width: 72ch;
}

.gh-repo-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #8b949e;
}

.gh-repo-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gh-repo-meta-item svg {
  width: 14px;
  height: 14px;
  color: #8b949e;
}

.gh-repo-meta-stars svg.lucide-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
}

.gh-repo-meta-progress {
  color: #57606a;
  font-weight: 600;
}

.gh-repo-item-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}

.gh-repo-empty {
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: #57606a;
  line-height: 1.5;
}

.gh-project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: #f6f8fa;
}

.gh-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 2em;
  background: #ffffff;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.gh-filter-pill:hover {
  background: #eef1f4;
}

.gh-filter-pill.active {
  background: #ddf4ff;
  border-color: #54aeff;
  color: #0969da;
}

.gh-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 2em;
  background: rgba(27, 31, 36, 0.08);
  font-size: 10px;
  font-weight: 700;
}

.gh-filter-pill.active .gh-filter-count {
  background: rgba(9, 105, 218, 0.15);
}

.gh-projects-list {
  display: grid;
  gap: 0;
}

.gh-project-card {
  padding: 16px;
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 120ms ease;
}

.gh-project-card:last-child {
  border-bottom: 0;
}

.gh-project-card:hover {
  background: #f6f8fa;
}

.gh-project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.gh-project-card-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: #57606a;
  line-height: 1.5;
}

.gh-project-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gh-project-card-foot .gh-progress-inline {
  flex: 1;
  min-width: 140px;
  max-width: 240px;
}

.gh-project-card-date {
  font-size: 11px;
  color: #8b949e;
}

.admin-actions-cell {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .gh-project-split,
  .pd-layout {
    grid-template-columns: 1fr;
  }

  .pd-cell-progress {
    grid-column: span 5;
  }

  .pd-cell-meta {
    grid-column: span 7;
  }

  .pd-cell-scope,
  .pd-cell-billing {
    grid-column: span 6;
  }

  .pd-cell-addon {
    grid-column: span 12;
  }

  .pd-addon-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pd-addon-form-action {
    grid-column: span 2;
  }

  .pd-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    max-height: 280px;
  }

  .pd-panel-main {
    max-height: none;
  }
}

/* ─── Invoice preview popup ─────────────────────────────────────────────── */

.inv-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 17, 23, 0.62);
  backdrop-filter: blur(6px);
  animation: inv-fade-in 160ms ease;
}

@keyframes inv-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pd-overlay > .inv-preview-backdrop {
  z-index: 20;
}

.inv-preview-dialog {
  width: min(100%, 860px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  animation: inv-slide-up 200ms ease;
}

@keyframes inv-slide-up {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.inv-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.inv-preview-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inv-preview-sheet {
  background: #f2ede4;
  border: 1px solid #c9c2b4;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  overflow: auto;
  max-height: calc(100vh - 120px);
}

.inv-doc-export-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  margin: 0;
  padding: 0;
  background: #f2ede4;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

.inv-doc {
  --inv-olive: #3d523b;
  --inv-ink: #222222;
  --inv-cream: #f2ede4;
  --inv-line: #3d523b;

  width: 794px;
  min-height: 1123px;
  box-sizing: border-box;
  padding: 48px 48px 36px;
  background: var(--inv-cream);
  color: var(--inv-ink);
  font-family: "JetBrains Mono", "Courier New", Courier, monospace;
  font-size: 11px;
  line-height: 1.45;
}

.inv-doc-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.inv-doc-title {
  margin: 0 0 16px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--inv-olive);
  text-transform: uppercase;
}

.inv-doc-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.inv-doc-head-right {
  text-align: right;
  min-width: 210px;
}

.inv-doc-brand {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--inv-olive);
  margin-bottom: 12px;
}

.inv-doc-company p {
  margin: 0 0 3px;
  font-size: 11px;
  color: var(--inv-ink);
}

.inv-doc-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 22px;
}

.inv-doc-party h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--inv-olive);
}

.inv-doc-party p {
  margin: 0 0 3px;
  font-size: 11px;
  color: var(--inv-ink);
}

.inv-doc-party-name {
  font-size: 13px !important;
  font-weight: 700 !important;
}

.inv-doc-table-wrap {
  margin-bottom: 28px;
}

.inv-doc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.inv-doc-table th,
.inv-doc-table td {
  border: 1px solid var(--inv-line);
  padding: 10px 12px;
  vertical-align: top;
}

.inv-doc-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--inv-olive);
  text-align: left;
  background: rgba(61, 82, 59, 0.04);
}

.inv-col-desc { width: auto; }
.inv-col-qty { width: 70px; text-align: center !important; }
.inv-col-price,
.inv-col-sub {
  width: 110px;
  text-align: right !important;
  font-variant-numeric: tabular-nums;
}

.inv-item-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.inv-item-note {
  display: block;
  font-size: 10px;
  color: #444444;
  line-height: 1.4;
  max-width: 42ch;
}

.inv-row-empty td {
  height: 34px;
  padding: 0;
  border-top-color: transparent;
}

.inv-totals-row td {
  padding: 7px 12px;
  font-size: 11px;
}

.inv-totals-spacer {
  border-right-color: transparent;
  background: transparent;
}

.inv-totals-row td:nth-last-child(2) {
  text-align: right;
  font-weight: 600;
  border-left: 1px solid var(--inv-line);
}

.inv-totals-row td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.inv-totals-emphasis td:nth-last-child(2),
.inv-totals-emphasis td:last-child {
  font-weight: 700;
}

.inv-totals-due td:nth-last-child(2),
.inv-totals-due td:last-child {
  color: var(--inv-olive);
  font-weight: 800;
}

.inv-doc-foot {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.85fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 20px;
}

.inv-doc-foot h4 {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--inv-olive);
}

.inv-doc-foot-col > h4 + h4,
.inv-doc-foot-col > p + h4 {
  margin-top: 14px;
}

.inv-doc-foot p {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: #333333;
}

.inv-doc-foot-center {
  text-align: center;
  padding-top: 8px;
}

.inv-doc-questions {
  font-size: 10px !important;
  letter-spacing: 0.02em;
  margin-bottom: 14px !important;
}

.inv-doc-pay-note {
  font-size: 11px !important;
  font-weight: 700;
  color: var(--inv-ink) !important;
}

.inv-doc-foot-sign {
  text-align: right;
  padding-top: 4px;
}

.inv-doc-signature {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 34px;
  font-weight: 600;
  color: var(--inv-olive);
  line-height: 1;
  margin-bottom: 4px;
}

.inv-doc-sign-line {
  height: 1px;
  background: var(--inv-olive);
  margin: 0 0 6px auto;
  width: 140px;
}

.inv-doc-sign-label {
  font-size: 9px;
  color: #555555;
}

.inv-doc-powered {
  text-align: center;
  font-size: 9px;
  color: var(--inv-olive);
  letter-spacing: 0.04em;
  padding-top: 8px;
}

.inv-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  text-align: left;
}

.inv-preview-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.invoice-preview-trigger:hover,
.inv-preview-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.invoice-preview-trigger {
  cursor: pointer;
}

.pd-invoice-top .inv-preview-link {
  font-size: 13px;
}

@media (max-width: 640px) {
  .inv-preview-backdrop {
    padding: 12px;
  }

  .inv-doc {
    width: 100%;
    min-height: 0;
    padding: 28px 18px;
  }

  .inv-doc-head,
  .inv-doc-parties,
  .inv-doc-foot {
    display: block;
  }

  .inv-doc-title {
    font-size: 40px;
  }

  .inv-doc-head-right {
    text-align: left;
    margin-top: 18px;
  }

  .inv-doc-party {
    margin-bottom: 16px;
  }

  .inv-doc-foot-col {
    margin-bottom: 18px;
  }

  .inv-doc-foot-center,
  .inv-doc-foot-sign {
    text-align: left;
  }

  .inv-doc-sign-line {
    margin-left: 0;
  }

  .inv-col-price {
    display: none;
  }
}

@media print {
  body > *:not(.inv-preview-backdrop) {
    display: none !important;
  }

  .inv-preview-backdrop {
    position: static;
    background: none;
    padding: 0;
  }

  .inv-preview-toolbar {
    display: none !important;
  }

  .inv-preview-dialog {
    max-height: none;
    width: 100%;
  }

  .inv-preview-sheet {
    box-shadow: none;
    border: 0;
    max-height: none;
    overflow: visible;
  }

  .inv-doc {
    min-height: 0;
    padding: 0;
  }
}

/* ─── Public repositories pages ─────────────────────────────────────────── */

.gh-repo-list-compact .gh-repo-item {
  padding: 12px 16px;
}

.gh-repo-list-compact .gh-repo-item-desc {
  display: none;
}

.gh-label-public {
  background: #dafbe1;
  color: #1a7f37;
  border-color: rgba(26, 127, 55, 0.2);
}

.gh-label-private {
  background: #fff8c5;
  color: #7d4e00;
  border-color: rgba(125, 78, 0, 0.18);
}

.repo-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.repo-lock-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

body.route-repositories .gh-repo-list-shell {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.gh-repo-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.gh-repo-back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #0969da;
  font-size: 14px;
  font-weight: 600;
}

.gh-repo-detail-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.gh-repo-page {
  min-width: 0;
}

.gh-repo-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #d0d7de;
}

.gh-repo-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: -1px;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  color: #57606a;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.gh-repo-nav a:hover {
  color: #24292f;
  border-bottom-color: #d0d7de;
}

.gh-repo-nav a.active {
  color: #24292f;
  font-weight: 600;
  border-bottom-color: #fd8c73;
}

.gh-repo-nav a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gh-repo-branch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

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

.gh-branch-meta {
  color: #57606a;
  font-size: 12px;
}

.gh-branch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.gh-repo-files-table {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.gh-repo-files-table .gh-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 7px 16px;
  border: 0;
  border-top: 1px solid #d0d7de;
  border-radius: 0;
  background: #ffffff;
  font-size: 14px;
  line-height: 20px;
}

.gh-repo-files-table .gh-file-row:first-child {
  border-top: 0;
}

.gh-repo-files-table .gh-file-row-commit {
  background: #f6f8fa;
}

.gh-repo-files-table .gh-file-row:hover:not(.gh-file-row-commit) {
  background: #f6f8fa;
}

.gh-file-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #0969da;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gh-file-name:hover {
  text-decoration: underline;
}

.gh-file-name svg {
  width: 16px;
  height: 16px;
  fill: #57606a;
  flex-shrink: 0;
}

.gh-file-date {
  color: #57606a;
  font-size: 12px;
  text-align: right;
}

.gh-repo-star-btn {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.gh-repo-star-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

.gh-repo-star-btn.is-starred,
.profile-star-btn.is-active,
.profile-follow-btn.is-active {
  background: #fff8c5;
  border-color: #d4a72c;
  color: #7d4e00;
}

.gh-repo-star-btn.is-starred svg,
.profile-star-btn.is-active svg {
  fill: #e3b341;
  stroke: #e3b341;
}

.profile-follow-btn.is-active {
  background: #ddf4ff;
  border-color: #54aeff;
  color: #0969da;
}

.engagement-count {
  margin-left: 2px;
  padding: 0 6px;
  min-height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.repo-card-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.repo-card-stars svg {
  width: 14px;
  height: 14px;
}

.repo-card-meta .gh-repo-star-btn {
  margin-left: auto;
}

.gh-repo-name-only {
  color: #0969da;
  font-size: 14px;
  font-weight: 600;
}

.gh-repo-detail-layout {
  display: block;
}

.gh-repo-file-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gh-repo-file-link {
  display: block;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0969da;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.gh-repo-file-link:hover {
  background: #f6f8fa;
}

.gh-repo-readme .gh-panel-body {
  padding: 12px 16px;
}

.gh-repo-readme .readme-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #24292f;
}

.gh-repo-readme .readme-title-bar svg {
  width: 14px;
  height: 14px;
}

.gh-repo-readme .markdown-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #1f2328;
  word-wrap: break-word;
}

.gh-repo-readme .markdown-body > :first-child {
  margin-top: 0;
}

.gh-repo-readme .markdown-body > :last-child {
  margin-bottom: 0;
}

.gh-repo-readme .markdown-body h1,
.gh-repo-readme .markdown-body h2,
.gh-repo-readme .markdown-body h3 {
  margin-top: 16px;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: #1f2328;
}

.gh-repo-readme .markdown-body h1:first-child,
.gh-repo-readme .markdown-body h2:first-child,
.gh-repo-readme .markdown-body h3:first-child {
  margin-top: 0;
}

.gh-repo-readme .markdown-body h1 {
  padding-bottom: 0.25em;
  font-size: 1.5em;
  border-bottom: 1px solid #d0d7de;
}

.gh-repo-readme .markdown-body h2 {
  padding-bottom: 0.25em;
  font-size: 1.25em;
  border-bottom: 1px solid #d0d7de;
}

.gh-repo-readme .markdown-body h3 {
  font-size: 1.1em;
}

.gh-repo-readme .markdown-body p {
  margin-top: 0;
  margin-bottom: 10px;
}

.gh-repo-readme .markdown-body ul,
.gh-repo-readme .markdown-body ol {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 1.5em;
}

.gh-repo-readme .markdown-body li {
  margin-top: 0.15em;
}

.gh-repo-readme .markdown-body li + li {
  margin-top: 0.15em;
}

.gh-repo-readme .markdown-body strong {
  font-weight: 600;
}

.gh-repo-readme .markdown-body code {
  padding: 0.15em 0.35em;
  margin: 0;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  background-color: rgba(175, 184, 193, 0.2);
  border-radius: 4px;
}

.gh-repo-readme .markdown-body pre {
  overflow: auto;
  margin-bottom: 10px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.4;
  background-color: #f6f8fa;
  border-radius: 6px;
}

.gh-repo-readme .markdown-body blockquote {
  margin: 0 0 10px;
  padding: 0 0.85em;
  color: #57606a;
  border-left: 0.2em solid #d0d7de;
}

.gh-repo-readme .markdown-body blockquote > :last-child {
  margin-bottom: 0;
}

.gh-repo-readme-block {
  margin-top: 16px;
}

.gh-repo-file-viewer pre {
  margin: 0;
  overflow: auto;
  font-size: 13px;
  line-height: 1.5;
}

.gh-repo-locked-panel {
  max-width: 540px;
  margin: 48px auto;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #ffffff;
}

.gh-repo-locked-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: #57606a;
}

.gh-repo-locked-icon svg {
  width: 32px;
  height: 32px;
}

.gh-repo-locked-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #24292f;
  line-height: 1.25;
}

.gh-repo-locked-panel p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #57606a;
}

.gh-repo-locked-panel p:last-of-type {
  margin-bottom: 0;
}

.gh-repo-locked-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.gh-repo-locked-actions .gh-btn {
  margin: 0;
  min-height: 32px;
  padding: 0 16px;
  font-size: 14px;
  text-decoration: none;
}

.gh-repo-locked-panel .gh-repo-slash {
  color: #57606a;
  font-weight: 400;
}

.repo-files-panel {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .gh-branch-actions {
    width: 100%;
    margin-left: 0;
  }

  .gh-repo-files-table .gh-file-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .gh-file-date {
    text-align: left;
  }
}

/* Lucide icons in repository UI */
.gh-repo-page svg.lucide-icon,
.gh-file-icon svg.lucide-icon,
.gh-go-to-file-item svg.lucide-icon,
.gh-code-menu svg.lucide-icon,
.gh-blob-action svg.lucide-icon,
.gh-branch-btn svg.lucide-icon,
.gh-branch-link svg.lucide-icon,
.gh-file-commit-icon svg.lucide-icon,
.gh-repo-nav svg.lucide-icon,
.gh-repo-star-btn svg.lucide-icon,
.repo-lock-badge svg.lucide-icon,
.gh-repo-locked-icon svg.lucide-icon {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gh-btn svg.lucide-icon {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  width: 16px;
  height: 16px;
}

.gh-btn-primary svg.lucide-icon {
  stroke: #ffffff !important;
}

.gh-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gh-file-icon-dir {
  color: #54aeff !important;
}

.gh-file-icon-dir svg.lucide-icon {
  stroke: #54aeff !important;
}

.gh-repo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  font-size: 20px;
  line-height: 1.35;
}

.gh-repo-breadcrumb a {
  color: #0969da;
  font-weight: 600;
  text-decoration: none;
}

.gh-repo-breadcrumb a:hover {
  text-decoration: underline;
}

.gh-repo-breadcrumb-sep {
  color: #57606a;
  font-weight: 400;
  user-select: none;
}

.gh-repo-breadcrumb-current {
  color: #24292f;
  font-weight: 600;
}

.gh-repo-pathbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-bottom: 1px solid #d0d7de;
  background: #f6f8fa;
  font-size: 14px;
  line-height: 1.4;
}

.gh-repo-pathbar a {
  color: #0969da;
  font-weight: 600;
  text-decoration: none;
}

.gh-repo-pathbar a:hover {
  text-decoration: underline;
}

.gh-repo-pathbar-sep {
  color: #57606a;
  font-weight: 400;
}

.gh-branch-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.gh-branch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0969da;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.gh-branch-link:hover {
  text-decoration: underline;
}

.gh-branch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(27, 31, 36, 0.15);
  border-radius: 6px;
  background: #ffffff;
  color: #24292f;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

.gh-branch-btn span {
  line-height: 1;
}

.gh-repo-branch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gh-repo-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gh-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gh-go-to-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gh-blob-box {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.gh-blob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-bottom: 1px solid #d0d7de;
  background: #f6f8fa;
}

.gh-blob-header-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  flex: 1;
  font-size: 14px;
}

.gh-blob-header-path strong {
  color: #24292f;
  font-weight: 600;
}

.gh-blob-meta {
  color: #57606a;
  font-size: 12px;
  font-weight: 400;
}

.gh-blob-header-path .gh-repo-pathbar {
  padding: 0;
  border: 0;
  background: transparent;
}

.gh-blob-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gh-blob-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(27, 31, 36, 0.15);
  border-radius: 6px;
  background: #f6f8fa;
  color: #24292f;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.gh-blob-action:hover:not(:disabled) {
  background: #eef1f4;
  border-color: rgba(27, 31, 36, 0.15);
}

.gh-blob-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gh-blob-action svg.octicon {
  width: 14px;
  height: 14px;
}

.gh-blob-viewer {
  border: 0;
  border-radius: 0;
  overflow: auto;
  background: #ffffff;
}

.gh-file-commit-icon {
  display: inline-flex;
  align-items: center;
}

.gh-code-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gh-code-menu button span,
.gh-go-to-file-btn span,
.gh-code-btn span {
  line-height: 1.2;
}

.gh-file-commit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #57606a;
  font-size: 13px;
}

.gh-file-commit strong {
  color: #24292f;
}

.gh-file-dir span:last-child {
  font-weight: 600;
}

.gh-code-dropdown {
  position: relative;
}

.gh-code-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 8px 0;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
}

.gh-code-menu button {
  width: 100%;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: #24292f;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.gh-code-menu button:hover {
  background: #f6f8fa;
}

.gh-go-to-file-wrap {
  position: relative;
}

.gh-go-to-file-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: min(320px, 80vw);
  padding: 8px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
}

.gh-go-to-file-panel input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 14px;
}

.gh-go-to-file-list {
  margin-top: 8px;
  max-height: 240px;
  overflow: auto;
}

.gh-go-to-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0969da;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.gh-go-to-file-item:hover {
  background: #f6f8fa;
}

.blob-num-col {
  width: 50px;
}

.blob-wrapper {
  overflow: auto;
  background: #ffffff;
}

.blob-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 20px;
}

.blob-table tr {
  background: #ffffff;
}

.blob-num {
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  padding: 0 12px 0 8px;
  border-right: 1px solid #d0d7de;
  background: #f6f8fa;
  color: #656d76;
  text-align: right;
  user-select: none;
  vertical-align: top;
  white-space: nowrap;
}

.blob-code {
  width: 100%;
  padding: 0 16px;
  background: #ffffff;
  white-space: pre;
  vertical-align: top;
  border-left: 0;
}

.blob-code-inner {
  display: block;
  padding: 0;
  line-height: 20px;
}

.blob-code-inner .hljs,
.blob-code .hljs {
  display: inline;
  padding: 0;
  background: transparent;
  color: inherit;
}

.gh-blob-viewer .blob-wrapper {
  border-radius: 0;
}

.gh-blob-viewer .hljs {
  background: transparent;
  padding: 0;
}
