/* inter-latin-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/inter-latin-400-normal-C38fXH4l.woff2) format('woff2'), url(/assets/inter-latin-400-normal-CyCys3Eg.woff) format('woff');
}
/* inter-latin-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/inter-latin-500-normal-Cerq10X2.woff2) format('woff2'), url(/assets/inter-latin-500-normal-BL9OpVg8.woff) format('woff');
}
/* inter-latin-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/inter-latin-600-normal-LgqL8muc.woff2) format('woff2'), url(/assets/inter-latin-600-normal-CiBQ2DWP.woff) format('woff');
}
:root {
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: #20242a;
  background: #f7f8fa;
  font-synthesis: none;
  --blue: #0969da;
  --line: #dfe3e8;
  --muted: #68717d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr);
  background: #fbfcfd;
  overflow: hidden;
}
.topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(320px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.brand svg { color: #353c45; }
.model-switch { display: inline-flex; border: 1px solid #d6dbe1; border-radius: 7px; padding: 3px; background: #f6f7f9; }
.model-switch button { min-width: 96px; height: 36px; padding: 0 16px; border: 0; border-radius: 5px; color: #5a6470; background: transparent; }
.model-switch button.active { color: #17202b; background: white; box-shadow: 0 1px 2px rgba(26, 35, 46, 0.12); font-weight: 500; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.status { display: flex; align-items: center; gap: 6px; margin-right: 6px; color: #69727e; font-size: 13px; }
.status.valid svg, .validation-summary.is-valid svg { color: #159447; }
.status.invalid svg, .validation-summary.is-invalid svg { color: #d34d4d; }
.primary-action, .secondary-action { height: 38px; border-radius: 6px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; font-weight: 500; }
.primary-action { color: white; background: var(--blue); border: 1px solid var(--blue); }
.primary-action:hover { background: #075fca; }
.primary-action:disabled { cursor: not-allowed; background: #a9b5c5; border-color: #a9b5c5; }
.secondary-action { color: #38414c; background: white; border: 1px solid #d6dbe1; }
.secondary-action:hover { background: #f6f8fa; }
.workspace { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(430px, 1.2fr) 300px minmax(360px, 1fr); overflow: hidden; }
.panel { position: relative; min-width: 0; background: #fff; border-right: 1px solid var(--line); overflow: hidden; }
.panel h2 { position: absolute; top: 22px; left: 24px; margin: 0; z-index: 3; font-size: 14px; font-weight: 500; color: #30363e; }
.profile-hint { position: absolute; top: 44px; left: 24px; z-index: 3; margin: 0; color: #87909b; font-size: 11px; }
.profile-canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.preview-panel { background: #fbfcfd; display: grid; grid-template-rows: minmax(0, 1fr) 64px; }
.preview-stage { min-height: 0; }
.view-toggles { display: flex; justify-content: center; align-items: center; gap: 12px; border-top: 1px solid #eef0f3; }
.view-toggles button { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; color: #5b6571; background: transparent; }
.view-toggles button:hover { background: #f1f4f7; }
.view-toggles button.active { color: var(--blue); border-color: #c9def7; background: #eef6ff; }
.inspector { min-width: 0; background: #fff; padding: 24px 22px; border-right: 1px solid var(--line); overflow-y: auto; }
.inspector-heading { margin-bottom: 24px; padding: 14px 15px; border: 1px solid #cfe0f5; border-radius: 7px; background: #f4f9ff; }
.inspector-heading .eyebrow { margin-bottom: 7px; color: var(--blue); }
.inspector-heading h2 { margin: 0; color: #1e2a38; font-size: 17px; font-weight: 600; line-height: 1.3; }
.inspector-heading p { margin: 7px 0 0; color: #6e7884; font-size: 11px; }
.custom-presets { margin: -8px 0 24px; padding: 13px; border: 1px solid #dce2e8; border-radius: 7px; background: #fafbfc; }
.custom-presets-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.custom-presets-heading .eyebrow { margin: 0; }
.custom-presets-heading > span:last-child { color: #8a929c; font-size: 9px; }
.preset-save-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-bottom: 8px; }
.preset-save-row input { min-width: 0; height: 34px; padding: 0 9px; color: #343b44; border: 1px solid #d9dee4; border-radius: 5px; outline: none; background: #fff; font-size: 12px; }
.preset-save-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.09); }
.preset-save-row button, .preset-actions button { height: 34px; padding: 0 10px; border: 1px solid #cbd7e5; border-radius: 5px; color: var(--blue); background: #fff; font-size: 11px; font-weight: 500; }
.preset-save-row button:hover, .preset-actions button:hover { border-color: #98bce5; background: #f2f7fd; }
.preset-save-row button:disabled, .preset-actions button:disabled { cursor: default; color: #a1a9b2; border-color: #e0e4e8; background: #f5f6f7; }
.custom-presets .parameter-select { height: 34px; font-size: 12px; }
.preset-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.preset-actions button:last-child { color: #8b5660; }
.empty-presets { margin: 2px 0 0; color: #7a838e; font-size: 10px; line-height: 1.45; }
.eyebrow { display: block; margin-bottom: 9px; color: #727b87; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.parameter-select { width: 100%; height: 38px; padding: 0 30px 0 10px; border: 1px solid #d9dee4; border-radius: 5px; color: #343b44; background: #fff; font-size: 13px; }
.preset-note { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid; font-size: 10px; line-height: 1.45; }
.preset-note.verified { color: #37714d; border-color: #70b58a; }
.preset-note.caution { color: #8a6731; border-color: #d7aa62; }
.field-help { margin: 7px 0 0; color: #7a838e; font-size: 10px; line-height: 1.45; }
.bore-editors { display: grid; gap: 8px; }
.bore-editor { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 92px; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #d9dee4; border-radius: 6px; background: #fff; }
.bore-editor.active { border-color: #8dbbed; background: #f5f9fe; box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.08); }
.bore-editor > span:first-child { display: grid; gap: 2px; }
.bore-editor strong { color: #38414c; font-size: 12px; font-weight: 600; }
.bore-editor small { color: #7a838e; font-size: 10px; }
.bore-value { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px; }
.bore-value input { width: 100%; min-width: 0; padding: 7px 6px; color: var(--blue); border: 1px solid #cbd5e1; border-radius: 5px; outline: none; background: #fff; text-align: right; font-size: 14px; font-weight: 600; }
.bore-value input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(9, 105, 218, 0.11); }
.value-label { margin-top: 20px; }
.value-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 0; padding: 7px 11px; color: var(--blue); border: 2px solid #9fc6f2; border-radius: 7px; background: #fff; }
.value-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.11); }
.value-row input { width: 100%; min-width: 0; padding: 2px 0; color: var(--blue); border: 0; outline: none; background: transparent; font-size: 27px; font-weight: 600; }
.value-row span { font-size: 13px; font-weight: 500; }
.quick-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.quick-steps button { height: 32px; color: #52606f; border: 1px solid #d7dde4; border-radius: 5px; background: #fff; font-size: 12px; }
.quick-steps button:hover { color: var(--blue); border-color: #aacbf0; background: #f3f8fe; }
.value-row.compact { margin-top: 0; color: #333a43; }
.value-row.compact { padding: 0; border: 0; border-radius: 0; background: transparent; }
.value-row.compact:focus-within { box-shadow: none; }
.value-row.compact input { padding: 9px 10px; color: #333a43; border: 1px solid #d9dee4; border-radius: 5px; font-size: 14px; }
.clearance-row input { color: #8a4f24; }
.variable-name { margin: 8px 0 0; color: #8a929c; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; overflow-wrap: anywhere; }
.divider { height: 1px; margin: 24px 0; background: #e6e9ed; }
.result-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; color: #6a737f; font-size: 12px; }
.result-row strong { color: #303741; font-weight: 600; }
.validation-summary { display: flex; align-items: flex-start; gap: 9px; }
.validation-summary div { display: grid; gap: 4px; }
.validation-summary strong { font-size: 13px; }
.validation-summary span { color: #7a838e; font-size: 11px; }
.issue-list { margin: 12px 0 0 28px; padding: 0; color: #b13f3f; font-size: 11px; line-height: 1.5; }
.gauge-button, .reset-button { width: 100%; padding: 9px 10px; border-radius: 5px; background: white; font-size: 12px; }
.gauge-button { margin-top: 22px; color: var(--blue); border: 1px solid #b8d3f2; background: #f4f9ff; }
.gauge-button:hover { border-color: #86b5e9; background: #eaf4ff; }
.reset-button { margin-top: 8px; color: #626c78; border: 1px solid #d9dee4; }
.reset-button:hover { color: #26313e; background: #f7f8fa; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 10px 15px; color: white; background: #202832; border-radius: 6px; box-shadow: 0 8px 22px rgba(26, 35, 46, 0.2); font-size: 13px; z-index: 20; }
@media (max-width: 1100px) {
  .topbar { grid-template-columns: auto 1fr auto; padding: 0 14px; gap: 12px; }
  .workspace { grid-template-columns: minmax(420px, 1fr) 290px; grid-template-rows: minmax(460px, 1fr) 390px; overflow-y: auto; }
  .preview-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .app-shell { grid-template-rows: auto 1fr; }
  .topbar { min-height: 118px; grid-template-columns: 1fr auto; grid-template-areas: "brand status" "models actions"; padding: 12px; }
  .brand { grid-area: brand; }
  .model-switch { grid-area: models; justify-self: start; }
  .topbar-actions { grid-area: actions; }
  .status { grid-area: status; justify-self: end; }
  .topbar-actions .status { display: none; }
  .workspace { display: block; overflow: auto; }
  .profile-panel { height: 460px; border-bottom: 1px solid var(--line); }
  .inspector { border-bottom: 1px solid var(--line); }
  .preview-panel { height: 480px; border-bottom: 1px solid var(--line); }
}
