:root {
  color: #111318;
  background: #eef0f4;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.55;
  --ink: #111318;
  --muted: #646a73;
  --line: var(--owner-line, #dfe2e7);
  --panel: #ffffff;
  --soft: #f2f4f7;
  --accent: #087ee8;
  --accent-dark: #075daf;
  --success: #168454;
  --warning: #8a5a00;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #090b12 0, #111827 19rem, #eef0f4 19rem, #f7f8fa 100%); }
a { color: inherit; }
.site-header { color: white; background: rgba(8,10,16,.98); border-bottom: 1px solid #252a35; }
.header-inner { display: flex; width: min(1180px, calc(100% - 2rem)); min-height: 5rem; margin: auto; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: white; text-decoration: none; }
.brand-mark { display: grid; min-width: 3.35rem; place-items: center; line-height: 1; font-family: Georgia, serif; }
.brand-mark > span { font-size: 1.35rem; letter-spacing: .08em; }.brand-mark > small { margin-top: .25rem; font: 600 .34rem/1 ui-sans-serif, sans-serif; letter-spacing: .18em; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: .96rem; letter-spacing: .14em; }
.brand-copy small { margin-top: .25rem; color: #aeb3bd; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.secure-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .72rem; border: 1px solid #343842; border-radius: 99px; color: #dfe2e8; font-size: .78rem; font-weight: 700; }
.secure-badge span { width: .46rem; height: .46rem; border-radius: 50%; background: #45d48c; box-shadow: 0 0 0 .22rem rgba(69,212,140,.12); }
.djr-staff-header-home,
.djr-staff-floating-home { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.8rem; padding: .62rem .85rem; border: 1px solid rgba(145, 166, 255, .42); border-radius: 999px; color: #fff; background: linear-gradient(135deg, #147fc9, #6542d8); box-shadow: 0 .65rem 1.6rem rgba(15, 38, 89, .24); font-size: .82rem; font-weight: 800; text-decoration: none; }
.djr-staff-header-home:hover,
.djr-staff-floating-home:hover { background: linear-gradient(135deg, #1998e7, #7753ec); }
.djr-staff-header-home:focus-visible,
.djr-staff-floating-home:focus-visible { outline: 3px solid #9ad8ff; outline-offset: 3px; }
.djr-staff-header-home svg,
.djr-staff-floating-home svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex: 0 0 auto; }
.djr-staff-floating-home { position: fixed; z-index: 9800; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); }
.shell { width: min(1180px, calc(100% - 2rem)); min-height: calc(100vh - 11rem); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0; }
.site-footer { display: flex; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 2.5rem; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--owner-muted, var(--muted)); font-size: .83rem; }
.site-footer p { margin: 0; }.site-footer a { color: var(--owner-ink, var(--ink)); font-weight: 700; text-decoration: none; }

.card, .hero-card, .success-hero { border: 1px solid var(--line); border-radius: .3rem; background: rgba(255,255,255,.99); box-shadow: 0 1.2rem 3.5rem rgba(5,12,25,.12); }
.card { padding: clamp(1.25rem, 3.5vw, 2.35rem); }.narrow { max-width: 680px; margin-inline: auto; }
.hero-card, .success-hero { display: flex; padding: clamp(1.5rem, 4vw, 3.25rem); align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.25rem; overflow: hidden; position: relative; }
.hero-card { color: white; border-color: #273247; background: radial-gradient(circle at 78% 35%, rgba(0,139,255,.38), transparent 28%), linear-gradient(120deg, #101521, #08111e 62%, #071c36); }
.hero-card h1 { color: white; }.hero-card .lede { color: #c3cbd8; }.hero-card .eyebrow { color: #58b6ff; }
.hero-card::after { content: ""; position: absolute; width: 22rem; height: 1px; right: -2rem; top: 52%; background: linear-gradient(90deg, transparent, #20a4ff, transparent); box-shadow: 0 0 2rem .25rem rgba(32,164,255,.5); transform: rotate(-14deg); }
h1, h2, h3 { color: var(--owner-ink, var(--ink)); line-height: 1.08; letter-spacing: -.035em; }
h1 { margin: 0 0 .65rem; font-size: clamp(2.15rem, 6vw, 4rem); }
h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); } h3 { margin: 0; font-size: 1.25rem; }
p { max-width: 48rem; }.lede { margin: 0; color: var(--owner-muted, var(--muted)); font-size: clamp(1rem, 2vw, 1.16rem); }.lede.compact { margin-top: .45rem; font-size: 1rem; }
.eyebrow { margin: 0 0 .38rem; color: var(--owner-accent, var(--accent)); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.access-pill { display: grid; min-width: 10.5rem; padding: 1rem 1.1rem; position: relative; z-index: 1; border: 1px solid rgba(130,196,255,.35); border-radius: .25rem; background: rgba(8,18,32,.76); text-align: right; }
.access-pill span { color: #67bdff; font-size: .78rem; font-weight: 800; text-transform: uppercase; }.access-pill strong { margin-top: .18rem; color: white; }
.onboarding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }.setup-card { min-height: 100%; }
.section-heading { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }.section-heading .eyebrow { margin-bottom: .2rem; }
.step-number { display: grid; flex: 0 0 auto; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .65rem; color: white; background: var(--ink); font-weight: 850; }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin: 1.15rem 0; }.device-grid.compact-grid { grid-template-columns: repeat(4, 1fr); }
.device-link { display: flex; min-width: 0; padding: .85rem; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--owner-inset, var(--soft)); text-decoration: none; transition: border-color .15s, transform .15s, background .15s; }
.device-link:hover { transform: translateY(-1px); border-color: #aebff5; background: #f7f9ff; }.device-link > span:last-child { display: grid; min-width: 0; }.device-link small { color: var(--owner-muted, var(--muted)); }
.device-icon { display: block; flex: 0 0 auto; width: 2.15rem; height: 2.15rem; position: relative; border-radius: .2rem; color: white; background: #121722; }.device-icon.large { width: 2.6rem; height: 2.6rem; }
.desktop-icon::before { content: ""; position: absolute; inset: .46rem .38rem .72rem; border: 1.5px solid white; border-radius: 1px; }.desktop-icon::after { content: ""; position: absolute; width: 1.45rem; height: 1.5px; left: .35rem; bottom: .48rem; background: white; box-shadow: 0 -.13rem 0 -.03rem white; }
.mobile-icon::before { content: ""; position: absolute; inset: .34rem .68rem; border: 1.5px solid white; border-radius: .18rem; }.mobile-icon::after { content: ""; position: absolute; width: .16rem; height: .16rem; left: 50%; bottom: .5rem; border-radius: 50%; background: white; transform: translateX(-50%); }
.stack { display: grid; gap: 1.05rem; margin-top: 1.2rem; }.field { display: grid; gap: .4rem; }label, legend { font-weight: 760; }fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }legend { margin-bottom: .55rem; }
input { width: 100%; min-height: 3.05rem; padding: .72rem .8rem; border: 1px solid #b8bdc6; border-radius: .62rem; color: var(--owner-ink, var(--ink)); background: white; font: inherit; }
input:focus { outline: 3px solid rgba(29,85,231,.15); border-color: var(--accent); }
button, .button-link { display: inline-flex; min-height: 3rem; padding: .72rem 1rem; align-items: center; justify-content: center; gap: .55rem; border: 1px solid #252b36; border-radius: .18rem; color: white; background: #11151d; font: inherit; font-weight: 780; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
button:hover, .button-link:hover { transform: translateY(-1px); background: var(--accent); }.button-wide { width: 100%; }.button-secondary { color: var(--owner-ink, var(--ink)); background: #e9ebef; }.button-secondary:hover { background: #dfe2e7; }
.help, .fine-print { margin: .55rem 0 0; color: var(--owner-muted, var(--muted)); font-size: .86rem; }.password-help ul { margin: .35rem 0 0; padding-left: 1.2rem; }.recipient-line { margin-bottom: .75rem; color: var(--owner-muted, var(--muted)); }
.access-summary, .role-guide { padding: .9rem 1rem; border: 1px solid #e0e6f6; border-radius: .7rem; background: #f7f9ff; }.access-summary p { margin: .35rem 0 0; }.role-guide { display: grid; gap: .7rem; }.role-guide p { display: grid; gap: .2rem; margin: 0; }.role-guide span { color: var(--owner-muted, var(--muted)); font-size: .9rem; }
.role-options > div > div { display: flex; align-items: center; gap: .55rem; margin: .4rem 0; }.role-options input[type="radio"] { width: 1.1rem; min-height: 1.1rem; margin: 0; }.role-options label { font-weight: 650; }
.notice, .form-error { padding: .85rem 1rem; border-radius: .7rem; }.notice-warning { color: #754d00; background: #fff5d8; }.notice-success { color: #155d35; background: #e9f7ee; }.form-error { color: #85202a; background: #fff0f1; }.errorlist { margin: 0; padding-left: 1.15rem; color: #a22431; font-size: .9rem; }
.back-link { display: inline-block; margin-bottom: 1.3rem; color: var(--owner-accent, var(--accent)); font-weight: 750; text-decoration: none; }.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }.page-heading h1 { font-size: clamp(2rem, 5vw, 3rem); }.logout-form { display: flex; gap: .7rem; margin-top: 2rem; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; }th, td { padding: .85rem .7rem; border-bottom: 1px solid #e8eaee; text-align: left; white-space: nowrap; }th { color: var(--owner-muted, var(--muted)); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.status { display: inline-block; padding: .22rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 780; }.status-waiting { color: #735000; background: #fff2c9; }.status-used { color: #155d35; background: #e4f5ea; }.status-expired { color: #687078; background: #eceef1; }
.status-staff-request { color: #075daf; background: #e5f2ff; }.status-zoho-ready { color: #5e3d00; background: #fff0c2; }.table-subline { display: block; margin-top: .2rem; color: var(--owner-muted, var(--muted)); }
.empty-state { padding: 2.5rem; border: 1px dashed #bcc2cb; border-radius: .8rem; text-align: center; }.empty-state p { margin: .3rem auto; }.empty-icon { display: grid; width: 2.7rem; height: 2.7rem; margin: 0 auto .75rem; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-size: 1.4rem; }
.success-hero { justify-content: flex-start; }.success-icon { display: grid; flex: 0 0 auto; width: 4rem; height: 4rem; place-items: center; border-radius: 50%; color: white; background: var(--success); font-size: 1.8rem; font-weight: 850; }.success-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.connection-summary { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 1rem; margin-bottom: 1.25rem; }.connection-summary > div { display: grid; align-content: start; gap: .35rem; }.summary-label { color: var(--owner-muted, var(--muted)); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.connection-summary p { margin: 0; }
.tailscale-panel { margin-bottom: 2rem; }.guide-section { margin-top: 2rem; }.section-title { margin-bottom: 1rem; }.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }.guide-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }.guide-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }.guide-heading p { margin: .2rem 0 0; color: var(--owner-muted, var(--muted)); font-size: .85rem; }.guide-card ol { margin: 0; padding-left: 1.25rem; }.guide-card li { margin: .65rem 0; padding-left: .25rem; }
code { padding: .12rem .35rem; border-radius: .3rem; color: #173d96; background: #edf2ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; overflow-wrap: anywhere; }.privacy-note { margin-top: 1.25rem; padding: 1.1rem 1.2rem; border-left: .25rem solid var(--accent); border-radius: .3rem .75rem .75rem .3rem; background: #eef3ff; }.privacy-note p { margin: .3rem 0 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.email-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.email-field input { border-radius: .62rem 0 0 .62rem; }
.email-field span { display: flex; padding: 0 .8rem; align-items: center; border: 1px solid #b8bdc6; border-left: 0; border-radius: 0 .62rem .62rem 0; color: var(--owner-muted, var(--muted)); background: var(--owner-inset, var(--soft)); font-weight: 700; }
.next-steps { margin: 1.2rem 0; padding-left: 1.3rem; }.next-steps li { margin: .8rem 0; padding-left: .3rem; }

@media (max-width: 850px) { .onboarding-grid, .guide-grid { grid-template-columns: 1fr; }.connection-summary { grid-template-columns: 1fr 1fr; }.device-grid.compact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .header-inner, .shell, .site-footer { width: min(100% - 1.2rem, 1180px); }.header-inner { min-height: 4.4rem; }.secure-badge { font-size: 0; padding: .65rem; }.secure-badge span { margin: 0; }.shell { padding: 1.25rem 0 2.5rem; }.hero-card, .success-hero, .page-heading { align-items: flex-start; flex-direction: column; }.access-pill { width: 100%; text-align: left; }.device-grid, .device-grid.compact-grid, .connection-summary, .form-grid { grid-template-columns: 1fr; }.email-field { grid-template-columns: 1fr; }.email-field input, .email-field span { border-radius: .62rem; }.email-field span { min-height: 2.6rem; border-left: 1px solid #b8bdc6; border-top: 0; }.card { border-radius: .85rem; }.site-footer { align-items: flex-start; flex-direction: column; }.logout-form { flex-wrap: wrap; } }
@media (max-width: 420px) { .djr-staff-header-home { width: 2.8rem; padding-inline: .7rem; }.djr-staff-header-home span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }


/* DJR secure storage viewer */

.access-dashboard {
  display: grid;
  grid-template-columns:
    minmax(280px, 0.72fr)
    minmax(0, 1.55fr);
  gap: 1.5rem;
  align-items: start;
}

.access-dashboard__left {
  min-width: 0;
}

.storage-viewer {
  min-width: 0;
  min-height: 720px;
  position: sticky;
  top: 1.25rem;
}

.storage-viewer__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.storage-viewer__header h2 {
  margin-bottom: 0.35rem;
}

.storage-secure-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(116, 82, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.storage-login-form {
  max-width: 460px;
}

.storage-login-form label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.storage-login-form input {
  width: 100%;
}

.storage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.storage-toolbar__actions {
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
}

.storage-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
}

.storage-breadcrumbs button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.storage-table-wrap {
  overflow: auto;
  min-height: 490px;
  border: 1px solid rgba(128, 128, 160, 0.25);
  border-radius: 0.8rem;
}

.storage-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

.storage-table th,
.storage-table td {
  text-align: left;
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid rgba(128, 128, 160, 0.18);
  vertical-align: middle;
}

.storage-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: inherit;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.storage-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 250px;
}

.storage-entry-icon {
  width: 1.5rem;
  text-align: center;
}

.storage-entry-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.storage-entry-link:hover,
.storage-entry-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.storage-empty {
  text-align: center !important;
  padding: 3rem 1rem !important;
  opacity: 0.72;
}

.storage-message {
  min-height: 1.4rem;
  margin-top: 0.8rem;
}

[data-storage-browser][hidden],
[data-storage-login][hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .access-dashboard {
    grid-template-columns: 1fr;
  }

  .storage-viewer {
    position: static;
    min-height: 620px;
  }
}

@media (max-width: 640px) {
  .storage-viewer__header,
  .storage-toolbar {
    display: grid;
  }

  .storage-toolbar__actions {
    flex-wrap: wrap;
  }
}

/* DJR top connection and storage dashboard — final correction */

.access-dashboard {
  display: grid;
  grid-template-columns:
    minmax(250px, 0.7fr)
    minmax(0, 1.65fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.access-dashboard > .connection-summary {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 1rem 1.15rem;
}

.access-dashboard >
.connection-summary > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid
    rgba(128, 128, 160, 0.18);
}

.access-dashboard >
.connection-summary > div:first-child {
  padding-top: 0;
}

.access-dashboard >
.connection-summary > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.access-dashboard
.connection-summary .summary-label {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.access-dashboard
.connection-summary code,
.access-dashboard
.connection-summary p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.access-dashboard > .storage-viewer {
  position: sticky;
  top: 1rem;
  min-width: 0;
  min-height: 620px;
  margin: 0;
}

.storage-login-form {
  width: min(100%, 480px);
}

.storage-login-form input {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .access-dashboard {
    grid-template-columns: 1fr;
  }

  .access-dashboard >
  .storage-viewer {
    position: static;
    min-height: 560px;
  }

  .access-dashboard >
  .connection-summary {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .access-dashboard >
  .connection-summary > div {
    display: block;
    padding: 0.75rem;
    border: 1px solid
      rgba(128, 128, 160, 0.18);
    border-radius: 0.65rem;
  }

  .access-dashboard
  .connection-summary .summary-label {
    display: block;
    margin-bottom: 0.4rem;
  }
}

@media (max-width: 560px) {
  .access-dashboard >
  .connection-summary {
    grid-template-columns: 1fr;
  }
}

/* Final top access dashboard layout */

.access-dashboard {
  display: grid !important;
  grid-template-columns:
    minmax(285px, 0.78fr)
    minmax(0, 1.7fr) !important;
  gap: 1rem !important;
  align-items: stretch !important;
  margin-bottom: 1rem !important;
}

.access-dashboard__left {
  display: grid !important;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  min-width: 0;
}

.access-dashboard__left
.connection-summary {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 1rem 1.1rem !important;
}

.access-dashboard__left
.connection-summary > div {
  display: block !important;
  min-width: 0;
  padding: 0.7rem 0 !important;
  border-bottom: 1px solid
    rgba(128, 128, 160, 0.18);
}

.access-dashboard__left
.connection-summary > div:first-child {
  padding-top: 0 !important;
}

.access-dashboard__left
.connection-summary > div:last-child {
  padding-bottom: 0 !important;
  border-bottom: 0;
}

.access-dashboard__left
.summary-label {
  display: block !important;
  margin: 0 0 0.35rem !important;
  font-size: 0.66rem !important;
  line-height: 1.3 !important;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.access-dashboard__left
.connection-summary code {
  display: inline-block;
  max-width: 100%;
  font-size: 0.77rem !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.access-dashboard__left
.connection-summary p {
  margin: 0 !important;
  line-height: 1.6;
}

.access-dashboard__left
.connection-summary p code {
  margin:
    0.15rem
    0.25rem
    0.15rem
    0 !important;
}

.access-return-card {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  margin: 0 !important;
  padding: 1.2rem !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.access-return-card h2 {
  font-size: clamp(
    1.2rem,
    2vw,
    1.55rem
  ) !important;
  margin-bottom: 0.7rem !important;
}

.access-return-card p {
  font-size: 0.82rem;
  line-height: 1.55;
  margin:
    0
    0
    0.75rem;
}

.access-dashboard >
.storage-viewer {
  position: sticky !important;
  top: 1rem !important;
  align-self: start;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 585px !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .access-dashboard {
    grid-template-columns: 1fr !important;
  }

  .access-dashboard__left {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .access-return-card {
    aspect-ratio: auto;
    min-height: 260px;
  }

  .access-dashboard >
  .storage-viewer {
    position: static !important;
  }
}

@media (max-width: 600px) {
  .access-dashboard__left {
    grid-template-columns: 1fr;
  }

  .access-return-card {
    min-height: auto;
  }
}

/* Server-rendered DJR storage panel */

.storage-panel-frame {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
  background: transparent;
}

/* Owner control panel */

.owner-dashboard {
  display: grid;
  gap: 2rem;
}

.owner-dashboard-heading {
  align-items: flex-start;
}

.owner-section {
  display: grid;
  gap: 1rem;
}

.section-heading h2 {
  margin: 0;
}

.owner-action-grid,
.owner-stat-grid,
.owner-user-grid {
  display: grid;
  gap: 1rem;
}

.owner-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-action-card {
  display: grid;
  gap: 0.45rem;
  min-height: 110px;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
}

.owner-action-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.owner-action-card span,
.owner-action-card code {
  opacity: 0.78;
  overflow-wrap: anywhere;
}

.owner-action-static {
  cursor: default;
}

.owner-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-stat-card {
  display: grid;
  gap: 0.4rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.owner-stat-card span {
  opacity: 0.7;
}

.owner-stat-card strong {
  font-size: 1.7rem;
}

.owner-stat-card .owner-stat-text {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.owner-user-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-user-card {
  display: grid;
  gap: 1.15rem;
  padding: 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.owner-user-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.owner-user-card-heading h3,
.owner-user-card-heading p {
  margin: 0;
}

.owner-user-card-heading p {
  margin-top: 0.3rem;
  opacity: 0.72;
  overflow-wrap: anywhere;
}

.owner-user-details {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.owner-user-details > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.owner-user-details dt {
  opacity: 0.65;
}

.owner-user-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.owner-user-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .owner-action-grid,
  .owner-stat-grid,
  .owner-user-grid {
    grid-template-columns: 1fr;
  }

  .owner-dashboard-heading {
    display: grid;
    gap: 1rem;
  }

  .owner-dashboard-heading .button-link {
    width: 100%;
    justify-content: center;
  }

  .owner-user-card-heading {
    display: grid;
  }

  .owner-user-details > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .owner-user-actions,
  .owner-user-actions .button-link {
    width: 100%;
  }

  .owner-user-actions .button-link {
    justify-content: center;
  }
}


/* ==================================================
   DJR OWNER CONTROL PANEL
   ================================================== */

.owner-shell {
  width: min(1180px, calc(100% - 2rem));
}

.owner-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(137, 164, 207, 0.22);
  background: rgba(7, 23, 47, 0.96);
  backdrop-filter: blur(18px);
}

.owner-nav-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  gap: 0.35rem;
  padding: 0.55rem 0;
}

.owner-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: 160ms ease;
}

.owner-nav a:hover,
.owner-nav a.active {
  background: rgba(118, 91, 255, 0.18);
  color: #ffffff;
}

.owner-nav a.active {
  box-shadow: inset 0 0 0 1px rgba(168, 147, 255, 0.22);
}

.owner-workspace {
  display: grid;
  gap: 1.15rem;
}

.owner-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem;
  border: 1px solid rgba(127, 151, 193, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(110, 76, 255, 0.17), transparent 38%),
    linear-gradient(145deg, #0b1d3a, #08162d);
  box-shadow: 0 18px 45px rgba(3, 12, 29, 0.2);
  color: #ffffff;
}

.owner-hero h1 {
  margin: 0.2rem 0 0.45rem;
  color: #ffffff;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  letter-spacing: -0.035em;
}

.owner-hero .lede {
  color: rgba(255, 255, 255, 0.68);
}

.owner-primary-action {
  flex: 0 0 auto;
  min-height: 46px;
}

.action-plus {
  font-size: 1.15rem;
}

.owner-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.owner-stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgba(116, 140, 181, 0.2);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 35, 68, 0.07);
}

.owner-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f0edff;
  font-size: 1.2rem;
}

.owner-stat-card div {
  display: grid;
  min-width: 0;
}

.owner-stat-label {
  color: #69758a;
  font-size: 0.78rem;
  font-weight: 700;
}

.owner-stat-card strong {
  color: #10213e;
  font-size: 1.65rem;
  line-height: 1.1;
}

.owner-panel {
  padding: 1.35rem;
  border: 1px solid rgba(116, 140, 181, 0.2);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 35, 68, 0.06);
}

.owner-panel-heading {
  margin-bottom: 1rem;
}

.owner-panel-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.owner-panel-heading h2 {
  margin: 0.1rem 0 0;
  color: #10213e;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.owner-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.owner-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  background: #fbfcff;
  color: #10213e;
  text-decoration: none;
  transition: 160ms ease;
}

.owner-action-card:hover {
  transform: translateY(-2px);
  border-color: #c9bcff;
  background: #ffffff;
  box-shadow: 0 12px 25px rgba(62, 42, 145, 0.09);
}

.owner-action-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eeeaff;
  color: #5740c8;
  font-size: 1.1rem;
  font-weight: 800;
}

.owner-action-card strong,
.owner-action-card small {
  display: block;
}

.owner-action-card strong {
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.owner-action-card small {
  color: #758096;
  font-size: 0.75rem;
  line-height: 1.35;
}

.owner-action-arrow {
  color: #8979cc;
  font-size: 1.5rem;
  line-height: 1;
}

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

.owner-address-card {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.95rem;
  border-radius: 13px;
  background: #f5f7fb;
}

.owner-address-card span {
  color: #6a7589;
  font-size: 0.75rem;
  font-weight: 700;
}

.owner-address-card code {
  display: block;
  overflow: hidden;
  color: #162747;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-recent-list {
  display: grid;
  gap: 0.45rem;
}

.owner-recent-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  color: #10213e;
  text-decoration: none;
}

.owner-recent-item:hover {
  background: #f6f7fb;
}

.owner-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7860df, #4837ad);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}

.owner-recent-copy {
  display: grid;
  min-width: 0;
}

.owner-recent-copy strong,
.owner-recent-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-recent-copy strong {
  font-size: 0.86rem;
}

.owner-recent-copy small {
  color: #788397;
  font-size: 0.73rem;
}

.owner-text-link {
  color: #5740c8;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.owner-notices {
  margin-bottom: 1rem;
}

/* Mobile owner interface */
@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
  }

  .owner-shell {
    width: min(100% - 1rem, 1180px);
  }

  .owner-nav {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 1px solid rgba(137, 164, 207, 0.24);
    border-bottom: 0;
    box-shadow: 0 -10px 30px rgba(3, 12, 29, 0.22);
  }

  .owner-nav-inner {
    width: 100%;
    justify-content: space-around;
    gap: 0;
    padding: 0.35rem 0.45rem calc(0.35rem + env(safe-area-inset-bottom));
  }

  .owner-nav a {
    flex: 1;
    flex-direction: column;
    gap: 0.14rem;
    min-width: 0;
    min-height: 54px;
    padding: 0.35rem 0.2rem;
    border-radius: 10px;
    font-size: 0.66rem;
  }

  .owner-nav a span {
    font-size: 1.05rem;
    line-height: 1;
  }

  .owner-hero {
    align-items: stretch;
    padding: 1.15rem;
    border-radius: 16px;
  }

  .owner-hero,
  .owner-panel-heading-row {
    flex-direction: column;
  }

  .owner-primary-action {
    width: 100%;
  }

  .owner-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .owner-stat-card {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.35rem;
    text-align: center;
  }

  .owner-stat-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .owner-stat-label {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .owner-stat-card strong {
    font-size: 1.25rem;
  }

  .owner-panel {
    padding: 1rem;
    border-radius: 15px;
  }

  .owner-action-grid,
  .owner-address-grid {
    grid-template-columns: 1fr;
  }

  .owner-action-card {
    padding: 0.82rem;
  }

  .owner-action-card small {
    font-size: 0.7rem;
  }

  .owner-address-card code {
    font-size: 0.72rem;
  }

  .site-footer {
    margin-bottom: 1rem;
  }
}

/* ==========================================================
   DJR PRIVATE ACCESS DESIGN SYSTEM
   ========================================================== */

.dashboard{
    display:grid;
    gap:2rem;
}

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:1rem;
    flex-wrap:wrap;
}

.dashboard-title h1{
    margin:0;
    font-size:2rem;
}

.dashboard-title p{
    margin:.5rem 0 0;
    opacity:.75;
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:1rem;
}

.dashboard-card{
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    border-radius:18px;
    padding:1.25rem;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    transition:.2s ease;
}

.dashboard-card:hover{
    transform:translateY(-2px);
}

.dashboard-card h2{
    margin:0 0 .5rem;
    font-size:1rem;
}

.dashboard-section{
    display:grid;
    gap:1rem;
}

@media(max-width:700px){

.dashboard{
    gap:1rem;
}

.dashboard-header{
    display:grid;
}

.dashboard-grid{
    grid-template-columns:1fr;
}

}


/* ==========================================================
   DJR PRIVATE ACCESS — MEMBER AND HOUSEHOLD DASHBOARD
   ========================================================== */

.member-dashboard {
  display: grid;
  gap: 1.25rem;
}

.member-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1.45rem;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(67, 156, 255, 0.34), transparent 38%),
    linear-gradient(135deg, #08182d 0%, #102c50 55%, #174d7d 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(10, 31, 56, 0.2);
}

.member-hero__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-hero__icon {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #128ef3, #075daf);
  box-shadow: 0 10px 24px rgba(0, 119, 219, 0.35);
  font-size: 1.35rem;
  font-weight: 900;
}

.member-hero h1 {
  margin: 0.15rem 0 0;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.08;
}

.member-hero .eyebrow,
.member-hero .lede {
  color: rgba(255, 255, 255, 0.76);
}

.member-role-badge,
.member-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.58rem 0.76rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.member-role-badge {
  color: #e8f4ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.member-role-badge__dot,
.member-panel-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39d98a;
  box-shadow: 0 0 0 4px rgba(57, 217, 138, 0.13);
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.member-stat-card {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(22, 35, 55, 0.05);
}

.member-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--owner-accent, var(--accent));
  background: #eaf4ff;
  font-weight: 900;
}

.member-stat-card div {
  min-width: 0;
}

.member-stat-label {
  display: block;
  color: var(--owner-muted, var(--muted));
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-stat-card strong {
  display: block;
  margin-top: 0.12rem;
  overflow: hidden;
  color: var(--owner-ink, var(--ink));
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-jump-nav {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 14px;
  scrollbar-width: none;
}

.member-jump-nav::-webkit-scrollbar {
  display: none;
}

.member-jump-nav a {
  flex: 0 0 auto;
  padding: 0.62rem 0.78rem;
  color: var(--owner-muted, var(--muted));
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.member-jump-nav a:hover,
.member-jump-nav a:focus-visible {
  color: var(--owner-accent, var(--accent-dark));
  background: #eaf4ff;
}

.member-primary-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 1.18fr);
  gap: 1rem;
  align-items: stretch;
}

.member-panel,
.member-step-panel {
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 10px 28px rgba(22, 35, 55, 0.055);
}

.member-panel-heading,
.member-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.member-panel-heading h2,
.member-panel-heading h3,
.member-section-heading h2 {
  margin: 0.08rem 0 0;
}

.member-panel-heading p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: var(--owner-muted, var(--muted));
}

.member-panel-status {
  color: #116d47;
  background: #e9f9f1;
}

.member-detail-list {
  display: grid;
  gap: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.member-detail-row {
  display: grid;
  grid-template-columns: minmax(115px, 0.7fr) minmax(0, 1.3fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
}

.member-detail-row > span {
  color: var(--owner-muted, var(--muted));
  font-size: 0.75rem;
  font-weight: 800;
}

.member-detail-row code {
  overflow-wrap: anywhere;
}

.member-folder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.member-security-note,
.member-privacy-panel {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem;
  color: #3a526d;
  background: #f2f7fc;
  border: 1px solid #d9e8f6;
  border-radius: 14px;
}

.member-security-note {
  margin-top: 1rem;
}

.member-security-note p,
.member-privacy-panel p {
  margin: 0;
  font-size: 0.78rem;
}

.member-storage-panel .storage-portal-panel {
  margin-top: 1rem;
}

.member-section {
  display: grid;
  gap: 1rem;
  scroll-margin-top: 1rem;
}

.member-card-grid {
  display: grid;
  gap: 1rem;
}

.member-card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-feature-card {
  display: flex;
  gap: 0.95rem;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 8px 22px rgba(22, 35, 55, 0.045);
}

.member-feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--owner-accent, var(--accent));
  background: #eaf4ff;
  border-radius: 13px;
  font-size: 1.05rem;
  font-weight: 900;
}

.member-feature-card h3 {
  margin: 0;
}

.member-feature-card p {
  margin: 0.35rem 0 0.8rem;
  color: var(--owner-muted, var(--muted));
}

.member-mini-details {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.member-mini-details div {
  display: grid;
  gap: 0.15rem;
}

.member-mini-details dt {
  color: var(--owner-muted, var(--muted));
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-mini-details dd {
  margin: 0;
}

.member-steps {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.member-steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem;
  background: var(--owner-inset, var(--soft));
  border-radius: 12px;
}

.member-steps li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--accent);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.member-steps p {
  margin: 0.28rem 0 0;
  font-size: 0.83rem;
}

.member-device-downloads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.member-device-downloads a {
  display: grid;
  gap: 0.15rem;
  padding: 0.78rem;
  color: var(--owner-ink, var(--ink));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.member-device-downloads a:hover {
  border-color: #b7d8f5;
  background: #f6faff;
}

.member-device-downloads strong {
  font-size: 0.78rem;
}

.member-device-downloads small {
  color: var(--owner-muted, var(--muted));
  font-size: 0.66rem;
}

.member-primary-action {
  width: 100%;
  justify-content: center;
}

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

.member-device-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.member-device-card summary {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.member-device-card summary::-webkit-details-marker {
  display: none;
}

.member-device-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--owner-accent, var(--accent));
  background: #eaf4ff;
  border-radius: 12px;
  font-weight: 900;
}

.member-device-card summary strong,
.member-device-card summary small {
  display: block;
}

.member-device-card summary small {
  margin-top: 0.1rem;
  color: var(--owner-muted, var(--muted));
  font-size: 0.68rem;
}

.member-chevron {
  color: var(--owner-muted, var(--muted));
  text-align: center;
  transition: transform 0.2s ease;
}

.member-device-card[open] .member-chevron {
  transform: rotate(180deg);
}

.member-device-card ol {
  margin: 0;
  padding: 0 1.1rem 1rem 2.5rem;
  color: var(--owner-muted, var(--muted));
  font-size: 0.8rem;
}

.member-device-card li + li {
  margin-top: 0.4rem;
}

.member-private-link {
  overflow: auto;
  margin: 0.8rem 0;
  padding: 0.75rem;
  background: var(--owner-inset, var(--soft));
  border-radius: 11px;
}

.member-private-link code {
  overflow-wrap: anywhere;
}

.member-password-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.member-password-panel h3,
.member-password-panel p {
  margin: 0;
}

.member-password-panel p {
  margin-top: 0.35rem;
  color: var(--owner-muted, var(--muted));
}

.member-privacy-panel {
  margin-top: 0.25rem;
}

.member-privacy-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: var(--owner-accent, var(--accent));
  background: #fff;
  border-radius: 10px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-primary-grid {
    grid-template-columns: 1fr;
  }

  .member-device-downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .member-dashboard {
    gap: 0.8rem;
  }

  .member-hero {
    display: grid;
    padding: 1rem;
    border-radius: 17px;
  }

  .member-hero__identity {
    align-items: flex-start;
  }

  .member-hero__icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .member-role-badge {
    justify-self: start;
    padding: 0.45rem 0.62rem;
    font-size: 0.65rem;
  }

  .member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .member-stat-card {
    gap: 0.5rem;
    padding: 0.68rem;
    border-radius: 13px;
  }

  .member-stat-icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .member-stat-label {
    font-size: 0.55rem;
  }

  .member-stat-card strong {
    font-size: 0.78rem;
  }

  .member-jump-nav {
    position: sticky;
    top: 0.4rem;
    z-index: 5;
    box-shadow: 0 8px 18px rgba(22, 35, 55, 0.08);
  }

  .member-panel,
  .member-step-panel {
    padding: 0.9rem;
    border-radius: 15px;
  }

  .member-detail-row {
    grid-template-columns: 1fr;
    gap: 0.28rem;
    padding: 0.62rem 0;
  }

  .member-card-grid--two,
  .member-device-grid {
    grid-template-columns: 1fr;
  }

  .member-feature-card {
    padding: 0.85rem;
  }

  .member-device-downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-device-downloads a {
    padding: 0.65rem;
  }

  .member-password-panel {
    display: grid;
  }

  .member-password-panel button {
    width: 100%;
  }

  .member-storage-panel .storage-toolbar {
    display: grid;
  }

  .member-storage-panel .storage-toolbar__actions {
    justify-content: flex-start;
  }
}

/* ==========================================================
   GUIDED ONBOARDING AND DJR WORK MAIL
   ========================================================== */

.onboarding-progress {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0.65rem;
  border: 1px solid rgba(14, 36, 71, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(16, 35, 64, 0.1);
  backdrop-filter: blur(14px);
}

.onboarding-progress-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  padding: 0.7rem;
  border-radius: 13px;
  color: var(--owner-ink, var(--ink));
  text-decoration: none;
}

.onboarding-progress-step > span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--owner-inset, var(--soft));
  font-weight: 800;
}

.onboarding-progress-step strong,
.onboarding-progress-step small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onboarding-progress-step strong {
  font-size: 0.82rem;
}

.onboarding-progress-step small {
  color: var(--owner-muted, var(--muted));
  font-size: 0.68rem;
}

.onboarding-progress-step.is-complete > span {
  border-color: rgba(22, 132, 84, 0.22);
  background: rgba(22, 132, 84, 0.1);
  color: var(--owner-success, var(--success));
}

.onboarding-progress-step.is-current {
  background: rgba(8, 126, 232, 0.08);
}

.onboarding-progress-step.is-current > span {
  border-color: rgba(8, 126, 232, 0.25);
  background: var(--accent);
  color: #fff;
}

.guided-onboarding {
  scroll-margin-top: 7rem;
}

.onboarding-stage {
  position: relative;
  scroll-margin-top: 7rem;
}

.onboarding-stage-primary {
  border-color: rgba(8, 126, 232, 0.2);
  box-shadow: 0 20px 55px rgba(8, 82, 145, 0.1);
}

.onboarding-stage.is-complete {
  border-color: rgba(22, 132, 84, 0.17);
}

.onboarding-complete-badge,
.member-mail-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin-left: auto;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(22, 132, 84, 0.18);
  border-radius: 999px;
  background: rgba(22, 132, 84, 0.08);
  color: var(--owner-success, var(--success));
  font-size: 0.7rem;
  font-weight: 800;
}

.member-mail-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(22, 132, 84, 0.1);
}

.work-mail-summary,
.member-mail-account {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(8, 126, 232, 0.12);
  border-radius: 15px;
  background: linear-gradient(
    135deg,
    rgba(8, 126, 232, 0.07),
    rgba(255, 255, 255, 0.8)
  );
}

.work-mail-icon,
.member-mail-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(8, 126, 232, 0.23);
}

.work-mail-summary small,
.member-mail-account small {
  display: block;
  color: var(--owner-muted, var(--muted));
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-mail-summary strong,
.member-mail-account strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.work-mail-summary p {
  margin: 0.35rem 0 0;
  color: var(--owner-muted, var(--muted));
  font-size: 0.82rem;
}

.onboarding-action-row,
.member-mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.onboarding-details {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--owner-inset, var(--soft));
}

.onboarding-details summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.onboarding-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.onboarding-details-content {
  padding: 1rem;
}

.onboarding-next-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 13px;
  background: rgba(8, 126, 232, 0.07);
  color: var(--owner-accent, var(--accent-dark));
  font-weight: 800;
  text-decoration: none;
}

.guided-form .field-error input,
.guided-form .field-error select,
.guided-form .field-error textarea,
.guided-form .errorlist + input {
  border-color: #bd2f3b;
  box-shadow: 0 0 0 3px rgba(189, 47, 59, 0.1);
}

.member-mail-panel {
  background:
    radial-gradient(
      circle at top right,
      rgba(8, 126, 232, 0.09),
      transparent 42%
    ),
    #fff;
}

@media (max-width: 700px) {
  .onboarding-progress {
    top: 0.4rem;
    gap: 0.35rem;
    padding: 0.4rem;
    border-radius: 14px;
  }

  .onboarding-progress-step {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 0.48rem;
  }

  .onboarding-progress-step > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    font-size: 0.78rem;
  }

  .onboarding-progress-step strong,
  .onboarding-progress-step small {
    display: none;
  }

  .onboarding-stage {
    scroll-margin-top: 5.5rem;
  }

  .onboarding-action-row,
  .member-mail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .onboarding-action-row .button-link,
  .member-mail-actions .button-link {
    width: 100%;
    justify-content: center;
  }

  .work-mail-summary,
  .member-mail-account {
    align-items: flex-start;
    padding: 0.85rem;
  }
}

.hub{
display:grid;
grid-template-columns:260px 1fr;
min-height:100vh;
background:#f5f7fb;
}

.hub-sidebar{
background:#111827;
color:white;
padding:30px;
}

.hub-logo{
margin-bottom:40px;
}

.hub-sidebar nav{
display:flex;
flex-direction:column;
gap:10px;
}

.hub-sidebar nav a{
padding:12px 16px;
border-radius:12px;
cursor:pointer;
text-decoration:none;
color:white;
}

.hub-sidebar nav a.active{
background:#2563eb;
}

.hub-main{
padding:40px;
}

.hub-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
gap:20px;
margin-top:25px;
}

.hub-card{
background:white;
border-radius:18px;
padding:24px;
box-shadow:0 8px 24px rgba(0,0,0,.08);
}

@media(max-width:900px){

.hub{
grid-template-columns:1fr;
}

.hub-sidebar{
padding:20px;
}

}

/* ==========================================================
   DJR MEMBER PORTAL — MOBILE LAYOUT CORRECTIONS
   ========================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.member-dashboard,
.member-shell,
.member-hero,
.member-section,
.member-panel {
  min-width: 0;
  max-width: 100%;
}

.member-hero h1,
.member-hero p,
.member-section h2,
.member-section h3 {
  overflow-wrap: anywhere;
}

.member-summary-grid,
.member-stat-grid {
  min-width: 0;
}

.member-navigation {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.member-navigation::-webkit-scrollbar {
  display: none;
}

.member-navigation a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.member-panel code,
.member-feature-card code,
.member-connection-value,
.member-address {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

@media (max-width: 700px) {
  .shell {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .member-dashboard {
    gap: 0.9rem;
  }

  .member-hero {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .member-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    line-height: 1.05;
  }

  .member-hero p {
    font-size: 1rem;
  }

  .member-summary-grid,
  .member-stat-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .member-summary-card,
  .member-stat-card {
    width: 100%;
    min-width: 0;
  }

  .member-navigation {
    display: flex;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 14px;
  }

  .member-navigation a {
    padding: 0.7rem 0.85rem;
    font-size: 0.82rem;
  }

  .member-section,
  .member-panel {
    padding: 1rem;
    border-radius: 16px;
  }

  .member-card-grid,
  .member-card-grid--two {
    grid-template-columns: 1fr;
  }

  .member-connection-row,
  .member-detail-row {
    display: grid;
    gap: 0.4rem;
  }

  .member-panel code,
  .member-feature-card code {
    font-size: 0.88rem;
    line-height: 1.45;
  }
}


.member-mail-panel {
  margin-top: 1rem;
}

.member-mail-panel .member-detail-row code {
  overflow-wrap: anywhere;
}

.member-mail-panel .member-security-note {
  margin-top: 1.25rem;
}


/* DJR contained mailbox */
.djr-mailbox {
  position: relative;
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(17, 31, 54, 0.12);
  border-radius: 20px;
  background: #f7f9fc;
  box-shadow: 0 14px 34px rgba(35, 49, 72, 0.08);
}

.djr-mailbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(17, 31, 54, 0.1);
  background: #fff;
}

.djr-mailbox__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.7rem;
}

.djr-mailbox__identity div {
  min-width: 0;
}

.djr-mailbox__identity strong {
  display: block;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.djr-mailbox__label {
  display: block;
  color: #087ee8;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.djr-mailbox__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  background: #087ee8;
  color: #fff;
  font-size: 1rem;
}

.djr-mailbox__connected {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #e9f8f1;
  color: #147a51;
  font-size: 0.68rem;
  font-weight: 850;
}

.djr-mailbox__connected i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bdc90;
  box-shadow: 0 0 0 4px rgba(43, 220, 144, 0.16);
}

.djr-mailbox__actions {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(17, 31, 54, 0.09);
}

.djr-mailbox__compose-button,
.djr-mailbox__refresh {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.djr-mailbox__compose-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: #087ee8;
  color: #fff;
}

.djr-mailbox__refresh {
  width: 42px;
  border-radius: 12px;
  background: #e9eef6;
  color: #33415c;
  font-size: 1.25rem;
}

.djr-mailbox__status {
  margin: 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #e9f8f1;
  color: #147a51;
  font-size: 0.76rem;
  font-weight: 750;
}

.djr-mailbox__status.is-error {
  background: #fff0f1;
  color: #b42330;
}

.djr-mailbox__list {
  max-height: 540px;
  overflow-y: auto;
  background: #fff;
}

.djr-mail-row {
  border-bottom: 1px solid rgba(17, 31, 54, 0.09);
  background: #fff;
}

.djr-mail-row.is-unread {
  background: #f2f7ff;
}

.djr-mail-row__summary {
  display: grid;
  width: 100%;
  grid-template-columns: 39px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.djr-mail-row__avatar {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  background: #e8eef8;
  color: #264a78;
  font-weight: 900;
}

.djr-mail-row.is-unread .djr-mail-row__avatar {
  background: #087ee8;
  color: #fff;
}

.djr-mail-row__main,
.djr-mail-row__top {
  min-width: 0;
}

.djr-mail-row__top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.djr-mail-row__top strong,
.djr-mail-row__subject,
.djr-mail-row__preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.djr-mail-row__top strong {
  font-size: 0.78rem;
}

.djr-mail-row__subject {
  margin-top: 0.12rem;
  font-size: 0.78rem;
  font-weight: 750;
}

.djr-mail-row__preview {
  margin-top: 0.15rem;
  color: #737d8d;
  font-size: 0.71rem;
}

.djr-mail-row__chevron {
  color: #8792a3;
  font-size: 1.4rem;
  transition: transform 0.18s ease;
}

.djr-mail-row.is-open .djr-mail-row__chevron {
  transform: rotate(90deg);
}

.djr-mail-reader {
  padding: 0 0.8rem 0.9rem;
  background: #fff;
}

.djr-mail-reader__controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.djr-mail-reader__controls button {
  padding: 0.45rem 0.65rem;
  border: 1px solid #d7deea;
  border-radius: 9px;
  background: #f5f7fb;
  color: #2c3b52;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.djr-mail-reader__controls .is-danger {
  color: #b42330;
}

.djr-mail-reader__loading {
  padding: 1rem;
  color: #727d8e;
  font-size: 0.78rem;
  text-align: center;
}

.djr-mail-reader__frame {
  width: 100%;
  min-height: 330px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #fff;
}

.djr-mailbox__empty {
  padding: 2rem 1rem;
  text-align: center;
}

.djr-mailbox__empty strong {
  display: block;
  font-size: 1rem;
}

.djr-mailbox__empty p {
  margin: 0.4rem auto 1rem;
  color: #6c7685;
  font-size: 0.8rem;
}

.djr-compose {
  position: absolute;
  z-index: 20;
  inset: 0;
  overflow-y: auto;
  background: #fff;
}

.djr-compose__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #dfe5ee;
  background: #17243a;
  color: #fff;
}

.djr-compose__header button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
}

.djr-compose form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.djr-compose label {
  display: grid;
  gap: 0.32rem;
}

.djr-compose label span,
.djr-compose summary {
  color: #576275;
  font-size: 0.7rem;
  font-weight: 850;
}

.djr-compose input,
.djr-compose textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem;
  border: 1px solid #d3dbe8;
  border-radius: 10px;
  background: #f9fbfd;
  color: #1f2938;
  font: inherit;
  font-size: 0.82rem;
}

.djr-compose textarea {
  min-height: 190px;
  resize: vertical;
}

.djr-compose details {
  display: grid;
  gap: 0.7rem;
}

.djr-compose__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.djr-compose__cancel,
.djr-compose__send {
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.djr-compose__cancel {
  background: #e9eef6;
  color: #35445b;
}

.djr-compose__send {
  background: #087ee8;
  color: #fff;
}

@media (max-width: 700px) {
  .djr-mailbox__list {
    max-height: 470px;
  }

  .djr-mailbox__toolbar {
    align-items: flex-start;
  }

  .djr-mailbox__identity strong {
    max-width: 185px;
  }

  .djr-mail-reader__frame {
    min-height: 380px;
  }
}

/* Clean contained DJR inbox — deliberately overrides portal-wide button rules */
.djr-inbox,
.djr-inbox *,
.djr-inbox *::before,
.djr-inbox *::after {
  box-sizing: border-box;
}

.djr-inbox {
  position: relative;
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #dce3ed;
  border-radius: 18px;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 10px 30px rgba(31, 45, 68, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}

.djr-inbox button {
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  color: inherit;
  font: inherit;
  line-height: normal;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  appearance: none;
}

.djr-inbox button::before,
.djr-inbox button::after {
  display: none !important;
}

.djr-inbox svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.djr-inbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #e5eaf1;
  background: #ffffff;
}

.djr-inbox__title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.djr-inbox__logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: #087ee8;
  color: #ffffff;
}

.djr-inbox__logo svg {
  width: 22px;
  height: 22px;
}

.djr-inbox__title div {
  min-width: 0;
}

.djr-inbox__title p,
.djr-inbox__title h3,
.djr-inbox__title span {
  display: block;
  margin: 0;
}

.djr-inbox__title p {
  margin-bottom: 2px;
  color: #087ee8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.djr-inbox__title h3 {
  color: #151c2b;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.djr-inbox__title span {
  max-width: 230px;
  margin-top: 3px;
  overflow: hidden;
  color: #737d8d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.djr-inbox__connection {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e9f8f1;
  color: #167650;
  font-size: 11px;
  font-weight: 800;
}

.djr-inbox__connection i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dda8d;
  box-shadow: 0 0 0 4px rgba(45, 218, 141, 0.15);
}

.djr-inbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5eaf1;
  background: #f8fafc;
}

