:root {
  --navy-950: #07112c;
  --navy-800: #102453;
  --blue-600: #2364ee;
  --blue-500: #3477ff;
  --paper: #fffefa;
  --surface: #f4f7fc;
  --surface-strong: #edf3fc;
  --input-surface: #fbfcff;
  --ink: #11192d;
  --muted: #697287;
  --line: #dfe4ee;
  --line-strong: #c9d3e2;
  --danger: #b42318;
  --danger-bg: #fff1f0;
  --success: #067647;
  --focus-ring: rgba(52, 119, 255, 0.18);
  --shadow-card:
    0 0.125rem 0.3125rem rgba(7, 17, 44, 0.05),
    0 1.125rem 2.25rem rgba(7, 17, 44, 0.09),
    0 2.625rem 5.375rem rgba(7, 17, 44, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(26.25rem, 1fr) minmax(31.25rem, 0.9fr);
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  padding: clamp(2.25rem, 5vw, 4.75rem);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 24%, rgba(82, 144, 255, 0.58), transparent 30%),
    radial-gradient(circle at 16% 82%, rgba(59, 102, 204, 0.35), transparent 28%),
    linear-gradient(142deg, var(--navy-950), var(--navy-800));
}

.brand-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -16.25rem;
  bottom: -16.25rem;
  width: 35rem;
  height: 35rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 4.6875rem rgba(255, 255, 255, 0.025), 0 0 0 9.375rem rgba(255, 255, 255, 0.018);
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(11.875rem, 16vw, 15rem);
  max-width: 100%;
  height: auto;
  margin-block: -1rem;
}

.brand-panel > .brand .brand-logo {
  filter: brightness(0) invert(1);
}

.brand-message {
  max-width: 41.25rem;
  margin-block: auto;
  padding-block: 4.375rem;
}

