html:has(dialog.saved-focus[open]) { overflow: hidden; scrollbar-gutter: auto; }
dialog.saved-focus {
  --saved-gutter: clamp(16px, 4vw, 38px);
  --saved-left: max(var(--saved-gutter), env(safe-area-inset-left));
  --saved-right: max(var(--saved-gutter), env(safe-area-inset-right));
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(var(--hds-focus-width, 640px),100%); height: 100dvh;
  max-width: 100%; max-height: 100dvh; box-sizing: border-box; border: 0; background: white; color: #111;
  font: inherit; text-align: left; overflow: hidden;
}
dialog.saved-focus[open] { display: flex; flex-direction: column; }
.saved-focus::backdrop { background: rgb(0 0 0 / 32%); backdrop-filter: blur(4px); }
.saved-focus [hidden] { display:none; }
.saved-focus button, .saved-entry { color: inherit; background: transparent; border: 0; cursor: pointer; padding: 0; font: inherit; }
.saved-focus header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.saved-focus [data-dismiss] { font-size: 26px; width: 40px; height: 40px; }
.saved-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 0 28px; }
.saved-focus [data-back] { text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.saved-focus .saved-detail img { display: block; width: 100%; height: auto; margin: 16px 0; }
.saved-focus [data-brief] { margin: 0 var(--saved-right) 24px var(--saved-left); text-align: center; }
.saved-focus label { display: grid; gap: 4px; font-size: 13px; }
.saved-focus :is(input,select) { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px; border: 1px solid #ccc; background: white; color: #111; font: inherit; }
.saved-focus .saved-bottom { padding: 12px var(--saved-right) max(20px,env(safe-area-inset-bottom)) var(--saved-left); }
.saved-bottom [data-project] { width: 100%; background: #111; color: white; min-height: 46px; border-radius: 8px; font-size: 16px; }
.saved-focus :disabled { opacity: .55; cursor: default; }
.saved-focus [role=status] { margin: 0 0 8px; }

dialog.saved-focus .hds-focus-topbar { justify-content: flex-end; flex-shrink: 0; padding: 0; }
dialog.saved-focus.directory-wishlist-drawer:not([popover]) > .hds-focus-topbar { min-height: 0; margin: 0; padding: max(8px, env(safe-area-inset-top)) var(--saved-right) 4px var(--saved-left); }
.saved-focus.directory-wishlist-drawer:not([popover]) .directory-wishlist-intro { padding: 8px var(--saved-right) 14px var(--saved-left); }
.saved-focus .directory-wishlist-intro > .saved-bookmark { display: block; width: 24px; height: 24px; margin: 0 auto 14px; }
.saved-focus .hds-turnstile { width: fit-content; margin: 0 auto; min-height: 0; line-height: 0; }
.saved-focus .directory-wishlist-intro h2 { text-transform: none; }
.hds-public-header .saved-entry { display: inline-grid; place-items: center; width: 40px; height: 44px; color: inherit; }

.saved-actions, .saved-tabs { display: flex; align-items: center; justify-content: center; }
.saved-actions { gap: 12px; }
.saved-actions button { display: grid; justify-items: center; align-content: center; gap: 6px; width: 92px; min-height: 52px; font-size: 14px; line-height: 1.4; }
.saved-actions [data-edit] svg { width: 18px; height: 18px; }
.saved-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.saved-focus [data-fields] { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.5; }
.saved-focus [data-fields]:not(:empty) { margin-top: 8px; }
.saved-tabs { gap: clamp(12px, 4vw, 28px); margin: 0 12px clamp(32px, 5vw, 40px); }
.saved-tabs [role=tab] { padding: 9px 0; border-bottom: 2px solid transparent; font-size: 14px; white-space: nowrap; }
.saved-tabs [aria-selected=true] { border-color: currentColor; }
.saved-tabs span { color: #666; font-size: 12px; }

dialog.project-brief-focus { font-family:"Inter HDS",Inter,Arial,sans-serif; }
.project-brief-focus form { display:flex; flex:1; flex-direction:column; min-height:0; gap:0; }
.project-brief-body { flex:1; min-height:0; overflow:auto; }
.brief-fields { padding:24px var(--saved-right) 24px var(--saved-left); }
.project-brief-body .brief-pair,.project-brief-body .brief-budget { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:28px; }
.project-brief-body label,.project-brief-body legend,.brief-dates > span { color:#666; font-size:13px; line-height:1.45; }
.project-brief-body .project-brief-field { display:grid; min-width:0; gap:4px; }
.project-brief-body select.is-hds-enhanced { display:none; }
dialog.project-brief-focus .project-brief-body :is(.hds-home-select-trigger,.hds-date-trigger,input[type=number],input[name=city],textarea) { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; box-sizing:border-box; padding:10px 12px; border:0; box-shadow:none; border-radius:8px; background:#f6f6f6; color:#111; font-weight:400; line-height:1.4; font-family:inherit; font-size:16px; text-align:left; }
.project-brief-body :is(.hds-home-select-trigger,.hds-date-trigger) svg { width:14px; height:14px; }
.project-brief-body textarea { resize:vertical; }
.project-brief-body .brief-check { display:flex; align-items:center; gap:9px; min-height:44px; margin:2px 0 18px; cursor:pointer; }
.brief-check input { width:16px; height:16px; accent-color:#111; }
.project-brief-body .brief-budget { align-items:start; }
.brief-budget fieldset { grid-column:1/-1; border:0; margin:0; padding:0; min-width:0; }
.brief-budget fieldset div { display:flex; gap:16px; }
.brief-budget fieldset label { position:relative; display:grid; align-items:center; min-height:44px; font-size:14px; color:#666; cursor:pointer; }
.brief-budget fieldset input { position:absolute; opacity:0; inset:0; cursor:pointer; }
.brief-budget fieldset label:has(:checked) { color:#111; text-decoration:underline; text-underline-offset:6px; }
.brief-budget fieldset label:has(:focus-visible) { outline:1px solid; outline-offset:2px; }
.project-brief-focus .saved-bottom button { text-decoration:none; font-size:16px; }
.project-brief-focus .hds-calendar { max-width:min(350px,100%); max-height:90dvh; overflow:auto; }
.project-brief-focus .hds-calendar-months { grid-template-columns:1fr; }
@media(max-width:700px){ .project-brief-focus .hds-calendar { max-width:100%; } }
@media(max-width:480px){
  .project-brief-body .brief-pair { grid-template-columns:1fr; gap:16px; }
  .brief-budget fieldset { grid-column:1/-1; }
}

dialog.project-brief-focus:popover-open {
  display:flex; flex-direction:column; position:fixed; inset:var(--brief-top) var(--brief-right) auto auto;
  width:min(400px,calc(100vw - var(--brief-right) - 8px)); height:auto; max-height:calc(100dvh - var(--brief-top) - 8px);
  border-radius:12px; box-shadow:0 8px 32px #0002; overflow:visible;
}
.project-brief-focus[popover]::backdrop { background:transparent; backdrop-filter:none; }
dialog.project-brief-focus[popover] > .hds-focus-topbar { position:absolute; right:8px; top:6px; min-height:0; margin:0; z-index:1; }
.project-brief-focus[popover] .directory-wishlist-intro { padding:16px 20px 8px; text-align:left; }
.project-brief-focus[popover] .directory-wishlist-intro h2 { font-size:20px; }
.project-brief-focus[popover] .directory-wishlist-intro svg { display:none; }
.project-brief-focus[popover] .brief-fields { padding:12px 20px; }
.project-brief-focus[popover] .brief-pair, .project-brief-focus[popover] .brief-budget { margin-bottom:12px; gap:12px; }
.project-brief-focus[popover] .saved-bottom { padding:8px 20px 16px; }

.saved-focus .brief-fields input[name=url] { min-height:44px; padding:12px; border:0; border-radius:8px; background:#f6f6f6; font:inherit; font-size:16px; }
.saved-card { display:grid; grid-template-columns:clamp(72px,21vw,104px) minmax(0,1fr) 44px; align-items:start; column-gap:clamp(8px,2vw,16px); }
.saved-card + .saved-card { margin-top:18px; }
.saved-focus .saved-card-photo { display:grid; place-items:center; width:100%; aspect-ratio:1; overflow:hidden; background:#f6f6f6; }
.saved-card-photo img { width:100%; height:100%; object-fit:cover; }
.saved-card-photo svg { width:20px; fill:none; stroke:currentColor; stroke-width:1.6; }
.saved-card-copy { align-self:center; overflow-wrap:anywhere; }
.saved-card h3 { margin:0; font-size:16px; font-weight:500; line-height:1.3; }
.saved-card h3 :is(a,button) { color:inherit; font:inherit; text-align:left; text-decoration:none; }
.saved-card p { margin:4px 0 0; color:#666; font-size:14px; line-height:1.4; }
.saved-card .saved-card-facts { color:#111; }
.saved-focus .saved-trash { width:44px; height:44px; display:grid; place-items:center; }
.saved-trash svg { width:18px; height:18px; }
.saved-card.saved-undo-slot { grid-template-columns:1fr; place-items:center; }
.saved-focus .saved-undo { display:inline-grid; justify-items:center; align-content:center; gap:2px; min-width:44px; min-height:44px; font-size:13px; }
.saved-undo svg { width:18px; height:18px; }
.project-brief-focus:not([popover]) .directory-wishlist-intro > svg { display:block; width:24px; height:24px; margin:0 auto 14px; fill:none; stroke:currentColor; stroke-linejoin:round; }

.saved-focus .directory-wishlist-list {
  margin-inline: var(--saved-left) var(--saved-right);
}
.saved-focus .directory-wishlist-intro h2[tabindex="-1"]:focus { outline: none; }
