:root {
  color-scheme: light;
  --ink: #1d2a26;
  --ink-soft: #58635e;
  --muted: #87918b;
  --line: #e3e8e2;
  --paper: #ffffff;
  --canvas: #f4f5f0;
  --green: #225d48;
  --green-dark: #194a38;
  --green-light: #e4f2e9;
  --lime: #c7e9a8;
  --amber: #bb6b17;
  --amber-light: #fff1d8;
  --red: #aa5143;
  --red-light: #fff0ed;
  --shadow: 0 16px 42px rgba(28, 49, 39, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(62, 133, 101, 0.28);
  outline-offset: 2px;
}

.app-shell { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(29, 42, 38, 0.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; color: var(--paper); background: var(--green); border-radius: 12px; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-name { font-size: 21px; font-weight: 750; letter-spacing: -0.065em; }
.brand-name span { color: #80a85e; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.home-link { color: var(--green); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.home-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.header-note { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.online-dot { width: 8px; height: 8px; background: #73ae72; border-radius: 50%; box-shadow: 0 0 0 4px rgba(115, 174, 114, 0.12); }

.intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 46px 0 34px; }
.eyebrow, .section-kicker { margin: 0; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; }
.intro h1 { margin: 13px 0 12px; font-size: clamp(33px, 4.1vw, 51px); line-height: 1.08; letter-spacing: -0.06em; font-weight: 700; }
.intro h1 span { color: #78897e; font-weight: 520; }
.intro-description { max-width: 590px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.intro-note { position: relative; flex: 0 0 270px; padding: 21px 22px 20px; overflow: hidden; border: 1px solid #dce7d8; border-radius: 18px; background: #edf4e9; }
.example-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 17px; padding: 14px 17px; border: 1px solid #d4e4d4; border-radius: 12px; background: #edf6ed; color: #315a41; }
.example-banner[hidden] { display: none; }
.example-banner div { display: grid; gap: 3px; }
.example-banner strong { font-size: 12px; }
.example-banner span { color: #627466; font-size: 10px; }
.example-banner a { padding: 9px 12px; border: 1px solid #c7dac8; border-radius: 8px; background: #fff; color: var(--green-dark); font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.example-banner a:hover { background: var(--green-light); }
.note-mark { display: grid; width: 27px; height: 27px; place-items: center; margin-bottom: 16px; border-radius: 9px; color: var(--green); background: var(--lime); font-size: 17px; font-weight: 800; }
.note-title { margin: 0 0 6px; font-size: 13px; font-weight: 750; }
.intro-note p:last-child { max-width: 220px; margin: 0; color: #617166; font-size: 11px; line-height: 1.55; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.metric { min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 17px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; }
.metric-highlight { border-color: #e3cfaa; background: #fffaf0; }
.metric-label { color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.metric strong { margin-top: 4px; font-size: 27px; line-height: 1.15; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.metric-value strong { font-size: 24px; }
.metric-caption { margin-top: 3px; color: var(--muted); font-size: 10px; }

.workspace { display: grid; grid-template-columns: 335px minmax(0, 1fr); align-items: start; gap: 20px; }
.example-mode .workspace { grid-template-columns: minmax(0, 1fr); }
.example-mode .form-panel { display: none; }
.form-panel, .queue-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.form-panel { position: sticky; top: 16px; }
.form-panel form { padding: 23px 22px 19px; }
.form-heading { margin-bottom: 20px; }
.section-kicker { display: flex; align-items: center; gap: 8px; font-size: 9px; }
.section-kicker span { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: var(--green); background: var(--green-light); font-size: 9px; letter-spacing: 0; }
.form-heading h2 { margin: 12px 0 5px; font-size: 20px; letter-spacing: -0.04em; }
.form-heading > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.field-label { display: block; margin: 15px 0 6px; color: #38453f; font-size: 11px; font-weight: 700; }
.field-label span { color: #bd7551; }
.form-panel input, .form-panel select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dfe5df; border-radius: 9px; background: #fff; color: var(--ink); font-size: 12px; transition: border-color 140ms, box-shadow 140ms; }
.form-panel input::placeholder { color: #a4aca7; }
.form-panel input:focus, .form-panel select:focus { border-color: #78a68a; box-shadow: 0 0 0 3px rgba(81, 145, 106, 0.1); outline: none; }
.field-hint { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.money-input { position: relative; }
.money-input > span { position: absolute; top: 50%; left: 11px; color: var(--muted); font-size: 12px; transform: translateY(-50%); }
.money-input input { padding-left: 35px; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.date-grid input { min-width: 0; padding: 8px; font-size: 11px; }
.form-panel select { cursor: pointer; }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 19px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 10px; font-size: 11px; font-weight: 750; transition: transform 120ms, background 120ms, border-color 120ms; }
.button:active { transform: translateY(1px); }
.button-primary { flex: 1; color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-primary span { font-size: 18px; line-height: 1; }
.button-quiet { color: var(--ink-soft); background: #f0f3ef; }
.button-quiet:hover { background: #e7ece7; }
.form-feedback { min-height: 0; margin: 0; color: var(--green); font-size: 11px; }
.form-feedback:not(:empty) { margin-top: 9px; }
.form-feedback.is-error { color: var(--red); }
.privacy-note { display: flex; align-items: flex-start; gap: 7px; margin: 17px 0 0; padding-top: 13px; border-top: 1px solid #edf0ec; color: var(--muted); font-size: 10px; line-height: 1.45; }
.privacy-note span { color: var(--green); font-size: 12px; }

.queue-panel { min-width: 0; padding: 23px 22px 17px; }
.queue-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.queue-header h2 { display: flex; align-items: center; gap: 9px; margin: 11px 0 4px; font-size: 22px; letter-spacing: -0.045em; }
.queue-total { display: inline-grid; min-width: 25px; height: 25px; place-items: center; padding: 0 6px; border-radius: 8px; color: var(--green); background: var(--green-light); font-size: 11px; letter-spacing: 0; }
.queue-description { margin: 0; color: var(--muted); font-size: 11px; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(240px, 42%); min-height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: #7e8a83; }
.search-box > span { font-size: 20px; line-height: 1; transform: rotate(-18deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #9ca69f; }
.queue-tools { margin-top: 21px; padding-bottom: 14px; border-bottom: 1px solid #edf0ec; }
.filter-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.filter-button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; color: #66736b; background: transparent; font-size: 10px; font-weight: 650; white-space: nowrap; }
.filter-button:hover { background: #f5f7f4; }
.filter-button.is-active { border-color: #d4e5d9; color: var(--green); background: #edf5ef; }
.filter-button span { color: #94a098; font-size: 9px; font-variant-numeric: tabular-nums; }
.filter-button.is-active span { color: var(--green); }
.quote-list { display: grid; gap: 10px; padding-top: 13px; }
.quote-card { padding: 16px; border: 1px solid #e8ece7; border-radius: 13px; background: #fff; transition: border-color 140ms, box-shadow 140ms; }
.quote-card:hover { border-color: #d8e3da; box-shadow: 0 8px 20px rgba(37, 66, 48, 0.045); }
.quote-card.is-due { border-left: 3px solid #d49b48; padding-left: 14px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.client-block { min-width: 0; display: flex; align-items: center; gap: 10px; }
.avatar { flex: 0 0 36px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: #315d48; background: #e8f1e8; font-size: 11px; font-weight: 800; letter-spacing: -0.02em; }
.client-copy { min-width: 0; }
.client-copy h3 { margin: 0 0 3px; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.client-copy p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 7px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-aguardando { color: #876019; background: #fff4da; }
.status-negociando { color: #365f87; background: #e9f2fb; }
.status-fechado { color: #286a4d; background: #e7f4ea; }
.status-perdido { color: #8a625e; background: #f5eeed; }
.card-details { display: flex; align-items: center; gap: 22px; margin: 14px 0 12px; padding: 11px 12px; border-radius: 9px; background: #f7f8f5; }
.detail-item { display: grid; gap: 4px; }
.detail-label { color: #8a958e; font-size: 9px; }
.detail-value { color: #3b4942; font-size: 10px; font-weight: 700; }
.detail-item.amount { margin-left: auto; text-align: right; }
.detail-item.amount .detail-value { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.due-copy { display: flex; align-items: center; gap: 7px; color: #68766d; font-size: 10px; font-weight: 650; }
.due-icon { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: var(--green); background: #edf4ed; font-size: 11px; }
.due-copy.is-overdue { color: var(--red); }
.due-copy.is-overdue .due-icon { color: var(--red); background: var(--red-light); }
.due-copy.is-today { color: var(--amber); }
.due-copy.is-today .due-icon { color: var(--amber); background: var(--amber-light); }
.card-actions { display: flex; align-items: center; gap: 8px; }
.demo-readonly { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 8px; background: #f0f4ed; color: #667468; font-size: 9px; font-weight: 700; }
.status-select { max-width: 135px; min-height: 31px; padding: 0 22px 0 8px; border: 1px solid #e5e9e4; border-radius: 8px; color: #67736c; background: #fff; font-size: 9px; cursor: pointer; }
.whatsapp-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 1px solid #c8ddcd; border-radius: 8px; color: #236046; background: #f0f8f1; font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.whatsapp-link:hover { border-color: #9ac2a3; background: #e6f4e8; }
.whatsapp-link span { font-size: 12px; }
.card-text-button { min-height: 30px; padding: 0 3px; border: 0; color: #7c8981; background: transparent; font-size: 9px; font-weight: 650; }
.card-text-button:hover { color: var(--green); }
.empty-state { display: grid; place-items: center; padding: 48px 20px; text-align: center; }
.empty-mark { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 12px; border: 1px solid #e2e9df; border-radius: 16px; color: var(--green); background: #f0f5ed; font-size: 22px; }
.empty-state h3 { margin: 0 0 5px; font-size: 14px; letter-spacing: -0.02em; }
.empty-state p { max-width: 300px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.queue-footnote { margin: 15px 0 0; padding-top: 12px; border-top: 1px solid #edf0ec; color: #8a958e; font-size: 9px; line-height: 1.5; }
.site-footer { display: flex; align-items: center; gap: 8px; padding: 25px 0 32px; color: #8c9690; font-size: 10px; }
.site-footer span { color: #596d60; font-weight: 750; letter-spacing: -0.04em; }
.product-prompt { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 22px 0 5px; padding: 20px 22px; border: 1px solid #dce7d8; border-radius: 16px; background: #edf4e9; }
.product-prompt-copy { max-width: 720px; }
.product-prompt-kicker { margin: 0 0 7px; color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.product-prompt h2 { margin: 0 0 6px; color: var(--ink); font-size: 17px; line-height: 1.25; letter-spacing: -.035em; }
.product-prompt p:not(.product-prompt-kicker) { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.product-prompt .product-prompt-note { margin-top: 7px !important; color: #748078 !important; font-size: 9px !important; }
.product-prompt a { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 15px; border-radius: 10px; background: var(--green); color: #fff; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.product-prompt a:hover { background: var(--green-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .app-shell { width: min(100% - 40px, 760px); }
  .intro { align-items: flex-start; }
  .intro-note { flex-basis: 225px; }
  .workspace { grid-template-columns: 1fr; }
  .form-panel { position: static; }
  .form-panel form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .form-heading, .privacy-note, .form-actions, .form-feedback { grid-column: 1 / -1; }
  .form-heading { margin-bottom: 4px; }
  .field-label { margin-top: 13px; }
  .date-grid { align-self: end; }
  .date-grid .field-label { margin-top: 13px; }
}

@media (max-width: 640px) {
  .app-shell { width: calc(100% - 28px); }
  .site-header { height: 68px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-name { font-size: 19px; }
  .header-note { gap: 7px; font-size: 10px; }
  .header-tools { gap: 10px; }
  .home-link { font-size: 10px; }
  .intro { display: block; padding: 32px 0 22px; }
  .intro h1 { margin-top: 11px; font-size: clamp(32px, 9vw, 44px); }
  .intro-description { font-size: 13px; }
  .intro-note { display: none; }
  .example-banner { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .metric { min-height: 95px; padding: 14px; border-radius: 12px; }
  .metric strong { font-size: 24px; }
  .metric-value strong { font-size: 19px; }
  .metric-caption { font-size: 9px; }
  .workspace { gap: 12px; }
  .product-prompt { align-items: flex-start; flex-direction: column; gap: 13px; padding: 17px; }
  .product-prompt h2 { font-size: 15px; }
  .product-prompt a { min-height: 40px; }
  .form-panel, .queue-panel { border-radius: 14px; }
  .form-panel form { display: block; padding: 19px 16px 16px; }
  .form-heading { margin-bottom: 17px; }
  .field-label { margin-top: 13px; }
  .date-grid { display: grid; }
  .date-grid input { font-size: 10px; }
  .queue-panel { padding: 19px 14px 14px; }
  .queue-header { display: block; }
  .queue-header h2 { font-size: 20px; }
  .search-box { width: 100%; margin-top: 15px; }
  .queue-tools { margin-top: 14px; padding-bottom: 10px; }
  .filter-list { margin-right: -14px; padding-right: 14px; }
  .filter-button { min-height: 30px; padding: 0 8px; font-size: 9px; }
  .quote-list { gap: 8px; padding-top: 10px; }
  .quote-card { padding: 13px 11px; }
  .quote-card.is-due { padding-left: 9px; }
  .card-top { align-items: flex-start; }
  .avatar { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
  .client-copy h3 { font-size: 12px; }
  .client-copy p { font-size: 9px; }
  .status-pill { min-height: 21px; padding: 0 6px; font-size: 8px; }
  .card-details { gap: 12px; margin: 11px 0 10px; padding: 9px; }
  .detail-label { font-size: 8px; }
  .detail-value { font-size: 9px; }
  .detail-item.amount .detail-value { font-size: 11px; }
  .card-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
  .card-actions { width: 100%; flex-wrap: wrap; gap: 7px; }
  .status-select { flex: 1 1 122px; max-width: none; }
  .whatsapp-link { flex: 1 1 auto; }
  .card-text-button { padding: 0 5px; }
  .empty-state { padding: 38px 12px; }
  .site-footer { align-items: flex-start; padding: 20px 0 26px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
