/*
 * GoreeCloud Code site-wide workspace, Iris edition.
 * Forgejo 16.0.6 runtime-only visual layer; upstream sources stay untouched.
 * Every layout rule is gated by gc-workspace-active, set only after native
 * authenticated navigation is available (and after Vue mounts on Dashboard).
 */

:root {
  --gcw-sidebar-width: 268px;
  --gcw-header-height: 63px;
  --gcw-bg: #eef3fe;
  --gcw-surface: #ffffff;
  --gcw-subtle: #f6f8ff;
  --gcw-ink: #142345;
  --gcw-muted: #657798;
  --gcw-edge: #dce4f4;
  --gcw-iris: #4d4ee5;
  --gcw-iris-dark: #3c3fd1;
  --gcw-iris-soft: #eff0ff;
  --gcw-sidebar: #132543;
  --gcw-sidebar-end: #192e53;
  --gcw-shadow: 0 11px 32px rgba(27, 45, 85, .075), 0 2px 8px rgba(33, 56, 109, .03);
}

:root[data-theme*="dark"] {
  --gcw-bg: #0c1427;
  --gcw-surface: #16233b;
  --gcw-subtle: #1c2a46;
  --gcw-ink: #f2f5ff;
  --gcw-muted: #b6c4dd;
  --gcw-edge: #354563;
  --gcw-iris: #9b9fff;
  --gcw-iris-dark: #7d83ff;
  --gcw-iris-soft: #253259;
  --gcw-sidebar: #0d172d;
  --gcw-sidebar-end: #142746;
  --gcw-shadow: 0 16px 40px rgba(0, 0, 0, .24);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme$="-auto"] {
    --gcw-bg: #0c1427;
    --gcw-surface: #16233b;
    --gcw-subtle: #1c2a46;
    --gcw-ink: #f2f5ff;
    --gcw-muted: #b6c4dd;
    --gcw-edge: #354563;
    --gcw-iris: #9b9fff;
    --gcw-iris-dark: #7d83ff;
    --gcw-iris-soft: #253259;
    --gcw-sidebar: #0d172d;
    --gcw-sidebar-end: #142746;
    --gcw-shadow: 0 16px 40px rgba(0, 0, 0, .24);
  }
}

.gc-workspace-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gc-workspace-active body {
  background: radial-gradient(circle at 54% 2%, color-mix(in srgb, var(--gcw-iris) 5%, transparent), transparent 45%), var(--gcw-bg);
  color: var(--gcw-ink);
}

/* Native Forgejo account controls remain in the real top navigation. */
.gc-workspace-active #navbar {
  position: fixed;
  z-index: 65;
  top: 0;
  left: var(--gcw-sidebar-width);
  right: 0;
  height: var(--gcw-header-height);
  min-height: var(--gcw-header-height);
  padding: 0 24px 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gcw-surface) !important;
  border-bottom: 1px solid var(--gcw-edge);
  box-shadow: 0 2px 12px rgba(16, 34, 71, .025);
}

.gc-workspace-active #navbar .navbar-left {
  display: none !important;
}

.gc-workspace-topbar {
  min-width: 0;
  display: flex;
  flex: 1;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  justify-content: space-between;
}

.gc-workspace-breadcrumb {
  display: flex;
  align-items: center;
  min-width: fit-content;
  gap: 12px;
  color: var(--gcw-muted);
  font-size: .96rem;
}

.gc-workspace-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gcw-muted);
}

.gc-workspace-breadcrumb a:hover {
  color: var(--gcw-iris);
}

.gc-workspace-breadcrumb strong {
  font-weight: 710;
  color: var(--gcw-ink);
}

.gc-workspace-global-search {
  display: flex;
  align-items: center;
  min-width: 170px;
  max-width: 390px;
  width: min(36vw, 390px);
  height: 44px;
  padding: 0 8px 0 11px;
  background: var(--gcw-subtle);
  border: 1px solid var(--gcw-edge);
  border-radius: 11px;
  transition: border-color .14s, box-shadow .14s;
}

.gc-workspace-global-search:focus-within {
  border-color: var(--gcw-iris);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gcw-iris) 15%, transparent);
}

