:root {
  color-scheme: light;
  --bg: #f3eee4;
  --ink: #17211e;
  --muted: #6e746e;
  --line: #ded5c5;
  --panel: #fffaf0;
  --panel-strong: #f8efd8;
  --brand: #13231f;
  --brand-2: #24443b;
  --accent: #c9a24a;
  --accent-2: #f0d993;
  --danger: #a43b2b;
  --ok: #2f704d;
  --shadow: 0 18px 55px rgba(19, 35, 31, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(19, 35, 31, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(19, 35, 31, .028) 1px, transparent 1px),
    radial-gradient(circle at 18% 14%, rgba(201, 162, 74, .2), transparent 34rem),
    linear-gradient(135deg, #fbf5e8 0%, #efe5d3 50%, #dfd4c1 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100svh;
  max-width: 1320px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 22px calc(108px + env(safe-area-inset-bottom));
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 6vw, 60px);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.login-screen {
  min-height: calc(100svh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
}

.brand-card,
.login-form,
.hero-panel,
.panel,
.metric,
.list-card,
.assistant-panel,
.quote-layout,
.order-form,
.agenda-form,
.product-form,
.catalog-form,
.catalog-preview {
  border: 1px solid rgba(222, 213, 197, .82);
  border-radius: 8px;
  background: rgba(255, 250, 240, .86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-card {
  position: relative;
  min-height: min(720px, calc(100svh - 80px));
  display: grid;
  align-content: center;
  gap: clamp(28px, 4vw, 44px);
  overflow: hidden;
  padding: clamp(34px, 5vw, 70px);
  color: white;
  background:
    linear-gradient(110deg, rgba(19, 35, 31, .98) 0%, rgba(19, 35, 31, .94) 42%, rgba(19, 35, 31, .7) 68%, rgba(19, 35, 31, .5) 100%),
    url("./assets/brand-products.png") right center / cover no-repeat,
    linear-gradient(145deg, rgba(19, 35, 31, .98), rgba(36, 68, 59, .9));
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: min(430px, 42vw);
  aspect-ratio: 1;
  background: url("./assets/logo-original.png") center / contain no-repeat;
  opacity: .1;
  pointer-events: none;
}

.brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 240, .04) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 250, 240, .035) 0 1px, transparent 1px 92px);
  pointer-events: none;
}

.brand-card > * {
  position: relative;
  z-index: 1;
}

.brand-card .lead {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 250, 240, .78);
  font-size: clamp(17px, 1.6vw, 21px);
}

.brand-logo {
  width: min(320px, 34vw);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .24));
}

.login-form {
  display: grid;
  gap: 16px;
  align-self: center;
  padding: clamp(24px, 3vw, 36px);
}

.form-title p,
.form-message {
  margin-bottom: 0;
  font-size: 14px;
}

.form-message {
  min-height: 20px;
  color: var(--danger);
}

label {
  display: grid;
  gap: 7px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, .18);
}

textarea {
  resize: vertical;
}

.primary-button,
.quick-actions button,
.assistant-form button {
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fffaf0;
  padding: 13px 17px;
  font-weight: 900;
}

.primary-button.compact {
  align-self: end;
  min-width: 180px;
}

.text-button {
  min-height: 44px;
  border-radius: 8px;
  background: rgba(19, 35, 31, .08);
  color: var(--brand);
  padding: 0 14px;
  font-weight: 850;
}

.app-panel {
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(19, 35, 31, .16));
}

.topbar h1 {
  font-size: 32px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-size: 22px;
  flex: 0 0 auto;
}

