:root {
  --paper: #f2eadc;
  --paper-deep: #e5d3bb;
  --surface: #fcf6eb;
  --surface-strong: #fffdf8;
  --ink: #2b1c14;
  --ink-soft: #6b594b;
  --ink-faint: #988777;
  --forest: #102a43;
  --forest-2: #1b3b58;
  --gold: #c59a59;
  --gold-bright: #dfbd7b;
  --lime: #c9a063;
  --lime-deep: #b7894b;
  --coral: #9d3428;
  --sky: #cbdee8;
  --line: rgba(89, 59, 35, 0.13);
  --line-strong: rgba(89, 59, 35, 0.24);
  --danger: #9d382c;
  --shadow-sm: 0 10px 30px rgba(54, 34, 19, 0.08);
  --shadow-lg: 0 32px 90px rgba(42, 26, 14, 0.25);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "STKaiti", "KaiTi", "FZKai-Z03", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 91% 4%, rgba(197, 154, 89, 0.13), transparent 24rem),
    radial-gradient(circle at 8% 94%, rgba(16, 42, 67, 0.05), transparent 26rem),
    var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 116, 92, 0.42);
  outline-offset: 2px;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

.hidden {
  display: none !important;
}

.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;
}

.app-loading {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.boot-mark {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 38px;
}

.boot-mark span {
  width: 12px;
  border-radius: 12px;
  background: var(--forest);
  animation: boot-bounce 1s ease-in-out infinite;
}

.boot-mark span:nth-child(1) {
  height: 24px;
}

.boot-mark span:nth-child(2) {
  height: 38px;
  animation-delay: 0.14s;
  background: var(--coral);
}

.boot-mark span:nth-child(3) {
  height: 18px;
  animation-delay: 0.28s;
  background: var(--lime-deep);
}

@keyframes boot-bounce {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Authentication */

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  min-height: 100vh;
}

.auth-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  color: #f9f7ef;
  background: var(--forest);
  isolation: isolate;
}

.auth-visual::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(217, 247, 125, 0.1) 58% 58.2%, transparent 58.2%),
    radial-gradient(circle at 74% 67%, rgba(255, 116, 92, 0.76), transparent 0 17%, transparent 17.2%),
    radial-gradient(circle at 28% 104%, rgba(217, 247, 125, 0.8), transparent 0 26%, transparent 26.4%);
}

.auth-visual::after {
  position: absolute;
  z-index: -1;
  width: 390px;
  height: 390px;
  right: -115px;
  top: 24%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 46% 54% 52% 48%;
  transform: rotate(17deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 11px;
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(23, 61, 50, 0.08);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  width: 19px;
  height: 19px;
  left: 7px;
  top: 7px;
  border-radius: 4px;
  background: var(--forest);
}

.brand-mark::after {
  width: 8px;
  height: 8px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.auth-brand .brand-mark {
  background: var(--lime);
}

.auth-copy {
  max-width: 670px;
  margin: auto 0;
  padding: 8vh 0 6vh;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.auth-kicker::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 247, 125, 0.13);
}

.auth-copy h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 78px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.auth-copy h1 em {
  color: var(--lime);
  font-style: normal;
}

.auth-copy p {
  max-width: 510px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.8;
}

.auth-collage {
  position: relative;
  width: min(540px, 80%);
  height: 130px;
  margin-top: 38px;
}

.collage-card {
  position: absolute;
  width: 154px;
  height: 104px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  transform: rotate(-7deg);
}

.collage-card:nth-child(1) {
  left: 0;
  top: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent),
    #e8745f;
}

.collage-card:nth-child(1)::before {
  position: absolute;
  width: 88px;
  height: 88px;
  right: -26px;
  bottom: -35px;
  content: "";
  border-radius: 50%;
  background: var(--lime);
}

.collage-card:nth-child(2) {
  left: 128px;
  top: 20px;
  z-index: 2;
  background:
    radial-gradient(circle at 65% 35%, #d9f77d 0 20%, transparent 20.5%),
    linear-gradient(140deg, #a9d7f2, #3b6a84);
  transform: rotate(4deg);
}

.collage-card:nth-child(2)::after {
  position: absolute;
  width: 92px;
  height: 35px;
  left: 23px;
  bottom: -5px;
  content: "";
  border-radius: 50% 50% 0 0;
  background: #173d32;
}

.collage-card:nth-child(3) {
  left: 270px;
  top: 0;
  background:
    linear-gradient(45deg, transparent 40%, rgba(23, 61, 50, 0.24) 40% 48%, transparent 48%),
    #f2d768;
  transform: rotate(-2deg);
}

.collage-card:nth-child(3)::before {
  position: absolute;
  width: 36px;
  height: 36px;
  left: 24px;
  top: 25px;
  content: "";
  border: 6px solid var(--forest);
  border-radius: 50%;
}

.collage-card:nth-child(4) {
  left: 410px;
  top: 25px;
  background:
    linear-gradient(180deg, transparent 0 48%, rgba(255, 255, 255, 0.15) 48% 50%, transparent 50%),
    #3d8c6e;
  transform: rotate(7deg);
}

.auth-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.auth-footnote span {
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.auth-panel {
  display: grid;
  align-items: center;
  padding: 48px clamp(30px, 7vw, 96px);
  background:
    linear-gradient(90deg, rgba(24, 53, 43, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(24, 53, 43, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.auth-form-wrap {
  width: min(430px, 100%);
  margin: auto;
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 42px;
}

.auth-eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.auth-form-wrap h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.auth-subtitle {
  margin: 14px 0 30px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(24, 53, 43, 0.06);
}

.auth-tab {
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.auth-tab.active {
  color: var(--forest);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(24, 53, 43, 0.08);
}

.auth-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -8px 0 22px;
  padding: 0;
  border: 0;
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
  background: transparent;
  cursor: pointer;
}

.auth-back-button svg {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.input-shell {
  position: relative;
}

.input-shell > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  color: var(--ink-faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-shell input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 45px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.82);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.input-shell input::placeholder {
  color: #9aa49f;
}

.input-shell input:focus {
  border-color: var(--forest-2);
  outline: none;
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px rgba(34, 83, 68, 0.09);
}

.password-reveal {
  position: absolute;
  right: 10px;
  top: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  place-items: center;
  color: var(--ink-soft);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-inline-link {
  display: flex;
  justify-content: flex-end;
  margin-top: -1px;
  font-size: 12px;
}

.email-code-field {
  gap: 9px;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.code-send-button {
  min-width: 116px;
  height: 52px;
  padding: 0 13px;
  font-size: 12px;
}

.form-hint {
  margin: 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.55;
}

.captcha-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 11px 14px;
  padding: 13px;
  border: 1px solid rgba(24, 53, 43, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(217, 247, 125, 0.24), transparent 9rem),
    rgba(255, 253, 247, 0.88);
}

.captcha-panel[hidden] {
  display: none;
}

.captcha-copy {
  align-self: center;
}

.captcha-copy strong,
.captcha-copy span {
  display: block;
}

.captcha-copy strong {
  font-size: 12px;
}

.captcha-copy span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 10px;
}

.captcha-image-row {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  gap: 7px;
}

.captcha-image-row img {
  width: 148px;
  height: 58px;
  border-radius: 9px;
}

.captcha-image-row .text-button {
  font-size: 10px;
  white-space: nowrap;
}

.captcha-answer-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.captcha-answer-row input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--surface-strong);
}

.captcha-answer-row input:focus {
  border-color: var(--forest-2);
  outline: none;
  box-shadow: 0 0 0 4px rgba(34, 83, 68, 0.09);
}

.captcha-answer-row .primary-button {
  min-height: 44px;
  padding: 0 15px;
}

.form-error {
  min-height: 20px;
  margin: -3px 0 14px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  cursor: pointer;
}

.primary-button > svg,
.secondary-button > svg,
.ghost-button > svg,
.danger-button > svg,
.text-button > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-button > svg {
  width: 14px;
  height: 14px;
}

.primary-button {
  border: 1px solid var(--forest);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 10px 24px rgba(23, 61, 50, 0.16);
}

.primary-button:hover {
  background: var(--forest-2);
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(23, 61, 50, 0.22);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.55;
  transform: none;
  cursor: wait;
}

.primary-button.lime {
  border-color: var(--lime);
  color: var(--forest);
  background: var(--lime);
  box-shadow: 0 10px 26px rgba(217, 247, 125, 0.13);
}

.primary-button.lime:hover {
  background: var(--lime-deep);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.secondary-button:hover,
.ghost-button:hover {
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.ghost-button {
  border: 1px solid transparent;
  color: var(--ink-soft);
  background: transparent;
}

.danger-button {
  border: 1px solid rgba(182, 66, 50, 0.16);
  color: var(--danger);
  background: rgba(182, 66, 50, 0.07);
}

.auth-submit {
  width: 100%;
  height: 52px;
  margin-top: 3px;
}

.auth-switch-copy {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--forest);
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.auth-note {
  display: flex;
  gap: 9px;
  margin-top: 27px;
  padding: 13px 14px;
  border: 1px solid rgba(24, 53, 43, 0.09);
  border-radius: 13px;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.6;
  background: rgba(255, 253, 247, 0.42);
}

.auth-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Application shell */

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 28px 20px 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  backdrop-filter: blur(24px);
}

.sidebar .brand {
  padding: 0 8px;
  margin-bottom: 38px;
}

.sidebar-label {
  margin: 0 10px 10px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.nav-item svg {
  width: 18px;
  flex: 0 0 auto;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(24, 53, 43, 0.05);
}

.nav-item.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.nav-item.active::after {
  width: 6px;
  height: 6px;
  margin-left: auto;
  content: "";
  border-radius: 50%;
  background: var(--coral);
}

.sidebar-projects {
  margin-top: 24px;
}

.project-mini {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: left;
  background: transparent;
  cursor: default;
}

.project-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--lime-deep);
  box-shadow: inset 0 0 0 1px rgba(24, 53, 43, 0.14);
}

.sidebar-storage {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(217, 247, 125, 0.34), transparent 8rem),
    rgba(255, 253, 247, 0.82);
}

.storage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.storage-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.storage-status::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: #6fba86;
}

.storage-bar {
  height: 6px;
  margin: 13px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 53, 43, 0.08);
}

.storage-bar span {
  display: block;
  width: 1.8%;
  min-width: 10px;
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
}

.storage-meta {
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.6;
}

.sidebar-user {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 6px 0;
}

.sidebar-user-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: -4px;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease;
}

.sidebar-user-profile:hover,
.sidebar-user-profile:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.055);
}