.gc-workspace-global-search button {
  border: 0;
  background: none;
  color: var(--gcw-muted);
  height: 32px;
  min-width: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.gc-workspace-global-search input {
  min-width: 0;
  width: 100%;
  height: 39px;
  padding: 0 4px;
  color: var(--gcw-ink);
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.gc-workspace-global-search input::placeholder {
  color: var(--gcw-muted);
}

.gc-workspace-global-search kbd {
  white-space: nowrap;
  font-size: .77rem;
  line-height: 1.6;
  border: 1px solid var(--gcw-edge);
  border-radius: 6px;
  color: var(--gcw-muted);
  background: var(--gcw-surface);
  padding: 0 6px;
}

.gc-workspace-active #navbar .navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-left: auto;
}

.gc-workspace-active #navbar .navbar-right > .item,
.gc-workspace-active #navbar .navbar-right details.dropdown > summary {
  color: var(--gcw-ink) !important;
  border-radius: 10px !important;
  margin: 0 !important;
  min-width: 38px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s;
}

.gc-workspace-active #navbar .navbar-right > .item:hover,
.gc-workspace-active #navbar .navbar-right details.dropdown > summary:hover {
  background: var(--gcw-iris-soft) !important;
}

.gc-workspace-active #navbar .navbar-right details.dropdown:has(> summary[aria-label="Create…"]) > summary {
  min-width: 67px;
  padding: 0 12px;
  color: var(--gcw-iris) !important;
  background: var(--gcw-iris-soft);
  border: 1px solid color-mix(in srgb, var(--gcw-iris) 27%, var(--gcw-edge));
}

.gc-workspace-active #navbar .navbar-right .gc-workspace-account > summary {
  gap: 8px;
  padding: 2px 6px !important;
}

.gc-workspace-active #navbar .navbar-right .gc-workspace-account > summary > img {
  display: none !important;
}

.gc-workspace-active #navbar .navbar-right details.dropdown > .content {
  min-width: 235px;
  border: 1px solid var(--gcw-edge);
  border-radius: 15px;
  background: var(--gcw-surface);
  color: var(--gcw-ink);
  box-shadow: 0 18px 48px rgba(13, 28, 63, .20);
  overflow: hidden;
}

.gc-workspace-active #navbar .navbar-right details.dropdown > .content .header {
  color: var(--gcw-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.gc-workspace-active #navbar .navbar-right details.dropdown > .content li a {
  padding: 10px 14px;
  color: var(--gcw-ink);
}

.gc-workspace-active #navbar .navbar-right details.dropdown > .content li a:hover {
  color: var(--gcw-iris);
  background: var(--gcw-iris-soft);
}

.gc-workspace-avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e5e5ff, #bdc7ff);
  color: #232d85;
  font-size: 1.24rem;
  font-weight: 790;
}

.gc-workspace-top-avatar {
  width: 29px;
  height: 29px;
  font-size: .93rem;
}

.gc-workspace-menu-avatar {
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
}

/* Persistent development navigation, including Forgejo's native context menu. */
.gc-workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--gcw-sidebar-width);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #edf3ff;
  background: linear-gradient(162deg, var(--gcw-sidebar), var(--gcw-sidebar-end));
  border-right: 1px solid rgba(206, 219, 255, .13);
  box-shadow: 8px 0 28px rgba(12, 26, 52, .08);
  padding: 0 16px 14px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.gc-workspace-logo {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--gcw-header-height);
  padding: 0 14px;
  margin: 0 -16px 18px;
  font-size: 1.19rem;
  font-weight: 760;
  border-bottom: 1px solid rgba(214, 230, 255, .13);
  white-space: nowrap;
}

.gc-workspace-logo:hover {
  color: #ffffff;
}

.gc-workspace-logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  filter: none;
}

.gc-workspace-switcher {
  margin: 0 0 16px;
}

.gc-workspace-switcher > .ui.floating.dropdown.jump,
.gc-workspace-switcher > a {
  position: relative;
  display: block;
  width: 100%;
  padding: 13px 11px;
  border: 1px solid rgba(204, 218, 255, .22);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: #e4edff;
}

.gc-workspace-switcher > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.gc-workspace-switcher > a .gc-workspace-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: .9rem;
}

.gc-workspace-switcher > a > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .89rem;
}