.djr-inbox .djr-inbox__compose {
  display: inline-flex !important;
  width: auto !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px !important;
  border-radius: 10px !important;
  background: #087ee8 !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
}

.djr-inbox .djr-inbox__compose svg {
  width: 17px;
  height: 17px;
}

.djr-inbox .djr-inbox__icon-button {
  display: grid !important;
  width: 38px !important;
  height: 38px !important;
  place-items: center;
  border: 1px solid #dce3ed !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #4d5b70 !important;
}

.djr-inbox__flash {
  margin: 10px 12px 0;
  padding: 9px 11px;
  border-radius: 9px;
  background: #e9f8f1;
  color: #167650;
  font-size: 12px;
  font-weight: 700;
}

.djr-inbox__flash.is-error {
  background: #fff0f1;
  color: #b42331;
}

.djr-inbox__list {
  max-height: 510px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
}

.djr-email {
  border-bottom: 1px solid #e7ebf1;
  background: #ffffff;
}

.djr-email:last-child {
  border-bottom: 0;
}

.djr-email.is-unread {
  background: #f4f8ff;
}

.djr-inbox .djr-email__row {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px !important;
  background: transparent !important;
}

.djr-email__row:active {
  background: #f2f5f9 !important;
}

.djr-email__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #e7edf6;
  color: #40516b;
  font-size: 14px;
  font-weight: 850;
}