.tabs {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 20;
  width: min(820px, calc(100vw - 18px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  border: 1px solid rgba(222, 213, 197, .92);
  border-radius: 14px;
  background: rgba(255, 250, 240, .92);
  box-shadow: 0 18px 60px rgba(19, 35, 31, .22);
  backdrop-filter: blur(16px);
}

.tab {
  min-height: 56px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.tab.active {
  background: var(--brand);
  color: white;
}

.tab.primary {
  background: rgba(201, 162, 74, .18);
  color: var(--brand);
}

.tab.primary.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.view {
  display: grid;
  gap: 16px;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, .95), rgba(248, 239, 216, .92));
}

.hero-panel p {
  margin-bottom: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 112px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.metric strong {
  font-size: 34px;
  line-height: 1;
}

.panel {
  padding: 18px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.section-header input {
  max-width: 430px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-card {
  display: grid;
  gap: 10px;
  min-height: 86px;
  padding: 15px;
}

.list-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.list-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #ebe4d6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.low {
  background: #f7d8d3;
  color: var(--danger);
}

.badge.ok {
  background: #dcebdd;
  color: var(--ok);
}

.quote-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.quote-workspace {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(420px, 1.14fr);
  gap: 14px;
  align-items: start;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.form-grid-4 {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.form-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions button {
  min-height: 38px;
  border-radius: 8px;
  background: rgba(19, 35, 31, .08);
  color: var(--brand);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.blasco-panel {
  display: grid;
  gap: 12px;
}

.blasco-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.blasco-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.blasco-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(222, 213, 197, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
}

.blasco-card img {
  width: 136px;
  height: 136px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-strong);
}

.blasco-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
}

.blasco-card p,
.muted-note {
  margin-bottom: 6px;
  font-size: 12px;
}

.blasco-data,
.supplier-context-data {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
}

.blasco-data div,
.supplier-context-data div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(222, 213, 197, .65);
  padding-bottom: 4px;
}

.blasco-data dt,
.supplier-context-data dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.blasco-data dd,
.supplier-context-data dd {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.primary-mini {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
  color: #fffaf0 !important;
}

.supplier-context-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(201, 162, 74, .55);
  border-radius: 8px;
  background: rgba(255, 248, 226, .76);
  padding: 12px;
}

.supplier-context-card img {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
  background: white;
}

.supplier-context-card h3 {
  margin-bottom: 8px;
  color: var(--brand);
}

.supplier-context-card p:last-child {
  margin-bottom: 0;
  font-size: 13px;
}

.quote-preview-panel {
  overflow: auto;
  max-height: calc(100svh - 170px);
  border: 1px solid rgba(222, 213, 197, .82);
  border-radius: 8px;
  background: rgba(255, 250, 240, .72);
  box-shadow: var(--shadow);
  padding: 16px;
}

.quote-preview-document {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 816px;
  min-height: 1056px;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  color: #1e1912;
  box-shadow: 0 20px 46px -16px rgba(30, 25, 18, .4);
}

.quote-doc-topbar {
  height: 7px;
  background: linear-gradient(90deg, #4a3521, #b98a45, #d9b978);
}

.quote-doc-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 42px 54px 44px;
}

.quote-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.quote-doc-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quote-doc-brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.quote-doc-brand h1 {
  margin: 0;
  color: #1e1912;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.1;
}

.quote-doc-brand p {
  margin: 8px 0 0;
  color: #b98a45;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.quote-doc-title {
  text-align: right;
}

.quote-doc-title h2 {
  margin: 0 0 6px;
  color: #b98a45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.quote-doc-title p {
  margin: 0 0 3px;
  color: #6e6455;
  font-size: 11px;
}

.quote-doc-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.quote-doc-box {
  border: 1px solid #e9e1d0;
  border-radius: 6px;
  background: #faf6ee;
  padding: 12px;
}

.quote-doc-box h3 {
  margin: 0 0 9px;
  color: #b98a45;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quote-doc-fields {
  display: grid;
  gap: 6px;
}

.quote-doc-fields div {
  display: grid;
  grid-template-columns: 92px 7px 1fr;
  align-items: end;
  gap: 4px;
  font-size: 10.5px;
}

.quote-doc-fields span {
  color: #6e6455;
}

.quote-doc-fields b {
  color: #b98a45;
  font-weight: 600;
}

.quote-doc-fields strong {
  min-height: 14px;
  border-bottom: 1px solid #e2d8c6;
  color: #1e1912;
  font-weight: 500;
  line-height: 1.25;
}

.quote-doc-items {
  margin-bottom: 20px;
}

.quote-doc-row {
  display: grid;
  grid-template-columns: .32fr 2.2fr .7fr 1fr 1fr;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid #f0e9da;
  font-size: 12px;
}

.quote-doc-row.head {
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #1e1912;
  color: #f3ecdd;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.quote-doc-row:nth-child(odd):not(.head) {
  background: #fbf8f1;
}

.quote-doc-row span:nth-child(3),
.quote-doc-row span:nth-child(4),
.quote-doc-row span:nth-child(5) {
  text-align: right;
}

.quote-doc-row span:last-child {
  color: #1e1912;
  font-weight: 700;
}

.quote-doc-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
}

.quote-doc-observations {
  flex: 1;
  color: #6e6455;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: justify;
}

.quote-doc-observations strong {
  display: block;
  margin-bottom: 4px;
  color: #1e1912;
  font-size: 11px;
  font-weight: 700;
}

.quote-doc-observations p {
  margin: 0;
}

.quote-doc-totals {
  width: 220px;
  color: #6e6455;
  font-size: 12.5px;
}

.quote-doc-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
}

.quote-doc-totals strong {
  color: #6e6455;
  font-weight: 700;
}

.quote-doc-totals .grand {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e9e1d0;
  color: #1e1912;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.quote-doc-totals .grand strong {
  color: #b98a45;
  font-weight: 500;
}

.quote-doc-seal {
  display: grid;
  justify-items: center;
  width: 220px;
  margin: 4px auto 0;
  text-align: center;
}

.quote-doc-seal img {
  width: 220px;
  height: auto;
  opacity: .9;
}

.quote-doc-seal strong {
  margin-top: -2px;
  color: #b98a45;
  font-size: 10.5px;
}

.quote-doc-footer {
  margin-top: auto;
  padding-top: 16px;
}

.quote-doc-terms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quote-doc-terms div {
  padding: 0 12px;
}

.quote-doc-terms .with-border {
  border-left: 1px solid #d9b978;
}

.quote-doc-terms strong {
  display: block;
  color: #b98a45;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.quote-doc-terms p {
  margin: 8px 0 0;
  color: #1e1912;
  font-size: 9px;
  line-height: 1.18;
  text-align: justify;
}

.quote-doc-footer > p {
  margin: 16px 0 0;
  color: #1e1912;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  text-align: center;
}

.quote-doc-footer > p strong {
  color: #b98a45;
  font-weight: 500;
}

.quote-doc-corner {
  display: block;
  width: 92px;
  height: 52px;
  margin: -4px 0 0 auto;
  border-bottom: 2px solid #d9b978;
  border-left: 2px solid #d9b978;
}

.quote-doc-gradient {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24px;
  background: linear-gradient(90deg, #4a3521 0%, #6e6455 35%, #e9e1d0 46%, #d9b978 51%, #b98a45 62%, #4a3521 100%);
}

.dashboard-grid,
.orders-layout {
  display: grid;
  gap: 14px;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orders-layout {
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  align-items: start;
}

.planner-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.order-form,
.agenda-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.compact-list {
  margin-top: 12px;
}

.mini-card {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(222, 213, 197, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .55);
}

.mini-card strong {
  color: var(--brand);
  font-size: 14px;
}

.mini-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.agenda-calendar {
  display: grid;
  gap: 12px;
}

.agenda-toolbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.icon-button.soft {
  background: rgba(19, 35, 31, .08);
  color: var(--brand);
}

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

.calendar-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 82px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(222, 213, 197, .82);
  border-radius: 8px;
  background: rgba(255, 255, 255, .64);
  color: var(--brand);
  padding: 9px;
  text-align: left;
}

.calendar-day span {
  font-size: 18px;
  font-weight: 950;
}

.calendar-day small {
  width: fit-content;
  border-radius: 999px;
  background: rgba(201, 162, 74, .18);
  color: #6b4d14;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
}

.calendar-day.today {
  border-color: var(--accent);
}

.calendar-day.selected {
  background: var(--brand);
  color: white;
}

.calendar-day.selected small {
  background: rgba(255, 250, 240, .2);
  color: #fffaf0;
}

.muted-day {
  opacity: .38;
}

.order-day-card {
  border-color: rgba(201, 162, 74, .72);
  background: rgba(255, 248, 226, .76);
}

.wide {
  grid-column: 1 / -1;
}

.quote-total {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--brand);
  padding: 0 14px;
  font-weight: 950;
}

.assistant-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.assistant-log {
  display: grid;
  gap: 10px;
  min-height: 240px;
  align-content: start;
}

.message {
  max-width: 760px;
  border-radius: 8px;
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
}

.message.user {
  justify-self: end;
  background: var(--brand);
  color: white;
}

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

.assistant-attachments,
.catalog-input-row,
.catalog-assistant-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.ghost-button {
  min-height: 52px;
  border-radius: 8px;
  background: rgba(19, 35, 31, .08);
  color: var(--brand);
  padding: 0 14px;
  font-weight: 900;
}

.message {
  display: grid;
  gap: 8px;
}

.message small {
  color: inherit;
  opacity: .72;
  font-size: 12px;
}

.message-image {
  width: min(220px, 100%);
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
}

.catalog-workspace {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  gap: 14px;
  align-items: start;
}

.catalog-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.catalog-preview {
  overflow: hidden;
  padding: 10px;
  background: rgba(255, 250, 240, .66);
}

.catalog-sheet {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  width: min(100%, 620px);
  min-height: 876px;
  margin: 0 auto;
  padding: 42px 34px 34px;
  border: 1px solid rgba(185, 101, 34, .72);
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .92), transparent 18rem),
    linear-gradient(135deg, #fffaf0 0%, #fbf2df 48%, #fff7e8 100%);
  color: #3c2111;
  box-shadow:
    inset 0 0 0 14px rgba(255, 252, 242, .72),
    inset 0 0 0 15px rgba(185, 101, 34, .28);
}