.gc-workspace-switcher .truncated-item-container {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.gc-workspace-switcher .truncated-item-name {
  color: #eaf1ff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .89rem;
}

.gc-workspace-switcher .ui.avatar {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #d1d8ff;
}

.gc-workspace-switcher .ui.dropdown .menu {
  color: var(--gcw-ink);
  border-radius: 12px !important;
  min-width: 232px;
  z-index: 75;
  background: var(--gcw-surface) !important;
}

/* The dashboard context selector lives in the navy sidebar, but its native
 * floating menu must reset the inherited light-on-dark text treatment. */
.gc-workspace-switcher .ui.dropdown .menu .item,
.gc-workspace-switcher .ui.dropdown .menu .item .text,
.gc-workspace-switcher .ui.dropdown .menu .item .truncated-item-name {
  color: var(--gcw-ink) !important;
  opacity: 1 !important;
}

.gc-workspace-switcher .ui.dropdown .menu .item:hover,
.gc-workspace-switcher .ui.dropdown .menu .item.selected,
.gc-workspace-switcher .ui.dropdown .menu .item.active {
  background: var(--gcw-iris-soft) !important;
  color: var(--gcw-iris) !important;
}

.gc-workspace-switcher .ui.dropdown .menu .header,
.gc-workspace-switcher .ui.dropdown .menu .divider {
  color: var(--gcw-muted) !important;
  border-color: var(--gcw-edge) !important;
}

.gc-workspace-side-nav,
.gc-workspace-side-bottom {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gc-workspace-side-bottom {
  margin-top: auto;
  border-top: 1px solid rgba(214, 230, 255, .2);
  padding-top: 18px;
}

.gc-workspace-side-link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  padding: 10px 14px;
  color: #d4e0f7;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 530;
  transition: background-color .15s, color .15s;
}

.gc-workspace-side-link:hover,
.gc-workspace-side-link:focus-visible {
  color: #ffffff;
  background: rgba(223, 231, 255, .12);
}

.gc-workspace-side-link.is-active {
  color: #ffffff;
  font-weight: 690;
  background: linear-gradient(130deg, #4855e7, #4a42e3);
  box-shadow: 0 7px 18px rgba(22, 24, 84, .22);
}

.gc-workspace-side-link svg {
  flex: none;
}

.gc-workspace-menu-toggle,
.gc-workspace-scrim {
  display: none;
}

/* Two-column cards, each driven by Forgejo's existing state. */
.gc-workspace-active .page-content.dashboard.feeds {
  margin-left: var(--gcw-sidebar-width);
  padding-top: var(--gcw-header-height);
  background: transparent;
  min-height: calc(100vh - 33px);
}

.gc-workspace-active .page-content.dashboard.feeds > .secondary-nav {
  display: none !important;
}

.gc-workspace-active .page-content.dashboard.feeds > .ui.container.flex-container {
  display: block !important;
  width: auto;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: clamp(26px, 3vw, 42px) clamp(22px, 2.7vw, 44px) 38px !important;
}

.gc-workspace-shell {
  width: 100%;
}

.gc-workspace-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.gc-workspace-intro h1 {
  color: var(--gcw-ink);
  font-size: clamp(1.85rem, 2.5vw, 2.5rem);
  line-height: 1.17;
  letter-spacing: -.045em;
  font-weight: 760;
  margin: 0 0 7px;
}

.gc-workspace-intro p {
  color: var(--gcw-muted);
  font-size: clamp(.94rem, 1.15vw, 1.07rem);
  line-height: 1.5;
  margin: 0;
}

.gc-workspace-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 670;
  font-size: .95rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: filter .15s, background-color .15s, transform .15s;
}

.gc-workspace-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.gc-workspace-button-primary {
  background: linear-gradient(115deg, #5154ec, #403fdf);
  color: #ffffff !important;
  box-shadow: 0 5px 15px rgba(64, 63, 223, .18);
}

.gc-workspace-button-outline {
  color: var(--gcw-iris) !important;
  border-color: color-mix(in srgb, var(--gcw-iris) 52%, transparent);
  background: var(--gcw-surface);
}

.gc-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  align-items: start;
  gap: 20px;
}

.gc-workspace-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.gc-workspace-card {
  background: var(--gcw-surface);
  border: 1px solid var(--gcw-edge);
  border-radius: 18px;
  box-shadow: var(--gcw-shadow);
  padding: clamp(16px, 1.6vw, 24px);
  min-width: 0;
}

.gc-workspace-card-heading {
  margin: 0 0 19px;
  color: var(--gcw-ink);
  font-size: 1.15rem;
  font-weight: 740;
  letter-spacing: -.02em;
}

.gc-workspace-onboarding {
  padding: 20px;
}

.gc-workspace-hero-inner {
  min-height: 344px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 14px;
  border-radius: 16px;
  background: radial-gradient(ellipse at 48% 19%, color-mix(in srgb, var(--gcw-iris) 8%, transparent), transparent 59%), var(--gcw-subtle);
}

.gc-workspace-hero-art {
  position: relative;
  margin-bottom: 4px;
  color: #7374ec;
}

.gc-workspace-hero-art img {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin-inline: auto;
}

.gc-workspace-hero-inner h2 {
  color: var(--gcw-ink);
  margin: 4px 0 9px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.gc-workspace-hero-inner p {
  color: var(--gcw-muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.gc-workspace-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.gc-workspace-activity {
  min-height: 280px;
}

.gc-workspace-active .page-content.dashboard .gc-workspace-activity .flex-container-main {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.gc-workspace-active .page-content.dashboard .gc-workspace-activity #empty-feed {
  margin: 0 auto;
  padding: 22px 12px 9px !important;
  max-width: 580px;
  background: none;
  border: none;
  border-radius: 0;
}

.gc-workspace-active .page-content.dashboard .gc-workspace-activity #empty-feed > svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--gcw-subtle);
  color: var(--gcw-muted) !important;
}

.gc-workspace-active .page-content.dashboard .gc-workspace-activity #empty-feed h2 {
  margin: 13px 0 5px;
  font-size: 1.15rem;
  font-weight: 720;
  color: var(--gcw-ink);
}

.gc-workspace-active .page-content.dashboard .gc-workspace-activity #empty-feed .help {
  margin: 0 auto 11px;
  max-width: 43ch;
  line-height: 1.5;
  color: var(--gcw-muted);
}

.gc-workspace-active .page-content.dashboard .gc-workspace-activity #empty-feed a {
  color: var(--gcw-iris);
  font-weight: 650;
}

