:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #f1f4f5;
  --ink: #172126;
  --muted: #7c888c;
  --border: #e5e9ea;
  --teal: #0e8a7e;
  --teal-dark: #096e65;
  --teal-soft: #dff3ef;
  --orange: #e78b42;
  --orange-soft: #fff0df;
  --purple: #7e70bd;
  --purple-soft: #eeeaf9;
  --red: #d76464;
  --red-soft: #fbe8e7;
  --shadow: 0 12px 34px rgba(24, 42, 46, 0.06);
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: "DM Sans", sans-serif; }
body { font-size: 14px; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }

.sidebar { width: 246px; flex: 0 0 246px; background: #fff; border-right: 1px solid var(--border); padding: 28px 14px 16px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 28px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--teal); color: #fff; font-family: Manrope, sans-serif; font-weight: 800; font-size: 19px; }
.brand-name { font-family: Manrope, sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.brand-subtitle { margin-top: 2px; color: var(--muted); font-size: 11px; }
.workspace-switcher { display: flex; align-items: center; gap: 9px; margin: 0 2px 25px; padding: 10px 9px; border: 1px solid var(--border); border-radius: 9px; }
.workspace-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; background: #343f44; font-size: 10px; font-weight: 700; }
.workspace-copy { min-width: 0; display: grid; gap: 2px; flex: 1; }
.workspace-copy strong { font-size: 12px; }
.workspace-copy span { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chevron { color: var(--muted); font-size: 16px; }
.nav-label { color: #a4adb0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 0 12px 7px; }
.nav-label-spaced { margin-top: 25px; }
.primary-nav { flex: 1; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; margin: 2px 0; padding: 10px 11px; border-radius: 8px; background: transparent; color: #647074; text-align: left; font-size: 13px; transition: .2s ease; }
.nav-item:hover { color: var(--ink); background: #f7f9f9; }
.nav-item.active { color: var(--teal-dark); background: var(--teal-soft); font-weight: 600; }
.nav-icon { display: inline-grid; place-items: center; width: 18px; color: currentColor; font-size: 16px; line-height: 1; }
.nav-count { margin-left: auto; padding: 2px 7px; border-radius: 9px; background: #eef0f0; color: #7d898d; font-size: 10px; }
.nav-count.warm { background: var(--orange-soft); color: #c77736; }
.sidebar-footer { padding-top: 18px; border-top: 1px solid var(--border); }
.profile-card { display: flex; align-items: center; gap: 9px; padding: 10px 7px 0; }
.profile-avatar, .avatar-button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #d18c68; font-size: 10px; font-weight: 700; }
.profile-copy { display: grid; min-width: 0; gap: 2px; flex: 1; }
.profile-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-copy span { color: var(--muted); font-size: 10px; }
.more-button { background: transparent; color: #9ba5a7; letter-spacing: 1px; padding: 3px; }

.main-content { min-width: 0; flex: 1; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 42px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.75); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.breadcrumb-separator { color: #c1c8c9; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.global-search { display: flex; align-items: center; gap: 8px; width: 274px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #9aa4a6; }
.global-search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 12px; background: transparent; }
.global-search input::placeholder { color: #a5afb2; }
.global-search kbd { flex: 0 0 auto; padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; color: #a1aaac; font-size: 9px; }
.icon-button, .avatar-button { display: grid; place-items: center; background: transparent; color: #738084; }
.icon-button { position: relative; width: 32px; height: 32px; font-size: 18px; }
.icon-button.small { width: 26px; height: 26px; font-size: 17px; }
.notification-dot { position: absolute; top: 6px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.avatar-button { background: #d18c68; }
.mobile-menu-button { display: none; background: transparent; color: var(--ink); font-size: 20px; }

.content-wrap { max-width: 1500px; margin: 0 auto; padding: 37px 42px 45px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
h1, h2, p { margin: 0; }
h1 { font-family: Manrope, sans-serif; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -.7px; }
.heading-description { margin-top: 7px; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.secondary-button, .primary-button, .select-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.secondary-button, .select-button { color: #657174; border: 1px solid var(--border); background: #fff; }
.primary-button { color: #fff; background: var(--teal); box-shadow: 0 6px 14px rgba(14, 138, 126, .18); }
.primary-button:hover { background: var(--teal-dark); }
.button-caret { margin-left: 3px; font-size: 15px; opacity: .8; }
.filter-count { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; color: var(--teal-dark); background: var(--teal-soft); font-size: 10px; }
.hidden { display: none !important; }
.new-menu-wrap { position: relative; }
.new-menu { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: 250px; padding: 7px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-5px); transition: .18s ease; }
.new-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.new-menu button { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; border-radius: 7px; color: var(--ink); background: transparent; text-align: left; }
.new-menu button:hover { background: #f4f8f8; }
.new-menu button > span:first-child { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--teal-dark); background: var(--teal-soft); }
.new-menu button > span:last-child { display: grid; gap: 2px; }
.new-menu strong { font-size: 12px; }
.new-menu small { color: var(--muted); font-size: 10px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-height: 130px; padding: 18px 19px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.metric-card.metric-primary { border-color: #b7e4dd; background: #f0fbf9; }
.metric-top, .metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #5b7578; background: #ecf2f2; font-size: 14px; }
.metric-icon.green { color: var(--teal-dark); background: var(--teal-soft); }
.metric-icon.orange { color: #c97934; background: var(--orange-soft); }
.metric-icon.red { color: var(--red); background: var(--red-soft); }
.metric-value { display: block; margin: 13px 0 13px; font-family: Manrope, sans-serif; font-size: 23px; letter-spacing: -.6px; }
.metric-card:nth-child(3) .metric-value { font-size: 20px; }
.metric-foot { justify-content: flex-start; gap: 5px; color: var(--muted); font-size: 10px; }
.positive { color: var(--teal-dark); font-weight: 700; }
.neutral { color: #6a767a; font-weight: 700; }
.attention { color: #c97934; font-weight: 700; }
.danger { color: var(--red); font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.74fr) minmax(300px, .9fr); gap: 18px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); gap: 18px; margin-top: 18px; }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 12px rgba(24, 42, 46, 0.02); }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 20px 21px 17px; }
.panel-header h2 { font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.2px; }
.panel-header p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 2px 0; color: var(--teal-dark); background: transparent; font-size: 11px; font-weight: 700; white-space: nowrap; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 21px; border-bottom: 1px solid var(--border); }
.table-tabs { display: flex; gap: 17px; }
.table-tab { position: relative; display: inline-flex; gap: 5px; padding: 11px 0 12px; color: #8a9598; background: transparent; font-size: 10px; }
.table-tab span { color: #b0b9bb; }
.table-tab.active { color: var(--teal-dark); font-weight: 700; }
.table-tab.active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--teal); }
.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.orders-table th { padding: 13px 21px 10px; color: #a0aaac; font-size: 9px; font-weight: 500; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.orders-table td { padding: 13px 21px; border-top: 1px solid #eef0f1; color: #536164; font-size: 11px; vertical-align: middle; }
.orders-table tbody tr { cursor: pointer; transition: background .16s ease; }
.orders-table tbody tr:hover { background: #fbfcfc; }
.order-cell { display: flex; align-items: center; gap: 10px; }
.order-thumb { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #6c5f46; background: #e7d8bd; font-size: 15px; }
.order-thumb.sage { color: #397065; background: #cde0d9; }
.order-thumb.blush { color: #8f5e5b; background: #eed6d1; }
.order-thumb.lilac { color: #6e6691; background: #e0dcef; }
.order-name { display: grid; gap: 3px; }
.order-name strong { color: var(--ink); font-size: 12px; font-weight: 700; }
.order-name span { color: var(--muted); font-size: 10px; }
.client-cell { display: grid; gap: 3px; }
.client-cell strong { color: #4d5c60; font-size: 11px; font-weight: 600; }
.client-cell span { color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; width: fit-content; gap: 5px; padding: 5px 8px; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.production { color: #ba7134; background: var(--orange-soft); }
.status.approval { color: #7164ad; background: var(--purple-soft); }
.status.prepayment { color: var(--teal-dark); background: var(--teal-soft); }
.status.design { color: #3f7e9d; background: #e4f1f7; }
.status.delivery { color: #bc6267; background: var(--red-soft); }
.deadline { display: grid; gap: 3px; }
.deadline strong { color: #5b686b; font-size: 11px; font-weight: 600; }
.deadline span { color: var(--muted); font-size: 10px; }
.deadline.overdue strong { color: var(--red); }
.price { color: var(--ink); font-size: 11px; font-weight: 700; white-space: nowrap; }
.row-more { color: #a3adaf; background: transparent; letter-spacing: 1px; }
.empty-state { padding: 35px 20px; color: var(--muted); text-align: center; font-size: 12px; }

.agenda-panel { padding-bottom: 15px; }
.agenda-date { display: flex; align-items: center; gap: 9px; padding: 2px 21px 7px; color: #a0aaac; font-size: 9px; letter-spacing: .06em; }
.agenda-line { height: 1px; flex: 1; background: var(--border); }
.agenda-date.tomorrow { margin-top: 13px; }
.agenda-list { padding: 0 21px; }
.agenda-item { display: grid; grid-template-columns: 36px 8px minmax(0, 1fr) 14px; align-items: center; gap: 9px; min-height: 54px; border-bottom: 1px solid #f0f2f2; }
.agenda-item:last-child { border-bottom: 0; }
.agenda-time { color: #8b9698; font-size: 10px; }
.agenda-marker { width: 7px; height: 7px; border-radius: 50%; }
.agenda-marker.orange { background: var(--orange); }
.agenda-marker.teal { background: var(--teal); }
.agenda-marker.blue { background: #5e9cbb; }
.agenda-marker.purple { background: var(--purple); }
.agenda-copy { display: grid; min-width: 0; gap: 3px; }
.agenda-copy strong { overflow: hidden; color: #4b585c; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.agenda-copy span { overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.full-width-button { display: flex; justify-content: space-between; width: calc(100% - 42px); margin: 14px 21px 0; padding: 10px 0 0; border-top: 1px solid var(--border); color: var(--teal-dark); background: transparent; font-size: 11px; font-weight: 700; }

.pipeline-panel, .progress-panel { min-height: 220px; }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 9px; padding: 0 21px 22px; }
.pipeline-stage { min-width: 0; padding: 11px 10px; border-radius: 8px; background: #f7f8f8; }
.pipeline-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 10px; }
.pipeline-stage-head span:first-child { overflow: hidden; color: #7a8688; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.pipeline-stage-head span:last-child { color: #a4adaf; font-size: 10px; }
.pipeline-amount { display: block; color: var(--ink); font-family: Manrope, sans-serif; font-size: 13px; }
.pipeline-stage small { display: block; margin-top: 4px; color: #98a2a4; font-size: 9px; }
.pipeline-stage.active { background: #eef9f7; }
.pipeline-stage.active .pipeline-stage-head span:first-child { color: var(--teal-dark); }
.pipeline-stage.active .pipeline-amount { color: var(--teal-dark); }
.finance-total { display: flex; align-items: baseline; gap: 9px; padding: 2px 21px 17px; }
.finance-total strong { font-family: Manrope, sans-serif; font-size: 24px; letter-spacing: -.6px; }
.finance-total span { color: var(--muted); font-size: 10px; }
.progress-bar { height: 9px; margin: 0 21px; overflow: hidden; border-radius: 5px; background: #e9eeee; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.progress-legend { display: grid; gap: 8px; padding: 15px 21px 12px; color: var(--muted); font-size: 10px; }
.progress-legend span { display: flex; align-items: center; gap: 6px; }
.progress-legend strong { margin-left: auto; color: #5d6a6d; font-size: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; }.dot.teal { background: var(--teal); }.dot.light { background: #dfe7e6; }
.finance-note { display: flex; align-items: center; gap: 7px; margin: 0 21px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }.finance-note strong { color: var(--teal-dark); }.note-icon { color: var(--teal); font-size: 14px; }
.view-host { display: grid; gap: 18px; }
.workspace-view { display: grid; gap: 18px; }
.view-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.view-toolbar h2 { font-family: Manrope, sans-serif; font-size: 23px; letter-spacing: -.4px; }
.view-toolbar p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.view-actions { display: flex; gap: 9px; }
.view-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.view-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.view-card h3 { margin: 0 0 5px; font-family: Manrope, sans-serif; font-size: 14px; }
.view-card p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.view-list { display: grid; gap: 0; }
.view-list-row { display: flex; align-items: center; gap: 13px; min-height: 61px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.view-list-row:last-child { border-bottom: 0; }
.view-list-main { min-width: 0; flex: 1; }.view-list-main strong { display: block; color: var(--ink); font-size: 12px; }.view-list-main span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.view-number { font-family: Manrope, sans-serif; font-size: 17px; }.view-muted { color: var(--muted); font-size: 10px; }
.calendar-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }.calendar-list { display: grid; gap: 10px; }.calendar-event { display: grid; grid-template-columns: 68px 8px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }.calendar-event time { color: var(--muted); font-size: 11px; }.calendar-event strong { display: block; font-size: 12px; }.calendar-event span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.event-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }.event-dot.orange { background: var(--orange); }.event-dot.purple { background: var(--purple); }
.calculator-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.calculator-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px; border-radius: 9px; background: var(--teal-soft); }.calculator-result strong { color: var(--teal-dark); font-family: Manrope, sans-serif; font-size: 24px; }.calculator-result span { color: var(--teal-dark); font-size: 11px; }.mini-field { display: grid; gap: 6px; }.mini-field label { color: #687579; font-size: 11px; font-weight: 600; }.mini-field input, .mini-field select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--ink); outline-color: var(--teal); font-size: 12px; }
.calculator-check { display: flex; align-items: center; gap: 7px; align-self: end; min-height: 38px; color: #687579; font-size: 11px; }.calculator-check input { accent-color: var(--teal); width: 16px; height: 16px; }.calculator-breakdown { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 21px 18px; }.calculator-breakdown > div { display: grid; gap: 4px; padding: 10px; border-radius: 7px; background: #f7f9f9; }.calculator-breakdown span { color: var(--muted); font-size: 9px; }.calculator-breakdown strong { color: #516164; font-size: 11px; }
.editor-workspace { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; padding: 0 21px 21px; }.module-palette { display: grid; align-content: start; gap: 7px; }.palette-label { color: #a0aaac; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }.palette-module { display: flex; align-items: center; gap: 8px; min-height: 51px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); background: #fff; text-align: left; }.palette-module:hover { border-color: #aad9d2; background: #f2fbf9; }.palette-module > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; flex: 1; }.palette-module strong { font-size: 11px; }.palette-module small { color: var(--muted); font-size: 9px; }.palette-module b { color: var(--teal-dark); font-size: 16px; font-weight: 500; }.palette-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--teal-dark); background: var(--teal-soft); font-size: 16px; }.cabinet-stage { min-width: 0; }.cabinet-stage-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #718084; font-size: 10px; }.cabinet-stage-toolbar strong { color: var(--ink); font-size: 11px; }.cabinet-canvas { position: relative; min-height: 300px; padding: 26px 20px 21px; border: 1px solid #d5dfdf; border-radius: 9px; background: linear-gradient(180deg, #f5f8f7 0%, #eaf0ef 100%); transition: .18s ease; }.cabinet-canvas.drag-over { border-color: var(--teal); background: #e6f7f3; box-shadow: inset 0 0 0 2px rgba(14,138,126,.12); }.cabinet-topline, .cabinet-bottomline { position: absolute; right: 20px; left: 20px; height: 7px; border-radius: 3px; background: #b9c7c5; box-shadow: 0 2px 0 rgba(74,95,96,.16); }.cabinet-topline { top: 13px; }.cabinet-bottomline { bottom: 10px; }.cabinet-modules { display: flex; align-items: stretch; min-height: 240px; overflow: hidden; border: 2px solid #9eafad; border-radius: 5px; background: #d7e0de; box-shadow: 0 8px 20px rgba(39,65,65,.1); }.cabinet-module { position: relative; display: grid; grid-template-rows: auto 1fr auto; min-width: 88px; flex: 1 1 0; gap: 8px; padding: 12px 9px 9px; border-right: 2px solid #a8b9b6; color: #526267; background: rgba(249,252,251,.72); cursor: grab; transition: .16s ease; }.cabinet-module:last-child { border-right: 0; }.cabinet-module:hover { background: #fff; }.cabinet-module.dragging { opacity: .42; }.module-label { overflow: hidden; color: #55676a; font-size: 10px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }.cabinet-module small { overflow: hidden; color: #8b9899; font-size: 9px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }.module-remove { position: absolute; z-index: 1; top: 4px; right: 4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #9b6a6b; background: rgba(251,232,231,.8); opacity: 0; font-size: 14px; line-height: 1; }.cabinet-module:hover .module-remove, .module-remove:focus { opacity: 1; }.module-visual { display: grid; align-content: center; gap: 15px; min-height: 135px; padding: 16px 9px; border: 1px solid #b8c9c6; border-radius: 4px; background: #eef4f2; }.module-shelves .module-visual i, .module-mixed .module-visual i { display: block; height: 3px; border-radius: 2px; background: #8daaa5; box-shadow: 0 1px 0 #cbd8d5; }.module-drawers .module-visual i { display: block; height: 26px; border: 1px solid #9eb4b0; border-radius: 3px; background: #d8e5e1; box-shadow: inset 0 -4px 0 #c2d4cf; }.module-rail .module-visual { position: relative; display: block; }.module-rail .module-visual b { position: absolute; top: 33px; right: 14px; left: 14px; height: 4px; border-radius: 2px; background: #7d9792; }.module-rail .module-visual em { position: absolute; top: 37px; left: 50%; width: 2px; height: 70px; background: #a4b5b1; }.module-mixed .module-visual b { display: block; height: 26px; border: 1px solid #9eb4b0; border-radius: 3px; background: #d8e5e1; }.module-empty .module-visual { border-style: dashed; background: rgba(255,255,255,.3); }.editor-hint { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.editor-label-gap { margin-top: 9px; }.section-count-control { display: grid; grid-template-columns: 32px 1fr 32px; gap: 5px; align-items: center; }.section-count-control button { display: grid; place-items: center; height: 34px; border: 1px solid var(--border); border-radius: 7px; color: var(--teal-dark); background: #fff; font-size: 17px; }.section-count-control input { width: 100%; height: 34px; padding: 5px; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); background: #fff; text-align: center; font-size: 12px; }.module-palette > .secondary-button { width: 100%; margin-top: 5px; }.cabinet-module.selected { z-index: 1; background: #fff; box-shadow: inset 0 0 0 2px var(--teal), 0 4px 12px rgba(14,138,126,.12); }.module-shoe .module-visual { display: grid; align-content: end; gap: 12px; }.module-shoe .module-visual i { display: block; height: 4px; border-radius: 2px; background: #8daaa5; transform: skewY(-10deg); }.section-editor { margin-top: 13px; padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }.section-editor-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; color: var(--ink); font-size: 11px; }.section-editor-head span { color: var(--muted); font-size: 10px; }.section-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.section-editor-grid .mini-field { gap: 5px; }.section-editor-grid .mini-field label { font-size: 10px; }
.bar-chart { display: grid; gap: 15px; }.bar-row { display: grid; grid-template-columns: 110px 1fr 75px; align-items: center; gap: 10px; color: #6c797c; font-size: 10px; }.bar-track { height: 10px; overflow: hidden; border-radius: 5px; background: #edf1f0; }.bar-track span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }.bar-row strong { color: var(--ink); text-align: right; font-size: 11px; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(21, 35, 38, .36); backdrop-filter: blur(3px); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(17, 31, 34, .22); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 25px 27px 18px; border-bottom: 1px solid var(--border); }.modal-eyebrow { color: var(--teal-dark); font-size: 9px; font-weight: 700; letter-spacing: .1em; }.modal-header h2 { margin-top: 5px; font-family: Manrope, sans-serif; font-size: 21px; }.close-button { background: transparent; color: #9ba5a7; font-size: 24px; line-height: 1; }
.modal-form { display: grid; gap: 15px; padding: 22px 27px 27px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.form-field { display: grid; gap: 6px; }.form-field.full { grid-column: 1 / -1; }.form-field label { color: #687579; font-size: 11px; font-weight: 600; }.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: 7px; outline-color: var(--teal); color: var(--ink); background: #fff; font-size: 12px; }.form-field textarea { min-height: 72px; resize: vertical; }.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; padding-top: 17px; border-top: 1px solid var(--border); }.modal-order { padding: 25px 27px 27px; }.order-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }.order-detail-title { display: flex; gap: 12px; }.order-detail-title .order-thumb { width: 46px; height: 46px; font-size: 20px; }.order-detail-title h3 { margin: 2px 0 4px; font-family: Manrope, sans-serif; font-size: 18px; }.order-detail-title p { color: var(--muted); font-size: 11px; }.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 0; }.detail-stat { display: grid; gap: 4px; padding: 11px; border-radius: 8px; background: #f7f9f9; }.detail-stat span { color: var(--muted); font-size: 10px; }.detail-stat strong { color: var(--ink); font-size: 12px; }.detail-section { padding-top: 17px; border-top: 1px solid var(--border); }.detail-section h4 { margin: 0 0 11px; color: #667377; font-size: 11px; }.detail-timeline { display: grid; gap: 12px; }.timeline-item { display: flex; align-items: flex-start; gap: 10px; }.timeline-dot { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }.timeline-copy { display: grid; gap: 3px; }.timeline-copy strong { color: #536164; font-size: 11px; }.timeline-copy span { color: var(--muted); font-size: 10px; }.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid #b9e1da; border-radius: 9px; color: #14685f; background: #f0fbf9; box-shadow: var(--shadow); font-size: 12px; transform: translateY(12px); opacity: 0; transition: .2s ease; }.toast.show { transform: translateY(0); opacity: 1; }.toast-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--teal); font-size: 11px; }
.mobile-nav { display: none; }
.telegram-app { padding-bottom: env(safe-area-inset-bottom); }
.telegram-app .topbar { padding-top: env(safe-area-inset-top); height: calc(72px + env(safe-area-inset-top)); }
.telegram-app .content-wrap { padding-bottom: calc(45px + env(safe-area-inset-bottom)); }
.telegram-app .modal-backdrop { padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

@media (max-width: 1180px) { .content-wrap { padding-inline: 26px; }.topbar { padding-inline: 26px; }.dashboard-grid { grid-template-columns: 1fr; }.agenda-panel { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }.agenda-panel .panel-header { grid-column: 1 / -1; }.agenda-date { margin-top: 0; }.agenda-date.tomorrow { margin-top: 0; }.agenda-panel .full-width-button { grid-column: 1 / -1; }.bottom-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .sidebar { position: fixed; z-index: 25; top: 0; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 10px 0 30px rgba(17,31,34,.1); }.sidebar.open { transform: translateX(0); }.mobile-menu-button { display: block; }.topbar { padding-inline: 18px; }.breadcrumbs { flex: 1; }.global-search { width: 210px; }.content-wrap { padding: 28px 18px 90px; }.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.page-heading { align-items: flex-start; flex-direction: column; }.heading-actions { width: 100%; justify-content: flex-end; } .mobile-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: 64px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }.mobile-nav button { display: grid; place-items: center; gap: 2px; color: #8a9698; background: transparent; font-size: 9px; }.mobile-nav button span { font-size: 17px; line-height: 1; }.mobile-nav button.active { color: var(--teal-dark); font-weight: 700; } }
@media (max-width: 600px) { .topbar { height: 62px; }.topbar-actions { gap: 5px; }.global-search { flex: 1; width: auto; }.global-search kbd { display: none; }.icon-button { display: none; }.content-wrap { padding-top: 23px; }.heading-actions { justify-content: stretch; }.heading-actions > * { flex: 1; }.secondary-button, .primary-button { justify-content: center; width: 100%; }.new-menu { left: 0; right: auto; width: min(270px, calc(100vw - 36px)); }.metric-card { min-height: 118px; padding: 14px; }.metric-value { margin: 11px 0; font-size: 20px; }.metric-card:nth-child(3) .metric-value { font-size: 17px; }.metric-foot { display: grid; gap: 2px; }.agenda-panel { display: block; }.agenda-date.tomorrow { margin-top: 13px; }.pipeline { overflow-x: auto; grid-template-columns: repeat(5, 128px); padding-bottom: 18px; }.panel-header { padding-inline: 16px; }.table-toolbar { padding-inline: 16px; }.orders-table th, .orders-table td { padding-inline: 16px; }.table-tabs { gap: 12px; }.select-button { font-size: 10px; padding-inline: 9px; }.form-grid, .detail-grid, .view-grid, .calculator-form, .calendar-layout { grid-template-columns: 1fr; }.calculator-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 16px; }.editor-workspace { grid-template-columns: 1fr; padding-inline: 16px; }.cabinet-stage-toolbar { display: grid; gap: 5px; }.cabinet-canvas { min-height: 240px; padding-inline: 10px; }.cabinet-modules { min-height: 190px; overflow-x: auto; }.cabinet-module { min-width: 84px; }.form-field.full { grid-column: auto; }.modal-header, .modal-form, .modal-order { padding-inline: 19px; }.view-toolbar { align-items: stretch; flex-direction: column; }.view-actions { width: 100%; }.view-actions > * { flex: 1; justify-content: center; }.bar-row { grid-template-columns: 90px 1fr 64px; }.calendar-event { grid-template-columns: 50px 8px 1fr; }.calendar-event .status { grid-column: 3; justify-self: start; } }
@media (max-width: 600px) { .section-editor-grid { grid-template-columns: 1fr 1fr; }.section-editor-grid .mini-field:first-child { grid-column: 1 / -1; }.module-palette > .secondary-button { width: 100%; } }
.base-palette-module { border-color: #aec4d8; background: #f7fbfe; }.admin-module-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.5fr); gap: 18px; }.base-module-catalog, .base-module-detail { min-width: 0; }.base-module-list { display: grid; gap: 7px; padding: 0 21px 21px; }.base-module-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; align-items: center; gap: 9px; min-height: 58px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); background: #fff; text-align: left; }.base-module-card:hover, .base-module-card.active { border-color: #8ab5d4; background: #f1f8fc; }.base-module-card-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: #315b83; background: #e4f1f9; font-size: 16px; }.base-module-card strong, .base-module-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.base-module-card strong { font-size: 11px; }.base-module-card small { margin-top: 4px; color: var(--muted); font-size: 9px; }.base-module-card b { color: #6b8497; font-size: 18px; font-weight: 400; }.base-module-detail-body { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(320px, 1.25fr); gap: 20px; padding: 0 21px 21px; }.base-module-form { display: grid; align-content: start; gap: 12px; }.base-module-form .mini-field.full { grid-column: 1 / -1; }.base-module-form textarea { min-height: 90px; padding: 10px; border: 1px solid var(--border); border-radius: 7px; outline-color: #4b83a5; color: var(--ink); font: inherit; font-size: 12px; resize: vertical; }.base-module-preview { min-width: 0; padding: 13px; border: 1px solid #b4c6d4; border-radius: 8px; background: #f8fbfd; }.base-preview-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: #315b83; font-size: 10px; }.base-preview-toolbar strong { font-size: 12px; }.base-side-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }.base-side-tabs button { padding: 6px 9px; border: 1px solid #b4c6d4; border-radius: 5px; color: #58758c; background: #fff; font-size: 9px; }.base-side-tabs button.active { border-color: #4b83a5; color: #fff; background: #4b83a5; }.base-preview-viewport { position: relative; min-height: 320px; padding: 34px 28px 30px; overflow: hidden; border: 1px solid #a9bdcd; background-color: #fff; background-image: linear-gradient(rgba(89,128,163,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(89,128,163,.08) 1px, transparent 1px); background-size: 18px 18px; }.base-preview-dimension { position: absolute; right: 28px; left: 28px; color: #315b83; font-size: 9px; font-weight: 700; text-align: center; }.base-preview-dimension::before, .base-preview-dimension::after { display: inline-block; width: 28%; height: 1px; margin: 0 8px 3px; background: #6a8ca8; content: ""; }.base-preview-dimension.top { top: 10px; }.base-preview-dimension.bottom { bottom: 9px; }.base-preview-front { display: flex; height: 250px; border: 2px solid #416b8b; background: rgba(255,255,255,.66); }.base-preview-height { display: flex; align-items: center; width: 34px; color: #315b83; writing-mode: vertical-rl; font-size: 9px; font-weight: 700; transform: rotate(180deg); }.base-preview-stack { display: flex; flex: 1; flex-direction: column-reverse; overflow: hidden; border-left: 1px solid #6a8ca8; }.base-preview-block { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; border-bottom: 1px solid #6a8ca8; color: #315b83; background: rgba(235,245,251,.74); font-size: 9px; text-align: center; }.base-preview-block strong, .base-preview-block span { display: block; }.base-preview-block span { color: #58758c; font-size: 8px; }.base-preview-back { display: grid; place-items: center; height: 100%; color: #6a8295; font-size: 10px; }.base-preview-top { display: grid; place-items: center; height: 180px; border: 2px solid #416b8b; color: #315b83; background: rgba(235,245,251,.55); font-size: 10px; }.base-preview-top i { display: block; width: 80%; height: 1px; background: #6a8ca8; }.base-preview-top strong { font-size: 9px; }.base-preview-side { display: flex; height: 250px; border: 2px solid #416b8b; background: rgba(235,245,251,.55); }.base-preview-side-shape { display: grid; place-items: center; flex: 1; color: #315b83; font-size: 10px; }.base-preview-side-shape i { width: 70%; height: 70%; border: 1px dashed #6a8ca8; }.base-module-info { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #c6d5df; color: #315b83; font-size: 9px; }.base-module-info span { color: #58758c; line-height: 1.5; }
@media (max-width: 900px) { .admin-module-layout, .base-module-detail-body { grid-template-columns: 1fr; } }
.section-cabinet { min-width: 150px; grid-template-rows: auto 1fr auto; padding: 10px 7px 8px; cursor: grab; }.section-cabinet .module-label { font-size: 9px; }.section-cabinet > small { font-size: 8px; }.section-visual { display: flex; flex-direction: column-reverse; justify-content: flex-start; min-height: 218px; padding: 4px; overflow: hidden; border: 1px solid #a8bab6; border-radius: 4px; background: #edf4f1; }.section-fill-module, .section-free-space { position: relative; display: grid; align-content: center; justify-items: center; min-height: 24px; padding: 4px; overflow: hidden; border-bottom: 1px solid rgba(112,142,136,.45); color: #52676a; text-align: center; }.section-fill-module { cursor: grab; background: rgba(255,255,255,.78); }.section-fill-module:hover, .section-fill-module.selected { z-index: 2; background: #fff; box-shadow: inset 0 0 0 2px var(--teal); }.section-fill-module > span { font-size: 8px; font-weight: 700; }.section-fill-module > strong { font-size: 9px; }.section-fill-module > small { font-size: 8px; }.section-free-space { color: #9aa7a7; border: 1px dashed #bdcbc7; background: rgba(255,255,255,.32); }.section-free-space span { font-size: 8px; }.section-free-space strong { font-size: 9px; }.fill-visual { display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 12px; }.fill-visual i { display: block; width: 70%; height: 2px; border-radius: 2px; background: #85a49d; }.fill-visual b { color: #79908d; font-size: 8px; font-weight: 600; }.module-drawers .fill-visual { display: grid; gap: 2px; }.module-drawers .fill-visual i { width: 65%; height: 7px; border: 1px solid #98b0aa; background: #d7e5e1; }.module-mezzanine .fill-visual { color: #7f6d4f; }.module-mezzanine .fill-visual strong { font-size: 8px; }.module-rail .fill-visual { min-height: 21px; }.module-rail .fill-visual em { display: block; width: 70%; height: 3px; border-radius: 2px; background: #728f88; }.module-shoe .fill-visual i { width: 18%; height: 3px; transform: skewY(-15deg); background: #8daaa5; }.module-stack-editor { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--border); }.module-stack-head, .module-settings-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--ink); font-size: 10px; }.module-stack-head span, .module-settings-title span { color: var(--muted); font-size: 9px; }.module-stack-list { display: grid; gap: 5px; }.module-stack-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 32px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; color: #5d6b6d; background: #fff; text-align: left; }.module-stack-row span { color: var(--muted); font-size: 9px; }.module-stack-row strong { font-size: 10px; }.module-stack-row small { color: var(--muted); font-size: 9px; }.module-stack-row.active { border-color: #91d1c6; background: #effaf7; box-shadow: inset 3px 0 0 var(--teal); }.module-stack-empty { padding: 10px; border: 1px dashed #b9c9c5; border-radius: 6px; color: var(--muted); font-size: 10px; }.module-settings { display: grid; gap: 9px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border); }.section-capacity { min-height: 36px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--teal-dark); background: var(--teal-soft); font-size: 11px; }.module-split-check { min-height: 30px; }.module-delete-button { width: 100%; }
.blueprint-canvas { padding: 47px 20px 25px; border-color: #aab8c6; border-radius: 2px; background-color: #f8fbfd; background-image: linear-gradient(rgba(89,128,163,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(89,128,163,.08) 1px, transparent 1px); background-size: 20px 20px; }.blueprint-canvas .cabinet-topline, .blueprint-canvas .cabinet-bottomline { height: 3px; border-radius: 0; background: #436887; box-shadow: none; }.blueprint-canvas .cabinet-topline { top: 34px; }.blueprint-canvas .cabinet-bottomline { bottom: 14px; }.blueprint-overall-dim { position: absolute; top: 10px; right: 20px; left: 20px; display: flex; align-items: center; gap: 7px; color: #315b83; font-size: 10px; font-weight: 700; text-align: center; }.blueprint-overall-dim i { display: block; height: 1px; flex: 1; background: #315b83; }.blueprint-overall-dim i:first-child::before, .blueprint-overall-dim i:last-child::after { display: block; width: 6px; height: 6px; border-top: 1px solid #315b83; border-right: 1px solid #315b83; content: ""; }.blueprint-overall-dim i:first-child::before { float: right; transform: translateY(-3px) rotate(-135deg); }.blueprint-overall-dim i:last-child::after { transform: translateY(-3px) rotate(45deg); }.blueprint-canvas .cabinet-modules { align-items: stretch; border: 2px solid #436887; border-radius: 0; background: rgba(255,255,255,.68); box-shadow: none; }.blueprint-canvas .cabinet-module { border-right: 1px solid #436887; border-radius: 0; background: rgba(255,255,255,.56); }.blueprint-canvas .cabinet-module:last-child { border-right: 0; }.blueprint-canvas .cabinet-module.selected { background: rgba(220,237,250,.65); box-shadow: inset 0 0 0 2px #2b6ea3; }.section-width-dim { display: flex; align-items: center; gap: 4px; min-height: 16px; color: #315b83; font-size: 9px; font-weight: 700; }.section-width-dim i { display: block; height: 1px; flex: 1; background: #5b83a5; }.section-frame { position: relative; display: flex; min-height: 0; }.section-side-dim { display: flex; align-items: center; width: 22px; color: #315b83; writing-mode: vertical-rl; font-size: 8px; font-weight: 700; transform: rotate(180deg); }.blueprint-canvas .section-visual { flex: 1; min-height: 218px; border-color: #507899; border-radius: 0; background: rgba(255,255,255,.55); }.blueprint-canvas .section-fill-module { border-bottom-color: #7595af; color: #254f73; background: rgba(236,245,251,.7); }.blueprint-canvas .section-fill-module:hover, .blueprint-canvas .section-fill-module.selected { box-shadow: inset 0 0 0 2px #2b6ea3; background: #e4f1f9; }.blueprint-canvas .section-free-space { color: #6b8497; border-color: #8ca6ba; background: rgba(247,251,253,.74); }.blueprint-canvas .fill-visual i { background: #4c789b; }.blueprint-canvas .fill-visual b { color: #315b83; }.blueprint-canvas .module-drawers .fill-visual i { border-color: #5e86a4; background: #d6e6f0; }.blueprint-canvas .module-mezzanine .fill-visual { color: #315b83; }.blueprint-canvas .module-rail .fill-visual em { background: #315b83; }
