:root {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #101827;
  --surface-strong: #111827;
  --surface-raised: #172033;
  --ink: #e5edf7;
  --muted: #9aa8ba;
  --quiet: #7f8da2;
  --line: #334155;
  --line-soft: #26364d;
  --accent: #f8bf00;
  --accent-hover: #ffd34d;
  --accent-ink: #17120a;
  --accent-strong: #fff2b3;
  --accent-soft: #332800;
  --warn: #f59e0b;
  --steel: #d8dee8;
  --blue: var(--accent);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.model-import { display: grid; gap: 12px; min-width: 0; }
.model-import p { margin: 0; color: var(--muted); line-height: 1.5; }
.model-import-drop { display: grid; gap: 8px; padding: 24px 16px; border: 1px dashed var(--quiet); border-radius: 8px; background: var(--surface-raised); text-align: center; cursor: pointer; }
.model-import-drop:hover, .model-import-drop:focus-visible { border-color: var(--accent); }
.model-import-drop span, .model-import-native span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.model-import-native, .model-import-summary { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.model-import-status { min-height: 24px; font-size: 13px; color: var(--accent-strong); overflow-wrap: anywhere; }
.model-import-rows { display: grid; gap: 8px; }
.model-import-row { padding: 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.model-import-row.needs-review { border-color: var(--warn); }
.model-import-path { display: flex !important; align-items: start; gap: 10px; overflow-wrap: anywhere; }
.model-import-path input { width: auto !important; flex-shrink: 0; }
.model-import-path small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.model-import-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; align-items: end; }
.model-import-fields label { min-width: 0; font-size: 12px; }
.model-import-fields input, .model-import-fields select { width: 100%; min-width: 0; }
.model-import .detail-actions { flex-wrap: wrap; }
.model-import-native, .model-import-summary, .model-import-drop { min-width: 0; overflow-wrap: anywhere; }
.model-import .detail-actions button { white-space: normal; max-width: 100%; }
body.tekla-panel { overflow: auto; }
.tekla-panel .app-shell { height: auto; min-height: 100vh; }
.tekla-panel .dashboard-layout { display: flex; flex-direction: column; }
.tekla-panel .layout-splitter, .tekla-panel .detail-collapse-button { display: none; }
.tekla-panel .detail-region { width: 100%; max-width: none; }
.tekla-panel .topbar, .tekla-panel .topbar-actions { flex-wrap: wrap; }
.tekla-panel .project-grid { grid-template-columns: 1fr; max-height: 220px; overflow: auto; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(248, 191, 0, 0.82);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.app-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg);
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0b1736;
}

.brand-block,
.topbar-actions,
.project-meta,
.project-footer,
.detail-header,
.summary-row,
.row-actions,
.section-heading {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(248, 191, 0, .42);
  background: #101827;
  color: #fff;
  box-shadow: 0 8px 24px rgba(248, 191, 0, .16);
  font-weight: 850;
  font-size: 12px;
}

.brand-mark img {
  width: 76%;
  height: 76%;
  display: block;
  object-fit: contain;
}

.product-nav { align-self: stretch; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.product-nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 11px; border-radius: 8px; color: #aebad3; text-decoration: none; font-size: 11px; font-weight: 750; }
.product-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.product-nav a.active { color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 -2px var(--accent); }

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

h2 {
  font-size: 17px;
}

h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-block span,
.section-heading span,
.project-main span,
.project-meta,
.project-footer,
.detail-header p,
.summary-row span,
.package-body span,
.package-body small,
.empty-state span,
.settings-strip span {
  color: var(--muted);
}

.topbar-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-menu {
  position: relative;
}

.account-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.account-button:hover,
.account-button[aria-expanded="true"] {
  border-color: #3d516e;
  background: #1c2840;
}

.account-button.icon-only {
  width: 36px;
  justify-content: center;
  padding: 0;
}

.account-mark,
.account-avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
}

.account-avatar {
  border-radius: 999px;
  background: #20314d;
  color: #dbeafe;
}

.account-label {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-caret {
  color: var(--muted);
  font-size: 11px;
}

.account-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 15;
  min-width: 230px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(3, 7, 18, 0.38);
}

.account-popover-right {
  left: auto;
  right: 0;
  min-width: 190px;
}

.account-popover-title {
  padding: 4px 6px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-popover-empty {
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
}

.account-menu-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.account-menu-item:hover,
.account-menu-item.active {
  border-color: var(--line);
  background: var(--surface-raised);
}

.account-menu-item small {
  color: #7dd3bc;
  font-size: 11px;
}

.account-invite-form {
  margin-top: 4px;
  padding-top: 8px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
}

.account-invite-form label {
  display: grid;
  gap: 4px;
}

.account-invite-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.account-invite-form input,
.account-invite-form select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--ink);
}