.gc-workspace-info {
  min-height: 260px;
}

.gc-workspace-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 5px 0 25px;
  min-width: 0;
}

.gc-workspace-identity strong {
  min-width: 0;
  color: var(--gcw-ink);
  font-size: 1.1rem;
  font-weight: 740;
  overflow-wrap: anywhere;
}

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

.gc-workspace-stat {
  min-height: 85px;
  padding: 15px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gcw-subtle);
  border-radius: 12px;
  color: var(--gcw-ink);
}

.gc-workspace-stat > svg {
  color: var(--gcw-ink);
  flex: none;
}

.gc-workspace-stat-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gc-workspace-stat-label {
  color: var(--gcw-muted);
  font-size: .75rem;
}

.gc-workspace-stat-value {
  color: var(--gcw-ink);
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 760;
}

.gc-workspace-repositories {
  min-height: 442px;
  padding-bottom: 10px;
}

.gc-workspace-active .page-content.dashboard .gc-workspace-repositories #dashboard-repo-list {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.gc-workspace-repositories #dashboard-repo-list .tabs-with-labels {
  margin-bottom: 12px;
  padding: 0;
  gap: 5px;
  border: 0;
}

.gc-workspace-repositories #dashboard-repo-list .tabs-with-labels > .item {
  border: 1px solid transparent;
  border-radius: 9px !important;
  padding: 8px 11px;
  font-weight: 650;
  color: var(--gcw-muted);
  margin: 0 !important;
}

.gc-workspace-repositories #dashboard-repo-list .tabs-with-labels > .item.active {
  color: var(--gcw-iris) !important;
  background: var(--gcw-iris-soft) !important;
  border-color: var(--gcw-edge);
}

.gc-workspace-repositories #dashboard-repo-list .repos-search {
  padding: 0 !important;
  background: transparent;
  border: 0;
}

.gc-workspace-repositories #dashboard-repo-list .repos-search .ui.input {
  min-height: 43px;
}

.gc-workspace-repositories #dashboard-repo-list .repos-search input {
  background: var(--gcw-surface);
  border: 1px solid var(--gcw-edge);
  color: var(--gcw-ink);
}

.gc-workspace-repositories #dashboard-repo-list .repos-filter {
  border-bottom: 1px solid var(--gcw-edge);
  margin-top: 9px;
}

