:root {
  --black: #111111;
  --black-soft: #1c1c1c;
  --yellow: #ffd400;
  --yellow-deep: #e9bd00;
  --paper: #f4f4f0;
  --white: #ffffff;
  --ink: #171717;
  --muted: #6c6c66;
  --line: #deded7;
  --green: #137548;
  --green-soft: #e8f5ee;
  --red: #b93434;
  --red-soft: #fdecec;
  --shadow: 0 16px 45px rgba(15, 15, 15, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(255, 212, 0, 0.58); outline-offset: 2px; }
.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; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-140%); background: var(--yellow); color: var(--black); padding: 10px 14px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { transform: none; }

body.access-pending { background: var(--black); }
body.access-pending > div > header, body.access-pending > div > main, body.access-pending > div > footer,
body.access-pending .site-header, body.access-pending main, body.access-pending footer { visibility: hidden; }
body.access-locked { overflow: hidden; }
body.access-locked > div > header, body.access-locked > div > main, body.access-locked > div > footer,
body.access-locked .site-header, body.access-locked main, body.access-locked footer { display: none; }
.access-gate { position: fixed; inset: 0; z-index: 300; overflow-y: auto; display: grid; place-items: center; padding: 28px 16px; background: var(--black); }
.access-gate[hidden] { display: none; }
.access-card { width: min(510px, 100%); border: 1px solid #353535; border-radius: 22px; background: #f8f8f4; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.access-card.compact { max-width: 460px; text-align: center; }
.access-brand { display: flex; align-items: center; gap: 10px; width: max-content; margin-bottom: 34px; color: var(--black); }
.access-brand .brand-name { color: var(--black); }
.access-card h1 { margin: 0; font-size: clamp(32px, 7vw, 48px); line-height: 1; letter-spacing: -.05em; }
.access-copy { margin: 14px 0 24px; color: var(--muted); line-height: 1.55; }
.auth-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: -6px 0 17px; border-radius: 11px; background: #e8e8e2; padding: 4px; }
.auth-mode { min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: #666; font-size: 13px; font-weight: 850; cursor: pointer; }
.auth-mode.active { background: white; color: var(--black); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.registration-form { display: grid; gap: 13px; }
.registration-form[hidden] { display: none; }
.registration-form > label:not(.check-row) span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 850; }
.registration-form input:not([type="checkbox"]) { width: 100%; min-height: 46px; border: 1px solid #cfCfc8; border-radius: 10px; background: white; padding: 0 12px; }
.check-row { display: grid; grid-template-columns: 19px 1fr; align-items: start; gap: 9px; color: #4f4f4a; font-size: 14px; line-height: 1.45; }
.check-row[hidden] { display: none; }
.check-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--yellow-deep); }
.privacy-note { margin: 0; border-left: 3px solid var(--yellow); padding: 3px 0 3px 10px; color: #676761; font-size: 13px; line-height: 1.5; }
.form-error { margin: 0; border-radius: 8px; background: var(--red-soft); color: var(--red); padding: 10px 11px; font-size: 14px; font-weight: 750; }
.registration-submit { width: 100%; margin-top: 2px; }
.registration-submit:disabled { opacity: .55; cursor: wait; }
.admin-signin { display: block; margin-top: 18px; color: #6e5c00; text-align: center; font-size: 14px; font-weight: 800; }
.blocked-mark { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 34px; line-height: 1; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 4px solid var(--yellow); }
.header-inner { width: min(1240px, calc(100% - 36px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; color: white; cursor: pointer; padding: 5px 0; }
.brand:first-child { margin-right: auto; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px 3px 9px 3px; background: var(--yellow); color: var(--black); font-weight: 1000; font-size: 24px; line-height: 1; transform: skew(-5deg); }
.brand-name { font-size: 20px; font-weight: 950; letter-spacing: -0.75px; }
.brand-name span { color: var(--yellow); }
.main-nav { display: flex; gap: 6px; }
.viewer-controls { display: inline-flex; align-items: center; gap: 9px; border-right: 1px solid #383838; padding-right: 15px; color: #d7d7d7; font-size: 14px; font-weight: 750; }
.viewer-controls[hidden] { display: none; }
.viewer-controls button { border: 0; background: transparent; color: var(--yellow); padding: 5px; font-size: 14px; font-weight: 850; cursor: pointer; }
.nav-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #353535; border-radius: 10px; background: transparent; color: #d2d2d2; padding: 9px 12px; font-size: 13px; font-weight: 800; cursor: pointer; }
.nav-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-button.active, .nav-button:hover { background: #292929; border-color: #464646; color: var(--yellow); }

.view { display: none; }
.view.active { display: block; }
.hero { background: var(--black); color: white; }
.hero-inner { width: min(1240px, calc(100% - 36px)); min-height: 250px; margin: auto; padding: 58px 0 46px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.eyebrow { margin: 0 0 10px; color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow.dark { color: #806a00; }
.hero h1, .admin-heading h1 { margin: 0; font-size: clamp(36px, 6vw, 68px); line-height: 0.98; letter-spacing: -0.055em; font-weight: 950; }
.hero-copy { max-width: 620px; margin: 18px 0 0; color: #bebebe; font-size: 17px; line-height: 1.5; }
.hero-badge, .access-pill { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; border: 1px solid #353535; border-radius: 999px; background: #1b1b1b; color: #d7d7d7; padding: 9px 13px; font-size: 12px; font-weight: 800; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(39, 177, 108, 0.15); }

.catalog-shell { width: min(1240px, calc(100% - 36px)); margin: -1px auto 0; padding: 28px 0 70px; }
.filter-panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.search-field { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 2px solid #d6d6d0; border-radius: 12px; background: var(--white); transition: 0.18s ease; }
.search-field:focus-within { border-color: var(--yellow-deep); box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.18); }
.search-field svg { width: 21px; height: 21px; fill: none; stroke: #666; stroke-width: 2; }
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.search-field kbd { border: 1px solid #ddddda; border-bottom-width: 2px; border-radius: 6px; background: #f7f7f4; color: #888; padding: 3px 7px; font-size: 10px; }
.category-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 14px 0 1px; }
.category-chip, .filter-button { white-space: nowrap; border: 1px solid #d9d9d3; border-radius: 999px; background: white; padding: 8px 12px; color: #555; font-size: 12px; font-weight: 850; cursor: pointer; }
.category-chip.active { background: var(--black); border-color: var(--black); color: var(--yellow); }
.catalog-toolbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.result-count { margin: 0; color: var(--muted); font-size: 13px; font-weight: 750; }
.availability-filter { display: flex; gap: 6px; }
.filter-button { padding: 7px 11px; font-size: 11px; }
.filter-button.active { background: #e8e8e3; border-color: #c8c8c1; color: #222; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: white; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.09); }
.product-visual { position: relative; height: 126px; display: grid; place-items: center; overflow: hidden; background: #181818; }
.product-visual::before { content: ""; position: absolute; width: 180px; height: 180px; border: 38px solid var(--cat-color); border-radius: 50%; right: -100px; top: -105px; opacity: 0.23; }
.product-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--cat-color); }
.product-monogram { position: relative; color: var(--yellow); font-size: 29px; font-weight: 950; letter-spacing: -0.08em; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 14px; }
.product-category { margin: 0 0 7px; overflow: hidden; color: #777; font-size: 9px; font-weight: 900; letter-spacing: 0.11em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-name { min-height: 42px; margin: 0; font-size: 14px; line-height: 1.4; font-weight: 850; }
.product-bottom { margin-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.product-price { font-size: 19px; line-height: 1; font-weight: 950; letter-spacing: -0.04em; }
.status-badge { border-radius: 7px; padding: 6px 7px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.status-badge.available { background: var(--green-soft); color: var(--green); }
.status-badge.unavailable { background: var(--red-soft); color: var(--red); }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state h2 { margin: 10px 0 4px; color: var(--ink); font-size: 21px; }
.empty-state p { margin: 0; }
.empty-icon { font-size: 38px; }
.load-more-wrap, .admin-more-wrap { display: flex; justify-content: center; padding-top: 24px; }
.secondary-button, .primary-button { min-height: 42px; border-radius: 10px; padding: 0 15px; font-weight: 850; cursor: pointer; }
.secondary-button { border: 1px solid #cfcfc8; background: white; }
.primary-button { border: 1px solid var(--yellow-deep); background: var(--yellow); color: var(--black); }
.secondary-button:hover, .primary-button:hover { filter: brightness(0.97); }

.admin-view { min-height: calc(100vh - 72px); background: #ededE8; }
.admin-shell { width: min(1240px, calc(100% - 36px)); margin: auto; padding: 48px 0 80px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.admin-heading h1 { font-size: clamp(34px, 5vw, 56px); }
.admin-heading p:not(.eyebrow) { max-width: 690px; margin: 14px 0 0; color: var(--muted); line-height: 1.5; }
.access-pill { border-color: #cdcdc5; background: #f8f8f4; color: #555; }
.lock-icon { color: var(--green); font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 18px; }
.stat-card { border: 1px solid var(--line); border-radius: 14px; background: white; padding: 17px; }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { margin-top: 6px; font-size: 27px; font-weight: 950; letter-spacing: -0.04em; }
.admin-layout { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 14px; align-items: start; }
.admin-sidebar, .admin-content { border: 1px solid var(--line); border-radius: 15px; background: white; }
.admin-sidebar { position: sticky; top: 92px; padding: 9px; }
.admin-tab { width: 100%; border: 0; border-radius: 9px; background: transparent; padding: 11px 12px; text-align: left; font-size: 13px; font-weight: 800; cursor: pointer; }
.admin-tab.active, .admin-tab:hover { background: #f0f0eb; }
.admin-tab.muted { color: #696964; font-weight: 700; }
.file-label { display: block; }
.sidebar-divider { height: 1px; margin: 8px 6px; background: var(--line); }
.admin-content { min-width: 0; overflow: hidden; }
.admin-panel { display: none; padding: 18px; }
.admin-panel.active { display: block; }
.admin-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 240px 180px; gap: 9px; margin-bottom: 14px; }
.admin-toolbar input, .admin-toolbar select, .new-category-form input, .category-name-input, .inline-input { width: 100%; min-height: 42px; border: 1px solid #d5d5cf; border-radius: 9px; background: white; padding: 0 11px; color: var(--ink); }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 11px; }
.product-table { width: 100%; border-collapse: collapse; min-width: 750px; }
.product-table th { position: sticky; top: 0; z-index: 1; background: #f7f7f4; color: #666; text-align: left; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.product-table th, .product-table td { border-bottom: 1px solid #ecece7; padding: 10px 12px; vertical-align: middle; }
.product-table tr:last-child td { border-bottom: 0; }
.admin-product-name { max-width: 360px; font-size: 12px; line-height: 1.35; font-weight: 750; }
.price-input { width: 92px; min-height: 34px; border: 1px solid #d7d7d1; border-radius: 8px; padding: 0 8px; }
.category-select { width: 190px; min-height: 34px; border: 1px solid #d7d7d1; border-radius: 8px; padding: 0 7px; }
.availability-toggle { min-width: 103px; min-height: 34px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 900; cursor: pointer; }
.availability-toggle.available { background: var(--green-soft); color: var(--green); border-color: #cde8d9; }
.availability-toggle.unavailable { background: var(--red-soft); color: var(--red); border-color: #f3cece; }
.panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.panel-title-row h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.panel-title-row p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.text-button { border: 0; background: transparent; color: #796400; font-size: 12px; font-weight: 850; cursor: pointer; }
.new-category-form { margin: 20px 0; padding: 15px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; border: 1px solid #eadb87; border-radius: 12px; background: #fffbea; }
.new-category-form label span { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 850; }
.category-manager { display: grid; gap: 8px; }
.category-row { display: grid; grid-template-columns: minmax(180px, 1fr) 95px auto auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.category-count { color: var(--muted); font-size: 12px; text-align: right; }
.small-button { min-height: 35px; border: 1px solid #d3d3cc; border-radius: 8px; background: white; padding: 0 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
.small-button.danger { color: var(--red); }
.small-button:disabled { opacity: 0.35; cursor: not-allowed; }
.activity-list { margin: 18px 0 0; padding: 0; list-style: none; }
.activity-item { display: grid; grid-template-columns: 132px 1fr; gap: 15px; border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 13px; }
.activity-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.activity-user { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.activity-empty { padding: 50px 10px; color: var(--muted); text-align: center; }
.customer-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 220px; gap: 9px; margin: 18px 0 14px; }
.customer-toolbar input, .customer-toolbar select { width: 100%; min-height: 42px; border: 1px solid #d5d5cf; border-radius: 9px; background: white; padding: 0 11px; }
.customer-table { min-width: 1220px; }
.customer-table td { color: #444; font-size: 14px; }
.cpf-reveal { border: 0; background: transparent; color: #615100; padding: 5px 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 800; cursor: pointer; }
.minor-label { display: inline-block; margin-top: 4px; border-radius: 999px; background: #fff4bd; color: #6c5900; padding: 3px 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.retention-label { display: inline-block; border-radius: 8px; background: var(--red-soft); color: var(--red); padding: 5px 7px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.audit-scroll { margin-top: 18px; }
.audit-table { min-width: 960px; }
.audit-table td { color: #444; font-size: 12px; }
.loading-cell { padding: 38px !important; color: var(--muted) !important; text-align: center; }
.loading-cell.error { color: var(--red) !important; }
.empty-state.compact { padding: 36px 16px; }
.empty-state.compact h3 { margin: 0 0 5px; color: var(--ink); }

footer { padding: 24px 18px 36px; color: #7a7a75; text-align: center; font-size: 11px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 80; max-width: min(390px, calc(100vw - 36px)); transform: translateY(18px); border-radius: 10px; background: var(--black); color: white; padding: 12px 15px; opacity: 0; pointer-events: none; box-shadow: 0 14px 35px rgba(0,0,0,0.22); font-size: 12px; font-weight: 750; transition: 0.2s ease; }
.toast.show { transform: none; opacity: 1; }

@media (max-width: 1020px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
  .compact-search { grid-column: 1 / -1; }
  .customer-toolbar { grid-template-columns: 1fr 200px; }
}

@media (max-width: 760px) {
  .header-inner { width: min(100% - 26px, 1240px); min-height: 64px; }
  .brand-name { font-size: 17px; }
  .viewer-controls { margin-left: auto; border-right: 0; padding-right: 0; }
  .viewer-controls span { display: none; }
  .nav-button { padding: 8px 9px; font-size: 0; }
  .nav-button svg { width: 19px; height: 19px; }
  .hero-inner { width: min(100% - 28px, 1240px); min-height: 220px; padding: 44px 0 34px; align-items: flex-start; flex-direction: column; }
  .hero-badge { align-self: flex-start; }
  .hero-copy { font-size: 15px; }
  .catalog-shell, .admin-shell { width: min(100% - 24px, 1240px); }
  .catalog-shell { padding-top: 14px; }
  .filter-panel { padding: 11px; border-radius: 14px; }
  .search-field kbd { display: none; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; padding: 16px 1px 13px; }
  .availability-filter { width: 100%; overflow-x: auto; }
  .filter-button { flex: 1; text-align: center; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-visual { height: 105px; }
  .product-body { padding: 11px; }
  .product-name { min-height: 52px; font-size: 13px; }
  .product-bottom { align-items: flex-start; flex-direction: column; }
  .product-price { font-size: 18px; }
  .status-badge { width: 100%; text-align: center; }
  .admin-shell { padding-top: 28px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .admin-tab { width: auto; min-width: max-content; }
  .sidebar-divider { width: 1px; height: 28px; margin: 3px 4px; flex: 0 0 auto; }
  .admin-panel { padding: 12px; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .compact-search { grid-column: auto; }
  .new-category-form { grid-template-columns: 1fr; }
  .category-row { grid-template-columns: 1fr auto auto; }
  .category-count { grid-row: 2; grid-column: 1 / -1; text-align: left; }
  .activity-item { grid-template-columns: 1fr; gap: 4px; }
  .customer-toolbar { grid-template-columns: 1fr; }
  .access-card { padding: 24px 18px; border-radius: 17px; }
  .access-brand { margin-bottom: 26px; }
}

@media (max-width: 390px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 112px 1fr; }
  .product-visual { height: 100%; min-height: 134px; }
  .product-name { min-height: auto; }
  .product-bottom { margin-top: 12px; }
}

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

[hidden] { display: none !important; }
.role-control { display: grid; gap: 8px; min-width: 220px; margin-bottom: 12px; }
.role-control label { display: grid; gap: 5px; }
.role-control select { padding: 9px; max-width: 260px; border: 1px solid #b9b9b0; border-radius: 8px; font-size: 14px; background: white; }
.role-control button { font-size: 14px; min-height: 42px; }
/* Reserved customer channels extend the existing TechMarket palette. */
.auth-mode-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-intro { color: var(--muted); font-size: 14px; line-height: 1.6; }
.form-message { border-radius: 8px; background: #eef7ed; color: #205a35; padding: 12px; font-size: 14px; }
.form-message.error, .error, .reply-status { color: #9f2525; }
.form-message.error { background: #fff0f0; }
.recovery-switch, .privacy-link { margin-top: 16px; min-height: 40px; font-size: 14px; }
.privacy-link { border: 0; background: transparent; text-decoration: underline; cursor: pointer; color: inherit; }
.recovery-reset { padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; }
.recovery-reset[hidden], .privacy-dialog[hidden], .notification-bell[hidden], .code-notice[hidden] { display: none; }
.privacy-dialog { position: fixed; inset: 0; z-index: 150; background: #10100fd9; padding: 24px; display: flex; align-items: center; justify-content: center; }
.privacy-card { width: min(780px, 100%); max-height: calc(100dvh - 48px); overflow: auto; border-radius: 18px; background: #fff; color: var(--ink); padding: 28px; box-shadow: 0 24px 80px #0005; }
.privacy-heading { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.privacy-heading h2 { margin: 0; font-size: 25px; line-height: 1.2; }
.modal-close { flex: 0 0 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #111; font-size: 28px; cursor: pointer; }
.privacy-copy { font-size: 16px; line-height: 1.7; }
.privacy-copy h3 { font-size: 18px; margin-bottom: 4px; }
.privacy-request-form { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 20px; }
.privacy-request-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
.privacy-request-form .check-row { display: flex; }
.privacy-request-form input:not([type="checkbox"]), .privacy-request-form textarea, .privacy-request-form select, .reply-form textarea { width: 100%; box-sizing: border-box; min-height: 44px; background: white; border: 1px solid #b9b9b0; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; color: #171717; }
.privacy-request-form textarea, .reply-form textarea { resize: vertical; }
.privacy-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.privacy-identity[hidden] { display: none; }
body.dialog-open { overflow: hidden; }
.code-notice { margin-top: 20px; display: grid; gap: 8px; padding: 18px; background: #fff8cd; border: 1px solid #c9a900; border-radius: 10px; }
.code-notice strong { font: 700 26px ui-monospace, monospace; letter-spacing: .12em; }
.code-notice small { font-size: 14px; line-height: 1.5; }
.request-section { margin-top: 24px; }
.request-table { min-width: 800px; }
.request-details { min-width: 180px; max-width: 340px; white-space: normal; overflow-wrap: anywhere; }
.request-table td { font-size: 14px; }
.notification-bell { margin-left: auto; min-height: 44px; border: 1px solid #ddbd2c; background: var(--yellow, #ffdc00); color: #151515; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 14px; }
.notification-bell span { display: inline-block; padding: 2px 6px; border-radius: 20px; background: #171717; color: white; }
.notification-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.notification-item { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid #d0d0cb; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.notification-item.unread { background: #fffceb; border-left-color: #dbb600; }
.notification-item time, .message-meta, .message-customer span, .message-reply time { color: #65655f; font-size: 14px; }
.message-list { display: grid; gap: 14px; margin-top: 18px; }
.message-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.message-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.message-state { background: #fff5b8; color: #5a4900; border-radius: 6px; padding: 4px 8px; font-weight: 700; }
.message-customer { display: grid; gap: 5px; margin-top: 15px; overflow-wrap: anywhere; }
.message-customer strong { font-size: 16px; }
.message-body, .message-reply p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.6; }
.message-reply { padding: 14px; margin: 14px 0; background: #f4f4f0; border-left: 3px solid #d8b800; border-radius: 6px; }
.message-reply strong { font-size: 14px; }
.message-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.message-actions .small-button, .reply-form .small-button, .panel-title-row .small-button { font-size: 14px; min-height: 44px; }
.reply-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.reply-form label { display: grid; gap: 8px; font-size: 14px; }
.reply-form button { justify-self: start; }
.reply-status:empty { display: none; }
.character-counter { text-align: right; font-size: 14px; }
.empty-message { padding: 24px 10px; color: #65655f; font-size: 16px; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .viewer-controls { flex-wrap: wrap; justify-content: flex-end; }
  .viewer-controls button { min-height: 40px; font-size: 14px; }
  .privacy-dialog { padding: 10px; }
  .privacy-card { padding: 20px 16px; max-height: calc(100dvh - 20px); }
  .privacy-heading h2 { font-size: 22px; }
  .privacy-identity { grid-template-columns: 1fr; }
  .panel-title-row { flex-wrap: wrap; }
  .notification-bell { font-size: 14px; }
}

/* Individual permissions and operation overview follow the existing black/yellow identity. */
.suggestions-panel { margin: 0 0 24px; padding: 18px; background: #fff; border: 1px solid #e3e2da; border-left: 4px solid #f3ce38; border-radius: 14px; }
.suggestions-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.suggestions-heading h2 { margin: 0; font-size: 18px; }
.suggestions-heading span { color: #666; font-size: 14px; }
.suggestions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.suggestion-card { display: flex; flex-direction: column; text-align: left; gap: 6px; background: #faf9f5; color: #171717; border: 1px solid #e9e7dd; border-radius: 10px; padding: 14px; cursor: pointer; min-width: 0; }
.suggestion-card:hover { border-color: #bb9700; }
.suggestion-card span { font-size: 12px; color: #666; }
.suggestion-card strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.suggestion-card b { font-size: 17px; margin-top: auto; }
#dashboardTab .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0 28px; }
#dashboardTab .stat-value { font-size: 28px; }
#dashboardTab .activity-item { grid-template-columns: 150px minmax(0,1fr); }
#dashboardTab .activity-item time { font-size: 13px; color: #666; }
.owner-permission-card { display: flex; flex-direction: column; gap: 5px; padding: 18px; border: 1px solid #c5a61a; background: #fff9d9; border-radius: 12px; margin-bottom: 20px; }
.user-permission-list { display: grid; gap: 18px; }
.user-permission-card { padding: 22px; border: 1px solid #deded5; border-radius: 14px; background: white; }
.user-permission-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.user-permission-heading h3 { margin: 0 0 4px; font-size: 18px; }
.user-permission-heading span, .permission-note { color: #666; font-size: 14px; }
.permission-template { display: flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.permission-template select, .notification-filters select { border: 1px solid #cdcec4; background: #fff; padding: 10px; border-radius: 8px; font-size: 16px; }
.permission-grid { padding: 0; margin: 18px 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.permission-grid label { display: flex; align-items: center; gap: 10px; padding: 11px; background: #f7f7f2; border-radius: 8px; font-size: 14px; line-height: 1.4; }
.permission-grid input, .featured-toggle input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #b89500; }
.permission-grid:disabled { opacity: .7; }
.permission-result { font-size: 14px; margin-bottom: 0; overflow-wrap: anywhere; }
.featured-toggle { display: flex; gap: 8px; align-items: center; font-size: 14px; min-width: 140px; }
.product-name-input { min-width: 190px; width: 100%; padding: 9px; border: 1px solid #cecec4; border-radius: 6px; font-size: 16px; }
#adminProductRows input:disabled, #adminProductRows select:disabled { background: #f1f1eb; color: #666; cursor: not-allowed; }
.notification-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.notification-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.severity { padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: 700; background: #edf0f2; color: #34414c; }
.severity-attention { background: #fff1c0; color: #70520a; }
.severity-important { background: #fbe7e3; color: #8c2d25; }
.notification-item .small-button { justify-self: start; }
.audit-table td:last-child { min-width: 240px; white-space: normal; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .suggestions-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .suggestions-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .permission-grid { grid-template-columns: minmax(0,1fr); }
  .user-permission-card { padding: 15px; }
  .user-permission-heading { flex-direction: column; }
  #dashboardTab .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #dashboardTab .stat-label { font-size: 14px; }
  #dashboardTab .activity-item { grid-template-columns: minmax(0,1fr); gap: 5px; }
}

.manual-user-panel { margin: 0 0 24px; padding: 22px; border: 1px solid #d0b53b; border-radius: 14px; background: #fffdf2; }
.manual-user-panel h3 { margin: 0 0 8px; font-size: 20px; }
.manual-user-panel .panel-title-row p { max-width: 580px; }
.manual-user-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.manual-user-fields label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; }
.manual-user-fields label:first-child { grid-column: 1 / -1; }
.manual-user-fields input { min-width: 0; width: 100%; padding: 12px; border: 1px solid #c9cabf; border-radius: 8px; background: #fff; font-size: 16px; }
.manual-user-form .check-row { margin: 16px 0; font-size: 14px; align-items: flex-start; }
.manual-user-form .check-row input { flex-shrink: 0; }
.manual-user-form .primary-button { margin-top: 8px; }
@media (max-width: 760px) {
  .manual-user-panel { padding: 16px; }
  .manual-user-fields { grid-template-columns: minmax(0,1fr); }
  #usersTab > .panel-title-row { align-items: flex-start; flex-wrap: wrap; }
}

/* Product intake: TechMarket's existing black/yellow administrative surface. */
.intake { border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 12px; padding: 24px; margin-bottom: 28px; background: white; }
.intake[hidden], .intake [hidden] { display: none !important; }
.intake-heading h2 { font-size: 22px; margin: 0 0 8px; }
.intake-heading p { margin: 0 0 12px; }
.intake label { display: grid; gap: 8px; font-size: 14px; font-weight: 650; }
.intake input:not([type=file]), .intake select { border: 1px solid #bcbcb5; border-radius: 7px; padding: 12px; min-width: 0; width: 100%; background: white; font-size: 16px; }
.barcode-search { display: flex; align-items: end; gap: 12px; max-width: 650px; margin-top: 20px; }
.barcode-search label { flex: 1; }
.intake .primary-button { border: 0; border-radius: 8px; background: var(--yellow); color: var(--black); padding: 13px 20px; font-weight: 750; cursor: pointer; }
.intake button:disabled { opacity: .55; cursor: wait; }
.intake-status { line-height: 1.6; font-size: 14px; white-space: pre-line; }
.intake fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.intake-layout { display: grid; grid-template-columns: minmax(160px,220px) 1fr; gap: 28px; }
.intake-photo { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.intake-photo > img { width: 100%; height: 210px; object-fit: contain; background: #f7f7f5; border-radius: 8px; }
#intakePhotoEmpty { min-height: 160px; display: grid; place-items: center; background: #f7f7f5; border-radius: 8px; color: var(--muted); }
.intake-photo small, #intakeAttribution { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.intake-photo .secondary-button { text-align: center; cursor: pointer; }
.intake-inputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.intake-wide { grid-column: 1 / -1; }
.intake-help { margin: 22px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
#intakeMargin { border-radius: 8px; background: #f5f5f2; padding: 14px; font-size: 14px; line-height: 1.5; }
.intake-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.intake-review { border-radius: 10px; border: 1px solid var(--yellow-deep); padding: 20px; margin-top: 20px; }
.intake-review h3 { margin-top: 0; }
.intake-review dl { display: grid; grid-template-columns: minmax(120px,1fr) 2fr; gap: 12px; font-size: 15px; }
.intake-review dt { color: var(--muted); }
.intake-review dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.intake-review img { max-height: 120px; max-width: 160px; object-fit: contain; }
.intake-image-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.intake-image-choices button { padding: 8px; background: white; border: 1px solid #777; border-radius: 5px; font-size: 14px; cursor: pointer; }
.intake-image-choices button[aria-pressed=true] { border: 2px solid var(--black); background: var(--yellow); }
.catalog-product-image { width: 100%; height: 100%; object-fit: contain; padding: 12px; background: white; }
.product-image-credit { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; margin: 8px 0; }
.product-code { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; line-height: 1.5; }
@media(max-width:650px) { .intake { padding: 16px; } .barcode-search { flex-direction: column; align-items: stretch; } .intake-layout { grid-template-columns: 1fr; } .intake-photo { max-width: 260px; } .intake-inputs { grid-template-columns: 1fr; } .intake-help { margin-top: 0; } .intake-review dl { grid-template-columns: 1fr; gap: 6px; } .intake-review dd { margin-bottom: 10px; } }

.admin-tab.intake-nav { background: var(--yellow); color: var(--black); border: 1px solid var(--yellow-deep); font-weight: 800; margin-bottom: 8px; }
.admin-tab.intake-nav.active { background: var(--black); color: var(--yellow); box-shadow: inset 4px 0 var(--yellow); }
.intake-nav span { display: inline-block; font-size: 12px; font-weight: 650; margin-left: 6px; }
.intake-shortcut { width: 100%; background: var(--black); color: white; border: 2px solid var(--yellow); border-radius: 12px; padding: 22px; margin: 0 0 24px; display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 10px; cursor: pointer; }
.intake-shortcut[hidden] { display: none; }
.intake-shortcut strong { font-size: 20px; color: var(--yellow); }
.intake-shortcut span { grid-column: 1; font-size: 14px; line-height: 1.5; }
.intake-shortcut b { grid-column: 2; grid-row: 1 / 3; align-self: center; border: 1px solid #888; border-radius: 6px; padding: 8px; font-size: 12px; }
.intake-history { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.intake-history-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.intake-history-table { min-width: 750px; }
.intake-history-table td { font-size: 14px; line-height: 1.6; vertical-align: top; }
.intake-history-table small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.intake-event { display: inline-block; background: #f1f1ec; border-radius: 5px; padding: 3px 7px; font-size: 13px; }
.intake-event.confirmed { background: var(--green-soft); color: var(--green); font-weight: 700; }
.intake-history-pages { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; font-size: 14px; }
@media(max-width:650px) { .intake-shortcut { grid-template-columns: 1fr; padding: 16px; } .intake-shortcut b { grid-column: 1; grid-row: auto; justify-self: start; } .intake-history { padding: 16px; } .intake-history .panel-title-row { flex-wrap: wrap; gap: 12px; } }
.intake .intake-web-option { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 14px; font-weight: 500; }
.intake .intake-web-option input { width: 18px; height: 18px; flex: 0 0 18px; }
.search-connection { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0; background: #f7f7f4; }
.search-connection summary { font-size: 14px; font-weight: 750; cursor: pointer; }
.search-connection p { font-size: 14px; line-height: 1.6; }
.search-connection form { max-width: 650px; }
.intake-candidates { border-left: 4px solid var(--yellow); padding: 14px; background: #f7f7f4; margin: 14px 0; }
.intake-candidates p { font-size: 14px; overflow-wrap: anywhere; }
.assistant-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.assistant-card{background:#fff;border:1px solid #e3e3df;border-radius:16px;padding:22px;margin:16px 0;display:flex;flex-direction:column;gap:12px}.assistant-card h3{margin:0}.assistant-card p,.assistant-note{color:#62625c;font-size:14px;line-height:1.6}.assistant-card label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}.assistant-card input,.assistant-card textarea{width:100%;padding:12px;border:1px solid #cecec7;border-radius:8px;font:inherit;box-sizing:border-box}.assistant-card textarea{resize:vertical}.assistant-card button{align-self:flex-start}.assistant-result:not(:empty){padding:16px;background:#fff7cf;border-left:4px solid #edc52d;border-radius:8px}.assistant-list{list-style:none;padding:0}.assistant-list li{border-bottom:1px solid #e5e5df;padding:16px 0;overflow-wrap:anywhere}.assistant-list p{margin:8px 0;line-height:1.6}.assistant-list small{color:#65655f}.promo-original{display:block;text-decoration:line-through;font-size:13px;color:#74746d}.promo-label{display:block;font-size:11px;color:#776000}#assistantConnection{padding:14px;border-radius:8px;background:#f5f3e9;line-height:1.6}@media(max-width:800px){.assistant-columns{grid-template-columns:1fr}.assistant-card{padding:16px}}
#purchaseRows td{padding:12px 10px;vertical-align:top;border-bottom:1px solid #e5e5df}#purchaseRows td small{display:block;margin-top:6px;color:#65655f;line-height:1.4}#purchaseRows .purchase-match{min-width:280px;max-width:440px}#purchaseRows .purchase-match input,#purchaseRows .purchase-match select{display:block;width:100%;max-width:100%;padding:10px;border:1px solid #cecec7;border-radius:8px;background:#fff;font:inherit;box-sizing:border-box}#purchaseRows .purchase-match input{margin-bottom:8px}#purchaseRows .purchase-search-label{font-size:12px;margin-bottom:5px}#purchaseRows .purchase-match input:focus,#purchaseRows .purchase-match select:focus{outline:2px solid #f0c900;outline-offset:2px}

/* Product photos remain fully visible on a plain white background. */
.product-visual.has-photo { background: #fff; }
.product-visual.has-photo::before { display: none; }
.product-visual.has-photo .catalog-product-image { position: absolute; inset: 0; box-sizing: border-box; }
.product-photo-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.product-photo-tools small { flex-basis:100%; color:#666; font-size:11px; }
.admin-product-photo { width:52px; height:52px; object-fit:contain; background:white; border:1px solid #ddd; border-radius:6px; }
.photo-upload-label { position:relative; overflow:hidden; cursor:pointer; font-size:12px; }
.photo-upload-label input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.photo-upload-label:focus-within { outline:2px solid #111; outline-offset:2px; }

@media (display-mode: standalone) { .site-header { padding-top: env(safe-area-inset-top); } body { padding-bottom: env(safe-area-inset-bottom); } a[href="/instalar.html"] { display:none; } }

/* Guia público de compras */
.how-to-buy-link { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 18px; border-radius:10px; background:#ffd400; color:#111; font-size:15px; font-weight:800; text-decoration:none; white-space:nowrap; }
.how-to-buy-link:hover { background:#ffe35b; }
.how-to-buy-link:focus-visible { outline:3px solid #777; outline-offset:3px; }
.access-card .how-to-buy-link { margin:14px 0 4px; }
