:root {
  color-scheme: light;
  --ink: #20243a; --muted: #545b71; --border: #e2e4ee; --surface: #fff;
  --background: #f5f6fa; --sidebar: #1e243b; --accent: #5540bf;
  --accent-dark: #45319d; --focus: #735ae6; --danger: #a02943;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.symbols, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: .75rem; top: .75rem; transform: translateY(-200%); z-index: 6; color: var(--ink); background: white; padding: .75rem; }
.skip-link:focus { transform: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 14rem; display: flex; flex-direction: column; background: var(--sidebar); color: #fff; padding: 1.45rem 1rem 1rem; z-index: 3; overflow: auto; }
.brand { display: flex; gap: .65rem; align-items: center; padding: .05rem .37rem; font-weight: 770; font-size: 1.1rem; letter-spacing: -.035em; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; height: 2.25rem; width: 2.25rem; border-radius: .65rem; color: #fff; background: #6753d1; }
.navigation { display: grid; gap: .25rem; margin-top: 2.25rem; }
.navigation p { margin: 1.45rem .65rem .43rem; color: #adb4cc; font-size: .81rem; font-weight: 640; }
.navigation button { border: 0; background: transparent; color: #d2d7ea; min-height: 2.75rem; display: flex; gap: .65rem; align-items: center; border-radius: .55rem; padding: .6rem .65rem; font-size: .9rem; font-weight: 590; text-align: left; }
.navigation button:hover { background: #303752; color: white; }
.navigation button[aria-current] { background: #363353; color: #fff; box-shadow: inset 3px 0 #ab97ff; }
.navigation button[aria-current] svg { color: #c8baff; }
.sidebar-footer { margin-top: auto; display: flex; gap: .55rem; align-items: center; padding: .85rem .5rem .2rem; border-top: 1px solid #3b4158; font-size: .875rem; color: #d2d7ea; }
.sidebar-footer svg { width: 1rem; height: 1rem; }
.workspace { margin-left: 14rem; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 4.25rem; padding: .65rem clamp(1rem, 3.2vw, 2.65rem); border-bottom: 1px solid var(--border); background: white; }
.topbar-location, .today { display: flex; align-items: center; gap: .55rem; }
.breadcrumb { font-size: .9rem; font-weight: 650; }
.today { color: var(--muted); font-size: .875rem; text-align: right; }
.mobile-brand, .menu-toggle { display: none !important; }
.content { max-width: 100rem; margin: 0 auto; padding: 2.1rem clamp(1rem, 3.2vw, 2.65rem) 2.75rem; }
.page-title { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.55rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.12; font-weight: 770; letter-spacing: -.054em; }
.page-title p { margin-top: .5rem; color: var(--muted); line-height: 1.5; }
.button { min-height: 2.65rem; display: inline-flex; align-items: center; justify-content: center; gap: .42rem; border-radius: .55rem; border: 1px solid transparent; font-size: .9rem; padding: .55rem .88rem; font-weight: 670; white-space: nowrap; }
.button svg { width: 1.1rem; height: 1.1rem; }
.primary { background: var(--accent); color: white; box-shadow: 0 2px 3px #34277e24; }
.primary:hover { background: var(--accent-dark); }
.secondary { color: var(--ink); background: white; border-color: #d4d7e4; }
.secondary:hover { background: #f5f3ff; border-color: #b2a6dc; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1.45rem; }
.metric { display: flex; align-items: center; gap: .7rem; text-align: left; width: 100%; min-height: 6.15rem; background: white; border: 1px solid var(--border); padding: .8rem; border-radius: .85rem; color: var(--ink); }
.metric:hover, .metric[aria-pressed="true"] { border-color: #aa9be6; background: #fbfaff; }
.metric-icon, .deadline-icon { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; flex-shrink: 0; border-radius: .68rem; }
.purple { background: #eee9ff; color: #5a41bd; }
.rose { background: #fceaf0; color: #ac3652; }
.blue { background: #e8f0ff; color: #355da8; }
.amber { background: #fff2dc; color: #855411; }
.metric-copy { display: grid; gap: .15rem; min-width: 0; }
.metric-copy > span { color: var(--muted); font-size: .875rem; font-weight: 630; line-height: 1.2; }
.metric-copy strong { font-size: 1.7rem; line-height: 1.05; font-weight: 750; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.panels { display: grid; grid-template-columns: minmax(0, 2.75fr) minmax(15rem, 1fr); gap: 1rem; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--border); border-radius: .9rem; background: white; box-shadow: 0 2px 7px #242d5310; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; padding: 1.05rem 1.13rem .88rem; }
h2 { font-size: 1.16rem; letter-spacing: -.03em; line-height: 1.2; }
.panel-header p { margin-top: .3rem; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.filter-bar { padding: 0 1.13rem 1rem; display: grid; gap: .72rem; }
.search-field { display: flex; align-items: center; gap: .5rem; min-width: 0; padding-left: .65rem; border: 1px solid #d8dbe7; border-radius: .5rem; color: var(--muted); }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-field input { width: 100%; min-width: 0; padding: .65rem .6rem .65rem 0; border: none; outline: none; background: transparent; color: var(--ink); }
.search-field svg { width: 1.05rem; height: 1.05rem; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.filters label, .form-grid label { min-width: 0; display: grid; gap: .3rem; color: var(--muted); font-size: .875rem; font-weight: 620; }
select, .form-grid input, textarea { width: 100%; min-width: 0; min-height: 2.5rem; padding: .5rem .58rem; color: var(--ink); background: white; border: 1px solid #d8dbe7; border-radius: .48rem; font-size: .875rem; font-weight: 500; }
select { appearance: none; padding-right: 1.65rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%234b5164' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-position: right .45rem center; background-repeat: no-repeat; background-size: .93rem; }
#property-filter-wrap { grid-column: span 2; }
.task-columns, .task-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(5rem, .45fr) minmax(7.45rem, .48fr); gap: .55rem; align-items: center; padding: .65rem 1.13rem; }
.task-columns { font-size: .875rem; font-weight: 680; color: var(--muted); background: #f7f8fc; border-block: 1px solid var(--border); }
.task-list, .deadline-list { padding: 0; margin: 0; list-style: none; }
.task-row { min-height: 4.4rem; }
.task-row + .task-row { border-top: 1px solid #edf0f6; }
.task-row:hover { background: #fafafe; }
.task-row:last-child { border-radius: 0 0 .9rem .9rem; }
.task-title, .deadline-title { display: block; appearance: none; text-align: left; border: 0; background: none; color: var(--ink); padding: 0; font-size: .91rem; font-weight: 700; overflow-wrap: anywhere; }
.task-title:hover, .deadline-title:hover { color: var(--accent); text-decoration: underline; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .43rem; margin-top: .35rem; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.area-chip { display: inline-block; border-radius: .28rem; padding: .13rem .35rem; font-weight: 620; background: #eeeff7; color: #454b68; }
.area-chip.leasing { background: #e6f2ee; color: #205d4e; }
.area-chip.accounting { background: #ece9fb; color: #523c9e; }
.area-chip.maintenance { background: #e7effb; color: #335785; }
.high-priority { color: #9c3651; font-weight: 650; }
.task-due { font-size: .875rem; color: var(--muted); }
.task-due.late { color: var(--danger); font-weight: 670; }
.row-status { min-height: 2.25rem; font-weight: 600; border-color: transparent; }
.row-status.todo { background-color: #eff0f5; color: #444b65; }
.row-status.doing { background-color: #e9e6fc; color: #523d9f; }
.row-status.waiting { background-color: #fff0d5; color: #785115; }
.row-status.done { background-color: #e6f3eb; color: #286046; }
.deadline-icon { width: 2.1rem; height: 2.1rem; color: #5540ae; background: #f1edff; }
.deadline-icon svg { width: 1.1rem; height: 1.1rem; }
.deadlines .panel-header { border-bottom: 1px solid var(--border); }
.deadline-list { padding-inline: .9rem; }
.deadline-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .65rem; align-items: center; padding: .67rem 0; }
.deadline-row + .deadline-row { border-top: 1px solid #edf0f6; }
.deadline-date { display: grid; text-align: center; justify-content: center; background: #f2effc; color: #56439b; border-radius: .47rem; padding: .26rem .2rem; font-size: .78rem; font-weight: 650; line-height: 1.08; }
.deadline-date strong { font-size: 1.05rem; }
.deadline-label { display: block; margin-top: .2rem; font-size: .8125rem; color: var(--muted); }
.deadlines-empty { padding: 1rem 1.13rem; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.empty { border-top: 1px solid var(--border); display: grid; justify-items: center; gap: .52rem; text-align: center; padding: 1.65rem 1rem 1.9rem; }
.empty-icon { display: grid; place-items: center; background: #f0ecfd; color: var(--accent); width: 3rem; height: 3rem; border-radius: .8rem; margin-bottom: .15rem; }
.empty-icon svg { width: 1.5rem; height: 1.5rem; }
.empty h3 { font-size: 1.05rem; }
.empty p { max-width: 31rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.empty-actions:not(:has(button:not([hidden]))) { display: none; }
.empty-actions { margin-top: .3rem; }
.text-button { background: transparent; border: 0; color: var(--accent-dark); font-size: .875rem; min-height: 2.2rem; font-weight: 670; padding: .2rem; text-align: left; }
.text-button:hover { text-decoration: underline; }
.notice { color: #84233a; background: #fff0f3; border: 1px solid #f1cbd3; border-radius: .55rem; padding: .7rem .85rem; margin-bottom: .85rem; font-size: .9rem; }
.icon-button { border: 1px solid #dce0ec; border-radius: .45rem; background: white; display: grid; place-items: center; height: 2.4rem; width: 2.4rem; color: var(--ink); }
dialog { border: 1px solid var(--border); width: min(calc(100% - 1.5rem), 34rem); max-height: calc(100dvh - 1.5rem); padding: 0; border-radius: .9rem; color: var(--ink); box-shadow: 0 14px 70px #13152b55; }
dialog::backdrop { background: #14193288; }
.dialog-header, .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; }
.dialog-header { border-bottom: 1px solid var(--border); }
.dialog-footer { border-top: 1px solid var(--border); }
.dialog-actions { display: flex; gap: .5rem; margin-left: auto; justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding: 1.05rem 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid textarea { resize: vertical; }
.form-grid input, .form-grid select, textarea, .search-field input { font-size: 1rem; }
.form-notice { margin-inline: 1.1rem; }
.danger { color: var(--danger); }
#delete-dialog { max-width: 26rem; }
.delete-content { padding: 1.2rem; }
.delete-content p { margin: .6rem 0 1rem; color: var(--muted); overflow-wrap: anywhere; }
.delete-button { color: white; background: #a02943; }
.delete-button:hover { background: #852137; }
.toast:not(:empty) { position: fixed; bottom: 1rem; right: 1rem; max-width: calc(100vw - 2rem); z-index: 5; background: #292340; color: white; padding: .72rem 1rem; border-radius: .55rem; font-size: .9rem; box-shadow: 0 3px 12px #1b172f33; }

@media (min-width: 1320px) {
  .filters:has(#property-filter-wrap:not([hidden])) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #property-filter-wrap { grid-column: auto; }
}
@media (max-width: 1180px) {
  .panels { grid-template-columns: minmax(0, 1fr); }
  .deadline-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .deadline-row:nth-child(2) { border-top: none; }
}
@media (max-width: 850px) {
  .sidebar { display: none; }
  .sidebar.is-open { display: flex; inset: 0 auto 0 0; width: min(16rem, 80vw); z-index: 4; }
  .topbar:has(.menu-toggle[aria-expanded="true"]) { position: sticky; top: 0; z-index: 5; }
  .sidebar.is-open { top: 4.25rem; }
  .workspace { margin-left: 0; }
  .mobile-brand { display: inline !important; font-weight: 760; font-size: .95rem; white-space: nowrap; }
  .menu-toggle { display: grid !important; }
  .breadcrumb { display: none; }
  .content { padding-top: 1.45rem; }
}
@media (max-width: 540px) {
  .page-title { align-items: flex-start; gap: .65rem; }
  .page-title h1 { max-width: 14rem; }
  .page-title .button { padding-inline: .65rem; }
  .page-title p { font-size: .9rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .metric { min-height: 4.65rem; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-columns { display: none; }
  .task-list { border-top: 1px solid var(--border); }
  .task-row { grid-template-columns: minmax(0, 1fr) minmax(7.2rem, .65fr); row-gap: .55rem; padding-block: .8rem; }
  .task-row > :first-child { grid-column: 1 / -1; }
  .row-status { min-height: 2.65rem; }
  .deadline-list { grid-template-columns: minmax(0, 1fr); }
  .deadline-row:nth-child(2) { border-top: 1px solid #edf0f6; }
}
@media (max-width: 350px) {
  .topbar, .content { padding-inline: .68rem; }
  .topbar { gap: .35rem; }
  .today { font-size: .8rem; }
  .panel-header, .task-row { padding-inline: .75rem; }
  .filter-bar { padding-inline: .75rem; }
}

.area-chip.marketing { background: #fae8f3; color: #854266; }
.topbar-actions { display: flex; gap: .65rem; align-items: center; }
.desk-install-link { text-decoration: none; padding-inline: .55rem; }
@media (display-mode: standalone), (display-mode: fullscreen) { .desk-install-link { display: none; } }
.schedule-panels { grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 1fr); }
.schedule-panel-header { align-items: center; border-bottom: 1px solid var(--border); }
.schedule-filter { min-width: 7.1rem; }
.desk-calendar { padding: .9rem 1rem; }
.desk-calendar-controls, .schedule-list-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem; }
.desk-calendar-controls { margin-bottom: .65rem; }
.desk-calendar-controls h3, .schedule-list-toolbar h3 { font-size: .96rem; }
.desk-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .24rem; }
.desk-calendar-weekdays { margin-bottom: .3rem; color: var(--muted); font-size: .75rem; text-align: center; }
.calendar-day { background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--border); border-radius: .45rem; min-height: 2.65rem; padding: .18rem .15rem; display: grid; justify-items: center; align-content: center; gap: .04rem; }
.calendar-day:hover, .calendar-day[aria-current="date"] { border-color: var(--accent); }
.calendar-day[aria-pressed="true"], .schedule-panel-header [aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.calendar-day-count { color: inherit; font-size: .65rem; }
.calendar-day-meta { display: flex; align-items: center; gap: .24rem; }
.calendar-block-mark { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #ac5b24; }
.calendar-day[aria-pressed="true"] .calendar-block-mark { background: currentColor; }
.calendar-block-key { display: flex; align-items: center; gap: .36rem; margin-top: .65rem; color: var(--muted); font-size: .76rem; }
.calendar-block-row { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.schedule-list-toolbar { border-top: 1px solid var(--border); padding: .65rem 1rem; }
.schedule-list-toolbar p { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.schedule-list { list-style: none; padding: 0; margin: 0; }
.schedule-item { display: grid; gap: .55rem; padding: .88rem 1.13rem; }
.schedule-item + .schedule-item { border-top: 1px solid var(--border); }
.schedule-item .task-title { max-width: max-content; font-size: 1rem; }
.schedule-item .button, .schedule-panel-header .button { text-decoration: none; }
.schedule-meta { font-size: .875rem; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.schedule-meta time { font-weight: 650; color: var(--ink); }
.review-count, .appointment-review-status { font-size: .77rem; font-weight: 680; }
.review-count { background: color-mix(in srgb, currentColor 15%, transparent); border-radius: 1rem; min-width: 1.2rem; padding: .1rem .32rem; text-align: center; }
.appointment-review-status { color: var(--accent-link); }
#meeting-review-help { background: color-mix(in srgb, var(--accent) 8%, #fff); border-left: 3px solid var(--accent); padding: .55rem .7rem; }
.schedule-actions, .preset-actions { display: flex; gap: .42rem; flex-wrap: wrap; }
.compact { min-height: 2.28rem; padding: .46rem .62rem; }
.schedule-empty, .schedule-panel-footer { padding: 1rem 1.13rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.schedule-empty .preset-actions { margin-top: .62rem; }
.schedule-panel-footer { border-top: 1px solid var(--border); }
.schedule-panel-footer a { display: block; width: fit-content; margin-top: .4rem; font-weight: 660; color: var(--accent-dark); }
.schedule-dialog { max-width: none; width: min(calc(100% - 1.5rem), 40rem); }
.schedule-dialog-footer { flex-wrap: wrap; }
.intake-panel { display: grid; padding: .75rem .8rem .55rem; border: 1px solid var(--border); border-radius: .55rem; min-width: 0; margin: 0; }
.intake-panel legend { padding: 0 .25rem; font-size: .875rem; font-weight: 670; }
.intake-row { display: grid; gap: .45rem; padding-bottom: .7rem; }
.intake-row + .intake-row { border-top: 1px solid var(--border); padding-top: .7rem; }
.intake-row .text-button { justify-self: end; min-height: 1.75rem; }
#add-question { justify-self: start; }
.field-help { color: var(--muted); font-size: .875rem; line-height: 1.42; }
.form-grid .check-setting { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.form-grid .check-setting input { min-height: 0; width: 1.18rem; height: 1.18rem; margin: 0; accent-color: var(--accent); flex: none; }
.phone-notifications { display: grid; gap: .65rem; margin: 0; padding: .65rem .8rem .8rem; min-width: 0; border: 1px solid var(--border); border-radius: .55rem; }
.phone-notifications legend { padding: 0 .3rem; font-size: .95rem; font-weight: 700; }
.phone-topics { display: grid; gap: .52rem; }
.reminder-banner { position: fixed; inset: auto 1rem 1rem auto; z-index: 4; width: min(24rem, calc(100vw - 2rem)); display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .65rem; padding: .8rem; border: 1px solid #b2a6dc; color: var(--ink); background: #f9f7ff; border-radius: .75rem; box-shadow: 0 4px 18px #1e243b30; }
.reminder-banner > svg { color: var(--accent); margin-top: .18rem; }
.reminder-banner strong { display: block; font-size: .94rem; }
.reminder-banner p { margin-top: .3rem; font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.reminder-banner .icon-button { width: 2rem; height: 2rem; }

@media (max-width: 1180px) {
  .schedule-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  #appointments-content .page-title { align-items: start; flex-wrap: wrap; }
  .schedule-panel-header { flex-wrap: wrap; }
  .topbar-actions { gap: .4rem; }
  .topbar-actions .today { white-space: nowrap; }
}
@media (max-width: 380px) {
  .topbar-actions .today { display: none; }
}

:root {
  --accent-on: #fff;
  --accent-hover: #45319d;
  --accent-link: #45319d;
  --sidebar-on: #fff;
}
.brand-icon { flex-shrink: 0; background: var(--accent); color: var(--accent-on); overflow: hidden; }
.brand-icon:has(:is(#brand-image, #preview-image):not([hidden])) { background: white; padding: .16rem; }
.brand-icon:has(.brand-mark:not([hidden])) { outline: 1px solid #c2c7ca80; }
.brand-icon img, .mobile-brand img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { min-width: 0; white-space: normal; line-height: 1.16; overflow-wrap: anywhere; }
.sidebar { color: var(--sidebar-on); }
.navigation button, .navigation p, .sidebar-footer { color: var(--sidebar-on); }
.navigation p { opacity: .8; }
.navigation button:hover { background: color-mix(in srgb, currentColor 14%, transparent); color: var(--sidebar-on); }
.navigation button[aria-current] { color: var(--sidebar-on); background: color-mix(in srgb, currentColor 17%, transparent); box-shadow: inset 3px 0 var(--sidebar-on); }
.navigation button[aria-current] svg { color: var(--sidebar-on); }
.sidebar-footer { border-color: color-mix(in srgb, currentColor 24%, transparent); }
.primary { color: var(--accent-on); }
.primary:hover { background: var(--accent-hover); }
.text-button, .schedule-panel-footer a, .task-title:hover, .deadline-title:hover { color: var(--accent-link); }
.text-button.danger { color: var(--danger); }
.topbar-location { min-width: 0; }
.topbar-actions { flex-shrink: 0; }
.account-gate { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; }
.gate-card { background: white; border: 1px solid var(--border); border-radius: 1rem; padding: clamp(1.2rem, 5vw, 2rem); width: min(100%, 29rem); box-shadow: 0 2px 8px #242d5314; }
.gate-symbol { display: block; width: 2.7rem; height: 2.7rem; border-radius: .7rem; margin-bottom: .85rem; }
.gate-card p { color: var(--muted); line-height: 1.45; margin: .65rem 0 0; }
.gate-card .form-grid { padding-inline: 0; }
.gate-actions { display: flex; gap: .65rem; align-items: center; }
.gate-actions:has(:not([hidden])) { margin-top: .8rem; }
.gate-actions a, #workspace-form footer a { display: inline-flex; align-items: center; text-decoration: none; }
.brand-preview { display: flex; align-items: center; min-height: 4rem; padding: .7rem; gap: .7rem; border-radius: .55rem; background: var(--sidebar); color: var(--sidebar-on); overflow-wrap: anywhere; }
.form-grid input[type="color"] { max-width: 6rem; padding: .24rem; cursor: pointer; }
.brand-remove { justify-self: start; }
.account-panel-header { align-items: center; }
.invite-help { padding: 0 1.13rem 1rem; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.invite-help a { color: var(--accent-link); font-weight: 650; }
.account-tools { display: flex; align-items: center; gap: .55rem; padding: 0 1.13rem 1rem; }
.account-tools .search-field { flex: 1; max-width: 27rem; }
.account-filter { min-width: 8.4rem; }
.account-notice { margin: 0 1.13rem 1rem; }
.account-list { padding: 0; margin: 0; list-style: none; }
.account-row { padding: .85rem 1.13rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, .4fr) auto; gap: .6rem; align-items: center; border-top: 1px solid var(--border); }
.account-row p { font-size: .875rem; color: var(--muted); margin-top: .25rem; overflow-wrap: anywhere; }
.account-row strong { overflow-wrap: anywhere; }
.account-row .account-actions { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.account-state { font-size: .83rem; display: inline-block; padding: .24rem .45rem; border-radius: .35rem; background: #e7f4ec; color: #265d42; font-weight: 670; }
.account-state.paused, .account-state.deleting { background: #fff0d5; color: #785115; }
.account-pagination { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; border-top: 1px solid var(--border); padding: .7rem 1.13rem; font-size: .875rem; }
@media (max-width: 850px) {
  .mobile-brand { display: flex !important; min-width: 0; align-items: center; gap: .35rem; }
  .mobile-brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .mobile-brand img { width: 1.65rem; height: 1.65rem; border-radius: .3rem; flex-shrink: 0; }
}
@media (max-width: 540px) {
  .account-tools { flex-wrap: wrap; }
  .account-tools .search-field { flex-basis: 100%; max-width: none; }
  .account-row { grid-template-columns: minmax(0, 1fr) auto; }
  .account-row .account-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .topbar-actions .today { display: none; }
}

.desk-import { align-items: center; flex-wrap: wrap; }

.schedule-link { text-decoration: none; }
.form-grid .booking-hours { padding: .75rem; border: 1px solid var(--border); border-radius: .5rem; }
.booking-weekly { min-width: 0; margin: 0; padding: .5rem .65rem; border: 1px solid var(--border); border-radius: .5rem; }
.booking-weekly legend { padding: 0 .25rem; color: var(--ink); font-size: .9rem; font-weight: 650; }
.booking-weekly-labels, .booking-weekly-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); align-items: center; gap: .4rem; }
.booking-weekly-labels { padding: .12rem 0 .34rem; font-size: .76rem; font-weight: 650; color: var(--muted); }
.booking-weekly-row { padding: .38rem 0; border-top: 1px solid var(--border); }
.booking-weekly-row input[type="time"] { width: 100%; min-width: 0; padding-inline: .35rem; }
.booking-weekly-row input[type="time"]:disabled { opacity: .65; }
@media (max-width: 440px) {
  .booking-weekly-labels { display: none; }
  .booking-weekly-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .25rem; }
  .booking-weekly-row .check-setting { grid-column: 1 / -1; }
  .booking-weekly-row .visually-hidden { position: static; width: auto; height: auto; margin: 0; clip-path: none; overflow: visible; white-space: normal; }
}

.portfolio-editor { overflow: hidden; }
.portfolio-toolbar, .portfolio-share {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .85rem 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.portfolio-status { font-weight: 730; margin-bottom: .2rem; }
.portfolio-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.portfolio-actions a { text-decoration: none; }
.portfolio-share { justify-content: flex-start; background: var(--background); font-size: .875rem; }
.portfolio-share .portfolio-actions { flex: 1 1 24rem; min-width: 0; }
.portfolio-share input {
  flex: 1 1 14rem; min-width: 0; padding: .55rem .65rem; border-radius: .4rem;
  border: 1px solid var(--border); color: var(--ink); background: var(--surface);
}
.portfolio-editor fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
.portfolio-editor-section { padding: 1.35rem 1.25rem; }
.portfolio-editor-section + .portfolio-editor-section { border-top: 1px solid var(--border); }
.portfolio-editor-section h2 { margin-bottom: .85rem; font-size: 1.12rem; }
.portfolio-editor .form-grid { padding: 0; }
.portfolio-editor label input, .portfolio-editor label select, .portfolio-editor textarea { min-width: 0; }
.portfolio-photo-preview { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.portfolio-photo-preview img { display: block; width: 7rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .4rem; }
#booking-share-photo, #portfolio-share-upload .portfolio-photo-preview img { width: min(100%, 14rem); aspect-ratio: 1200 / 630; object-fit: contain; }

.portfolio-editor label small, .portfolio-entry label small { font-size: .76rem; font-weight: 500; color: var(--muted); margin-left: .35rem; }
.portfolio-migration { padding: .85rem 1.25rem; background: #fbf4e2; }
.portfolio-group { border-block: 1px solid var(--border); margin-bottom: -1px; }
.portfolio-group summary { cursor: pointer; font-weight: 720; }
.portfolio-group > .field-help { margin-top: .6rem; }
.portfolio-editor .portfolio-entry-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 15rem),1fr)); gap: .8rem; margin-top: .9rem; }
.portfolio-editor .portfolio-entry { display: grid; align-content: start; gap: .65rem; padding: .65rem .8rem .8rem; border: 1px solid var(--border); border-radius: .5rem; }
.portfolio-editor .portfolio-entry legend { font-size: .82rem; font-weight: 700; padding-inline: .25rem; }
.portfolio-entry label, .portfolio-upload label { display: grid; gap: .3rem; align-content: start; color: var(--ink); font-size: .85rem; font-weight: 620; }
.portfolio-entry input, .portfolio-entry textarea { padding: .48rem .6rem; width: 100%; border: 1px solid var(--border); border-radius: .35rem; background: var(--surface); color: var(--ink); }
.portfolio-entry input[type=file], .portfolio-upload input[type=file] { max-width: 100%; }
.portfolio-upload .portfolio-photo-preview { margin-top: .4rem; }
.portfolio-editor-section > .field-help + .form-grid { margin-top: .65rem; }
