@font-face {
  font-family: Ubuntu;
  src: url("/fonts/Ubuntu-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Ubuntu;
  src: url("/fonts/Ubuntu-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: Ubuntu, Arial, sans-serif;
  color: #24392f;
  background: #f5f6f2;
  font-synthesis: none;
  font-size: 14px;
  --green: #245644;
  --deep: #173e32;
  --muted: #7c867e;
  --line: #e5e9e2;
  --cream: #f5f6f2;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b2c9a9;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9e0d7;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: #24392f;
  min-height: 42px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--green);
}
input[type="file"] {
  font-size: 13px;
  padding: 9px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 10px;
}
h2 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
p {
  line-height: 1.6;
  margin-bottom: 15px;
}
small {
  font-size: 12px;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px !important;
}
.green {
  color: #357b53;
}
.amber {
  color: #a96728;
}
.nowrap {
  white-space: nowrap;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.spacing {
  margin-top: 24px;
}
.full {
  width: 100%;
  justify-content: center;
}
.initial-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  color: var(--green);
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  justify-content: center;
}
.button.primary {
  background: var(--green);
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: #163e2d;
}
.button.secondary {
  border-color: #d7dfd5;
  color: #2c5141;
  background: #fff;
}
.button.secondary:hover {
  background: #f0f4ed;
}
.button.ghost {
  background: none;
  color: #6c7c70;
  padding: 9px 12px;
}
.button.small {
  min-height: 34px;
  padding: 7px 10px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
}
.icon-button:hover {
  background: #e8eee6;
  color: var(--green);
}
.button-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.back-link {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #708273;
  background: none;
  border: 0;
  padding: 0 0 16px;
  font-size: 12px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #7c8b74;
  margin-bottom: 13px;
}
.eyebrow.light {
  color: #b8c8ac;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #f4f3e8;
  font-size: 24px;
  letter-spacing: -0.7px;
  font-weight: 700;
}
.brand-sub {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 400;
  color: #b0c1af;
  margin-top: 6px;
}
.brand-button {
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  padding: 55px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #1c4536;
  color: #fbfbf1;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  position: absolute;
  border: 1px solid #4d6a51;
  opacity: 0.25;
  width: 550px;
  height: 550px;
  right: -290px;
  bottom: -180px;
  border-radius: 50%;
  box-shadow:
    0 0 0 70px #244c3a,
    0 0 0 71px #4d6a51;
  pointer-events: none;
}
.auth-story h1 {
  font-size: 45px;
  letter-spacing: -1.5px;
  line-height: 1.2;
}
.auth-story p {
  color: #c0ceb9;
  font-size: 16px;
  line-height: 1.8;
  margin-top: 25px;
}
.auth-story > small {
  color: #a0b39b;
  position: relative;
  z-index: 1;
}
.auth-side {
  display: grid;
  place-items: center;
  padding: 50px;
  background: #fafbf7;
}
.auth-card {
  max-width: 370px;
  width: 100%;
}
.auth-card h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin: 17px 0 10px;
}
.auth-card > p {
  margin-bottom: 26px;
}
.auth-icon {
  width: 55px;
  height: 55px;
  border: 1px solid #e0e7d9;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #f2f5ec;
}
.auth-card .button {
  margin-top: 25px;
}
.auth-foot {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #899482;
  margin-top: 25px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  background: #183d31;
  color: #c7d3c3;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  padding: 35px 24px 24px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.salon-name {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #49614d;
  border-radius: 6px;
  padding: 11px 12px;
  margin: 30px 0 31px;
  font-size: 12px;
}
.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9db78c;
  flex-shrink: 0;
}
.nav-caption {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #809a82;
  margin: 0 0 16px 10px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar nav button {
  color: #b9cab5;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  text-align: left;
  border-radius: 6px;
  min-height: 46px;
  font-size: 13px;
}
.sidebar nav button.active {
  background: #315440;
  color: #fff;
}
.sidebar nav button:hover {
  background: #2a503d;
}
.nav-plus {
  margin-left: auto;
  opacity: 0.6;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 10px;
  border-top: 1px solid #3b5640;
  padding-top: 22px;
  align-items: center;
}
.sidebar-bottom strong {
  display: block;
  font-size: 11px;
  color: #e7ecdf;
  max-width: 111px;
  overflow-wrap: anywhere;
}
.sidebar-bottom small {
  display: block;
  font-size: 9px;
  color: #90a98e;
  margin-top: 4px;
}
.sidebar-bottom .icon-button {
  margin-left: auto;
}
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #425f41;
  color: #e8ecdc;
  font-weight: 700;
  flex-shrink: 0;
}
.workspace-main {
  width: calc(100% - 238px);
  margin-left: 238px;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-date {
  color: #8a9487;
  font-size: 11px;
}
main {
  max-width: 1700px;
  margin: auto;
  padding: 38px 40px 55px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.page-heading > div > p {
  color: #82907f;
  font-size: 13px;
  margin: 0;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
}
.page-heading > .button {
  align-self: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 111px;
}
.stat span {
  display: block;
  font-size: 11px;
  color: #8a9585;
  margin-bottom: 12px;
}
.stat strong {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.7px;
  display: block;
}
.stat small {
  color: #7e9377;
  display: block;
  margin-top: 8px;
}
.stat-icon {
  background: #f3f5ee;
  color: #809771;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.stat-icon svg {
  width: 21px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.padded {
  padding: 26px;
}
.panel-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.panel-toolbar > select {
  max-width: 185px;
  min-height: 39px;
  font-size: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #dde4d8;
  border-radius: 7px;
  padding-left: 12px;
  gap: 7px;
  flex: 1;
  max-width: 600px;
  color: #8c9985;
}
.search-box input {
  border: 0;
  min-height: 39px;
  font-size: 12px;
  background: transparent;
  outline: none;
}
.search-box button {
  border: 0;
  border-left: 1px solid var(--line);
  font-size: 11px;
  color: #55714d;
  background: none;
  padding: 9px 12px;
  margin-right: 3px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1px;
  color: #8a9683;
  background: #fafbf7;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid #edf0e8;
  vertical-align: middle;
}
td > span,
td > small {
  display: block;
}
td small {
  color: #96a18e;
  font-size: 10px;
  margin-top: 5px;
}
td strong {
  font-size: 12px;
}
.order-number {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #2e6146;
}
.orders-table tbody tr {
  cursor: pointer;
}
.orders-table tbody tr:hover {
  background: #fafcf7;
}
.orders-table tr:last-child td {
  border-bottom: 0;
}
.model-cell {
  max-width: 250px;
  min-width: 150px;
  line-height: 1.6;
}
.model-cell > span {
  font-size: 11px;
}
.badge {
  display: inline-flex !important;
  border-radius: 5px;
  padding: 5px 8px;
  background: #f1f2ed;
  color: #7e8775;
  font-size: 9px;
  white-space: nowrap;
  font-weight: 400;
  line-height: 1.3;
}
.badge-documented {
  background: #f2eddf;
  color: #9a8255;
}
.badge-confirmed {
  background: #e8f1e5;
  color: #5e8555;
}
.badge-fulfilled {
  background: #e2efe9;
  color: #39775d;
}
.badge-cancelled {
  background: #f7e9e6;
  color: #a16a5a;
}
.progress {
  width: 75px;
  height: 3px;
  background: #edf1e9;
  border-radius: 5px;
  margin-top: 7px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: #739564;
  border-radius: 5px;
}
.table-footer {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  color: #97a18f;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-footer > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.page-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa38f;
  font-size: 10px;
  margin-top: 22px;
}
.empty {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: #83927a;
}
.empty h2 {
  color: #405640;
  font-size: 20px;
  margin: 20px 0 12px;
}
.empty p {
  font-size: 13px;
  max-width: 420px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  background: #f3f6ec;
  border-radius: 18px;
  color: #879d75;
}
.empty .button {
  margin-top: 7px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  color: #5c7058;
}
.field small {
  color: #99a18e;
  font-size: 10px;
}
.field.wide {
  grid-column: 1/-1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 17px;
}
.form-grid.single {
  grid-template-columns: 1fr;
}
.form-grid.single .wide {
  grid-column: auto;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.filter-row {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.filter-row .field {
  flex: 1;
}
.error {
  border: 1px solid #e8c9be;
  background: #fff6f0;
  border-radius: 7px;
  padding: 13px 16px;
  color: #994f37;
  font-size: 12px;
  line-height: 1.5;
  margin: 15px 0;
  white-space: pre-wrap;
}
.notice {
  padding: 14px 16px;
  border: 1px solid #e9dfc4;
  background: #fbf8ed;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: #8c7954;
}
.success {
  padding: 14px;
  background: #edf5e9;
  border-radius: 7px;
  color: #5e7d4d;
  font-size: 12px;
}
.success p {
  margin: 8px 0 0;
}
.mutating {
  font-size: 12px;
  color: #7b9371;
  margin-top: 14px;
}
.loading {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #84947a;
}
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #e3eadc;
  border-top-color: #56764c;
  display: block;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.steps {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 25px;
  color: #a5af9b;
}
.steps button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #91a086;
  font-size: 12px;
  padding: 0;
}
.steps button span {
  background: #e8ece0;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-content: center;
  font-size: 10px;
}
.steps button.current {
  color: #315a3e;
  font-weight: 700;
}
.steps button.current span {
  background: #345e42;
  color: #fff;
}
.price-date {
  padding: 8px 12px;
  background: #eaf0e3;
  border: 1px solid #dfe7d6;
  border-radius: 5px;
  font-size: 10px;
  color: #6b845b;
  white-space: nowrap;
}
.composer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
}
.section-heading h2 {
  margin: 0 0 5px;
}
.section-heading p {
  font-size: 11px;
  color: #899a7f;
  margin: 0;
}
.section-icon {
  width: 44px;
  height: 44px;
  background: #f1f5e9;
  border-radius: 11px;
  color: #6d8b58;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.section-heading .section-icon {
  margin: 0;
}
.modules-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 12px;
}
.modules-title h3 {
  margin: 0;
}
.modules-title span {
  font-size: 10px;
  color: #8c9a80;
}
.module-list {
  max-height: 365px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.module-row {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.module-row:last-child {
  border: 0;
}
.module-row.chosen {
  background: #f4f8ed;
}
.module-row > label {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  cursor: pointer;
}
.module-row strong {
  font-size: 12px;
  display: block;
  font-weight: 400;
}
.module-row small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
  color: #92a083;
}
.module-row > input {
  width: 65px;
  min-height: 34px;
  padding: 5px 7px;
  text-align: center;
}
.section-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
}
.select-model-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a0ad91;
  padding: 65px 15px 30px;
  text-align: center;
}
.select-model-note p {
  font-size: 12px;
  margin: 16px 0;
}
.basket {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
  position: sticky;
  top: 25px;
}
.live-quote {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.live-quote h3 {
  margin: 12px 0 10px;
}
.live-quote-total {
  display: block;
  font-size: 26px;
  color: var(--green, #426b36);
}
.live-quote p {
  font-size: 11px;
  line-height: 1.6;
  color: #75856d;
  margin-bottom: 0;
}
.live-quote-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 11px;
}
.live-quote-breakdown > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.mobile-live-quote {
  display: none;
}
.button.danger {
  background: #fff2ef;
  color: #a53426;
  border: 1px solid #edc7bf;
}
.button.danger:hover {
  background: #fbe1da;
}
.trash-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.trash-order p {
  margin-bottom: 0;
  color: #75856d;
  font-size: 12px;
}
.basket-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.basket-heading h2 {
  font-size: 17px;
  margin: 0;
}
.basket-heading > span {
  font-size: 11px;
  color: #789168;
  background: #edf3e5;
  min-width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-content: center;
}
.basket-empty {
  padding: 55px 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: #a5b19a;
  text-align: center;
}
.basket-empty p {
  font-size: 12px;
  margin: 15px 0 0;
  line-height: 1.8;
}
.basket-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.basket-item-heading {
  display: flex;
  align-items: start;
  gap: 5px;
  justify-content: space-between;
}
.basket-item-heading strong {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.basket-item .icon-button {
  margin-right: -9px;
  margin-top: -4px;
  color: #97a48c;
}
.basket-item > small {
  display: block;
  color: #96a18c;
  font-size: 10px;
  line-height: 1.7;
  margin: 7px 0;
}
.basket-item > div:last-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
}
.discount-tag {
  font-size: 9px;
  color: #7b945f;
  background: #f0f5e7;
  padding: 3px 5px;
  border-radius: 3px;
}
.basket-totals {
  padding: 20px 0;
}
.basket-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 11px;
  color: #8a987f;
}
.basket-totals .basket-total {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 18px;
  margin-bottom: 0;
  color: #3f623e;
  font-size: 14px;
}
.basket-total strong {
  font-size: 21px;
  letter-spacing: -0.6px;
}
.basket-note {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 20px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  color: #a0aa92;
  font-size: 10px;
  line-height: 1.6;
}
.segmented {
  display: flex;
  gap: 4px;
  background: #f3f5ef;
  padding: 4px;
  border-radius: 7px;
  margin: 21px 0 24px;
}
.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 11px;
  color: #8d9a80;
}
.segmented button.selected {
  background: #fff;
  box-shadow: 0 1px 5px #24461c0c;
  color: #436a3c;
  font-weight: 700;
}
.details {
  margin-top: 20px;
  color: #6c845d;
  font-size: 12px;
}
.details summary {
  cursor: pointer;
  padding: 10px 0;
}
.details .form-grid {
  margin: 15px 0;
}
.title-with-badge {
  display: flex;
  gap: 15px;
  align-items: center;
}
.title-with-badge h1 {
  margin-bottom: 8px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.section-title h2 {
  margin-bottom: 0;
}
.section-title p {
  margin: 6px 0 0;
}
.detail-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.detail-item > div:nth-child(2) {
  flex: 1;
}
.item-number {
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #9aaa8a;
}
.detail-item h3 {
  font-size: 13px;
  margin-bottom: 8px;
}
.detail-item p {
  font-size: 11px;
  color: #8e9b81;
  line-height: 1.7;
  margin: 0 0 5px;
}
.detail-item small {
  font-size: 10px;
  color: #8e9b81;
}
.detail-item > strong {
  font-size: 13px;
}
.item-meta {
  display: flex;
  gap: 12px;
  font-size: 9px;
  color: #9eaa91;
  margin-top: 10px;
}
.section-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 22px;
  align-items: center;
}
.section-bottom span {
  font-size: 9px;
  color: #a1ac96;
}
.section-bottom strong {
  font-size: 15px;
}
.customer-heading {
  margin: 15px 0;
  font-size: 21px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
dl {
  margin: 24px 0;
}
dt {
  font-size: 10px;
  color: #9ba88d;
  margin: 18px 0 7px;
}
dd {
  font-size: 12px;
  margin: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.status-control {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 20px;
}
.inline-empty {
  display: flex;
  gap: 13px;
  color: #a5b096;
  align-items: center;
  padding: 32px 0;
  font-size: 12px;
}
.voided {
  opacity: 0.6;
}
.voided strong {
  text-decoration: line-through;
}
.timeline {
  margin-top: 24px;
}
.timeline-item {
  display: flex;
  position: relative;
  gap: 14px;
  padding-bottom: 25px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 1px;
  background: #e1e8d9;
  left: 4px;
  top: 11px;
  bottom: 0;
}
.timeline-item:last-child:before {
  display: none;
}
.timeline-dot {
  width: 9px;
  height: 9px;
  border: 2px solid #b0c397;
  background: #fff;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-item strong {
  font-size: 12px;
  font-weight: 400;
}
.timeline-item small {
  display: block;
  font-size: 10px;
  color: #9da993;
  margin-top: 6px;
}
.timeline-item p {
  font-size: 11px;
  color: #799366;
  margin: 6px 0;
}
.document-list {
  margin-top: 18px;
}
.document-list > a {
  display: flex;
  gap: 10px;
  padding: 15px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #829772;
}
.document-list > a > span {
  flex: 1;
  min-width: 0;
}
.document-list strong {
  font-size: 11px;
  display: block;
  color: #576f49;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.document-list small {
  font-size: 9px;
  display: block;
  color: #a1ac94;
  margin-top: 4px;
}
.modal {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  width: 580px;
  max-width: calc(100vw - 30px);
  max-height: calc(100vh - 45px);
  box-shadow: 0 20px 80px #0e2a2133;
  overflow: auto;
  color: #24392f;
}
.modal::backdrop {
  background: #102b2380;
  backdrop-filter: blur(2px);
}
.modal-wide {
  width: 1100px;
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-heading h2 {
  margin: 0;
  font-size: 22px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 25px;
}
.pdf-frame {
  width: 100%;
  height: 65vh;
  min-height: 350px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-top: 15px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  margin: 22px 0;
}
.payment-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f5e8;
  border-radius: 7px;
  padding: 16px;
  margin: 20px 0;
  color: #6e8958;
  font-size: 12px;
}
.payment-preview strong {
  font-size: 21px;
}
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #dfe6d8;
  margin-bottom: 25px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #93a083;
  padding: 14px 17px;
  white-space: nowrap;
  font-size: 12px;
}
.tabs button.active {
  border-color: #4b7441;
  color: #416c36;
  font-weight: 700;
}
.admin-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a9c77;
  font-size: 11px;
}
.narrow-panel {
  max-width: 900px;
}
.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.admin-columns p,
.narrow-panel > p {
  font-size: 12px;
}
.catalog-list > div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 19px 0;
}
.catalog-list strong {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.catalog-list small {
  display: block;
  font-size: 9px;
  color: #a1ad92;
  margin-top: 5px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.library-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  position: relative;
  background: #fff;
  min-height: 195px;
}
.library-card:hover {
  background: #f8faf4;
}
.file-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-content: center;
  border-radius: 9px;
  background: #f0f4e8;
  color: #92a47d;
  margin-bottom: 20px;
}
.library-card h3 {
  font-size: 13px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.library-card p,
.library-card small {
  font-size: 10px;
  color: #99a58d;
  margin: 0;
}
.library-card > svg {
  position: absolute;
  right: 20px;
  top: 25px;
  color: #819b6a;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 120px);
  transform: translateX(-50%);
  background: #24513b;
  color: #f8faef;
  box-shadow: 0 8px 30px #0b281d26;
  border: 1px solid #78926b;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 8px;
  z-index: 30;
  font-size: 12px;
}
@media (min-width: 1500px) {
  main {
    padding: 45px 55px;
  }
  .topbar {
    padding: 0 55px;
  }
  .sidebar {
    width: 255px;
  }
  .workspace-main {
    width: calc(100% - 255px);
    margin-left: 255px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 30px 17px;
  }
  .sidebar .brand {
    font-size: 21px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .workspace-main {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  main {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .composer-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }
  .padded {
    padding: 21px;
  }
  .stat {
    padding: 19px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat-icon {
    display: none;
  }
  .stats {
    gap: 14px;
  }
  .basket {
    padding: 19px;
  }
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  td,
  th {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 950px) {
  .mobile-live-quote {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: #244533;
    color: white;
    padding: 14px 22px max(14px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 -3px 18px #17352524;
  }
  .mobile-live-quote span {
    font-size: 12px;
  }
  .mobile-live-quote strong {
    font-size: 19px;
    text-align: right;
  }
  body:has(.mobile-live-quote) main {
    padding-bottom: 110px;
  }
  .trash-order {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .composer-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .basket {
    position: static;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .detail-layout > aside > .spacing {
    margin-top: 0;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading > .button {
    margin-top: 15px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .stats .stat strong {
    font-size: 21px;
  }
  .page-heading .button-row {
    justify-content: flex-end;
  }
  .button-row .button {
    font-size: 11px;
    padding: 9px;
  }
  .top-date {
    display: none;
  }
  .auth-story {
    padding: 40px 9%;
  }
  .auth-story h1 {
    font-size: 34px;
  }
  .auth-story p {
    font-size: 14px;
  }
  .auth-side {
    padding: 35px;
  }
}
@media (max-width: 740px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    padding: 14px 18px 8px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar .brand-sub,
  .salon-name,
  .nav-caption,
  .sidebar-bottom > div {
    display: none;
  }
  .sidebar-bottom {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }
  .sidebar nav {
    order: 3;
    flex-direction: row;
    width: 100%;
    gap: 4px;
    justify-content: space-between;
  }
  .sidebar nav button {
    font-size: 10px;
    padding: 9px;
    gap: 6px;
    min-height: 35px;
  }
  .sidebar nav svg {
    width: 16px;
  }
  .nav-plus {
    display: none;
  }
  .workspace {
    display: block;
  }
  .workspace-main {
    width: 100%;
    margin: 0;
  }
  .topbar {
    display: none;
  }
  main {
    padding: 24px 18px 35px;
  }
  .page-heading {
    margin-bottom: 21px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .page-heading > div > p {
    font-size: 11px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 9px 11px;
    min-height: 36px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 14px 11px;
    min-height: 91px;
  }
  .stat span {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .stats .stat strong {
    font-size: 17px;
    letter-spacing: -0.6px;
  }
  .stat small {
    font-size: 8px;
  }
  .panel-toolbar {
    flex-wrap: wrap;
    padding: 14px;
    gap: 8px;
  }
  .search-box {
    flex-basis: 100%;
    max-width: none;
  }
  .panel-toolbar > select {
    max-width: none;
    flex: 1;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .filter-row .field {
    min-width: 130px;
  }
  .empty {
    padding: 30px 17px;
  }
  .empty h2 {
    font-size: 18px;
  }
  .empty p {
    font-size: 12px;
  }
  .form-grid {
    gap: 16px 12px;
  }
  .padded {
    padding: 20px 17px;
  }
  .steps {
    gap: 9px;
  }
  .steps button {
    font-size: 10px;
  }
  .steps button span {
    width: 22px;
    height: 22px;
  }
  .price-date {
    font-size: 8px;
    padding: 7px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .title-with-badge {
    flex-wrap: wrap;
    gap: 5px;
  }
  .title-with-badge h1 {
    font-size: 25px;
  }
  .page-heading .button-row {
    gap: 5px;
    max-width: 140px;
  }
  .button-row .button {
    font-size: 9px;
    min-height: 32px;
  }
  .detail-layout > aside {
    display: block;
  }
  .detail-layout > aside > .spacing {
    margin-top: 20px;
  }
  .detail-item {
    flex-wrap: wrap;
  }
  .detail-item > strong {
    margin-left: 42px;
  }
  .section-title {
    gap: 8px;
  }
  .section-title > .button {
    font-size: 10px;
    padding: 9px;
  }
  .section-bottom {
    flex-wrap: wrap;
    gap: 12px;
  }
  .section-bottom span {
    font-size: 8px;
  }
  .admin-mark {
    display: none;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    font-size: 10px;
    padding: 12px;
  }
  .library-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .library-card {
    padding: 18px;
    min-height: 190px;
  }
  .library-card h3 {
    font-size: 11px;
  }
  .modal {
    padding: 21px;
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 25px);
  }
  .modal-heading h2 {
    font-size: 19px;
  }
  .modal-actions .button {
    font-size: 11px;
  }
  .toast {
    left: 50%;
    max-width: 90vw;
    width: max-content;
    font-size: 11px;
    bottom: 15px;
  }
  .auth {
    display: block;
  }
  .auth-story {
    padding: 25px 30px;
    min-height: 145px;
  }
  .auth-story > div:nth-child(2),
  .auth-story > small {
    display: none;
  }
  .auth-story:after {
    display: none;
  }
  .auth-side {
    min-height: calc(100vh - 145px);
    padding: 35px 28px;
  }
  .auth-card {
    max-width: 410px;
  }
  .page-note {
    font-size: 9px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .button,
  .back-link {
    display: none;
  }
  main {
    padding: 0;
  }
  .workspace-main {
    margin: 0;
    width: 100%;
  }
  .panel {
    break-inside: avoid;
  }
  .modal {
    position: static;
    border: 0;
    max-width: none;
    width: 100%;
    height: auto;
  }
  .modal-heading,
  .modal-actions {
    display: none;
  }
}
.pdf-view {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 16px;
  overflow: hidden;
}
.pdf-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: #f5f6f0;
  padding: 7px;
  font-size: 12px;
}
.pdf-canvas-area {
  height: 60vh;
  overflow: auto;
  background: #d9ddd4;
  text-align: center;
  padding: 16px;
}
.pdf-canvas-area canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto !important;
  box-shadow: 0 2px 10px #0002;
}
.print-document {
  background: #d9ddd4;
  min-height: 100vh;
  padding: 25px;
}
.print-toolbar {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}
.printed-page {
  width: 210mm;
  max-width: 100%;
  margin: 0 auto 20px;
  background: white;
}
.printed-page canvas {
  width: 100%;
  display: block;
}
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  body:has(.print-document) {
    background: white;
  }
  .print-document {
    padding: 0;
    background: white;
  }
  .print-toolbar {
    display: none;
  }
  .printed-page {
    width: 210mm;
    height: 297mm;
    margin: 0;
    max-width: none;
    break-after: page;
  }
  .printed-page:last-child {
    break-after: auto;
  }
  .printed-page canvas {
    width: 210mm;
    height: 297mm;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    padding: 14px 20px 10px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .sidebar .brand {
    font-size: 23px;
  }
  .sidebar .brand-sub,
  .salon-name,
  .nav-caption,
  .sidebar-bottom > div {
    display: none;
  }
  .sidebar-bottom {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }
  .sidebar nav {
    order: 3;
    flex-direction: row;
    width: 100%;
    gap: 6px;
    justify-content: space-between;
  }
  .sidebar nav button {
    font-size: 12px;
    padding: 10px 16px;
    gap: 9px;
    min-height: 38px;
  }
  .nav-plus {
    display: none;
  }
  .workspace {
    display: block;
  }
  .workspace-main {
    width: 100%;
    margin: 0;
  }
  .topbar {
    display: none;
  }
  .panel-toolbar {
    flex-wrap: wrap;
  }
  .search-box {
    flex-basis: 100%;
    max-width: none;
  }
  .panel-toolbar > select {
    max-width: none;
    flex: 1;
  }
  .orders-table thead {
    display: none;
  }
  .orders-table tbody {
    display: block;
  }
  .orders-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    gap: 16px 24px;
  }
  .orders-table td {
    padding: 0;
    border: 0;
    display: block;
  }
  .orders-table td:first-child {
    grid-column: 1/-1;
  }
  .orders-table .model-cell {
    grid-column: 1/-1;
    max-width: none;
    min-width: 0;
  }
  .orders-table .order-number {
    font-size: 15px;
  }
  .orders-table td:first-child > span {
    font-size: 14px;
  }
  .orders-table td:nth-child(3):before,
  .orders-table td:nth-child(4):before,
  .orders-table td:nth-child(5):before,
  .orders-table td:nth-child(6):before {
    display: block;
    font-size: 10px;
    color: #8a9683;
    margin-bottom: 7px;
  }
  .orders-table td:nth-child(3):before {
    content: "Стоимость";
  }
  .orders-table td:nth-child(4):before {
    content: "Оплачено";
  }
  .orders-table td:nth-child(5):before {
    content: "Остаток";
  }
  .orders-table td:nth-child(6):before {
    content: "Статус";
  }
  .orders-table td:nth-child(7) {
    display: none;
  }
  .orders-table td strong {
    font-size: 14px;
  }
  .toast {
    left: 50%;
  }
}

/* Follow-up workspace and touch layouts. */
.nav-count { display:inline-flex; align-items:center; justify-content:center; min-width:21px; height:21px; padding:0 5px; margin-left:auto; border-radius:20px; background:#e4b88e; color:#443022; font-size:11px; }
.lead-save-row { display:flex; justify-content:flex-end; margin-bottom:20px; }
.lead-counters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.lead-counter { display:flex; align-items:center; gap:14px; padding:20px; min-height:98px; border:1px solid var(--line); border-radius:12px; background:white; color:var(--green); text-align:left; }
.lead-counter span { display:grid; gap:7px; color:#72816f; font-size:13px; }
.lead-counter strong { font-size:27px; color:var(--deep); }
.lead-counter.selected { background:#eaf2e7; border-color:#91b49a; }
.lead-counter.late strong { color:#ac532b; }
.lead-toolbar { flex-wrap:wrap; }
.lead-mine { display:flex; align-items:center; gap:9px; white-space:nowrap; min-height:44px; }
.lead-filter-note { padding:10px 24px; display:flex; justify-content:space-between; align-items:center; background:#f4f6ef; }
.lead-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding:24px; }
.lead-card { min-width:0; padding:22px; border:1px solid var(--line); border-radius:12px; display:flex; flex-direction:column; align-items:stretch; background:#fff; }
.lead-card-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; margin-bottom:18px; }
.lead-status { display:inline-flex; border-radius:20px; padding:6px 10px; font-size:12px; background:#edf2e8; color:#49683f; }
.lead-status-closed { background:#eff0ed; color:#7a8276; }
.lead-status-converted { background:#e5f1ed; color:#1c674f; }
.lead-name { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; border:0; background:none; padding:0; text-align:left; color:var(--deep); font-weight:700; font-size:20px; line-height:1.35; overflow-wrap:anywhere; }
.lead-name svg { flex-shrink:0; margin-top:4px; }
.lead-phone { display:flex; gap:8px; align-items:center; min-height:44px; color:var(--green); font-size:16px; }
.lead-models { display:grid; gap:8px; padding:12px 0; font-size:13px; line-height:1.5; }
.lead-models span { overflow-wrap:anywhere; }
.lead-models strong { font-size:18px; }
.lead-excerpt { color:#768271; font-size:13px; overflow-wrap:anywhere; white-space:pre-wrap; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.lead-next { display:flex; align-items:flex-start; gap:10px; margin-top:auto; margin-bottom:18px; padding:14px; border-radius:8px; background:#f2f6ef; color:#3f654c; }
.lead-next svg { flex-shrink:0; margin-top:2px; }
.lead-next div { display:grid; gap:6px; min-width:0; }
.lead-next strong { line-height:1.5; overflow-wrap:anywhere; }
.lead-next span { color:#768574; line-height:1.5; font-size:12px; }
.lead-next.late { background:#fff0e4; color:#934d2d; }
.lead-next.late span { color:#a56a47; }
.lead-detail-title { margin-top:14px; overflow-wrap:anywhere; }
.lead-contact-value { font-size:21px; font-weight:700; color:var(--green); }
.lead-saved-item { display:grid; gap:8px; padding:17px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.lead-saved-item small { color:#819077; }
.lead-timeline { margin-top:28px; }
.lead-timeline article { display:flex; gap:14px; padding:0 0 22px; border-left:1px solid #dfe6db; margin-left:6px; }
.lead-timeline-dot { width:11px; height:11px; flex-shrink:0; margin-left:-6px; border-radius:50%; background:#759b78; border:2px solid #fff; }
.lead-timeline article>div:last-child { min-width:0; flex:1; }
.lead-timeline small { display:block; color:#88937e; margin-top:5px; }
.lead-timeline p { margin:10px 0 0; font-size:13px; }
@media screen and (max-width:1100px) {
  .sidebar { width:100%; height:auto; position:sticky; top:0; padding:14px 20px 10px; flex-direction:row; flex-wrap:wrap; align-items:center; gap:12px; }
  .sidebar .brand { font-size:23px; }
  .sidebar .brand-sub,.salon-name,.nav-caption,.sidebar-bottom>div { display:none; }
  .sidebar-bottom { margin:0 0 0 auto; padding:0; border:0; }
  .sidebar nav { order:3; flex-direction:row; width:100%; gap:6px; justify-content:space-between; }
  .sidebar nav button { min-height:46px; font-size:14px; padding:10px 14px; gap:9px; }
  .nav-plus { display:none; }
  .workspace { display:block; }
  .workspace-main { width:100%; margin:0; }
  .topbar { display:none; }
  .composer-layout,.detail-layout { grid-template-columns:minmax(0,1fr); }
  .basket { position:static; }
  .detail-layout>aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
  .detail-layout>aside>.spacing { margin-top:0; }
  .button,.button.small,.icon-button { min-height:44px; }
  .icon-button { min-width:44px; }
  input,textarea,select { font-size:16px; min-height:46px; }
  .module-quantity button { min-width:44px; min-height:44px; }
  .page-heading .button-row { flex-wrap:wrap; }
  .button-row .button { font-size:13px; padding:10px 14px; }
  .orders-table { min-width:0; width:100%; }
}
@media screen and (max-width:600px) {
  :root { font-size:15px; }
  main { padding:24px 16px calc(105px + env(safe-area-inset-bottom)); }
  .sidebar { padding:12px 16px; gap:8px; z-index:35; }
  .sidebar .brand { font-size:23px; }
  .sidebar nav { position:fixed; left:0; right:0; bottom:0; width:100%; flex-wrap:nowrap; gap:0; padding:6px 6px max(7px,env(safe-area-inset-bottom)); background:#173e32; border-top:1px solid #446350; box-shadow:0 -2px 12px #173e321a; z-index:40; }
  .sidebar nav button { position:relative; flex:1; min-width:0; min-height:54px; flex-direction:column; justify-content:center; padding:5px 2px; gap:5px; font-size:10px; line-height:1.2; }
  .sidebar nav svg { width:21px; height:21px; }
  .sidebar nav button.active { background:#315c49; }
  .nav-count { position:absolute; top:1px; right:calc(50% - 23px); font-size:10px; min-width:17px; height:17px; padding:0 4px; }
  .page-heading { flex-direction:column; align-items:stretch; gap:16px; }
  .page-heading h1 { font-size:29px; }
  .page-heading>div>p { font-size:14px; }
  .page-heading .eyebrow { font-size:10px; }
  .page-heading>.button { width:100%; margin:0; font-size:14px; min-height:46px; }
  .page-heading .button-row { max-width:none; display:flex; width:100%; justify-content:flex-start; gap:9px; }
  .page-heading .button-row .button { flex:1 1 auto; font-size:13px; min-height:44px; }
  .button,.button.small,.section-title>.button,.modal-actions .button { font-size:14px; min-height:44px; padding:10px 13px; }
  .stats { grid-template-columns:minmax(0,1fr); gap:8px; }
  .stats .stat { min-height:68px; display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:14px 16px; }
  .stat>span { margin:0; font-size:12px; }
  .stats .stat strong { font-size:22px; }
  .stat small { font-size:11px; flex-basis:100%; }
  .form-grid { grid-template-columns:minmax(0,1fr); gap:17px; }
  .field,.field.wide { grid-column:1; min-width:0; }
  .field>span { font-size:13px; }
  .padded { padding:20px 16px; }
  .steps { align-items:stretch; gap:4px; }
  .steps button { flex:1; font-size:12px; min-height:48px; padding:4px; gap:5px; }
  .steps button span { flex-shrink:0; }
  .steps>svg { align-self:center; width:14px; flex-shrink:0; }
  .price-date { font-size:11px; align-self:flex-start; }
  .section-heading p,.page-note { font-size:12px; }
  .segmented { flex-wrap:wrap; }
  .segmented button { min-height:46px; font-size:13px; }
  .section-title { flex-wrap:wrap; align-items:center; }
  .section-actions,.modal-actions { gap:10px; flex-wrap:wrap; }
  .section-actions .button,.modal-actions .button { flex:1 1 140px; }
  .detail-layout>aside { display:block; }
  .detail-layout>aside>.spacing { margin-top:20px; }
  .detail-item>div { min-width:0; }
  .detail-item h3 { overflow-wrap:anywhere; }
  .orders-table tbody tr { padding:20px 16px; gap:17px 12px; }
  .orders-table td { min-width:0; overflow-wrap:anywhere; }
  .orders-table td:first-child>span { font-size:14px; }
  .orders-table td:nth-child(n+3):before { font-size:12px; }
  .filter-row { display:grid; grid-template-columns:1fr; }
  .filter-row .field { min-width:0; }
  .mobile-live-quote { bottom:calc(68px + env(safe-area-inset-bottom)); padding:12px 16px; gap:12px; z-index:30; }
  .mobile-live-quote span { flex:1; min-width:0; font-size:12px; }
  .mobile-live-quote strong { font-size:18px; }
  body:has(.mobile-live-quote) main { padding-bottom:calc(185px + env(safe-area-inset-bottom)); }
  .toast { bottom:calc(85px + env(safe-area-inset-bottom)); font-size:13px; }
  .modal { width:calc(100vw - 16px); max-width:calc(100vw - 16px); max-height:calc(100dvh - 24px); padding:20px 16px; overflow:auto; overscroll-behavior:contain; }
  .modal-heading { position:sticky; top:-20px; padding:8px 0; background:#fff; z-index:2; }
  .tabs { overflow:auto; white-space:nowrap; }
  .tabs button { font-size:13px; min-height:46px; padding:10px 14px; }
  .library-grid { grid-template-columns:minmax(0,1fr); }
  .library-card { min-height:0; }
  .library-card h3 { font-size:15px; }
  .auth-story { min-height:100px; padding:26px; }
  .auth-side { min-height:calc(100dvh - 100px); padding:28px 20px; }
  .lead-save-row .button { width:100%; }
  .lead-counters { gap:8px; margin-bottom:18px; }
  .lead-counter { padding:12px 8px; flex-direction:column; align-items:flex-start; min-height:108px; gap:8px; }
  .lead-counter span { font-size:11px; }
  .lead-counter strong { font-size:24px; }
  .lead-grid { grid-template-columns:minmax(0,1fr); padding:14px; gap:14px; }
  .lead-card { padding:18px; }
  .lead-name { font-size:21px; }
  .lead-mine { font-size:13px; }
  .lead-filter-note { padding:8px 14px; font-size:13px; }
  .lead-detail-title { font-size:27px !important; }
  .lead-card-heading small { font-size:11px; }
}
@media print { .lead-save-row { display:none; } }

@media screen and (max-width:1100px) { .search-box input,.panel-toolbar>select,.module-row input[type="number"] { font-size:16px; min-height:46px; } }

@media screen and (max-width:1100px) { input,select,textarea { min-width:0; max-width:100%; } .module-row>label { min-width:0; min-height:44px; } .module-row strong { font-size:14px; } .module-row small { font-size:12px; } .module-row>input { flex-shrink:0; } }

@media screen and (min-width:601px) and (max-width:1100px) { .mobile-live-quote { display:flex; position:fixed; left:0; right:0; bottom:0; z-index:30; background:#244533; color:white; padding:14px 22px max(14px,env(safe-area-inset-bottom)); align-items:center; justify-content:space-between; gap:15px; box-shadow:0 -3px 18px #17352524; } .mobile-live-quote span { font-size:14px; } .mobile-live-quote strong { font-size:22px; text-align:right; } body:has(.mobile-live-quote) main { padding-bottom:110px; } }