.djr-email.is-unread .djr-email__avatar {
  background: #087ee8;
  color: #ffffff;
}

.djr-email__content {
  display: block;
  min-width: 0;
}

.djr-email__sender,
.djr-email__subject,
.djr-email__preview {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.djr-email__sender {
  color: #1a2232;
  font-size: 13px;
  font-weight: 700;
}

.djr-email.is-unread .djr-email__sender {
  font-weight: 850;
}

.djr-email__subject {
  margin-top: 2px;
  color: #303b4e;
  font-size: 12px;
  font-weight: 650;
}

.djr-email__preview {
  margin-top: 3px;
  color: #818b99;
  font-size: 11px;
  font-weight: 400;
}

.djr-email__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  color: #8a95a5;
}

.djr-email__meta > svg {
  width: 15px;
  height: 15px;
}

.djr-email__arrow {
  transition: transform 0.18s ease;
}

.djr-email.is-open .djr-email__arrow {
  transform: rotate(90deg);
}

.djr-email__reader {
  padding: 0 14px 14px;
  border-top: 1px solid #edf0f5;
  background: #ffffff;
}

.djr-email__reader-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
}

.djr-email__reader-header > div:first-child {
  min-width: 0;
}

.djr-email__reader-header strong {
  display: block;
  color: #192131;
  font-size: 14px;
}

