/* ==========================================================================
   DR. HANDYMAN — design system
   Black workshop ink · signal yellow · warm paper light.
   Built for one thumb, one iPhone, and a full day of real work.
   ========================================================================== */

:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --ink: #0b0b0d;
  --ink-soft: #4c4941;
  --muted: #7f7b71;
  --paper: #f2f0e9;
  --paper-deep: #e7e3d8;
  --yellow: #ffce1f;
  --yellow-strong: #f5bc00;
  --yellow-soft: #fff2c0;
  --yellow-ink: #191303;

  --card: rgba(255, 255, 255, 0.72);
  --card-strong: rgba(255, 255, 255, 0.92);
  --card-soft: rgba(255, 255, 255, 0.46);
  --stroke: rgba(18, 17, 12, 0.075);
  --stroke-strong: rgba(18, 17, 12, 0.15);
  --hairline: rgba(18, 17, 12, 0.085);
  --rim: rgba(255, 255, 255, 0.78);

  --shadow-xl: 0 32px 80px -46px rgba(27, 23, 10, 0.5), 0 3px 12px -6px rgba(27, 23, 10, 0.08);
  --shadow-md: 0 18px 42px -30px rgba(27, 23, 10, 0.4);
  --shadow-pop: 0 24px 60px -24px rgba(22, 17, 4, 0.5);

  --radius-xxl: 34px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --radius-sm: 11px;

  --page-x: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-height: 70px;
  --tabbar-bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) - 10px));
  --tabbar-space: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px) + 30px);
  --content-max: 560px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2efe6;
  --ink-soft: #b8b4a8;
  --muted: #8b877c;
  --paper: #09090b;
  --paper-deep: #101013;
  --yellow-soft: rgba(255, 206, 31, 0.12);

  --card: rgba(28, 28, 32, 0.7);
  --card-strong: rgba(37, 37, 42, 0.9);
  --card-soft: rgba(255, 255, 255, 0.045);
  --stroke: rgba(255, 255, 255, 0.075);
  --stroke-strong: rgba(255, 255, 255, 0.15);
  --hairline: rgba(255, 255, 255, 0.08);
  --rim: rgba(255, 255, 255, 0.1);

  --shadow-xl: 0 42px 90px -50px rgba(0, 0, 0, 0.95), 0 2px 10px -6px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 24px 54px -34px rgba(0, 0, 0, 0.9);
  --shadow-pop: 0 30px 70px -24px rgba(0, 0, 0, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  background: var(--paper);
  color-scheme: light;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ambient workshop light + a whisper of paper grain. */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 38% at 84% -4%, rgba(255, 206, 31, 0.3), transparent 68%),
    radial-gradient(42% 30% at 2% 22%, rgba(255, 206, 31, 0.09), transparent 72%),
    radial-gradient(50% 30% at 72% 106%, rgba(255, 206, 31, 0.075), transparent 76%);
  filter: blur(10px);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(58% 38% at 84% -4%, rgba(255, 206, 31, 0.14), transparent 66%),
    radial-gradient(50% 32% at 4% 30%, rgba(255, 206, 31, 0.045), transparent 74%),
    radial-gradient(60% 40% at 60% 108%, rgba(255, 206, 31, 0.04), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] body::after {
  opacity: 0.055;
  mix-blend-mode: screen;
}

#app {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.view {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.view::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar,
.category-chips::-webkit-scrollbar,
.sheet__body::-webkit-scrollbar {
  display: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--yellow-strong);
  outline-offset: 2px;
}

::selection {
  background: var(--yellow);
  color: var(--yellow-ink);
}

/* --------------------------------------------------------------------------
   Page rhythm
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(var(--safe-top) + 12px) var(--page-x) var(--tabbar-space);
  animation: page-in 0.5s var(--ease) both;
}

.page--detail,
.page--form {
  padding-bottom: calc(112px + var(--safe-bottom));
}

.page--estimate {
  padding-top: calc(var(--safe-top) + 12px);
  padding-bottom: calc(24px + var(--safe-bottom));
  max-width: 760px;
}

.page--detail {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

.page--settings {
  padding-bottom: calc(var(--tabbar-space) + 22px);
}

.page--fallback {
  padding-top: calc(var(--safe-top) + 22px);
}

.eyebrow {
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent-dot {
  color: var(--yellow-strong);
}

.muted-copy {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Glass, cards, surfaces
   -------------------------------------------------------------------------- */

.glass {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
  border: 1px solid var(--rim);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
}

[data-theme="dark"] .glass {
  background: linear-gradient(158deg, rgba(37, 37, 42, 0.76), rgba(19, 19, 22, 0.66));
  border-color: var(--stroke-strong);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  font-size: 14.5px;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.18s var(--ease), background 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.972);
}

.btn .ico {
  flex: none;
}

