:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #17263e;
  background: #f8faff;
  --ink: #17263e;
  --muted: #60718b;
  --accent: #245de8;
  --accent-text: #245de8;
  --line: #e1e8f2;
  --soft: #f5f8fc;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { cursor: pointer; }
button { border: 0; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
aside { width: 238px; background: #fff; border-right: 1px solid var(--line); height: 100dvh; position: fixed; padding: 30px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 22px; letter-spacing: -1px; }
.logo { width: 30px; height: 30px; color: var(--accent); flex-shrink: 0; }
.brand-dot { color: var(--accent); }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; margin-top: 3px; }
.navlabel { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); margin: 42px 10px 16px; }
nav { display: grid; gap: 5px; }
nav button { text-align: left; min-height: 46px; padding: 12px 11px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 12px; font-weight: 500; }
nav button:hover { background: var(--soft); color: var(--ink); }
nav button.active { color: var(--accent-text); background: #edf2fd; border-color: #d9e4f8; }
.aside-bottom { margin-top: auto; padding-top: 34px; color: var(--muted); font-size: 12px; }
.aside-bottom small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.6; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 6px; }
main { margin-left: 238px; width: calc(100% - 238px); min-width: 0; }
header { height: 76px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 38px; color: var(--muted); font-size: 12px; }
.avatar { border: 1px solid var(--line); background: var(--soft); color: var(--accent); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-weight: 500; }
.content { padding: 38px; max-width: 1600px; margin: auto; }
.view { min-width: 0; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(110deg,#fff,#f1f5fe); position: relative; isolation: isolate; overflow: hidden; }
.heading > div { min-width: 0; }
.eyebrow { font-size: 10px; letter-spacing: 1.7px; color: var(--accent-text); font-weight: 600; }
h1 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; letter-spacing: -1.4px; font-weight: 500; margin: 12px 0 14px; overflow-wrap: anywhere; }
h2 { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -.3px; margin: 0 0 19px; }
h3 { font-size: 16px; font-weight: 500; line-height: 1.35; }
p { line-height: 1.65; color: var(--muted); margin: 8px 0 18px; }
.heading p { margin-bottom: 0; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 9px; padding: 12px 18px; font-size: 13px; font-weight: 500; text-decoration: none; text-align: center; line-height: 1.4; }
.primary:hover { background: #1c4fd0; border-color: #1c4fd0; }
.primary:disabled { background: #e6eaed; border-color: var(--line); color: #60718b; cursor: wait; }
.text { color: var(--accent-text); background: transparent; padding: 8px 0; text-align: left; font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text:hover { color: var(--ink); text-decoration: underline; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.metric { min-width: 0; padding: 24px 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(130deg,#fff,#f5f8fc); }
.metric:last-child { border-right: 1px solid var(--line); }
.metric span { display: block; font-size: 12px; color: var(--muted); }
.metric strong { display: block; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.2; font-weight: 500; letter-spacing: -1px; margin: 15px 0 10px; overflow-wrap: anywhere; }
.metric small { display: block; color: var(--muted); font-size: 11px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin-bottom: 22px; min-width: 0; }
.panel p { overflow-wrap: anywhere; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-weight: 600; color: var(--ink); background: var(--soft); }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
td b { font-weight: 600; }
td small { display: block; color: var(--muted); margin-top: 5px; line-height: 1.5; }
tbody tr:hover { background: #f8faff; }
.badge { display: inline-block; background: #edf2fd; color: #2d52c4; border: 1px solid #d9e4f8; padding: 5px 10px; border-radius: 30px; font-size: 11px; line-height: 1.4; }
.empty { text-align: center; padding: 40px 15px; color: var(--muted); }
.empty h3, .empty h2 { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.steps > div { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.steps b { color: var(--accent-text); font-size: 11px; font-weight: 400; letter-spacing: 1px; }
.steps h3 { margin: 16px 0 8px; }
.steps p { font-size: 13px; margin-bottom: 0; }
.workspace { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(390px, 1.15fr); gap: 24px; }
.workspace > div { min-width: 0; }
label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #8092b0; background: #fff; border-radius: 9px; min-height: 44px; padding: 10px 11px; color: var(--ink); margin-top: 8px; }
input::placeholder, textarea::placeholder { color: #60718b; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-text); }
textarea { resize: vertical; line-height: 1.6; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.upload { border: 1px dashed #9bb0e9; border-radius: 14px; background: #f5f8fc; padding: 22px; text-align: center; color: var(--accent-text); }
.upload input { border: 0; background: transparent; font-size: 12px; padding: 8px 0; }
input[type=file]::file-selector-button { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-right: 8px; cursor: pointer; }
.muted { font-size: 12px; color: var(--muted); }
.notice { background: #fff8ed; border: 1px solid #edd7ac; border-left: 3px solid #bc8a34; border-radius: 12px; padding: 15px; color: #78511f; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.notice ul { padding-left: 20px; margin: 8px 0 0; }
.rule { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rule-controls { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(48px, .6fr) minmax(52px, .65fr) 28px; gap: 7px; align-items: center; }
.rule-controls input, .rule-controls select { padding: 8px 6px; font-size: 12px; margin: 0; }
.rule-controls button { min-height: 44px; text-align: center; font-size: 20px; }
.rule small { display: block; color: var(--muted); font-size: 12px; margin-top: 9px; overflow-wrap: anywhere; }
.price-fields { margin-top: 22px; }
.result-totals { display: flex; gap: 32px; flex-wrap: wrap; margin: 24px 0; }
.result-totals > div { min-width: 0; }
.result-totals small { color: var(--muted); display: block; margin-bottom: 9px; }
.result-totals strong { font-size: 26px; font-weight: 500; letter-spacing: -.5px; overflow-wrap: anywhere; }
.component { border-bottom: 1px solid var(--line); padding: 15px 0; }
.component summary { cursor: pointer; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; min-height: 44px; }
.component summary b { display: block; color: var(--ink); font-weight: 500; font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.component summary strong { color: var(--ink); font-size: 13px; flex-shrink: 0; }
.checks { padding: 15px 4px; }
.check { display: flex; gap: 11px; margin-bottom: 13px; font-size: 13px; }
.check > b { width: 18px; flex-shrink: 0; }
.check.pass > b { color: #246448; }
.check.fail > b { color: #a33932; }
.check.unknown > b { color: #78511f; }
.check small { display: block; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.filters { display: flex; gap: 16px; margin-bottom: 20px; }
.filters input { flex: 1; }
.filters select { width: 210px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); padding: 16px; font-size: 12px; color: var(--ink); }
summary { cursor: pointer; }
#product-detail th, #product-detail td { overflow-wrap: anywhere; }
#message:not(:empty) { padding: 15px 18px; border: 1px solid; border-left-width: 3px; border-radius: 12px; margin-bottom: 20px; }
.error { background: #fcf0ee; color: #963c34; border-color: #dbaaa4 !important; }
.success { background: #eff6f1; color: #2b6248; border-color: #a5c6b1 !important; }
#login { max-width: 450px; margin: 35px auto; }
[hidden] { display: none !important; }
.automation-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.automation-status small { color: var(--muted); }
.automation-flow { list-style: none; counter-reset: flow; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 0; margin: 0 0 22px; }
.automation-flow li { counter-increment: flow; display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.automation-flow li::before { content: counter(flow, decimal-leading-zero); color: var(--accent-text); font-size: 12px; }
#automation-refresh { min-height: 44px; }
#automation-results table, #automation-jobs table, #tender-list table, #recent table { min-width: 800px; }
.table-wrap:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
@media (max-width: 1200px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 1px solid var(--line); }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workspace { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .automation-status { grid-template-columns: 1fr; gap: 0; }
  aside { width: 204px; padding: 28px 16px; }
  main { margin-left: 204px; width: calc(100% - 204px); }
  header { padding: 0 26px; }
  .content { padding: 30px 26px; }
  .heading { align-items: flex-start; }
  .heading .primary { max-width: 200px; }
}
@media (max-width: 720px) {
  .automation-flow { grid-template-columns: 1fr; }
  body { display: block; }
  aside { position: static; width: 100%; height: auto; padding: 20px; overflow: visible; }
  .brand { font-size: 19px; }
  nav { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
  nav button { flex: 1 1 auto; padding: 10px 12px; font-size: 12px; min-height: 44px; white-space: nowrap; }
  .navlabel, .aside-bottom { display: none; }
  main { margin: 0; width: 100%; }
  header { height: 56px; padding: 0 20px; border-top: 1px solid var(--line); }
  .content { padding: 26px 20px; }
  .heading { display: block; margin-bottom: 24px; }
  h1 { font-size: 32px; letter-spacing: -1.2px; }
  .heading { padding: 24px 20px; border-radius: 18px; }
  .heading .primary { margin-top: 22px; max-width: none; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .metric { padding: 20px 16px; }
  .panel { padding: 22px 18px; }
  .fields { grid-template-columns: 1fr; }
  .filters { display: grid; gap: 8px; }
  .filters select { width: 100%; }
  .rule-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; }
  .rule-controls [data-field=component], .rule-controls [data-field=key] { grid-row: 1; }
  .rule-controls [data-field=op], .rule-controls [data-field=value] { grid-row: 2; }
  .rule-controls button { grid-column: 3; grid-row: 1 / 3; }
  #catalog-table table { min-width: 580px; }
  #product-detail table { table-layout: fixed; }
  #product-detail th { width: 40%; }
  .component summary { flex-wrap: wrap; }
  .result-totals { gap: 20px; }
}
@media (max-width: 380px) {
  .content { padding: 24px 16px; }
  .metric { padding: 18px 12px; }
  .metric strong { font-size: 23px; }
  .panel { padding: 20px 14px; }
  .primary { padding: 12px 14px; }
}
 .automation-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.check-label{display:flex;align-items:center;gap:10px;margin:16px 0}.check-label input{width:auto}
.automation-actions button:disabled{cursor:not-allowed}.text:disabled{color:#60718b;opacity:.65;cursor:not-allowed}

/* Concept 08: restrained orbit motif behind the section heading only. */
.heading::after{content:"";position:absolute;z-index:-1;pointer-events:none;width:330px;height:330px;border:1px solid #d5e0f5;border-radius:50%;right:-140px;top:-170px;box-shadow:0 0 0 28px #e6edfa70,0 0 0 29px #d5e0f5;opacity:.65}
.heading>div,.heading>button{position:relative;z-index:1}
.heading .primary{flex-shrink:0}
.table-wrap{border-radius:12px}
input[type=checkbox]{accent-color:var(--accent)}
.automation-flow li::before{display:inline-grid;place-items:center;min-width:28px;height:28px;background:#edf2fd;border-radius:50%}
.component summary{border-radius:9px;padding:4px 0}
details[open].component summary{color:var(--accent)}
pre{border-radius:12px;border:1px solid var(--line)}
#login{max-width:480px;background:linear-gradient(130deg,#fff,#f1f5fe);border:1px solid var(--line);border-radius:22px;padding:30px}
#login h1{font-size:32px}
@media(max-width:720px){.heading .primary{width:100%}.automation-actions{align-items:stretch}.automation-actions button{width:100%;text-align:center;justify-content:center}.check-label{align-items:flex-start}.brand{font-size:23px}.steps{gap:12px}.heading::after{opacity:.4}.panel-head .primary{max-width:100%}#login{padding:24px 20px;margin:10px auto}}
