/* NixCloud complete UI. Home geometry is inherited from the approved study. */
.nx-site {
  --danger: #f19292;
  --success: #75cfba;
  --warning: #e5bc75;
}
.nx-site .site-shell {
  min-height: calc(100vh - 44px);
}
.nx-site em {
  font-style: normal;
  color: var(--accent);
}
.nx-site .refined-nav > a.admin-button {
  display: inline-flex;
}
.nx-site button,
.nx-site input,
.nx-site select {
  font-family: inherit;
}
.nx-site input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.nx-site input,
.nx-site select,
.nx-site textarea {
  color: var(--text);
}
.nx-site select {
  background: #102a35;
  border: 1px solid #2b4652;
  border-radius: 6px;
  padding: 9px 29px 9px 11px;
  font-size: 11px;
  max-width: 100%;
}
.nx-site input::placeholder {
  color: #6f8d9c;
  opacity: 1;
}
.nx-site button:disabled {
  opacity: 0.5;
}
.nx-site button:not(:disabled):active {
  transform: none;
}
.nx-site .toast {
  z-index: 150;
}
.demo-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px max(24px, calc((100vw - 1224px) / 2));
  gap: 16px;
  background: #07171e;
  border-bottom: 1px solid #1b323c;
  position: relative;
  z-index: 60;
  font-size: 10px;
  color: #83a0af;
}
.demo-bar > div {
  display: flex;
  align-items: center;
  gap: 23px;
}
.demo-bar a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #b1c7d1;
  white-space: nowrap;
}
.demo-bar a svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}
.demo-caption {
  font-size: 9px;
  color: #72909e;
}
.demo-bar .motion-toggle {
  font-size: 9px;
  white-space: nowrap;
}
.state-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
}
.state-picker select {
  padding: 4px 20px 4px 8px;
  font-size: 9px;
  background: #0c222b;
}
.noscript {
  padding: 16px;
  background: #3d2829;
  color: #ffd8d8;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 7px;
  min-height: 40px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid transparent;
  text-align: center;
}
.primary-button {
  background: #1bbdd6;
  color: #042029;
  border-color: #1bbdd6;
}
.primary-button:hover {
  background: #40cce1;
  border-color: #40cce1;
}
.secondary-button {
  background: #102a35;
  border-color: #2b4957;
  color: #b9d0db;
}
.secondary-button:hover {
  border-color: #558394;
  background: #153642;
}
.danger-button {
  background: #5a3038;
  color: #ffd6d6;
  border-color: #8c4550;
}
.danger-button:hover {
  background: #743642;
}
.primary-button svg,
.secondary-button svg,
.danger-button svg {
  width: 16px;
  height: 16px;
}
.text-link,
.danger-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  background: none;
  border: 0;
  font-size: 11px;
  color: #64c8dc;
}
.text-link:hover {
  color: #b1eff7;
}
.danger-link {
  color: var(--danger);
}
.text-link svg,
.danger-link svg {
  width: 14px;
  height: 14px;
}
.icon-button {
  border: 1px solid transparent;
  background: none;
  color: #8cacbc;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-button:hover {
  color: #b9ecf4;
  background: #143541;
  border-color: #294d5b;
}
.icon-button svg {
  width: 16px;
  height: 16px;
}
.small-label {
  display: block;
  color: #7fa3b3;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 550;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 21px 0;
  font-size: 12px;
  color: #c3d5de;
}
.field input,
.field select,
.field textarea {
  background: #09212b;
  border: 1px solid #2a4653;
  min-height: 43px;
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
  font-size: 12px;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
.field input:focus,
.field select:focus {
  border-color: #3ba0b8;
}
.field-help,
.form-note {
  color: #7898a8;
  font-size: 10px;
  line-height: 1.8;
}
.form-note {
  text-align: center;
  margin-top: 14px;
}
.form-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 25px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #9db7c5;
}
.inline-message {
  border: 1px solid #3d606f;
  color: #afd0df;
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 11px;
  line-height: 1.8;
  margin: 18px 0;
  background: #13303e;
}
.inline-message.error {
  background: #38262e;
  border-color: #683c4a;
  color: #f0afb8;
}
.inline-message.success {
  background: #103c39;
  border-color: #285f56;
  color: #9bdecf;
}
.state-symbol {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid #285969;
  border-radius: 18px;
  background: #103441;
  color: #54c7dc;
  margin: 0 auto 24px;
}
.state-symbol svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.4;
}
.state-symbol.danger {
  border-color: #704550;
  background: #36272e;
  color: #ed9aa7;
}
.state-symbol.neutral {
  background: #142c37;
  color: #88a8bb;
  border-color: #2d4b5e;
}
.empty-state {
  text-align: center;
  padding: 42px 20px;
}
.empty-state .state-symbol {
  width: 51px;
  height: 51px;
  margin-bottom: 18px;
  border-radius: 13px;
}
.empty-state .state-symbol svg {
  width: 24px;
  height: 24px;
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.empty-state p {
  color: #8ca9b8;
  font-size: 12px;
  line-height: 1.9;
  max-width: 340px;
  margin: 9px auto 18px;
}
.skeleton {
  border-radius: 5px;
  height: 13px;
  background: linear-gradient(100deg, #142f3c 20%, #214250 45%, #142f3c 70%);
  background-size: 250% 100%;
  animation: skeleton-wave 2s ease-in-out infinite;
}
.skeleton-layout {
  display: grid;
  gap: 20px;
  padding: 30px;
}
.skeleton-layout .skeleton:nth-child(even) {
  width: 65%;
}
.skeleton-card {
  height: 120px;
  border: 1px solid #203f4e;
  border-radius: 11px;
  padding: 25px;
  display: grid;
  gap: 16px;
}
@keyframes skeleton-wave {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.preview-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #5fccdf;
  margin: 20px 0 -8px;
}
.preview-download svg {
  width: 13px;
  height: 13px;
}
.upload-error {
  min-height: 490px;
  text-align: center;
  padding: 60px 5px 20px;
}
.upload-error h3 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.7px;
}
.upload-error p {
  max-width: 320px;
  color: #90adbd;
  font-size: 12px;
  line-height: 1.8;
  margin: 15px auto 32px;
}

/* Public receiving and access screens. */
.public-main {
  width: min(100%, 500px);
  margin: 45px auto 65px;
}
.public-intro {
  text-align: center;
  margin-bottom: 30px;
}
.public-intro .refined-eyebrow {
  justify-content: center;
  font-size: 9px;
}
.public-intro h1 {
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -1.5px;
  font-weight: 550;
  margin: 21px 0 14px;
}
.public-intro > p {
  font-size: 12px;
  color: #8eabb9;
}
.download-panel {
  border: 1px solid #294752;
  background: #0c242d;
  border-radius: 13px;
  padding: 32px;
  text-align: center;
  min-height: 350px;
}
.download-panel h2 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.download-panel > p {
  font-size: 12px;
  color: #89a8b8;
  line-height: 1.9;
  margin: 13px auto 20px;
  max-width: 340px;
}
.download-panel .primary-button,
.download-panel .secondary-button {
  width: 100%;
}
.download-file-symbol {
  display: grid;
  place-items: center;
  width: 77px;
  height: 86px;
  margin: 0 auto 23px;
  border: 1px solid #295d70;
  background: #123b4a;
  border-radius: 12px;
  color: #6bd4e7;
  position: relative;
}
.download-file-symbol svg {
  width: 37px;
  height: 37px;
  stroke-width: 1.3;
}
.download-file-symbol > small {
  position: absolute;
  right: -9px;
  bottom: 10px;
  background: #1c6679;
  border: 1px solid #408da0;
  font-size: 8px;
  font-weight: 650;
  border-radius: 3px;
  color: #c4f3fb;
  padding: 2px 6px;
}
.download-metadata {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: #8eadbd;
  font-size: 11px;
  margin: 9px 0 27px;
}
.download-expiry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #0a2029;
  border: 1px solid #1c3b49;
  border-radius: 7px;
  text-align: left;
  margin-bottom: 24px;
}
.download-expiry svg {
  color: #65bacf;
  width: 20px;
  height: 20px;
}
.download-expiry strong {
  font-size: 12px;
  font-weight: 550;
  color: #bfd5e1;
  display: block;
}
.download-expiry small {
  display: block;
  color: #7497a8;
  font-size: 10px;
  margin-top: 3px;
}
.download-panel .panel-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 10px;
}
.download-panel .field {
  text-align: left;
}
.download-panel .pin-entry {
  text-align: center;
  font-size: 23px;
  letter-spacing: 10px;
  min-height: 58px;
  padding-left: 20px;
}
.download-panel .progress-track {
  margin: 28px 0 13px;
}
.public-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #7c9aaa;
  margin-top: 24px;
  font-size: 10px;
}
.public-assurance > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.public-assurance svg {
  width: 13px;
  height: 13px;
}
.public-assurance > i {
  width: 3px;
  height: 3px;
  background: #436879;
  border-radius: 50%;
}
.auth-main {
  width: min(100%, 1000px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: center;
  margin: 65px auto 80px;
}
.auth-story h1 {
  font-size: 50px;
  letter-spacing: -2px;
  font-weight: 550;
  line-height: 1.15;
  margin: 24px 0 23px;
}
.auth-story > p {
  max-width: 330px;
  color: #8eaaba;
  font-size: 13px;
  line-height: 1.9;
}
.auth-brand-art {
  width: 220px;
  height: 190px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 30px 0 7px;
}
.auth-brand-art > img {
  width: 94px;
  height: 94px;
  z-index: 1;
  opacity: 0.9;
}
.auth-brand-art > div {
  width: 155px;
  height: 155px;
  border: 1px solid #27505f;
  border-radius: 40px;
  position: absolute;
  transform: rotate(-16deg);
}
.auth-brand-art > span {
  width: 180px;
  height: 180px;
  border: 1px solid #183945;
  border-radius: 50%;
  position: absolute;
}
.auth-caption {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #7298ab;
}
.auth-panel {
  padding: 32px;
  background: #0c242d;
  border: 1px solid #294752;
  border-radius: 13px;
}
.auth-panel > h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 13px 0 9px;
}
.auth-panel > p {
  color: #89a6b6;
  font-size: 12px;
  margin-bottom: 26px;
}
.auth-panel .primary-button {
  width: 100%;
}
.password-wrap {
  display: flex;
  position: relative;
}
.password-wrap > input {
  padding-right: 42px;
}
.password-wrap > button {
  display: grid;
  place-items: center;
  position: absolute;
  right: 6px;
  top: 5px;
  width: 33px;
  height: 33px;
  border: 0;
  color: #7fa5b8;
  background: none;
  border-radius: 4px;
}
.password-wrap svg {
  width: 17px;
  height: 17px;
}
.auth-demo {
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-top: 1px solid #23414e;
  padding-top: 23px;
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: #88a7b7;
}
.auth-demo .secondary-button {
  font-size: 11px;
}
.not-found {
  margin: auto;
  padding: 50px 0 80px;
  text-align: center;
}
.error-number {
  font-size: 150px;
  font-weight: 650;
  letter-spacing: -10px;
  line-height: 1.2;
  color: #12303b;
  -webkit-text-stroke: 1px #316375;
  display: block;
  margin-bottom: 20px;
}
.not-found h1 {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 16px 0;
}
.not-found p {
  font-size: 13px;
  color: #8ba9ba;
  line-height: 1.9;
  margin-bottom: 28px;
}

