:root {
  --ink: #3e4c6b;
  --muted: #697185;
  --green: #505778;
  --accent: #6d5d85;
  --line: #dde0eb;
  --paper: #f6f7fb;
  --brand-purple: #6d5d85;
  --brand-dot: #b1a044;
}

.workflow-nav{flex-wrap:wrap;row-gap:0;padding-block:4px}.calculation-navigation{flex-wrap:wrap;gap:12px}.calculation-scope{font-size:11px;color:var(--muted);line-height:1.6}

.calculation-navigation { max-width: 1456px; margin: 20px auto 0; padding-inline: 44px; }
.calculation-navigation .button { background: #f0edf7; border: 1px solid #d7cfe5; color: #605174; font-size: 13px; }
.calculation-navigation .button:hover { background: #e8e1f3; }
@media (max-width: 1080px) { .calculation-navigation { padding-inline: 26px; } }
@media (max-width: 800px) { .calculation-navigation { padding-inline: 20px; } }
@media (max-width: 480px) { .calculation-navigation { padding-inline: 15px; margin-top: 16px; } }

.brand { flex-shrink: 0; letter-spacing: normal; }
.system-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  direction: rtl;
  unicode-bidi: isolate;
  white-space: nowrap;
  font-family: "Segoe UI", Arial, sans-serif;
}
.system-label { font-size: 15px; line-height: 1.4; font-weight: 400; color: var(--muted); }
.system-word { font-size: 38px; line-height: 1.15; font-weight: 700; letter-spacing: -1px; color: var(--brand-purple); }
.system-dot { color: var(--brand-dot); }
.brand-descriptor { color: var(--muted); }
.primary:hover { background: #424967; }
.primary > svg:first-child { color: #e2dceb; }
.outline { border-color: var(--line); }
.outline:hover, .ghost:hover { background: #f0eef6; }
.ghost { color: var(--ink); }
.language-picker {
  display: grid;
  grid-template-columns: 22px minmax(80px, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 6px 10px;
  border: 2px solid var(--brand-purple);
  border-radius: 11px;
  background: #f0ebf8;
  color: #554571;
  box-shadow: 0 2px 9px #6d5d851c;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.language-picker > svg { grid-row: 1 / 3; width: 22px; height: 22px; }
.language-picker-caption { font-size: 10px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.language-picker select {
  width: 100%;
  min-height: 26px;
  padding: 0 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #554571;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.language-picker:hover { background: #e6def2; }
.language-picker:focus-within { outline: 3px solid #aaa0c6; outline-offset: 3px; box-shadow: 0 2px 12px #6d5d8529; }
.language-picker select:focus-visible { outline: none; }
.top-actions .history-button {
  min-height: 48px;
  padding: 11px 16px;
  border: 2px solid var(--brand-purple);
  border-radius: 10px;
  background: var(--brand-purple);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px #6d5d8526;
}
.top-actions .history-button:hover { background: #58496f; border-color: #58496f; }
.top-actions .history-button:focus-visible { outline: 3px solid #b1a044; outline-offset: 3px; }
.top-actions .history-button svg { stroke-width: 2; }
button:focus-visible, a:focus-visible { outline-color: #aaa0c6; }
.field input:focus, .field textarea:focus, .material-row input:focus {
  border-color: #8c7fa9;
  box-shadow: 0 0 0 3px #f0edf7;
}

.site-footer {
  display: block;
  width: calc(100% - 88px);
  margin-inline: auto;
  padding-top: 28px;
  padding-bottom: 34px;
  color: var(--ink);
  font-size: 14px;
}
.footer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.beta-label { background: #e8e6f0; color: var(--brand-purple); padding: 5px 10px; border-radius: 6px; font-size: 12px; line-height: 1.4; }
.footer-description { margin-top: 18px; margin-bottom: 13px; font-size: 15px; line-height: 1.65; }
.footer-slogan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 26px; color: var(--brand-purple); font-size: 18px; font-weight: 600; line-height: 1.5; }
.footer-equals { color: var(--brand-dot); font-size: 22px; }
.footer-credit { color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer-author { color: var(--brand-purple); font-weight: 600; }
.footer-copyright { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }

@media (max-width: 1080px) { .site-footer { width: calc(100% - 52px); } }
@media (max-width: 800px) { .site-footer { width: calc(100% - 40px); } }
@media (max-width: 480px) {
  .topbar { padding-top: 14px; padding-bottom: 14px; }
  .topbar .top-actions { flex-basis: 100%; justify-content: space-between; }
  .topbar .top-actions { flex-wrap: wrap; gap: 6px; }
  .top-actions .history-button { min-height: 44px; padding: 9px 10px; font-size: 11px; gap: 6px; }
  .top-actions .history-button span { display: inline; }
  .topbar .system-word { font-size: 34px; }
  .site-footer { width: calc(100% - 30px); padding-top: 25px; padding-bottom: 28px; }
  .footer-slogan { font-size: 17px; }
}

.workflow-nav{display:flex;align-items:center;gap:26px;min-height:49px;padding:0 44px;background:#fff;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.workflow-nav .current{display:flex;align-items:center;min-height:49px;border-bottom:2px solid var(--brand-purple);color:var(--brand-purple);font-weight:600}.workflow-nav a{display:flex;gap:7px;align-items:center;min-height:44px;text-decoration:none;color:var(--brand-purple)}.workflow-nav a:hover{text-decoration:underline;text-underline-offset:4px}.workflow-nav svg{width:16px;height:16px}@media(max-width:1080px){.workflow-nav{padding-inline:26px}}@media(max-width:480px){.workflow-nav{padding-inline:15px;gap:21px;font-size:11px}}
