/* ==========================================================================
   VMAP prototyping design system
   All styles are hand-written, no dependencies.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — UConsole (self-hosted, replaces the original Inter)
   Regular 400 / Medium 500–600 / Light 300
   -------------------------------------------------------------------------- */
@font-face {
  font-display: swap;
  font-family: "UConsole";
  font-style: normal;
  font-weight: 500 600;
  src: url("../fonts/UConsole-Medium.woff2") format("woff2"),
    url("../fonts/UConsole-Medium.woff") format("woff");
}

@font-face {
  font-display: swap;
  font-family: "UConsole";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/UConsole-Regular.woff2") format("woff2"),
    url("../fonts/UConsole-Regular.woff") format("woff");
}

@font-face {
  font-display: swap;
  font-family: "UConsole";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/UConsole-Light.woff2") format("woff2"),
    url("../fonts/UConsole-Light.woff") format("woff");
}

/* --------------------------------------------------------------------------
   1. Design tokens (VMAP design system)
   -------------------------------------------------------------------------- */
:root {
  /* Neutral base */
  --c-base-0: #fff;
  --c-base-10: #f8f8f8;
  --c-base-20: #f4f4f4;
  --c-base-50: #f1f1f1;
  --c-base-100: #ebebeb;
  --c-base-200: #e0e0e0;
  --c-base-300: #d9d9d9;
  --c-base-400: #c4c4c4;
  --c-base-500: #9d9d9d;
  --c-base-600: #818181;
  --c-base-650: #656565;
  --c-base-700: #4b4b4b;
  --c-base-750: #404040;
  --c-base-800: #2e2e2e;
  --c-base-850: #222223;
  --c-base-900: #181818;
  --c-base-1000: #000;

  /* Primary blue */
  --c-primary-blue-40: #f7f7fd;
  --c-primary-blue-60: #ebecfc;
  --c-primary-blue-140: #e1e3f9;
  --c-primary-blue-200: #d5d7f6;
  --c-primary-blue-250: #c0c3f2;
  --c-primary-blue-350: #99a3ff;
  --c-primary-blue-380: #5c6ae5;
  --c-primary-blue-500: #2c37d4;
  --c-primary-blue-540: #2730bb;
  --c-primary-blue-580: #212aa1;
  --c-primary-blue-650: #1b266d;
  --c-primary-blue-700: #434d6e;
  --c-primary-blue-750: #465364;
  --c-primary-blue-800: #3c4154;

  /* Steel */
  --c-steel-50: #efeff4;
  --c-steel-300: #8c9799;
  --c-steel-400: #495a63;
  --c-steel-550: #37424b;
  --c-steel-600: #313a40;
  --c-steel-650: #2a333a;
  --c-steel-750: #232729;
  --c-steel-800: #182125;

  /* Accents */
  --c-red-350: #f55;
  --c-red-600: #e50303;
  --c-green-500: #4caf50;
  --c-yellow-200: #ffdf3a;
  --c-yellow-400: #ffb800;
  --c-orange-300: #ef5533;
  --c-cyan-300: #00a79d;

  /* Layout */
  --app-width-max: 1440px;
  --app-width-mid: 1024px;
  --app-width-min: 768px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 3em;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-float: 0 4px 16px rgba(0, 0, 0, 0.14);

  --font: "UConsole", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
  color: var(--c-base-900);
  background-color: var(--c-base-0);
  -webkit-text-size-adjust: 100%;
}

/* The `hidden` attribute must win over component display rules (e.g. the
   grid/table view switch in app.js relies on it). */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.04em;
}

h1 {
  font-size: 40px;
  line-height: 1.2;
}
h2 {
  font-size: 30px;
  line-height: 1.4;
}
h3 {
  font-size: 22px;
  line-height: 1.3;
}
h4 {
  font-size: 18px;
  line-height: 1.4;
}

button {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
}

.text-muted {
  color: var(--c-base-600);
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-base-900);
  font: inherit;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    color 0.15s ease-in-out;
}

.btn svg {
  fill: currentColor;
  flex: none;
}

.btn--primary {
  background: var(--c-steel-650);
  color: var(--c-base-0);
}
.btn--primary:hover {
  background: var(--c-primary-blue-500);
}
.btn--primary:active {
  background: var(--c-steel-800);
}