.btn--primary {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 14px 30px -14px rgba(214, 158, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn--glass {
  background: var(--card);
  border-color: var(--stroke);
  color: var(--ink);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn--quiet {
  background: var(--card-soft);
  border-color: var(--stroke);
  color: var(--ink-soft);
}

.btn--danger {
  background: #bf3b2c;
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(160, 36, 22, 0.65);
}

.btn--sm {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 12px;
}

.btn--wide {
  flex: 1;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.7s linear infinite;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--ink);
  transition: transform 0.16s var(--ease), background 0.2s;
}

.icon-btn:active {
  transform: scale(0.93);
}

.icon-btn--glass {
  background: var(--card);
  border-color: var(--stroke);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}

.icon-btn--accent {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 12px 24px -12px rgba(214, 158, 0, 0.7);
}

.icon-btn--sm {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Inputs
   -------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 660;
  letter-spacing: 0.005em;
  color: var(--muted);
}

.field__optional {
  font-size: 9.5px;
  font-weight: 550;
  color: var(--muted);
  opacity: 0.8;
}

.field__hint {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
}

.field__error {
  display: none;
  font-size: 10.5px;
  color: #b13b2e;
}

.field.has-error .field__error {
  display: block;
}

.field.has-error .input {
  border-color: rgba(177, 59, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(177, 59, 46, 0.09);
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  background: var(--card-soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input::placeholder {
  color: var(--muted);
  opacity: 0.78;
}

.input:focus {
  border-color: rgba(214, 160, 0, 0.68);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(255, 206, 31, 0.17);
}

.input--textarea {
  min-height: 104px;
  padding-top: 13px;
  line-height: 1.55;
  resize: vertical;
}

.input--title {
  min-height: 58px;
  font-size: 19px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.input--small {
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 14px;
}

.input--select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237f7b71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

[data-theme="dark"] .input--select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b877c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

input[type="date"],
input[type="time"] {
  min-width: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
}

input[type="number"] {
  font-variant-numeric: tabular-nums;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field--half {
  grid-column: span 1;
}

.field--full {
  grid-column: span 2;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.search-field__icon {
  display: flex;
  color: var(--muted);
  flex: none;
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-field__clear {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--stroke);
  color: var(--muted);
}

.search-field--large {
  flex: 1;
  height: 50px;
}

/* --------------------------------------------------------------------------
   Chips and pills
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  flex: none;
  padding: 0 13px;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 660;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.chip span {
  font-size: 9.5px;
  font-weight: 720;
  color: var(--muted);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip.is-active span {
  color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .chip.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--yellow-ink);
}

[data-theme="dark"] .chip.is-active span {
  color: rgba(0, 0, 0, 0.5);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  background: var(--card-soft);
  color: var(--ink-soft);
  font-size: 8.5px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status--active {
  background: var(--yellow);
  border-color: transparent;
  color: var(--yellow-ink);
}

.status--active .status__dot {
  background: #171204;
  animation: pulse-dot 1.7s ease-in-out infinite;
}

.status--quote {
  background: var(--yellow-soft);
  border-color: rgba(190, 145, 0, 0.18);
  color: #7f5b00;
}

[data-theme="dark"] .status--quote {
  background: rgba(255, 206, 31, 0.12);
  border-color: rgba(255, 206, 31, 0.18);
  color: #ffd861;
}

.status--done {
  background: var(--ink);
  border-color: transparent;
  color: var(--paper);
}

[data-theme="dark"] .status--done {
  background: var(--ink);
  color: #0b0b0d;
}

.status--scheduled {
  background: var(--card-soft);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Avatars
   -------------------------------------------------------------------------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 32%;
  background: linear-gradient(145deg, var(--yellow-soft), var(--card));
  color: var(--ink);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.avatar--sm {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 10px;
}

.avatar--xl {
  width: 86px;
  height: 86px;
  border-radius: 29px;
  font-size: 27px;
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   Tab bar
   -------------------------------------------------------------------------- */

.tabbar {
  position: fixed;
  bottom: var(--tabbar-bottom);
  left: 50%;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  width: min(calc(100% - 24px), 532px);
  height: var(--tabbar-height);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  box-shadow: 0 24px 54px -26px rgba(24, 20, 8, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  backdrop-filter: blur(30px) saturate(1.9);
  transform: translateX(-50%);
  transition: transform 0.45s var(--ease), opacity 0.28s;
}

[data-theme="dark"] .tabbar {
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(32, 32, 37, 0.92), rgba(14, 14, 16, 0.82));
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[hidden],
[hidden] * {
  display: none !important;
}

body.is-detail .tabbar {
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  animation: none;
  pointer-events: none;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 58px;
  height: 54px;
  border-radius: 16px;
  color: var(--muted);
  transition: color 0.22s, background 0.22s, transform 0.2s var(--ease);
}

.tab:active {
  transform: scale(0.94);
}

.tab__icon {
  display: flex;
  transition: transform 0.25s var(--ease);
}

.tab__label {
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.tab.is-active {
  background: rgba(255, 206, 31, 0.24);
  color: var(--ink);
}

.tab.is-active .tab__icon {
  transform: translateY(-1px);
}

[data-theme="dark"] .tab.is-active {
  background: rgba(255, 206, 31, 0.15);
  color: var(--yellow);
}

.tabbar__fab {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: -24px;
  border: 4px solid var(--paper);
  border-radius: 21px;
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 18px 30px -12px rgba(214, 158, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.18s var(--ease);
}

.tabbar__fab:active {
  transform: scale(0.92);
}

.tabbar__fab-inner {
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
   Headers and identity
   -------------------------------------------------------------------------- */

.screen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 22px;
}

.screen-title {
  font-size: 38px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.055em;
}

.screen-head .eyebrow {
  margin-bottom: 9px;
}

.settings-version {
  flex: none;
  margin-bottom: 3px;
  padding: 5px 9px;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  background: var(--card-soft);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
}

.customer-topbar,
.form-head,
.estimate-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0 14px;
}

.today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 6px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark__tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  overflow: hidden;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #0b0b0c;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.55);
}

.brand-mark__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark__tile--lg {
  width: 52px;
  height: 52px;
  padding: 4px;
  border-radius: 16px;
}

.brand-mark__tile--xl {
  width: 68px;
  height: 68px;
  padding: 5px;
  border-radius: 21px;
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark__text strong {
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.brand-mark__text small {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.today-intro {
  padding: 26px 0 20px;
}

.today-intro .eyebrow {
  margin-bottom: 10px;
}

.today-intro h1 {
  font-size: 42px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.058em;
}

.today-intro__sub {
  max-width: 340px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Hero card
   -------------------------------------------------------------------------- */

.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 19px 19px 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background: #0c0c0e;
  color: #f7f4ec;
  box-shadow: 0 32px 65px -34px rgba(18, 15, 5, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  /* WebKit lets a blurred child escape overflow clipping at rounded corners.
     Clip the decorative layer itself so the card shadow stays untouched. */
  -webkit-clip-path: inset(0 round 30px);
  clip-path: inset(0 round 30px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  pointer-events: none;
}

.hero-card__glow::before {
  content: "";
  position: absolute;
  top: -128px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 31, 0.52), rgba(255, 206, 31, 0) 68%);
  filter: blur(14px);
}

.hero-card__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.58;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.052) 1px, transparent 1px);
  background-size: 27px 27px;
  -webkit-mask-image: radial-gradient(130% 100% at 100% 0%, #000 8%, transparent 74%);
  mask-image: radial-gradient(130% 100% at 100% 0%, #000 8%, transparent 74%);
}

.hero-card--live::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 206, 31, 0.26);
  border-radius: inherit;
  pointer-events: none;
}

.hero-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
}

.hero-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 8.5px;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card__when {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-card__timer {
  color: var(--yellow);
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.hero-card__main {
  display: block;
}

.hero-card h2 {
  max-width: 94%;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  max-width: 95%;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11.5px;
  line-height: 1.45;
}

.hero-card__meta .ico {
  flex: none;
  margin-top: 1px;
  opacity: 0.7;
}

.hero-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 23px;
}

.hero-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 14px;
  background: var(--yellow);
  color: #171203;
  font-size: 12.5px;
  font-weight: 720;
  box-shadow: 0 10px 22px -12px rgba(255, 206, 31, 0.5);
}

.hero-card__tools {
  display: flex;
  gap: 7px;
}

.hero-tool {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-tool--text {
  width: auto;
  padding: 0 13px;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10.5px;
  font-weight: 650;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 206, 31, 0.13);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero-card--empty {
  display: flex;
  min-height: 224px;
  flex-direction: column;
  justify-content: space-between;
}

.hero-empty {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 8px 0 18px;
}

.hero-empty__badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(255, 206, 31, 0.18);
  border-radius: 14px;
  background: rgba(255, 206, 31, 0.11);
  color: var(--yellow);
}

.hero-empty h2 {
  max-width: 100%;
  margin-top: 7px;
  font-size: 25px;
  line-height: 1.1;
}

.hero-empty p {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Stat tiles and quick actions
   -------------------------------------------------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.stat-tile {
  position: relative;
  display: flex;
  min-height: 112px;
  flex-direction: column;
  overflow: hidden;
  padding: 15px;
  border-radius: 22px;
}

.stat-tile--wide {
  display: grid;
  grid-column: 1 / -1;
  min-height: 130px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  align-content: start;
}

.stat-tile__label {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stat-tile__value {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-rounded);
  font-size: 29px;
  font-weight: 730;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stat-tile--wide .stat-tile__value {
  font-size: 32px;
}

.stat-tile__sub {
  margin-top: auto;
  padding-top: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.stat-tile--wide .stat-tile__sub {
  grid-column: 1;
  padding-top: 7px;
}

.week-chart {
  display: flex;
  align-self: end;
  grid-row: 1 / span 3;
  grid-column: 2;
  gap: 4px;
  height: 56px;
  margin-top: 2px;
  padding-left: 12px;
}

.week-chart__item {
  display: flex;
  width: 12px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.week-chart__bar {
  display: block;
  width: 7px;
  border-radius: 100px;
  background: rgba(11, 11, 13, 0.13);
  transition: height 0.5s var(--ease);
}

.week-chart__item.is-today .week-chart__bar {
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(214, 164, 0, 0.15);
}

.week-chart__item small {
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 650;
}

[data-theme="dark"] .week-chart__bar {
  background: rgba(255, 255, 255, 0.12);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.quick-action {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 18px;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 660;
  text-align: left;
  transition: transform 0.18s var(--ease), background 0.2s;
}

.quick-action:active {
  transform: scale(0.968);
}

.quick-action__icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--card-soft);
  color: var(--ink-soft);
}

.quick-action__icon--yellow {
  border-color: transparent;
  background: var(--yellow);
  color: var(--yellow-ink);
}

/* --------------------------------------------------------------------------
   Sections, timeline, upcoming and job cards
   -------------------------------------------------------------------------- */

.section {
  margin-top: 29px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 11px;
}

.section-head h2 {
  font-size: 16.5px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  padding: 3px 7px;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  background: var(--card-soft);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 720;
}

.section-count--live {
  border-color: transparent;
  background: var(--yellow);
  color: var(--yellow-ink);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 40px 12px 1fr;
  gap: 9px;
  align-items: stretch;
}

.timeline-row__time {
  padding-top: 17px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.timeline-row__track {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-row__track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -9px;
  width: 1px;
  background: var(--hairline);
}

.timeline-row:last-child .timeline-row__track::before {
  bottom: 50%;
}

.timeline-row__dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 20px;
  border: 2px solid rgba(120, 116, 106, 0.34);
  border-radius: 50%;
  background: var(--paper);
}

.timeline-row.is-active .timeline-row__dot {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 206, 31, 0.16);
}

.timeline-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 13px 12px;
  border-radius: 18px;
  transition: transform 0.18s var(--ease);
}

.timeline-card:active {
  transform: scale(0.99);
}

.timeline-card__icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--card-soft);
  color: var(--ink-soft);
}

.timeline-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.timeline-card__title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 660;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-card__meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-card__side {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--muted);
}

.timeline-card__side .status {
  padding: 4px 6px;
  font-size: 7.5px;
}

.quiet-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: 18px;
}

.quiet-card__icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: #8a6400;
}

[data-theme="dark"] .quiet-card__icon {
  color: var(--yellow);
}

.quiet-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.quiet-card strong {
  font-size: 12px;
  font-weight: 650;
}

.quiet-card small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.quiet-card__cta {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.upcoming-list {
  overflow: hidden;
  padding: 3px 14px;
  border-radius: 20px;
}

.upcoming-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}

.upcoming-row:last-child {
  border-bottom: 0;
}

.upcoming-row__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--card-soft);
  color: var(--ink-soft);
}

.upcoming-row__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.upcoming-row__title {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-row__meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-row__when {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.upcoming-row__when strong {
  font-size: 10px;
  font-weight: 700;
}

.upcoming-row__when small {
  color: var(--muted);
  font-size: 9.5px;
}

/* --------------------------------------------------------------------------
   Job cards
   -------------------------------------------------------------------------- */

.job-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  color: var(--ink);
  transition: transform 0.18s var(--ease);
}

.job-card:active {
  transform: scale(0.99);
}

.job-card__thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  align-self: flex-start;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  background: var(--card-soft);
}

.job-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}

.job-card__thumb img.is-loaded,
.job-card__thumb img[src] {
  opacity: 1;
}

.thumb-box--tinted {
  background: linear-gradient(150deg, rgba(255, 206, 31, 0.27), rgba(255, 206, 31, 0.05));
}

.thumb-box__icon {
  display: grid;
  place-items: center;
  color: #8a6400;
}

[data-theme="dark"] .thumb-box__icon {
  color: var(--yellow);
}

.job-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.job-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.job-card__date {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-card__total {
  color: var(--ink);
  font-family: var(--font-rounded);
  font-size: 13.5px;
  font-weight: 730;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.job-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  font-size: 14px;
  font-weight: 660;
  line-height: 1.25;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-card__meta {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9.5px;
}

.job-card__when,
.job-card__count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   Empty, alarm, backup nudge, quick start
   -------------------------------------------------------------------------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 40px 20px 44px;
  text-align: center;
}

.empty-state__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 206, 31, 0.24);
  border-radius: 25px;
  background: radial-gradient(circle at 30% 24%, rgba(255, 206, 31, 0.34), rgba(255, 206, 31, 0.05));
  color: #8a6400;
}

[data-theme="dark"] .empty-state__art {
  color: var(--yellow);
}

.empty-state h3 {
  max-width: 280px;
  font-size: 18.5px;
  font-weight: 710;
  letter-spacing: -0.03em;
}