.wood-corner {
  position: absolute;
  z-index: 0;
  width: 250px;
  height: 190px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .95;
  pointer-events: none;
}

.wood-corner.top {
  top: -20px;
  left: -20px;
  background-image: url("./assets/catalog-corner-top-left.png");
}

.wood-corner.bottom {
  right: -20px;
  bottom: -20px;
  background-image: url("./assets/catalog-corner-bottom-right.png");
}

.leaf-corner {
  position: absolute;
  z-index: 0;
  width: 150px;
  height: 265px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .42;
  pointer-events: none;
}

.leaf-corner.left {
  left: -8px;
  top: 160px;
  background-image: url("./assets/catalog-leaf-left.png");
}

.leaf-corner.right {
  right: -12px;
  top: 18px;
  background-image: url("./assets/catalog-leaf-right.png");
}

.sheet-logo,
.sheet-kicker,
.catalog-sheet h3,
.sheet-subtitle,
.sheet-product,
.sheet-info-grid,
.sheet-footer {
  position: relative;
  z-index: 1;
}

.sheet-logo {
  justify-self: center;
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(86, 45, 16, .18));
}

.sheet-kicker {
  justify-self: end;
  width: 136px;
  margin: -94px 8px 18px;
  color: #8a4f21;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: .38em;
  line-height: 1.9;
  text-align: right;
  text-transform: uppercase;
}