.btn--secondary {
  background: var(--c-base-0);
  border-color: var(--c-base-300);
  color: var(--c-primary-blue-500);
}
.btn--secondary:hover {
  background: var(--c-base-10);
  color: var(--c-primary-blue-380);
}
.btn--secondary:active {
  background: var(--c-base-100);
  color: var(--c-primary-blue-580);
}

.btn--promo {
  background: var(--c-steel-600);
  color: var(--c-yellow-200);
  border-radius: var(--radius-pill);
}
.btn--promo:hover {
  background: var(--c-steel-550);
}
.btn--promo:active {
  background: var(--c-base-1000);
}

.btn--danger {
  color: var(--c-red-600);
  border-color: var(--c-base-300);
  background: var(--c-base-0);
}
.btn--danger:hover {
  background: #fbf4f4;
}

.btn--ghost {
  background: transparent;
  color: var(--c-base-900);
}
.btn--ghost:hover {
  background: var(--c-base-10);
}

.btn--sm {
  padding: 8px 14px;
}
.btn--md {
  padding: 12px 16px;
}
.btn--lg {
  padding: 16px 32px;
}

.btn--block {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--c-base-100);
  border-color: var(--c-base-300);
  color: var(--c-base-400);
}

/* Round icon button */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.icon-btn:hover {
  background: var(--c-base-10);
}
.icon-btn:active {
  background: var(--c-base-100);
}
.icon-btn--bordered {
  border: 1px solid var(--c-base-300);
  background: var(--c-base-0);
}
.icon-btn--bordered:hover {
  background: var(--c-base-20);
}
.icon-btn--dark {
  color: var(--c-base-0);
}
.icon-btn--dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------------------------------------
   4. Form controls
   -------------------------------------------------------------------------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  color: var(--c-base-900);
}

.form-field__label {
  font-size: 12px;
  overflow-wrap: break-word;
}

.form-field__help {
  color: var(--c-base-600);
  font-size: 12px;
}

.input {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--c-base-0);
  border: 1px solid var(--c-base-300);
  border-radius: var(--radius-sm);
  color: var(--c-base-900);
  transition: background-color 0.1s ease-in-out, border-color 0.25s ease-in-out;
}
.input:hover {
  background: var(--c-base-20);
}
.input:focus-within {
  background: var(--c-base-20);
  border-color: var(--c-primary-blue-500);
}
.input--search .input__icon {
  display: flex;
  margin-left: 14px;
  margin-right: 8px;
  color: var(--c-base-600);
}
.input--search:focus-within .input__icon {
  color: var(--c-primary-blue-500);
}
.input__control {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 12px 16px;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
}
.input__control::placeholder {
  color: var(--c-base-600);
}
.input__trailing {
  flex: none;
  padding-right: 16px;
  color: var(--c-base-600);
  font-size: 12px;
}
.input--disabled {
  background: var(--c-base-20);
  color: var(--c-base-600);
}
.input--disabled:hover {
  background: var(--c-base-20);
}
.input--disabled .input__control {
  cursor: not-allowed;
}

.textarea {
  width: 100%;
  min-height: 4em;
  max-height: 10em;
  padding: 12px 16px;
  background: var(--c-base-0);
  border: 1px solid var(--c-base-300);
  border-radius: var(--radius-sm);
  color: var(--c-base-900);
  font: inherit;
  resize: vertical;
  outline: none;
  transition: background-color 0.1s ease-in-out, border-color 0.25s ease-in-out;
}
.textarea:hover {
  background: var(--c-base-20);
}
.textarea:focus {
  background: var(--c-base-20);
  border-color: var(--c-primary-blue-500);
}
.textarea::placeholder {
  color: var(--c-base-600);
}

