:root { --ws-button-radius: 8px }

.ws-shell {
  --ws-bg: #f8f7f4;
  --ws-ink: #2c2532;
  --ws-muted: #706a75;
  --ws-border: #e3dee5;
  --ws-accent: #675078;
  --ws-tint: #eee9f3;
  --ws-action: #202124;
  --ws-citron: #dfea86;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: calc(100dvh - 36px);
  background: var(--ws-bg);
  color: var(--ws-ink);
  font: 14px/1.5 Geist, Arial, sans-serif;
}
.ws-shell :is(h1,h2,p,dl,dd) { margin: 0 }
.ws-shell :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 3px }
.ws-shell a { color: inherit; text-decoration: none }
.ws-shell :is(a,button,summary,select) { cursor: pointer }
.ws-shell svg { flex: none; vertical-align: middle }
.ws-shell :is(input,textarea,select,button) { font: inherit }
.ws-shell [hidden] { display: none !important }
.ws-shell input[type=checkbox], .ws-shell input[type=radio] { appearance: auto; accent-color: var(--ws-accent); width: 15px; height: 15px; flex: none }
.ws-shell input[type=number] { appearance: textfield }
.ws-shell input[type=number]::-webkit-inner-spin-button { appearance: none }
.ws-shell :where(input:not([type=checkbox],[type=radio],[type=file]),textarea,select) {
  background: #fff; border: 1px solid var(--ws-border); border-radius: 8px; padding: 10px 12px; min-width: 0; width: 100%;
}
.ws-shell select {
  appearance: none; padding-right: 29px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 5 3 3 3-3' fill='none' stroke='%23706a75' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px; background-position: right 10px center;
}
.ws-shell :is(input,textarea)::placeholder { color: var(--ws-muted); opacity: 1 }
.ws-shell textarea { resize: vertical }
.ws-rail {
  --ws-rail-inset: 22px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh;
  padding: 22px var(--ws-rail-inset) 0; background: #2c2532; color: #d0c8d7;
}
.ws-rail > .ws-logo { flex: none }
.ws-logo { display: inline-flex; align-items: center; gap: 4px; justify-self: start }
.ws-logo img { object-fit: contain }
.ws-rail .ws-logo img { width: 31px; height: 31px; filter: brightness(0) invert(1) }
.ws-rail .ws-logo img + img { width: 96px; height: 22px }
.ws-nav { display: grid; gap: 6px; margin-top: 78px }
.ws-nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 6px; line-height: 20px }
.ws-nav [aria-current=page] { background: var(--ws-citron); color: var(--ws-ink) }
.ws-nav a:hover:not([aria-current=page]) { background: #3d3344 }
.ws-rail .ws-nav {
  flex: 1; min-height: 0; align-content: start; overflow-y: auto; padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: #53445f transparent;
}
.ws-rail .ws-nav a:focus-visible { outline-offset: -2px }
@media (max-height: 680px) {
  .ws-rail .ws-nav { margin-top: 32px }
}
.ws-nav-edit {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 8px 12px;
  border: 0; border-radius: 6px; background: transparent; color: inherit; text-align: left;
}
.ws-nav-edit:hover { background: #3d3344 }
.ws-mobile-menu .ws-nav-edit:hover { background: var(--ws-tint) }
.ws-nav-order { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none }
.ws-nav-order li {
  position: relative; display: grid; grid-template-columns: 16px 16px minmax(0, 1fr) auto auto; align-items: center;
  gap: 8px; padding: 2px 6px 2px 12px; border: 1px solid var(--ws-border); border-radius: 8px;
}
.ws-nav-grip {
  display: grid; place-items: center; margin: -6px; padding: 6px; color: var(--ws-muted);
  touch-action: none; cursor: grab;
}
.ws-nav-grip:active { cursor: grabbing }
.ws-nav-order li > svg { color: var(--ws-muted) }
.ws-nav-order .ws-icon-button { width: 36px; height: 36px; border-radius: 6px }
.ws-nav-order .ws-icon-button:hover:not(:disabled) { background: var(--ws-tint) }
.ws-nav-order .ws-icon-button:disabled { opacity: .35; cursor: default }
.ws-nav-order [data-ws-nav-dragging] { opacity: .45 }
.ws-nav-order [data-ws-nav-drop]::after {
  content: ''; position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: var(--ws-accent); pointer-events: none;
}
.ws-nav-order [data-ws-nav-drop="before"]::after { top: -4px }
.ws-nav-order [data-ws-nav-drop="after"]::after { bottom: -4px }
@media (pointer: coarse) {
  .ws-nav-order .ws-icon-button { width: 44px; height: 44px }
}
.ws-rail-footer {
  display: grid; flex: none; gap: 10px; margin-inline: calc(-1 * var(--ws-rail-inset)); padding: 10px 14px 16px;
  border-top: 1px solid #53445f;
}
.ws-rail-footer-actions, .ws-rail-profile { display: grid; align-items: center; gap: 8px }
.ws-rail-footer-actions { grid-template-columns: minmax(0,1fr) 32px }
.ws-rail-profile { grid-template-columns: 32px minmax(0,1fr) 32px }
.ws-rail-footer .ws-nav-edit { padding-inline: 8px; font-size: 13px; white-space: nowrap }
.ws-rail-avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #50425c; color: #f5eef8; font-size: 11px; font-weight: 600;
}
.ws-rail-profile strong, .ws-rail-profile small { display: block; overflow-wrap: anywhere }
.ws-rail-profile strong { color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3 }
.ws-rail-profile small { margin-top: 3px; color: #c1b4cb; font-size: 11px; line-height: 1.4 }
.ws-rail-icon {
  display: inline-grid; place-items: center; width: 32px; height: 36px; border: 0; border-radius: 6px;
  padding: 0; color: inherit; background: transparent;
}
.ws-rail-icon:hover { color: #fff; background: #3d3344 }

.ws-main { min-width: 0 }
.ws-top { height: 76px; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--ws-muted); font-size: 12px }
.ws-mobile-top { display: none }
.ws-page { padding: 12px 40px 48px; min-width: 0 }
.ws-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px }
.ws-heading-start, .ws-detail-prefix, .ws-title, .ws-actions { display: flex; align-items: center; gap: 12px }
.ws-heading-start { min-width: 0 }
.ws-actions { flex-wrap: wrap; gap: 8px }
.ws-heading h1 { font: 500 21px/1.25 Manrope, Geist, sans-serif; letter-spacing: -.35px }
.ws-heading p { color: var(--ws-muted); margin-top: 4px }
.ws-button { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--ws-border); border-radius: var(--ws-button-radius); background: white; color: var(--ws-ink); white-space: nowrap; font-weight: 500 }
.ws-shell .ws-primary { background: var(--ws-action); color: #fff; border-color: var(--ws-action) }
.ws-button:hover { border-color: var(--ws-accent) }
.ws-primary:hover { background: #3c3044 }
.ws-icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 28px; padding: 2px; border: 0; background: transparent; color: var(--ws-muted) }
.ws-icon-button:hover { color: var(--ws-accent) }
.ws-muted, .ws-small { color: var(--ws-muted) }
.ws-plum-text { color: var(--ws-accent) }
.ws-outstanding { color: #836127 }
.ws-card { min-width: 0; background: #fff; border: 1px solid var(--ws-border); border-radius: 12px }
.ws-card-title { font-size: 15px; font-weight: 500 }
.ws-pill, .ws-status-select { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 5px 9px; border-radius: 6px; font-size: 12px; line-height: 1.25; white-space: nowrap }
.ws-lime { background: #f2f5df; color: #424c19 }
.ws-plum { background: #eee8f3; color: #675078 }
.ws-quiet { background: #f8f7f4; color: #706a75 }
.ws-gold { background: #f7edd9; color: #775719 }
.ws-red { background: #f8ebe7; color: #97473d }
.ws-green { background: #eaf1e9; color: #365f44 }
.ws-shell .ws-status-select { padding: 0 }
.ws-shell .ws-status-select select { width: auto; background-color: transparent; border: 0; padding: 5px 24px 5px 8px; background-position: right 6px center }
.ws-shell .ws-status-select select[data-ws-project-status] { color: inherit; cursor: pointer; font-size: 12px }
.ws-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px }
.ws-filters select { width: auto; min-height: 40px; font-size: 13px }
.ws-filters select[name=sort] { min-width: 106px }
.ws-shell:has(.ws-client-grid) .ws-filters select[name=sort] { margin-left: auto }
.ws-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ws-border); background: #fff; border-radius: 8px; color: var(--ws-muted); width: min(280px, 100%); padding: 0 12px }
.ws-shell .ws-search input { border: 0; padding: 9px 0; font-size: 13px }
.ws-search:focus-within { outline: 2px solid var(--ws-accent); outline-offset: 2px }
.ws-shell .ws-search input:focus-visible { outline: 0 }
.ws-group { margin-bottom: 20px }
.ws-group summary, .ws-menu summary, .ws-mobile-menu summary { list-style: none }
.ws-group summary::-webkit-details-marker, .ws-menu summary::-webkit-details-marker, .ws-mobile-menu summary::-webkit-details-marker { display: none }
.ws-group > summary { display: flex; align-items: center; gap: 8px; width: fit-content; color: var(--ws-muted); font-size: 13px; padding: 1px 4px 11px }
.ws-group > summary::before { content: ''; display: block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); margin-right: 4px }
.ws-group[open] > summary::before { transform: translateY(-2px) rotate(45deg) }
.ws-menu { position: relative; flex: none; color: var(--ws-muted) }
.ws-menu summary { display: flex; align-items: center; justify-content: center; min-height: 28px; min-width: 24px }
.ws-menu > div, .ws-mobile-menu[open] .ws-nav { position: absolute; right: 0; top: calc(100% + 4px); z-index: 4; display: grid; width: max-content; min-width: 132px; padding: 5px; background: white; border: 1px solid var(--ws-border); border-radius: 8px; box-shadow: 0 8px 26px #2c25321a }
.ws-menu :is(a,button) { border: 0; background: transparent; padding: 7px 10px; text-align: left; border-radius: 4px }
.ws-menu :is(a,button):hover { background: var(--ws-tint) }
.ws-client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px }
.ws-client-card { padding: 19px; display: flex; flex-direction: column; gap: 10px }
.ws-client-heading { display: flex; align-items: center; gap: 4px }
.ws-client-card:has(.ws-menu[open]) { position: relative; z-index: 5; opacity: 1 }
.ws-client-heading .ws-menu > summary { min-width: 32px; min-height: 32px; border-radius: var(--ws-button-radius) }
.ws-client-heading .ws-menu > summary:hover,
.ws-client-heading .ws-menu[open] > summary { background: var(--ws-tint); color: var(--ws-accent) }
.ws-client-heading .ws-menu > div { min-width: 200px; border-radius: 12px; color: var(--ws-ink) }
.ws-client-menu-item,
.ws-client-menu-item > [data-ws-client-archive-label] { display: flex; align-items: center; gap: 10px; white-space: nowrap }
.ws-client-heading .ws-menu .ws-client-menu-item { width: 100%; padding: 8px 10px; color: inherit; border-radius: var(--ws-button-radius) }
.ws-client-heading .ws-menu hr { border: 0; border-top: 1px solid var(--ws-border); margin: 4px 0 }
@media (prefers-reduced-motion: no-preference) {
  .ws-client-heading .ws-menu[open] > div { animation: ws-client-menu-in 140ms ease-out }
  .ws-client-heading .ws-menu :is(summary, .ws-client-menu-item) { transition: background-color 140ms ease, color 140ms ease }
}
@keyframes ws-client-menu-in {
  from { opacity: 0; transform: translateY(-4px) }
  to { opacity: 1; transform: translateY(0) }
}
.ws-client-name { display: flex; align-items: center; gap: 9px; margin-right: auto; min-width: 0; line-height: 1.35 }
.ws-client-name > span:last-child { min-width: 0 }
.ws-client-name :is(strong,small) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.ws-client-name strong { font-size: 15px; font-weight: 500 }
.ws-client-name small { color: var(--ws-muted); margin-top: 3px; font-size: 12px }
.ws-avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ws-tint); color: var(--ws-accent) }
.ws-avatar-large { width: 64px; height: 64px; font-size: 18px; overflow: hidden }
.ws-avatar img { width: 100%; height: 100%; object-fit: cover }
.ws-contact, .ws-text-action { display: flex; align-items: center; gap: 6px; width: fit-content; font-size: 13px }
.ws-contact { color: var(--ws-muted) !important; overflow-wrap: anywhere }
.ws-text-action { background: transparent; border: 0; padding: 0; color: var(--ws-accent) !important }
.ws-text-action:hover, .ws-contact:hover, .ws-client-name:hover strong { text-decoration: underline }
.ws-client-contacts { display: grid; gap: 4px }
.ws-client-activity { font-size: 12px; color: var(--ws-muted) }
.ws-client-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 9px; border-top: 1px solid var(--ws-border) }
.ws-client-stats dt { font-size: 11px; color: var(--ws-muted); margin-bottom: 2px }
.ws-client-stats dd { font-size: 15px; font-variant-numeric: tabular-nums }
.ws-client-stats .ws-small { font-size: 12px }
.ws-archived { opacity: .76 }
.ws-detail, .ws-wizard, .ws-editor { margin-inline: auto; min-width: 0 }
.ws-detail { max-width: 768px }
.ws-wizard { max-width: 672px }
.ws-editor { max-width: 1024px }
.ws-detail .ws-heading, .ws-editor .ws-heading { align-items: center }
.ws-detail .ws-heading p a:hover { text-decoration: underline }
.ws-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px }
.ws-metric { display: flex; flex-direction: column; gap: 5px; padding: 17px 18px; border-radius: 12px; background: var(--ws-tint) }
.ws-metric > span { color: var(--ws-muted); font-size: 12px }
.ws-metric > strong { font-size: 29px; font-weight: 400; line-height: 1.18; font-variant-numeric: tabular-nums; letter-spacing: -.5px }
.ws-metric small { margin-top: 4px; color: var(--ws-muted); font-size: 11px }
.ws-metric-budget { display: flex; align-items: center; gap: 8px }
.ws-metric-budget .ws-progress { width: min(96px,40%); margin: 0 }
.ws-detail-card { margin-bottom: 24px; padding: 18px 20px; display: grid; gap: 9px }
.ws-card-header { display: flex; align-items: center; justify-content: space-between }
.ws-detail-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ws-border) }
.ws-detail-row:last-child { border-bottom: 0; padding-bottom: 3px }
.ws-detail-row > :first-child { margin-right: auto }
.ws-detail-row strong { font-weight: 500 }
.ws-detail-row small { display: block; margin-top: 2px; color: var(--ws-muted); font-size: 12px }
.ws-detail-row > span:not(.ws-pill) { color: var(--ws-muted) }
.ws-table-wrap { min-width: 0; border: 1px solid var(--ws-border); border-radius: 10px; background: #fff }
.ws-table-wrap table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums }
.ws-table-wrap th { background: var(--ws-bg); color: var(--ws-muted); text-align: left; font-size: 12px; font-weight: 500 }
.ws-table-wrap :is(th,td) { border-bottom: 1px solid var(--ws-border); padding: 12px 14px }
.ws-table-wrap tr:last-child td { border-bottom: 0 }
.ws-table-wrap th:first-child { border-top-left-radius: 10px }
.ws-table-wrap th:last-child { border-top-right-radius: 10px }
.ws-table-wrap td small { display: block; color: var(--ws-muted); font-size: 11px; margin-top: 3px }
.ws-table-wrap td strong { font-weight: 500 }
.ws-table-wrap .ws-numeric { text-align: right; white-space: nowrap }
.ws-table-wrap a:hover { text-decoration: underline }
.ws-row-actions { display: flex; justify-content: flex-end; align-items: center }
.ws-project-table th:nth-child(2) { width: 54% }
.ws-project-table :is(th,td):nth-child(4), .ws-project-table :is(th,td):nth-child(5) { text-align: right; white-space: nowrap }
.ws-project-group:not([data-group=Active]) :is(.ws-project-table,.ws-project-cards) { color: var(--ws-muted) }
.ws-project-group:not([data-group=Active]) [data-ws-timer] { display: none }
.ws-project-cards { display: none }
.ws-project-selection {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid var(--ws-border);
  border-radius: 10px;
  background: var(--ws-tint);
  font-size: 13px;
}
.ws-project-selection > strong { font-weight: 600 }
.ws-project-selection-menu > summary {
  gap: 6px;
  min-height: 34px;
  padding: 5px 10px;
}
.ws-project-selection-menu[open] > summary svg { transform: rotate(180deg) }
.ws-project-selection-menu > div { left: 0; right: auto; z-index: 10; min-width: 220px }
.ws-project-selection-menu .ws-project-action { display: flex; align-items: center; gap: 8px; width: 100%; white-space: nowrap }
.ws-project-clear { border: 0; background: transparent; padding: 5px 2px; color: var(--ws-muted) }
.ws-project-clear:hover { color: var(--ws-ink); text-decoration: underline }
.ws-project-table [data-ws-project-selected] > td,
.ws-project-cards [data-ws-project-selected] { background: var(--ws-tint) }
.ws-shell :is(.ws-project-delete, .ws-client-delete-confirm) { background: #97473d; border-color: #97473d; color: #fff }
.ws-shell :is(.ws-project-delete, .ws-client-delete-confirm):hover { background: #79362e; border-color: #79362e }
@media (max-width: 540px) {
  .ws-project-selection-menu { position: static }
  .ws-project-selection-menu > div { left: 10px; right: 10px; top: calc(100% + 4px); min-width: 0; width: auto }
}
.ws-project-title { display: inline-flex; align-items: center; gap: 8px }
.ws-project-title i, .ws-included-row::before { width: 10px; height: 10px; border-radius: 50%; background: var(--ws-accent); flex: none }
.ws-progress { display: block; height: 4px; background: var(--ws-border); border-radius: 20px; overflow: hidden; min-width: 0 }
.ws-project-table .ws-progress { margin: 4px 0 0 auto; width: 116px }
.ws-progress i { display: block; height: 100%; border-radius: inherit; background: var(--ws-accent) }
.ws-progress-gold i { background: #836127 }
.ws-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; width: fit-content; margin-bottom: 24px; background: var(--ws-tint); border-radius: 8px }
.ws-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 11px; border-radius: 6px; color: var(--ws-muted) }
.ws-tabs a[aria-current=page] { background: #fff; color: var(--ws-ink) }
.ws-tabs span { color: var(--ws-accent); font-size: 12px; padding-inline: 2px }
.ws-invoice-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap }
.ws-invoice-link svg { color: var(--ws-muted) }
.ws-invoice-table, .ws-line-items { overflow: auto }
.ws-invoice-table table { min-width: 645px; table-layout: fixed }
.ws-invoice-table th:nth-child(1) { width: 17.5% }
.ws-invoice-table th:nth-child(2) { width: 27% }
.ws-invoice-table th:nth-child(3) { width: 9% }
.ws-invoice-table th:nth-child(4) { width: 16.5% }
.ws-invoice-table th:nth-child(5) { width: 14% }
.ws-invoice-table :is(th,td):nth-child(3), .ws-invoice-table th:last-child { text-align: right }
.ws-recurring-list { display: grid; gap: 24px }
.ws-recurring-row { display: flex; align-items: center; gap: 12px; padding: 20px }
.ws-recurring-row strong { margin-right: 7px; font-weight: 500 }
.ws-recurring-row small { display: block; color: var(--ws-muted); margin-top: 2px }
.ws-recurring-row .ws-icon-button { margin-left: auto }
.ws-recurring-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--ws-tint); color: var(--ws-accent) }
.ws-dialog { padding: 0; width: min(480px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid var(--ws-border); border-radius: 16px; color: var(--ws-ink); background: white; margin: auto }
.ws-dialog::backdrop { background: #2c253265 }
.ws-dialog form { display: grid; gap: 14px; padding: 24px }
.ws-dialog header, .ws-dialog footer { display: flex; gap: 8px; align-items: center }
.ws-dialog header { justify-content: space-between }
.ws-dialog footer { justify-content: flex-end }
.ws-dialog h2 { font: 500 19px/1.3 Manrope, Geist, sans-serif }
.ws-form-fields, .ws-wizard-form, .ws-step-two, .ws-option-card, .ws-editor-card { display: grid; min-width: 0; gap: 14px }
.ws-field { display: grid; min-width: 0; gap: 6px }
.ws-field > span, .ws-shell fieldset legend { font-size: 13px }
.ws-fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
.ws-photo { display: grid; justify-items: center; gap: 6px; position: relative; cursor: pointer; color: var(--ws-accent); font-size: 12px }
.ws-photo input { position: absolute; width: 64px; height: 100%; opacity: 0; cursor: pointer }
.ws-photo:focus-within .ws-avatar { outline: 2px solid var(--ws-accent); outline-offset: 2px }
.ws-check { display: flex; align-items: center; gap: 8px }
.ws-check-description { padding-left: 23px; color: var(--ws-muted); font-size: 12px }
.ws-swatches, .ws-frequency { padding: 0; margin: 0; border: 0; min-width: 0 }
.ws-swatches legend, .ws-frequency legend { margin-bottom: 6px }
.ws-swatches label, .ws-frequency label { display: inline-grid; position: relative; cursor: pointer }
.ws-swatches label { margin: 0 8px 4px 0 }
.ws-shell :is(.ws-swatches,.ws-frequency) input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer }
.ws-swatches span { width: 26px; height: 26px; border-radius: 50%; background: var(--swatch) }
.ws-swatches input:checked + span { outline: 2px solid var(--ws-citron) }
.ws-shell :is(.ws-swatches,.ws-frequency) input:focus-visible + span { outline: 2px solid var(--ws-accent); outline-offset: 3px }
.ws-frequency > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px }
.ws-frequency label span { text-align: center; padding: 8px 4px; border: 1px solid var(--ws-border); border-radius: 6px; color: var(--ws-muted); font-size: 12px }
.ws-frequency input:checked + span, .ws-radio:has(input:checked), .ws-range:has(input:checked) { background: var(--ws-tint); border-color: var(--ws-accent); color: var(--ws-ink) }
.ws-wizard-form { padding: 26px; gap: 16px }
.ws-radio { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--ws-border); border-radius: 7px; padding: 12px; cursor: pointer }
.ws-radio strong { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500 }
.ws-radio small { display: block; color: var(--ws-muted); margin-top: 5px; font-size: 12px }
.ws-wizard-note { color: var(--ws-muted); background: var(--ws-bg); padding: 11px 13px; border-radius: 6px; font-size: 13px }
.ws-wizard-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px }
.ws-between { justify-content: space-between }
.ws-client-banner { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ws-border); border-radius: 12px; background: var(--ws-tint); padding: 12px 14px }
.ws-client-banner .ws-avatar { background: #fff }
.ws-client-banner > div { flex: 1 }
.ws-client-banner strong { font-weight: 500 }
.ws-client-banner small { display: block; color: var(--ws-accent); margin-top: 2px }
.ws-step-two { gap: 22px }
.ws-option-card { padding: 20px; gap: 9px }
.ws-option-card > p { padding-bottom: 9px; border-bottom: 1px solid var(--ws-border); font-size: 13px }
.ws-range { border: 1px solid var(--ws-border); border-radius: 7px; padding-bottom: 10px }
.ws-range .ws-radio { border: 0; padding-bottom: 6px; background: none }
.ws-date-range { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 36px; color: var(--ws-muted) }
.ws-date-range input:disabled { opacity: .55 }
.ws-included-row, .ws-included-total { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--ws-border) }
.ws-included-row::before { content: ''; width: 7px; height: 7px }
.ws-included-row > span, .ws-included-total > strong { margin-left: auto }
.ws-included-row > span, .ws-included-total > span { color: var(--ws-muted); font-size: 13px }
.ws-editor-card { gap: 20px; padding: 30px }
.ws-party span, .ws-party p { font-size: 13px; color: var(--ws-muted) }
.ws-party strong { display: block; font-weight: 500; margin: 4px 0 }
.ws-editor-dates { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px }
.ws-line-items table { min-width: 600px }
.ws-line-items th:nth-child(2) { width: 62% }
.ws-line-items :is(th,td):nth-child(n+3) { text-align: right; white-space: nowrap }
.ws-shell .ws-line-items input { background: transparent; padding: 2px 0; border: 0; border-radius: 2px }
.ws-line-items input[type=number] { text-align: right; min-width: 52px }
.ws-line-items td:first-child { padding-right: 0 }
.ws-line-amount { min-width: 103px; font-weight: 500 }
.ws-totals { display: grid; width: min(256px, 100%); margin-left: auto !important; font-variant-numeric: tabular-nums }
.ws-totals > div { display: flex; justify-content: space-between; padding: 8px 0 }
.ws-totals > div:first-child { border-bottom: 1px solid var(--ws-border); color: var(--ws-muted) }
.ws-totals > div:last-child dd { font-size: 17px }
.ws-editor-card > .ws-field, .ws-editor-card footer { border-top: 1px solid var(--ws-border); padding-top: 18px }
.ws-editor-card footer { display: flex; gap: 12px; justify-content: space-between; align-items: center }
.ws-editor-card footer p { font-size: 13px }
.ws-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px }
.ws-catalog a { display: grid; justify-items: start; gap: 12px; padding: 22px }
.ws-catalog a:hover { border-color: var(--ws-accent) }
.ws-catalog h2 { font-size: 19px; font-weight: 500 }
.ws-catalog p { color: var(--ws-muted) }
.ws-catalog svg { color: var(--ws-accent) }
.ws-feedback { position: fixed; right: 20px; bottom: 20px; z-index: 8; border-radius: 9px; padding: 12px 16px; background: var(--ws-ink); color: white; box-shadow: 0 6px 20px #2c253225; max-width: calc(100vw - 40px) }
@media (max-width: 1190px) {
  .ws-client-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
}
@media (max-width: 960px) {
  .ws-shell { grid-template-columns: 174px minmax(0,1fr) }
  .ws-rail { --ws-rail-inset: 16px }
  .ws-rail-footer { padding-inline: 10px }
  .ws-rail-profile { grid-template-columns: 32px minmax(0,1fr) 28px; gap: 6px }
  .ws-rail-profile .ws-rail-icon { width: 28px }
  .ws-rail-profile strong { font-size: 12px }
  .ws-page, .ws-top { padding-inline: 24px }
  .ws-project-table .ws-progress { width: 65px }
}
@media (max-width: 760px) {
  .ws-shell { display: block }
  .ws-rail, .ws-top { display: none }
  .ws-mobile-top { display: flex; align-items: center; justify-content: space-between; position: relative; margin: 0 24px; min-height: 84px; border-bottom: 1px solid var(--ws-border) }
  .ws-mobile-menu summary { display: grid; place-items: center; width: 42px; height: 42px; margin-right: -8px }
  .ws-mobile-menu[open] .ws-nav { top: calc(100% - 10px); margin: 0; min-width: 185px; gap: 0 }
  .ws-mobile-menu .ws-nav a:hover:not([aria-current=page]) { background: var(--ws-tint) }
  .ws-page { padding: 24px }
  .ws-heading, .ws-detail .ws-heading, .ws-editor .ws-heading { flex-direction: column; align-items: flex-start; gap: 22px }
  .ws-heading h1 { font-size: 20px }
  .ws-heading .ws-actions { max-width: 100% }
  .ws-actions .ws-button { padding-inline: 12px }
  .ws-filters { gap: 8px }
  .ws-filters .ws-search { width: 100% }
  .ws-project-table { display: none }
  .ws-project-cards { display: grid; gap: 12px }
  .ws-project-group:first-of-type > summary { display: none }
  .ws-project-card { padding: 14px; display: grid; gap: 8px }
  .ws-project-card-heading, .ws-project-badges, .ws-project-byline, .ws-project-time { display: flex; align-items: center; gap: 8px }
  .ws-project-card-heading .ws-menu, .ws-project-time button { margin-left: auto }
  .ws-project-card-heading a { font-weight: 500 }
  .ws-project-byline, .ws-project-usage small { font-size: 12px; color: var(--ws-muted) }
  .ws-project-byline a { color: var(--ws-accent) }
  .ws-project-time { border-top: 1px solid var(--ws-border); padding-top: 8px; font-size: 13px }
  .ws-project-time button { background: var(--ws-tint); border-radius: 50%; width: 30px; height: 30px; color: var(--ws-accent) }
  .ws-project-time button svg { width: 13px }
  .ws-project-usage small { display: block; margin-top: 6px }
  .ws-metrics { grid-template-columns: 1fr; gap: 12px }
  .ws-editor-dates { grid-template-columns: 1fr; gap: 10px }
  .ws-editor-card > .ws-fields-row, .ws-catalog { grid-template-columns: 1fr }
  .ws-editor-card footer { align-items: flex-start; flex-direction: column }
  .ws-editor-card, .ws-wizard-form { padding: 16px }
  .ws-invoice-table :is(th,td) { padding-inline: 13px }
  .ws-invoice-table table { min-width: 660px }
  .ws-invoice-table :is(th,td):first-child { width: 110px }
  .ws-invoice-table :is(th,td):nth-child(2) { width: 147px }
  .ws-invoice-table :is(th,td):nth-child(3) { width: 82px }
  .ws-invoice-table th:nth-child(4) { width: 117px }
  .ws-invoice-table th:nth-child(5) { width: 110px }
  .ws-invoice-table :is(th,td):nth-child(2) { white-space: nowrap }
}
@media (max-width: 610px) {
  .ws-client-grid { grid-template-columns: 1fr }
}
@media (max-width: 390px) {
  .ws-heading:has(+ .ws-tabs) .ws-actions { gap: 6px }
  .ws-heading:has(+ .ws-tabs) .ws-button { padding-inline: 10px; gap: 5px; font-size: 13px }
}
@media (max-width: 360px) {
  .ws-page { padding-inline: 16px }
  .ws-mobile-top { margin-inline: 16px }
  .ws-wizard-form .ws-fields-row { grid-template-columns: 1fr }
  .ws-date-range { padding-inline: 10px }
}
@media print {
  body:has(.ws-editor) :is(.review-bar,.ws-top,.ws-mobile-top,.ws-rail,.ws-actions,.ws-editor .ws-icon-button,.ws-editor footer,.ws-editor .ws-text-action) { display: none }
  body:has(.ws-editor) .ws-shell { display: block; background: #fff }
  body:has(.ws-editor) .ws-page { padding: 0 }
  .ws-editor-card { border: 0; padding: 0 }
  .ws-line-items { overflow: visible }
  .ws-line-items table { min-width: 0 }
}

.ws-shell button[aria-pressed=true][data-ws-timer] { background: #675078; color: #fff }

/* Full workspace sections */
.ws-full-section { display: grid; min-width: 0; gap: 24px }
.ws-full-section > .ws-heading, .ws-overview-page > .ws-heading { align-items: center; margin-bottom: 0 }
.ws-full-section .ws-heading h1 { font: 500 36px/1.17 Manrope, Geist, sans-serif; letter-spacing: -.8px }
.ws-full-section .ws-heading p { margin-top: 10px }
.ws-full-section .ws-primary { --ws-action: #2c2532 }
.ws-full-section .ws-actions select { width: auto; font-size: 13px }
.ws-panel { display: grid; align-content: start; gap: 18px; padding: 24px }
.ws-panel-title, .ws-panel-controls, .ws-panel-foot, .ws-flow-actions, .ws-list-tools { display: flex; align-items: center; gap: 12px }
.ws-panel-title, .ws-panel-foot { justify-content: space-between }
.ws-panel-title .ws-card-title { font: 500 20px/1.3 Manrope, Geist, sans-serif }
.ws-panel-title select { width: auto; font-size: 12px }
.ws-panel-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ws-border); color: var(--ws-muted); font-size: 12px }
.ws-shell .ws-arrow-link { color: var(--ws-accent); font-size: 13px }
.ws-arrow-link:hover { text-decoration: underline }
.ws-section-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px }
.ws-section-metrics > div { min-width: 0 }
.ws-section-metrics .ws-metric { min-height: 152px; height: 100%; padding: 24px; gap: 10px; border: 1px solid var(--ws-border); background: var(--ws-surface, #fff) }
.ws-section-metrics .ws-metric > strong { font-size: 36px }
.ws-section-metrics .ws-metric > span { font-size: 13px }
.ws-section-metrics .ws-metric small { margin-top: 2px; font-size: 12px }
.ws-section-metrics .ws-kpi-dark .ws-metric { background: #2c2532; color: #dfea86; border-color: #2c2532 }
.ws-kpi-dark .ws-metric :is(span,small) { color: #c4bcca }
.ws-section-metrics .ws-kpi-tint .ws-metric { background: var(--ws-tint); border-color: transparent }
.ws-kpi-overdue .ws-metric small { color: #97473d }
.ws-overview-page { display: grid; min-width: 0; gap: 24px; padding-top: 24px }
.ws-overview-page .ws-section-metrics { gap: 24px }
.ws-overview-grid, .ws-overview-bottom, .ws-reports-grid { display: grid; gap: 24px; min-width: 0 }
.ws-overview-grid { grid-template-columns: minmax(0,2.07fr) minmax(0,1fr) }
.ws-overview-bottom { grid-template-columns: repeat(3,minmax(0,1fr)) }
.ws-overview-grid .ws-panel { grid-template-rows: auto; align-content: stretch }
.ws-overview-grid .ws-panel:nth-child(-n+2) { min-height: 352px }
.ws-overview-grid .ws-panel:nth-child(n+3) { min-height: 312px }
.ws-overview-bottom .ws-panel { min-height: 240px }
.ws-overview-footer { display: flex; justify-content: space-between; gap: 16px; color: var(--ws-muted); font-size: 11px }
.ws-full-section .ws-create-menu > summary { min-height: 42px; color: #fff }
.ws-full-section .ws-create-menu > div { color: var(--ws-ink) }
.ws-figure { display: flex; align-items: baseline; gap: 12px }
.ws-figure strong { font-size: 30px; font-weight: 400; line-height: 1.15; font-variant-numeric: tabular-nums }
.ws-figure > span { color: var(--ws-muted); font-size: 12px }
.ws-choice-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 6px }
.ws-choice-buttons button {
  border: 1px solid transparent; border-radius: 6px; padding: 5px 9px; background: var(--ws-bg); color: var(--ws-muted); font-size: 12px; white-space: nowrap;
}
.ws-choice-buttons button[aria-pressed=true] { background: #2c2532; color: #fff }
.ws-bar-chart { min-width: 0; height: 166px; padding-top: 8px }
.ws-chart-plot {
  display: flex; height: 100%; gap: clamp(4px, 3vw, 28px); justify-content: space-around;
  background: repeating-linear-gradient(to top, transparent 0 calc(33.33% - 1px), var(--ws-border) calc(33.33% - 1px) 33.33%) no-repeat left top / 100% calc(100% - 24px);
}
.ws-chart-col { display: grid; grid-template-rows: minmax(0,1fr) 24px; justify-items: center; flex: 1; max-width: 70px; min-width: 0 }
.ws-bar-stack { display: grid; align-items: end; width: 100% }
.ws-bar-item { width: min(68%, 42px); justify-self: center; height: max(var(--bar-pct), 3px); position: relative }
.ws-bar-item i { display: block; width: 100%; height: 100%; border-radius: 4px 4px 2px 2px; background: #b5a8bf }
.ws-overview-grid .ws-bar-item i { background: linear-gradient(to top, #675078 0 86%, #eee9f3 86%) }
.ws-chart-accent i { background: #675078 }
.ws-bar-item span { position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); font-size: 11px; color: var(--ws-muted); white-space: nowrap }
.ws-chart-axis-label { align-self: end; font-size: 11px; color: var(--ws-muted) }
.ws-collection-chart { display: flex; align-items: center; gap: 18px; min-width: 0 }
.ws-collection-ring { display: grid; place-items: center; width: 136px; height: 136px; flex: none; padding: 13px; border-radius: 50%; background: conic-gradient(#675078 0 84%, #fff 84% 85%, #9d4c43 85% 99%, #fff 99%) }
.ws-collection-ring > div { display: grid; place-content: center; text-align: center; width: 100%; height: 100%; border-radius: 50%; background: var(--ws-surface, #fff) }
.ws-collection-ring strong, .ws-collection-chart dd { font-size: 22px; font-weight: 500; white-space: nowrap }
.ws-collection-ring small, .ws-collection-chart dt { color: var(--ws-muted); font-size: 11px }
.ws-collection-chart dt:not(:first-child) { margin-top: 10px }
.ws-shell .ws-overdue-link a { color: #97473d }
.ws-plain-table { border: 0; overflow-x: auto; background: var(--ws-surface, #fff) }
.ws-full-section > .ws-plain-table { padding: 12px 24px; border: 1px solid var(--ws-border); border-radius: 12px }
.ws-plain-table th { background: transparent; font-weight: 400 }
.ws-plain-table :is(th,td) { padding: 14px 10px; vertical-align: middle }
.ws-plain-table :is(th,td):first-child { padding-left: 0 }
.ws-plain-table :is(th,td):last-child { padding-right: 0 }
.ws-plain-table tr:last-child td { border-bottom: 1px solid var(--ws-border) }
.ws-stack-label { display: grid; gap: 3px }
.ws-stack-label strong { font-weight: 500 }
.ws-stack-label small { font-size: 12px; color: var(--ws-muted); line-height: 1.35 }
.ws-budget-label { min-width: 85px; display: grid; gap: 6px; color: var(--ws-muted); font-size: 12px; white-space: nowrap }
.ws-attention-row { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ws-border) }
.ws-attention-row .ws-pill { justify-content: center; width: 30px; height: 30px; flex: none }
.ws-summary-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px }
.ws-summary-pair strong { color: var(--ws-muted); font-size: 12px; font-weight: 400 }
.ws-summary-pair small { color: var(--ws-ink); font-size: 26px; white-space: nowrap }
.ws-expense-stack { display: flex; gap: 3px; height: 7px; overflow: hidden; border-radius: 10px }
.ws-expense-stack i { width: 46%; background: #675078; border-radius: 4px }
.ws-expense-stack i:nth-child(2) { width: 28%; background: #40664f }
.ws-expense-stack i:nth-child(3) { width: 26%; background: #836127 }
.ws-overview-expenses { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; color: var(--ws-muted); font-size: 12px }
.ws-activity { display: grid; gap: 12px }
.ws-activity > * { border-left: 3px solid #675078; padding-left: 10px }
.ws-activity > :first-child { border-color: #40664f }
.ws-activity > :last-child { border-color: #a69aad }
.ws-progress-green i { background: #40664f }
.ws-progress-muted i { background: #706a75 }

.ws-mac-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1024px;
  padding: 14px 16px;
  border: 1px solid var(--ws-border);
  border-radius: 12px;
  background: var(--ws-tint);
}
.ws-mac-callout-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--ws-bg);
  color: var(--ws-accent);
}
.ws-mac-callout h2 { font: 600 15px/1.35 Geist, Arial, sans-serif }
.ws-mac-callout p { margin-top: 3px; font-size: 13px; color: var(--ws-muted) }
.ws-mac-callout .ws-mac-download { font-size: 13px }
.dd-workspace-preview .ws-mac-callout { display: none }
@media (max-width: 540px) {
  .ws-mac-callout { grid-template-columns: auto minmax(0, 1fr); gap: 12px }
  .ws-mac-callout .ws-mac-download { grid-column: 1 / -1 }
}
.ws-timer-card { overflow: hidden; max-width: 1024px }
.ws-timer-week, .ws-timer-day-head, .ws-timer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--ws-border) }
.ws-timer-week > div, .ws-timer-day-head > div { display: flex; gap: 12px; align-items: center }
.ws-timer-week span, .ws-timer-day-head span, .ws-timer-footer span { color: var(--ws-muted); font-size: 12px }
.ws-timer-week strong, .ws-timer-day-head strong { font-weight: 500 }
.ws-timer-body { display: grid; grid-template-columns: minmax(175px,22%) minmax(0,1fr); min-height: 418px }
.ws-timer-days { display: grid; grid-template-rows: 1fr auto; background: var(--ws-bg); border-right: 1px solid var(--ws-border) }
.ws-timer-day-list { display: grid; align-content: start; gap: 4px; padding: 16px }
.ws-timer-day-list button {
  display: grid; grid-template-columns: 27px minmax(20px,1fr) 53px; align-items: center; gap: 8px; border: 0; border-radius: 6px;
  padding: 7px 9px; text-align: left; font-size: 12px; color: var(--ws-muted); white-space: nowrap; background: transparent;
}
.ws-timer-day-list button[aria-pressed=true] { background: var(--ws-tint); color: var(--ws-accent) }
.ws-timer-day-list small { font-size: 11px; text-align: right }
.ws-timer-totals { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; padding: 16px 18px; border-top: 1px solid var(--ws-border) }
.ws-timer-totals .ws-stack-label strong { font-size: 11px; color: var(--ws-muted); text-transform: uppercase; font-weight: 400 }
.ws-timer-totals .ws-stack-label small { font-size: 21px; color: var(--ws-ink) }
.ws-timer-entry { display: grid; grid-template-columns: minmax(0,1fr) 102px 35px; gap: 16px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--ws-border) }
.ws-timer-entry[data-running=true] { background: var(--ws-tint) }
.ws-timer-entry[data-running=true] .ws-stack-label:first-child small::after { content: ' · Running' }
.ws-timer-round { display: inline-grid; place-items: center; border: 1px solid var(--ws-border); border-radius: 50%; width: 35px; height: 35px; padding: 0 }
.ws-timer-round[aria-pressed=true] { background: var(--ws-accent); border-color: var(--ws-accent); color: #fff }
.ws-timer-round svg { width: 15px; height: 15px }
[data-ws-entry-timer][aria-pressed="false"] .tabler-icon-player-pause,
[data-ws-entry-timer][aria-pressed="true"] .tabler-icon-player-play { display: none }
.ws-timer-footer { justify-content: flex-start; border-top: 1px solid var(--ws-border); border-bottom: 0; background: var(--ws-bg) }
.ws-timer-footer i { width: 8px; height: 8px; border-radius: 50%; background: var(--ws-accent) }
.ws-timer-empty { padding: 32px 16px; text-align: center; color: var(--ws-muted) }
.ws-wide-dialog { width: min(660px, calc(100vw - 28px)) }
.ws-wide-dialog form { padding: 28px; gap: 20px }
.ws-wide-dialog h2 { font-size: 27px }
.ws-wide-dialog .ws-form-fields { gap: 18px }
.ws-wide-dialog footer { flex-direction: row-reverse; justify-content: flex-end }

.ws-estimate-metrics { grid-template-columns: repeat(3,minmax(0,1fr)) }
.ws-list-tools { justify-content: space-between; flex-wrap: wrap }
.ws-estimate-select, .ws-mobile-list, .ws-mobile-expense-summary, .ws-report-mobile-period, .ws-report-mobile-export, .ws-settings-mobile { display: none }
.ws-expense-tools { display: grid; gap: 12px; min-width: 0 }
.ws-expense-tools .ws-search { width: 100% }
.ws-expense-filters { justify-content: flex-start }
.ws-expense-filters select { width: auto; font-size: 13px }
.ws-expense-table :is(th, td):nth-child(4) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums }
.ws-expense-table :is(th, td):last-child { width: 92px; text-align: center }
.ws-expense-receipt { min-width: 36px; min-height: 36px; padding: 0 8px; border-radius: 8px; color: var(--ws-accent) }
.ws-expense-receipt [data-ws-receipt-missing] { font-size: 12px; text-decoration: underline; text-underline-offset: 3px }
.ws-expense-receipt:hover { background: var(--ws-tint) }
.ws-receipt-dialog { width: min(590px, calc(100vw - 28px)) }
.ws-receipt-dialog .ws-button { padding-inline: 12px }
.ws-receipt-dialog footer { flex-wrap: wrap }
.ws-receipt-sample, .ws-receipt-file { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--ws-border); border-radius: 10px; background: var(--ws-bg) }
.ws-receipt-file-row, .ws-receipt-sample-total { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.ws-receipt-file-row strong { overflow-wrap: anywhere; min-width: 0 }
.ws-receipt-sample-total { border-top: 1px solid var(--ws-border); padding-top: 12px; font-variant-numeric: tabular-nums }
.ws-receipt-file :is(img, canvas) { display: block; max-height: 42dvh; max-width: 100%; margin-inline: auto; border-radius: 6px; object-fit: contain }
.ws-receipt-pdf-controls { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px }
.ws-receipt-pdf-controls .ws-button { min-height: 34px; font-size: 12px }
.ws-receipt-dialog button:disabled { cursor: default; opacity: .55 }
.ws-receipt-dialog :is(.ws-receipt-help,.ws-receipt-status) { font-size: 12px }
.ws-receipt-status:empty { display: none }
.ws-receipt-status[data-error=true] { color: #97473d }
.ws-shell[data-ws-theme=dark] .ws-receipt-status[data-error=true] { color: #f6aca0 }
.ws-expense-summary .ws-card-title { font-size: 16px; font-weight: 600 }
.ws-expense-summary .ws-icon-button { width: 32px; min-height: 32px; border-radius: 8px }
.ws-expense-summary .ws-icon-button:hover, .ws-actions [data-ws-expense-toggle][aria-expanded=true] {
  background: var(--ws-tint); color: var(--ws-accent);
}
.ws-expense-breakdown { display: grid; gap: 12px }
.ws-expense-category { display: grid; gap: 6px }
.ws-expense-category-line, .ws-expense-deductible {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ws-expense-category-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; color: var(--ws-muted); font-size: 13px }
.ws-expense-category-label .ws-pill { border-radius: 99px; padding: 4px 8px }
.ws-expense-category-line strong, .ws-expense-deductible strong { flex: none; font-variant-numeric: tabular-nums }
.ws-expense-category-line strong { font-weight: 500 }
.ws-expense-category .ws-progress { height: 7px }
.ws-expense-deductible { border-top: 1px solid var(--ws-border); margin-top: 6px; padding-top: 14px; font-weight: 600 }
.ws-expense-deductible strong { font-size: 18px }
.ws-record-title { text-align: left }
.ws-record-title strong { color: var(--ws-ink) }
.ws-estimate-form, .ws-estimate-form > .ws-estimate-lines, .ws-settings-form { display: grid; gap: 24px; min-width: 0 }
.ws-estimate-fields, .ws-settings-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 24px }
.ws-span-all { grid-column: 1 / -1 }
.ws-estimate-lines .ws-plain-table table { min-width: 670px }
.ws-estimate-lines .ws-plain-table :is(input,select) { min-width: 64px; background-color: transparent; padding: 4px 6px; border-color: transparent }
.ws-estimate-lines .ws-plain-table select { padding-right: 20px; background-position: right 3px center }
.ws-estimate-lines .ws-plain-table td:nth-child(2) { width: 40% }
.ws-estimate-lines .ws-plain-table td:nth-child(2) small { margin-inline: 6px }
.ws-estimate-lines .ws-plain-table td:nth-child(5) { white-space: nowrap }
.ws-estimate-lines .ws-plain-table :is(input,select):focus { background-color: var(--ws-surface, #fff); border-color: var(--ws-border) }
.ws-estimate-end { display: grid; grid-template-columns: minmax(0,1.66fr) minmax(0,1fr); gap: 24px; align-items: start }
.ws-estimate-note { font-size: 13px }
.ws-estimate-totals { display: grid; gap: 14px; padding: 24px; border-radius: 12px; background: var(--ws-tint) }
.ws-estimate-totals > div, .ws-estimate-document-total, .ws-estimate-paper > header { display: flex; justify-content: space-between; align-items: center; gap: 16px }
.ws-estimate-totals dt { color: var(--ws-muted) }
.ws-estimate-totals div:last-child { padding-top: 14px; border-top: 1px solid var(--ws-border); font-size: 25px }
.ws-estimate-totals div:last-child dt { color: var(--ws-ink) }
.ws-flow-actions { flex-wrap: wrap }
.ws-estimate-banner { display: flex; align-items: center; gap: 12px; padding: 16px 24px; margin: 24px 0; background: var(--ws-tint); border-radius: 10px }
.ws-estimate-banner > div { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px }
.ws-estimate-banner button { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--ws-accent); font-size: 13px }
.ws-estimate-paper { display: grid; gap: 25px; padding: clamp(20px,4vw,48px) }
.ws-estimate-paper > header { padding-bottom: 23px; border-bottom: 1px solid var(--ws-border) }
.ws-estimate-paper > header strong { font: 500 30px/1.2 Manrope, Geist, sans-serif }
.ws-estimate-paper > header .ws-logo { width: auto }
.ws-estimate-parties { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px }
.ws-estimate-parties strong { color: var(--ws-muted); font-size: 12px }
.ws-estimate-parties small { color: var(--ws-ink); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere }
.ws-estimate-paper > h2 { font: 500 24px/1.2 Manrope, Geist, sans-serif }
.ws-estimate-document-lines table { min-width: 475px }
.ws-estimate-document-total { padding: 18px 0; border-bottom: 1px solid var(--ws-border) }
.ws-estimate-document-total > span { font-size: 13px; color: var(--ws-muted) }
.ws-estimate-document-total > strong { display: inline-flex; gap: 17px; white-space: nowrap; font-size: 26px; font-weight: 500 }
.ws-reports-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start }
.ws-reports-grid .ws-bar-chart { height: 225px }
:is(.ws-overview-grid, .ws-reports-grid) .ws-chart-col { border-radius: 8px }
.ws-revenue-breakdown, .ws-revenue-breakdown > div { display: grid; gap: 14px }
.ws-revenue-breakdown > div { margin-inline: -8px; padding: 4px 8px; gap: 10px; border-radius: 8px }
.ws-revenue-breakdown > div > div { display: flex; justify-content: space-between; gap: 8px }
.ws-revenue-breakdown .ws-progress { height: 5px }

.ws-shell [data-ws-report-export]:is(:focus-visible, :active) { background: #3c3044 }
:is([data-ws-period="overview"], [data-ws-period="report-chart"], [data-ws-period="report"]):focus-visible { border-color: var(--ws-accent) }
.ws-overview-page :is(.ws-attention-row, .ws-activity > a):focus-visible,
.ws-overview-grid tbody tr:focus-within td { background: color-mix(in srgb, var(--ws-accent) 9%, transparent) }
.ws-overview-page .ws-create-menu[open] > summary > svg { transform: rotate(45deg) }
.ws-overview-page .ws-create-menu[open] > summary { background: #3c3044 }

@media (hover: hover) and (pointer: fine) {
  .ws-report-metrics .ws-metric:hover {
    border-color: color-mix(in srgb, var(--ws-accent) 42%, var(--ws-border));
    background: color-mix(in srgb, var(--ws-tint) 42%, var(--ws-surface, #fff));
  }
  .ws-overview-page .ws-metric:hover { border-color: color-mix(in srgb, var(--ws-accent) 45%, var(--ws-border)) }
  :is(.ws-overview-grid, .ws-reports-grid) .ws-chart-col:hover,
  .ws-overview-page :is(.ws-attention-row, .ws-activity > a):hover,
  .ws-overview-grid tbody tr:hover td,
  .ws-revenue-breakdown > div:hover,
  .ws-report-entries tbody tr:hover td { background: color-mix(in srgb, var(--ws-accent) 9%, transparent) }
  :is(.ws-overview-grid, .ws-reports-grid) .ws-chart-col:hover :is(.ws-bar-item span, .ws-chart-axis-label),
  .ws-overview-grid .ws-collection-chart:hover .ws-collection-ring strong,
  .ws-overview-page :is(.ws-attention-row, .ws-activity > a):hover strong,
  .ws-revenue-breakdown > div:hover > div > :last-child,
  .ws-report-entries tbody tr:hover td:last-child { color: var(--ws-accent) }
  .ws-reports-grid .ws-chart-col:hover .ws-bar-item i { background: var(--ws-accent) }
  :is(.ws-overview-grid, .ws-reports-grid) .ws-chart-plot:has(.ws-chart-col:hover) .ws-chart-col:not(:hover) .ws-bar-item i { opacity: .6 }
  .ws-shell [data-ws-report-export]:hover,
  .ws-overview-page .ws-create-menu > summary:hover { background: #3c3044; border-color: #3c3044 }
  .ws-overview-page .ws-choice-buttons button[aria-pressed=false]:hover { background: var(--ws-tint); color: var(--ws-accent) }
  .ws-shell :is([data-ws-period="overview"], [data-ws-period="report-chart"], [data-ws-period="report"]):hover { border-color: var(--ws-accent) }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.ws-overview-page .ws-section-metrics, .ws-report-metrics) > div:nth-child(n+2),
  .ws-revenue-breakdown > div:nth-child(n+2),
  :is(.ws-overview-grid, .ws-reports-grid) .ws-chart-col:nth-child(n+2) { --ws-chart-delay: 35ms }
  :is(.ws-overview-page .ws-section-metrics, .ws-report-metrics) > div:nth-child(n+4),
  .ws-revenue-breakdown > div:nth-child(n+4),
  :is(.ws-overview-grid, .ws-reports-grid) .ws-chart-col:nth-child(n+4) { --ws-chart-delay: 70ms }
  :is(.ws-overview-grid, .ws-reports-grid) .ws-chart-col:nth-child(n+6) { --ws-chart-delay: 105ms }
  :is(.ws-overview-page, .ws-report-metrics) .ws-metric > :is(strong, small) {
    animation: ws-readout-in 225ms ease-out var(--ws-chart-delay, 0ms) both;
  }
  :is(.ws-overview-grid, .ws-reports-grid) .ws-bar-item i {
    transform-origin: center bottom;
    animation: ws-chart-rise 380ms cubic-bezier(.2,.75,.3,1) var(--ws-chart-delay, 0ms) both;
    transition: background-color 160ms ease, opacity 160ms ease;
  }
  :is(.ws-overview-grid, .ws-reports-grid) .ws-bar-item span {
    animation: ws-readout-in 190ms ease-out calc(var(--ws-chart-delay, 0ms) + 100ms) both;
  }
  .ws-revenue-breakdown .ws-progress i,
  .ws-budget-label [data-ws-overview-revealed] i,
  .ws-expense-stack[data-ws-overview-revealed] {
    transform-origin: left center;
    animation: ws-bar-fill 400ms cubic-bezier(.2,.75,.3,1) var(--ws-chart-delay, 0ms) both;
  }
  .ws-collection-ring[data-ws-overview-revealed] { animation: ws-overview-ring-in 350ms cubic-bezier(.2,.75,.3,1) both }
  :is(.ws-overview-page, .ws-report-metrics) .ws-metric,
  :is(.ws-overview-grid, .ws-reports-grid) .ws-chart-col,
  .ws-overview-grid tbody td,
  .ws-overview-grid .ws-collection-ring strong,
  .ws-overview-page :is(.ws-attention-row, .ws-activity > a, .ws-stack-label strong, .ws-choice-buttons button, .ws-create-menu > summary),
  .ws-revenue-breakdown > div,
  .ws-report-entries tbody td,
  [data-ws-report-export],
  [data-ws-period="overview"],
  [data-ws-period="report-chart"],
  [data-ws-period="report"] { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease }
  [data-ws-report-export] svg,
  .ws-overview-page :is(.ws-create-menu > summary > svg, a .site-link-arrow) { transition: transform 160ms ease }
  [data-ws-report-export]:active svg { transform: translateY(2px) }
  .ws-overview-page a:focus-visible .site-link-arrow { transform: translate(2px, -2px) }
  @media (hover: hover) and (pointer: fine) {
    [data-ws-report-export]:hover svg { transform: translateY(2px) }
    .ws-overview-page a:hover .site-link-arrow { transform: translate(2px, -2px) }
  }
}

@keyframes ws-readout-in {
  from { opacity: 0; translate: 0 4px }
  to { opacity: 1; translate: 0 0 }
}
@keyframes ws-chart-rise {
  from { transform: scaleY(.08) }
  to { transform: scaleY(1) }
}
@keyframes ws-bar-fill {
  from { transform: scaleX(.08) }
  to { transform: scaleX(1) }
}
@keyframes ws-overview-ring-in {
  from { opacity: .55; transform: scale(.94) }
  to { opacity: 1; transform: scale(1) }
}

.ws-settings-layout { display: grid; grid-template-columns: 240px minmax(0,1fr); align-items: start; gap: 24px }
.ws-settings-nav { display: grid; gap: 6px; padding: 18px; background: var(--ws-tint); border-radius: 12px }
.ws-settings-nav a { padding: 7px; color: var(--ws-muted) }
.ws-settings-nav a:hover, .ws-settings-nav [aria-current=location] { color: var(--ws-accent); text-decoration: underline }
.ws-settings-card { scroll-margin-top: 50px }
.ws-settings-card .ws-card-title { font: 500 24px/1.2 Manrope, Geist, sans-serif }
.ws-settings-fields { grid-template-columns: repeat(2,minmax(0,1fr)) }
.ws-settings-avatar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--ws-accent) }
.ws-settings-avatar .ws-photo input { width: 100% }
.ws-shell .ws-danger-action { color: #97473d !important }
.ws-shell[data-ws-theme=dark] {
  --ws-bg: #25202a; --ws-ink: #f5eef8; --ws-muted: #c7bacd; --ws-border: #53445f; --ws-accent: #cebae1; --ws-tint: #3d3147; --ws-surface: #302738;
}
.ws-shell[data-ws-theme=dark] :is(.ws-card,.ws-table-wrap,.ws-button:not(.ws-primary),.ws-dialog,.ws-search,.ws-menu > div,.ws-mobile-menu[open] .ws-nav) { background-color: var(--ws-surface); color: var(--ws-ink) }
.ws-shell[data-ws-theme=dark] :is(input:not([type=checkbox],[type=radio],[type=file]),textarea,select) { background-color: var(--ws-surface); color: var(--ws-ink) }
.ws-shell[data-ws-theme=dark] .ws-status-select select[data-ws-project-status] { background-color: transparent; color: inherit }
.ws-shell[data-ws-theme=dark] :is(.ws-project-selection-menu, .ws-client-heading) .ws-danger-action { color: #f6aca0 !important }
.ws-shell[data-ws-theme=dark] .ws-nav [aria-current=page] { color: #2c2532 }
.ws-shell[data-ws-theme=dark] .ws-mobile-top img { filter: brightness(0) invert(1) }

@media (max-width: 1200px) {
  .ws-overview-grid { grid-template-columns: minmax(0,1.7fr) minmax(0,1fr) }
  .ws-collection-ring { width: 100px; height: 100px }
  .ws-collection-ring strong, .ws-collection-chart dd { font-size: 18px }
  .ws-panel-title, .ws-panel-controls { flex-wrap: wrap }
  .ws-settings-layout { grid-template-columns: 180px minmax(0,1fr) }
}
@media (max-width: 980px) {
  .ws-overview-grid { grid-template-columns: minmax(0,1fr) }
  .ws-overview-grid .ws-panel:nth-child(n) { min-height: 0 }
  .ws-overview-bottom { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .ws-section-metrics { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .ws-estimate-metrics { grid-template-columns: repeat(3,minmax(0,1fr)) }
  .ws-reports-grid { grid-template-columns: 1fr }
}
@media (max-width: 760px) {
  .ws-full-section { gap: 24px }
  .ws-full-section > .ws-heading, .ws-overview-page > .ws-heading { align-items: flex-start }
  .ws-full-section .ws-heading h1 { font-size: 32px }
  .ws-full-section .ws-heading p { margin-top: 8px }
  .ws-section-metrics .ws-metric { min-height: 120px; padding: 16px }
  .ws-section-metrics .ws-metric > strong { font-size: 25px }
  .ws-overview-page { padding-top: 0; gap: 16px }
  .ws-overview-page .ws-section-metrics, .ws-overview-grid, .ws-overview-bottom { gap: 16px }
  .ws-overview-bottom { grid-template-columns: 1fr }
  .ws-overview-bottom .ws-panel { min-height: 0 }
  .ws-overview-grid .ws-panel:nth-child(2) { display: none }
  .ws-overview-grid .ws-panel:nth-child(4) { grid-row: 2 }
  .ws-overview-grid .ws-panel:nth-child(3) .ws-plain-table table { min-width: 315px }
  .ws-overview-grid .ws-panel:nth-child(3) .ws-plain-table :is(th,td):nth-child(4) { display: none }
  .ws-panel { padding: 18px }
  .ws-bar-chart { height: 145px }
  .ws-overview-footer { flex-wrap: wrap }
  .ws-full-section .ws-heading:has(+.ws-estimate-metrics) p, .ws-full-section .ws-heading:has([data-ws-expense-toggle]) p,
  .ws-full-section .ws-heading:has(+.ws-report-mobile-period) p, .ws-full-section .ws-heading:has(+.ws-settings-mobile) p { display: none }
  .ws-estimate-metrics, .ws-estimate-filters, .ws-desktop-list, .ws-expense-metrics, .ws-report-desktop-export,
  .ws-report-entries, .ws-reports-grid > :first-child, .ws-settings-nav, .ws-settings-avatar, .ws-settings-payment,
  .ws-full-section .ws-heading:has(+.ws-settings-mobile) .ws-actions { display: none }
  .ws-estimate-select, .ws-mobile-expense-summary, .ws-report-mobile-period, .ws-settings-mobile { display: block; width: 100% }
  .ws-report-mobile-export, .ws-settings-form .ws-settings-mobile { display: inline-flex; width: fit-content }
  .ws-list-tools { align-items: flex-start }
  .ws-mobile-list { display: grid; gap: 16px }
  .ws-mobile-record { display: grid; width: 100%; padding: 20px; gap: 16px; text-align: left }
  .ws-mobile-record strong { font-weight: 500; font-size: 17px }
  .ws-mobile-record p { color: var(--ws-muted) }
  .ws-mobile-record > div { display: flex; justify-content: space-between; align-items: center; gap: 10px }
  .ws-mobile-record > div > span:not(.ws-pill) { font-size: 25px; line-height: 1.3 }
  .ws-expense-record { position: relative }
  .ws-expense-record-edit {
    display: grid; gap: 12px; width: 100%; padding: 20px 72px 20px 20px;
    text-align: left; border: 0; border-radius: inherit; background: transparent; color: inherit;
  }
  .ws-expense-record-edit .ws-expense-amount { font-size: 24px; line-height: 1.5; font-variant-numeric: tabular-nums }
  .ws-expense-record > .ws-expense-receipt { position: absolute; inset-inline-end: 20px; bottom: 20px }
  .ws-mobile-expense-summary .ws-metric { padding: 22px; gap: 14px }
  .ws-mobile-expense-summary .ws-metric > strong { font-size: 38px }
  .ws-estimate-fields, .ws-settings-fields, .ws-estimate-end, .ws-settings-layout { grid-template-columns: 1fr }
  .ws-estimate-banner, .ws-estimate-document-total { flex-wrap: wrap }
  .ws-estimate-banner > div { margin-left: 0 }
  .ws-estimate-parties { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .ws-estimate-document-total > strong { margin-left: auto }
  .ws-report-metrics > div:nth-child(n+3) { display: none }
  .ws-settings-card { border: 0; background: transparent; padding: 0; gap: 18px }
  .ws-settings-card#profile .ws-card-title { display: none }
  .ws-settings-fields { gap: 20px }
  .ws-timer-body { grid-template-columns: 1fr; min-height: 380px }
  .ws-timer-days { border-right: 0; border-bottom: 1px solid var(--ws-border) }
  .ws-timer-day-list { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; padding: 8px }
  .ws-timer-day-list button { display: flex; justify-content: center; min-height: 36px; padding: 4px 2px }
  .ws-timer-day-list :is(.ws-progress,small) { display: none }
  .ws-timer-totals { padding-block: 8px }
  .ws-timer-entry { grid-template-columns: minmax(0,1fr) 64px 32px; gap: 8px; padding: 10px 12px }
  .ws-timer-week, .ws-timer-day-head { padding-inline: 9px; gap: 8px }
  .ws-timer-week > div, .ws-timer-day-head > div { gap: 6px }
}
@media print {
  body:has(.ws-estimate-paper) :is(.review-bar,.ws-top,.ws-mobile-top,.ws-rail,.ws-heading,.ws-estimate-banner) { display: none }
  body:has(.ws-estimate-paper) :is(.ws-shell,.ws-page,.ws-estimate-paper) { display: block; padding: 0; background: #fff; border: 0 }
  .ws-estimate-document-lines table { min-width: 0 }
}

@media (min-width: 761px) {
  .ws-shell {
    --ws-rail-width: 208px;
    grid-template-columns: var(--ws-rail-width) minmax(0,1fr);
    background: linear-gradient(to right, #2c2532 0 var(--ws-rail-width), var(--ws-bg) var(--ws-rail-width));
  }
  .ws-rail { top: 30px; height: calc(100dvh - 30px); overflow: hidden }
}
@media (min-width: 761px) and (max-width: 960px) {
  .ws-shell { --ws-rail-width: 174px; }
}

@media (min-width: 761px) {
  .ws-shell[data-ws-rail-collapsed] { --ws-rail-width: 64px }
  [data-ws-rail-collapsed] .ws-rail { --ws-rail-inset: 9px }
  [data-ws-rail-collapsed] .ws-rail > .ws-logo { align-self: center }
  [data-ws-rail-collapsed] .ws-rail :is(.ws-logo img + img, .ws-rail-label) { display: none }
  [data-ws-rail-collapsed] .ws-rail .ws-nav a { justify-content: center; padding-inline: 0 }
  [data-ws-rail-collapsed] .ws-rail-footer { gap: 8px; padding-inline: 9px }
  [data-ws-rail-collapsed] :is(.ws-rail-footer-actions, .ws-rail-profile) { grid-template-columns: 1fr; justify-items: center }
  [data-ws-rail-collapsed] .ws-rail-footer .ws-nav-edit { justify-content: center }
  [data-ws-rail-collapsed] [data-ws-rail-toggle] svg { transform: rotate(180deg) }
}
/* Estimates share the current workspace flow and the Studio Ledger tokens. */
.ws-est { display: grid; gap: 24px; min-width: 0; max-width: 1152px }
.ws-est .ws-heading, .ws-est-tabs { margin-bottom: 0 }
.ws-est .ws-heading h1, .ws-est-editor-header h1 { font: 600 21px/1.3 Manrope, Geist, sans-serif }
.ws-est .ws-heading p { margin-top: 4px }
.ws-est .ws-button { min-height: 37px; padding: 6px 12px; font-size: 13px }
.ws-est .ws-primary { --ws-action: #2c2532 }
.ws-est-tabs { max-width: 100%; flex-wrap: wrap; gap: 2px }
.ws-est-tabs a { gap: 6px; padding: 7px 12px; font-size: 13px; white-space: nowrap }
.ws-est-tabs span { display: grid; place-items: center; min-width: 20px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--ws-tint); font-size: 11px }
.ws-est-list-table, .ws-est-line-table, .ws-est-document-table { overflow: auto }
.ws-est-list-table table { min-width: 760px }
.ws-est-list-table :is(th,td):nth-child(3), .ws-est-list-table :is(th,td):last-child,
.ws-est-line-table :is(th,td):nth-child(n+4), .ws-est-document-table :is(th,td):nth-child(n+2) { text-align: right; white-space: nowrap }
.ws-est-list-table td:nth-child(3), .ws-est-line-table td:last-child, .ws-est-document-table td:last-child { font-weight: 500 }
.ws-est-list-table tr:hover td { background: color-mix(in srgb, var(--ws-bg) 62%, transparent) }
.ws-est-record-name > a { display: inline-flex; align-items: center; font-weight: 500 }
.ws-est-record-name > a::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ws-muted);
  border-radius: 2px;
  margin-right: 8px;
}
.ws-est-record-name > a:hover { text-decoration: underline }
.ws-est-record-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px }
.ws-est-record-actions .ws-icon-button { padding: 2px 6px }
.ws-est-record-actions .ws-text-action { white-space: nowrap }
.ws-est-date { color: var(--ws-muted); white-space: nowrap }
.ws-est-date .ws-est-expired { display: inline; margin-left: 6px; color: #97473d }
.ws-est-empty { padding: 48px 24px; text-align: center; color: var(--ws-muted) }
.ws-est-delete { padding: 24px }
.ws-est-delete h2 { margin-bottom: 18px }

.ws-est-editor { max-width: 1024px }
.ws-est-editor-header { padding-bottom: 16px; border-bottom: 1px solid var(--ws-border) }
.ws-est-editor-header h1 { font-size: 23px }
.ws-est-edit-form { display: grid; gap: 20px; min-width: 0 }
.ws-est-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 44px }
.ws-est-fields > div, .ws-est-config-panel form { display: grid; gap: 15px; align-content: start }
.ws-est-field-row { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; align-items: center }
.ws-est-field-row > span { font-size: 13px }
.ws-est-id-row, .ws-est-inline, .ws-est-unit { display: flex; align-items: center; gap: 7px }
.ws-est-id-row strong { border-radius: 6px; padding: 7px 9px; background: var(--ws-tint); font-weight: 500; white-space: nowrap }
.ws-est-id-row span, .ws-est-inline > span, .ws-est-unit > span { font-size: 12px }
.ws-est-unit input { max-width: 76px; text-align: right }
.ws-est-fields :is(input,select) { padding-block: 8px }
.ws-est-fields input[type=date] { max-width: 220px }
.ws-est-inline > .ws-button { flex: none }
.ws-est-edit-form .ws-field small { font-weight: 400; color: var(--ws-muted); font-size: 12px }
.ws-est-line-table { border: 0; border-radius: 12px 12px 0 0 }
.ws-est-line-table table { min-width: 760px; table-layout: fixed }
.ws-est-line-table th:first-child { width: 44px }
.ws-est-line-table th:nth-child(2) { width: 145px }
.ws-est-line-table th:nth-child(4) { width: 96px }
.ws-est-line-table th:nth-child(5), .ws-est-line-table th:last-child { width: 109px }
.ws-est-line-table :is(th,td) { padding: 9px 8px }
.ws-est-line-table td:first-child { padding-inline: 6px }
.ws-est-line-table td:last-child, .ws-est-line-table th:last-child { padding-right: 15px }
.ws-est-line-table :is(input,select) { padding: 6px 7px; min-height: 34px; font-size: 13px }
.ws-est-line-table select { padding-right: 22px; background-position: right 6px center }
.ws-est-line-table input[type=number] { text-align: right }
.ws-est-line-table .ws-icon-button { width: 28px; min-height: 26px }
.ws-est-line-table [data-est-remove-line] { border: 1px solid var(--ws-border); border-radius: 6px }
.ws-est-line-table button:disabled, .ws-est-save-row button:disabled { opacity: .45; cursor: default }
.ws-est-reorder { display: grid }
.ws-est-reorder .ws-icon-button { min-height: 18px }
.ws-est-line-footer, .ws-est-save-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--ws-border) }
.ws-est-line-footer { padding: 10px 13px }
.ws-est-line-footer .ws-button { min-height: 32px }
.ws-est-save-row { padding-top: 18px }
.ws-est-save-row p { font-size: 13px }
.ws-est-total { justify-self: end; width: min(100%,300px); display: grid; gap: 7px; font-variant-numeric: tabular-nums }
.ws-est-total > div { display: flex; justify-content: space-between; gap: 16px }
.ws-est-total dt { color: var(--ws-muted) }
.ws-est-total > div:last-child { padding-top: 8px; border-top: 1px solid var(--ws-border); font-size: 16px; font-weight: 600 }
.ws-est-total > div:last-child dt { color: var(--ws-ink) }

.ws-est-detail { max-width: 896px }
.ws-shell .ws-est-back { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: var(--ws-muted); font-size: 13px }
.ws-est-back:hover { text-decoration: underline }
.ws-est-detail [data-est-detail-body] { display: grid; gap: 24px }
.ws-est-meta-card, .ws-est-note { padding: 20px }
.ws-est-meta-card dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px }
.ws-est-meta-card dt { color: var(--ws-muted); font-size: 12px }
.ws-est-meta-card dd { margin-top: 3px; overflow-wrap: anywhere }
.ws-est-document-table { border: 0; border-radius: 12px 12px 0 0 }
.ws-est-document-table table { min-width: 560px }
.ws-est-document-table :is(td,th) { padding-inline: 20px }
.ws-est-document .ws-est-total { width: auto; margin-left: auto; max-width: 350px; padding: 16px 20px }
.ws-est-note p { margin-top: 8px; white-space: pre-wrap; color: var(--ws-muted) }
.ws-est-detail-tools { display: flex; flex-wrap: wrap; gap: 16px }

.ws-est-config-card { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 20px; padding: 24px }
.ws-est-config-nav { display: flex; flex-direction: column; align-self: start; gap: 4px }
.ws-est-config-nav button { border: 0; border-radius: 6px; padding: 8px 11px; background: transparent; color: var(--ws-muted); text-align: left; white-space: nowrap }
.ws-est-config-nav button[aria-pressed=true] { background: var(--ws-tint); color: var(--ws-accent) }
.ws-est-config-content { min-width: 0; padding-left: 24px; border-left: 1px solid var(--ws-border) }
.ws-est-config-panel { display: grid; justify-items: start; gap: 12px }
.ws-est-config-panel h2 { font: 600 17px/1.3 Manrope, Geist, sans-serif }
.ws-est-config-panel form, .ws-est-variables, .ws-est-type-list { width: 100% }
.ws-est-config-panel form > button { justify-self: start }
.ws-est-variables { padding: 10px 13px; border-radius: 6px; background: var(--ws-bg); font-size: 13px }
.ws-est-type-list { margin: 0; padding: 0; list-style: none }
.ws-est-type-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--ws-border) }
.ws-est-type-list .ws-est-inline { gap: 12px }
@media (max-width: 1250px) {
  .ws-est-fields { column-gap: 24px }
  .ws-est-field-row { grid-template-columns: 92px minmax(0,1fr); gap: 8px }
  .ws-est-inline > .ws-button { padding-inline: 8px }
}
@media (max-width: 1070px) {
  .ws-est-fields { grid-template-columns: 1fr }
  .ws-est-field-row { grid-template-columns: 120px minmax(0,1fr) }
}
@media (max-width: 850px) {
  .ws-est-config-card { grid-template-columns: 1fr }
  .ws-est-config-nav { flex-direction: row; overflow-x: auto; padding-bottom: 8px }
  .ws-est-config-content { border-left: 0; border-top: 1px solid var(--ws-border); padding: 16px 0 0 }
}
@media (max-width: 760px) {
  .ws-est { gap: 20px }
  .ws-est .ws-heading { gap: 14px }
  .ws-est-fields { gap: 15px }
  .ws-est-field-row { grid-template-columns: 1fr; gap: 6px }
  .ws-est-meta-card dl { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .ws-est-config-card { padding: 16px }
  .ws-est .ws-heading .ws-actions { align-self: flex-start }
}
@media print {
  body:has(.ws-est-detail) :is(.review-bar,.ws-top,.ws-mobile-top,.ws-rail,.ws-est-back,.ws-est-detail .ws-actions,.ws-est-detail-tools) { display: none }
  body:has(.ws-est-detail) :is(.ws-shell,.ws-page) { display: block; padding: 0; background: #fff }
  .ws-est-document-table table { min-width: 0 }
}