.empty-state p {
  max-width: 300px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.empty-state .btn {
  margin-top: 19px;
}

.alarm-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 12px 13px;
  border: 1px solid rgba(198, 148, 0, 0.18);
  border-radius: 17px;
  background: rgba(255, 206, 31, 0.14);
  color: var(--ink);
}

.alarm-card--compact {
  margin: 0 0 14px;
  padding: 10px 12px;
}

.alarm-card__icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 11px;
  background: var(--yellow);
  color: #171204;
}

.alarm-card__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.alarm-card__text strong {
  font-size: 11.5px;
  font-weight: 650;
}

.alarm-card__text small {
  color: var(--ink-soft);
  font-size: 10px;
}

.alarm-card > .ico {
  flex: none;
  opacity: 0.55;
}

.backup-nudge {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  color: var(--ink);
}

.backup-nudge__icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  border-radius: 11px;
  background: var(--yellow-soft);
  color: #8a6400;
}

[data-theme="dark"] .backup-nudge__icon {
  color: var(--yellow);
}

.backup-nudge > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.backup-nudge strong {
  font-size: 11.5px;
  font-weight: 650;
}

.backup-nudge small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.day-signoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 9.5px;
  opacity: 0.8;
}

.quick-start {
  margin-top: 15px;
  padding: 19px;
  border-radius: 24px;
}

.quick-start .eyebrow {
  margin-bottom: 7px;
}

.quick-start h2 {
  margin-bottom: 15px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.quick-start__steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}

.quick-start__step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}

.quick-start__step:last-child {
  border-bottom: 0;
}

.quick-start__num {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 9px;
  background: var(--yellow-soft);
  color: #8a6400;
  font-family: var(--font-rounded);
  font-size: 10.5px;
  font-weight: 760;
}

.quick-start__step > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.quick-start__step strong {
  font-size: 11.5px;
  font-weight: 650;
}

.quick-start__step small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.quick-start__step > .ico {
  flex: none;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Job list and filters
   -------------------------------------------------------------------------- */

.list-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 17px;
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--page-x));
  padding: 2px var(--page-x) 4px;
  scrollbar-width: none;
}

.job-section {
  margin-top: 21px;
}

.page--jobs .job-section:first-of-type {
  margin-top: 0;
}

.list-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.list-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--hairline);
}

.list-divider:empty {
  display: none;
}

.list-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 9.5px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Customers
   -------------------------------------------------------------------------- */

.customer-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.customer-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 18px;
  color: var(--ink);
}

.customer-row__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.customer-row__name {
  font-size: 13px;
  font-weight: 660;
  letter-spacing: -0.012em;
}

.customer-row__meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-row__side {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.customer-row__jobs {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}

.customer-row__open {
  padding: 2px 6px;
  border-radius: 100px;
  background: var(--yellow-soft);
  color: #8a6400;
  font-size: 8px;
  font-weight: 720;
}

[data-theme="dark"] .customer-row__open {
  color: var(--yellow);
}

.customer-row > .ico {
  flex: none;
  color: var(--muted);
}

.customer-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 0 21px;
  text-align: center;
}

.customer-profile .avatar--xl {
  margin-bottom: 15px;
}

.customer-profile h1 {
  font-size: 30px;
  font-weight: 740;
  letter-spacing: -0.048em;
}

.customer-profile p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.customer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
}

.customer-contact .btn {
  min-height: 39px;
  padding: 0 13px;
  font-size: 11px;
}

.customer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 17px;
  padding: 14px 6px;
  border-radius: 22px;
}

.customer-stats > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  border-right: 1px solid var(--hairline);
}

.customer-stats > div:last-child {
  border-right: 0;
}

.customer-stats strong {
  overflow: hidden;
  max-width: 100%;
  font-family: var(--font-rounded);
  font-size: 14.5px;
  font-weight: 730;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-stats span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 620;
  letter-spacing: 0.02em;
}

.property-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.property-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.property-row:last-child {
  border-bottom: 0;
}

.property-row__icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--card-soft);
  color: var(--ink-soft);
}

.property-row__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.property-row__text strong {
  font-size: 11.5px;
  font-weight: 650;
}

.property-row__text small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.property-row .icon-btn {
  color: var(--muted);
}

.inline-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border-radius: 14px;
  background: var(--card-soft);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.inline-empty p {
  margin: 0;
}

.customer-cta {
  display: flex;
  gap: 7px;
  margin-top: 22px;
}

.danger-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px auto 0;
  padding: 10px;
  border: 0;
  background: none;
  color: #b13b2e;
  font-size: 11px;
  font-weight: 620;
}

.detail-meta {
  margin-top: 17px;
  color: var(--muted);
  font-size: 9.5px;
  text-align: center;
  opacity: 0.82;
}

/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.search-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0 13px;
}

.search-body {
  min-height: 55vh;
}

.search-start {
  min-height: 34vh;
}

.search-start__hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 16px;
  padding: 10px 11px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--card-soft);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.search-start__hint .ico {
  flex: none;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Job detail
   -------------------------------------------------------------------------- */

.detail-hero {
  position: relative;
  height: 292px;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background: #0b0b0d;
}

.detail-hero__art {
  position: absolute;
  inset: 0;
  background: radial-gradient(125% 125% at 82% 0%, #2b2a22 0%, #0b0b0d 68%);
}

.detail-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%);
}

.detail-hero__glow {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 31, 0.38), transparent 67%);
  filter: blur(18px);
  pointer-events: none;
}

.detail-hero__monogram {
  position: absolute;
  right: 20px;
  bottom: 32px;
  color: rgba(255, 206, 31, 0.12);
  font-family: var(--font-rounded);
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
}

.detail-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(100% 100% at 100% 0%, #000 0%, transparent 70%);
}

.detail-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero__img--full {
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.detail-hero__img--full.is-ready {
  opacity: 1;
}

.detail-hero__img--thumb {
  filter: blur(1.5px);
  transform: scale(1.03);
}

.detail-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 30%, transparent 48%, rgba(0, 0, 0, 0.64) 100%);
}

.detail-hero__category {
  position: absolute;
  bottom: 44px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--yellow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.detail-hero__count {
  position: absolute;
  right: 17px;
  bottom: 17px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 9.5px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.detail-topbar {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  right: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-topbar__right {
  display: flex;
  gap: 7px;
}

.detail-topbar .icon-btn--glass {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.65);
  color: #0b0b0d;
}

[data-theme="dark"] .detail-topbar .icon-btn--glass {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(22, 22, 26, 0.72);
  color: #f2efe6;
}

.detail-topbar--plain {
  position: static;
  padding: 4px 0 12px;
}

.detail-content {
  position: relative;
  z-index: 2;
  margin-top: -25px;
  padding: 25px var(--page-x) calc(108px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--paper);
}

.detail-title__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.detail-title__when {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.detail-title h1 {
  font-size: 30px;
  font-weight: 740;
  line-height: 1.08;
  letter-spacing: -0.048em;
}

.detail-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--card-soft);
  color: var(--ink);
}

.detail-customer__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.detail-customer__text strong {
  font-size: 12px;
  font-weight: 650;
}

.detail-customer__text small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.detail-customer > .ico {
  flex: none;
  color: var(--muted);
}

.detail-no-customer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10.5px;
}

.action-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 17px;
}

.action-tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 3px 8px;
  border: 1px solid var(--stroke);
  border-radius: 17px;
  background: var(--card);
  color: var(--ink);
  font-size: 9px;
  font-weight: 650;
  text-align: center;
  transition: transform 0.18s var(--ease);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.action-tile:active {
  transform: scale(0.955);
}

.action-tile__icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--card-soft);
  color: var(--ink-soft);
}

.action-tile__icon--wa {
  border-color: rgba(37, 211, 102, 0.2);
  background: rgba(37, 211, 102, 0.13);
  color: #1d8a4d;
}

[data-theme="dark"] .action-tile__icon--wa {
  color: #52d98a;
}

.timer-card {
  margin-top: 17px;
  padding: 16px 17px;
  border: 1px solid var(--stroke);
  border-radius: 23px;
}

.timer-card.is-running {
  border-color: rgba(255, 206, 31, 0.34);
  box-shadow: 0 22px 50px -38px rgba(255, 206, 31, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.timer-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timer-card__state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.11em;
}

.timer-card__display {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 10px 0 12px;
}

.timer-card__display strong {
  font-family: var(--font-rounded);
  font-size: 37px;
  font-weight: 740;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.timer-card__display small {
  color: var(--muted);
  font-size: 9.5px;
}

.timer-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 9.5px;
}

.detail-card {
  margin-top: 13px;
  padding: 17px;
  border-radius: 23px;
}

.detail-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.detail-card__head h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 690;
  letter-spacing: -0.02em;
}

.count-badge {
  margin-left: 3px;
  padding: 2px 6px;
  border-radius: 100px;
  background: var(--yellow);
  color: #171204;
  font-size: 8.5px;
  font-weight: 720;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px 0;
  border: 0;
  background: none;
  color: #8a6400;
  font-size: 10px;
  font-weight: 650;
}

[data-theme="dark"] .text-link {
  color: var(--yellow);
}

.info-list {
  display: flex;
  flex-direction: column;
}

.info-row {
  display: grid;
  grid-template-columns: 22px 76px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 11.5px;
}