.gc-workspace-repositories #dashboard-repo-list .repos-filter .item.active {
  color: var(--gcw-iris) !important;
  border-color: var(--gcw-iris) !important;
}

.gc-workspace-repository-empty {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 210px;
  padding: 28px 12px 34px;
}

.gc-workspace-repository-empty[hidden] {
  display: none !important;
}

.gc-workspace-empty-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--gcw-subtle);
  color: var(--gcw-muted);
}

.gc-workspace-repository-empty h3 {
  color: var(--gcw-ink);
  font-size: 1.15rem;
  font-weight: 740;
  margin: 17px 0 4px;
}

.gc-workspace-repository-empty p {
  color: var(--gcw-muted);
  margin: 0;
  line-height: 1.5;
}

/* A single workspace shell for every other authenticated Forgejo page.
 * Preserve the actual repository tab bar, issue search/filter forms, account
 * and administration tools, and native content in their existing DOM order. */
.gc-workspace-active .page-content:not(.feeds) {
  margin-left: var(--gcw-sidebar-width);
  padding-top: var(--gcw-header-height);
  min-height: calc(100vh - 32px);
  color: var(--gcw-ink);
  background: transparent;
}

.gc-workspace-active .page-content:not(.feeds) > .secondary-nav {
  margin: 0;
  padding-inline: clamp(14px, 2.4vw, 36px);
  background: var(--gcw-surface);
  border-bottom: 1px solid var(--gcw-edge);
  box-shadow: 0 2px 9px rgba(18, 41, 85, .025);
}

.gc-workspace-active .page-content:not(.feeds).gc-workspace-context-moved > .secondary-nav {
  display: none !important;
}

.gc-workspace-active .page-content:not(.feeds) > .ui.container {
  width: calc(100% - clamp(26px, 4.8vw, 72px)) !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding-top: 23px;
  padding-bottom: 40px;
}

.gc-workspace-section-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - clamp(26px, 4.8vw, 72px));
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 38px) 0 22px;
}

.gc-workspace-section-intro h1 {
  margin: 0;
  color: var(--gcw-ink);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.gc-workspace-section-intro p {
  margin: 0;
  color: var(--gcw-muted);
  font-size: .98rem;
}

.gc-workspace-active .page-content.dashboard.issues > .ui.container {
  padding: 22px 23px 38px;
  min-height: 340px;
  border: 1px solid var(--gcw-edge);
  border-radius: 17px;
  background: var(--gcw-surface);
  box-shadow: var(--gcw-shadow);
}

.gc-workspace-active .page-content.dashboard.issues .list-header {
  border-color: var(--gcw-edge);
}

.gc-workspace-active .page-content.dashboard.issues .list-header .ui.input input {
  border-color: var(--gcw-edge);
  border-radius: 11px;
  background: var(--gcw-subtle);
  color: var(--gcw-ink);
}

.gc-workspace-active .page-content.dashboard.issues .list-header-toggle .item.active {
  color: var(--gcw-iris);
  background: var(--gcw-iris-soft);
}

.gc-workspace-active .page-content.dashboard.issues .tw-text-center.tw-p-8 {
  margin: 25px auto 0;
  padding: 50px 20px 70px;
  max-width: 600px;
  color: var(--gcw-muted);
}

.gc-workspace-active .page-content.dashboard.issues .tw-text-center.tw-p-8 h3 {
  color: var(--gcw-ink);
  font-size: 1.35rem;
  font-weight: 740;
}

.gc-workspace-active .page-content.explore > .ui.container {
  padding: 24px;
  margin-top: 23px !important;
  border: 1px solid var(--gcw-edge);
  border-radius: 17px;
  background: var(--gcw-surface);
  box-shadow: var(--gcw-shadow);
}

.gc-workspace-active .page-content.repository:not(.dashboard) > .secondary-nav .repo-header,
.gc-workspace-active .page-content.repository:not(.dashboard) > .secondary-nav .ui.menu {
  max-width: 100%;
}

/* The native repository table can exceed the content column after adding a
 * persistent sidebar. Keep its trailing age/commit columns scrollable without
 * introducing a second horizontal scrollbar on the whole browser window. */
.gc-workspace-active .page-content.repository.file > .ui.container #repo-files-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Native repository pages and profiles should share the same tonal depth as
 * the dashboard without changing their forms, tabs or live data. */
.gc-workspace-active .page-content.user.profile #profile-avatar-card,
.gc-workspace-active .page-content.user.profile .ui.segment,
.gc-workspace-active .page-content.repository .ui.segment,
.gc-workspace-active .page-content.repository .ui.card {
  border: 1px solid var(--gcw-edge);
  border-radius: 16px;
  background: var(--gcw-surface);
  box-shadow: var(--gcw-shadow);
  overflow: hidden;
}

.gc-workspace-active .page-content.user.profile #profile-avatar-card {
  width: 100%;
  margin: 0;
}