.eyebrow {
  margin: 0 0 0.875rem;
  color: var(--blue-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-message .eyebrow {
  color: #a8c5ff;
}

.brand-message h1 {
  max-width: 38.75rem;
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 6.4rem);
  font-weight: 720;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.brand-message > p:last-child {
  max-width: 32.5rem;
  margin: 1.875rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.login-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2.5rem clamp(1.75rem, 5vw, 4.75rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(52, 119, 255, 0.1), transparent 28rem),
    radial-gradient(circle at 0 100%, rgba(35, 100, 238, 0.07), transparent 24rem),
    var(--surface);
}

.login-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7%;
  right: -6.875rem;
  width: 16.25rem;
  height: 16.25rem;
  border: 0.0625rem solid rgba(52, 119, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 2.625rem rgba(52, 119, 255, 0.025), 0 0 0 5.25rem rgba(52, 119, 255, 0.018);
}

.login-card {
  position: relative;
  width: min(100%, 33.75rem);
  padding: clamp(2rem, 4.5vw, 3.375rem);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 0.0625rem solid rgba(201, 211, 226, 0.82);
  border-radius: 1.625rem;
  box-shadow: var(--shadow-card);
}

.mobile-brand {
  display: none;
  margin-bottom: 2.375rem;
  color: var(--ink);
}

.mobile-brand .brand-logo {
  width: 13.125rem;
}

.login-card h2,
.platform-card h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.intro {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.alert {
  margin-top: 1.5rem;
  padding: 0.9375rem 1.0625rem;
  font-size: 0.88rem;
  line-height: 1.55;
  border: 0.0625rem solid;
  border-radius: 0.875rem;
  box-shadow: 0 0.5rem 1.375rem rgba(7, 17, 44, 0.04);
}

.alert-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #f5b9b4;
}

.alert-success {
  color: var(--success);
  background: #ecfdf3;
  border-color: #a6f4c5;
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 0.375rem;
}

.login-form {
  display: grid;
  gap: 1.375rem;
  margin-top: 2rem;
}

.name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  color: #26334d;
  font-size: 0.84rem;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.375rem;
  padding: 0.875rem 1rem;
  color: var(--ink);
  background: var(--input-surface);
  border: 0.0625rem solid var(--line-strong);
  border-radius: 0.875rem;
  outline: none;
  box-shadow: 0 0.0625rem 0.125rem rgba(7, 17, 44, 0.025);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.field input,
.field select {
  height: 3.375rem;
  padding-block: 0;
}

.field textarea {
  resize: vertical;
  line-height: 1.55;
}

.field small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  background: #fff;
  border-color: #aebbd0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: #7d8799;
  box-shadow: none;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 0.25rem rgba(180, 35, 24, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #929caf;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  color: #737d90;
  cursor: not-allowed;
  background: #eef1f6;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 62.5rem #f3f7ff inset;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 5.75rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  min-height: 2rem;
  padding: 0.375rem 0.5625rem;
  color: var(--blue-600);
  font-size: 0.75rem;
  font-weight: 750;
  background: #eef4ff;
  border: 0.0625rem solid transparent;
  border-radius: 0.5625rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: #e3edff;
  border-color: #c5d8ff;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.375rem;
  padding: 0 1.375rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0.8125rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), #2f73fa);
  border: 0.0625rem solid var(--blue-600);
  box-shadow: 0 0.75rem 1.75rem rgba(35, 100, 238, 0.22);
}

.primary-button:hover {
  background: #1956d6;
  box-shadow: 0 0.9375rem 2rem rgba(35, 100, 238, 0.28);
  transform: translateY(-0.0625rem);
}

.secondary-button {
  color: var(--blue-600);
  background: #fbfdff;
  border: 0.0625rem solid #b9cdfd;
}

.secondary-button:hover {
  background: #f1f6ff;
  border-color: #8caff8;
  box-shadow: 0 0.5625rem 1.375rem rgba(35, 100, 238, 0.1);
  transform: translateY(-0.0625rem);
}

.danger-button {
  color: #fff;
  background: var(--danger);
  border: 0.0625rem solid var(--danger);
}

.danger-button:hover {
  background: #912018;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.primary-button:active,
.secondary-button:active,
.danger-button:active {
  transform: translateY(0);
}

.form-assistance {
  margin: -0.5rem 0 0;
  font-size: 0.82rem;
  text-align: right;
}

.form-assistance a {
  color: var(--blue-600);
  font-weight: 700;
}

.auth-navigation {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

.registration-action {
  display: grid;
  gap: 0.75rem;
}

.registration-action p {
  margin: 0;
}

.registration-action .registration-button {
  width: 100%;
  font-size: 0.95rem;
  text-decoration: none;
}

.registration-action .registration-button:hover {
  background: #f4f7ff;
  border-color: #8caff8;
  transform: translateY(-0.0625rem);
}

.stacked-links {
  display: grid;
  gap: 0.625rem;
}

.auth-navigation a,
.intro a,
.platform-link {
  color: var(--blue-600);
  font-weight: 750;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.1875rem;
}

.auth-navigation a:hover,
.intro a:hover,
.platform-link:hover {
  color: #1956d6;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 1rem;
  color: #465069;
  background: linear-gradient(135deg, #f4f8ff, #f8faff);
  border: 0.0625rem solid #e0e9f8;
  border-radius: 0.875rem;
}

.security-note > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 900;
  background: #d1fadf;
  border-radius: 50%;
}

.security-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

button:focus-visible,
a:focus-visible {
  outline: 0.1875rem solid rgba(52, 119, 255, 0.3);
  outline-offset: 0.1875rem;
}

.platform-page {
  min-height: 100vh;
  padding: 1.5rem 0 3rem;
  background:
    radial-gradient(circle at top left, rgba(52, 119, 255, 0.17), transparent 34rem),
    var(--surface);
}

.platform-card {
  width: 80%;
  margin-inline: auto;
  padding: 0;
  overflow: visible;
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 1.625rem 4.375rem rgba(7, 17, 44, 0.1);
}

.platform-card-wide {
  width: 80%;
}

.platform-card-profile {
  width: 80%;
}

.platform-navigation {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem clamp(1.75rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 0.0625rem solid rgba(201, 211, 226, 0.82);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 0.5625rem 1.5rem rgba(7, 17, 44, 0.055);
  backdrop-filter: blur(0.875rem);
}

.platform-navigation > * {
  min-width: 0;
}

.platform-brand {
  flex: 1 1 auto;
  color: var(--ink);
}

.platform-brand .brand-logo {
  width: clamp(8.75rem, 34vw, 13.75rem);
}

.platform-content {
  min-width: 0;
  padding: clamp(2.125rem, 5vw, 4rem);
}

.platform-actions {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.account-menu {
  flex: 0 0 auto;
  position: relative;
}

.account-menu summary {
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.hamburger-button {
  display: grid;
  align-content: center;
  gap: 0.3125rem;
  width: 3rem;
  height: 3rem;
  padding: 0 0.8125rem;
  background: #fbfdff;
  border: 0.0625rem solid #b9cdfd;
  border-radius: 0.875rem;
  cursor: pointer;
}

.hamburger-button span {
  display: block;
  height: 0.125rem;
  background: var(--blue-600);
  border-radius: 62.4375rem;
  transition: opacity 160ms ease, transform 160ms ease;
}

.account-menu[open] .hamburger-button span:first-child {
  transform: translateY(0.4375rem) rotate(45deg);
}

.account-menu[open] .hamburger-button span:nth-child(2) {
  opacity: 0;
}

.account-menu[open] .hamburger-button span:last-child {
  transform: translateY(-0.4375rem) rotate(-45deg);
}

.account-menu-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.625rem);
  right: 0;
  display: grid;
  width: min(14.375rem, calc(100vw - 2.5rem));
  padding: 0.5rem;
  background: #fff;
  border: 0.0625rem solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 1.375rem 3.4375rem rgba(7, 17, 44, 0.2);
}

.account-menu-panel a,
.account-menu-panel button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.8125rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 730;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0.625rem;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover,
.account-menu-panel a[aria-current="page"] {
  color: var(--blue-600);
  background: var(--surface-strong);
}

.account-menu-panel .logout-form {
  margin-top: 0.3125rem;
  padding-top: 0.3125rem;
  border-top: 0.0625rem solid var(--line);
}

.account-menu-panel .logout-form button {
  color: var(--danger);
}

.menu-icon,
.settings-option-icon svg,
.profile-information-icon svg {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.compact-button {
  min-height: 2.625rem;
  padding-inline: 1rem;
  font-size: 0.82rem;
}

.platform-link[aria-current="page"] {
  text-decoration: none;
}

.platform-card .intro {
  max-width: 35rem;
}

.account-summary {
  display: grid;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 1rem;
}

#profile {
  scroll-margin-top: 1.5rem;
}

.settings-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.125rem;
  margin-top: 2.125rem;
  padding: 1.375rem;
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  border-radius: 1.125rem;
}

.settings-option-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--blue-600);
  background: #e8f0ff;
  border-radius: 0.875rem;
}

.settings-option-copy {
  min-width: 0;
}

.settings-option-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-option h2 {
  margin: 0;
  font-size: 1.25rem;
}

.settings-option p {
  margin: 0.625rem 0 1.125rem;
  color: var(--muted);
  line-height: 1.6;
}

.mfa-status {
  padding: 0.375rem 0.625rem;
  color: #93370d;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  background: #fffaeb;
  border: 0.0625rem solid #fedf89;
  border-radius: 62.4375rem;
}

.mfa-status.is-enabled {
  color: var(--success);
  background: #ecfdf3;
  border-color: #abefc6;
}

.account-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-summary strong {
  font-size: 1.1rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}

.profile-information-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
  gap: 1.125rem;
  margin-top: 2.125rem;
}