.info-row:first-child {
  padding-top: 0;
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row__icon {
  display: flex;
  padding-top: 1px;
  color: var(--muted);
}

.info-row__label {
  padding-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

.info-row__value {
  font-weight: 600;
  line-height: 1.45;
  text-align: right;
}

.info-row--address .info-row__value {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Money card
   -------------------------------------------------------------------------- */

.money-card__badge {
  padding: 4px 7px;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  background: var(--card-soft);
  color: var(--muted);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.money-lines {
  display: flex;
  flex-direction: column;
}

.money-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 11.5px;
}

.money-line > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--ink-soft);
}

.money-line small {
  color: var(--muted);
  font-size: 9.5px;
}

.money-line > span:last-child {
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.money-line__negative {
  color: #a8392d;
}

.money-line--strong {
  padding: 11px 0 5px;
  border-bottom: 0;
  font-size: 12px;
  font-weight: 700;
}

.money-line--strong > span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.money-line--strong > span:last-child {
  font-weight: 780;
}

.money-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 12px;
}

.money-total span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.money-total strong {
  font-family: var(--font-rounded);
  font-size: 29px;
  font-weight: 740;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 0 2px;
  border: 0;
  border-top: 1px solid var(--hairline);
  background: none;
  color: var(--ink);
  text-align: left;
}

.switch-row--plain {
  position: relative;
  padding: 10px 0;
  border-top: 0;
  cursor: pointer;
}

.switch-row--plain input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-row__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.switch-row__text strong {
  font-size: 11px;
  font-weight: 650;
}

.switch-row__text small {
  color: var(--muted);
  font-size: 9.5px;
}

.switch {
  position: relative;
  width: 43px;
  height: 26px;
  flex: none;
  border-radius: 100px;
  background: rgba(120, 116, 106, 0.26);
  transition: background 0.25s;
}

.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease);
}

.switch.is-on {
  background: #2e9b54;
}

.switch.is-on span {
  transform: translateX(17px);
}

.doc-callout {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 14px;
  border-radius: 20px;
  color: var(--ink);
}

.doc-callout__icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  flex: none;
  border-radius: 13px;
  background: var(--yellow-soft);
  color: #8a6400;
}

[data-theme="dark"] .doc-callout__icon {
  color: var(--yellow);
}

.doc-callout__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.doc-callout__text strong {
  font-size: 11.5px;
  font-weight: 650;
}

.doc-callout__text small {
  color: var(--muted);
  font-size: 9.5px;
}

.doc-callout > .ico {
  flex: none;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Photos and notes
   -------------------------------------------------------------------------- */

.photo-tabs {
  display: flex;
  width: max-content;
  gap: 3px;
  margin-bottom: 11px;
  padding: 3px;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--card-soft);
}

.photo-tabs button {
  min-height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
}

.photo-tabs button.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.photo-tile {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--card-soft), rgba(255, 206, 31, 0.06));
  aspect-ratio: 4 / 3;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}

.photo-tile img.is-loaded,
.photo-grid--edit .photo-tile img[src] {
  opacity: 1;
}

.photo-tile__kind {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 3px 6px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.photo-grid--edit .photo-tile {
  border-radius: 13px;
}

.photo-tile__remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.photo-empty {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 17px;
  border: 1px dashed var(--stroke-strong);
  border-radius: 18px;
  background: var(--card-soft);
  color: var(--muted);
  text-align: center;
}

.photo-empty__art {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 3px;
  border-radius: 14px;
  background: var(--yellow-soft);
  color: #8a6400;
}

[data-theme="dark"] .photo-empty__art {
  color: var(--yellow);
}

.photo-empty strong {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
}

.photo-empty small {
  max-width: 240px;
  font-size: 9.5px;
  line-height: 1.45;
}

.photo-empty--compact {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  padding: 16px;
  text-align: left;
}

.photo-empty--compact .photo-empty__art {
  width: 37px;
  height: 37px;
  margin: 0;
  border-radius: 12px;
}

.photo-empty--compact small {
  width: 100%;
}

.detail-copy {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.note-card {
  background: rgba(255, 206, 31, 0.055);
}

.note-card__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
}

.detail-actions-row {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}

.detail-actions-row .btn {
  padding: 0 12px;
  font-size: 10.5px;
}

.material-footnote {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
}

.bottom-bar {
  position: fixed;
  bottom: var(--tabbar-bottom);
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(calc(100% - 24px), 532px);
  padding: 8px 9px 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  box-shadow: 0 24px 54px -24px rgba(20, 16, 4, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  transform: translateX(-50%);
}

[data-theme="dark"] .bottom-bar {
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(32, 32, 37, 0.92), rgba(15, 15, 18, 0.84));
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bottom-bar__sum {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 1px;
  padding-right: 2px;
}

.bottom-bar__sum span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bottom-bar__sum strong {
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 740;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.bottom-bar__cta {
  min-height: 45px;
  flex: 1;
  padding: 0 14px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-head__titles {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.form-head__titles h1 {
  overflow: hidden;
  font-size: 18px;
  font-weight: 710;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-head__titles .eyebrow {
  font-size: 8px;
}

.form-head__spacer {
  width: 43px;
  flex: none;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.form-card {
  padding: 17px;
  border-radius: 23px;
}

.form-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.form-card__num {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: none;
  border-radius: 8px;
  background: var(--yellow-soft);
  color: #8a6400;
  font-family: var(--font-rounded);
  font-size: 8.5px;
  font-weight: 760;
}

[data-theme="dark"] .form-card__num {
  color: var(--yellow);
}

.form-card__head h2 {
  font-size: 14px;
  font-weight: 690;
  letter-spacing: -0.02em;
}

.form-card__head .section-count {
  margin-left: auto;
}

.form-card > .field + .field {
  margin-top: 13px;
}

.form-card > .form-grid + .form-grid,
.form-card > .form-grid + .field,
.form-card > .field + .form-grid {
  margin-top: 13px;
}

.form-card > .segmented + .field,
.form-card > .field + .segmented,
.form-card > .segmented + .form-hint {
  margin-top: 13px;
}

.form-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.form-hint .ico {
  flex: none;
  margin-top: 1px;
}

.form-section-copy {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: var(--card-soft);
}

.segmented--wrap {
  grid-template-columns: repeat(2, 1fr);
}

.segment {
  min-height: 33px;
  padding: 0 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  transition: background 0.2s, color 0.2s;
}

.segment.is-active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .segment.is-active {
  background: var(--yellow);
  color: var(--yellow-ink);
}

.category-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 1px 0 3px;
  scrollbar-width: none;
}

.category-chip {
  display: inline-flex;
  min-height: 33px;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  background: var(--card-soft);
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 620;
}

.category-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

[data-theme="dark"] .category-chip.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--yellow-ink);
}

.picker-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.picker-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  background: var(--card-soft);
  color: var(--ink);
  text-align: left;
}

.picker-row__icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: #8a6400;
}

[data-theme="dark"] .picker-row__icon {
  color: var(--yellow);
}

.picker-row__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.picker-row__text small {
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.picker-row__text strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-row__text span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-row > .ico {
  flex: none;
  color: var(--muted);
}

.picker-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.picker-list__row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 3px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  color: var(--ink);
  text-align: left;
}

.picker-list__row:last-child {
  border-bottom: 0;
}

.picker-list__row--muted {
  opacity: 0.72;
}

.picker-list__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.picker-list__text strong {
  font-size: 11.5px;
  font-weight: 650;
}

.picker-list__text small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.picker-avatar {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: none;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: #8a6400;
  font-size: 10px;
  font-weight: 760;
}

[data-theme="dark"] .picker-avatar {
  color: var(--yellow);
}

.picker-avatar--ghost {
  border: 1px solid var(--stroke);
  background: var(--card-soft);
  color: var(--muted);
}

.picker-list__row > .ico {
  flex: none;
  color: var(--muted);
}

.picker-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 28px 14px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.cost-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding: 13px;
  border: 1px solid rgba(198, 148, 0, 0.15);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 206, 31, 0.16), rgba(255, 206, 31, 0.04));
}

.cost-preview > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cost-preview > div > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-preview strong {
  font-family: var(--font-rounded);
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.cost-preview__hint {
  max-width: 112px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.4;
  text-align: right;
}

.quote-payment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(198, 148, 0, 0.15);
  border-radius: 14px;
  background: rgba(255, 206, 31, 0.08);
}

.quote-payment-summary > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.quote-payment-summary span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-payment-summary strong {
  font-size: 15px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.materials-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0 7px;
}

.materials-head > span:first-child {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.materials-head__sum {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
}

.materials {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.material-row {
  display: grid;
  grid-template-columns: 1fr 52px 70px 32px;
  gap: 5px;
  align-items: center;
}

.material-row .input {
  min-height: 42px;
  padding: 9px 9px;
  border-radius: 11px;
  font-size: 12px;
}

.material-row__remove {
  display: grid;
  place-items: center;
  width: 32px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--card-soft);
  color: var(--muted);
}

.materials-empty {
  padding: 6px 0 2px;
  color: var(--muted);
  font-size: 10px;
}

.add-row-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: #8a6400;
  font-size: 10.5px;
  font-weight: 650;
}

[data-theme="dark"] .add-row-btn {
  color: var(--yellow);
}

.photo-grid--edit {
  margin-top: 4px;
}

