:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-elevated: #141414;
  --line: #1f1f1f;
  --line-strong: #363636;
  --text: #f1ede4;
  --muted: #a59d8f;
  --accent: #d7d0c2;
  --danger: #cb7c72;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

.public-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 34px 64px;
  background: var(--bg);
}

.control-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}

.control-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 34px 64px;
  background: var(--bg);
}

.control-header {
  max-width: 1240px;
  margin: 0 auto;
}

.control-main {
  width: min(1240px, calc(100vw - 64px));
  margin: 0 auto;
  padding-top: 32px;
}

.control-auth-shell {
  padding-top: 48px;
}

.control-app-view {
  display: grid;
  gap: 24px;
}

.public-header,
.public-cta-row,
.auth-shell,
.account-grid,
.security-grid,
.account-actions,
.public-header-actions,
.public-header-nav {
  display: flex;
  gap: 14px;
}

.public-header {
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.public-header-nav {
  flex: 1;
  justify-content: center;
}

.public-main {
  max-width: 1040px;
  margin: 0 auto;
}

.workspace-sync-feedback {
  width: min(1240px, calc(100vw - 64px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(203, 124, 114, 0.35);
  background: rgba(203, 124, 114, 0.08);
  color: #f0c8c0;
  font-size: 13px;
  line-height: 1.5;
}

.workspace-action-feedback {
  width: min(1240px, calc(100vw - 64px));
  margin: 12px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(126, 169, 205, 0.28);
  background: rgba(126, 169, 205, 0.08);
  color: #d7e7f6;
  font-size: 13px;
  line-height: 1.5;
}

.workspace-action-feedback.error {
  border-color: rgba(203, 124, 114, 0.35);
  background: rgba(203, 124, 114, 0.08);
  color: #f0c8c0;
}

.public-page {
  display: none;
}

.public-page.visible {
  display: block;
}

.public-hero {
  padding: 112px 0 84px;
  display: flex;
  justify-content: center;
}

.public-hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-align: center;
}

.public-hero-text,
.public-auth-description,
.account-card p {
  color: var(--muted);
  line-height: 1.65;
}

.public-hero-text {
  max-width: 740px;
  margin-top: 18px;
  font-size: 18px;
  text-align: center;
}

.public-cta-row {
  margin-top: 28px;
  align-items: center;
  justify-content: center;
}

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

.account-card,
.auth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--bg-soft);
  border: 1px solid var(--line);
}

.account-card {
  padding: 20px;
}

.account-card strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.public-section {
  padding: 0 0 22px;
}

.public-mini-section {
  max-width: 740px;
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 28px;
}

.public-mini-section h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.public-mini-section p {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--text);
  line-height: 1.7;
}

.public-section-intro {
  color: var(--muted);
}

.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.public-list-card {
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.public-list-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 560;
  color: var(--text);
}

.public-list-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-section {
  padding: 48px 0 0;
}

.auth-shell {
  align-items: start;
  justify-content: center;
  gap: 28px;
}

.auth-copy {
  max-width: 420px;
}

.auth-card {
  width: min(100%, 520px);
  padding: 22px;
}

.auth-tab-row,
.top-right-cluster,
.auth-form {
  display: flex;
  gap: 14px;
}

.auth-tab-row {
  margin-bottom: 18px;
}

.auth-form {
  flex-direction: column;
}

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

.auth-inline-actions .ghost {
  flex: 1 1 180px;
}

.auth-feedback {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(215, 208, 194, 0.22);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
}

.auth-feedback.error {
  border-color: rgba(203, 124, 114, 0.45);
  color: #f3b0a7;
}

.profile-name {
  font-size: 15px;
  font-weight: 600;
}

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

.account-view {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.admin-list-column,
.admin-detail-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-list-summary,
.admin-detail-subtitle {
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.5;
}

.admin-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-status-chip,
.admin-meta-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-color);
  padding: 6px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-text);
  background: rgba(255, 255, 255, 0.02);
}

.admin-status-chip.status-active {
  color: #b7dbc9;
  border-color: rgba(118, 182, 145, 0.35);
  background: rgba(118, 182, 145, 0.12);
}

.admin-status-chip.status-warn {
  color: #ead9ab;
  border-color: rgba(234, 217, 171, 0.32);
  background: rgba(234, 217, 171, 0.11);
}

.admin-status-chip.status-danger {
  color: #f0c8c0;
  border-color: rgba(203, 124, 114, 0.35);
  background: rgba(203, 124, 114, 0.12);
}