/* Private workspace. */
.nx-admin .demo-bar {
  position: sticky;
  top: 0;
  padding: 7px 27px;
  height: 44px;
}
.admin-layout {
  min-height: calc(100vh - 44px);
}
.sidebar {
  position: fixed;
  left: 0;
  top: 44px;
  bottom: 0;
  width: 230px;
  padding: 29px 19px 17px;
  border-right: 1px solid #203b48;
  background: #091e27;
  z-index: 45;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar .refined-brand {
  padding: 0 9px;
  gap: 8px;
}
.sidebar .refined-brand > span {
  font-size: 24px;
}
.sidebar .refined-brand > img {
  width: 32px;
  height: 32px;
}
.sidebar-label {
  display: block;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #577b8c;
  padding: 39px 13px 13px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav > a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  color: #91acbc;
  padding: 12px 13px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.sidebar nav > a svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}
.sidebar nav > a:hover {
  background: #102e3a;
  color: #c5e4f0;
}
.sidebar nav > a[aria-current] {
  color: #62ccdf;
  background: #103340;
  border-color: #1a4a5a;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.sidebar-bottom > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7f9dae;
  padding: 12px;
  font-size: 11px;
}
.sidebar-bottom > a svg {
  width: 15px;
  height: 15px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid #203d49;
  margin-top: 18px;
  padding-top: 20px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #194453;
  color: #8fd5e5;
  font-size: 10px;
  font-weight: 650;
  border: 1px solid #2a5869;
}
.avatar.alt {
  background: #263746;
  color: #adc7df;
  border-color: #3e5269;
}
.account strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
}
.account small {
  display: block;
  font-size: 7px;
  color: #7090a0;
  margin-top: 3px;
}
.account > a {
  color: #5d8498;
  margin-left: auto;
}
.account > a svg {
  width: 15px;
  height: 15px;
}
.admin-workspace {
  margin-left: 230px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 44px);
}
.admin-topbar {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 34px;
  border-bottom: 1px solid #1b3642;
}
.admin-topbar > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.breadcrumb {
  font-size: 10px;
  color: #6d91a4;
}
.breadcrumb > i {
  font-style: normal;
  margin: 0 12px;
  color: #3d6376;
}
.breadcrumb > b {
  font-weight: 500;
  color: #afc6d3;
}
.demo-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #759aaa;
  font-size: 9px;
}
.demo-status > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5baeb5;
}
.mobile-menu {
  display: none;
}
.admin-main {
  padding: 35px 34px 40px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 8px 0 7px;
}
.page-heading p {
  color: #86a4b5;
  font-size: 11px;
  line-height: 1.8;
}
.page-heading > button,
.page-heading > a {
  flex-shrink: 0;
}
.panel {
  background: #0c252f;
  border: 1px solid #26424f;
  border-radius: 10px;
  padding: 23px;
  min-width: 0;
  margin-bottom: 22px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}