.form-savebar {
  position: fixed;
  bottom: var(--tabbar-bottom);
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(calc(100% - 24px), 532px);
  padding: 8px 9px 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  box-shadow: 0 24px 54px -24px rgba(20, 16, 4, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  transform: translateX(-50%);
}

[data-theme="dark"] .form-savebar {
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(32, 32, 37, 0.92), rgba(15, 15, 18, 0.84));
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-savebar__sum {
  display: flex;
  min-width: 66px;
  flex: none;
  flex-direction: column;
  gap: 1px;
}

.form-savebar__sum span {
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-savebar__sum strong {
  font-family: var(--font-rounded);
  font-size: 16px;
  font-weight: 740;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.form-savebar .btn {
  min-height: 45px;
  flex: 1;
  padding: 0 10px;
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Settings
   -------------------------------------------------------------------------- */

.settings-profile {
  margin-top: 2px;
  padding: 17px;
  border-radius: 25px;
  background-image: radial-gradient(circle at 100% 0%, rgba(255, 206, 31, 0.13), transparent 46%);
}

.settings-profile__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-profile__brand h2 {
  font-size: 16px;
  font-weight: 710;
  letter-spacing: -0.025em;
}

.settings-profile__brand p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.settings-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 11px;
  margin-top: 14px;
}

.settings-profile__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.settings-profile__meta .settings-profile__address {
  flex-basis: 100%;
  align-items: flex-start;
  color: var(--ink-soft);
  line-height: 1.5;
}

.settings-profile__prompt {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.settings-profile__prompt .ico {
  flex: none;
  margin-top: 1px;
  color: #8a6400;
}

[data-theme="dark"] .settings-profile__prompt .ico {
  color: var(--yellow);
}

.settings-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #8a6400;
  font-size: 10px;
  font-weight: 650;
}

[data-theme="dark"] .settings-edit {
  color: var(--yellow);
}

.settings-section {
  margin-top: 24px;
}

.settings-label {
  margin: 0 3px 8px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.settings-card {
  padding: 4px 15px;
  border-radius: 21px;
}

.appearance-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 10px 0 8px;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 620;
}

.theme-option.is-active {
  border-color: var(--stroke);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 3px 10px -6px rgba(0, 0, 0, 0.16);
}

.settings-note {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row--static {
  align-items: flex-start;
}

.settings-row--border {
  margin-top: 7px;
  padding-top: 13px;
  border-top: 1px solid var(--hairline);
  border-bottom: 0;
}

.settings-row__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--card-soft);
  color: var(--ink-soft);
}

.settings-row__icon--yellow {
  border-color: rgba(198, 148, 0, 0.13);
  background: var(--yellow-soft);
  color: #8a6400;
}

[data-theme="dark"] .settings-row__icon--yellow {
  color: var(--yellow);
}

.settings-row__icon--danger {
  border-color: rgba(190, 60, 45, 0.13);
  background: rgba(190, 60, 45, 0.09);
  color: #b13b2e;
}

.settings-row__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.settings-row__text strong {
  font-size: 11.5px;
  font-weight: 650;
}

.settings-row__text small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.settings-action {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  color: var(--ink);
  text-align: left;
}

.settings-action:last-of-type {
  border-bottom: 0;
}

.settings-action__value {
  flex: none;
  padding: 2px 5px;
  border: 1px solid var(--stroke);
  border-radius: 6px;
  background: var(--card-soft);
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.settings-action > .ico {
  flex: none;
  color: var(--muted);
}

.settings-action--danger .settings-row__text strong {
  color: #b13b2e;
}

.settings-badge {
  flex: none;
  padding: 3px 6px;
  border-radius: 100px;
  background: var(--yellow);
  color: #171204;
  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.storage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 0 7px;
  color: var(--muted);
  font-size: 9.5px;
}

.storage-head strong {
  color: var(--ink);
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 700;
}

.storage-meter {
  height: 7px;
  overflow: hidden;
  margin-bottom: 6px;
  border-radius: 100px;
  background: rgba(120, 116, 106, 0.14);
}

.storage-meter span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--yellow), #f0b400);
  transition: width 0.6s var(--ease);
}

.storage-meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 8.5px;
}

.settings-success {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 0 10px;
}

.settings-success > .ico {
  width: 30px;
  height: 30px;
  flex: none;
  padding: 6px;
  border-radius: 50%;
  background: rgba(47, 158, 87, 0.1);
  color: #2f9e57;
}

.settings-success span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-success strong {
  font-size: 11.5px;
  font-weight: 650;
}

.settings-success small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 7px 0 3px;
  list-style: none;
}

.install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}

.install-steps li:last-child {
  border-bottom: 0;
}

.install-steps__num {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow);
  color: #171204;
  font-family: var(--font-rounded);
  font-size: 9.5px;
  font-weight: 760;
}

.install-steps li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.install-steps strong {
  font-size: 11px;
  font-weight: 650;
}

.install-steps small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.about-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0 9px;
}

.about-brand div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-brand strong {
  font-size: 11.5px;
  letter-spacing: 0.03em;
}

.about-brand small {
  color: var(--muted);
  font-size: 9px;
}

.about-points {
  display: flex;
  flex-direction: column;
  margin-top: 3px;
  border-top: 1px solid var(--hairline);
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.about-point:last-child {
  border-bottom: 0;
}

.about-point > .ico {
  flex: none;
  margin-top: 1px;
  color: #8a6400;
}

[data-theme="dark"] .about-point > .ico {
  color: var(--yellow);
}

.about-point span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.about-point strong {
  font-size: 10.5px;
  font-weight: 650;
}

.about-point small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.settings-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 28px 0 8px;
  color: var(--muted);
  font-size: 8.5px;
  text-align: center;
  opacity: 0.78;
}

/* --------------------------------------------------------------------------
   Estimate document
   -------------------------------------------------------------------------- */

.estimate-topbar__right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.estimate-paymentbar {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--stroke-strong);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.estimate-paymentbar__badge {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(198, 148, 0, 0.16);
  border-radius: 11px;
  background: var(--yellow-soft);
  color: #8a6400;
}

[data-theme="dark"] .estimate-paymentbar__badge {
  color: var(--yellow);
}

.estimate-paymentbar__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.estimate-paymentbar__text strong {
  font-size: 11.5px;
  font-weight: 700;
}

.estimate-paymentbar__text small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.estimate-paymentbar__action {
  display: flex;
  flex: none;
  color: var(--muted);
}

.estimate-paymentbar.has-warning {
  border-color: rgba(177, 59, 46, 0.25);
  background: rgba(177, 59, 46, 0.07);
}

.estimate-paymentbar.has-warning .estimate-paymentbar__badge {
  border-color: rgba(177, 59, 46, 0.2);
  background: rgba(177, 59, 46, 0.1);
  color: #a8392d;
}

.estimate-paymentbar.has-warning .estimate-paymentbar__text small {
  color: #a8392d;
}

.estimate-paymentbar.is-confirmed {
  border-color: rgba(47, 111, 68, 0.2);
  background: rgba(47, 111, 68, 0.06);
}

.estimate-paymentbar.is-confirmed .estimate-paymentbar__badge {
  border-color: rgba(47, 111, 68, 0.18);
  background: rgba(47, 111, 68, 0.1);
  color: #2f6f44;
}

.estimate-language {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--stroke-strong);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.estimate-language.is-missing {
  border-color: rgba(177, 59, 46, 0.22);
  background: rgba(177, 59, 46, 0.07);
}

.estimate-language__badge {
  display: grid;
  width: 29px;
  height: 24px;
  flex: none;
  place-items: center;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.estimate-language.is-missing .estimate-language__badge {
  background: rgba(177, 59, 46, 0.16);
  color: #a8392d;
}

.estimate-language__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.estimate-language__text strong {
  font-size: 11px;
  font-weight: 700;
}

.estimate-language__text small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.estimate-language__action {
  flex: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-en-source {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: var(--card-soft);
}

.quote-en-source__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.quote-en-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}

.quote-en-source > strong {
  display: block;
  font-size: 11.5px;
}

.quote-en-source > p {
  max-height: 104px;
  overflow: auto;
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.quote-en-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
}

.quote-en-tools .btn {
  flex: none;
}

.quote-en-tools__hint {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.quote-en-status {
  display: none;
  margin: 0 0 11px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 10.5px;
  line-height: 1.45;
}

.quote-en-status.is-loading,
.quote-en-status.is-success,
.quote-en-status.is-error {
  display: block;
}

.quote-en-status.is-loading {
  background: var(--card-soft);
  color: var(--muted);
}

.quote-en-status.is-success {
  background: rgba(47, 111, 68, 0.1);
  color: #2f6f44;
}

.quote-en-status.is-error {
  background: rgba(177, 59, 46, 0.1);
  color: #a8392d;
}

.quote-en-fields .field + .field,
.quote-en-materials .field + .field {
  margin-top: 12px;
}

.quote-en-materials {
  margin-top: 14px;
}

.quote-en-materials > .eyebrow {
  display: block;
  margin-bottom: 7px;
}

.quote-en-note {
  margin-top: 14px;
}

.estimate-doc {
  padding: clamp(24px, 6vw, 44px);
  border-radius: 8px;
  background: #fdfaf4;
  box-shadow: 0 42px 90px -42px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  color: #17150f;
  font-size: 12px;
  line-height: 1.5;
}

.estimate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 2px solid #17150f;
}

.estimate-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.estimate-brand__mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: contain;
}

