:root {
  --bg: #f7f7f4;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --panel-border: rgba(15, 23, 42, 0.12);
  --ink: #181c21;
  --muted: #6f7783;
  --blue: #0a6dd9;
  --blue-deep: #074f9f;
  --red: #c93642;
  --green: #2ea364;
  --shadow: 0 24px 80px rgba(18, 38, 63, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: min(1200px, calc(100vw - 48px));
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  background:
    radial-gradient(circle at 20% 18%, rgba(10, 109, 217, 0.11), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(201, 54, 66, 0.08), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #f1f3f5 68%, #e6eaee 100%);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(36px);
  opacity: 0.85;
}

.ambient-a {
  top: 120px;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(10, 109, 217, 0.1);
}

.ambient-b {
  right: 0;
  bottom: 80px;
  width: 320px;
  height: 320px;
  border-radius: 42% 58% 60% 40%;
  background: rgba(201, 54, 66, 0.08);
}

.glass-card,
.secondary-panel,
.summary-card,
.hero-banner,
.brand-stage-card,
.auth-popup,
.topbar,
.profile-chip {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.topbar {
  position: sticky;
  top: 20px;
  z-index: 20;
  width: var(--content-width);
  margin: 24px auto 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(10, 109, 217, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(201, 54, 66, 0.95);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(10, 109, 217, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(245, 247, 249, 0.68);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

button.profile-chip {
  appearance: none;
  -webkit-appearance: none;
}

.profile-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.82);
}

.profile-chip:focus-visible {
  outline: 2px solid rgba(10, 109, 217, 0.35);
  outline-offset: 2px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #0a6dd9 0%, #074f9f 100%);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.profile-meta strong {
  font-size: 0.92rem;
}

.profile-role {
  font-size: 0.82rem;
}

.profile-card {
  display: grid;
  gap: 18px;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(235, 241, 249, 0.62));
  border: 1px solid rgba(24, 28, 33, 0.06);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1rem;
}

.profile-card-copy {
  display: grid;
  gap: 4px;
}

.profile-card-copy strong {
  font-size: 1rem;
}

.profile-card-copy p {
  margin: 0;
  color: var(--muted);
}

.profile-card-grid {
  display: grid;
  gap: 12px;
}

.profile-info-label {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-info-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.role-badge,
.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-client {
  color: var(--blue);
  background: rgba(10, 109, 217, 0.11);
}

.badge-admin,
.badge-founder {
  color: var(--red);
  background: rgba(201, 54, 66, 0.11);
}

.badge-admin-limited {
  color: #7b45d6;
  background: rgba(123, 69, 214, 0.14);
}

.chip {
  color: var(--muted);
  background: rgba(24, 28, 33, 0.06);
}

.status-pill.active {
  color: var(--green);
  background: rgba(46, 163, 100, 0.12);
}

.status-pill.inactive {
  color: var(--red);
  background: rgba(201, 54, 66, 0.12);
}

.ghost-button,
.primary-button,
.mini-button {
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.ghost-button {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(24, 28, 33, 0.06);
  color: var(--ink);
}

.ghost-button:hover,
.primary-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 15px 18px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue) 0%, #2f8cf0 100%);
  box-shadow: 0 20px 48px rgba(10, 109, 217, 0.26);
}

.primary-button-alert {
  background: linear-gradient(135deg, #151b22 0%, #364556 100%);
  box-shadow: 0 18px 42px rgba(18, 27, 36, 0.18);
}

.mini-button {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(24, 28, 33, 0.06);
}

.mini-button-danger {
  color: var(--red);
  background: rgba(201, 54, 66, 0.12);
}

.mini-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-page {
  display: grid;
  min-height: 100vh;
}

.auth-page .brand-stage-card,
.auth-page .auth-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 38px 120px rgba(15, 23, 42, 0.16);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.brand-stage-card,
.auth-card,
.secondary-panel,
.hero-banner,
.summary-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.brand-stage-card,
.auth-card,
.secondary-panel,
.hero-banner {
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.12);
}

.brand-stage-card {
  min-height: 100%;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.brand-stage-card::before,
.auth-card::before,
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.hero-logo {
  width: 148px;
  height: 148px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 28px 55px rgba(18, 38, 63, 0.12));
}

.hero-logo-main {
  width: 184px;
  height: 184px;
}

.hero-logo-admin {
  width: 196px;
  height: 196px;
}

.brand-stage h1,
.auth-card h2,
.hero-banner h1,
.secondary-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-card h2,
.secondary-panel h2 {
  font-size: clamp(1.35rem, 1.8vw, 2rem);
}

.hero-text,
.card-heading p,
.hero-banner p,
.rich-copy,
.summary-card p,
.data-row p,
.log-row p,
.field-footnote,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.auth-stage {
  display: flex;
}

.auth-card {
  width: 100%;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.card-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.security-checklist {
  display: grid;
  gap: 12px;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(24, 28, 33, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(232, 238, 245, 0.56));
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.check-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.check-card span {
  font-size: 0.92rem;
  line-height: 1.55;
}

.check-card-disabled {
  align-items: center;
  border-style: dashed;
  color: var(--muted);
  background: linear-gradient(145deg, rgba(252, 252, 252, 0.86), rgba(239, 242, 247, 0.62));
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.inline-form input,
.inline-form select,
.contact-form input,
.contact-form textarea,
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 28, 33, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input:focus,
.inline-form input:focus,
.inline-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: rgba(10, 109, 217, 0.3);
  box-shadow: 0 0 0 6px rgba(10, 109, 217, 0.08);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.form-notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.form-notice-success {
  color: var(--green);
  background: rgba(46, 163, 100, 0.1);
}

.form-notice-error {
  color: var(--red);
  background: rgba(201, 54, 66, 0.1);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
  z-index: 40;
}

.auth-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.auth-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 20, 0);
  transition: background 700ms ease;
}

.auth-popup {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 28px 30px;
  background: rgba(245, 245, 247, 0.96);
  border-radius: 22px;
  border: 1px solid rgba(24, 28, 33, 0.08);
  opacity: 0;
  transform: scale(0.82) translateY(8px);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.2);
}

.auth-popup-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.popup-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  transition: transform 200ms ease, background-color 240ms ease;
  flex-shrink: 0;
}

.popup-copy {
  flex: 1;
  min-width: 0;
}

.popup-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  transition: opacity 250ms ease;
}

.popup-subtitle {
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--muted);
  transition: opacity 200ms ease;
}

