/* Shared field insets remain consistent in compact rows and full forms. */
select:not([multiple]),.field select,.props select,.plan-table select,.drawing-status-row select,.drawing-edit-row select,.filter{
  appearance:none;-webkit-appearance:none;min-height:36px;
  padding:8px 36px 8px 12px;line-height:1.5;
  border:1px solid var(--border);border-radius:5px;background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23707869' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:14px;
}
input:not([type='checkbox']):not([type='radio']),textarea,.plan-table input,.drawing-edit-row .input{padding-left:12px;padding-right:12px}
input[type='checkbox'],input[type='radio']{padding:0}
.topbar{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);flex-shrink:0}
.sidebar{z-index:70}.breadcrumb-home{white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}.breadcrumb .current{min-width:0}
.card-top .project-number{font-size:24px;font-weight:700;line-height:1.15;letter-spacing:-.7px;color:var(--ink);font-variant-numeric:tabular-nums}
.card-top{min-height:28px;margin-bottom:12px}.card .tag:empty{display:none}
.work-links .project-link-grid>a,.resource-link-pill{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:38px;padding:9px 17px;border:1px solid #30322f;border-radius:999px;
  background:#141512;color:#fff;font-size:12px;font-weight:500;line-height:1.4;
  box-shadow:0 5px 13px #171a1714;transition:background .15s,box-shadow .15s;
}
.work-links .project-link-grid>a:hover,.resource-link-pill:hover{background:#2a2c27;box-shadow:0 6px 16px #171a1722}
.work-links .project-link-grid>a:focus-visible,.resource-link-pill:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.work-links .project-link-grid{gap:9px}.work-links .project-link-grid>a svg{width:14px;height:14px}
.resource-project{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--border)}
.resource-project:last-child{border-bottom:0}.resource-project .section-head{gap:12px;align-items:center;margin:0 0 14px;flex-wrap:wrap}
.resource-project h3{font-size:14px;line-height:1.6}.resource-project-number{font-size:17px;font-weight:700;margin-right:7px;font-variant-numeric:tabular-nums}
.resource-links-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
.resource-link-pill{font-size:11px;min-height:35px;padding:8px 14px;max-width:205px;min-width:0}
.resource-link-pill>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.resource-link-pill svg{width:14px;height:14px}
.material-list{display:grid;gap:10px}.material-list .link-card{margin:0;min-width:0;padding:14px 16px;gap:12px}
.material-list .grow{min-width:0}.material-list strong{overflow-wrap:anywhere}.material-source-link{display:inline-flex;gap:5px;align-items:center}
.material-list .material-url{display:block;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(470px,100%);margin-top:4px}
.material-actions{display:flex;gap:7px;align-items:center;flex-shrink:0}.material-actions .btn{min-height:33px}
.material-add{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;align-items:end}.material-add .field{min-width:0}
.material-add .material-kind-field{grid-column:1 / -1;max-width:220px}
.material-editor-note{font-size:11px;color:var(--muted);margin:0 0 18px;line-height:1.7}
.material-editor-url{word-break:break-all}
@media(max-width:760px){
  .topbar{min-height:58px;height:58px}.breadcrumb{width:100%;gap:7px}.breadcrumb-home{flex-shrink:1}.breadcrumb .current{max-width:35vw}
  .material-list .file-icon{display:none}.material-list .link-card{padding:13px;gap:10px;flex-wrap:wrap}.material-list .grow{flex-basis:calc(100% - 125px)}
  .material-actions{margin-left:auto}.material-add{grid-template-columns:1fr 1fr}.material-add .material-kind-field{grid-column:auto;max-width:none}.material-add .btn{align-self:end;min-height:39px}
  .resource-project{padding-bottom:20px;margin-bottom:20px}.resource-link-pill{max-width:190px}
}
@media(max-width:480px){
  .material-add{grid-template-columns:1fr}.material-add .btn{justify-self:start}.material-list .grow{flex-basis:100%}.material-list .material-actions{width:100%;justify-content:flex-end}
  .resource-links-row{gap:8px}.resource-link-pill{max-width:calc(50% - 4px);padding:8px 12px}.resource-project .section-head>.text-btn{font-size:10px}
  .work-links .project-link-grid>a{font-size:11px;padding:9px 14px}.card-top .project-number{font-size:23px}
}
