:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #203447;
  background: #f5f7f9;
  --ink: #203447;
  --muted: #657789;
  --line: #dfe6ec;
  --green: #137563;
}
.materials-search { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.visibility-switch { min-width:98px; white-space:nowrap; }
.visibility-switch[aria-checked="true"] { background:#e6f4ef; color:#105d4c; border-color:#a1cebd; }
.visibility-switch[aria-checked="false"] { background:#f0f2f4; color:#526271; }
.visibility-switch::before { content:'●'; display:inline-block; margin-right:8px; }
.visibility-form .form-error { max-width:220px; white-space:normal; }
.site-visibility-field { display:flex; gap:12px; align-items:center; font-weight:600; margin-bottom:10px; }
.site-visibility-field input { width:22px; height:22px; accent-color:var(--green); }
.materials-search input { min-width:200px; max-width:100%; }
.materials-footnote { font-size:.875rem; color:var(--muted); line-height:1.6; margin-top:18px; }
.materials-email { padding:24px; }
.email-preview { border:1px solid var(--line); border-radius:8px; background:#f8fafc; padding:20px; margin-bottom:20px; overflow-wrap:anywhere; }
.email-preview pre { white-space:pre-wrap; font:inherit; line-height:1.65; margin-bottom:0; }
.routing-editor { margin:20px 0; }
.material-route { display:grid; grid-template-columns:1fr 1fr; gap:12px; border:1px solid var(--line); border-radius:8px; padding:16px; margin:12px 0; }
.material-route .full { grid-column:1/-1; }
.route-actions { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:6px; }
.material-route .field { min-width:0; }
@media(max-width:600px) { .material-route { grid-template-columns:1fr; } .materials-email { padding:16px; } .materials-search { width:100%; } .materials-search input { flex:1; min-width:0; } }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; min-height: 42px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; font-size: .875rem; font-weight: 600; }
button:hover { background: #edf2f5; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 3px solid #389abb; outline-offset: 3px; }
button.primary { background: var(--green); border-color: var(--green); color: white; }
button.primary:hover { background: #0d5d4e; }
button.danger { background: #b43535; border-color: #b43535; color: white; }
button.danger:hover { background: #902323; }
button.danger-link { color: #a73838; background: transparent; border-color: transparent; }
button.danger-link:hover { background: #fff0ef; }
button.quiet { background: transparent; border-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 1.8rem; letter-spacing: -.035em; line-height: 1.25; font-weight: 650; margin-bottom: 6px; }
h2 { font-size: 1.2rem; line-height: 1.4; font-weight: 650; letter-spacing: -.02em; margin-bottom: 8px; }
h3 { font-size: 1rem; font-weight: 650; margin-bottom: 12px; }
small { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.muted, .helper { color: var(--muted); }
.helper { font-size: .875rem; line-height: 1.6; margin: 0 0 20px; }
.app-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1400px; min-height: 76px; padding: 0 32px; margin: auto; display: flex; gap: 40px; align-items: center; }
.brand { color: #123049; text-decoration: none; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { width: 31px; height: 31px; }
.header-inner nav, .secondary-nav { display: flex; align-items: center; gap: 7px; }
.header-inner nav button, .secondary-nav button { border-color: transparent; background: transparent; color: var(--muted); }
.header-inner button.active { color: #123e36; background: #eaf4f0; }
.secondary-nav { margin-left: auto; }
.nav-count { margin-left: 8px; font-size: .75rem; color: #326e61; }
.main { max-width: 1336px; margin: auto; padding: 34px 32px 20px; min-height: calc(100vh - 145px); }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.heading p { color: var(--muted); font-size: .9375rem; line-height: 1.5; margin-bottom: 0; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.toolbar > input { max-width: 290px; }
.toolbar > select { max-width: 270px; }
.filters { display: flex; gap: 3px; }
.filters button { border-color: transparent; background: transparent; color: var(--muted); }
.filters button.active { color: var(--ink); background: #edf2f6; }
input, select, textarea { border: 1px solid #cbd6df; color: var(--ink); background: #fff; width: 100%; border-radius: 6px; min-height: 43px; padding: 10px 12px; font-size: 1rem; font-weight: 400; }
input::placeholder, textarea::placeholder { color: #7e8d9c; }
textarea { min-height: 86px; resize: vertical; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th { text-align: left; padding: 13px 20px; font-size: .8125rem; font-weight: 600; color: var(--muted); background: #fafbfd; }
td { padding: 18px 20px; border-top: 1px solid #e9eef2; vertical-align: middle; line-height: 1.5; }
td strong { font-weight: 600; }
td small { display: block; margin-top: 3px; }
tr:hover td { background: #fcfdfe; }
.row-action { text-align: right; }
.badge { display: inline-block; padding: 4px 8px; font-size: .875rem; line-height: 1.5; border-radius: 5px; background: #eff3f6; color: #4b6175; }
.badge.amber { background: #fff4df; color: #865a11; }
.badge.green { background: #e7f4ed; color: #12634c; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 18px; }
.project-card { color:var(--ink); text-decoration:none; cursor:pointer; border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.project-card:hover { border-color:#6ca797; background:#f7fbf9; }
.project-card h2 { margin: 8px 0; font-size: 1.25rem; }
.project-card p { margin: 0; color: var(--muted); font-size: .9375rem; }
.project-card .muted { font-size: .8125rem; }
.breadcrumb { margin: -12px 0 16px -13px; }
.empty { padding: 60px 24px; text-align: center; max-width: 600px; margin: auto; }
.empty p { line-height: 1.7; color: var(--muted); margin-bottom: 22px; }
.activity-list article { padding: 19px 24px; border-bottom: 1px solid var(--line); display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.activity-copy { min-width: 0; overflow-wrap: anywhere; }
.activity-restore { flex-shrink: 0; max-width: 260px; }
.restore-reason { display: block; line-height: 1.5; }
.activity-list article:last-child { border: 0; }
.activity-list p { margin-bottom: 7px; line-height: 1.5; font-size: .9375rem; }
.app-footer { max-width: 1336px; margin: auto; padding: 8px 32px 24px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .8125rem; }
.app-footer button { font-weight: 400; font-size: .8125rem; color: var(--muted); }
dialog { color: var(--ink); background: white; border: 1px solid #d4dee7; border-radius: 12px; width: 640px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 40px); padding: 0; box-shadow: 0 24px 80px #142a3e30; }
dialog::backdrop { background: #19304555; }
.dialog-head { padding: 23px 25px 18px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.25rem; margin-bottom: 4px; }
.dialog-head p { color: var(--muted); font-size: .875rem; margin-bottom: 0; line-height: 1.5; }
.close { padding: 0; min-width: 32px; min-height: 32px; height: 32px; font-size: 1.5rem; font-weight: 400; border: 0; }
.dialog-body { padding: 24px 25px; }
.dialog-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 15px 25px; background: #fcfdfe; position: sticky; bottom: 0; z-index: 2; }
.spacer { flex: 1; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; font-weight: 600; }
.field.full { grid-column: 1/-1; }
.more { margin-top: 22px; border-top: 1px solid var(--line); }
.more summary { cursor: pointer; font-size: .875rem; padding: 18px 0; color: #4c6174; }
.quantity-summary { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 22px; }
.quantity-summary > div { padding: 17px 14px; border-right: 1px solid var(--line); }
.quantity-summary > div:last-child { border: 0; }
.quantity-summary strong { font-size: 1.45rem; display: block; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; }
.quantity-summary span { font-size: .8125rem; color: var(--muted); }
.item-summary { display: flex; align-items: center; gap: 15px; font-size: .875rem; margin-bottom: 22px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 23px; }
.facts dt { font-size: .8125rem; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.item-actions { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.history h3 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.history-entry { padding: 13px 0 17px; border-bottom: 1px solid var(--line); }
.history-entry:last-child { border: 0; padding-bottom: 0; }
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9375rem; }
.history-entry p { font-size: .875rem; line-height: 1.65; margin: 8px 0 4px; }
.entry-actions { display: flex; gap: 4px; justify-content: flex-end; margin-top: 10px; }
.note { font-size: .9375rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.delete-summary { font-size: 1rem; line-height: 1.65; }
.delete-summary p { margin: 10px 0; }
.form-error, .load-error { background: #fff0ef; border: 1px solid #f4c9c5; color: #9c3330; padding: 14px; border-radius: 7px; font-size: .9375rem; line-height: 1.6; margin-bottom: 20px; }
.load-error { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.picker-toolbar { margin-top: 24px; display: flex; gap: 16px; align-items: center; }
.picker-toolbar input { flex: 1; min-width: 0; }
#selection-count { font-size: .875rem; color: var(--green); white-space: nowrap; }
.catalog-group { margin-top: 18px; border: 1px solid var(--line); border-radius: 7px; }
.catalog-group summary { padding: 12px 14px; font-size: .9375rem; font-weight: 600; cursor: pointer; background: #f8fafb; }
.pick-item { display: flex; align-items: center; gap: 11px; padding: 11px 14px; font-size: .9375rem; cursor: pointer; }
.pick-item:hover { background: #f5f8fa; }
.pick-item input { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--green); flex: none; }
.about p { color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.about h3 { margin-top: 20px; }
#notice { display: none; position: fixed; z-index: 50; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); border-radius: 8px; background: #173c33; color: #fff; padding: 14px 22px; font-size: .9375rem; box-shadow: 0 6px 20px #12342a20; }
#notice.show { display: block; }
.loading { padding: 70px 24px; text-align: center; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 440px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.login-card > img { width: 36px; height: 36px; margin-bottom: 18px; }
.login-card h1 { font-size: 1.5rem; }
.login-card > p { color: var(--muted); line-height: 1.6; margin: 10px 0 24px; }
.login-card .fields { grid-template-columns: 1fr; }
.login-card button { width: 100%; }
.team-list article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.team-list small { display: block; margin-top: 8px; }
.practice-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; margin-bottom: 24px; background: #fff7df; border: 1px solid #e8d7a9; border-radius: 8px; }
.practice-banner p { font-size: .875rem; margin: 6px 0 0; }
.practice-banner label { font-size: .875rem; min-width: 160px; }
.practice-banner input { display: block; margin-top: 6px; }
.followup-line { padding: 10px 12px; background: #f1f6f8; border-radius: 6px; font-size: .875rem; }
.contact-history { margin-top: 12px; font-size: .875rem; }
#confirmation-fields, #shipping-fields { margin-top: 20px; }
@media (max-width: 960px) {
  .header-inner { gap: 18px; padding: 0 22px; }
  .brand { font-size: .875rem; }
  .secondary-nav { gap: 0; }
  .main { padding: 28px 22px 20px; }
  td, th { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 700px) {
  .activity-list article { align-items: flex-start; flex-direction: column; gap: 12px; }
  .activity-restore { max-width: 100%; }
  .practice-banner { align-items: stretch; flex-direction: column; }
  .entry-actions { flex-wrap: wrap; }
  .header-inner { flex-wrap: wrap; gap: 10px; padding: 16px 16px 10px; }
  .brand { font-size: 1rem; flex: 1; }
  .secondary-nav { order: 1; }
  .secondary-nav button { min-height: 36px; padding: 6px 9px; font-size: .8125rem; }
  .header-inner nav { order: 2; width: 100%; gap: 6px; }
  .header-inner nav button { flex: 1; }
  .main { padding: 23px 16px 16px; }
  .heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
  h1 { font-size: 1.6rem; }
  .toolbar { padding: 12px; gap: 10px; }
  .toolbar > input, .toolbar > select { max-width: none; }
  .toolbar .filters { width: 100%; }
  .filters button { flex: 1; }
  .table-wrap { overflow: visible; }
  table, tbody { display: block; }
  thead { display: none; }
  tr { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px; border-bottom: 1px solid var(--line); padding: 18px 16px; }
  tr:last-child { border-bottom: 0; }
  td { display: block; border: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
  td:first-child { grid-column: 1/-1; }
  td[data-label]:not(:first-child)::before { content: attr(data-label); color: var(--muted); display: block; font-size: .75rem; margin-bottom: 4px; }
  .row-action { grid-column: 1/-1; }
  .row-action button { min-width: 90px; }
  .project-grid { grid-template-columns: 1fr; }
  .app-footer { flex-wrap: wrap; gap: 4px; padding: 0 16px 22px; }
  .fields { grid-template-columns: 1fr; gap: 16px; }
  .dialog-head, .dialog-body { padding: 20px; }
  .dialog-foot { padding: 13px 16px; }
  .quantity-summary strong { font-size: 1.25rem; }
  .quantity-summary > div { padding: 13px 10px; }
  .quantity-summary span { font-size: .75rem; }
  .empty { padding: 40px 20px; }
  .entry-top { align-items: flex-start; }
  .picker-toolbar { flex-wrap: wrap; }
  #notice { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.material-entry-table input, .material-entry-table select { width: 100%; min-height: 44px; }
.material-entry-table input:disabled { background: #f1f3f2; color: var(--muted); cursor: not-allowed; }
.material-entry-table td:not(:first-child) { width: 180px; }
.request-list { margin-top: 20px; }
.request-list > h2, .request-list > .helper { margin: 20px; }
.request-review-lines { margin: 20px 0; }
.request-review-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.request-review-line > span { flex-shrink: 0; }
.request-review-line .field { margin-top: 10px; }
@media (max-width: 700px) {
  .material-entry-table td:not(:first-child) { width: auto; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.order-form { padding: 24px; max-width: 1000px; margin: 0 auto; }
.order-project { max-width: 480px; margin-bottom: 24px; }
.order-project > strong { display: block; font-size: 1.15rem; }
.order-picker { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 22px; }
.order-picker > summary { padding: 13px 16px; font-weight: 600; cursor: pointer; color: var(--green); }
.order-picker > .field { margin: 0 14px 12px; }
.order-results { max-height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 8px; }
.material-pick-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.material-pick-result button { flex-shrink: 0; min-width: 68px; }
.material-result-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px; margin: 6px 0; border-radius: 8px; min-height: 44px; }
.material-result-row span { display: block; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.material-result-row small { flex-shrink: 0; white-space: nowrap; color: var(--muted); font-weight: 400; }
.order-item-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.order-item-fields .single-unit { min-height: 44px; }
.order-stage > h2 { font-size: 1.15rem; margin: 16px 0; }
.order-material-heading { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-material-name { white-space: nowrap; }
.order-lines th:nth-child(2), .order-lines td[data-label="Unit"] { width: 75px; }
.order-lines th:nth-child(3), .order-lines td[data-label="Quantity"] { width: 80px; }
.order-stage > .order-results { padding: 0; max-height: 380px; }
.order-so-far { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-so-far h3 { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.order-so-far h3 span { margin-left: 6px; }
.order-so-far ul { list-style: none; padding: 0; margin: 0; }
.order-so-far li { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: .875rem; }
.order-so-far li > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-so-far li > strong { flex-shrink: 0; white-space: nowrap; }
.order-empty { padding: 24px 0; color: var(--muted); }
.order-lines td { padding: 14px 10px; }
.order-lines th { padding: 8px 10px; }
.order-lines td:first-child { width: auto; }
.order-lines td.order-remove { width: 92px; text-align: right; }
.single-unit { display: inline-block; padding: 10px 0; }
.order-invalid { color: #9c3330; }
.order-undo { min-height: 14px; margin: 8px 0; font-size: .875rem; color: var(--muted); }
.order-notes { margin: 16px 0 24px; }
.order-notes summary { cursor: pointer; color: var(--muted); }
.order-notes textarea { margin-top: 10px; min-height: 85px; }
.order-submit { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-submit > span { color: var(--muted); }
@media (max-width: 700px) {
  .order-form { padding: 16px; }
  .order-lines tr { padding: 18px 0; gap: 10px 14px; }
  .order-lines td { padding: 0; }
  .order-lines td.order-remove { grid-column: 1/-1; width: auto; text-align: left; }
  .order-remove button { padding-left: 0; }
  .order-submit .primary { flex: 1; }
}
.email-body { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.55; background: #f5f7f8; border: 1px solid var(--line); padding: 16px; border-radius: 8px; }

/* Two focused workspaces with shared administration. */
.header-inner { min-height:72px; gap:24px; }
.workspace-bar { border-top:1px solid #edf0f2; }
.workspace-bar-inner { max-width:1400px; margin:auto; padding:0 32px; display:flex; align-items:center; gap:32px; min-height:58px; }
.workspace-label { color:var(--muted); font-size:.85rem; font-weight:600; }
.workspace-bar nav { display:flex; gap:6px; align-items:center; }
.workspace-bar button { border-color:transparent; background:transparent; color:var(--muted); }
.workspace-bar button.active { background:#eaf4f0; color:#123e36; }
.account-menu { position:relative; }
.account-menu summary { list-style:none; cursor:pointer; padding:10px 12px; font-size:.875rem; color:var(--muted); border-radius:7px; }
.account-menu summary::-webkit-details-marker { display:none; }
.account-menu summary:hover,.account-menu[open] summary { background:#eef3f2; color:var(--ink); }
.account-menu-items { position:absolute; top:calc(100% + 8px); right:0; z-index:10; min-width:225px; padding:6px; background:white; border:1px solid var(--line); border-radius:10px; box-shadow:0 8px 28px #2034471a; }
.secondary-nav .account-menu-items button { display:block; width:100%; text-align:left; padding:11px 12px; color:var(--ink); }
.secondary-nav .account-menu-items button:hover { background:#f2f6f5; }
.home-main { display:block; }
.workspace-home { width:100%; max-width:980px; margin:0 auto; padding:50px 0 36px; }
.home-intro { margin-bottom:34px; }
.eyebrow { color:var(--green); font-size:.75rem; font-weight:700; letter-spacing:.14em; margin:0 0 14px; }
.home-intro h1 { font-size:2.15rem; letter-spacing:-.04em; margin:0 0 10px; }
.home-intro > p:last-child { color:var(--muted); margin:0; }
.workspace-cards { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.workspace-card { display:flex; flex-direction:column; align-items:flex-start; text-align:left; white-space:normal; padding:30px; border:1px solid #dbe4e3; border-radius:16px; background:white; color:var(--ink); box-shadow:0 3px 10px #20344704; }
.workspace-card:hover { border-color:#6ca797; background:white; box-shadow:0 7px 22px #2034470c; }
.workspace-card:focus-visible,.account-menu summary:focus-visible { outline:3px solid #137563; outline-offset:4px; }
.workspace-icon { display:flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:13px; background:#eaf4ef; color:#137563; margin-bottom:25px; }
.materials-card .workspace-icon { background:#eef2fa; color:#47628c; }
.workspace-card-title { font-size:1.45rem; font-weight:700; letter-spacing:-.025em; margin-bottom:12px; }
.workspace-card-description { font-size:.94rem; color:var(--muted); line-height:1.65; font-weight:400; margin-bottom:28px; }
.workspace-card-status { margin-top:auto; font-size:.82rem; font-weight:500; color:var(--muted); }
.workspace-card-link { display:flex; justify-content:space-between; align-items:center; width:100%; border-top:1px solid #edf1ef; padding-top:18px; margin-top:18px; color:#137563; font-size:.92rem; font-weight:600; }
.materials-card .workspace-card-link { color:#47628c; }
.home-inbox { display:flex; align-items:center; gap:12px; margin-top:24px; color:var(--muted); font-size:.85rem; }
.home-inbox button { background:transparent; }
.request-search-bar { display:flex; justify-content:flex-end; margin-bottom:16px; }
@media(max-width:700px) {
  .header-inner { padding:12px 16px; gap:8px; }
  .header-inner .brand { font-size:.88rem; }
  .header-inner .brand img { width:25px; height:25px; }
  .secondary-nav { gap:0; }
  .account-menu summary { padding:8px; font-size:.8125rem; }
  .workspace-bar-inner { padding:12px 16px; gap:10px; flex-direction:column; align-items:flex-start; }
  .workspace-bar nav { width:100%; gap:3px; }
  .workspace-bar nav button { flex:1; padding:9px 6px; font-size:.82rem; white-space:nowrap; }
  .workspace-label { font-size:.8rem; }
  .workspace-home { padding:20px 0; }
  .home-intro { margin-bottom:24px; }
  .home-intro h1 { font-size:1.7rem; }
  .workspace-cards { grid-template-columns:1fr; gap:16px; }
  .workspace-card { padding:23px; }
  .workspace-icon { width:44px; height:44px; margin-bottom:18px; }
  .workspace-card-title { font-size:1.3rem; }
  .workspace-card-description { margin-bottom:18px; }
  .home-inbox { align-items:flex-start; flex-direction:column; gap:4px; }
  .request-search-bar .materials-search { width:100%; }
}

/* Whole-row navigation, with independent explicit action controls. */
.open-target { cursor:pointer; }
tr.open-target:hover > td, article.open-target:hover { background:#f0f7f4; }
.open-target:focus-visible { outline:3px solid #137563; outline-offset:-3px; }

.email-files { margin:20px 0; }
.file-drop { display:block; padding:22px; border:2px dashed #9eb6ae; border-radius:9px; text-align:center; background:#f7fbf9; cursor:pointer; }
.file-drop span { color:#137563; text-decoration:underline; font-weight:600; }
.file-drop input { display:block; max-width:100%; margin:12px auto 0; }
.file-drop.dragging { background:#e3f3eb; border-color:#137563; }
.chosen-file { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid #e6ece9; }
.chosen-file span { overflow-wrap:anywhere; min-width:0; }
.email-files > a { display:block; padding:8px 0; overflow-wrap:anywhere; color:#137563; }
.file-error { color:#a73838; }