.select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--c-base-0);
  border: 1px solid var(--c-base-300);
  border-radius: var(--radius-sm);
  color: var(--c-base-900);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.1s ease-in-out, border-color 0.25s ease-in-out;
}
.select:hover {
  background: var(--c-base-20);
}
.select:focus {
  outline: none;
  background: var(--c-base-20);
  border-color: var(--c-primary-blue-500);
}
.select__value {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.select__chevron {
  flex: none;
  stroke: var(--c-base-400);
  transition: stroke 0.2s ease-in-out;
}
.select:focus .select__chevron {
  stroke: var(--c-primary-blue-500);
}

/* Segmented control */
.segmented {
  display: flex;
  gap: 4px;
  width: fit-content;
  padding: 2px;
  margin: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--c-base-100);
}
.segment {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--c-base-600);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out,
    transform 50ms ease-in-out;
}
.segment svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.segment:hover {
  color: var(--c-base-900);
}
.segment.is-selected {
  background: var(--c-base-0);
  color: var(--c-base-900);
  pointer-events: none;
}

/* Locked / edit rows (used on New project and New point) */
.edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px 10px 16px;
  background: var(--c-base-0);
  border: 1px solid var(--c-base-300);
  border-radius: var(--radius-sm);
}
.edit-row__text {
  min-width: 0;
}
.edit-row__lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.edit-row__value {
  margin: 0;
  overflow-wrap: anywhere;
}
.edit-row__info {
  margin: 2px 0 0;
  color: var(--c-base-600);
  font-size: 12px;
}
.edit-row--locked {
  color: var(--c-base-600);
  background: var(--c-base-20);
}
.edit-row__lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex: none;
  color: var(--c-base-600);
}
.edit-row__action {
  display: flex;
  gap: 8px;
  flex: none;
}

/* Hint block */
.hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-base-20);
  color: var(--c-base-900);
}
.hint__icon {
  flex: none;
  color: var(--c-base-900);
}
.hint__body {
  font-size: 12px;
  line-height: 1.3;
}
.hint__body p {
  margin: 0;
}
.hint__link {
  border: none;
  background: none;
  padding: 0;
  margin-top: 2px;
  color: var(--c-primary-blue-500);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.hint__link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. App shell
   -------------------------------------------------------------------------- */
.app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  min-height: 100svh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 272px;
  height: 100vh;
  overflow: auto;
  background: var(--c-base-20);
  border-right: 1px solid var(--c-base-100);
}

.sidebar__heading {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 10px 14px;
  border-bottom: 1px solid var(--c-base-100);
}

.avatar {
  flex: none;
  display: flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-base-200);
}
.avatar--lg {
  width: 36px;
  height: 36px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.workspace__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.workspace__name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
}
.workspace__plan {
  color: var(--c-base-600);
  font-size: 12px;
}

.nav {
  flex: 1;
  padding: 0 18px 0 12px;
}
.nav-section {
  padding: 8px 0;
}
.nav-section__title {
  padding: 0 6px 8px;
  color: var(--c-base-600);
  font-size: 16px;
  font-weight: 500;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 6px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: currentColor;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.nav-item:hover {
  background: var(--c-base-100);
}
.nav-item.is-active {
  background: var(--c-primary-blue-200);
  pointer-events: none;
}
.nav-item__icon {
  flex: none;
  display: flex;
  width: 16px;
  height: 16px;
}
.nav-item__icon svg {
  width: 16px;
  height: 16px;
}
.nav-item__label {
  width: 100%;
  overflow-wrap: anywhere;
}
.nav-item__badge {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  padding: 2px;
  border-radius: 50%;
  background: var(--c-steel-750);
  color: var(--c-base-20);
  font-size: 12px;
}
.nav-item--badge {
  position: relative;
}

.sidebar__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 10px 14px;
  border-top: 1px solid var(--c-base-100);
}
.sidebar__footer .lang {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--c-base-900);
  font: inherit;
  cursor: pointer;
}
.sidebar__footer .lang:hover {
  background: var(--c-base-100);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 18px;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.profile:hover {
  background: var(--c-base-100);
}
.profile__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.profile__name {
  font-size: 16px;
  font-weight: 500;
}
.profile__mail {
  color: var(--c-base-600);
  font-size: 12px;
}

/* Content column */
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 100svh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 4px 16px;
  background: var(--c-base-0);
  color: var(--c-base-900);
}
.topbar__section {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  color: currentColor;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.brand:hover .brand__title {
  opacity: 0.9;
}
.brand__logo {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.brand__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

/* Breadcrumbs */
.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 2px;
}
.breadcrumbs a,
.breadcrumbs span {
  padding: 4px 6px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.breadcrumbs a {
  color: var(--c-base-600);
}
.breadcrumbs a:hover {
  color: var(--c-base-900);
  background: var(--c-base-10);
}
.breadcrumbs .current {
  color: var(--c-base-900);
}
.breadcrumbs__sep {
  color: var(--c-base-400);
}

/* Page containers */
.page {
  max-width: var(--app-width-min);
  margin: 0 auto;
  padding: 16px;
}
.page--with-header {
  padding-top: 32px;
}
.page--full {
  max-width: 100%;
}
.page__header {
  margin-bottom: 20px;
}
.page__title {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   6. Projects page
   -------------------------------------------------------------------------- */
.container-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.toolbar__search {
  width: 240px;
}
.toolbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.projects-content {
  width: 100%;
  min-width: 0;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  padding: 0 8px;
}

.project-card {
  display: grid;
  grid-template-rows: 1fr 116px;
  height: 284px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(25deg, transparent 60%, var(--c-base-100) 60%),
    linear-gradient(to right, var(--c-base-100) 50%, var(--c-base-20));
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease-in-out;
}
/* Keep the hand cursor everywhere over a project card, including the map
   preview, snapshot graphics and markers. */
.project-card,
.project-card * {
  cursor: pointer;
}
.project-card:hover,
.project-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--c-primary-blue-500);
}
.project-card__map {
  position: relative;
  overflow: hidden;
}
.project-card__menu {
  position: absolute;
  top: 10px;
  right: 10px;
}
.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 8px 24px;
  background: var(--c-base-0);
}
.project-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card__meta {
  margin: 0;
  color: var(--c-base-600);
  font-size: 12px;
  overflow: hidden;
}