.profile-information-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 7rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, #f8faff, #f1f5fc);
  border: 0.0625rem solid #dce5f3;
  border-radius: 1.125rem;
  box-shadow: 0 0.75rem 1.75rem rgba(18, 43, 89, 0.06);
}

.profile-information-card > * {
  min-width: 0;
  max-width: 100%;
}

.profile-information-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--blue-600);
  background: #e4edff;
  border: 0.0625rem solid #cbdcff;
  border-radius: 0.875rem;
}

.profile-information-card div {
  display: grid;
  gap: 0.4375rem;
  min-width: 0;
}

.profile-information-label {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.35;
  overflow-wrap: normal;
  text-wrap: balance;
  text-transform: uppercase;
  word-break: normal;
}

.profile-information-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.profile-account-email {
  display: grid;
  gap: 0.0625rem;
  line-height: 1.35;
}

.profile-account-email span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.content-section {
  margin-top: 2.5rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.375rem;
}

.section-heading > * {
  min-width: 0;
  max-width: 100%;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.125rem), 1fr));
  gap: 1rem;
}

.content-card {
  position: relative;
  min-height: 9.375rem;
  padding: 1.5rem;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff, #f5f8fd);
  border: 0.0625rem solid #dce4f0;
  border-radius: 1.125rem;
  box-shadow: 0 0.75rem 1.875rem rgba(7, 17, 44, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--blue-600), #7aa4ff);
}

