:root{color-scheme:light;--navy:#14263b;--ink:#17273b;--muted:#53647a;--light:#64748a;--line:#e0e7ee;--wash:#f1f5f9;--white:#fff;--teal:#087b6a;--teal-dark:#056455;--teal-tint:#e8f5f1;--mono:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;font-size:16px}
*{box-sizing:border-box}
body{margin:0;min-width:310px;background:var(--wash);color:var(--ink)}
button,input,select{font:inherit}
button,select{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:inherit}
:focus-visible{outline:2px solid #199e8a;outline-offset:2px}
[hidden]{display:none!important}
.frame{width:min(100% - 80px,1440px);margin-inline:auto}
.topbar{background:var(--navy);color:white;border-bottom:1px solid #25394f}
.topbar-content{height:65px;display:flex;align-items:center;justify-content:space-between}
.brand{text-decoration:none;display:flex;align-items:center;gap:11px;font-weight:750;font-size:1.08rem;letter-spacing:-.02em}
.brand>span:last-child{display:flex;align-items:center;gap:13px}
.brand small{font-weight:500;font-size:.83rem;color:#c4d0de;letter-spacing:0}
.brand-divider{height:17px;width:1px;background:#4d5e73}
.brand-icon{width:33px;height:33px;display:grid;place-items:center;background:#a8e5d5;border-radius:7px;position:relative;color:#10354a}
.brand-icon:before{content:"";position:absolute;left:6px;right:6px;top:13px;border-top:2px solid currentColor}
.brand-icon i,.brand-icon b{position:absolute;top:16px;border-bottom:6px solid currentColor;border-left:4px solid transparent;border-right:4px solid transparent}
.brand-icon i{left:6px}.brand-icon b{right:6px}
.top-button{color:#edf5fc;background:transparent;border:1px solid #41556b;border-radius:7px;padding:7px 11px;font-size:.86rem;display:flex;align-items:center;gap:7px}
.top-button:hover{background:#263c54}
.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:29px 0 26px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(2rem,3.3vw,3.15rem);font-weight:760;line-height:1.04;letter-spacing:-.057em}
.intro p{margin-top:9px;color:var(--muted);font-size:1rem}
.toolbar{display:flex;gap:10px;align-items:end;flex-wrap:wrap;flex-shrink:0}
.unit-selector{display:flex;align-items:center;gap:9px;background:white;border:1px solid #d8e2ec;border-radius:8px;padding-left:11px;height:39px}
.unit-selector span{font-size:.82rem;color:var(--muted);font-weight:600}
.unit-selector select{width:91px;border:0;border-left:1px solid var(--line);border-radius:0 7px 7px 0;height:37px}
.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:39px;padding:8px 12px;border:1px solid transparent;border-radius:8px;font-weight:680;font-size:.88rem;white-space:nowrap}
.button span{font-size:1.05rem;line-height:1}
.secondary{background:#fff;border-color:#d8e2ec;color:var(--ink)}
.secondary:hover,.add:hover{background:#edf5f7;border-color:#a6c9c6}
.primary{background:var(--teal);color:white}.primary:hover{background:var(--teal-dark)}
.workspace{display:grid;grid-template-columns:minmax(340px,380px) minmax(0,1fr);gap:20px;align-items:start}
.analysis{display:grid;gap:16px;min-width:0}
.panel{background:var(--white);border:1px solid var(--line);border-radius:13px;min-width:0;box-shadow:0 2px 4px #18334a07}
.card-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:17px 19px 15px}
.card-head h2{font-size:1.12rem;line-height:1.3;letter-spacing:-.027em;font-weight:750}
.card-head p{color:var(--muted);font-size:.86rem;margin-top:4px}
.tabs{display:flex;border-bottom:1px solid var(--line);gap:3px;padding:0 14px;overflow:auto;scrollbar-width:thin}
.tabs button{padding:9px 10px 10px;border:0;border-bottom:2px solid transparent;color:var(--muted);background:white;font-size:.875rem;font-weight:630;white-space:nowrap}
.tabs button:hover{color:var(--teal-dark);background:#f8fbfa}
.tabs button[aria-current="true"]{color:var(--teal-dark);border-bottom-color:var(--teal)}
.model-tabs{justify-content:space-between;gap:0;padding:0 11px}
.model-tabs button{padding-inline:7px}
.editor-area{padding:15px 15px 0}
.section-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.section-label h3{font-size:.91rem;font-weight:730}
.add{background:#fff;border-color:#d9e5e9;color:var(--teal-dark);min-height:32px;font-size:.82rem;padding:5px 9px}
.model-items{display:grid;gap:10px}
.model-item{border:1px solid var(--line);border-radius:9px;background:#f8fafc;padding:9px 10px 10px}
.item-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px;font-size:.875rem;font-weight:700}
.node-header{gap:7px}
.node-header input{width:58px;font-weight:700;min-height:29px;height:29px}
.node-header strong{flex:1}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.field{display:grid;gap:3px;min-width:0;color:var(--muted);font-size:.83rem;font-weight:600}
.field.full{grid-column:1/-1}
input,select{border:1px solid #d4dee9;border-radius:5px;background:white;padding:4px 7px;color:var(--ink);width:100%;min-width:0;min-height:33px;font-size:.875rem}
input.numeric{font-family:var(--mono);font-size:.84rem}
select{padding-right:22px;appearance:none;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%2344576f' stroke-width='1.4' fill='none'/%3E%3C/svg%3E") no-repeat right 8px center;background-size:9px}
.icon-button{min-width:27px;height:27px;border-radius:5px;border:0;background:transparent;color:var(--muted);font-size:1.23rem;line-height:1;padding:0 5px}
.icon-button:hover{background:#fcecea;color:#9b361f}
.extra-controls{font-size:.82rem;margin-top:7px;color:var(--teal-dark)}
.extra-controls summary{cursor:pointer}
.extra-controls .fields{margin-top:7px}
.check-label{display:flex;align-items:center;gap:6px;color:var(--ink);font-size:.83rem}
.check-label input{width:16px;min-height:16px;accent-color:var(--teal)}
.help{color:var(--muted);font-size:.84rem;line-height:1.5;margin:0 0 11px}
.empty{font-size:.85rem;background:#f3f7fa;border:1px dashed #d4e1ec;border-radius:8px;padding:12px;color:var(--muted)}
.editor-footer{display:grid;gap:6px;padding:14px 15px 11px}
.editor-footer small{text-align:center;min-height:18px;color:var(--muted);font-size:.77rem}
.info-chip,.status-chip{white-space:nowrap;border-radius:6px;font-size:.77rem;padding:5px 8px;font-weight:690}
.info-chip{background:#eff4f8;color:#465971}
.status-chip{background:var(--teal-tint);color:var(--teal-dark)}
.status-chip.pending{background:#edf2f6;color:#4d617a}
.status-chip.warning{background:#fff1dd;color:#8b4513}
.drawing{margin:0 15px 14px;background:#14283e;border-radius:9px;overflow:hidden}
.drawing-scroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#576e85 #14283e}
canvas{display:block}
.legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px 21px;padding:9px 15px 11px;color:#d3dfec;font-size:.77rem;border-top:1px solid #30465a}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{display:inline-block;width:16px;border-radius:2px}
.legend-beam{border-top:3px solid #76dfcb}
.legend-rigid{border-top:4px dashed #94b6ff}
.legend-load{border-top:2px solid #ffba80}
.legend-axis{border-top:1px solid #a7bbd0}
.results .card-head{padding-bottom:8px}
.result-tabs{padding-inline:15px}
.result-tabs button{padding-inline:10px}
#result-content{padding:14px 18px 17px;min-height:115px}
.result-label{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.result-label h3,.subheading{font-size:.95rem;font-weight:740}
.math{font-family:var(--mono);font-variant-numeric:tabular-nums}
.table-wrap{max-width:100%;overflow:auto;border-radius:8px;border:1px solid var(--line);margin:0 0 10px}
.data-table{width:100%;border-collapse:collapse;font-size:.86rem;text-align:left}
.data-table th,.data-table td{border-bottom:1px solid var(--line);padding:8px 11px;white-space:nowrap}
.data-table thead th{background:#edf3f8;color:#324661;font-weight:710}
.data-table tbody th{font-weight:680;background:#f5f8fb}
.data-table tbody tr:last-child>*{border-bottom:0}
.data-table.matrix td,.data-table.matrix thead th:not(:first-child){text-align:center}
.data-table.matrix td{min-width:82px}
.data-table.matrix td.diagonal{background:#e8f5f1;color:#075f53;font-weight:740}
.data-table .numeric-cell{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums}
.data-table .emphasis{background:#eef8f4;color:#075f53;font-weight:730}
.number-help{display:flex;gap:6px 14px;flex-wrap:wrap;color:var(--muted);font-size:.81rem;line-height:1.55}
.alert{background:#fff3e5;color:#753907;border:1px solid #f1d5b5;border-radius:8px;font-size:.88rem;line-height:1.45;padding:9px 12px;margin:5px 16px 8px}
.alert ul{margin:5px 0;padding-left:17px}
.result-select{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.85rem;font-weight:650;margin-bottom:10px}
.result-select select{width:auto;max-width:100%}
.result-block{margin-top:16px}
.result-block summary{font-weight:700;font-size:.89rem;color:#245267;cursor:pointer}
.result-block[open] summary{margin-bottom:8px}
.inline-code{display:block;background:#f3f7fa;padding:8px 11px;border-radius:6px;margin-bottom:8px;font-size:.86rem;line-height:1.6;overflow:auto}
.order-list{display:grid;gap:7px}
.order-row{display:flex;justify-content:space-between;align-items:center;gap:7px;border:1px solid var(--line);border-radius:7px;padding:6px 7px;font-size:.83rem}
.order-row label{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.order-row select{max-width:113px;margin-left:auto}
.order-row .icon-button{font-size:1rem}
.order-row .index{color:var(--teal-dark);font-family:var(--mono);min-width:23px}
.verification summary{display:flex;align-items:center;gap:10px;padding:13px 16px;cursor:pointer;list-style:none}
.verification summary::-webkit-details-marker{display:none}
.verification summary:after{content:"+";margin-left:auto;color:var(--teal-dark);font-size:1.25rem}
.verification[open] summary:after{content:"−"}
.verification summary strong{display:block;font-size:.92rem}
.verification summary small{display:block;color:var(--muted);font-size:.78rem;margin-top:2px}
.verify-symbol{display:grid;place-items:center;width:31px;height:31px;border-radius:7px;color:var(--teal-dark);background:var(--teal-tint)}
#example-content{padding:0 16px 14px}
#example-content p{font-size:.86rem;line-height:1.5;margin:0 0 8px;color:var(--muted)}
.page-footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:var(--muted);padding:15px 0 22px;font-size:.78rem}
dialog{width:min(560px,100% - 24px);max-height:calc(100% - 24px);padding:0;border:1px solid var(--line);border-radius:12px;color:var(--ink);box-shadow:0 12px 60px #14263b45}
dialog::backdrop{background:#11243bb5}
dialog .card-head{border-bottom:1px solid var(--line)}
.guide-body{padding:15px 19px 19px;font-size:.92rem;line-height:1.55}
.guide-body ol{margin:0 0 11px;padding-left:19px}.guide-body li{margin-bottom:6px}
.guide-body h3{font-size:.94rem;margin-top:10px}.guide-body p{margin-top:4px}
@media(max-width:1000px){.frame{width:calc(100% - 44px)}.workspace{grid-template-columns:minmax(295px,325px) minmax(0,1fr);gap:13px}.card-head{padding-inline:15px}.result-tabs button{padding-inline:8px}}
@media(max-width:780px){.frame{width:calc(100% - 28px)}.workspace{grid-template-columns:1fr}.intro{flex-wrap:wrap;gap:12px;padding:21px 0 17px}.topbar-content{height:54px}.analysis{gap:13px}.drawing{margin-inline:11px}.model-tabs{justify-content:flex-start;gap:7px}.model-tabs button{padding-inline:9px}}
@media(max-width:400px){.frame{width:calc(100% - 18px)}.brand-divider,.brand small{display:none}.info-chip{font-size:.72rem}.legend{gap:6px 13px}.status-chip{font-size:.72rem}.card-head h2{font-size:1rem}}
.order-row .field{display:flex;justify-content:space-between;color:var(--ink)}
.order-row .field span{flex:1}
.item-note{margin:6px 0 0;font-size:.78rem}
.number-help+.help{margin-top:6px}
.intro{padding-bottom:14px}
.start-toolbar{justify-content:space-between;align-items:center;margin:0 0 20px;gap:10px 16px}
.start-toolbar .unit-selector{border:1px solid #90c4b9;background:#ecf8f4;height:44px;padding-left:12px}
.start-toolbar .unit-selector span{color:#075f53;font-size:.89rem;font-weight:730}
.start-toolbar .unit-selector select{height:42px;padding-left:10px;border-left-color:#bbdcd4;font-weight:650}
.start-toolbar .button{min-height:44px}
.tabs{flex-wrap:wrap;overflow:visible}
.model-tabs{justify-content:flex-start;column-gap:1px}
.model-tabs button{padding-inline:6px}
.model-tabs button:last-child{font-weight:750}
.field-checks{display:grid;gap:7px;margin-top:9px}
.support-help{font-size:.78rem;margin:7px 0 0}
.dof-mode{margin:0 0 11px}
.dof-choice{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px;align-items:end}
.dof-choice>label{display:grid}
.dof-choice .field span{font-size:.83rem}
.dof-list{list-style:none;margin:4px 0;padding:0;color:var(--muted);font-size:.83rem;line-height:1.5}
.dof-list li+li{margin-top:4px}
.diagram-result{background:#f5f9fc;border:1px solid var(--line);border-radius:8px;margin:9px 0 12px}
.diagram-result canvas{width:100%;height:210px}
.response-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.response-cards .result-block{margin-top:9px}
.response-cards .table-wrap{margin-bottom:4px}
@media(max-width:780px){.start-toolbar{align-items:flex-start;margin-bottom:14px}.start-toolbar .unit-selector{height:39px}.start-toolbar .unit-selector select{height:37px}.start-toolbar .button{min-height:39px}.response-cards{grid-template-columns:1fr}}
.data-table .emphasis{position:sticky;right:0;box-shadow:-1px 0 var(--line)}
.legend-settlement{border-top:2px dashed #f6d28a}
.reaction-source{display:block;color:var(--muted);font-weight:500;font-size:.76rem}
.file-toolbar{display:flex;flex-wrap:wrap;gap:7px}
.file-toolbar .button:first-child{background:#e8f5f1;border-color:#aad1c7;color:#075f53}
.file-toolbar .button:first-child:hover{background:#d4ece6}
.file-status{font-size:.86rem;color:var(--muted);margin:-8px 0 14px;overflow-wrap:anywhere}
.file-status:empty{display:none}
.file-status.warning{color:#92411e}
.section-results{border-radius:6px;background:#e8f5f1;padding:8px 9px;color:#075f53}
.section-results output{font-family:var(--mono);overflow-wrap:anywhere;font-size:.82rem}

.exercise-dialog-body{padding:16px 19px 18px}
.exercise-dialog-body h3{font-size:.95rem;margin:0 0 8px}
.exercise-dialog-body form{display:grid;gap:8px;justify-items:start}
.exercise-dialog-body form>.field{width:100%}
.exercise-options{margin-top:13px;padding-top:11px;border-top:1px solid var(--line)}
.exercise-options summary{color:var(--teal-dark);font-size:.87rem;font-weight:710;cursor:pointer}
.exercise-options[open] summary{margin-bottom:9px}
.exercise-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.exercise-actions a{text-decoration:none}
.exercise-options .field{margin-top:9px}
.exercise-options textarea{margin:0;min-width:0;width:100%;max-width:100%;resize:vertical;border:1px solid var(--line);border-radius:6px;padding:6px;font-family:var(--mono);font-size:.81rem}
.exercise-message{margin-top:10px;font-size:.86rem;color:var(--teal-dark)}
.exercise-message:empty{display:none}
.exercise-message.warning{color:#92411e}
.exercise-list{list-style:none;margin:0;padding:0;max-height:235px;overflow:auto}
.exercise-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}
.exercise-list strong{display:block;font-size:.91rem;overflow-wrap:anywhere}
.exercise-list small{color:var(--muted);font-size:.78rem}
.exercise-list .button{min-height:34px}
#exercise-confirm-copy{font-size:.92rem;line-height:1.55;margin-bottom:13px;overflow-wrap:anywhere}
.file-choice{cursor:pointer}
.exercise-actions:focus-within .file-choice{outline:2px solid #199e8a;outline-offset:2px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.example-open{margin:4px 0 13px}

#result-tabs[hidden], #purchase-actions[hidden] {display:none}
#purchase-actions {padding:0 1.25rem 1.3rem}
#purchase-actions .subheading {margin-top:.6rem;font-size:1.05rem}
#purchase-actions .receipt {margin:1rem 0;color:#0f685b}
.receipt summary {cursor:pointer;font-weight:650}
.receipt input {max-width:100%;width:100%;margin:.2rem 0 .6rem;padding:.65rem;border:1px solid #b6c9d3;border-radius:.35rem}