.estimate-brand div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.estimate-brand strong {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.estimate-brand span {
  color: #7e7a70;
  font-size: 8.5px;
}

.estimate-brand__lockup {
  display: block;
  width: 58px;
  max-width: 100%;
  height: auto;
  margin-bottom: 4px;
}

.estimate-type {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.estimate-type span {
  color: #8b867b;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.estimate-type strong {
  font-family: var(--font-rounded);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.estimate-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  padding: 9px 0 16px;
  color: #7e7a70;
  font-size: 8.5px;
}

.estimate-contact__address {
  width: 100%;
  color: #5e5a50;
  line-height: 1.5;
}

.estimate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2dbcd;
}

.estimate-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.estimate-meta span {
  color: #8b867b;
  font-size: 7.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.estimate-meta strong {
  font-size: 9.5px;
  font-weight: 600;
}

.estimate-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #e2dbcd;
}

.estimate-label {
  display: block;
  margin-bottom: 5px;
  color: #8b867b;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.estimate-parties strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
}

.estimate-parties p {
  margin: 0;
  color: #5e5a50;
  font-size: 9.5px;
  line-height: 1.5;
}

.estimate-description {
  padding: 15px 0 3px;
  color: #4f4b42;
  font-size: 9.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.estimate-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
}

.estimate-table th {
  padding: 0 0 6px;
  border-bottom: 1px solid #17150f;
  color: #8b867b;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.estimate-table th:last-child,
.estimate-table td:last-child {
  width: 25%;
  text-align: right;
}

.estimate-table td {
  padding: 9px 0;
  border-bottom: 1px solid #eee7da;
  font-size: 9.5px;
  vertical-align: top;
}

.estimate-table td strong {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
}

.estimate-table td span {
  display: block;
  margin-top: 1px;
  color: #8b867b;
  font-size: 8px;
}

.estimate-table tfoot td {
  padding-top: 0;
  border-top: 0;
  border-bottom: 0;
  color: #5e5a50;
  font-size: 9px;
  font-weight: 550;
}

.estimate-table tfoot tr:first-child td {
  padding-top: 11px;
  border-top: 2px solid #17150f;
}

.estimate-table tfoot .estimate-subtotal td,
.estimate-table tfoot .estimate-discount td {
  padding-top: 5px;
}

.estimate-table tfoot .estimate-total td {
  padding-top: 8px;
  border-top: 1px solid #e2dbcd;
  color: #17150f;
  font-size: 12px;
  font-weight: 700;
}

.estimate-table tfoot .estimate-total td:last-child {
  font-family: var(--font-rounded);
  font-size: 19px;
}

.estimate-table tfoot tr:first-child.estimate-total td {
  border-top: 2px solid #17150f;
  padding-top: 11px;
}

.estimate-table tfoot .estimate-currency {
  display: inline-block;
  margin: 0 0 0 4px;
  color: #8b867b;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.estimate-terms {
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid #e2dbcd;
}

.estimate-terms p {
  margin: 0 0 2px;
  color: #7e7a70;
  font-size: 8px;
  line-height: 1.5;
}

.estimate-terms p:first-child {
  margin-bottom: 4px;
  color: #17150f;
  font-size: 7.5px;
  letter-spacing: 0.12em;
}

.estimate-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #e2dbcd;
}

.estimate-foot div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.estimate-foot strong {
  font-size: 9px;
  letter-spacing: 0.04em;
}

.estimate-foot span {
  color: #8b867b;
  font-size: 8px;
}

.estimate-sign {
  display: flex;
  width: 145px;
  flex: none;
  flex-direction: column;
  gap: 22px;
}

.estimate-sign span:first-child {
  color: #8b867b;
  font-size: 7.5px;
}

.estimate-sign__line {
  display: block;
  height: 1px;
  background: #17150f;
}

.estimate-watermark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 22px;
  color: #b0aa9d;
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.estimate-watermark img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.6;
}

.estimate-payment {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2dbcd;
}

.estimate-payment__rows {
  display: grid;
  gap: 4px;
}

.estimate-payment__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 9.5px;
}

.estimate-payment__rows span {
  color: #7e7a70;
}

.estimate-payment__rows strong {
  font-weight: 600;
  text-align: right;
}

.estimate-payment__balance {
  padding-top: 5px;
  border-top: 1px solid #eee7da;
}

.estimate-payment__balance strong {
  font-size: 11px;
}

.estimate-paydetails {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #e2dbcd;
}

.estimate-paydetails__methods {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 6px;
  font-size: 9px;
}

.estimate-paydetails__methods span {
  color: #8b867b;
}

.estimate-paydetails__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.estimate-paydetails__grid div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.estimate-paydetails__grid span {
  color: #8b867b;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estimate-paydetails__grid strong {
  font-size: 9px;
  font-weight: 600;
}

.estimate-paydetails__reference {
  margin: 7px 0 0;
  color: #5e5a50;
  font-size: 8.5px;
}

.estimate-paydetails__note {
  margin: 5px 0 0;
  color: #7e7a70;
  font-size: 8px;
  line-height: 1.5;
}

.estimate-cardpayments {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #eee7da;
}

.estimate-cardpayments__label {
  margin: 0 0 2px;
  color: #8b867b;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.estimate-cardpayments__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f1ebdf;
}

.estimate-cardpayments__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.estimate-cardpayments__row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.estimate-cardpayments__row span {
  color: #8b867b;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estimate-cardpayments__row strong {
  color: #17150f;
  font-size: 10px;
}

.estimate-cardpayments__row small {
  color: #7e7a70;
  font-size: 7.5px;
}

.estimate-cardpayments__row a {
  flex: none;
  padding-bottom: 1px;
  border-bottom: 1px solid #17150f;
  color: #17150f;
  font-size: 8.5px;
  font-weight: 700;
  text-decoration: none;
}

.estimate-cardpayments__row.is-received small {
  color: #2f6f44;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.estimate-terms h3 {
  margin: 12px 0 4px;
  color: #17150f;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.estimate-terms h3:first-child {
  margin-top: 0;
}

.estimate-cancel-form {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #e2dbcd;
  border-radius: 4px;
}

.estimate-cancel-form p {
  margin: 0 0 4px;
  color: #5e5a50;
  font-size: 8px;
  line-height: 1.5;
}

.estimate-cancel-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  margin-top: 6px;
}

.estimate-cancel-form__grid p {
  margin: 0;
}

.estimate-line {
  display: block;
  height: 14px;
  margin-top: 2px;
  border-bottom: 1px solid #17150f;
}

.estimate-line--inline {
  display: inline-block;
  width: 45%;
  height: 10px;
  vertical-align: bottom;
}

.estimate-signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

.estimate-signature-grid div,
.estimate-acceptance__grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.estimate-signature-grid small,
.estimate-acceptance__grid small {
  color: #8b867b;
  font-size: 7.5px;
}

.estimate-acceptance {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2dbcd;
}

.estimate-acceptance > p:not(.estimate-label) {
  margin: 0 0 10px;
  color: #4f4b42;
  font-size: 8.5px;
  line-height: 1.55;
}

.estimate-acceptance__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 16px;
}

@media (max-width: 360px) {
  .estimate-head {
    flex-wrap: wrap;
  }

  .estimate-brand {
    width: 100%;
  }

  .estimate-type {
    width: 100%;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 6px;
  }
}

.estimate-actions {
  display: flex;
  gap: 7px;
  padding: 15px 0 calc(18px + var(--safe-bottom));
}

/* --------------------------------------------------------------------------
   Quotation PDF export
   -------------------------------------------------------------------------- */

.pdf-export__state {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 15px;
  border: 1px solid var(--stroke);
  border-radius: 17px;
  background: var(--card-soft);
}

.pdf-export__state .spinner {
  flex: none;
  margin-top: 2px;
}

.pdf-export__state strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.pdf-export__state p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.pdf-export__ready {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pdf-export__document {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 17px;
  background: #0c0c0e;
  color: #f7f4ec;
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.72);
}

.pdf-export__document-icon {
  display: grid;
  width: 45px;
  height: 51px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 206, 31, 0.35);
  border-radius: 10px;
  background: rgba(255, 206, 31, 0.12);
  color: var(--yellow);
}

.pdf-export__document-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.pdf-export__document-copy .eyebrow {
  color: rgba(255, 255, 255, 0.48);
}

.pdf-export__document-copy strong {
  overflow: hidden;
  color: #fff;
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-export__document-copy p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9.5px;
}

.pdf-export__file {
  overflow: hidden;
  padding: 0 2px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-export__instruction {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: var(--card-soft);
}

.pdf-export__instruction > span {
  display: flex;
  flex: none;
  margin-top: 1px;
  color: #8a6400;
}

[data-theme="dark"] .pdf-export__instruction > span {
  color: var(--yellow);
}

.pdf-export__instruction p {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.pdf-export__instruction strong {
  color: var(--ink);
  font-weight: 680;
}

.pdf-export__status {
  display: none;
  margin-top: 1px;
  padding: 10px 11px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  font-size: 10px;
  line-height: 1.5;
}

.pdf-export__status.is-loading,
.pdf-export__status.is-success,
.pdf-export__status.is-error {
  display: block;
}

.pdf-export__status.is-loading {
  background: var(--card-soft);
  color: var(--muted);
}

.pdf-export__status.is-success {
  border-color: rgba(47, 111, 68, 0.2);
  background: rgba(47, 111, 68, 0.09);
  color: #2f6f44;
}

.pdf-export__status.is-error {
  border-color: rgba(177, 59, 46, 0.2);
  background: rgba(177, 59, 46, 0.08);
  color: #a8392d;
}

.pdf-export__payment-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid rgba(177, 59, 46, 0.2);
  border-radius: 12px;
  background: rgba(177, 59, 46, 0.07);
  color: #a8392d;
  font-size: 9.5px;
  line-height: 1.45;
}

.pdf-export__payment-warning .ico {
  flex: none;
  margin-top: 1px;
}

.pdf-export__payment-warning strong {
  font-weight: 700;
}

.pdf-export__note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}

.pdf-export__note .ico {
  flex: none;
  margin-top: 1px;
}

.pdf-export__error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(177, 59, 46, 0.2);
  border-radius: 15px;
  background: rgba(177, 59, 46, 0.07);
}

.pdf-export__error-icon {
  display: flex;
  flex: none;
  color: #a8392d;
}

