@font-face {
  font-family: Manrope;
  src: url(assets/font-7.woff2);
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(assets/font-9.woff2);
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(assets/font-10.woff2);
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url(assets/cormorant-2.woff2);
  font-weight: 400;
  font-display: swap;
}
:root {
  --wine: #83172e;
  --wine-soft: #f4e8eb;
  --ink: #272320;
  --muted: #7a736c;
  --line: #e7e1d8;
  --paper: #f7f5f0;
  --ivory: #eee8dc;
  --gold: #aa8d57;
  --green: #3d6754;
  --green-soft: #edf3ee;
  --orange: #986626;
  --orange-soft: #fbf1df;
  --shadow: 0 8px 40px #30281908;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    13px/1.55 Manrope,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--wine);
}
svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font:
    400 46px/1.1 Cormorant,
    Georgia,
    serif;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.display {
  font:
    400 40px/1.05 Cormorant,
    Georgia,
    serif;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.wine {
  color: var(--wine);
}
.green {
  color: var(--green);
}
.spacer {
  flex: 1;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 16px;
}
.gap8 {
  gap: 8px;
}
.mt {
  margin-top: 22px;
}
.mt-sm {
  margin-top: 12px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 20px;
}
.loading {
  height: 100vh;
  display: grid;
  place-content: center;
  gap: 30px;
  text-align: center;
}
.loading img {
  width: 230px;
}
.sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 20px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: block;
  text-align: center;
  margin: 0 13px 30px;
}
.brand img {
  width: 168px;
  height: 48px;
  object-fit: contain;
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-top: 9px;
}
.nav-group {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #a2998f;
  margin: 24px 14px 9px;
}
.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 8px;
  color: #79716b;
  margin: 3px 0;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}
