/* Keep the LingTest workspace aligned with the shared 1180px navigation grid. */
.app-page:not(.guides-page) .app-shell {
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px);
}

.app-page:not(.guides-page) .unified-nav {
  width: 100% !important;
  max-width: 100%;
}

.app-page:not(.guides-page) .ai-main {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

.app-page:not(.guides-page) .ai-main > * {
  min-width: 0;
  max-width: 100%;
}

.app-page:not(.guides-page) .app-foot {
  width: 100%;
  max-width: 100%;
}

.usage-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid #d8e2de;
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
}

.usage-strip > div:first-child { display: grid; }
.usage-strip > div:first-child span { color: #137a67; font-size: 9px; font-weight: 900; letter-spacing: 1.3px; }
.usage-strip > div:first-child small { color: #7a8985; font-size: 10px; }
.usage-actions { display: flex; align-items: center; gap: 8px; }
.usage-actions > span { padding: 6px 9px; border-radius: 999px; background: #edf5f1; color: #526c65; font-size: 10px; font-weight: 800; }
.usage-actions > button { padding: 6px 9px; border: 1px solid #cbdad5; border-radius: 999px; background: #fff; color: #526c65; font-size: 10px; font-weight: 800; cursor: pointer; }
.usage-actions > a { margin-left: 4px; color: #137a67; font-weight: 800; text-decoration: none; }
#accountLoginPrompt { padding: 6px 10px; border-radius: 999px; background: #fff4d8; color: #7a5817; box-shadow: inset 0 0 0 1px #ead59f; }
.usage-strip.pro { border-color: #aebfe9; background: linear-gradient(100deg, #f7f9ff, #eef4ff); }
.usage-strip.pro #planLabel { color: #3157d5; }
.activation-dialog { width: min(480px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 19px; box-shadow: 0 30px 100px rgba(13, 40, 34, .28); }
.activation-dialog::backdrop { background: rgba(13, 40, 34, .58); backdrop-filter: blur(5px); }
.activation-dialog form { position: relative; display: grid; gap: 12px; padding: 30px; }
.activation-dialog h3 { margin: 0; font-size: 25px; }
.activation-dialog p { margin: 0; color: #667873; }
.activation-dialog input { padding: 12px; border: 1px solid #cbd8d4; border-radius: 9px; font: 700 17px ui-monospace, monospace; letter-spacing: 1px; text-transform: uppercase; }
#closeActivation { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #edf3f0; font-size: 20px; cursor: pointer; }
#activationMessage { min-height: 22px; color: #b84b42; }
#activationMessage.success { color: #137a67; }

@media (max-width: 680px) {
  .app-page:not(.guides-page) .app-shell {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px);
  }
  .usage-strip { align-items: flex-start; flex-direction: column; }
  .usage-actions { width: 100%; flex-wrap: wrap; }
}