.sidebar-user-profile .user-meta {
  display: block;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 2px solid var(--surface);
  border-radius: 50%;
  place-items: center;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  background: var(--lime);
  box-shadow: 0 2px 12px rgba(24, 53, 43, 0.1);
}

.avatar.tone-1 {
  background: #b9dff7;
}

.avatar.tone-2 {
  color: #fff;
  background: #ff8e78;
}

.avatar.tone-3 {
  color: #fff;
  background: #6d9b84;
}

.avatar.tone-4 {
  background: #f2d768;
}

.user-meta {
  min-width: 0;
}

.user-meta strong,
.user-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta strong {
  font-size: 12px;
  font-weight: 780;
}

.user-meta span {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 9px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  place-items: center;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.icon-button svg {
  width: 18px;
}

.icon-button.subtle {
  border-color: transparent;
  background: transparent;
}

.topbar-logout {
  display: none;
}

.main {
  min-width: 0;
  padding: 0 36px 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 520px) auto;
  gap: 24px;
  align-items: center;
  min-height: 88px;
  padding: 14px 0;
  background: linear-gradient(var(--paper) 70%, rgba(243, 241, 232, 0));
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  color: var(--ink-faint);
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.72);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.search-box input::placeholder {
  color: var(--ink-faint);
}

.search-box input:focus {
  border-color: rgba(24, 53, 43, 0.24);
  outline: 0;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(24, 53, 43, 0.05);
}

.search-key {
  position: absolute;
  right: 12px;
  top: 50%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-faint);
  font-size: 9px;
  background: var(--surface);
  transform: translateY(-50%);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.member-stack {
  display: flex;
  align-items: center;
  padding: 0 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.member-stack .avatar {
  width: 31px;
  height: 31px;
  margin: 3px -7px 3px 3px;
  font-size: 10px;
}

.member-stack .avatar:first-child {
  margin-left: 3px;
}

.member-stack span {
  margin-left: 12px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.mobile-top-brand {
  display: none;
}

.main-content {
  max-width: 1580px;
  margin: 0 auto;
  padding-top: 22px;
}

.storage-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 15px;
  border: 1px solid rgba(205, 154, 35, 0.18);
  border-radius: 14px;
  color: #725718;
  font-size: 12px;
  line-height: 1.55;
  background: rgba(242, 215, 104, 0.14);
}

.storage-banner svg {
  width: 18px;
  flex: 0 0 auto;
}

.storage-banner strong {
  font-weight: 800;
}

.storage-banner button {
  margin-left: auto;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.74fr);
  gap: 34px;
  min-height: 246px;
  overflow: hidden;
  margin-bottom: 26px;
  padding: 34px 36px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 20px 44px rgba(23, 61, 50, 0.12);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
}

.hero::before {
  width: 400px;
  height: 400px;
  right: -100px;
  top: -185px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 58px rgba(255, 255, 255, 0.025),
    0 0 0 116px rgba(255, 255, 255, 0.018);
}

.hero::after {
  width: 180px;
  height: 180px;
  right: 26%;
  bottom: -134px;
  background: var(--coral);
  opacity: 0.86;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-kicker::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 247, 125, 0.12);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 3.1vw, 46px);
  font-weight: 660;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: var(--lime);
}

.hero p {
  max-width: 580px;
  margin: 15px 0 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.7;
}

.hero .primary-button {
  min-width: 128px;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: center;
}

.stat-card {
  min-height: 77px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(6px);
}

.stat-card.wide {
  grid-column: span 2;
  display: flex;
  min-height: 63px;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stat-value {
  margin-top: 7px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.stat-value small {
  margin-left: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 600;
}

.stat-icon {
  display: grid;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
}

.stat-icon svg {
  width: 17px;
}

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

.section-heading {
  min-width: 0;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.count-badge {
  display: inline-grid;
  min-width: 25px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  place-items: center;
  color: var(--ink-soft);
  font-size: 10px;
  background: rgba(24, 53, 43, 0.07);
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
}

.filter-row {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 247, 0.68);
}

.filter-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.filter-chip.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(24, 53, 43, 0.08);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 17px;
}

.asset-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 247, 0.74);
  box-shadow: 0 4px 18px rgba(24, 53, 43, 0.025);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  animation: card-in 360ms both;
}

.asset-card:hover {
  border-color: rgba(24, 53, 43, 0.18);
  box-shadow: 0 15px 36px rgba(24, 53, 43, 0.1);
  transform: translateY(-3px);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.asset-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.05;
  overflow: hidden;
  padding: 0;
  border: 0;
  text-align: left;
  background: var(--paper-deep);
  cursor: pointer;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.asset-video-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0d2538;
}

.asset-video-preview .asset-placeholder {
  z-index: 0;
}

