/* finesse · register=product · design-language=apple · apple-mode=app · shell=sidebar
 * Shared structure; semantic colors and component surfaces are defined in apple.css. */
:root {
  --bg: var(--color-page);
  --surface: var(--color-surface);
  --ink: var(--color-label);
  --muted: var(--color-secondary);
  --green: var(--color-action);
  --mint: var(--color-action-soft);
  --line: var(--color-separator);
  --amber: var(--color-warning);
  --rail: 212px;
  color-scheme: light
}

* {
  box-sizing: border-box
}

html,
body {
  overflow-x: clip
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--system-font);
  -webkit-font-smoothing: antialiased
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit
}

button,
a {
  touch-action: manipulation
}

button {
  cursor: pointer
}

a {
  color: var(--green);
  text-decoration: none
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-action);
  outline-offset: 3px
}

button:disabled {
  opacity: .55;
  cursor: progress
}

h1,
h2,
h3,
p {
  margin: 0
}

h1 {
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.23;
  overflow-wrap: anywhere
}

h2 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -.035em
}

h3 {
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -.015em
}

small,
.muted,
.hint {
  font-size: 13px;
  color: var(--muted)
}

.ic {
  flex: none;
  vertical-align: middle
}

.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100dvh
}

.side {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: 35px 17px 20px;
  background: var(--color-page);
  border-right: 1px solid var(--line)
}

.brand,
.side-bottom {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand {
  margin: 0 8px 39px;
  color: var(--color-label);
  font-size: 24px;
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: .04em
}

.brand small,
.side-bottom small {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 450;
  color: var(--muted);
  margin-top: 6px
}

.brand-glyph,
.building-mark {
  display: grid;
  place-items: center;
  flex: none
}

.brand-glyph {
  background: var(--green);
  border-radius: 13px;
  width: 43px;
  height: 43px;
  color: var(--color-surface)
}

nav {
  overflow: auto
}

nav h2 {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 600;
  margin: 29px 12px 8px
}

nav h2:first-child {
  margin-top: 0
}

nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  margin: 2px 0;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-secondary)
}

nav a:hover {
  background: var(--color-inset)
}

nav a[aria-current] {
  background: var(--color-action-soft);
  color: var(--color-action);
  font-weight: 650
}

nav a i {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-action)
}

.side-bottom {
  margin-top: auto;
  padding: 16px 7px 3px;
  border-top: 1px solid var(--color-separator);
  font-size: 13px
}

.demo-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-inset);
  margin: 0 5px
}

.side-bottom small {
  letter-spacing: 0;
  margin-top: 1px
}

.shell>main {
  min-width: 0
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 65px;
  padding: 0 clamp(20px, 3.3vw, 58px);
  border-bottom: 1px solid var(--line);
  background: var(--color-page);
  font-size: 12px;
  color: var(--muted)
}

.topbar>div,
.topbar time,
.section-head,
.section-head>a,
.summary-top,
.summary-top h2,
.metric>div,
.address,
.public-brand,
.row-actions,
.mobile-actions,
.property-title,
.form-intro,
.phone-head,
.phone-head>span {
  display: flex;
  align-items: center;
  gap: 9px
}

.topbar b {
  font-weight: 550;
  color: var(--ink)
}

.workspace {
  max-width: 1450px;
  margin: auto;
  padding: 32px clamp(20px, 3.3vw, 58px) 54px
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 25px
}

.page-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px
}

.primary,
.secondary,
.text,
.mini,
.icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap
}

.primary,
.secondary {
  padding: 8px 15px
}

.primary {
  background: var(--green);
  color: var(--color-surface);
  border: 1px solid var(--green)
}

.primary:hover {
  background: var(--color-action-hover)
}

.secondary,
.mini,
.icon-only {
  background: var(--surface);
  border: 1px solid var(--color-separator)
}

.secondary:hover,
.mini:hover,
.icon-only:hover {
  background: var(--color-inset)
}

.text {
  color: var(--green);
  background: transparent;
  border: 0;
  padding: 5px 7px
}

.text:hover {
  text-decoration: underline
}

.mini {
  min-height: 31px;
  padding: 3px 8px;
  font-size: 12px
}

.icon-only {
  width: 38px;
  overflow: hidden;
  font-size: 0;
  gap: 0
}

.summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-action);
  color: var(--color-surface);
  border-radius: 16px;
  padding: 22px 26px 24px
}