.admin-table-shell {
  min-height: 420px;
}

.admin-workspace-row {
  cursor: pointer;
}

.admin-workspace-row.active {
  background: rgba(241, 237, 228, 0.06);
}

.admin-workspace-row td:first-child strong {
  display: block;
  font-size: 15px;
}

.admin-workspace-row td:first-child span {
  display: block;
  margin-top: 6px;
  color: var(--muted-text);
  font-size: 12px;
}

.admin-editor {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line-color);
  background: rgba(255, 255, 255, 0.02);
}

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

.admin-editor-actions {
  margin-top: 4px;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.7fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-color);
}

.admin-user-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-user-name {
  font-size: 15px;
}

.admin-user-meta,
.admin-user-status {
  color: var(--muted-text);
  font-size: 12px;
}

.admin-search-inline {
  min-width: 320px;
}

.account-actions {
  margin-top: 20px;
  flex-wrap: wrap;
}

.security-grid {
  margin-top: 20px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
input,
select,
textarea {
  appearance: none;
  border: 0;
  outline: none;
  border-radius: 0;
  background: transparent;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

.app-shell.dashboard-mode {
  grid-template-columns: 1fr;
}

.app-shell.dashboard-mode .sidebar {
  display: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015), transparent 45%),
    var(--bg-soft);
  -webkit-overflow-scrolling: touch;
}

.workspace {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 34px 56px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.app-shell.dashboard-mode .workspace {
  padding: 20px 42px 64px;
}

.sidebar-backdrop,
.mobile-only {
  display: none;
}

.sidebar-top,
.toolbar,
.workspace-top,
.client-summary-panel,
.gap-register,
.activity-register {
  padding-left: 20px;
  padding-right: 20px;
}

.eyebrow,
.field-label {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
}

h2 {
  font-size: 24px;
  font-weight: 600;
}

h3 {
  font-size: 14px;
  font-weight: 600;
}

h4 {
  font-size: 17px;
  font-weight: 550;
}

.sidebar-top {
  position: relative;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar-close-button {
  position: absolute;
  top: 18px;
  right: 20px;
}

.toolbar {
  flex: 0 0 auto;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.toolbar input,
.toolbar select,
.global-search-row input,
.operator-row input,
.field-block input,
.field-block textarea,
.field-block select {
  width: 100%;
  padding: 0 0 10px;
  min-height: 36px;
  border-bottom: 1px solid var(--line);
}

input,
textarea,
select {
  border-radius: 0;
}

.toolbar-row,
.workspace-actions,
.operator-row,
.profile-actions,
.client-summary-actions,
.gap-edit-actions,
.global-search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-row {
  margin-top: 10px;
}

button {
  cursor: pointer;
  color: var(--accent);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

button.ghost {
  color: var(--muted);
}

button:hover {
  color: var(--text);
}

button.active {
  color: var(--text);
}

.client-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.client-list-pinned {
  position: sticky;
  top: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(17, 17, 17, 0.98)),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.client-list-regular {
  display: flex;
  flex-direction: column;
}

.client-list-section-label {
  padding: 10px 20px 8px;
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.workspace::-webkit-scrollbar,
.client-list::-webkit-scrollbar {
  display: none;
}

.client-row,
.client-row-empty {
  padding: 14px 20px 15px;
  border-bottom: 1px solid var(--line);
}

.client-row {
  text-align: left;
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  position: relative;
}

.pinned-row {
  cursor: grab;
}

.pinned-row.dragging {
  opacity: 0.45;
}

.pinned-row.drop-before::after,
.pinned-row.drop-after::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
  opacity: 0.95;
}

.pinned-row.drop-before::after {
  top: 0;
}

.pinned-row.drop-after::after {
  bottom: 0;
}

.client-row.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 78%);
}

.client-row.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--accent);
}

.client-row-top,
.client-heading,
.section-head,
.gap-topline,
.history-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.client-row-name {
  font-size: 16px;
  font-weight: 560;
  line-height: 1.25;
}

.client-row-meta,
.summary-text,
.client-facts,
.client-stats,
.section-head p,
.mini-empty,
.history-time {
  color: var(--muted);
}

.client-row-bottom {
  margin-top: 8px;
  font-size: 12px;
}

.workspace-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.app-shell.dashboard-mode .workspace-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(420px, 640px) minmax(220px, 1fr);
  align-items: start;
  gap: 32px;
}