.spinner-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.popup-track {
  position: relative;
  width: 100%;
  height: 6px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(24, 28, 33, 0.08);
}

.popup-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 35%;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transform-origin: center;
}

.popup-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--muted);
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto 60px;
  padding-top: 26px;
  display: grid;
  gap: 24px;
}

.contact-form,
.modal-form {
  display: grid;
  gap: 14px;
}

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

.hero-banner {
  padding: 30px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-banner p {
  max-width: 720px;
}

.hero-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.summary-card {
  display: grid;
  gap: 12px;
  min-height: 176px;
  padding: 22px;
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.12);
  border-color: rgba(10, 109, 217, 0.18);
}

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

.summary-card strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.single-column {
  grid-template-columns: 1fr;
}

.stacked-panels {
  display: grid;
  gap: 20px;
}

.secondary-panel {
  padding: 26px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.action-panel {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 220px;
}

.inline-link {
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.mini-link {
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.log-table,
.data-list {
  display: grid;
  gap: 12px;
}

.log-row,
.data-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.56);
  border-radius: 20px;
  border: 1px solid rgba(24, 28, 33, 0.05);
}

.log-row strong,
.data-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.log-row-side,
.row-actions,
.row-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.inline-form-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-form .field {
  min-width: 0;
}

.inline-form-wrap {
  grid-template-columns: 1.2fr 1.1fr 0.6fr 1fr auto;
}

.inline-form .mini-button {
  align-self: end;
  min-height: 52px;
}

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

.span-two {
  grid-column: 1 / -1;
}

.generated-code-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.generated-code {
  padding: 12px 14px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #151b22 0%, #304053 100%);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-log-row {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.admin-log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-log-stage {
  color: var(--muted);
}

.admin-log-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-log-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-log-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.log-signal-stack {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.signal-line {
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(233, 239, 246, 0.52));
  border: 1px solid rgba(24, 28, 33, 0.05);
}

.signal-label {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.log-reason {
  margin: 0;
  padding: 12px 14px;
  max-width: none;
  border-radius: 16px;
  background: rgba(24, 28, 33, 0.04);
  color: var(--ink);
  line-height: 1.55;
}

.quota-meter {
  width: 100%;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(24, 28, 33, 0.08);
  overflow: hidden;
}

.quota-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #0a6dd9 0%, #2ea364 100%);
}

.cloud-file-row .row-actions {
  min-width: 210px;
  align-self: center;
}

.cloud-workspace-panel {
  display: grid;
  gap: 18px;
}

.cloud-section-head {
  align-items: flex-start;
}

.cloud-command-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(237, 242, 248, 0.62));
  border: 1px solid rgba(24, 28, 33, 0.06);
}

