body .login-screen {
  min-height: 100svh;
  padding: 1.4rem;
  background-color: var(--studio-canvas);
  background-image: linear-gradient(var(--studio-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--studio-line) 1px, transparent 1px),
                    radial-gradient(ellipse at 30% 20%, var(--studio-mint), transparent 72%);
  background-size: 1.55rem 1.55rem, 1.55rem 1.55rem, 100% 100%;
}
.login-screen::before, .login-screen::after { content: none; }
body .login-card {
  width: min(100%, 34rem);
  padding: clamp(1.6rem, 5vw, 3rem);
  border-radius: var(--studio-radius);
  box-shadow: 0 .85rem 2.7rem #1829221c;
}
.login-card .login-logo { width: 52px; height: 52px; border-radius: .75rem; }
.login-card .eyebrow { margin: 1.35rem 0 .6rem; color: var(--studio-green); font-size: .91rem; letter-spacing: 0; }
.login-card h1 { margin-bottom: .6rem; font-size: clamp(2.2rem, 6vw, 3.25rem); letter-spacing: -.05em; }
.login-card .muted { color: var(--studio-muted); font-size: 1rem; line-height: 1.55; }
body .login-card label { font-size: .95rem; }
body .login-card input { min-height: 48px; font-size: 16px; }
body .login-card .primary { min-height: 48px; font-size: 1rem; border-radius: .65rem; }

body #view-home .page-heading {
  min-height: 0;
  margin-bottom: 1.4rem;
  padding: clamp(1.55rem, 5vw, 3.2rem);
  color: var(--studio-ink);
  border-color: var(--studio-line);
  border-radius: var(--studio-radius);
  background: linear-gradient(115deg, var(--studio-mint), var(--studio-canvas) 83%);
}
body #view-home .page-heading::after { content: none; }
body #view-home .page-heading h1 { max-width: 100%; margin: 0 0 .65rem; font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.055em; }
body #view-home .page-heading > p:last-child { max-width: 55ch; font-size: 1.1rem; }
#app .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 75rem) {
  #view-seo-geo .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#app .studio-card-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 10rem;
  padding: 1.5rem;
  border-radius: var(--studio-radius);
  color: var(--studio-ink);
  text-decoration: none;
}
#app .studio-card-link:hover { background: var(--studio-mint); border-color: var(--studio-green); }
#app .studio-card-link::after {
  content: "";
  align-self: flex-end;
  width: .55rem;
  height: .55rem;
  margin: auto .25rem .2rem 0;
  border: solid var(--studio-green);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}
#app .studio-card-link p { margin: 0 0 .5rem; font-size: 1rem; }
@media (max-width: 38rem) {
  #app .tool-grid { grid-template-columns: minmax(0, 1fr); }
}
.studio-card-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px }
.profile-editor { width: min(860px, 94vw); max-height: 92dvh; padding: 0; border-radius: 12px }
.profile-editor form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: 91dvh }
.profile-editor .dialog-head, .profile-editor .dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px }
.profile-editor .dialog-head { border-bottom: 1px solid var(--line) }
.profile-editor .dialog-head h2 { margin: 0 }
.profile-editor .dialog-head button, .profile-editor .market button, .profile-editor .example-bar button,
.profile-editor .input-action button, .profile-editor .quiet {
  background: var(--button-surface); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px
}
.profile-editor .dialog-foot { border-top: 1px solid var(--line) }
.profile-editor .dialog-foot span { color: var(--danger); overflow-wrap: anywhere; font-size: 12px }
.profile-editor .dialog-body { padding: 18px 20px; overflow: auto }
.profile-editor .dialog-body h3 { margin: 20px 0 8px }
.profile-editor .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px }
.profile-editor .fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.profile-editor .wide { grid-column: 1/-1 }
.profile-editor label { margin: 0; display: grid; align-content: start; gap: 5px }
.profile-editor .input-action { display: flex; gap: 6px; align-items: start }
.profile-editor .input-action input { min-width: 0; flex: 1 }
.profile-editor .market-list { display: grid; gap: 7px; margin: 8px 0 }
.profile-editor .market { display: grid; grid-template-columns: minmax(100px, 1fr) 95px auto; gap: 8px; align-items: end }
.profile-editor .style-example { border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin: 8px 0 }
.profile-editor .example-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px }
.profile-editor .example-bar label { display: flex; align-items: center }
.profile-editor input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--purple) }
.profile-editor .quiet { margin: 7px 0; background: transparent }
@media (max-width: 620px) {
  .profile-editor .fields, .profile-editor .fields.three { grid-template-columns: minmax(0, 1fr) }
  .profile-editor .dialog-body { padding: 12px }
}