.account-invite-form select {
  color-scheme: dark;
}

.account-dialog {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.account-dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.account-dialog-header p {
  margin-top: 4px;
  color: var(--muted);
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.account-detail-grid div,
.team-row {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.account-detail-grid div {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.account-detail-grid span,
.team-row span {
  color: var(--muted);
}

.account-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.team-panel,
.team-list {
  display: grid;
  gap: 10px;
}

.team-invite-form {
  grid-template-columns: minmax(280px, 1fr) 180px auto;
  align-items: end;
  column-gap: 10px;
  row-gap: 8px;
  margin: 0;
  padding-top: 0;
  border-top: 0;
}

.team-invite-form .account-popover-title {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.team-invite-form label {
  min-height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
}

.team-invite-form label span {
  min-height: 16px;
}

.team-invite-form input,
.team-invite-form select {
  min-height: 36px;
  background: var(--surface-raised);
}

.team-invite-form button {
  min-height: 36px;
  align-self: end;
  padding-inline: 14px;
}

.team-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 36px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
}

.team-row.pending {
  grid-template-columns: minmax(0, 1fr) auto auto 36px;
}

.team-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.team-row strong,
.team-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-row select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  color-scheme: dark;
}

.team-row .icon-button {
  width: 34px;
  min-height: 34px;
}

.organization-choice-list {
  display: grid;
  gap: 8px;
}

.organization-choice {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}

.organization-choice:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.search-box {
  width: min(360px, 44vw);
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--muted);
}

.search-box input,
.settings-strip input,
.upload-grid input,
.upload-grid select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.upload-grid select {
  color-scheme: dark;
}

.search-box input::placeholder,
.upload-grid input::placeholder,
.settings-strip input::placeholder {
  color: var(--quiet);
}

.upload-grid input::placeholder {
  opacity: 0.72;
  font-style: italic;
}

.command-button,
.icon-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: #d8dee8;
  white-space: nowrap;
}

.command-button {
  padding: 0 11px;
  font-size: 13px;
  font-weight: 700;
}

.command-button:hover,
.icon-button:hover {
  border-color: #3d516e;
  background: #1c2840;
}

.command-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.command-button.primary:hover {
  background: var(--accent-hover);
}

.command-button.danger-solid {
  border-color: #b91c1c;
  background: #7f1d1d;
  color: #fee2e2;
}

.command-button.danger-solid:hover {
  border-color: #ef4444;
  background: #991b1b;
}

.command-button.compact {
  min-height: 32px;
  padding: 5px 10px;
}

.icon-button.danger {
  color: #f3a6a6;
}

.icon-button.danger:hover {
  border-color: #7f2d2d;
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

.icon-button {
  width: 36px;
  padding: 0;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 8px minmax(360px, var(--detail-width, 520px));
  gap: 0;
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

.dashboard-layout.detail-collapsed {
  grid-template-columns: minmax(360px, 1fr) 8px 38px;
}

.layout-splitter {
  width: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 0 2px, rgba(96, 165, 250, 0.24) 2px 3px, transparent 3px 5px, rgba(96, 165, 250, 0.24) 5px 6px, transparent 6px),
    #0d1524;
  cursor: col-resize;
  touch-action: none;
}

.layout-splitter:hover,
.layout-splitter:focus-visible {
  border-color: #3d516e;
  background:
    linear-gradient(90deg, transparent 0 2px, var(--accent) 2px 3px, transparent 3px 5px, var(--accent) 5px 6px, transparent 6px),
    #122033;
}

.dashboard-layout.detail-collapsed .layout-splitter {
  cursor: default;
  background: #0d1524;
}

.is-resizing-layout,
.is-resizing-layout * {
  cursor: col-resize !important;
  user-select: none;
}

.projects-region,
.detail-region,
.settings-strip {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-strong);
}

.projects-region,
.detail-region {
  min-height: 0;
  padding: 10px;
  overflow: auto;
}

.section-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  min-height: 28px;
}

