:root {
  --forest:#142d2d; --jade:#116750; --jade-hover:#0c503e; --mint:#b8edc9;
  --text:#1c302e; --muted:#536862; --line:#dce5e0; --surface:#fff; --canvas:#f5f7f5;
  --radius:16px; --sans:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;
}
* {box-sizing:border-box}
body {margin:0;font:15px/1.5 var(--sans);color:var(--text);background:var(--canvas);-webkit-font-smoothing:antialiased}
button,input,select,textarea {font:inherit;color:inherit}
button,summary,a {touch-action:manipulation}
button,a { -webkit-tap-highlight-color:transparent}
a {color:var(--jade);text-decoration:none}
a:hover {color:var(--jade-hover)}
input,select,textarea {min-width:0}
input:not([type=checkbox]),select,textarea {border:1px solid #aebdb5;background:white;border-radius:8px;padding:10px 12px;min-height:43px;max-width:100%}
input::placeholder {color:#65756d}
button {cursor:pointer}
:focus-visible {outline:3px solid #cc891d;outline-offset:3px}
h1,h2,h3,p {margin:0}
h1,h2,h3 {color:#1b302a;line-height:1.18}
h1 {font-size:clamp(29px,3.1vw,43px);letter-spacing:-.055em;font-weight:680}
h2 {font-size:20px;letter-spacing:-.035em;font-weight:665}
h3 {font-size:16px;letter-spacing:-.025em}
button,input,select {line-height:1.35}
[hidden] {display:none!important}
.icon {flex-shrink:0;vertical-align:middle}
.visually-hidden,.skip:not(:focus) {position:absolute;overflow:hidden;width:1px;height:1px;clip-path:inset(50%);white-space:nowrap}
.skip:focus {position:fixed;z-index:15;top:8px;left:8px;background:white;padding:10px;border-radius:5px}
.brand {display:inline-flex;align-items:center;gap:10px;color:#f2fff6;font-weight:680;font-size:29px;letter-spacing:-.07em;line-height:1}
.brand-mark {flex:none}
.sidebar {position:fixed;inset:0 auto 0 0;width:231px;background:var(--forest);color:#e0eee6;display:flex;flex-direction:column;padding:34px 17px 16px;z-index:9;overflow-y:auto}
.side-brand {padding:0 11px 18px;display:flex;align-items:center;justify-content:space-between}
.side-brand a,.mobile-head a {display:inline-flex}
.nav-group {margin:26px 11px 9px;color:#a9c4b9;font-size:10px;font-weight:700;letter-spacing:.13em}
.nav-item {padding:10px 12px;min-height:42px;display:flex;align-items:center;gap:12px;border-radius:8px;color:#d5e5dc;font-size:14px;font-weight:520;margin-bottom:3px}
.nav-item:hover {background:#203e3b;color:white}
.nav-item.current {background:#2e4f44;color:#d3f9db}
.nav-item.current .icon {color:var(--mint)}
.side-foot {margin-top:auto;padding:35px 7px 0}
.account {display:flex;align-items:center;gap:10px;border-top:1px solid #3a5149;padding-top:18px;min-width:0}
.avatar {display:grid;place-items:center;width:36px;height:36px;flex:none;border:1px solid #58776b;border-radius:50%;background:#29473e;color:#dcf3e0;font-weight:650}
.account>div {flex:1;min-width:0}
.account strong,.account small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account strong {font-size:13px;line-height:1.4;color:#f2fbf5}
.account small {font-size:11px;color:#b8ccc3}
.account form {margin:0}
.account button,.install,.mobile-toggle,.mobile-close {display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:#d5e5dc;border:0;border-radius:6px;min-height:38px;padding:7px}
.account button:hover,.install:hover,.mobile-close:hover,.mobile-toggle:hover {background:#2f4b42;color:#fff}
.install {margin-bottom:9px;font-size:13px}
.mobile-head,.mobile-close,.nav-backdrop {display:none}
.workspace {margin-left:231px;min-height:100vh}
.topline {height:65px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fcfdfb;padding:0 clamp(24px,3.6vw,58px);color:var(--muted);font-size:13px}
.topline span {display:inline-flex;align-items:center;gap:10px}
.topline b {color:#a6b2ab;font-weight:400}
.topline strong {font-weight:580;color:#30443a}
.topline .secure-indicator {gap:6px;font-size:12px}
.workspace-inner {max-width:1600px;margin:auto;padding:clamp(25px,3.4vw,52px) clamp(24px,3.6vw,58px) 55px}
.page-head {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 26px}
.page-head p {margin-top:7px;color:var(--muted);font-size:15px;line-height:1.5}
.btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:normal;text-align:center;background:#edf3ec;line-height:1.35;min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:8px;font-weight:620;font-size:13px;text-decoration:none}
.btn.primary {background:var(--jade);color:white}
.btn.primary:hover {background:var(--jade-hover)}
.btn.minor {border-color:#c4d1c7;background:white;color:#354c3e}
.btn.minor:hover {background:#f1f5f0}
.btn.soft {background:#dff0df;color:#21583b}
.btn.soft:hover {background:#cce8d0}
.btn.wide {width:100%;justify-content:space-between;min-height:46px}
.metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0 0 22px}
.metric {position:relative;display:flex;flex-direction:column;min-height:164px;border:1px solid var(--line);border-radius:var(--radius);padding:22px 22px 17px;background:var(--surface);color:var(--text);overflow:hidden}
.metric:hover {border-color:#a6c4b1;color:var(--text)}
.metric-label {color:#4c6054;font-size:14px;font-weight:540;padding-right:40px;max-width:100%}
.metric-icon {position:absolute;right:19px;top:19px;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f0f5ee;color:#487056}
.metric>strong {line-height:1.2;font-size:clamp(31px,3vw,46px);letter-spacing:-.055em;font-weight:650;margin:7px 0 16px;font-variant-numeric:tabular-nums}
.metric-route {display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--jade);font-weight:600;margin-top:auto}
.metric.accent {background:#e7f3e4;border-color:#cce2c8}
.metric.accent:hover {border-color:#93b992}
.metric.accent .metric-icon {background:#d6e9d0;color:#356644}
.dashboard-grid {display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,1fr);gap:20px;align-items:start}
.panel {background:white;border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.workspace-inner>.panel+.panel {margin-top:18px}
.form-body a {overflow-wrap:anywhere}
.section-heading {display:flex;align-items:center;gap:12px;padding:21px 22px;border-bottom:1px solid var(--line)}
.section-heading p {margin-top:4px;color:var(--muted);font-size:13px;line-height:1.35}
.section-symbol {display:grid;place-items:center;background:#f0f5ee;color:#52745c;border-radius:9px;width:37px;height:37px;flex:none}
.provider-row {display:flex;align-items:flex-start;gap:13px;padding:18px 0;margin:0 22px;border-bottom:1px solid #e9eeea}
.provider-row:last-child {border-bottom:0}
.vendor-icon {flex:none;width:37px;height:37px;color:#3b6352;background:#e0eee9;border:1px solid #d5e7dd;display:grid;place-items:center;border-radius:10px;font-size:19px;font-weight:700}
.vendor-cartimex {color:#8d6030;background:#faf0db;border-color:#f0e3c8}
.vendor-tecnomega {color:#526686;background:#eaf0f8;border-color:#d9e3f0}
.provider-body {flex:1;min-width:0}
.provider-title {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.provider-body p,.timeline p {font-size:13px;color:var(--muted);margin-top:3px;line-height:1.45;overflow-wrap:anywhere}
.provider-body time,.timeline time {font-size:11px;color:#66796c}
.status,.count {display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;background:#edf0ed;color:#425348;font-size:11px;line-height:1.25;font-weight:600;padding:4px 8px}
.status i {border-radius:50%;width:6px;height:6px;background:currentColor}
.s-ok,.s-approved,.s-applied {background:#e1f0e3;color:#326544}
.s-pending,.s-partial,.s-conflict,.s-blocked {background:#fbefd8;color:#80561c}
.s-error,.s-rejected {background:#f9e6e2;color:#933e32}
.s-running,.s-queued {background:#e3eef5;color:#3f6682}
.timeline {list-style:none;margin:0;padding:18px 22px 0}
.timeline li {position:relative;margin-left:3px;border-left:1px solid #d5dfd5;padding:0 0 16px 16px}
.timeline li:before {content:'';position:absolute;left:-4px;top:6px;width:7px;height:7px;border-radius:50%;background:#7f9c83}
.timeline li:last-child {border-color:transparent;padding-bottom:10px}
.timeline li>div {display:flex;align-items:baseline;gap:8px;justify-content:space-between;flex-wrap:wrap}
.timeline strong {font-size:13px}
.panel-link {border-top:1px solid var(--line);padding:13px 22px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600}
.row-link {display:inline-flex;align-items:center;gap:5px;margin-top:6px;font-size:12px;font-weight:600}
.schedule-bar {display:flex;align-items:center;gap:11px;background:#eef3ed;border:1px solid #dce5d9;border-radius:12px;padding:13px 17px;margin-top:18px}
.schedule-bar .section-symbol {background:#e1ebdf}
.schedule-bar h2 {font-size:15px;letter-spacing:-.01em}
.schedule-bar p {font-size:12px;color:var(--muted);margin-top:2px}
.schedule-bar .text-link {margin-left:auto;align-self:center}
.empty {display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;min-height:184px;padding:24px}
.empty-symbol,.auth-icon {display:grid;place-items:center;background:#eef4ed;color:#52745c;border-radius:13px;width:48px;height:48px;margin-bottom:10px}
.empty strong {font-weight:620;font-size:15px}
.empty p {font-size:13px;color:var(--muted);max-width:380px;margin-top:5px}
.table-tools {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 20px}
.collection-title,.actions,.search,.search>span,.text-link,.pagination,.pagination>div {display:flex;align-items:center;gap:8px}
.count {background:#e8f0e5;color:#3e6249;min-width:23px}
.search {max-width:100%}
.search>span {padding:0 10px;border:1px solid #bbc9bf;border-radius:8px;min-width:0;background:white;color:#637568}
.search input:not([type=checkbox]) {border:0;min-height:38px;padding:7px 1px;width:235px;font-size:13px}
.search>span:focus-within {outline:2px solid #789b81}
.search input:focus {outline:0}
.clear {padding:6px}
.table-frame {overflow-x:auto}
.records {width:100%;border-spacing:0;border-collapse:collapse;text-align:left;font-size:13px}
.records th {font-size:11px;letter-spacing:.018em;font-weight:650;color:#54675a;background:#f5f8f4;border-top:1px solid var(--line)}
.records th,.records td {padding:13px 12px;vertical-align:top}
.records th:first-child,.records td:first-child {padding-left:20px}
.records th:last-child,.records td:last-child {padding-right:20px}
.records td {border-top:1px solid #e3eae3;overflow-wrap:anywhere}
.records td strong {font-weight:620;display:block}
.records td small {display:block;color:var(--muted);line-height:1.45;margin-top:3px;font-size:11px}
.records .number {font-variant-numeric:tabular-nums}
.table-products td:first-child,.table-offers td:first-child {width:34%}
.table-proposals td:first-child {width:28%}
.table-runs td:last-child {width:48%}
.table-products td:last-child {min-width:135px}
.change {display:block;color:#365f42;font-size:12px;margin-top:5px}
.actions {align-items:flex-start;flex-wrap:wrap}
.actions .btn {min-height:34px;padding:6px 10px;font-size:12px}
.policy {min-width:105px}
.policy summary {display:flex;align-items:center;gap:5px;cursor:pointer;color:var(--jade);font-size:12px;font-weight:620;min-height:32px}
.policy summary::-webkit-details-marker {display:none}
.policy[open] summary .icon:last-child {transform:rotate(90deg)}
.policy[open] {min-width:180px}
.policy form {padding:10px;border:1px solid var(--line);border-radius:8px;background:#f7faf6;max-width:260px}
.policy .stack {gap:8px}
.policy .stack label {font-size:12px}
.policy input:not([type=checkbox]) {width:100%;min-height:35px}
.stack {display:flex;flex-direction:column;gap:15px}
.stack label {display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px}
.stack .check {display:flex;flex-direction:row;align-items:center;gap:7px}
input[type=checkbox] {accent-color:var(--jade);width:16px;height:16px}
.help,.muted {color:var(--muted)}
.help {font-size:13px;line-height:1.55;font-weight:400}
.pagination {justify-content:space-between;border-top:1px solid var(--line);padding:12px 20px;color:var(--muted)}
.pagination .btn {min-height:32px;font-size:12px}
.settings-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px}
.form-body {padding:21px 22px}
.form-body.stack>#margin {max-width:175px;margin-top:-8px}
.detail-list {margin:0 0 20px}
.detail-list>div {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}
.detail-list dt {color:var(--muted)}
.detail-list dd {margin:0;font-weight:600}
.text-link {font-size:13px;font-weight:620;align-self:flex-start}
.narrow {max-width:640px}
.notice {display:flex;align-items:center;gap:9px;padding:11px 13px;border-radius:8px;font-size:13px;line-height:1.4}
.workspace-inner>.notice {margin-bottom:19px}
.notice.success {background:#e1efe2;color:#315c3d}
.notice.warning {background:#fbeddc;color:#79461c}
.error-card {max-width:550px;margin:clamp(20px,8vh,100px) auto;padding:30px}
.error-card>* {display:table;margin-bottom:16px}
.error-card .brand {color:var(--forest);display:inline-flex;margin-right:15px}
.error-card p {font-size:14px;color:var(--muted)}
.error-card .btn {display:inline-flex;margin-bottom:0}
.public-space {min-height:100vh;display:grid;place-items:center;padding:24px}
.public-inner {width:min(100%,940px)}
.auth-wrap {display:grid;grid-template-columns:1fr 1.06fr;background:white;border:1px solid #d3dfd5;border-radius:22px;box-shadow:0 12px 48px #253c2910;overflow:hidden}
.auth-aside {display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow:hidden;background:var(--forest);padding:36px;min-height:530px;color:#eaf8ec}
.auth-diagram {position:relative;width:100%;height:210px;min-height:170px;margin:auto 0;display:grid;place-items:center}
.orbit,.diagram-core,.node {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center}
.orbit {border:1px solid #45645a;border-radius:50%}
.ob1 {width:120px;height:120px}
.ob2 {width:210px;height:210px;border-color:#36564b}
.diagram-core,.node {color:#ccf4d3;background:#2d4c40;border:1px solid #587761;border-radius:14px}
.diagram-core {width:83px;height:83px;transform:translate(-50%,-50%) rotate(-7deg)}
.node {width:40px;height:40px;border-radius:11px}
.n1 {transform:translate(-112px,-72px) rotate(-4deg)}
.n2 {transform:translate(73px,-49px) rotate(6deg)}
.n3 {transform:translate(12px,78px) rotate(-4deg)}
.auth-copy h2 {color:#f5fff6;margin-bottom:8px;font-size:30px;letter-spacing:-.055em}
.auth-copy p {color:#c5dacc;font-size:14px;max-width:305px}
.auth-form {padding:42px clamp(24px,4.4vw,60px);display:flex;align-items:center}
.auth-inner {width:100%}
.auth-inner h1 {font-size:34px;margin:13px 0 6px}
.auth-inner>p {color:var(--muted);font-size:14px;margin-bottom:24px}
.auth-inner .notice {margin-bottom:16px}
.pass-wrap {position:relative;display:flex}
.pass-wrap input {width:100%;padding-right:45px!important}
.reveal {position:absolute;right:4px;top:4px;bottom:4px;display:grid;place-items:center;width:35px;background:transparent;color:#657b6a;border:0;border-radius:6px}
.reveal:hover {background:#f1f5ef}
.auth-form .stack>.help {margin-top:-10px}
@media (min-width:1450px) {
  .sidebar {width:250px;padding-left:21px;padding-right:21px}
  .workspace {margin-left:250px}
}
@media (max-width:1100px) {
  .sidebar {width:199px;padding-left:12px;padding-right:12px}
  .workspace {margin-left:199px}
  .workspace-inner {padding-left:24px;padding-right:24px}
  .metric {padding:17px}.metric-icon {right:14px;top:14px}
  .metric-label {font-size:13px}.dashboard-grid {gap:14px}
  .section-heading,.form-body {padding:17px}
  .provider-row {margin-left:16px;margin-right:16px}
  .timeline {padding-left:17px;padding-right:17px}
}
@media (max-width:800px) {
  .sidebar {width:245px;transform:translateX(-105%);visibility:hidden;transition:transform .18s ease,visibility .18s;padding-top:22px}
  body.menu-open .sidebar {transform:translateX(0);visibility:visible}
  .mobile-close,.mobile-head,.nav-backdrop:not([hidden]) {display:flex}
  .mobile-head {min-height:60px;align-items:center;justify-content:space-between;padding:9px 17px;background:var(--forest);color:#fff}
  .mobile-head .brand {font-size:23px}.mobile-head .brand-mark {width:31px;height:31px}
  .nav-backdrop {position:fixed;inset:0;background:#10211c7a;z-index:8}
  .workspace {margin:0}.workspace-inner {padding:27px 18px 42px}.topline {display:none}
  .metrics {gap:10px}.metric {min-height:145px}
  .dashboard-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-head {margin-bottom:20px}.auth-aside {padding:27px}
}
@media (max-width:640px) {
  .page-head {align-items:flex-start;flex-wrap:wrap;gap:12px}
  .page-head p {font-size:14px}
  .metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:14px}
  .metric {min-height:120px;padding:13px;border-radius:12px}
  .metric-label {padding:0;font-size:12px;line-height:1.3}
  .metric-icon {display:none}.metric>strong {font-size:31px;margin:4px 0 9px}
  .metric.accent {grid-column:1 / -1;min-height:70px;display:grid;align-items:center;grid-template-columns:auto 1fr auto;gap:7px 12px}
  .metric.accent>strong {grid-column:1;grid-row:1 / 3;margin:0}
  .metric.accent .metric-label {grid-column:2;align-self:end}
  .metric.accent .metric-route {grid-column:2;align-self:start}
  .metric.accent .metric-icon {position:static;display:grid;grid-column:3;grid-row:1 / 3}
  .dashboard-grid,.settings-grid {grid-template-columns:1fr;gap:14px}
  .schedule-bar {flex-wrap:wrap}.schedule-bar .text-link {font-size:12px}
  .panel {border-radius:12px}
  .section-heading,.table-tools {padding:15px}
  h2 {font-size:18px}
  .provider-row {padding:14px 0}
  .table-frame {overflow:visible}
  .records,.records tbody,.records tr {display:block}
  .records thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .records tr {padding:10px 15px 13px;border-top:1px solid var(--line)}
  .records td,.records td:first-child,.records td:last-child {display:grid;grid-template-columns:minmax(72px,29%) minmax(0,1fr);gap:0 10px;width:100%;border:0;padding:4px 0}
  .records td:before {content:attr(data-label);font-size:11px;color:var(--muted);padding-top:1px;grid-column:1;grid-row:1 / 8}
  .records td>* {grid-column:2}
  .records .status {justify-self:start}.records td small {font-size:11px}
  .policy[open] {min-width:0}
  .search {width:100%}.search>span {flex:1}.search input:not([type=checkbox]) {width:100%}
  .table-tools {gap:13px}
  .public-space {padding:14px}
  .auth-wrap {grid-template-columns:1fr;border-radius:16px;max-width:440px;margin:auto}
  .auth-aside {min-height:0;padding:18px 24px}
  .auth-aside .brand {font-size:24px}
  .auth-aside .brand-mark {width:33px;height:33px}
  .auth-diagram,.auth-copy {display:none}
  .auth-form {padding:26px 24px 30px}
  .auth-inner h1 {font-size:30px}
}
@media (max-width:360px) {
  .workspace-inner {padding-left:12px;padding-right:12px}
  .records td,.records td:first-child,.records td:last-child {grid-template-columns:70px minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce) {.sidebar {transition:none}}
