/* ROLAVICloud-Field 1.4.3 · Flow interface layer
   Presentation only: no markup, API, protocol or JavaScript behaviour depends on this file.
   Loaded after every other stylesheet so it refines (never replaces) the original rules.
   System fonts only (the CSP allows no external fonts). */

/* ---------- 1. Design tokens ---------- */
:root {
  --ink: #0b1b33;
  --text: #1c2a3e;
  --muted: #566679;
  --faint: #7d8b9d;
  --line: #e1e7ef;
  --line-strong: #cbd5e1;
  --surface: #ffffff;
  --panel: #ffffff;
  --canvas: #f3f6fa;
  --subtle: #f7f9fc;
  --navy: #0c2a4f;
  --navy-2: #123e72;
  --blue: #1862d6;
  --blue-hover: #1252b5;
  --blue-ink: #144ba9;
  --blue-soft: #e8f0fd;
  --teal: #0a9a8c;
  --green: #137a46;
  --green-soft: #e3f5ec;
  --amber: #a85a05;
  --amber-soft: #fff1d9;
  --red: #bf2f3b;
  --red-soft: #fdeaec;
  --violet: #5a44b4;
  --violet-soft: #eeebfb;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --shadow-1: 0 1px 2px rgba(12, 42, 79, 0.06), 0 1px 3px rgba(12, 42, 79, 0.05);
  --shadow-2: 0 4px 16px rgba(12, 42, 79, 0.12);
  --shadow-3: 0 18px 56px rgba(12, 42, 79, 0.24);
  --ring: 0 0 0 3px rgba(24, 98, 214, 0.28);
  --font: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font);
  color: var(--text);
  background: var(--canvas);
  font-size: 14px;
}

/* ---------- 2. Base ---------- */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
h4 {
  font-size: 13px;
  font-weight: 650;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.small,
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 700;
  text-transform: uppercase;
}
code,
pre {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.icon {
  width: 18px;
  height: 18px;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: #cfe0fb;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 3. Form controls ---------- */
input,
textarea,
select {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background-color: #fff;
  color: var(--ink);
  font-size: 14px;
  padding: 9px 12px;
  min-height: 40px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    background-color 0.12s;
}
input::placeholder,
textarea::placeholder {
  color: #8794a6;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #aab7c8;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: var(--ring);
  outline: none;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--subtle);
  color: var(--faint);
}
select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23566679' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  background-size: 12px 8px !important;
  cursor: pointer;
}
option {
  color: #1c2a3e;
  background: #fff;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--blue);
  box-shadow: none;
  cursor: pointer;
}
input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}
input[type="file"] {
  padding: 7px;
  min-height: 0;
  font-size: 13px;
  background: var(--subtle);
}
input[type="file"]::file-selector-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 6px 12px;
  margin-right: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-ink);
}
progress {
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #e5ebf3;
  overflow: hidden;
  accent-color: var(--blue);
}
progress::-webkit-progress-bar {
  background: #e5ebf3;
  border-radius: 999px;
}
progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--blue), #3b8af0);
  border-radius: 999px;
}
progress::-moz-progress-bar {
  background: var(--blue);
  border-radius: 999px;
}
/* Form labels: stacked field label + control. */
label {
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
label small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}
.form-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
}
.check-label,
label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 9px;
}