/* Mini schematic rendered inside a project card (future map preview) */
.snapshot {
  position: absolute;
  inset: 0;
  background-color: var(--c-base-10);
  background-image: linear-gradient(rgba(44, 55, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 55, 212, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.snapshot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Projects table view */
.project-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.project-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.project-table th,
.project-table td {
  padding: 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--c-base-100);
  white-space: nowrap;
}
.project-table th {
  padding-top: 10px;
  padding-bottom: 10px;
  color: var(--c-base-650);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--c-base-200);
}
.project-table tbody tr:last-child td {
  border-bottom: none;
}
.project-table tbody tr {
  cursor: pointer;
}
.project-table tbody tr:hover {
  background: var(--c-base-10);
}

/* Checkbox column */
.project-table__col-check {
  width: 48px;
  padding-right: 0;
  cursor: default;
}
.project-table__check {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--c-primary-blue-500);
  cursor: pointer;
}

/* Sortable header */
.project-table__sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Name cell: preview thumbnail + title/meta */
.project-table__cell-name {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
}
.project-table__thumb {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--c-base-20);
  border: 1px solid var(--c-base-100);
}
.project-table__thumb .snapshot {
  background-size: 20px 20px;
}
.project-table__thumb--folder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  background: var(--c-primary-blue-60);
  color: var(--c-primary-blue-500);
}
.project-table__thumb--folder > svg {
  width: 30px;
  height: 30px;
}
.project-table__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.project-table__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
a.project-table__title:hover {
  color: var(--c-primary-blue-500);
}
.project-table__title svg {
  flex: none;
  color: var(--c-base-650);
}
.project-table__meta {
  color: var(--c-base-600);
  font-size: 13px;
}

/* Empty state */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 72px 16px;
}
.empty__art {
  width: 220px;
  max-width: 70%;
  color: var(--c-base-200);
}
.empty__text h3 {
  margin-bottom: 8px;
}
.empty__text p {
  color: var(--c-base-600);
}
.empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   7. New project form
   -------------------------------------------------------------------------- */