.asset-video-thumb {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.asset-video-preview.ready .asset-video-thumb {
  opacity: 1;
}

.asset-video-preview.failed .asset-video-thumb {
  display: none;
}

.asset-video-preview .asset-video-play,
.asset-video-preview .transcode-notice {
  z-index: 2;
}

.asset-card:hover .asset-preview img {
  transform: scale(1.035);
}

.asset-card:hover .asset-video-preview.ready .asset-video-thumb {
  transform: scale(1.035);
}

.asset-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.58), transparent 0 14%, transparent 14.5%),
    linear-gradient(132deg, #cedbd2, #f3ecda);
}

.asset-placeholder.video {
  color: #fff;
  background:
    linear-gradient(35deg, transparent 0 43%, rgba(255, 255, 255, 0.12) 43% 43.4%, transparent 43.4%),
    linear-gradient(145deg, #1c5c48, #78ad6d);
}

.asset-placeholder.audio {
  color: #fff;
  background:
    radial-gradient(circle at 70% 25%, var(--coral), transparent 0 22%, transparent 22.5%),
    linear-gradient(145deg, #304c64, #84abc0);
}

.asset-placeholder.document {
  background:
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(24, 53, 43, 0.04) 12px 13px),
    linear-gradient(145deg, #eee8d7, #ffffff);
}

.placeholder-icon {
  display: grid;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  place-items: center;
  color: var(--forest);
  background: rgba(255, 253, 247, 0.75);
  box-shadow: 0 12px 28px rgba(24, 53, 43, 0.12);
  backdrop-filter: blur(8px);
}

.asset-placeholder.video .placeholder-icon,
.asset-placeholder.audio .placeholder-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.placeholder-icon svg {
  width: 26px;
}

.asset-type-badge {
  position: absolute;
  left: 11px;
  top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(20, 36, 30, 0.52);
  backdrop-filter: blur(8px);
}

.asset-type-badge svg {
  width: 10px;
}

.asset-video-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  place-items: center;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.asset-video-play svg {
  width: 15px;
  margin-left: 2px;
}

.transcode-notice {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 7px;
  border-radius: 7px;
  color: #725718;
  font-size: 8px;
  font-weight: 800;
  background: rgba(255, 243, 196, 0.92);
}

.asset-info {
  padding: 12px 13px 13px;
}

.asset-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.asset-title {
  overflow: hidden;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-download {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  place-items: center;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
}

.asset-download:hover {
  color: var(--forest);
  background: var(--lime);
}

.asset-download svg {
  width: 14px;
}

.asset-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--ink-faint);
  font-size: 9px;
}

.asset-meta span + span::before {
  margin-right: 5px;
  content: "·";
}

.asset-tags {
  display: flex;
  min-height: 19px;
  gap: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.asset-tag {
  overflow: hidden;
  max-width: 90px;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(24, 53, 43, 0.055);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 360px;
  padding: 38px;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  place-items: center;
  text-align: center;
  background: rgba(255, 253, 247, 0.42);
}

.empty-art {
  position: relative;
  width: 180px;
  height: 120px;
  margin: 0 auto 24px;
}

.empty-sheet {
  position: absolute;
  width: 102px;
  height: 76px;
  left: 28px;
  top: 20px;
  border: 1px solid rgba(24, 53, 43, 0.12);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.empty-sheet:nth-child(1) {
  transform: rotate(-12deg) translate(-24px, 6px);
  background: var(--lime);
}

.empty-sheet:nth-child(2) {
  transform: rotate(9deg) translate(24px, 2px);
  background: var(--sky);
}

.empty-sheet:nth-child(3) {
  z-index: 2;
}

.empty-sheet:nth-child(3)::before,
.empty-sheet:nth-child(3)::after {
  position: absolute;
  content: "";
}

.empty-sheet:nth-child(3)::before {
  width: 34px;
  height: 24px;
  left: 15px;
  top: 16px;
  border-radius: 5px;
  background: var(--coral);
}

.empty-sheet:nth-child(3)::after {
  width: 42px;
  height: 5px;
  left: 15px;
  bottom: 18px;
  border-radius: 99px;
  background: rgba(24, 53, 43, 0.15);
  box-shadow: 0 -10px 0 rgba(24, 53, 43, 0.09);
}

.empty-state h3 {
  margin: 0 0 9px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.empty-state p {
  max-width: 390px;
  margin: 0 auto 21px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.7;
}

.loading-grid {
  display: contents;
}

.skeleton-card {
  height: 295px;
  border-radius: 19px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 253, 247, 0.4) 0,
      rgba(255, 253, 247, 0.9) 50%,
      rgba(255, 253, 247, 0.4) 100%
    ),
    var(--paper-deep);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.mobile-nav {
  display: none;
}

/* Modal and upload */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  overflow: auto;
  padding: 24px;
  place-items: center;
  background: rgba(17, 34, 28, 0.48);
  backdrop-filter: blur(10px);
  animation: fade-in 180ms both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 220ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 17px;
  background: rgba(255, 253, 247, 0.93);
  backdrop-filter: blur(14px);
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.modal-header p {
  margin: 6px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.5;
}

.modal-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(24, 53, 43, 0.06);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--ink);
  background: rgba(24, 53, 43, 0.1);
}

.modal-close svg {
  width: 17px;
}

.modal-body {
  padding: 4px 26px 26px;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 210px;
  padding: 25px;
  border: 1.5px dashed rgba(24, 53, 43, 0.2);
  border-radius: 19px;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(217, 247, 125, 0.22), transparent 15rem),
    rgba(243, 241, 232, 0.48);
  transition:
    border-color 160ms ease,
    background 160ms ease;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--forest-2);
  background:
    radial-gradient(circle at 50% 0, rgba(217, 247, 125, 0.32), transparent 16rem),
    rgba(243, 241, 232, 0.72);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 15px;
  border-radius: 17px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  box-shadow: 0 11px 22px rgba(24, 53, 43, 0.1);
}

.drop-icon svg {
  width: 24px;
}

.drop-zone strong {
  display: block;
  font-size: 15px;
}

.drop-zone span {
  display: block;
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 11px;
}

.upload-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  margin-top: 18px;
}

.text-field {
  display: grid;
  gap: 7px;
}

.text-field label {
  font-size: 11px;
  font-weight: 750;
}

.text-field input,
.text-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
}

.text-field textarea {
  min-height: 80px;
  resize: vertical;
}

.text-field input:focus,
.text-field textarea:focus {
  border-color: var(--forest-2);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(34, 83, 68, 0.08);
}

.upload-queue {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.upload-item {
  display: grid;
  grid-template-columns: 41px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.54);
}

.file-icon {
  display: grid;
  width: 41px;
  height: 41px;
  border-radius: 11px;
  place-items: center;
  color: var(--forest);
  background: var(--paper-deep);
}

.file-icon svg {
  width: 18px;
}

.file-info {
  min-width: 0;
}

.file-name {
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 9px;
}

.mini-progress {
  height: 4px;
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(24, 53, 43, 0.08);
}

.mini-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
  transition: width 140ms ease;
}

.upload-item.complete .mini-progress span {
  background: #5aa875;
}

.upload-remove {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  place-items: center;
  color: var(--ink-faint);
  background: transparent;
  cursor: pointer;
}

.upload-remove:hover {
  color: var(--danger);
  background: rgba(182, 66, 50, 0.07);
}

.upload-remove svg {
  width: 14px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.modal-footer-note {
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.55;
}

.modal-footer-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

/* Asset detail */

.detail-modal {
  width: min(1080px, 100%);
  overflow: hidden;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  min-height: 560px;
}

.detail-media {
  position: relative;
  display: grid;
  min-height: 480px;
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%) 0 0 / 20px 20px,
    #15251f;
}

.detail-media img,
.detail-media video {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
}

.detail-media video {
  background: #0d1714;
}