.pdf-export__error strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.pdf-export__error p {
  margin: 3px 0 9px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Payment links and manual tracking
   -------------------------------------------------------------------------- */

.payment-panel {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.payment-panel__intro {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.payment-reference-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(198, 148, 0, 0.16);
  border-radius: 13px;
  background: var(--yellow-soft);
}

.payment-reference-note > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.payment-reference-note .ico {
  flex: none;
  margin-top: 1px;
  color: #8a6400;
}

[data-theme="dark"] .payment-reference-note .ico {
  color: var(--yellow);
}

.payment-reference-note strong {
  font-size: 11px;
}

.payment-reference-note small {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.4;
}

.payment-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.payment-card {
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--card-soft);
}

.payment-card.has-warning {
  border-color: rgba(177, 59, 46, 0.22);
  background: rgba(177, 59, 46, 0.05);
}

.payment-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.payment-card__head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.payment-card__head .eyebrow {
  color: var(--muted);
  font-size: 8px;
}

.payment-card__head strong {
  font-size: 19px;
  letter-spacing: -0.03em;
}

.payment-status {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1.3;
  text-align: right;
}

.payment-status.is-not_requested {
  background: var(--card);
  color: var(--muted);
}

.payment-status.is-requested {
  background: var(--yellow-soft);
  color: #7a5900;
}

[data-theme="dark"] .payment-status.is-requested {
  color: var(--yellow);
}

.payment-status.is-pending {
  background: rgba(176, 111, 19, 0.11);
  color: #8a5a0b;
}

.payment-status.is-confirmed {
  background: rgba(47, 111, 68, 0.1);
  color: #2f6f44;
}

.payment-card__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

.payment-card__link span {
  color: var(--muted);
  font-size: 9px;
}

.payment-card__link strong {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-card__empty {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.payment-card__received {
  margin-top: 7px;
  color: #2f6f44;
  font-size: 9.5px;
  font-weight: 650;
}

.payment-card__warning {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 8px;
  color: #a8392d;
  font-size: 9.5px;
  line-height: 1.45;
}

.payment-card__warning .ico {
  flex: none;
  margin-top: 1px;
}

.payment-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.payment-jump {
  margin-top: 10px;
}

.payment-jump__arrow {
  display: flex;
  flex: none;
  color: var(--muted);
}

.payment-card__open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 650;
  text-decoration: none;
}

.payment-panel__notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 3px;
}

.payment-panel__notes p {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.45;
}

.payment-panel__notes .ico {
  flex: none;
  margin-top: 1px;
}

.payment-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payment-editor__amount {
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 15px;
  background: var(--card-soft);
}

.payment-editor__amount .eyebrow {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.payment-editor__amount strong {
  display: block;
  margin-top: 2px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.payment-editor__amount p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.payment-amount-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  padding: 10px;
  border: 1px solid rgba(198, 148, 0, 0.2);
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--ink-soft);
  font-size: 9.5px;
  line-height: 1.45;
}

.payment-amount-check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #8a6400;
}

.payment-editor__error {
  margin-top: 8px;
}

.payment-editor__open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 9.5px;
  font-weight: 650;
  text-decoration: none;
}

.payment-editor__open .ico {
  flex: none;
}

@media (max-width: 380px) {
  .payment-card__head {
    flex-direction: column;
  }

  .payment-status {
    align-self: flex-start;
  }
}

.restore-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 13px;
}

.restore-summary > div {
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--card-soft);
}

.restore-summary span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 8px;
}

.restore-summary strong {
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Sheets and overlays
   -------------------------------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 9, 0.42);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  animation: fade-in 0.3s ease both;
}

.overlay.is-closing .overlay__scrim {
  animation: fade-out 0.24s ease both;
}

.sheet {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 36px);
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-radius: 30px 30px 0 0;
  background: var(--paper);
  box-shadow: 0 -22px 70px -34px rgba(0, 0, 0, 0.55);
  animation: sheet-in 0.46s var(--ease) both;
}

[data-theme="dark"] .sheet {
  background: #141416;
}

.sheet.is-closing {
  animation: sheet-out 0.25s var(--ease) both;
}

.sheet__grab {
  display: flex;
  flex: none;
  justify-content: center;
  padding: 8px 0 2px;
  cursor: grab;
  touch-action: none;
}

.sheet__grab span {
  width: 37px;
  height: 5px;
  border-radius: 100px;
  background: var(--stroke-strong);
}

.sheet__head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 20px 11px;
}

.sheet__titles {
  min-width: 0;
  flex: 1;
}

.sheet__titles h2 {
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.sheet__titles p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.sheet__head .icon-btn {
  margin-top: -2px;
  color: var(--muted);
}

.sheet__body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 3px 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.sheet__foot {
  display: flex;
  flex: none;
  gap: 7px;
  padding: 11px 20px calc(13px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, var(--paper) 32%);
}

[data-theme="dark"] .sheet__foot {
  background: linear-gradient(180deg, transparent, #141416 32%);
}

.sheet__foot .btn {
  flex: 1;
}

.sheet-copy {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.sheet-copy strong {
  color: var(--ink);
  font-weight: 650;
}

.sheet-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.sheet-form .form-grid {
  margin-top: 0;
}

.sheet-form .field + .field,
.sheet-form .form-grid + .field,
.sheet-form .field + .form-grid {
  margin-top: 12px;
}

.form-error {
  display: none;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(177, 59, 46, 0.18);
  border-radius: 10px;
  background: rgba(177, 59, 46, 0.07);
  color: #a8392d;
  font-size: 10px;
  line-height: 1.45;
}

.form-error.is-visible {
  display: block;
}

/* Action sheet */

.action-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  color: var(--ink);
  text-align: left;
}

.action-item:last-child {
  border-bottom: 0;
}

.action-item__icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--card-soft);
  color: var(--ink-soft);
}

.action-item__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.action-item__text strong {
  font-size: 11.5px;
  font-weight: 650;
}

.action-item__text small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.action-item__chevron {
  flex: none;
  color: var(--muted);
}

.action-item--danger .action-item__text strong {
  color: #b13b2e;
}

.action-item--danger .action-item__icon {
  border-color: rgba(190, 60, 45, 0.13);
  background: rgba(190, 60, 45, 0.09);
  color: #b13b2e;
}

/* --------------------------------------------------------------------------
   Share sheet
   -------------------------------------------------------------------------- */

.share-preview {
  padding: 13px 14px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--card-soft);
}

.share-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.share-preview__head strong {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.share-preview__head span {
  color: var(--muted);
  font-size: 8.5px;
}

.share-message {
  max-height: 176px;
  overflow-y: auto;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
  -webkit-overflow-scrolling: touch;
}

.share-photos {
  margin-top: 15px;
}

.share-photos__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.share-photos__head strong {
  font-size: 10.5px;
  font-weight: 650;
}

.share-photos__head button {
  padding: 2px 0;
  border: 0;
  background: none;
  color: #8a6400;
  font-size: 9px;
  font-weight: 650;
}

[data-theme="dark"] .share-photos__head button {
  color: var(--yellow);
}

.share-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.share-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 11px;
  background: var(--card-soft);
  aspect-ratio: 1;
}

.share-photo input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.share-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-photo:has(input:checked) {
  border-color: var(--yellow);
}

.share-photo__check {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: transparent;
  opacity: 0.9;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.share-photo input:checked ~ .share-photo__check {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #171204;
  opacity: 1;
}

.share-toggle {
  margin-top: 10px;
}

.share-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.share-actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}

.share-actions__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.share-actions .btn {
  width: 100%;
}

.share-actions__wa {
  background: #25d366;
  color: #063b1c;
  box-shadow: 0 14px 28px -16px rgba(37, 211, 102, 0.55);
}

.share-actions__hint {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.4;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toast-root {
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  left: 50%;
  z-index: 200;
  display: flex;
  width: min(calc(100% - 30px), 420px);
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(13, 13, 15, 0.93);
  color: #f7f4ec;
  box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.65);
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-8px) scale(0.985);
  transition: opacity 0.24s, transform 0.3s var(--ease);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast__icon {
  display: flex;
  flex: none;
  margin-top: 1px;
  color: var(--yellow);
}

.toast--error .toast__icon {
  color: #ff8d7a;
}

.toast--success .toast__icon {
  color: #87e0a5;
}

.toast__text {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: rgba(5, 5, 6, 0.95);
  color: #fff;
  animation: fade-in 0.24s ease both;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.lightbox.is-closing {
  animation: fade-out 0.2s ease both;
}

.lightbox__close {
  position: absolute;
  top: calc(var(--safe-top) + 12px);
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lightbox__stage {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 63px 12px 8px;
  touch-action: pan-y;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox__stage img.is-loaded {
  opacity: 1;
}

.lightbox__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.lightbox__loader.is-hidden {
  display: none;
}

.lightbox__loader .spinner {
  border-color: rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
}

.lightbox__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 20px calc(18px + env(safe-area-inset-bottom, 0px));
}

.lightbox__nav {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.lightbox__nav:disabled {
  opacity: 0.3;
}

.lightbox__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9.5px;
  text-align: center;
}

.lightbox__meta span:first-child {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Loading, boot and welcome
   -------------------------------------------------------------------------- */

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--stroke-strong);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 44px 0;
  color: var(--muted);
  font-size: 11px;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0b0b0d;
  background-image:
    radial-gradient(circle at 74% 18%, rgba(255, 206, 31, 0.09), transparent 32%),
    url("../assets/brand/honeycomb.svg");
  background-repeat: no-repeat;
  background-position: center, center 18%;
  background-size: auto, min(118vw, 720px);
  color: #f7f4ec;
  transition: opacity 0.55s ease, transform 0.55s var(--ease);
}

.boot.is-done {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.014);
}

.boot__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding: 6px;
  border: 1px solid rgba(255, 206, 31, 0.16);
  border-radius: 30px;
  background: #0b0b0c;
  box-shadow: 0 30px 60px -20px rgba(255, 206, 31, 0.2);
}

.boot__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.boot__wordmark {
  margin-top: 21px;
  padding-left: 0.3em;
  color: #f7f4ec;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.3em;
}

.boot__tagline {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-align: center;
}

.boot__spinner {
  width: 21px;
  height: 21px;
  margin-top: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.boot-error {
  display: flex;
  max-width: 340px;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 28px;
  text-align: center;
}

.boot-error__icon {
  color: var(--yellow);
}

.boot-error h1 {
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}

.boot-error p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11.5px;
  line-height: 1.6;
}