.form-root {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.form-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.form-section__header {
  margin-bottom: 10px;
}
.form-section--units {
  flex-direction: row;
  gap: 16px;
}
.form-section--units .form-field {
  flex: 1;
}
.form-section__hint {
  margin: 0 0 20px;
}
.button-group {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   8. Tabs & coordinate box (New point)
   -------------------------------------------------------------------------- */
.tabs {
  width: 100%;
}
.tab-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tab-list__item {
  flex: 1;
}
.tab {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--c-base-900);
  font: inherit;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.tab:hover {
  background: var(--c-base-20);
}
.tab.is-active {
  color: var(--c-primary-blue-500);
  border-bottom-color: var(--c-primary-blue-500);
  cursor: auto;
}

.coord-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 20px 30px;
  border: 1px solid var(--c-base-300);
  border-radius: var(--radius-lg);
}
.coord-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   9. Map page
   -------------------------------------------------------------------------- */
.map-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 52px);
}
.map-canvas {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--c-base-10);
}

/* Placeholder for the real map engine */
.map-stub {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-base-10);
  background-image: linear-gradient(rgba(44, 55, 212, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 55, 212, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(44, 55, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 55, 212, 0.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.map-stub__decoration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
}
.map-stub__notice {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 24px;
  padding: 24px 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed var(--c-primary-blue-350);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.map-stub__notice h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.map-stub__notice p {
  color: var(--c-base-600);
  font-size: 13px;
}
.map-stub__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--c-primary-blue-60);
  color: var(--c-primary-blue-500);
  font-size: 12px;
  font-weight: 500;
}

/* Point markers on the stub */
.map-marker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  z-index: 2;
}
.map-marker__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--c-primary-blue-500);
  color: var(--c-base-0);
  border: 2px solid var(--c-base-0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.map-marker__pin span {
  transform: rotate(45deg);
  font-size: 11px;
  font-weight: 600;
}
.map-marker__label {
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--c-base-0);
  color: var(--c-base-900);
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.map-marker--accent .map-marker__pin {
  background: var(--c-orange-300);
}

/* Floating panels over the map */
.map-overlay {
  position: absolute;
  z-index: 5;
}

.map-card {
  background: var(--c-base-0);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}

.map-panel {
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  width: 320px;
  max-height: calc(100% - 24px);
  overflow: hidden;
}
.map-panel__head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--c-base-100);
}
.map-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.map-panel__title h2 {
  font-size: 18px;
}
.map-panel__meta {
  margin-top: 4px;
  color: var(--c-base-600);
  font-size: 12px;
}
.map-panel__search {
  margin-top: 12px;
}
.map-panel__body {
  overflow: auto;
  padding: 8px;
}
.map-panel__foot {
  padding: 12px;
  border-top: 1px solid var(--c-base-100);
}

.point-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.point-row:hover {
  background: var(--c-base-10);
}
.point-row__color {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-primary-blue-60);
  color: var(--c-primary-blue-500);
  font-size: 11px;
  font-weight: 600;
}
.point-row__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.point-row__name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.point-row__coords {
  display: block;
  color: var(--c-base-600);
  font-size: 12px;
}

/* Vertical toolbars */
.map-tools {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.map-tools--right {
  top: 12px;
  right: 12px;
}
.map-tools__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--c-base-900);
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.map-tools__btn:hover {
  background: var(--c-base-100);
}
.map-tools__btn.is-active {
  background: var(--c-primary-blue-500);
  color: var(--c-base-0);
}
.map-tools__divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--c-base-100);
}

/* Bottom dock (map tools) */
.map-dock {
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
}
.map-dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--c-base-900);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.map-dock__btn:hover {
  background: var(--c-base-100);
}
.map-dock__btn.is-active {
  background: var(--c-primary-blue-500);
  color: var(--c-base-0);
}
.map-fab {
  box-shadow: var(--shadow-float);
}

/* Bottom status bar */
.map-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  background: var(--c-base-0);
  border-top: 1px solid var(--c-base-200);
  font-size: 12px;
  color: var(--c-base-600);
}
.map-status__group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-status__key {
  color: var(--c-base-900);
  font-weight: 500;
}
.map-status__spacer {
  flex: 1;
}
.map-status__scale {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-status__scale-bar {
  width: 60px;
  height: 8px;
  border: 1px solid var(--c-base-600);
  border-top: none;
}

.map-fab {
  right: 20px;
  bottom: 20px;
}

/* --------------------------------------------------------------------------
   10. Login page
   -------------------------------------------------------------------------- */
.auth {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
  background: var(--c-base-20);
}
.auth__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  background: var(--c-base-0);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.auth__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.auth__brand .brand__title {
  font-size: 22px;
}
.auth__head {
  text-align: center;
}
.auth__head h2 {
  font-size: 24px;
}
.auth__head p {
  margin-top: 6px;
  color: var(--c-base-600);
}
.auth__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.auth__link {
  color: var(--c-primary-blue-500);
  text-decoration: none;
}
.auth__link:hover {
  text-decoration: underline;
}
.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-base-600);
  font-size: 12px;
}
.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-base-200);
}
.auth__foot {
  text-align: center;
  color: var(--c-base-600);
  font-size: 12px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--c-primary-blue-500);
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
.backdrop {
  display: none;
}

