

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #313944;
  --muted: #79828f;
  --line: #e5e8ec;

  --p-blue:  #9cc0e7;
  --p-green: #a9dcc3;
  --p-amber: #f4d29b;
  --p-coral: #f0aca8;
  --p-lilac: #c7b8e6;
  --p-slate: #c4cdd8;

  --ink-blue:  #4a7fb5;
  --ink-green: #2f8f63;
  --ink-amber: #a9741f;
  --ink-coral: #b4534d;

  --band-green:  #63bd8f;
  --band-yellow: #e8c14e;
  --band-orange: #e69445;
  --band-red:    #df5f4f;
  --band-red-dark: #a83a32;
  --band-red-darker: #6e211c;

  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.app-main { flex: 1 1 auto; min-width: 0; }
.page { padding: 26px clamp(16px, 4vw, 40px); }
.page h1 { margin: 0 0 6px; font-size: 25px; line-height: 1.2; color: var(--ink); }

.page a { color: var(--ink-blue); }
.page code { padding: 2px 6px; border-radius: var(--radius); background: #eef1f5; color: var(--ink-blue); font-size: 0.9em; }

button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--p-blue);
  color: var(--ink-blue);
}
button:hover { filter: brightness(0.97); }
button:disabled { opacity: 0.65; cursor: not-allowed; }
button:focus-visible { outline: 2px solid rgba(156, 192, 231, 0.5); outline-offset: 1px; }
button.secondary { background: #eef1f4; color: var(--ink); }
button.secondary:hover { background: #e2e7ec; filter: none; }

.page input,
.page select {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.page input:focus,
.page select:focus { outline: 2px solid rgba(156, 192, 231, 0.5); outline-offset: 1px; border-color: var(--p-blue); }
.page label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 14px; }

.page section,
.page .card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.page section h2 { margin-top: 0; font-size: 17px; }

.page table { width: 100%; border-collapse: collapse; }
.page th,
.page td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13.5px; }
.page thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: #f1f3f6; }

.page .message { padding: 10px 12px; margin: 0 0 12px; border-radius: var(--radius); background: rgba(169, 220, 195, 0.35); color: var(--ink-green); }
.page .error   { padding: 10px 12px; margin: 0 0 12px; border-radius: var(--radius); background: rgba(240, 172, 168, 0.35); color: var(--ink-coral); }
.notice { padding: 11px 14px; margin: 0 0 16px; border-radius: var(--radius); background: rgba(244, 210, 155, 0.35); color: var(--ink-amber); font-size: 13.5px; line-height: 1.5; }
.notice strong { color: var(--ink-amber); }

.products .notice { padding: 10px 14px; border-radius: var(--radius); margin: 0 0 14px; font-size: 14px; }
.products .notice.success { background: rgba(99, 189, 143, 0.15); color: var(--ink-green); }
.products .notice.error { background: rgba(223, 95, 79, 0.12); color: var(--ink-coral); }
.products .add-product { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.products .add-product summary { padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.products .add-product-form { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(8rem, 1fr) minmax(14rem, 2fr) minmax(8rem, 1fr) minmax(8rem, 1fr) minmax(8rem, 1fr) auto; gap: 0.7rem; padding: 0 14px 14px; }
.products .add-principal-form { display: grid; grid-template-columns: minmax(14rem, 1fr) auto; gap: 0.7rem; padding: 0 14px 14px; }
@media (max-width: 900px) { .products .add-product-form, .products .add-principal-form { grid-template-columns: 1fr; } }
.products .count { color: var(--muted); font-size: 14px; margin: 2px 0 14px; }
.products .search-form { display: grid; grid-template-columns: minmax(18rem, 1fr) auto auto auto auto; gap: 0.7rem; margin: 0 0 18px; align-items: center; }
.products table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.products tbody tr:last-child td { border-bottom: 0; }
.products .price { white-space: nowrap; text-align: right; }
.products td.discontinued { color: var(--ink-coral); font-weight: 600; }
.products .warning { display: block; margin-top: 0.3rem; max-width: 30rem; color: var(--ink-coral); font-size: 0.82rem; font-weight: 400; }
.products .replacement-detail { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.82rem; }
.products .pager form { display: flex; gap: 1rem; align-items: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.products .pager span { flex: 0 0 auto; }
@media (max-width: 800px) { .products .search-form { grid-template-columns: 1fr; } }

.products .product-row { cursor: pointer; }
.products .product-row:hover { background: var(--surface-hover, rgba(0, 0, 0, 0.03)); }
.products .product-row:focus-visible { outline: 2px solid var(--p-blue); outline-offset: -2px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.45);
}
.modal-overlay[hidden] {
  display: none;
}
.modal {
  width: 100%;
  max-width: 34rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.3);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 { margin: 0; font-size: 1.1rem; }
.modal-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 20px; }
.modal-loading { color: var(--muted); text-align: center; margin: 20px 0; }

#product-edit-form { display: flex; flex-direction: column; gap: 14px; }
#product-edit-form .edit-field { display: flex; flex-direction: column; gap: 4px; }
#product-edit-form label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
#product-edit-form input,
#product-edit-form select,
#product-edit-form textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
#product-edit-form textarea { min-height: 4.5rem; resize: vertical; }
.edit-accessories h3 { margin: 4px 0 8px; font-size: 0.95rem; }
.edit-accessories ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; }
.edit-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

.help-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.help-button:hover { color: var(--ink); border-color: var(--p-blue); background: #eef1f4; }
.help-button svg { display: block; }
.help-body p { margin: 0 0 12px; }
.help-body ul { margin: 0 0 12px; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.help-actions { display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.help-actions a.secondary {
  display: inline-block;
  border-radius: var(--radius);
  padding: 9px 14px;
  font-weight: 600;
  text-decoration: none;
  background: #eef1f4;
  color: var(--ink);
}
.help-actions a.secondary:hover { background: #e2e7ec; }


:root {
  --bg-primary: var(--bg);
  --bg-panel: var(--surface);
  --bg-elevated: #eef2f6;
  --panel-surface: var(--surface);
  --metric-surface: rgba(49, 57, 68, 0.04);
  --row-hover: rgba(49, 57, 68, 0.05);
  --cell-border: var(--line);
  --map-bg: #e8edf1;
  --popup-bg: var(--surface);
  --popup-border: var(--line);
  --legend-bg: rgba(255, 255, 255, 0.92);
  --marker-border: #ffffff;
  --border: var(--line);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-muted: var(--muted);
  --accent: var(--p-blue);
  --green: var(--p-green);
  --amber: var(--p-amber);
  --red: var(--p-coral);
  --gray: var(--p-slate);
}

body.map-page {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.map-page .shell {
  height: 100vh;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.map-page .filter-panel, .map-page .workspace {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-surface);
}

.map-page h2 {
  margin: 0;
  font-size: 15px;
}

.map-page .filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  flex-wrap: wrap;
}

.map-page .filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.map-page .day-filter {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-page .day-filter input {
  width: 74px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-primary);
  padding: 0 9px;
  font: inherit;
}

.map-page .day-filter input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.map-page .filter-panel button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.map-page .filter-panel button:hover {
  border-color: var(--p-blue);
  color: var(--ink-blue);
  filter: none;
}

.map-page .filter-group button.active {
  border-color: var(--p-blue);
  background: var(--p-blue);
  color: var(--ink-blue);
}

.map-page .share-link { color: var(--ink-blue); }

.map-page .search-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.map-page .search-panel {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-surface);
}

.map-page .search-row .help-button {
  flex: 0 0 auto;
  padding: 0 11px;
}

.map-page .search-panel input#customer-search {
  width: 100%;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-primary);
  padding: 0 12px;
  font: inherit;
}

.map-page .search-panel input#customer-search:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.map-page .search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 12px;
  right: 12px;
  z-index: 20;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 280px;
  overflow-y: auto;
}

.map-page .search-results li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

.map-page .search-results li:hover {
  background: var(--surface);
}

.map-page .workspace {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 31vw);
}