.content-card:hover {
  border-color: #bfd0f4;
  box-shadow: 0 1.125rem 2.375rem rgba(7, 17, 44, 0.1);
  transform: translateY(-0.125rem);
}

.content-card h3 {
  margin: 0 0 0.75rem;
}

.content-card p {
  margin: 0;
  color: #465069;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.tag-search {
  display: grid;
  grid-template-columns: minmax(13.75rem, 1fr) auto auto;
  align-items: end;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 1.125rem;
  background: var(--surface);
  border: 0.0625rem solid var(--line);
  border-radius: 1rem;
}

.tag-search-field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.tag-search-field label {
  color: #3d4961;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tag-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0 0.8125rem;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 0.0625rem solid #c9d3e2;
  border-radius: 0.625rem;
}

.tag-search-field input:focus {
  outline: 0.125rem solid #4a5568;
  outline-offset: 0.125rem;
  border-color: #7b879b;
  box-shadow: none;
}

.content-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4375rem;
  margin: 0 0 0.875rem;
}

.content-tag {
  display: inline-flex;
  max-width: 100%;
  padding: 0.3125rem 0.5625rem;
  overflow-wrap: anywhere;
  color: #1849a9;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  background: #e8f0ff;
  border: 0.0625rem solid #cbdcff;
  border-radius: 62.4375rem;
}

.content-tag:hover {
  background: #dce8ff;
  border-color: #9ebaff;
}

.content-attachments {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.375rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--line);
}

.content-attachments > strong {
  color: #3d4961;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-attachments ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-attachments a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 0.0625rem solid #d8e2f1;
  border-radius: 0.75rem;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.content-attachments a:hover {
  background: #f3f7ff;
  border-color: #9ebaff;
  transform: translateY(-0.0625rem);
}

.content-attachments svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: var(--blue-600);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.content-attachments span {
  display: grid;
  gap: 0.1875rem;
  min-width: 0;
}

.content-attachments b {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.content-attachments small {
  color: var(--muted);
  font-size: 0.72rem;
}

.empty-state {
  padding: 1.375rem;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border: 0.0625rem dashed #c7d0df;
  border-radius: 0.875rem;
}

.setup-steps {
  display: grid;
  gap: 0.875rem;
  margin: 1.75rem 0;
  padding-left: 1.5rem;
  color: #465069;
  line-height: 1.6;
}

.secret-code,
.technical-details code {
  overflow-wrap: anywhere;
}

.secret-code {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem;
  color: var(--navy-950);
  background: #eef4ff;
  border-radius: 0.625rem;
  user-select: all;
}

.technical-details {
  margin: 1.25rem 0;
  color: var(--muted);
}

.technical-details code {
  display: block;
  margin-top: 0.625rem;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: 0.625rem;
}

.recovery-panel {
  margin-top: 1.75rem;
  padding: 1.375rem;
  background: #fff8e7;
  border: 0.0625rem solid #f4d58d;
  border-radius: 1rem;
}

.recovery-panel h2,
.recovery-panel p {
  margin-top: 0;
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  padding: 0;
  list-style: none;
}

.recovery-codes code {
  display: block;
  padding: 0.625rem;
  text-align: center;
  background: #fff;
  border-radius: 0.5rem;
  user-select: all;
}

.logout-form {
  display: flex;
  margin: 0;
}

@media (max-width: 57.5rem) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    display: none;
  }

  .login-panel {
    min-height: 100svh;
    padding: 2.125rem 1.5rem 3.375rem;
  }

  .mobile-brand {
    display: inline-flex;
  }
}

