@charset "UTF-8";

:root {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #1d302a;
  background: #f5f7f6;
  --paper: #fff;
  --green: #164a3a;
  --muted: #586a62;
  --line: #dce5df;
  --tint: #edf4ef;
  --radius: 10px;
  --nav-width: 224px;
  --bottom-nav-safe-area: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: calc(51px + 1rem + var(--bottom-nav-safe-area));
  --mobile-safe-area: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .48; cursor: not-allowed; }
:is(.auth-story, .sidebar, .viewer, #mobile-menu-drawer) { --focus-ring-color: var(--focus-ring-on-dark); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); letter-spacing: -.045em; line-height: 1.15; }
h2 { font-size: 1.15rem; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
p { line-height: 1.6; }
svg { width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wide { width: 100%; }
.button, .text-button, .icon-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: .875rem;
}
.button { padding: .63rem .9rem; white-space: nowrap; }
.primary { background: var(--green); color: white; }
.primary:not(:disabled):hover { background: #10372c; }
.secondary { background: var(--paper); color: var(--green); border-color: var(--line); }
.secondary:not(:disabled):hover, .icon-button:hover { background: var(--tint); }
.text-button { background: transparent; color: var(--green); padding: .4rem .1rem; }
.text-button:hover { text-decoration: underline; }
.icon-button { width: 44px; padding: 0; background: transparent; color: inherit; flex: 0 0 auto; }
.context-help-heading { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .28rem; }
.context-help-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; padding: 0; border-radius: 50%; border: 1px solid #b9d1c3; background: #f4f9f6; color: var(--green); font-size: .8rem; font-weight: 700; line-height: 1; vertical-align: middle; transition: background-color .15s, border-color .15s; }
.context-help-button:is(:hover, [aria-expanded="true"]) { border-color: #83ad97; background: #dbeee2; }
.context-help-popover { position: fixed; z-index: 26; inline-size: min(17rem, calc(100vw - 1.5rem)); max-block-size: calc(100dvh - 1.5rem); overflow: auto; overscroll-behavior: contain; padding: .65rem .78rem; border: 1px solid #bcd5c6; border-inline-start: 3px solid #68a786; border-radius: 8px; background: #f8fcf9; color: #1d302a; box-shadow: 0 8px 24px #122c2040; font-size: .8rem; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.context-help-popover-rich { inline-size: min(25rem, calc(100vw - 1.5rem)); }
.context-help-popover:not([hidden]) { animation: wallet-source-in .14s ease-out both; }
@media (pointer: coarse) { .context-help-button { width: 30px; height: 30px; } }
:where(.button, .text-button, .icon-button, .nav-item, .profile, .top-credit, .bottom-nav button, .project-row, .sidebar-subnav a, .profile-link) {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
:where(.button, .icon-button, .top-credit):not(:disabled):active { transform: translateY(1px); }
.brand { display: grid; justify-items: start; gap: .25rem; inline-size: min(100%, 13rem); min-block-size: 44px; }
.brand-lockup { display: block; inline-size: 13rem; max-inline-size: 100%; block-size: auto; }
.brand-sub { display: block; color: #b7d0c2; font-size: .65rem; letter-spacing: .17em; font-weight: 650; line-height: 1.25; text-transform: uppercase; overflow-wrap: anywhere; }
.mobile-brand, .mobile-only, .mobile-menu-brand, .bottom-nav { display: none; }

.auth-screen { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: white; }
.auth-story { padding: clamp(1.5rem, 5vw, 4.5rem); background: #153f35; display: flex; flex-direction: column; gap: clamp(2.5rem, 7vw, 6rem); }
.auth-illustration { width: 100%; aspect-ratio: 10/7; object-fit: cover; border-radius: 12px; }
.auth-form { width: min(100%, 480px); margin: auto; padding: 2rem; }
.auth-form h1 { margin-bottom: 1.75rem; }
.auth-form .button { white-space: normal; text-align: center; overflow-wrap: anywhere; }
.auth-switch { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: .35rem; margin: .9rem 0; text-align: center; font-size: .875rem; }
#forgot-password { min-block-size: 44px; margin: -.3rem 0 .45rem; }
#auth-message { margin-bottom: .65rem; }
.error { color: #a12c2b; font-size: .875rem; margin-bottom: .6rem; }
.error:empty { display: none; }
label { display: block; font-size: .875rem; font-weight: 600; }
label > input:not([type=checkbox], [type=radio]), label > select,
.aligned-field-control > input, .watermark-position-field > select {
  width: 100%; min-height: 46px; padding: .65rem .75rem;
  color: inherit; background: white; border: 1px solid #bfcfc5;
  border-radius: 8px; display: block; margin: .4rem 0 1.1rem; font-size: 1rem; font-weight: 400;
}
/* Keep labels and controls on shared rows within each group of fields. */
.aligned-fields > .aligned-field {
  display: grid; grid-template-rows: 1fr auto; align-items: start; align-self: stretch;
  min-inline-size: 0; row-gap: var(--aligned-field-gap, 0px);
}
.aligned-field > :first-child { min-inline-size: 0; overflow-wrap: anywhere; }
.aligned-field-control { display: grid; position: relative; min-inline-size: 0; }
@supports (grid-template-rows: subgrid) {
  .aligned-fields > .aligned-field { grid-row: span 2; grid-template-rows: subgrid; }
}
input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--green); flex-shrink: 0; }
.company-combobox { position: relative; min-width: 0; }
.company-options {
  position: absolute; z-index: 8; inset: 4.3rem 0 auto; max-height: 14rem; overflow-y: auto;
  margin: 0; padding: .25rem; list-style: none; border: 1px solid var(--line); border-radius: 8px;
  background: white; box-shadow: 0 8px 22px #153c2d26;
}
.company-options li { min-height: 44px; padding: .6rem .65rem; border-radius: 5px; cursor: pointer; overflow-wrap: anywhere; }
.company-options li:hover, .company-options [aria-selected="true"] { background: var(--tint); }
.aligned-field-control .company-options { inset-block-start: calc(100% - .85rem); }
@media (hover: none), (max-width: 680px) {
  .company-options { position: static; margin: -.75rem 0 .9rem; }
}

#workspace { --nav-width: clamp(256px, 20vw, 264px); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--nav-width); padding: 1.5rem 1rem 1rem; display: flex; flex-direction: column; overflow-y: auto; background: #153f35; color: white; }
.sidebar .brand { inline-size: auto; margin: 0 .45rem 2rem; }
.sidebar-nav-group + .sidebar-nav-group { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid #ffffff30; }
.sidebar-nav-label { margin: 0 .75rem .3rem; color: #b7d0c2; font-size: .75rem; font-weight: 650; }
.nav-item { width: 100%; display: flex; align-items: center; gap: .7rem; min-height: 46px; padding: .65rem .75rem; margin-bottom: .2rem; border: 0; border-radius: 7px; background: none; color: #c9dcd2; text-align: left; font-size: .9rem; }
.nav-item:hover, .nav-item.active { color: white; background: #ffffff17; }
.sidebar-subnav { display: grid; gap: .2rem; margin: .1rem 0 .5rem 1.2rem; padding-inline-start: .65rem; border-inline-start: 1px solid #ffffff3b; }
.sidebar-subnav a { display: flex; align-items: center; min-height: 40px; padding: .4rem .55rem; border-radius: 6px; color: #c9dcd2; font-size: .82rem; line-height: 1.25; }
#workspace .sidebar-subnav { grid-template-columns: minmax(0, 1fr); }
#workspace :is(.sidebar-subnav a, .nav-item) { min-inline-size: 0; overflow-wrap: anywhere; }
.sidebar-subnav a:is(:hover, [aria-current="page"]) { color: white; background: #ffffff17; }
.sidebar-subnav a[aria-current="page"] { font-weight: 650; }
.nav-new { padding: .2rem .45rem; border-radius: 1rem; background: #d8f3e3; color: #184a39; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.nav-item .nav-new { margin-left: auto; }
.sidebar-account { display: flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid #ffffff30; }
.sidebar-account .icon-button:hover { background: #ffffff17; }
.profile { display: flex; align-items: center; gap: .65rem; padding: .25rem; border: 0; border-radius: 7px; background: none; color: white; text-align: left; min-height: 44px; flex: 1; min-width: 0; }
.profile:hover { background: #ffffff17; }
.profile-meta { flex: 1; min-width: 0; }
.profile strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; }
.avatar { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: #dbede2; color: var(--green); font-weight: 700; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.workspace-main { margin-left: var(--nav-width); }
.topbar { background: white; border-bottom: 1px solid var(--line); min-height: 64px; padding: .4rem clamp(1rem, 3vw, 2.5rem); display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.workspace-main > .topbar { position: sticky; top: 0; z-index: 10; }
.app-breadcrumb { min-width: 0; color: var(--muted); font-size: .875rem; }
.app-breadcrumb ol { display: flex; align-items: center; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.app-breadcrumb li { display: flex; align-items: center; gap: .45rem; min-width: 0; white-space: nowrap; }
.app-breadcrumb li:not(:first-child)::before { content: ''; flex: none; width: 1px; height: .8em; background: #778780; transform: skewX(-17deg); }
.app-breadcrumb :is(a, [aria-current]) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app-breadcrumb a { color: var(--green); font-weight: 650; }
.app-breadcrumb a:hover { text-decoration: underline; text-underline-offset: .18em; }
.app-breadcrumb li:first-child, .app-breadcrumb .breadcrumb-project + li { flex: none; }
#workspace .app-breadcrumb .breadcrumb-project { flex-shrink: 4; }
#workspace .app-breadcrumb .breadcrumb-project + li { flex-shrink: 1; }
#contact-templates-heading { scroll-margin-block-start: 5rem; }
.topbar-right, .top-credit { display: flex; align-items: center; gap: .55rem; }
#workspace .topbar-right { flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; max-inline-size: 100%; }
.top-credit { font-size: .875rem; white-space: nowrap; min-height: 44px; border: 0; padding: .45rem .65rem; border-radius: 7px; color: var(--green); background: transparent; }
.top-credit:hover { background: var(--tint); }
.top-credit svg { color: var(--green); width: 18px; }
.credit-guide-anchor { position: relative; }
#credits-guide-hint { position: absolute; inset: calc(100% + .75rem) 0 auto auto; width: min(15rem, calc(100vw - 2rem)); padding: .8rem .9rem; border: 1px solid #c8e7d5; border-radius: 10px; background: #fff; box-shadow: 0 8px 26px #173d2b25; font-size: .875rem; }
#credits-guide-hint strong { display: block; color: var(--green); }
#credits-guide-hint p { margin-top: .2rem; color: var(--muted); line-height: 1.4; }
.preview-label, .pill { border-radius: 6px; background: var(--tint); color: #36574a; padding: .3rem .55rem; font-size: .8125rem; white-space: nowrap; }
#content { --content-padding: clamp(1.25rem, 3vw, 2.5rem); max-width: 1500px; margin: auto; padding: var(--content-padding); }
#content:has(#projects-view:not([hidden]), #share-view:not([hidden])) { max-width: 1640px; padding-inline: clamp(1rem, 2.5vw, 2rem); }
.page-heading, .section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.page-heading h1 { overflow-wrap: anywhere; }
#workspace .page-heading > :first-child { min-inline-size: 0; }
#workspace .page-heading > .button { max-inline-size: 100%; white-space: normal; text-align: center; }
.page-heading p { margin-top: .4rem; }
:is(.project-title, .share-editor-title) { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: start; gap: .55rem; min-width: 0; flex: 1 0 100%; }
:is(.project-title-copy, .share-editor-title-copy) { min-inline-size: 0; }
:is(.project-title, .share-editor-title) h1 { min-inline-size: 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.025em; }
:is(#project-address, #share-editor-address) { margin-block-start: .25rem; font-size: .875rem; overflow-wrap: anywhere; }
#share-editor-address:not([hidden]) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
:is(.project-title, .share-editor-title) .icon-button { inline-size: 44px; min-block-size: 44px; justify-self: end; color: var(--green); border-color: var(--line); }
#share-editor-toolbar { align-items: flex-start; flex-wrap: wrap; }
#detail-view > .page-heading { align-items: flex-start; flex-wrap: wrap; }
#delete-draft-project { margin-inline-start: auto; color: #a12c2b; border-color: #e5c7c5; overflow-wrap: anywhere; }
#delete-draft-project:hover { background: #fcf2f1; border-color: #c37d79; }
.section-toolbar { margin-top: 1.65rem; }
.stat-icon, .upload-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 8px; color: var(--green); background: var(--tint); }
.search { display: flex; align-items: center; gap: .6rem; min-width: 0; padding: 0 .75rem; background: white; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.search > input { margin: 0 !important; padding: 0 !important; border: 0 !important; min-width: 0; }
.search:has(input:focus-visible) { outline: 2px var(--focus-ring-style) var(--focus-ring-color); outline-offset: 2px; }
.search input:focus { outline: 0; }
.filter-row { display: flex; overflow-x: auto; gap: .3rem; padding: .16rem; margin: -.16rem -.16rem 1rem; }
.chip { min-height: 44px; flex: 0 0 auto; border: 1px solid transparent; padding: .45rem .75rem; border-radius: 7px; background: transparent; color: var(--muted); font-size: .875rem; }
.chip.active, .chip:hover { border-color: var(--line); background: white; color: var(--green); }
.project-controls { display: grid; gap: .65rem; margin-bottom: .9rem; }
.project-controls .filter-row { flex-wrap: wrap; overflow: visible; scrollbar-width: none; }
.project-controls .filter-row::-webkit-scrollbar { display: none; }
.workspace-copy-intro { max-inline-size: 68ch; margin-block: 0 .75rem; overflow-wrap: anywhere; white-space: pre-line; }
:is(#project-list, #share-pages-list) .empty-state { overflow-wrap: anywhere; }
.project-controls .chip span { color: var(--muted); }
#project-type-filters { flex-wrap: nowrap; margin: -.375rem; padding: .375rem; overflow-x: auto; overscroll-behavior-inline: contain; }
#project-type-filters .chip { flex: none; white-space: nowrap; }
.project-type-count { font-variant-numeric: tabular-nums; }
.project-list { display: grid; gap: .5rem; container-type: inline-size; }
.project-list:has(.project-row-status :is(.revision_requested,.revision_in_progress)) { --project-status-width: 9.5rem; }
.project-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) var(--project-status-width,7.25rem) 6rem 6.5rem clamp(8rem,18cqi,12.25rem);
  grid-template-areas: "title status progress date photos";
  align-items: center;
  gap: .85rem;
  min-height: 80px;
  padding: .5rem .75rem .5rem 2.4rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.project-row:hover { border-color: #5e9278; background: #fbfdfc; }
.project-row-identity { grid-area: title; display: grid; justify-items: start; gap: .26rem; min-width: 0; }
.project-row-title { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-row-service { max-width: 100%; padding: .16rem .4rem; border-radius: 5px; background: var(--tint); color: var(--green); font-size: .7rem; line-height: 1.25; overflow-wrap: anywhere; }
.project-row-queue { display: grid; gap: .1rem; max-inline-size: 100%; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.project-row-queue > span { min-inline-size: 0; }
.project-row-status { grid-area: status; min-inline-size: 0; overflow-wrap: anywhere; }
.project-row-status :is(.revision_requested,.revision_in_progress) { white-space: nowrap; }
.project-row-progress { grid-area: progress; display: grid; gap: .35rem; color: var(--muted); font-size: .8125rem; }
.project-row-progress progress { width: 100%; height: .4rem; margin: 0; }
.project-row-date { grid-area: date; display: grid; min-inline-size: 0; gap: .1rem; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.project-row-date small { font-size: .75rem; }
.project-row-images { grid-area: photos; display: flex; justify-content: flex-end; align-items: center; gap: .2rem; }
.project-row-images img { width: calc((100% - .4rem) / 3); height: 60px; object-fit: cover; border-radius: 5px; }
.project-row-images img:nth-of-type(n+4), .project-row-details { display: none; }
.project-ribbon { z-index: 1; position: absolute; top: 0; left: 0; width: 3.15rem; height: 3.15rem; overflow: hidden; color: #fff; pointer-events: none; }
.project-ribbon > span { position: absolute; display: block; left: -1.22rem; top: .65rem; width: 4.9rem; padding: .1rem 0; transform: rotate(-45deg); text-align: center; background: var(--green); font-size: .62rem; font-weight: 750; line-height: 1.3; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.photo-card { container: photo-card / inline-size; min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.photo-card.selected { border-color: #5e9278; box-shadow: 0 0 0 1px #5e9278; }
.photo-select-card { display: block; width: 100%; padding: 0; text-align: left; color: var(--ink, #1d302a); transition: background-color 160ms ease, border-color 160ms ease; }
.photo-select-card .photo-preview { display: block; }
.photo-select-card .photo-preview > svg { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.photo-select-card:not(.selected) { background: #f0f1f0; color: var(--muted); }
.photo-select-card:not(.selected) .photo-preview { background: #e8eae8; }
.photo-select-card:not(.selected) :is(img,.photo-status) { filter: grayscale(1); }
.photo-select-card:not(.selected) img { opacity: .56; }
.photo-select-card:not(:disabled):hover { border-color: #78a58b; }
.photo-selection-mark { position: absolute; top: .45rem; left: .45rem; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #718379; border-radius: 50%; background: #fff; color: transparent; }
.selected .photo-selection-mark { color: white; background: var(--green); border-color: white; }
.photo-selection-mark svg { width: 17px; height: 17px; }
.photo-select-card:disabled .photo-selection-mark { display: none; }
.photo-preview { position: relative; aspect-ratio: 4/3; background: #fff; border-bottom: 1px solid var(--line); }
.photo-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.status-badge { display: inline-block; border-radius: 6px; padding: .28rem .5rem; font-size: .75rem; font-weight: 600; background: #edf2ef; color: #3f564b; }
.status-badge.succeeded { background: #dff2e4; color: #255b3a; }
.status-badge.active, .status-badge.revision_in_progress { background: #e5edf9; color: #294d78; }
.status-badge.revision_requested, :is(.photo-status, .project-row-status)[data-status="queued"] .status-badge { background: #f5ecd8; color: #735623; }
.status-badge.failed, .status-badge.review { background: #f9e9e5; color: #8d3c31; }
.photo-status { position: absolute; top: .65rem; right: .65rem; max-inline-size: calc(100% - 1.3rem); overflow-wrap: anywhere; pointer-events: none; }
.photo-info { display: flex; align-items: center; justify-content: space-between; gap: .25rem; min-height: 52px; padding: .25rem .4rem .25rem .75rem; }
.photo-info strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.photo-name { display: grid; flex: 1; gap: .1rem; min-width: 0; text-align: left; }
.photo-name small { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.photo-download, .photo-versions { flex-shrink: 0; color: var(--green); }
.photo-info.has-versions { padding-inline: .25rem; }
@container photo-card (max-width: 9rem) {
  .photo-info.has-versions { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .photo-info.has-versions .photo-download { grid-column: 2; justify-self: end; }
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  #photo-grid {
    --photo-action-size: 44px;
    --photo-switch-width: 5rem;
    --photo-action-card-width: calc(2 * var(--photo-action-size) + var(--photo-switch-width) + 2px);
    --photo-column-width: calc((100% - 2rem) / 3);
  }
  #photo-grid:has(.photo-download) {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--photo-column-width), var(--photo-action-card-width))), 1fr));
  }
  #photo-grid .photo-info {
    position: relative;
    display: grid;
    grid-template-columns: var(--photo-action-size) minmax(0, 1fr) var(--photo-action-size);
    min-height: 0;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  #photo-grid .photo-info strong, #photo-grid .photo-name:not(:has(small)) {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #photo-grid .photo-name:has(small) { grid-area: 2 / 1 / auto / -1; padding: .2rem .45rem; }
  #photo-grid .photo-info .photo-versions { grid-area: 1 / 1; }
  #photo-grid .photo-info .photo-download { grid-area: 1 / 3; }
  #photo-grid .photo-info .photo-comparison-controls:not([hidden]) {
    grid-area: 1 / 2;
    align-items: center;
    min-block-size: 0;
    padding: 0;
  }
  #photo-grid .photo-comparison-controls .mobile-compare-toggle:not([hidden]) {
    inline-size: min(100%, var(--photo-switch-width));
    min-inline-size: 0;
    font-size: .625rem;
    padding: 1px;
    border: 0;
    background: transparent;
  }
  #photo-grid .photo-comparison-controls .mobile-compare-toggle::after {
    content: ''; position: absolute; z-index: -2; inset: 7px 0; border: 1px solid var(--line);
    border-radius: inherit; background: var(--tint); pointer-events: none;
  }
  #photo-grid .photo-comparison-controls .mobile-compare-toggle::before { inset-block: 10px; }
  #photo-grid .photo-comparison-controls .mobile-compare-toggle > span { padding-inline: .12em; white-space: nowrap; }
}
#project-revision-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .75rem; margin: -.35rem 0 .65rem; }
#open-project-revision-history { gap: .35rem; min-height: 44px; text-align: start; white-space: normal; }
.photo-upload-card .photo-preview { background: #edf3ef; }
.photo-upload-card .photo-preview > svg { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); color: var(--muted); }
.photo-upload-card .photo-preview img { opacity: .75; }
.photo-upload-card .photo-info { min-height: 40px; }
.photo-upload-feedback { display: grid; gap: .25rem; padding: 0 .75rem .7rem; }
.photo-upload-feedback progress { display: block; height: .4rem; margin: 0; }
.photo-upload-status { margin: 0; overflow-wrap: anywhere; }
.photo-upload-actions { display: flex; flex-wrap: wrap; gap: .35rem .7rem; }
.empty-state { grid-column: 1 / -1; min-height: 132px; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 1.25rem; background: white; border: 1px dashed #b4c8ba; border-radius: var(--radius); color: var(--green); text-align: center; }
.empty-state p { color: var(--muted); font-size: .875rem; }

.photo-actions, .photo-selection-buttons, .action-buttons, .check-label { display: flex; align-items: center; gap: .65rem; }
.photo-actions { flex-wrap: wrap; margin: .75rem 0 1rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.photo-selection-buttons { flex-wrap: wrap; }
#toggle-photo-selection { min-width: 7.5rem; }
.action-buttons { margin-left: auto; }
#detail-view :is(.photo-selection-buttons, .action-buttons) { flex-wrap: wrap; align-items: stretch; min-inline-size: 0; max-inline-size: 100%; }
#detail-view :is(.photo-actions, .info-strip) .button { max-inline-size: 100%; white-space: normal; text-align: center; }
#project-retouch-queue > div { min-inline-size: 0; overflow-wrap: anywhere; }
#project-retouch-queue-counts { font-weight: 650; }
#project-retouch-queue-ahead { margin-block-start: .2rem; }
#selected-count { font-size: .875rem; }
#selected-expired-originals { margin: -.55rem 0 .8rem; overflow-wrap: anywhere; }
@media (max-width: 700px), (max-height: 700px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
  #detail-view .photo-actions { container: project-photo-actions / inline-size; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(3px,.8vw,6px); }
  #detail-view .photo-actions[data-selecting] { grid-template-columns: minmax(0,1fr) minmax(0,max-content); }
  #detail-view .photo-selection-buttons { grid-column: 1; flex-wrap: nowrap; align-items: center; gap: inherit; }
  #detail-view .action-buttons { grid-column: -2; justify-self: end; inline-size: max-content; margin-inline-start: 0; }
  #detail-view .photo-actions .button { min-inline-size: 44px; padding: .3em 6px; font-size: .8125rem; line-height: 1.2; overflow-wrap: anywhere; }
  #detail-view #toggle-photo-selection { min-width: 44px; }
  #detail-view [data-selecting] #toggle-photo-selection { gap: .3em; }
  #detail-view [data-selecting] #cancel-photo-selection { flex: none; white-space: nowrap; }
  #detail-view .photo-actions[data-selecting] .button { font-size: min(.8125rem, max(13px, 6cqi)); }
  #detail-view [data-selecting] .action-buttons { max-inline-size: min(100%,41cqi); }
  #toggle-photo-selection-icon svg { inline-size: 1em; block-size: 1em; }
  #detail-view #download-project-photos > [data-icon] { display: none; }
  #detail-view .photo-actions:not([data-selecting]) .button { padding-inline: min(.9rem,6cqi); }
  @container project-photo-actions (max-width: 15rem) {
    #detail-view .photo-actions[data-selecting] .button { padding-inline: 3px; }
  }
}
.photo-preview > button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; }
.photo-preview > button:not([data-comparison-state="loading"]) { background: transparent; }
.photo-preview > button:disabled { color: var(--muted); }
.thumbnail-before, .thumbnail-divider, .thumbnail-label { visibility: hidden; pointer-events: none; }
.thumbnail-before { background: white; clip-path: inset(0 calc(100% - var(--thumbnail-split, 50%)) 0 0); }
.thumbnail-divider { position: absolute; inset: 0 auto 0 var(--thumbnail-split, 50%); width: 2px; background: white; box-shadow: 0 0 4px #18332b80; }
.thumbnail-label { position: absolute; bottom: .55rem; padding: .25rem .45rem; border-radius: 5px; background: #18332be6; color: white; font-size: .75rem; }
.thumbnail-label.before { left: .55rem; }
.thumbnail-label.after { right: .55rem; }
@media (any-hover: hover) {
  .thumbnail-compare.compare-ready:not([data-mobile-comparison]):hover { cursor: ew-resize; }
  .thumbnail-compare.compare-ready:not([data-mobile-comparison]):hover :is(.thumbnail-before, .thumbnail-divider, .thumbnail-label) { visibility: visible; }
}

.workspace-list { display: grid; gap: .75rem; }
.workspace-panel, .workspace-item { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.workspace-item { display: flex; align-items: center; gap: .85rem; }
.workspace-item > div { flex: 1; min-width: 0; }
.workspace-item p { color: var(--muted); margin-top: .25rem; }
.workspace-item h2 { overflow-wrap: anywhere; }
#partners-items { container: partner-list / inline-size; }
.partner-card { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, max-content); align-items: start; }
.partner-card-information, .partner-introduction { overflow-wrap: anywhere; }
.partner-card-actions { display: flex; flex-wrap: wrap; align-self: center; justify-content: end; gap: .4rem; }
.partner-card-actions .button { white-space: normal; text-align: center; overflow-wrap: anywhere; }
.partner-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-block-start: .4rem; }
.partner-tags:empty { display: none; }
.partner-tags .pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.partner-card.is-coming-soon, #partner-view.is-coming-soon .partner-introduction { background: var(--coming-soon-surface); border-color: var(--coming-soon-line); }
.partner-card.is-coming-soon .stat-icon { color: var(--coming-soon-ink); background: var(--coming-soon-media); }
.partner-card.is-coming-soon .button { color: var(--coming-soon-ink); border-color: var(--coming-soon-line); }
.partner-card.is-coming-soon .button:hover { background: var(--coming-soon-media); }
.partner-detail-heading { align-items: flex-start; }
.partner-introduction { max-inline-size: 75ch; white-space: pre-wrap; line-height: 1.65; }
.partner-back { margin-block-start: .5rem; }
@container partner-list (max-width: 40rem) {
  .partner-card { grid-template-columns: auto minmax(0, 1fr); row-gap: .55rem; }
  .partner-card-actions { grid-column: 2; justify-content: start; }
}
.profile-links, .profile-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.profile-links { max-width: 42rem; }
.profile-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; }
.profile-link:hover, :root:not([data-pointer-focus]) .profile-link:focus-visible { border-color: #a6acb0; background: #f7f8f9; }
.profile-link p { margin-top: .15rem; }
.profile-link > div { min-inline-size: 0; overflow-wrap: anywhere; }
.profile-link-arrow { color: var(--green); font-weight: 700; }
#profile-account-view { max-width: 68rem; }
.security-settings { display: grid; gap: .85rem; max-width: 52rem; }
.security-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65rem 1rem; }
.security-setting p { margin-top: .2rem; overflow-wrap: anywhere; }
.security-setting > .button { max-inline-size: 100%; white-space: normal; text-align: center; }
#security-email-value { color: var(--green); }
#security-status:empty { display: none; }
@media (max-width: 480px) {
  .security-setting { grid-template-columns: minmax(0, 1fr); }
  .security-setting .button { justify-self: start; }
}
.profile-panel-heading { display: flex; align-items: center; gap: .28rem; min-height: 44px; margin: 0 0 .875rem; }
.profile-panel-heading h2 { min-inline-size: 0; overflow-wrap: anywhere; }
#profile-email-preferences-fields { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; min-inline-size: 0; gap: .6rem; padding: 0; border: 0; margin: 0; }
.profile-email-choice { display: flex; align-items: center; gap: .65rem; min-block-size: 44px; cursor: pointer; overflow-wrap: anywhere; }
.profile-email-choice input { margin: 0; }
#profile-email-preferences-fields .button { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
#profile-email-preferences-status:not(:empty) { margin-block-start: .65rem; }
#profile-contact-summary { row-gap: .85rem; margin: 0; }
#profile-contact-summary div { min-width: 0; }
#profile-contact-summary dt { color: var(--muted); font-size: .825rem; }
#profile-contact-summary dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
#profile-delivery-view { max-width: 76rem; }
#delivery-form { margin-top: 1rem; }
#delivery-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.delivery-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.delivery-panel { --delivery-panel-padding: clamp(.85rem, 2vw, 1.25rem); padding: var(--delivery-panel-padding); }
.delivery-panel-heading { min-height: 27px; margin-bottom: .75rem; }
#delivery-form .button { max-inline-size: 100%; white-space: normal; text-align: center; }
.delivery-defaults-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(10rem, .65fr); gap: .8rem 1.1rem; }
.watermark-settings { min-width: 0; padding: 0; margin: 0; border: 0; }
.delivery-format h3, .watermark-settings legend { padding: 0; font-size: .875rem; font-weight: 700; }
.delivery-format-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; margin-top: .38rem; }
.delivery-format-choices label { display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 7px; font-size: .8125rem; line-height: 1.25; overflow-wrap: anywhere; cursor: pointer; }
.delivery-format-choices label:has(:checked) { border-color: #77a08b; background: var(--tint); color: var(--green); }
.delivery-format-choices label:has(:disabled) { background: #f5f7f6; color: var(--muted); cursor: not-allowed; }
.delivery-format-choices input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; }
.delivery-watermark-choice { position: relative; display: grid; min-inline-size: 0; }
.delivery-watermark-guide { position: absolute; inset: 0; padding: 0; border: 0; border-radius: 7px; background: transparent; }
.delivery-watermark-guide:focus-visible { outline-offset: -3px; }
.delivery-web-edge { min-width: 0; }
#web-preview-size { display: none; }
.number-stepper { display: grid; grid-template-columns: min(2.75rem, 31%) minmax(0, 1fr) min(2.75rem, 31%); width: min(100%, 13rem); margin-top: .38rem; border: 1px solid #bfcfc5; border-radius: 8px; background: white; }
.number-stepper .button { min-width: 0; min-height: 44px; padding: 0; border: 0; background: #f5f8f6; border-radius: 0; font-size: 1.1rem; }
.number-stepper .button:first-child { border-radius: 7px 0 0 7px; }
.number-stepper .button:last-child { border-radius: 0 7px 7px 0; }
.number-stepper .button:not(:disabled):hover { background: var(--tint); }
.number-stepper :is(input, .button):focus-visible { outline-offset: -3px; }
.number-stepper input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: .3rem .15rem; border: 0; border-inline: 1px solid var(--line); border-radius: 0; text-align: center; font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; appearance: textfield; }
.number-stepper input::-webkit-inner-spin-button, .number-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.watermark-editor { display: grid; grid-template-areas: "logo preview" "controls preview"; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: .85rem clamp(.9rem, 2vw, 1.4rem); }
.watermark-logo-settings { grid-area: logo; display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.watermark-logo-settings[data-upload-highlight] { border-radius: 8px; background: var(--tint); box-shadow: 0 0 0 3px #77ab8d55; }
@media (prefers-reduced-motion: no-preference) {
  .watermark-logo-settings[data-upload-highlight] { animation: watermark-upload-highlight 2200ms ease-out both; }
}
@keyframes watermark-upload-highlight {
  55% { background: var(--tint); box-shadow: 0 0 0 3px #77ab8d55; }
  100% { background: transparent; box-shadow: none; }
}
.watermark-logo-copy { flex: 1 1 9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; min-width: 0; }
.watermark-logo-description { flex: 1 1 12rem; min-width: 0; }
.watermark-logo-copy h3, #watermark-preview-title { font-size: .925rem; }
.watermark-logo-copy p { margin-top: .2rem; }
.watermark-logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; }
#watermark-logo-card { display: grid; justify-items: center; gap: .25rem; }
#watermark-logo-image { width: 6rem; height: 4rem; padding: .55rem; object-fit: contain; border-radius: 6px; background: #315044; }
.watermark-controls { grid-area: controls; container: watermark-controls / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: .85rem; overflow-wrap: anywhere; }
.watermark-settings legend { color: var(--green); }
.watermark-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .65rem .75rem; margin-top: .35rem; }
.watermark-field-label { display: flex; align-items: center; min-height: 27px; }
@media (pointer: coarse) { .watermark-field-label { min-height: 30px; } }
.watermark-placement { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.watermark-placement .watermark-position-field > select { min-inline-size: 0; margin: .38rem 0 0; }
.watermark-inset-unit { display: inline-block; max-inline-size: 100%; }
@supports not (grid-template-rows: subgrid) {
  .watermark-field-grid > .aligned-field { grid-template-rows: auto auto; }
  .watermark-placement .aligned-field > label { min-block-size: 2lh; }
}
.watermark-preset { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.watermark-preset-action { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; min-inline-size: 0; max-inline-size: 100%; }
#apply-watermark-defaults { min-inline-size: 0; overflow-wrap: anywhere; }
#apply-watermark-defaults img { display: none; flex: none; }
#watermark-preset-status { min-inline-size: 0; max-inline-size: 100%; margin: 0; }
#watermark-preset-status:empty { position: absolute; }
#watermark-preset-status:not(.error) { color: var(--green); }
#watermark-preset-description { flex: 1 1 12rem; }
#watermark-size-limit { grid-column: 1 / -1; margin-top: -.35rem; }
#watermark-size-limit a { text-decoration: underline; text-underline-offset: .12em; }
#watermark-size-warning { border-color: #dfbc6b; background: #fff3cc; color: #724800; }
#watermark-size-warning:is(:hover, [aria-expanded="true"]) { border-color: #b48a3d; background: #ffe6a3; }
body:has(#watermark-size-warning[aria-expanded="true"]) #context-help-popover { inline-size: max-content; }
#watermark-size-status { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#watermark-preview { grid-area: preview; position: sticky; top: 5rem; min-width: 0; margin: 0; padding: .75rem; border-radius: 8px; background: #f3f7f4; }
#watermark-preview > figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .15rem .5rem; margin-bottom: .55rem; }
#watermark-preview-title { min-inline-size: 0; overflow-wrap: anywhere; }
.watermark-preview-image { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: #dce5de; }
.watermark-preview-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#watermark-preview-handle { position: absolute; cursor: grab; touch-action: none; user-select: none; }
#watermark-preview-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: max(100%, 2.75rem); height: max(100%, 2.75rem); transform: translate(-50%, -50%); border-radius: 4px; }
#watermark-preview-handle:is(:hover, [data-dragging], [data-show-outline])::after { outline: 1px dashed white; box-shadow: 0 0 0 1px #102019a6; }
#watermark-preview-handle[data-dragging] { cursor: grabbing; }
#watermark-preview-logo { width: 100%; height: 100%; object-fit: fill; }
#watermark-preview-drag-cue { display: none; position: absolute; left: calc(50% - 6px); top: calc(50% - 5px); z-index: 1; width: 28px; height: 28px; pointer-events: none; }
#watermark-preview-drag-cue svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #f7fff9; stroke: #153f35; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: 0; filter: drop-shadow(0 1px 2px #10201970); }
@media (prefers-reduced-motion: no-preference) {
  #watermark-preview-handle[data-drag-demo] { animation: watermark-preview-demo-logo 4400ms ease-in-out both; }
  #watermark-preview-handle[data-drag-demo] #watermark-preview-drag-cue { display: block; animation: watermark-preview-demo-cursor 4400ms ease-in-out both; }
  #watermark-preview-handle[data-drag-demo] .watermark-drag-pointer { animation: watermark-preview-demo-pointer 4400ms steps(1) both; }
  #watermark-preview-handle[data-drag-demo] .watermark-drag-hand { animation: watermark-preview-demo-hand 4400ms steps(1) both; }
  #watermark-preview-handle[data-drag-demo] .watermark-drag-grip { animation: watermark-preview-demo-grip 4400ms steps(1) both; }
}
@keyframes watermark-preview-demo-logo {
  0%, 25%, 100% { transform: translate(0, 0); }
  40%, 86% { transform: translate(var(--watermark-demo-x), var(--watermark-demo-y)); }
}
@keyframes watermark-preview-demo-cursor {
  0% { transform: translate(calc(var(--watermark-demo-x) * 1.65), calc(var(--watermark-demo-y) * 1.65)); opacity: 0; }
  5% { opacity: 1; }
  17%, 48% { transform: translate(0, 0); opacity: 1; }
  54%, 100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes watermark-preview-demo-pointer { 0% { opacity: 1; } 17%, 100% { opacity: 0; } }
@keyframes watermark-preview-demo-hand { 0%, 25% { opacity: 0; } 17%, 40%, 100% { opacity: 1; } }
@keyframes watermark-preview-demo-grip { 0%, 40%, 100% { opacity: 0; } 25% { opacity: 1; } }
#watermark-preview-caption { margin-top: .45rem; }
.delivery-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .5rem 1rem; }
#delivery-status { flex: 1 1 12rem; }
#delivery-status:empty { display: none; }
@media (max-width: 1170px) {
  .watermark-placement { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watermark-placement > .watermark-position-field { grid-column: 1 / -1; }
}
@container watermark-controls (max-width: 14rem) {
  .watermark-field-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1090px) {
  .delivery-defaults-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-defaults-grid > .delivery-web-edge { grid-template-columns: minmax(0, 1fr) minmax(0, min(60%, 11rem)); grid-template-rows: auto; grid-row: auto; grid-column: 1 / -1; align-items: center; gap: .5rem; padding-top: .65rem; border-top: 1px solid var(--line); }
  .delivery-web-edge-controls { display: contents; }
  .delivery-web-edge .number-stepper { margin: 0; }
}
@media (max-width: 960px) {
  .watermark-editor { display: block; }
  #watermark-preview { z-index: 1; width: min(100%, 30rem, 36svh); margin: .85rem auto; }
  #web-preview-size:not(:empty) { display: block; grid-column: 1 / -1; font-size: .75rem; }
}
@media (max-width: 700px) {
  .watermark-logo-settings, .watermark-logo-copy { display: grid; grid-template-columns: minmax(0, 1fr); }
  .watermark-logo-copy { grid-row: 1; }
  .watermark-logo-description h3 { display: none; }
  .watermark-logo-description p { margin-top: 0; }
  #choose-watermark-logo { inline-size: 100%; min-block-size: 58px; padding-inline: .65rem; }
  #choose-watermark-logo svg { inline-size: 28px; block-size: 28px; }
  #watermark-logo-card { justify-self: start; }
  #watermark-preview { position: static; width: auto; margin-inline: calc(-1 * var(--delivery-panel-padding)); padding-inline: 0; }
  #watermark-preview > figcaption, #watermark-preview-caption { padding-inline: var(--delivery-panel-padding); text-align: center; }
  #watermark-preview > figcaption { justify-content: center; }
  #watermark-preview-caption { font-size: .75rem; }
  #apply-watermark-defaults img { display: block; }
  #watermark-preset-description { display: none; }
  .watermark-settings legend { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .watermark-field-grid { margin-block-start: 0; }
  #watermark-size-limit { font-size: min(.875rem, 6cqi); white-space: nowrap; }
}
@media (max-width: 960px) and (max-height: 600px) {
  #watermark-preview { position: static; }
}
@media (max-width: 570px) {
  .delivery-defaults-grid { grid-template-columns: minmax(0, 1fr); }
  .delivery-actions .button { width: 100%; }
}
#remove-watermark-status:not(:empty) { margin-top: .6rem; }
#profile-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
#profile-fields legend { padding: 0; margin-bottom: .85rem; font-weight: 650; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.profile-card-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content); align-items: start; gap: .45rem .8rem; margin-block-end: .85rem; }
.profile-photo { display: flex; align-items: center; gap: .65rem; min-inline-size: 0; }
.profile-photo h2 { min-inline-size: 0; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.profile-photo-preview { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--tint); color: var(--green); }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview svg { width: 22px; height: 22px; }
.profile-card-actions, #profile-edit-actions { display: flex; flex-wrap: wrap; align-items: start; justify-content: flex-end; gap: .35rem; min-inline-size: 0; }
.profile-card-actions .button, #profile-edit-actions .button, #profile-photo-edit :is(.button, .text-button) { max-inline-size: 100%; min-block-size: 44px; white-space: normal; overflow-wrap: anywhere; }
#profile-photo-edit { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; margin-block-end: .85rem; }
#profile-photo-edit > .profile-contact-actions { margin: 0; }
#profile-photo-upload-hint { min-inline-size: 0; overflow-wrap: anywhere; }
#profile-status:not(:empty) { margin-block-end: .75rem; }
.profile-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin-top: .5rem; }
#profile-form { container: profile-form / inline-size; }
@container profile-form (max-width: 19rem) {
  .profile-card-header { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  #profile-form:has(#profile-photo-edit:not([hidden])) .profile-card-header { grid-template-columns: minmax(0, 1fr); }
  #profile-form:has(#profile-photo-edit:not([hidden])) .profile-photo-preview {
    --profile-edit-photo-size: clamp(80px, 24vw, 104px);
    flex: 0 0 var(--profile-edit-photo-size); inline-size: var(--profile-edit-photo-size); block-size: var(--profile-edit-photo-size);
  }
  #profile-form:has(#profile-photo-edit:not([hidden])) .profile-photo-preview svg { inline-size: 36px; block-size: 36px; }
  #profile-photo-edit #choose-profile-avatar { min-inline-size: min(100%, 10rem); min-block-size: 52px; }
  #profile-form > #profile-edit-actions { margin-block-start: .65rem; }
}
:is(.profile-contact-actions, .contact-template-agent-actions) > .button, #add-profile-phone { max-inline-size: 100%; white-space: normal; text-align: center; }
.profile-phones, .contact-template-details { min-width: 0; padding: 0; margin: .25rem 0 1rem; border: 0; }
.profile-phone-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; align-items: end; gap: .6rem; }
.profile-phone-row .text-button { min-width: 44px; margin-bottom: .7rem; padding-inline: .4rem; }
.contact-template-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding: .25rem; margin: 0 0 1rem; border-radius: 9px; background: var(--tint); }
.contact-template-tabs [role="tab"] { min-block-size: 44px; min-inline-size: 0; padding: .2rem; border: 1px solid transparent; border-radius: 7px; color: var(--green); background: transparent; font-size: .82rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-template-tabs [role="tab"]:hover { background: #e0ece4; }
.contact-template-tabs [aria-selected="true"] { border-color: #c4d9cc; background: white; box-shadow: 0 1px 3px #164a3a18; }
.contact-template-tabs [aria-selected="true"]:hover { background: white; }
#contact-template-empty { display: grid; place-items: center; min-height: 6.5rem; padding: .75rem; border: 1px dashed #bccfc3; border-radius: 8px; }
.contact-template-actions:has(button:not([hidden])) { margin: 0 0 .8rem; }
#contact-template-form { margin-top: 1rem; }
.contact-template-editor-head, .contact-template-agent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; }
.contact-template-editor-head { justify-content: space-between; margin-bottom: .75rem; }
.contact-template-agent-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; align-items: start; }
.contact-template-agent-grid[data-two-agents] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-template-agent-grid[data-two-agents] .profile-grid { grid-template-columns: minmax(0, 1fr); }
.contact-template-agent { min-width: 0; margin: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 9px; }
.contact-template-agent > legend { padding: 0 .28rem; color: var(--green); font-size: .875rem; font-weight: 650; }
.contact-agent-avatar { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-block-start: .45rem; }
.contact-agent-avatar :is(.button, .text-button) { min-block-size: 44px; max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
.contact-agent-avatar [role="status"] { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }
.contact-agent-avatar [role="status"]:empty { display: none; }
#contact-templates-status:not(:empty), #contact-template-status:not(:empty), #remove-contact-template-status:not(:empty), #remove-profile-avatar-status:not(:empty) { margin-top: .65rem; }
.contact-template-details { margin-bottom: 0; border-top: 1px solid var(--line); padding-top: .6rem; }
.contact-template-details legend { padding-right: .4rem; font-size: .875rem; font-weight: 650; }
#contact-template-phones { display: grid; gap: .4rem; }
.contact-phone-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .55rem; min-block-size: 44px; margin: 0; padding: .42rem .55rem; border: 1px solid var(--line); border-radius: 7px; background: white; overflow-wrap: anywhere; cursor: pointer; }
.contact-phone-choice:hover, .contact-phone-choice:has(input:checked) { border-color: #83ad97; background: var(--tint); }
.contact-phone-choice:has(input:focus-visible) { outline: 2px var(--focus-ring-style) var(--focus-ring-color); outline-offset: 2px; }
.contact-phone-choice input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--green); }
.contact-phone-choice strong { color: var(--green); font-weight: 650; }
.contact-phone-choice small { display: block; color: var(--muted); font-weight: 400; }
.contact-template-preview { container-type: inline-size; }
#contact-templates-panel { container: contact-templates / inline-size; }
@container contact-templates (max-width: 11rem) {
  .contact-template-tabs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .contact-template-agent-grid[data-two-agents] { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .profile-phone-row { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-phone-row > label:first-child { grid-column: 1 / -1; }
}
#profile-status:not(:empty) { margin-top: .7rem; }
#subscription-view { container: subscription-layout / inline-size; }
.billing-account { padding: clamp(1rem, 2.5vw, 1.5rem); }
.billing-account > h2 { margin-bottom: .85rem; }
.billing-account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; }
.billing-account-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.billing-balance { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(min-content, 1fr) auto; gap: .9rem; padding: clamp(1rem, 2vw, 1.3rem); border-radius: 9px; background: #164a3a; color: white; }
.billing-balance-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
#wallet-balance-label { color: #d3ebe1; font-size: .875rem; }
#wallet-available { display: block; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#credit-help { flex: 0 0 auto; max-inline-size: 100%; background: #d5f6a7; color: #1c3927; border-color: transparent; white-space: normal; text-align: center; }
#credit-help:hover { background: #e6ffca; }
#credit-help:focus-visible { outline-color: white; }
#credit-help [data-icon] { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2347301c; }
#credit-help svg { width: 16px; height: 16px; }
.billing-membership { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem; min-width: 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 9px; }
.billing-membership .small { margin-top: .15rem; }
.billing-membership-details { container: billing-membership / inline-size; flex: 1 1 12rem; min-width: 0; }
.billing-membership-heading { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: .5rem; }
.billing-membership-heading .small { margin: 0; }
.billing-membership-rate { text-align: end; }
.billing-membership-rate .billing-credit-price { font-size: clamp(1rem, 1.35vw, 1.125rem); line-height: 1.15; }
@container billing-membership (max-width: 12.25rem) {
  .billing-membership-heading { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .billing-membership-rate { text-align: start; }
  .billing-membership-rate .billing-credit-price { white-space: normal; overflow-wrap: anywhere; }
}
.billing-loyalty { display: grid; gap: .48rem; min-width: 0; padding: .72rem 1rem; border: 1px solid var(--line); border-radius: 9px; background: #f8fbf9; }
.billing-loyalty-head, .billing-loyalty-points { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .65rem; }
.billing-loyalty-head strong { color: var(--green); font-size: .8125rem; }
.loyalty-level-guide h4 { margin: 0 0 .4rem; color: var(--green); font-size: .9rem; }
.loyalty-level-guide table { width: 100%; border-collapse: collapse; text-align: left; }
.loyalty-level-guide :is(th, td) { padding: .3rem .35rem; border-bottom: 1px solid var(--line); }
.loyalty-level-guide thead { color: var(--muted); font-size: .725rem; }
.loyalty-level-guide tbody th { font-weight: 650; }
.loyalty-level-guide tbody td { font-variant-numeric: tabular-nums; }
.loyalty-level-guide tr[aria-current="true"] { color: var(--green); background: #e1f1e6; font-weight: 650; }
.loyalty-level-guide p { margin-top: .5rem; color: var(--muted); line-height: 1.45; }
.billing-loyalty-progress { display: grid; gap: .18rem; font-variant-numeric: tabular-nums; }
#loyalty-meter { display: block; width: 100%; height: .4rem; accent-color: var(--green); }
.billing-credit-price { color: var(--green); font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.billing-choice-status { margin: -.45rem 0 .75rem; }
.subscription-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.plan-card { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; min-inline-size: 0; overflow-wrap: anywhere; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.plan-card .button { width: 100%; margin-top: auto; }
.plan-card.current { border-color: #729c85; background: #f6fbf7; box-shadow: inset 0 3px #729c85; }
.plan-heading { display: flex; width: 100%; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.plan-heading h3 { min-inline-size: 0; overflow-wrap: anywhere; }
.plan-card > .button { white-space: normal; text-align: center; }
.plan-current { display: inline-flex; align-items: center; gap: .25rem; max-inline-size: 100%; padding: .25rem .45rem; border-radius: 6px; background: #dceee2; color: var(--green); font-size: .75rem; font-weight: 700; }
.plan-current svg { width: 1rem; height: 1rem; }
.plan-price strong { font-size: 1.45rem; color: var(--ink, #15382e); }
.billing-plan-terms { margin: .7rem 0 1rem; }
#billing-page-status:not(:empty) { margin-bottom: 1rem; padding: .7rem .85rem; border-radius: 8px; background: #edf5ef; }
.billing-return-check { margin-bottom: 1rem; }
#billing-form { container: billing-checkout / inline-size; }
.billing-fields { min-width: 0; margin: 1rem 0 0; padding: 0; border: 0; }
.billing-fields legend { margin-bottom: .35rem; font-weight: 650; }
.billing-radio { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .5rem; min-height: 36px; padding-block: .35rem; }
.billing-radio input { flex: 0 0 auto; margin: .25em 0 0; }
.billing-renewal-consent { padding: .7rem; background: #f1f5f2; border-radius: 8px; }
.billing-renewal-price { margin-bottom: .6rem; }
.billing-renewal-price strong { color: var(--green); font-variant-numeric: tabular-nums; }
.billing-quantity-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .65rem; margin-bottom: .7rem; }
.billing-quantity-control { display: flex; align-items: center; gap: .45rem; padding: .3rem clamp(.55rem,2vw,.85rem); border: 1px solid #bfcfc5; border-radius: 8px; color: var(--muted); }
.billing-quantity-control:has(input:focus-visible) { outline: 2px var(--focus-ring-style) var(--focus-ring-color); outline-offset: 2px; }
#billing-quantity { flex: 1; min-width: 0; min-height: 44px; padding: .2rem 0; border: 0; background: transparent; color: var(--green); font-size: 1.25rem; font-weight: 700; }
#billing-quantity:focus { outline: none; }
.billing-unit-price { display: grid; align-content: center; gap: .13rem; padding: .3rem clamp(.55rem,2vw,.8rem); border: 1px solid #c9e0d1; border-radius: 8px; background: var(--tint); color: var(--green); font-size: .8rem; white-space: nowrap; }
.billing-unit-price strong { font-size: 1.05rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.billing-unit-price small { color: var(--muted); font-size: .73rem; }
.billing-quick-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 3.7rem), 1fr)); gap: .4rem; margin-bottom: .6rem; }
.billing-quick-amounts .button { padding-inline: .25rem; }
.billing-quick-amounts [aria-pressed="true"] { border-color: var(--green); background: #e7f3eb; }
.billing-topup-review { display: grid; gap: .65rem; margin: 1rem 0 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: #f7faf8; }
.billing-topup-review > div { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.billing-topup-review dt { min-width: 0; }
.billing-topup-review dd { margin: 0; color: var(--green); font-weight: 650; white-space: nowrap; }
.billing-topup-review small { display: block; color: var(--muted); }
.billing-review-due { padding-top: .65rem; border-top: 1px solid var(--line); font-weight: 700; }
.billing-review-due dd { font-size: 1.2rem; }
.billing-total { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-top: 1rem; padding: .7rem .85rem; border-radius: 8px; background: #edf5ef; }
.billing-total strong { font-size: 1.35rem; color: #15382e; }
@media (max-width: 420px) {
  .billing-quantity-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .billing-unit-price { white-space: normal; overflow-wrap: anywhere; }
  .billing-topup-review > div, .billing-total { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(50%); }
  .billing-topup-review dd, .billing-total strong { white-space: normal; overflow-wrap: anywhere; text-align: end; }
}
@container billing-checkout (max-width: 17rem) {
  .billing-quantity-row { grid-template-columns: minmax(0, 1fr); }
  .billing-unit-price { white-space: normal; overflow-wrap: anywhere; }
}
.billing-dialog-terms, #billing-invoice-hint, #billing-subscription-agreement, #billing-checkout-status:not(:empty), #billing-plan-status:not(:empty) { margin-top: .65rem; }
#billing-dialog .dialog-actions .button, #billing-plan-dialog .dialog-actions .button, .billing-membership .button { white-space: normal; text-align: center; }
.billing-plan-next { margin: .7rem 0 1rem; }
.billing-credit-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem .4rem; padding-top: .45rem; border-top: 1px solid #ffffff3d; }
.billing-credit-sources button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: center; gap: .15rem; min-width: 0; min-height: 44px; padding: .4rem .45rem; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; text-align: start; transition: background-color .15s, border-color .15s; }
.billing-credit-sources button:is(:focus-visible, [aria-expanded="true"]) { background: #ffffff16; border-color: #ffffff54; }
.billing-credit-sources button:focus-visible { outline-color: var(--focus-ring-on-dark); }
.billing-credit-sources button > span:first-child { grid-column: 1 / -1; font-size: .75rem; line-height: 1.25; color: #d3ebe1; overflow-wrap: anywhere; }
.billing-credit-sources button strong { font-size: 1.25rem; line-height: 1.15; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@supports (grid-template-rows: subgrid) {
  .billing-credit-sources button { grid-row: span 2; grid-template-rows: subgrid; }
}
.wallet-source-help { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #ffffff65; font-size: .65rem; font-weight: 700; line-height: 1; color: #edf8f1; }
.billing-credit-sources button[aria-expanded="true"] .wallet-source-help { background: #d5f6a7; border-color: transparent; color: #1d392a; }
.wallet-source-details { position: fixed; z-index: 24; inline-size: min(19rem, calc(100vw - 1.5rem)); max-block-size: min(20rem, calc(100dvh - 1.5rem)); overflow: auto; overscroll-behavior: contain; padding: .7rem .85rem; border: 1px solid #bcd5c6; border-inline-start: 3px solid #68a786; border-radius: 8px; background: #f8fcf9; color: #1d302a; box-shadow: 0 8px 24px #122c2040; font-size: .8rem; overflow-wrap: anywhere; }
.wallet-source-details:not([hidden]) { animation: wallet-source-in .14s ease-out both; }
.wallet-source-details h3 { margin: 0 0 .3rem; color: var(--green); font-size: .88rem; }
.wallet-source-details p + p, .wallet-source-details ul + p { margin-top: .35rem; }
.wallet-source-details ul { margin: .3rem 0 0; padding: 0; list-style: none; }
.wallet-source-details li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding: .22rem 0; border-bottom: 1px solid #d9e7df; }
.wallet-source-details li strong { color: var(--green); font-variant-numeric: tabular-nums; }
.wallet-source-details li small { display: block; margin-top: .1rem; color: var(--muted); }
.wallet-source-note { color: var(--muted); font-size: .72rem; line-height: 1.4; }
@keyframes wallet-source-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .billing-credit-sources button, .context-help-button { transition: none; }
  .wallet-source-details:not([hidden]), .context-help-popover:not([hidden]) { animation: none; }
}
.billing-expiry-warning { padding: .75rem; border: 1px solid #eac992; border-radius: 8px; background: #fff6e6; color: #65400d; }
.billing-plan-next .billing-expiry-warning { margin: .65rem 0; }
.billing-expiry-warning ul { display: grid; gap: .35rem; margin: .4rem 0 0; padding-inline-start: 1.15rem; }
.billing-expiry-warning strong { font-weight: 700; }
.billing-scheduled { margin-top: .35rem; padding: .65rem .7rem; border-radius: 8px; background: var(--tint); color: var(--green); }
.billing-scheduled strong { display: block; font-size: .875rem; }
.billing-scheduled .text-button { min-height: 40px; font-size: .8125rem; text-align: left; white-space: normal; }
.billing-scheduled .button { margin-top: .45rem; white-space: normal; }
@media (min-width: 1120px) {
  .subscription-plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 790px) {
  .billing-account-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .subscription-plan-grid { grid-template-columns: minmax(0, 1fr); }
}
@container subscription-layout (max-width: 49rem) {
  .subscription-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container subscription-layout (max-width: 28rem) {
  .subscription-plan-grid { grid-template-columns: minmax(0, 1fr); }
}
@container subscription-layout (max-width: 30rem) {
  .billing-account-grid { grid-template-columns: minmax(0, 1fr); }
}
@container subscription-layout (max-width: 14rem) {
  .billing-credit-sources { grid-template-columns: minmax(0, 1fr); }
}
@supports (grid-template-rows: subgrid) {
  @media (width > 480px) {
    .plan-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-items: start; }
  }
}
@media (hover: hover) {
  .plan-card:hover { border-color: #729c85; box-shadow: 0 7px 19px #183c2b12; }
  .plan-card.current:hover { box-shadow: inset 0 3px #729c85, 0 7px 19px #183c2b12; }
  .plan-card:hover .plan-current { background: #c8e6d7; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plan-card:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .plan-card { transition: none; }
}
.info-strip { display: flex; gap: .65rem; align-items: flex-start; margin: 1rem 0; padding: .8rem; border-radius: 8px; background: var(--tint); color: #35584a; font-size: .875rem; }
.admin-user { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; padding: .9rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-user > div { flex: 1; min-width: 130px; overflow-wrap: anywhere; }
.admin-user small, .admin-user p { color: var(--muted); font-size: .875rem; }
.admin-users { display: grid; gap: .65rem; }
.review-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

dialog { width: min(calc(100% - 1.5rem), 540px); max-height: calc(100dvh - 2rem); padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: white; box-shadow: 0 12px 40px #0e201d33; overscroll-behavior: contain; }
dialog::backdrop { background: #122720a6; }
#delivery-saved-dialog { width: min(calc(100% - 1.5rem), 26rem); padding: clamp(1.4rem, 6vw, 2.2rem); text-align: center; background: radial-gradient(ellipse at 50% 0, #e5f5e9 0%, var(--paper) 72%); }
#delivery-saved-dialog[open] { animation: welcome-arrival 260ms cubic-bezier(.2,.75,.3,1) both; }
.delivery-saved-check { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto .95rem; border-radius: 50%; background: var(--green); color: white; box-shadow: 0 4px 14px #184a3933; }
.delivery-saved-check svg { width: 1.75rem; height: 1.75rem; }
#delivery-saved-title { font-size: clamp(1.4rem, 5.8vw, 1.7rem); line-height: 1.2; color: var(--green); }
#delivery-saved-copy { margin-top: .55rem; }
#delivery-saved-dialog .button { min-width: 7.5rem; margin-top: 1.15rem; }
.celebration-dialog { container-type: inline-size; width: min(calc(100% - 24px),44rem,720px); max-inline-size: none; padding: 0; border-radius: 14px; background: var(--paper); overflow-wrap: anywhere; }
.celebration-illustration { block-size: clamp(78px,22.8cqi,164px); background: var(--green); overflow: hidden; }
.celebration-illustration svg { display: block; inline-size: 100%; block-size: 100%; }
.celebration-content { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: clamp(12px,3.5cqi,22px); padding: clamp(13px,3.2cqi,22px) clamp(15px,4cqi,28px); }
.celebration-copy { min-inline-size: 0; }
.celebration-copy h2 { color: var(--green); font-size: min(clamp(1.2rem,4cqi,1.75rem),7.2cqi); line-height: 1.15; }
.celebration-copy p { margin-block-start: .3em; font-size: min(.875rem,5.35cqi); line-height: 1.38; }
.celebration-copy > p:empty { display: none; }
.celebration-content > .button { min-inline-size: 64px; max-inline-size: 42cqi; padding: .48em .95em; font-size: min(.875rem,5.4cqi); white-space: normal; text-align: center; overflow-wrap: anywhere; }
.celebration-credit-art { position: relative; }
.welcome-credit-seal { position: absolute; inset-inline-end: clamp(12px,3.4cqi,24px); inset-block-end: clamp(7px,2.1cqi,14px); display: grid; place-items: center; inline-size: clamp(44px,11cqi,70px); aspect-ratio: 1; border: 1px solid #a7d4a8; border-radius: 50%; background: linear-gradient(150deg, #3d8467, #123b2e 85%); color: white; box-shadow: 0 3px 0 #102f26, 0 6px 16px #102f264a; font-size: clamp(16px,4.25cqi,28px); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; }
.welcome-credit-seal::before { position: absolute; inset: 7%; border: 1px solid #ffffff60; border-radius: inherit; content: ''; }
#welcome-credit-amount[data-digits="medium"] { font-size: clamp(11px,2.7cqi,19px); }
#welcome-credit-amount[data-digits="long"] { font-size: clamp(8px,1.75cqi,12px); }
#welcome-credits-source { color: var(--green); font-weight: 650; }
#welcome-credits-copy { color: var(--muted); }
.celebration-coil { opacity: 0; }
.celebration-tube { transform-box: fill-box; transform-origin: left center; }
.celebration-confetti-piece { transform-box: fill-box; transform-origin: center; }
.celebration-streamer { stroke-dasharray: 1; }
@media (prefers-reduced-motion: no-preference) {
  .celebration-dialog[open] { animation: welcome-arrival 300ms cubic-bezier(.2,.75,.3,1) both; }
  .celebration-dialog[open] .celebration-tube { animation: celebration-blow 570ms cubic-bezier(.25,.8,.26,1) 70ms both; }
  .celebration-dialog[open] .celebration-coil { animation: celebration-unroll 360ms ease-out both; }
  .celebration-dialog[open] .celebration-streamer { animation: celebration-ribbon 740ms ease-out var(--celebration-delay,285ms) both; }
  .celebration-dialog[open] .celebration-confetti-piece { animation: celebration-confetti-fly 720ms cubic-bezier(.16,.7,.34,1) var(--celebration-delay,395ms) both; }
}
@keyframes welcome-arrival { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes celebration-blow {
  0% { opacity: 0; transform: scale(.13,1.08); }
  30% { opacity: 1; transform: scale(.2,1.06) skewY(8deg); }
  69% { opacity: 1; transform: scale(1.04,.99) skewY(-1.5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes celebration-unroll { 0%,30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes celebration-ribbon {
  from { stroke-dashoffset: 1; opacity: 0; }
  20% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes celebration-confetti-fly {
  from { opacity: 0; transform: translate(var(--from-x),var(--from-y)) rotate(var(--spin)) scale(.2); }
  32% { opacity: 1; }
  78% { transform: translate(0,-3px) rotate(-9deg) scale(1.08); }
  to { opacity: 1; transform: none; }
}
.dialog-head, .dialog-actions { display: flex; align-items: center; gap: .6rem; }
.dialog-head { justify-content: space-between; margin-bottom: 1rem; }
.dialog-head .icon-button { margin: -.45rem -.45rem -.45rem 0; }
.dialog-actions { justify-content: flex-end; margin-top: 1.1rem; flex-wrap: wrap; }
.portal-page .dialog-head { align-items: flex-start; }
.portal-page .dialog-head > :not(.icon-button) { min-inline-size: 0; overflow-wrap: anywhere; }
.portal-page .dialog-actions { align-items: stretch; }
.portal-page .dialog-actions > [role="group"] { display: grid; min-inline-size: 0; }
.portal-page .dialog-actions .button { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.portal-page .dialog-actions > :is(.icon-button, .context-help-button) { align-self: center; }
#registration-code-copy, .password-reset-copy { margin-bottom: .85rem; overflow-wrap: anywhere; }
#registration-code-form input, #password-reset-code-form input { letter-spacing: .25em; font-variant-numeric: tabular-nums; }
#registration-resend, #password-reset-resend { margin-inline-end: auto; }
#password-reset-hint { margin: -.35rem 0 .7rem; }
.security-password-example, #confirm-current-password-copy, #email-change-demo-code, #verify-email-change-copy { margin-bottom: .8rem; overflow-wrap: anywhere; }
#new-password-hint { margin: -.45rem 0 .65rem; }
#verify-email-change-form input { letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.security-dialog-status:not(:empty) { margin-top: .5rem; }
.email-change-code-actions { display: flex; flex-wrap: wrap; gap: .25rem .8rem; }
.email-change-code-actions .text-button { justify-content: start; }
@media (max-width: 480px) {
  #registration-verify { flex-basis: 100%; }
}
.activity-ledger { container: credit-activity / inline-size; padding: clamp(.8rem, 2vw, 1.5rem); }
.activity-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .18rem; margin-bottom: 1rem; padding: .24rem; border-radius: 999px; background: var(--tint); }
.activity-categories button { min-height: 44px; min-width: 0; padding: .35rem .14rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .83rem; font-weight: 650; overflow-wrap: anywhere; transition: background-color 150ms, color 150ms; }
.activity-categories button:hover { background: #dfeee5; color: var(--green); }
.activity-categories button[aria-pressed="true"] { background: var(--green); color: white; }
.activity-filter-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .65rem 1rem; }
.activity-filter, #activity-date-fields { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; min-inline-size: 0; max-inline-size: 100%; }
.activity-filter label { min-width: 0; max-inline-size: 100%; }
.activity-filter label > input, .activity-filter label > select { min-width: 0; margin-bottom: 0; }
#activity-apply { min-height: 46px; }
.activity-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .65rem; margin: .9rem 0 .65rem; }
#activity-count { color: var(--green); font-weight: 650; }
.activity-entries { border-block-start: 1px solid var(--line); }
.activity-entry { min-width: 0; border-block-end: 1px solid var(--line); }
.activity-entry-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content) 44px; align-items: center; gap: .35rem clamp(.35rem, 2vw, .75rem); min-height: 67px; padding: .72rem .35rem; }
.activity-entry-main { display: grid; min-width: 0; gap: .2rem; overflow-wrap: anywhere; }
.activity-entry-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .05rem .55rem; color: var(--muted); font-size: .81rem; }
.activity-entry-meta span:not(:first-child)::before { content: '·'; margin-inline-end: .55rem; color: #83968c; }
.activity-entry-action { grid-column: 3; }
.activity-order > summary { list-style: none; cursor: pointer; border-radius: 6px; }
.activity-order > summary::-webkit-details-marker { display: none; }
.activity-order > summary:hover { background: #f3f8f5; }
.activity-order .activity-entry-action { display: grid; place-items: center; min-height: 44px; }
.activity-order-chevron { width: .45rem; height: .45rem; margin: 0 .1rem .16rem; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.activity-order[open] .activity-order-chevron { margin-block: .16rem 0; transform: rotate(225deg); }
.activity-order-facts { margin: 0 .35rem .72rem; padding: .65rem .8rem .15rem; border-radius: 7px; background: var(--tint); }
.activity-order-facts dl { display: grid; grid-template-columns: repeat(2,minmax(0,1.4fr)) repeat(2,minmax(0,1fr)); gap: .55rem 1rem; margin: .45rem 0 0; font-size: .875rem; overflow-wrap: anywhere; }
.activity-order-facts dt { color: var(--muted); }
.activity-order-facts dd { margin: .12rem 0 0; }
.activity-credit { grid-column: 2; justify-self: end; min-width: 0; color: #263831; font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; overflow-wrap: anywhere; }
.activity-credit.added { color: var(--green); }
.activity-credit-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.activity-footer { display: grid; justify-items: center; gap: .5rem; margin-top: .8rem; }
:is(.activity-filter-toolbar, .activity-footer) .button { max-inline-size: 100%; white-space: normal; text-align: center; }
.activity-invoice-button { border-color: var(--line); color: var(--green); }
.activity-invoice-button svg { width: 18px; height: 18px; }
#profile-invoice-form { max-inline-size: 52rem; }
.invoice-details-fields { container: invoice-details / inline-size; display: grid; gap: .65rem; min-inline-size: 0; margin: .85rem 0 0; padding: 0; border: 0; }
.invoice-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.invoice-details-fields :is(input,textarea) { margin-block: .25rem 0; }
.invoice-details-status:not(:empty) { margin-block-start: .65rem; }
.invoice-details-reset { margin-inline-end: auto; padding-inline: .15rem; text-align: start; }
@container invoice-details (max-width: 23rem) {
  .invoice-details-grid { grid-template-columns: minmax(0, 1fr); }
}
#invoice-preview-dialog { width: min(calc(100% - 1.5rem), 58rem); }
#invoice-preview-description { margin-top: .2rem; overflow-wrap: anywhere; }
#invoice-preview-frame { display: block; width: 100%; height: min(66dvh, 48rem); border: 1px solid var(--line); border-radius: 6px; background: var(--tint); }
#invoice-preview-actions { margin-top: .75rem; }
#invoice-resend-recipient, #invoice-resend-status:not(:empty) { margin-block-start: .65rem; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  #invoice-preview-dialog { padding: .9rem; }
  .activity-categories button { font-size: .77rem; }
}
@media (max-width: 360px) {
  .activity-categories { grid-template-columns: .85fr 1fr 1.25fr 1fr; }
  .activity-filter-toolbar { gap: .55rem; }
  #open-activity-export { padding-inline: .55rem; font-size: .8rem; }
}
@container credit-activity (max-width: 14rem) {
  .activity-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--radius); }
  .activity-entry-main { grid-column: 1 / -1; }
}
@container credit-activity (max-width: 8rem) {
  .activity-categories { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .activity-categories button { transition: none; }
}
@media screen {
  html:has(#share-view:not([hidden])) {
    --share-editor-fixed-height: calc(var(--share-editor-topbar-height, 64px) + var(--share-editor-toolbar-height, 0px));
    scroll-padding-block-start: calc(var(--share-editor-fixed-height) + .75rem);
  }
  #share-editor-toolbar {
    position: sticky; inset-block-start: var(--share-editor-topbar-height, 64px); z-index: 9;
    padding-block: .55rem; border-block-end: 1px solid var(--line); background: #f5f7f6;
    max-block-size: max(3.25rem, calc(75dvh - var(--share-editor-topbar-height, 64px)));
    overflow-y: auto; scrollbar-width: thin;
  }
  #share-editor-toolbar :focus-visible { outline-offset: -3px; }
  #share-heading { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  #share-editor-toolbar .button { min-inline-size: 0; max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}
.share-editor-grid { display: grid; grid-template-columns: minmax(0, min(360px, 48%)) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
#share-editor-form { min-inline-size: 0; container: share-editor-form / inline-size; }
#share-pages-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.share-page-row { min-inline-size: 0; }
.share-page-card {
  display: grid; grid-template-columns: clamp(60px, 20%, 112px) minmax(0, 1fr) 44px;
  gap: clamp(6px, 1.5vw, 14px); min-inline-size: 0; padding: clamp(8px, 1.5vw, 12px);
}
.share-page-card:hover { border-color: #9cb5a6; }
.share-page-card:hover .share-page-card-identity > strong { text-decoration: underline; text-underline-offset: .15em; }
.share-page-card-photo {
  position: relative; display: grid; place-items: center; min-block-size: 60px;
  overflow: hidden; border-radius: 7px; background: var(--tint); color: var(--green);
}
.share-page-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.share-page-card-body { display: grid; align-content: space-between; gap: .35rem; min-inline-size: 0; overflow-wrap: anywhere; }
.share-page-card-identity { display: grid; gap: .15rem; min-inline-size: 0; }
.share-page-card-arrow { display: grid; place-items: center; align-self: center; min-block-size: 44px; color: var(--green); }
#share-page-filters .chip { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
.share-page-state { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .25rem .45rem; min-inline-size: 0; text-align: end; }
.share-page-open-count { max-inline-size: 100%; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.share-page-state .status-badge { max-inline-size: 100%; }
.share-page-state .status-badge.unpublished { background: #f7ecd9; color: #704918; }
#copy-share-link { border-color: var(--line); background: var(--paper); color: var(--green); }
#copy-share-link:hover { background: var(--tint); }
#share-page-report-dialog { width: min(calc(100% - 1rem), 58rem); padding: clamp(.85rem, 2vw, 1.25rem); overflow-wrap: anywhere; }
#share-page-report-name { margin-block-start: .25rem; }
#share-page-report-dialog .dialog-head .icon-button { margin: 0; }
#share-page-report-dialog h4 { margin: .65rem 0 .2rem; font-size: 1rem; }
.share-page-report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-block-end: .65rem; }
.share-page-report-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-inline-size: 0; }
.share-page-report-tools > button { max-inline-size: 100%; white-space: normal; }
.share-page-report-head label { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .55rem; min-inline-size: 0; }
.share-page-report-head select { width: auto; max-inline-size: 100%; margin: 0; }
.share-report-metrics, .share-report-actions { gap: .5rem; margin: .5rem 0 .8rem; }
.share-report-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,9rem),1fr)); }
.share-report-actions { display: flex; flex-wrap: wrap; }
.share-report-metrics > div, .share-report-actions > div { display: grid; grid-template-rows: 1fr auto; min-inline-size: 0; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 7px; overflow-wrap: anywhere; }
.share-report-actions > div { grid-template-columns: minmax(0,1fr); max-inline-size: 100%; }
.share-report-actions dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-report-metrics > div { background: var(--tint); }
.share-report-metrics dd, .share-report-actions dd { margin: .2rem 0 0; color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.share-report-metrics dd { font-size: 1.35rem; }
.share-report-plot { --share-report-chart-height: clamp(6rem,16vw,9rem); display: grid; grid-template-columns: auto minmax(0,1fr); gap: .55rem; margin: .55rem 0 .75rem; }
.share-report-peak-summary { color: var(--green); overflow-wrap: anywhere; }
.share-report-scale { display: flex; flex-direction: column; justify-content: space-between; block-size: var(--share-report-chart-height); line-height: 1; text-align: end; font-variant-numeric: tabular-nums; }
.share-report-chart-area, .share-report-graph { position: relative; min-inline-size: 0; }
.share-report-chart-scroll { min-inline-size: 0; overflow-x: auto; overscroll-behavior-inline: contain; padding-block-end: .25rem; }
.share-report-series { min-inline-size: calc(var(--share-report-day-count) * max(3.4rem, 54px)); }
.share-report-plot svg { display: block; inline-size: 100%; block-size: var(--share-report-chart-height); }
.share-report-peak-marker { fill: var(--green); stroke: var(--paper); stroke-width: 1px; }
.share-report-point-targets { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--share-report-day-count),minmax(0,1fr)); }
.share-report-point-targets > button { min-inline-size: 0; padding: 0; border: 0; background: transparent; cursor: crosshair; }
.share-report-point-targets > button[data-active] { background: #267b6014; }
.share-report-point-targets > button:focus-visible { outline-offset: -3px; }
.share-report-tooltip { position: absolute; z-index: 1; display: grid; max-inline-size: min(100%,15rem); gap: .12rem; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--green); box-shadow: 0 3px 10px #173a2922; font-size: .75rem; line-height: 1.25; overflow-wrap: anywhere; pointer-events: none; }
.share-report-dates { display: grid; grid-template-columns: repeat(var(--share-report-day-count),minmax(0,1fr)); gap: .25rem 0; margin-block-start: .2rem; font-size: .75rem; line-height: 1.25; text-align: center; }
.share-report-dates time { display: grid; justify-items: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.share-report-dates [data-share-report-day-peak] { color: var(--green); font-weight: 700; }
.share-report-details > summary { min-block-size: 44px; cursor: pointer; }
.share-report-table { max-inline-size: 100%; max-block-size: 18rem; overflow: auto; overscroll-behavior-inline: contain; }
:is(.share-report-chart-scroll,.share-report-table):focus-visible { outline-offset: -3px; }
.share-report-table table { width: 100%; border-collapse: collapse; text-align: end; font-variant-numeric: tabular-nums; }
.share-report-table :is(th,td) { padding: .4rem .45rem; border-block-end: 1px solid var(--line); }
.share-report-table th:first-child { text-align: start; }
.share-report-table time, .share-report-band-range { white-space: nowrap; }
.share-report-band-range { display: block; font-size: .8em; font-weight: 400; }
[data-share-report-band-note] { margin-block-end: .4rem; }
.share-copy-field { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .4rem; margin-block-end: .55rem; }
.share-copy-field input { min-inline-size: 0; margin: 0; }
.share-clipboard-temp { position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 1px; block-size: 1px; padding: 0; opacity: 0; }
#share-pages-status:not(:empty), #create-share-page-status:not(:empty), #share-photo-picker-status:not(:empty) { margin-block: .65rem; overflow-wrap: anywhere; }
#create-share-address-field { margin-block-start: .35rem; }
#create-share-address-field .project-address-options { position: static; margin-block-start: .25rem; }
#create-share-address-field { margin-block-end: .9rem; }
.share-listing-options { margin: .35rem 0 .9rem; }
.share-listing-options input { width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid #bfcfc5; border-radius: 8px; background: var(--paper); color: inherit; }
.share-listing-options .company-options { position: static; margin: .25rem 0 0; }
#create-share-listing-status-field { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
#create-share-listing-status-field > :is(input, button) { grid-area: 1 / 1; }
#create-share-listing-status-field > input { min-inline-size: 0; padding-inline-end: 48px; }
#create-share-listing-status-field > .company-options { grid-area: 2 / 1; }
#clear-create-share-listing-status { justify-self: end; margin-inline-end: 1px; color: var(--muted); }
#clear-create-share-listing-status:focus-visible { outline-offset: -3px; }
#clear-create-share-listing-status svg { inline-size: 16px; block-size: 16px; }
.share-editor-actions, .share-photo-header { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.share-autosave { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; margin-block-end: .65rem; }
.share-autosave:has(#share-autosave-status:empty) { margin-block-end: 0; }
.share-autosave .error { margin: 0; }
#open-delete-share-page { color: #a12c2b; }
#delete-share-page-copy { overflow-wrap: anywhere; }
.share-photo-header { justify-content: space-between; margin-bottom: .35rem; }
#share-editor-fields { min-width: 0; padding: 0; border: 0; margin: 0; }
.share-editor-section + .share-editor-section { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.share-editor-section > h3 { margin-bottom: .65rem; }
.share-facts-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .45rem; }
.share-facts-fields label { min-width: 0; font-size: .78rem; }
.share-facts-fields [data-share-fact-icon] { display: flex; align-items: center; color: var(--green); }
.share-facts-fields input { padding-inline: .5rem; }
:is(#share-editor-form, .invoice-details-fields) textarea { display: block; width: 100%; padding: .65rem .75rem; border: 1px solid #bfcfc5; border-radius: 8px; font: inherit; font-weight: 400; line-height: 1.45; resize: vertical; }
#share-editor-form textarea { margin: .4rem 0 .9rem; }
.invoice-details-fields textarea { font-size: 1rem; }
#share-editor-form :is(input, textarea)::placeholder { color: #647069; opacity: 1; }
#share-editor-form textarea:focus::placeholder { color: transparent; }
#share-photo-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
@container share-editor-form (max-width: calc(184px + .45rem)) {
  #share-photo-slots { grid-template-columns: minmax(0, 1fr); }
}
.share-photo-slot { position: relative; min-width: 0; }
.share-photo-slot-button { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; width: 100%; padding: .35rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--green); text-align: left; font-size: .78rem; font-weight: 650; overflow-wrap: anywhere; }
.share-photo-slot-button:hover { border-color: #82a893; background: #f7fbf8; }
.share-photo-slot-image { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: var(--tint); }
.share-photo-slot-image img { width: 100%; height: 100%; object-fit: cover; }
:is(.share-photo-slot-remove, .share-more-photo-remove, .share-photo-slot-eye, .share-more-photo-drag) {
  position: absolute; inset-block-start: 0; display: grid; place-items: center; inline-size: 44px; block-size: 44px;
  padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--green);
}
:is(.share-photo-slot-remove, .share-more-photo-remove, .share-photo-slot-eye, .share-more-photo-drag)::before {
  content: ''; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
}
:is(.share-photo-slot-remove, .share-more-photo-remove, .share-photo-slot-eye, .share-more-photo-drag):hover { background: transparent; }
:is(.share-photo-slot-remove, .share-more-photo-remove, .share-photo-slot-eye, .share-more-photo-drag):hover::before { background: var(--tint); }
:is(.share-photo-slot-remove, .share-more-photo-remove, .share-photo-slot-eye, .share-more-photo-drag) svg { position: relative; inline-size: 16px; block-size: 16px; pointer-events: none; }
:is(.share-photo-slot-remove, .share-more-photo-remove) { inset-inline-end: 0; }
.share-photo-slot-eye { inset-inline-start: 0; }
.share-photo-slot.is-hidden .share-photo-slot-image { opacity: .48; }
#share-more-photo-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,max(6.75rem,104px)), 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
#share-more-photo-slots:not(:empty) { margin-block-start: .6rem; }
#share-more-photo-order-help, #share-more-photo-order-status { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#open-share-more-photos { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
#share-more-photo-picker-actions { position: sticky; z-index: 1; inset-block-end: 0; padding-block: .4rem; background: var(--paper); }
.share-more-photo { min-inline-size: 0; padding: .25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); user-select: none; }
.share-more-photo-preview { position: relative; }
.share-more-photo-preview > img { display: block; inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
.share-more-photo-order { position: absolute; inset-block-start: .25rem; inset-inline-start: .25rem; padding: .2rem .4rem; border-radius: 5px; background: #152922df; color: white; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.share-more-photo-drag { inset-block: auto 0; inset-inline-start: 0; touch-action: none; cursor: grab; }
.share-more-photo-drag svg { stroke-width: 3; }
@media (any-pointer: fine) {
  .share-more-photo:has(.share-more-photo-drag) { cursor: grab; }
}
#share-more-photo-slots.is-reordering, #share-more-photo-slots.is-reordering * { cursor: grabbing; }
.share-more-photo.is-dragging { opacity: .45; }
.share-more-photo.is-drop-target { outline: 2px solid var(--green); outline-offset: -1px; }
.share-more-photo-drag-image {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 20; border: 1px solid var(--green); border-radius: 5px;
  aspect-ratio: 4 / 3; object-fit: cover; opacity: .76; pointer-events: none; box-shadow: 0 4px 12px #1529224d;
}
.share-photo-pick[aria-pressed="true"] { border-color: var(--green); background: var(--tint); }
#share-photo-picker-dialog { width: min(calc(100% - 1.5rem), 58rem); }
.share-photo-picker-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; margin-bottom: .8rem; }
.share-photo-source-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .25rem .8rem; }
.share-photo-source-fields :is(input, select) { min-width: 0; margin: 0; }
.share-photo-own-upload { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; }
.share-photo-own-upload > p { overflow-wrap: anywhere; }
.share-photo-picker-controls .button { max-inline-size: 100%; white-space: normal; text-align: center; }
#share-photo-filter-status:not(:empty) { margin-bottom: .65rem; }
#share-photo-picker-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.share-photo-picker-group { min-width: 0; }
.share-photo-picker-group header { margin-bottom: .45rem; overflow-wrap: anywhere; }
.share-photo-picker-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 7rem), 1fr)); gap: .6rem; }
.share-photo-pick { position: relative; display: grid; min-width: 0; gap: .35rem; padding: .35rem; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--green); font-size: .78rem; text-align: left; }
.share-photo-pick:not(:disabled):hover { background: var(--tint); border-color: #82a893; }
.share-photo-pick:disabled { opacity: 1; }
.share-photo-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: var(--tint); }
.share-photo-pick:disabled img { opacity: .65; }
.share-photo-pick > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-photo-picked { position: absolute; top: .55rem; left: .55rem; padding: .18rem .3rem; border-radius: 4px; background: var(--green); color: white; font-size: .65rem; font-weight: 650; }
.share-preview-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.share-preview-panel > h2 { padding: .7rem 1rem; background: white; border-bottom: 1px solid var(--line); }
#share-preview-dialog { width: min(calc(100% - 1rem), 36rem); max-block-size: calc(100dvh - 1rem); padding: 0; }
#share-preview-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
#share-preview-dialog .dialog-head { flex: none; margin: 0; padding: .25rem .5rem .25rem .85rem; border-bottom: 1px solid var(--line); }
#share-preview-content { min-block-size: 0; overflow-y: auto; overscroll-behavior-y: contain; }
#share-preview-content:focus-visible { outline-offset: -3px; }
@media screen and (width > 900px) {
  .share-preview-panel {
    --share-preview-top: calc(var(--share-editor-fixed-height, 64px) + .75rem);
    position: sticky; inset-block-start: var(--share-preview-top);
    max-block-size: calc(100dvh - var(--share-preview-top) - var(--content-padding));
    overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-gutter: stable;
  }
}
#share-contact-help { margin: -.35rem 0 .65rem; }
#share-listing-agents-summary { margin-block-end: .55rem; font-weight: 600; }
#share-contact-help, #share-listing-agents-summary, #share-listing-agents-status { overflow-wrap: anywhere; }
.share-listing-agent-actions > button { min-inline-size: 0; max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
#share-listing-agents-dialog { width: min(calc(100% - 1.5rem), 42rem); container: share-listing-agents / inline-size; }
#share-listing-agents-description { margin-bottom: .8rem; }
#share-listing-agents-dialog .profile-grid input { margin-block: .3rem .65rem; }
.share-listing-agents-controls { margin-top: .7rem; }
#share-listing-agents-status:not(:empty) { margin-top: .65rem; }
@container share-listing-agents (max-width: 28rem) {
  #share-listing-agents-form .profile-grid { grid-template-columns: minmax(0, 1fr); }
}
.share-link-panel { padding-block-start: .75rem; margin-block-end: .8rem; border-block-start: 1px solid var(--line); }
.share-published-actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(3px, 1.4vw, 8px); }
:is(.share-published-actions .icon-button, #copy-share-link) { border-color: var(--line); background: var(--paper); color: var(--green); text-decoration: none; }
:is(.share-published-actions .icon-button, #copy-share-link):hover { background: var(--tint); }
#unpublish-share-page { margin-inline-start: auto; color: #a12c2b; }
#share-published-edit-actions { justify-content: space-between; margin-block-start: 1rem; padding-block-start: .8rem; border-block-start: 1px solid var(--line); }
#share-published-edit-actions > .button { min-inline-size: 0; max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
:is(#share-jpeg-status, #share-link-status):not(:empty) { margin-block-start: .35rem; }
#share-public-panel[data-published-highlight] { border-color: #74a889; background: var(--tint); box-shadow: 0 0 0 3px #77ab8d45; }
@media (prefers-reduced-motion: no-preference) {
  #share-public-panel[data-published-highlight] { animation: share-published-link-highlight 2200ms ease-out both; }
}
@keyframes share-published-link-highlight {
  0%, 55% { border-color: #74a889; background: var(--tint); box-shadow: 0 0 0 3px #77ab8d45; }
  100% { border-color: var(--line); background: var(--paper); box-shadow: none; }
}
.property-page.demo-property-unavailable { min-block-size: 0; padding: clamp(1rem, 4vw, 2rem); }
.demo-property-unavailable h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
#share-editor-status:not(:empty), #share-publication-status:not(:empty) { margin: .65rem 0; }
#activity-more-status:empty { display: none; }
#activity-export-status:not(:empty) { margin-top: .65rem; }
.dropzone { display: grid; align-content: center; justify-items: center; width: 100%; min-block-size: clamp(10.5rem, 23dvh, 12rem); gap: .35rem; padding: 1.25rem; border: 1px dashed #9cb5a6; border-radius: var(--radius); background: #f6f9f7; color: var(--green); cursor: pointer; text-align: center; }
.dropzone:hover { border-color: var(--green); }
.dropzone.dragover { background: #dfefe5; border-color: var(--green); }
.dropzone small { color: var(--muted); }
.upload-dialog { width: min(calc(100% - min(1rem,4vw)), 820px); max-width: none; max-height: calc(100dvh - 1rem); padding: clamp(.75rem,2.4vw,1.75rem); }
@media (width > 700px) {
  .upload-dialog { scrollbar-gutter: stable both-edges; }
}
.upload-dialog .dialog-head { margin-bottom: .65rem; }
.new-project-steps {
  --step-gap: .25rem;
  --step-dot: 1.65rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--step-gap);
  margin: 0 0 1rem;
  padding: .4rem 0 .6rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.new-project-steps li { position: relative; min-inline-size: 0; }
.new-project-steps li:not(:last-child)::after {
  position: absolute;
  inset-block-start: calc(.2rem + var(--step-dot) / 2);
  inset-inline-start: calc(50% + var(--step-dot) / 2 + .25rem);
  inline-size: max(0px, calc(100% + var(--step-gap) - var(--step-dot) - .5rem));
  block-size: 1px;
  background: var(--line);
  content: '';
  pointer-events: none;
}
.new-project-steps li:has(~ [aria-current="step"])::after { background: #80a78e; }
.new-project-steps button {
  display: grid;
  grid-template-rows: var(--step-dot) auto 1fr;
  justify-items: center;
  align-items: start;
  gap: .25rem;
  width: 100%;
  height: 100%;
  min-height: 44px;
  padding: .2rem 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.2;
  text-align: center;
}
.new-project-steps button:disabled { opacity: 1; }
.new-project-steps :is(button:enabled:hover, [aria-current="step"] button) { color: var(--green); }
.project-step-number { display: grid; place-items: center; width: var(--step-dot); height: var(--step-dot); border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-weight: 700; }
.new-project-steps :is(li:has(~ [aria-current="step"]), button:enabled) .project-step-number { border-color: #80a78e; background: var(--tint); color: var(--green); }
.new-project-steps [aria-current="step"] .project-step-number { border-color: var(--green); background: var(--green); color: white; }
.new-project-steps strong { width: 100%; font-weight: 650; overflow-wrap: anywhere; }
.new-project-steps [aria-current="step"] strong { font-weight: 750; }
.project-step-label-compact { display: none; }
.new-project-steps small { display: block; max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .75rem; }
#project-step-photos { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .new-project-steps { --step-dot: min(1.65rem,10vw); --step-gap: .125rem; }
  .new-project-steps .project-step-number { font-size: clamp(.67rem,4vw,.9rem); line-height: 1; }
  .project-step-label { display: none; }
  .project-step-label-compact { display: block; font-size: clamp(.51rem,3.6vw,.8125rem); }
}
.upload-icon { display: grid; place-items: center; padding: .5rem; border-radius: 8px; background: var(--tint); }
#new-project-fields { display: grid; gap: .65rem; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.project-identity-fields { --aligned-field-gap: .25rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .6rem 1rem; }
.project-identity-field-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 32px; gap: .15rem .65rem; }
.project-identity-field-heading .check-label { min-height: 32px; gap: .4rem; margin: 0; font-size: .8rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.project-name-input, .project-address-field > input { width: 100%; min-height: 46px; margin: 0; padding: .65rem .75rem; border: 1px solid #bfcfc5; border-radius: 8px; background: var(--paper); color: inherit; }
.project-address-options { position: absolute; inset-block-start: calc(100% + .2rem); margin: 0; }
.project-name-input[readonly] { background: var(--tint); color: var(--muted); }
#edit-project-title-dialog { width: min(calc(100% - 1.5rem), 680px); }
#edit-project-title-status:not(:empty) { margin-block-start: .6rem; overflow-wrap: anywhere; }
#new-project-services { container: new-project-products / inline-size; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
#new-project-services legend { margin-bottom: .36rem; padding: 0; font-size: .875rem; font-weight: 650; }
#new-project-service-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
#new-project-service-options label { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); cursor: pointer; font-size: .8rem; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; }
#new-project-service-options label:has(input:enabled):hover { border-color: #9cb5a6; }
#new-project-service-options label:has(input:checked) { border-color: #6c9f82; color: var(--green); background: var(--tint); }
#new-project-service-options label:has(input:focus-visible) { outline: 3px var(--focus-ring-style) var(--focus-ring-color); outline-offset: 2px; }
#new-project-service-options .product-preview { aspect-ratio: 4/3; }
#new-project-service-options .product-preview :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#new-project-service-options .product-preview-label { top: .35rem; padding: .12rem .3rem; font-size: .65rem; }
#new-project-service-options .product-preview-label.before { left: .35rem; }
#new-project-service-options .product-preview-label.after { right: .35rem; }
#new-project-service-options .product-compare-divider span { width: 1.5rem; height: 1.5rem; font-size: .8rem; }
.project-service-label { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: start; gap: .2rem .45rem; padding: .6rem; }
.project-service-price { grid-column: 2; color: var(--green); font-size: .75rem; font-weight: 650; }
#new-project-credit-rate { white-space: nowrap; }
#new-project-service-options input { width: 1rem; height: 1rem; margin: .08rem 0 0; accent-color: var(--green); }
#new-project-service-options label:has(input:disabled) { cursor: default; }
@media (max-width: 760px) {
  .project-identity-fields { grid-template-columns: minmax(0, 1fr); }
}
@container new-project-products (max-width: 24rem) {
  #new-project-service-options label { position: relative; }
  #new-project-service-options .project-service-label { grid-template-columns: minmax(0, 1fr); padding: .48rem; }
  #new-project-service-options input { position: absolute; inset-block-start: .35rem; inset-inline-start: .35rem; margin: 0; }
  #new-project-service-options .project-service-price { grid-column: 1; }
  #new-project-service-options .product-preview-label { top: auto; bottom: .35rem; }
}
@container new-project-products (max-width: 20rem) {
  #new-project-service-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container new-project-products (max-width: 9rem) {
  #new-project-service-options { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  #new-project-service-options label { position: relative; }
  #new-project-service-options input[type="radio"] {
    position: absolute; inset: 0 auto auto 0; inline-size: 1px; block-size: 1px; margin: 0; clip-path: inset(50%);
  }
  #new-project-service-options .project-service-label { grid-template-columns: minmax(0, 1fr); }
  #new-project-service-options .project-service-name { font-size: .95rem; font-weight: 650; line-height: 1.3; }
  #new-project-service-options .project-service-price { grid-column: 1; font-size: .7rem; line-height: 1.25; white-space: normal; }
  #new-project-service-options label:not(:has(input:checked)) .project-service-price { color: var(--muted); }
  #new-project-service-options .product-preview { filter: grayscale(1); }
  #new-project-service-options label:has(input:checked) .product-preview:not([data-service-preview-pending]) { filter: none; }
  #new-project-service-options .product-before { visibility: hidden; clip-path: none; transition: none; }
  #new-project-service-options [data-service-previewing] .product-before { visibility: visible; }
  #new-project-service-options :is(.product-preview-label, .product-compare-divider, .product-play) { display: none; }
}
#project-service-notice { margin: .25rem 0 .65rem; }
#new-project-actions #previous-new-project-step { margin-inline-end: auto; }
#new-project-forward-actions { display: contents; }
#upload-dialog[data-step="3"] #new-project-forward-actions:has(#project-preset-upload-progress:not([hidden])) {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem;
  container: new-project-forward-actions / inline-size; inline-size: min(100%,16rem); min-inline-size: 0;
}
#project-preset-upload-progress {
  display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden;
  min-inline-size: 0; min-block-size: 44px; padding: .25rem .38rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--green);
}
#project-preset-upload-progress::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; z-index: -1;
  inline-size: var(--preset-upload-progress,0%); background: #c6e4d1;
}
#project-preset-upload-meter { position: absolute; inline-size: 1px; block-size: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.project-preset-upload-caption {
  display: grid; justify-items: center; gap: .1rem; min-inline-size: 0;
  font-size: .75rem; line-height: 1.2; text-align: center; overflow-wrap: anywhere;
}
#project-preset-upload-label { font-size: .8125rem; font-weight: 650; }
#project-preset-upload-fraction { font-variant-numeric: tabular-nums; }
@container new-project-forward-actions (width < 10rem) {
  #project-preset-upload-progress { padding: .15rem .12rem; }
  .project-preset-upload-caption { font-size: .625rem; }
  #project-preset-upload-label { font-size: .675rem; }
  #next-new-project-step { padding: .3rem .2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  #project-preset-upload-progress::before { transition: inline-size 160ms linear; }
}
#new-project-retouch-actions { display: contents; }
.retouch-preset-layout { container: retouch-preset / inline-size; }
:is(#new-project-preset-heading,#new-project-review-heading) { inline-size: fit-content; max-inline-size: 100%; overflow-wrap: anywhere; }
#new-project-preset-heading { margin-bottom: .5rem; }
#review-project-view-uploads { max-inline-size: 100%; text-align: start; overflow-wrap: anywhere; }
.retouch-preset-details { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: .85rem; }
.retouch-preset-options { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.retouch-preset-options > legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.retouch-preset-choices { display: grid; gap: .5rem; }
#retouch-preset-choices > .retouch-preset-wheel-edge { display: none; }
.retouch-preset-option {
  --preset-title-line: 1.35em;
  --preset-detail-line: 1.5em;
  --preset-collapsed-height: max(44px, calc(var(--preset-title-line) + 1.24rem + 2px));
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: .5rem;
  min-inline-size: 0; block-size: var(--preset-collapsed-height); inline-size: 100%; padding: .62rem .7rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: inherit;
  font-size: .875rem; line-height: 1.35; overflow-wrap: anywhere; cursor: pointer;
  transition: inline-size 180ms ease, border-color 180ms ease, background-color 180ms ease;
}
.retouch-preset-option > input { inline-size: 1rem; block-size: 1rem; margin: .12rem 0 0; align-self: start; accent-color: var(--green); }
.retouch-preset-option[data-preview-active] { block-size: calc(var(--preset-collapsed-height) + var(--preset-detail-line)); }
.retouch-preset-option[data-preview-active]:not(:has(input:checked)) { border-color: #82ac95; background: #f6faf7; }
.retouch-preset-option:has(input:checked) { border-color: #6c9f82; background: var(--tint); color: var(--green); }
.retouch-preset-option:has(input:focus-visible) { outline: 3px var(--focus-ring-style) var(--focus-ring-color); outline-offset: 2px; }
.retouch-preset-option > input:focus-visible { outline: none; }
.retouch-preset-option-text { display: grid; grid-template-rows: var(--preset-title-line) 0; min-inline-size: 0; }
.retouch-preset-option-heading { display: flex; align-items: baseline; gap: .6rem; min-inline-size: 0; }
.retouch-preset-option-heading strong,
.retouch-preset-option-description { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.retouch-preset-default { flex: none; padding: .08rem .35rem; }
.retouch-preset-option-detail {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .5rem;
  min-inline-size: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: opacity 180ms ease;
}
.retouch-preset-option-description { grid-column: 1; color: var(--muted); font-size: .8125rem; font-weight: 400; line-height: 1.25; }
.retouch-preset-usage {
  grid-column: 2; visibility: hidden; font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums;
  line-height: 1.25; white-space: nowrap;
}
.retouch-preset-option[data-preview-active] .retouch-preset-option-text { grid-template-rows: var(--preset-title-line) var(--preset-detail-line); }
.retouch-preset-option[data-preview-active] .retouch-preset-option-detail { visibility: visible; opacity: 1; }
.retouch-preset-option[data-preview-active]:is([data-usage-revealed],:has(input:focus-visible)) .retouch-preset-usage { visibility: visible; }
.retouch-preset-preview { display: grid; gap: .85rem; min-inline-size: 0; overflow-wrap: anywhere; }
.retouch-style-photo { margin: 0; min-inline-size: 0; }
.retouch-style-photo img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: var(--tint); }
.retouch-style-photo figcaption { margin-block-start: .25rem; }
/* Leave vertical room for the wizard header and both 4:3 samples. */
#retouch-preset-details { --project-preset-photo-width: clamp(10rem, calc((100dvh - 19rem) * .6), 18rem); }
#retouch-preset-preview { inline-size: min(100%, var(--project-preset-photo-width)); justify-self: center; gap: .55rem; }
.retouch-style-frame { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--tint) center / contain no-repeat; }
.retouch-style-frame[data-lut-preview] img { opacity: var(--retouch-preview-strength, .8); }
.retouch-style-frame[data-image-loading] img { visibility: hidden; }
.retouch-lut-strength { margin-block-end: .75rem; padding: .55rem .7rem .25rem; border: 1px solid var(--line); border-radius: 8px; }
.retouch-lut-strength-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: .6rem; overflow-wrap: anywhere; }
.retouch-lut-strength-value { inline-size: 5.5ch; color: var(--green); font-size: .875rem; font-weight: 650; font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.retouch-lut-strength input[type="range"] { display: block; inline-size: 100%; min-block-size: 44px; margin: 0; accent-color: var(--green); cursor: pointer; }
.retouch-lut-strength input:disabled { cursor: default; }
#photo-lut-target { margin-block-end: .6rem; overflow-wrap: anywhere; }
#photo-lut-preview { inline-size: min(100%, clamp(8rem, 32dvh, 17rem)); margin: 0 auto .75rem; }
#photo-lut-status { overflow-wrap: anywhere; }
#project-preset-revision-note { margin: .2rem 0 .35rem; font-size: .8125rem; overflow-wrap: anywhere; }
@container retouch-preset (min-width: 34rem) {
  .retouch-preset-details:has(.retouch-preset-preview:not([hidden])) { grid-template-columns: minmax(0,.65fr) minmax(0,1fr); gap: 1.2rem; }
  #retouch-preset-details:has(.retouch-preset-preview:not([hidden])) { grid-template-columns: minmax(0,1fr) minmax(0,min(42%,var(--project-preset-photo-width))); }
  .retouch-preset-option:not([data-preview-active]) { inline-size: calc(100% - 1rem); }
}
@media (max-width: 700px) {
  #retouch-preset-details:has(.retouch-preset-preview:not([hidden])) { grid-template-columns: minmax(0,1fr); gap: .35rem; }
  #project-lut-strength-control { margin-block-end: .25rem; padding: .35rem .55rem .15rem; }
  #retouch-preset-choices {
    --preset-wheel-height: calc(max(132px,8.25rem) + 2.2rem);
    --preset-wheel-row: calc(.45 * var(--preset-wheel-height));
    --preset-wheel-fade: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
    position: relative; grid-template-columns: minmax(0,1fr); grid-auto-rows: var(--preset-wheel-row); gap: 0;
    block-size: var(--preset-wheel-height); min-inline-size: 0;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior-block: contain;
    scroll-snap-type: y mandatory; scrollbar-width: none; touch-action: pan-y pinch-zoom;
    -webkit-mask-image: var(--preset-wheel-fade); mask-image: var(--preset-wheel-fade);
  }
  #retouch-preset-choices:empty { display: none; }
  #retouch-preset-choices::-webkit-scrollbar { display: none; }
  #retouch-preset-choices > :is(.retouch-preset-option,.retouch-preset-wheel-edge) {
    display: grid; position: relative; grid-template-columns: minmax(0,1fr); place-items: center;
    block-size: var(--preset-wheel-row); min-inline-size: 0; inline-size: 100%; padding: .3rem .7rem;
    border: 0; border-radius: 0; background: transparent; color: inherit; opacity: .68;
    font-size: .9375rem; font-weight: 600; line-height: 1.2; text-align: center;
    scroll-snap-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  #retouch-preset-choices > [data-wheel-guard] { scroll-snap-align: none; cursor: default; }
  #retouch-preset-choices > [data-wheel-centered] { color: var(--green); opacity: 1; font-weight: 700; }
  #retouch-preset-choices > :has(+ [data-wheel-centered]) { align-items: end; padding-block-end: .2rem; }
  #retouch-preset-choices > [data-wheel-centered] + * { align-items: start; padding-block-start: .2rem; }
  #retouch-preset-choices .retouch-preset-option > input {
    position: absolute; inset-block-start: 50%; inset-inline-start: 50%; margin: 0;
    inline-size: 1px; block-size: 1px; clip-path: inset(50%);
  }
  #retouch-preset-choices .retouch-preset-option:has(input:focus-visible) { outline-offset: -3px; }
  #retouch-preset-choices .retouch-preset-option-text {
    --preset-wheel-side: min(24%, 5rem);
    grid-template-columns: var(--preset-wheel-side) minmax(0,1fr) var(--preset-wheel-side);
    grid-template-rows: auto; align-items: baseline; row-gap: .15rem; inline-size: 100%;
  }
  #retouch-preset-choices .retouch-preset-option-heading { display: contents; }
  #retouch-preset-choices .retouch-preset-option-heading strong {
    grid-area: 1 / 2; justify-self: center; max-inline-size: 100%; font-weight: inherit;
  }
  #retouch-preset-choices .retouch-preset-default {
    grid-area: 1 / 1; justify-self: start; max-inline-size: 100%; padding-inline: .24rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  #retouch-preset-choices .retouch-preset-option-detail { display: none; }
  #retouch-preset-choices > [data-wheel-centered] .retouch-preset-option-detail { display: contents; visibility: visible; }
  #retouch-preset-choices .retouch-preset-option-description {
    grid-row: 2; grid-column: 1 / -1; font-size: .75rem; text-align: center;
  }
  #retouch-preset-choices .retouch-preset-usage {
    grid-area: 1 / 3; min-inline-size: 0; overflow: hidden; text-align: end; text-overflow: ellipsis;
  }
  #retouch-preset-choices > [data-wheel-centered]:is([data-usage-revealed],:has(input:focus-visible)) .retouch-preset-usage { visibility: visible; }
  @container retouch-preset (width < 21rem) {
    #retouch-preset-choices > :is(.retouch-preset-option,.retouch-preset-wheel-edge) { padding-inline: .15rem; }
    #retouch-preset-choices .retouch-preset-option-text { --preset-wheel-side: min(20%,3.5rem); }
    #retouch-preset-choices .retouch-preset-usage { font-size: .6875rem; }
  }
  @container retouch-preset (width < 10rem) {
    #retouch-preset-choices > :is(.retouch-preset-option,.retouch-preset-wheel-edge) { padding-inline: .08rem; }
    #retouch-preset-choices .retouch-preset-option-text { --preset-wheel-side: 27%; }
    #retouch-preset-choices .retouch-preset-default { padding-inline: .04rem; font-size: .54rem; }
    #retouch-preset-choices .retouch-preset-usage { font-size: .625rem; }
  }
  #retouch-preset-preview {
    inline-size: min(100%,30rem);
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .5rem;
  }
  @media (max-height: 700px) {
    .upload-dialog[data-step="3"] .new-project-steps { margin-block-end: .6rem; padding-block: .2rem .35rem; }
    #new-project-preset-heading { margin-block-end: .35rem; }
    #project-preset-revision-note { line-height: 1.35; }
    #retouch-preset-preview { inline-size: min(100%,44dvh); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .retouch-preset-option, .retouch-preset-option-detail { transition: none; }
}
.new-project-review-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; margin: .65rem 0; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; }
.new-project-review-list dt { color: var(--muted); font-size: .78rem; }
.new-project-review-list dd { margin: .12rem 0 0; overflow-wrap: anywhere; }
#new-project-retouch-details { container: new-project-review / inline-size; display: grid; gap: .5rem; }
.new-project-photo-report { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .15rem .75rem; margin: 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px; }
.new-project-photo-report > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-inline-size: 0; }
.new-project-photo-report dt { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.new-project-photo-report dd { align-self: end; margin: 0; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#review-project-view-uploads { justify-self: start; }
@container new-project-review (max-width: 15rem) {
  .new-project-photo-report { grid-template-columns: minmax(0,1fr); row-gap: .3rem; }
  .new-project-photo-report > div { grid-row: auto; grid-template: auto / minmax(0,1fr) auto; align-items: baseline; gap: .5rem; }
}
@media (max-width: 540px) {
  .new-project-review-list { grid-template-columns: minmax(0,1fr); }
}
#retouch-plan-banner { align-items: center; margin: 0 0 .85rem; }
#retouch-plan-banner p { flex: 1; min-inline-size: 0; overflow-wrap: anywhere; }
#retouch-plan-banner button { flex-shrink: 0; max-inline-size: 100%; text-align: center; }
:is(#discard-project-status,#delete-draft-project-status,#cancel-retouch-status):not(:empty) { margin-top: .7rem; }
#delete-draft-project-copy { overflow-wrap: anywhere; }
.upload-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin: .6rem 0; }
#upload-count { margin-inline-start: auto; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#upload-batch-guidance { margin-top: .65rem; overflow-wrap: anywhere; }
.upload-queue { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; margin-top: .75rem; }
.upload-queue:empty { display: none; }
.upload-add-label { display: none; }
#project-upload-photos:has(.upload-card) .dropzone { display: flex; align-items: center; justify-content: center; min-block-size: 44px; padding: .4rem .65rem; }
#project-upload-photos:has(.upload-card) :is(.upload-empty-label,#upload-limits) { display: none; }
#project-upload-photos:has(.upload-card) .upload-add-label { display: block; }
#project-upload-photos:has(.upload-card) .upload-icon { padding: .25rem; }
#project-upload-requirement:not(:empty) { margin-top: .65rem; }
.upload-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.upload-card-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4/3; background: #f6f9f7; color: var(--muted); }
.upload-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.upload-card[data-upload-state="uploading"] .upload-card-photo::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  inline-size: var(--upload-progress,0%); background: var(--green); opacity: .9; pointer-events: none;
}
.upload-card-body { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; }
.upload-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .3rem .55rem 0; font-size: .875rem; line-height: 1.3; }
.upload-row-status { display: none; }
.upload-card-body progress { position: absolute; inline-size: 1px; block-size: 1px; margin: 0; clip-path: inset(50%); overflow: hidden; }
.upload-card-actions { display: flex; justify-content: space-between; align-items: center; min-block-size: 44px; }
.upload-card-actions button:focus-visible { outline-offset: -3px; }
.upload-card-status-mark { display: grid; place-items: center; inline-size: 44px; min-block-size: 44px; color: var(--green); }
.upload-card-actions :is(.upload-card-status-error,.upload-retry,.upload-remove) { color: #a12c2b; }
.upload-card-actions .upload-remove:disabled { color: var(--muted); }
.upload-action-icon { display: block; line-height: 0; }
.upload-delete-text { display: none; }
.upload-card-actions svg { width: 18px; height: 18px; }
:is(.upload-card-spinner,.product-example-spinner) { inline-size: 15px; block-size: 15px; border: 2px solid #c1d4c8; border-block-start-color: var(--green); border-radius: 50%; }
@media (width > 700px) {
  .upload-card-actions .upload-remove {
    inline-size: min(calc(100% - 44px),max(80px,5em)); min-inline-size: 44px;
    padding-inline: .15em; font-size: min(.875rem,20px); white-space: nowrap;
  }
  .upload-remove .upload-action-icon { display: none; }
  .upload-delete-text { display: block; }
}
@keyframes loading-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: no-preference) {
  .upload-card-photo::after { transition: inline-size 160ms linear; }
  :is(.upload-card-spinner,.product-example-spinner) { animation: loading-spin .75s linear infinite; }
}
.button.danger { color: white; background: #a12c2b; border-color: #a12c2b; }
.button.danger:hover { background: #852323; border-color: #852323; }
#upload-network, #photo-delete-status:not(:empty) { margin-top: .65rem; }
progress { width: 100%; accent-color: var(--green); }
.retouch-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; padding: .65rem .8rem; background: var(--tint); border-radius: 8px; }
.retouch-summary > div { min-inline-size: 0; overflow-wrap: anywhere; }
.retouch-summary strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.retouch-summary span { font-size: .875rem; }
.product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-cover-comparison { display: contents; }
@media (max-width: 1000px) {
  .product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .product-gallery { grid-template-columns: minmax(0, 1fr); }
}
.product-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.product-card:is(:hover,:focus-visible) { border-color: #a6acb0; box-shadow: 0 6px 20px #11191812; transform: translateY(-2px); }
.product-card-body { display: grid; grid-template-rows: auto 1fr auto; flex: 1; gap: .45rem; min-inline-size: 0; padding: 1rem; overflow-wrap: anywhere; }
.product-card-body p { font-size: .9rem; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.product-card-link { color: var(--green); font-size: .875rem; font-weight: 700; }
:is(.product-card .pill, #product-status) { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
@supports (grid-template-rows: subgrid) {
  @media (width > 520px) {
    .product-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
    .product-card-body { grid-row: span 3; grid-template-rows: subgrid; }
    .product-card-footer { align-content: start; }
    .product-card-link { padding-block: .3rem; }
  }
}
.product-preview { --before-size: 50%; position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 16/10; background: var(--tint); }
.product-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-hover-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.product-hover-video[data-playing] video { opacity: 1; }
.product-hover-video[data-playing] .product-play { opacity: 0; }
.product-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--before-size)) 0 0); }
.product-preview-label { position: absolute; top: .6rem; padding: .25rem .45rem; color: white; background: #152922df; border-radius: 5px; font-size: .75rem; font-weight: 600; }
.product-preview-label.before { left: .6rem; }
.product-preview-label.after { right: .6rem; }
.product-compare-divider { position: absolute; inset-block: 0; left: var(--before-size); display: grid; place-items: center; width: 2px; background: white; }
.product-compare-divider span, .product-play { display: grid; place-items: center; border-radius: 50%; color: white; background: #164a3a; }
.product-compare-divider span { width: 2rem; height: 2rem; transform: translateX(-50%); box-shadow: 0 1px 6px #0004; }
.product-hover-compare { --before-size: 0%; }
.product-hover-compare .product-before { transition: clip-path 180ms ease; }
.product-hover-compare :is(.product-preview-label, .product-compare-divider) { opacity: 0; transition: opacity 180ms ease; pointer-events: none; }
.product-hover-compare .product-compare-divider { transition: left 180ms ease, opacity 180ms ease; }
.product-hover-compare[data-comparing] :is(.product-before, .product-compare-divider) { transition: none; }
.product-card:focus-visible .product-hover-compare, #new-project-service-options label:has(input:focus-visible) .product-hover-compare { --before-size: 50%; }
.product-hover-compare[data-comparing] :is(.product-preview-label, .product-compare-divider),
.product-card:focus-visible .product-hover-compare :is(.product-preview-label, .product-compare-divider),
#new-project-service-options label:has(input:focus-visible) .product-hover-compare :is(.product-preview-label, .product-compare-divider) { opacity: 1; }
.product-compare-slider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.product-preview:has(.product-compare-slider:focus-visible) { outline: 3px var(--focus-ring-style) var(--focus-ring-color); outline-offset: 3px; }
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .product-cover-comparison { display: grid; grid-template-columns: minmax(0, 1fr); min-inline-size: 0; }
  .product-gallery-comparison > .product-card { grid-row: auto; grid-template-rows: auto 1fr; }
  .product-gallery-comparison .product-card-body { grid-row: auto; grid-template-rows: auto 1fr auto; }
  .product-gallery-comparison > .product-card:is(:hover,:focus-visible) { transform: none; }
  #product-gallery > .product-gallery-comparison > .product-compare-controls {
    z-index: 1; align-items: flex-end; justify-content: flex-end; min-block-size: 0; padding: .4rem; pointer-events: none;
  }
  #product-gallery .product-compare-controls .mobile-compare-toggle { pointer-events: auto; box-shadow: 0 1px 5px #17292340; }
  :root:not([data-pointer-focus]) #product-gallery .mobile-compare-toggle:focus-visible {
    outline-color: var(--focus-ring-on-dark); box-shadow: 0 0 0 5px var(--focus-ring-color);
  }
  @supports not (grid-template-rows: subgrid) {
    #product-gallery > .product-gallery-comparison { --product-cover-ratio: 16 / 10; position: relative; }
    #product-gallery .product-gallery-comparison .product-preview { aspect-ratio: var(--product-cover-ratio); }
    #product-gallery > .product-gallery-comparison > .product-compare-controls {
      position: absolute; inset: 1px 1px auto; aspect-ratio: var(--product-cover-ratio);
    }
  }
}
@supports (grid-template-rows: subgrid) {
  @media (max-width: 700px), (hover: none) and (pointer: coarse) {
    .product-cover-comparison { grid-template-rows: auto auto 1fr; }
    .product-cover-comparison > .product-card {
      display: grid; grid-area: 1 / 1 / -1; grid-template-rows: subgrid; row-gap: 0;
    }
    .product-cover-comparison .product-preview { grid-row: 1; }
    .product-cover-comparison .product-card-body { grid-row: 3; }
    .product-cover-comparison > .product-compare-controls { grid-area: 2 / 1; z-index: 1; margin-inline: 1px; }
    #product-gallery > .product-gallery-comparison { grid-template-rows: auto 1fr; }
    #product-gallery .product-card-body { grid-row: 2; }
    #product-gallery > .product-gallery-comparison > .product-compare-controls { grid-area: 1 / 1; margin: 1px; }
  }
  @media (520px < width <= 700px), (width > 520px) and (hover: none) and (pointer: coarse) {
    .product-gallery > :is(.product-card, .product-gallery-comparison) { grid-row: span 5; }
    .product-gallery-comparison { grid-template-rows: subgrid; row-gap: 0; }
    .product-gallery .product-card-body { grid-row: 3 / span 3; grid-template-rows: subgrid; }
    #product-gallery > :is(.product-card, .product-gallery-comparison) { grid-row: span 4; }
    #product-gallery > .product-gallery-comparison { grid-template-rows: subgrid; }
    #product-gallery .product-card-body { grid-row: 2 / span 3; }
  }
}
.product-play { position: absolute; right: .7rem; bottom: .7rem; width: 2.3rem; height: 2.3rem; font-size: .75rem; }
.product-example { max-width: 760px; margin: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.product-example figcaption { padding: .65rem .85rem; color: var(--muted); font-size: .875rem; }
.product-video { display: block; width: 100%; aspect-ratio: 16/9; background: #182a23; }
.product-example [data-image-loading] .product-video { visibility: hidden; }
.product-preview-placeholder { display: grid; place-items: center; }
.product-preview-placeholder svg { inline-size: clamp(1.25rem, 12%, 2.5rem); block-size: auto; }
.is-coming-soon {
  --coming-soon-ink: #4f5453;
  --coming-soon-surface: #f1f2f2;
  --coming-soon-line: #d9dbdb;
  --coming-soon-media: #e6e8e8;
  --coming-soon-badge: #e2e4e4;
  --muted: #5d6261;
  color: var(--coming-soon-ink);
}
.product-card.is-coming-soon, #new-project-service-options .is-coming-soon, .is-coming-soon .product-example { background: var(--coming-soon-surface); border-color: var(--coming-soon-line); }
.product-card.is-coming-soon:is(:hover,:focus-visible) { border-color: #999f9d; box-shadow: 0 6px 20px #11191812; }
.is-coming-soon :is(.product-preview, .product-video) { background: var(--coming-soon-media); filter: grayscale(1); }
.is-coming-soon :is(.product-card-link, .project-service-price) { color: inherit; }
.is-coming-soon .pill { background: var(--coming-soon-badge); color: inherit; }
#product-view.has-retouch-intro { max-inline-size: 76rem; }
.has-retouch-intro .product-overview {
  display: grid; grid-template-columns: minmax(0,1fr) min(35%,22rem); align-items: start;
  gap: 1rem clamp(.85rem,2.5vw,1.75rem); padding: clamp(.85rem,2vw,1.35rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.has-retouch-intro .product-intro-copy { min-inline-size: 0; overflow-wrap: anywhere; }
.has-retouch-intro .page-heading { margin-block-end: .45rem; }
.has-retouch-intro #product-heading { inline-size: fit-content; max-inline-size: 100%; }
#product-retouch-details p { line-height: 1.5; }
#product-detail-body { line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.product-retouch-facts {
  display: grid; grid-template-columns: minmax(0,9rem) minmax(0,1fr); gap: .65rem 1rem;
  margin: .7rem 0 0; padding-block-start: .65rem; border-block-start: 1px solid var(--line);
}
.product-retouch-facts dt { color: var(--green); font-size: .875rem; font-weight: 700; }
.product-retouch-facts dd { margin: .2rem 0 0; font-size: .875rem; line-height: 1.45; }
#product-retouch-rate { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.product-overview-media { display: grid; gap: .65rem; min-inline-size: 0; max-inline-size: 760px; }
.has-retouch-intro .product-example { max-inline-size: 100%; border: 0; }
:is(.has-retouch-intro, .product-examples-grid) :is(.product-compare, .product-example-photo) { aspect-ratio: 4 / 3; }
.has-retouch-intro .product-example:has(.product-compare-slider:focus-visible) { outline: 3px var(--focus-ring-style) var(--focus-ring-color); outline-offset: 2px; }
#product-examples-button { justify-self: end; max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
#product-examples-dialog {
  --gallery-pad: clamp(.65rem, 2vw, 1.25rem);
  container: product-examples / inline-size;
  width: min(calc(100% - 1rem), 72rem, 1200px); max-inline-size: none; max-height: calc(100dvh - 1.25rem); padding: 0;
}
#product-examples-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
#product-examples-dialog[data-closing] { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  #product-examples-dialog::backdrop { transition: opacity 230ms ease; }
  #product-examples-dialog[data-closing]::backdrop { opacity: 0; }
  @starting-style { #product-examples-dialog[open]::backdrop { opacity: 0; } }
}
#product-examples-dialog .dialog-head {
  flex: 0 0 auto; align-items: start; margin: 0; padding: .65rem var(--gallery-pad); border-bottom: 1px solid var(--line);
}
#product-examples-dialog .dialog-head .icon-button { order: 1; margin: 0; }
@container product-examples (max-width: 12rem) {
  #product-examples-dialog .dialog-head { display: flow-root; }
  #product-examples-dialog .dialog-head .icon-button { float: inline-end; margin-inline-start: .5rem; }
}
.product-examples-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: clamp(.5rem, 1.6vw, 1rem);
  min-block-size: 0; min-inline-size: 0; margin: 0; padding: var(--gallery-pad); list-style: none;
  overflow-y: auto; overscroll-behavior: contain;
}
.product-examples-grid:focus-visible { outline-offset: -3px; }
.product-examples-grid > li { position: relative; }
.product-examples-grid .product-preview { border-radius: .6rem; }
.product-examples-grid > :is([aria-busy="true"], [data-image-error]) .product-preview > * { visibility: hidden; }
.product-example-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .5rem; color: var(--muted); text-align: center; overflow-wrap: anywhere;
}
.product-example-spinner { flex: none; }
@container product-examples (min-width: 20rem) {
  .product-examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container product-examples (min-width: 43rem) {
  .product-examples-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#product-presets { margin-block-start: 1.1rem; }
#preset-catalog-status:empty { display: none; }
#preset-catalog { margin-block-start: .7rem; }
#product-preset-choices .retouch-preset-option { inline-size: 100%; block-size: auto; min-block-size: 44px; padding: .45rem .6rem; }
#product-preset-choices .retouch-preset-option-text {
  grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto minmax(.9375rem,auto);
  align-items: baseline; gap: .15rem .4rem;
}
#product-preset-choices .retouch-preset-option-heading { grid-area: 1 / 1; }
#product-preset-choices .retouch-preset-option-detail { display: contents; visibility: visible; opacity: 1; }
#product-preset-choices .retouch-preset-option-description { grid-area: 2 / 1 / 3 / -1; font-size: .75rem; }
#product-preset-choices :is(.retouch-preset-option-description, .retouch-preset-option-heading strong) {
  white-space: normal; overflow: visible; overflow-wrap: anywhere;
}
#product-preset-choices .retouch-preset-usage { grid-area: 1 / 2; justify-self: end; }
#product-preset-choices .retouch-preset-option:is([data-usage-revealed],:has(input:checked,input:focus-visible)) .retouch-preset-usage {
  visibility: visible;
}
#product-preset-preview { --product-sample-gap: clamp(.5rem,1.6vw,.9rem); grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--product-sample-gap); }
#product-preset-preview .retouch-style-frame {
  aspect-ratio: 4 / 3; max-block-size: min(36dvh,20rem); overflow: hidden;
  background-color: var(--tint); background-size: contain; background-position: center;
}
#product-preset-preview img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; background: transparent; }
@media (max-width: 700px) {
  #product-preset-preview {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--product-sample-gap)) / 2);
    overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none;
  }
  #product-preset-preview::-webkit-scrollbar { display: none; }
  #product-preset-preview:has(> .retouch-style-photo:nth-child(3)) {
    grid-auto-columns: calc((100% - 2 * var(--product-sample-gap)) / 2.2);
  }
  #product-preset-preview:focus-visible { outline-offset: -2px; }
}
@container retouch-preset (min-width: 34rem) {
  #preset-catalog:has(#product-preset-preview:not([hidden])) {
    grid-template-columns: minmax(0,min(40%,27rem)) minmax(0,1fr);
    reading-flow: grid-rows;
  }
  #preset-catalog > .retouch-preset-options { grid-area: 1 / 1; }
  #product-preset-preview { grid-area: 1 / 2; position: sticky; inset-block-start: calc(4rem + .85rem); }
}
@container retouch-preset (width < 11rem) {
  #product-preset-choices .retouch-preset-option { column-gap: .3rem; padding-inline: .4rem; }
  #product-preset-choices .retouch-preset-option > input { inline-size: max(14px,.65rem); block-size: max(14px,.65rem); }
  #product-preset-choices .retouch-preset-option-text { column-gap: .2rem; }
  #product-preset-choices .retouch-preset-usage { max-inline-size: 6ch; font-size: .625rem; white-space: normal; text-align: end; }
  #product-lut-strength-control { padding-inline: .4rem; }
  #product-lut-strength-control .retouch-lut-strength-heading { column-gap: .3rem; }
  #product-lut-strength-control .retouch-lut-strength-value { inline-size: 4ch; }
}
@media (max-width: 980px) {
  .has-retouch-intro .product-overview { grid-template-columns: minmax(0,1fr); }
  .has-retouch-intro .product-overview-media { max-inline-size: 30rem; }
}
@media (max-width: 520px) {
  .product-retouch-facts { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 981px) and (max-height: 760px) {
  .has-retouch-intro .product-overview { grid-template-columns: minmax(0,1fr) min(30%,19rem); padding: .75rem .95rem; }
  #product-preset-choices { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-hover-compare :is(.product-before, .product-preview-label, .product-compare-divider) { transition: none; }
  .product-card:is(:hover,:focus-visible) { transform: none; }
}
#download-dialog { --download-pad: clamp(.8rem, 3vw, 1.25rem); padding: 0; }
#download-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
#download-dialog > :is(.dialog-head, .dialog-actions) { flex: 0 0 auto; margin: 0; padding: .7rem var(--download-pad); }
#download-dialog > .dialog-head { border-bottom: 1px solid var(--line); }
#download-dialog > .dialog-head .icon-button { margin: 0; }
#download-dialog > .dialog-actions { border-top: 1px solid var(--line); }
.download-dialog-body { min-width: 0; min-height: 0; padding: var(--download-pad); overflow-y: auto; overscroll-behavior: contain; }
#download-dialog #download-status:not(:empty) { flex: 0 0 auto; margin: 0; padding: .45rem var(--download-pad); overflow-wrap: anywhere; }
.download-methods { min-width: 0; margin: 1rem 0 0; padding: 0; border: 0; }
.download-methods legend { font-size: .875rem; font-weight: 650; }
.download-option { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 60px; margin-top: .5rem; padding: .65rem; background: white; text-align: left; border: 1px solid var(--line); border-radius: 8px; color: var(--green); cursor: pointer; }
#download-methods .download-option { display: grid; grid-template-columns: auto auto minmax(0, 1fr); }
#download-methods input[type=radio] { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--green); }
.download-method-copy { min-width: 0; overflow-wrap: anywhere; }
.download-option:hover { background: var(--tint); }
.download-option small { display: block; margin-top: .2rem; color: var(--muted); font-weight: 400; line-height: 1.5; }
.download-option:has(:checked) { border-color: #88ad9a; background: var(--tint); }
.download-specs { min-width: 0; margin: .85rem 0; padding: 0; border: 0; }
.download-spec-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem .65rem; margin-bottom: .5rem; }
[data-open-delivery-settings] { margin-inline-start: auto; padding-inline: .7rem; text-align: center; white-space: normal; }
[data-open-delivery-settings] svg { width: 16px; height: 16px; }
.download-spec-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem; }
.download-spec-list label { display: flex; align-items: start; gap: .35rem; min-height: 62px; padding: .5rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.download-spec-list label:has(:checked) { border-color: #5e9278; background: var(--tint); }
.download-spec-list label:has(:disabled) { background: #f4f6f5; cursor: not-allowed; }
.download-spec-list label:has(:disabled) strong { color: var(--muted); }
.download-spec-list input[type=checkbox] { flex: 0 0 auto; width: 16px; height: 16px; margin: .1rem 0 0; }
.download-spec-list label > span { min-width: 0; }
.delivery-watermark-label { display: block; margin-top: .2rem; color: #17533e; font-size: 1rem; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.download-spec-list input[value$="_watermarked"] + span .delivery-watermark-label { color: #714711; }
.download-specs p { margin-top: .45rem; overflow-wrap: anywhere; }
#single-photo-download-dialog { width: min(calc(100% - 1.5rem), 450px); padding: clamp(.9rem, 3vw, 1.25rem); }
#single-photo-download-dialog .dialog-head { margin-bottom: .5rem; }
#single-photo-filename { overflow-wrap: anywhere; }
.photo-save-preview { inline-size: 100%; max-block-size: min(48dvh,26rem); object-fit: contain; margin-block: .75rem 0; -webkit-touch-callout: default; }
#single-photo-format-heading { font-size: .875rem; font-weight: 650; }
#single-photo-download-dialog .download-spec-list label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; min-height: 54px; gap: .4rem; }
#single-photo-download-dialog input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
#single-photo-download-dialog .download-spec-list strong { display: block; font-size: .8125rem; line-height: 1.25; }
#single-photo-download-dialog .delivery-watermark-label { font-size: .75rem; font-weight: 600; }
@media (max-width: 310px) {
  #single-photo-download-dialog .download-spec-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  #download-dialog .download-spec-list label { min-height: 46px; align-items: center; padding: .35rem .4rem; }
  #download-dialog .download-spec-list label > span { overflow-wrap: anywhere; }
  #download-dialog .download-spec-list strong { display: block; font-size: .75rem; font-weight: 600; line-height: 1.25; }
  #download-dialog .download-spec-list [data-web-edge] { font-weight: 500; }
  #download-dialog .delivery-watermark-label { margin-top: .1rem; color: var(--muted); font-size: .75rem; font-weight: 400; }
}
@media (min-width: 289px) and (max-width: 360px) {
  #download-dialog .download-spec-list label { display: grid; grid-template: "format format" "watermark selection" / minmax(0, 1fr) 14px; gap: .1rem .25rem; }
  #download-dialog .download-spec-list label > span { display: contents; }
  #download-dialog .download-spec-list strong { grid-area: format; overflow-wrap: anywhere; }
  #download-dialog .delivery-watermark-label { grid-area: watermark; margin: 0; }
  #download-dialog .download-spec-list input[type=checkbox] { grid-area: selection; width: 14px; height: 14px; margin: 0; }
}
@media (max-width: 288px) {
  #download-dialog .download-spec-list { grid-template-columns: minmax(0,1fr); }
}
@supports (grid-template-rows: subgrid) {
  #download-dialog .download-spec-list > label, #single-photo-download-dialog .download-spec-list > label {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: subgrid;
    grid-row: span 2; align-items: start; row-gap: 0;
  }
  .download-spec-list > label > span { display: contents; }
  .download-spec-list > label > input { grid-area: 1 / 1; }
  .download-spec-list > label strong { grid-area: 1 / 2; overflow-wrap: anywhere; }
  .download-spec-list > label .delivery-watermark-label { grid-area: 2 / 2; }
  @media (min-width: 289px) and (max-width: 360px) {
    #download-dialog .download-spec-list > label { grid-template-columns: minmax(0, 1fr) 14px; }
    #download-dialog .download-spec-list strong { grid-area: 1 / 1 / 2 / -1; }
    #download-dialog .download-spec-list .delivery-watermark-label { grid-area: 2 / 1; }
    #download-dialog .download-spec-list input[type=checkbox] { grid-area: 2 / 2; }
  }
}
#profile-navigation-guide { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; border-radius: 0; overflow: hidden; background: transparent; box-shadow: none; pointer-events: none; }
#profile-navigation-guide::backdrop { background: transparent; }
#profile-navigation-guide svg { display: block; width: 100%; height: 100%; fill: none; }
#credits-guide-overlay { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden; pointer-events: none; z-index: 25; }
#credits-guide-line { display: block; width: 100%; height: 100%; fill: none; }
.guide-trace, .guide-arrow { stroke: #46c68b; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 1px 3px #163c2c80); }
.guide-trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: guide-draw 680ms ease-in-out forwards; }
.guide-arrow { opacity: 0; animation: guide-reveal 160ms ease-out 590ms forwards; }
#profile-guide-destination { opacity: 0; animation: guide-reveal 300ms ease-out 680ms forwards; }
#profile-guide-target { stroke: #abffd0; stroke-width: 2; fill: #1c654b; }
#profile-guide-label { fill: white; font-size: min(.8125rem, 14px); font-weight: 700; }
#profile-guide-menu-icon { display: none; }
#profile-navigation-guide[data-phase] #profile-guide-target { fill: none; }
#profile-navigation-guide[data-phase] #profile-guide-label { visibility: hidden; }
#profile-navigation-guide[data-phase] #profile-guide-menu-icon { display: inline; }
#profile-navigation-guide[data-phase="menu"] #profile-guide-menu-icon { opacity: 0; animation: guide-reveal 300ms ease-out 680ms forwards; }
#profile-guide-menu-icon rect { fill: #1c654b; }
#profile-guide-menu-icon path { stroke: white; stroke-width: 1.6; stroke-linecap: round; }
@keyframes guide-draw { to { stroke-dashoffset: 0; } }
@keyframes guide-reveal { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  :where(.button, .text-button, .icon-button, .nav-item, .profile, .top-credit, .bottom-nav button, .project-row, .photo-select-card, .sidebar-subnav a, .profile-link) { transition: none; }
  #delivery-saved-dialog[open] { animation: none; }
}
#download-status:not(:empty), #download-confirm-status:not(:empty) { margin: .75rem 0; }
#download-confirm-dialog .dialog-head { align-items: flex-start; margin-bottom: .6rem; }
#download-confirm-title { font-size: 1.25rem; line-height: 1.35; }
#download-confirm-hint { margin-top: .35rem; overflow-wrap: anywhere; }
#download-confirm-dialog .button { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; }
#download-progress { display: grid; gap: .35rem; margin-block: .75rem; overflow-wrap: anywhere; }
#download-progress-count { font-weight: 650; }
#download-progress-bar { display: block; height: .65rem; margin: 0; }
#download-progress-bytes { font-variant-numeric: tabular-nums; }
#download-individual-preview { display: block; max-inline-size: 100%; max-block-size: min(34dvh, 18rem); margin: .5rem auto; border-radius: 6px; object-fit: contain; -webkit-touch-callout: default; }
#download-progress:has(+ #download-individual-preview:not([hidden])) :is(progress, #download-progress-bytes) { display: none; }
#retouch-status:not(:empty), #upload-status:not(:empty) { margin-top: .65rem; }
[aria-busy="true"] { cursor: progress !important; }
.viewer { container: photo-viewer / inline-size; width: min(calc(100% - 1.5rem), 1280px); padding: 0; background: #182a23; color: white; border: 0; -webkit-user-select: none; user-select: none; }
.viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(44px, 1fr) auto auto; }
.viewer-header, .viewer-footer { display: flex; align-items: center; gap: .5rem; padding: .65rem .85rem; }
.viewer-caption, .viewer-actions { display: flex; align-items: center; gap: .25rem; }
.viewer-caption { flex: 1; min-width: 0; }
.viewer-caption-text { min-width: 0; }
.viewer-header strong, .viewer-header .small { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.viewer-header .small { color: #c6d8ce; }
.viewer .icon-button:hover { background: #ffffff19; color: white; }
.viewer-stage { min-block-size: 0; padding-inline: clamp(.35rem, 1.2vw, .85rem); }
.viewer-photo-media { position: absolute; inset: 0; }
.viewer-photo-media img { display: block; }
.viewer-footer { justify-content: center; font-size: .875rem; }
#viewer-hint { min-width: 0; text-align: center; overflow-wrap: anywhere; }
@container photo-viewer (max-width: 20rem) {
  .viewer-header { flex-wrap: wrap; gap: .25rem; }
  .viewer-caption { flex-basis: 100%; }
  .viewer-actions { margin-inline-start: auto; }
}
#photo-version-menu { position: fixed; inset: auto; margin: 0; width: min(18rem, calc(100% - 1rem)); padding: .55rem; }
#photo-version-menu::backdrop { background: transparent; }
#photo-version-menu-title { margin: .25rem .45rem .45rem; }
#photo-version-options { display: grid; gap: .25rem; }
#revision-history-target { overflow-wrap: anywhere; }
#revision-history-status:not(:empty) { margin-block-start: .65rem; }
#revision-history-items { list-style: none; margin: 0; padding: 0; }
#revision-history-items li { display: grid; gap: .35rem; padding-block: .75rem; }
#revision-history-items li + li { border-block-start: 1px solid var(--line); }
.revision-history-entry-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .35rem .7rem; overflow-wrap: anywhere; }
.revision-history-note { white-space: pre-wrap; overflow-wrap: anywhere; }
#load-revision-history { margin-block-start: .4rem; }
.photo-version-option { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .45rem; min-height: 44px; padding: .5rem; border: 1px solid transparent; border-radius: 6px; background: white; color: var(--ink); text-align: left; }
.photo-version-option:is(:hover, [aria-current="true"]) { border-color: var(--line); background: var(--tint); }
.photo-version-option > span { min-width: 0; overflow-wrap: anywhere; }
#photo-revision-target { margin-bottom: .65rem; overflow-wrap: anywhere; }
#photo-revision-form textarea { display: block; width: 100%; margin-top: .35rem; padding: .65rem .75rem; border: 1px solid #bfcfc5; border-radius: 8px; font: inherit; font-size: 1rem; resize: vertical; }
#photo-revision-status:not(:empty) { margin-top: .65rem; }
.comparison { --compare-split: 50%; --compare-handle-size: 44px; position: relative; height: min(68dvh, 760px); max-height: 100%; overflow: hidden; background: #101c17; touch-action: pan-y pinch-zoom; }
.comparison:has(#compare-range:not([hidden])) { cursor: ew-resize; }
.comparison img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
#before-layer { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--compare-split)) 0 0); }
#comparison[data-mobile-comparison] #before-layer { clip-path: none; }
.compare-label { position: absolute; z-index: 2; top: .75rem; padding: .25rem .6rem; border-radius: 6px; background: #172923e6; font-size: .875rem; pointer-events: none; }
.before-label { left: .75rem; }
.after-label { right: .75rem; }
#compare-divider { position: absolute; z-index: 1; inset: 0 auto 0 var(--compare-split); width: 2px; background: white; pointer-events: none; }
#compare-handle {
  display: grid; place-items: center; position: absolute; z-index: 1; top: 50%;
  left: clamp(var(--compare-handle-size) / 2, var(--compare-split), 100% - var(--compare-handle-size) / 2);
  transform: translate(-50%, -50%); width: var(--compare-handle-size); height: var(--compare-handle-size);
  border-radius: 50%; background: white; color: var(--green); font-size: 1.35rem; cursor: ew-resize; touch-action: none;
}
#compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.comparison:has(#compare-range:focus-visible) { outline: 3px var(--focus-ring-style) var(--focus-ring-color); outline-offset: -3px; }
@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
  .viewer .viewer-stage {
    inline-size: min(100%, calc(min(68dvh, 760px) * 4 / 3 + 7rem));
    justify-self: center;
  }
  .viewer .comparison {
    inline-size: min(100%, calc(min(68dvh, 760px) * 4 / 3));
    block-size: auto;
    max-block-size: none;
    aspect-ratio: 4 / 3;
    justify-self: center;
  }
}
.toast { position: fixed; z-index: 50; bottom: 1rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); padding: .65rem .9rem; color: white; background: #184a3b; border-radius: 8px; font-size: .875rem; line-height: 1.5; }

@media (max-width: 1100px) {
  :root { --nav-width: 190px; }
}

@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .share-editor-grid { grid-template-columns: minmax(0, 1fr); }
}

@container (max-width: 42rem) {
  .project-row {
    grid-template-columns: minmax(0,1fr) minmax(0,1.25fr) clamp(var(--project-status-width,6rem),31cqi,10rem);
    grid-template-areas: "title title status" "progress date photos";
    gap: .35rem .5rem;
    padding-right: .6rem;
  }
  .project-row-progress { width: min(100%, 6rem); }
  .project-row-date { font-size: .75rem; }
  .project-row-images img { height: clamp(30px,11cqi,53px); }
}

@container (max-width: 15rem) {
  .project-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "title title" "status progress" "date photos";
  }
  .project-row:has(.project-row-status :is(.revision_requested,.revision_in_progress)) {
    grid-template-areas: "title title" "date progress" "status status" "photos photos";
    padding-inline: min(.65rem,4cqi);
  }
  .project-row-status :is(.revision_requested,.revision_in_progress) { font-size: min(.75rem,8.8cqi); padding-inline: min(.5rem,2cqi); }
  .project-row-title { white-space: normal; overflow-wrap: anywhere; }
}

@keyframes mobile-menu-in {
  from { transform: translateX(-100%); }
  to { transform: none; }
}
@keyframes mobile-menu-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 700px) {
  .sidebar, .auth-story, .top-credit svg { display: none; }
  .mobile-brand { display: block; min-inline-size: 0; }
  .mobile-brand .brand-sub { margin-block-start: .25rem; color: var(--muted); }
  .auth-form .mobile-brand { margin-block-end: 2rem; }
  .topbar .mobile-brand .brand-lockup { inline-size: clamp(105px, 34vw, 146px); max-inline-size: 100%; }
  .auth-screen { display: flex; }
  .workspace-main { margin-left: 0; }
  .topbar { padding-inline: .8rem; flex-wrap: wrap; }
  .mobile-menu-brand { display: flex; align-items: center; gap: .35rem; min-inline-size: 0; }
  #mobile-menu-toggle { position: relative; width: 44px; color: var(--green); }
  .mobile-menu-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #85dfa7; }
  #mobile-menu-indicator { position: absolute; inset: 5px 4px auto auto; background: #238454; pointer-events: none; }
  .portal-page:has(#mobile-menu-drawer[open]) { overflow: hidden; }
  #mobile-menu-drawer {
    position: fixed; inset: 0 auto 0 0; margin: 0; inline-size: min(22rem, calc(100% - 40px));
    max-inline-size: none; block-size: 100dvh; max-block-size: none; border: 0; border-radius: 0;
    padding: max(.85rem, env(safe-area-inset-top, 0px)) 14px max(1rem, var(--mobile-safe-area)) max(14px, env(safe-area-inset-left, 0px));
    overflow-y: auto; background: #153f35; color: white;
  }
  #mobile-menu-drawer[open] { display: flex; flex-direction: column; animation: mobile-menu-in 220ms ease-out both; }
  #mobile-menu-drawer[open]::backdrop { animation: mobile-menu-backdrop-in 220ms ease-out both; }
  #mobile-menu-drawer .dialog-head { align-items: center; gap: .5rem; margin: 0 0 .65rem; padding-inline: .75rem .2rem; }
  #mobile-menu-drawer .dialog-head .icon-button { margin: 0; }
  #mobile-menu-drawer .icon-button:hover { background: #ffffff17; }
  #mobile-menu-drawer .nav-item { gap: clamp(10px, 3vw, .7rem); padding-inline: clamp(12px, 4vw, .75rem); }
  #mobile-menu-drawer .nav-item > span:nth-child(2) { min-inline-size: 0; }
  #mobile-menu-drawer .mobile-menu-dot { margin-inline-start: auto; }
  #mobile-menu-drawer > nav { flex: 0 0 auto; }
  #mobile-menu-drawer .sidebar-subnav a { min-height: 44px; scroll-margin-block: .5rem; }
  .mobile-menu-footer { flex: 0 0 auto; }
  #mobile-sign-out-copy { margin-block-start: .45rem; }
  #mobile-sign-out-dialog .dialog-actions { flex-wrap: wrap; margin-block-start: 1rem; }
  @media (prefers-reduced-motion: reduce) {
    #mobile-menu-drawer[open], #mobile-menu-drawer[open]::backdrop { animation: none; }
  }
  .app-breadcrumb { order: 2; flex: 1 0 100%; padding: .2rem 0 .35rem; }
  #contact-templates-heading { scroll-margin-block-start: 6.5rem; }
  .topbar-right { gap: .2rem; }
  .topbar .icon-button { width: 40px; }
  .top-credit { padding-inline: .45rem; gap: .25rem; }
  .mobile-only { display: inline-flex; }
  .portal-page #content { padding: 1rem 1rem calc(var(--mobile-safe-area) + 1rem); }
  #share-editor-toolbar { gap: .45rem; }
  #share-editor-toolbar > .share-editor-actions {
    display: grid; flex: 1 1 100%; gap: clamp(3px, 1.4vw, .35rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 70px), 1fr));
  }
  #share-editor-toolbar .button { padding: .4em .3em; font-size: min(.875rem, max(13px, 4.7vw)); line-height: 1.2; }
  #open-delete-share-page, .share-editor-grid > .share-preview-panel { display: none; }
  #share-published-edit-actions { justify-content: flex-end; }
  #workspace:has(#projects-view:not([hidden])) .app-breadcrumb { display: none; }
  #content:has(#projects-view:not([hidden])) { padding-block-start: .75rem; }
  #projects-view .page-heading { margin-bottom: .7rem; }
  #projects-view .project-controls { margin-bottom: .6rem; }
  #projects-view .project-list { gap: .4rem; }
  .project-row {
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    grid-template-areas: "title title title" "photos photos photos" "date progress status";
    gap: .32rem .5rem;
    min-height: 0;
    padding: .45rem .65rem;
  }
  .project-row:has(.project-row-status :is(.revision_requested,.revision_in_progress)) {
    grid-template-columns: minmax(0,1fr) auto minmax(max-content,1fr);
    grid-template-areas: "title title title" "photos photos photos" "date progress status";
  }
  @container (max-width: 16rem) {
    .project-row:has(.project-row-status :is(.revision_requested,.revision_in_progress)) {
      grid-template-columns: minmax(0,1fr) auto;
      grid-template-areas: "title title" "photos photos" "date progress" "status status";
      padding-inline: min(.65rem,4cqi);
    }
    .project-row-status :is(.revision_requested,.revision_in_progress) { font-size: min(.75rem,8.8cqi); padding-inline: min(.5rem,2cqi); }
  }
  .project-row-identity { gap: .14rem; }
  .project-row-title { width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .project-row-progress { width: auto; justify-self: center; font-variant-numeric: tabular-nums; }
  .project-row-progress progress, .project-row-date small { display: none; }
  .project-row-status { justify-self: end; text-align: end; }
  .project-row .project-ribbon { right: 0; left: auto; }
  .project-row .project-ribbon > span { right: -1.22rem; left: auto; transform: rotate(45deg); }
  .project-row-images {
    --project-photo-gap: .5rem;
    contain: inline-size;
    justify-content: flex-start;
    align-items: center;
    gap: var(--project-photo-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    user-select: none;
  }
  .project-row-images::-webkit-scrollbar { display: none; }
  .project-row-images > :is(img,.project-row-details) {
    flex: none;
    min-width: 0;
    max-width: calc(100% - var(--project-photo-gap) - min(12%, 2.25rem));
    scroll-snap-align: start;
    border-radius: 7px;
  }
  .project-row-images img {
    width: calc((100% - 3 * var(--project-photo-gap)) / 3.5);
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain; background-color: var(--tint);
  }
  .project-row-images img:nth-of-type(n+4) { display: block; }
  .project-row-details {
    display: flex;
    align-self: stretch;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .35rem 1rem;
    border: 1px solid var(--line);
    background: var(--tint);
    color: var(--green);
    font-size: .875rem;
    font-weight: 650;
    overflow-wrap: anywhere;
  }
  .project-row-details svg { width: .85em; height: .85em; }
  .project-row-without-photos .project-row-images { justify-content: flex-end; overflow: visible; }
  .project-row-without-photos .project-row-details {
    flex: 0 1 auto;
  }
  #projects-view:has(#project-type-filters:not([hidden])) .project-controls { gap: .4rem; margin-block-end: .45rem; }
  #projects-view:has(#project-type-filters:not([hidden])) .project-row { row-gap: .25rem; padding-block: .35rem; }
  .page-heading, .section-toolbar { flex-wrap: wrap; }
  #profile-account-view .page-heading { align-items: flex-start; }
  .stat-icon { width: 34px; height: 34px; }
  .upload-queue { grid-template-columns: repeat(auto-fill,minmax(min(100%,max(90px,calc((100% - .8rem) / 3))),1fr)); gap: .4rem; }
  .upload-card-name { display: none; }
  .activity-order-facts dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #activity-date-fields label { flex: 1 1 8rem; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  #photo-grid { --photo-column-width: calc((100% - .5rem) / 2); }
  .photo-status { right: .35rem; top: .35rem; }
  #retouch-plan-banner { flex-wrap: wrap; }
  #retouch-plan-banner button { margin-left: auto; }
  .action-buttons { width: 100%; margin: 0; flex-wrap: wrap; }
  .action-buttons .button { flex: 1 1 auto; }
  .profile-grid { grid-template-columns: 1fr; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 20; display: block; container: portal-bottom-nav / inline-size; padding: .35rem .5rem calc(.65rem + var(--bottom-nav-safe-area)); border-top: 1px solid var(--line); background: white; }
  .bottom-nav :is(button, .bottom-nav-item) { position: relative; min-width: 0; min-height: 50px; display: grid; grid-template-rows: 20px auto; place-content: start stretch; justify-items: center; gap: .15rem; border: 0; border-radius: 6px; padding: .35rem .15rem .2rem; background: transparent; color: var(--muted); font-size: .7rem; text-align: center; }
  .bottom-nav :is(button, .bottom-nav-item).active { background: var(--tint); color: var(--green); }
  .bottom-nav-label { min-inline-size: 0; max-inline-size: 100%; overflow-wrap: anywhere; }
  .toast { bottom: calc(var(--bottom-nav-height) + .5rem); }
  .portal-page .toast { bottom: calc(var(--mobile-safe-area) + 1rem); }
}

@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .viewer { margin: 0; width: 100%; max-width: none; max-height: none; height: 100dvh; border-radius: 0; overflow: hidden; padding-block: env(safe-area-inset-top) env(safe-area-inset-bottom); }
  .viewer[open] { grid-template-rows: auto minmax(0, 1fr) repeat(3, auto); }
  .viewer-header { flex-wrap: nowrap; padding: .25rem max(.6rem, env(safe-area-inset-right)) .25rem max(.6rem, env(safe-area-inset-left)); }
  .viewer-caption { flex-basis: auto; }
  .viewer .viewer-stage {
    container: viewer-photo-stage / size; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
    overflow: hidden; touch-action: none;
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  }
  .viewer .comparison {
    --viewer-photo-ratio: 1.6;
    inline-size: min(100%, calc(68dvh * var(--viewer-photo-ratio))); height: auto; max-height: none;
    inline-size: min(100%, calc(100cqh * var(--viewer-photo-ratio)));
    aspect-ratio: var(--viewer-photo-ratio); overflow: visible; touch-action: none;
  }
  .viewer-footer { padding-block: .2rem; }
  .viewer-toolbar:not([hidden]) {
    display: grid; grid-template-columns: repeat(2,44px) minmax(0,9rem) repeat(2,44px);
    align-items: center; justify-content: center; justify-items: center; gap: 2px clamp(2px,1vw,8px);
    border-top: 1px solid #afcebf38; padding: 4px max(4px,env(safe-area-inset-right)) 4px max(4px,env(safe-area-inset-left));
  }
  .viewer-toolbar .icon-button { inline-size: 44px; min-block-size: 44px; color: white; }
  .viewer-toolbar .icon-button[aria-pressed="true"] { color: #bde4cf; background: #2f5044; }
  .viewer-toolbar #viewer-versions { grid-area: 1 / 1; }
  .viewer-toolbar #viewer-zoom { grid-area: 1 / 2; }
  .viewer-toolbar #viewer-comparison-controls { grid-area: 1 / 3; inline-size: 100%; min-block-size: 44px; padding: 0; }
  .viewer-toolbar #viewer-revision { grid-area: 1 / 4; }
  .viewer-toolbar #viewer-download { grid-area: 1 / 5; }
  .viewer-toolbar #viewer-revision-history { grid-area: 2 / 4; }
  .viewer-toolbar .mobile-compare-toggle { font-size: min(.75rem,4.5vw); }
  .viewer-toolbar .mobile-compare-toggle > span { padding-inline: .25em; white-space: nowrap; }
}

@media (max-width: 360px) {
  [data-open-delivery-settings] > span { display: none; }
  .topbar { padding-inline: .5rem; }
  .topbar-right { gap: .15rem; }
  .topbar .icon-button { width: 36px; }
  .topbar .preview-label { padding-inline: .35rem; }
}