.nav-item:hover {
  background: #f8f6f2;
  color: var(--wine);
}
.nav-item.active {
  background: var(--wine-soft);
  color: var(--wine);
}
.nav-item.active:before {
  content: '';
  position: absolute;
  left: -20px;
  width: 3px;
  height: 25px;
  background: var(--wine);
  border-radius: 0 3px 3px 0;
}
.nav-item .count {
  font-size: 10px;
  background: #fff9;
  border-radius: 5px;
  padding: 0 6px;
  margin-left: auto;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 24px;
}
.integration {
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 15px;
  cursor: pointer;
}
.integration .row {
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f1e8dc;
  color: #806841;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.wine-bg {
  background: var(--wine-soft);
  color: var(--wine);
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 7px;
}
.profile strong {
  font-size: 11px;
}
.profile small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.workspace {
  margin-left: 232px;
  min-height: 100vh;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 38px;
  gap: 20px;
  background: #ffffff80;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.top-search {
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  color: #9a928a;
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 245px;
  font-size: 11px;
  text-align: left;
}
.top-search kbd {
  margin-left: auto;
  font: 10px Manrope;
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 3px;
}
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-btn.flat {
  border: 0;
  background: transparent;
}
.icon-btn:hover {
  background: var(--ivory);
}
.top-badge {
  font-size: 10px;
  color: var(--gold);
  padding: 5px 8px;
  border: 1px solid #d4c3a4;
  border-radius: 5px;
  white-space: nowrap;
}
.main {
  padding: 34px 38px 50px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  margin-bottom: 9px;
}
.page-heading p {
  font-size: 12px;
  margin-top: 10px;
  color: var(--muted);
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 15px;
  min-height: 39px;
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
}
.btn.primary:hover {
  background: #6f1025;
}
.btn.ghost {
  border: 0;
  background: transparent;
  color: var(--wine);
  padding: 7px 0;
}
.btn.soft {
  background: var(--wine-soft);
  border-color: transparent;
  color: var(--wine);
}
.btn.danger {
  color: var(--wine);
}
.btn.tiny {
  padding: 6px 10px;
  min-height: 30px;
  font-size: 10px;
}
.intro-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #92887d;
  margin-top: 24px;
  gap: 14px;
}
.intro-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-pad {
  padding: 23px;
}
.kpi {
  padding: 20px 22px;
}
.kpi-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  gap: 9px;
  align-items: center;
}
.kpi-top svg {
  color: var(--gold);
  width: 18px;
}
.kpi-value {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 15px 0 9px;
}
.kpi-bottom {
  font-size: 10px;
  color: var(--muted);
}
.kpi-bottom span {
  color: var(--green);
}
.kpi-value small {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(295px, 1fr);
  gap: 22px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.card-title a,
.card-title button.link {
  font-size: 10px;
  color: var(--wine);
}
button.link {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.objective {
  display: grid;
  grid-template-columns: 1fr 155px;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
  margin-bottom: 24px;
}
.objective-big {
  font-size: 35px;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-top: 14px;
}
.objective-big small {
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}
.objective p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.progress {
  height: 6px;
  background: #f1eae3;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 18px;
}
.progress i {
  display: block;
  background: var(--wine);
  height: 100%;
  border-radius: 5px;
}
.ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: conic-gradient(var(--wine) var(--value), #f1ebe4 0);
  position: relative;
  margin: auto;
}
.ring:before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}
.ring > * {
  z-index: 1;
}
.ring strong {
  font-size: 23px;
  font-weight: 500;
}
.ring span {
  font-size: 9px;
  color: var(--muted);
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  margin-top: 20px;
}
.chart-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  color: var(--muted);
}
.chart-col .bar {
  width: 75%;
  max-width: 26px;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: #dfc1c7;
  position: relative;
}
.chart-col.current .bar {
  background: var(--wine);
}
.chart-col.current {
  color: var(--wine);
  font-weight: 700;
}
.chart-col .bar:hover:after {
  content: attr(data-value);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 5px;
  background: var(--ink);
  color: white;
  border-radius: 3px;
  white-space: nowrap;
}
.action-list {
  display: grid;
  gap: 0;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.action-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.action-row:first-child {
  padding-top: 0;
}
.action-row:hover strong {
  color: var(--wine);
}
.action-icon {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.action-icon.rose {
  background: var(--wine-soft);
  color: var(--wine);
}
.action-icon.olive {
  background: var(--green-soft);
  color: var(--green);
}
.action-row strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
}
.action-row p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.action-row > svg:last-child {
  margin-left: auto;
  width: 15px;
  color: #b0a89d;
}
.table-wrap {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th {
  background: #faf9f6;
  color: #92877d;
  font-size: 9px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 17px;
  border-block: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 17px;
  border-bottom: 1px solid #f1ede7;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfaf7;
}
.cell-title {
  font-size: 11px;
  font-weight: 600;
}
.cell-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.badge {
  font-size: 9px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 5px;
  background: #f1eee9;
  color: #7c7268;
  white-space: nowrap;
  font-weight: 600;
}
.badge.green {
  background: var(--green-soft);
  color: var(--green);
}
.badge.orange {
  background: var(--orange-soft);
  color: var(--orange);
}
.badge.rose {
  background: var(--wine-soft);
  color: var(--wine);
}
.badge.blue {
  background: #eaf0f6;
  color: #466885;
}
.date-box {
  width: 44px;
  min-width: 44px;
  background: #f6f2eb;
  border-radius: 7px;
  padding: 7px 3px;
  text-align: center;
  color: var(--wine);
}
.date-box strong {
  font-size: 18px;
  display: block;
  line-height: 1.1;
  font-weight: 500;
}
.date-box small {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.agenda-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.agenda-row h3 {
  font-size: 11px;
}
.agenda-row p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.event-feature {
  background: var(--ivory);
  padding: 19px;
  border-radius: 10px;
  margin-top: 22px;
}
.event-feature .eyebrow {
  font-size: 8px;
  color: var(--gold);
}
.event-feature h3 {
  font:
    400 23px/1.15 Cormorant,
    Georgia;
  margin: 8px 0;
}
.event-feature p {
  font-size: 10px;
  color: #8a7965;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 27px;
  margin-bottom: 23px;
  overflow: auto;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0 0 13px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tab.active {
  color: var(--wine);
  border-color: var(--wine);
  font-weight: 600;
}
.tab .badge {
  margin-left: 7px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 340px;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #9c9186;
  width: 16px;
}
.search-field input {
  padding-left: 38px;
}
.control,
select,
input,
textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  min-width: 0;
}
input:not([type='checkbox']):not([type='radio']),
textarea {
  width: 100%;
}
select {
  max-width: 100%;
  font-size: 11px;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
input::placeholder,
textarea::placeholder {
  color: #aea396;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #83172e2b;
  border-color: #b36d7e;
}
.toggle {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 8px;
  background: #fff;
}
.toggle button {
  background: none;
  border: 0;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
}
.toggle button.active {
  background: var(--ivory);
  color: var(--ink);
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.event-card {
  padding: 22px;
  cursor: pointer;
}
.event-card:hover {
  border-color: #c8acb2;
}
.event-card h2 {
  font:
    400 28px/1.1 Cormorant,
    Georgia;
  margin: 18px 0 9px;
}
.event-card .event-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
  display: grid;
  gap: 7px;
}
.event-card .card-foot {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.tag-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tag {
  font-size: 9px;
  padding: 3px 7px;
  background: #f6f3ee;
  border: 1px solid #eee8dd;
  border-radius: 4px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 17px;
  overflow-x: auto;
  padding-bottom: 14px;
}
.kanban-column {
  background: #f0ece5;
  border-radius: 10px;
  padding: 13px;
  min-height: 360px;
}
.kanban-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 15px;
  padding: 0 2px;
}
.prospect-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  margin-bottom: 12px;
  cursor: pointer;
}
.prospect-card:hover {
  border-color: #b9939b;
  box-shadow: 0 4px 10px #30281908;
}
.prospect-card h3 {
  font-size: 12px;
  margin: 8px 0;
}
.prospect-card p {
  font-size: 10px;
  color: var(--muted);
}
.prospect-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 10px;
  color: var(--wine);
}
.kanban-empty {
  border: 1px dashed #d7cfc1;
  border-radius: 8px;
  padding: 26px 12px;
  color: #a19587;
  text-align: center;
  font-size: 10px;
}
.notice {
  padding: 13px 17px;
  border: 1px solid #e2d7c5;
  background: #fbf7ee;
  border-radius: 8px;
  font-size: 11px;
  color: #88714f;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.notice svg {
  width: 16px;
  margin-top: 1px;
}
.notice.info {
  background: #f1f4f5;
  border-color: #dfe7e9;
  color: #596a73;
}
.notice.rose {
  background: var(--wine-soft);
  color: var(--wine);
  border-color: #e9cfd5;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
}
.empty > svg {
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 7px;
}
.empty p {
  max-width: 420px;
  margin: 0 auto 18px;
  font-size: 12px;
}
.section-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stock-card {
  padding: 20px;
}
.stock-card h3 {
  font-size: 12px;
  margin-bottom: 5px;
}
.stock-card .qty {
  font-size: 27px;
  font-weight: 500;
  margin: 18px 0 5px;
  letter-spacing: -0.035em;
}
.stock-card .qty small {
  font-size: 12px;
  color: var(--muted);
}
.stock-card .row {
  justify-content: space-between;
}
.stock-meter {
  height: 4px;
  background: #f1eee9;
  margin-top: 14px;
  border-radius: 4px;
  overflow: hidden;
}
.stock-meter i {
  height: 100%;
  display: block;
  background: var(--green);
}
.stock-card.low .stock-meter i {
  background: var(--orange);
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.metric-box {
  padding: 18px;
  background: #f7f4ee;
  border-radius: 8px;
}
.metric-box label {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.metric-box strong {
  font-size: 24px;
  font-weight: 500;
  display: block;
  margin-top: 8px;
}
.metric-box small {
  font-size: 10px;
  color: var(--muted);
}
.check-list {
  display: grid;
  gap: 0;
}
.check-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.check-item input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--wine);
}
.check-item.done span {
  text-decoration: line-through;
  color: var(--muted);
}
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.person {
  padding: 25px;
}
.person .avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.person h3 {
  margin-top: 16px;
}
.person p {
  font-size: 11px;
  margin-top: 5px;
  color: var(--muted);
}
.document-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.document-row:last-child {
  border: 0;
}
.document-icon {
  background: var(--ivory);
  border-radius: 8px;
  padding: 12px;
  color: var(--gold);
}
.document-row strong {
  font-size: 12px;
}
.document-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.integration-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.integration-item:last-child {
  border: 0;
}
.integration-logo {
  width: 39px;
  height: 39px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 600;
  background: #f1f0ec;
  color: #757065;
}
.integration-item h3 {
  font-size: 12px;
}
.integration-item p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  margin-left: 5px;
}
.timeline-entry {
  position: relative;
  margin-bottom: 22px;
}
.timeline-entry:before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  left: -24px;
  top: 7px;
}
.timeline-entry p {
  font-size: 12px;
}
.timeline-entry small {
  font-size: 10px;
  color: var(--muted);
}
.map-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 500px;
}
.map-list {
  max-height: 550px;
  overflow: auto;
  border-right: 1px solid var(--line);
}
.map-item {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.map-item h3 {
  font-size: 11px;
}
.map-item p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.map-canvas {
  position: relative;
  background: #e8e7db;
  min-height: 500px;
  overflow: hidden;
}
.map-tiles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  width: 28px;
  height: 28px;
  background: var(--wine);
  color: white;
  box-shadow: 0 3px 10px #0003;
  font-size: 10px;
  z-index: 2;
}
.map-marker span {
  display: block;
  rotate: 45deg;
}
.map-marker.selected {
  outline: 3px solid #83172e50;
}
.map-controls {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  gap: 5px;
  z-index: 4;
}
.map-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fffd;
  padding: 3px 7px;
  font-size: 8px;
  z-index: 4;
}
.map-state {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  background: #fff;
  padding: 7px 11px;
  box-shadow: 0 2px 10px #0001;
  border-radius: 6px;
  font-size: 10px;
}
.map-attribution {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3px 7px;
  font-size: 9px;
  background: #fff;
  z-index: 4;
}
.map-attribution a {
  text-decoration: underline;
}
.menu-btn,
.mobile-nav {
  display: none;
}
.sidebar-overlay {
  display: none;
}
.mobile-title {
  display: none;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 700px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  box-shadow: 0 25px 100px #211a1740;
  color: var(--ink);
  background: #fff;
  overflow: auto;
}
dialog.wide {
  max-width: 1000px;
}
dialog::backdrop {
  background: #241a22a0;
  backdrop-filter: blur(3px);
}
.dialog-head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 6;
  border-bottom: 1px solid var(--line);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-head h2 {
  font:
    400 32px/1.1 Cormorant,
    Georgia;
}
.dialog-head .eyebrow {
  margin-bottom: 7px;
}
.dialog-body {
  padding: 26px 28px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 28px;
  background: #faf8f4;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  z-index: 5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
}
.field > small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  font-size: 12px;
}
.field.full {
  grid-column: 1/-1;
}
.field select {
  width: 100%;
}
.field legend {
  font-size: 11px;
}
.form-section {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 25px 0 15px;
}
.form-section:first-child {
  margin-top: 0;
}
.form-error {
  color: var(--wine);
  background: var(--wine-soft);
  padding: 12px 15px;
  border-radius: 7px;
  font-size: 12px;
  margin-top: 18px;
}
.form-error:empty {
  display: none;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.choice input {
  min-height: auto;
  accent-color: var(--wine);
}
.summary {
  background: #f8f4ed;
  border: 1px solid #e7ddcd;
  border-radius: 10px;
  padding: 20px;
  margin-top: 22px;
}
.summary .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 12px;
}
.summary .line.total {
  border-top: 1px solid #dfd4c3;
  margin-top: 10px;
  padding-top: 13px;
  font-size: 18px;
  font-weight: 600;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.detail dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail dd {
  margin: 0;
  font-size: 12px;
}
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 8px;
}
.step {
  font-size: 10px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #a6998c;
}
.step span {
  border: 1px solid #d7cbbd;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
.step.active {
  color: var(--wine);
}
.step.active span {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}
.signature {
  width: 100%;
  height: 180px;
  border: 1px dashed #cdbbad;
  border-radius: 8px;
  background: #faf8f3;
  touch-action: none;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  width: 100%;
  border-inline: 0;
  border-top: 0;
  background: none;
  text-align: left;
}
.result-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.result-item strong {
  font-size: 12px;
}
.print-only {
  display: none;
}
#toasts {
  position: fixed;
  right: 25px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  gap: 10px;
  max-width: min(400px, calc(100% - 40px));
}
.toast {
  padding: 15px 20px;
  background: #28221f;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 25px #0003;
  font-size: 12px;
  animation: slide-in 0.2s;
}
.toast.error {
  background: var(--wine);
}
@keyframes slide-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .main {
    padding: 42px 50px;
  }
  .sidebar {
    width: 248px;
  }
  .workspace {
    margin-left: 248px;
  }
  .topbar {
    padding: 0 50px;
  }
}
@media (max-width: 1200px) {
  .main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .sidebar {
    width: 210px;
    padding-inline: 15px;
  }
  .workspace {
    margin-left: 210px;
  }
  .nav-item {
    font-size: 11px;
  }
  .brand img {
    width: 150px;
  }
  .kpis {
    gap: 12px;
  }
  .kpi {
    padding: 17px;
  }
  .kpi-value {
    font-size: 25px;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
  }
  .card-pad {
    padding: 20px;
  }
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-search {
    width: 200px;
  }
  .stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .people {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%);
    width: 245px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: #0005;
    z-index: 25;
  }
  .workspace {
    margin-left: 0;
  }
  .menu-btn {
    display: grid;
  }
  .topbar {
    height: 66px;
    gap: 12px;
  }
  .breadcrumb > span {
    display: none;
  }
  .top-badge {
    display: none;
  }
  .main {
    padding: 26px 24px 100px;
  }
  .dashboard-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .settings-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 5px 20px calc(5px + env(safe-area-inset-bottom));
    background: #fffc;
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    z-index: 20;
    justify-content: space-around;
  }
  .mobile-nav a,
  .mobile-nav button {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 9px;
    display: grid;
    place-items: center;
    gap: 3px;
    width: 60px;
  }
  .mobile-nav .active {
    color: var(--wine);
  }
  #toasts {
    bottom: 90px;
  }
  .map-layout {
    grid-template-columns: 250px 1fr;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 13px;
  }
  .main {
    padding: 25px 18px 105px;
  }
  .topbar {
    padding: 0 18px;
  }
  .top-search {
    width: 36px;
    height: 36px;
    padding: 8px;
    flex: none;
    margin-left: auto;
  }
  .top-search span,
  .top-search kbd {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .topbar > .avatar {
    display: none;
  }
  h1 {
    font-size: 38px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
    margin-bottom: 24px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .btn.primary {
    margin-left: auto;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kpi {
    padding: 16px;
  }
  .kpi-top {
    font-size: 10px;
  }
  .kpi-value {
    font-size: 25px;
    margin: 12px 0 7px;
  }
  .kpi-bottom {
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .dashboard-grid > .stack {
    gap: 17px;
  }
  .card-pad {
    padding: 20px;
  }
  .objective {
    grid-template-columns: 1fr 100px;
    gap: 15px;
  }
  .objective-big {
    font-size: 30px;
  }
  .ring {
    width: 95px;
    height: 95px;
  }
  .ring:before {
    inset: 7px;
  }
  .ring strong {
    font-size: 18px;
  }
  .ring span {
    font-size: 8px;
  }
  .chart {
    height: 110px;
    gap: 5px;
  }
  .chart-col {
    font-size: 8px;
  }
  .event-grid,
  .people,
  .stock-grid {
    grid-template-columns: 1fr;
  }
  .event-card h2 {
    font-size: 28px;
  }
  .event-card .event-meta {
    font-size: 12px;
  }
  .tabs {
    gap: 22px;
    margin-bottom: 20px;
  }
  .tab {
    font-size: 11px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .search-field {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .field.full {
    grid-column: auto;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .control,
  input,
  select,
  textarea {
    min-height: 44px;
  }
  .dialog-head {
    padding: 20px;
  }
  .dialog-head h2 {
    font-size: 29px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 15px 20px;
  }
  .dialog-footer .btn {
    flex: 1;
  }
  .detail-grid {
    gap: 15px;
  }
  .detail dd {
    font-size: 11px;
  }
  .metric-row {
    gap: 8px;
  }
  .metric-box {
    padding: 12px;
  }
  .metric-box strong {
    font-size: 20px;
  }
  .metric-box label {
    font-size: 9px;
  }
  .btn {
    font-size: 11px;
    min-height: 40px;
  }
  .btn.tiny {
    min-height: 35px;
  }
  .intro-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 9px;
  }
  .map-layout {
    display: flex;
    flex-direction: column-reverse;
  }
  .map-canvas {
    height: 390px;
    min-height: 390px;
  }
  .map-list {
    max-height: 320px;
  }
  .kanban {
    grid-template-columns: repeat(4, 250px);
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .notice {
    font-size: 10px;
  }
  .event-feature h3 {
    font-size: 26px;
  }
  .row.mobile-stack {
    align-items: stretch;
    flex-direction: column;
  }
  .steps .step {
    font-size: 9px;
  }
  .steps {
    gap: 4px;
  }
  .settings-grid {
    gap: 16px;
  }
  .document-row {
    gap: 10px;
  }
  .document-row strong {
    font-size: 11px;
  }
  .document-row .btn {
    font-size: 10px;
  }
  .document-icon {
    padding: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: white;
    font-size: 11px;
  }
  .sidebar,
  .topbar,
  .mobile-nav,
  .heading-actions,
  .toolbar,
  .tabs,
  .intro-note,
  #toasts,
  .dialog-footer,
  .dialog-head > .icon-btn,
  .no-print {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  .main {
    padding: 15px;
  }
  .card {
    box-shadow: none;
    break-inside: avoid;
  }
  .print-only {
    display: block;
  }
  dialog[open] {
    position: absolute;
    max-height: none;
    max-width: none;
    width: 100%;
    border: 0;
    box-shadow: none;
    overflow: visible;
    inset: 0;
    margin: 0;
  }
  body:has(dialog[open]) #app {
    display: none;
  }
  dialog::backdrop {
    background: white;
  }
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
  .table-wrap {
    overflow: visible;
  }
  table {
    white-space: normal;
  }
  td,
  th {
    white-space: normal;
  }
  .dashboard-grid {
    display: block;
  }
  .card {
    margin-bottom: 15px;
  }
}

.sidebar {
  overflow-y: auto;
}
.brand,
.sidebar-foot {
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .top-badge {
    display: inline;
    font-size: 8px;
    padding: 4px 6px;
  }
  .topbar .breadcrumb svg {
    display: none;
  }
}
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}
.access-grid .choice {
  margin: 0;
  padding: 10px;
}
.flow-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
}
.flow-strip span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.flow-strip b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--wine-soft);
  color: var(--wine);
}
.flow-strip > svg {
  width: 14px;
  height: 14px;
}
.register-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.register-menu {
  display: grid;
  gap: 5px;
}
.register-menu button {
  display: flex;
  justify-content: space-between;
  text-align: left;
  padding: 13px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--muted);
}
.register-menu button.active {
  background: var(--wine);
  color: white;
}
.register-menu small {
  opacity: 0.7;
}
.register-card {
  min-width: 0;
}
.register-card .table-wrap {
  max-height: 620px;
  overflow: auto;
}
.register-card th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f0ece5;
  max-width: 220px;
  white-space: normal;
}
.register-card td {
  max-width: 260px;
  white-space: normal;
  min-width: 95px;
}
.register-card .toolbar {
  margin: 0;
}
.pre-wrap {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.8;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .register-layout {
    grid-template-columns: 1fr;
  }
  .register-menu {
    display: flex;
    overflow: auto;
    gap: 8px;
  }
  .register-menu button {
    min-width: 150px;
    gap: 15px;
    background: var(--ivory);
  }
  .flow-strip {
    gap: 10px;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .access-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow-strip > svg {
    display: none;
  }
  .flow-strip span {
    width: 100%;
  }
  .register-card > .card-pad.row {
    flex-wrap: wrap;
    gap: 12px;
  }
}