@media (max-width: 1024px) {
  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.25s ease-in-out;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  body.sidebar-open .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.35);
  }
  .sidebar-toggle {
    display: inline-flex;
  }
}

@media (min-width: 901px) {
  .sidebar-toggle {
    display: none;
  }

  /* Desktop: collapse the sidebar to the left and expand it back */
  .sidebar {
    transition: margin-left 0.25s ease-in-out, visibility 0.25s ease-in-out;
  }
  body.sidebar-collapsed .sidebar {
    margin-left: -272px;
    visibility: hidden;
  }
  /* Show the topbar hamburger only while collapsed, so it can reopen the bar */
  body.sidebar-collapsed .sidebar-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .project-list {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .toolbar__search {
    width: 100%;
  }
  .form-section--units {
    flex-direction: column;
  }
  .button-group {
    flex-direction: column;
  }
  .map-panel {
    width: calc(100% - 24px);
    max-height: 45%;
  }
  .map-tools--right {
    top: auto;
    bottom: 12px;
    right: 12px;
    flex-direction: row;
  }
  .map-fab {
    bottom: 80px;
  }
}

/* --------------------------------------------------------------------------
   12. Project map — Flow layout (dark header, objects list, map, details)
   -------------------------------------------------------------------------- */
.flow-body {
  overflow: hidden;
}

.flow {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  height: 100svh;
  overflow: hidden;
  background: var(--c-base-0);
}

/* --- Top bar ------------------------------------------------------------- */
.flow-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: var(--c-steel-750);
  color: #fff;
}
.flow-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.flow-topbar__right {
  min-width: 0;
}
.flow-topbar__divider {
  flex: none;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.14);
}

.flow-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.flow-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.flow-icon-btn--dark {
  color: var(--c-base-900);
}
.flow-icon-btn--dark:hover {
  background: var(--c-base-100);
}

.flow-logo {
  display: flex;
  flex: none;
}
.flow-logo__mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.flow-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
}
.flow-breadcrumbs a {
  padding: 4px 6px;
  border-radius: 6px;
  color: #a1a6aa;
  text-decoration: none;
  white-space: nowrap;
}
.flow-breadcrumbs a:hover {
  color: #fff;
}
.flow-breadcrumbs .current {
  overflow: hidden;
  padding: 4px 6px;
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.flow-breadcrumbs__sep {
  display: flex;
  color: #6b7075;
}

.flow-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.flow-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 62px;
  padding: 4px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #a1a6aa;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.flow-tool:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.flow-tool.is-active {
  color: #fff;
}
.flow-tool__icon {
  position: relative;
  display: flex;
}
.flow-tool__spark {
  position: absolute;
  top: -4px;
  right: -5px;
  color: var(--c-yellow-200);
}

/* --- Main grid ----------------------------------------------------------- */
.flow-main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 316px;
  min-height: 0;
}

/* --- Left: objects ------------------------------------------------------- */
.flow-objects {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--c-base-0);
  border-right: 1px solid var(--c-base-100);
}
.flow-objects__head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 10px 8px 16px;
}
.flow-objects__title {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.flow-objects__search {
  padding: 4px 16px 12px;
}
.flow-search {
  position: relative;
  display: flex;
  align-items: center;
}
.flow-search__icon {
  position: absolute;
  left: 12px;
  display: flex;
  color: var(--c-base-500);
  pointer-events: none;
}
.flow-search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--c-base-200);
  border-radius: var(--radius-sm);
  background: var(--c-base-0);
  color: var(--c-base-900);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease-in-out;
}
.flow-search input::placeholder {
  color: var(--c-base-500);
}
.flow-search input:focus {
  border-color: var(--c-primary-blue-350);
}
.flow-objects__section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--c-base-10);
  font-size: 14px;
  font-weight: 500;
}
.flow-objects__count {
  color: var(--c-base-600);
  font-weight: 400;
}
.flow-objects__empty {
  flex: 1;
  padding-top: 28px;
  color: var(--c-base-600);
  font-size: 14px;
  text-align: center;
}

