:root {
  --ink: #1c2f45;
  --muted: #5f748b;
  --line: #d7e4ef;
  --panel: #ffffff;
  --back: #eaf4fb;
  --accent: #4d9fd6;
  --accent-dark: #2d82bc;
  --warn: #b84b2a;
  --soft: #dff1fb;
  --tile: #eef7fc;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(128, 199, 242, 0.22), transparent 28%),
    linear-gradient(180deg, #eef8fe 0%, var(--back) 48%, #e6f2fa 100%);
}

body.is-busy button,
body.is-busy [role="button"],
body.is-busy input[type="submit"],
body.is-busy input[type="button"] {
  cursor: wait !important;
}

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

button,
a.button-link,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  padding: 9px 14px;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.74;
}

button.is-loading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
}

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

button.secondary {
  color: var(--ink);
  background: #e2e7ec;
}

button.secondary:hover {
  background: #d3dae1;
}

button.ghost {
  color: var(--accent-dark);
  background: transparent;
  border: 1px solid var(--line);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
}

.compact-user-form {
  gap: 10px;
}

.user-settings-item {
  padding: 0;
  overflow: hidden;
}

.user-settings-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.user-settings-summary::-webkit-details-marker {
  display: none;
}

.user-settings-form {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.access-editor {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
}

.access-block {
  display: grid;
  gap: 8px;
}

.access-grid,
.access-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 12px;
}

.access-projects .checkbox-row span small {
  color: var(--muted);
}

.access-project-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.access-project-group > summary,
.project-access-item > summary {
  cursor: pointer;
  list-style: none;
}

.access-project-group > summary::-webkit-details-marker,
.project-access-item > summary::-webkit-details-marker {
  display: none;
}

.access-project-group > summary {
  padding: 12px 14px;
  font-weight: 700;
}

.access-project-group > summary small {
  color: var(--muted);
  font-weight: 500;
}

.access-project-group-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.project-access-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.project-access-item > summary .checkbox-row {
  padding-right: 14px;
}

.project-access-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px 10px;
  padding-left: 28px;
  padding-top: 6px;
}

.checkbox-row.compact {
  align-items: flex-start;
  font-size: 0.95rem;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
}

.login-logo-wrap {
  width: 100%;
  height: 62vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
}

.login-logo-stage {
  width: min(100%, 1200px);
  height: 100%;
  border: 0;
  background: transparent;
}

.login-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 24px 24px;
  margin-top: -8vh;
}

.login-box {
  width: min(420px, calc(100% - 24px));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  padding: 30px;
  box-shadow: 0 24px 70px rgba(17, 56, 86, 0.22);
  backdrop-filter: blur(10px);
}

.login-box h1,
.login-box p {
  margin-top: 0;
}

.login-box h1 {
  text-align: center;
  margin-bottom: 18px;
}

.login-box form,
.stack {
  display: grid;
  gap: 14px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.upload-dropzone {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfe;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.upload-dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: 0 0 0 3px rgba(79, 137, 168, 0.12);
}

.upload-drop-hint {
  margin-top: -2px;
}

.upload-progress {
  display: none;
  gap: 8px;
  margin-top: 4px;
}

.upload-progress.is-visible {
  display: grid;
}

.upload-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #d8eaf6;
}

.upload-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #7ec7ef);
  transition: width 0.18s ease;
}

.upload-progress-fill.is-indeterminate {
  width: 35%;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, #7ec7ef 70%, transparent 100%);
  background-size: 200% 100%;
  animation: upload-progress-slide 1s linear infinite;
}

.upload-progress-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@keyframes upload-progress-slide {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(320%);
  }
}

.drawing-comment-attachments {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.drawing-comment-attachment {
  display: grid;
  gap: 8px;
}

.drawing-comment-image {
  max-width: min(100%, 520px);
  max-height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.drawing-comment-pdf {
  width: 100%;
  max-width: 920px;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width, 480px) 10px 1fr;
}

.shell.shell-static {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.shell.shell-static .sidebar {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 100%;
  min-width: 320px;
  max-width: none;
  height: 100vh;
  overflow: auto;
  background: linear-gradient(180deg, #f4fbff 0%, #eef7fc 100%);
  color: #3f5d78;
  border-right: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pane-resizer {
  position: relative;
  width: 10px;
  cursor: col-resize;
  background: transparent;
}

.pane-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 2px;
  background: #c6d9e8;
}

.pane-resizer:hover::before {
  background: var(--accent);
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  padding: 0 18px;
  color: #214563;
}

.brand-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding-top: 0;
  padding-bottom: 0;
  cursor: pointer;
}

.brand-button:hover {
  background: transparent;
}

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

.brand-copy small {
  color: #66829c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  display: block;
}

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

.mobile-brand-button {
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-account {
  position: relative;
  flex: 0 0 auto;
}

.mobile-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #72c6f5;
  background: linear-gradient(180deg, #ffffff 0%, #edf5fa 100%);
  color: #214563;
  font: inherit;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(114, 198, 245, 0.35),
    0 0 16px rgba(114, 198, 245, 0.2);
}

.mobile-account-caret {
  font-size: 13px;
  line-height: 1;
}

.mobile-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 128px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid #72c6f5;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 12px 24px rgba(73, 114, 140, 0.18),
    0 0 18px rgba(114, 198, 245, 0.25);
}

.mobile-account-menu .ghost {
  width: 100%;
}

.user-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  color: #526574;
  font-size: 14px;
}

.project-nav {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 0 10px;
}

.sidebar > button.secondary {
  margin: 0 14px;
  text-align: left;
}

.sidebar-section-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px;
}

.sidebar-section-switch button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #435563;
  background: #edf2f5;
  border: 1px solid transparent;
  padding: 10px 12px;
}

.sidebar-section-switch button:hover {
  background: #e4ebf0;
}

.sidebar-section-switch button.active {
  color: #fff;
  background: var(--accent);
}

.sidebar-section-switch button strong {
  font-size: 16px;
}

.sidebar-section-switch button.compact {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
}

.sidebar-section-switch button.compact strong {
  font-size: 14px;
}

.sidebar-bottom {
  margin-top: auto;
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 10px 14px 0;
  border-top: 1px solid var(--line);
  background: #f8fafb;
}

.sidebar-bottom button.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.project-nav-block {
  display: grid;
  gap: 0;
}

.share-nav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 6px;
}

.sidebar-empty {
  margin: 4px 10px 0;
}

.project-nav-block > button {
  text-align: left;
  color: #435563;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  min-height: 46px;
  padding: 8px 10px;
}

.project-nav-block > button.active,
.project-nav-block > button:hover {
  border-color: transparent;
  background: #e9edf1;
}

.share-delete-btn {
  align-self: center;
  min-height: 46px;
  padding: 8px 10px;
  color: #9a2d2d;
}

.share-delete-btn:hover {
  background: #f6e2e2;
  color: #7d1f1f;
}

.project-nav-title {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.project-caret,
.project-caret-placeholder {
  display: inline-grid;
  place-items: center;
  min-height: 18px;
  color: #7d8e9a;
  font-size: 18px;
  line-height: 1;
}

.project-nav.has-active-project .project-nav-block > button.active {
  padding-bottom: 0;
}

.project-nav.has-active-project .project-nav-block > button.active > strong {
  font-weight: 600;
}

.project-nav.has-active-project .project-nav-block > button.active + .module-nav {
  margin: 0;
}

.module-nav {
  min-height: 0;
  overflow: visible;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 4px 0 8px;
  border-top: 1px solid var(--line);
}

.sales-board {
  display: grid;
  gap: 18px;
}

.sales-intro {
  padding-bottom: 4px;
}

.sales-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

.sales-column {
  display: grid;
  gap: 14px;
}

.sales-column-head h3 {
  margin: 0 0 4px;
}

.sales-project-list {
  display: grid;
  gap: 10px;
}

.sales-project-card {
  width: 100%;
  color: var(--ink);
  background: var(--tile);
  border: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.sales-project-card:hover {
  background: #e2ebf0;
}

.sales-project-card strong {
  color: #2d4150;
}

.sales-project-card span {
  color: var(--muted);
  font-size: 13px;
}

.module-nav button {
  width: 100%;
  min-height: 52px;
  color: #435563;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 16px;
  text-align: left;
}

.module-nav button:hover,
.module-nav button.active {
  color: #2d4352;
  background: #e9edf1;
}

.module-item-row.is-transfer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.module-nav button.transfer-item {
  color: #264455;
  background: #eef4f2;
}

.module-nav button.transfer-item:hover {
  background: #dcece7;
}

.module-nav.sales-process-nav .module-item-row.is-transfer {
  margin-top: 14px;
  order: 999;
}

.module-item {
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.module-item {
  padding-left: 16px !important;
}

.module-section-caret,
.module-section-spacer {
  width: 18px;
  min-height: 24px;
  display: grid;
  place-items: center;
  color: #7d8e9a;
  font-size: 18px;
  line-height: 1;
}

.module-section-caret {
  border-radius: 4px;
}

.module-section-caret:hover {
  color: #fff;
  background: var(--accent);
}

.module-icon {
  width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  color: #455d6e;
  font-size: 24px;
}

.module-nav strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
}

.module-nav small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-file-list {
  display: grid;
  gap: 7px;
  padding: 0 0 5px;
}

.module-file-branch {
  position: relative;
  padding-left: var(--tree-indent, 0px);
}

.module-file-branch.is-root-branch {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 2px solid #d7dee5;
}

.module-file-branch.is-child-branch {
  margin-top: 4px;
}

.module-file-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding-right: 10px;
}

.module-file-caret,
.module-file-caret-spacer {
  width: 24px;
  min-height: 28px;
  display: grid;
  place-items: center;
}

.module-file-caret {
  color: #5d7180;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 20px;
}

.module-file-caret:hover {
  color: var(--accent-dark);
  background: #dfe7ec;
}

.module-file-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 34px !important;
  padding: 6px 8px !important;
  color: #4a5c69 !important;
  font-size: 13px;
  line-height: 1.25;
  border-left: 3px solid transparent !important;
  border-radius: 6px !important;
}