.section-heading.compact {
  margin-bottom: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.project-tile {
  min-height: 206px;
  display: grid;
  grid-template-rows: auto 58px auto auto auto;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
}

.project-tile:hover,
.project-tile.selected {
  border-color: var(--accent);
  background: var(--surface-raised);
  box-shadow: none;
}

.project-status,
.state-pill,
.eyebrow {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
}

.project-status,
.state-pill {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.state-pill.subtle {
  background: #202b42;
  color: var(--steel);
}

.eyebrow {
  margin-bottom: 6px;
  display: inline-block;
  background: #202b42;
  color: var(--quiet);
}

.project-image {
  min-height: 58px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(51, 65, 85, 0.75);
  background: #0f172a;
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 58px;
  display: block;
  object-fit: cover;
}

.project-image.empty {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    #0f172a;
  background-size: 24px 24px;
}

.project-image.empty span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.project-main {
  display: grid;
  gap: 4px;
}

.project-main strong {
  font-size: 16px;
}

.project-meta,
.project-footer {
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.detail-region {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.detail-content {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.detail-region.collapsed {
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.detail-region.collapsed .detail-content {
  display: none;
}

.detail-collapse-button {
  z-index: 8;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #172033;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.detail-collapse-button:hover,
.detail-collapse-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.detail-region.collapsed .detail-collapse-button {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 12px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.detail-region.collapsed .detail-collapse-button::after {
  content: "Details";
  overflow: hidden;
  max-height: 180px;
  font-size: 12px;
  font-weight: 800;
  text-orientation: mixed;
  text-overflow: ellipsis;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.detail-header {
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.dashboard-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.dashboard-panel-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 0 36px 0 12px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.dashboard-panel-header-shell {
  position: relative;
}

.dashboard-panel-header-control {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
}

.dashboard-panel-header-shell.has-control .dashboard-panel-header {
  padding-right: 245px;
}

.dashboard-panel.open .dashboard-panel-header {
  border-bottom-color: var(--line);
}

.dashboard-panel.closed .dashboard-panel-header {
  border-bottom-color: transparent;
}

.dashboard-panel-header:hover,
.dashboard-panel-header:focus-visible {
  background: #172033;
}

.dashboard-panel-icon,
.dashboard-panel-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.dashboard-panel-icon svg {
  width: 14px;
  height: 14px;
}

.dashboard-panel-chevron svg {
  width: 13px;
  height: 13px;
}

.dashboard-panel-chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.dashboard-panel-title {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-panel-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.dashboard-panel-content {
  min-width: 0;
  min-height: 0;
  padding: 12px;
}

.dashboard-panel-content:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-panel-packages .dashboard-panel-content,
.dashboard-panel-reference-models .dashboard-panel-content {
  padding: 10px;
}

.dashboard-panel-packages .dashboard-panel-content:not([hidden]),
.dashboard-panel-reference-models .dashboard-panel-content:not([hidden]) {
  gap: 10px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.summary-row div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.summary-row strong {
  font-size: 17px;
}

.project-file-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.project-file-summary div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.project-file-summary strong,
.project-file-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file-summary span {
  color: var(--muted);
  font-size: 13px;
}

.upload-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.upload-panel.embedded {
  padding: 0;
  border: 0;
  background: transparent;
}

.reference-model-upload {
  gap: 8px;
}

.reference-model-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.reference-model-intro small {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.edit-panel {
  display: grid;
  gap: 16px;
}

.inline-editor {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f172a;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reference-model-upload-grid {
  grid-template-columns: minmax(240px, 1.35fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.reference-model-dropzone {
  min-width: 0;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
  border-style: dashed !important;
  cursor: pointer;
  outline: none;
}

.reference-model-dropzone:hover,
.reference-model-dropzone:focus-visible,
.reference-model-dropzone.is-dragging {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.reference-model-dropzone.has-file {
  border-style: solid !important;
}

.reference-model-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.reference-model-dropzone-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--accent-strong) !important;
}

.reference-model-dropzone-icon svg {
  width: 20px;
  height: 20px;
}

.reference-model-dropzone-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.reference-model-dropzone-copy strong,
.reference-model-dropzone-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-model-dropzone-copy strong {
  color: var(--ink);
  font-size: 12px;
}

.reference-model-dropzone-copy small {
  color: var(--muted);
  font-size: 11px;
}

.reference-model-upload-grid .command-button {
  min-width: 104px;
  align-self: stretch;
}

.upload-grid label,
.settings-strip label {
  display: grid;
  gap: 6px;
}

.upload-grid label {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--surface-raised);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.upload-grid label:has(input[type="file"]:hover),
.upload-grid label:has(input[type="file"]:focus-visible) {
  border-color: #3d516e;
  background: #1c2840;
}

.upload-grid label span {
  color: var(--muted);
  font-size: 12px;
}

.upload-grid input[type="file"] {
  color: var(--muted);
  cursor: pointer;
}

.upload-grid input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #202b42;
  color: #d8dee8;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.upload-grid input[type="file"]:hover::file-selector-button,
.upload-grid input[type="file"]:focus-visible::file-selector-button {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.upload-progress {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f172a;
}

.upload-progress-head,
.upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-progress-head strong {
  font-size: 13px;
}

.upload-progress-head span,
.upload-progress-meta {
  color: var(--muted);
  font-size: 12px;
}

.upload-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #0b1220;
  border: 1px solid var(--line-soft);
}

.upload-progress-track span {
  height: 100%;
  min-width: 8px;
  display: block;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 242, 179, 0.28), rgba(248, 191, 0, 0.96)),
    var(--accent);
  transition: width 180ms ease;
}

.upload-progress-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-input {
  grid-column: 1 / -1;
}

.package-list {
  display: grid;
  gap: 8px;
}

.package-group {
  display: grid;
  gap: 8px;
}

.package-group + .package-group {
  margin-top: 6px;
}

.package-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.package-group-heading strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.panel-sort-control {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  gap: 8px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.panel-sort-control span,
.package-edit-grid span {
  color: var(--muted);
  font-size: 12px;
}

.panel-sort-control select,
.package-edit-grid input,
.package-edit-grid select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.panel-sort-control select {
  width: auto;
  min-width: 82px;
  font-size: 13px;
}

.panel-sort-control select,
.package-edit-grid select {
  color-scheme: dark;
}

.package-row {
  min-height: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reference-model-row {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  padding-block: 8px;
}

.reference-model-row .package-body {
  gap: 2px;
}

.reference-model-file-details {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.reference-model-file-details > span {
  color: var(--muted);
}

.reference-model-file-details small {
  color: var(--muted);
  font-size: 12px;
}

.reference-model-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.audit-list,
.version-list {
  display: grid;
  gap: 8px;
}

.audit-row,
.version-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.version-row.current {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}

.audit-row.failed {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.08);
}

.audit-row div,
.version-row div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.audit-row strong,
.audit-row span,
.version-row strong,
.version-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-row span,
.version-row span {
  color: var(--muted);
}

.package-row-edit {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.package-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 130px;
  gap: 8px;
}

.package-edit-grid label {
  display: grid;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.package-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.package-row > .state-pill {
  align-self: start;
  margin-top: 2px;
}

.package-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.package-body strong,
.package-body span,
.package-body small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.package-body strong {
  line-height: 1.25;
}

.package-body span {
  line-height: 1.3;
}

.package-storage {
  color: #7dd3bc;
}

.row-actions {
  grid-column: 2 / -1;
  justify-content: flex-start;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 104px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(15, 23, 42, 0.35);
}

.empty-state.compact {
  min-height: 72px;
  padding: 12px;
}

.empty-state.large {
  min-height: 300px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(4px);
}

.confirm-dialog {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.confirm-header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.confirm-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #7f2d2d;
  border-radius: 6px;
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-weight: 800;
}

.confirm-dialog h2 {
  margin-bottom: 6px;
}

.confirm-dialog p {
  color: var(--muted);
  line-height: 1.45;
}

.project-share-copy-field {
  width: 100%;
  min-width: 0;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  font-size: 15px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-strip {
  margin: 0;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
  border-width: 1px 0 0;
}

.settings-strip label {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 78% 12%, rgba(248, 191, 0, .12), transparent 30%),
    linear-gradient(145deg, #090f1d, #111b2e);
}

.auth-card {
  width: min(520px, 100%);
  color-scheme: dark;
  --surface: #111827;
  --surface-strong: #101827;
  --surface-raised: #172033;
  --ink: #d8dee8;
  --muted: #9aa8ba;
  --quiet: #7f8da2;
  --line: #334155;
  --line-soft: #26364d;
  --accent: #f8bf00;
  --accent-hover: #ffd34d;
  --accent-ink: #17120a;
  --accent-strong: #fff2b3;
  --accent-soft: #332800;
  display: grid;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101827;
  color: var(--ink);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .42);
}

.auth-card .brand-block { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.auth-card .brand-block span { color: var(--muted); }
.auth-card .brand-mark { width: 44px; height: 44px; border-radius: 13px; }

.auth-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.tekla-login-card {
  width: min(620px, 100%);
}

.tekla-code-box {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--accent);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.session-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.session-summary div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.session-summary span {
  color: var(--muted);
  font-size: 12px;
}

.session-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tekniq-auth { display: grid; gap: 14px; }
.auth-form { display: grid; gap: 14px; }
.auth-heading { display: grid; gap: 6px; padding-bottom: 4px; }
.auth-heading h2 { color: var(--ink); font-size: 21px; letter-spacing: -.025em; }
.auth-heading p { max-width: 410px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-kicker { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.auth-field { display: grid; gap: 7px; color: #c8d3e3; font-size: 11px; font-weight: 750; }
.auth-field input { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface); outline: none; }
.auth-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(248, 191, 0, .14); }
.auth-submit { min-height: 44px; border: 1px solid var(--accent); border-radius: 7px; color: var(--accent-ink); background: var(--accent); font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(248, 191, 0, .18); }
.auth-submit:hover { background: var(--accent-hover); }
.auth-submit:disabled, .auth-link:disabled { cursor: wait; opacity: .58; }
.auth-link { justify-self: center; padding: 2px 6px; border: 0; color: var(--accent); background: transparent; font-size: 11px; font-weight: 750; cursor: pointer; }
.auth-link.muted { color: var(--muted); font-weight: 650; }
.auth-error { padding: 10px 12px; border: 1px solid #7f1d1d; border-radius: 7px; color: #fecaca; background: #2b1118; font-size: 11px; line-height: 1.45; }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 10px; }
.auth-security span { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #6ee7b7; background: #12372d; font-weight: 900; }
.auth-card .organization-choice { color: var(--ink); background: var(--surface); }
.auth-card .organization-choice:hover { background: var(--accent-soft); }
.auth-card .command-button { color: var(--ink); background: var(--surface); }
.auth-card .command-button.primary { color: var(--accent-ink); background: var(--accent); }

.admin-layout {
  min-height: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 14px;
  overflow: auto;
}

.admin-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-login {
  width: min(460px, 100%);
  justify-self: center;
  grid-column: 1 / -1;
}

.admin-card p,
.admin-form span,
.tenant-row span,
.admin-detail-heading p {
  color: var(--muted);
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.admin-form input,
.admin-form select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.admin-form select {
  color-scheme: dark;
}

.admin-form .form-actions {
  grid-column: 1 / -1;
}

.admin-users-panel {
  display: grid;
  gap: 10px;
}

.admin-summary-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-heading.compact {
  margin: 0;
}

.admin-health-grid,
.admin-storage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-health-item,
.admin-storage-grid div {
  display: grid;
  gap: 4px;
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.admin-health-item.ok {
  border-color: rgba(16, 185, 129, 0.35);
}

.admin-health-item.warning {
  border-color: rgba(245, 158, 11, 0.45);
}

.admin-health-item span,
.admin-storage-grid span,
.admin-storage-row span {
  color: var(--muted);
}

.admin-storage-list {
  display: grid;
  gap: 8px;
}

.admin-storage-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
}

.admin-storage-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-storage-row strong,
.admin-storage-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-form {
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  align-items: end;
}

.admin-user-list {
  display: grid;
  gap: 8px;
}

.admin-user-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 36px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-user-row.pending {
  grid-template-columns: minmax(0, 1fr) auto auto 36px;
}

.admin-user-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-user-row strong,
.admin-user-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row span {
  color: var(--muted);
}

.admin-user-row select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--ink);
  color-scheme: dark;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid #7f2d2d;
  border-radius: 7px;
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-weight: 700;
}

.form-success {
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: rgba(5, 150, 105, 0.18);
  color: #bbf7d0;
  font-weight: 700;
}

.form-info {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(96, 165, 250, 0.10);
  color: var(--muted);
}

.admin-form label.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-form label.admin-checkbox input {
  width: auto;
}

.tenant-list,
.admin-project-list {
  display: grid;
  gap: 8px;
}

.tenant-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
  color: var(--ink);
  text-align: left;
}

button.tenant-row:hover,
.tenant-row.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tenant-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tenant-row strong,
.tenant-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.admin-detail-heading > div:first-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-detail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .topbar,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .search-box {
    width: 100%;
  }

  .dashboard-layout {
    display: grid;
    overflow: auto;
  }

  .admin-layout,
  .admin-form-grid,
  .account-detail-grid,
  .admin-health-grid,
  .admin-storage-grid,
  .admin-storage-row,
  .admin-user-form,
  .admin-user-row,
  .admin-user-row.pending,
  .team-invite-form,
  .team-row,
  .team-row.pending {
    grid-template-columns: 1fr;
  }

  .team-invite-form .account-popover-title,
  .team-invite-form button {
    grid-column: 1;
  }

  .layout-splitter {
    display: none;
  }

  .package-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .reference-model-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .reference-model-upload-grid {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr);
  }

  .reference-model-upload-grid .command-button {
    grid-column: 1 / -1;
    min-height: 34px;
  }

  .package-row-edit,
  .package-edit-grid {
    grid-template-columns: 1fr;
  }

  .package-row-edit .package-icon {
    display: none;
  }

  .package-row .state-pill,
  .row-actions {
    grid-column: 2;
  }

  .row-actions {
    justify-content: start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .dashboard-layout,
  .settings-strip {
    margin: 0;
    padding: 10px;
  }

  .dashboard-layout {
    gap: 10px;
  }

  .summary-row,
  .upload-grid,
  .session-summary,
  .settings-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-header-shell.has-control .dashboard-panel-header {
    padding-right: 208px;
  }

  .dashboard-panel-header-control {
    right: 34px;
    gap: 6px;
  }

  .panel-sort-control span {
    display: none;
  }

  .panel-sort-control select {
    min-width: 76px;
  }

  .dashboard-panel-header-control .dashboard-panel-count {
    font-size: 11px;
  }

  .reference-model-intro {
    align-items: flex-start;
  }

  .reference-model-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .reference-model-controls {
    grid-column: auto;
    justify-content: flex-end;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
  }
}

:root{color-scheme:dark;font-family:Inter,Segoe UI,system-ui,sans-serif;color:#e5edf7;background:#0b1120;font-synthesis:none;--accent:#f8bf00}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;background:#101827;border:1px solid #334155;border-radius:8px;padding:9px 13px;color:inherit}button:hover:not(:disabled){border-color:#f8bf00;background:#332800}button:disabled{cursor:default;opacity:.5}a{color:#f8bf00;text-underline-offset:3px}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #f8bf00;outline-offset:2px}.workspace{height:100dvh;display:flex;flex-direction:column}.workspace>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 22px;background:#101827;border-bottom:1px solid #334155}.brand{display:flex;gap:9px;align-items:center;border:0;padding:0;font-size:19px;white-space:nowrap}.brand img{width:30px;height:30px;object-fit:contain}.brand b{font-weight:500;color:#9aa8ba}.account{display:flex;align-items:center;gap:12px;font-size:13px}.account select{max-width:230px;padding:8px;border:1px solid #334155;border-radius:7px}.work-context{display:flex;align-items:center;gap:24px;padding:12px 22px;background:#111827;font-size:13px}.work-context>div{display:flex;flex-direction:column;gap:4px}.work-context small{color:#9aa8ba}.work-context strong{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-context details{margin-left:auto;position:relative}.work-context summary{cursor:pointer;white-space:nowrap}.work-context aside{position:absolute;right:0;top:32px;width:350px;max-width:90vw;max-height:65vh;overflow:auto;z-index:5;background:#101827;border:1px solid #334155;box-shadow:0 12px 35px #00000066;border-radius:12px;padding:20px}.work-context aside h2{font-size:15px;margin-top:0}.phase-list{display:flex;gap:5px;flex-wrap:wrap}.phase-list span{padding:4px 7px;background:#111827;border-radius:5px}#activity-list{padding-left:18px}#activity-list li{padding-bottom:12px;font-size:13px}#activity-list small{display:block;padding-top:4px}#products{display:flex;gap:6px;padding:9px 22px;background:#101827;border-bottom:1px solid #334155;overflow-x:auto;flex-shrink:0}#products button{white-space:nowrap;border-color:transparent;background:transparent}#products .active{color:#f8bf00;background:#332800;border-color:#665100}#notice{margin:0;padding:0 22px;font-size:13px;background:#332800}#notice:not(:empty){padding-top:9px;padding-bottom:9px}#main{min-height:0;flex:1;display:flex;flex-direction:column}iframe{border:0;width:100%;flex:1;min-height:0;background:#101827}.module-bar{display:flex;align-items:center;justify-content:space-between;padding:6px 22px;font-size:12px;background:#101827}.home{overflow:auto;padding:42px 32px 32px;max-width:1200px;width:100%;margin:0 auto}.home-heading>span{font-size:11px;font-weight:700;letter-spacing:1.5px;color:#f8bf00}h1{font-size:29px;font-weight:600;letter-spacing:-.7px;margin:10px 0}.home-heading p{font-size:14px;color:#9aa8ba;line-height:1.6;margin-bottom:28px}.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:16px}.tool-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;padding:22px;min-height:200px;border-radius:12px;box-shadow:0 2px 5px #00000022}.tool-card strong{font-size:19px}.tool-card>span:not(.tool-icon){font-size:13px;color:#9aa8ba}.tool-card small{margin-top:auto;padding-top:10px;color:#f8bf00}.tool-icon{width:36px;height:36px;display:grid;place-content:center;background:#332800;color:#f8bf00;border-radius:9px;font-weight:650}.empty{line-height:1.7;background:#101827;padding:24px;border-radius:10px}.access-page{max-width:440px;margin:10vh auto;padding:30px;background:#101827;border:1px solid #334155;border-radius:14px}.access-page button{margin:5px}.access-page p{line-height:1.6;color:#9aa8ba}.loading{padding:30px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.auth-form,.auth-field{display:flex;flex-direction:column;gap:10px}.auth-field input{padding:11px;border:1px solid #334155;border-radius:7px}.auth-submit{background:#e5edf7;color:white;margin-top:12px}.auth-error{color:#fecaca;padding:12px 0}.auth-security,.auth-kicker{font-size:12px;color:#9aa8ba}.auth-security{margin-top:18px}.auth-heading h2{font-size:24px}.auth-heading p{font-size:14px}.online-login{max-width:400px}.auth-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:640px){.workspace>header{padding:11px 12px;gap:8px}.brand{font-size:16px}.brand img{width:25px;height:25px}.account{gap:5px;min-width:0}.account>span{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account select{max-width:135px}.account button{font-size:12px;padding:7px}.work-context{padding:10px 12px;gap:10px;flex-wrap:wrap}.work-context>div{flex:1;min-width:110px}.work-context strong{max-width:170px;font-size:12px}.work-context details{margin-left:0;font-size:12px}#products{padding:7px 10px;gap:3px}#products button{font-size:12px;padding:8px 10px}.home{padding:25px 16px}.home h1{font-size:25px}.home-heading p{font-size:13px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tool-card{padding:16px;min-height:185px}.tool-card strong{font-size:16px}.module-bar{padding:7px 12px}.work-context aside{position:fixed;left:12px;right:12px;top:145px;width:auto;max-width:none}.access-page{margin:24px 12px}.work-context #read-model{font-size:12px}}
.online-dialog{color:#e5edf7;border:1px solid #334155;border-radius:14px;padding:24px;max-width:440px;width:calc(100% - 32px);box-shadow:0 20px 80px #00000077}.online-dialog::backdrop{background:#00000088}.online-dialog h2{font-size:20px;margin-top:0}.online-dialog p{font-size:14px;line-height:1.6}.online-dialog>div{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}

/* Tekniq workspace chrome: same dark surfaces/yellow actions as Dashboard. */
.brand{background:transparent!important;color:#e5edf7}.brand .wordmark{display:grid;text-align:left;font-size:19px;font-weight:800;letter-spacing:1.5px;line-height:1}.brand .wordmark small{font-size:9px;letter-spacing:4px;color:#f8bf00;margin-top:6px}.brand img{width:34px;height:34px}.tool-card:hover:not(:disabled){border-color:#f8bf00;box-shadow:0 0 0 1px #f8bf0033}.tool-card strong{color:#e5edf7}.tool-icon{border:1px solid #665100}.online-dialog{background:#101827}.online-dialog [data-confirm],#read-model:not(:disabled){background:#f8bf00;border-color:#f8bf00;color:#17120a;font-weight:750}.account select{background:#101827;color:#e5edf7}.workspace .workspace>header{min-height:64px}.work-context{border-bottom:1px solid #26364d}.home-heading>span{color:#f8bf00}.auth-submit{background:#f8bf00;color:#17120a}.online-auth-page{flex:none}


#app{height:100dvh;min-height:0}.projects-module{height:100%;min-height:0;display:flex;flex-direction:column}.projects-toolbar{padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface)}.projects-toolbar .topbar-actions{flex-wrap:wrap}.projects-module .dashboard-layout{flex:1;min-height:0}.projects-module .detail-region{position:relative;top:auto;right:auto;width:auto;max-width:none;max-height:none;box-shadow:none;border-radius:0;padding:0;z-index:auto}.projects-module .auth-layout{height:auto}.projects-module .projects-region{overflow:auto}.projects-module .search-box{min-width:170px}body.tekla-panel .projects-module .dashboard-layout{display:flex;height:auto;flex-direction:column;overflow:auto}body.tekla-panel .projects-module .detail-region{overflow:visible}body.tekla-panel .projects-module .projects-region{flex-shrink:0}body.tekla-panel .projects-module .layout-splitter{display:none}@media(max-width:640px){.projects-module .dashboard-layout{display:flex;flex-direction:column;overflow:auto}.projects-module .projects-region{overflow:visible;flex:none}.projects-module .detail-region{flex:none;overflow:visible;min-height:250px}.projects-module .layout-splitter{display:none}.projects-toolbar .search-box{width:100%}.account #project-account{font-size:11px;padding:5px}}
#products>a{font-size:13px;padding:9px 10px;white-space:nowrap;color:var(--muted)}.projects-module .detail-header{flex-wrap:wrap}.projects-module .detail-header>div{min-width:0;max-width:100%}.projects-module .detail-actions{flex-wrap:wrap;max-width:100%}.projects-module .detail-actions button{white-space:normal}.projects-module .detail-content{min-width:0}
.installation-entry { max-width: 480px; margin: 24px auto; padding: 24px; background: #111b2a; border: 1px solid #344156; border-radius: 12px; color: #f0f3f8; }
.installation-entry h2 { margin: 0 0 8px; font-size: 20px; }
.installation-entry p { line-height: 1.5; }
.installation-entry form { display: grid; gap: 10px; }
.installation-entry input { padding: 10px; border: 1px solid #64748b; border-radius: 6px; background: #0d1522; color: white; }
.installation-entry button { padding: 10px; }