.summary::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -75px -45px -45px auto;
  width: 26%;
  opacity: .15;
  transform: skewY(-19deg);
  background-image: repeating-linear-gradient(90deg, transparent 0 23px, var(--color-input-border) 23px 24px), repeating-linear-gradient(0deg, transparent 0 18px, var(--color-input-border) 18px 19px);
  border-left: 1px solid var(--color-input-border)
}

.summary-top,
.section-head,
.phone-head {
  justify-content: space-between
}

.summary-top {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-action)
}

.summary-top h2 {
  font-size: 16px;
  letter-spacing: 0;
  gap: 10px
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--color-surface);
  font-size: 11px;
  letter-spacing: .04em
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success-soft)
}

.metrics {
  display: flex;
  margin-top: 20px
}

.metric {
  flex: 1;
  min-width: 0;
  padding-left: clamp(12px, 2vw, 34px);
  border-left: 1px solid var(--color-action)
}

.metric:first-child {
  border: 0;
  padding-left: 0
}

.metric>div {
  font-size: 13px;
  gap: 7px;
  color: var(--color-surface)
}

.metric strong {
  font-size: clamp(32px, 3.1vw, 46px);
  line-height: 1.3;
  font-weight: 550;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums
}

.metric small {
  color: var(--color-separator);
  font-size: 12px;
  margin-left: 9px
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr);
  gap: 18px;
  margin: 20px 0
}

.panel,
.phone-preview,
.m-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px
}

.panel {
  padding: 20px 22px
}

.section-head {
  gap: 12px
}

.section-head>a {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  gap: 4px
}

.section-head>a:hover {
  text-decoration: underline
}

.property-list {
  margin-top: 8px
}

.prop-row,
.catalog-row,
.task,
.report-row {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line)
}

.prop-row {
  min-height: 79px
}

.prop-row:first-child {
  border: 0
}

.prop-name {
  flex: 1;
  min-width: 0
}

.prop-name h3,
.property-title h3 {
  margin-bottom: 3px
}

.building-mark {
  width: 43px;
  height: 46px;
  background: var(--color-action-soft);
  color: var(--color-action);
  border-radius: 9px
}

.building-mark.ochre {
  background: var(--color-warning-soft);
  color: var(--color-warning)
}

.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 5px;
  background: var(--color-inset);
  padding: 2px 7px;
  font-size: 11px;
  color: var(--color-secondary)
}

.pill.green {
  background: var(--color-success-soft);
  color: var(--color-success)
}

.pill.amber,
.callout {
  background: var(--color-warning-soft);
  color: var(--amber)
}

.attention {
  display: flex;
  flex-direction: column
}

.all-clear,
.empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  gap: 9px;
  padding: 22px 8px
}

.all-clear>span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-action);
  background: var(--color-success-soft)
}

.all-clear b {
  font-size: 14px;
  color: var(--ink)
}

.all-clear p {
  font-size: 12px
}

.task {
  justify-content: space-between;
  text-align: left;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%
}

.task small,
.feed-row small,
.report-row small {
  display: block
}

.feed .section-head,
.library .section-head {
  margin-bottom: 12px
}

.feed-row {
  display: grid;
  grid-template-columns: 8px 93px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0
}

.feed-row+.feed-row {
  border-top: 1px solid var(--line)
}

.feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-action)
}

.feed-row time,
.report-row time {
  font: 13px "Segoe UI", sans-serif;
  color: var(--muted);
  font-variant-numeric: tabular-nums
}

.feed-row b,
.report-row b {
  font-size: 14px
}

.feed-row small,
.report-row small {
  margin-top: 3px
}

.catalog-row {
  padding: 20px 0;
  flex-wrap: wrap
}

.catalog-row:last-child {
  padding-bottom: 4px
}

.catalog-brief,
.schema-preview {
  display: flex;
  gap: 7px;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  min-width: 175px
}

.catalog-brief {
  flex-direction: column;
  align-items: flex-start;
  font-size: 13px
}

.catalog-row .property-title {
  width: 30%;
  min-width: 160px
}

.volume {
  margin: 17px 0 5px
}

.volume>span {
  display: flex;
  justify-content: space-between;
  font-size: 14px
}

.volume b {
  font-size: 13px
}

progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 5px;
  background: var(--color-inset);
  appearance: none
}

progress::-webkit-progress-bar {
  background: var(--color-inset);
  border-radius: 5px
}

progress::-webkit-progress-value {
  background: var(--color-action);
  border-radius: 5px
}

.report-row {
  padding: 14px 0
}