.djr-email__reader-header span {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #778192;
  font-size: 11px;
}

.djr-email__reader-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.djr-inbox .djr-email__reader-actions button {
  display: inline-flex !important;
  width: auto !important;
  align-items: center;
  gap: 5px;
  padding: 7px 9px !important;
  border: 1px solid #dce3ed !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #445269 !important;
  font-size: 11px;
  font-weight: 750;
}

.djr-inbox .djr-email__reader-actions button.is-danger {
  color: #b42331 !important;
}

.djr-email__reader-actions svg {
  width: 14px;
  height: 14px;
}

.djr-email__loading {
  padding: 24px;
  color: #808a99;
  font-size: 12px;
  text-align: center;
}

.djr-email__frame {
  display: block;
  width: 100%;
  min-height: 330px;
  border: 1px solid #e1e6ee;
  border-radius: 10px;
  background: #ffffff;
}

.djr-compose-panel {
  position: absolute;
  z-index: 50;
  inset: 0;
  overflow-y: auto;
  background: #ffffff;
}

.djr-compose-panel > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #17243a;
  color: #ffffff;
}

.djr-compose-panel > header span,
.djr-compose-panel > header strong {
  display: block;
}

.djr-compose-panel > header span {
  font-size: 14px;
  font-weight: 800;
}

.djr-compose-panel > header strong {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

.djr-inbox .djr-compose-panel > header button {
  width: 34px !important;
  height: 34px !important;
  color: #ffffff !important;
  font-size: 25px;
  text-align: center !important;
}

.djr-compose-panel form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.djr-compose-panel label {
  display: grid;
  gap: 5px;
}

.djr-compose-panel label > span,
.djr-compose-panel summary {
  color: #657084;
  font-size: 11px;
  font-weight: 800;
}

.djr-compose-panel input,
.djr-compose-panel textarea {
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d8e0ea;
  border-radius: 9px;
  outline: none;
  background: #fbfcfe;
  color: #192131;
  font: inherit;
  font-size: 13px;
}

.djr-compose-panel input:focus,
.djr-compose-panel textarea:focus {
  border-color: #087ee8;
  box-shadow: 0 0 0 3px rgba(8, 126, 232, 0.1);
}

.djr-compose-panel textarea {
  min-height: 220px;
  resize: vertical;
}

.djr-compose-panel details {
  display: grid;
  gap: 10px;
}

.djr-compose-panel summary {
  cursor: pointer;
}

.djr-compose-panel footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.djr-inbox .djr-compose-panel footer button {
  display: inline-flex !important;
  width: auto !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 15px !important;
  border-radius: 9px !important;
  background: #edf1f6 !important;
  color: #46546a !important;
  font-size: 12px;
  font-weight: 800;
}

.djr-inbox .djr-compose-panel footer button.is-send {
  background: #087ee8 !important;
  color: #ffffff !important;
}

.djr-compose-panel footer svg {
  width: 15px;
  height: 15px;
}

.djr-inbox__empty {
  padding: 36px 20px;
  text-align: center;
}

.djr-inbox__empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 14px;
  background: #eaf3fd;
  color: #087ee8;
  font-size: 20px;
  font-weight: 800;
}

.djr-inbox__empty h4 {
  margin: 0;
  color: #192131;
  font-size: 16px;
}

.djr-inbox__empty p {
  max-width: 300px;
  margin: 7px auto 15px;
  color: #737e8e;
  font-size: 12px;
}

.djr-inbox__primary-link {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 9px;
  background: #087ee8;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 520px) {
  .djr-inbox__header {
    padding: 13px;
  }

  .djr-inbox__connection {
    padding: 6px 8px;
    font-size: 10px;
  }

  .djr-inbox__title span {
    max-width: 175px;
  }

  .djr-inbox__list {
    max-height: 480px;
  }

  .djr-email__reader-header {
    display: block;
  }

  .djr-email__reader-actions {
    margin-top: 10px;
  }
}

@import url("/static/portal/member-storage-panel.css?v=20260804-184547");

/* ==========================================================
   DJR MEMBER APP NAVIGATION
   Layout only — existing visual styling remains authoritative.
   ========================================================== */

.member-dashboard.member-app-ready {
  position: relative;
  align-content: start;
}

.member-dashboard.member-app-ready [hidden] {
  display: none !important;
}

.member-dashboard.member-app-ready .member-jump-nav {
  position: sticky;
  z-index: 18;
  top: 0.6rem;
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem;
  overflow-x: auto;
  border: 1px solid rgba(17, 31, 54, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(22, 35, 55, 0.08);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(18px);
}

.member-dashboard.member-app-ready
.member-jump-nav::-webkit-scrollbar {
  display: none;
}

.member-dashboard.member-app-ready .member-jump-nav a {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.92rem;
  border-radius: 11px;
  color: #526077;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.member-dashboard.member-app-ready
.member-jump-nav a:hover {
  color: #123e6d;
  background: #edf5fd;
}

.member-dashboard.member-app-ready
.member-jump-nav a.is-active,
.member-dashboard.member-app-ready
.member-jump-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(145deg, #128ef3, #075daf);
  box-shadow: 0 7px 17px rgba(8, 126, 232, 0.25);
}

.member-dashboard.member-app-ready
.member-jump-nav a:active {
  transform: scale(0.98);
}

.member-dashboard.member-app-ready .member-primary-grid {
  display: block;
}

.member-dashboard.member-app-ready
.member-primary-grid > .member-panel,
.member-dashboard.member-app-ready
.member-primary-grid > .member-storage-panel {
  width: 100%;
}

.member-dashboard.member-app-ready .member-section,
.member-dashboard.member-app-ready .member-primary-grid,
.member-dashboard.member-app-ready .member-privacy-panel {
  min-width: 0;
  animation: djr-member-view-enter 0.2s ease both;
}

.member-dashboard.member-app-ready
.member-section > .member-section-heading {
  margin-bottom: 0.15rem;
}

.member-dashboard.member-app-ready
#work-mail .member-mail-panel {
  width: 100%;
}

.member-dashboard.member-app-ready
#remote-access .member-step-panel {
  margin-top: 0;
}

.member-dashboard.member-app-ready
#account .member-password-panel {
  margin-top: 1rem;
}

.member-dashboard.member-app-ready
.member-privacy-panel {
  margin-top: 0;
}

@keyframes djr-member-view-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 901px) {
  .member-dashboard.member-app-ready {
    grid-template-columns: minmax(0, 1fr);
  }

  .member-dashboard.member-app-ready .member-jump-nav {
    justify-content: center;
  }

  .member-dashboard.member-app-ready .member-section,
  .member-dashboard.member-app-ready .member-primary-grid,
  .member-dashboard.member-app-ready .member-privacy-panel {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .member-dashboard.member-app-ready {
    padding-bottom: calc(5.4rem + env(safe-area-inset-bottom));
  }

  .member-dashboard.member-app-ready .member-jump-nav {
    position: fixed;
    z-index: 100;
    top: auto;
    right: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    left: 0.65rem;
    width: auto;
    justify-content: flex-start;
    padding: 0.38rem;
    border-radius: 17px;
    box-shadow: 0 16px 40px rgba(8, 24, 45, 0.2);
  }

  .member-dashboard.member-app-ready
  .member-jump-nav a {
    min-height: 46px;
    flex: 1 0 auto;
    padding: 0.7rem 0.82rem;
    font-size: 0.72rem;
  }

  .member-dashboard.member-app-ready
  .member-section,
  .member-dashboard.member-app-ready
  .member-primary-grid {
    scroll-margin-top: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-dashboard.member-app-ready .member-section,
  .member-dashboard.member-app-ready .member-primary-grid,
  .member-dashboard.member-app-ready .member-privacy-panel {
    animation: none;
  }

  .member-dashboard.member-app-ready
  .member-jump-nav a {
    transition: none;
  }
}

/* DJR DEVICE DETECTION START */

.device-detection-panel {
  margin: 24px 0 8px;
  padding: 22px;
  border: 1px solid rgba(8, 126, 232, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at top right,
      rgba(8, 126, 232, 0.12),
      transparent 42%
    ),
    linear-gradient(145deg, #f8fbff 0%, #eef5fd 100%);
  box-shadow: 0 16px 38px rgba(7, 28, 54, 0.08);
}

.device-detection-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.device-detection-heading-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #07172f;
  box-shadow: 0 10px 22px rgba(7, 23, 47, 0.22);
}

.device-detection-heading-icon svg {
  width: 25px;
  height: 25px;
  fill: #58b6ff;
}

.device-detection-heading h3 {
  margin: 3px 0 7px;
  font-size: 20px;
}

.device-detection-heading p:last-child {
  margin: 0;
  color: #5d6674;
  line-height: 1.55;
}

.detected-device-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(8, 126, 232, 0.25);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(7, 28, 54, 0.08);
}

.detected-device-card[hidden] {
  display: none;
}

.detected-device-icon,
.device-platform-icon {
  display: grid;
  place-items: center;
  color: #087ee8;
}

.detected-device-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #e9f4ff;
}

.detected-device-icon svg {
  width: 30px;
  height: 30px;
}

.detected-device-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.detected-device-label {
  color: #087ee8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.detected-device-copy strong {
  color: #11151d;
  font-size: 18px;
}

.detected-device-copy small {
  color: #68717d;
  font-size: 13px;
}

.detected-device-button {
  margin: 0;
  white-space: nowrap;
}

.device-detection-unknown {
  margin-top: 18px;
}

.device-fallback-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 23px 0 11px;
}

.device-fallback-heading strong {
  color: #172033;
  font-size: 14px;
}

.device-fallback-heading span {
  color: #77808d;
  font-size: 12px;
}

.device-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.device-platform-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid #d8e0ea;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.86);
  color: #11151d;
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.device-platform-card:hover,
.device-platform-card:focus-visible {
  border-color: #087ee8;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(7, 28, 54, 0.1);
  transform: translateY(-1px);
}

.device-platform-card.is-recommended {
  border-color: rgba(8, 126, 232, 0.5);
  background: #f3f9ff;
}

.device-platform-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #edf3fa;
}

.device-platform-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-platform-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.device-platform-copy strong {
  font-size: 14px;
}

.device-platform-copy small {
  color: #737c88;
  font-size: 11px;
  line-height: 1.35;
}

.device-platform-arrow {
  color: #087ee8;
  font-size: 18px;
  font-weight: 700;
}

.device-detection-note {
  margin: 16px 0 0;
  color: #747d89;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .device-detection-panel {
    margin-top: 18px;
    padding: 17px;
    border-radius: 15px;
  }

  .detected-device-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .detected-device-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .device-platform-grid {
    grid-template-columns: 1fr;
  }

  .device-fallback-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* DJR DEVICE DETECTION END */



/* DJR COLLAPSED PLATFORM FALLBACK */

.device-fallback-details {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #d6e0eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.device-fallback-summary {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  color: #172033;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.device-fallback-summary::-webkit-details-marker {
  display: none;
}

.device-fallback-summary > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.device-fallback-summary strong {
  font-size: 15px;
}

.device-fallback-summary small {
  color: #737d89;
  font-size: 12px;
  font-weight: 500;
}

.device-fallback-chevron {
  color: #087ee8;
  font-size: 20px;
  font-weight: 800;
  transition: transform 160ms ease;
}

.device-fallback-details[open]
.device-fallback-chevron {
  transform: rotate(180deg);
}

.device-fallback-content {
  padding: 0 15px 15px;
  border-top: 1px solid #e2e8f0;
}

.device-fallback-intro {
  margin: 14px 2px;
  color: #697381;
  font-size: 12px;
  line-height: 1.5;
}

.device-fallback-details
.device-platform-grid {
  margin-top: 0;
}

@media (max-width: 720px) {
  .device-fallback-summary {
    min-height: 66px;
    padding: 14px 15px;
  }

  .device-fallback-content {
    padding: 0 11px 12px;
  }
}


/* One-time member portal shortcut guidance */

.portal-shortcut-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 12, 25, 0.72);
  backdrop-filter: blur(10px);
  animation: portalShortcutFadeIn 180ms ease-out;
}

.portal-shortcut-overlay.is-closing {
  opacity: 0;
  transition: opacity 180ms ease;
}

.portal-shortcut-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(8, 126, 232, 0.25);
  border-radius: 26px;
  background:
    linear-gradient(145deg, #ffffff 0%, #f2f7fd 100%);
  box-shadow: 0 30px 90px rgba(3, 12, 28, 0.34);
}

.portal-shortcut-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf2f8;
  color: #172033;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.portal-shortcut-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  border-radius: 20px;
  background: #07172f;
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 23px;
  letter-spacing: 3px;
  box-shadow: 0 14px 32px rgba(7, 23, 47, 0.22);
}

.portal-shortcut-dialog h2 {
  margin: 8px 46px 12px 0;
  font-size: clamp(27px, 6vw, 38px);
  line-height: 1.08;
}

.portal-shortcut-intro {
  margin: 0;
  color: #596273;
  font-size: 17px;
  line-height: 1.65;
}

.portal-shortcut-instructions {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #cfe2f7;
  border-radius: 18px;
  background: #ffffff;
  color: #424b5b;
  line-height: 1.6;
}

.portal-shortcut-instructions strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 18px;
}

.portal-shortcut-instructions ol {
  margin: 10px 0;
  padding-left: 24px;
}

.portal-shortcut-instructions p {
  margin: 10px 0 0;
}

.portal-shortcut-actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.portal-shortcut-actions .button-link {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.portal-shortcut-later {
  padding: 13px;
  border: 0;
  background: transparent;
  color: #596273;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@keyframes portalShortcutFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .portal-shortcut-overlay {
    align-items: end;
    padding: 12px;
  }

  .portal-shortcut-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 28px 22px 24px;
    border-radius: 25px;
  }
}


/* =========================================================
   DJR TASK WORKSPACE UI
   ========================================================= */

.member-jump-nav a,
.owner-nav-inner a {
  position: relative;
}

.member-nav-notification-badge {
  position: absolute;
  top: 4px;
  right: 5px;
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #07172f;
  border-radius: 999px;
  background: #ff526b;
  color: #ffffff;
  font-size: 0.63rem;
  font-weight: 900;
  line-height: 1;
}

.member-nav-notification-badge[hidden] {
  display: none !important;
}

.member-workspace-section {
  width: 100%;
}

.task-owner-list,
.task-member-list {
  display: grid;
  gap: 14px;
}

.task-owner-card,
.task-member-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(167, 195, 235, 0.16);
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      rgba(27, 45, 76, 0.96),
      rgba(13, 27, 50, 0.98)
    );
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2);
}

.task-owner-card::before,
.task-member-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: #61aaff;
}

.task-priority-low::before {
  background: #8195b2;
}

.task-priority-high::before {
  background: #ffae4e;
}

.task-priority-urgent::before {
  background: #ff536b;
}

.task-owner-card__top,
.task-member-group-heading,
.task-workspace-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.task-owner-card h3,
.task-member-card h3 {
  margin: 8px 0 0;
  color: #ffffff;
}

.task-owner-badges,
.task-member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-owner-badges span,
.task-member-badges span,
.task-new-count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(65, 130, 217, 0.18);
  color: #9bcaff;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.task-new-count,
.task-unread-label {
  background: rgba(255, 77, 106, 0.17) !important;
  color: #ff8696 !important;
}

.task-description,
.task-member-description {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(170, 197, 235, 0.11);
  color: #b9c5d7;
  line-height: 1.65;
}

.task-owner-meta,
.task-member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  color: #8595ad;
  font-size: 0.72rem;
}

.task-owner-actions,
.task-member-actions,
.task-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.task-owner-actions a,
.task-member-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(164, 193, 233, 0.17);
  border-radius: 11px;
  background: rgba(29, 51, 85, 0.75);
  color: #d9e8fb;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.task-owner-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 17px;
  padding: 6px;
  overflow-x: auto;
  border-radius: 15px;
  background: rgba(10, 24, 46, 0.72);
}

