/* Production Hub layout, on the Lucro design system tokens (lucro/tokens.css). */
* { box-sizing: border-box; }
body { margin: 0; background: var(--lucro-surface-2); color: var(--lucro-ink); font-family: var(--lucro-font-sans); font-weight: 500; font-size: 14px; }
h1, h2, h3 { font-weight: var(--lucro-weight-light); letter-spacing: var(--lucro-tracking-tight); color: var(--lucro-teal-600); margin: 0; }
h1 { font-size: var(--lucro-text-2xl); } h2 { font-size: var(--lucro-text-xl); } h3 { font-size: var(--lucro-text-lg); }
.accent { color: var(--lucro-lime-500); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: var(--lucro-tracking-wide); text-transform: uppercase; color: var(--lucro-lime-600); }
.muted { color: var(--lucro-muted); } .right { text-align: right; } .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; }

/* shell */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--lucro-teal-700); color: var(--lucro-teal-200); padding: 24px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { color: #fff; font-size: 26px; font-weight: 200; letter-spacing: -0.02em; padding: 0 10px; }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: var(--lucro-tracking-wide); text-transform: uppercase; color: var(--lucro-lime-500); margin: 2px 0 22px; }
.side a { color: var(--lucro-teal-200); text-decoration: none; padding: 10px 14px; border-radius: var(--lucro-radius-pill); transition: background var(--lucro-duration) var(--lucro-ease); }
.side a:hover { background: var(--lucro-teal-500); color: #fff; }
.side a.on { background: var(--lucro-lime-500); color: var(--lucro-teal-900); font-weight: 600; }
.side .who { margin-top: auto; padding: 10px; font-size: 12px; border-top: 1px solid var(--lucro-teal-500); }
.side .who button { background: none; border: 0; color: var(--lucro-lime-400); cursor: pointer; padding: 6px 0 0; font: inherit; }
.main { padding: 28px 32px 60px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

/* building blocks */
.card { background: #fff; border: 1px solid var(--lucro-line); border-radius: var(--lucro-radius-md); padding: 18px 20px; box-shadow: var(--lucro-shadow-sm); min-width: 0; }
.grid { display: grid; gap: 16px; margin-bottom: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { background: var(--lucro-teal-700); color: #fff; border: 0; }
.kpi .v { font-size: 38px; font-weight: 200; letter-spacing: -0.02em; line-height: 1.1; } .kpi .v small { font-size: 15px; color: var(--lucro-lime-500); font-weight: 500; margin-left: 4px; }
.kpi .l { font-size: 12px; color: var(--lucro-teal-200); margin-top: 4px; } .kpi .eyebrow { color: var(--lucro-lime-500); }
.kpi.light { background: #fff; color: var(--lucro-teal-600); border: 1px solid var(--lucro-line); } .kpi.light .l { color: var(--lucro-muted); } .kpi.light .eyebrow { color: var(--lucro-lime-600); }
.chart { position: relative; height: 260px; margin-top: 10px; } .chart.tall { height: 320px; }
.section { margin: 30px 0 14px; }
.btn { font: inherit; font-weight: 600; border-radius: var(--lucro-radius-pill); padding: 9px 18px; border: 1px solid var(--lucro-teal-600); background: #fff; color: var(--lucro-teal-600); cursor: pointer; transition: all var(--lucro-duration) var(--lucro-ease); }
.btn:hover { background: var(--lucro-teal-50); } .btn.primary { background: var(--lucro-teal-600); color: #fff; } .btn.primary:hover { background: var(--lucro-teal-800); }
.btn.accent { background: var(--lucro-lime-500); border-color: var(--lucro-lime-500); color: var(--lucro-teal-900); } .btn.accent:hover { background: var(--lucro-lime-400); }
.btn.sm { padding: 5px 12px; font-size: 12px; } .btn.danger { border-color: var(--lucro-magenta-500); color: var(--lucro-magenta-500); } .btn:disabled { opacity: .5; cursor: default; }
input, select { font: inherit; padding: 8px 12px; border: 1px solid var(--lucro-line); border-radius: var(--lucro-radius-sm); background: #fff; color: var(--lucro-ink); }
input:focus, select:focus { outline: 2px solid var(--lucro-lime-500); outline-offset: 1px; border-color: var(--lucro-teal-400); }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lucro-muted); }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { border: 1px solid var(--lucro-line); background: #fff; border-radius: var(--lucro-radius-pill); padding: 6px 12px; cursor: pointer; font: inherit; font-size: 12px; color: var(--lucro-ink-soft); }
.chip.on { background: var(--lucro-teal-600); border-color: var(--lucro-teal-600); color: #fff; }
.badge { display: inline-block; border-radius: var(--lucro-radius-pill); padding: 3px 10px; font-size: 11px; font-weight: 600; background: var(--lucro-teal-50); color: var(--lucro-teal-600); }
.badge.lime { background: var(--lucro-lime-100); color: var(--lucro-forest-700); } .badge.coral { background: #fef0de; color: #a85500; } .badge.red { background: #fbe6ed; color: var(--lucro-magenta-500); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; } table.t th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--lucro-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--lucro-line); white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid #eef0f0; vertical-align: top; } table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--lucro-teal-50); } table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow: auto; max-height: 520px; } .note { background: var(--lucro-teal-50); border-left: 3px solid var(--lucro-teal-400); padding: 10px 14px; border-radius: var(--lucro-radius-sm); margin: 8px 0; font-size: 13px; }
.note.warn { background: #fef0de; border-color: var(--lucro-coral-500); } .note.err { background: #fbe6ed; border-color: var(--lucro-magenta-500); }
.empty { text-align: center; padding: 50px 20px; color: var(--lucro-muted); }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--lucro-teal-900); color: #fff; padding: 12px 20px; border-radius: var(--lucro-radius-md); box-shadow: var(--lucro-shadow-lg); z-index: 50; max-width: 420px; } .toast.err { background: var(--lucro-magenta-500); }

/* sign in */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; }
.login .hero { background: var(--lucro-teal-700); color: #fff; padding: 9vh 7vw; display: flex; flex-direction: column; justify-content: center; }
.login .hero h1 { color: #fff; font-size: clamp(40px, 5.2vw, 72px); font-weight: 200; line-height: 1.05; } .login .hero p { color: var(--lucro-teal-200); font-size: 17px; font-weight: 400; max-width: 30em; margin-top: 18px; }
.login form { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 0 7vw; background: #fff; }

/* upload and review */
.drop { border: 2px dashed var(--lucro-teal-200); border-radius: var(--lucro-radius-lg); background: #fff; padding: 44px 20px; text-align: center; cursor: pointer; transition: all var(--lucro-duration) var(--lucro-ease); }
.drop.over, .drop:hover { border-color: var(--lucro-lime-500); background: var(--lucro-lime-100); } .drop h2 { margin-bottom: 6px; }
.review { display: grid; grid-template-columns: minmax(280px, 38%) 1fr; gap: 16px; align-items: start; } .review.full { grid-template-columns: 1fr; }
.viewer { position: sticky; top: 16px; height: calc(100vh - 32px); padding: 0; overflow: auto; } .viewer img { display: block; transform-origin: center; }
table.edit { border-collapse: collapse; font-size: 12px; } table.edit th { position: sticky; top: 0; background: var(--lucro-teal-600); color: #fff; padding: 6px 8px; font-weight: 600; white-space: nowrap; z-index: 1; }
table.edit td { border: 1px solid #e3e7e7; padding: 0; } table.edit input { border: 0; border-radius: 0; padding: 5px 6px; width: 74px; font-size: 12px; background: transparent; }
table.edit input.w { width: 150px; } table.edit input.d { width: 128px; } table.edit td.doubt { background: #fef0de; box-shadow: inset 0 0 0 2px var(--lucro-coral-500); } table.edit td.bad { background: #fbe6ed; } table.edit tr:hover td { background-color: var(--lucro-teal-50); }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .g2 { grid-template-columns: 1fr; } .review { grid-template-columns: 1fr; } .viewer { position: static; height: 60vh; } }
@media (max-width: 760px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px; } .side .who { margin: 0 0 0 auto; border: 0; } .brand small { margin-bottom: 0; } .main { padding: 18px 16px 40px; } .login { grid-template-columns: 1fr; } .login .hero { padding: 40px 24px; } .login form { padding: 30px 24px; } }
@media print { .side, .filters, .btn { display: none !important; } .shell { display: block; } .card { break-inside: avoid; } }
table.t td:first-child { white-space: nowrap; }