.map-page .map-pane {
  position: relative;
  min-height: 0;
  border-right: 1px solid var(--border);
}

.map-page #territory-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--map-bg);
}

.map-page .leaflet-container {
  background: var(--map-bg);
  font: inherit;
}

.map-page .leaflet-popup-content-wrapper, .map-page .leaflet-popup-tip {
  color: var(--text-primary);
  background: var(--popup-bg);
  border: 1px solid var(--popup-border);
  box-shadow: 0 12px 40px rgba(49, 57, 68, 0.14);
}

.map-page .leaflet-popup-content-wrapper { border-radius: var(--radius); }

.map-page .popup-title {
  margin: 0 0 7px;
  font-weight: 800;
  font-size: 15px;
}

.map-page .popup-meta, .map-page .popup-detail {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.map-page .legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 500;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--legend-bg);
  color: var(--text-secondary);
  font-size: 12px;
}

.map-page .legend span, .map-page .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.map-page .zoom-indicator {
  padding: 4px 8px;
  margin: 0 8px 8px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--legend-bg);
  color: var(--text-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.map-page .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.map-page .band-green { background: var(--band-green); }
.map-page .band-yellow { background: var(--band-yellow); }
.map-page .band-orange { background: var(--band-orange); }
.map-page .band-red { background: var(--band-red); }
.map-page .band-red-dark { background: var(--band-red-dark); }
.map-page .band-red-darker { background: var(--band-red-darker); }

.map-page .territory-marker span { display: block; width: 10px; height: 10px; border-radius: 999px; }

.map-page .table-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
}