/* ---------- 4. Buttons ---------- */
.btn {
  min-height: 38px;
  padding: 0 15px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  gap: 8px;
  transition:
    background-color 0.12s,
    border-color 0.12s,
    box-shadow 0.12s,
    transform 0.05s;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: var(--shadow-1) !important;
}
.btn.primary:hover:not(:disabled) {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.secondary:hover:not(:disabled) {
  background: var(--subtle);
  border-color: #aab7c8;
}
.btn.danger {
  background: #fff;
  color: var(--red);
  border-color: #efc4c8;
}
.btn.danger:hover:not(:disabled) {
  background: var(--red-soft);
  border-color: #e4a3aa;
}
.btn.small {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: 7px;
}
.btn.full {
  width: 100%;
  min-height: 46px;
  height: auto;
  font-size: 14.5px;
}
.btn:disabled,
button:disabled {
  opacity: 0.5;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  color: var(--muted);
}
.icon-btn:hover:not(:disabled) {
  background: #e9eff7;
  color: var(--ink);
}
.icon-btn.danger,
.project-delete.danger {
  color: var(--red);
}
.icon-btn.danger:hover {
  background: var(--red-soft);
}
.tag {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.tag.green {
  background: var(--green-soft);
  color: var(--green);
}
.tag.gray {
  background: #eef1f5;
  color: var(--muted);
}

/* ---------- 5. Feedback: toast, notices, banners ---------- */
.toast {
  top: auto;
  bottom: 44px;
  left: 50%;
  max-width: min(560px, calc(100vw - 32px));
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  border-left: 4px solid var(--teal);
  padding: 13px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: var(--shadow-3);
  animation: flow-toast-in 0.18s ease-out;
}
.toast.error {
  background: #3b1218;
  border-left-color: #ff7d88;
}
@keyframes flow-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.notice {
  background: var(--blue-soft);
  border: 1px solid #c9dbf8;
  color: #20416f;
  border-radius: var(--r);
  font-size: 13px;
  line-height: 1.55;
  padding: 11px 14px;
}
.notice.small {
  font-size: 12.5px;
}
.access-banner {
  background: var(--amber-soft);
  border-bottom: 1px solid #f0d49b;
  color: #6b4306;
  font-size: 13px;
  padding: 8px 20px;
}
.loading,
.boot {
  color: var(--muted);
  font-size: 14px;
}
.transfer-centre {
  right: 16px;
  bottom: 40px;
  width: min(340px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  font-size: 13px;
  overflow: hidden;
}
.transfer-centre > header {
  background: var(--subtle);
  padding: 9px 14px;
  font-size: 13px;
}
.transfer-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.transfer-item:last-child {
  border-bottom: 0;
}
.transfer-item small {
  font-size: 12px;
  color: var(--muted);
}
.transfer-item p {
  font-size: 12.5px;
  color: var(--text);
}
.transfer-item progress {
  height: 6px;
  margin: 9px 0 7px;
}
.transfer-item.failed {
  border-left: 3px solid var(--red);
  background: #fffafa;
}
.transfer-item.completed {
  border-left: 3px solid var(--green);
}

/* ---------- 6. Language control ---------- */
.language-control {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 0;
  padding: 0 4px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
}
.language-control:focus-within {
  border-color: var(--blue);
  box-shadow: var(--ring);
}
.language-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(12, 42, 79, 0.15);
  flex: none;
}
.language-control select {
  width: auto;
  max-width: 150px;
  min-height: 0;
  height: 32px;
  padding: 0 24px 0 0;
  border: 0;
  background-color: transparent;
  background-position: right 6px center !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.topbar .language-control select {
  max-width: 150px;
  font-size: 13px;
}
.login-side > .language-control {
  align-self: flex-end;
}

/* ---------- 7. Sign-in screen ---------- */
.login-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}
.login-story {
  padding: 44px clamp(32px, 4.4vw, 76px) 28px;
  background:
    radial-gradient(1200px 600px at 110% 110%, rgba(10, 154, 140, 0.35), transparent 60%),
    linear-gradient(150deg, #071f3f 0%, #0d3566 52%, #0b5566 120%);
}
.login-story .story-body {
  margin: 28px 0 24px;
  padding: 0;
  max-width: 680px;
}
.login-story .story-body h1 {
  color: #fff;
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 14px 0 16px;
  font-weight: 700;
}
.story-body em {
  color: #6fe0d3;
}
.login-story .story-body > p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #cfe0f1;
  max-width: 560px;
}
.light {
  color: #8fc3e6;
}
.landing-offers {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(143, 195, 230, 0.28);
}
.landing-offers h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.offers-grid {
  gap: 14px;
}
.offer-card {
  border: 1px solid rgba(143, 195, 230, 0.35);
  background: rgba(7, 31, 63, 0.55);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  backdrop-filter: blur(2px);
}
.offer-card h3 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
}
.offer-price strong {
  font-size: 30px;
  letter-spacing: -0.02em;
}
.offer-price span {
  font-size: 12px;
}
.offer-saving {
  min-height: 0;
  font-size: 12px;
  padding-top: 4px;
  margin-bottom: 10px;
}
.offer-card.offer-annual {
  background: #dcfaf2;
  border-color: #8ee6d4;
  color: #0f2f48;
}
.offer-annual h3 {
  color: #0f3b50;
}
.offer-cta {
  border-radius: var(--r);
  padding: 10px 12px;
  font-size: 13px;
}
.offer-features {
  margin: 16px 0;
  gap: 8px 20px;
}
.offer-features li {
  font-size: 13px;
  color: #e4f0fa;
}
.login-story .landing-offers .offer-manual,
.login-story .landing-offers .offer-limits p {
  font-size: 12px;
  color: #c4dcec;
}
.sales-contact {
  font-size: 13px;
}
.offer-limits summary {
  font-size: 12px;
}
.story-tags {
  margin-top: 4px;
  gap: 20px;
  font-size: 12.5px;
  color: #d4e6f3;
}
.login-story footer {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: #9dbdd6;
}
.login-side {
  background: #fff;
  padding: 40px 48px;
}
.login-card {
  max-width: 380px;
}
.wordmark {
  font-size: 26px;
  margin-bottom: 40px;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.wordmark > span {
  color: #2d7bb8;
}
.wordmark > .icon {
  color: var(--blue);
}
.login-card h2 {
  font-size: 30px;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 6px;
}
.login-card form {
  margin-top: 26px;
}
.login-card input {
  min-height: 46px;
  font-size: 15px;
}
.password-input button {
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-ink);
  border-radius: 6px;
}
.password-input button:hover {
  background: var(--blue-soft);
}
.login-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.login-note .icon {
  color: var(--teal);
}
.login-bottom {
  font-size: 12.5px;
  color: var(--muted);
}
.login-side footer {
  font-size: 12px;
  color: var(--faint);
}

/* ---------- 8. Workspace shell: sidebar + top bar ---------- */
.workspace {
  background: var(--canvas);
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
}
.sidebar .brand {
  height: 74px;
  padding: 0 20px;
  align-items: center;
}
.brand img {
  width: 108px;
}
.brand > span {
  font-size: 15px;
  font-weight: 650;
  color: var(--navy-2);
  line-height: 1.15;
}
.pilot {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--faint);
  font-weight: 700;
  margin-top: 3px;
}
.sidebar .workspace-label {
  margin: 4px 14px 14px;
  padding: 11px 12px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  gap: 11px;
}
.avatar {
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-weight: 700;
}
.workspace-label strong {
  font-size: 13.5px;
  color: var(--ink);
}
.workspace-label small {
  font-size: 12px;
  color: var(--muted);
}
.sidebar .nav-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 700;
  padding: 18px 14px 6px;
}
.sidebar .nav-item {
  min-height: 40px;
  margin: 1px 10px;
  padding: 0 12px;
  gap: 12px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.sidebar .nav-item .icon {
  color: var(--faint);
}
.sidebar .nav-item:hover {
  background: #eff3f9;
}
.sidebar .nav-item.active {
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--blue);
}
.sidebar .nav-item.active .icon {
  color: var(--blue);
}
.sidebar-info {
  margin: 12px 14px;
  padding: 14px !important;
  background: var(--subtle) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg);
  color: var(--muted) !important;
}
.sidebar-info strong {
  font-size: 13px;
  color: var(--ink);
}
.sidebar-info p {
  font-size: 12.5px;
  line-height: 1.5;
  margin: 4px 0 0;
}
.sidebar-info > .icon {
  color: var(--teal);
}
.sidebar-language {
  padding: 4px 14px 10px;
}
.sidebar .sidebar-user {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
}
.sidebar-user strong {
  font-size: 13.5px;
  color: var(--ink);
}
.sidebar-user small {
  font-size: 12px;
  color: var(--muted);
}
.topbar {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
}
.topbar .crumb {
  font-size: 14px;
  color: var(--muted);
}
.crumb strong {
  color: var(--ink);
  font-weight: 650;
}
.status-dot {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 11px 5px 10px;
  border-radius: 999px;
}
.page-padding {
  padding: 30px 36px 48px;
}
.page-title {
  gap: 16px;
  align-items: flex-start;
}
.page-title h1 {
  font-size: 28px;
  margin-bottom: 6px;
}
.page-title p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
.page-title .eyebrow {
  margin-bottom: 8px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.panel.padded {
  padding: 22px;
}
.lead {
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 9. Projects ---------- */
.projects-page .page-title {
  margin-bottom: 4px;
}
.projects-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 14px;
}
.searchbox {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  min-height: 40px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.searchbox:hover {
  border-color: #aab7c8;
}
.searchbox:focus-within {
  border-color: var(--blue);
  box-shadow: var(--ring);
}
.searchbox > .icon {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--faint);
}
.searchbox input,
.projects-controls .searchbox input,
.object-search input,
.table-header .searchbox input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 38px;
  padding: 8px 12px 8px 38px !important;
  font-size: 14px;
}
.projects-controls .searchbox {
  flex: 0 1 340px;
}
.owner-filter,
.projects-controls .owner-filter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.owner-filter select,
.projects-controls select {
  min-height: 40px;
  min-width: 150px;
}
.projects-view-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #e8eef6;
  border-radius: 10px;
  border: 0;
  margin-bottom: 18px;
}
.projects-view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.projects-view-switch button:hover {
  color: var(--ink);
}
.projects-view-switch .selected {
  background: #fff;
  color: var(--blue-ink);
  box-shadow: var(--shadow-1);
}
.projects-view-switch .icon {
  width: 16px;
  height: 16px;
}
.flow-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.flow-project-grid .project-card,
.project-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition:
    box-shadow 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.flow-project-grid .project-card:hover,
