:root {
  color-scheme: light;
  font-family: Aptos, Candara, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  --brand-banner-height: 66px;
  --bg: #eef3f9;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --ink: #182638;
  --muted: #5f7184;
  --line: #d5dfeb;
  --line-strong: #adc0d5;
  --brand: #0f4f98;
  --brand-deep: #09396f;
  --brand-soft: #d9e9fb;
  --accent: #e4f0ff;
  --success: #2f7b3e;
  --warn: #a8661d;
  --danger: #a92d23;
  --shadow: 0 18px 42px rgba(23, 53, 88, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body,
#reduced-app {
  min-height: 100%;
  margin: 0;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(180deg, #f6f9fc 0%, var(--bg) 100%);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 66%, rgba(188, 219, 250, 0.34), transparent 18%),
    repeating-radial-gradient(
      circle at 92% 64%,
      transparent 0,
      transparent 16px,
      rgba(175, 210, 243, 0.16) 16px,
      rgba(175, 210, 243, 0.16) 18px
    );
  mask: linear-gradient(90deg, transparent 52%, rgba(0, 0, 0, 0.85) 76%);
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

.reduced-shell {
  min-height: 100vh;
}

.brand-banner {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, #0f4f98 0%, #0b4687 100%);
  box-shadow: 0 10px 24px rgba(12, 49, 91, 0.18);
}

.brand-banner-inner {
  width: min(100%, 1920px);
  min-height: var(--brand-banner-height);
  margin: 0 auto;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 16px;
  color: #fff;
}

.brand-banner-start {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-banner-link {
  display: grid;
  gap: 1px;
  line-height: 1.15;
  text-decoration: none;
  color: inherit;
}

.brand-banner-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.brand-banner-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.brand-banner-link strong {
  font-size: 15px;
  font-weight: 800;
}

.brand-banner-link span {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
}

.brand-banner-title {
  justify-self: center;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.brand-banner-controls {
  justify-self: end;
  width: 320px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
}

.brand-banner-locales {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  justify-self: start;
  transform: translateX(-10px);
}

.brand-banner-locale {
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.brand-banner-locale.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-deep);
}

.brand-banner-login,
.brand-banner-user {
  justify-self: end;
  min-width: 0;
  white-space: nowrap;
}

.brand-banner-login {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.brand-banner-user {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.brand-banner-user strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 700;
}

.brand-banner-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-banner-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.brand-banner-link:hover,
.brand-banner-login:hover,
.brand-banner-action:hover,
.brand-banner-locale:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.brand-banner-pill:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.field-input,
.field-select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.field-input:focus,
.field-select:focus {
  border-color: #4e87cb;
  box-shadow: 0 0 0 4px rgba(124, 170, 226, 0.18);
}

.main-content {
  width: min(1380px, calc(100vw - 34px));
  margin: 0 auto;
  padding: 22px 0 34px;
  display: grid;
  gap: 22px;
  min-width: 0;
}

.login-screen {
  min-height: calc(100vh - var(--brand-banner-height) - 56px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(196, 212, 229, 0.78);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 16px;
}

.login-brand {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.login-panel h1 {
  margin: 0;
  font-size: 26px;
}

.login-panel p {
  margin: -8px 0 2px;
  color: var(--muted);
}

.login-panel .login-cookie-notice {
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(196, 212, 229, 0.9);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.92);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink, #1e293b);
}

.login-panel .cta {
  min-height: 38px;
  padding: 0 14px;
  justify-self: start;
}

.login-panel .icon {
  width: 16px;
  height: 16px;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.field-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.field-label span {
  font-weight: 700;
}

.menu-screen {
  display: grid;
  gap: 22px;
  min-width: 0;
  min-height: 0;
  align-content: start;
  justify-items: stretch;
  width: 100%;
}

.workspace-top-panel,
.workspace-summary-panel {
  background: var(--panel);
  border: 1px solid rgba(196, 212, 229, 0.78);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 18px 20px 20px;
  display: grid;
  gap: 16px;
  width: 100%;
}

.workspace-summary-panel {
  position: sticky;
  top: calc(var(--brand-banner-height) + 8px);
  z-index: 110;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
}

.workspace-top-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.workspace-top-title {
  min-width: 0;
}

.workspace-top-title h1 {
  margin: 0;
  font-size: 26px;
}

.workspace-top-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.workspace-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.workspace-summary-card {
  min-width: 0;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #edf5fe);
  padding: 12px 14px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.workspace-summary-card-selector {
  position: relative;
  overflow: visible;
  align-content: stretch;
  padding: 0;
  border: 0;
  background: transparent;
}

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

.workspace-summary-card strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.workspace-summary-card-delivery {
  grid-column: span 2;
  min-height: 104px;
}

.workspace-summary-card-spare {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.55), rgba(237, 245, 254, 0.4));
  border-style: dashed;
  border-color: #c9d8e8;
}

.workspace-summary-card-language {
  align-content: start;
  gap: 8px;
  min-height: 104px;
}

.summary-language-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.summary-language-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 24px;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid #d5e2ef;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  user-select: none;
}

.summary-language-item:has(.summary-language-input:disabled) {
  cursor: default;
  opacity: 0.72;
}

.summary-language-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.summary-language-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(15, 40, 70, 0.18);
  background: #fff;
  color: #25486d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.summary-language-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 12px;
  margin: 0;
  padding: 0;
  border-radius: 2px;
  border: 1px solid rgba(15, 40, 70, 0.18);
  background: #fff;
  color: #25486d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.summary-language-code:focus {
  outline: none;
  border-color: #2f6fad;
  box-shadow: 0 0 0 1px rgba(47, 111, 173, 0.25);
}

.summary-language-code:disabled {
  opacity: 0.85;
}

.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;
}

.summary-language-item.is-active {
  border-color: #9fbde0;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(47, 111, 173, 0.08);
}

.summary-language-flag {
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(15, 40, 70, 0.12);
}

.summary-language-check {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 1px solid #8aa4bd;
  border-radius: 2px;
  background: #fff;
  flex: 0 0 auto;
}

.summary-language-item.is-active .summary-language-check {
  border-color: #2f6fad;
  background: #2f6fad;
}

.summary-language-item.is-active .summary-language-check::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 3px;
  height: 6px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.summary-language-item strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #25486d;
}

.summary-language-empty,
.summary-process-empty {
  color: #9aa8b8;
  font-weight: 600;
}

.workspace-summary-card-process {
  padding: 8px;
  align-content: stretch;
  min-height: 104px;
}

.workspace-summary-card-process .summary-process-job {
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 6px 8px;
}

.workspace-summary-card-process .summary-process-job:hover {
  background: rgba(255, 255, 255, 0.72);
}

.project-overview-panel {
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: min(56vh, 560px);
}

.overview-window {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: none;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(183, 203, 226, 0.9);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 49, 82, 0.06);
  overflow: hidden;
}

.overview-config-window {
  grid-template-rows: minmax(0, 1fr);
}

.overview-config-split {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.overview-config-split.is-document-collapsed {
  grid-template-rows: minmax(0, 1fr) auto;
}

.overview-config-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.overview-config-pane.is-collapsed {
  grid-template-rows: auto;
}

.overview-config-pane + .overview-config-pane {
  border-top: 1px solid #a9c4df;
}

.overview-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(180deg, #d7e8f8 0%, #c5daf0 100%);
  border-bottom: 1px solid #a9c4df;
  padding: 8px 12px;
  min-width: 0;
}

button.overview-config-pane-toggle {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #a9c4df;
  border-radius: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

button.overview-config-pane-toggle:hover {
  background: linear-gradient(180deg, #cfe2f5 0%, #b9d2ec 100%);
}

button.overview-config-pane-toggle:focus-visible {
  outline: 2px solid #3b6ea5;
  outline-offset: -2px;
}

.overview-config-pane.is-collapsed > .overview-config-pane-toggle {
  border-bottom: 0;
}

.overview-pane-chevron {
  flex: 0 0 auto;
  color: #3b5f86;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.overview-window-head strong {
  display: block;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: #163152;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-explorer-delete {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #8a3b3b;
  cursor: pointer;
}

.overview-explorer-delete:not(:disabled):hover {
  background: #f7e8e8;
  border-color: #e0b4b4;
}

.overview-explorer-delete:disabled {
  opacity: 0.35;
  cursor: default;
}

.overview-explorer-delete .icon {
  width: 14px;
  height: 14px;
}

.overview-window-body {
  min-height: 0;
  overflow: auto;
  background: #fff;
}

.overview-empty {
  min-height: 100%;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.overview-descriptor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.overview-descriptor-table th,
.overview-descriptor-table td {
  border-bottom: 1px solid #e4edf6;
  padding: 5px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.overview-descriptor-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef5fc;
  color: #355574;
  font-weight: 700;
}

.overview-descriptor-table tr.is-section td {
  background: #d7e8f8;
  font-weight: 600;
  color: #163152;
}

.overview-file-list,
.overview-generate-tree,
.overview-generate-children,
.overview-explorer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.overview-file-list li {
  padding: 4px 10px;
  border-bottom: 1px solid #eef3f8;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-explorer-window {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.overview-explorer-toolbar {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #d7e4f1;
  background: #f5f9ff;
  min-width: 0;
}

.overview-explorer-up {
  width: 28px;
  height: 28px;
  border: 1px solid #9fbde0;
  border-radius: 6px;
  background: #fff;
  color: #163152;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.overview-explorer-up:disabled {
  opacity: 0.4;
  cursor: default;
}

.overview-explorer-up:not(:disabled):hover {
  background: #eaf2fb;
}

.overview-explorer-crumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  color: #355574;
}

.overview-explorer-crumb {
  border: 0;
  background: transparent;
  color: #0f4f98;
  font: inherit;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-explorer-crumb.is-current {
  color: #163152;
  font-weight: 600;
  cursor: default;
}

.overview-explorer-crumb:not(.is-current):hover {
  text-decoration: underline;
}

.overview-explorer-crumb-sep {
  color: #8aa4bf;
  flex: 0 0 auto;
}

.overview-explorer-list li {
  border-bottom: 1px solid #eef3f8;
}

.overview-explorer-entry {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 5px 10px;
  text-align: left;
  font: inherit;
  font-size: 12px;
  color: #163152;
  cursor: pointer;
}

.overview-explorer-entry:hover {
  background: #eef5fc;
}

.overview-explorer-entry.is-selected {
  background: #d7e8f8;
}

.overview-explorer-entry.is-selected:hover {
  background: #c9dff4;
}

.overview-explorer-entry .icon {
  width: 14px;
  height: 14px;
  color: #4f7296;
}

.overview-explorer-entry.is-folder .icon {
  color: #0f4f98;
}

.overview-explorer-entry.is-artifacts .icon,
.overview-explorer-entry.is-artifact .icon {
  color: #1f6b4a;
}

.overview-explorer-entry span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-generate-tree {
  padding: 6px 4px 10px;
}

.overview-generate-node {
  min-width: 0;
}

.overview-generate-node.is-selected > .overview-generate-row .overview-generate-select,
.overview-generate-node.is-ancestor-selected > .overview-generate-row .overview-generate-label {
  font-weight: 700;
  color: #0d3a6e;
}

.overview-generate-select {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 12px;
  color: #163152;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
}

.overview-generate-select:hover {
  color: #0f4f98;
  text-decoration: underline;
}

.overview-generate-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  padding: 2px 6px;
  font-size: 12px;
}

.overview-generate-toggle {
  width: 18px;
  height: 18px;
  border: 1px solid #9fbde0;
  border-radius: 3px;
  background: #f5f9ff;
  color: #163152;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.overview-generate-leaf {
  width: 18px;
  height: 18px;
}

.overview-generate-label {
  overflow-wrap: anywhere;
}

.overview-generate-children {
  margin-left: 14px;
  border-left: 1px dotted #c5daf0;
  padding-left: 4px;
}

.service-card,
.workspace-panel,
.activity-panel,
.action-panel,
.modal-card,
.project-list-card {
  background: var(--panel);
  border: 1px solid rgba(196, 212, 229, 0.78);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.workspace-summary-card.is-empty strong {
  color: #9aa8b8;
  font-weight: 600;
}

.workspace-summary-card-report {
  align-content: start;
  background: #fff;
  border-color: #d7dee8;
}

.workspace-summary-card-report .import-report-lines {
  color: #9b1c1c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-2px);
  border-color: #9ac0e6;
}

.service-card.active {
  border-color: #6a9fd4;
  box-shadow: 0 24px 44px rgba(17, 61, 110, 0.18);
}

.service-card.is-disabled,
.service-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.service-card-actions {
  cursor: default;
}

.service-card-split {
  cursor: default;
}

.service-card-actions .service-visual {
  align-items: center;
  padding-bottom: 118px;
}

.service-visual {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  align-items: start;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.service-visual.import {
  background-color: #6ca5db;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.38), transparent 26%),
    linear-gradient(135deg, #7ab3eb, #245e9b);
}

.service-visual.documents {
  background-color: #30588f;
  background-image:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(135deg, #577fbd, #17335a);
}

.service-visual.translation {
  background-color: #65956a;
  background-image:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.2), transparent 25%),
    linear-gradient(135deg, #8fbd84, #39654f);
}

.service-visual.translation-import {
  background-color: #3f7f9c;
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #6db3c9, #245870);
}

.service-visual.stylesheets {
  background-color: #4d6d8c;
  background-image:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #7f9eb8, #2f4d66);
}

.service-visual.modules {
  background-color: #8d6f3f;
  background-image:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #d5b370, #6e5329);
}

.service-visual.quality {
  background-color: #7a5d91;
  background-image:
    radial-gradient(circle at 64% 24%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #b598db, #5f4779);
}

.stylesheets-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stylesheets-modal-icon {
  width: 36px;
  height: 36px;
}

.stylesheets-table-wrap {
  overflow: auto;
  border: 1px solid rgba(20, 40, 70, 0.12);
  border-radius: 12px;
}

.stylesheets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.stylesheets-table th,
.stylesheets-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 40, 70, 0.08);
}

.stylesheets-table th {
  background: rgba(15, 40, 70, 0.04);
  font-weight: 600;
}

.stylesheets-table tbody tr {
  cursor: pointer;
}

.stylesheets-table tbody tr:hover {
  background: rgba(15, 79, 152, 0.06);
}

.stylesheets-table tbody tr.selected {
  background: rgba(15, 79, 152, 0.12);
}

.stylesheets-modal-footer {
  flex-wrap: wrap;
  gap: 8px;
}

.service-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.service-badge-action {
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.service-badge-action:hover,
.service-badge-action:focus-visible {
  transform: translateY(-1px) scale(1.04);
  background: #fff;
  box-shadow: 0 10px 20px rgba(16, 42, 74, 0.22);
}

.service-badge-action:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.service-badge img {
  max-width: 28px;
  max-height: 28px;
}

.service-body {
  position: absolute;
  inset: auto 10px 10px;
  min-height: 52px;
  overflow: hidden;
  padding: 12px 14px 13px;
  display: grid;
  align-content: center;
  gap: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(22, 39, 59, 0.18);
  pointer-events: none;
}

.service-body-action {
  pointer-events: auto;
  width: calc(100% - 20px);
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.service-body-action:hover,
.service-body-action:focus-visible {
  background: #fff;
  box-shadow: 0 14px 28px rgba(22, 39, 59, 0.22);
  transform: translateY(-1px);
}

.service-body-fixed {
  height: auto;
}

.service-body strong {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.25;
}

.service-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.service-card-action-wrap {
  position: absolute;
  inset: auto 10px 10px;
  width: calc(100% - 20px);
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(22, 39, 59, 0.18);
}

.service-card-action {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d4dfec;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.service-card-action:hover,
.service-card-action:focus-visible {
  border-color: #8db0d7;
  background: #f8fbff;
  color: #111;
  transform: translateY(-1px);
}

.service-card-action:disabled {
  color: #8a97a7;
  background: #f5f7fa;
  border-color: #d8e0ea;
  cursor: not-allowed;
  transform: none;
}

.delivery-progress {
  display: grid;
  gap: 10px;
}

.delivery-progress.is-clickable {
  cursor: pointer;
}

.delivery-progress.is-clickable:hover {
  opacity: 0.92;
}

.delivery-progress.is-clickable:focus-visible {
  outline: 2px solid #7da7d6;
  outline-offset: 2px;
}

.delivery-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

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

.delivery-progress-head strong {
  font-size: 15px;
}

.delivery-progress.tone-good .delivery-progress-head strong {
  color: var(--success);
}

.delivery-progress.tone-bad .delivery-progress-head strong {
  color: var(--danger);
}

.delivery-progress.tone-muted .delivery-progress-head strong {
  color: var(--muted);
}

.delivery-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e6eef8;
  overflow: visible;
}

.delivery-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d81cf, #0f4f98);
}

.delivery-progress.tone-good .delivery-progress-fill {
  background: linear-gradient(90deg, #59af67, #2f7b3e);
}

.delivery-progress.tone-bad .delivery-progress-fill {
  background: linear-gradient(90deg, #e58a82, #a92d23);
}

.delivery-progress.tone-muted .delivery-progress-fill {
  background: linear-gradient(90deg, #9ba8b5, #748395);
}

.delivery-progress-points {
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  pointer-events: none;
}

.delivery-point {
  justify-self: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid #d7e3f0;
  background: #fff;
}

.delivery-point.complete,
.delivery-point.current {
  border-color: #0f4f98;
  background: #fff;
}

.delivery-point.rejected {
  border-color: #a92d23;
  background: #fff3f2;
}

.delivery-progress.tone-good .delivery-point.complete,
.delivery-progress.tone-good .delivery-point.current {
  border-color: var(--success);
}

.delivery-progress.tone-muted .delivery-point.complete,
.delivery-progress.tone-muted .delivery-point.current {
  border-color: #748395;
}

.delivery-progress-caption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.project-list-card,
.action-panel,
.activity-panel {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.project-list-card {
  overflow: visible;
}

.card-head {
  padding: 18px 20px 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 18px;
}

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

.card-body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.project-list-card .card-body {
  overflow: visible;
}

.project-selector-card {
  position: relative;
  display: grid;
  gap: 10px;
  z-index: 2;
}

.project-selector-card.open {
  z-index: 30;
}

.project-selector-card-compact {
  min-height: 100%;
}

.project-selector-trigger {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #f8fbff, #edf5fe);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.project-selector-trigger-compact {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
}

.project-selector-trigger:hover {
  transform: translateY(-1px);
  border-color: #9fbde0;
}

.project-selector-card.open .project-selector-trigger {
  border-color: #7da7d6;
  box-shadow: 0 16px 30px rgba(23, 53, 88, 0.12);
}

.project-selector-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.project-selector-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.project-selector-copy span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-selector-chevron {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.18s ease;
}

.project-selector-card.open .project-selector-chevron {
  transform: rotate(180deg);
}

.project-selector-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 24;
  padding: 12px;
  border: 1px solid rgba(187, 205, 226, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 40px rgba(23, 53, 88, 0.18);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 10px;
}

.project-selector-dropdown-compact {
  min-width: max(320px, 100%);
}

.project-search {
  display: block;
}

.project-search-input {
  border-radius: 14px;
  direction: ltr;
  text-align: start;
  unicode-bidi: normal;
  writing-mode: horizontal-tb;
}

.project-selector-list {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.project-selector-list.has-open-menu {
  overflow: visible;
}

.project-selector-entry {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.12s ease;
}

.project-selector-entry:hover,
.project-selector-entry.menu-open {
  transform: translateY(-1px);
  border-color: #9fbde0;
}

.project-selector-entry.menu-open {
  z-index: 5;
}

.project-selector-entry.active {
  border-color: #7da7d6;
  background: linear-gradient(180deg, #f5fbff, #ecf5ff);
}

.project-selector-option {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 48px 12px 14px;
  background: transparent;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.project-selector-option.active {
  background: transparent;
}

.project-selector-option strong,
.project-selector-option span,
.project-selector-option small {
  overflow-wrap: anywhere;
}

.project-selector-option strong {
  font-size: 14px;
  color: var(--ink);
}

.project-selector-option span,
.project-selector-option small {
  color: var(--muted);
  font-size: 12px;
}

.project-menu-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(187, 205, 226, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.18s ease,
    transform 0.12s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.project-selector-entry:hover .project-menu-trigger,
.project-selector-entry:focus-within .project-menu-trigger,
.project-menu-trigger[aria-expanded="true"] {
  opacity: 1;
}

.project-menu-trigger:hover {
  transform: translateY(-1px);
  border-color: #9fbde0;
  background: #fff;
}

.project-menu-trigger .icon {
  width: 16px;
  height: 16px;
}

.project-menu {
  position: absolute;
  top: 48px;
  right: 10px;
  z-index: 12;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(187, 205, 226, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 34px rgba(23, 53, 88, 0.16);
  backdrop-filter: blur(10px);
}

.project-menu-item {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 12px;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.project-menu-item .icon {
  width: 12px;
  height: 12px;
}

.project-menu-item:hover {
  background: #f5f9ff;
}

.project-menu-item-danger {
  color: var(--danger);
}

.project-menu-item-danger:hover {
  background: #fff2f1;
}

.compact-empty-state {
  min-height: 92px;
}

.project-summary {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbff, #edf5fe);
  min-width: 0;
}

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

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.summary-row b {
  color: var(--ink);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.service-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.service-copy h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.service-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
}

.status-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--brand);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.field-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
}

.field-error {
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
  margin: 8px 0 0;
}

.button-row,
.chip-row,
.action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

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

.cta,
.secondary,
.ghost,
.chip-button,
.inline-button,
.artifact-button,
.project-link {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 16px;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.cta:hover,
.secondary:hover,
.ghost:hover,
.chip-button:hover,
.inline-button:hover,
.artifact-button:hover,
.project-link:hover {
  transform: translateY(-1px);
}

.cta {
  border-color: #0d4d92;
  background: linear-gradient(180deg, #1b62b5 0%, #0d4d92 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(14, 76, 146, 0.22);
}

.secondary {
  background: linear-gradient(180deg, #ffffff, #eef5ff);
}

.ghost {
  background: rgba(255, 255, 255, 0.4);
}

.chip-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.chip-button.active {
  border-color: #6b9fd1;
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  color: var(--brand);
}

.action-tile {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.action-tile strong {
  font-size: 16px;
}

.action-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.action-tile .cta,
.action-tile .secondary {
  justify-self: start;
}

.list-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 6px;
  min-width: 0;
}

.list-item strong {
  font-size: 14px;
}

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

.artifact-button,
.project-link {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  min-height: 54px;
  padding: 10px 14px;
  min-width: 0;
}

.recent-job-card {
  min-height: 72px;
}

.recent-artifact-card {
  min-height: 72px;
}

.recent-artifact-card .icon,
.recent-job-card .icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.history-launch {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.history-launch:hover {
  transform: translateY(-1px);
  border-color: #9fbde0;
}

.history-launch:disabled,
.history-launch.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.artifact-button span,
.project-link span {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.artifact-button small,
.project-link small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.artifact-button strong,
.project-link strong,
.list-item strong,
.list-item div {
  overflow-wrap: anywhere;
}

.empty-state {
  min-height: 120px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.48);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.good {
  background: #e7f4ea;
  color: var(--success);
}

.badge.work {
  background: #fff4df;
  color: var(--warn);
}

.badge.bad {
  background: #fbe7e6;
  color: var(--danger);
}

.badge.muted {
  background: #edf1f5;
  color: var(--muted);
}

.site-version {
  position: fixed;
  left: 14px;
  bottom: 12px;
  z-index: 40;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  z-index: 1100;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(24, 38, 56, 0.96);
  color: #fff;
  box-shadow: 0 18px 36px rgba(15, 31, 55, 0.24);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(20, 35, 56, 0.34);
}

.modal-card {
  width: min(760px, 100%);
  overflow: hidden;
}

.translation-import-modal {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.translation-export-modal {
  width: min(470px, 100%);
  max-height: min(86vh, 680px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.translation-export-body {
  gap: 12px;
}

.translation-export-languages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.translation-export-languages legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.translation-export-language {
  display: grid;
  grid-template-columns: auto 26px auto;
  align-items: center;
  justify-content: start;
  gap: 5px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.translation-export-language.selected {
  border-color: var(--line-strong);
  background: var(--accent);
}

.translation-export-language img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border: 1px solid rgba(24, 38, 56, 0.2);
}

.translation-export-emoji {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 480px) {
  .translation-export-languages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.translation-import-body {
  gap: 12px;
}

.translation-import-loading,
.translation-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.translation-import-notice {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fafe;
}

.translation-import-notice p {
  margin: 6px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.translation-package-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.translation-package-list legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.translation-package-row {
  display: grid;
  grid-template-columns: auto 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.translation-package-row.selected {
  border-color: var(--line-strong);
  background: var(--accent);
}

.translation-package-row img,
.translation-package-emoji {
  width: 26px;
  height: 17px;
  object-fit: cover;
  border: 1px solid rgba(24, 38, 56, 0.2);
}

.translation-package-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  border: 0;
  font-size: 18px;
  line-height: 1;
}

.translation-package-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.translation-package-copy small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.translation-package-copy em {
  color: var(--danger);
  font-size: 12px;
  font-style: normal;
}

.translation-protocol {
  display: grid;
  gap: 8px;
}

.translation-result.success {
  color: var(--success);
}

.translation-result.failure {
  color: var(--danger);
}

.translation-protocol pre {
  max-height: 190px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.modal-wide {
  width: min(1180px, 100%);
  max-height: min(86vh, 860px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.service-overlay-modal {
  width: min(1240px, 100%);
  max-height: min(90vh, 920px);
}

.service-overlay-body {
  overflow: auto;
  min-height: 0;
}

.service-overlay-body .workspace-grid {
  min-width: 0;
}

.job-history-modal {
  width: min(1240px, 100%);
}

.preview-modal {
  width: min(96vw, 1480px);
  height: min(92vh, 1040px);
  max-height: calc(100vh - 24px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.images-modal {
  width: min(920px, 100%);
  position: relative;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.generate-modal {
  width: min(820px, 100%);
  position: relative;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.generate-modal .generate-modal-title {
  margin: 0;
  color: var(--danger);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.generate-modal-body {
  display: grid;
  gap: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.generate-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.generate-action-row:last-child {
  border-bottom: 0;
}

.generate-action-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.generate-action-label {
  color: var(--danger);
  font-size: 15px;
  font-weight: 700;
}

.generate-action-hint {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.generate-presence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.generate-presence-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
}

.generate-presence-mark {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.generate-presence-item.is-present {
  color: #1f7a3f;
}

.generate-presence-item.is-missing {
  color: #b42318;
}

.generate-presence-item .icon {
  width: 14px;
  height: 14px;
}

.generate-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.generate-action-button {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.generate-action-button.cta:disabled,
.generate-action-button.cta.is-disabled {
  background: #c5ccd6;
  border-color: #b0b8c4;
  color: #f7f8fa;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.generate-action-button.cta:disabled:hover,
.generate-action-button.cta.is-disabled:hover {
  transform: none;
  background: #c5ccd6;
  border-color: #b0b8c4;
}

.generate-action-button .icon,
.generate-action-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.images-set-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.images-set-row .field-select,
.images-set-row .field-input {
  flex: 1 1 160px;
  min-width: 140px;
}

.images-set-group-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.images-set-group-row .field-select {
  flex: 0 1 220px;
  min-width: 160px;
}

.images-create-modal {
  width: min(560px, 92vw);
}

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

.images-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.images-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.images-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.images-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.images-action-button {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  min-height: 44px;
  height: auto;
  padding: 8px 10px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
  font-size: 13px;
  box-sizing: border-box;
}

.images-action-button .icon,
.images-action-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.images-upload-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
}

.images-upload-button .icon,
.images-upload-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.images-upload-row .folder-meta {
  flex: 1 1 220px;
  min-width: 0;
  color: #5b6b7c;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.images-pick-panel {
  display: grid;
  gap: 8px;
}

.images-pick-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.images-pick-header h3 {
  margin: 0;
  font-size: 13px;
}

.images-pick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.images-pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.images-pick-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #e8eef5;
  font-size: 12px;
}

.images-pick-item:last-child label {
  border-bottom: 0;
}

.images-pick-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.images-pick-item small {
  color: #5b6b7c;
  white-space: nowrap;
}

.images-pick-unchanged {
  background: #f3f6f9;
}

.images-pick-changed .images-pick-name {
  font-weight: 600;
}

.images-upload-progress {
  width: 100%;
  height: 8px;
}

.images-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.images-columns h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.images-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 160px;
  overflow: auto;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.images-file-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #e8eef5;
  font-size: 12px;
}

.images-file-list li:last-child {
  border-bottom: 0;
}

.images-file-list .muted {
  color: #6b7c93;
}

.images-log-panel {
  display: grid;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #f7f9fc;
  min-height: 0;
}

.images-run-status {
  margin: 0;
  font-size: 13px;
  color: #355070;
}

.images-run-status.muted {
  color: #6b7c93;
}

.images-log {
  margin: 0;
  min-height: 140px;
  max-height: 220px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #111827;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.modal-header,
.modal-footer {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header {
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

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

.project-files-actions {
  margin-top: 12px;
}

.modal-body {
  padding: 20px;
  display: grid;
  gap: 16px;
  min-height: 0;
  overflow: auto;
}

.admin-modal-body {
  align-content: start;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-projects-layout,
.admin-project-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-project-detail {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.admin-project-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-project-detail-head h3,
.admin-project-detail-head p {
  margin: 0;
}

.admin-project-detail-head p {
  color: var(--muted);
  font-size: 12px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.admin-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: #f4f8fd;
}

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

.admin-table tr.active td {
  background: #edf5ff;
}

.admin-row-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
}

.admin-row-button.danger {
  color: var(--danger);
}

.admin-muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.admin-members-table {
  min-width: 720px;
}

.admin-users-table {
  min-width: 1280px;
}

.admin-users-table th,
.admin-users-table td {
  white-space: nowrap;
  overflow-wrap: normal;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
  min-width: 160px;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  min-width: 260px;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
  min-width: 100px;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
  min-width: 160px;
}

.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
  min-width: 120px;
  white-space: normal;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
  min-width: 90px;
}

.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7) {
  min-width: 150px;
}

.admin-users-table th:nth-child(8),
.admin-users-table td:nth-child(8) {
  min-width: 90px;
}

.admin-create-user-form {
  max-width: 520px;
  display: grid;
  gap: 14px;
}

.admin-create-user-form .field-label.is-disabled {
  opacity: 0.55;
}

.admin-create-user-form .field-label.is-disabled .field-select,
.admin-create-user-form .field-label.is-disabled .field-select:disabled {
  background: #eef2f6;
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.admin-groups-layout {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-group-password-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 220px;
}

.admin-group-password-form .field-input {
  min-width: 140px;
  flex: 1 1 140px;
}

.admin-group-select {
  min-width: 140px;
  max-width: 220px;
}

.admin-add-member-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) auto;
  gap: 10px;
  align-items: center;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.admin-submit {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
}

.admin-submit .icon,
.admin-submit svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.preview-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.preview-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.preview-title h2 {
  margin: 0;
  font-size: 18px;
}

.preview-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.preview-body {
  min-height: 0;
  padding: 12px;
  background: #f5f8fb;
  overflow: auto;
}

.preview-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.preview-text {
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.preview-image-wrap {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(45deg, #eef3f8 25%, transparent 25%),
    linear-gradient(-45deg, #eef3f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef3f8 75%),
    linear-gradient(-45deg, transparent 75%, #eef3f8 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  padding: 18px;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: var(--shadow);
}

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

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

.file-tile {
  min-width: 0;
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 12px;
  display: grid;
  grid-template-rows: 72px auto;
  justify-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
  transition:
    border-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.file-tile:hover {
  transform: translateY(-1px);
  border-color: #9fbde0;
}

.file-tile .icon {
  width: 58px;
  height: 58px;
  color: #203149;
}

.file-tile span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.file-tile strong,
.file-tile small {
  overflow-wrap: anywhere;
}

.file-tile small {
  color: var(--muted);
}

.file-tree {
  padding: 4px 0;
}

.file-folder {
  min-width: 0;
}

.file-folder + .file-folder,
.file-folder + .file-tree-item,
.file-tree-item + .file-folder,
.file-tree-item + .file-tree-item {
  margin-top: 8px;
}

.file-folder-summary {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 255, 0.88));
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.file-folder-summary::-webkit-details-marker {
  display: none;
}

.file-folder-summary:hover {
  border-color: #9fbde0;
  box-shadow: 0 10px 22px rgba(23, 53, 88, 0.08);
}

.file-folder-summary .icon {
  width: 30px;
  height: 30px;
  color: var(--brand);
}

.file-folder-summary span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.file-folder-summary strong,
.file-folder-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-folder-summary small {
  color: var(--muted);
}

.folder-chevron {
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transform-origin: center;
  transition: transform 0.16s ease;
}

.file-folder[open] > .file-folder-summary .folder-chevron {
  transform: rotate(90deg);
}

.file-folder-children {
  margin: 8px 0 0 18px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.file-tree-item.file-tile {
  width: 100%;
  min-height: 0;
  border-radius: 14px;
  padding: 10px 12px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: none;
  justify-items: stretch;
  align-items: center;
  text-align: left;
  gap: 10px;
}

.file-tree-item.file-tile .icon {
  width: 28px;
  height: 28px;
  color: #203149;
}

.file-tree-item.file-tile strong,
.file-tree-item.file-tile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-tile {
  min-width: 0;
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 12px;
  display: grid;
  grid-template-rows: 72px auto;
  justify-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
  transition:
    border-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.compact-tile:hover {
  transform: translateY(-1px);
  border-color: #9fbde0;
}

.compact-tile.active {
  border-color: #7da7d6;
  background: linear-gradient(180deg, #f5fbff, #ecf5ff);
}

.compact-tile .icon {
  width: 58px;
  height: 58px;
  color: #203149;
}

.compact-tile span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.compact-tile strong,
.compact-tile small {
  overflow-wrap: anywhere;
}

.compact-tile small {
  color: var(--muted);
}

.job-log-panel {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 254, 0.96));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.job-log-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.job-log-head strong {
  display: block;
  font-size: 16px;
}

.job-log-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.job-log-meta {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf4fd;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.job-log-view {
  min-height: 220px;
  max-height: 320px;
  overflow: auto;
  padding: 0;
  background: #f7fafe;
}

.job-log-text {
  min-height: 100%;
  margin: 0;
  padding: 16px 18px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #23354d;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

.folder-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.folder-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.folder-meta strong,
.folder-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.busy-cover {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  background: rgba(241, 246, 252, 0.48);
  backdrop-filter: blur(5px);
}

.busy-pill {
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(187, 204, 223, 0.92);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(15, 79, 152, 0.2);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

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

@media (max-width: 1240px) {
  .service-grid,
  .workspace-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-overview-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .overview-window {
    height: min(42vh, 360px);
    max-height: none;
  }

  .workspace-grid {
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  }

  .activity-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  :root {
    --brand-banner-height: 86px;
  }

  .brand-banner-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "left right"
      "title title";
    align-items: start;
  }

  .brand-banner-start {
    grid-area: left;
  }

  .brand-banner-title {
    grid-area: title;
    justify-self: center;
    white-space: normal;
  }

  .brand-banner-controls {
    grid-area: right;
    width: 320px;
    align-self: center;
  }

  .brand-banner-login,
  .brand-banner-user {
    justify-self: end;
  }

  .service-grid,
  .workspace-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

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

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

  .workspace-summary-card-delivery {
    grid-column: 1 / -1;
  }

  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .brand-banner-user {
    justify-items: end;
  }

  .job-log-head {
    grid-template-columns: 1fr;
  }

  .admin-add-member-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --brand-banner-height: 118px;
  }

  .brand-banner-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "title"
      "right";
    justify-items: center;
    text-align: center;
    gap: 8px;
  }

  .brand-banner-start,
  .brand-banner-controls,
  .brand-banner-login,
  .brand-banner-user {
    justify-self: center;
  }

  .brand-banner-start {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-banner-controls {
    width: auto;
    flex-direction: column;
    gap: 8px;
  }

  .brand-banner-locales {
    transform: translateX(0);
  }

  .brand-banner-user {
    justify-items: center;
    white-space: normal;
  }

  .brand-banner-user-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-content {
    width: min(100vw - 20px, 1380px);
    padding-top: 18px;
  }

  .login-screen {
    min-height: calc(100vh - var(--brand-banner-height) - 70px);
  }

  .service-card,
  .project-list-card,
  .action-panel,
  .activity-panel,
  .modal-card,
  .workspace-top-panel,
  .workspace-summary-panel {
    border-radius: 20px;
  }

  .card-body,
  .modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card-head,
  .modal-header,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-copy h2 {
    font-size: 24px;
  }

  .workspace-top-title h1 {
    font-size: 24px;
  }

  .folder-picker {
    grid-template-columns: 1fr;
  }

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

  .workspace-summary-card-delivery {
    grid-column: auto;
  }

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

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

  .images-action-row {
    grid-template-columns: 1fr;
  }
}

.paths-file-status.is-present {
  color: #1f7a3f;
}

.paths-file-status.is-missing {
  color: #b42318;
}

.paths-stylesheet-field select {
  width: min(100%, 360px);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.paths-stylesheet-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