.report-row:first-child {
  margin-top: 12px
}

.report-row>span:nth-child(2) {
  flex: 1
}

.menu,
.nav-mask {
  display: none
}

dialog {
  width: min(550px, calc(100% - 22px));
  max-height: 90dvh;
  color: var(--ink);
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 25px 85px rgb(29 29 31 / .12)
}

dialog::backdrop {
  background: var(--color-scrim)
}

.dialog-head,
dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface)
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1
}

dialog footer {
  position: sticky;
  bottom: 0;
  justify-content: flex-end;
  border: 0;
  border-top: 1px solid var(--line)
}

.dialog-body {
  padding: 20px 22px
}

.dialog-body h3:not(:first-child),
.public-page h2 {
  margin: 18px 0 8px
}

.dialog-body p {
  line-height: 1.65
}

.dialog-body>label,
.field-row>label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 13px 0
}

input:not([type=checkbox]),
textarea,
select {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  padding: 9px 11px;
  border: 1px solid var(--color-input-border);
  background: var(--color-surface);
  border-radius: 7px;
  margin-top: 5px
}

input[type=checkbox] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  vertical-align: middle
}

textarea {
  min-height: 64px;
  resize: vertical
}

.callout,
.error,
.connection-error {
  padding: 9px 12px;
  border-radius: 7px;
  margin: 10px 0
}

.error,
.connection-error {
  color: var(--color-danger);
  background: var(--color-danger-soft)
}

.keep-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px
}

.field-row {
  margin: 12px 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 8px
}

.field-row>label {
  margin: 0
}

.field-row .checkbox {
  font-weight: 400;
  align-self: center
}

.row-tools {
  display: flex;
  gap: 5px;
  justify-content: flex-end
}

.field-row:first-child [data-action=up],
.field-row:last-child [data-action=down] {
  visibility: hidden
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap
}

.file-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0
}

.file-list span {
  flex: 1;
  overflow-wrap: anywhere
}

.facts {
  margin: 16px 0;
  background: var(--color-inset);
  padding: 7px 13px;
  border-radius: 9px
}

.facts div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0
}

.facts dt {
  color: var(--muted);
  font-size: 13px
}

.facts dd {
  margin: 0;
  font-size: 14px
}

.phone-preview {
  max-width: 460px;
  margin: 0 auto;
  padding: 17px 16px 24px;
  background: var(--color-page);
  border-color: var(--color-separator)
}

.phone-head {
  color: var(--green);
  font-size: 14px;
  font-weight: 700
}

.phone-head small {
  font-size: 11px;
  font-weight: 400
}

.phone-preview h2 {
  margin: 16px 0 12px;
  font-size: 24px
}

.segments {
  display: flex;
  border-bottom: 1px solid var(--color-separator);
  margin: 0 0 13px;
  gap: 8px
}

.segments button {
  padding: 9px 5px;
  font-size: 13px;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent
}

.segments [aria-current] {
  color: var(--green);
  font-weight: 650;
  border-color: var(--green)
}

.m-card {
  padding: 15px;
  margin: 10px 0
}

.m-card p {
  font-size: 14px;
  margin: 10px 0
}

.m-card .m-price {
  font-size: 24px;
  font-weight: 650;
  color: var(--green)
}

.mobile-actions {
  margin-top: 14px;
  flex-wrap: wrap
}

.m-card .property-title .pill {
  margin-left: auto
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--color-inset);
  padding: 12px;
  font: 14px/1.7 inherit;
  font-family: inherit;
  border-radius: 8px
}

.public-page {
  max-width: 610px;
  padding: 20px 13px 40px;
  margin: auto
}

.public-brand {
  color: var(--green);
  margin: 6px 3px 16px
}

.customer-card-preview { width: min(640px, calc(100% - 22px)); background: var(--bg); }
.customer-card-preview .dialog-head button { flex-shrink: 0; }
.customer-card-preview .public-page { overflow-wrap: anywhere; }

.address {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0
}

em {
  color: var(--color-danger);
  font-style: normal
}

.loading {
  margin: 12vh auto;
  text-align: center;
  color: var(--muted)
}

#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 12;
  background: var(--color-label);
  color: var(--color-surface);
  border-radius: 9px;
  font-size: 14px;
  padding: 10px 17px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  width: max-content;
  max-width: 90vw
}

#notice.visible {
  opacity: 1;
  transform: translate(-50%, 0)
}

@media(min-width:1550px) {
  :root {
    --rail: 240px
  }
}

