@import url('./discord-viewer.css');
:root {
  color-scheme: light;
  --green: #115e38;
  --forest: #113d2c;
  --ink: #17281f;
  --muted: #54645b;
  --line: #dce3dc;
  --ground: #f6f8f5;
  --soft-green: #e9f3ea;
  --gold: #efbf2b;
  --danger: #9d3027;
  --paper: #fff;
  --mast-clearance: 4.75rem;
  --office-gutter: clamp(.8rem, 1.65vw, 2.15rem);
  --office-gap: clamp(1rem, 1.7vw, 2.1rem);
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  --display: "Baskervville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-family: var(--sans);
  font-size: var(--office-scale,100%);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--mast-clearance) + .55rem); }
.account-access { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.account-access:hover small { text-decoration: underline; }
body { margin: 0; min-width: 280px; background: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { background: none; border: 0; }
button:disabled { cursor: default; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); }
:focus-visible { outline: 3px solid #c79912; outline-offset: 3px; }
[hidden] { display: none !important; }
h1,h2,h3,h4,p,figure,dl,dd,ul,ol { margin: 0; }
button, a { touch-action: manipulation; }
img { max-width: 100%; }
svg.ico { width: 1.15rem; height: 1.15rem; display: inline-block; flex: none; vertical-align: middle; }
.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; }
.skip { position: absolute; z-index: 20; top: -6rem; left: 1rem; background: var(--paper); color: var(--green); padding: .75rem 1rem; }
.skip:focus { top: .5rem; }
.mast { background: #fff; border-bottom: 1px solid var(--line); }
.mast-inner { width: 100%; margin-inline: auto; display: flex; align-items: center; gap: clamp(.55rem, 1.05vw, 1.25rem); padding: 0 var(--office-gutter); min-height: 4.1rem; }
.office-mast { position: sticky; top: 0; z-index: 20; }
.skip { z-index: 25; }
.staff-tools { display: flex; gap: .8rem; align-items: center; }
.staff-tools-toggle { display: none; }
.header-acquisition { flex: none; white-space: nowrap; }
.header-acquisition span { font-size: 1.23rem; font-weight: 470; line-height: 1; }
.office-mast .office-search-trigger { width: 2.6rem; padding-inline: 0; }
.office-mast .office-search-trigger span { display: none; }
.wordmark { display: inline-flex; align-items: center; flex: none; padding: .38rem 0; background: #fff; text-decoration: none; }
.wordmark img { width: 5.15rem; height: 2.78rem; object-fit: contain; display: block; background: #fff; }
.demo-wordmark:not([hidden]) { margin-left: .4rem; padding: .23rem .4rem; border-radius: .3rem; background: #fbefc3; color: #645011; font-size: .72rem; font-weight: 660; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(.65rem,1.15vw,1.45rem); flex: 1; min-width: 0; }
.main-nav a { position: relative; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; padding: .2rem .12rem 0; text-decoration: none; white-space: nowrap; font-size: .91rem; font-weight: 560; color: #506157; }
.main-nav a:hover { color: var(--green); }
.nav-short { display: none; }
.main-nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--green); font-weight: 680; }
.account { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; min-width: 0; }
.account:empty { min-width: 65px; }
.account-text { display: grid; gap: .05rem; max-width: 140px; }
.account-text strong, .account-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-text strong { font-size: .875rem; font-weight: 640; }
.account-text small { color: var(--muted); font-size: .78rem; }
.rank-switch { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.rank-switch select {
  appearance: none; min-height: 2.6rem; max-width: 100%; border: 1px solid var(--line); border-radius: .4rem;
  padding: .35rem 1.5rem .35rem .6rem; color: var(--forest); background-color: var(--paper); font-size: .9rem;
  background-image: linear-gradient(45deg,transparent 50%,#355b46 50%), linear-gradient(135deg,#355b46 50%,transparent 50%);
  background-position: calc(100% - 12px) center, calc(100% - 8px) center; background-size: 4px 4px; background-repeat: no-repeat;
}
.avatar { display: inline-grid; flex: none; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; color: var(--forest); background: #ecf2e9; border: 1px solid #d2ddcc; font-size: .88rem; font-weight: 650; }
.workspace { max-width: max(118rem, 87%); margin: 0 auto; padding: clamp(1.15rem,1.8vw,2rem) var(--office-gutter) 3rem; scroll-margin-top: var(--mast-clearance); }
.workspace > *, .file-layout > *, .settings-layout > * { min-width: 0; }
.workspace:focus { outline: none; }
.page-top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .85rem 1.1rem; margin-bottom: var(--office-gap); }
.page-top > div { min-width: 0; }
.page-top h1 { font: normal clamp(2.45rem, calc(2.2rem + 1.25vw), 3.55rem)/1.05 var(--display); letter-spacing: -.055em; color: var(--forest); overflow-wrap: anywhere; }
.dateline { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .875rem; margin-bottom: .55rem; }
.dateline svg.ico { width: 1rem; height: 1rem; }
.page-lead { color: var(--muted); margin-top: .8rem; max-width: 48rem; line-height: 1.55; }
.heading-actions, .btn-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.btn, .ui-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .62rem .98rem; border: 1px solid #cbd6cd; border-radius: .48rem; background: #fff; color: var(--forest); font-size: .92rem; font-weight: 620; line-height: 1.35; text-align: center; text-decoration: none; }
.btn:hover, .ui-button:hover { background: #f2f6f1; border-color: #adbfaf; }
.btn.primary, .ui-button.primary { border-color: var(--green); background: var(--green); color: white; }
.btn.primary:hover, .ui-button.primary:hover { background: #0c4d2d; }
.btn.soft { color: var(--green); background: #eff5ed; border-color: #eff5ed; }
.btn.quiet { background: transparent; border-color: transparent; }
.btn.quiet:hover { background: #f1f5f0; }
.btn.danger { color: var(--danger); border-color: #e4c3bf; }
.btn.danger:hover { background: #fdf2ef; }
.btn[disabled], .ui-button[disabled] { opacity: .52; }
.btn .ico { width: 1.05rem; height: 1.05rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.55rem; height: 2.55rem; border: 1px solid var(--line); border-radius: .42rem; color: var(--forest); background: #fff; }
.icon-btn:hover { background: var(--ground); }
.office-highlight { display: grid; grid-template-columns: minmax(0,1.64fr) minmax(17.8rem,1fr); overflow: hidden; border-radius: .76rem; background: var(--forest); }
.workload { position: relative; display: flex; flex-direction: column; justify-content: center; background: #123f2c; color: #fff; padding: 1.6rem clamp(1.3rem,2.25vw,2.7rem); }
.workload h2 { display: flex; align-items: center; gap: .65rem; font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; padding-bottom: .65rem; }
.workload h2::before { width: 17px; height: 3px; background: var(--gold); content: ""; }
.metric { appearance: none; width: 100%; display: grid; grid-template-columns: minmax(2.25rem,auto) minmax(0,1fr) 1.5rem; align-items: center; gap: .76rem; padding: .5rem .05rem; text-align: left; border-top: 1px solid rgba(242,255,244,.22); color: #fff; border-radius: 0; }
.metric:hover, .metric:focus-visible { background: #1b4c36; }
.metric strong { font: normal 1.98rem/1.1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.metric span { font-size: .93rem; color: #f2f7f1; }
.metric .ico { width: 1.15rem; height: 1.15rem; color: #bdd4c3; justify-self: end; }
.register { margin-top: var(--office-gap); }
.section-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1rem; margin-bottom: 1.1rem; }
.section-top h2, h2.subsection-title, .sheet h2, .file-panel h2, .settings-panel h2 { color: var(--forest); font: normal clamp(1.5rem, calc(1.3rem + .5vw), 1.95rem)/1.2 var(--display); letter-spacing: -.035em; }
.section-controls { display: flex; align-items: center; gap: .38rem; }
.section-controls .icon-btn { width: 2.65rem; height: 2.65rem; }
.queue-hint { color: var(--muted); font-size: .86rem; font-weight: 450; line-height: 1.4; }
.search-box { display: inline-flex; align-items: center; gap: .65rem; min-height: 2.65rem; padding: 0 .83rem; border: 1px solid #cbd7cc; border-radius: .5rem; background: #f6f8f5; color: #45604f; cursor: text; }
.search-box:hover { border-color: #a6b9a8; }
.search-box:focus-within { border-color: var(--green); background: #fff; box-shadow: 0 0 0 2px #115e381b; }
.search-box input { width: clamp(14rem,22vw,24rem); min-width: 0; padding: .58rem 0; outline: none; border: 0; background: transparent; font-size: .97rem; }
.search-box input::placeholder { color: #68776d; }
.search-box svg.ico { width: 1.05rem; height: 1.05rem; }
.filters { display: flex; column-gap: .25rem; row-gap: .32rem; flex-wrap: wrap; margin-bottom: 1.05rem; }
.filter { padding: .48rem .8rem; min-height: 36px; font-size: .895rem; color: var(--muted); border: 1px solid transparent; border-radius: .36rem; font-weight: 560; }
.filter:hover { background: #f3f6f2; }
.filter[aria-pressed="true"] { color: #124b2d; background: #e9f2e9; border-color: #d0e2d1; }
.data-table { border-collapse: collapse; width: 100%; border-spacing: 0; }
[data-results] { min-width: 0; max-width: 100%; overflow-x: auto; }
.data-table thead { text-align: left; background: #f1f5f0; }
.data-table th { font-size: .84rem; color: #4a5b50; font-weight: 590; white-space: nowrap; padding: .72rem .82rem; }
.data-table th:first-child { border-radius: .35rem 0 0 .35rem; }
.data-table th:last-child { border-radius: 0 .35rem .35rem 0; }
.data-table td { padding: .78rem .82rem; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: middle; overflow-wrap: anywhere; }
.data-table tbody tr[data-file], .data-table tbody tr[data-client] { cursor: pointer; }
.data-table tbody tr[data-file]:hover, .data-table tbody tr[data-client]:hover { background: #f6f9f5; }
.property-cell, .person-cell { display: flex; align-items: center; gap: .72rem; min-width: 0; }
.property-cell > div, .person-cell > div { min-width: 0; }
.file-glyph { width: 2.35rem; height: 2.55rem; display: inline-grid; place-items: center; flex: none; color: #3c6049; border-radius: .35rem; background: #eff4ed; }
.file-link { color: var(--ink); font-size: 1rem; font-weight: 615; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.file-link:hover { color: var(--green); text-decoration: underline; }
.secondary-text { color: var(--muted); font-size: .81rem; line-height: 1.5; }
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: .33rem; border-radius: .29rem; font-size: .8rem; line-height: 1.27; font-weight: 620; padding: .32rem .52rem; color: #3f5148; background: #eef2ee; white-space: nowrap; }
.badge svg.ico { width: .85rem; height: .85rem; }
.badge.auction { color: #69500b; background: #fcf2c6; }
.badge.owned { color: #125631; background: #e4f1e5; }
.badge.closed { color: #3c5044; background: #edf1ec; }
.badge.attention { color: #86402a; background: #f8eae2; }
.badge.sample { color: #4b5e66; background: #edf1f3; }
.table-foot { display: flex; gap: .6rem 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-top: .9rem; font-size: .84rem; color: var(--muted); }
.page-buttons { display: flex; gap: .4rem; }
.page-buttons .btn { min-height: 35px; font-size: .83rem; padding: .33rem .65rem; }
.blank-state, .loading-block, .failure-box { padding: clamp(1.3rem,3vw,2.5rem); text-align: center; background: var(--ground); border: 1px solid var(--line); border-radius: .55rem; }
.blank-state h3, .failure-box h2 { font: normal 1.65rem/1.2 var(--display); color: var(--forest); letter-spacing: -.03em; margin-bottom: .4rem; }
.blank-state p, .failure-box p { margin: 0 auto .8rem; max-width: 45rem; line-height: 1.5; color: var(--muted); }
.blank-state .btn-row, .failure-box .btn-row { justify-content: center; }
.blank-state .empty-icon { width: 2.9rem; height: 2.9rem; display: inline-grid; place-items: center; background: #e8efe6; color: var(--green); border-radius: 50%; margin-bottom: .7rem; }
.loading-block { color: var(--muted); }
.tag-line { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.directory-top { align-items: flex-start; }
.directory-top .search-box input { width: clamp(14rem,28vw,26rem); }
.file-layout { display: grid; grid-template-columns: minmax(0,1fr) clamp(17rem, 28%, 32rem); gap: var(--office-gap); align-items: start; }
.file-summary { background: #f0f6ee; padding: 1.25rem 1.4rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; border-radius: .55rem; margin-bottom: 1.75rem; }
.file-summary dt, .detail-grid dt { font-size: .855rem; color: var(--muted); margin-bottom: .2rem; }
.file-summary dd { color: var(--forest); font: normal clamp(1.4rem,2vw,2rem)/1.2 var(--display); overflow-wrap: anywhere; }
.file-panel, .settings-panel { padding: 1.12rem 0; border-top: 1px solid var(--line); }
.file-panel:first-child { padding-top: 0; border-top: 0; }
.file-panel h2, .settings-panel h2 { margin-bottom: 1.1rem; }
.file-panel h3 { font-size: 1.02rem; color: var(--forest); margin: 1rem 0 .55rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .95rem 1.4rem; }
.detail-grid dd { line-height: 1.43; overflow-wrap: anywhere; }
.record-photo { float: none; width: 100%; height: auto; max-height: 380px; object-fit: contain; object-position: left; background: #edf2eb; border-radius: .5rem; display: block; }
.record-figure figcaption { color: var(--muted); font-size: .86rem; margin-top: .5rem; }
.file-aside { padding: 1.35rem; background: var(--ground); border-radius: .55rem; }
.file-aside .btn { justify-content: flex-start; width: 100%; }
.file-aside .action-list { display: grid; gap: .46rem; }
.file-aside .file-panel:last-child { padding-bottom: 0; }
.file-operations { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem 1.3rem; padding: 1rem 1.2rem; margin: 0 0 1.45rem; border: 1px solid #cddfcf; background: #f5f8f3; border-radius: .55rem; }
.file-operations h2 { color: var(--forest); font-size: 1rem; margin: 0 0 .25rem; }
.file-operations .action-list { display: flex; gap: .4rem; flex-wrap: wrap; }
.file-operations .action-list .btn { font-size: .87rem; min-height: 39px; padding: .48rem .75rem; }
.file-notes { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.file-map-tools { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .7rem; }
.file-map-tools a { font-size: .88rem; }
.timeline { padding-left: 0; list-style: none; }
.timeline li { position: relative; padding-left: 1.15rem; padding-bottom: .93rem; border-left: 1px solid #c7d6c8; margin-left: .24rem; }
.timeline li::before { position: absolute; content: ""; width: .52rem; height: .52rem; border: 1px solid #61916e; border-radius: 50%; background: #eff5ed; top: .3rem; left: -.3rem; }
.timeline li:first-child::before { background: var(--green); border-color: var(--green); }
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.timeline strong { display: block; font-size: .92rem; line-height: 1.38; color: var(--forest); font-weight: 630; overflow-wrap: anywhere; }
.timeline p { color: var(--muted); font-size: .81rem; line-height: 1.5; overflow-wrap: anywhere; }
.timeline p.event-note { color: var(--ink); font-size: .87rem; margin-top: .15rem; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1fr) clamp(17rem, 27%, 28rem); align-items: start; gap: var(--office-gap); }
.settings-aside { border: 1px solid var(--line); border-radius: .6rem; padding: 1.2rem 1.35rem; }
.settings-aside .settings-panel { padding: 0; border: 0; }
.connection { border-top: 1px solid var(--line); padding: .85rem 0; }
.connection:last-child { padding-bottom: 0; }
.connection strong { display: block; font-size: .95rem; margin-bottom: .3rem; }
.connection p, .description { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.connection .btn { margin-top: .65rem; }
.note-box { margin: 0 0 1rem; padding: .78rem .9rem; border-left: 3px solid #cc9a18; background: #fbf6df; color: #51441e; border-radius: 0 .32rem .32rem 0; font-size: .9rem; line-height: 1.5; }
.error-line { color: var(--danger); font-size: .9rem; line-height: 1.5; }
#messages { position: fixed; right: clamp(1rem,3vw,3rem); bottom: 1.2rem; z-index: 30; pointer-events: none; }
#messages:not(:empty) { max-width: min(30rem,calc(100vw - 2rem)); padding: .85rem 1.1rem; border-radius: .45rem; background: #173f2d; color: #fff; font-size: .92rem; box-shadow: 0 .25rem 1rem #18332424; }
#office-dialog { width: min(31rem,calc(100% - 2rem)); padding: 1.5rem; border: 1px solid #d1dacd; border-radius: .65rem; color: var(--ink); background: #fff; box-shadow: 0 1.1rem 4rem #1833242c; max-height: 89dvh; overflow: auto; }
#office-dialog::backdrop { background: rgba(17,38,27,.48); }
.dialog-heading { display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between; margin-bottom: 1rem; }
.dialog-heading h2 { color: var(--forest); font: normal 1.8rem/1.15 var(--display); letter-spacing: -.035em; }
.dialog-form { display: grid; gap: .9rem; }
.dialog-form label { display: grid; gap: .33rem; font-size: .9rem; color: #334e3e; font-weight: 600; }
.dialog-form input, .dialog-form textarea { width: 100%; border: 1px solid #bfcfc0; padding: .62rem .7rem; border-radius: .38rem; background: #fff; color: var(--ink); font-weight: 400; }
.dialog-form textarea { min-height: 4.5rem; resize: vertical; }
.dialog-form .btn-row { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 1rem; }
.file-identity { text-decoration: none; color: var(--green); }
.file-identity:hover { text-decoration: underline; }
@media (max-width: 1040px) {
  .mast-inner { gap: 1rem; }
  .main-nav { justify-content: flex-start; margin-left: 1.15rem; }
  .optional-col { display: none; }
  .office-highlight { grid-template-columns: minmax(0,1.45fr) minmax(15rem,.85fr); }
}
@media (max-width: 790px) {
  .account-text { max-width: 94px; }
  .main-nav { gap: .85rem; margin-left: .1rem; }
  .main-nav a { font-size: .875rem; }
  .office-highlight { grid-template-columns: minmax(0,1.35fr) minmax(13rem,.85fr); }
  .workload { padding: 1.1rem; }
  .file-layout, .settings-layout { grid-template-columns: 1fr; }
  .file-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .file-aside .file-panel { padding: 0; border: 0; }
  .small-hide { display: none; }
}
@media (min-width:58.001rem) and (max-width:70rem) {
  .main-nav .nav-long { display:none; }
  .main-nav .nav-short { display:inline; }
  .main-nav { margin-left: 0; }
  .rank-switch > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 650px) {
  .wordmark img { width: 78px; height: 43px; }
  .account-text { max-width: 133px; }
  .avatar { width: 2rem; height: 2rem; }
  .page-top { align-items: flex-start; gap: .95rem; }
  .page-top h1 { font-size: 2.72rem; }
  .heading-actions .btn { padding: .56rem .74rem; }
  .office-highlight { grid-template-columns: 1fr; }
  .workload { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: .85rem .7rem .95rem; }
  .workload h2 { display: none; }
  .metric { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: .15rem; border-top: 0; border-left: 1px solid #5e7b65; padding: 0 .55rem; }
  .metric:first-of-type { border-left: 0; }
  .metric strong { font-size: 1.75rem; }
  .metric span { font-size: .81rem; }
  .metric .ico { display: none; }
  .section-top { gap: .75rem; }
  .section-controls { width: 100%; }
  .section-controls .search-box { flex: 1; min-width: 0; }
  .section-controls .search-box input { width: 100%; }
  .filters { gap: .23rem; }
  .filter { padding: .4rem .55rem; }
  .data-table th, .data-table td { padding: .7rem .42rem; }
  .data-table th, .secondary-text { font-size: .8rem; }
  .mobile-hide { display: none; }
  .file-glyph { display: none; }
  .file-link { font-size: .94rem; }
  .file-summary { gap: .7rem; padding: 1rem; }
  .file-summary dt { font-size: .78rem; }
  .file-summary dd { font-size: 1.32rem; }
}
@media (max-width: 58rem) {
  .mast-inner { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 0 clamp(.4rem,1.2vw,.75rem); padding: .2rem var(--office-gutter) 0; min-height: 0; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .mast-inner .office-search-trigger { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
  .rank-switch { grid-column: 3; grid-row: 1; }
  .account { grid-column: 4; grid-row: 1; }
  .main-nav { grid-row: 2; grid-column: 1/-1; flex-wrap: wrap; margin: .1rem 0 0; gap: 0 clamp(.7rem,3vw,1.65rem); }
  .main-nav a { padding: .55rem .05rem; }
}
@media (max-width: 40rem) {
  .main-nav { justify-content: space-between; gap: 0 .35rem; }
  .main-nav a { font-size: .85rem; }
  .rank-switch > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rank-switch select { padding-left: .4rem; }
}
@media (max-width: 430px) {
  .main-nav .nav-long { display: none; }
  .main-nav .nav-short { display: inline; }
  .mast-inner:has(.rank-switch:not([hidden])) .account-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .account-text { max-inline-size: clamp(4rem,21vw,6rem); }
  .file-summary { grid-template-columns: repeat(auto-fit, minmax(min(8rem,100%),1fr)); }
  .page-top { align-items: flex-start; }
  .page-top h1 { font-size: 2.45rem; }
  .heading-actions .btn { min-height: 39px; font-size: .84rem; }
  .section-controls .search-box input { font-size: 1rem; }
  .file-aside { grid-template-columns: 1fr; }
  .detail-grid { gap: .8rem; }
  .dialog-form .btn-row { justify-content: stretch; }
}
@media (pointer: coarse) {
  .btn, .icon-btn, .filter, .page-buttons .btn { min-height: 44px; }
  .account-access, .mast-inner .office-search-trigger, .rank-switch select { min-height: 44px; }
  .account-access, .mast-inner .office-search-trigger { min-width: 44px; }
  .rank-switch select { font-size: 1rem; }
  .main-nav a { min-height: 44px; }
  input, textarea, select, .search-box input { font-size: 1rem; }
}
@media (pointer: coarse) and (max-width: 22rem) {
  .mast-inner { column-gap: .25rem; }
  .wordmark img { width: 4rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media (min-width: 105rem) {
  .office-mast .office-search-trigger { width: auto; gap: .55rem; padding-inline: .8rem; background: #f6f8f5; border-color: #cbd7cc; }
  .office-mast .office-search-trigger span { display: inline; }
}
@media (max-width: 30rem) {
  .wordmark:has(.demo-wordmark:not([hidden])) { flex-direction: column; gap: 0; align-items: center; padding-block: .12rem; }
  .demo-wordmark:not([hidden]) { margin: -.12rem 0 0; padding: 0 .3rem; font-size: .62rem; line-height: 1.2; }
}
@media (min-width: 75.001rem) and (max-width: 100rem) {
  .office-mast .main-nav { gap: 1.15rem; }
  .office-mast .main-nav .nav-long { display: none; }
  .office-mast .main-nav .nav-short { display: inline; }
  .office-mast .rank-switch > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .office-mast .account-text { max-width: 5.75rem; }
}
@media (max-width: 75rem) {
  :root { --mast-clearance: 6.8rem; }
  .office-mast .mast-inner { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 0 .75rem; padding-block-start: .2rem; min-height: auto; }
  .office-mast .wordmark { grid-area: 1 / 1; }
  .office-mast .office-search-trigger { grid-area: 1 / 2; justify-self: end; }
  .office-mast .staff-tools { grid-area: 1 / 3; }
  .office-mast .header-acquisition { grid-area: 1 / 4; }
  .office-mast .main-nav { grid-area: 2 / 1 / 3 / -1; justify-content: flex-start; gap: clamp(.8rem,3vw,2rem); flex-wrap: nowrap; margin: 0; overflow-x: auto; scrollbar-width: thin; }
  .office-mast .main-nav a { padding-block: .52rem; }
}
@container office-header (max-width: 44rem) {
  .office-mast .mast-inner { gap: 0 .4rem; }
  .office-mast .staff-tools-toggle { grid-area: 1 / 3; display: grid; place-items: center; min-width: 2.55rem; height: 2.6rem; border-radius: 50%; color: var(--forest); background: #edf3ea; font-weight: 650; }
  .office-mast .staff-tools { position: absolute; inset: 3.6rem var(--office-gutter) auto auto; display: none; padding: .95rem; border: 1px solid var(--line); border-radius: .5rem; background: white; box-shadow: 0 .45rem 1.7rem #17372524; z-index: 1; }
  .office-mast .staff-tools.open { display: grid; gap: .6rem; }
  .office-mast .staff-tools > * { grid-area: auto; justify-content: flex-start; }
  .office-mast .staff-tools .account-text { position: static; width: auto; height: auto; clip-path: none; }
  .office-mast .header-acquisition { font-size: .86rem; padding-inline: .66rem; }
  .office-mast .main-nav { justify-content: space-between; gap: .7rem; }
}
@media (max-width:40rem){ .file-aside {display:block} }
@media (max-width: 22rem) {
  .office-mast .mast-inner { gap: 0 .25rem; }
  .office-mast .wordmark img { width: 3.55rem; }
  .office-mast .header-acquisition { gap: .25rem; padding-inline: .45rem; }
}