.task-owner-filters a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 10px;
  color: #9cabc1;
  font-size: 0.77rem;
  font-weight: 800;
  text-decoration: none;
}

.task-owner-filters a.is-active {
  background: rgba(65, 142, 239, 0.22);
  color: #ffffff;
}

.task-owner-form,
.task-form-field {
  display: grid;
  gap: 8px;
}

.task-owner-form {
  gap: 17px;
}

.task-form-field {
  color: #dce7f7;
  font-size: 0.79rem;
  font-weight: 800;
}

.task-form-field input,
.task-form-field select,
.task-form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(164, 193, 234, 0.2);
  border-radius: 13px;
  background: rgba(8, 21, 41, 0.88);
  color: #ffffff;
  font: inherit;
}

.task-form-field textarea {
  min-height: 145px;
  resize: vertical;
}

.task-member-group {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(165, 193, 233, 0.14);
  border-radius: 19px;
  background: rgba(13, 28, 52, 0.72);
}

.task-member-group-heading {
  align-items: center;
  margin-bottom: 13px;
}

.task-member-group-heading h3 {
  margin: 0;
  color: #ffffff;
}

.task-member-group-heading > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(67, 137, 226, 0.17);
  color: #94c9ff;
  font-size: 0.74rem;
  font-weight: 900;
}

.task-empty-state {
  padding: 32px 18px;
  border: 1px dashed rgba(167, 196, 236, 0.2);
  border-radius: 17px;
  color: #a8b5c8;
  text-align: center;
}

.task-empty-state strong {
  display: block;
  color: #edf4ff;
}

.task-empty-state p {
  margin: 7px 0 0;
}

.task-completed-confirmation {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(83, 215, 140, 0.2);
  border-radius: 12px;
  background: rgba(30, 105, 67, 0.16);
  color: #94edba;
}

@media (max-width: 700px) {
  .task-owner-card__top {
    display: grid;
  }

  .task-owner-actions,
  .task-owner-actions a,
  .task-member-actions,
  .task-member-actions form,
  .task-member-actions button {
    width: 100%;
  }

  .task-member-group {
    padding: 12px;
  }
}

/* DJR owner Tailscale invitation panel */

.owner-tailnet-invite-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(52, 105, 220, 0.22);
  border-radius: 1.15rem;
  background: rgba(238, 244, 255, 0.96);
}

.owner-tailnet-invite-panel h2 {
  margin: 0.25rem 0 0.75rem;
}

.owner-tailnet-steps {
  margin: 1rem 0;
  padding-left: 1.4rem;
}

.owner-tailnet-steps li {
  margin: 0.45rem 0;
}

.owner-tailnet-email-box {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(52, 105, 220, 0.16);
  border-radius: 0.85rem;
  background: #fff;
  overflow-wrap: anywhere;
}

.owner-tailnet-email-box span {
  color: #667085;
  font-size: 0.88rem;
}

.owner-tailnet-actions {
  display: grid;
  gap: 0.75rem;
}

.owner-tailnet-actions button,
.owner-tailnet-actions a {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border: 1px solid #182235;
  border-radius: 0.75rem;
  background: #182235;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.owner-tailnet-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

#tailscale-copy-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  font-weight: 600;
}

@media (min-width: 700px) {
  .owner-tailnet-actions {
    grid-template-columns: 1fr 1fr;
  }
}


/* DJR recipient Tailscale flow */

.recipient-tailnet-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(38, 99, 235, 0.22);
  border-radius: 1.15rem;
  background: rgba(241, 246, 255, 0.98);
}

.recipient-tailnet-panel h2 {
  margin: 0.25rem 0 0.85rem;
}

.recipient-tailnet-panel--connected {
  border-color: rgba(31, 157, 85, 0.3);
  background: rgba(235, 250, 241, 0.98);
}

.recipient-tailnet-notice {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 0.3rem solid #2663eb;
  border-radius: 0.65rem;
  background: #fff;
}

.recipient-tailnet-notice p {
  margin: 0.4rem 0 0;
}

.recipient-tailnet-steps {
  margin: 1.1rem 0;
  padding-left: 1.45rem;
}

.recipient-tailnet-steps li {
  margin: 0.65rem 0;
}