@media(max-width:1100px) {
  :root {
    --rail: 180px
  }

  .work-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(200px, 1fr)
  }

  .panel {
    padding: 17px
  }

  .workspace {
    padding-inline: 24px
  }

  .side {
    padding-inline: 12px
  }

  .prop-row {
    gap: 9px
  }
}

@media(max-width:850px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .all-clear {
    padding: 16px
  }

  .catalog-row .property-title {
    width: auto;
    flex: 1
  }

  .catalog-brief {
    min-width: 180px
  }
}

@media(max-width:700px) {
  .shell {
    display: block
  }

  .side {
    position: fixed;
    top: 0;
    left: 0;
    width: 218px;
    transform: translateX(-102%);
    transition: transform .18s
  }

  .side.is-open {
    transform: translateX(0)
  }

  .side.is-open+.nav-mask {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    border: 0;
    background: var(--color-scrim)
  }

  .menu {
    display: inline-flex
  }

  .topbar {
    height: 54px;
    padding: 0 14px
  }

  .topbar time {
    font-size: 11px
  }

  .workspace {
    padding: 20px 14px 38px
  }

  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px
  }

  .page-head p {
    font-size: 13px
  }

  .summary {
    padding: 17px 16px
  }

  .metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 0
  }

  .metric:nth-child(odd) {
    border: 0;
    padding-left: 0
  }

  .metric>div {
    font-size: 12px
  }

  .work-grid {
    gap: 13px;
    margin: 13px 0
  }

  .feed-row {
    gap: 8px;
    grid-template-columns: 6px 61px minmax(0, 1fr) auto
  }

  .feed-row time {
    font-size: 12px
  }

  .prop-row {
    gap: 7px
  }

  .catalog-row {
    gap: 12px
  }

  .catalog-row .property-title {
    width: 100%
  }

  .secondary,
  .primary,
  .text,
  .segments button,
  .icon-only {
    min-height: 44px
  }

  .icon-only {
    width: 44px
  }

  .dialog-body {
    padding: 16px
  }

  .phone-preview {
    padding-bottom: max(18px, env(safe-area-inset-bottom))
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)
  }

  .row-tools {
    grid-column: 1/-1;
    justify-content: flex-start
  }

  .mini {
    min-height: 38px
  }

  .crumb {
    display: none
  }
}

@media(max-width:360px) {
  .prop-row>.pill {
    display: none
  }

  .panel {
    padding: 13px
  }

  .summary-top h2 {
    font-size: 15px
  }

  .topbar time .ic {
    display: none
  }

  .brand {
    margin-bottom: 20px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}
.staff-section { margin-bottom: 18px; }
.property-owner { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 16px; color:var(--muted); }
.staff-row, .staff-report { border-top: 1px solid var(--line); padding: 15px 0; }
.staff-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.staff-row small { display:block; overflow-wrap:anywhere; }
.staff-report p, .staff-report small { color:var(--muted); overflow-wrap:anywhere; }
.staff-report .row-actions { margin-top:8px; }
.staff-checks { display:grid; gap:8px; max-height:45vh; overflow:auto; }
.staff-checks label { display:block; padding:8px; border:1px solid var(--line); border-radius:8px; }
.staff-checks input { width:auto; min-height:0; }
.binding-code { font-size:28px; font-weight:700; letter-spacing:.12em; overflow-wrap:anywhere; margin:14px 0; }
@media(max-width:700px) { .staff-row { align-items:flex-start; flex-wrap:wrap; } .staff-report .section-head { align-items:flex-start; flex-wrap:wrap; gap:8px; } }
.staff-head > div, .staff-row-info, .staff-report { min-width: 0; }
.staff-head h2, .staff-head p, .staff-row-info, .staff-stage dd { overflow-wrap: anywhere; }
.staff-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.staff-stage { padding: 10px 12px; background: var(--color-inset); border-radius: 8px; min-width: 0; }
.staff-stage dt { color: var(--muted); font-size: 12px; }
.staff-stage dd { margin: 2px 0 0; font-size: 13px; }
.staff-followups { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.staff-section .row-actions { flex-wrap: wrap; }
.staff-section .row-actions button, .staff-head button { white-space: nowrap; }
@media (max-width: 700px) {
  .staff-head { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .staff-progress { grid-template-columns: minmax(0, 1fr); }
  .staff-stage { display: grid; grid-template-columns: 6em minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
  .staff-stage dd { margin: 0; }
}