.module-file-item span:last-child {
  overflow-wrap: anywhere;
}

.module-file-item.is-root {
  background: #fbfcfd;
}

.module-file-item.is-child {
  border-left-color: #bcc8d1 !important;
  background: #f1f4f6;
}

.module-file-item.active {
  background: #dfe7ec !important;
  border-left-color: var(--accent) !important;
}

.module-file-children {
  position: relative;
  display: grid;
  gap: 2px;
  margin-left: 36px;
  padding-left: 12px;
}

.module-file-children::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  bottom: 8px;
  border-left: 2px solid #bcc8d1;
}

.module-file-name {
  display: block;
  overflow-wrap: anywhere;
}

.module-file-source {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.module-file-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 4px 8px 0 32px;
}

.module-file-branch.is-child-branch > .module-file-actions {
  margin-left: 32px;
}

.module-file-actions button {
  min-width: 0;
  min-height: 32px;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.module-file-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: #9aa9b3;
}

.module-file-dot.status-approved {
  background: #3f9954;
}

.module-file-dot.status-rework {
  background: #d47d21;
}

.module-file-dot.status-rejected {
  background: #c64b43;
}

.module-file-dot.status-waiting {
  background: #b99a24;
}

/* Dalux-inspired project tree: calmer rows, stronger hierarchy, clearer selection. */
.shell.dalux-layout {
  grid-template-columns: var(--sidebar-width, 468px) 10px 1fr;
  background: #eef2f5;
}

.shell.dalux-layout.mobile-content-focus {
  grid-template-columns: 1fr;
}

.shell.dalux-layout.calendar-focus.mobile-content-focus,
.shell.dalux-layout.translation-focus.mobile-content-focus,
.shell.dalux-layout.feed-focus.mobile-content-focus {
  grid-template-columns: 1fr;
}

.shell.dalux-layout.calendar-focus {
  grid-template-columns: 104px 10px 1fr;
}

.shell.dalux-layout.feed-focus {
  grid-template-columns: 104px minmax(0, 1fr);
}

.shell.dalux-layout .sidebar {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  position: sticky;
  top: 0;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 100vh;
  min-height: 0;
  gap: 0;
  padding: 0;
  background: #f3f5f7;
  color: #405563;
  overflow: hidden;
}

.shell.dalux-layout.translation-focus .sidebar {
  grid-template-columns: 1fr;
  width: 104px;
  min-width: 104px;
  max-width: 104px;
}

.shell.dalux-layout.calendar-focus .sidebar {
  grid-template-columns: 1fr;
  width: 104px;
  min-width: 104px;
  max-width: 104px;
}

.shell.dalux-layout.feed-focus .sidebar {
  grid-template-columns: 1fr;
  width: 104px;
  min-width: 104px;
  max-width: 104px;
}

.shell.dalux-layout .sidebar-rail {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid #d8e0e6;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f4f6 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 7px 10px;
}

.shell.dalux-layout.translation-focus .sidebar-rail {
  border-right: 0;
}

.shell.dalux-layout.calendar-focus .sidebar-rail {
  border-right: 0;
}

.shell.dalux-layout.feed-focus .sidebar-rail {
  border-right: 0;
}

.shell.dalux-layout.translation-focus {
  grid-template-columns: 104px minmax(0, 1fr);
}

.shell.dalux-layout.calendar-focus .content {
  min-width: 0;
}

.shell.dalux-layout.feed-focus .content {
  min-width: 0;
}

.shell.dalux-layout.translation-focus .content {
  min-width: 0;
}

.shell.dalux-layout .sidebar-explorer {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #f8fafb;
  overflow: hidden;
}

.shell.dalux-layout .brand {
  align-items: flex-start;
  gap: 5px;
  padding: 0 2px 6px;
  font-size: 12px;
}

.shell.dalux-layout .brand-button {
  order: 0;
  border-bottom: 1px solid #d8e0e6;
}

.shell.dalux-layout .brand-logo {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.shell.dalux-layout .brand-copy {
  min-width: 0;
  display: grid;
  gap: 0;
}

.shell.dalux-layout .brand-copy .brand-line {
  display: block;
  line-height: 1.05;
  font-size: 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.shell.dalux-layout .brand-copy small {
  display: none;
}

.shell.dalux-layout .sidebar-section-switch {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0;
}

.shell.dalux-layout .sidebar-section-switch button {
  min-height: 46px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 6px 5px;
  background: #eef3f6;
  border: 1px solid #d6e0e7;
  color: #526875;
  box-shadow: none;
}

.shell.dalux-layout .sidebar-section-switch button:hover {
  background: #e8edf1;
  border-color: #c7d4dd;
}

.shell.dalux-layout .sidebar-section-switch button.active {
  background: #dce5eb;
  color: #274556;
  border-color: #c7d4dd;
  box-shadow: none;
}

.shell.dalux-layout .sidebar-section-switch button span {
  font-size: 10px;
  font-weight: 700;
}

.shell.dalux-layout .sidebar-section-switch button strong {
  font-size: 16px;
  line-height: 1;
}

.shell.dalux-layout .sidebar-section-switch button.compact {
  min-height: 42px;
}

.shell.dalux-layout .sidebar-bottom {
  margin-top: auto;
  padding: 8px;
  border-top: 1px solid #d8e0e6;
  background: #f8fafb;
}

.shell.dalux-layout .sidebar-bottom button {
  width: 100%;
  min-height: 30px;
  font-size: 10px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: left;
}

.shell.dalux-layout .sidebar-explorer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid #d8e0e6;
  background: #f8fafb;
}

.shell.dalux-layout .sidebar-explorer-head h2 {
  margin: 0 0 2px;
  font-size: 15px;
  color: #233847;
}

.shell.dalux-layout .sidebar-explorer-head .secondary {
  min-height: 30px;
  padding: 0 8px;
  font-size: 10px;
  white-space: nowrap;
}

.shell.dalux-layout .sidebar-explorer-head #newServiceTaskSidebarBtn {
  min-height: 30px;
  padding: 0 8px;
  font-size: 10px;
  white-space: nowrap;
  color: #fff;
  background: var(--accent);
  border: 0;
}

.shell.dalux-layout .sidebar-explorer-head #newServiceTaskSidebarBtn:hover {
  background: var(--accent-dark);
}

.shell.dalux-layout .project-nav {
  min-height: 0;
  padding: 6px 8px 10px;
  gap: 2px;
  overflow: auto;
  overscroll-behavior: contain;
}

.shell.dalux-layout .project-nav-utility {
  margin-bottom: 5px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d8e0e6;
}

.shell.dalux-layout .project-nav-utility > button {
  width: 100%;
  min-height: 36px;
  text-align: left;
  border-radius: 8px;
  padding: 5px 7px;
  color: #415765;
  background: #edf2f5;
  border: 1px solid transparent;
}

.shell.dalux-layout .project-nav-utility > button:hover,
.shell.dalux-layout .project-nav-utility > button.active {
  background: #dfe7ec;
  border-color: #c7d4dd;
}

.shell.dalux-layout .project-nav-block > button {
  min-height: 34px;
  border-radius: 8px;
  padding: 5px 7px;
  background: #edf2f5;
  border: 1px solid #d8e0e6;
  color: #415765;
}

.shell.dalux-layout .project-nav-block > button:hover {
  background: #e3eaee;
  border-color: #cbd7de;
}

.shell.dalux-layout .project-nav-block > button.active,
.shell.dalux-layout .project-nav-block > button:hover {
  background: #dceaf4;
  border-color: #b9cfde;
  color: #24465c;
}

.shell.dalux-layout .project-nav-title {
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 5px;
}

.shell.dalux-layout .project-nav-title strong {
  font-size: 12px;
}

.shell.dalux-layout .project-nav-meta {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.1;
  color: #728391;
}

.shell.dalux-layout .module-nav {
  margin: 2px 0 4px 8px;
  padding: 4px 0 6px 8px;
  border-left: 2px solid #ccd7de;
  overflow: visible;
}

.shell.dalux-layout .module-nav button {
  min-height: 28px;
  padding: 3px 5px;
  background: #edf2f5;
  border: 1px solid #d8e0e6;
  color: #405563;
}

.shell.dalux-layout .module-nav strong {
  font-size: 11px;
}

.shell.dalux-layout .module-file-list {
  margin-left: 5px;
  padding-left: 8px;
}

.shell.dalux-layout .content {
  background: #fff;
}

.shell.dalux-layout .topbar {
  min-height: 64px;
  padding: 10px 18px;
}

.shell.dalux-layout .topbar h1 {
  font-size: 28px;
  line-height: 1.05;
  color: #20333f;
}

.shell.dalux-layout .workspace {
  padding: 14px 18px 24px;
}

.mobile-bottom-bar {
  display: none;
}

.sidebar {
  background: #f5f7f8;
  color: #405563;
}

.project-nav {
  padding: 0 12px 8px;
  gap: 2px;
}

.project-nav-block > button {
  min-height: 44px;
  border-radius: 8px;
  padding: 6px 10px;
  background: #edf2f5;
  border: 1px solid #d8e0e6;
  color: #415765;
}

.project-nav-block > button:hover {
  background: #e3eaee;
  border-color: #cbd7de;
}

.project-nav-block > button.active {
  background: #dceaf4;
  border-color: #b9cfde;
  color: #24465c;
}