.recipient-tailnet-help {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.recipient-tailnet-help details {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(24, 34, 53, 0.14);
  border-radius: 0.75rem;
  background: #fff;
}

.recipient-tailnet-help summary {
  cursor: pointer;
  font-weight: 700;
}

.recipient-tailnet-help details p {
  margin: 0.75rem 0 0;
}

.recipient-tailnet-check {
  display: flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  background: #111722;
  color: #fff;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.recipient-tailnet-check-note {
  margin: 0.75rem 0 0;
  color: #667085;
  font-size: 0.92rem;
}


/* DJR live task application feedback */

.task-toast-region {
  position: fixed;
  z-index: 10000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.task-toast {
  transform: translateY(14px);
  opacity: 0;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(7, 23, 47, 0.96);
  color: #ffffff;
  box-shadow:
    0 18px 45px rgba(3, 12, 27, 0.28),
    0 4px 14px rgba(3, 12, 27, 0.18);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.task-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.task-toast-error {
  border-color: rgba(255, 132, 132, 0.4);
}

[data-member-task-status-form] button.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.task-owner-workspace,
.member-task-workspace {
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.task-owner-workspace.task-live-updated {
  animation: djr-task-live-pulse 420ms ease;
}

@keyframes djr-task-live-pulse {
  0% {
    opacity: 0.72;
    transform: translateY(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .task-toast-region {
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-toast,
  .task-owner-workspace,
  .member-task-workspace {
    transition: none;
    animation: none;
  }
}


/* =========================================================
   DJR MEMBER TASK CAROUSEL AND HISTORY TRAY
   ========================================================= */

.task-carousel-shell {
  margin-top: 18px;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(165, 193, 233, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(16, 34, 63, 0.94),
      rgba(9, 23, 45, 0.98)
    );
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.task-carousel-heading,
.task-carousel-toolbar,
.task-history-panel-heading,
.task-history-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-carousel-heading {
  margin-bottom: 14px;
}

.task-carousel-heading h3,
.task-history-panel-heading h3 {
  margin: 0;
  color: #fff;
}

.task-carousel-total,
.task-history-count {
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(52, 137, 235, 0.2);
  color: #9bd0ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.task-carousel-toolbar {
  margin-bottom: 13px;
}

.task-carousel-tabs {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.task-carousel-tabs::-webkit-scrollbar {
  display: none;
}

.task-carousel-arrow,
.task-carousel-tab,
.task-history-close {
  appearance: none;
  border: 0;
  font: inherit;
}

.task-carousel-arrow {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(153, 194, 244, 0.17);
  border-radius: 14px;
  background: rgba(38, 69, 110, 0.72);
  color: #e8f3ff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.task-carousel-arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

.task-carousel-tab {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(153, 194, 244, 0.14);
  border-radius: 12px;
  background: rgba(32, 57, 93, 0.68);
  color: #9eafc5;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.task-carousel-tab.is-active {
  width: 50px;
  background:
    linear-gradient(
      145deg,
      #1999ef,
      #0871cf
    );
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 19px rgba(3, 113, 207, 0.28);
}

.task-carousel-tab i {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border: 2px solid #0d223e;
  border-radius: 50%;
  background: #ff647d;
}

.task-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  border-radius: 20px;
}

.task-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.task-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 13px;
}

.task-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.task-carousel-slide .task-member-card {
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  margin: 0;
  box-shadow: none;
}

.task-carousel-slide .task-member-actions {
  margin-top: auto;
  padding-top: 18px;
}

.task-carousel-position {
  min-height: 18px;
  margin: 11px 0 0;
  color: #8294ad;
  font-size: 0.7rem;
  font-weight: 750;
  text-align: center;
}

/* Completed-task history tray */

.task-history-tray {
  position: relative;
  z-index: 20;
  margin-top: 15px;
  border: 1px solid rgba(154, 187, 230, 0.17);
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      rgba(38, 53, 76, 0.98),
      rgba(22, 36, 57, 0.99)
    );
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.task-history-tray > summary {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.task-history-tray > summary::-webkit-details-marker {
  display: none;
}

.task-history-summary-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(67, 214, 139, 0.13);
  color: #83edb4;
  font-size: 1.2rem;
}

.task-history-summary-copy {
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
}

.task-history-summary-copy small {
  color: #6bb8ff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.task-history-summary-copy strong {
  color: #fff;
}

.task-history-chevron {
  flex: 0 0 auto;
  color: #9eafc4;
  font-size: 1.55rem;
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.task-history-tray[open] .task-history-chevron {
  transform: rotate(-90deg);
}

.task-history-panel {
  max-height: min(68vh, 650px);
  padding: 3px 15px 17px;
  overflow-y: auto;
  border-top: 1px solid rgba(157, 190, 232, 0.12);
}

.task-history-panel-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 15px 2px 12px;
  background: rgba(26, 40, 62, 0.97);
  backdrop-filter: blur(12px);
}

.task-history-close {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(159, 192, 234, 0.15);
  border-radius: 11px;
  background: rgba(42, 64, 95, 0.78);
  color: #dceaff;
  font-size: 0.73rem;
  font-weight: 850;
  cursor: pointer;
}

.task-history-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-history-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 2px;
  border-bottom: 1px solid rgba(162, 193, 233, 0.11);
}

.task-history-item:last-child {
  border-bottom: 0;
}

.task-history-marker {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: #61aaff;
  box-shadow: 0 0 0 5px rgba(97, 170, 255, 0.1);
}

.task-history-marker.task-priority-low {
  background: #8195b2;
}

.task-history-marker.task-priority-high {
  background: #ffae4e;
}

.task-history-marker.task-priority-urgent {
  background: #ff536b;
}

.task-history-copy {
  min-width: 0;
}

.task-history-title-row {
  align-items: flex-start;
}

.task-history-title-row strong {
  color: #f4f8ff;
  overflow-wrap: anywhere;
}

.task-history-priority {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(80, 137, 211, 0.16);
  color: #9ac8ff;
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.task-history-copy p {
  margin: 8px 0 0;
  color: #aebbcf;
  font-size: 0.82rem;
  line-height: 1.55;
}

.task-history-times {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  margin-top: 10px;
  color: #7f90a8;
  font-size: 0.68rem;
}

.task-history-times time {
  color: #afbdd0;
}

@media (max-width: 700px) {
  .task-carousel-shell {
    padding: 12px;
  }

  .task-carousel-slide .task-member-card {
    min-height: 390px;
  }

  .task-carousel-arrow {
    width: 39px;
    height: 39px;
  }

  .task-history-panel {
    max-height: 62vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-carousel-tab,
  .task-history-chevron,
  .task-carousel-viewport {
    scroll-behavior: auto;
    transition: none;
  }
}

/* DJR COMPACT MEMBER TASK CARDS — START */

/*
 * The member carousel always presents a compact task overview first.
 * Long instructions can then be expanded intentionally.
 */

.task-carousel-shell {
  position: relative;
  padding: 16px;
  border-color: rgba(99, 173, 255, 0.25);
  background:
    radial-gradient(
      circle at 92% 5%,
      rgba(31, 151, 239, 0.27),
      transparent 39%
    ),
    linear-gradient(
      135deg,
      #10284c 0%,
      #123762 52%,
      #0c5792 100%
    );
  box-shadow:
    0 22px 48px rgba(7, 28, 58, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.task-carousel-heading {
  margin-bottom: 11px;
}

.task-carousel-toolbar {
  margin-bottom: 11px;
}

.task-carousel-slide {
  align-self: flex-start;
}

/*
 * Remove the old minimum heights responsible for the oversized cards.
 */
.task-carousel-slide .task-member-card {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto
    auto
    auto;
  align-content: start;
  padding: 17px;
  overflow: hidden;
  border-color: rgba(141, 192, 249, 0.19);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(20, 47, 84, 0.98),
      rgba(11, 30, 57, 0.99)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(4, 17, 36, 0.17);
}

.task-carousel-slide .task-member-card h3 {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  font-size: clamp(1.18rem, 5.4vw, 1.55rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-carousel-slide .task-member-description {
  position: relative;
  min-height: 0;
  margin-top: 11px;
  padding-top: 11px;
  overflow: hidden;
  color: #c0ccdc;
  font-size: 0.92rem;
  line-height: 1.48;
}

/*
 * Approximately five compact lines remain visible in overview mode.
 */
.task-carousel-slide
.task-description-collapsed:not(.is-task-expanded)
.task-member-description {
  display: -webkit-box;
  max-height: 7.4em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.task-carousel-slide
.task-description-collapsed:not(.is-task-expanded)
.task-member-description::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 1.55em;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(11, 30, 57, 0),
      rgba(11, 30, 57, 0.98) 72%
    );
}

.task-carousel-slide
.task-description-fits
.task-member-description::after {
  display: none;
}

.task-detail-toggle {
  width: fit-content;
  min-height: 34px;
  margin: 8px 0 0;
  padding: 6px 11px;
  appearance: none;
  border: 1px solid rgba(118, 188, 255, 0.24);
  border-radius: 999px;
  background: rgba(24, 107, 184, 0.18);
  color: #94cfff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.task-detail-toggle[hidden] {
  display: none !important;
}

.task-detail-toggle:active {
  transform: scale(0.98);
}

.task-carousel-slide .task-member-meta {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  font-size: 0.67rem;
  line-height: 1.35;
}

.task-carousel-slide .task-member-actions {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(120px, 1fr)
  );
  gap: 8px;
  margin-top: 10px;
  padding-top: 0;
}

.task-carousel-slide .task-member-actions form,
.task-carousel-slide .task-member-actions button {
  width: 100%;
}

.task-carousel-slide .task-member-actions button {
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 0.76rem;
}

.task-carousel-position {
  margin-top: 9px;
  color: rgba(215, 234, 255, 0.68);
}

/*
 * Expanded mode is deliberately opt-in and may grow vertically to reveal
 * the complete instructions.
 */
.task-carousel-slide
.task-member-card.is-task-expanded {
  aspect-ratio: auto;
  min-height: min(74vh, 640px);
  overflow: visible;
}

.task-carousel-slide
.task-member-card.is-task-expanded
.task-member-description {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.task-carousel-slide
.task-member-card.is-task-expanded
.task-member-description::after {
  display: none;
}

/* Match the completed-task tray to the welcome-header gradient. */

.task-history-tray {
  overflow: hidden;
  border-color: rgba(101, 179, 255, 0.23);
  background:
    radial-gradient(
      circle at 94% 0%,
      rgba(34, 151, 233, 0.24),
      transparent 44%
    ),
    linear-gradient(
      135deg,
      #10284c 0%,
      #123762 55%,
      #0d4f85 100%
    );
  box-shadow:
    0 19px 42px rgba(7, 28, 58, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.task-history-tray > summary {
  min-height: 72px;
}

.task-history-panel {
  background:
    linear-gradient(
      180deg,
      rgba(13, 38, 70, 0.97),
      rgba(9, 27, 51, 0.99)
    );
}

.task-history-panel-heading {
  background: rgba(14, 42, 75, 0.96);
}

/*
 * On narrow phones the usable carousel width is smaller, so keep the
 * overview square rather than reinstating the previous tall minimum.
 */
@media (max-width: 700px) {
  .task-carousel-shell {
    padding: 13px;
  }

  .task-carousel-slide .task-member-card {
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 15px;
  }

  .task-carousel-slide
  .task-member-card.is-task-expanded {
    aspect-ratio: auto;
    min-height: min(72vh, 610px);
  }

  .task-carousel-slide .task-member-description {
    font-size: 0.88rem;
  }

  .task-carousel-slide
  .task-description-collapsed:not(.is-task-expanded)
  .task-member-description {
    max-height: 6.9em;
    -webkit-line-clamp: 5;
  }
}

@media (max-width: 390px) {
  .task-carousel-slide .task-member-card {
    padding: 14px;
  }

  .task-carousel-slide .task-member-card h3 {
    font-size: 1.14rem;
  }

  .task-carousel-slide .task-member-badges span {
    min-height: 23px;
    padding: 3px 7px;
    font-size: 0.59rem;
  }

  .task-carousel-slide .task-member-description {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .task-carousel-slide
  .task-description-collapsed:not(.is-task-expanded)
  .task-member-description {
    max-height: 5.7em;
    -webkit-line-clamp: 4;
  }

  .task-carousel-slide .task-member-meta {
    font-size: 0.62rem;
  }

  .task-carousel-slide .task-member-actions button {
    min-height: 38px;
    font-size: 0.71rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-detail-toggle {
    transition: none;
  }
}

/* DJR COMPACT MEMBER TASK CARDS — END */

/* DJR compact task toggle — persistent closed/open appearance */

.task-detail-toggle {
  min-height: 30px;
  margin-top: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(26, 123, 211, 0.32),
      rgba(15, 83, 153, 0.24)
    );
  color: #b8ddff;
  font-size: 0.67rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.task-detail-toggle[aria-expanded="true"] {
  min-height: 32px;
  padding: 6px 11px;
  background:
    linear-gradient(
      135deg,
      rgba(31, 151, 239, 0.78),
      rgba(8, 105, 194, 0.78)
    );
  color: #ffffff;
}

@media (max-width: 390px) {
  .task-detail-toggle {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 0.64rem;
  }
}


/* =========================================================
   DJR TASK FILE ATTACHMENTS
   ========================================================= */

.task-file-picker-field {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(108, 174, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(29, 145, 230, 0.17),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(17, 42, 76, 0.94),
      rgba(10, 28, 54, 0.98)
    );
}

.task-file-picker-label {
  display: grid;
  gap: 4px;
}

.task-file-picker-label > span {
  color: #f4f8ff;
  font-weight: 850;
}

.task-file-picker-label small {
  color: #93a5bd;
  line-height: 1.5;
}

.task-file-browse {
  width: fit-content;
  margin: 0;
}

.task-file-selected {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(91, 178, 255, 0.24);
  border-radius: 14px;
  background: rgba(20, 75, 128, 0.28);
}

.task-file-selected[hidden] {
  display: none !important;
}

.task-file-selected-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(72, 160, 239, 0.17);
}

.task-file-selected > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.task-file-selected strong,
.task-file-selected small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-file-selected strong {
  color: #f5f9ff;
}

.task-file-selected small {
  color: #8fa3bd;
  font-size: 0.72rem;
}

.task-file-selected button {
  appearance: none;
  padding: 7px 10px;
  border: 1px solid rgba(255, 131, 146, 0.23);
  border-radius: 10px;
  background: rgba(157, 46, 66, 0.15);
  color: #ff9aaa;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.task-file-picker-message {
  min-height: 1.2em;
  margin: 0;
  color: #8fd0ff;
  font-size: 0.76rem;
}

.task-file-picker-message.is-error {
  color: #ff9aaa;
}

.task-file-dialog {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

.task-file-dialog[hidden] {
  display: none !important;
}

.task-file-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 10, 24, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.task-file-dialog-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(110, 182, 255, 0.26);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 96% 0%,
      rgba(33, 150, 235, 0.24),
      transparent 40%
    ),
    linear-gradient(
      145deg,
      #10284c,
      #0a1d38
    );
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
}

.task-file-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid rgba(153, 193, 237, 0.12);
}

.task-file-dialog-header h2 {
  margin: 3px 0 4px;
  color: #fff;
}

.task-file-dialog-header small {
  color: #90a4bf;
  overflow-wrap: anywhere;
}

.task-file-dialog-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  appearance: none;
  border: 1px solid rgba(151, 190, 234, 0.17);
  border-radius: 13px;
  background: rgba(34, 63, 99, 0.72);
  color: #e8f3ff;
  font-size: 1.5rem;
  cursor: pointer;
}

.task-file-dialog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(153, 193, 237, 0.1);
}

.task-file-dialog-toolbar button {
  appearance: none;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(151, 190, 234, 0.17);
  border-radius: 11px;
  background: rgba(35, 68, 108, 0.7);
  color: #dcebff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.task-file-dialog-toolbar button:disabled {
  opacity: 0.35;
  cursor: default;
}

.task-file-dialog-toolbar span {
  color: #8fa2bc;
  font-size: 0.76rem;
}

.task-file-dialog-list {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 15px;
  overflow-y: auto;
}

.task-file-dialog-entry {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  appearance: none;
  border: 1px solid rgba(143, 184, 231, 0.13);
  border-radius: 14px;
  background: rgba(18, 43, 76, 0.78);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.task-file-dialog-entry:active {
  transform: scale(0.99);
}

.task-file-dialog-entry-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(72, 155, 235, 0.13);
}

.task-file-dialog-entry-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.task-file-dialog-entry-copy strong,
.task-file-dialog-entry-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-file-dialog-entry-copy strong {
  color: #f2f7ff;
}

.task-file-dialog-entry-copy small {
  color: #899db8;
  font-size: 0.7rem;
}

.task-file-dialog-entry-arrow {
  color: #82c6ff;
  font-size: 1.35rem;
}

.task-file-dialog-empty {
  padding: 32px 18px;
  color: #91a4be;
  text-align: center;
}

body.task-file-dialog-open {
  overflow: hidden;
}

/* Member-facing attachment card. */

.task-linked-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(89, 177, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(20, 91, 153, 0.27),
      rgba(16, 54, 98, 0.24)
    );
  color: inherit;
  text-decoration: none;
}

.task-linked-file-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(70, 161, 242, 0.17);
}

.task-linked-file-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.task-linked-file-copy small {
  color: #72bdff;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.task-linked-file-copy strong {
  overflow: hidden;
  color: #f5f9ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-linked-file-copy > span {
  color: #8ea5bf;
  font-size: 0.69rem;
}

.task-linked-file-arrow {
  color: #8dcbff;
  font-size: 1.5rem;
}

.task-linked-file-target {
  position: relative;
  z-index: 2;
  animation: djr-linked-file-highlight 1.15s ease 3;
  outline: 3px solid rgba(41, 160, 245, 0.8);
  outline-offset: 4px;
}

@keyframes djr-linked-file-highlight {
  0%,
  100% {
    transform: scale(1);
    box-shadow: none;
  }

  50% {
    transform: scale(1.018);
    box-shadow: 0 0 0 9px rgba(41, 160, 245, 0.15);
  }
}

@media (max-width: 600px) {
  .task-file-dialog {
    place-items: end center;
    padding: 0;
  }

  .task-file-dialog-panel {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
  }

  .task-file-selected {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .task-file-selected button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-linked-file-target {
    animation: none;
  }
}

/* DJR Secure Storage badge */
.storage-secure-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 9px 16px !important;
    min-height: 38px !important;

    background: #0b2347 !important;
    border: 1px solid #1e4d82 !important;
    border-radius: 999px !important;

    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;

    box-shadow:
        0 5px 14px rgba(8, 25, 52, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

    opacity: 1 !important;
    white-space: nowrap !important;
}


/* DJR Storage heading and security badge polish */

.member-storage-panel .member-panel-heading {
  align-items: flex-start;
  gap: 16px;
}

.member-storage-panel .member-panel-heading > div {
  min-width: 0;
  flex: 1 1 auto;
}

.member-storage-panel .member-panel-heading h2,
.member-storage-panel .member-panel-heading h2:focus,
.member-storage-panel .member-panel-heading h2:focus-visible,
.member-storage-panel h2[tabindex="-1"]:focus,
.member-storage-panel h2[tabindex="-1"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.member-storage-panel .member-panel-heading h2 {
  margin: 5px 0 8px;
  color: #111318;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.member-storage-panel .member-panel-heading p {
  margin: 0;
  color: #646d7d;
  line-height: 1.55;
}

.storage-secure-badge {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  margin-top: 2px !important;
  padding: 9px 17px !important;
  border: 1px solid rgba(61, 145, 235, 0.42) !important;
  border-radius: 999px !important;
  outline: none !important;
  background:
    linear-gradient(
      145deg,
      #123565 0%,
      #0b2449 54%,
      #071b38 100%
    ) !important;
  color: #ffffff !important;
  box-shadow:
    0 10px 24px rgba(7, 28, 58, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

.storage-secure-badge::before {
  content: "●";
  color: #43d896;
  font-size: 0.72rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(67, 216, 150, 0.68);
}

@media (max-width: 390px) {
  .member-storage-panel .member-panel-heading {
    gap: 10px;
  }

  .member-storage-panel .member-panel-heading h2 {
    font-size: 1.7rem;
  }

  .storage-secure-badge {
    min-height: 38px !important;
    padding: 8px 13px !important;
    font-size: 0.75rem !important;
  }
}


/* DJR Storage heading and security badge polish */

.member-storage-panel .member-panel-heading {
  align-items: flex-start;
  gap: 16px;
}

.member-storage-panel .member-panel-heading > div {
  min-width: 0;
  flex: 1 1 auto;
}

.member-storage-panel .member-panel-heading h2,
.member-storage-panel .member-panel-heading h2:focus,
.member-storage-panel .member-panel-heading h2:focus-visible,
.member-storage-panel h2[tabindex="-1"]:focus,
.member-storage-panel h2[tabindex="-1"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.member-storage-panel .member-panel-heading h2 {
  margin: 5px 0 8px;
  color: #111318;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.member-storage-panel .member-panel-heading p {
  margin: 0;
  color: #646d7d;
  line-height: 1.55;
}

.storage-secure-badge {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  margin-top: 2px !important;
  padding: 9px 17px !important;
  border: 1px solid rgba(61, 145, 235, 0.42) !important;
  border-radius: 999px !important;
  outline: none !important;
  background:
    linear-gradient(
      145deg,
      #123565 0%,
      #0b2449 54%,
      #071b38 100%
    ) !important;
  color: #ffffff !important;
  box-shadow:
    0 10px 24px rgba(7, 28, 58, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  font-size: 0.82rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

.storage-secure-badge::before {
  content: "●";
  color: #43d896;
  font-size: 0.72rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(67, 216, 150, 0.68);
}

@media (max-width: 390px) {
  .member-storage-panel .member-panel-heading {
    gap: 10px;
  }

  .member-storage-panel .member-panel-heading h2 {
    font-size: 1.7rem;
  }

  .storage-secure-badge {
    min-height: 38px !important;
    padding: 8px 13px !important;
    font-size: 0.75rem !important;
  }
}


/* ==================================================
   DJR OWNER SERVER MONITOR
   ================================================== */

.owner-monitor-dashboard {
  padding-bottom: 1rem;
}

.owner-monitor-refresh-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 42px;
}

.owner-monitor-refresh-row > small {
  margin-right: auto;
  color: #718096;
}

.owner-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  border: 1px solid #e5c979;
  border-radius: 999px;
  background: #fff9e8;
  color: #75530a;
  font-size: 0.76rem;
}

.owner-health-pill > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d79a16;
  box-shadow: 0 0 0 4px rgba(215, 154, 22, 0.12);
}

.owner-health-pill.is-healthy {
  border-color: #b9dfca;
  background: #edf9f2;
  color: #17643a;
}

.owner-health-pill.is-healthy > span {
  background: #28a861;
  box-shadow: 0 0 0 4px rgba(40, 168, 97, 0.12);
}

.owner-monitor-refresh {
  min-height: 36px;
  padding: 0.45rem 0.8rem;
}

.owner-monitor-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-panel-meta {
  color: #758096;
  font-size: 0.78rem;
}

.owner-server-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.owner-server-metric {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e3e8f1;
  border-radius: 14px;
  background: #f8faff;
}

.owner-server-metric-heading {
  display: grid;
  gap: 0.25rem;
}

.owner-server-metric-heading span,
.owner-server-metric small {
  color: #748096;
  font-size: 0.76rem;
}

.owner-server-metric-heading strong {
  color: #10213e;
  font-size: 1.45rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.owner-meter {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf3;
}

.owner-meter > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6049d8, #856eff);
  transition: width 350ms ease;
}

.owner-storage-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.owner-storage-monitor-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid #e3e8f1;
  border-radius: 14px;
  background: #f8faff;
}

.owner-storage-monitor-card strong,
.owner-storage-monitor-card small {
  display: block;
}

.owner-storage-monitor-card strong {
  color: #10213e;
}

.owner-storage-monitor-card small,
.owner-storage-monitor-card > span {
  color: #738096;
  font-size: 0.76rem;
}

.owner-storage-monitor-card .owner-meter {
  grid-column: 1 / -1;
}

.owner-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.owner-service-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #e3e8f1;
  border-radius: 13px;
  background: #f8faff;
}

.owner-service-card strong,
.owner-service-card small {
  display: block;
  overflow-wrap: anywhere;
}

.owner-service-card strong {
  color: #10213e;
  font-size: 0.84rem;
}

.owner-service-card small {
  margin-top: 0.15rem;
  color: #758096;
  font-size: 0.72rem;
  text-transform: capitalize;
}

.owner-service-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d49b30;
  box-shadow: 0 0 0 4px rgba(212, 155, 48, 0.12);
}

.owner-service-dot.is-active {
  background: #2aaa63;
  box-shadow: 0 0 0 4px rgba(42, 170, 99, 0.12);
}

.owner-member-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
}

.owner-member-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

.owner-member-table th,
.owner-member-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e8ecf3;
  text-align: left;
  vertical-align: middle;
}

.owner-member-table th {
  background: #f5f7fb;
  color: #667287;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.owner-member-table tbody tr:last-child td {
  border-bottom: 0;
}

.owner-member-table tbody tr:hover {
  background: #fbfcff;
}

.owner-member-table td {
  color: #263550;
  font-size: 0.82rem;
}

.owner-member-table td strong,
.owner-member-table td small {
  display: block;
}

.owner-member-table td strong {
  color: #10213e;
}

.owner-member-table td small {
  margin-top: 0.18rem;
  color: #778398;
  font-size: 0.72rem;
}

.owner-member-status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fff6dc;
  color: #75530a;
  font-size: 0.7rem;
  font-weight: 800;
}

.owner-member-status.is-active {
  background: #eaf8f0;
  color: #17643a;
}

.owner-monitor-empty {
  margin: 0;
  padding: 1rem;
  color: #748096;
}

@media (max-width: 980px) {
  .owner-monitor-summary,
  .owner-server-metric-grid,
  .owner-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .owner-monitor-refresh-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .owner-monitor-refresh-row > small {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .owner-monitor-summary,
  .owner-server-metric-grid,
  .owner-storage-monitor-grid,
  .owner-service-grid {
    grid-template-columns: 1fr;
  }

  .owner-panel-heading-row {
    align-items: stretch;
  }

  .owner-panel-heading-row .button-link {
    width: 100%;
    justify-content: center;
  }

  .owner-member-table-wrap {
    overflow: visible;
    border: 0;
  }

  .owner-member-table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .owner-member-table thead {
    display: none;
  }

  .owner-member-table tbody,
  .owner-member-table tr,
  .owner-member-table td {
    display: block;
    width: 100%;
  }

  .owner-member-table tr {
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid #e2e7f0;
    border-radius: 14px;
    background: #ffffff;
  }

  .owner-member-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.7rem;
    border-bottom: 1px solid #edf0f5;
  }

  .owner-member-table td::before {
    content: attr(data-label);
    color: #748096;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .owner-member-table td:last-child {
    border-bottom: 0;
  }
}


/* ==========================================================
   DJR OWNER DASHBOARD V2
   Scoped under .djro-dashboard to avoid altering other pages.
   ========================================================== */

.djro-dashboard {
  --djro-navy: #0b1d3a;
  --djro-deep: #07172f;
  --djro-purple: #6650d8;
  --djro-purple-soft: #eeeaff;
  --djro-border: var(--owner-line, #e2e8f1);
  --djro-muted: #718096;
  --djro-surface: #ffffff;
  --djro-bg: #f5f7fb;
  --djro-green: #22a06b;

  display: grid;
  gap: 1rem;
  width: 100%;
  padding: 0 0 1.5rem;
  color: #10213e;
}

.djro-dashboard *,
.djro-dashboard *::before,
.djro-dashboard *::after {
  box-sizing: border-box;
}

.djro-eyebrow {
  margin: 0 0 .28rem;
  color: #6b59c9;
  font-size: .69rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .12em;
}


/* HERO */

.djro-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.45rem;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at top right,
      rgba(116, 84, 255, .25),
      transparent 40%
    ),
    linear-gradient(145deg, #0b1f3f, #07172f);
  box-shadow: 0 16px 38px rgba(9, 28, 59, .16);
  color: white;
}

.djro-hero h1 {
  margin: 0 0 .35rem;
  color: white;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  letter-spacing: -.035em;
}

.djro-hero p:last-child {
  margin: 0;
  max-width: 580px;
  color: rgba(255,255,255,.68);
  font-size: .88rem;
}

.djro-primary-button,
.djro-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  text-decoration: none;
  font-weight: 800;
}

.djro-primary-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: .7rem 1rem;
  border-radius: 11px;
  background: white;
  color: #352878;
  box-shadow: 0 7px 18px rgba(0,0,0,.12);
}


/* STATS */

.djro-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .75rem;
}

.djro-stat {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--djro-border);
  border-radius: 15px;
  background: white;
  box-shadow: 0 8px 22px rgba(15,35,68,.055);
}

.djro-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--owner-inset, var(--djro-purple-soft));
  color: #5842c4;
  font-size: 1.05rem;
  font-weight: 900;
}

.djro-stat > div:last-child {
  display: grid;
  min-width: 0;
}

.djro-stat span {
  color: var(--owner-muted, var(--djro-muted));
  font-size: .7rem;
  font-weight: 750;
}

.djro-stat strong {
  color: #10213e;
  font-size: 1.45rem;
  line-height: 1.15;
}

.djro-stat .djro-system-ok {
  color: var(--owner-success, var(--djro-green));
  font-size: 1rem;
}


/* PANELS */

.djro-panel {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--djro-border);
  border-radius: 18px;
  background: white;
  box-shadow: 0 9px 26px rgba(15,35,68,.055);
}