@media (max-width: 47.5rem) {
  .platform-page {
    padding: 1.125rem 0 2.25rem;
  }

  .platform-card {
    width: calc(100% - 2.25rem);
  }

  .platform-card-wide,
  .platform-card-profile {
    width: calc(100% - 2.25rem);
  }

  .platform-navigation {
    padding-inline: clamp(1.25rem, 5vw, 2.125rem);
  }

  .platform-content {
    padding: clamp(1.75rem, 7vw, 2.875rem);
  }

  .tag-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tag-search-field {
    grid-column: 1 / -1;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading .compact-button {
    width: fit-content;
    max-width: 100%;
  }

  .settings-option {
    grid-template-columns: 1fr;
  }

  .settings-option-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .recovery-codes {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.875rem), 1fr));
  }
}

@media (max-width: 32.5rem) {
  .platform-page {
    padding: 0.75rem 0 1.75rem;
  }

  .platform-card {
    width: calc(100% - 1.5rem);
    border-radius: 1.25rem;
  }

  .platform-card-wide,
  .platform-card-profile {
    width: calc(100% - 1.5rem);
  }

  .platform-content {
    padding: 1.75rem 1.25rem 1.875rem;
  }

  .login-panel {
    align-items: start;
    padding: 1.125rem 0.75rem 2.125rem;
    background: #fff;
  }

  .login-panel::before {
    display: none;
  }

  .login-card {
    padding: 1.75rem 1.25rem 1.875rem;
    border-color: rgba(201, 211, 226, 0.72);
    border-radius: 1.25rem;
    box-shadow:
      0 0.125rem 0.3125rem rgba(7, 17, 44, 0.04),
      0 1.125rem 2.625rem rgba(7, 17, 44, 0.09);
  }

  .mobile-brand {
    margin-bottom: 2rem;
  }

  .login-card h2,
  .platform-card h1 {
    font-size: 2.5rem;
  }

  .name-fields {
    grid-template-columns: 1fr;
  }

  .platform-navigation {
    padding: 1rem 1.25rem;
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .tag-search {
    grid-template-columns: 1fr;
    padding: 0.875rem;
  }

  .tag-search-field {
    grid-column: auto;
  }

  .tag-search .compact-button {
    width: 100%;
  }

  .account-grid,
  .profile-information-grid,
  .recovery-codes {
    grid-template-columns: 1fr;
  }

  .profile-information-card {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .profile-information-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-option {
    grid-template-columns: 1fr;
  }

  .settings-option-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 23.75rem) {
  .platform-page {
    padding: 0.5rem 0 1.375rem;
  }

  .platform-card {
    width: calc(100% - 1rem);
    border-radius: 1.125rem;
  }

  .platform-card-wide,
  .platform-card-profile {
    width: calc(100% - 1rem);
  }

  .platform-content {
    padding: 1.5rem 1rem 1.625rem;
  }

  .platform-navigation {
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 1.125rem 1.125rem 0 0;
  }

  .hamburger-button {
    width: 2.75rem;
    height: 2.75rem;
  }

  .profile-information-card {
    grid-template-columns: 1fr;
  }

  .profile-information-label {
    text-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
