.button-link { appearance: none; padding: 0; border: 0; background: transparent; cursor: pointer; }
.global-header form { margin: 0; }
.auth-shell { display: grid; place-items: center; min-height: 100svh; padding: 24px; }
.auth-card { width: min(100%, 460px); padding: clamp(30px, 7vw, 54px); border: 1px solid rgb(255 255 255 / 78%); border-radius: 32px; background: rgb(255 255 255 / 82%); box-shadow: 0 24px 70px rgb(31 65 111 / 14%); }
.auth-card > img { display: block; width: 72px; height: 72px; margin-bottom: 28px; border-radius: 20px; box-shadow: 0 12px 30px rgb(31 65 111 / 22%); }
.auth-card h1 { margin: 14px 0 12px; color: var(--deep-space); font-size: clamp(2rem, 8vw, 3.25rem); line-height: 1.15; }
.auth-card > p:not(.section-kicker):not(.auth-error):not(.auth-foot) { margin: 0; color: #667382; line-height: 1.75; }
.auth-form { display: grid; gap: 18px; margin-top: 28px; }
.auth-form label { display: grid; gap: 8px; color: var(--deep-space); font-size: .82rem; font-weight: 800; }
.auth-form input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid #c9d4e1; border-radius: 14px; color: var(--graphite); background: white; }
.auth-form input:focus { border-color: var(--space-blue); outline: 3px solid rgb(120 174 255 / 28%); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 74px; }
.password-toggle { position: absolute; top: 7px; right: 7px; min-width: 58px; min-height: 38px; border: 0; border-radius: 10px; color: var(--space-blue); background: #edf4fd; font-size: .74rem; font-weight: 800; cursor: pointer; }
.auth-submit { width: 100%; min-height: 54px; border: 0; border-radius: 15px; font-weight: 800; cursor: pointer; }
.auth-error { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; color: #8d312b; background: #fff0ee; line-height: 1.55; }
.auth-foot { margin: 28px 0 0; color: #8893a0; font: 800 .65rem/1 Inter, Arial, sans-serif; letter-spacing: .14em; text-align: center; }
.setup-card { width: min(100%, 620px); }
.loading-card { padding: 70px 30px; border-radius: 28px; text-align: center; background: rgb(255 255 255 / 72%); }
.loading-card h1 { color: var(--deep-space); font-size: clamp(1.7rem, 5vw, 2.8rem); }
.simple-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #d4dbe4; }
.simple-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--space-blue), var(--ice-highlight)); }
.ring-icon { color: var(--ice-highlight); font-size: 1.65rem; }
.ring-panel button, .history-actions button { border: 1px solid transparent; cursor: pointer; }
.ring-panel button:disabled, .history-actions button:disabled { cursor: wait; opacity: .62; }
.stop-action { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 24px; border-color: rgb(255 255 255 / 35%) !important; border-radius: 16px; color: white; background: transparent; font-weight: 800; }
.recording-error { width: 100%; margin-top: 22px; padding: 16px; border: 1px solid #efc8c4; border-radius: 16px; color: #5d2925; background: #fff9f8; text-align: left; }
.recording-error strong { display: block; color: #8d312b; font-size: .9rem; }
.recording-error p { margin: 7px 0 0; color: #5d2925; font-size: .82rem; line-height: 1.7; }
.recording-error button { width: 100%; min-height: 44px; margin-top: 12px; border-color: #d7a7a2; border-radius: 12px; color: #8d312b; background: white; font-size: .82rem; font-weight: 800; }
.recording-error button:focus-visible { outline: 4px solid var(--ice-highlight); outline-offset: 3px; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.history-actions button { padding: 0 15px; border-radius: 13px; color: white; background: var(--space-blue); font-weight: 800; }
.history-actions .delete-history { border-color: transparent; color: #8d312b; background: transparent; }
.tutor-document .global-header { display: none; }
.activity-page { padding-bottom: 72px; }
.activity-privacy { margin: 24px 0; padding: 22px 24px; border: 1px solid #c9daef; border-radius: 18px; background: #edf4fd; }
.activity-privacy strong { display: block; color: var(--deep-space); font-size: 1rem; }
.activity-privacy p { margin: 8px 0 0; color: #5e6c7b; line-height: 1.7; }
.activity-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.activity-item { display: grid; grid-template-columns: 118px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 19px 22px; border: 1px solid #d8e0e9; border-radius: 17px; background: rgb(255 255 255 / 82%); }
.activity-item time { color: #718090; font-size: .82rem; font-weight: 700; }
.activity-item strong { color: var(--deep-space); }
.activity-item p { margin: 4px 0 0; color: #677586; font-size: .9rem; }
.activity-item small { display: block; margin-top: 5px; color: #8d312b; }
.activity-item > span { padding: 7px 10px; border-radius: 999px; color: var(--deep-space); background: #e4effd; font-size: .72rem; font-weight: 800; }
.activity-item.is-failure { border-color: #efc8c4; background: #fff9f8; }
.activity-item.is-failure > span { color: #8d312b; background: #fff0ee; }
.activity-danger { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.activity-danger button { padding: 11px 14px; border: 1px solid #d7a7a2; border-radius: 12px; color: #8d312b; background: transparent; font-weight: 800; cursor: pointer; }
.activity-danger button:disabled { cursor: wait; opacity: .6; }
.activity-danger p { margin: 0; color: #8d312b; }
.activity-empty { margin-top: 24px; }
@media (max-width: 760px) {
  .auth-shell { padding: 14px; }
  .auth-card { padding: 30px 24px; border-radius: 26px; }
  .global-header-inner { grid-template-columns: 1fr auto; }
  .primary-nav.owner-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .primary-nav.owner-nav a { padding-inline: 5px; font-size: .62rem; }
  .activity-item { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .activity-item time { grid-column: 1 / -1; }
}
