/* Scoped to the start page: module editors keep their own themes and layouts. */
#hub.studio-home {
  --home-ink: #162035; --home-muted: #526078; --home-gold: #a57927;
  --home-border: #e5e6e8; --home-white: #fff;
  padding: 0; display: flex; flex-direction: column; align-items: stretch;
  justify-content: flex-start; background: #fcfbf8; color: var(--home-ink);
  font-family: Montserrat, system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  color-scheme: light; text-align: left; overflow-x: hidden; scroll-padding-top: 24px;
}
#hub button, #hub input, #hub summary { font: inherit; }
#hub button, #hub summary { cursor: pointer; }
#hub a { color: inherit; text-decoration: none; }
#hub button { color: inherit; }
#hub :is(button, a, summary, input):focus-visible { outline: 3px solid #926514; outline-offset: 4px; }
#hub .home-topbar { min-height: 76px; padding: 14px max(24px, calc((100% - 1400px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #e9e8e5; background: #ffffffc9; }
#hub .home-identity, #hub .home-account { display: flex; align-items: center; gap: 14px; min-width: 0; }
#hub .home-identity { flex-wrap: wrap; gap: 10px; }
#hub .home-logo { width: 130px; height: 40px; object-fit: contain; object-position: left center; }
#hub .home-logo.home-logo-mark { width: 40px; }
#hub .home-logo-dark { background: #20232c; border-radius: 7px; padding: 4px; }
#hub #hubBrandName { font-size: 14px; font-weight: 700; max-width: 250px; overflow-wrap: anywhere; }
#hub .home-divider { width: 1px; height: 25px; background: #d2d3d5; margin: 0 8px; }
#hub .home-product { white-space: nowrap; font-weight: 600; }
#hub .home-quiet, #hub .home-icon-button { border: 0; background: transparent; min-height: 42px; padding: 8px 10px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#hub .home-quiet:hover, #hub .home-icon-button:hover { background: #f1ede5; }
#hub .home-icon-button { font-size: 22px; min-width: 40px; }
#hub .home-account-menu { position: relative; }
#hub .home-account-menu > summary { list-style: none; border-radius: 50%; }
#hub summary::-webkit-details-marker { display: none; }
#hub .home-avatar { display: grid; place-items: center; width: 42px; height: 42px; background: #eee5d6; border-radius: 50%; font-size: 14px; font-weight: 600; }
#hub .home-menu-panel { position: absolute; z-index: 3; right: 0; top: 54px; width: min(310px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--home-border); border-radius: 14px; background: white; box-shadow: 0 12px 40px #1620351a; }
#hub .home-menu-panel strong { display: block; padding: 10px; overflow-wrap: anywhere; }
#hub .home-menu-panel button { display: block; width: 100%; padding: 12px 10px; min-height: 44px; border: 0; background: white; border-radius: 8px; text-align: left; font-size: 14px; }
#hub .home-menu-panel button:hover { background: #f6f2e9; }
#hub .home-main { width: min(1400px, 100%); margin: 0 auto; padding: 32px 24px 48px; }
#hub .home-intro { margin-bottom: 28px; }
#hub .home-intro h1 { font-size: clamp(27px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -.045em; font-weight: 700; }
#hub .home-intro p { font-size: clamp(15px, 1.6vw, 20px); color: var(--home-muted); margin-top: 8px; }
#hub .home-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
#hub h2 { font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1.3; }
#hub .home-view-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#hub #homeEditFavorites { color: #87601e; font-size: 13px; }
#hub .home-density { border: none; display: flex; align-items: center; gap: 4px; min-width: 0; }
#hub .home-density legend { float: left; padding-right: 10px; font-size: 12px; color: var(--home-muted); align-self: center; }
#hub .home-density button { min-width: 42px; height: 40px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 18px; }
#hub .home-density button:first-of-type { font-size: 12px; }
#hub .home-density button[aria-pressed=true] { background: #f5ecd9; border-color: #af8131; color: #825c1c; }
#hub .home-primary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr)); gap: 18px; }
#hub .home-tile { --tile-tint: #eef2ed; position: relative; min-width: 0; border: 1px solid var(--home-border); border-radius: 19px; background: linear-gradient(110deg, white 36%, var(--tile-tint)); transition: border-color .18s, box-shadow .18s, transform .18s; }
#hub .home-tile[data-art=upload] { --tile-tint: #f9e9c8; background: linear-gradient(110deg, #fffaf0 30%, var(--tile-tint)); }
#hub .home-tile[data-art=reel] { --tile-tint: #e9e6f6; }
#hub .home-tile[data-art=calendar] { --tile-tint: #dfedf7; }
#hub .home-tile:hover { border-color: #c8b58e; box-shadow: 0 8px 24px #323d4b0c; transform: translateY(-2px); }
#hub .home-tile-link { position: relative; display: flex; align-items: center; width: 100%; min-height: 270px; padding: 26px; border: 0; background: none; border-radius: inherit; text-align: left; overflow: hidden; }
#hub .home-tile-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; width: 56%; min-width: 0; }
#hub .home-tile-title { font-size: clamp(20px, 1.85vw, 26px); font-weight: 700; letter-spacing: -.04em; line-height: 1.2; overflow-wrap: anywhere; }
#hub .home-tile-description { display: block; color: var(--home-muted); font-size: 15px; line-height: 1.5; margin-top: 12px; }
#hub .home-tile-cta { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 46px; margin-top: 28px; padding: 9px 15px; border: 1px solid #cdd0d4; border-radius: 9px; background: #ffffffd9; font-size: 14px; font-weight: 600; }
#hub .home-tile[data-key=upload] .home-tile-cta { background: #a77b29; border-color: #a77b29; color: white; }
#hub .home-arrow { font-size: 23px; font-weight: 400; line-height: 1; }
#hub .home-start { background: #b68b3e; color: white; border-radius: 20px; font-size: 11px; padding: 5px 12px; margin-bottom: 12px; }
#hub .home-art { position: absolute; right: 0; bottom: 4%; width: 46%; height: 89%; display: grid; place-items: center; pointer-events: none; }
#hub .home-art img { position: absolute; inset: 0; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px #3b372b15); }
#hub svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#hub .home-art-icon svg { width: 45%; height: 45%; padding: 16px; border-radius: 22px; background: #f0e8db; color: #9a7535; box-shadow: 5px 9px 18px #89775019; transform: rotate(-7deg); }
#hub[data-many=true]:not([data-home-size=large]) .home-primary-grid,
#hub[data-primary-count="3"]:not([data-home-size=large]) .home-primary-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }
#hub[data-many=true]:not([data-home-size=large]) .home-primary-grid .home-tile-link,
#hub[data-primary-count="3"]:not([data-home-size=large]) .home-primary-grid .home-tile-link { min-height: 275px; padding: 22px 18px; align-items: stretch; }
#hub[data-many=true]:not([data-home-size=large]) .home-primary-grid .home-tile-copy,
#hub[data-primary-count="3"]:not([data-home-size=large]) .home-primary-grid .home-tile-copy { width: 100%; }
#hub[data-many=true]:not([data-home-size=large]) .home-primary-grid .home-tile-title,
#hub[data-primary-count="3"]:not([data-home-size=large]) .home-primary-grid .home-tile-title { font-size: 19px; min-height: 46px; }
#hub[data-many=true]:not([data-home-size=large]) .home-primary-grid .home-tile-description,
#hub[data-primary-count="3"]:not([data-home-size=large]) .home-primary-grid .home-tile-description { width: 54%; font-size: 13px; margin: 8px 0 14px; }
#hub[data-many=true]:not([data-home-size=large]) .home-primary-grid .home-art,
#hub[data-primary-count="3"]:not([data-home-size=large]) .home-primary-grid .home-art { height: 64%; width: 47%; bottom: 6%; }
#hub[data-many=true]:not([data-home-size=large]) .home-primary-grid .home-tile-cta,
#hub[data-primary-count="3"]:not([data-home-size=large]) .home-primary-grid .home-tile-cta { font-size: 12px; margin-top: auto; gap: 9px; padding: 8px 10px; }
#hub[data-many=true] .home-start, #hub[data-primary-count="3"] .home-start { position: absolute; top: -36px; font-size: 10px; padding: 3px 9px; }
#hub[data-many=true] .home-primary-grid .home-tile[data-key=upload] .home-tile-link,
#hub[data-primary-count="3"] .home-primary-grid .home-tile[data-key=upload] .home-tile-link { padding-top: 58px; }
#hub .home-catalog { background: #fff; border: 1px solid var(--home-border); border-radius: 19px; margin-top: 26px; padding: 20px; }
#hub .home-catalog > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 40px; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
#hub .home-count { display: inline-block; padding: 1px 12px; background: #f0f1f3; border-radius: 20px; font-size: 13px; margin-left: 10px; vertical-align: middle; font-weight: 400; letter-spacing: 0; }
#hub .home-chevron { font-size: 24px; transition: transform .15s; }
#hub .home-catalog:not([open]) .home-chevron { transform: rotate(180deg); }
#hub .home-catalog-controls { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 14px 0 18px; }
#hub .home-search { display: flex; align-items: center; gap: 10px; flex: 1 1 270px; max-width: 420px; border: 1px solid #ced3db; border-radius: 9px; padding: 0 13px; }
#hub .home-search > span { font-size: 24px; }
#hub .home-search input { min-width: 0; width: 100%; height: 43px; border: 0; color: var(--home-ink); background: transparent; font-size: 14px; }
#hub .home-search:focus-within { outline: 2px solid #a57927; }
#hub .home-search input:focus { outline: none; }
#hub .home-search input::placeholder { color: var(--home-muted); }
#hub .home-filters { display: flex; gap: 7px; flex-wrap: wrap; }
#hub .home-filters button { border: 1px solid transparent; border-radius: 8px; background: #f2f3f6; min-height: 42px; padding: 8px 13px; font-size: 13px; }
#hub .home-filters button[aria-pressed=true] { background: #a77b29; color: white; }
#hub .home-catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
#hub .home-tile-compact { background: #fff; border-radius: 12px; }
#hub .home-tile-compact .home-tile-link { min-height: 94px; padding: 14px 45px 14px 85px; }
#hub .home-tile-compact .home-tile-copy { width: 100%; }
#hub .home-tile-compact .home-tile-title { font-size: 14px; letter-spacing: -.02em; }
#hub .home-tile-compact .home-tile-description { font-size: 12px; margin-top: 5px; line-height: 1.4; }
#hub .home-tile-compact .home-art { left: 10px; right: auto; top: 14px; width: 65px; height: 65px; }
#hub .home-tile-compact .home-art-icon svg { width: 52px; height: 52px; border-radius: 12px; padding: 12px; }
#hub .home-star { position: absolute; top: 9px; right: 5px; display: grid; place-items: center; height: 40px; width: 38px; border: none; border-radius: 8px; background: transparent; color: #617087; }
#hub .home-star:hover { background: #f6f0e5; }
#hub .home-star[aria-pressed=true] { color: #a57927; }
#hub .home-star[aria-pressed=true] svg { fill: #f1dfb7; }
#hub .home-more { display: block; min-height: 42px; border: 1px solid #cdd0d4; background: white; padding: 9px 20px; border-radius: 9px; font-size: 13px; margin: 20px auto 0; }
#hub .home-more:hover { background: #faf6ed; }
#hub .home-favorite-hint { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #faf3e3; border-radius: 9px; padding: 8px 14px; margin: 12px 0; font-size: 13px; }
#hub .home-empty { color: var(--home-muted); padding: 24px 0; }
#hub .home-recent { margin-top: 30px; }
#hub .home-recent h2 { font-size: 20px; }
#hub .home-recent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
#hub .home-recent-card { display: flex; align-items: center; gap: 15px; padding: 10px; border: 1px solid var(--home-border); border-radius: 14px; background: white; min-width: 0; }
#hub .home-recent-card:hover { border-color: #bfa577; }
#hub .home-recent-image { position: relative; flex: 0 0 100px; height: 68px; display: grid; place-items: center; background: #f2ede4; border-radius: 8px; overflow: hidden; color: #a57927; }
#hub .home-recent-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
#hub .home-recent-copy { flex: 1; min-width: 0; }
#hub .home-recent-copy strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
#hub .home-draft-badge { display: inline-block; background: #ece7fa; border-radius: 15px; padding: 2px 10px; margin-top: 8px; font-size: 11px; }
#hub .home-resume { font-size: 12px; padding: 0 8px; }
#hub .home-status { min-height: 22px; font-size: 13px; margin-top: 16px; color: var(--home-muted); }
#hub .home-help-dialog { width: min(540px, calc(100% - 32px)); margin: auto; padding: 32px; border: 1px solid var(--home-border); border-radius: 20px; background: #fcfbf8; color: var(--home-ink); box-shadow: 0 20px 70px #16203526; }
#hub .home-help-dialog::backdrop { background: #16203566; backdrop-filter: blur(4px); }
#hub .home-help-dialog h2 { padding-right: 25px; }
#hub .home-help-dialog p { margin-top: 20px; font-size: 14px; color: var(--home-muted); }
#hub .home-help-dialog strong, #hub .home-help-dialog span { display: block; }
#hub .home-help-dialog strong { color: var(--home-ink); margin-bottom: 3px; }
#hub .home-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eee9df; font-size: 24px; }
/* Compact choice applies to the entire primary grid, with no empty slots. */
#hub[data-home-size=compact] .home-primary-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
#hub[data-home-size=compact] .home-primary-grid .home-tile-link,
#hub[data-home-size=compact] .home-primary-grid .home-tile[data-key=upload] .home-tile-link { min-height: 140px; padding: 18px 100px 18px 18px; }
#hub[data-home-size=compact] .home-primary-grid .home-tile-copy { width: 100%; }
#hub[data-home-size=compact] .home-primary-grid .home-tile-title { font-size: 17px; min-height: 0; }
#hub[data-home-size=compact] .home-primary-grid .home-tile-description { width: 100%; margin-top: 7px; font-size: 12px; }
#hub[data-home-size=compact] .home-primary-grid .home-tile-cta { border: 0; padding: 0; background: transparent; color: #825c1c; min-height: 24px; margin-top: 10px; }
#hub[data-home-size=compact] .home-primary-grid .home-art { width: 92px; right: 4px; top: 20px; height: 100px; }
#hub[data-home-size=compact] .home-start { display: none; }
@media (max-width: 720px) {
  #hub .home-topbar { padding: 12px 16px; gap: 8px; }
  #hub .home-logo { width: 80px; height: 34px; }
  #hub #hubBrandName { font-size: 12px; max-width: 150px; }
  #hub .home-divider, #hub .home-product { display: none; }
  #hub .home-account { gap: 6px; }
  #hub #homeHelp { font-size: 12px; padding: 6px; }
  #hub .home-avatar { width: 38px; height: 38px; font-size: 12px; }
  #hub .home-main { padding: 26px 16px 32px; }
  #hub .home-intro { margin-bottom: 24px; }
  #hub h2 { font-size: 20px; }
  #hub .home-section-head { gap: 10px; }
  #hub .home-view-actions { gap: 8px; }
  #hub .home-density legend { font-size: 11px; padding-right: 3px; }
  #hub .home-primary-grid { gap: 12px; }
  #hub .home-primary-grid .home-tile-link { padding: 22px 18px; min-height: 225px; }
  #hub .home-primary-grid .home-tile-title { font-size: 21px; }
  #hub .home-primary-grid .home-tile-description { font-size: 13px; }
  #hub .home-primary-grid .home-tile-cta { font-size: 12px; padding: 9px 12px; gap: 10px; margin-top: 20px; }
  #hub .home-catalog { padding: 14px; }
  #hub .home-catalog > summary { font-size: 20px; }
  #hub .home-catalog-controls { gap: 12px; }
  #hub .home-filters { gap: 5px; }
  #hub .home-filters button { font-size: 12px; padding: 7px 10px; }
  #hub .home-tile-compact .home-tile-link { padding-left: 72px; }
  #hub .home-tile-compact .home-art { width: 50px; }
  #hub .home-recent-card { flex-wrap: wrap; }
  #hub .home-recent-image { flex-basis: 75px; }
  #hub .home-resume { margin-left: auto; }
}
@media (min-width: 1080px) {
  #hub:is([data-primary-count="5"], [data-primary-count="6"])[data-home-size=auto] .home-primary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #hub:is([data-primary-count="5"], [data-primary-count="6"])[data-home-size=auto] .home-primary-grid > .home-tile { grid-column: span 2; }
  #hub[data-primary-count="5"][data-home-size=auto] .home-primary-grid > .home-tile:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (prefers-reduced-motion: reduce) {
  #hub *, #hub *::before, #hub *::after { transition: none !important; scroll-behavior: auto !important; }
}