.detail-fallback {
  display: grid;
  padding: 40px;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.detail-fallback .placeholder-icon {
  margin: 0 auto 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.detail-fallback strong {
  display: block;
  font-size: 14px;
}

.detail-fallback p {
  max-width: 310px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.6;
}

.detail-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 25px;
  background: var(--surface);
}

.detail-type {
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.detail-side h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.detail-file-name {
  overflow-wrap: anywhere;
  margin: 8px 0 20px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.5;
}

.detail-section {
  display: grid;
  gap: 9px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.detail-section-label {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-title-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tags .asset-tag {
  max-width: none;
  padding: 5px 8px;
  font-size: 9px;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 10px;
}

.detail-list-row strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.detail-actions .danger-button {
  width: 44px;
  padding: 0;
}

.detail-save {
  display: flex;
  justify-content: flex-end;
}

.members-modal {
  width: min(540px, 100%);
}

.member-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(217, 247, 125, 0.34), transparent 12rem),
    var(--forest);
}

.member-profile-avatar {
  width: 58px;
  height: 58px;
  font-size: 18px;
}

.member-profile-copy {
  min-width: 0;
}

.member-profile-copy span,
.member-profile-copy strong,
.member-profile-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-profile-copy span {
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.member-profile-copy strong {
  margin-top: 3px;
  color: #fff8ea;
  font-size: 19px;
}

.member-profile-copy small {
  margin-top: 4px;
  color: rgba(247, 234, 211, 0.58);
  font-size: 10px;
}

.mail-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(217, 247, 125, 0.22);
  border-radius: 999px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
  background: rgba(217, 247, 125, 0.08);
}

.mail-verified-badge svg {
  width: 12px;
  height: 12px;
}

.member-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.member-facts > div {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.44);
}

.member-facts span,
.member-facts strong {
  display: block;
}

.member-facts span {
  color: var(--ink-faint);
  font-size: 9px;
}

.member-facts strong {
  margin-top: 4px;
  font-size: 12px;
}

.member-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.member-actions .secondary-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 11px;
}

.member-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 9px;
}

.member-section-heading strong,
.member-section-heading span {
  display: block;
}

.member-section-heading strong {
  font-size: 12px;
}

.member-section-heading span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.member-list {
  display: grid;
  gap: 8px;
}

.member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.44);
}

.member-row .avatar {
  width: 39px;
  height: 39px;
}

.member-row strong,
.member-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-row strong {
  font-size: 12px;
}

.member-row span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 9px;
}

.role-badge {
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
  background: rgba(24, 53, 43, 0.06);
}

.role-badge.manager {
  color: var(--forest);
  background: var(--lime);
}

.invite-panel {
  margin-top: 18px;
  padding: 17px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(217, 247, 125, 0.32), transparent 9rem),
    var(--paper);
}

.invite-panel strong {
  display: block;
  font-size: 12px;
}

.invite-panel p {
  margin: 5px 0 12px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.55;
}

.invite-copy-row {
  display: flex;
  gap: 7px;
}

.invite-copy-row input {
  min-width: 0;
  height: 40px;
  flex: 1;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--surface);
}

.copy-button {
  min-height: 40px;
  padding: 0 13px;
}

.toast-region {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
  background: rgba(23, 61, 50, 0.95);
  box-shadow: 0 16px 34px rgba(17, 34, 28, 0.24);
  backdrop-filter: blur(12px);
  animation: toast-in 220ms both;
}

.toast.error {
  background: rgba(143, 51, 40, 0.96);
}