.project-nav-title {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.project-nav-title strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.project-caret,
.project-caret-placeholder {
  min-height: 24px;
  color: #a5b0b8;
  font-size: 21px;
}

.module-nav {
  gap: 4px;
  padding: 8px 0 14px 18px;
  border-top: 0;
  border-left: 2px solid #c8d4dc;
  margin-left: 10px;
}

.module-nav button {
  min-height: 40px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #edf2f5;
  border: 1px solid #d8e0e6;
  color: #405563;
}

.module-nav button:hover {
  background: #e3eaee;
  border-color: #cbd7de;
}

.module-nav button.active {
  background: #dceaf4;
  border-color: #b9cfde;
  color: #24465c;
}

.module-item {
  grid-template-columns: 18px 24px minmax(0, 1fr) auto;
  gap: 7px;
  padding-left: 10px !important;
}

.module-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.module-item-row.has-action {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.module-section-caret,
.module-section-spacer {
  width: 18px;
  min-height: 22px;
  color: #a7b1b8;
  font-size: 18px;
}

.module-icon {
  width: 24px;
  min-height: 24px;
  color: #405563;
  font-size: 18px;
}

.module-text {
  min-width: 0;
}

.module-nav strong {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.module-nav small {
  display: none;
}

.module-count {
  color: #6e7f8b;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.module-nav button.module-add-drawing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.module-nav button.module-add-drawing:hover {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.module-file-list {
  gap: 0;
  padding: 2px 0 8px 18px;
  border-left: 1px solid #d4dde4;
  margin-left: 11px;
}

.module-file-branch {
  position: relative;
  padding-left: calc(var(--tree-indent, 0px) * 0.82);
}

.module-file-branch.is-root-branch {
  margin-top: 0;
  padding: 9px 0 8px;
  border-top: 1px solid #d7e0e7 !important;
  background: transparent;
}

.module-file-branch.is-root-branch:first-child {
  border-top: 0;
}

.module-file-branch.is-child-branch {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(169, 182, 192, 0.42) !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.module-file-branch.is-child-branch::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -14px;
  width: 12px;
  height: 1px;
  background: #c4cfd7;
}

.module-file-row {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px;
  padding-right: 6px;
  border-radius: 8px;
  padding-top: 1px;
  padding-bottom: 1px;
}

.module-file-caret,
.module-file-caret-spacer {
  min-height: 32px;
  color: #a7b1b8;
}

.module-file-caret {
  font-size: 20px;
}

.module-file-item {
  grid-template-columns: 12px minmax(0, 1fr);
  min-height: 30px !important;
  padding: 6px 8px !important;
  border-left: 0 !important;
  border-radius: 9px !important;
  color: #405563 !important;
  font-size: 12px;
  font-weight: 400;
  background: transparent !important;
}

.module-file-item:hover,
.module-file-item.active {
  background: #e5e8eb !important;
}

.module-file-item.is-child {
  background: rgba(226, 233, 238, 0.72) !important;
  border-left: 0 !important;
}

.module-file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-file-source {
  margin-top: 3px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.module-file-source.source-client {
  background: #d9ecff !important;
  color: #12527f !important;
  box-shadow: inset 0 0 0 1px #9fcdf4;
}

.module-file-source.source-factory {
  background: #d9ecff !important;
  color: #12527f !important;
  box-shadow: inset 0 0 0 1px #9fcdf4;
}

.module-file-source.source-architect {
  background: #d9ecff !important;
  color: #12527f !important;
  box-shadow: inset 0 0 0 1px #9fcdf4;
}

.module-file-source.source-install {
  background: #d9ecff !important;
  color: #12527f !important;
  box-shadow: inset 0 0 0 1px #9fcdf4;
}

.module-file-children {
  margin-left: 11px;
  padding: 3px 0 2px 18px;
  border-left: 1px solid #c8d2da;
  background: transparent !important;
  border-radius: 0;
}

.module-file-children::before {
  display: none;
}

.module-file-actions {
  grid-template-columns: repeat(4, minmax(52px, auto));
  justify-content: start;
  gap: 4px;
  margin: 4px 6px 2px 29px;
  padding-left: 28px;
}

.module-file-actions button {
  min-width: 52px;
  min-height: 32px;
  border-radius: 4px;
  padding: 5px 7px;
  color: #536875;
  border-color: #d7dde2;
  background: #f8fafb;
  font-size: 11px;
}

.task-compose-form textarea {
  min-height: 180px;
  line-height: 1.5;
}

.task-compose-form {
  position: relative;
  z-index: 2;
}

.service-checklist-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.service-checklist-copy {
  min-width: 0;
}

.service-checklist-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.service-checklist-card,
.service-checklist-form {
  position: relative;
  z-index: 3;
}

.service-task-list-item {
  width: 100%;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid #c9ddea;
  border-radius: 12px;
  background: linear-gradient(180deg, #f2f9fe 0%, #e8f3fb 100%);
  color: #28485f;
  text-align: left;
  box-shadow:
    0 6px 14px rgba(66, 121, 158, 0.08),
    0 0 0 1px rgba(132, 183, 216, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.service-task-list-item:hover {
  background: linear-gradient(180deg, #f8fcff 0%, #eef7fd 100%);
  border-color: #aed1e8;
  color: #213f55;
  box-shadow:
    0 10px 20px rgba(66, 121, 158, 0.12),
    0 0 0 1px rgba(77, 159, 214, 0.1);
}

.service-task-list-item.active {
  background: linear-gradient(180deg, #eaf7ff 0%, #dcedf9 100%);
  border-color: #79b8e3;
  color: #18384f;
  box-shadow:
    0 0 0 2px rgba(77, 159, 214, 0.22),
    0 14px 28px rgba(77, 159, 214, 0.2),
    0 0 26px rgba(103, 188, 241, 0.22);
}

.service-task-list-item .item-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.service-task-list-item .muted {
  font-size: 13px;
}

@media (min-width: 701px) {
  .service-task-list-item {
    padding: 16px 18px;
    border-radius: 16px;
    border-color: #bfd7e8;
    background:
      linear-gradient(180deg, #f3faff 0%, #e8f3fb 100%);
    box-shadow:
      0 12px 24px rgba(41, 80, 108, 0.1),
      0 0 0 1px rgba(124, 171, 201, 0.1);
  }

  .service-task-list-item:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #fbfeff 0%, #eef7fd 100%);
    border-color: #8fc2e3;
    box-shadow:
      0 16px 30px rgba(41, 80, 108, 0.14),
      0 0 0 1px rgba(77, 159, 214, 0.14);
  }

  .service-task-list-item.active {
    background: linear-gradient(180deg, #edf8ff 0%, #d9edf9 100%);
    border-color: #67afe1;
    box-shadow:
      0 0 0 2px rgba(77, 159, 214, 0.24),
      0 18px 34px rgba(55, 110, 148, 0.18),
      0 0 30px rgba(103, 188, 241, 0.2);
  }

  .service-task-list-item .item-title {
    font-size: 17px;
  }

  .service-task-list-item .muted {
    font-size: 13px;
  }
}

.service-recipient-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}

.service-recipient-grid .checkbox-row {
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.service-recipient-grid .checkbox-row:has(input:checked) {
  border-color: #78b9e6;
  background: linear-gradient(180deg, #f4fbff 0%, #e3f2fc 100%);
  box-shadow:
    0 0 0 1px rgba(77, 159, 214, 0.18),
    0 8px 18px rgba(77, 159, 214, 0.16);
}

.service-recipient-grid .checkbox-row input {
  margin-top: 2px;
  transform: scale(1.05);
}

.service-recipient-grid .checkbox-row span {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.service-recipient-grid .checkbox-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

@media (max-width: 700px) {
  .service-task-list-item {
    padding: 10px 12px;
  }

  .service-task-list-item .item-title {
    font-size: 14px;
  }

  .service-task-list-item .muted {
    font-size: 12px;
  }

  .service-recipient-grid {
    gap: 5px;
  }

  .service-recipient-grid .checkbox-row {
    gap: 8px;
    padding: 7px 9px;
  }

  .service-recipient-grid .checkbox-row span {
    font-size: 13px;
  }

  .service-recipient-grid .checkbox-row small {
    font-size: 11px;
  }
}

.service-email-body {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7fbfe;
  border: 1px solid #d9e8f2;
  color: #284052;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}

.task-compose-form input[type="file"] {
  padding: 12px;
  background: #f7f9fa;
}

.modal-panel:has(.task-compose-form) {
  width: min(820px, 100%);
}

.module-file-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
}

.content {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

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

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.workspace {
  padding: 22px 24px 36px;
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow: visible;
}

.project-card-panel {
  display: grid;
  gap: 14px;
}

.project-tab-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
}

.project-tab-card .tab-body {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.translation-panel {
  display: grid;
  gap: 14px;
}

.translation-panel.translation-panel-simple {
  min-height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
}

.translation-upload-card {
  display: grid;
  place-items: center;
  min-height: 360px;
  align-content: center;
  gap: 14px;
}

.translation-upload-card > label:not(.translation-upload-field) {
  width: min(460px, 100%);
  gap: 8px;
}

.translation-upload-card > label:not(.translation-upload-field) span {
  color: var(--text);
  font-weight: 700;
}

.translation-upload-field {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.translation-upload-field.is-disabled {
  cursor: not-allowed;
}

.translation-upload-field input {
  display: none;
}

.translation-upload-field span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 64px;
  padding: 0 24px;
  border-radius: 16px;
  background: #5aa0d3;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.translation-upload-field.is-disabled span {
  background: #bfd0dc;
  color: #5d7382;
}

.translation-selected-file {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.translation-upload-card .upload-progress {
  width: min(560px, 100%);
}

.translation-file-list {
  align-content: end;
}

.translation-group-card {
  display: grid;
  gap: 14px;
}

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

.translation-group-files {
  display: grid;
  gap: 10px;
}

.translation-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.translation-group-files .translation-file-row:first-child {
  padding-top: 0;
  border-top: 0;
}

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

.translation-intro-card h3 {
  margin: 0;
}

.translation-list {
  display: grid;
  gap: 14px;
}

.translation-card {
  display: grid;
  gap: 12px;
}

.translation-preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
  gap: 10px;
}

.translation-preview-thumb {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.translation-preview-thumb img {
  width: 100%;
  aspect-ratio: 0.74;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f6f8f9;
}

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

.translation-output {
  margin: 0;
  white-space: pre-wrap;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  line-height: 1.5;
  max-height: 420px;
  overflow: auto;
}

.overview-grid {
  display: grid;
  gap: 16px;
}

.overview-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.overview-card-wide {
  min-width: 0;
}

.calendar-shell {
  display: grid;
  gap: 12px;
}

.calendar-beta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f5ff;
  color: #216494;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-hero h3 {
  margin: 0;
}

.calendar-hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-hero-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.calendar-toolbar-card {
  gap: 8px;
  padding: 12px;
  position: sticky;
  top: 10px;
  z-index: 12;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.calendar-nav-group,
.calendar-view-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-toolbar-title {
  text-align: center;
}

.calendar-toolbar-title h3 {
  margin: 0;
  font-size: 20px;
}

.calendar-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  gap: 14px;
}

.calendar-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-project-optional {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfd;
}

.calendar-project-optional summary {
  cursor: pointer;
  font-weight: 700;
  color: #2c5672;
}

.calendar-project-optional[open] summary {
  margin-bottom: 10px;
}

.calendar-board-card {
  gap: 0;
  overflow: hidden;
  max-width: 100%;
}

.calendar-month-stack {
  display: grid;
  gap: 18px;
}

.calendar-month-section {
  border: 1px solid #bdd4e4;
  border-radius: 18px;
  overflow: hidden;
  background: #f8fbfe;
  box-shadow: 0 10px 24px rgba(31, 78, 110, 0.08);
}

.calendar-month-section.is-current {
  border-color: #8ec0df;
  background: #fff;
  box-shadow: 0 14px 28px rgba(50, 118, 164, 0.12);
}

.calendar-month-section-head {
  display: grid;
  gap: 10px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, #eef5fa 0%, #e4edf4 100%);
}

.calendar-month-section.is-current .calendar-month-section-head {
  background: linear-gradient(180deg, #fbfeff 0%, #f4f9fc 100%);
}

.calendar-month-section-line {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4a97c8 0%, #7fbce0 100%);
}

.calendar-month-section-head h4 {
  margin: 0;
  color: #1f3f56;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.calendar-mobile-month-list {
  display: grid;
  gap: 0;
}

.calendar-mobile-day {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.calendar-mobile-day.is-today {
  background: linear-gradient(180deg, #eef8ff 0%, #ffffff 42%);
  box-shadow: inset 4px 0 0 #6ab6e6, 0 0 0 1px rgba(106, 182, 230, 0.12);
}

.calendar-mobile-day-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-mobile-day-copy {
  display: grid;
  gap: 2px;
}

.calendar-mobile-day-copy strong {
  font-size: 14px;
  color: #223645;
}

.calendar-mobile-day-copy span {
  font-size: 12px;
  color: #6c8191;
}

.calendar-mobile-day-events {
  display: grid;
  gap: 8px;
}

.calendar-weekday-row {
  display: grid;
  grid-template-columns: 86px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}

.calendar-weekday-row div {
  padding: 12px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #607280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-week-number-head,
.calendar-week-number {
  border-right: 1px solid var(--line);
  background: #f8fbfd;
}

.calendar-week-number-head {
  display: grid;
  place-items: center;
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

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

.calendar-year-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.calendar-year-month-title {
  justify-self: start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #223645;
  font-size: 16px;
  font-weight: 700;
}

.calendar-year-month-title:hover {
  background: transparent;
  color: var(--accent-dark);
}

.calendar-year-weekdays,
.calendar-year-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-year-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #6b7d8c;
}

.calendar-year-grid {
  gap: 4px;
}

.calendar-year-day {
  min-height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #e2e9f0;
  background: #fff;
  color: #223645;
  font-size: 12px;
}

.calendar-year-day.is-outside {
  color: #a3b0bb;
  background: #f8fafc;
}

.calendar-year-day.has-events {
  border-color: #b8d8ee;
  background: #f3f9fd;
}

.calendar-year-day.is-today {
  border-color: #76b8e1;
  box-shadow: inset 0 0 0 1px rgba(118, 184, 225, 0.2);
}

.calendar-month-row {
  display: grid;
  grid-template-columns: 86px repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #d6dde5;
  box-shadow: inset 0 -1px 0 #e7edf3;
}

.calendar-month-row:last-child {
  border-bottom: 0;
  box-shadow: none;
}

.calendar-month-cell {
  min-height: 112px;
  padding: 8px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.calendar-month-cell:last-child {
  border-right: 0;
}

.calendar-week-number {
  display: grid;
  place-items: start center;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6f8191;
}

.calendar-month-cell.is-outside {
  background: #f8fafc;
}

.calendar-month-cell.is-today {
  background: linear-gradient(180deg, #eef8ff 0%, #ffffff 30%);
  box-shadow: inset 0 0 0 1px rgba(106, 182, 230, 0.18);
}

.calendar-date-badge {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #223645;
  font-weight: 700;
}

.calendar-month-events {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.calendar-month-event,
.calendar-allday-event,
.calendar-time-event {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 16px rgba(30, 56, 82, 0.05);
}

.calendar-month-event span,
.calendar-time-event span {
  font-size: 11px;
  color: #607280;
}

.calendar-month-event strong,
.calendar-time-event strong {
  font-size: 12px;
  color: #223645;
}

.calendar-more-link {
  justify-self: start;
}

.calendar-time-grid {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 720px;
}

.calendar-time-axis {
  border-right: 1px solid var(--line);
  background: #fbfdfe;
}

.calendar-time-axis-head {
  min-height: 52px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: #607280;
  text-transform: uppercase;
}

.calendar-time-axis-body {
  display: grid;
  grid-template-rows: repeat(18, 48px);
}

.calendar-time-axis-body div {
  padding: 0 10px;
  transform: translateY(-9px);
  font-size: 12px;
  color: #789;
}

.calendar-time-columns {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-time-grid-day .calendar-time-columns {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-time-column {
  display: grid;
  grid-template-rows: 52px auto 1fr;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.calendar-time-column:last-child {
  border-right: 0;
}

.calendar-time-head {
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-mobile-day.is-today .calendar-date-badge,
.calendar-month-cell.is-today .calendar-date-badge {
  background: linear-gradient(180deg, #e8f6ff 0%, #d7eefc 100%);
  border-color: #73bee8;
  color: #1e5b84;
  box-shadow:
    0 0 0 1px rgba(115, 190, 232, 0.2),
    0 0 18px rgba(115, 190, 232, 0.2);
}

.calendar-time-head.is-today {
  background: #eef7ff;
}

.calendar-allday-lane {
  display: grid;
  gap: 6px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: #fcfdff;
  min-height: 54px;
}

.calendar-allday-empty {
  font-size: 12px;
  color: #8a99a6;
}

.calendar-time-lane {
  position: relative;
  min-height: 864px;
  background:
    repeating-linear-gradient(
      to bottom,
      #ffffff 0,
      #ffffff 47px,
      #edf2f6 48px
    );
}

.calendar-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(127, 145, 158, 0.25);
}

.calendar-hour-line span {
  position: absolute;
  right: 8px;
  top: -10px;
  padding: 0 4px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  color: #90a0ad;
}

.calendar-time-event {
  position: absolute;
  left: 8px;
  right: 8px;
  overflow: hidden;
}

.calendar-main-column,
.calendar-side-column,
.calendar-group-list,
.calendar-event-list,
.calendar-sidebar-card,
.calendar-feature-list {
  display: grid;
  gap: 12px;
}

.calendar-form-card,
.calendar-day-group {
  gap: 14px;
}

.calendar-day-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.calendar-day-head h3 {
  margin: 0;
}

.calendar-event-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 56, 82, 0.04);
}

.calendar-color-blue {
  border-left-color: #4d9fd6;
}

.calendar-color-green {
  border-left-color: #46a36f;
}

.calendar-color-amber {
  border-left-color: #d8a32f;
}

.calendar-color-gold {
  border-left-color: #c79a1b;
}

.calendar-color-red {
  border-left-color: #c85b4b;
}

.calendar-color-violet {
  border-left-color: #8c67cf;
}

.calendar-color-slate {
  border-left-color: #6e8090;
}

.calendar-event-head,
.calendar-event-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.calendar-sidebar-card {
  align-content: start;
  padding: 12px;
}

.calendar-upcoming-item .item-head {
  align-items: center;
}

.calendar-feature-list {
  color: #425664;
  font-size: 13px;
}

.calendar-feature-list div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
}

.history-panel {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.history-panel h2 {
  margin: 0;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.card-title-row h2 {
  margin: 0 0 4px;
}

.email-images-card {
  gap: 16px;
}

.email-images-group {
  display: grid;
  gap: 12px;
}

.card-section-heading {
  display: grid;
  gap: 4px;
}

.card-section-heading h3 {
  margin: 0;
}

.email-images-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.email-images-upload {
  gap: 12px;
  cursor: pointer;
}

.email-images-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.email-images-upload-row {
  display: grid;
  gap: 8px;
}

.email-images-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 120px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.email-images-upload-hint {
  padding-top: 2px;
}

.email-images-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.email-image-thumb {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.email-image-select {
  justify-content: flex-start;
}

.email-image-thumb-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #edf5fa;
}

.email-image-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.email-image-thumb-body {
  display: grid;
  gap: 6px;
}

.email-image-thumb-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panorama-upload-form {
  border-color: #9fc8e4;
  background: linear-gradient(180deg, #f8fcff 0%, #eef7fd 100%);
}

.panorama-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.module-image-upload-button {
  width: 100%;
  justify-content: center;
}

.module-image-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.module-image-thumb {
  position: relative;
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 0;
  border: 1px solid #c8dceb;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  background-color: #e7f2f9;
  overflow: hidden;
}

.module-image-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 19, 29, 0.04) 0%, rgba(8, 19, 29, 0.16) 100%);
}

.module-image-thumb:hover,
.module-image-thumb.active {
  border-color: #4d9fd6;
  box-shadow: 0 0 0 2px rgba(77, 159, 214, 0.18);
}

.module-image-thumb-badge {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.52);
  pointer-events: none;
}

.panorama-image-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #bfd9ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(41, 94, 131, 0.08);
}

.panorama-image-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 2 / 1;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  background-color: #e7f2f9;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
}

.panorama-image-preview:hover {
  background-color: #e7f2f9;
}

.panorama-image-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 19, 29, 0.06) 0%, rgba(8, 19, 29, 0.18) 100%);
}

.panorama-image-badge {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
  text-shadow: 0 4px 18px rgba(8, 19, 29, 0.22);
  pointer-events: none;
}

.panorama-image-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.panorama-modal-backdrop {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: rgba(11, 24, 38, 0.84);
  overflow: hidden;
}

.panorama-modal {
  width: 100dvw;
  height: 100dvh;
  max-width: 100dvw;
  max-height: 100dvh;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 14px;
  border-radius: 0;
  border: 0;
  margin-top: 0;
  box-shadow: none;
}

.panorama-modal-toolbar {
  align-items: start;
}

.panorama-floating-actions {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px) + 12px);
  right: max(12px, env(safe-area-inset-right, 0px) + 12px);
  z-index: 10050;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(92vw, 560px);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 180ms ease;
}

.panorama-floating-actions .secondary {
  background: rgba(238, 247, 253, 0.88);
  border-color: rgba(159, 200, 228, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(8, 19, 29, 0.24);
}

.panorama-stage {
  min-height: 0;
  height: calc(100dvh - 116px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #b8d3e6;
  background: #eef7fd;
}

.panorama-viewer-host {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.panorama-stage.vr-split {
  background: #08131d;
}

.panorama-vr-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 100%;
}

.panorama-vr-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.vr-eye {
  min-width: 0;
}

.panorama-modal-foot {
  text-align: center;
}

.panorama-modal.is-immersive {
  padding: 0;
  gap: 0;
  background: #08131d;
}

.panorama-modal.is-immersive .panorama-modal-toolbar,
.panorama-modal.is-immersive .panorama-modal-foot {
  display: none;
}

.panorama-modal.is-immersive .panorama-stage,
.panorama-modal.is-immersive .panorama-viewer-host {
  height: 100dvh;
  border-radius: 0;
  border: 0;
}

.panorama-modal:fullscreen,
.panorama-modal:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  background: #08131d;
}

.panorama-modal:fullscreen .panorama-stage,
.panorama-modal:fullscreen .panorama-viewer-host,
.panorama-modal:-webkit-full-screen .panorama-stage,
.panorama-modal:-webkit-full-screen .panorama-viewer-host {
  height: 100vh;
  border-radius: 0;
  border: 0;
}

@media (max-width: 900px) {
  .panorama-modal {
    width: 100dvw;
    height: 100dvh;
    max-height: 100dvh;
    padding: 10px;
  }

  .panorama-modal .toolbar,
  .panorama-modal .row-actions {
    flex-wrap: wrap;
  }

  .panorama-floating-actions {
    left: max(10px, env(safe-area-inset-left, 0px) + 10px);
    right: max(10px, env(safe-area-inset-right, 0px) + 10px);
    justify-content: stretch;
  }

  .panorama-modal.is-immersive .panorama-floating-actions {
    opacity: 0;
    pointer-events: none;
  }

  .panorama-modal.is-immersive .panorama-floating-actions.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .panorama-floating-actions .secondary {
    flex: 1 1 140px;
    min-height: 46px;
  }

  @media (orientation: landscape) {
    .panorama-floating-actions {
      top: max(8px, env(safe-area-inset-top, 0px) + 8px);
      left: max(8px, env(safe-area-inset-left, 0px) + 8px);
      right: max(8px, env(safe-area-inset-right, 0px) + 8px);
      justify-content: flex-end;
      gap: 6px;
    }

    .panorama-floating-actions .secondary {
      flex: 0 1 auto;
      min-height: 38px;
      padding: 8px 10px;
    }
  }

  .panorama-stage,
  .panorama-viewer-host {
    height: calc(100dvh - 120px);
    min-height: 0;
  }

  .panorama-modal.is-immersive,
  .panorama-modal.is-immersive .panorama-stage,
  .panorama-modal.is-immersive .panorama-viewer-host {
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
    padding: 0;
    border-radius: 0;
    border: 0;
  }

  .panorama-image-grid {
    grid-template-columns: 1fr;
  }
}

.project-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 13px;
}

.stat,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat {
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 25px;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(420px, var(--center-width, 760px)) 10px minmax(260px, var(--history-width, 360px));
  gap: 18px;
  align-items: stretch;
  min-height: 0;
}

.main-grid.preview-open {
  grid-template-columns: minmax(420px, var(--center-width, 760px)) 10px minmax(260px, var(--history-width, 360px));
  padding-right: 0;
}

.main-grid.history-collapsed,
.main-grid.preview-open.history-collapsed {
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
}

.main-grid-center {
  min-width: 0;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: auto;
}

.content-resizer {
  min-height: 100%;
  align-self: stretch;
}

.content-resizer.is-hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
  width: 0;
}

.main-grid.preview-open .drawing-main {
  grid-template-columns: 1fr;
}

.main-grid.preview-open .drawing-status {
  width: min(100%, 280px);
}

.main-grid.preview-open .drawing-title-row {
  align-items: flex-start;
}

.main-grid.preview-open .drawing-title-row .item-title,
.main-grid.preview-open .drawing-meta,
.main-grid.preview-open .drawing-actions {
  min-width: 0;
}

.card {
  min-width: 0;
  padding: 16px;
}

.history-dock {
  position: sticky;
  top: 22px;
  align-self: start;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  max-height: calc(100vh - 44px);
}

.history-dock.is-closed {
  grid-template-columns: 34px 0;
  gap: 0;
}

.history-toggle {
  position: sticky;
  top: 22px;
  min-height: 84px;
  height: 84px;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #edf5fa 100%);
  border: 1px solid #72c6f5;
  color: #214563;
  box-shadow:
    0 0 0 1px rgba(114, 198, 245, 0.35),
    0 0 16px rgba(114, 198, 245, 0.22);
}

.history-toggle-chevron {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
}

.history-column {
  position: sticky;
  top: 22px;
  max-height: calc(100vh - 44px);
  overflow: auto;
  min-width: 0;
}

.history-dock.is-closed .history-column {
  display: none;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  padding: 0;
}

.history-column h2 {
  font-size: 18px;
}

.history-column .item {
  padding: 10px;
}

.history-column .item-title {
  font-size: 13px;
}

.history-column .muted,
.history-column .pill {
  font-size: 11px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.35fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.settings-card {
  min-width: 0;
}

.card h2,
.card h3 {
  margin: 0 0 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.toolbar > :first-child {
  min-width: 0;
}

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

.tabs button {
  color: var(--ink);
  background: #e5eaee;
}

.tabs button.active {
  color: #fff;
  background: var(--accent);
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.item-head > :first-child {
  min-width: 0;
  flex: 1 1 320px;
}

.item-title {
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.befaring-panel {
  display: grid;
  gap: 12px;
}

.contact-overview-section {
  display: grid;
  gap: 10px;
}

.contact-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.contact-overview-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe2e8;
  border-radius: 10px;
  background: #fbfcfd;
}

.contact-overview-card h4 {
  margin: 0;
  font-size: 15px;
  color: #314552;
}

.contact-overview-primary {
  background: linear-gradient(180deg, #f8fbfd, #ffffff);
}

.contact-overview-lines,
.contact-overview-list {
  display: grid;
  gap: 8px;
}

.contact-overview-lines div,
.contact-line {
  color: #425664;
  font-size: 13px;
  line-height: 1.45;
}

.contact-line {
  padding-top: 8px;
  border-top: 1px solid #edf1f4;
}

.contact-line:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-line-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-line-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  color: #60707d;
}

.contact-line-meta a,
.contact-overview-lines a {
  color: var(--accent-dark);
  text-decoration: none;
}

.contact-line-meta a:hover,
.contact-overview-lines a:hover {
  text-decoration: underline;
}

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

.befaring-grid input,
.befaring-grid textarea {
  padding: 8px 10px;
}

.befaring-grid textarea {
  min-height: 74px;
}

.befaring-grid .wide {
  grid-column: 1 / -1;
}

.befaring-attachments {
  display: grid;
  gap: 10px;
}

.share-panel {
  display: grid;
  gap: 14px;
}

.share-upload-card {
  display: grid;
  gap: 14px;
}

.share-upload-button {
  width: 100%;
  justify-content: center;
}

.share-history-actions {
  display: flex;
  justify-content: flex-end;
}

.share-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.share-link-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe2e8;
  border-radius: 10px;
  background: #fbfcfd;
}

.share-link-box input[readonly] {
  background: #fff;
  color: #314552;
}

.share-link-actions,
.share-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.share-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.share-history-head h3 {
  margin: 0 0 4px;
}

.share-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.share-file-actions {
  justify-content: flex-end;
}

.empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  padding: 20px;
}

.error {
  color: var(--warn);
  min-height: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

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

.drawing-tree {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.drawing-node {
  position: relative;
  padding-top: 6px;
}

.drawing-root + .drawing-root {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.7) inset;
}

.drawing-node::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 6px;
  bottom: 0;
  border-left: 2px solid var(--line);
}

.drawing-root + .drawing-root::before {
  top: 18px;
}

.drawing-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.drawing-main > div:first-child {
  min-width: 0;
}

.drawing-status {
  align-self: start;
}

.drawing-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
}

.drawing-actions a,
.drawing-actions button,
.drawing-actions .muted {
  flex: 0 0 auto;
}

.drawing-actions button {
  min-height: 32px;
  padding: 6px 10px;
}

.status-select {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.status-neutral {
  background: #fff;
  border-color: var(--line);
}

.status-approved {
  border-color: #b8d9c1;
  background: #edf7ef;
  color: #2e5d3a;
}

.status-rework {
  border-color: #e7c49d;
  background: #fff3e6;
  color: #805019;
}

.status-rejected {
  border-color: #e1aaa6;
  background: #fdeeed;
  color: #823a35;
}

.status-waiting {
  border-color: #d7c891;
  background: #faf5df;
  color: #6b5b1f;
}

.drawing-main.status-approved,
.drawing-main.status-rework,
.drawing-main.status-rejected,
.drawing-main.status-waiting {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.drawing-node-old::before {
  border-left-style: dashed;
  opacity: 0.6;
}

.drawing-old-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  background: #eef1f4;
  opacity: 0.82;
}

.drawing-old-row .drawing-title-row {
  flex: 1 1 260px;
}

.drawing-old-row .item-title,
.drawing-old-row .drawing-title-link,
.drawing-old-row .muted {
  color: #66707b;
}

.drawing-old-row .drawing-title-link {
  text-decoration-color: #a7b0b9;
}

.module-file-item.old-version {
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 5px 8px !important;
  min-height: 0;
  background: #eef1f4 !important;
  border-color: #d7dde4 !important;
  color: #68727c !important;
  opacity: 0.82;
  font-size: 11px !important;
}

.module-file-item.old-version .module-file-name,
.module-file-item.old-version .module-file-source {
  color: #68727c !important;
}

.drawing-old-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.drawing-title-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.drawing-title-row .item-title {
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tree-toggle,
.tree-toggle-placeholder {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.tree-toggle {
  min-height: 26px;
  padding: 0;
  color: var(--ink);
  background: #e2e7ec;
  border: 1px solid var(--line);
}

.tree-toggle:hover {
  color: #fff;
  background: var(--accent);
}

.drawing-title-link {
  color: var(--accent-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.drawing-title-link:hover {
  text-decoration: underline;
}

.drawing-node.is-tree-selected .drawing-main,
.drawing-node.is-tree-selected .drawing-old-row {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: #dff1fb;
}

.preview-card {
  position: static;
  width: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-content: start;
  overflow: visible;
  box-shadow: none;
}

.preview-card .toolbar {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.preview-card .toolbar > :first-child {
  flex: 1 1 320px;
}

.preview-card h2,
.preview-card h3,
.preview-card .muted {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.preview-media {
  position: relative;
}

.preview-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(238, 248, 254, 0.88);
  color: var(--accent-dark);
  font-weight: 700;
}

.preview-media:not(.is-loading) .preview-loader {
  display: none;
}

.project-image-preview-media {
  overflow: hidden;
}

.project-image-nav-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 56px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: rgba(15, 35, 52, 0.72);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(15, 35, 52, 0.24);
}

.project-image-nav-button.is-prev {
  left: 12px;
}

.project-image-nav-button.is-next {
  right: 12px;
}

.project-image-nav-button:disabled {
  opacity: 0.25;
}

.mobile-preview-backdrop {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.mobile-preview-modal {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  border-radius: 0;
  padding: 14px;
  overflow: auto;
}

.mobile-preview-modal .preview-card {
  border: 0;
  box-shadow: none;
  padding: 0;
}

.preview-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.preview-file-name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-rename-toggle {
  min-width: 28px;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 999px;
}

.preview-empty {
  min-height: calc(100vh - 170px);
  place-items: center;
}

.drawing-preview-frame {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.drawing-preview-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
  padding: 8px;
  overflow: visible;
}

.drawing-preview-link.panorama-preview-open {
  width: 100%;
  color: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

.drawing-preview-link.panorama-preview-open:hover {
  background: #f7f9fb;
}

.drawing-preview-image {
  display: block;
  width: 100%;
  height: auto;
}

.drawing-comments {
  display: grid;
  gap: 12px;
}

.drawing-comments h3 {
  margin: 0;
}

.drawing-comment-item {
  display: grid;
  gap: 8px;
}

.comment-focus {
  outline: 2px solid rgba(31, 111, 235, 0.35);
  outline-offset: 6px;
  border-radius: 10px;
  background: rgba(31, 111, 235, 0.06);
}

.drawing-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.comment-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.comment-text.is-collapsed {
  max-height: 10.2em;
  overflow: hidden;
  position: relative;
}

.comment-text.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.2em;
  background: linear-gradient(to bottom, rgba(247, 248, 250, 0), #f7f8fa 80%);
  pointer-events: none;
}

.comment-toggle {
  justify-self: flex-start;
  padding-left: 0;
  padding-right: 0;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  max-width: min(100%, 780px);
  position: relative;
  z-index: 2;
}

.preview-actions .status-select {
  width: min(240px, 100%);
}

.preview-file-meta .drawing-source-select {
  width: auto;
  min-width: 0;
  max-width: max-content;
  display: inline-flex;
  flex: 0 0 auto;
  padding-right: 34px;
}

.preview-actions button,
.preview-actions .button-link {
  min-height: 34px;
  padding: 7px 10px;
}

.button-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 9px 14px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
}

.secondary-link {
  color: var(--ink);
  background: #e2e7ec;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  background: rgba(32, 36, 42, 0.34);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-panel {
  width: min(620px, 100%);
  margin-top: 24px;
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 20px 55px rgba(20, 30, 36, 0.24);
  overflow: auto;
  overscroll-behavior: contain;
}

.modal-backdrop.panorama-modal-backdrop {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: rgba(11, 24, 38, 0.84);
  overflow: hidden;
}

.modal-panel.panorama-modal {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin-top: 0;
  padding: 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.modal-panel.panorama-modal.is-immersive {
  padding: 0;
}

body.crm-modal-open {
  overflow: hidden;
}

.crm-toast-host {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  pointer-events: none;
}

.crm-toast {
  min-width: min(320px, calc(100vw - 32px));
  max-width: min(720px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(191, 222, 244, 0.78);
  background: rgba(70, 152, 214, 0.88);
  color: #fff;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(32, 62, 84, 0.22);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.crm-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.crm-toast-error {
  background: rgba(181, 72, 72, 0.9);
  border-color: rgba(234, 182, 182, 0.78);
}

.crm-toast-success {
  background: rgba(70, 152, 214, 0.88);
}

.notifications-modal {
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.drawing-modal {
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  gap: 14px;
}

.drawing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 5px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1f2930;
  background: #e8edf2;
}

.source-client {
  background: #dcebf8;
  color: #16456d;
}

.source-factory {
  background: #dcebf8;
  color: #16456d;
}

.source-architect {
  background: #dcebf8;
  color: #16456d;
}

.source-install {
  background: #dcebf8;
  color: #16456d;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #5e6873;
  background: #dfe4e9;
  border: 1px solid #c5cdd5;
  letter-spacing: 0.01em;
}

.task-reminder {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.task-recipient-picker {
  display: grid;
  gap: 8px;
}

.task-recipient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-recipient-chip {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
}

.update-feed-image {
  display: block;
  width: 100%;
  max-width: 860px;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 32px rgba(18, 59, 95, 0.10);
}

.update-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.update-attachment-card {
  display: block;
  text-decoration: none;
}

.update-attachment-file {
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfd;
  color: var(--text);
}

.update-attachment-file strong,
.update-attachment-file span {
  display: block;
}

.update-attachment-file span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.task-actions button {
  min-height: 30px;
  padding: 5px 9px;
}

.reminder-error {
  color: #823a35;
  background: #fdeeed;
}

.notification-unread {
  border-color: var(--accent);
  background: #f1fbf9;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.project-card {
  min-height: 174px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

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

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

  .pane-resizer {
    display: none;
  }

  .sidebar {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    height: auto;
    resize: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .shell.dalux-layout .sidebar {
    grid-template-columns: 1fr;
  }

  .shell.dalux-layout .sidebar-rail {
    border-right: 0;
    border-bottom: 1px solid #d8e0e6;
  }

  .shell.dalux-layout .sidebar-section-switch {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shell.dalux-layout {
    grid-template-columns: 1fr;
    min-height: 100vh;
    background: linear-gradient(180deg, #eef6fb 0%, #e7f0f6 100%);
  }

  .shell.dalux-layout:not(.mobile-content-focus) .content,
  .shell.dalux-layout:not(.mobile-content-focus) .pane-resizer {
    display: none;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    background: transparent;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-rail {
    gap: 12px;
    padding: 16px 16px 10px;
    background: transparent;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .brand-button {
    border-bottom: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: none;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .brand-button:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
  }

  .shell.dalux-layout .mobile-topbar {
    align-items: center;
  }

  .shell.dalux-layout .mobile-brand-button,
  .shell.dalux-layout .mobile-brand-button.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .brand-logo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    padding: 6px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.98), rgba(216, 238, 250, 0.96));
    box-shadow:
      inset 0 0 0 1px rgba(114, 198, 245, 0.42),
      0 0 18px rgba(114, 198, 245, 0.28);
  }

  .shell.dalux-layout:not(.mobile-content-focus) .brand-copy small {
    display: none;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .brand-copy {
    display: block;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .brand {
    gap: 12px;
    padding: 0 2px 6px;
    align-items: center;
  }

  .shell.dalux-layout .mobile-brand-button .brand-copy {
    display: block;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .brand-copy .brand-line {
    display: inline;
    font-size: 18px;
    line-height: 1;
    overflow-wrap: normal;
  }

  .shell.dalux-layout .mobile-brand-button .brand-copy .brand-line {
    overflow-wrap: normal;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .brand-copy .brand-line.brand-line-full {
    display: block;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
  }

  .shell.dalux-layout .mobile-brand-button .brand-copy .brand-line.brand-line-full {
    display: block;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .brand-copy .brand-line + .brand-line::before {
    content: "";
  }

  .shell.dalux-layout .mobile-account-toggle {
    min-height: 42px;
    max-width: 42vw;
    padding: 9px 12px;
    font-size: 14px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-section-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-section-switch button {
    min-height: 88px;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #edf5fa 100%);
    border: 1px solid #72c6f5;
    box-shadow:
      0 0 0 1px rgba(114, 198, 245, 0.45),
      0 0 18px rgba(114, 198, 245, 0.32),
      0 10px 24px rgba(86, 123, 146, 0.12);
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-section-switch button.active {
    background: linear-gradient(180deg, #dff0fb 0%, #cfe7f7 100%);
    border-color: #2fa8eb;
    color: #163d52;
    box-shadow:
      0 0 0 1px rgba(47, 168, 235, 0.6),
      0 0 26px rgba(47, 168, 235, 0.42),
      0 12px 28px rgba(67, 132, 170, 0.18);
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-section-switch button span {
    font-size: 13px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-section-switch button strong {
    font-size: 28px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-explorer {
    display: block;
    background: transparent;
    overflow: visible;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-explorer-head {
    padding: 14px 16px 10px;
    border-bottom: 0;
    background: transparent;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-explorer-head h2 {
    font-size: 22px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-explorer-head .secondary {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 12px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .sidebar-explorer-head #newServiceTaskSidebarBtn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 12px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav {
    display: grid;
    gap: 12px;
    padding: 0 16px 110px;
    overflow: visible;
    width: 100%;
    max-width: 100%;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-utility {
    margin: 0;
    padding: 0;
    border-bottom: 0;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-utility > button,
  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-block > button,
  .shell.dalux-layout:not(.mobile-content-focus) .sales-project-card {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 88px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #edf5fa 100%);
    border: 1px solid #72c6f5;
    box-shadow:
      0 0 0 1px rgba(114, 198, 245, 0.45),
      0 0 18px rgba(114, 198, 245, 0.32),
      0 10px 24px rgba(86, 123, 146, 0.12);
    text-align: left;
    overflow: hidden;
  }

  .mobile-project-copy {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
  }

  .mobile-project-copy strong {
    display: block;
    width: 100%;
    font-size: clamp(20px, 5.2vw, 30px);
    line-height: 1.16;
    white-space: normal;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: none;
  }

  .mobile-project-meta {
    display: block;
    width: 100%;
    font-size: clamp(14px, 3.4vw, 17px);
    line-height: 1.45;
    color: #668092;
    white-space: normal;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: none;
  }

  .shell.dalux-layout.mobile-list-only .project-nav-block,
  .shell.dalux-layout.mobile-list-only .sales-project-list {
    width: 100%;
    min-width: 0;
  }

  .shell.dalux-layout.mobile-list-only .project-nav-block > button,
  .shell.dalux-layout.mobile-list-only .sales-project-card {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .shell.dalux-layout.mobile-list-only .sales-project-card {
    gap: 8px;
  }

  .shell.dalux-layout.mobile-list-only .sales-project-card strong,
  .shell.dalux-layout.mobile-list-only .sales-project-card span {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-block > button.active,
  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-utility > button.active {
    background: linear-gradient(180deg, #dff0fb 0%, #cfe7f7 100%);
    border-color: #2fa8eb;
    color: #163d52;
    box-shadow:
      0 0 0 1px rgba(47, 168, 235, 0.6),
      0 0 26px rgba(47, 168, 235, 0.42),
      0 12px 28px rgba(67, 132, 170, 0.18);
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-block > button:hover,
  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-utility > button:hover {
    background: linear-gradient(180deg, #fdfefe 0%, #ebf6fd 100%);
    border-color: #56b9ef;
    color: #1f4c63;
    box-shadow:
      0 0 0 1px rgba(86, 185, 239, 0.48),
      0 0 22px rgba(86, 185, 239, 0.28),
      0 10px 22px rgba(67, 132, 170, 0.14);
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-title {
    display: block;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-title > span:last-child {
    display: grid;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-caret,
  .shell.dalux-layout:not(.mobile-content-focus) .project-caret-placeholder {
    display: none;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-title strong,
  .shell.dalux-layout:not(.mobile-content-focus) .sales-project-card strong {
    display: block;
    width: 100%;
    font-size: clamp(20px, 5.2vw, 30px);
    line-height: 1.16;
    white-space: normal;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: none;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-meta,
  .shell.dalux-layout:not(.mobile-content-focus) .sales-project-card span {
    display: block;
    width: 100%;
    font-size: clamp(14px, 3.4vw, 17px);
    line-height: 1.45;
    color: #668092;
    white-space: normal;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: none;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .module-nav {
    display: grid;
    gap: 10px;
    margin: -4px 0 4px;
    padding: 0 8px 4px;
    border-left: 0;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .module-nav button {
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7fbfe;
    border: 1px solid #72c6f5;
    box-shadow:
      0 0 0 1px rgba(114, 198, 245, 0.45),
      0 0 18px rgba(114, 198, 245, 0.32),
      0 10px 24px rgba(86, 123, 146, 0.12);
  }

  .shell.dalux-layout:not(.mobile-content-focus) .module-nav strong {
    font-size: 15px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .module-nav small {
    font-size: 12px;
    color: #6c8798;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .module-nav button.active,
  .shell.dalux-layout:not(.mobile-content-focus) .module-nav button:hover {
    border-color: #2fa8eb;
    box-shadow:
      0 0 0 1px rgba(47, 168, 235, 0.6),
      0 0 26px rgba(47, 168, 235, 0.42),
      0 12px 28px rgba(67, 132, 170, 0.18);
  }

  .shell.dalux-layout.mobile-content-focus .content {
    min-height: 100vh;
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .shell.dalux-layout.mobile-content-focus .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: rgba(245, 249, 252, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #d9e6ee;
  }

  .shell.dalux-layout.mobile-content-focus .topbar > div:first-child {
    min-width: 0;
    width: 100%;
  }

  .shell.dalux-layout.mobile-content-focus .topbar h1 {
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    line-height: 1.08;
  }

  .shell.dalux-layout.mobile-content-focus .topbar .muted {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.38;
  }

  .shell.dalux-layout.mobile-content-focus .card-title-row,
  .shell.dalux-layout.mobile-content-focus .item-head {
    flex-direction: column;
    align-items: stretch;
  }

  .shell.dalux-layout.mobile-content-focus .card-title-row > :first-child,
  .shell.dalux-layout.mobile-content-focus .item-head > :first-child {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .shell.dalux-layout.mobile-content-focus .card-title-row strong,
  .shell.dalux-layout.mobile-content-focus .item-title {
    display: block;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }

  .shell.dalux-layout.mobile-content-focus .preview-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: stretch;
  }

  .shell.dalux-layout.mobile-content-focus .preview-actions .pill {
    width: fit-content;
    justify-self: flex-start;
  }

  .shell.dalux-layout.mobile-content-focus .workspace {
    padding-top: 14px;
    padding-bottom: 88px;
    overflow: visible;
  }

  .shell.shell-static .sidebar,
  .shell.shell-static .content,
  .content,
  .workspace,
  .project-tab-card,
  .project-tab-card .tab-body,
  .translation-panel,
  .share-panel,
  .share-hero,
  .sales-board,
  .sales-column,
  .sales-project-list,
  .history-column,
  .preview-card {
    min-width: 0;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .calendar-toolbar-title {
    text-align: left;
  }

  .calendar-month-grid {
    grid-template-columns: 1fr;
  }

  .calendar-weekday-row {
    display: none;
  }

  .calendar-month-stack {
    gap: 14px;
  }

  .calendar-month-section {
    border-radius: 16px;
  }

  .calendar-month-section-head {
    padding: 12px 14px;
  }

  .calendar-month-section-head h4 {
    font-size: 24px;
  }

  .calendar-month-row {
    grid-template-columns: 1fr;
    border-bottom: 1px solid #dfe8ef;
    box-shadow: none;
  }

  .calendar-week-number {
    place-items: center start;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #f4f8fb;
  }

  .calendar-month-cell {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }

  .calendar-month-cell:last-child {
    border-bottom: 0;
  }

  .calendar-month-events {
    margin-top: 8px;
  }

  .calendar-date-badge {
    min-width: 42px;
    min-height: 42px;
  }

  .calendar-toolbar-card {
    padding: 10px;
    top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .calendar-nav-group,
  .calendar-view-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .calendar-nav-group button,
  .calendar-view-switch button {
    width: 100%;
    min-height: 42px;
  }

  .calendar-toolbar-title .muted {
    text-align: left;
  }

  .history-dock {
    gap: 8px;
  }

  .history-toggle {
    min-height: 42px;
    height: auto;
  }

  .calendar-side-column {
    grid-template-columns: 1fr;
  }

  .calendar-time-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .calendar-time-axis {
    display: none;
  }

  .calendar-time-columns {
    grid-template-columns: 1fr;
  }

  .calendar-hero,
  .calendar-day-head,
  .calendar-event-head,
  .calendar-event-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-content-toolbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .mobile-content-toolbar button {
    min-height: 40px;
    flex: 0 0 auto;
  }

  .mobile-content-toolbar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(243, 245, 247, 0) 0%, rgba(243, 245, 247, 0.94) 30%, rgba(243, 245, 247, 1) 100%);
    z-index: 40;
  }

  .mobile-bottom-bar button {
    width: min(100%, 420px);
    flex: 1 1 0;
    min-height: 48px;
    border-radius: 14px;
  }

  .shell.dalux-layout.mobile-list-only .sidebar-explorer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .shell.dalux-layout.mobile-list-only .sidebar-explorer-head .secondary {
    flex: 0 0 auto;
    min-height: 42px;
    white-space: nowrap;
  }

  .project-nav {
    flex: 0 0 auto;
    overflow: visible;
  }

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

  .main-grid.preview-open {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .history-dock,
  .history-dock.is-closed {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: none;
  }

  .history-toggle {
    position: static;
    top: auto;
    width: 100%;
    min-height: 48px;
    height: auto;
  }

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

  .share-hero,
  .translation-panel,
  .sales-columns {
    grid-template-columns: 1fr;
  }

  .translation-panel.translation-panel-simple {
    grid-template-rows: auto auto;
    align-content: start;
  }

  .translation-upload-card,
  .translation-file-list,
  .translation-group-card,
  .translation-card,
  .translation-group-head > div:first-child,
  .translation-file-row > div:first-child {
    width: 100%;
    min-width: 0;
  }

  .translation-upload-card {
    min-height: 0;
    place-items: stretch;
    justify-items: stretch;
    align-content: start;
  }

  .translation-upload-card > label:not(.translation-upload-field),
  .translation-upload-card .upload-progress,
  .translation-upload-field {
    width: 100%;
    min-width: 0;
  }

  .translation-upload-field span {
    width: 100%;
    min-width: 0;
  }

  .translation-selected-file {
    text-align: left;
  }

  .translation-file-list {
    align-content: start;
  }

  .translation-group-head,
  .translation-file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .translation-group-head .row-actions,
  .translation-file-row .row-actions {
    width: 100%;
  }

  .history-column {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .drawing-actions {
    justify-content: flex-start;
  }

  .preview-card {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .mobile-preview-modal {
    padding: 12px;
  }

  .drawing-preview-frame {
    height: 78vh;
    min-height: 560px;
  }

  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .brand {
    padding-left: 0;
    padding-right: 0;
  }

  .workspace,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .sidebar {
    padding: 12px 14px;
    gap: 10px;
  }

  .shell.dalux-layout .sidebar {
    padding: 0;
  }

  .shell.dalux-layout .sidebar-rail,
  .shell.dalux-layout .sidebar-explorer-head {
    padding-left: 14px;
    padding-right: 14px;
  }

  .shell.dalux-layout .sidebar-section-switch {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shell.dalux-layout .sidebar-section-switch button {
    min-height: 58px;
    border-radius: 14px;
    gap: 3px;
    padding: 10px 12px;
    box-shadow: none;
    align-items: flex-start;
  }

  .shell.dalux-layout .sidebar-section-switch button span {
    font-size: 12px;
  }

  .shell.dalux-layout .sidebar-section-switch button strong {
    font-size: 18px;
  }

  .shell.dalux-layout .sidebar-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 14px 12px;
    margin-top: 10px;
  }

  .shell.dalux-layout .sidebar-bottom button {
    min-height: 42px;
    padding: 6px 8px;
    text-align: center;
    font-size: 11px;
  }

  .shell.dalux-layout.mobile-sections-only .project-nav-block > button,
  .shell.dalux-layout.mobile-list-only .project-nav-block > button,
  .shell.dalux-layout.mobile-list-only .sales-project-card {
    min-height: 68px;
    padding: 10px 12px;
    font-size: inherit;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-utility > button,
  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-block > button,
  .shell.dalux-layout:not(.mobile-content-focus) .sales-project-card {
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-title strong,
  .shell.dalux-layout:not(.mobile-content-focus) .sales-project-card strong,
  .mobile-project-copy strong {
    font-size: clamp(16px, 4.4vw, 21px);
  }

  .shell.dalux-layout:not(.mobile-content-focus) .project-nav-meta,
  .shell.dalux-layout:not(.mobile-content-focus) .sales-project-card span,
  .mobile-project-meta {
    font-size: clamp(12px, 3.1vw, 14px);
  }

  .project-nav-title {
    min-width: 0;
  }

  .module-nav {
    padding-left: 12px;
    margin-left: 0;
  }

  .module-nav button {
    min-height: 42px;
    grid-template-columns: 16px 22px minmax(0, 1fr) auto;
  }

  .module-count {
    font-size: 11px;
  }

  .module-file-list {
    padding-left: 12px;
    margin-left: 8px;
  }

  .module-file-row {
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 4px;
  }

  .module-file-branch {
    padding-left: calc(var(--tree-indent, 0px) * 0.5);
  }

  .module-file-item {
    width: 100%;
    min-width: 0;
    grid-template-columns: 10px minmax(0, 1fr);
    font-size: 12px;
  }

  .module-file-item > span:last-child {
    min-width: 0;
  }

  .module-file-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.25;
  }

  .module-file-source {
    max-width: 100%;
    white-space: normal;
  }

  .module-file-actions {
    grid-template-columns: 1fr;
    margin-left: 22px;
    padding-left: 0;
    gap: 6px;
    align-items: center;
  }

  .module-file-actions button {
    min-height: 38px;
    padding: 6px 8px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .topbar h1 {
    font-size: 20px;
  }

  .topbar-actions,
  .preview-actions,
  .task-actions,
  .service-checklist-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .preview-actions button,
  .preview-actions .button-link,
  .service-checklist-actions button,
  .topbar-actions button {
    flex: 1 1 140px;
  }

  .service-checklist-header {
    grid-template-columns: 1fr;
  }

  .access-editor {
    padding: 10px;
  }

  .access-grid,
  .access-projects,
  .project-access-tabs {
    grid-template-columns: 1fr;
  }

  .access-project-group > summary,
  .project-access-item > summary {
    white-space: normal;
  }

  .access-project-group-body {
    padding: 0 10px 10px;
  }

  .project-access-item {
    padding: 8px;
  }

  .project-access-item > summary .checkbox-row {
    padding-right: 0;
  }

  .project-access-tabs {
    padding-left: 0;
  }

  .row-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .row-actions button {
    width: 100%;
  }

  .checkbox-row span,
  .checkbox-row span small {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .workspace {
    gap: 12px;
  }

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

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

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

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

  .share-hero {
    grid-template-columns: 1fr;
  }

  .share-history-head {
    flex-direction: column;
  }

  .share-history-meta {
    justify-content: flex-start;
  }

  .card {
    padding: 12px;
  }

  .drawing-preview-frame {
    height: 74vh;
    min-height: 480px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-panel {
    margin-top: 10px;
    padding: 12px;
  }
}

/* File names must stay readable on phones. Avoid per-letter vertical wrapping. */
.module-file-item {
  min-width: 0;
}

.module-file-item > span:last-child {
  display: block;
  min-width: 0;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.module-file-dot {
  display: none !important;
}

.module-file-item {
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
}

.module-file-item.status-approved {
  background: #dff3e4 !important;
  border-color: #8fc79c !important;
  color: #23492d !important;
}

.module-file-item.status-rework {
  background: #ffe8cc !important;
  border-color: #efb36c !important;
  color: #7b4613 !important;
}

.module-file-item.status-rejected {
  background: #f9d9d6 !important;
  border-color: #dd8d87 !important;
  color: #7a2c26 !important;
}

.module-file-item.status-waiting {
  background: #f5edc9 !important;
  border-color: #d8c16a !important;
  color: #6f5b0c !important;
}

.module-file-item.status-neutral {
  background: #dde6ec !important;
  border-color: #b7c5d0 !important;
  color: #38505f !important;
}

.module-file-item:hover,
.module-file-item.active {
  filter: brightness(0.97);
  box-shadow: inset 0 0 0 1px rgba(28, 44, 56, 0.08);
}

.module-file-name,
.drawing-title-link,
.drawing-title-row .item-title {
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: none;
}

@media (max-width: 560px) and (pointer: coarse), (max-width: 560px) and (hover: none) {
  .module-file-item {
    display: block !important;
  }

  .module-file-item > span:last-child {
    flex: 1 1 auto;
    width: auto;
  }
}

.ai-beta-panel {
  gap: 16px;
}

.ai-beta-feed {
  display: grid;
  gap: 16px;
}

.ai-beta-article {
  background: #f7fbfe;
  border: 1px solid #cfe0ef;
  border-radius: 22px;
  padding: 22px 24px;
  color: #203247;
}

.ai-beta-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ai-beta-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-beta-head-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.ai-beta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.ai-beta-language-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-beta-language-switch .ghost.active {
  background: #d9ebf7;
  border-color: #8cb7d4;
  color: #1d4d73;
  box-shadow: 0 6px 16px rgba(79, 137, 168, 0.18);
}

.ai-beta-language-switch .ghost {
  min-width: 42px;
  padding: 8px 10px;
  font-size: 1.05rem;
  line-height: 1;
}

.ai-beta-toggle {
  min-width: 46px;
  font-size: 1.2rem;
  padding: 8px 12px;
}

.ai-beta-body {
  margin-top: 10px;
}

.ai-beta-article h3,
.ai-beta-article h4,
.ai-beta-article h5 {
  margin: 0 0 12px;
  color: #18324d;
}

.ai-beta-article h3 {
  font-size: 1.45rem;
}

.ai-beta-article h4 {
  margin-top: 24px;
  font-size: 1.12rem;
}

.ai-beta-article h5 {
  margin-top: 18px;
  font-size: 1rem;
}

.ai-beta-article p,
.ai-beta-article ul {
  margin: 0 0 14px;
  line-height: 1.6;
}

.ai-beta-article ul {
  padding-left: 22px;
}

.ai-beta-article code {
  background: rgba(79, 137, 168, 0.12);
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 0.95em;
}