.djro-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.djro-panel-heading h2 {
  margin: 0;
  color: #10213e;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.djro-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .55rem;
  border-radius: 999px;
  background: #eaf8f1;
  color: #18845a;
  font-size: .65rem;
  font-weight: 850;
}

.djro-live i,
.djro-status-line i,
.djro-service > i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #21ad73;
  box-shadow: 0 0 0 3px rgba(33,173,115,.11);
}


/* SYSTEM */

.djro-system-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  margin-bottom: .85rem;
  border-radius: 14px;
  background: #f6f8fc;
}

.djro-system-machine {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.djro-server-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #eae6ff;
  color: #5841c4;
  font-size: 1.15rem;
}

.djro-system-machine > div:last-child {
  display: grid;
}

.djro-system-machine span {
  color: #7b8495;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.djro-system-machine strong {
  font-size: .92rem;
}

.djro-system-machine small,
.djro-system-meta {
  color: #778196;
  font-size: .7rem;
}

.djro-monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: .7rem;
}

.djro-monitor-card {
  min-width: 0;
  padding: .9rem;
  border: 1px solid #e7ebf2;
  border-radius: 13px;
  background: #fcfdff;
}

.djro-monitor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}

.djro-monitor-top span {
  color: #69768a;
  font-size: .72rem;
  font-weight: 750;
}

.djro-monitor-top b {
  font-size: .9rem;
}

.djro-smaller-value {
  font-size: .72rem !important;
}

.djro-monitor-card > small {
  display: block;
  margin-top: .55rem;
  color: #7a8497;
  font-size: .65rem;
  line-height: 1.35;
}

.djro-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf4;
}

.djro-progress > span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #6d58dd, #8876ea);
}

.djro-temp-placeholder {
  display: grid;
  gap: .2rem;
  padding-top: .2rem;
}

.djro-temp-placeholder span {
  font-size: .68rem;
  font-weight: 700;
}

.djro-temp-placeholder small {
  color: #8a93a3;
  font-size: .62rem;
}

.djro-status-line {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #69758a;
  font-size: .65rem;
}


/* DETAILS */

.djro-details {
  margin-top: .8rem;
  border: 1px solid #e7ebf2;
  border-radius: 13px;
  overflow: hidden;
}

.djro-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem .9rem;
  cursor: pointer;
  list-style: none;
  background: #fafbfe;
}

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

.djro-details summary > span {
  display: grid;
}

.djro-details summary b {
  font-size: .76rem;
}

.djro-details summary small {
  margin-top: .1rem;
  color: #7b8597;
  font-size: .63rem;
}

.djro-details summary > i {
  color: #7564c8;
  font-style: normal;
  transition: transform .18s ease;
}

.djro-details[open] summary > i {
  transform: rotate(180deg);
}

.djro-detail-body {
  padding: 0 .9rem;
}

.djro-info-row {
  display: grid;
  grid-template-columns: minmax(100px,.55fr) minmax(0,1fr);
  gap: .75rem;
  padding: .7rem 0;
  border-top: 1px solid #edf0f5;
}

.djro-info-row span {
  color: #7b8597;
  font-size: .68rem;
}

.djro-info-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .7rem;
  text-align: right;
}


/* STORAGE */

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

.djro-storage-card {
  padding: .95rem;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #fcfdff;
}

.djro-storage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}

.djro-storage-heading > div {
  display: grid;
}

.djro-storage-heading span {
  color: #7b8597;
  font-size: .64rem;
}

.djro-storage-heading strong {
  font-size: .8rem;
}

.djro-storage-heading > b {
  font-size: .86rem;
}

.djro-storage-footer {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  margin-top: .55rem;
  color: #7a8495;
  font-size: .62rem;
}


/* SERVICES */

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

.djro-service {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  padding: .8rem;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  background: #fcfdff;
}

.djro-service > div {
  display: grid;
  min-width: 0;
}

.djro-service strong {
  font-size: .75rem;
}

.djro-service small {
  overflow: hidden;
  color: #818a9b;
  font-size: .61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.djro-service > span {
  color: #1d8a61;
  font-size: .63rem;
  font-weight: 800;
}


/* PEOPLE */

.djro-text-link {
  color: #6651c9;
  font-size: .7rem;
  font-weight: 800;
  text-decoration: none;
}

.djro-member-list {
  display: grid;
  gap: .55rem;
}

.djro-member {
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 13px;
  background: #fff;
}

.djro-member summary {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .8rem;
  cursor: pointer;
  list-style: none;
}

.djro-member summary::-webkit-details-marker {
  display: none;
}

.djro-member-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #ece9ff;
  color: #5b45c3;
  font-size: .85rem;
  font-weight: 900;
}

.djro-member-main {
  display: grid;
  min-width: 0;
}

.djro-member-main strong {
  overflow: hidden;
  color: #152644;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.djro-member-main small {
  overflow: hidden;
  margin-top: .1rem;
  color: #818b9c;
  font-size: .61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.djro-member-status {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.djro-member-status > span {
  padding: .28rem .45rem;
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 850;
}

.djro-member-status .complete {
  background: #e8f7ef;
  color: #19825a;
}

.djro-member-status .pending {
  background: #fff4d9;
  color: #946c0b;
}

.djro-member-status .expired {
  background: #fce9eb;
  color: #ae3c4a;
}

.djro-member-status i {
  color: #7868bd;
  font-style: normal;
  transition: transform .18s ease;
}

.djro-member[open] .djro-member-status i {
  transform: rotate(180deg);
}

.djro-member-body {
  padding: .9rem;
  border-top: 1px solid #e9edf3;
  background: #fafbfe;
}

.djro-member-info-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .55rem;
}

.djro-member-info-grid > div {
  display: grid;
  min-width: 0;
  padding: .65rem;
  border-radius: 10px;
  background: white;
}

.djro-member-info-grid span,
.djro-share-section > span,
.djro-member-tasks > span {
  color: #8992a2;
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .07em;
}

.djro-member-info-grid strong {
  margin-top: .12rem;
  overflow-wrap: anywhere;
  font-size: .68rem;
}

.djro-share-section,
.djro-member-tasks {
  margin-top: .8rem;
}

.djro-share-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .4rem;
}

.djro-share-list b {
  padding: .3rem .45rem;
  border-radius: 7px;
  background: #ece9ff;
  color: #5d48be;
  font-size: .57rem;
}

.djro-member-tasks > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem 0;
  border-bottom: 1px solid #e7eaf0;
}

.djro-member-tasks strong {
  font-size: .66rem;
}

.djro-member-tasks small {
  color: #778195;
  font-size: .58rem;
}

.djro-member-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: .8rem;
}

.djro-secondary-button {
  min-height: 36px;
  padding: .5rem .7rem;
  border: 1px solid #d8d0fa;
  border-radius: 9px;
  background: white;
  color: #5b46bd;
  font-size: .65rem;
}


/* TOOLS */

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

.djro-tool {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  padding: .8rem;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #fbfcff;
  color: #10213e;
  text-decoration: none;
}

.djro-tool > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ece9ff;
  color: #5c47c1;
  font-weight: 900;
}

.djro-tool > div {
  display: grid;
  min-width: 0;
}

.djro-tool strong {
  font-size: .72rem;
}

.djro-tool small {
  margin-top: .1rem;
  color: #7c8698;
  font-size: .59rem;
}

.djro-tool > i {
  color: #8879c9;
  font-size: 1.2rem;
  font-style: normal;
}


/* FOOTER */

.djro-dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem .15rem;
  color: #8a93a3;
  font-size: .6rem;
  font-weight: 750;
  letter-spacing: .06em;
}

.djro-dashboard-footer a {
  color: #7261c2;
  text-decoration: none;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

  .djro-stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .djro-monitor-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 620px) {

  .owner-shell {
    width: min(100% - 1rem, 1180px) !important;
  }

  .djro-dashboard {
    gap: .75rem;
  }

  .djro-hero {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 16px;
  }

  .djro-hero h1 {
    font-size: 1.55rem;
  }

  .djro-hero p:last-child {
    font-size: .78rem;
    line-height: 1.45;
  }

  .djro-primary-button {
    width: 100%;
  }

  .djro-stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .5rem;
  }

  .djro-stat {
    gap: .55rem;
    padding: .72rem;
    border-radius: 12px;
  }

  .djro-stat-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: .9rem;
  }

  .djro-stat span {
    font-size: .58rem;
  }

  .djro-stat strong {
    font-size: 1.15rem;
  }

  .djro-stat .djro-system-ok {
    font-size: .75rem;
  }

  .djro-panel {
    padding: .9rem;
    border-radius: 15px;
  }

  .djro-panel-heading {
    margin-bottom: .75rem;
  }

  .djro-panel-heading h2 {
    font-size: .95rem;
  }

  .djro-system-summary {
    align-items: flex-start;
    padding: .75rem;
  }

  .djro-system-meta {
    display: none;
  }

  .djro-monitor-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .5rem;
  }

  .djro-monitor-card {
    padding: .7rem;
  }

  .djro-monitor-top {
    margin-bottom: .5rem;
  }

  .djro-monitor-top span {
    font-size: .63rem;
  }

  .djro-monitor-top b {
    font-size: .76rem;
  }

  .djro-monitor-card > small {
    font-size: .57rem;
  }

  .djro-storage-grid {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .djro-service-grid {
    grid-template-columns: 1fr;
    gap: .45rem;
  }

  .djro-service {
    padding: .7rem;
  }

  .djro-info-row {
    grid-template-columns: minmax(80px,.5fr) minmax(0,1fr);
  }

  .djro-member summary {
    gap: .55rem;
    padding: .7rem;
  }

  .djro-member-avatar {
    width: 34px;
    height: 34px;
  }

  .djro-member-status > span {
    display: none;
  }

  .djro-member-info-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .djro-tool-grid {
    grid-template-columns: 1fr;
    gap: .45rem;
  }

  .djro-tool {
    padding: .7rem;
  }

}


/* VERY SMALL PHONES */

@media (max-width: 380px) {

  .djro-stat-grid,
  .djro-monitor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .djro-stat {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .djro-member-info-grid {
    grid-template-columns: 1fr;
  }

}


/* ==========================================================
   DJR STAFF MAIL — ZOHO CONNECT CLICK LAYER
   ========================================================== */

.djr-inbox__empty {
  position: relative;
}

.djr-inbox__primary-link {
  position: relative !important;
  z-index: 250 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
}


/* ==========================================================
   DJR UNIFIED PORTAL HEADER ACTIONS
   Bell / Share / More
   ========================================================== */

.djr-header-actions {
  margin-left: auto !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  gap: 6px !important;

  flex: 0 0 auto !important;

  position: relative !important;
  z-index: 1000 !important;
}


/*
 * Deliberately beats the portal-wide generic button rule.
 */
html body .site-header .djr-header-action {
  appearance: none !important;
  -webkit-appearance: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 38px !important;

  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 10px !important;

  outline: none !important;
  box-shadow: none !important;

  background: transparent !important;
  background-image: none !important;

  font-size: 0 !important;
  line-height: 0 !important;

  transform: none !important;

  cursor: pointer !important;
  touch-action: manipulation !important;
}


/* Kill any legacy generated button decoration. */
html body .site-header .djr-header-action::before,
html body .site-header .djr-header-action::after {
  content: none !important;
  display: none !important;
}


/* All three icons occupy the EXACT same box. */
html body .site-header .djr-header-action > svg {
  display: block !important;

  width: 25px !important;
  height: 25px !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: visible !important;

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;

  opacity: 1 !important;
  visibility: visible !important;

  pointer-events: none !important;
}


/* Notification state colours. */
html body .site-header .djr-header-action--bell {
  color: #f4a62a !important;
}

html body .site-header .djr-header-action--bell.is-enabled,
html body .site-header .djr-header-action--bell.is-subscribed {
  color: #45d99a !important;
}

html body .site-header .djr-header-action--bell.is-blocked {
  color: #f4a62a !important;
}


/* Share = DJR purple. */
html body .site-header .djr-header-action--share {
  color: #8b67ff !important;
}


/* More menu = restrained light grey. */
html body .site-header .djr-header-action--menu {
  color: #c7ced9 !important;
}


/* Touch feedback without moving the row. */
html body .site-header .djr-header-action:active > svg {
  transform: scale(.90) !important;
}


/* ----------------------------------------------------------
   THREE-DOT MENU
   ---------------------------------------------------------- */

.djr-header-menu-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}


.djr-header-menu {
  position: absolute !important;

  top: calc(100% + 10px) !important;
  right: 0 !important;

  width: 220px !important;

  padding: 8px !important;

  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 14px !important;

  background: #0b1629 !important;

  box-shadow:
    0 18px 45px rgba(0,0,0,.30) !important;

  z-index: 99999 !important;
}


.djr-header-menu[hidden] {
  display: none !important;
}


.djr-header-menu a,
html body .djr-header-menu > button,
html body .djr-header-menu form button {
  appearance: none !important;
  -webkit-appearance: none !important;

  width: 100% !important;
  min-height: 44px !important;

  display: flex !important;
  align-items: center !important;

  gap: 11px !important;

  margin: 0 !important;
  padding: 10px 12px !important;

  border: 0 !important;
  border-radius: 9px !important;

  background: transparent !important;

  color: #f4f7fb !important;

  font: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;

  text-decoration: none !important;
  text-align: left !important;

  transform: none !important;
}


.djr-header-menu a:hover,
html body .djr-header-menu form button:hover {
  background: rgba(255,255,255,.07) !important;
}


.djr-header-menu form {
  margin: 0 !important;
  padding: 0 !important;
}


html body .djr-header-menu .djr-header-menu__disabled {
  color: #7d8798 !important;
  cursor: default !important;
}


.djr-header-menu__disabled small {
  margin-left: auto !important;

  color: #697486 !important;

  font-size: 10px !important;
  font-weight: 700 !important;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 620px) {

  .header-inner {
    gap: 4px !important;
  }

  .djr-header-actions {
    gap: 2px !important;
  }

  html body .site-header .djr-header-action {
    flex-basis: 36px !important;

    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }

  html body .site-header .djr-header-action > svg {
    width: 23px !important;
    height: 23px !important;
  }

}


/*
 * On especially narrow devices retain the logo but allow
 * the descriptive brand copy to surrender space first.
 */
@media (max-width: 430px) {

  .site-header .brand {
    min-width: 0 !important;
  }

  .site-header .brand-copy {
    min-width: 0 !important;
  }

  .site-header .brand-copy strong,
  .site-header .brand-copy small {
    white-space: nowrap !important;
  }

  .djr-header-actions {
    margin-left: auto !important;
  }

}


/* ==========================================================
   DJR FLOATING PORTAL MENU — MIRRORED PANEL
   ========================================================== */

.djr-floating-menu-wrap {
    position: fixed !important;

    top: max(14px, env(safe-area-inset-top)) !important;
    right: 14px !important;

    z-index: 2147482000 !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-7px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease !important;
}


.djr-floating-menu-wrap.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    transform: translateY(0) !important;
}


/* Floating three-dot control */
.djr-floating-menu-button {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background:
        rgba(8, 18, 36, .95) !important;

    border:
        1px solid rgba(124, 92, 255, .34) !important;

    border-radius: 50% !important;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, .24),
        inset 0 0 0 1px rgba(255,255,255,.025)
        !important;

    color: #8b6cff !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    transform: none !important;

    cursor: pointer !important;

    -webkit-tap-highlight-color: transparent !important;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


.djr-floating-menu-button:hover {
    background:
        rgba(12, 26, 49, .98) !important;

    transform: none !important;
}


.djr-floating-menu-button:active {
    transform: scale(.91) !important;
}


.djr-floating-menu-button svg {
    display: block !important;

    width: 23px !important;
    height: 23px !important;

    overflow: visible !important;

    fill: currentColor !important;
    stroke: none !important;
}


/* ==========================================================
   FLOATING MIRRORED DROPDOWN
   ========================================================== */

.djr-floating-menu {
    position: absolute !important;

    top: calc(100% + 9px) !important;
    right: 0 !important;

    width: min(230px, calc(100vw - 28px)) !important;

    padding: 7px !important;

    background:
        rgba(8, 18, 36, .98) !important;

    border:
        1px solid rgba(255,255,255,.10) !important;

    border-radius: 14px !important;

    box-shadow:
        0 18px 46px rgba(0,0,0,.32),
        0 0 0 1px rgba(116,82,255,.08)
        !important;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    overflow: hidden !important;
}


.djr-floating-menu[hidden] {
    display: none !important;
}