.toast.success::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  content: "";
  border-radius: 50%;
  background: var(--lime);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.spin {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */

@media (max-width: 1180px) {
  .main {
    padding-inline: 26px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    padding: 30px;
  }

  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 32px 24px 46px;
  }

  .auth-mobile-brand {
    display: block;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 0 22px 104px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
    min-height: 76px;
    padding: 11px 0;
  }

  .mobile-top-brand {
    display: block;
    width: 38px;
    height: 38px;
  }

  .mobile-top-brand .brand-mark {
    width: 38px;
    height: 38px;
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .search-box {
    flex: 1;
  }

  .member-stack span {
    display: none;
  }

  .member-stack {
    padding-right: 4px;
  }

  .mobile-upload-top {
    display: inline-grid !important;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-card.wide {
    grid-column: auto;
    display: block;
    min-height: 77px;
  }

  .stat-card.wide .stat-icon {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 50;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    gap: 0;
    min-height: 64px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 21px;
    background: rgba(255, 253, 247, 0.9);
    box-shadow: 0 18px 42px rgba(24, 53, 43, 0.18);
    backdrop-filter: blur(20px);
  }

  .mobile-nav button {
    display: flex;
    width: 80px;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    color: var(--ink-faint);
    font-size: 8px;
    font-weight: 700;
    background: transparent;
    cursor: pointer;
  }

  .mobile-nav button.active {
    color: var(--forest);
    background: var(--lime);
  }

  .mobile-nav .upload-mobile {
    width: 100px;
    color: #fff;
    background: var(--forest);
    transform: translateY(-12px);
    box-shadow: 0 10px 23px rgba(23, 61, 50, 0.24);
  }

  .mobile-nav svg {
    width: 26px;
    height: 26px;
  }

  .mobile-nav .upload-mobile svg {
    width: 30px;
    height: 30px;
  }

  .mobile-nav button:first-child {
    justify-self: start;
  }

  .mobile-nav button:nth-child(2) {
    justify-self: center;
  }

  .mobile-nav button:last-child {
    justify-self: end;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-modal {
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .detail-media {
    min-height: 330px;
    max-height: 55vh;
  }

  .detail-side {
    padding: 22px;
  }
}

@media (max-width: 680px) {
  .main {
    padding-inline: 14px;
  }

  .main-content {
    padding-top: 12px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .search-key,
  .member-stack {
    display: none;
  }

  .hero {
    min-height: 0;
    margin-bottom: 20px;
    padding: 26px 22px 22px;
    border-radius: 23px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero p {
    margin-bottom: 20px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    min-height: 70px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .filter-row {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

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

  .asset-card {
    border-radius: 15px;
  }

  .asset-preview {
    aspect-ratio: 1 / 0.87;
  }

  .asset-info {
    padding: 10px;
  }

  .asset-title {
    font-size: 11px;
  }

  .asset-meta {
    gap: 3px;
    font-size: 8px;
  }

  .asset-meta span:nth-child(2) {
    display: none;
  }

  .asset-download {
    width: 28px;
    height: 28px;
  }

  .asset-tags {
    margin-top: 7px;
  }

  .storage-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .storage-banner button {
    margin-left: 30px;
  }

  .empty-state {
    min-height: 330px;
    padding: 28px 20px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: calc(100dvh - 18px);
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
  }

  .modal-header {
    padding: 20px 18px 14px;
  }

  .modal-body {
    padding: 3px 18px calc(22px + env(safe-area-inset-bottom));
  }

  .drop-zone {
    min-height: 180px;
  }

  .upload-options {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
  }

  .detail-modal {
    height: 100dvh;
    max-height: 100dvh;
  }

  .detail-media {
    min-height: 290px;
    max-height: 48vh;
  }

  .detail-side {
    min-height: 390px;
  }

  .toast-region {
    right: 14px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: calc(100vw - 28px);
  }
}

@media (max-width: 390px) {
  .top-actions > .icon-button:not(.mobile-upload-top) {
    display: none;
  }

  .asset-grid {
    gap: 8px;
  }

  .hero h1 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .code-row {
    grid-template-columns: 1fr;
  }

  .code-send-button {
    width: 100%;
  }

  .captcha-panel {
    grid-template-columns: 1fr;
  }

  .captcha-image-row {
    grid-column: 1;
    grid-row: auto;
    justify-content: space-between;
  }

  .captcha-answer-row {
    grid-template-columns: 1fr;
  }

  .captcha-answer-row .primary-button {
    width: 100%;
  }

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

  .mail-verified-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 沉香篆 visual direction */

h1,
h2,
h3,
.brand,
.hero h1,
.auth-copy h1,
.auth-form-wrap h2,
.section-heading h2,
.modal-header h2,
.detail-side h2,
.empty-state h3 {
  font-family: var(--font-display);
}

body {
  background:
    radial-gradient(circle at 90% 2%, rgba(197, 154, 89, 0.18), transparent 24rem),
    radial-gradient(circle at 8% 94%, rgba(16, 42, 67, 0.05), transparent 28rem),
    linear-gradient(90deg, rgba(119, 82, 44, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(119, 82, 44, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 46px 46px, 46px 46px, auto;
}

.brand {
  gap: 13px;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

.brand-copy small {
  color: currentColor;
  font-family: var(--font);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
  opacity: 0.5;
}

.brand-mark {
  display: block;
  width: 54px;
  height: 62px;
  flex: 0 0 54px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: url("/assets/chenxiang-logo.png") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 7px 13px rgba(4, 15, 24, 0.28));
}

.brand-mark::before {
  display: none;
}

.brand-mark::after {
  display: none;
}

/* Authentication */

.auth-shell {
  grid-template-columns: minmax(0, 1.13fr) minmax(440px, 0.87fr);
  background: var(--paper);
}

.auth-visual {
  min-height: 100vh;
  padding: 42px 56px;
  background:
    url("/assets/incense-gift-box.jpg") center / cover no-repeat;
}

.auth-visual::before {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 26, 42, 0.92) 0%, rgba(9, 26, 42, 0.72) 49%, rgba(9, 26, 42, 0.32) 100%),
    linear-gradient(0deg, rgba(9, 18, 28, 0.82), transparent 52%);
}

.auth-visual::after {
  width: auto;
  height: auto;
  right: 62px;
  top: 96px;
  padding: 12px 10px;
  content: "沉香篆";
  border: 1px solid rgba(218, 183, 112, 0.52);
  border-radius: 2px;
  color: rgba(255, 239, 207, 0.58);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.42em;
  writing-mode: vertical-rl;
  background: rgba(9, 26, 42, 0.22);
  transform: none;
}

.auth-brand {
  color: #fff7e8;
}

.auth-brand .brand-copy small {
  color: #f3dab0;
}

.auth-copy {
  max-width: 700px;
  padding: 5vh 0 2vh;
}

.auth-kicker {
  margin-bottom: 26px;
  border-color: rgba(222, 187, 118, 0.34);
  color: #e6c88f;
  letter-spacing: 0.17em;
}

.auth-kicker::before {
  background: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(223, 189, 123, 0.14);
}

.auth-copy h1 {
  max-width: 590px;
  color: #fff8ea;
  font-size: clamp(52px, 5.6vw, 86px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0.025em;
  text-shadow: 0 8px 35px rgba(9, 20, 30, 0.52);
}

.auth-copy h1 em {
  color: var(--gold-bright);
  font-style: normal;
}

.auth-copy p {
  max-width: 520px;
  margin-top: 26px;
  color: rgba(255, 246, 229, 0.68);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.03em;
}

.auth-collage {
  display: none;
}

.auth-footnote {
  color: rgba(255, 244, 221, 0.48);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
}

.auth-footnote span {
  background: rgba(223, 189, 123, 0.42);
}

.auth-panel {
  position: relative;
  overflow: hidden;
  padding: 54px clamp(32px, 6vw, 86px);
  background:
    radial-gradient(circle at 100% 0, rgba(197, 154, 89, 0.17), transparent 21rem),
    linear-gradient(90deg, rgba(119, 82, 44, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(119, 82, 44, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 38px 38px, 38px 38px, auto;
}

.auth-form-wrap {
  width: min(444px, 100%);
  padding: clamp(25px, 3.4vw, 40px);
  border: 1px solid rgba(89, 59, 35, 0.15);
  border-radius: 8px;
  background: rgba(252, 246, 235, 0.9);
  box-shadow:
    0 28px 70px rgba(51, 31, 17, 0.1),
    inset 0 0 0 5px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.auth-form-wrap::before {
  display: block;
  width: 34px;
  height: 1px;
  margin-bottom: 22px;
  content: "";
  background: var(--gold);
}

.auth-eyebrow {
  margin-bottom: 13px;
  color: #9b3430;
  letter-spacing: 0.16em;
}

.auth-form-wrap h2 {
  color: var(--ink);
  font-size: clamp(31px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-subtitle {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.auth-tabs {
  border: 1px solid rgba(89, 59, 35, 0.1);
  border-radius: 4px;
  background: rgba(93, 65, 42, 0.055);
}

.auth-tab {
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.auth-tab.active {
  color: #fff7e8;
  background: var(--forest);
  box-shadow: none;
}

.field label {
  color: #493629;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.input-shell input {
  height: 50px;
  border-color: rgba(89, 59, 35, 0.17);
  border-radius: 4px;
  background: rgba(255, 252, 246, 0.84);
}

.input-shell input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 154, 89, 0.12);
}

.auth-submit {
  height: 51px;
  border-radius: 3px;
  letter-spacing: 0.18em;
}

.auth-note {
  border-radius: 4px;
  background: rgba(235, 223, 203, 0.42);
}

.auth-mobile-brand {
  color: var(--ink);
}

/* Desktop shell */

.app-shell {
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  padding: 30px 18px 20px;
  border-right: 1px solid rgba(220, 183, 112, 0.2);
  color: #f8eedc;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(197, 154, 89, 0.12), transparent 16rem),
    #0e263c;
  backdrop-filter: none;
}

.sidebar .brand {
  margin-bottom: 40px;
  color: #fff8ea;
}

.sidebar .brand-mark {
  border: 0;
  background: url("/assets/chenxiang-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 8px 15px rgba(3, 13, 21, 0.34));
}

.sidebar .brand-copy small {
  color: #e9cfa1;
}

.sidebar-label {
  color: rgba(233, 207, 161, 0.48);
  letter-spacing: 0.18em;
}

.nav-item {
  min-height: 47px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: rgba(255, 246, 230, 0.62);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.04em;
}

.nav-item:hover {
  color: #fff7e7;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  border-color: rgba(223, 189, 123, 0.18);
  color: #f7dfb5;
  background:
    linear-gradient(90deg, rgba(197, 154, 89, 0.17), rgba(197, 154, 89, 0.04));
  box-shadow: none;
}

.nav-item.active::after {
  width: 5px;
  height: 5px;
  background: #d7ad67;
  box-shadow: 0 0 0 4px rgba(215, 173, 103, 0.1);
}

.project-mini {
  color: rgba(255, 246, 230, 0.72);
}

.project-dot {
  border-radius: 50%;
  background: #cda365;
  box-shadow: 0 0 0 4px rgba(205, 163, 101, 0.1);
}

.sidebar-storage {
  border-color: rgba(223, 189, 123, 0.16);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(255, 255, 255, 0.025);
}

.storage-head {
  color: #f7ead3;
}

.storage-status {
  color: rgba(247, 234, 211, 0.45);
}

.storage-status::before {
  background: #cdb06f;
}

.storage-bar {
  background: rgba(255, 255, 255, 0.08);
}

.storage-bar span {
  background: linear-gradient(90deg, #ad7e42, #e0bd7e);
}

.storage-meta {
  color: rgba(247, 234, 211, 0.42);
}

.sidebar-user {
  border-top: 1px solid rgba(223, 189, 123, 0.12);
  color: #f8eedc;
}

.sidebar .avatar {
  border-color: #17364f;
  color: #1a2f42;
  background: #ddbc81;
}

.user-meta strong {
  color: #fff8ea;
}

.user-meta span {
  color: rgba(247, 234, 211, 0.43);
}

.sidebar .icon-button.subtle {
  color: rgba(247, 234, 211, 0.5);
}

.sidebar .icon-button.subtle:hover {
  color: #f7dfb5;
  background: rgba(255, 255, 255, 0.055);
}

.main {
  padding: 0 34px 84px;
}

.topbar {
  min-height: 84px;
  max-width: 1580px;
  margin-inline: auto;
  background: linear-gradient(var(--paper) 72%, rgba(242, 234, 220, 0));
}

.search-box input {
  height: 46px;
  border-color: rgba(89, 59, 35, 0.15);
  border-radius: 4px;
  background: rgba(252, 246, 235, 0.82);
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 154, 89, 0.1);
}

.search-key,
.member-stack,
.icon-button {
  border-radius: 4px;
}

.member-stack {
  border-radius: 999px;
  background: rgba(252, 246, 235, 0.78);
}

.icon-button {
  border-color: rgba(89, 59, 35, 0.14);
  color: #5d493a;
  background: rgba(252, 246, 235, 0.76);
}

.icon-button:hover {
  color: var(--forest);
  border-color: rgba(197, 154, 89, 0.45);
}

.main-content {
  padding-top: 16px;
}

.storage-banner {
  border-color: rgba(197, 154, 89, 0.25);
  border-radius: 4px;
  color: #725638;
  background: rgba(239, 222, 193, 0.54);
}

.hero {
  min-height: 304px;
  margin-bottom: 30px;
  padding: 36px 38px;
  border: 1px solid rgba(216, 181, 112, 0.52);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(10, 29, 46, 0.97) 0%, rgba(10, 29, 46, 0.87) 42%, rgba(10, 29, 46, 0.22) 77%),
    url("/assets/incense-hero.jpg") center 52% / cover no-repeat;
  box-shadow: 0 24px 60px rgba(50, 33, 19, 0.18);
}

.hero::before {
  display: none;
}

.hero::after {
  width: 250px;
  height: 250px;
  right: 22px;
  bottom: -181px;
  border: 1px solid rgba(229, 194, 126, 0.32);
  background: transparent;
  opacity: 1;
}

.hero-copy {
  max-width: 60%;
}

.hero-kicker {
  margin-bottom: 17px;
  color: #dfbd7b;
  letter-spacing: 0.16em;
}

.hero-kicker::before {
  background: #e0bd7e;
  box-shadow: 0 0 0 5px rgba(224, 189, 126, 0.13);
}

.hero h1 {
  color: #fff8ea;
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-shadow: 0 7px 28px rgba(5, 17, 27, 0.55);
}

.hero h1 span {
  color: #e0bd7e;
}

.hero p {
  max-width: 540px;
  color: rgba(255, 247, 233, 0.66);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.primary-button,
.secondary-button {
  border-radius: 3px;
}

.primary-button.lime {
  border-color: #d3aa68;
  color: #132b42;
  background: linear-gradient(135deg, #dfbd7e, #c39755);
  box-shadow: 0 10px 26px rgba(21, 35, 48, 0.24);
}

.primary-button.lime:hover {
  background: linear-gradient(135deg, #e9cb91, #d0a25d);
}

.hero-stats {
  position: relative;
  z-index: 2;
  align-content: center;
}

.stat-card {
  border-color: rgba(237, 210, 158, 0.22);
  border-radius: 4px;
  background: rgba(12, 28, 42, 0.4);
  backdrop-filter: blur(9px);
}

.stat-label {
  color: rgba(255, 245, 226, 0.5);
}

.stat-value {
  color: #fff7e9;
  font-family: var(--font-display);
}

.stat-icon {
  border-radius: 50%;
  color: #152d44;
  background: #d7b371;
}

.hero-calligraphy {
  position: absolute;
  z-index: 1;
  right: 34px;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255, 240, 211, 0.3);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.hero-calligraphy span:nth-child(2) {
  color: rgba(224, 189, 126, 0.52);
}

.section-heading h2 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.section-heading p {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.count-badge {
  border: 1px solid rgba(197, 154, 89, 0.23);
  border-radius: 3px;
  color: #8a653d;
  background: rgba(197, 154, 89, 0.1);
}

.filter-row {
  border-color: rgba(89, 59, 35, 0.14);
  border-radius: 4px;
  background: rgba(252, 246, 235, 0.75);
}

@media (min-width: 961px) {
  .filter-row {
    display: none;
  }
}

.filter-chip {
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.filter-chip.active {
  color: #fff7e9;
  background: var(--forest);
  box-shadow: none;
}

.asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(222px, 1fr));
  gap: 18px;
}

.asset-card {
  border-color: rgba(89, 59, 35, 0.14);
  border-radius: 5px;
  background: rgba(252, 246, 235, 0.85);
  box-shadow: 0 7px 24px rgba(53, 34, 18, 0.05);
}

.asset-card:hover {
  border-color: rgba(197, 154, 89, 0.55);
  box-shadow: 0 18px 42px rgba(53, 34, 18, 0.13);
}

.asset-preview {
  aspect-ratio: 4 / 3.15;
}

.asset-placeholder.video {
  background:
    radial-gradient(circle at 72% 24%, rgba(224, 189, 126, 0.52), transparent 0 13%, transparent 13.5%),
    linear-gradient(145deg, #0e2a43, #36566b 58%, #896b42);
}

.asset-placeholder.audio {
  background:
    radial-gradient(circle at 28% 22%, rgba(223, 189, 123, 0.48), transparent 0 13%, transparent 13.5%),
    linear-gradient(145deg, #17344d, #5c7585);
}

.asset-placeholder.document {
  background:
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(89, 59, 35, 0.055) 12px 13px),
    linear-gradient(145deg, #eee0ca, #fffaf0);
}

.asset-placeholder .placeholder-icon {
  border: 1px solid rgba(225, 192, 129, 0.42);
  color: #f5dfb7;
  background: rgba(13, 36, 55, 0.62);
}

.asset-placeholder.document .placeholder-icon {
  color: #715638;
  background: rgba(255, 250, 240, 0.9);
}

.asset-type-badge {
  border-color: rgba(223, 189, 123, 0.28);
  border-radius: 2px;
  color: #f6dfb6;
  background: rgba(10, 30, 47, 0.64);
}

.asset-video-play {
  color: #162d44;
  background: rgba(235, 208, 158, 0.92);
}

.asset-info {
  padding: 13px 13px 14px;
}

.asset-title {
  color: #37261d;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.asset-download {
  border-radius: 50%;
  background: rgba(252, 246, 235, 0.86);
}

.asset-download:hover {
  color: #fff5df;
  background: var(--forest);
}

.asset-meta {
  color: #978674;
}

.asset-tag {
  border: 1px solid rgba(197, 154, 89, 0.18);
  border-radius: 2px;
  color: #7c5c39;
  background: rgba(197, 154, 89, 0.09);
}

.empty-state {
  border-color: rgba(89, 59, 35, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(rgba(242, 234, 220, 0.88), rgba(242, 234, 220, 0.94)),
    url("/assets/incense-gift-box.jpg") center / cover;
}

.empty-art {
  width: 230px;
  height: 136px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 6px solid rgba(252, 246, 235, 0.92);
  border-radius: 3px;
  box-shadow: 0 16px 35px rgba(41, 28, 17, 0.16);
  transform: rotate(-2deg);
}

.empty-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-art .empty-sheet {
  display: none;
}

.empty-seal {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(235, 207, 157, 0.75);
  place-items: center;
  color: #f2d8a6;
  font-family: var(--font-display);
  background: rgba(139, 45, 35, 0.88);
}

.empty-state h3 {
  color: #35241a;
  font-size: 24px;
  font-weight: 600;
}

.empty-state p {
  color: #867260;
  font-family: var(--font-display);
}

/* Modals and detail */

.modal-backdrop {
  background: rgba(7, 20, 32, 0.62);
}

.modal {
  border-color: rgba(232, 202, 145, 0.55);
  border-radius: 6px;
  background:
    radial-gradient(circle at 100% 0, rgba(197, 154, 89, 0.11), transparent 18rem),
    var(--surface);
}

.modal-header {
  border-bottom: 1px solid rgba(89, 59, 35, 0.08);
  background: rgba(252, 246, 235, 0.94);
}

.modal-header h2 {
  color: #35241a;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.modal-close {
  border-radius: 50%;
  background: rgba(16, 42, 67, 0.06);
}

.drop-zone {
  border-color: rgba(197, 154, 89, 0.48);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 0, rgba(197, 154, 89, 0.18), transparent 16rem),
    rgba(242, 234, 220, 0.57);
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--forest);
  background:
    radial-gradient(circle at 50% 0, rgba(197, 154, 89, 0.27), transparent 16rem),
    rgba(242, 234, 220, 0.78);
}

.drop-icon {
  border-radius: 50%;
  color: #f8e9cd;
  background: var(--forest);
  box-shadow: 0 11px 26px rgba(16, 42, 67, 0.2);
}

.text-field input,
.text-field textarea,
.detail-title-input {
  border-radius: 3px;
  background: rgba(255, 252, 246, 0.9);
}

.text-field input:focus,
.detail-title-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 154, 89, 0.1);
}

.upload-item,
.member-row {
  border-radius: 4px;
  background: rgba(255, 252, 246, 0.72);
}

.file-icon {
  border-radius: 50%;
  color: #f7e9cf;
  background: var(--forest);
}

.mini-progress span {
  background: linear-gradient(90deg, #b78b4f, #d6b272);
}

.detail-modal {
  border-radius: 6px;
}

.detail-media {
  background:
    radial-gradient(circle at 50% 30%, rgba(197, 154, 89, 0.11), transparent 21rem),
    #0a1c2c;
}

.detail-side {
  background: var(--surface);
}

.detail-type {
  color: #a07746;
}

.detail-side h2 {
  color: #35241a;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.detail-section {
  border-top-color: rgba(89, 59, 35, 0.11);
}

.role-badge {
  border-radius: 2px;
  color: #795a39;
  background: rgba(197, 154, 89, 0.1);
}

.role-badge.manager {
  color: #f8e8c9;
  background: var(--forest);
}

.invite-panel {
  border: 1px solid rgba(197, 154, 89, 0.18);
  border-radius: 4px;
  background:
    radial-gradient(circle at 100% 0, rgba(197, 154, 89, 0.2), transparent 10rem),
    rgba(242, 234, 220, 0.74);
}

.invite-copy-row input {
  border-radius: 3px;
}

.toast {
  border-radius: 4px;
  background: rgba(16, 42, 67, 0.96);
}

@media (max-width: 1180px) {
  .hero-copy {
    max-width: 64%;
  }

  .hero h1 {
    font-size: 46px;
  }
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-panel {
    min-width: 0;
    padding: 30px 24px 44px;
    background:
      linear-gradient(rgba(242, 234, 220, 0.9), rgba(242, 234, 220, 0.96)),
      url("/assets/incense-gift-box.jpg") center / cover fixed;
  }

  .auth-form-wrap {
    width: min(440px, 100%);
    max-width: 100%;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .auth-mobile-brand {
    display: inline-flex;
    color: #35241a;
  }

  .main {
    padding: 0 20px 106px;
  }

  .topbar {
    min-height: 74px;
    background: linear-gradient(var(--paper) 78%, rgba(242, 234, 220, 0));
  }

  .topbar-logout {
    display: inline-grid;
  }

  .mobile-top-brand .brand-mark {
    width: 42px;
    height: 46px;
    flex-basis: 42px;
  }

  .hero {
    min-height: 390px;
    padding: 30px;
    background:
      linear-gradient(90deg, rgba(9, 27, 44, 0.96), rgba(9, 27, 44, 0.78) 65%, rgba(9, 27, 44, 0.38)),
      url("/assets/incense-hero.jpg") center 56% / cover no-repeat;
  }

  .hero-copy {
    max-width: 76%;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-nav {
    border-color: rgba(218, 183, 112, 0.32);
    border-radius: 5px;
    color: #f6e8cd;
    background: rgba(13, 35, 54, 0.96);
    box-shadow: 0 18px 42px rgba(16, 29, 41, 0.28);
  }

  .mobile-nav button {
    border-radius: 3px;
    color: rgba(247, 233, 208, 0.54);
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .mobile-nav button.active {
    color: #f1d39d;
    background: rgba(197, 154, 89, 0.16);
  }

  .mobile-nav button[data-mobile-home] {
    background: transparent;
  }

  .mobile-nav .upload-mobile {
    color: #122a41;
    background: linear-gradient(135deg, #dfbd7e, #bf8f4b);
    box-shadow: 0 10px 23px rgba(9, 24, 38, 0.32);
  }
}

@media (max-width: 680px) {
  .auth-panel {
    align-items: start;
    padding: 22px 15px 34px;
  }

  .auth-form-wrap {
    margin-top: 6vh;
    padding: 25px 21px 24px;
  }

  .auth-mobile-brand {
    margin-bottom: 32px;
  }

  .auth-form-wrap h2 {
    font-size: 32px;
  }

  .main {
    padding-inline: 12px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 68px;
  }

  .top-actions > .icon-button {
    display: none !important;
  }

  .topbar-left {
    gap: 9px;
  }

  .mobile-top-brand {
    width: 42px;
    height: 46px;
  }

  .mobile-top-brand .brand-mark {
    width: 42px;
    height: 46px;
    flex-basis: 42px;
  }

  .search-box input {
    height: 43px;
    padding-left: 41px;
    font-size: 12px;
  }

  .icon-button {
    width: 41px;
    height: 41px;
  }

  .hero {
    min-height: 462px;
    margin-bottom: 22px;
    padding: 24px 20px 21px;
    border-radius: 5px;
    background:
      linear-gradient(180deg, rgba(8, 24, 40, 0.97) 0%, rgba(8, 24, 40, 0.88) 50%, rgba(8, 24, 40, 0.72) 100%),
      url("/assets/incense-hero.jpg") 63% 34% / cover no-repeat;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-kicker {
    margin-bottom: 15px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: 39px;
    line-height: 1.13;
  }

  .hero p {
    max-width: 92%;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-calligraphy {
    right: 18px;
    top: 19px;
    font-size: 22px;
    opacity: 0.62;
  }

  .hero-stats {
    gap: 7px;
  }

  .stat-card {
    min-height: 68px;
    padding: 10px 11px;
  }

  .stat-label {
    font-size: 9px;
  }

  .stat-value {
    margin-top: 5px;
    font-size: 21px;
  }

  .section-head {
    gap: 11px;
    margin-bottom: 14px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .filter-row {
    padding: 3px;
  }

  .filter-chip {
    min-height: 33px;
    padding-inline: 14px;
  }

  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .asset-card {
    border-radius: 4px;
  }

  .asset-info {
    padding: 10px 9px 11px;
  }

  .asset-title {
    font-size: 13px;
  }

  .asset-download {
    width: 27px;
    height: 27px;
  }

  .asset-meta {
    font-family: var(--font);
  }

  .empty-state {
    min-height: 356px;
    padding: 26px 18px;
  }

  .empty-art {
    width: 190px;
    height: 112px;
  }

  .empty-state h3 {
    font-size: 21px;
  }

  .empty-state p {
    font-size: 12px;
  }

  .modal-backdrop {
    background: rgba(5, 16, 27, 0.66);
  }

  .modal {
    border-radius: 16px 16px 0 0;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .drop-zone {
    min-height: 176px;
  }

  .upload-options {
    gap: 10px;
  }

  .mobile-nav {
    left: 9px;
    right: 9px;
    bottom: max(9px, env(safe-area-inset-bottom));
    min-height: 65px;
  }

  .toast-region {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .auth-form-wrap {
    padding-inline: 17px;
  }

  .hero {
    padding-inline: 17px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .asset-grid {
    gap: 8px;
  }

}

.sidebar .brand-copy {
  font-size: 18px;
  line-height: 1;
}

.sidebar .brand-copy small {
  font-size: 9px;
  letter-spacing: 0.22em;
}

.sidebar .nav-item {
  min-height: 50px;
  font-size: 14px;
  letter-spacing: 0.045em;
}

.drop-zone .upload-type-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 18px;
}

.drop-zone .upload-kind {
  display: grid;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(197, 154, 89, 0.35);
  border-radius: 50%;
  place-items: center;
  padding: 0;
  color: var(--forest);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 8px 20px rgba(42, 28, 16, 0.09);
}

.drop-zone .upload-kind svg {
  width: 26px;
  height: 26px;
  margin: auto;
}

.drop-zone .upload-kind.image {
  color: #9d4a3f;
  background: #f4dfd7;
}

.drop-zone .upload-kind.video {
  color: #234b68;
  background: #dfeaf0;
}

.drop-zone .upload-kind.document {
  color: #846236;
  background: #efe4ce;
}

@media (max-width: 680px) {
  .drop-zone .upload-type-cluster {
    gap: 9px;
    margin-bottom: 14px;
  }

  .drop-zone .upload-kind {
    width: 58px;
    height: 58px;
  }

  .drop-zone .upload-kind svg {
    width: 24px;
    height: 24px;
  }
}

/* Editorial split hero */

.hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 35% 105%, rgba(197, 154, 89, 0.18), transparent 24rem),
    linear-gradient(135deg, #092945 0%, #0e2e4a 58%, #14354f 100%);
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 53%;
  display: block;
  width: auto;
  height: auto;
  content: "";
  border-left: 1px solid rgba(218, 183, 112, 0.62);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(249, 238, 217, 0.9), rgba(218, 188, 139, 0.82)),
    url("/assets/incense-tins.jpg") center / cover no-repeat;
  opacity: 1;
}

.hero::after {
  position: absolute;
  z-index: 1;
  left: 52.92%;
  top: 22px;
  right: auto;
  bottom: 22px;
  width: 1px;
  height: auto;
  content: "";
  border: 0;
  border-radius: 0;
  background: linear-gradient(transparent, rgba(248, 222, 171, 0.75), transparent);
  box-shadow: none;
  opacity: 0.85;
}

.hero-copy,
.hero-stats {
  position: relative;
  z-index: 2;
}

.hero-calligraphy {
  display: none;
}

.hero .stat-card {
  border-color: rgba(239, 207, 151, 0.28);
  background: rgba(9, 31, 50, 0.91);
  box-shadow: 0 10px 26px rgba(25, 17, 10, 0.11);
}

.hero .stat-card.wide {
  background: rgba(9, 31, 50, 0.94);
}

@media (max-width: 960px) {
  .hero {
    min-height: 420px;
  }

  .hero::before {
    inset: auto 0 0 0;
    height: 48%;
    border-top: 1px solid rgba(218, 183, 112, 0.62);
    border-left: 0;
    background:
      linear-gradient(180deg, rgba(247, 235, 214, 0.91), rgba(220, 191, 145, 0.84)),
      url("/assets/incense-tins.jpg") center / cover no-repeat;
  }

  .hero::after {
    left: 22px;
    right: 22px;
    top: auto;
    bottom: 47.8%;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(248, 222, 171, 0.7), transparent);
  }

  .hero-copy {
    padding-bottom: 12px;
  }

  .hero-stats {
    margin-top: 15px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 478px;
    background:
      radial-gradient(circle at 28% 10%, rgba(197, 154, 89, 0.18), transparent 15rem),
      linear-gradient(155deg, #092945 0%, #0e304c 100%);
  }

  .hero::before {
    height: 44%;
  }

  .hero::after {
    bottom: 43.8%;
  }
}

/* Smoke-and-blue product hero */

.hero {
  min-height: 326px;
  padding: 38px 40px;
  border: 1px solid rgba(226, 191, 124, 0.58);
  background:
    linear-gradient(90deg, rgba(5, 22, 37, 0.97) 0%, rgba(6, 25, 41, 0.9) 35%, rgba(7, 27, 44, 0.48) 64%, rgba(8, 28, 44, 0.1) 100%),
    linear-gradient(0deg, rgba(4, 17, 29, 0.52), transparent 58%),
    url("/assets/incense-smoke-card.png") center 51% / cover no-repeat;
  box-shadow:
    0 26px 64px rgba(43, 28, 16, 0.2),
    inset 0 0 70px rgba(4, 17, 29, 0.22);
}

.hero::before {
  display: none;
}

.hero::after {
  inset: 14px;
  z-index: 1;
  width: auto;
  height: auto;
  border: 1px solid rgba(234, 201, 142, 0.24);
  border-radius: 2px;
  content: "";
  background:
    linear-gradient(90deg, transparent 72%, rgba(232, 197, 132, 0.08)),
    radial-gradient(circle at 83% 22%, rgba(229, 183, 103, 0.13), transparent 10rem);
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
}

.hero-copy {
  max-width: 53%;
}

.hero h1 {
  color: #fff9ed;
  text-shadow: 0 8px 34px rgba(2, 13, 22, 0.7);
}

.hero p {
  color: rgba(255, 247, 234, 0.74);
}

.hero .stat-card {
  border-color: rgba(238, 204, 143, 0.34);
  background: rgba(8, 29, 47, 0.7);
  box-shadow:
    0 12px 30px rgba(3, 15, 25, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(14px);
}

.hero .stat-card.wide {
  background: rgba(8, 29, 47, 0.78);
}

.hero .stat-value {
  color: #fff9ee;
}

.hero .stat-icon {
  color: #18334d;
  background: linear-gradient(135deg, #e8c98f, #c89a55);
}

@media (max-width: 960px) {
  .hero {
    min-height: 430px;
    background:
      linear-gradient(90deg, rgba(5, 22, 37, 0.98) 0%, rgba(6, 25, 41, 0.93) 54%, rgba(7, 27, 44, 0.58) 100%),
      linear-gradient(0deg, rgba(4, 17, 29, 0.58), transparent 62%),
      url("/assets/incense-smoke-card.png") center / cover no-repeat;
  }

  .hero::after {
    inset: 12px;
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 12px;
    width: auto;
    height: auto;
    background: linear-gradient(90deg, transparent 72%, rgba(232, 197, 132, 0.06));
  }

  .hero-copy {
    max-width: 72%;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 520px;
    padding: 24px 20px 21px;
    background:
      linear-gradient(180deg, rgba(5, 22, 37, 0.98) 0%, rgba(6, 25, 41, 0.9) 55%, rgba(7, 27, 44, 0.62) 100%),
      url("/assets/incense-smoke-card.png") 56% center / cover no-repeat;
  }

  .hero::after {
    inset: 9px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .hero .stat-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 960px) {
  html,
  body,
  .modal {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .modal::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

.topbar-logout {
  display: none;
}

@media (max-width: 960px) {
  .top-actions > .topbar-logout {
    display: inline-grid;
  }
}

@media (max-width: 390px) {
  .top-actions > .icon-button[data-open-config] {
    display: none !important;
  }

  .top-actions > .icon-button[data-logout] {
    display: inline-grid !important;
  }
}

.sidebar-user-static {
  cursor: default;
}

.sidebar-user-static:hover {
  background: transparent;
}