.workspace-heading {
  display: grid;
  gap: 0;
  min-width: 0;
}

.app-shell.dashboard-mode .workspace-heading {
  padding-top: 0;
}

.workspace-mobile-actions {
  display: none;
}

.operator-row {
  margin-top: 0;
}

.dashboard-view {
  display: grid;
  gap: 22px;
  padding-top: 22px;
}

.app-shell.dashboard-mode .dashboard-view {
  padding-top: 34px;
}

.hidden {
  display: none !important;
}

.workspace-title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 600;
}

.global-search-shell {
  position: relative;
  flex: 1 1 520px;
  max-width: 620px;
  min-width: 280px;
}

.app-shell.dashboard-mode .global-search-shell {
  margin: 0 auto;
  width: 100%;
}

.top-right-cluster {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
  min-width: 220px;
}

.global-search-row {
  margin-top: 10px;
  align-items: flex-end;
}

.global-search-row input {
  flex: 1 1 auto;
}

.client-search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 0;
  padding: 4px 0;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 30%),
    rgba(10, 10, 10, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.search-results-section,
.search-answer-card {
  display: grid;
  gap: 0;
}

.search-section-label {
  padding: 10px 14px 8px;
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.search-answer-card {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-answer-text,
.search-answer-meta {
  padding-left: 14px;
  padding-right: 14px;
}

.search-answer-text {
  padding-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.search-answer-meta {
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.search-answer-links {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.search-answer-link {
  padding: 10px 14px;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.client-search-result {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.client-search-result:last-child {
  border-bottom: 0;
}

.client-search-result-title {
  font-size: 15px;
  font-weight: 560;
}

.client-search-result-meta {
  color: var(--muted);
  font-size: 12px;
}

.profile-panel {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 220px;
  justify-content: flex-end;
}

.app-shell.dashboard-mode .profile-panel {
  justify-self: auto;
}

.profile-actions {
  margin-top: 10px;
  flex-wrap: wrap;
}

.brand-home-button {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px 0;
  color: var(--text);
  text-align: left;
}

.brand-lockup {
  display: grid;
  gap: 6px;
}

.instance-name {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-wordmark-image {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
  filter: brightness(0.95);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-details {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.profile-role {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-panel,
.module-register {
  padding-top: 22px;
}

.dashboard-alpha-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
}

.dashboard-alpha-filter button,
.dashboard-sort-button {
  text-transform: none;
  letter-spacing: 0.02em;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.dashboard-stat {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.dashboard-stat-label {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-stat-value {
  font-size: 28px;
  font-weight: 560;
  line-height: 1;
}

.dashboard-table-wrap {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.dashboard-table-wrap::-webkit-scrollbar {
  display: none;
}

.dashboard-client-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.dashboard-client-table th,
.dashboard-client-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.dashboard-client-table th {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

.dashboard-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: inherit;
  color: inherit;
}

.dashboard-sort-indicator {
  color: var(--text);
  font-size: 11px;
}

.dashboard-client-row {
  cursor: pointer;
}

.dashboard-client-row:hover,
.dashboard-client-row:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.dashboard-client-cell-name {
  font-size: 15px;
  font-weight: 560;
  color: var(--text);
}

.dashboard-table-empty {
  color: var(--muted);
  padding: 18px 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-list,
.dashboard-service-list,
.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.dashboard-list-item,
.dashboard-service-item,
.module-item,
.module-empty {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.dashboard-list-item {
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.dashboard-list-item:hover,
.client-search-result:hover {
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-list-title,
.dashboard-service-name,
.module-empty-title {
  font-size: 15px;
  font-weight: 560;
  color: var(--text);
}

.dashboard-list-meta,
.dashboard-service-meta,
.dashboard-service-text,
.module-empty-text,
.module-item {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.module-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.module-canvas {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.module-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.module-metric {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.module-metric-label {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.module-metric-value {
  font-size: 24px;
  font-weight: 560;
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 22px;
}

.module-section {
  display: grid;
  gap: 10px;
}

.module-section-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
}

.module-stack,
.module-blueprint-list {
  display: grid;
}

.module-record,
.module-blueprint-item {
  display: grid;
  gap: 5px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.module-record-title,
.module-blueprint-title {
  font-size: 15px;
  font-weight: 560;
  color: var(--text);
}

.module-record-meta,
.module-record-text,
.module-blueprint-text,
.module-panel-note {
  color: var(--muted);
}

.module-record-meta,
.module-blueprint-text {
  font-size: 13px;
  line-height: 1.55;
}

.module-record-text,
.module-panel-note {
  font-size: 13px;
  line-height: 1.7;
}

.asset-record {
  gap: 10px;
}

.module-record.asset-record:has(.asset-edit),
.module-record.site-record:has(.site-edit),
.module-record.knowledgebase-record:has(.knowledgebase-edit),
.module-record.password-record:has(.password-edit),
.module-record.contact-record:has(.contact-edit),
.module-record.website-record:has(.website-edit),
.module-record.process-record:has(.process-edit),
.module-record.network-record:has(.network-edit),
.module-record.expiration-record:has(.expiration-edit),
.module-record.hudu-sync-record:has(.hudu-sync-edit) {
  padding-top: 16px;
  padding-bottom: 16px;
}

.asset-record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.asset-record-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.asset-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.asset-actions button,
.asset-edit-actions button,
.knowledgebase-actions button,
.knowledgebase-edit-actions button,
.password-actions button,
.password-edit-actions button,
.contact-actions button,
.contact-edit-actions button,
.website-actions button,
.website-edit-actions button,
.process-actions button,
.process-edit-actions button,
.network-actions button,
.network-edit-actions button,
.expiration-actions button,
.expiration-edit-actions button,
.hudu-sync-actions button,
.hudu-sync-edit button {
  padding: 0;
  text-transform: none;
  letter-spacing: 0.02em;
}

.delete-asset-button {
  color: var(--danger);
}

.asset-edit,
.site-edit,
.knowledgebase-edit,
.password-edit,
.contact-edit,
.website-edit,
.process-edit,
.network-edit,
.expiration-edit,
.hudu-sync-edit {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.asset-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.asset-edit-note-field,
.contact-edit-wide,
.website-edit-wide,
.process-edit-wide,
.network-edit-wide,
.expiration-edit-wide,
.hudu-sync-wide {
  grid-column: span 3;
}

.asset-edit-actions,
.site-edit-actions,
.knowledgebase-edit-actions,
.password-edit-actions {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-record {
  gap: 10px;
}

.knowledgebase-record,
.password-record,
.contact-record,
.website-record,
.process-record,
.network-record,
.expiration-record,
.hudu-sync-record {
  gap: 10px;
}

.site-record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.site-record-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.knowledgebase-record-header,
.password-record-header,
.contact-record-header,
.website-record-header,
.process-record-header,
.network-record-header,
.expiration-record-header,
.hudu-sync-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.knowledgebase-record-copy,
.password-record-copy,
.contact-record-copy,
.website-record-copy,
.process-record-copy,
.network-record-copy,
.expiration-record-copy,
.hudu-sync-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.knowledgebase-actions,
.password-actions,
.contact-actions,
.website-actions,
.process-actions,
.network-actions,
.expiration-actions,
.hudu-sync-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dashboard-onboarding-shell {
  display: grid;
  gap: 18px;
}

.dashboard-onboarding-list {
  display: grid;
  gap: 12px;
}

.dashboard-onboarding-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-onboarding-index {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dashboard-onboarding-copy {
  display: grid;
  gap: 6px;
}

.dashboard-onboarding-title {
  color: var(--text);
  font-size: 15px;
}

.dashboard-onboarding-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.password-vault-form {
  display: grid;
  gap: 14px;
  width: min(480px, 100%);
  margin-top: 18px;
}

.password-vault-actions {
  margin-bottom: 18px;
}

.error-text {
  color: var(--danger);
}

.site-actions button,
.site-edit-actions button {
  padding: 0;
  text-transform: none;
  letter-spacing: 0.02em;
}

.delete-site-button {
  color: var(--danger);
}

.site-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-edit-wide {
  grid-column: span 3;
}

.knowledgebase-edit-grid,
.password-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.knowledgebase-edit-wide,
.password-edit-wide {
  grid-column: span 3;
}

.contact-edit-grid,
.website-edit-grid,
.process-edit-grid,
.network-edit-grid,
.expiration-edit-grid,
.hudu-sync-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.password-toggle-field {
  align-content: start;
}

.derived-record .expiration-actions {
  display: none;
}

.derived-record .module-record-title::after {
  content: "derived";
  margin-left: 8px;
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sync-scope-group {
  display: grid;
  gap: 10px;
}

.sync-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.client-summary-panel {
  padding-top: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.client-heading {
  align-items: flex-start;
}

.summary-text {
  margin-top: 16px;
  max-width: 920px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.summary-head,
.summary-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.summary-head {
  margin-top: 16px;
}

.summary-badge {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-facts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
}

.client-facts span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.delete-confirm {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 124, 114, 0.35);
  background: rgba(203, 124, 114, 0.08);
}

.delete-confirm-text {
  color: var(--text);
  font-size: 13px;
}

.activity-panel {
  margin-top: 14px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.activity-panel .section-head {
  padding-bottom: 12px;
}

.activity-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-filters button {
  text-transform: none;
  letter-spacing: 0.02em;
}

.activity-filters button.active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.client-edit-grid,
.gap-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.client-summary-edit {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.field-block {
  display: grid;
  gap: 6px;
}

.field-helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-block textarea {
  resize: vertical;
  line-height: 1.6;
}

.client-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.client-module-nav {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 18px;
  padding-top: 16px;
  padding-bottom: 4px;
  border-top: 1px solid var(--line);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.module-context-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 18px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.module-context-copy,
.module-context-side {
  display: grid;
  gap: 8px;
}

.module-context-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.module-context-description,
.module-context-next-step {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.module-context-count {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-module-nav::-webkit-scrollbar {
  display: none;
}

.client-module-nav button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.module-tab-count {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  line-height: 1;
}

.client-module-nav button.active .module-tab-count {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.client-stats span {
  padding: 0 10px 0 0;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.history-item {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.history-actor {
  font-size: 13px;
  font-weight: 550;
}

.history-time {
  font-size: 12px;
}

.history-source {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.history-note {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
}

.gap-register,
.module-register {
  padding-top: 22px;
}

.section-head {
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head-actions {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.gap-list {
  display: flex;
  flex-direction: column;
}

.gap-item {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}

.workspace-actions button,
.client-summary-actions button,
.gap-actions button,
.summary-tools button {
  text-transform: none;
  letter-spacing: 0.02em;
}

.gap-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 280px;
  gap: 28px;
  align-items: start;
}

.gap-main {
  min-width: 0;
}

.gap-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.gap-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.gap-actions button {
  padding: 0;
  font-size: 12px;
}

.delete-gap-inline-button {
  margin-left: 4px;
}

.gap-index {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 12px;
}

.gap-notes-text {
  margin-top: 12px;
  max-width: 860px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.gap-last-updated {
  margin-top: 10px;
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.5;
}

.subtasks-wrap,
.history-wrap {
  margin-top: 16px;
}

.mini-head {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtask-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subtask-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  padding: 6px 0;
}

.subtask-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
}

.subtask-row input[type="checkbox"]:checked {
  background: var(--accent);
}

.subtask-row .done {
  color: var(--muted);
  text-decoration: line-through;
}

.subtask-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.subtask-text {
  color: var(--text);
  line-height: 1.5;
}

.subtask-meta {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.5;
}

.subtask-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.subtask-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 3px;
}

.subtask-actions button {
  padding: 0;
  font-size: 12px;
}

.task-entry {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.task-entry input,
.task-entry textarea {
  width: 100%;
  padding: 0 0 8px;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
}

.task-entry-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.task-entry-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.delete-task-button {
  color: var(--danger);
}

.task-create-button {
  margin-top: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.gap-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.gap-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gap-detail-label {
  color: var(--muted);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gap-detail-value {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  word-break: break-word;
}

.gap-edit {
  display: grid;
  gap: 14px;
  padding-top: 6px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.edit-banner {
  display: grid;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.edit-banner-label {
  color: var(--text);
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edit-banner-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.gap-edit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-edit-actions {
  padding-top: 6px;
}

.delete-gap-button {
  color: var(--danger);
}

::placeholder {
  color: #7f786d;
}

@media (max-width: 1080px) {
  .public-shell {
    padding: 20px 22px 48px;
  }

  .public-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .public-header-nav,
  .public-header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .public-hero {
    padding: 84px 0 60px;
  }

  .public-feature-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.dashboard-mode .workspace {
    padding: 16px 18px 40px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 360px);
    max-width: 360px;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .sidebar-backdrop.visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .client-list-pinned {
    position: static;
  }

  .workspace {
    padding: 16px 18px 40px;
  }

  .workspace-top,
  .client-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-shell.dashboard-mode .workspace-top {
    display: flex;
    gap: 22px;
  }

  .global-search-shell,
  .top-right-cluster,
  .profile-panel {
    width: 100%;
    max-width: none;
  }

  .top-right-cluster {
    justify-content: flex-start;
    gap: 0;
  }

  .profile-panel {
    justify-content: flex-start;
  }

  .section-head,
  .section-head-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-layout,
  .admin-form-grid,
  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-search-inline {
    min-width: 0;
    width: 100%;
  }

  .gap-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gap-actions {
    justify-content: flex-start;
  }

  .mobile-only {
    display: inline-flex;
  }

  .workspace-mobile-actions {
    display: flex;
    width: 100%;
  }

  .client-edit-grid,
  .gap-edit-grid {
    grid-template-columns: 1fr;
  }

  .asset-edit-grid,
  .contact-edit-grid,
  .website-edit-grid,
  .process-edit-grid,
  .network-edit-grid,
  .expiration-edit-grid,
  .hudu-sync-grid {
    grid-template-columns: 1fr 1fr;
  }

  .asset-edit-note-field,
  .contact-edit-wide,
  .website-edit-wide,
  .process-edit-wide,
  .network-edit-wide,
  .expiration-edit-wide,
  .hudu-sync-wide {
    grid-column: span 2;
  }

  .site-edit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-edit-wide {
    grid-column: span 2;
  }

  .knowledgebase-edit-grid,
  .password-edit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .knowledgebase-edit-wide,
  .password-edit-wide {
    grid-column: span 2;
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-module-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gap-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar input,
  .toolbar select,
  .global-search-row input,
  .operator-row input,
  .field-block input,
  .field-block textarea,
  .field-block select {
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .public-shell {
    padding: 18px 16px 40px;
  }

  .public-hero {
    padding: 64px 0 44px;
  }

  .public-hero-text,
  .public-mini-section p {
    font-size: 16px;
  }

  .public-header-nav {
    gap: 10px;
  }

  .sidebar-top,
  .toolbar,
  .workspace-top,
  .client-summary-panel,
  .gap-register,
  .activity-register {
    padding-left: 16px;
    padding-right: 16px;
  }

  .workspace {
    padding: 14px 14px 32px;
  }

  .app-shell.dashboard-mode .workspace {
    padding: 14px 14px 32px;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 22px;
  }

  .client-summary-actions,
  .client-module-nav,
  .gap-edit-actions,
  .summary-tools,
  .section-head-actions,
  .activity-filters,
  .global-search-row {
    gap: 10px;
  }

  .module-context-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-onboarding-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .top-right-cluster {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-wordmark-image {
    height: 36px;
  }

  .instance-name {
    font-size: 9px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-metrics {
    grid-template-columns: 1fr;
  }

  .asset-record-header,
  .asset-edit-grid,
  .contact-record-header,
  .contact-edit-grid,
  .site-record-header,
  .site-edit-grid,
  .website-record-header,
  .website-edit-grid,
  .process-record-header,
  .process-edit-grid,
  .knowledgebase-record-header,
  .knowledgebase-edit-grid,
  .network-record-header,
  .network-edit-grid,
  .password-record-header,
  .password-edit-grid,
  .expiration-record-header,
  .expiration-edit-grid,
  .hudu-sync-header,
  .hudu-sync-grid {
    grid-template-columns: 1fr;
  }

  .asset-record-header,
  .contact-record-header,
  .site-record-header,
  .website-record-header,
  .process-record-header,
  .knowledgebase-record-header,
  .network-record-header,
  .password-record-header,
  .expiration-record-header,
  .hudu-sync-header {
    display: grid;
  }

  .asset-edit-note-field,
  .contact-edit-wide,
  .site-edit-wide,
  .website-edit-wide,
  .process-edit-wide,
  .knowledgebase-edit-wide,
  .network-edit-wide,
  .password-edit-wide,
  .expiration-edit-wide,
  .hudu-sync-wide {
    grid-column: auto;
  }

  .sync-scope-grid {
    grid-template-columns: 1fr;
  }

  .gap-detail-grid {
    grid-template-columns: 1fr;
  }

  .subtask-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .subtask-row input[type="checkbox"] {
    margin-top: 2px;
  }

  .gap-title-block {
    gap: 8px;
  }
}

@media (min-width: 1081px) and (max-width: 1320px) {
  .app-shell {
    grid-template-columns: 290px 1fr;
  }

  .workspace {
    padding-left: 24px;
    padding-right: 24px;
  }

  .gap-layout {
    grid-template-columns: minmax(0, 1.35fr) 260px;
    gap: 22px;
  }
}