.panel-heading h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.panel-heading p {
  color: #7799ab;
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.7;
}
.panel-heading > [data-icon] {
  color: #5c9ab2;
}
.panel-note {
  font-size: 11px;
  color: #7b9aaa;
  line-height: 1.9;
  margin-top: 22px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.three-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-card {
  border: 1px solid #24424f;
  background: #0c252f;
  border-radius: 9px;
  padding: 20px;
  position: relative;
  min-height: 128px;
}
.stat-card > span {
  font-size: 10px;
  color: #91aebe;
  display: block;
}
.stat-card > strong {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.8px;
  display: block;
  margin: 13px 0 4px;
}
.stat-card > small {
  font-size: 9px;
  color: #698d9f;
  display: block;
}
.stat-card > [data-icon] {
  position: absolute;
  right: 18px;
  top: 20px;
  color: #4a8ba2;
}
.stat-card > [data-icon] svg {
  width: 16px;
  height: 16px;
}
.stat-card .status-value {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.status-value > [data-icon] {
  color: var(--success);
}
.status-value svg {
  width: 17px;
  height: 17px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 15px;
}
.chart-summary > strong {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1px;
}
.chart-summary > span {
  color: #7296a9;
  font-size: 10px;
}
.chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  height: 164px;
  padding: 4px 6px 24px;
  position: relative;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 38px,
    #21404a 39px,
    transparent 40px
  );
}
.chart-column {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  width: 100%;
  max-width: 42px;
  position: relative;
}
.chart-column > i {
  width: 100%;
  display: block;
  background: linear-gradient(0deg, #156175, #26aec6);
  border-radius: 4px 4px 0 0;
  border-top: 1px solid #49d0e3;
  min-height: 4px;
}
.chart-column:last-child > i {
  background: #29b8cf;
}
.chart-column > span {
  position: absolute;
  bottom: -23px;
  font-size: 8px;
  color: #7298ab;
}
.chart-column > b {
  font-size: 8px;
  color: #a6c8d8;
  font-weight: 450;
  margin-bottom: 5px;
}
.storage-panel {
  text-align: center;
}
.storage-panel .panel-heading {
  text-align: left;
}
.storage-ring {
  --usage: 8%;
  width: 139px;
  height: 139px;
  border-radius: 50%;
  background: conic-gradient(#25bfd7 var(--usage), #173744 0);
  display: grid;
  place-items: center;
  margin: 1px auto 17px;
  transform: rotate(-90deg);
}
.storage-ring > div {
  width: 119px;
  height: 119px;
  background: #0c252f;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
}
.storage-ring strong {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -1px;
}
.storage-ring div > span {
  font-size: 9px;
  color: #7a9fb1;
  margin-top: 3px;
}
.storage-caption strong {
  display: block;
  color: #b5ccd9;
  font-size: 11px;
  font-weight: 550;
}
.storage-caption > span {
  color: #6c94a8;
  font-size: 9px;
}
.storage-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: #789bad;
  font-size: 8px;
  margin-top: 15px;
}
.storage-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.storage-legend i {
  background: #28b9d0;
  width: 5px;
  height: 5px;
  border-radius: 2px;
}
.storage-legend > span + span i {
  background: #264c5f;
}
.overview-bottom {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}
.recent-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #1f3b49;
}
.file-symbol {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #123b4d;
  border: 1px solid #24576d;
  border-radius: 7px;
  color: #73c2e2;
  flex-shrink: 0;
}
.file-symbol svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
.file-symbol.image {
  color: #8bcabd;
  background: #163c39;
  border-color: #2b5d53;
}
.file-symbol.video {
  color: #c4b7de;
  background: #302c45;
  border-color: #53466d;
}
.file-symbol.archive {
  color: #d9bd87;
  background: #343325;
  border-color: #60583a;
}
.file-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.file-cell > div,
.recent-file > div {
  min-width: 0;
  flex: 1;
}
.file-cell strong,
.recent-file strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #ccdee7;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 260px;
}
.file-cell small,
.recent-file small {
  display: block;
  font-size: 9px;
  color: #7196a9;
  margin-top: 4px;
}
.recent-file .time-left {
  color: #7c9daf;
  font-size: 9px;
  margin-left: auto;
  white-space: nowrap;
}
.recent-file .icon-button {
  margin-left: 4px;
}
.activity-item {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #1f3b49;
}
.activity-item .activity-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #244956;
  background: #10313e;
  border-radius: 50%;
  color: #6cbbd0;
  flex-shrink: 0;
}
.activity-icon svg {
  width: 13px;
  height: 13px;
}
.activity-item > div {
  min-width: 0;
}
.activity-item strong {
  font-size: 10px;
  font-weight: 500;
  display: block;
  color: #bad2df;
}
.activity-item small {
  display: block;
  color: #6d94a9;
  font-size: 9px;
  margin-top: 4px;
  line-height: 1.6;
}
.admin-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 34px;
  border-top: 1px solid #1d3846;
  color: #567d93;
  font-size: 8px;
}
.file-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 11px;
  color: #80a5b8;
  margin-bottom: 22px;
}
.file-summary b {
  font-weight: 600;
  color: #c1d9e4;
  margin-right: 5px;
}
.table-panel {
  padding: 0;
  overflow: hidden;
}
.table-panel > .panel-heading {
  padding: 23px 23px 0;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px;
  flex-wrap: wrap;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #09212c;
  border: 1px solid #2a4755;
  border-radius: 6px;
  padding: 0 11px;
  min-height: 37px;
  max-width: 320px;
  flex: 1;
  min-width: 200px;
}
.search-field > [data-icon] {
  color: #6d95aa;
}
.search-field svg {
  width: 15px;
  height: 15px;
}
.search-field input {
  background: none;
  border: 0;
  color: #c5dce8;
  font-size: 11px;
  width: 100%;
  padding: 10px 0;
  min-width: 0;
}
.search-field input:focus {
  outline: none;
}
.search-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-group select,
.table-toolbar > select {
  font-size: 10px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  background: #0b212b;
  color: #7b9eaf;
  font-size: 9px;
  font-weight: 550;
  padding: 12px 17px;
  border-top: 1px solid #203c49;
  border-bottom: 1px solid #203c49;
}
.data-table td {
  font-size: 11px;
  color: #95b5c6;
  padding: 16px 17px;
  border-bottom: 1px solid #1d3947;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #0e2b37;
}
.data-table .check-cell {
  width: 35px;
  padding-right: 0;
}
.data-table .row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}
.align-right {
  text-align: right;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 8px;
  color: #8cc8d7;
  background: #153b47;
  border: 1px solid #255360;
  line-height: 1.4;
  white-space: nowrap;
}
.status-badge.success {
  color: #87cbb9;
  background: #15362f;
  border-color: #285449;
}
.status-badge.warning {
  color: #dbbd81;
  background: #353226;
  border-color: #5c5237;
}
.status-badge.muted {
  color: #8ca5b5;
  background: #1a2e3b;
  border-color: #304755;
}
.status-badge.danger {
  color: #e6a4af;
  background: #3c2934;
  border-color: #613b4b;
}
.pin-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #8ab9c9;
}
.pin-label svg {
  width: 12px;
  height: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-top: 1px solid #223e4b;
  color: #779bae;
  font-size: 10px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.pagination .icon-button {
  border-color: #274857;
}
.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 20px 15px;
  padding: 11px 13px;
  border: 1px solid #2b6278;
  background: #123847;
  border-radius: 6px;
  color: #a5d5e7;
  font-size: 11px;
}
.table-footnote {
  padding: 15px 20px;
  border-top: 1px solid #203e4d;
  font-size: 10px;
  color: #6e94a9;
}
.info-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #102d39;
  border: 1px solid #244a5a;
  padding: 17px 20px;
  border-radius: 8px;
  margin-bottom: 22px;
}
.info-strip > [data-icon] {
  color: #5db5ce;
}
.info-strip p {
  font-size: 11px;
  color: #85adbf;
  line-height: 1.8;
}
.info-strip b {
  color: #b6d5e5;
  font-weight: 550;
}
.security-overview {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px;
  border: 1px solid #28515c;
  border-radius: 10px;
  background: #10303a;
  margin-bottom: 22px;
}
.security-emblem {
  height: 62px;
  width: 62px;
  border-radius: 18px;
  background: #164453;
  border: 1px solid #2b6778;
  display: grid;
  place-items: center;
  color: #6cc9db;
  flex-shrink: 0;
}
.security-emblem svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.4;
}
.security-overview h2 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin: 7px 0 8px;
}
.security-overview p {
  font-size: 11px;
  color: #8fb0c1;
}
.security-overview > .status-badge {
  margin-left: auto;
}
.security-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}
.blocked-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #1f3e4b;
  padding: 17px 0;
}
.blocked-row > div {
  flex: 1;
}
.blocked-row strong {
  font-size: 12px;
  font-family: monospace;
  font-weight: 500;
}
.blocked-row small {
  display: block;
  font-size: 9px;
  color: #749aad;
  margin-top: 5px;
}
.blocked-row .secondary-button {
  font-size: 9px;
  min-height: 30px;
  padding: 7px 10px;
}
.setting-info {
  border-top: 1px solid #24414e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 19px 0;
  font-size: 11px;
}
.setting-info > span {
  color: #8baebf;
  display: flex;
  align-items: center;
  gap: 9px;
}
.setting-info svg {
  width: 15px;
  height: 15px;
}
.setting-info strong {
  font-weight: 500;
  font-size: 10px;
  color: #b2ccd9;
  text-align: right;
}
.timeline {
  padding: 0 24px;
}
.timeline-event {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #203e4d;
  align-items: flex-start;
}
.timeline-event > time {
  font-size: 10px;
  color: #6f97ad;
  min-width: 52px;
  padding-top: 8px;
}
.timeline-event > .activity-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #285061;
  border-radius: 9px;
  color: #7fbece;
  background: #143743;
  flex-shrink: 0;
}
.timeline-event > div {
  flex: 1;
  min-width: 0;
}
.timeline-event h3 {
  font-size: 12px;
  font-weight: 500;
  color: #bad6e4;
  margin: 3px 0 5px;
}
.timeline-event p {
  font-size: 10px;
  color: #789eb3;
  line-height: 1.7;
}
.timeline-event .status-badge {
  margin-left: auto;
  margin-top: 5px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 25px;
  max-width: 1000px;
}
.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.settings-tabs > button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px;
  text-align: left;
  font-size: 11px;
  color: #85a9bc;
}
.settings-tabs > button svg {
  width: 16px;
  height: 16px;
}
.settings-tabs > button.active {
  background: #12333f;
  color: #82cee0;
  border-color: #275063;
}
.settings-content {
  min-width: 0;
}
.settings-content .panel {
  padding: 28px;
}
.settings-content .field {
  margin: 23px 0;
}
.settings-content .field input {
  max-width: 100%;
}
.settings-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: -3px;
}
.settings-save > span {
  color: #7296a9;
  font-size: 10px;
}
.settings-save > span.dirty {
  color: #d2b278;
}
.fixed-rule,
.toggle-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid #223f4d;
  font-size: 12px;
  color: #b8d2e0;
}
.fixed-rule small,
.toggle-setting small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #7197ad;
}
.fixed-rule strong {
  font-size: 11px;
  font-weight: 550;
  text-align: right;
}
/* Match the checkbox selector specificity so its 15px size cannot shrink the track. */
.nx-site input.native-switch {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 35px;
  height: 21px;
  margin: 0;
  padding: 0;
  border-radius: 20px;
  border: 1px solid #385767;
  background: #26414f;
  position: relative;
  cursor: pointer;
}
.native-switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  height: 13px;
  width: 13px;
  border-radius: 50%;
  background: #9ab4c2;
  transition: transform 0.2s;
}
.nx-site .native-switch:checked {
  background: #167e94;
  border-color: #2a9bb2;
}
.native-switch:checked::after {
  transform: translateX(14px);
  background: #c5f1f8;
}
.native-switch:disabled {
  opacity: 0.65;
}
.miami-swatch {
  display: flex;
  align-items: center;
  gap: 7px;
}
.miami-swatch::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #21bfd7;
  border-radius: 3px;
}
.count-label {
  color: #6b9ab0;
  font-size: 10px;
  padding-top: 5px;
}
.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.permission-tags > span {
  font-size: 8px;
  border: 1px solid #315160;
  color: #9fc0d2;
  padding: 3px 6px;
  border-radius: 4px;
  background: #15303c;
}
.key-id {
  font-family: monospace;
  font-size: 11px;
  color: #709bac;
}
.nx-dialog {
  border: 1px solid #355667;
  background: #0e2834;
  color: #d6e6ee;
  border-radius: 12px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: 85vh;
  box-shadow: 0 25px 120px #0008;
}
.nx-dialog::backdrop {
  background: #020b11b8;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 21px 24px;
  border-bottom: 1px solid #2a4654;
}
.dialog-heading h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.dialog-content {
  padding: 24px;
}
.dialog-content > p,
.dialog-content form > p {
  font-size: 12px;
  color: #96b5c6;
  line-height: 1.9;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 24px;
}
.detail-file {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
}
.detail-file strong {
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.detail-file small {
  display: block;
  font-size: 11px;
  color: #8aaebe;
  margin-top: 5px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.detail-grid dt {
  font-size: 10px;
  color: #6d98ad;
  margin-bottom: 6px;
}
.detail-grid dd {
  margin: 0;
  font-size: 12px;
  color: #bad4e2;
}
.key-reveal {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  align-items: center;
  background: #081e29;
  border: 1px solid #2c5366;
  border-radius: 7px;
  padding: 12px;
}
.key-reveal code {
  font-size: 11px;
  color: #82cadf;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
}
.dialog-checks {
  display: grid;
  gap: 12px;
  border: 1px solid #2b4a5b;
  padding: 17px;
  border-radius: 7px;
}
.dialog-checks legend {
  font-size: 11px;
  color: #95b6c7;
  padding: 0 6px;
}
.compact-tables .data-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Review index, kept outside the product navigation. */
.gallery-main {
  max-width: 1120px;
  width: 100%;
  margin: 45px auto 50px;
}
.gallery-main > h1 {
  font-size: 45px;
  font-weight: 550;
  letter-spacing: -1.8px;
  line-height: 1.18;
  margin: 22px 0 20px;
}
.gallery-description {
  max-width: 620px;
  font-size: 13px;
  color: #8aabba;
  line-height: 1.9;
  margin-bottom: 34px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-card {
  padding: 24px;
  background: #0c2731;
  border: 1px solid #274856;
  border-radius: 10px;
  position: relative;
}
.gallery-card:hover {
  border-color: #3d899e;
  background: #10323d;
}
.gallery-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: #133e4d;
  border: 1px solid #275a6d;
  border-radius: 9px;
  color: #73cada;
  margin-bottom: 22px;
}
.gallery-icon svg {
  width: 19px;
  height: 19px;
}
.gallery-number {
  position: absolute;
  top: 26px;
  right: 25px;
  color: #3c728a;
  font-size: 11px;
}
.gallery-card h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.gallery-card p {
  font-size: 11px;
  color: #84aabb;
  line-height: 1.8;
  margin: 10px 0 20px;
  min-height: 39px;
}
.gallery-open {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #58bdd3;
  font-size: 10px;
}
.gallery-open svg {
  width: 12px;
  height: 12px;
}
.gallery-states {
  margin-top: 25px;
  padding: 26px;
}
.gallery-states h2 {
  font-size: 16px;
  font-weight: 550;
}
.gallery-states p {
  color: #7da3b6;
  font-size: 12px;
  margin: 7px 0 22px;
}
.state-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.state-links > a {
  padding: 9px 12px;
  border: 1px solid #2d5265;
  background: #102f3d;
  border-radius: 5px;
  color: #9dcadb;
  font-size: 10px;
}
.state-links > a:hover {
  border-color: #4795ac;
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .admin-workspace {
    margin-left: 205px;
  }
  .admin-main {
    padding: 28px 24px 35px;
  }
  .admin-topbar {
    padding-left: 24px;
    padding-right: 24px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-card > [data-icon] {
    display: none;
  }
  .overview-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 17px;
  }
  .overview-bottom {
    grid-template-columns: 1.3fr 1fr;
    gap: 17px;
  }
  .panel {
    padding: 19px;
  }
  .table-panel {
    padding: 0;
  }
  .recent-file .time-left {
    display: none;
  }
  .auth-main {
    gap: 60px;
  }
  .settings-layout {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 20px;
  }
  .security-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 190px;
  }
  .sidebar .refined-brand > span {
    font-size: 21px;
  }
  .sidebar .refined-brand > img {
    width: 28px;
    height: 28px;
  }
  .sidebar nav > a {
    font-size: 11px;
    padding: 12px 10px;
  }
  .sidebar .account small {
    font-size: 6px;
  }
  .admin-workspace {
    margin-left: 190px;
  }
  .admin-main {
    padding: 26px 21px 30px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .primary-button,
  .page-heading .secondary-button {
    font-size: 10px;
    padding: 10px 12px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .three-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .three-stats .stat-card > strong {
    font-size: 22px;
  }
  .three-stats .stat-card .status-value {
    font-size: 17px;
  }
  .overview-grid,
  .overview-bottom {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .chart {
    height: 190px;
  }
  .storage-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .storage-panel .panel-heading {
    grid-column: 1/-1;
  }
  .storage-ring {
    grid-row: 2/4;
    margin: 0 auto;
  }
  .storage-caption {
    align-self: end;
  }
  .storage-legend {
    align-self: start;
    font-size: 7px;
    gap: 10px;
  }
  .account {
    gap: 6px;
  }
  .account .avatar {
    width: 28px;
    height: 28px;
    font-size: 8px;
  }
  .account strong {
    font-size: 9px;
  }
  .table-toolbar {
    padding: 17px;
  }
  .filter-group {
    width: 100%;
  }
  .search-field {
    max-width: none;
  }
  .security-overview {
    padding: 20px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .security-overview > .status-badge {
    margin-left: 77px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .settings-tabs > button {
    font-size: 10px;
    padding: 11px;
  }
  .settings-content .panel {
    padding: 23px;
  }
  .timeline-event .status-badge {
    display: none;
  }
  .demo-status {
    font-size: 8px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .demo-caption {
    display: none;
  }
  .demo-bar {
    padding: 6px 20px;
    min-height: 44px;
  }
  .demo-bar > div {
    gap: 12px;
  }
  .demo-bar a {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .demo-bar .motion-toggle > span {
    display: none;
  }
  .demo-bar .motion-toggle {
    min-height: 28px;
  }
  .state-picker > span {
    display: none;
  }
  .state-picker select {
    font-size: 9px;
  }
  .nx-admin .demo-bar {
    padding: 6px 20px;
  }
  .sidebar {
    top: 44px;
    width: 235px;
    padding: 25px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar .refined-brand > span {
    font-size: 24px;
  }
  .sidebar .refined-brand > img {
    width: 34px;
    height: 34px;
  }
  .sidebar nav > a {
    font-size: 12px;
    padding: 13px;
  }
  .sidebar .account small {
    font-size: 8px;
  }
  .sidebar .account strong {
    font-size: 11px;
  }
  .sidebar .account .avatar {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }
  .sidebar-scrim {
    position: fixed;
    inset: 44px 0 0;
    background: #020c12bb;
    backdrop-filter: blur(3px);
    z-index: 40;
  }
  .admin-workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .admin-topbar {
    min-height: 65px;
    padding: 14px 20px;
  }
  .admin-topbar > div {
    gap: 9px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .breadcrumb > i {
    margin: 0 8px;
  }
  .demo-status {
    display: none;
  }
  .admin-main {
    padding: 25px 20px 30px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 300px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 19px;
    min-height: 125px;
  }
  .stat-card > span {
    font-size: 10px;
  }
  .stat-card > strong {
    font-size: 27px;
  }
  .stat-card > small {
    font-size: 9px;
  }
  .panel {
    padding: 20px;
  }
  .table-panel {
    padding: 0;
  }
  .overview-grid,
  .overview-bottom {
    grid-template-columns: 1fr;
  }
  .recent-file .time-left {
    display: block;
  }
  .admin-footer {
    padding: 20px;
    font-size: 7px;
  }
  .auth-main {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 35px;
    margin: 30px auto 45px;
  }
  .auth-story h1 {
    font-size: 36px;
    margin: 18px 0 16px;
  }
  .auth-story > p {
    font-size: 12px;
    max-width: 400px;
  }
  .auth-brand-art,
  .auth-caption {
    display: none;
  }
  .auth-panel {
    padding: 28px;
  }
  .public-main {
    margin: 30px auto 45px;
  }
  .public-intro h1 {
    font-size: 34px;
  }
  .public-intro .refined-eyebrow {
    font-size: 8px;
  }
  .download-panel {
    padding: 27px;
  }
  .not-found h1 {
    font-size: 28px;
  }
  .not-found p {
    font-size: 12px;
  }
  .error-number {
    font-size: 125px;
  }
  .gallery-main > h1 {
    font-size: 37px;
  }
  .gallery-description {
    font-size: 12px;
  }
  .gallery-grid {
    gap: 14px;
  }
  .gallery-card {
    padding: 20px;
  }
}
@media (max-width: 520px) {
  .demo-bar {
    padding: 6px 14px;
    gap: 8px;
  }
  .nx-admin .demo-bar {
    padding: 6px 15px;
  }
  .demo-bar > div {
    gap: 8px;
  }
  .demo-bar a {
    font-size: 6px;
    letter-spacing: 0.6px;
    gap: 4px;
  }
  .demo-bar a svg {
    width: 10px;
    height: 10px;
  }
  .state-picker select {
    max-width: 114px;
    font-size: 8px;
    padding: 5px 15px 5px 7px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 17px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading > button,
  .page-heading > a {
    font-size: 10px;
    min-height: 35px;
  }
  .page-heading .small-label {
    font-size: 8px;
  }
  .admin-main {
    padding: 22px 16px 25px;
  }
  .admin-topbar {
    padding: 13px 16px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card > strong {
    font-size: 25px;
  }
  .stat-card > span {
    font-size: 9px;
  }
  .stat-card > small {
    font-size: 8px;
  }
  .three-stats {
    grid-template-columns: 1fr;
  }
  .three-stats .stat-card {
    min-height: 108px;
  }
  .three-stats .stat-card > strong {
    font-size: 26px;
  }
  .panel {
    padding: 18px;
  }
  .table-panel {
    padding: 0;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .panel-heading > select {
    font-size: 9px;
    padding: 8px 18px 8px 8px;
  }
  .chart-summary {
    gap: 7px;
  }
  .chart-summary > span {
    font-size: 9px;
  }
  .chart {
    height: 170px;
    gap: 10px;
  }
  .chart-column > i {
    max-width: 28px;
  }
  .chart-column > b {
    font-size: 7px;
  }
  .recent-file {
    gap: 9px;
  }
  .recent-file strong {
    font-size: 10px;
    max-width: 175px;
  }
  .recent-file .time-left {
    display: none;
  }
  .recent-file small {
    font-size: 8px;
  }
  .storage-ring {
    width: 120px;
    height: 120px;
  }
  .storage-ring > div {
    width: 104px;
    height: 104px;
  }
  .storage-legend {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }
  .storage-caption > strong {
    font-size: 10px;
  }
  .storage-caption > span {
    font-size: 8px;
  }
  .filter-group {
    gap: 6px;
  }
  .filter-group select {
    flex: 1;
    min-width: 110px;
  }
  .table-toolbar {
    padding: 15px;
    gap: 11px;
  }
  .search-field {
    min-width: 160px;
    width: 100%;
  }
  .file-summary {
    gap: 13px;
    font-size: 10px;
  }
  .selection-bar {
    margin-left: 15px;
    margin-right: 15px;
    font-size: 10px;
  }
  .pagination {
    padding: 15px;
    font-size: 9px;
  }
  .pagination > div {
    gap: 7px;
  }
  .pagination .icon-button {
    width: 28px;
    height: 28px;
  }
  .admin-footer {
    padding: 20px 16px;
    flex-direction: column;
    gap: 8px;
  }
  .security-overview {
    padding: 19px;
    gap: 14px;
    display: grid;
    grid-template-columns: 49px minmax(0, 1fr);
  }
  .security-emblem {
    width: 49px;
    height: 49px;
    border-radius: 13px;
  }
  .security-overview h2 {
    font-size: 20px;
  }
  .security-overview p {
    font-size: 10px;
  }
  .security-overview .small-label {
    font-size: 7px;
  }
  .security-overview > div {
    flex: 1;
  }
  .security-overview > .status-badge {
    margin-left: 0;
    grid-column: 2;
    justify-self: start;
  }
  .blocked-row strong {
    font-size: 11px;
  }
  .blocked-row small {
    font-size: 8px;
  }
  .setting-info {
    font-size: 10px;
    gap: 10px;
  }
  .setting-info strong {
    font-size: 9px;
  }
  .info-strip {
    padding: 15px;
    align-items: flex-start;
    gap: 10px;
  }
  .info-strip p {
    font-size: 10px;
  }
  .timeline {
    padding: 0 15px;
  }
  .timeline-event {
    gap: 10px;
  }
  .timeline-event > time {
    min-width: 34px;
    font-size: 8px;
  }
  .timeline-event h3 {
    font-size: 11px;
  }
  .timeline-event p {
    font-size: 9px;
  }
  .timeline-event > .activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .settings-tabs {
    gap: 3px;
  }
  .settings-tabs > button {
    font-size: 9px;
    gap: 6px;
    padding: 10px 9px;
  }
  .settings-tabs > button svg {
    width: 13px;
    height: 13px;
  }
  .settings-content .panel {
    padding: 21px 18px;
  }
  .settings-save {
    flex-wrap: wrap;
    gap: 15px;
  }
  .settings-save .primary-button {
    width: 100%;
  }
  .fixed-rule,
  .toggle-setting {
    font-size: 11px;
  }
  .fixed-rule small,
  .toggle-setting small {
    font-size: 9px;
  }
  .fixed-rule strong {
    font-size: 10px;
  }
  .download-panel {
    padding: 25px 21px;
  }
  .download-panel h2 {
    font-size: 20px;
  }
  .download-panel > p {
    font-size: 11px;
  }
  .public-intro > p {
    font-size: 11px;
    line-height: 1.8;
  }
  .public-assurance {
    font-size: 9px;
    gap: 10px;
  }
  .auth-panel {
    padding: 25px 21px;
  }
  .form-between {
    gap: 9px;
  }
  .form-between .text-link,
  .check-label {
    font-size: 9px;
  }
  .auth-story .refined-eyebrow {
    font-size: 8px;
  }
  .auth-story h1 {
    font-size: 33px;
  }
  .auth-panel > h2 {
    font-size: 24px;
  }
  .nx-dialog {
    width: calc(100vw - 24px);
  }
  .dialog-heading {
    padding: 18px;
  }
  .dialog-content {
    padding: 20px 18px;
  }
  .dialog-heading h2 {
    font-size: 17px;
  }
  .detail-grid {
    gap: 17px 12px;
  }
  .detail-grid dd {
    font-size: 11px;
  }
  .dialog-actions {
    gap: 8px;
  }
  .dialog-actions > button {
    flex: 1;
    font-size: 11px;
    padding: 10px 8px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-main {
    margin-top: 30px;
  }
  .gallery-main > h1 {
    font-size: 33px;
  }
  .gallery-main .refined-eyebrow {
    font-size: 8px;
  }
  .gallery-card {
    padding: 23px;
  }
  .gallery-card p {
    min-height: 0;
  }
  .gallery-states p {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx-site *,
  .nx-site *::before,
  .nx-site *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   Auth Gate - Code Verification
   ============================================ */
.auth-gate {
  text-align: center;
  padding: 40px 24px;
}
.auth-gate-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #123b4a 0%, #0d2832 100%);
  border: 1px solid #295d70;
  border-radius: 16px;
}
.auth-gate-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}
.auth-gate h3 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.auth-gate > p {
  font-size: 13px;
  color: #8eaaba;
  margin: 0 0 28px;
}
.code-form {
  max-width: 380px;
  margin: 0 auto;
}
.code-input-group {
  margin-bottom: 16px;
}
.code-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  background: #0a1e27;
  border: 1px solid #2b4a58;
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.code-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(33, 191, 215, 0.15);
}
.code-input::placeholder {
  color: #4a6b7a;
  letter-spacing: 1px;
}
.code-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  margin-bottom: 16px;
  background: rgba(241, 146, 146, 0.1);
  border: 1px solid rgba(241, 146, 146, 0.25);
  border-radius: 8px;
  color: var(--danger);
  font-size: 12px;
}
.code-error svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.code-form .send-button {
  width: 100%;
}
.code-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 11px;
  color: #6b8b9e;
}
.code-hint svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* Authenticated user bar */
.auth-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(33, 191, 215, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid #1c3b49;
  margin-bottom: 0;
}
.auth-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1c5a6f 0%, #14434f 100%);
  border: 1px solid #2d7a91;
  border-radius: 10px;
  color: #8de4f3;
  font-weight: 650;
  font-size: 15px;
}
.auth-user-info strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
}
.auth-user-info small {
  display: block;
  font-size: 10px;
  color: #6b8b9e;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  margin-top: 2px;
}
.auth-user .text-button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #7c9aaa;
}
.auth-user .text-button:hover {
  color: var(--danger);
}
.auth-user .text-button svg {
  width: 14px;
  height: 14px;
}

/* Visually hidden helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* User management table updates */
.user-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: #7fa8b9;
  letter-spacing: 0.5px;
}
.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #123642;
  border: 1px solid #2b4d5c;
  border-radius: 5px;
  color: #8ec5d4;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-code-btn:hover {
  background: #1a4555;
  border-color: var(--accent);
}
.copy-code-btn svg {
  width: 12px;
  height: 12px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 550;
}
.status-badge.active {
  background: rgba(117, 207, 186, 0.15);
  color: #75cfba;
}
.status-badge.inactive {
  background: rgba(241, 146, 146, 0.15);
  color: #f19292;
}
.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Public upload toggle in settings */
.public-upload-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #0d252f;
  border: 1px solid #1c3b49;
  border-radius: 10px;
  margin-bottom: 20px;
}
.public-upload-toggle .setting-info {
  flex: 1;
}
.public-upload-toggle .setting-info strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
}
.public-upload-toggle .setting-info strong svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.public-upload-toggle .setting-info p {
  font-size: 12px;
  color: #7c9aaa;
  margin: 6px 0 0;
}
.public-upload-toggle .switch-track {
  flex-shrink: 0;
}

/* Hide demo elements in production */
.demo-bar { display: none !important; }
.demo-status { display: none !important; }
.simulation-note { display: none !important; }
.demo-disclaimer { display: none !important; }

