/* Account UI lives inside the original Tawak app. Approved slate palette. */
.identity-view {
  font-family: Tawak, Arial, sans-serif;
  color: #263342;
  background: #f3f4f8;
  font-synthesis: none;
  --brand: #344b5c;
  --muted: #697d91;
  --line: #e7e9f0;
  --white: #fff;
  --tint: #e5ebf2;
  --radius: 24px;
}
.identity-view * {
  box-sizing: border-box;
}
.identity-view {
  margin: 0;
}
.identity-view button,
.identity-view input,
.identity-view textarea {
  font: inherit;
}
.identity-view button,
.identity-view a {
  -webkit-tap-highlight-color: transparent;
}
.identity-view button {
  cursor: pointer;
}
.identity-view button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.identity-view a {
  color: inherit;
  text-decoration: none;
}
.identity-view button:focus-visible,
.identity-view a:focus-visible,
.identity-view input:focus-visible,
.identity-view textarea:focus-visible,
.identity-view summary:focus-visible {
  outline: 3px solid #778da4;
  outline-offset: 4px;
}
.identity-view [hidden] {
  display: none !important;
}
.identity-view .skip {
  position: fixed;
  top: -80px;
  right: 20px;
  z-index: 99;
  background: #fff;
  padding: 12px;
}
.identity-view .skip:focus {
  top: 8px;
}
.identity-view .icon {
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: middle;
}
.identity-view h1,
.identity-view h2,
.identity-view h3,
.identity-view p {
  margin: 0;
}
.identity-view h1 {
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: -0.7px;
}
.identity-view h2 {
  font-size: 23px;
  line-height: 1.5;
}
.identity-view h3 {
  font-size: 18px;
}
.identity-view p {
  line-height: 1.9;
}
.identity-view .muted {
  color: var(--muted);
}
.identity-view .eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: #57687b;
  margin-bottom: 9px;
}
.identity-view .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.identity-view .brand img {
  width: 42px;
  height: 42px;
}
.identity-view .brand b {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1.2px;
}
.identity-view .brand small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0;
}
.identity-view .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--brand);
  font-weight: 600;
}
.identity-view .btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  box-shadow: 0 4px 9px #344b5c12;
}
.identity-view .btn:hover {
  filter: brightness(0.97);
}
.identity-view .btn.wide {
  width: 100%;
}
.identity-view .text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--brand);
  padding: 8px 0;
  font-weight: 500;
}
.identity-view .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  background: #edf0f3;
  color: #425366;
  padding: 4px 9px;
  font-size: 12px;
}
.identity-view .badge.warm {
  background: #f8f1df;
  color: #87703f;
}
.identity-view .loading {
  min-height: 70vh;
  display: grid;
  place-content: center;
  color: var(--muted);
}
.identity-view .public-header {
  max-width: 1160px;
  margin: auto;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.identity-view .header-switch {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.identity-view .header-switch a {
  font-weight: 600;
  color: var(--brand);
}
.identity-view .auth-layout {
  max-width: 1120px;
  padding: 22px 24px 40px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  min-height: 640px;
}
.identity-view .auth-panel {
  background: #fff;
  padding: 42px;
  border-radius: 30px;
  border: 1px solid #e6e8eb;
  box-shadow: 0 16px 70px #252f3a05;
}
.identity-view .auth-intro p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 14px;
}
.identity-view .auth-form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}
.identity-view .field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.identity-view .field input,
.identity-view .field textarea {
  border: 1px solid #dcdfe3;
  border-radius: 12px;
  background: #fbfbfc;
  width: 100%;
  padding: 12px 14px;
  min-height: 48px;
  color: #263342;
  outline-offset: 2px;
}
.identity-view .field input::placeholder,
.identity-view .field textarea::placeholder {
  color: #8a8f94;
  font-size: 13px;
  font-weight: 400;
}
.identity-view .field input[dir="ltr"] {
  text-align: left;
}
.identity-view .field small,
.identity-view .hint {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.identity-view .password-wrap {
  position: relative;
}
.identity-view .password-wrap input {
  padding-inline-end: 50px;
}
.identity-view .password-toggle {
  position: absolute;
  inset-inline-end: 4px;
  top: 4px;
  height: 40px;
  width: 42px;
  border: 0;
  background: transparent;
  color: #7a7f85;
}
.identity-view .password-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.identity-view .password-row label {
  font-size: 14px;
  font-weight: 500;
}
.identity-view .password-row a {
  font-size: 12px;
  color: var(--muted);
}
.identity-view .form-error {
  background: #fff1ed;
  color: #a44735;
  border: 1px solid #f2d6cd;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.8;
}
.identity-view .trial-note {
  margin-top: 22px;
  font-size: 11px;
  line-height: 1.9;
  color: #7a7f85;
  text-align: center;
}
.identity-view .auth-bottom {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eceef0;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}
.identity-view .auth-bottom a {
  font-weight: 600;
  color: var(--brand);
  margin-inline-start: 5px;
}
.identity-view .public-footer {
  text-align: center;
  color: #858b91;
  font-size: 12px;
  padding: 20px 16px 30px;
}
.identity-view .auth-story {
  padding: 12px 0;
}
.identity-view .story-copy {
  max-width: 340px;
  margin: auto;
}
.identity-view .story-copy h2 {
  font-size: 30px;
  line-height: 1.7;
  font-weight: 500;
}
.identity-view .story-copy h2 strong {
  color: #52667b;
  font-weight: 600;
}
.identity-view .story-copy p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.identity-view .story-points {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #485461;
}
.identity-view .story-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.identity-view .story-points .icon {
  width: 16px;
  height: 16px;
}
.identity-view .story-art {
  height: 310px;
  position: relative;
  max-width: 420px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
}
.identity-view .art-circle {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: #e1e6ec;
}
.identity-view .art-dots {
  position: absolute;
  width: 90px;
  height: 90px;
  right: 18px;
  top: 36px;
  background: radial-gradient(#aeb9c5 1.3px, transparent 1.4px) 0 0/12px 12px;
  opacity: 0.7;
}
.identity-view .art-paper {
  position: relative;
  background: #fff;
  width: 196px;
  height: 232px;
  transform: rotate(-8deg);
  border: 1px solid #d6dadf;
  border-radius: 14px;
  box-shadow:
    12px 18px 0 #d2d9e0,
    0 20px 30px #38475811;
  padding: 27px 21px;
}
.identity-view .art-paper-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8ebee;
  padding-bottom: 15px;
  font-size: 15px;
  color: #475667;
}
.identity-view .art-paper-head .icon {
  color: #68819c;
}
.identity-view .art-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.identity-view .art-line i {
  display: block;
  height: 7px;
  width: 90px;
  border-radius: 4px;
  background: #e9ecf0;
}
.identity-view .art-line .icon {
  width: 17px;
  height: 17px;
  color: #7c93ab;
}
.identity-view .art-label {
  position: absolute;
  background: white;
  border: 1px solid #e2e6eb;
  box-shadow: 0 8px 20px #344b5c08;
  border-radius: 13px;
  padding: 12px 16px;
  font-size: 12px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.identity-view .art-label.one {
  left: 4px;
  top: 48px;
  transform: rotate(5deg);
}
.identity-view .art-label.two {
  right: 0;
  bottom: 24px;
  transform: rotate(3deg);
}
.identity-view .art-label.one .icon {
  color: #ad8d53;
}
.identity-view .art-label.two .icon {
  color: #596f87;
}
.identity-view .setup-wrap {
  max-width: 710px;
  margin: 20px auto 50px;
  padding: 0 24px;
}
.identity-view .steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 28px;
  font-size: 13px;
  color: #8a8f94;
}
.identity-view .steps span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.identity-view .steps i {
  font-style: normal;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
}
.identity-view .steps .current {
  color: var(--brand);
  font-weight: 600;
}
.identity-view .steps .current i {
  background: var(--brand);
  color: white;
}
.identity-view .steps .done i {
  background: var(--tint);
  color: var(--brand);
}
.identity-view .steps hr {
  width: 48px;
  border: 0;
  border-top: 1px solid #cfd5dc;
  margin: 0;
}
.identity-view .setup-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
}
.identity-view .setup-card .auth-intro {
  text-align: center;
  margin-bottom: 26px;
}
.identity-view .setup-card h1 {
  font-size: 27px;
}
.identity-view .setup-card .intro-icon {
  display: grid;
  place-items: center;
  background: #eaedf1;
  color: #5a7088;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  margin: 0 auto 16px;
}
.identity-view .setup-card form {
  display: grid;
  gap: 22px;
}
.identity-view .choices {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.identity-view .choices legend {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}
.identity-view .choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.identity-view .choice-grid.two {
  grid-template-columns: repeat(3, 1fr);
}
.identity-view .choice {
  position: relative;
  cursor: pointer;
  min-width: 0;
}
.identity-view .choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.identity-view .choice span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 9px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
}
.identity-view .choice input:checked + span {
  background: #eaeef2;
  border-color: #8392a2;
  color: #344b5c;
  box-shadow: 0 0 0 1px #8392a2;
}
.identity-view .choice input:focus-visible + span {
  outline: 3px solid #778da4;
  outline-offset: 3px;
}
.identity-view .optional {
  border-top: 1px solid #eceef0;
  padding-top: 16px;
}
.identity-view .optional summary {
  color: #606a74;
  cursor: pointer;
  font-size: 13px;
}
.identity-view .optional .field {
  margin-top: 15px;
}
.identity-view .setup-foot {
  text-align: center;
  margin-top: 13px;
  font-size: 12px;
  color: var(--muted);
}
.identity-view .app-shell {
  max-width: 1230px;
  margin: auto;
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: 100vh;
}
.identity-view .side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 24px;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #f3f4f8;
}
.identity-view .side .brand {
  padding: 0 8px;
}
.identity-view .side nav {
  margin-top: 40px;
  display: grid;
  gap: 9px;
}
.identity-view .side nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 13px;
  color: #737980;
  font-size: 14px;
}
.identity-view .side nav a.active {
  background: #e2e7ed;
  color: var(--brand);
  font-weight: 600;
}
.identity-view .side-foot {
  margin-top: auto;
  padding: 20px 10px 0;
}
.identity-view .side-foot small {
  font-size: 11px;
  color: #858b91;
}
.identity-view .side-foot button {
  display: flex;
  gap: 8px;
  align-items: center;
  background: none;
  border: 0;
  color: #7e848a;
  font-size: 13px;
  padding: 14px 0;
}
.identity-view .user-workspace {
  min-width: 0;
  padding: 0 38px 40px;
}
.identity-view .app-header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #808890;
  margin-bottom: 32px;
  gap: 12px;
}
.identity-view .app-header .account-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #48515b;
}
.identity-view .account-chip .avatar {
  border: 1px solid #d8dde3;
  border-radius: 50%;
  background: #e2e7ec;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #536a82;
  font-weight: 600;
}
.identity-view .mobile-brand {
  display: none;
}
.identity-view .page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.identity-view .page-heading h1 {
  font-size: 28px;
}
.identity-view .page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.identity-view .welcome-card {
  background: #e4e8ed;
  border: 1px solid #d6dde5;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.identity-view .welcome-copy {
  max-width: 450px;
  z-index: 1;
}
.identity-view .welcome-copy h2 {
  font-size: 26px;
  font-weight: 500;
}
.identity-view .welcome-copy p {
  font-size: 13px;
  margin: 10px 0 22px;
  color: #616a74;
}
.identity-view .welcome-card .btn {
  min-height: 44px;
  font-size: 13px;
}
.identity-view .welcome-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 110px;
  height: 125px;
  background: #f5f7f9;
  border: 1px solid #ccd5de;
  transform: rotate(-9deg);
  border-radius: 16px;
  box-shadow: 10px 9px 0 #c1ccd8;
  color: #677c93;
}
.identity-view .welcome-symbol .icon {
  width: 56px;
  height: 56px;
  stroke-width: 1.3;
}
.identity-view .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 30px;
}
.identity-view .stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.identity-view .stat .stat-label {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #787f86;
}
.identity-view .stat .stat-value {
  font-size: 27px;
  font-weight: 600;
  margin-top: 15px;
}
.identity-view .stat .stat-value.words {
  font-size: 16px;
  margin-top: 23px;
}
.identity-view .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 16px;
  gap: 12px;
}
.identity-view .section-heading h2 {
  font-size: 18px;
}
.identity-view .section-heading a {
  font-size: 12px;
  color: #727a83;
}
.identity-view .class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.identity-view .class-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: block;
  text-align: right;
  transition: transform 0.15s;
}
.identity-view .class-card:hover {
  transform: translateY(-2px);
  border-color: #b7c2cd;
}
.identity-view .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.identity-view .tool-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 15px;
  background: #e5eaef;
  color: #5b748e;
}
.identity-view .tool-icon.blue {
  background: #e9eff3;
  color: #628592;
}
.identity-view .tool-icon.purple {
  background: #eeebf5;
  color: #8a7eac;
}
.identity-view .tool-icon.warm {
  background: #f7efe1;
  color: #a28b5c;
}
.identity-view .class-card h3 {
  margin-bottom: 6px;
}
.identity-view .class-card p {
  font-size: 12px;
  color: #7f858b;
}
.identity-view .card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ebedf0;
  padding-top: 14px;
  margin-top: 18px;
  font-size: 12px;
  color: #7f858b;
}
.identity-view .empty-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 36px;
  text-align: center;
}
.identity-view .empty-card > .tool-icon {
  margin: 0 auto 15px;
}
.identity-view .empty-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 22px;
}
.identity-view .context-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px 20px;
  margin-top: 24px;
  color: #7a8189;
  font-size: 12px;
  line-height: 1.9;
}
.identity-view .context-note .icon {
  color: #8c96a1;
  width: 19px;
  margin-top: 2px;
}
.identity-view .mobile-nav {
  display: none;
}
.identity-view .profile-card {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-bottom: 18px;
}
.identity-view .profile-card h2 {
  font-size: 19px;
  margin-bottom: 17px;
}
.identity-view .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #eceef1;
  font-size: 13px;
}
.identity-view .detail-row:last-child {
  border: 0;
}
.identity-view .detail-row span {
  color: var(--muted);
}
.identity-view .detail-row b {
  font-weight: 500;
  overflow-wrap: anywhere;
  min-width: 0;
}
.identity-view .profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.identity-view .tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.identity-view .preview-tool {
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 22px;
  background: #fff;
}
.identity-view .preview-tool img {
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
}
.identity-view .preview-tool p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.identity-view .preview-tool h3 {
  font-size: 16px;
}
.identity-view .student-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.identity-view .student-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e9edf1;
  font-size: 14px;
}
.identity-view .student-list li:last-child {
  border: 0;
}
.identity-view .student-list .number {
  background: #edf0f4;
  border-radius: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #74818e;
}
.identity-view .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.identity-view .back-link .icon {
  transform: rotate(180deg);
  width: 18px;
}
.identity-view .count-pill {
  font-size: 12px;
  color: #7b848d;
  background: #eff1f4;
  padding: 5px 10px;
  border-radius: 8px;
}
#user-dialog.identity-view {
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 25px 100px #20293320;
  width: min(560px, calc(100% - 32px));
  padding: 0;
  max-height: 90dvh;
  color: #263342;
  background: white;
}
#user-dialog.identity-view::backdrop {
  background: #1a212866;
  backdrop-filter: blur(3px);
}
.identity-view .dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.identity-view .dialog-header h2 {
  font-size: 20px;
}
.identity-view .close {
  width: 36px;
  height: 36px;
  border: 0;
  background: #eff1f4;
  color: #6a737d;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.identity-view .dialog-body {
  padding: 25px;
  display: grid;
  gap: 18px;
}
.identity-view .dialog-body textarea {
  min-height: 130px;
  resize: vertical;
}
.identity-view .dialog-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 5px;
}
.identity-view .form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #344b5c;
  color: white;
  border-radius: 13px;
  padding: 12px 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  font-size: 13px;
  max-width: calc(100% - 32px);
  box-shadow: 0 6px 20px #232c3620;
  transition: 0.2s;
}
#notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.identity-view .recovery {
  max-width: 480px;
  margin: 40px auto 100px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 25px;
}
.identity-view .recovery p {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 1450px) {
  .identity-view .auth-layout {
    min-height: calc(100vh - 210px);
  }
}
@media (max-width: 1000px) {
  .identity-view .auth-layout {
    gap: 30px;
  }
  .identity-view .auth-panel {
    padding: 32px;
  }
  .identity-view .auth-story {
    padding: 0;
  }
  .identity-view .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .identity-view .side {
    padding: 28px 16px;
  }
  .identity-view .user-workspace {
    padding-inline: 25px;
  }
  .identity-view .welcome-symbol {
    width: 75px;
    height: 95px;
  }
  .identity-view .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .identity-view .public-header {
    padding: 22px 22px 10px;
  }
  .identity-view .brand img {
    width: 36px;
    height: 36px;
  }
  .identity-view .brand b {
    font-size: 27px;
  }
  .identity-view .header-switch {
    font-size: 12px;
    gap: 8px;
  }
  .identity-view .header-switch > span {
    display: none;
  }
  .identity-view .auth-layout {
    display: block;
    padding: 32px 22px 20px;
    min-height: 0;
    max-width: 480px;
  }
  .identity-view .auth-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .identity-view .auth-story {
    display: none;
  }
  .identity-view .auth-intro {
    margin: 14px 0 32px;
  }
  .identity-view .auth-intro h1 {
    font-size: 31px;
  }
  .identity-view .auth-intro p {
    font-size: 14px;
    max-width: 300px;
  }
  .identity-view .auth-form {
    gap: 21px;
  }
  .identity-view .field input,
  .identity-view .field textarea {
    background: white;
    min-height: 53px;
    border-radius: 14px;
  }
  .identity-view .password-toggle {
    top: 6px;
  }
  .identity-view .auth-form > .btn {
    min-height: 53px;
    margin-top: 8px;
  }
  .identity-view .auth-bottom {
    margin-top: 27px;
  }
  .identity-view .trial-note {
    margin-top: 26px;
    text-align: right;
    font-size: 11px;
  }
  .identity-view .public-footer {
    margin-top: 12px;
  }
  .identity-view .setup-wrap {
    margin-top: 15px;
    padding: 0 20px;
  }
  .identity-view .setup-card {
    padding: 26px 22px;
  }
  .identity-view .setup-card h1 {
    font-size: 24px;
  }
  .identity-view .setup-card .auth-intro {
    margin: 0 0 25px;
  }
  .identity-view .setup-card .auth-intro p {
    margin-inline: auto;
  }
  .identity-view .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .identity-view .choice-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .identity-view .app-shell {
    display: block;
    min-height: 100dvh;
  }
  .identity-view .side {
    display: none;
  }
  .identity-view .user-workspace {
    padding: 0 20px 105px;
  }
  .identity-view .app-header {
    height: 80px;
    margin-bottom: 26px;
  }
  .identity-view .app-header > .breadcrumb {
    display: none;
  }
  .identity-view .mobile-brand {
    display: block;
  }
  .identity-view .mobile-brand .brand b {
    font-size: 26px;
  }
  .identity-view .mobile-brand .brand img {
    width: 32px;
    height: 32px;
  }
  .identity-view .account-chip .name {
    display: none;
  }
  .identity-view .page-heading h1 {
    font-size: 26px;
  }
  .identity-view .page-heading p {
    font-size: 12px;
  }
  .identity-view .page-heading .btn {
    padding: 9px 14px;
    min-height: 42px;
    font-size: 12px;
  }
  .identity-view .welcome-card {
    padding: 24px;
    gap: 13px;
    border-radius: 22px;
  }
  .identity-view .welcome-copy h2 {
    font-size: 22px;
  }
  .identity-view .welcome-copy p {
    font-size: 12px;
    max-width: 260px;
  }
  .identity-view .welcome-symbol {
    width: 56px;
    height: 76px;
    margin-inline-end: 8px;
  }
  .identity-view .welcome-symbol .icon {
    width: 34px;
    height: 34px;
  }
  .identity-view .welcome-card .btn {
    font-size: 12px;
    padding: 10px 14px;
  }
  .identity-view .stat-grid {
    gap: 9px;
    margin-top: 16px;
  }
  .identity-view .stat {
    padding: 14px 12px;
    border-radius: 16px;
  }
  .identity-view .stat-label {
    font-size: 11px !important;
  }
  .identity-view .stat-label .icon {
    width: 16px;
    height: 16px;
  }
  .identity-view .stat-value {
    font-size: 24px !important;
  }
  .identity-view .stat-value.words {
    font-size: 12px !important;
    line-height: 1.7;
    margin-top: 18px;
  }
  .identity-view .class-grid {
    gap: 12px;
  }
  .identity-view .class-card {
    padding: 18px;
  }
  .identity-view .class-card h3 {
    font-size: 16px;
  }
  .identity-view .class-card .badge {
    font-size: 10px;
  }
  .identity-view .class-card .tool-icon {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }
  .identity-view .class-card .card-bottom {
    font-size: 11px;
  }
  .identity-view .empty-card {
    padding: 30px 22px;
  }
  .identity-view .empty-card h3 {
    font-size: 18px;
  }
  .identity-view .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 13px;
    left: 15px;
    right: 15px;
    z-index: 20;
    background: #ffffffee;
    border: 1px solid #dbe0e5;
    box-shadow: 0 7px 35px #25303b10;
    backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 7px;
    justify-content: space-between;
  }
  .identity-view .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 58px;
    flex: 1;
    color: #7f8891;
    font-size: 10px;
    border-radius: 16px;
  }
  .identity-view .mobile-nav a.active {
    background: #e7ebf0;
    color: #364454;
    font-weight: 600;
  }
  .identity-view .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  #notice {
    bottom: 95px;
  }
  .identity-view .tools-grid {
    gap: 12px;
  }
  .identity-view .preview-tool {
    padding: 18px;
  }
  .identity-view .preview-tool h3 {
    font-size: 14px;
  }
  .identity-view .profile-card {
    padding: 22px;
  }
  .identity-view .detail-row {
    font-size: 12px;
  }
  .identity-view .detail-row b[dir="ltr"] {
    font-size: 11px;
  }
  .identity-view .recovery {
    margin: 30px 20px;
  }
  .identity-view .dialog-body {
    padding: 22px;
  }
  .identity-view .dialog-header {
    padding: 20px 22px;
  }
  .identity-view .dialog-header h2 {
    font-size: 18px;
  }
  .identity-view .form-pair {
    grid-template-columns: 1fr;
  }
  .identity-view .context-note {
    font-size: 11px;
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .identity-view * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep account components scoped; preserve the original workspace layout. */
.identity-view main {
  padding: 0;
}
.identity-view .auth-layout {
  padding: 22px 24px 40px;
}
.identity-view .setup-wrap {
  padding: 0 24px;
}
.identity-view .brand {
  margin: 0;
  padding: 0;
}
.identity-view .brand small {
  font-family: inherit;
}
.identity-view .public-footer {
  margin: 0;
  border: 0;
}
.identity-view .field {
  margin: 0;
  display: grid;
  gap: 8px;
}
.identity-view .field > span {
  color: inherit;
}
.identity-view .profile-card {
  background: white;
}
.identity-view .form-error[hidden],
.identity-view [hidden] {
  display: none;
}
.identity-view .class-card {
  display: block;
  text-align: right;
}
.identity-view .class-card .badge {
  position: static;
}
@media (max-width: 650px) {
  .identity-view .auth-layout {
    padding: 10px 20px 30px;
  }
  .mobile-nav a {
    font-size: 9px;
    min-width: 0;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
}

.identity-view .identity-providers {
  margin: 22px 0 16px;
}
.identity-view .provider-button {
  min-height: 50px;
  border: 1px solid #d9dfe4;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  color: #233642;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}
.identity-view .provider-button:hover {
  background: #f6f8fa;
}
.identity-view .provider-button.unavailable {
  opacity: 0.66;
  cursor: default;
}
.identity-view .provider-button small {
  font-size: 10px;
  font-weight: 400;
}
.identity-view .google-letter {
  color: #4285f4;
  font:
    700 22px Arial,
    sans-serif;
}
.identity-view .provider-note {
  font-size: 11px;
  color: #6d7680;
  text-align: center;
  margin: 9px 0;
}
.identity-view .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #7a838c;
  margin: 16px 0;
}
.identity-view .auth-divider::before,
.identity-view .auth-divider::after {
  content: "";
  height: 1px;
  background: #e5e8ec;
  flex: 1;
}

#release-update {
  position: fixed;
  inset: auto 16px 16px;
  margin: auto;
  max-width: 550px;
  width: calc(100% - 32px);
  border: 1px solid #c7d0d7;
  border-radius: 20px;
  padding: 24px;
  color: #233642;
  background: #fff;
  box-shadow: 0 12px 50px #17293630;
  font-family: inherit;
}
#release-update::backdrop {
  background: #17293650;
  backdrop-filter: blur(2px);
}
#release-update h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
#release-update p {
  color: #63717b;
  font-size: 14px;
  line-height: 1.8;
}
#release-reload {
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  color: white;
  background: #344b5c;
  font: inherit;
  cursor: pointer;
  width: 100%;
}
