/* YakDrop inside the shared signed-in shell (yx-shell.css): undo YakDrop's
   global element rules where they would reshape the shell, and style the
   Home, toasts and modal. rem only; nothing below .75rem. */

/* YakDrop's global header/main/nav/button rules must not reshape the shell. */
.yx-shell { min-height: 100vh; }
body:has(.yx-shell) { max-width: none; padding: 0; margin: 0; }
.yx-shell .yx-topbar { max-width: none; margin: 0; flex-wrap: nowrap; align-items: center; }
.yx-shell .yx-side-nav, .yx-shell .yx-side-foot nav { display: block; padding: 0; }
.yx-shell .yx-side-nav a, .yx-shell .yx-side-foot a,
.yx-shell .yx-side-nav button, .yx-shell .yx-side-foot button {
  border: 0; border-radius: var(--yx-radius, .5rem); font-size: inherit; width: 100%;
}
.yx-shell .yx-side button, .yx-shell .yx-topbar button, .yx-menu-item, .yx-palette button {
  min-height: 0; font-weight: inherit;
}
.yx-shell .yx-main.drop-main {
  max-width: none; margin: 0; width: 100%;
  padding: clamp(1rem, 3vw, 2rem);
}
.yx-shell .yx-main.drop-main > * { max-width: 76rem; margin-left: auto; margin-right: auto; }
.yx-shell .yx-main.drop-main > .owner-review { max-width: 84rem; }
/* YakDrop's .yk headings, link underlines, list and section margins vs the shell */
.yk .yx-shell .yx-side-heading { font-family: inherit; font-size: .75rem; line-height: 1.3; letter-spacing: .06em; }
.yk .yx-checklist-head h2 { font-family: inherit; font-size: 1.125rem; line-height: 1.3; }
.yk .yx-empty-title { font-family: inherit; font-size: 1.125rem; line-height: 1.3; }
.yx-shell .yx-side li, .yx-palette li, .yx-menu li, .yx-checklist li { margin: 0; }
.yx-shell .yx-side section + section { margin-top: 0; }
.yk .yx-shell .yx-side a, .yk .yx-shell .yx-topbar a, .yk .yx-menu a, .yk .yx-palette a { text-decoration: none; }
.yk .yx-shell a.yx-primary { color: var(--yx-accent-ink); }
.yx-menu summary { list-style: none; }
.yx-menu summary::-webkit-details-marker { display: none; }
.yx-menu-item { width: 100%; text-align: left; background: transparent; color: inherit; border: 0; }

/* Page heading row */
.drop-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.drop-page-head h1 { margin: .25rem 0; }
.drop-page-head p { margin: 0; }
.drop-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.drop-section-head h2 { margin: 0; }

/* Home */
.drop-home { display: grid; gap: 1.5rem; }
.drop-home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.drop-home-grid .card, .drop-home > .card { margin: 0; }
.drop-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .75rem; }
.drop-list li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; padding-bottom: .75rem; border-bottom: 1px solid var(--yak-border-soft, var(--yak-border)); }
.drop-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.drop-list .muted { flex-basis: 100%; overflow-wrap: anywhere; }
.drop-activity { display: grid; gap: .25rem; margin-top: .75rem; }
.muted { color: var(--yak-text-muted); }
.badge.warn { background: var(--dr-warn-bg); color: var(--dr-warn-ink); border-color: transparent; }
@media (max-width: 52rem) { .drop-home-grid { grid-template-columns: minmax(0, 1fr); } }

/* Library cards */
.capture-title-row { display: flex; align-items: flex-start; gap: .5rem; justify-content: space-between; }
.capture-title-row h2 { margin: 0; min-width: 0; }
.workspace-management { margin-top: 2rem; }
.workspace-management summary { cursor: pointer; font-weight: 600; }

/* Toasts */
.drop-toasts { position: fixed; z-index: 60; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; width: min(26rem, calc(100vw - 2rem)); pointer-events: none; }
.drop-toast { pointer-events: auto; display: flex; align-items: center; gap: .75rem; justify-content: space-between; padding: .75rem 1rem; border-radius: .625rem; border: 1px solid var(--yak-border); border-left: .25rem solid var(--yak-primary-ink); background: var(--color-base-100); color: var(--color-base-content); box-shadow: var(--yak-shadow-md, 0 .5rem 1.5rem rgb(0 0 0 / .18)); font-size: 1rem; line-height: 1.4; }
.drop-toast.err { border-left-color: var(--dr-err-ink); background: var(--dr-err-bg); color: var(--dr-err-ink); }
.drop-toast-close { flex: none; width: auto; min-height: 2.75rem; padding: .25rem .75rem; border-radius: .5rem; background: transparent; color: inherit; border: 1px solid currentColor; font-size: .875rem; }

/* Modal (server-controlled; see YakDropWeb.Design.modal/1) */
.drop-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1rem; }
.drop-modal-backdrop { position: absolute; inset: 0; background: rgb(15 20 25 / .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drop-modal-card { position: relative; width: min(34rem, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: var(--color-base-100); color: var(--color-base-content); border: 1px solid var(--yak-border); border-radius: .875rem; padding: 1.25rem; box-shadow: 0 1.5rem 3rem rgb(0 0 0 / .25); }
.drop-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.drop-modal-head h2 { margin: 0; font-size: 1.25rem; }
.drop-modal-head button { width: auto; }
.drop-modal form { display: grid; gap: .75rem; border: 0; padding: 0; background: none; }
@media (prefers-reduced-transparency: reduce) { .drop-modal-backdrop { backdrop-filter: none; background: rgb(15 20 25 / .7); } }

/* Review room: collapsed rows */
.review-rows { display: grid; gap: .75rem; margin-top: 1rem; }
.review-row { border: 1px solid var(--yak-border); border-radius: .75rem; background: var(--color-base-100); }
.review-row > summary { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .875rem 1rem; cursor: pointer; list-style: none; }
.review-row > summary::-webkit-details-marker { display: none; }
.review-row > summary h3 { margin: 0; font-size: 1.0625rem; flex: 1 1 12rem; min-width: 0; }
.review-row-body { padding: 0 1rem 1rem; display: grid; gap: 1rem; }
.review-row-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.review-row-actions .btn, .review-row-actions button { width: auto; }

/* Guest decision buttons */
.decision-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.decision-buttons button { width: auto; flex: 1 1 10rem; }
.time-stamp-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.time-stamp-row button { width: auto; }

/* /r viewer: way back for owners */
.owner-back { display: inline-flex; gap: .375rem; align-items: center; font-weight: 600; }

/* Review room change checklist: compact rows, forms on demand */
.change-checklist article { padding: .75rem 0; border-top: 1px solid var(--yak-border-soft, var(--yak-border)); }
.change-checklist article p { margin: .25rem 0; }
.yk .change-checklist article h3 { font-size: 1.0625rem; line-height: 1.35; margin: 0; }
.request-edit summary { cursor: pointer; font-size: .875rem; color: var(--yak-primary-ink); }
.request-edit form { margin-top: .5rem; }