/* --- Map ----------------------------------------------------------------- */
.flow-map {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-color: #e9e5dc;
  /* Статичная подложка-заглушка. Замените на реальный движок карты. */
  background-image: url("map-preview.jpg");
  background-position: center;
  background-size: cover;
}
.flow-map__scale {
  position: absolute;
  top: 12px;
  left: 16px;
  color: #2b2b2b;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}
.flow-map__chip {
  position: absolute;
  top: 34px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--c-base-0);
  color: var(--c-base-900);
  font: inherit;
  font-size: 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.flow-map__chip:hover {
  background: var(--c-base-10);
}
.flow-map__chip svg {
  color: var(--c-base-600);
}

.flow-map__layers {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--c-base-0);
  color: var(--c-base-900);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.flow-map__layers:hover {
  background: var(--c-base-10);
}

.flow-map__nav {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}
.flow-map__zoom {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-base-0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.flow-map__zoom button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--c-base-900);
  cursor: pointer;
}
.flow-map__zoom button:first-child {
  border-bottom: 1px solid var(--c-base-200);
}
.flow-map__zoom button:hover {
  background: var(--c-base-10);
}
.flow-map__locate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--c-base-0);
  color: var(--c-base-900);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.flow-map__locate:hover {
  background: var(--c-base-10);
}

.flow-map__attribution {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #333;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.flow-map__attribution span {
  white-space: nowrap;
}
.flow-map__attribution-link {
  text-decoration: underline;
  cursor: pointer;
}

.flow-map__logo {
  position: absolute;
  bottom: 8px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.flow-map__logo svg {
  width: 22px;
  height: 22px;
}

/* --- Right: details ------------------------------------------------------ */
.flow-details {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 20px;
  background: var(--c-base-0);
  border-left: 1px solid var(--c-base-100);
}
.flow-details__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.flow-details__head h2 {
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.flow-details__field {
  margin-bottom: 16px;
}
.flow-details__label {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  color: var(--c-base-900);
}
.flow-details__value {
  display: block;
  font-size: 14px;
  color: var(--c-base-600);
}
.flow-details__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.flow-details__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.flow-details__row svg {
  flex: none;
  color: var(--c-base-900);
}
.flow-details__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.flow-details__key {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  color: var(--c-base-500);
}
.flow-details__val {
  display: block;
  font-size: 13px;
  color: var(--c-base-900);
}

/* --- Flow responsive ----------------------------------------------------- */
/* Временно отключено скрытие боковых панелей при уменьшении ширины экрана.
   Панель Objects (слева) и панель «выаыва» (справа) всегда остаются видимыми,
   пока не выбран окончательный вариант адаптива. */

@media (max-width: 820px) {
  .flow-topbar {
    grid-template-columns: 1fr auto;
  }
  .flow-tools {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   10b. Auth errors (login / registration)
   -------------------------------------------------------------------------- */
.auth__errors {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth__errors:empty {
  display: none;
}
.auth__error {
  padding: 10px 12px;
  border: 1px solid var(--c-red-350);
  border-radius: var(--radius-sm);
  background: #fbf0f0;
  color: var(--c-red-600);
  font-size: 13px;
}
.auth__notice {
  padding: 12px 14px;
  border: 1px solid var(--c-base-200);
  border-left: 3px solid var(--c-primary-blue-500);
  border-radius: var(--radius-sm);
  background: var(--c-base-10);
  color: var(--c-base-700);
  font-size: 13px;
  line-height: 1.5;
}
.auth__notice--ok {
  border-left-color: var(--c-green-500);
  background: #f2faf3;
  color: var(--c-base-750);
}
.auth__notice strong {
  white-space: nowrap;
}