.gc-workspace-active .page-content.user.profile #profile-avatar-card #profile-avatar {
  min-height: 190px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at center, var(--gcw-iris-soft), var(--gcw-subtle));
}

.gc-workspace-active .page-content.user.profile #profile-avatar img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 13px;
}

.gc-workspace-active .page-content.user.profile .ui.stackable.grid > .column {
  min-width: 0;
}

.gc-workspace-active .page-content.user.profile .ui.secondary.pointing.menu,
.gc-workspace-active .page-content.user.profile .ui.top.attached.menu {
  border-color: var(--gcw-edge);
}

/* Settings were the last large area still displaying raw gray panels. */
.gc-workspace-active .page-content.user.settings .flex-container-nav .ui.vertical.menu,
.gc-workspace-active .page-content.user.settings .ui.top.attached.header,
.gc-workspace-active .page-content.user.settings .ui.attached.segment {
  background: var(--gcw-surface);
  border-color: var(--gcw-edge);
  color: var(--gcw-ink);
}

.gc-workspace-active .page-content.user.settings .flex-container-nav .ui.vertical.menu {
  border: 1px solid var(--gcw-edge);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--gcw-shadow);
}

.gc-workspace-active .page-content.user.settings .flex-container-nav .ui.vertical.menu .item {
  color: var(--gcw-ink) !important;
  border-color: var(--gcw-edge);
}

.gc-workspace-active .page-content.user.settings .flex-container-nav .ui.vertical.menu .item.active {
  color: var(--gcw-iris) !important;
  background: var(--gcw-iris-soft) !important;
  font-weight: 700;
}

.gc-workspace-active .page-content.user.settings .ui.top.attached.header {
  padding: 18px 20px;
  border-radius: 16px 16px 0 0;
  font-size: 1.12rem;
}

.gc-workspace-active .page-content.user.settings .ui.attached.segment {
  padding: clamp(18px, 2vw, 28px);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--gcw-shadow);
}

.gc-workspace-active .page-content.user.settings .ui.form input:not([type="checkbox"]),
.gc-workspace-active .page-content.user.settings .ui.form textarea,
.gc-workspace-active .page-content.user.settings .ui.selection.dropdown {
  background: var(--gcw-subtle);
  color: var(--gcw-ink);
  border: 1px solid var(--gcw-edge);
  border-radius: 11px;
}

.gc-workspace-active .page-content.user.settings .ui.form .help {
  color: var(--gcw-muted);
}

.gc-workspace-active .page-content.dashboard.milestones > .ui.container > .flex-container {
  gap: 18px;
  align-items: flex-start;
}

.gc-workspace-active .page-content.dashboard.milestones .flex-container-nav .ui.vertical.menu {
  border: 1px solid var(--gcw-edge);
  border-radius: 13px;
  overflow: hidden;
  background: var(--gcw-surface);
  box-shadow: var(--gcw-shadow);
}

.gc-workspace-active .page-content.dashboard.milestones .flex-container-main {
  min-width: 0;
  padding: 20px 22px;
  min-height: 375px;
  border: 1px solid var(--gcw-edge);
  border-radius: 17px;
  background: var(--gcw-surface);
  box-shadow: var(--gcw-shadow);
}

.gc-workspace-milestones-empty {
  min-height: 245px;
  padding: 25px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gc-workspace-milestones-empty img { width: 180px; height: auto; }
.gc-workspace-milestones-empty h2 { margin: 6px 0; font-size: 1.23rem; color: var(--gcw-ink); }
.gc-workspace-milestones-empty p { margin: 0; color: var(--gcw-muted); }

.gc-workspace-active .page-content:not(.feeds) > .secondary-nav a.active {
  color: var(--gcw-iris) !important;
}

.gc-workspace-active footer,
.gc-workspace-active #footer {
  margin-left: var(--gcw-sidebar-width);
  background: var(--gcw-surface);
  border-color: var(--gcw-edge);
}

