/* Agency workspace and billing. Keep the report's paper, brass and ink in work screens. */
.workspace {
  --ws-paper: #fffefa;
  --ws-brass: #8a672c;
  --ws-tab: #e6d0a0;
  --ws-soft: #f3f1e9;
  --ws-edge: #d5d2c7;
  --ws-move: cubic-bezier(.22,.72,.22,1);
  color: var(--ink);
  background: #f9f8f4;
}
.workspace :where(a,button,input,select,summary):focus-visible {
  outline: 3px solid #795c28;
  outline-offset: 3px;
}
.workspace [hidden] { display: none !important; }
.workspace :where(h1,h2,h3,p,ul,dl,dd) { margin: 0; }
.workspace a { color: inherit; text-underline-offset: .22em; }
.workspace button, .workspace input, .workspace select { font: inherit; }
.workspace :where(button,summary) { cursor: pointer; }
.workspace summary { list-style: none; }
.workspace summary::-webkit-details-marker { display: none; }
.ws-wrap { width: min(100%, 1176px); margin-inline: auto; padding-inline: clamp(18px, 5vw, 72px); }
.ws-mast { background: var(--ws-paper); border-bottom: 1px solid var(--ws-edge); }
.ws-mast-inner, .ws-identity { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ws-mast-inner { min-height: 70px; }
.ws-identity { gap: clamp(12px,2vw,28px); }
.ws-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 650 23px/1 var(--sans); letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.ws-brand .brand-glyph::after { transition: transform .22s var(--ws-move); transform-origin: left; }
.ws-brand:is(:hover,:focus-visible) .brand-glyph::after { transform: scaleX(1.3); }
.ws-user, .ws-demo-mark { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.ws-demo-mark { padding-inline-start: 12px; border-inline-start: 3px solid #c7a25f; }
.ws-text-link, .ws-record, .ws-record-end, .ws-invoice-link, .ws-priority a, .ws-comparison a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; }
.ws-text-link { border: 0; background: transparent; padding: 0; font-size: .91rem; font-weight: 570; color: var(--ink); text-decoration: underline; text-decoration-color: #99968d; text-underline-offset: .25em; }
.ws-text-link:hover, .ws-priority a:hover { text-decoration-color: currentColor; }
.ws-main { padding-block: clamp(32px,4vw,56px) clamp(50px,8vw,115px); }
.ws-main, .ws-auth-wrap { overflow-wrap: anywhere; }
.ws-overview { margin-bottom: 24px; }
.ws-label, .ws-folio-tab, .ws-demo-mark, .ws-invoices thead th, .ws-invoice-facts dt {
  font: 580 .73rem/1.45 var(--mono); letter-spacing: .065em; text-transform: uppercase;
}
.ws-label { color: var(--muted); }
.ws-agency { margin-top: 5px; font: 440 clamp(30px,3.3vw,47px)/1.05 var(--serif); letter-spacing: -.047em; }
.ws-tabs { display: flex; align-items: stretch; gap: clamp(18px,3vw,42px); border-bottom: 1px solid #aaa99f; }
.ws-tabs a { position: relative; display: grid; align-items: center; min-height: 48px; padding: 4px 0; color: var(--muted); text-decoration: none; font-weight: 570; }
.ws-tabs a[aria-current] { color: var(--ink); }
.ws-tabs a::after { content: ''; position: absolute; bottom: -1px; height: 3px; left: 0; right: 0; background: var(--ws-brass); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ws-move); }
.ws-tabs a:is([aria-current],:hover,:focus-visible)::after { transform: scaleX(1); }
.ws-heading { margin: clamp(25px,3.4vw,45px) 0 26px; }
.ws-heading h1, .ws-auth-folio h1, .ws-bill-mast h1 { color: var(--ink); font: 580 clamp(32px,4vw,52px)/1.04 var(--sans); letter-spacing: -.055em; }
.ws-folio { border: 1px solid #b7b09f; border-top: 3px solid #61533a; background: var(--ws-paper); box-shadow: 0 3px 0 -1px #eeeae0, 0 4px 0 -1px #c8c2b3; }
.ws-folio-interior { position: relative; padding: 0 clamp(20px,3vw,45px) clamp(22px,3vw,32px); display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 28px; }
.ws-folio-tab { grid-column: 1 / -1; justify-self: start; padding: 6px 14px 7px; background: var(--ws-tab); color: #493817; border-radius: 0 0 3px 3px; }
.ws-folio h2 { grid-column: 1 / -1; font: 450 clamp(30px,3.6vw,48px)/1.04 var(--serif); letter-spacing: -.052em; margin: clamp(20px,2vw,29px) 0 20px; }
.ws-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 15px clamp(24px,4vw,65px); margin-bottom: 22px; }
.ws-facts dt, .ws-priority>span, .ws-issued, .ws-help, .ws-member-title>span { display: block; color: var(--muted); font-size: .84rem; }
.ws-facts dd { margin-top: 1px; font-size: .99rem; font-weight: 540; font-variant-numeric: tabular-nums; }
.ws-comparison { grid-column: 1 / -1; margin-bottom: 16px; border-block-start: 1px solid var(--ws-edge); padding-block-start: 14px; }
.ws-priority { grid-column: 1; align-self: end; border-inline-start: 3px solid #c59d55; padding-left: 12px; }
.ws-priority a { min-height: 33px; font-weight: 575; }
.ws-open { grid-column: 2; grid-row-end: auto; align-self: end; justify-self: end; }
.ws-open:first-of-type, .ws-folio-interior:not(:has(.ws-priority)) .ws-open { grid-column: 1 / -1; justify-self: start; }
.ws-button, .ws-secondary, .ws-danger { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 3px; font-weight: 580; font-size: .94rem; line-height: 1.4; text-decoration: none; transition: transform .18s var(--ws-move), background-color .18s, box-shadow .18s; }
.workspace .ws-button { background: #293034; color: #fff; }
.workspace .ws-secondary { background: transparent; color: var(--ink); }
.workspace .ws-danger { background: #fff9f7; border-color: #a65f50; color: #7b3226; }
.ws-arrow { display: inline-block; line-height: 1; transition: transform .22s var(--ws-move); }
:where(.ws-button,.ws-text-link,.ws-record,.ws-invoice-link,.ws-priority a):is(:hover,:focus-visible) .ws-arrow { transform: translateX(5px); }
.ws-button:is(:hover,:focus-visible) { background: #3c484a; box-shadow: 0 4px 0 -1px #c2b28c; transform: translateY(-2px); }
.ws-secondary:hover { background: var(--ws-soft); }
.workspace :is(.ws-button,.ws-secondary,.ws-danger):active { transform: translateY(1px); box-shadow: none; }
.ws-drawer { border-top: 1px solid var(--ws-edge); background: #f6f4ed; }
.ws-drawer>summary, .ws-invite>summary, .ws-member-options>summary { display: flex; align-items: center; gap: 14px; min-height: 48px; font-weight: 560; }
.ws-drawer>summary { padding: 8px clamp(20px,3vw,45px); justify-content: space-between; }
.ws-drawer>summary:is(:hover,:focus-visible), .ws-invite>summary:is(:hover,:focus-visible) { background: #ece8dc; }
.ws-chevron { flex: none; width: 9px; height: 9px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); margin-right: 3px; transition: transform .22s var(--ws-move); }
details[open]>summary .ws-chevron { transform: rotate(225deg) translate(-1px,-1px); }
.ws-drawer-body { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 clamp(20px,3vw,50px); margin-inline: clamp(20px,3vw,45px); padding: 8px 0 13px; border-top: 1px solid var(--ws-edge); }
.ws-drawer-body>a { display: inline-flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 8px; text-decoration-color: #949085; }
.ws-drawer-body>a span { color: var(--muted); font: 500 .71rem var(--mono); }
.ws-archive { margin: 37px 0 0; padding: 0; }
.ws-archive h2, .ws-team-heading h2, .ws-empty h2 { font: 590 clamp(22px,2.3vw,29px)/1.18 var(--sans); letter-spacing: -.035em; }
.ws-register { list-style: none; padding: 0; margin-top: 14px; border-top: 1px solid #aaa99f; }
.ws-register li { border-bottom: 1px solid var(--ws-edge); }
.ws-record { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; width: 100%; text-decoration: none; }
.ws-record strong { font-weight: 590; }
.ws-record small, .ws-record-end { display: block; color: var(--muted); font-size: .88rem; }
.ws-record-end { display: inline-flex; gap: 14px; white-space: nowrap; }
.ws-record:is(:focus-visible,:hover) strong, .ws-invoice-link:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.ws-empty { border-block: 1px solid var(--ws-edge); padding: clamp(22px,3vw,40px) 0; }
.ws-empty p, .ws-team-heading p { margin-top: 8px; color: var(--muted); max-width: 68ch; }
.ws-invoices { width: 100%; border-collapse: collapse; font-size: .97rem; }
.ws-invoices thead th { color: var(--muted); padding: 0 12px 9px; border-bottom: 1px solid #918f84; background: none; }
.ws-invoices td, .ws-invoices tbody th { padding: 17px 12px; border-bottom: 1px solid var(--ws-edge); vertical-align: middle; text-align: left; font: 430 .96rem/1.45 var(--sans); text-transform: none; letter-spacing: normal; }
.ws-invoices tbody th, .ws-invoices thead th:first-child { padding-left: 0; }
.ws-invoices .ws-amount, .ws-invoices thead th:last-child { text-align: right; padding-right: 0; }
.ws-amount, .ws-invoice-facts, .ws-invoices time { font-variant-numeric: tabular-nums; }
.ws-invoice-link { min-height: 44px; font-weight: 620; text-decoration-color: #969287; }
.ws-issued { font-size: .78rem; }
.ws-state { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.ws-state::before { content: ''; height: 7px; width: 7px; border: 1px solid currentColor; border-radius: 50%; }
.ws-state-paid { color: #325841; }
.ws-state-paid::before { background: #577b58; }
.ws-state-open { color: #78551e; }
.ws-state-open::before { background: #cc9e4b; }
.ws-state-void { color: var(--muted); }
.ws-back { margin-bottom: 12px; }
.ws-invoice-paper, .ws-auth-folio { border: 1px solid #b7b09f; border-top: 3px solid #61533a; background: var(--ws-paper); padding: clamp(22px,4.5vw,60px); box-shadow: 0 3px 0 -1px #e7e3d8; }
.ws-bill-mast { border-bottom: 1px solid var(--ws-edge); padding-bottom: 20px; }
.ws-bill-mast h1 { margin-top: 9px; font-family: var(--serif); font-weight: 450; }
.ws-invoice-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 28px; padding-block: 25px; }
.ws-invoice-facts dt { color: var(--muted); }
.ws-invoice-facts dd { margin-top: 3px; }
.ws-lineitem { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: start; padding: 20px 0; border-block: 1px solid #979384; }
.ws-lineitem p+p, .ws-lineitem strong { margin-top: 7px; display: block; }
.ws-lineitem>div:last-child { text-align: right; }
.ws-lineitem strong { font: 550 clamp(22px,3vw,32px)/1.1 var(--serif); }
.ws-invoice-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.ws-auth-wrap { width: min(100% - 36px, 540px); margin: clamp(35px,7vw,100px) auto; }
.ws-auth-folio { padding: clamp(22px,4.2vw,47px); }
.ws-auth-folio h1 { margin-top: 13px; font-size: clamp(34px,4vw,46px); }
.ws-description, .ws-help { color: var(--muted); }
.ws-description { margin: 15px 0 24px; }
.ws-form { display: grid; gap: 14px; }
.ws-form :where(label,legend), .ws-invite-result>label { display: block; font-weight: 590; }
.ws-form :where(input,select):not([type=hidden]):not([type=checkbox]), .ws-copy input { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #9f9d90; border-radius: 3px; background: #fffefa; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.ws-form :is(input,select):focus { border-color: #80652d; }
.ws-form label:has(+input), .ws-form label:has(+select) { margin-bottom: 4px; }
.ws-form>button { justify-self: start; }
.ws-auth-demo { margin-top: 22px; border-top: 1px solid var(--ws-edge); padding-top: 12px; }
.ws-alert, .ws-notice { border-left: 3px solid #b48d44; padding: 12px 15px; background: #f2eee3; margin-bottom: 18px; }
.ws-alert { border-color: #935044; background: #faf0ec; }
.ws-invite-result { padding: 18px 20px; margin-bottom: 24px; background: #f1eee4; border: 1px solid #c9c1aa; }
.ws-invite-result>p { margin: 4px 0 10px; color: var(--muted); }
.ws-copy { display: flex; align-items: stretch; gap: 8px; }
.ws-copy input { min-width: 0; }
.ws-copy button { flex-shrink: 0; }
.ws-copy button[data-copied] { background: #e5ecdf; border-color: #597859; color: #28462d; }
.ws-invite-result .ws-copy-status { margin: 8px 0 0; }
.ws-copy-status:empty { display: none; }
.ws-invite { border-block: 1px solid #aca89b; }
.ws-invite>summary { padding: 8px 12px; justify-content: space-between; }
.ws-invite-form, .ws-role-form { grid-template-columns: repeat(2,minmax(0,1fr)) auto; align-items: end; }
.ws-invite-form { padding: 16px 12px 22px; }
.ws-team-heading { margin-top: 33px; }
.ws-member { padding: 15px 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.83fr); align-items: start; gap: 12px 24px; }
.ws-member-title strong, .ws-member-title span { display: block; }
.ws-member-options>summary { justify-content: flex-end; }
.ws-member-forms { grid-column: 1/-1; }
.ws-role-form { grid-template-columns: minmax(0,1fr) auto; margin: 9px 0; }
.ws-removal>summary { display: inline-flex; align-items: center; min-height: 44px; color: #813f32; text-decoration: underline; }
.ws-form .ws-confirm { display: flex; align-items: flex-start; gap: .5em; font-size: .9rem; }
.ws-confirm input { margin: .25em 0; width: 18px; height: 18px; flex: none; }
.ws-removal .ws-form { padding: 12px; background: #faf0e9; }
@keyframes ws-enter { from { opacity: .6; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ws-unfold { from { opacity: .35; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion:no-preference) {
  .ws-folio, .ws-invoices, .ws-auth-folio, .ws-invoice-paper { animation: ws-enter .32s var(--ws-move) both; }
  .workspace details[open] > :is(.ws-drawer-body,.ws-invite-form,.ws-member-forms,.ws-form), .ws-invite-result { animation: ws-unfold .26s var(--ws-move) both; }
}
@media (max-width: 720px) {
  .ws-invoice-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ws-invite-form { grid-template-columns: 1fr; }
  .ws-member { grid-template-columns: 1fr; }
  .ws-member-options>summary { justify-content: flex-start; }
  .ws-user { display: none; }
}
@media (max-width: 620px) {
  .ws-invoices, .ws-invoices tbody, .ws-invoices tbody tr { display: block; }
  .ws-invoices thead { clip-path: inset(50%); position: absolute; height: 1px; width: 1px; overflow: hidden; }
  .ws-invoices tbody tr { padding: 12px 0 17px; border-top: 1px solid #aaa99f; }
  .ws-invoices tbody th, .ws-invoices tbody td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .ws-invoices tbody th { flex-wrap: wrap; align-items: center; padding: 0 0 7px; text-align: left; }
  .ws-invoices td::before { content: attr(data-label); color: var(--muted); font-size: .83rem; }
}
@media (max-width: 530px) {
  .ws-mast-inner { min-height: 61px; gap: 10px; }
  .ws-identity { align-items: flex-end; flex-direction: column; gap: 0; }
  .ws-demo-mark { font-size: .62rem; border: 0; padding: 0; letter-spacing: .03em; }
  .ws-identity .ws-demo-mark + a { min-height: 44px; }
  .ws-overview { margin-bottom: 15px; }
  .ws-tabs { gap: 22px; }
  .ws-tabs a { font-size: .91rem; }
  .ws-heading { margin: 24px 0 18px; }
  .ws-folio-interior { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .ws-facts { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; }
  .ws-facts>div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid #e7e4db; padding-bottom: 5px; }
  .ws-facts dd { text-align: right; }
  .ws-priority { align-self: stretch; }
  .ws-open { margin-top: 16px; align-self: stretch; }
  .ws-open .ws-button { width: 100%; justify-content: space-between; }
  .ws-drawer-body { display: grid; }
  .ws-drawer-body>a+a { border-top: 1px solid #e4dfd2; }
  .ws-record { align-items: flex-start; gap: 8px; flex-direction: column; }
  .ws-record-end { min-height: auto; white-space: normal; }
  .ws-invoice-facts { gap: 15px 11px; }
  .ws-lineitem { grid-template-columns: 1fr; gap: 15px; }
  .ws-lineitem>div:last-child { text-align: left; }
  .ws-copy { flex-direction: column; }
  .ws-role-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .workspace *, .workspace *::before, .workspace *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .workspace :where(.ws-button,.ws-secondary,.ws-danger):is(:hover,:focus-visible,:active), .workspace :where(a,button):is(:hover,:focus-visible) .ws-arrow { transform: none; }
}
@media print {
  @page { size: letter; margin: .7in; }
  .workspace, .ws-mast, .ws-invoice-paper { color: #111; background: white; }
  .ws-mast, .ws-overview, .ws-tabs, .ws-back, .ws-invoice-actions, .workspace .skip { display: none; }
  .ws-wrap, .ws-main { width: auto; max-width: none; padding: 0; margin: 0; }
  .ws-invoice-paper { border: 0; box-shadow: none; padding: 0; }
  .ws-invoice-facts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ws-lineitem { grid-template-columns: minmax(0,1fr) auto; }
  .ws-lineitem>div:last-child { text-align: right; }
}

.change-dates { color:var(--ink); margin:0 0 .65rem; font-weight:550; }
.change-key { color:var(--muted); max-width:68ch; margin:0 0 2rem; }
.change-group { border-top:1px solid var(--line); }
.change-group:last-child { border-bottom:1px solid var(--line); }
.change-group summary { cursor:pointer; min-height:48px; padding:14px 0; font-weight:600; }
.change-group summary span { float:right; font:500 .9rem/1.5 var(--mono); padding-inline:8px; }
.change-group > p, .change-group li span { color:var(--muted); }
.change-group ul { list-style:none; margin:0 0 22px; padding:0; }
.change-group li { display:grid; gap:3px; border-top:1px solid var(--line); padding:12px 6px; overflow-wrap:anywhere; }
.ws-comparison { margin: 20px 0 0; padding-top: 7px; }
.ws-comparison p, .ws-role-help, .ws-hint, .ws-form small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.ws-role-help { margin-top: 4px; }
.ws-hint { margin-top: 17px; }
.ws-auth-folio .ws-form { gap: 9px; }
.ws-auth-folio .ws-form>label:not(:first-of-type), .ws-auth-folio .ws-form>button { margin-top: 6px; }
.ws-auth-folio .ws-form>label { margin-bottom: 0; }
.ws-disclosure { border-bottom: 1px solid var(--ws-edge); padding-bottom: 5px; }
.ws-disclosure summary { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: .91rem; font-weight: 560; }
.ws-disclosure summary::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s var(--ws-move); }
.ws-disclosure[open] summary::after { transform: rotate(225deg); }
.ws-disclosure label, .ws-disclosure small { display: block; margin: 4px 0; }
.ws-secret { position: relative; }
.workspace .ws-form .ws-secret input { padding-inline-end: 74px; }
.ws-show-secret { position: absolute; inset: 1px 1px 1px auto; width: 64px; border: 0; border-left: 1px solid #d3d1c7; background: #f6f4ed; color: var(--ink); font-size: .87rem !important; font-weight: 580 !important; }
.ws-show-secret:hover { background: var(--ws-tab); }
.ws-form[aria-busy=true]>button[type=submit] { opacity: .78; }
.ws-invite-form,.ws-role-form { align-items: start; }
.ws-invite-form>button, .ws-role-form>button { align-self: start; margin-top: 1.8rem; }
@media (max-width: 720px) { .ws-invite-form>button { margin-top: 0; } }
@media (max-width: 530px) { .ws-role-form>button { margin-top: 0; } }
.change-group>summary { display: flex; align-items: center; gap: 12px; }
.change-group>summary span { margin-left: auto; }
.change-group>summary::after { content: ''; width: 8px; height: 8px; margin-right: 4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .22s var(--ws-move); }
.change-group[open]>summary::after { transform: rotate(225deg); }
.change-group[open]>summary { color: #715425; }
.change-group>summary:is(:hover,:focus-visible) { background: var(--ws-soft); }
@media (prefers-reduced-motion:no-preference) { .change-group[open]>ul { animation: ws-unfold .24s var(--ws-move); } }