.cloud-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cloud-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(24, 28, 33, 0.05);
  color: var(--muted);
  font-size: 0.84rem;
}

.cloud-status-chip strong {
  color: var(--ink);
}

.cloud-explorer-surface {
  min-height: 360px;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 247, 252, 0.52));
  border: 1px solid rgba(24, 28, 33, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.cloud-browser-list {
  gap: 10px;
}

.cloud-browser-row {
  position: relative;
  min-height: 86px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cloud-browser-row:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 109, 217, 0.16);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.cloud-browser-row.is-selected {
  background: linear-gradient(145deg, rgba(219, 235, 255, 0.94), rgba(241, 247, 255, 0.86));
  border-color: rgba(10, 109, 217, 0.34);
  box-shadow: 0 20px 52px rgba(10, 109, 217, 0.14);
}

.cloud-entry-main {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.cloud-entry-copy {
  display: grid;
  gap: 4px;
}

.cloud-entry-copy strong[data-cloud-preview-trigger],
.cloud-entry-icon[data-cloud-preview-trigger] {
  cursor: pointer;
}

.cloud-entry-copy strong[data-cloud-preview-trigger] {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-color: rgba(10, 109, 217, 0.35);
  text-underline-offset: 3px;
}

.cloud-entry-icon {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(10, 109, 217, 0.1);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.cloud-browser-row.cloud-folder-row .cloud-entry-icon {
  background: rgba(46, 163, 100, 0.12);
  color: #18764a;
}

.cloud-entry-row {
  align-items: center;
}

.cloud-entry-link {
  color: var(--ink);
  text-decoration: none;
}

.cloud-entry-link:hover {
  color: var(--blue-deep);
}

.cloud-folder-row strong::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--blue-deep);
}

.cloud-browser-row.cloud-folder-row strong::before {
  content: none;
  margin-right: 0;
}

.cloud-file-row strong {
  font-size: 1rem;
}

.cloud-file-row p {
  max-width: 620px;
}

[data-log-list] .empty-state {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(24, 28, 33, 0.05);
}

.cloud-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24, 28, 33, 0.06);
  color: var(--ink);
  font-size: 0.86rem;
  border: 0;
  cursor: pointer;
}

.crumb-link:hover {
  background: rgba(10, 109, 217, 0.1);
}

.cloud-view-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.analysis-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.analysis-list li {
  line-height: 1.55;
}

.modal-dialog {
  width: min(640px, calc(100vw - 28px));
  border: none;
  padding: 0;
  background: transparent;
}

.modal-dialog-wide {
  width: min(1040px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
}

.modal-dialog::backdrop {
  background: rgba(10, 14, 20, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(252, 252, 253, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 32px 110px rgba(15, 23, 42, 0.26);
}

.modal-card-wide {
  width: 100%;
  max-height: min(84vh, 920px);
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.modal-card-wide .log-table[data-log-list] {
  max-height: 68vh;
  overflow: auto;
  padding-right: 6px;
}

.modal-content {
  display: grid;
  gap: 10px;
}

.message-box {
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(24, 28, 33, 0.05);
  white-space: pre-wrap;
  line-height: 1.6;
}

.empty-state {
  padding: 12px 2px 4px;
}

form {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

  .content-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .auth-shell,
  .topbar,
  .topbar-left,
  .topbar-right,
  .hero-banner,
  .section-head,
  .cloud-command-bar,
  .cloud-status-strip,
  .log-row,
  .data-row {
    grid-template-columns: unset;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    padding: 26px 0 40px;
  }

  .topbar {
    position: static;
    margin-top: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .profile-chip,
  .hero-banner-meta,
  .row-actions,
  .row-meta,
  .log-row-side {
    justify-items: start;
    text-align: left;
  }

  .profile-info-value {
    justify-content: flex-start;
    text-align: left;
  }

  .admin-log-head,
  .admin-log-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-log-meta {
    justify-items: start;
    text-align: left;
  }

  .admin-log-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --content-width: min(100vw - 28px, 1000px);
  }

  .summary-grid,
  .inline-form,
  .inline-form-wrap,
  .split-fields {
    grid-template-columns: 1fr;
  }

  .brand-stage-card,
  .auth-card,
  .secondary-panel,
  .hero-banner {
    padding: 22px;
  }

  .brand-stage h1,
  .hero-banner h1 {
    font-size: 2rem;
  }

  .hero-logo-main {
    width: 148px;
    height: 148px;
  }

  .hero-logo-admin {
    width: 168px;
    height: 168px;
  }
}