.catalog-sheet h3 {
  justify-self: center;
  max-width: 94%;
  margin: 0;
  color: #32180c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 900;
  letter-spacing: .09em;
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
}

.sheet-subtitle {
  justify-self: center;
  max-width: 31rem;
  margin: 0;
  color: #6b3a1a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
}

.sheet-product {
  min-height: 238px;
  display: grid;
  place-items: center;
  margin-top: 4px;
  border: 1px solid rgba(204, 126, 49, .58);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 248, 232, .26));
}

.sheet-photo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 232px;
  padding: 10px;
}

.sheet-photo img {
  max-width: 88%;
  max-height: 224px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(86, 45, 16, .22));
}

.sheet-photo span {
  color: rgba(107, 58, 26, .44);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: italic;
}

.catalog-copy {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.catalog-copy p {
  margin-bottom: 0;
}

.catalog-result-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(222, 213, 197, .85);
  border-radius: 8px;
  background: rgba(255, 255, 255, .56);
}

.catalog-result-box strong {
  color: var(--brand);
  font-size: 13px;
}

.sheet-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sheet-info-grid section {
  min-height: 108px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(204, 126, 49, .3);
  border-radius: 2px;
  background: rgba(255, 252, 242, .28);
  backdrop-filter: blur(1px);
}

.sheet-info-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #3b1d0d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sheet-info-grid p,
.sheet-info-grid li {
  color: #5e3a24;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.35;
}

.sheet-info-grid ul {
  margin: 0;
  padding-left: 18px;
}

.sheet-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px solid rgba(184, 104, 37, .42);
  color: #8a4f21;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  text-align: center;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
}

.catalog-actions button,
.download-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(19, 35, 31, .1);
  color: var(--brand);
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
}

.catalog-library-panel {
  margin-top: 2px;
}

.compact-header {
  align-items: center;
}

.catalog-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.catalog-library-card {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(222, 213, 197, .82);
  border-radius: 8px;
  background: rgba(255, 250, 240, .8);
}

.catalog-library-card.fixed-page {
  min-height: 260px;
}

.catalog-library-card.fixed-page img {
  width: 100%;
  aspect-ratio: 1 / 1.36;
  object-fit: cover;
  border: 1px solid rgba(184, 104, 37, .28);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(19, 35, 31, .12);
}

.catalog-library-card.empty-page {
  align-content: center;
  border-style: dashed;
}

.catalog-library-card strong {
  color: var(--brand);
}

