:root {
  color-scheme: light;
  font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Huemint Bootstrap Basic: light, white, dark, primary, secondary, info. */
  --light: #dbdaed;
  --paper: #ffffff;
  --ink: #121115;
  --brand: #433747;
  --brand-dark: #332a36;
  --secondary: #e42559;
  --info: #0866f6;
  --muted: #625a68;
  --line: #d0cddd;
  --focus: var(--info);
  --danger: #b91d48;
  color: var(--ink);
  background: var(--light);
  --radius: 12px;
  --shadow: 0 1px 2px #1a24420b, 0 4px 10px #1a244207;
  --shadow-raised: 0 2px 4px #1a24420f, 0 10px 24px #1a24421a;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --fast: .15s;
  --glass-bg: linear-gradient(170deg, #433747 0%, #332a36 42%, #121115 100%);
  --glass-hover: #ffffff12;
  --glass-group: #ffffff14;
  --glass-subtle: #ffffff29;
  --glass-stroke: #ffffff24;
  --glass-active: #ffffff3d;
  --glass-divider: #ffffff1a;
  --on-glass: #fff;
  --on-glass-muted: #ffffffb3;
  --on-glass-faint: #ffffffa6;
  --counter: #d91f51;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--brand-dark); }
button, .button, .card, .lot, .nav button, .icon-button, input, select, textarea {
  transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease,
    box-shadow var(--fast) ease, transform var(--fast) var(--ease-out);
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--brand);
}
[hidden] { display: none !important; }
.loading { padding: 2rem; color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.skip-link {
  position: fixed; z-index: 20; top: 10px; left: 10px; transform: translateY(-160%);
  padding: 10px 14px; border: 0; border-radius: 8px; background: var(--brand); color: white; font-weight: 650;
}
.skip-link:focus-visible { transform: none; }
main:focus { outline: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--secondary); color: white; flex: none;
}
.sidebar .brand-mark { background: var(--glass-subtle); box-shadow: inset 0 0 0 1px var(--glass-stroke); }
.brand-mark .icon { width: 21px; height: 21px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.02em; }
.brand strong { display: block; }
.brand small { display: block; font-size: 12px; color: #9ca9c4; font-weight: 500; letter-spacing: 0; }
.sidebar .brand small { color: var(--on-glass-muted); }
.shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column;
  gap: 24px; padding: 20px 14px 16px; background: var(--glass-bg); color: var(--on-glass);
}
.sidebar .brand { position: relative; padding: 0 0 18px; }
.sidebar .brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--glass-divider); }
.nav { display: grid; gap: 4px; }
.nav-label {
  margin: 0 10px 6px; color: var(--on-glass-faint); font-size: 12px; font-weight: 650;
  letter-spacing: .06em; text-transform: uppercase;
}
.nav button {
  position: relative; color: var(--on-glass-muted); display: flex; align-items: center; gap: 10px; text-align: left;
  background: transparent; border: 0; border-radius: 10px; padding: 6px 8px 6px 7px;
  min-height: 38px; width: 100%; font-size: 15px; font-weight: 450;
  transition: background-color .2s ease, color .15s ease;
}
.nav button .icon { width: 24px; height: 24px; transition: none; }
.nav button:hover { background: var(--glass-hover); color: var(--on-glass); }
.nav button[aria-current="page"] { background: var(--glass-active); color: var(--on-glass); font-weight: 550; }
.nav button[aria-current="page"] .icon { fill: currentColor; fill-opacity: .28; stroke-width: 1.9; }
.nav button:focus-visible { outline-color: white; outline-offset: 1px; }
.nav-count {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; color: white; text-align: center;
  background: var(--counter); box-shadow: inset 0 0 0 1px var(--glass-stroke);
  font-size: 11px; font-weight: 650; line-height: 18px; font-variant-numeric: tabular-nums;
}
.sidebar .account {
  margin-top: auto; border-top: 1px solid var(--glass-divider); padding: 14px 3px 0;
  display: flex; align-items: center; gap: 9px; min-width: 0;
}
.account div { min-width: 0; }
.account strong, .account small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account strong { font-size: 13px; }
.account small { color: var(--on-glass-muted); font-size: 12px; }
.account .icon-button { flex: none; margin-left: auto; color: var(--on-glass-muted); border-radius: 10px; }
.account .icon-button:hover { background: var(--glass-hover); color: var(--on-glass); }
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 29px; height: 29px;
  border-radius: 50%; background: #eeecf4; color: #433747; font-size: 11px; font-weight: 750;
}
.account .avatar { width: 33px; height: 33px; background: var(--glass-subtle); color: var(--on-glass); box-shadow: inset 0 0 0 1px var(--glass-stroke); }
.workspace { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 3;
  height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #ffffffeb; backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); padding: 0 30px;
}
.breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumb .icon { width: 15px; height: 15px; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.demo-tag {
  display: flex; align-items: center; gap: 6px; color: #137b5e; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: #e6f7ef;
}
.demo-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #28a683; }
.content { padding: 27px 30px 44px; max-width: 1680px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(25px, 3vw, 32px); line-height: 1.1; letter-spacing: -.035em; font-weight: 760; text-wrap: balance; }
.page-heading p, .subtle { color: var(--muted); font-size: 13px; }
.page-heading p { margin-top: 5px; }
.button {
  border: 1px solid #c7c3d4; border-radius: 8px; background: white; color: #433747;
  padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; min-height: 38px; font-weight: 650; white-space: nowrap;
}
.button:hover { background: #eeecf4; border-color: #bdb7cc; }
.button:active { transform: scale(.98); }
.button.primary { color: white; background: var(--brand); border-color: var(--brand); box-shadow: 0 1px 2px #43374733; }
.button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button.danger { color: var(--danger); border-color: #f0d3da; }
.button.danger:hover { background: #fff3f5; border-color: #e7b3bf; }
.button[aria-busy="true"] { cursor: progress; }
.button[aria-busy="true"]::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.button .icon { width: 16px; height: 16px; }
.header-actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.icon-button {
  display: inline-grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); width: 36px; height: 36px; flex: none;
}
.icon-button:hover { background: #43374715; color: var(--brand-dark); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 19px; }
.metric {
  min-height: 82px; padding: 14px; background: white; border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow);
}
.metric-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none; }
.violet { color: var(--brand); background: #eeecf4; }
.blue { color: #0866f6; background: #eaf2ff; }
.amber { color: #9d600b; background: #fff4de; }
.green { color: #137b5e; background: #e6f7ef; }
.metric strong { display: block; font-size: 24px; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric small { color: var(--muted); font-size: 13px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.segmented { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: #e6e4f0; }
.segmented button {
  display: inline-flex; align-items: center; border: 0; border-radius: 6px; padding: 6px 10px; min-height: 32px;
  background: transparent; color: var(--muted); font-weight: 650;
}
.segmented button:hover { color: var(--brand-dark); }
.segmented button[aria-pressed="true"] { background: white; color: var(--brand-dark); box-shadow: var(--shadow); }
.segmented .icon { width: 15px; height: 15px; margin-right: 5px; }
input, select, textarea {
  padding: 8px 10px; min-height: 38px; background: #fff; color: var(--ink);
  border: 1px solid #c7c3d4; border-radius: 8px; min-width: 0;
}
input:hover, select:hover, textarea:hover { border-color: #bdb7cc; }
input::placeholder, textarea::placeholder { color: #726a79; }
.search {
  display: flex; align-items: center; gap: 7px; padding-left: 10px; border: 1px solid #c7c3d4;
  border-radius: 8px; background: #fff; color: #625a68;
}
.search:focus-within { border-color: var(--brand); outline: 2px solid var(--focus); outline-offset: 1px; }
.search input { border: 0; padding-left: 0; width: clamp(130px, 17vw, 225px); background: transparent; }
.search input:focus-visible { outline: none; }
.search .icon { width: 16px; height: 16px; }
.toolbar select { color: #625a68; max-width: 190px; }
.toolbar input[type="number"] { max-width: 120px; }
.toolbar-break { flex-basis: 100%; height: 0; }
.inline-select { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.room-chips button { min-width: 34px; justify-content: center; font-variant-numeric: tabular-nums; }
.underground-title { margin: 16px 0 8px; color: #625a68; font-size: 13px; font-weight: 700; }
.lane-scroll { overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.board { display: grid; grid-template-columns: repeat(var(--columns), minmax(210px, 1fr)); gap: 11px; min-width: calc(var(--columns) * 221px - 11px); }
.lane { background: #e6e4f0; border: 1px solid #d0cddd; border-radius: var(--radius); min-width: 0; min-height: 325px; padding: 8px; transition: box-shadow var(--fast) ease, background-color var(--fast) ease; }
.lane-heading { display: flex; align-items: center; gap: 7px; padding: 2px 3px 9px; min-height: 36px; white-space: nowrap; border-bottom: 2px solid var(--status, #8a93ad); margin-bottom: 8px; }
.lane-heading h2 { font-size: 13px; line-height: 1.2; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--status, #8a93ad); }
.count { color: #625a68; border-radius: 5px; background: #dbdaed; font-size: 12px; padding: 0 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lane-heading .icon-button { margin-left: auto; width: 30px; height: 30px; }
.lane-heading .icon-button .icon { width: 16px; height: 16px; }
.lane.drop-target { background: #dbdaed; box-shadow: inset 0 0 0 2px #433747; }
.card {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; color: inherit;
  display: block; text-align: left; padding: 12px; box-shadow: var(--shadow);
}
.card[draggable="true"] { cursor: grab; }
.card.dragging { opacity: .5; cursor: grabbing; }
.card-shell { position: relative; }
.card-shell + .card-shell { margin-top: 8px; }
.card-add {
  position: absolute; left: 7px; bottom: 7px; display: inline-flex; align-items: center; gap: 3px;
  min-height: 28px; padding: 0 7px; border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 650;
}
.card-add .icon { width: 14px; height: 14px; }
.card-add:hover { background: #eeecf4; color: var(--brand-dark); }
.card-footer.has-add { padding-left: 62px; }
.card-footer time { white-space: nowrap; }
.lane-total { margin: -2px 3px 8px; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:hover { border-color: #8d8095; box-shadow: var(--shadow-raised); transform: translateY(-1px); }
.card strong { display: block; font-size: 14px; margin-top: 7px; overflow-wrap: anywhere; }
.card .card-line { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.card .card-line.money { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.card-activity {
  display: block; padding: 6px 8px; border-radius: 6px; margin-top: 8px;
  background: #eeecf4; color: #625a68; font-size: 12px; overflow-wrap: anywhere;
}
.card-activity-title { display: block; font-weight: 650; }
.card-activity-status { display: none; font-weight: 700; }
.card-activity.overdue { background: #fff0ee; color: #b91d48; }
.card-activity.overdue .card-activity-status { display: inline; }
.card-activity.missing { background: #fff5df; color: #8c590d; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e6e4f0; color: var(--muted); font-size: 12px; }
.card-footer .avatar { width: 24px; height: 24px; font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 1px 7px; font-size: 12px; font-weight: 650; line-height: 1.5; color: #625a68; background: #e6e4f0; }
.badge.direct { color: #b91d48; background: #fde9ef; }
.badge.ads { color: #0866f6; background: #e8f0ff; }
.badge.free, .badge.active { color: #107052; background: #e2f6ec; }
.badge.booked, .badge.invited { color: #8c590d; background: #fff0d9; }
.badge.sold { color: #3d5794; background: #e5edff; }
.badge.deactivated { color: #7b3346; background: #fbecef; }
.empty { color: var(--muted); padding: 18px 8px; font-size: 13px; text-align: center; }
.lane .empty { border: 1px dashed #d5dbe8; border-radius: 9px; padding: 22px 8px; }
.empty-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 35px 18px; }
.empty-state {
  display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 20px;
  background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.empty-state .metric-icon { width: 48px; height: 48px; margin-bottom: 4px; }
.empty-state .metric-icon .icon { width: 24px; height: 24px; }
.empty-state h2 { font-size: 17px; }
.empty-state p { color: var(--muted); max-width: 420px; }
.empty-state .header-actions { margin-top: 8px; justify-content: center; }
.table-panel, .project-panel, .report-panel {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); overflow-x: auto;
}
.table-panel { padding: 0; }
table { border-collapse: collapse; width: 100%; min-width: 550px; text-align: left; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 650; font-size: 12px; background: #f6f5fa; }
tbody tr { transition: background-color var(--fast) ease; }
tbody tr:hover { background: #f6f5fa; }
tr:last-child td { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }
.link-button { color: var(--info); background: transparent; border: 0; padding: 2px 0; font: inherit; font-weight: 650; text-align: left; }
.link-button:hover { text-decoration: underline; }
.project-panel + .project-panel, .report-panel + .report-panel { margin-top: 12px; }
.project-panel h2, .report-panel h2 { font-size: 16px; margin-bottom: 12px; }
.chess-panel { overflow: visible; }
.chess-heading { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.chess-heading h2 { margin: 0; }
.chess-summary { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.building-line { flex-basis: 100%; order: 3; display: flex; align-items: baseline; gap: 10px; margin: -4px 0 0; color: #625a68; font-size: 13px; }
.building-line:empty { display: none; }
.building-edit { font-size: 13px; }
.code-chip {
  margin-left: auto; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: #f6f5fa;
  color: #625a68; font: inherit; font-size: 12px; font-weight: 650;
}
button.code-chip:hover { border-color: #bdb7cc; color: var(--brand-dark); }
.code-chip.missing { border-color: #f3c6cf; background: #fdebef; color: #b91d48; }
.contract-preview {
  display: block; min-height: 40px; padding: 9px 11px; border: 1px dashed #bdb7cc; border-radius: 8px; background: #f6f5fa;
  font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.chess-grid {
  --floor-label: 72px; --cell: 112px; --section-gap: 14px; --row-gap: 6px;
  overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin;
}
.chess-grid.compact { --floor-label: 30px; --cell: 42px; --section-gap: 22px; --row-gap: 4px; }
.floor-row {
  display: grid; grid-template-columns: var(--template); gap: var(--row-gap);
  align-items: stretch; margin-bottom: var(--row-gap); width: max-content; border-radius: 8px;
}
.floor-row:not(.section-row):hover { background: #eeecf4; box-shadow: 0 0 0 3px #eeecf4; }
.floor-row:not(.section-row):hover .floor-label { color: var(--brand-dark); font-weight: 750; background: #eeecf4; }
.section-row { margin-bottom: 8px; }
.section-label {
  grid-row: 1; padding: 0 2px 5px; border-bottom: 2px solid #e3e6f0; color: #625a68;
  font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.floor-label.right { position: static; justify-content: flex-start; padding-left: 4px; background: transparent; }
.compact .floor-label { justify-content: flex-end; padding-right: 4px; font-size: 12px; }
.compact .floor-label.right { justify-content: flex-start; padding: 0 0 0 4px; }
.lot.tile {
  min-height: 30px; padding: 0 2px; place-items: center; border-radius: 6px; font-size: 12px; font-weight: 750;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.lot-gap { grid-row: 1; min-height: 30px; border-radius: 6px; background: #f6f7fa; }
.lot.selected { outline: 2px solid #433747; outline-offset: 2px; }
.chess-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.chess-bar .status-legend { margin: 0; }
.chess-meta { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.chess-found { margin: 0; color: #433747; font-size: 13px; font-variant-numeric: tabular-nums; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: #433747; font-size: 13px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative; width: 34px; height: 20px; border-radius: 999px; background: #cfd5e3; transition: background-color var(--fast) ease;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: white;
  box-shadow: 0 1px 2px #1220404d; transition: transform var(--fast) ease;
}
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand); outline-offset: 2px; }
.floor-row.underground { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #d5dbe8; }
.floor-label {
  grid-column: 1; position: sticky; left: 0; z-index: 1; align-self: stretch; display: flex; align-items: center;
  background: white; color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.lot {
  grid-row: 1; display: grid; gap: 1px; min-height: 64px; padding: 7px 8px; border: 1px solid #dce4ec; border-radius: 8px;
  background: #f0f2f5; color: #344563; text-align: left; font-variant-numeric: tabular-nums;
}
.lot-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.lot-head strong { font-size: 14px; margin-right: auto; }
.lot-rooms {
  flex: none; min-width: 24px; padding: 0 4px; border-radius: 5px; background: #ffffffc7; text-align: center;
  font-size: 12px; font-weight: 750; line-height: 18px;
}
.lot.hidden .lot-rooms { background: #ffffffe0; }
.lot-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ffffffb3; }
.lot-mark .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.lot-meta { font-size: 12px; opacity: .85; white-space: nowrap; }
.lot-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.lot.free { background: #d6f2e3; color: #0b553d; border-color: #9dd7b9; }
.lot.booked { background: #ffe6c2; color: #74440a; border-color: #eebd72; }
.lot.sold { background: #e7e9ef; color: #535c70; border-color: #d4d8e1; }
.lot.hidden {
  background: repeating-linear-gradient(135deg, #ffffff 0 5px, #f1f2f6 5px 10px); color: #5f687c; border: 1px dashed #b9c0ce;
}
.lot.dimmed { opacity: .32; }
.lot.dimmed:hover, .lot.dimmed:focus-visible { opacity: .75; }
.lot.picked { box-shadow: 0 0 0 2px var(--brand); border-color: var(--brand); }
.lot .picked-mark { background: var(--brand); color: white; }
.lot:hover { border-color: #433747; box-shadow: var(--shadow-raised); transform: translateY(-1px); }
.lot.picked:hover { box-shadow: 0 0 0 2px var(--brand), var(--shadow-raised); }
.lot-table th { padding: 0; }
.lot-table th:not(:has(.sort-button)) { padding: 11px 13px; }
.sort-button {
  display: inline-flex; align-items: center; gap: 4px; width: 100%; min-height: 40px; padding: 0 13px; border: 0; background: transparent;
  color: inherit; font: inherit; text-align: left;
}
.sort-button:hover { color: var(--brand-dark); }
.lot-table th.numeric .sort-button { justify-content: flex-end; }
.sort-arrow { min-width: 1ch; color: var(--brand-dark); }
.lot-table .numeric { text-align: right; white-space: nowrap; }
.lot-table .strong { font-weight: 700; }
.lot-table tr.picked { background: #eeecf4; }
.lot-number { display: inline-flex; align-items: center; gap: 6px; }
.lot-table .lot-mark { width: 18px; height: 18px; }
.list-count { margin: 8px 2px 0; font-size: 13px; }
.lot-features { display: block; max-width: 220px; color: var(--muted); font-size: 12px; }
.check-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; margin: 0; padding: 0; border: 0; }
.check-group legend { grid-column: 1 / -1; margin-bottom: 6px; padding: 0; color: var(--muted); font-size: 13px; }
.check, .form-grid label.check { display: flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand); }
.lot-preview {
  position: fixed; top: 0; left: 0; z-index: 30; width: 248px; padding: 12px; pointer-events: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: white; color: #433747; box-shadow: var(--shadow-raised);
  font-variant-numeric: tabular-nums;
}
.preview-plan { display: block; width: 100%; max-height: 160px; object-fit: contain; margin-bottom: 10px; border-radius: 6px; background: #f0eff7; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preview-head strong { font-size: 14px; }
.preview-price { margin: 6px 0 8px; font-size: 18px; font-weight: 750; }
.lot-preview dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 12px; }
.lot-preview dt { color: var(--muted); }
.lot-preview dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.status-legend { display: flex; align-items: center; margin: 0 0 12px; gap: 7px; flex-wrap: wrap; }
.legend-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 999px; background: white; color: #433747; font-size: 13px; font-weight: 600;
}
.legend-chip:hover { border-color: #bdb7cc; background: #f6f5fa; }
.legend-chip[aria-pressed="true"] { border-color: var(--brand); background: #eeecf4; color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand); }
.legend-swatch { width: 12px; height: 12px; border-radius: 4px; border: 1px solid #dce4ec; background: #f0f2f5; }
.legend-chip.free .legend-swatch { background: #d6f2e3; border-color: #7fcaa3; }
.legend-chip.booked .legend-swatch { background: #ffe6c2; border-color: #e3a855; }
.legend-chip.sold .legend-swatch { background: #e7e9ef; border-color: #b9bfcc; }
.legend-chip.hidden .legend-swatch { background: repeating-linear-gradient(135deg, #ffffff 0 3px, #e6e8ee 3px 6px); border: 1px dashed #a9b1c1; }
.legend-count { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.button.ghost { border-color: transparent; background: transparent; color: var(--brand-dark); }
.button.ghost:hover { background: #eeecf4; }
.selection-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 14px;
  border: 1px solid #d0cddd; border-radius: var(--radius); background: #eeecf4;
}
.selection-banner .banner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.report-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.report-grid .report-panel { margin-top: 0; }
.report-entry { display: flex; gap: 9px; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.report-entry:last-child { border-bottom: 0; }
.report-summary { margin-top: 18px; }
.report-summary h2 { font-size: 16px; margin-bottom: 8px; }
dialog {
  width: min(640px, calc(100vw - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px);
  padding: 0; border: 1px solid var(--line); border-radius: 14px; color: inherit; overflow: hidden;
  box-shadow: 0 22px 90px #1220404d;
}
dialog[open] { display: flex; flex-direction: column; animation: dialog-in .2s var(--ease-out); }
dialog::backdrop { background: #12111571; backdrop-filter: blur(2px); }
html:has(dialog:modal) { overflow: hidden; }
dialog.side-panel {
  position: fixed; inset: 12px 0 0 auto; margin: 0; width: min(1080px, calc(100vw - 72px));
  max-width: none; height: calc(100vh - 12px); height: calc(100dvh - 12px); max-height: none;
  border: 0; border-radius: 18px 0 0 0; background: #f0eff7;
}
dialog.side-panel[open] { animation: panel-in .28s var(--ease-out); }
dialog.side-panel::backdrop { background: linear-gradient(#12111566, #121115b8); backdrop-filter: none; }
dialog.side-panel .dialog-head { padding: 14px 16px 14px 24px; }
dialog.side-panel .dialog-head h2 { font-size: 22px; }
dialog.side-panel .dialog-body { padding: 0 24px 24px; }
dialog.lot-panel {
  z-index: 20; width: 380px; background: white; border-left: 1px solid var(--line); box-shadow: -18px 0 60px #12204026;
}
dialog.lot-panel .dialog-head h2 { font-size: 19px; }
dialog.lot-panel .dialog-body { padding: 0 20px 20px; }
dialog.lot-panel .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
  body:has(dialog.lot-panel[open]) .content { padding-right: 410px; }
}
.lot-plan { display: block; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f6f5fa; }
.lot-plan img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.lot-price-block { display: grid; gap: 2px; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.lot-price-block strong { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.lot-price-block span { color: var(--muted); font-size: 13px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.feature-chips li { padding: 3px 10px; border-radius: 999px; background: #eef0f6; color: #433747; font-size: 12px; font-weight: 650; }
.lot-deal { margin: 0 0 4px; font-size: 13px; }
.stage-strip {
  position: sticky; top: 0; z-index: 2; display: flex; gap: 3px; margin: 0 -24px 18px; padding: 12px 24px;
  background: #f0eff7; border-bottom: 1px solid var(--line);
}
.stage-step {
  --status: #8a93ad; position: relative; flex: 1 1 0; min-width: 0; min-height: 34px; padding: 0 14px;
  border: 0; border-radius: 0; background: #e3e7ef; color: #4a5875; font-size: 13px; font-weight: 600;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%);
}
.stage-step:first-child { border-radius: 8px 0 0 8px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); }
.stage-step span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-step.passed { background: color-mix(in srgb, var(--status) 26%, white); color: var(--ink); }
.stage-step.current { background: color-mix(in srgb, var(--status) 55%, var(--ink)); color: white; }
.stage-step[data-click]:hover { background: color-mix(in srgb, var(--status) 40%, white); color: var(--ink); }
.stage-step[aria-disabled="true"] { cursor: default; }
.stage-step[aria-disabled="true"]:not(.passed):not(.current) { background: #eceff4; color: #5d6880; }.stage-step:focus-visible { outline-offset: -3px; outline-color: var(--ink); }
.stage-finish, .stage-final { flex: 1.2 1 0; border-radius: 0 8px 8px 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%); }
.stage-finish { background: white; color: var(--brand-dark); box-shadow: inset 0 0 0 1px #d0cddd; }
.stage-finish:hover { background: #eeecf4; }
.stage-final { display: grid; place-items: center; color: white; }
.stage-final.won { background: #2f8f74; }
.stage-final.lost { background: #6b7590; }
.deal-layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.deal-column > section, .deal-column > .action-bar, .deal-column > .next-activity { margin-top: 0; }
.deal-fields { display: grid; gap: 14px; }
.deal-fields > *, .deal-feed { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.deal-fields > .action-bar { margin: 0; }
.deal-fields > .booking-panel { margin: 0; background: #fffaf0; border-color: #f2ddb7; }
.deal-fields .lot-list ul { margin-bottom: 0; }
.deal-section h3, .deal-fields .lot-list h3 { margin: 0 0 10px; font-size: 14px; }
.deal-section .details { margin: 0; }
.client-card { display: flex; align-items: center; gap: 12px; }
.client-card { flex-wrap: wrap; }
.client-card > div { flex: 1 1 160px; }
.client-card > .badge { margin-left: auto; align-self: flex-start; white-space: nowrap; }
.lead-actions .action-bar { margin: 0; }
.lead-actions .dialog-hint { margin: 0; }
.lead-actions .action-bar + .dialog-hint { margin-top: 10px; }
button.stage-final { cursor: pointer; }
button.stage-final:hover { filter: brightness(1.08); }
.client-card .avatar { width: 42px; height: 42px; font-size: 14px; }
.client-card div { display: grid; min-width: 0; }
.client-card strong { font-size: 16px; overflow-wrap: anywhere; }
.client-card small { font-size: 13px; color: var(--muted); }
.client-card a { font-variant-numeric: tabular-nums; }
.deal-feed .timeline { border-top: 0; padding-top: 0; }
.deal-feed .timeline h3 { margin-top: 4px; }
.payment-schedule h3 { margin: 0 0 10px; font-size: 14px; }
.payment-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.payment-summary div { min-width: 0; }
.payment-summary dt { color: var(--muted); font-size: 12px; }
.payment-summary dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.payment-summary dd.paid { color: #137b5e; }
.payment-progress { height: 6px; border-radius: 3px; background: #eceff4; overflow: hidden; margin-bottom: 10px; }
.payment-progress span { display: block; height: 100%; border-radius: inherit; background: #2f9e7e; }
.payment-gap { margin: 0 0 10px; padding: 7px 10px; border-radius: 8px; background: #fff5df; color: #7d4f0a; font-size: 13px; }
.payment-list { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.payment-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; }
.payment-row + .payment-row { border-top: 1px solid var(--line); }
.payment-row > div { flex: 1 1 140px; min-width: 0; display: grid; }
.payment-row strong { font-variant-numeric: tabular-nums; }
.payment-row small { color: var(--muted); font-size: 12px; }
.payment-row.is-paid strong { color: #5d6880; }
.payment-row.is-overdue { background: #fff8f9; }
.badge.overdue-badge { color: #b91d48; background: #fdebef; }
.payment-actions { display: flex; align-items: center; gap: 4px; }
.button.compact { min-height: 30px; padding: 4px 9px; font-size: 13px; }
.icon-button.compact { width: 30px; height: 30px; }
.icon-button.compact .icon { width: 15px; height: 15px; }
.payment-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.finish-options { display: grid; gap: 10px; }
.finish-option { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.finish-option > div { flex: 1 1 260px; min-width: 0; }
.finish-option h3 { margin: 0 0 2px; font-size: 15px; }
.finish-option.won { border-color: #c9ebdc; background: #f5fcf8; }
.finish-option.lost { border-color: #f4d5dc; background: #fff8f9; }
.dialog-head {
  flex: none; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: white;
  padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 18px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dialog-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 20px 20px; scrollbar-width: thin; scrollbar-color: #c9cfdd transparent; scrollbar-gutter: stable;
}
.dialog-body h3 { margin: 18px 0 8px; font-size: 14px; }
.dialog-body .form-actions { margin: 14px 0 0; }
.dialog-hint {
  margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #f0eff7; color: #625a68; font-size: 13px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rose { color: #b91d48; background: #fdebef; }
.grey { color: #5d6a82; background: #e6e4f0; }
.dialog-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.stage-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 650; color: #433747; background: #eeecf4; border: 1px solid var(--line); white-space: nowrap;
}
.next-activity {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; margin: 4px 0 14px;
  border: 1px solid #dce7fb; border-radius: 10px; background: #f6f9ff;
}
.next-activity > div:not(.next-activity-actions) { flex: 1 1 200px; min-width: 0; display: grid; gap: 1px; }
.next-activity strong { font-size: 14px; overflow-wrap: anywhere; }
.next-activity small { color: var(--muted); font-size: 12px; }
.next-activity.overdue { border-color: #f4ccd5; background: #fff6f7; }
.next-activity.overdue small:first-child { color: #b91d48; font-weight: 650; }
.next-activity.missing { border-color: #f2e0bb; background: #fffaf0; }
.next-activity-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.next-activity .button { min-height: 34px; padding: 6px 10px; }
.timeline-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.timeline-icon .icon { width: 15px; height: 15px; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.booking-panel { margin: 0 0 14px; padding: 12px; border: 1px solid #f2ddb7; border-radius: 10px; background: #fffaf0; }
.booking-panel h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 14px; color: #8c590d; }
.booking-panel .details { margin-bottom: 0; }
.booking-panel .details div { background: #ffffffb3; }
.lot-list h3 { margin-top: 0; }
.lot-list ul { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.lot-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; }
.lot-list li + li { border-top: 1px solid var(--line); }
.lot-list .lot-price { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; }
.timeline { border-top: 1px solid var(--line); padding-top: 4px; }
.dialog-body .timeline h3 { margin-top: 14px; }
.note-form { display: grid; gap: 8px; margin-bottom: 16px; }
.note-form textarea { width: 100%; min-height: 44px; resize: vertical; }
.note-form:not(:focus-within):has(textarea:placeholder-shown) .note-form-actions { display: none; }
.note-form .form-error { margin: 0; }
.note-form-actions { display: flex; justify-content: flex-end; }
.timeline-days, .timeline-days ol { list-style: none; margin: 0; padding: 0; }
.timeline-day + .timeline-day { margin-top: 12px; }
.timeline-day h4 {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
}
.timeline-item { position: relative; display: flex; gap: 12px; padding-bottom: 12px; }
.timeline-item:not(:last-child)::before {
  content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--line);
}
.timeline-item > div { min-width: 0; padding-top: 5px; }
.timeline-item p { overflow-wrap: anywhere; }
.timeline-item p.timeline-note {
  padding: 8px 10px; margin-top: -3px; border-radius: 0 10px 10px 10px; background: #f3f6fd; white-space: pre-line;
}
.timeline-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.timeline:not(.expanded) .extra { display: none; }
.timeline-more { margin-top: 2px; }
.danger-zone {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid + .form-actions { margin-top: 14px; }
.form-grid label, .field { display: grid; gap: 5px; font-size: 13px; font-weight: 650; color: #433747; }
.required-mark { color: var(--danger); margin-left: 2px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid textarea { min-height: 76px; resize: vertical; }
.form-grid select[multiple] { min-height: 92px; }
.form-error {
  color: var(--danger); font-weight: 600; margin: 10px 0; font-size: 13px;
  padding: 8px 10px; border-radius: 8px; background: #fff3f5; border: 1px solid #f3d3db;
}
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 12px; }
.details div { padding: 8px 10px; background: #f0eff7; border-radius: 8px; overflow-wrap: anywhere; }
.details dt { color: var(--muted); font-size: 12px; }
.details dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { border-top: 1px solid var(--line); padding: 8px 0; overflow-wrap: anywhere; }
.history time { display: block; color: var(--muted); font-size: 12px; }
#toast {
  position: fixed; z-index: 30; bottom: 16px; right: 16px; background: #433747; color: white;
  box-shadow: var(--shadow-raised); padding: 11px 16px; border-radius: 10px; max-width: min(420px, calc(100vw - 32px));
  animation: toast-in .2s var(--ease-out);
}
.login-screen { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(300px, .85fr) minmax(365px, 1fr); background: white; }
.login-aside {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100dvh; gap: 50px;
  padding: clamp(24px, 5.3vw, 72px); color: #f4f0ff;
  background: radial-gradient(ellipse at 80% 14%, #433747 0, transparent 58%), #121115;
}
.login-aside h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.02; }
.login-aside p { margin-top: 14px; font-size: 15px; color: #c4cbe1; max-width: 360px; }
.login-art { width: min(375px, 100%); align-self: start; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-top: 22px; }
.login-art span { aspect-ratio: 1.5; border: 1px solid #ffffff26; border-radius: 6px; background: #ffffff10; }
.login-art span:nth-child(4n + 1), .login-art span:nth-child(7n) { background: #e4255979; border-color: #e4255980; }
.login-art span:nth-child(8n) { background: #49b89950; border-color: #7ed7bf60; }
.login-main { align-self: center; justify-self: center; padding: 25px; width: min(100%, 440px); }
.login-main h2 { margin-bottom: 4px; font-size: 26px; letter-spacing: -.03em; }
.login-main .field { margin-top: 14px; }
.login-main form .button { margin: 16px 0; width: 100%; min-height: 44px; }
.password-field { position: relative; display: grid; margin-top: 5px; }
.password-field input { padding-right: 46px; }
.password-field .icon-button { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); }
.login-demo { padding-top: 14px; border-top: 1px solid var(--line); }
.login-demo .header-actions { margin-top: 8px; }
.mobile-only { display: none; }

@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes panel-in { from { opacity: .6; transform: translateX(48px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (pointer: coarse) {
  .icon-button, .lane-heading .icon-button { width: 44px; height: 44px; }
  .button, input, select { min-height: 44px; }
  .segmented button { min-height: 40px; }
  .sidebar .nav { gap: 6px; }
  .sidebar .nav button { min-height: 44px; }
  .card-add::before { content: ""; position: absolute; inset: -8px -6px; }
}

@media (pointer: coarse) and (max-width: 760px) {
  .shell .sidebar { padding-inline: 6px; }
  .sidebar .nav button { width: 44px; }
}

@media (max-width: 1000px) {
  .shell { grid-template-columns: 184px minmax(0, 1fr); }
  .sidebar { padding-inline: 11px; }
  .content, .topbar { padding-inline: 18px; }
  .metrics { gap: 8px; }
  .metric { padding: 10px; gap: 8px; }
  .metric-icon { width: 34px; height: 34px; }
}

@media (max-width: 760px) {
  .shell { grid-template-columns: 56px minmax(0, 1fr); }
  .sidebar { padding: 12px 9px; gap: 15px; }
  .sidebar .brand { padding: 0 0 12px; justify-content: center; }
  .sidebar .brand-text, .nav-label, .nav-text, .sidebar .account div { display: none; }
  .nav { justify-items: center; }
  .nav button { justify-content: center; width: 38px; padding: 6px; min-height: 38px; }
  .nav-count {
    position: absolute; top: 1px; right: -8px; min-width: 14px; height: 14px; padding: 0 4px;
    border-radius: 7px; font-size: 10px; line-height: 14px;
  }
  .sidebar .account { justify-content: center; padding-inline: 0; }
  .sidebar .account .avatar { display: none; }
  .sidebar .account .icon-button { margin-left: 0; }
  .topbar { height: 52px; }
  .content { padding-top: 17px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 64px; }
  input, select, textarea { font-size: 16px; }
  .toolbar > select, .toolbar > input, .toolbar .search { flex: 1 1 140px; max-width: none; }
  .search input { width: 100%; }
  .login-screen { display: block; }
  .login-aside { min-height: auto; gap: 20px; }
  .login-aside h1 { font-size: 32px; }
  .login-art { display: none; }
  .login-main { margin: 0 auto; }
  .details { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 430px) {
  .content, .topbar { padding-inline: 12px; }
  .page-heading { align-items: flex-start; }
  .button { padding-inline: 10px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .desktop-only { display: none; }
  .demo-tag { font-size: 0; gap: 0; padding: 4px; }
  .breadcrumb { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card:hover, .lot:hover, .button:active { transform: none; }
}

@media (max-width: 1000px) {
  .deal-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  dialog.side-panel { inset: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  dialog.side-panel .dialog-head { padding: 10px 10px 10px 16px; }
  dialog.side-panel .dialog-head h2 { font-size: 18px; }
  dialog.side-panel .dialog-body { padding: 0 12px 16px; }
  .stage-strip { margin: 0 -12px 12px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
  .stage-step { flex: 0 0 auto; min-width: 104px; min-height: 40px; }
}

/* Integrations: Meta connection status, sources and recent intake */
.integration-grid { display: grid; gap: 16px; }
.section-title { font-size: 16px; margin: 0 0 8px; }
.setup-checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.setup-check { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border-radius: 8px; background: #f0eff7; }
.setup-check .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.setup-check.ok .icon { color: #107052; }
.setup-check.missing .icon { color: #b91d48; }
.setup-check strong { display: block; font-size: 14px; }
.setup-check small { color: var(--muted); font-size: 12px; }
.callback-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.callback-row .form-actions { flex-wrap: nowrap; margin-bottom: 6px; }
.callback-row .secret-value { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; }
td code { font-size: 12px; overflow-wrap: anywhere; }
.integration-tabs { margin-bottom: 14px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.report-panel .panel-heading h2 { margin: 0; }
.panel-heading .form-actions { margin: 0; }
.callback-row small code, .format-help code { font-size: 12px; }
.format-help { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.format-help summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 32px; display: flex; align-items: center; }
.format-help pre { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: #f0eff7; font: 12px/1.5 ui-monospace, Consolas, monospace; overflow-x: auto; }
@media (max-width: 760px) { .setup-checks { grid-template-columns: minmax(0, 1fr); } }
