
:root { --purchasecron-logo-color: #ddfa89; }
html[data-theme="light"] { --purchasecron-logo-color: #486117; }
:is(.brand-mark, .pc-mark)[data-purchasecron-brand] {
  display: inline-flex !important; align-items: center; justify-content: center;
  flex-shrink: 0; width: 30px !important; height: 44px !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important;
  color: var(--purchasecron-logo-color) !important;
}
[data-purchasecron-brand] > svg { display: block; width: 100%; height: 100%; }
/* The retained dashboard header stays dark in both themes. */
.workspace-bar [data-purchasecron-brand] { --purchasecron-logo-color: #ddfa89; }
.sb-brand [data-purchasecron-brand] { width: 25px !important; height: 36px !important; }
.sidebar.collapsed .sb-brand {
  height: 100px; flex: 0 0 100px; flex-direction: column; justify-content: center;
  gap: 8px; padding: 8px 0;
}
.sidebar.collapsed .sb-brand [data-purchasecron-brand] { display: inline-flex !important; }

body[data-pc-interior] {
 --interior-surface:var(--pc-card,var(--bg-card,#242627));
 --interior-raised:var(--pc-raised,var(--bg-card-2,#303234));
 --interior-line:var(--pc-border,var(--border,#393c3d));
 --interior-muted:var(--pc-muted,var(--text-mut,#b4b8b8));
 --interior-text:var(--pc-text,var(--text,#f2f3ef));
 --interior-focus:var(--pc-focus,var(--focus,#ddfa89));
 --interior-heading-size:28px;--interior-section-size:16px;
 --interior-reading-size:14px;--interior-reading-leading:1.75;
 --interior-section-gap:32px;
 isolation:isolate;
}
/* A continuous canvas, with distinct surfaces only around useful groups. */
body[data-pc-interior] :is(.main,.page-content,.tab-content,.pc-followup-view,.form-grid,.grid-2,.filters-bar,.toolbar,.card-head,.topbar-row)>* {min-width:0}
body[data-pc-interior] :is(.page-header,.page-content,.sb-brand,.sb-user) {flex-shrink:0}
body[data-pc-interior] :is(.page-title,.card-title,.card h3,.section-head h2) {text-wrap:balance;overflow-wrap:anywhere}
body[data-pc-interior] :is(.page-subtitle,.hint,.msg,.card p,.field label,.field .hint) {line-height:var(--interior-reading-leading);overflow-wrap:anywhere}
body[data-pc-interior] :is(.page-subtitle,.card>p,.faq-intro>p) {max-width:70ch;font-size:var(--interior-reading-size)}
body[data-pc-interior] :is(.card,.platform-block,.table-panel,.chart-panel,.pc-config-group,.pc-commercial-summary) {
 border:0;border-radius:0;box-shadow:none;background:transparent;min-width:0;
}
body[data-pc-interior] :is(.card,.pc-config-group) {padding:0 0 32px;margin-bottom:32px;border-bottom:1px solid var(--interior-line)}
body[data-pc-interior] :is(.card-title,.card-head h3,.card>h3,.pc-config-group>h2,.section-head h2) {
 font-family:var(--sans);font-size:var(--interior-section-size);font-weight:500;letter-spacing:-.02em;line-height:1.5;
 color:var(--interior-text);margin-bottom:24px;
}
body[data-pc-interior] :is(.card .card,.card .faq-intro,.card .commercial-overview) {
 background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;
}
body[data-pc-interior] :is(.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.filter-search input,.workers-search input,.workers-statusfilter,.faq-search,.commercial-filters select) {
 min-height:44px;max-width:100%;border:1px solid var(--interior-line);border-radius:8px;
 background:var(--bg-input,var(--interior-surface));color:var(--interior-text);
 font-family:var(--sans);font-size:13px;line-height:1.5;
}
body[data-pc-interior] :is(.form-grid,.grid-2,.pc-config-fields) {gap:24px 32px}
body[data-pc-interior] :is(.field label,.section-title) {font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--interior-muted)}
body[data-pc-interior] :is(.btn,.btn-secondary,.filter-btn,.filter-select,.filter-daterange-btn,.pcron-select-button,.tpl-btn) {
 min-height:44px;border-radius:8px;font-family:var(--sans);font-size:12px;font-weight:500;
 line-height:1.5;white-space:normal;overflow-wrap:anywhere;box-shadow:none;
}
body[data-pc-interior] :is(.btn-secondary,.filter-btn,.filter-select,.filter-daterange-btn) {background:transparent;border:1px solid var(--interior-line);color:var(--interior-text)}
body[data-pc-interior] :is(.btn-secondary,.filter-btn,.filter-select,.filter-daterange-btn):hover {background:var(--interior-raised)}
body[data-pc-interior] :is(.filters-bar,.toolbar,.commercial-filters,.workers-head) {gap:12px;flex-wrap:wrap;align-items:center}
body[data-pc-interior] :is(.filters-bar,.commercial-filters) {padding:0 0 24px;margin-bottom:24px;border:0;border-bottom:1px solid var(--interior-line);border-radius:0;background:transparent}
body[data-pc-interior] :is(.table-wrap,.table-scroll) {min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-gutter:stable}
body[data-pc-interior] .table-wrap {margin:0;padding:0 0 8px;border-radius:0}
body[data-pc-interior] :is(table th,table td) {padding:16px 16px 16px 0;border-color:var(--interior-line);font-size:12px;line-height:1.75}
body[data-pc-interior] table th {padding:10px 16px 10px 0;font-size:10px;font-weight:500;letter-spacing:.04em;text-transform:none;color:var(--interior-muted);background:transparent;border-top:0}
body[data-pc-interior] table tbody tr:last-child td {border-bottom:0}
body[data-pc-interior] .pill {font-weight:500;font-size:11px;line-height:1.5;padding:4px 9px;white-space:nowrap}
body[data-pc-interior] :is(.modal,.commercial-dialog,.hourly-dialog) {border-radius:12px;border-color:var(--interior-line);max-width:calc(100vw - 32px)}
body[data-pc-interior] .modal {padding:32px;max-height:calc(100dvh - 32px);scrollbar-gutter:stable}
body[data-pc-interior] :is(.modal-head,.card-head) {flex-wrap:wrap;gap:16px}
body[data-pc-interior] .modal-head h2 {font-size:28px;letter-spacing:-.035em;font-weight:500;line-height:1.3}
body[data-pc-interior] .modal-collapse {border:0;border-top:1px solid var(--interior-line);border-radius:0;background:transparent}
body[data-pc-interior] .modal-collapse>summary {padding:20px 0;font-size:13px;letter-spacing:0;text-transform:none}
body[data-pc-interior] .modal-collapse-body {padding:4px 0 24px}
body[data-pc-interior] :is(.actions,.pagination) {gap:12px;flex-wrap:wrap}
body[data-pc-interior] :is(pre,.tpl-pre,.code-block) {max-width:100%;overflow:auto}
body[data-pc-interior] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible {outline:2px solid var(--interior-focus);outline-offset:3px}

/* Master uses the guide's heading scale and unboxed section hierarchy. */
body[data-pc-interior=master] .shell {position:relative;max-width:1480px}
body[data-pc-interior=master] .page-header {position:relative;padding:32px;align-items:flex-start}
body[data-pc-interior=master] .page-content {padding:0 32px 32px}
body[data-pc-interior=master] .page-eyebrow {text-transform:none;letter-spacing:.02em;font-size:11px;font-weight:400}
body[data-pc-interior=master] .page-title {font-size:var(--interior-heading-size);letter-spacing:-.035em;line-height:1.3;margin-top:16px}
body[data-pc-interior=master] .page-actions {gap:10px;flex-wrap:wrap}
body[data-pc-interior=master] .sb-brand {gap:8px;padding-inline:12px}
body[data-pc-interior=master] .sb-brand-text {flex:1}
body[data-pc-interior=master] .sb-brand-text .brand-name {font-size:13px;white-space:nowrap}
body[data-pc-interior=master] .sb-nav>.nav-item {flex-shrink:0}
body[data-pc-interior=master] .ver-summary {gap:0;background:transparent;border:0;border-bottom:1px solid var(--interior-line);border-radius:0;overflow:hidden;margin-bottom:32px}
body[data-pc-interior=master] .ver-card {border:0;border-right:1px solid var(--interior-line);border-radius:0;background:transparent;padding:24px;min-width:0}
body[data-pc-interior=master] .ver-card:nth-child(4) {border-right:0}
body[data-pc-interior=master] .ver-card-value {font-size:28px;line-height:1.3}
body[data-pc-interior=master] .ver-card-action {border:0;border-top:1px solid var(--interior-line);border-radius:0;background:transparent;padding:24px 0;gap:12px}
body[data-pc-interior=master] .workers-head {margin-bottom:20px;gap:16px}
body[data-pc-interior=master] .workers-head h3 {font-size:16px;font-weight:500;letter-spacing:-.02em}
body[data-pc-interior=master] .platform-block {margin-bottom:32px;border-bottom:1px solid var(--interior-line)}
body[data-pc-interior=master] .pb-head {padding:20px 0;gap:12px;background:transparent;border-bottom:0}
body[data-pc-interior=master] .pb-head .pg-count {border:0;background:var(--interior-raised);padding:4px 10px}
body[data-pc-interior=master] .pb-body>.table-wrap {border-radius:0;padding-bottom:8px}
body[data-pc-interior=master] .cli>strong {white-space:normal;overflow-wrap:anywhere;overflow:visible;font-weight:500}
body[data-pc-interior=master] :is(.pb-table td.mc-status,.pb-table td.mc-platform) {padding:14px 8px}
body[data-pc-interior=master] :is(.faq-item,.tpl-item) {margin-bottom:0;border:0;border-bottom:1px solid var(--interior-line);border-radius:0;background:transparent}
body[data-pc-interior=master] :is(.faq-item>summary,.tpl-sum) {padding:24px 0;font-size:14px;font-weight:500;line-height:1.75}
body[data-pc-interior=master] .faq-a {padding:0 0 24px;font-size:14px;max-width:70ch;line-height:1.75}
body[data-pc-interior=master] .faq-cat h4 {margin:32px 0 16px;font-size:11px;font-weight:500;letter-spacing:.06em}
body[data-pc-interior=master] .tpl-code {border-radius:12px}
body[data-pc-interior=master] .tpl-item {padding:0 0 24px}
body[data-pc-interior=master] .tpl-item:not([open]) {padding-bottom:0}
body[data-pc-interior=master] .tpl-sum {padding-inline:0}
body[data-pc-interior=master] .tpl-bar {padding:12px;flex-wrap:wrap}
body[data-pc-interior=master] .tpl-bar-file {min-width:0;overflow-wrap:anywhere}
body[data-pc-interior=master] .tpl-bar-actions {flex-wrap:wrap}
body[data-pc-interior=master] #tabUsers>div:first-child {gap:16px;flex-wrap:wrap;margin-bottom:24px!important}
body[data-pc-interior=master] #tabIntegrations {max-width:900px}
body[data-pc-interior=master] #tabApi .my-api {border:0;border-bottom:1px solid var(--interior-line);background:transparent;border-radius:0;padding:0 0 32px;margin-bottom:32px}
body[data-pc-interior=master] #tabApi .api-docs {border:0;border-radius:0}
body[data-pc-interior=master] #tabApi .my-api h2 {font-size:28px;letter-spacing:-.035em;font-weight:500}

/* Workers: the same component shapes across overview, orders, settings and tools. */
body[data-pc-interior=worker][data-pc-redesign] .main {scroll-padding:24px}
body[data-pc-interior=worker] #pc-home .page-title {font-size:var(--interior-heading-size);font-weight:500;line-height:1.3;letter-spacing:-.035em}
body[data-pc-interior=worker] #pc-home .card {border:0;border-top:1px solid var(--interior-line);border-radius:0;background:transparent;padding:24px 0}
body[data-pc-interior=worker] #pc-home .card-head h2 {font-size:16px;font-weight:500;letter-spacing:-.02em;line-height:1.5}
body[data-pc-interior=worker] #pc-home .card-head {gap:16px;flex-wrap:wrap}
body[data-pc-interior=worker][data-pc-redesign] .topbar-row {gap:24px;flex-wrap:wrap}
body[data-pc-interior=worker][data-pc-redesign] :is(.page-title,.pc-followup-view .page-title) {font-size:var(--interior-heading-size);font-weight:500;line-height:1.3;letter-spacing:-.035em}
body[data-pc-interior=worker][data-pc-redesign] .pc-followup-view .card {padding:0 0 32px;margin-bottom:32px;border:0;border-bottom:1px solid var(--interior-line);border-radius:0;background:transparent}
body[data-pc-interior=worker][data-pc-redesign] #tab-config>.card {padding:0;border:0;background:transparent}
body[data-pc-interior=worker][data-pc-redesign] #tab-config .pc-config-group {padding:0 0 32px;border:0;border-bottom:1px solid var(--interior-line);border-radius:0;background:transparent}
body[data-pc-interior=worker][data-pc-redesign] .pc-followup-view :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {border-radius:8px;background:var(--pc-input);font-size:13px}
body[data-pc-interior=worker][data-pc-redesign] .pc-followup-view :is(.btn,.btn-secondary,.filter-btn,.filter-select,.filter-daterange-btn) {border-radius:8px}
body[data-pc-interior=worker][data-pc-redesign] .pc-followup-view .filters-bar {padding:0 0 24px;border:0;border-bottom:1px solid var(--interior-line);border-radius:0;background:transparent;margin-bottom:24px}
body[data-pc-interior=worker][data-pc-redesign] .pc-followup-view .table-wrap {border-radius:0}
body[data-pc-interior=worker][data-pc-redesign] :is(.pc-followup-view th,#ordersTable th) {padding:10px 16px 10px 0;background:transparent;font-size:10px;letter-spacing:.04em}
body[data-pc-interior=worker][data-pc-redesign] :is(.pc-followup-view td,#ordersTable td) {padding:16px 16px 16px 0;background:transparent}
body[data-pc-interior=worker][data-pc-redesign] #tab-pedidos .orders-total-value {white-space:normal;overflow-wrap:anywhere}
body[data-pc-interior=worker][data-pc-redesign] :is(.copy-row,.input-with-suffix,.commercial-toolbar) {min-width:0;flex-wrap:wrap}
body[data-pc-interior=worker][data-pc-redesign] .copy-row input {min-width:0;flex:1 1 180px}
body[data-pc-interior=worker][data-pc-redesign] .pc-config-layout {min-width:0}
body[data-pc-interior=worker][data-pc-redesign] :is(#statsGrid,#tab-pedidos .pc-orders-summary,.commercial-overview) {background:transparent;border:0;border-bottom:1px solid var(--interior-line);border-radius:0;padding:0 0 24px;margin-bottom:32px}
body[data-pc-interior=worker][data-pc-redesign] :is(#statsGrid .stat,.tok-stat,#tab-pedidos .orders-total,.pc-commercial-summary) {background:transparent;border:0;border-radius:0;padding:16px 0}
body[data-pc-interior=worker][data-pc-redesign] #tab-config .copy-row {padding:16px 0 24px;background:transparent;border:0;border-bottom:1px solid var(--interior-line);border-radius:0}
body[data-pc-interior=worker][data-pc-redesign] :is(.commercial-dialog,.hourly-dialog)[open] {border-radius:12px}
/* The Matrix iframe retains its own viewport/scroll ownership. */
body[data-pc-interior=document] :is(.table-panel,.chart-panel) {border-radius:0;border-bottom:1px solid var(--interior-line);padding:0 0 24px;margin-bottom:32px}
body[data-pc-interior=document] .section-head {padding:24px 0;gap:16px;flex-wrap:wrap}

/* Master uses the same moving SVG contours as the customer workers. */
#pc-master-ambient {position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;contain:strict;background:radial-gradient(ellipse at 14% 16%,#a5d45b12,transparent 58%)}
#pc-master-ambient svg {position:absolute;inset:-10%;width:120%;height:120%;fill:none;stroke:#ddfa89;stroke-width:.7;opacity:.22;animation:pc-interior-drift 28s ease-in-out infinite alternate}
#pc-master-ambient svg:nth-child(2) {stroke:#a9b3ff;opacity:.14;animation-duration:36s;animation-direction:alternate-reverse}
@keyframes pc-interior-drift {from{transform:translate3d(-3%,-3%,0) rotate(-7deg)}to{transform:translate3d(4%,5%,0) rotate(2deg)}}
@media(max-width:1100px) {
 body[data-pc-interior=master] .page-header {padding:24px}
 body[data-pc-interior=master] .page-content {padding:0 24px 24px}
 body[data-pc-interior=master] .ver-card:nth-child(2) {border-right:0}
 body[data-pc-interior=master] .ver-card:nth-child(-n+2) {border-bottom:1px solid var(--interior-line)}
}
@media(max-width:760px) {
 body[data-pc-interior=master] {padding:10px}
 body[data-pc-interior=master] .shell {height:calc(100dvh - 20px);border-radius:22px}
 body[data-pc-interior=master] .sb-brand {min-height:64px;padding:10px 70px 10px 16px}
 body[data-pc-interior=master] .sidebar.collapsed .sb-brand {height:auto;min-height:64px;flex:0 0 auto;flex-direction:row;justify-content:flex-start;padding:10px 70px 10px 16px}
 body[data-pc-interior=master] .sidebar.collapsed .sb-toggle {margin-left:8px}
 body[data-pc-interior=master] .sb-user {top:10px;right:12px}
 body[data-pc-interior=master] .page-header {padding:24px 16px 20px}
 body[data-pc-interior=master] .page-content {padding:0 16px 24px}
 body[data-pc-interior] {--interior-heading-size:24px;--interior-section-gap:24px}
 body[data-pc-interior=master] .page-title {font-size:24px}
 body[data-pc-interior=master] .ver-card {padding:20px 16px}
 body[data-pc-interior=master] .ver-card-value {font-size:28px}
 body[data-pc-interior=master] .ver-card-action {padding:20px 0}
 body[data-pc-interior=master] .pb-head {padding:20px 0}
 body[data-pc-interior] :is(.card,.pc-config-group),body[data-pc-interior=master] #tabApi .my-api,
 body[data-pc-interior=worker][data-pc-redesign] :is(.pc-followup-view .card,#tab-config .pc-config-group),body[data-pc-interior=worker] #pc-home .card {padding:0 0 24px;margin-bottom:24px;border-radius:0}
 body[data-pc-interior=worker] #pc-home .card {padding-top:24px}
 body[data-pc-interior=worker][data-pc-redesign] .pc-followup-view .page-title {font-size:24px}
 body[data-pc-interior=worker][data-pc-redesign] .pc-followup-view .filter-search {min-width:0}
 body[data-pc-interior=worker][data-pc-redesign] .pc-followup-view .filters-bar {padding:0 0 20px}
 body[data-pc-interior=worker][data-pc-redesign] #tab-pedidos .pc-orders-summary>.orders-total {grid-template-columns:minmax(0,1fr);gap:8px}
 body[data-pc-interior] :is(.form-grid.cols-2,.grid-2,.pc-config-fields) {grid-template-columns:minmax(0,1fr)}
 body[data-pc-interior] .modal-bg {padding:12px}
 body[data-pc-interior] .modal {padding:24px 16px;max-width:100%;max-height:calc(100dvh - 24px)}
}
@media(prefers-reduced-motion:reduce) {#pc-master-ambient svg {animation:none}}

/* Customer overview: retain the last rounded-card design from a3c7d97.
   The read-API guide introduced in 2ef45ae flattened these cards as well.
   :where limits the shared rules to this view without raising specificity. */
body[data-pc-interior=worker] :is(.page-subtitle,.hint,.msg,.card p,.field label,.field .hint):where(#tab-visao *) {line-height:1.65}
body[data-pc-interior=worker] :is(.card,.platform-block,.table-panel,.chart-panel,.pc-config-group,.pc-commercial-summary):where(#tab-visao *) {
 border:1px solid var(--interior-line);border-radius:22px;box-shadow:none;background:var(--interior-surface);min-width:0;
}
body[data-pc-interior=worker] :is(.card,.pc-config-group):where(#tab-visao *) {padding:28px;margin-bottom:24px}
body[data-pc-interior=worker] #pc-home .card {border:1px solid var(--interior-line);border-radius:22px;background:var(--interior-surface);padding:24px}
body[data-pc-interior=worker] #pc-home .card-head h2 {font-size:17px;font-weight:600;letter-spacing:-.35px;line-height:1.4}
body[data-pc-interior=worker][data-pc-redesign] :is(.page-title,.pc-followup-view .page-title):where(#tab-visao *) {font-size:32px;font-weight:500;line-height:1.25;letter-spacing:-1px}
body[data-pc-interior=worker] :is(.btn,.btn-secondary,.filter-btn,.filter-select,.filter-daterange-btn,.pcron-select-button,.tpl-btn):where(#tab-visao *) {border-radius:12px;font-weight:600}
body[data-pc-interior=worker] .table-wrap:where(#tab-visao *) {border-radius:12px}
body[data-pc-interior=worker] :is(table th,table td):where(#tab-visao *) {padding:16px;font-size:12px;line-height:1.55}
body[data-pc-interior=worker] table th:where(#tab-visao *) {font-size:11px;font-weight:500;letter-spacing:0;background:var(--bg-input,var(--interior-surface))}
@media(max-width:760px) {
 body[data-pc-interior=worker] :is(.card,.pc-config-group,.modal):where(#tab-visao *),body[data-pc-interior=worker] #pc-home .card {padding:20px 16px;border-radius:18px}
}

/* Calendar predates a3c7d97's generic card override: restore its original
   surface and header only. Day states and the current grid stay in the vendor. */
body[data-pc-interior=worker] #pc-home .card.calendar {background:var(--blue);border:0;border-radius:24px;padding:23px 18px;margin-bottom:0}
body[data-pc-interior=worker] #pc-home .calendar .card-head {gap:12px;flex-wrap:nowrap}
body[data-pc-interior=worker] #pc-home .calendar .card-head h2 {font-size:16px;font-weight:500;line-height:1.45}
@media(max-width:650px) {
 body[data-pc-interior=worker] #pc-home .card.calendar {padding:23px 0}
 body[data-pc-interior=worker] #pc-home .calendar .card-head h2 {font-size:15px}
}
