[hidden] { display: none !important; }

.account {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  min-width: 0;
}
#account-name {
  min-width: 0;
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
#logout {
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  color: #f7f3eb;
  background: transparent;
  border: 1px solid #665735;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
#logout:hover { background: #30291d; border-color: var(--venue-light-gold); }

.portal-main {
  max-width: var(--venue-content-width);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.25rem) var(--venue-gutter) 3.5rem;
}

.portal-intro h1 {
  margin: 0;
  font: 700 clamp(1.375rem, 3.5vw, 1.75rem)/1.2 var(--tva-font);
  text-wrap: balance;
}

.portal-home:not(:has(.venue-portal-header[data-signed-in])) .portal-main {
  padding-top: clamp(3rem, 12vh, 8rem);
}
.portal-home:not(:has(.venue-portal-header[data-signed-in])) .portal-intro {
  max-width: 34rem;
  min-height: 19rem;
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1rem, 6vw, 3rem);
  border: 1px solid var(--tva-border);
  border-radius: var(--tva-radius);
  background: var(--tva-surface);
  text-align: center;
  box-shadow: var(--tva-card-shadow);
}

#signin-copy, #progress, #error {
  margin: 1rem 0 0;
  color: var(--tva-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#error { color: var(--tva-error); }
#retry { margin-top: 1rem; }
.google-button {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.6rem;
}

#workspace {
  margin-top: clamp(1.5rem, 3.75vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--tva-border);
}
#tools-title {
  margin: 0 0 1.125rem;
  color: var(--tva-muted);
  font-size: 0.9375rem;
  font-weight: 650;
}
.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.875rem, 2.3vw, 1.5rem);
}
.tool {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.9rem;
  min-width: 0;
  padding: clamp(1.15rem, 2.8vw, 1.65rem);
  color: var(--tva-text);
  background: var(--tva-surface);
  border: 1px solid var(--tva-border);
  border-radius: var(--tva-radius);
  box-shadow: var(--tva-card-shadow);
  text-decoration: none;
}
.tool:hover {
  border-color: var(--tva-primary);
  background: var(--tva-surface-subtle);
  box-shadow: var(--tva-card-shadow);
}
.tool-copy { grid-column: 1 / -1; }
.tool strong, .tool small { display: block; }
.tool strong { font: 700 1.125rem/1.3 var(--tva-font); }
.tool small {
  margin-top: 0.35rem;
  color: var(--tva-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.tool-arrow {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--tva-border);
  border-radius: 50%;
  color: var(--tva-primary);
  font-size: 1.1rem;
}

.portal-main :focus-visible { outline: 2px solid var(--tva-primary); outline-offset: 3px; }

#team {
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  padding-block: 0.3rem;
  border-block: 1px solid var(--tva-border);
}
#team summary {
  width: fit-content;
  padding-block: 0.75rem;
  color: var(--tva-text);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 650;
}
#team summary::marker { color: var(--tva-primary); }
#team-status:empty { display: none; }
#team-members { list-style: none; margin: 0; padding: 0; }
.team-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.8fr) auto;
  align-items: end;
  gap: 0.65rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--tva-border);
}
.team-identity { align-self: center; min-width: 0; overflow-wrap: anywhere; }
.team-identity small, .team-form label { display: block; color: var(--tva-muted); font-size: 0.875rem; }
.team-identity small { margin-top: 0.2rem; }
.team-form input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
}
.team-feedback { grid-column: 1 / -1; margin: 0; color: var(--tva-muted); font-size: 0.875rem; }
.team-feedback:empty { display: none; }

@media (max-width: 42rem) {
  .tools { grid-template-columns: 1fr; }
  .tool { gap: 0.75rem; }
  .team-form { grid-template-columns: minmax(0, 1fr) auto; }
  .team-identity { grid-column: 1 / -1; }
}
@media (max-width: 32rem) {
  #account-name { display: none; }
  #logout { padding-inline: 0.6rem; font-size: 0.8rem; }
}

.portal-home .tool .venue-tool-icon {
  border-color: var(--tva-border);
  background: var(--tva-surface-active);
  color: var(--tva-primary-hover);
}