.project-card:hover {
  border-color: #b9cbe3;
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.project-cover {
  height: 180px;
  background: linear-gradient(135deg, #e9eff7, #dce6f2);
  border-bottom: 1px solid var(--line);
}
.preview-empty {
  color: var(--faint);
  font-size: 13px;
}
.project-preview-provider {
  font-size: 11px;
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--muted);
}
.project-card-body {
  padding: 16px 18px 18px;
}
.project-card h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.project-card .project-description,
.project-description {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.45em;
}
.project-meta {
  font-size: 12.5px;
  color: var(--muted);
}
.project-card-crs {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}
.project-card .project-delete {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.project-card .project-purge {
  right: 54px;
}
.preview-legend {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 22px;
}
.flow-project-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
}
.flow-project-table td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.table-project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--blue-ink);
}
.table-project-link:hover {
  text-decoration: underline;
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xl);
}
.empty-state h2 {
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--muted);
}

/* ---------- 10. Project workspace: top bar ---------- */
.is-project .topbar {
  height: 58px;
  min-height: 58px;
  background: var(--navy);
  background-image: linear-gradient(180deg, #0e3060 0%, #0b2749 100%);
  border-bottom: 1px solid #07203f;
  padding: 0 16px;
  gap: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.is-project .topbar .icon-btn {
  color: #cfe0f5;
}
.is-project .topbar .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.project-brand {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 16px;
  height: 30px;
}
.project-brand img {
  width: 92px;
  height: 26px;
}
.all-projects-link {
  font-size: 13.5px;
  color: #bcd3ee;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
}
.all-projects-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.top-separator {
  color: #6f8db3;
}
.header-project-name {
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  max-width: 340px;
}
.flow-top-actions {
  gap: 4px;
}
.flow-top-actions .btn.toolbar {
  min-width: 62px;
  min-height: 46px;
  padding: 5px 10px;
  gap: 4px;
  color: #dbe8f8;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r);
  transform: none;
}
.flow-top-actions .btn.toolbar:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.flow-top-actions .btn.toolbar .icon {
  width: 19px;
  height: 19px;
}
.is-project .topbar .language-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  height: 34px;
  margin-left: 6px;
}
.is-project .topbar .language-control select {
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23cfe0f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
.is-project .topbar .language-control select option {
  color: #1c2a3e;
}
.ui-version {
  font-size: 11.5px;
  font-weight: 600;
  color: #a9c3e2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ---------- 11. Project workspace: view tabs ---------- */
.is-project .project-toolbar {
  height: 52px;
  min-height: 52px;
  padding: 0 16px;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.segments {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #e8eef6;
  border-radius: 10px;
}
.segments button {
  height: 34px;
  padding: 0 14px;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  transition:
    background-color 0.12s,
    color 0.12s;
}
.segments button:hover {
  color: var(--ink);
}
.segments button.selected {
  background: #fff;
  color: var(--blue-ink);
  box-shadow: var(--shadow-1);
}
.segments .icon {
  width: 17px;
  height: 17px;
}
.clear-selection {
  margin-left: auto;
}
.workspace-reference {
  font-size: 12px;
  color: var(--muted);
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  max-width: 46%;
}
.is-project .project-status {
  height: 28px;
  min-height: 28px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  gap: 18px;
  padding: 0 16px;
}
.is-project .project-status .icon {
  width: 13px;
  height: 13px;
  color: var(--green);
}

/* ---------- 12. Project workspace: three-column body ---------- */
@media (min-width: 1201px) {
  .is-project .project-body {
    grid-template-columns: 296px minmax(0, 1fr) 328px;
  }
}
@media (min-width: 1800px) {
  .is-project .project-body {
    grid-template-columns: 316px minmax(0, 1fr) 352px;
  }
}

/* Labels inside the workspace are inline controls, never stacked form fields. */
.project-workspace label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}
.project-workspace .inspector label.drawing-name,
.project-workspace .inspector label.drawing-z {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 14px;
}

/* ---------- 13. Objects panel ---------- */
.is-project .layer-panel {
  background: #fff;
  border-right: 1px solid var(--line);
}
.objects-heading {
  padding: 14px 14px 6px 18px;
  min-height: 52px;
}
.objects-heading strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.objects-heading .icon-btn {
  color: var(--muted);
}
.objects-heading-actions {
  gap: 4px;
}
.objects-heading-actions .icon-btn.selected {
  background: var(--blue-soft);
  color: var(--blue-ink);
}
#add-object {
  background: var(--blue);
  color: #fff;
}
#add-object:hover {
  background: var(--blue-hover) !important;
  color: #fff !important;
}
.object-search {
  margin: 4px 14px 12px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
}
.bulk-tools {
  padding: 8px 14px;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--subtle);
  border-bottom: 1px solid var(--line);
}
.bulk-tools .btn {
  font-size: 12px;
  min-height: 30px;
  padding: 0 10px;
}
.objects-scroll {
  scrollbar-width: thin;
  scrollbar-color: #c4cfdd transparent;
}