.welcome {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: calc(var(--safe-top) + 26px) 24px calc(var(--safe-bottom) + 26px);
  background: #0b0b0d;
  color: #f7f4ec;
  animation: fade-in 0.45s ease both;
}

.welcome__glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 31, 0.32), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.welcome__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("../assets/brand/honeycomb.svg"),
    linear-gradient(rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
  background-size: min(82vw, 620px), 36px 36px, 36px 36px;
  background-position: right -120px top -120px, 0 0, 0 0;
  background-repeat: no-repeat, repeat, repeat;
  -webkit-mask-image: radial-gradient(85% 65% at 80% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(85% 65% at 80% 0%, #000 0%, transparent 70%);
}

.welcome__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.welcome__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.welcome__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome__wordmark {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.24em;
}

.welcome__tagline {
  color: rgba(255, 206, 31, 0.72);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.welcome__eyebrow {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8.5px;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.welcome h1 {
  margin-top: 13px;
  color: #fff;
  font-size: 45px;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.welcome h1 span {
  color: var(--yellow);
}

.welcome__lead {
  max-width: 330px;
  margin-top: 17px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.55;
}

.welcome__features {
  display: flex;
  flex-direction: column;
  margin-top: 27px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.welcome-feature > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  border: 1px solid rgba(255, 206, 31, 0.15);
  border-radius: 12px;
  background: rgba(255, 206, 31, 0.09);
  color: var(--yellow);
}

.welcome-feature div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.welcome-feature strong {
  color: #fff;
  font-size: 11.5px;
  font-weight: 650;
}

.welcome-feature small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9.5px;
  line-height: 1.4;
}

.welcome__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 26px;
}

.welcome__actions .btn {
  min-height: 48px;
  font-size: 13px;
}

.btn--welcome-ghost {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.welcome__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.33);
  font-size: 8.5px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Fallbacks
   -------------------------------------------------------------------------- */

.error-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 28px 22px;
  border-radius: 25px;
  text-align: center;
}

.error-panel__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: rgba(177, 59, 46, 0.09);
  color: #b13b2e;
}

.error-panel h1 {
  font-size: 19px;
  letter-spacing: -0.025em;
}

.error-panel p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.error-panel .btn {
  margin-top: 18px;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 30px;
  background: #0b0b0d;
  color: #f7f4ec;
  font-size: 15px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 374px) {
  :root {
    --page-x: 16px;
  }

  .screen-head {
    padding-top: 12px;
  }

  .screen-title {
    font-size: 34px;
  }

  .today-intro h1 {
    font-size: 38px;
  }

  .hero-card {
    padding: 16px;
  }

  .hero-card h2 {
    font-size: 23px;
  }

  .stat-tile {
    padding: 13px;
  }

  .stat-tile__value {
    font-size: 25px;
  }

  .stat-tile--wide .stat-tile__value {
    font-size: 28px;
  }

  .week-chart {
    gap: 3px;
    padding-left: 8px;
  }

  .timeline-row {
    grid-template-columns: 34px 10px 1fr;
    gap: 7px;
  }

  .timeline-card {
    gap: 8px;
    padding: 11px 10px;
  }

  .timeline-card__side .status {
    display: none;
  }

  .action-tile {
    font-size: 8px;
  }

  .detail-title h1 {
    font-size: 27px;
  }

  .bottom-bar__sum strong {
    font-size: 15px;
  }

  .customer-stats strong {
    font-size: 12.5px;
  }

  .welcome {
    padding-right: 20px;
    padding-left: 20px;
  }

  .welcome h1 {
    font-size: 40px;
  }
}

@media (max-height: 700px) {
  .welcome__eyebrow {
    margin-top: 26px;
  }

  .welcome h1 {
    font-size: 37px;
  }

  .welcome__features {
    margin-top: 20px;
  }

  .welcome-feature {
    padding: 9px 0;
  }

  .welcome__actions {
    margin-top: 20px;
  }
}

@media (min-width: 620px) {
  .overlay {
    align-items: center;
    padding: 20px;
  }

  .sheet {
    max-height: calc(100dvh - 60px);
    border-radius: 30px;
  }

  .page--detail {
    padding-top: 18px;
    padding-bottom: 30px;
  }

  .page--detail .detail-hero {
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
  }

  .page--detail .detail-content {
    margin-top: -24px;
    padding-bottom: 26px;
    border-radius: 28px;
  }

  .bottom-bar,
  .form-savebar {
    bottom: 18px;
  }

  .detail-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .detail-topbar {
    top: calc(var(--safe-top) + 28px);
    right: 28px;
    left: 28px;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes sheet-in {
  from { transform: translate3d(0, 100%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes sheet-out {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 100%, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Print — quotes and job cost sheets
   -------------------------------------------------------------------------- */

@media print {
  html,
  body {
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    color: #000 !important;
  }

  /*
   * The screen has fixed, filtered ambient layers on body::before/after.
   * iOS print compositing turns those layers into a black rectangle with a
   * yellow glow, so they must be removed from the printed document entirely.
   */
  body::before,
  body::after {
    display: none !important;
    content: none !important;
  }

  #tabbar,
  #sheet-root,
  #toast-root,
  #lightbox-root,
  #welcome-root,
  #boot,
  .page--estimate > :not(#estimate-document) {
    display: none !important;
  }

  .estimate-doc {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 4px solid #ffce1f !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #000 !important;
    font-size: 9.5pt;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #app,
  .view,
  .page--estimate {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    animation: none !important;
  }

  .view {
    overflow: visible !important;
  }

  .estimate-actions,
  .estimate-topbar,
  .no-print {
    display: none !important;
  }

  .estimate-head {
    padding-bottom: 12px;
  }

  .estimate-brand {
    gap: 9px;
  }

  .estimate-brand__mark {
    width: 38px;
    height: 38px;
  }

  .estimate-brand strong {
    font-size: 15pt;
    letter-spacing: 0.02em;
  }

  .estimate-brand span {
    font-size: 8.5pt;
  }

  .estimate-brand__lockup {
    width: 88px;
    margin-bottom: 3px;
  }

  .estimate-type span {
    font-size: 7pt;
  }

  .estimate-type strong {
    font-size: 13pt;
  }

  .estimate-contact {
    gap: 2px 10px;
    padding: 7px 0 10px;
    font-size: 8pt;
  }

  .estimate-meta {
    gap: 10px 18px;
    padding-bottom: 10px;
  }

  .estimate-meta span {
    font-size: 7pt;
  }

  .estimate-meta strong {
    font-size: 9pt;
  }

  .estimate-parties {
    gap: 16px;
    padding: 12px 0;
  }

  .estimate-parties strong {
    font-size: 10.5pt;
  }

  .estimate-parties p,
  .estimate-description,
  .estimate-table td,
  .estimate-table td strong {
    font-size: 9pt;
  }

  .estimate-table th,
  .estimate-table td span {
    font-size: 7.5pt;
  }

  .estimate-table tfoot td {
    font-size: 8pt;
  }

  .estimate-table tfoot .estimate-total td {
    font-size: 10.5pt;
  }

  .estimate-table tfoot .estimate-total td:last-child {
    font-size: 16pt;
  }

  .estimate-table tfoot .estimate-currency {
    font-size: 6.5pt;
  }

  .estimate-terms {
    margin-top: 12px;
  }

  .estimate-terms h3 {
    margin: 9px 0 3px;
    font-size: 7pt;
    break-after: avoid;
  }

  .estimate-terms p {
    font-size: 7.4pt;
    orphans: 3;
    widows: 3;
  }

  .estimate-payment {
    margin-top: 10px;
    padding-top: 8px;
  }

  .estimate-payment__rows > div {
    font-size: 8.5pt;
  }

  .estimate-payment__balance strong {
    font-size: 10pt;
  }

  .estimate-paydetails {
    margin-top: 9px;
    padding-top: 8px;
  }

  .estimate-paydetails__methods {
    font-size: 8pt;
  }

  .estimate-paydetails__grid span {
    font-size: 6.5pt;
  }

  .estimate-paydetails__grid strong {
    font-size: 8pt;
  }

  .estimate-paydetails__reference,
  .estimate-paydetails__note {
    font-size: 7.4pt;
  }

  .estimate-cardpayments {
    break-inside: avoid;
  }

  .estimate-cardpayments__row {
    padding: 4px 0;
  }

  .estimate-cardpayments__row a {
    color: #17150f;
    font-size: 7.4pt;
  }

  .estimate-cancel-form {
    padding: 6px 8px;
  }

  .estimate-cancel-form p {
    font-size: 7.2pt;
  }

  .estimate-line {
    height: 12px;
  }

  .estimate-signature-grid {
    gap: 14px;
  }

  .estimate-signature-grid small,
  .estimate-acceptance__grid small {
    font-size: 6.8pt;
  }

  .estimate-acceptance {
    margin-top: 12px;
    padding-top: 9px;
  }

  .estimate-acceptance > p:not(.estimate-label) {
    font-size: 7.8pt;
  }

  .estimate-acceptance__grid {
    gap: 12px;
  }

  .estimate-foot {
    gap: 14px;
    margin-top: 18px;
  }

  .estimate-foot strong {
    font-size: 9pt;
  }

  .estimate-foot span {
    font-size: 7.5pt;
  }

  .estimate-watermark {
    margin-top: 14px;
    font-size: 6.5pt;
  }

  .estimate-watermark img {
    width: 14px;
    height: 14px;
  }

  .estimate-table tr,
  .estimate-payment,
  .estimate-paydetails,
  .estimate-cancel-form,
  .estimate-signature-grid,
  .estimate-acceptance,
  .estimate-foot {
    break-inside: avoid;
  }

  @page {
    size: A4;
    margin: 12mm 13mm;
  }
}
