/* Shared outer grid for marketing, first-run journeys and workspace routes.
   Inner reading measures and component grids remain independent. */
:root {
  --page-content-width: 1160px;
  --page-gutter: 32px;
  --page-frame-width: calc(var(--page-content-width) + 2 * var(--page-gutter));
}
.container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--page-content-width);
  margin-inline: auto;
}
.shell > .main {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-frame-width);
  min-width: 0;
  margin-inline: auto;
  margin-block: 0;
  align-self: start;
  padding-inline: var(--page-gutter);
}
.guest-report { padding-inline: var(--page-gutter); }
.guest-report main,
.guest-report .guest-nav,
.plugin-discovery main {
  width: 100%;
  max-width: var(--page-content-width);
  margin-inline: auto;
}
/* Route wrappers follow the outer grid; individual fields keep their own measures. */
.main .form,
.main .form:has(.new-review-intro),
.main .account-sheet,
.workspace-page .workspace-connections,
.workspace-page > .tier-banner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
@media (max-width: 1000px) {
  :root { --page-gutter: 24px; }
}
@media (max-width: 600px) {
  :root { --page-gutter: 18px; }
}
/* Final sidebar treatment, after brand surfaces and legacy usage spacing. */
.shell>.sidebar>.usage-box {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0 12px;
  margin: 0 0 12px;
}
.shell>.sidebar>.workspace { margin-bottom: 8px; }

/* Quiet alternative to the pricing choices, on a separate line. */
.heuristic-pricing-action { margin-top: 12px; }
.heuristic-pricing-action>.heuristic-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #EEEDE8;
  -webkit-text-fill-color: #EEEDE8;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  text-decoration: none;
}
.heuristic-pricing-action>.heuristic-text-link:hover {
  background: transparent;
  color: #EEEDE8;
  filter: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.heuristic-pricing-action>.heuristic-text-link:focus-visible {
  outline: 2px solid #D7E45B;
  outline-offset: 4px;
}

/* Archetypes: one primary creation action; subdued import and profile selection. */
.archetypes-page button[data-builder="new"]:is(:hover,:focus-visible,:active) {
  background: #E0EC76;
  color: #1C1E21;
  -webkit-text-fill-color: #1C1E21;
}
.archetypes-page a.button.secondary {
  background: transparent;
  border: 1px solid #626A70;
  color: #EEEDE8;
  -webkit-text-fill-color: #EEEDE8;
  box-shadow: none;
}
.archetypes-page a.button.secondary:is(:hover,:focus-visible,:active) {
  background: #30363B;
  border-color: #929B9F;
  color: #EEEDE8;
  -webkit-text-fill-color: #EEEDE8;
}
.archetypes-page .profile:is(:hover,:focus-visible) {
  background: #30363B;
  border-color: #D7E45B;
  color: #EEEDE8;
  -webkit-text-fill-color: #EEEDE8;
  filter: none;
}
.archetypes-page .profile:is(:hover,:focus-visible) :is(h3,.top) { color: #EEEDE8; }
.archetypes-page .profile:is(:hover,:focus-visible) :is(p,.fine) { color: #C2C7CA; -webkit-text-fill-color: #C2C7CA; }
.archetypes-page .profile:focus-visible { outline: 2px solid #D7E45B; outline-offset: 4px; }

/* Mobile intake: contain native file controls and preserve the shared grid. */
.review-drop{width:100%;min-width:0;max-width:100%;background:#1C1E21;border:1px dashed #737B82;display:flex;flex-direction:column;align-items:center;gap:12px}
.review-drop>.review-file-choice{position:relative;display:inline-flex;flex:0 0 auto;width:auto;max-width:100%;min-height:44px;margin:4px 0;padding:10px 20px;border:1px solid #737B82;border-radius:8px;background:#292D31;color:#EEEDE8;-webkit-text-fill-color:#EEEDE8;overflow:hidden;white-space:nowrap}
.review-drop>.review-file-choice input[type=file]{position:absolute!important;inset:0!important;width:100%!important;max-width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;opacity:0!important;margin:0!important;padding:0!important;border:0!important;cursor:pointer}
.review-drop>.review-file-choice:is(:hover,:focus-within){background:#353B40;color:#EEEDE8;-webkit-text-fill-color:#EEEDE8;border-color:#D7E45B}
.review-drop:is(.dragging,:focus-within){background:#23282A;border-color:#D7E45B}
.review-drop .review-drop-icon{display:block;color:#D7E45B;flex-shrink:0}
@media(max-width:760px){
 .app-top>.workspace-header-links{display:none!important}
 .app-top>.mobile-header-actions{margin-left:auto!important;min-width:0;gap:6px}
 .app-top>.mobile-header-brand img{min-width:0!important;width:clamp(92px,27vw,120px)!important;max-width:100%}
 .app-top{width:100%;min-width:0;gap:10px;flex-wrap:nowrap!important}
 .main .form,.main .form>.card,.main .form>.row,.main .form .grid2{min-width:0;max-width:100%}
 .new-review-intro{grid-template-columns:minmax(0,1fr);gap:16px;margin:0 0 24px}
 .new-review-map{grid-row:1;justify-self:center;width:min(100%,280px);margin:0 auto}
 .new-review-map img{max-height:140px;width:100%;height:auto;object-fit:contain}
 .main .form:has(.new-review-intro)>.card{padding:20px}
 .review-drop{padding:24px 16px;min-height:220px;border-radius:10px}
 .review-drop strong{font-size:17px}
 .review-drop .fine{max-width:100%;overflow-wrap:anywhere}
 .main .form .step-item{flex-wrap:wrap;min-width:0}
 .main .form .step-item input{min-width:0;flex:1 1 120px;width:0}
}
@media(max-width:360px){.mobile-header-actions .account-chip .name{display:none}.app-top{gap:8px}}
