/* Anchor engineering UI adapted to the shared calculator screen shell. */
@media screen{
 html{height:100%;overflow:hidden;scroll-padding-top:0}
 body[data-calculator=anchor]{height:100vh;height:100dvh;padding-top:68px;overflow:hidden;background:#f3f7fa;color:#17212b;font-family:"Noto Sans TC","Microsoft JhengHei",sans-serif;line-height:normal}
 .workspace{display:grid;height:100%;min-height:0;grid-template-columns:230px minmax(0,1fr)}
 .sidebar[data-platform-navigation]{position:static;top:auto;bottom:auto;width:auto;display:block;min-height:0}
 main{grid-column:2;margin:0 auto;height:100%;max-width:1400px;padding:32px 36px 88px;min-width:0;min-height:0;overflow-y:auto;scroll-padding-top:24px}
 .topbar{overflow:visible}
 .topbar .brand{font-size:21px;font-weight:800}
 .topbar::before{border:0;border-radius:0;transform:none;pointer-events:none}
 h1{font-size:30px;margin:7px 0 10px} h2{font-size:19px;color:#123554;font-weight:700}
 .heading{margin-bottom:0}.heading .eyebrow,.breadcrumb{display:none}
 .sheet{border-radius:12px;border-color:#d9e2e9;box-shadow:0 4px 14px #14364c0a}
 .section-number{width:25px;height:25px;flex:0 0 25px;background:#e9f2f8;color:#21638a;border-radius:4px;font:700 13px "Segoe UI",sans-serif}
 .section-heading{gap:10px;margin-bottom:18px}.section-tag{display:none}
 .anchor-chapters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
 .anchor-chapters a{display:block;padding:10px 14px;border:1px solid #c9dce9;border-radius:6px;background:#fff;color:#275f84;font-size:14px;font-weight:700}
 .anchor-chapters a span{margin-right:5px}.anchor-chapters a:hover{background:#e1eef8}
 .floating-action{position:fixed;right:28px;bottom:18px;left:auto;z-index:9;background:transparent;border:0;padding:0;width:auto;box-shadow:none}
 .floating-action #calculate{background:#0e3e6b;color:white;padding:12px 18px;border:0;border-radius:7px;font:700 14px/1.4 "Microsoft JhengHei",sans-serif;box-shadow:0 2px 8px #12355426}
 .floating-action>*:not(#calculate){display:none}
 body[data-calculator=anchor] #results #print{background:#176b9d;color:#fff}
 .note{font-size:13px;line-height:1.7}
 #anchor-form .fields>label{color:#334454;line-height:normal}
 #anchor-form .fields input:not([type=checkbox]),#anchor-form .fields select{height:42px;padding-block:0;border-color:#bccbd6;border-radius:6px;color:#17212b;line-height:normal}
 #anchor-form .project-fields input{padding-inline:11px}
 #anchor-form .fields .unit-field>span{top:auto;bottom:11px;line-height:20px}
 #diagram-info strong{font-size:14px;font-weight:700;line-height:1.5}
 /* Match template result colors and the corresponding summary/detail weights. */
 #result-body .badge.OK{color:#147a54;font-weight:800}
 #result-body .badge.NG{color:#c63737;font-weight:800}
 #result-body .result-table :is(.badge.OK,.badge.NG){font-weight:900}
 main>.calculator-footer{display:block;padding:0;margin:24px 0 0;color:#647484;font-size:12px;font-weight:400;line-height:1.5}
 @media(max-width:800px){
  .workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
  main{grid-column:1;padding:24px 16px 96px}
  .floating-action{right:16px;bottom:14px}
  .anchor-chapters a{font-size:12px;padding:8px 9px}
 }
}
@media print{.anchor-chapters,.calculator-footer{display:none!important}}

/* The diagram spans both rows. Keep its spare height out of the title row. */
@media screen and (min-width:1001px){
 body[data-calculator=anchor] #configuration{grid-template-rows:min-content minmax(0,1fr)}
}