/* Live rovers card */
#project-live-host {
  padding: 0 14px 12px;
  border-bottom: 0;
}
.project-live {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  font-size: 13px;
  overflow: hidden;
}
.project-live > summary {
  margin: 0;
  padding: 11px 12px 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fbfe, #f3f7fc);
  border-bottom: 1px solid var(--line);
}
#project-live-host .project-live:not([open]) > summary {
  border-bottom: 0;
  padding-top: 11px;
  padding-bottom: 11px;
}
.project-live [data-count] {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 2px 9px;
}
#project-live-host .live-minimize {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border-color: var(--line-strong);
  color: var(--muted);
}
#project-live-host .live-actions {
  flex-wrap: wrap;
  padding: 10px 12px 6px;
  gap: 8px;
}
#project-live-host .live-actions label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
#project-live-host .live-actions input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.live-action-buttons {
  gap: 6px;
  margin-left: 0;
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr 1fr 40px;
}
.live-actions button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 11px;
}
#project-live-host .live-actions button {
  min-height: 32px;
  width: 100%;
}
.live-actions button:hover:not(:disabled) {
  background: var(--subtle);
  border-color: #aab7c8;
}
#project-live-host .live-timing {
  font-size: 12px;
  color: var(--muted);
  margin: 0 12px 6px;
}
#project-live-host .live-timing label {
  font-size: 12px;
  color: var(--muted);
}
#project-live-host .live-timing select {
  width: 66px;
  min-height: 28px;
  height: 28px;
  padding: 0 24px 0 9px;
  font-size: 12.5px;
  border-radius: 7px;
  background-position: right 8px center !important;
}
.live-message,
.live-note {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 12px 8px;
}
#project-live-host .live-message {
  padding: 0;
  font-weight: 500;
  color: var(--text);
}
.project-rover-list {
  padding: 0 10px;
  max-height: 200px;
}
.project-rover-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 9px 11px;
  margin-bottom: 6px;
  gap: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition:
    border-color 0.12s,
    background-color 0.12s;
}
.project-rover-row:hover {
  border-color: #aab7c8;
}
.project-rover-row.selected {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.project-rover-row strong {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-rover-row.selected strong {
  white-space: normal;
  overflow-wrap: anywhere;
}
.project-rover-row > span {
  font-size: 12px;
  font-weight: 700;
  background: #f1f4f9;
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.02em;
}
.project-rover-row small {
  font-size: 12px;
  color: var(--muted);
}
.live-note {
  line-height: 1.45;
}

/* Object groups and rows */
.object-group {
  border-bottom: 1px solid var(--line);
}
.object-group > summary {
  padding: 11px 16px;
  gap: 9px;
  background: var(--subtle);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.object-group > summary:hover {
  background: #f0f4fa;
}
.object-group > summary .icon {
  width: 16px;
  height: 16px;
  color: var(--faint);
}
.object-group > summary b {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  background: #e8eef6;
  border-radius: 999px;
  padding: 1px 9px;
  min-width: 26px;
  text-align: center;
}
.object-group > summary::after {
  color: var(--faint);
  margin-left: 2px;
}
.group-tools {
  padding: 8px 16px 4px;
}
.group-tools label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  gap: 9px;
}
.group-empty {
  font-size: 12.5px;
  color: var(--faint);
  padding: 10px 16px;
}
.object-row {
  min-height: 44px;
  padding: 2px 8px 2px 16px;
  gap: 9px;
  align-items: center;
}
.object-row > input {
  margin: 0;
  width: 16px;
  height: 16px;
}
.object-item {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--ink);
}
.object-item:hover {
  background: #eef3fa;
}
.object-row.active,
.object-row-wrap.active {
  background: var(--blue-soft);
}
.object-row.active .object-item {
  background: transparent;
  color: var(--blue-ink);
}
.object-name {
  font-size: 13.5px;
  font-weight: 600;
  gap: 8px;
}
.object-item small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  padding-left: 15px;
}
.object-symbol {
  width: 8px;
  height: 8px;
  color: var(--blue);
}
.object-symbol.lines {
  color: var(--teal);
}
.object-symbol.polygons {
  color: var(--violet);
}
.object-row .object-zoom {
  width: 30px;
  min-width: 30px;
  height: 30px;
  color: var(--faint);
}
.object-row .object-zoom:hover {
  color: var(--blue-ink);
}
.show-more {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-ink);
  padding: 6px 10px;
  border-radius: 6px;
}
.show-more:hover {
  background: var(--blue-soft);
}
/* One bundle = one named vector. Compact single line, actions aligned on the right. */
.vector-bundle {
  margin: 0;
  padding: 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.vector-bundle > summary {
  margin: 0;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  min-height: 46px;
}
.vector-bundle > summary:hover {
  background: #f4f7fc;
}
.vector-bundle > summary:before {
  color: var(--faint);
  width: 10px;
  text-align: center;
  flex: none;
}
.vector-bundle-title {
  gap: 9px;
}
.vector-bundle-title strong {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}
.vector-bundle-title small {
  font-size: 12px;
  color: var(--muted);
  background: #eef2f8;
  border-radius: 999px;
  padding: 1px 8px;
}
.vector-bundle-actions {
  gap: 2px;
  flex: none;
}
.vector-bundle-actions label {
  margin: 0;
  padding: 0 7px;
}
.vector-bundle-children {
  margin-left: 22px;
  padding-left: 0;
  border-left: 2px solid #dfe8f3;
}
.vector-bundle-children .object-row {
  background: transparent;
  padding-left: 10px;
}
.vector-bundle-children .object-row.active {
  background: var(--blue-soft);
}
.multipart-bulk-part {
  font-size: 12px;
}
.multipart-bulk-part small {
  font-size: 11px;
}
/* Reference assets (surfaces, models, orthomosaics, source layers) */
.asset-row {
  padding: 11px 14px 11px 16px;
  border-bottom: 1px solid var(--line);
}
.asset-row > label {
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}
.asset-row > label input {
  margin-top: 2px;
}
.asset-row strong {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.asset-row small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.asset-row.active {
  background: var(--blue-soft);
}
.asset-actions {
  gap: 2px !important;
  margin-top: 6px !important;
  justify-content: flex-start !important;
  padding-left: 26px;
}
.asset-actions .icon-btn {
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.asset-actions .icon-btn:hover {
  background: #e4ecf7;
  color: var(--blue-ink);
}
.asset-actions .delete {
  color: var(--red);
  margin-left: auto;
}
.asset-actions .delete:hover {
  background: var(--red-soft);
  color: var(--red);
}
.ortho-edge-mode {
  padding-left: 26px;
  margin-top: 6px;
}
.ortho-edge-mode select {
  min-height: 34px;
  font-size: 13px;
}
.layer-foot {
  padding: 9px 16px;
  font-size: 12px;
  color: var(--muted);
  background: var(--subtle);
}
.layer-foot .icon {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

/* ---------- 14. Canvas: drawing toolbar, map controls ---------- */
.data-canvas {
  background: #e7edf4;
}
.drawing-toolbar {
  gap: 8px 12px;
  padding: 8px 72px 8px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
  align-items: center;
  box-shadow: none;
}
.drawing-modes,
.drawing-actions,
.drawing-vector,
.drawing-precision {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.drawing-vector,
.drawing-precision,
.drawing-toolbar .drawing-z {
  padding: 3px 4px 3px 12px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.drawing-precision {
  padding-right: 6px;
  gap: 12px;
}
.drawing-modes {
  gap: 2px;
  padding: 3px;
  background: #e8eef6;
  border-radius: 9px;
}
.drawing-toolbar button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
}
.drawing-modes button {
  background: transparent;
  color: var(--muted);
}
.drawing-modes button:hover {
  color: var(--ink);
}
.drawing-toolbar button.selected {
  background: #fff;
  color: var(--blue-ink);
  box-shadow: var(--shadow-1);
}
.drawing-actions button {
  border-color: var(--line-strong);
}
.drawing-actions button:hover:not(:disabled) {
  background: var(--subtle);
  border-color: #aab7c8;
}
.drawing-toolbar button.draw-save {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: none;
}
.drawing-toolbar button.draw-save:hover:not(:disabled) {
  background: var(--blue-hover);
}
.drawing-toolbar button:disabled {
  opacity: 0.4;
}
.drawing-vector label,
.drawing-precision label,
.drawing-z label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.drawing-precision label {
  gap: 6px;
  color: var(--text);
}
.drawing-vector select,
.drawing-precision select {
  min-height: 32px;
  height: 32px;
  padding: 0 28px 0 10px;
  font-size: 12.5px;
  border-radius: 7px;
  background-position: right 9px center !important;
}
.drawing-vector select {
  min-width: 180px;
  max-width: 240px;
  background-color: #fff;
}
.drawing-precision select {
  background-color: #fff;
}
.drawing-precision select {
  width: auto;
}
.drawing-precision input {
  width: 15px;
  height: 15px;
}
.drawing-toolbar .drawing-mini {
  background: var(--blue-soft);
  color: var(--blue-ink);
  border-color: #c3d6f6;
}
.drawing-toolbar .drawing-z {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 12.5px;
}
.drawing-toolbar.is-disabled {
  opacity: 0.5;
}
.geometry-edit-toolbar {
  top: 14px;
  left: 14px;
  right: 74px;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.geometry-edit-toolbar strong {
  font-size: 13px;
  color: var(--ink);
}
.geometry-edit-toolbar small,
.geometry-edit-toolbar [data-edit-position] {
  font-size: 12px;
  color: var(--muted);
}
.geometry-edit-precision label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
}
.snap-badge {
  font-size: 11px;
  border-radius: 6px;
}
/* Map controls */
.basemap-overlay {
  top: 6px;
  right: 14px;
}
.map-layer-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  color: var(--ink);
  transition: background-color 0.12s;
}
.map-layer-button:hover {
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.map-layer-button .icon {
  width: 21px;
  height: 21px;
}
.basemap-popover {
  top: 48px;
  width: 284px;
  padding: 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.basemap-popover h3 {
  font-size: 14px;
  margin-bottom: 12px;
}
.basemap-popover label {
  font-size: 12.5px;
  margin-bottom: 10px;
  flex-direction: column;
  align-items: stretch;
  font-weight: 600;
  color: var(--muted);
}
.basemap-popover label.base-labels {
  flex-direction: row;
  align-items: center;
  color: var(--text);
  font-size: 13px !important;
  font-weight: 500;
}
.basemap-popover select {
  min-height: 38px;
  font-size: 13px;
}
.base-tile {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.tile-preview {
  border-radius: 12px;
  border-width: 2px;
}
.base-tile.selected {
  color: var(--blue-ink);
}
.base-tile.selected .tile-preview {
  border-color: var(--blue);
}
.base-config {
  font-size: 12.5px;
  color: var(--blue-ink);
  font-weight: 600;
}
.basemap-popover .format-choice {
  font-size: 13px;
}
.maplibregl-ctrl-group {
  border-radius: 10px !important;
  box-shadow: var(--shadow-2) !important;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}
.maplibregl-ctrl-group button {
  width: 36px;
  height: 36px;
}
.maplibregl-ctrl-group button:hover {
  background-color: var(--blue-soft);
}
.maplibregl-ctrl-scale {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: #5b6b80;
  border-radius: 0 0 4px 4px;
  padding: 1px 7px;
}
.maplibregl-ctrl-attrib {
  font-family: var(--font);
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px 0 0 0;
  color: var(--muted);
}
.maplibregl-ctrl-attrib a {
  color: var(--blue-ink);
}
.rover-label {
  font: 600 12px/1.3 var(--font);
  border-radius: 8px;
  padding: 3px 8px;
  box-shadow: var(--shadow-1);
}
.map-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 18px 24px;
  text-align: center;
}
.map-empty strong {
  font-size: 16px;
  color: var(--ink);
}
.map-empty span {
  font-size: 13.5px;
  color: var(--muted);
}
.drag-over {
  outline: 3px dashed var(--blue);
  outline-offset: -8px;
  background: rgba(24, 98, 214, 0.06);
}
.model-toolbar {
  padding: 8px 72px 8px 16px;
  min-height: 52px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.model-toolbar label {
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  color: var(--muted);
}
.model-toolbar select {
  min-height: 34px;
  font-size: 13px;
  padding: 0 30px 0 10px;
  color: var(--ink);
}
.model-note {
  font-size: 12px;
  color: var(--muted);
  padding: 7px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  max-height: 56px;
}
.tin-legend {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}
.tin-legend small,
.tin-legend-labels {
  font-size: 12px;
}

/* ---------- 15. Inspector (right panel) ---------- */
.is-project .inspector {
  background: #fff;
  border-left: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}
.inspector-heading {
  min-height: 58px;
  padding: 12px 16px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.inspector-heading h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.inspector-heading > strong {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}
.inspector-heading .icon-btn {
  width: 32px;
  height: 32px;
  padding: 6px;
  color: var(--muted);
  flex: none;
}
.revision-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: #eef2f8;
  border-radius: 999px;
  padding: 2px 9px;
}
.inspector-block {
  padding: 16px 18px;
}
.inspector-block h3 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 16px 0 5px;
}
.inspector-block h3:first-child {
  margin-top: 0;
}
.inspector-block p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.inspector-block small {
  font-size: 12px;
  color: var(--muted);
}
.inspector-block.muted p,
.inspector-block p.muted {
  color: var(--muted);
  font-size: 13px;
}
.inspector-block.muted {
  background: var(--subtle);
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.selected-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  gap: 10px;
  overflow-wrap: anywhere;
}
.selected-name .object-symbol {
  width: 10px;
  height: 10px;
}
.geometry-part-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.inspector-divider {
  padding: 8px 18px;
  background: var(--subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.coordinate-tabs {
  display: flex;
  width: 100%;
  background: #e8eef6;
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 12px;
  gap: 2px;
}
.coordinate-tabs button {
  flex: 1;
  height: 30px;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 7px;
  color: var(--muted);
}
.coordinate-tabs .selected {
  background: #fff;
  color: var(--blue-ink);
  box-shadow: var(--shadow-1);
}
.coordinate-list,
.project-specs,
.inspector .coordinate-list,
.inspector .project-specs {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
  gap: 0;
  margin: 0 0 14px;
  font-size: 13.5px;
}
.coordinate-list dt,
.coordinate-list dd,
.project-specs dt,
.project-specs dd {
  padding: 8px 0;
  border-bottom: 1px solid #edf1f6;
  margin: 0;
}
.coordinate-list dt,
.project-specs dt {
  color: var(--muted);
  font-size: 13px;
  padding-right: 16px;
}
.inspector .coordinate-list dt,
.inspector .project-specs dt {
  color: var(--muted);
  padding-right: 16px;
}
.inspector .coordinate-list dd,
.inspector .project-specs dd {
  font-size: 13.5px;
  color: var(--ink);
}
.coordinate-list dd,
.project-specs dd {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.coordinate-crs {
  font-size: 13px !important;
  color: var(--muted) !important;
}
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.project-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px 4px 9px;
}
.project-facts .icon {
  width: 14px;
  height: 14px;
}
.inspector-attributes summary {
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}
.inspector-note {
  font-size: 12.5px;
  border-radius: var(--r);
}
.inspector-actions {
  padding: 14px 18px 20px;
  gap: 8px;
}
.inspector-actions .btn {
  min-height: 38px;
}
.solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 11px 3px 9px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--muted);
}
.solution-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.solution-fix {
  background: var(--green-soft);
  color: var(--green);
}
.solution-float {
  background: var(--amber-soft);
  color: var(--amber);
}
.solution-dgnss {
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.solution-single {
  background: var(--violet-soft);
  color: var(--violet);
}
.solution-invalid {
  background: var(--red-soft);
  color: var(--red);
}
.measurement-summary h4 {
  font-size: 13px;
}
.attribute-list > div {
  padding: 7px 0;
}

/* ---------- 16. Data tables ---------- */
.table-header {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.table-header > span {
  font-size: 12.5px;
  color: var(--muted);
}
.table-header .searchbox {
  flex: 0 1 340px;
}
.table-scroll {
  background: #fff;
}
table {
  font-size: 13.5px;
}
th {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--subtle);
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.table-scroll th,
.table-scroll thead {
  background: var(--subtle);
}
td {
  font-size: 13px;
  padding: 11px 14px;
  border-bottom: 1px solid #edf1f6;
  color: var(--text);
  vertical-align: middle;
}
td strong {
  color: var(--ink);
}
td small {
  font-size: 12px;
  color: var(--muted);
}
.points-table td {
  font-variant-numeric: tabular-nums;
}
.points-table tr:hover,
tr[data-feature]:hover {
  background: #f4f8fd;
}
.points-table tr.active,
.points-table tr.active:hover {
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}
.pagination {
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.activity {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 24px;
}
.activity h2 {
  font-size: 22px;
}
.activity-row {
  padding: 13px 4px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.activity-row > .icon {
  color: var(--faint);
}
.activity-row strong {
  font-size: 14px;
  color: var(--ink);
  text-transform: capitalize;
}
.activity-row small,
.activity-row time {
  font-size: 12.5px;
  color: var(--muted);
}
.data-canvas > .activity {
  background: #fff;
  overflow: auto;
  flex: 1;
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px max(24px, calc((100% - 860px) / 2));
}
.data-canvas > .activity > * {
  max-width: none;
}

/* ---------- 17. Dialogs ---------- */
.modal-backdrop {
  background: rgba(8, 28, 56, 0.5);
  backdrop-filter: blur(3px);
}
.modal {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text);
}
.modal > header {
  padding: 24px 28px 4px;
}
.modal.flow-export-modal > header,
.modal .import-content > header {
  padding: 0;
}
.modal.flow-export-modal > header {
  margin-bottom: 18px;
}
.modal h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.modal > header p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 4px;
}
.modal form {
  padding: 18px 28px 24px;
}
.modal label {
  font-size: 13px;
  margin-bottom: 16px;
}
.modal input,
.modal select,
.modal textarea {
  font-size: 14px;
}
.modal label small {
  font-size: 12px;
}
.modal footer {
  padding-top: 18px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.modal details > p {
  font-size: 12.5px;
}
.modal textarea {
  min-height: 84px;
}
.format-choice {
  min-height: 46px;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition:
    border-color 0.12s,
    background-color 0.12s;
}
.format-choice:hover:not(:disabled) {
  background: var(--subtle);
  border-color: #aab7c8;
}
.format-choice.selected {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-ink);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.format-choice small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.flow-import-modal .import-formats {
  background: var(--subtle);
}
.import-formats h2 {
  font-size: 20px;
}
.import-content label {
  font-size: 13px;
}
.import-content .file-drop {
  border: 2px dashed #b9c8dc;
  background: var(--subtle);
  border-radius: var(--r-lg);
  transition:
    border-color 0.12s,
    background-color 0.12s;
}
.import-content .file-drop:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.import-content .file-drop strong {
  font-size: 14px;
  color: var(--blue-ink);
}
.import-content .notice {
  font-size: 12.5px;
}
.export-note {
  font-size: 12.5px;
  color: var(--muted);
}
.simple-menu {
  width: 380px;
}
.file-drop {
  border-radius: var(--r-lg);
}
.attribute-toolbar label,
.attribute-toolbar select {
  font-size: 13px;
}
.attribute-table th,
.attribute-table td {
  font-size: 13px;
}
.rover-report-modal {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
}
.rover-report-modal > header strong {
  font-size: 19px;
  color: var(--ink);
}
.rover-report-modal > header small,
.rover-report-modal .muted,
.rover-report-status {
  font-size: 12.5px;
}
.rover-report-controls label {
  flex-direction: column;
  align-items: stretch;
  font-size: 12.5px;
  margin: 0;
}
.live-report-primary {
  background: var(--blue) !important;
  border-radius: var(--r) !important;
  min-height: 40px;
}
.rover-report-summary span,
.rover-report-summary small,
.rover-history-row button small {
  font-size: 11.5px;
}
.rover-session-row {
  font-size: 12.5px;
}

/* ---------- 18. Administration, settings, help, geodesy ---------- */
.admin-page {
  max-width: 1500px;
}
.admin-stats {
  gap: 14px;
  margin: 22px 0;
}
.admin-stats > div {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
}
.admin-stats span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.admin-stats strong {
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-top: 6px;
}
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-1);
}
.admin-card h2 {
  font-size: 18px;
}
.admin-card .searchbox {
  max-width: 380px;
  margin: 10px 0 14px;
}
/* Admin search has no <svg> sibling in its markup: draw the magnifier as a background. */
.admin-card .searchbox input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%237d8b9d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 16l5 5M10 3a7 7 0 1 0 0 14 7 7 0 0 0 0-14'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 17px 17px !important;
}
.admin-card table,
.settings-grid table {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.account-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: var(--blue-soft);
  color: var(--blue-ink);
  text-transform: capitalize;
}
.account-badge.active {
  background: var(--green-soft);
  color: var(--green);
}
.account-badge.expired,
.account-badge.disabled {
  background: var(--red-soft);
  color: var(--red);
}
.account-badge.not_started,
.account-badge.expiring {
  background: var(--amber-soft);
  color: var(--amber);
}
.admin-card td small {
  color: var(--amber);
  font-size: 12px;
}
.settings-grid {
  gap: 18px;
}
.settings-grid h2 {
  font-size: 17px;
}
.settings-grid p {
  font-size: 13.5px;
}
.storage-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.storage-value span {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.settings-grid code {
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px 12px;
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.geoid-card,
.crs-result {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.geoid-card h3 {
  font-size: 15px;
}
.geoid-card p {
  font-size: 13px;
  color: var(--muted);
}
.crs-picker > label {
  margin-bottom: 6px;
}
.crs-picker > small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
/* The picker leaves a finished (value=100) progress bar behind; only show it while searching. */
.crs-loading[value="100"] {
  display: none;
}
.crs-loading {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 6px;
}
.crs-options {
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.crs-options button {
  font-size: 13.5px;
}
.crs-options button small {
  font-size: 12px;
}
details > summary {
  font-weight: 600;
}
pre {
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 12.5px;
}
.account-gate {
  background: var(--canvas);
}
.gate-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.gate-card h1 {
  font-size: 26px;
}

/* ---------- 19. Responsive refinements ---------- */
@media (max-width: 1200px) {
  .is-project .topbar {
    gap: 10px;
  }
  .flow-top-actions .btn.toolbar {
    min-width: 50px;
    padding: 5px 7px;
  }
  .workspace-reference {
    max-width: 38%;
  }
}
@media (max-width: 850px) {
  .page-padding {
    padding: 22px 18px 40px;
  }
  .topbar {
    padding: 0 16px;
  }
}
@media (max-width: 640px) {
  .toast {
    bottom: 36px;
  }
  .login-story {
    padding: 28px 22px;
  }
  .projects-controls {
    flex-wrap: wrap;
  }
  .projects-controls .searchbox {
    flex: 1 1 100%;
  }
  .flow-project-grid {
    grid-template-columns: 1fr;
  }
  .modal > header,
  .modal form {
    padding-left: 18px;
    padding-right: 18px;
  }
}