.djr-floating-menu a,
.djr-floating-menu button {
    width: 100% !important;
    min-height: 43px !important;

    margin: 0 !important;
    padding: 0 11px !important;

    display: flex !important;
    align-items: center !important;

    gap: 10px !important;

    border: 0 !important;
    border-radius: 9px !important;

    background: transparent !important;

    color: #f4f6fb !important;

    font: inherit !important;
    font-size: .82rem !important;
    font-weight: 720 !important;

    line-height: 1.15 !important;

    text-align: left !important;
    text-decoration: none !important;

    box-shadow: none !important;
    outline: none !important;

    transform: none !important;

    cursor: pointer !important;
}


.djr-floating-menu a:hover,
.djr-floating-menu button:not(:disabled):hover {
    background:
        rgba(124, 92, 255, .13) !important;

    transform: none !important;
}


.djr-floating-menu a > span,
.djr-floating-menu button > span {
    width: 22px !important;

    flex: 0 0 22px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #9b82ff !important;

    font-size: 1rem !important;
}


.djr-floating-menu button small {
    margin-left: auto !important;

    color: #78849a !important;

    font-size: .62rem !important;
    font-weight: 700 !important;
}


.djr-floating-menu button:disabled {
    opacity: .55 !important;
    cursor: default !important;
}


/* Divider before sign out */
.djr-floating-menu form {
    margin: 6px 0 0 !important;
    padding: 6px 0 0 !important;

    border-top:
        1px solid rgba(255,255,255,.08) !important;
}


.djr-floating-menu
.djr-floating-menu__signout {
    color: #ff8e9b !important;
}


.djr-floating-menu
.djr-floating-menu__signout > span {
    color: #ff7585 !important;
}


@media (min-width: 700px) {
    .djr-floating-menu-wrap {
        top: 18px !important;
        right: 18px !important;
    }
}



/* ==========================================================
   DJR FLOATING BACK — TOP LEFT WHEN HEADER LEAVES VIEW
   ========================================================== */

html body .djr-scroll-back-control {
    position: fixed !important;

    /*
     * iPhone safe-area aware.
     * Same floating-header idea as the three-dot control,
     * but mirrored on the LEFT.
     */
    top: calc(
        env(safe-area-inset-top, 0px) + 12px
    ) !important;

    left: 14px !important;
    right: auto !important;
    bottom: auto !important;

    /*
     * Keep the existing circular visual treatment.
     */
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;

    margin: 0 !important;

    /*
     * Hidden while real header is visible.
     */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform:
        translateY(-8px)
        scale(.94) !important;

    transition:
        opacity 160ms ease,
        transform 160ms ease,
        visibility 160ms ease !important;

    z-index: 2147482000 !important;
}


html body
.djr-scroll-back-control.is-djr-scroll-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    transform:
        translateY(0)
        scale(1) !important;
}


html body
.djr-scroll-back-control.is-djr-scroll-visible:active {
    transform:
        translateY(0)
        scale(.91) !important;
}


@media (max-width: 700px) {

    html body .djr-scroll-back-control {
        top: calc(
            env(safe-area-inset-top, 0px) + 10px
        ) !important;

        left: 12px !important;

        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }
}


/* ==========================================================
   DJR FLOATING BACK — FINAL VISUAL MATCH
   Match floating three-dot control
   ========================================================== */

html body .djr-scroll-back-control,
html body .djr-scroll-back-control.is-djr-scroll-visible {

    /* Match floating three-dot footprint */
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    padding: 0 !important;

    /* Same dark floating-control appearance */
    background: #0b1830 !important;
    background-color: #0b1830 !important;

    border: 1px solid rgba(119, 91, 230, .55) !important;
    border-radius: 999px !important;

    box-shadow:
        0 10px 28px rgba(4, 13, 29, .22),
        0 0 0 1px rgba(119, 91, 230, .08) !important;

    /* Purple chevron */
    color: #8668f2 !important;

    align-items: center !important;
    justify-content: center !important;

    font-size: 0 !important;
    line-height: 0 !important;
}


/*
 * Existing SVG/icon inside the back control.
 * Force it to the same purple used by the three dots.
 */

html body .djr-scroll-back-control svg {
    width: 24px !important;
    height: 24px !important;

    display: block !important;

    fill: none !important;
    stroke: #8668f2 !important;
    color: #8668f2 !important;

    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;

    margin: 0 !important;
}


/*
 * Covers a text/icon-font chevron instead of SVG.
 */

html body .djr-scroll-back-control > span {
    color: #8668f2 !important;
}


/* Keep touch feedback without changing its position */

html body
.djr-scroll-back-control.is-djr-scroll-visible:active {
    transform: scale(.92) !important;
}


/* Same dimensions on iPhone — override previous 48px rule */

@media (max-width: 700px) {

    html body .djr-scroll-back-control,
    html body .djr-scroll-back-control.is-djr-scroll-visible {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }
}



/* ==========================================================
   DJR FLOATING BACK — SIZE MATCH TO FLOATING THREE DOTS
   ========================================================== */

/*
 * Three-dot control is visibly smaller than the current
 * 54px back control. Reduce back footprint while preserving
 * all existing position, visibility and behaviour.
 */

html body .djr-scroll-back-control,
html body .djr-scroll-back-control.is-djr-scroll-visible {
    width: 46px !important;
    height: 46px !important;

    min-width: 46px !important;
    max-width: 46px !important;

    min-height: 46px !important;
    max-height: 46px !important;

    flex: 0 0 46px !important;

    padding: 0 !important;
}


/* Scale the chevron with the smaller control */

html body .djr-scroll-back-control svg {
    width: 20px !important;
    height: 20px !important;
}


/* Override the previous mobile 54px declaration */

@media (max-width: 700px) {
    html body .djr-scroll-back-control,
    html body .djr-scroll-back-control.is-djr-scroll-visible {
        width: 46px !important;
        height: 46px !important;

        min-width: 46px !important;
        max-width: 46px !important;

        min-height: 46px !important;
        max-height: 46px !important;

        flex-basis: 46px !important;
    }

    html body .djr-scroll-back-control svg {
        width: 20px !important;
        height: 20px !important;
    }
}


/* DJR FLOATING BACK — FINAL SIZE MATCH */

html body .djr-scroll-back-control,
html body .djr-scroll-back-control.is-djr-scroll-visible {
    width: 43px !important;
    height: 43px !important;
    min-width: 43px !important;
    max-width: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    flex: 0 0 43px !important;
}

html body .djr-scroll-back-control svg {
    width: 18px !important;
    height: 18px !important;
}

@media (max-width: 700px) {
    html body .djr-scroll-back-control,
    html body .djr-scroll-back-control.is-djr-scroll-visible {
        width: 43px !important;
        height: 43px !important;
        min-width: 43px !important;
        max-width: 43px !important;
        min-height: 43px !important;
        max-height: 43px !important;
        flex-basis: 43px !important;
    }

    html body .djr-scroll-back-control svg {
        width: 18px !important;
        height: 18px !important;
    }
}


/* ==========================================================
   DJR STAFF PROFILE — PERMANENT PROFILE PHOTO FIT
   ========================================================== */

/* Hero / portal identity avatar */
.djr-member-profile-avatar {
  overflow: hidden !important;
}

.djr-member-profile-avatar__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

/* Staff-profile photo preview card */
.djr-member-profile-photo-card__avatar {
  overflow: hidden !important;
}

.djr-member-profile-photo-card__avatar > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

/* Prevent profile imagery ever influencing page dimensions */
.djr-member-profile-page img.djr-member-profile-avatar__image,
.djr-member-profile-photo-card__avatar > img {
  min-width: 0 !important;
  min-height: 0 !important;
}



/* ==========================================================
   DJR UNIVERSAL STAFF IDENTITY — COMPACT PROFILE PICKER
   ========================================================== */

/* Universal backgrounds */
.djr-avatar-bg--violet,
.djr-member-profile-avatar--violet {
  background: linear-gradient(145deg, #7957ee, #5138c8) !important;
}

.djr-avatar-bg--blue,
.djr-member-profile-avatar--blue {
  background: linear-gradient(145deg, #3098ec, #2662d5) !important;
}

.djr-avatar-bg--cyan,
.djr-member-profile-avatar--cyan {
  background: linear-gradient(145deg, #20b9d8, #167fae) !important;
}

.djr-avatar-bg--green,
.djr-member-profile-avatar--green {
  background: linear-gradient(145deg, #34bd88, #19795e) !important;
}

.djr-avatar-bg--amber,
.djr-member-profile-avatar--amber {
  background: linear-gradient(145deg, #edae3d, #ba6f1e) !important;
}

.djr-avatar-bg--rose,
.djr-member-profile-avatar--rose {
  background: linear-gradient(145deg, #e26491, #a83e72) !important;
}


/* Uploaded photographs always fill the avatar */
.djr-member-profile-avatar {
  overflow: hidden !important;
}

.djr-member-profile-avatar > img,
.djr-member-profile-avatar__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}


/* New compact identity selector */
.djr-profile-identity-picker {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 0 24px !important;
  padding: 17px 18px !important;
  min-height: 0 !important;
  border: 1px solid #dce3ef !important;
  border-radius: 22px !important;
  background:
    linear-gradient(
      145deg,
      rgba(248,250,254,.98),
      rgba(241,245,252,.98)
    ) !important;
  box-shadow: 0 10px 30px rgba(28,47,78,.055) !important;
}

.djr-profile-identity-picker__avatar-wrap {
  position: relative !important;
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
}

.djr-profile-identity-picker__avatar {
  display: grid !important;
  place-items: center !important;
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 1.75rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 8px 20px rgba(48,59,93,.16) !important;
}

.djr-profile-identity-picker__avatar > img {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
}

.djr-profile-identity-picker__upload {
  position: absolute !important;
  right: -3px !important;
  bottom: -3px !important;
  display: grid !important;
  place-items: center !important;
  width: 27px !important;
  height: 27px !important;
  border: 3px solid #f7f9fd !important;
  border-radius: 50% !important;
  background: #172a48 !important;
  color: #fff !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(22,40,69,.24) !important;
}

.djr-profile-identity-picker__upload svg {
  width: 13px !important;
  height: 13px !important;
  fill: currentColor !important;
}

.djr-profile-identity-picker__content {
  display: grid !important;
  min-width: 0 !important;
  gap: 9px !important;
}

.djr-profile-identity-picker__heading {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.djr-profile-identity-picker__heading > div {
  display: grid !important;
  gap: 2px !important;
}

.djr-profile-identity-picker__heading span:first-child {
  color: #6b59dc !important;
  font-size: .67rem !important;
  font-weight: 900 !important;
  letter-spacing: .16em !important;
}

.djr-profile-identity-picker__heading strong {
  color: #12233f !important;
  font-size: .94rem !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
}

.djr-profile-colour-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
}

.djr-profile-colour-option {
  position: relative !important;
  display: block !important;
  width: 29px !important;
  height: 29px !important;
  cursor: pointer !important;
}

.djr-profile-colour-option input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.djr-profile-colour-swatch {
  display: block !important;
  width: 29px !important;
  height: 29px !important;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  box-shadow:
    0 0 0 1px rgba(37,53,80,.14),
    0 3px 8px rgba(31,47,72,.09) !important;
  transition:
    transform .14s ease,
    box-shadow .14s ease !important;
}

.djr-profile-colour-option input:checked + .djr-profile-colour-swatch {
  transform: scale(1.08) !important;
  box-shadow:
    0 0 0 3px #172a48,
    0 4px 10px rgba(31,47,72,.16) !important;
}

.djr-profile-identity-picker__hint {
  margin: 0 !important;
  color: #75839a !important;
  font-size: .73rem !important;
  line-height: 1.45 !important;
}

.djr-profile-identity-picker__remove {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.djr-profile-identity-picker__remove input {
  width: 15px !important;
  height: 15px !important;
  margin: 0 6px 0 0 !important;
}

.djr-profile-identity-picker__remove span {
  color: #687991 !important;
  font-size: .7rem !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}


/* Retire the old giant photograph card if any stale markup survives */
.djr-member-profile-photo-card {
  min-height: 0 !important;
}

.djr-member-profile-photo-card__preview,
.djr-member-profile-photo-card__avatar {
  min-height: 0 !important;
}


/* Mobile */
@media (max-width: 700px) {
  .djr-profile-identity-picker {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 14px !important;
    border-radius: 19px !important;
    margin-bottom: 18px !important;
  }

  .djr-profile-identity-picker__avatar-wrap,
  .djr-profile-identity-picker__avatar {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
  }

  .djr-profile-identity-picker__avatar {
    font-size: 1.45rem !important;
  }

  .djr-profile-identity-picker__upload {
    width: 25px !important;
    height: 25px !important;
  }

  .djr-profile-colour-option,
  .djr-profile-colour-swatch {
    width: 26px !important;
    height: 26px !important;
  }

  .djr-profile-colour-row {
    gap: 8px !important;
  }

  .djr-profile-identity-picker__hint {
    display: none !important;
  }
}


/* ==========================================================
   DJR PROFILE PICKER V3 — COMPACT DELETE CONTROL
   ========================================================== */

.djr-profile-photo-delete-form {
  display: none !important;
}

.djr-profile-identity-picker {
  padding: 13px 15px !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.djr-profile-identity-picker__content {
  gap: 6px !important;
}

.djr-profile-identity-picker__heading {
  align-items: center !important;
}

.djr-profile-identity-picker__heading > div {
  gap: 0 !important;
}

.djr-profile-identity-picker__heading span:first-child {
  font-size: .61rem !important;
  letter-spacing: .14em !important;
}

.djr-profile-identity-picker__heading strong {
  margin-top: 1px !important;
  font-size: .88rem !important;
}

.djr-profile-identity-picker__hint {
  font-size: .69rem !important;
  line-height: 1.3 !important;
}

.djr-profile-identity-picker__delete {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border: 1px solid #f0ccd3 !important;
  border-radius: 11px !important;
  background: #fff2f4 !important;
  color: #bc4059 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.djr-profile-identity-picker__delete:active {
  transform: scale(.96) !important;
}

.djr-profile-identity-picker__delete svg {
  width: 16px !important;
  height: 16px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

@media (max-width: 700px) {
  .djr-profile-identity-picker {
    grid-template-columns: 58px minmax(0,1fr) !important;
    padding: 12px 13px !important;
    gap: 12px !important;
  }

  .djr-profile-identity-picker__avatar-wrap,
  .djr-profile-identity-picker__avatar {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }

  .djr-profile-identity-picker__delete {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    border-radius: 10px !important;
  }

  .djr-profile-identity-picker__hint {
    display: block !important;
  }
}


/* ==========================================================
   DJR PROFILE PICKER V4 — LIVE COMPACT CONTROLS
   ========================================================== */

/* Native browser file control must never be visually rendered. */
.djr-member-profile-photo-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Entire avatar area is the upload target. */
.djr-profile-identity-picker__avatar-wrap {
  display: block !important;
  position: relative !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}

.djr-profile-identity-picker__avatar-wrap:active {
  transform: scale(.975) !important;
}

.djr-profile-identity-picker__upload {
  pointer-events: none !important;
}

/* Remove legacy checkbox control completely. */
.djr-profile-identity-picker__remove {
  display: none !important;
}

/* Compact selector text. */
.djr-profile-identity-picker__heading strong {
  font-size: .84rem !important;
}

.djr-profile-identity-picker__hint {
  margin-top: 0 !important;
}

/* Dashboard and profile-page hero avatars use identical image behaviour. */
.djr-staff-portal-avatar,
.djr-member-profile-hero .djr-member-profile-avatar {
  overflow: hidden !important;
}

.djr-staff-portal-avatar > img,
.djr-member-profile-hero .djr-member-profile-avatar > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

/* Keep the picker tight on iPhone. */
@media (max-width: 700px) {
  .djr-profile-identity-picker {
    grid-template-columns: 60px minmax(0,1fr) !important;
    padding: 11px 12px !important;
    gap: 11px !important;
    margin-bottom: 16px !important;
  }

  .djr-profile-identity-picker__avatar-wrap,
  .djr-profile-identity-picker__avatar {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
  }

  .djr-profile-colour-row {
    gap: 7px !important;
  }

  .djr-profile-identity-picker__hint {
    font-size: .66rem !important;
    line-height: 1.25 !important;
  }
}

/* ==========================================================
   DJR PROFILE PICKER — CLEAN DELETE ICON
   ========================================================== */

.djr-profile-identity-picker__delete {
  display: grid !important;
  place-items: center !important;

  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;

  padding: 0 !important;
  margin: 0 !important;

  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  color: #c8435c !important;
  cursor: pointer !important;

  -webkit-appearance: none !important;
  appearance: none !important;
}

.djr-profile-identity-picker__delete:hover,
.djr-profile-identity-picker__delete:focus,
.djr-profile-identity-picker__delete:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.djr-profile-identity-picker__delete:active {
  transform: scale(.92) !important;
}

.djr-profile-identity-picker__delete svg {
  display: block !important;

  width: 29px !important;
  height: 29px !important;

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

@media (max-width: 700px) {
  .djr-profile-identity-picker__delete {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  .djr-profile-identity-picker__delete svg {
    width: 28px !important;
    height: 28px !important;
  }
}