.catalog-library-card p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 860px) {
  body {
    background:
      radial-gradient(circle at 50% -12%, rgba(201, 162, 74, .22), transparent 22rem),
      linear-gradient(135deg, #fbf5e8 0%, #eee3d0 100%);
  }

  .shell {
    padding: max(14px, env(safe-area-inset-top)) 12px calc(102px + env(safe-area-inset-bottom));
  }

  .login-screen {
    min-height: calc(100svh - 116px);
    grid-template-columns: 1fr;
    align-content: center;
    gap: 14px;
  }

  .brand-card {
    min-height: auto;
    justify-items: center;
    gap: 18px;
    padding: 28px 20px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(19, 35, 31, .92) 0%, rgba(19, 35, 31, .86) 100%),
      url("./assets/brand-products.png") center / cover no-repeat,
      linear-gradient(145deg, rgba(19, 35, 31, .98), rgba(36, 68, 59, .9));
  }

  .brand-card::before {
    inset: auto 50% -28% auto;
    width: min(280px, 74vw);
    transform: translateX(50%);
    opacity: .08;
  }

  .brand-card .lead {
    max-width: 32rem;
    margin-inline: auto;
    font-size: 16px;
  }

  .brand-logo {
    width: min(230px, 58vw);
    margin-inline: auto;
  }

  .login-form,
  .form-title {
    text-align: center;
  }

  .login-form label {
    text-align: left;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    margin-inline: -12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(222, 213, 197, .72);
    background: rgba(243, 238, 228, .92);
    backdrop-filter: blur(16px);
  }

  .topbar-brand {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .topbar h1 {
    font-size: 25px;
  }

  .topbar-logo {
    width: 46px;
    height: 46px;
  }

  .hero-panel,
  .section-header {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .hero-panel {
    justify-items: center;
  }

  .section-header > div,
  .hero-panel > div {
    display: grid;
    justify-items: center;
  }

  .primary-button.compact,
  .section-header input {
    width: 100%;
    max-width: none;
  }

  .metric-grid,
  .quick-actions,
  .dashboard-grid,
  .quote-layout,
  .quote-workspace,
  .orders-layout,
  .form-grid-2,
  .form-grid-4,
  .product-form {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 80px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .tabs {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    transform: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
  }

  .tab {
    min-height: 58px;
    font-size: 10px;
    padding-inline: 2px;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }

  .assistant-attachments,
  .catalog-input-row,
  .catalog-assistant-tools,
  .blasco-search {
    grid-template-columns: 1fr;
  }

  .quote-preview-panel {
    max-height: none;
  }

  .quote-preview-panel {
    padding: 10px;
  }

  .quote-preview-document {
    width: 816px;
  }

  .quote-doc-content {
    padding: 42px 54px 44px;
  }

  .blasco-card,
  .supplier-context-card {
    grid-template-columns: 1fr;
  }

  .blasco-card img,
  .supplier-context-card img {
    width: 100%;
    height: 190px;
  }

  .calendar-day {
    min-height: 64px;
    padding: 7px;
  }

  .calendar-day span {
    font-size: 15px;
  }

  .calendar-day small {
    font-size: 9px;
    padding: 3px 5px;
  }

  .catalog-workspace,
  .catalog-form {
    grid-template-columns: 1fr;
  }

  .catalog-image-preview {
    min-height: 250px;
  }

  .catalog-sheet {
    min-height: auto;
    width: 100%;
    padding: 26px 18px 20px;
    box-shadow:
      inset 0 0 0 9px rgba(255, 252, 242, .72),
      inset 0 0 0 10px rgba(185, 101, 34, .28);
  }

  .catalog-sheet h3 {
    max-width: 100%;
    font-size: clamp(24px, 7vw, 32px);
    letter-spacing: .035em;
    overflow-wrap: anywhere;
  }

  .wood-corner {
    width: 142px;
    height: 112px;
  }

  .leaf-corner {
    width: 88px;
    height: 154px;
  }

  .sheet-kicker {
    justify-self: center;
    width: auto;
    margin: 0;
    text-align: center;
  }

  .sheet-logo {
    width: 96px;
    height: 96px;
  }

  .sheet-product {
    min-height: 210px;
  }

  .sheet-info-grid,
  .sheet-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-card {
    padding: 24px 18px;
  }

  .brand-logo {
    width: min(205px, 62vw);
  }

  .login-form {
    padding: 20px;
  }

  .text-button {
    display: none;
  }
}

@media print {
  body {
    background: white;
  }

  .topbar,
  .tabs,
  .catalog-form,
  .catalog-actions,
  .catalog-library-panel,
  .section-header,
  .quote-layout,
  .quoteList,
  #quoteList {
    display: none !important;
  }

  .shell {
    max-width: none;
    padding: 0;
  }

  .catalog-workspace {
    display: block;
  }

  .catalog-preview {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .catalog-sheet {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .quote-workspace {
    display: block;
  }

  .quote-preview-panel {
    max-height: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .quote-preview-document {
    max-width: none;
    min-height: 100vh;
    box-shadow: none;
  }
}