.map-page .table-head {
  min-height: 64px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.map-page .table-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.map-page .table-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.map-page table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.map-page th, .map-page td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--cell-border);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.map-page th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text-muted);
  background: var(--bg-elevated);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-page td {
  color: var(--text-secondary);
}

.map-page tr {
  cursor: pointer;
}

.map-page tr:hover {
  background: var(--row-hover);
}

.map-page .client-name {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.map-page .client-sub {
  color: var(--text-muted);
  font-size: 11px;
}

.map-page .status-pill {
  font-weight: 700;
  text-transform: capitalize;
}

.map-page .empty-row {
  cursor: default;
}

@media (max-width: 980px) {
  body.map-page, .map-page .shell {
    height: auto;
    overflow: visible;
  }

  .map-page .shell {
    min-height: 100vh;
    padding: 12px;
  }

  .map-page .workspace {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .map-page .map-pane {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .map-page #territory-map {
    min-height: 360px;
  }

  .map-page .table-pane {
    min-height: 420px;
    overflow: visible;
  }

  .map-page .table-scroll {
    overflow: visible;
  }

}

.bosch {
  color-scheme: light;
  --bosch: var(--p-blue);
  --bosch-dark: var(--ink-blue);
  --success: var(--ink-green);
  --danger: var(--ink-coral);
  width: 100%;
  padding: 30px clamp(16px, 4vw, 40px) 64px;
  color: var(--ink);
}

.bosch * { box-sizing: border-box; }
.bosch .card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06); overflow: visible; }
.bosch .toolbar { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.bosch .toolbar-actions { display: flex; align-items: center; gap: 14px; }
.bosch .toolbar-actions .help-button { border-color: var(--line); }
.bosch .principal-picker { padding: 0; text-align: center; display: flex; flex-direction: column; }
.bosch .principal-picker[hidden] { display: none; }
.bosch .principal-picker .hint { margin: 20px 0; }
.bosch .picker-toolbar { display: flex; justify-content: flex-end; margin-bottom: -8px; }
.bosch .picker-toolbar .hint { margin: 0; text-align: left; flex: 1 1 auto; }
.bosch .principal-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.bosch .principal-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  min-height: 160px;
  padding: 32px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.6rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.bosch .principal-logo { max-width: 100%; max-height: 64px; width: auto; height: auto; }
.bosch .principal-card:hover { transform: translateY(-2px); border-color: var(--p-blue); box-shadow: 0 10px 26px rgba(49, 57, 68, 0.08); }
.bosch .principal-pill { font-size: 0.95rem; color: var(--muted); }
.bosch .principal-pill strong { color: var(--ink); }
.bosch #cancel-quote { display: inline-flex; align-items: center; text-decoration: none; }
.bosch .hint { font-size: 0.9rem; color: var(--muted); }
.bosch button, .bosch input, .bosch select { font: inherit; }
.bosch input:focus-visible, .bosch select:focus-visible { outline: 3px solid rgba(156, 192, 231, 0.5); outline-offset: 1px; }
.bosch .primary { min-width: 190px; }
.bosch .table-wrap { overflow: visible; padding: 0 20px 20px; }
.bosch #add-row { margin: 4px 0 4px; }
.bosch table { width: 100%; border-collapse: collapse; }
.bosch th { padding: 14px 8px 10px; text-align: left; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.bosch td { padding: 12px 8px; border-top: 1px solid #eaecf0; vertical-align: top; }
.bosch th:first-child, .bosch td:first-child { padding-left: 0; width: 120px; }
.bosch th:nth-child(3), .bosch td:nth-child(3) { width: 120px; }
.bosch th:last-child, .bosch td:last-child { padding-right: 0; width: 54px; text-align: right; }
.bosch input, .bosch select { width: 100%; min-height: 44px; border: 1px solid #bfc6ce; border-radius: 8px; padding: 9px 11px; background: white; color: var(--ink); }
.bosch input.invalid, .bosch select.invalid { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.1); }
.bosch .product-cell { position: relative; min-width: 320px; }
.bosch .suggestions { position: absolute; z-index: 20; top: 48px; left: 0; right: 0; max-height: 260px; overflow-y: auto; background: white; border: 1px solid #aeb6c0; border-radius: 8px; box-shadow: 0 16px 36px rgba(16, 24, 40, 0.18); }
.bosch .suggestion { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 0; background: white; text-align: left; font-weight: 400; }
.bosch .suggestion:hover, .bosch .suggestion:focus { background: #f2f4f7; }
.bosch .suggestion strong { display: block; color: var(--ink); }
.bosch .suggestion span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bosch .meta { min-height: 20px; margin-top: 5px; font-size: 0.82rem; color: var(--muted); }
.bosch .meta.valid { color: var(--success); }
.bosch .meta.error { color: var(--danger); }
.bosch .use-replacement { margin: 7px 0 0; padding: 6px 9px; color: var(--ink-blue); background: rgba(156, 192, 231, 0.25); font-size: 0.8rem; }
.bosch .use-replacement:hover { background: rgba(156, 192, 231, 0.42); }
.bosch .remove { width: 42px; min-width: 42px; padding: 9px; color: var(--danger); background: rgba(240, 172, 168, 0.3); font-size: 1.05rem; }
.bosch .remove:hover { background: rgba(240, 172, 168, 0.5); }
.bosch .actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; border-top: 1px solid var(--line); }
.bosch .status { display: none; margin: 0 20px 20px; padding: 12px 14px; border-radius: 8px; line-height: 1.45; }
.bosch .status.error { display: block; color: var(--danger); background: rgba(240, 172, 168, 0.3); }
.bosch .status.success { display: block; color: var(--success); background: rgba(169, 220, 195, 0.35); }
.bosch .empty-note { display: none; padding: 28px 0; text-align: center; color: var(--muted); }
.bosch .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .bosch { padding-top: 18px; }
  .bosch .toolbar, .bosch .actions { align-items: stretch; flex-direction: column; }
  .bosch .toolbar button, .bosch .actions button { width: 100%; }
  .bosch .principal-card { font-size: 1.2rem; }
  .bosch .table-wrap { overflow-x: auto; }
  .bosch table { min-width: 760px; }
}

.login-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.login-card {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 28px;
  box-shadow: 0 12px 40px rgba(49, 57, 68, 0.07);
}
.login-logo { height: 32px; width: auto; color: var(--ink-blue); display: block; margin-bottom: 18px; }
.login-card h1 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.login-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.login-card label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.login-card input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: 0 12px; font: inherit; box-sizing: border-box; }
.login-card input:focus { outline: 2px solid rgba(156, 192, 231, 0.5); outline-offset: 1px; border-color: var(--p-blue); }
.login-card button { width: 100%; height: 44px; margin-top: 20px; }
.login-card .errorlist { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--radius); background: rgba(240, 172, 168, 0.3); color: var(--ink-coral); list-style: none; }