@media (max-width: 1240px) {
  :root { --gcw-sidebar-width: 242px; }
  .gc-workspace-active #navbar { padding-inline: 16px; }
  .gc-workspace-active .page-content.dashboard.feeds > .ui.container.flex-container { padding-inline: 20px !important; }
  .gc-workspace-grid { gap: 15px; }
  .gc-workspace-column { gap: 15px; }
  .gc-workspace-card { padding: 17px; }
}

@media (max-width: 1080px) {
  .gc-workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .gc-workspace-hero-inner { min-height: 315px; }
  .gc-workspace-info { min-height: 0; }
  .gc-workspace-repositories { min-height: 360px; }
}

@media (max-width: 820px) {
  .gc-workspace-sidebar {
    width: min(290px, 88vw);
    transform: translateX(-102%);
    transition: transform .2s ease;
  }
  .gc-workspace-mobile-open .gc-workspace-sidebar { transform: translateX(0); }
  .gc-workspace-scrim {
    position: fixed;
    inset: 0;
    z-index: 68;
    width: 100vw;
    height: 100dvh;
    border: 0;
    background: rgba(7, 17, 36, .46);
    pointer-events: none;
    opacity: 0;
    display: block;
    transition: opacity .2s;
  }
  .gc-workspace-mobile-open .gc-workspace-scrim { opacity: 1; pointer-events: auto; }
  .gc-workspace-menu-toggle {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--gcw-edge);
    border-radius: 10px;
    background: var(--gcw-surface);
    color: var(--gcw-ink);
    cursor: pointer;
  }
  .gc-workspace-active #navbar { left: 0; }
  .gc-workspace-active .page-content.dashboard.feeds,
  .gc-workspace-active .page-content:not(.feeds) { margin-left: 0; }
  .gc-workspace-active footer, .gc-workspace-active #footer { margin-left: 0; }
}

@media (max-width: 580px) {
  .gc-workspace-active #navbar { padding: 0 12px; gap: 6px; }
  .gc-workspace-topbar { gap: 7px; }
  .gc-workspace-breadcrumb { display: none; }
  .gc-workspace-global-search { width: 100%; min-width: 0; flex: 1; }
  .gc-workspace-global-search kbd { display: none; }
  .gc-workspace-active #navbar .navbar-right { gap: 0; }
  .gc-workspace-active #navbar .navbar-right > .item { min-width: 33px; }
  .gc-workspace-active #navbar .navbar-right details.dropdown:has(> summary[aria-label="Create…"]) > summary { min-width: 36px; padding: 0 6px; }
  .gc-workspace-active #navbar .navbar-right .gc-workspace-account .dropdown-icon { display: none; }
  .gc-workspace-intro { flex-direction: column; align-items: stretch; gap: 15px; }
  .gc-workspace-new-repo { align-self: flex-start; }
  .gc-workspace-active .page-content.dashboard.feeds > .ui.container.flex-container { padding-inline: 13px !important; }
  .gc-workspace-active .page-content:not(.feeds) > .ui.container { width: calc(100% - 26px) !important; }
  .gc-workspace-active .page-content:not(.feeds) > .secondary-nav { padding-inline: 12px; }
  .gc-workspace-section-intro { width: calc(100% - 26px); }
  .gc-workspace-active .page-content.dashboard.issues > .ui.container,
  .gc-workspace-active .page-content.explore > .ui.container { padding: 14px; }
  .gc-workspace-card { padding: 14px; border-radius: 15px; }
  .gc-workspace-hero-inner { padding: 24px 11px; }
  .gc-workspace-hero-actions { width: 100%; }
  .gc-workspace-hero-actions .gc-workspace-button { flex: 1 1 180px; }
  .gc-workspace-stats { gap: 8px; }
  .gc-workspace-stat { padding: 12px 10px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-workspace-sidebar,
  .gc-workspace-scrim,
  .gc-workspace-button,
  .gc-workspace-side-link,
  .gc-workspace-global-search {
    transition: none !important;
  }
  .gc-workspace-button:hover { transform: none; }
}
