:root {
  --resource-ink: #17233d;
  --resource-muted: #75819d;
  --resource-faint: #9aa6bf;
  --resource-line: rgba(139, 153, 190, 0.22);
  --resource-card: rgba(255, 255, 255, 0.78);
  --resource-card-strong: rgba(255, 255, 255, 0.94);
  --resource-blue: #2f58ea;
  --resource-blue-soft: #e8eeff;
  --resource-mint: #70dfbe;
  --resource-warn: #b15068;
  --resource-shadow: 0 28px 80px rgba(60, 76, 130, 0.18);
  --resource-radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7f9ff;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--resource-ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 70% 12%, rgba(209, 225, 255, 0.95), transparent 36%),
    linear-gradient(120deg, #f8fbff 0%, #edf3ff 46%, #f9fbff 100%);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

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

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.resource-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.resource-orb {
  position: absolute;
  display: block;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.5;
}

.resource-orb--blue {
  top: 7%;
  right: 14%;
  background: #b8c8ff;
}

.resource-orb--mint {
  bottom: 8%;
  left: 28%;
  background: #c7f5e9;
}

.resource-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 88, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 88, 234, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
}

.resource-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: 100vh;
}

.resource-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 36px 24px;
  border-right: 1px solid var(--resource-line);
  background: rgba(247, 250, 255, 0.72);
  backdrop-filter: blur(28px);
}

.resource-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.resource-brand__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(145deg, #2854ec, #6f82ff);
  box-shadow: 0 18px 42px rgba(47, 88, 234, 0.3);
}

.resource-brand strong,
.resource-brand span {
  display: block;
}

.resource-brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.resource-brand div > span {
  margin-top: 4px;
  color: var(--resource-faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.resource-nav {
  display: grid;
  gap: 12px;
}

.resource-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: #4d5a78;
  border: 0;
  border-radius: 18px;
  background: transparent;
  text-decoration: none;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.resource-nav__link:hover,
.resource-nav__link--active {
  color: var(--resource-blue);
  background: var(--resource-card-strong);
  box-shadow: 0 18px 46px rgba(58, 74, 119, 0.1);
  transform: translateX(4px);
}

.resource-access-card {
  position: absolute;
  right: 24px;
  bottom: 32px;
  left: 24px;
  padding: 18px;
  border: 1px solid var(--resource-line);
  border-radius: 24px;
  background: var(--resource-card);
  box-shadow: var(--resource-shadow);
}

.resource-access-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}

.resource-access-card p {
  margin: 8px 0 0;
  color: var(--resource-muted);
  font-size: 13px;
  line-height: 1.5;
}

.resource-main {
  min-width: 0;
  padding: 34px 38px 42px;
}

.resource-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.resource-kicker {
  color: #98a4bf;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.resource-topbar h1 {
  margin: 8px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.resource-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.resource-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(420px, 34vw);
  padding: 0 18px;
  border: 1px solid var(--resource-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(47, 67, 116, 0.08);
}

.resource-search input {
  width: 100%;
  min-height: 58px;
  color: var(--resource-ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 800;
}

.resource-search input::placeholder {
  color: #9aa5bd;
}

.resource-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #19264a;
  font-weight: 900;
  box-shadow: 0 20px 48px rgba(25, 38, 74, 0.26);
}

.resource-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 239, 255, 0.72)),
    radial-gradient(circle at 82% 20%, rgba(112, 223, 190, 0.32), transparent 32%);
  box-shadow: var(--resource-shadow);
}

.resource-hero__copy {
  max-width: 760px;
}

.resource-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  color: #2751d8;
  border-radius: 999px;
  background: #e8eeff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-hero h2 {
  margin: 18px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.resource-hero p {
  max-width: 690px;
  margin: 0;
  color: var(--resource-muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
}

.resource-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 14px;
  border: 1px solid rgba(139, 153, 190, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #6b5b16;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(47, 67, 116, 0.08);
}

.resource-sync-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d9a500;
  box-shadow: 0 0 0 5px rgba(217, 165, 0, 0.12);
}

.resource-sync-badge--synced {
  color: #16724f;
  border-color: rgba(36, 177, 123, 0.24);
  background: rgba(232, 250, 243, 0.9);
}

.resource-sync-badge--synced .resource-sync-badge__dot {
  background: #24b17b;
  box-shadow: 0 0 0 5px rgba(36, 177, 123, 0.14);
}

.resource-sync-badge--syncing,
.resource-sync-badge--idle {
  color: #7a6112;
  border-color: rgba(217, 165, 0, 0.24);
  background: rgba(255, 248, 221, 0.88);
}

.resource-sync-badge--syncing .resource-sync-badge__dot,
.resource-sync-badge--idle .resource-sync-badge__dot {
  background: #d9a500;
  box-shadow: 0 0 0 5px rgba(217, 165, 0, 0.14);
}

.resource-sync-badge--syncing .resource-sync-badge__dot {
  animation: resourceSyncPulse 1.2s ease-in-out infinite;
}

.resource-sync-badge--error {
  color: #a7324d;
  border-color: rgba(177, 80, 104, 0.24);
  background: rgba(255, 236, 241, 0.9);
}

.resource-sync-badge--error .resource-sync-badge__dot {
  background: #b15068;
  box-shadow: 0 0 0 5px rgba(177, 80, 104, 0.14);
}

@keyframes resourceSyncPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

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

.resource-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-width: 220px;
}

.resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.resource-button:disabled,
.resource-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  pointer-events: none;
}

.resource-button--primary {
  color: #fff;
  background: linear-gradient(135deg, #2f58ea, #6d84ff);
  box-shadow: 0 18px 38px rgba(47, 88, 234, 0.28);
}

.resource-button--ghost {
  color: #2f4f9b;
  border: 1px solid var(--resource-line);
  background: rgba(255, 255, 255, 0.8);
}

.resource-button--download {
  color: #2751d8;
  border: 1px solid rgba(47, 88, 234, 0.16);
  background: #eef3ff;
}

.resource-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--resource-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
  width: fit-content;
}

.resource-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  color: #52607c;
  border: 0;
  border-radius: 18px;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.resource-tab--active {
  color: var(--resource-blue);
  background: #fff;
  box-shadow: 0 16px 36px rgba(47, 67, 116, 0.12);
}

.resource-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.resource-metric {
  padding: 22px;
  border: 1px solid var(--resource-line);
  border-radius: 24px;
  background: var(--resource-card);
  box-shadow: 0 14px 42px rgba(47, 67, 116, 0.08);
}

.resource-metric span {
  color: var(--resource-faint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resource-metric strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  letter-spacing: -0.06em;
}

.resource-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(420px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.resource-panel {
  min-width: 0;
  min-height: 620px;
  border: 1px solid var(--resource-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--resource-shadow);
  overflow: hidden;
}

.resource-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 92px;
  padding: 22px;
  border-bottom: 1px solid var(--resource-line);
  background: rgba(255, 255, 255, 0.58);
}

.resource-panel__head > div {
  min-width: 0;
}

.resource-panel__head h3 {
  margin: 6px 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.resource-panel--viewer .resource-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.resource-panel--viewer .resource-button--download {
  flex: 0 0 auto;
  min-width: 132px;
  white-space: nowrap;
}

.resource-panel__head select {
  min-height: 40px;
  padding: 0 12px;
  color: var(--resource-ink);
  border: 1px solid var(--resource-line);
  border-radius: 14px;
  background: #fff;
  font-weight: 800;
}

.resource-browser-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-mini-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  color: #2f4f9b;
  border: 1px solid var(--resource-line);
  border-radius: 14px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.resource-mini-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.resource-browser-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--resource-line);
  background: rgba(244, 248, 255, 0.72);
}

.resource-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--resource-muted);
  font-size: 13px;
  font-weight: 900;
}

.resource-breadcrumb {
  display: inline-flex;
  align-items: center;
  max-width: 170px;
  min-height: 32px;
  padding: 0 10px;
  overflow: hidden;
  color: #3154c9;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 88, 234, 0.08);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
  cursor: pointer;
}

.resource-breadcrumb--current {
  color: var(--resource-ink);
  background: rgba(255, 255, 255, 0.78);
  cursor: default;
}

.resource-breadcrumb-separator {
  flex: 0 0 auto;
  color: #a4afc6;
}

.resource-browser-list {
  max-height: calc(100vh - 370px);
  min-height: 520px;
  padding: 14px;
  overflow: auto;
}

.resource-tree__item {
  display: block;
  margin-bottom: 8px;
}

.resource-tree__button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  color: #43506d;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.resource-tree__button:hover,
.resource-tree__button--active {
  color: var(--resource-blue);
  background: #eef3ff;
}

.resource-tree__children {
  margin: 4px 0 4px 16px;
  padding-left: 12px;
  border-left: 1px solid var(--resource-line);
}

.resource-file-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 22px;
  background: rgba(248, 250, 255, 0.88);
  text-align: left;
  cursor: pointer;
}

.resource-folder-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(235, 241, 255, 0.82));
  border-color: rgba(47, 88, 234, 0.12);
}

.resource-folder-card .resource-file-card__icon {
  color: #fff;
  background: linear-gradient(145deg, #2f58ea, #7a8fff);
  box-shadow: 0 14px 32px rgba(47, 88, 234, 0.2);
}

.resource-folder-card .resource-file-card__type {
  color: #304d9c;
  background: #dfe7ff;
}

.resource-list-hint {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px 16px;
  color: #3154c9;
  border: 1px solid rgba(47, 88, 234, 0.18);
  border-radius: 18px;
  background: #eef3ff;
  font-size: 13px;
  font-weight: 800;
}

.resource-list-hint strong,
.resource-list-hint span {
  display: block;
}

.resource-list-hint span {
  color: #687694;
  line-height: 1.45;
}

.resource-file-card:hover,
.resource-file-card--active {
  border-color: rgba(47, 88, 234, 0.22);
  background: #fff;
  box-shadow: 0 18px 42px rgba(47, 67, 116, 0.1);
}

.resource-file-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--resource-blue);
  border-radius: 16px;
  background: #e9efff;
}

.resource-file-card strong,
.resource-file-card span {
  display: block;
}

.resource-file-card strong {
  overflow-wrap: anywhere;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.resource-file-card span {
  margin-top: 4px;
  color: var(--resource-muted);
  font-size: 12px;
  font-weight: 800;
}

.resource-file-card__type {
  padding: 7px 9px;
  color: #2b54db;
  border-radius: 999px;
  background: #eaf0ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-count {
  color: var(--resource-muted);
  font-size: 13px;
  font-weight: 900;
}

.resource-viewer {
  position: relative;
  min-height: calc(100vh - 462px);
  height: 520px;
  margin: 14px;
  border: 1px solid var(--resource-line);
  border-radius: 24px;
  background: #f9fbff;
  overflow: hidden;
}

.resource-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.resource-viewer-empty {
  display: grid;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 34px;
  color: var(--resource-muted);
  text-align: center;
}

.resource-viewer-empty .material-symbols-outlined {
  color: var(--resource-blue);
  font-size: 48px;
}

.resource-viewer-empty strong {
  color: var(--resource-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.resource-viewer-empty p {
  max-width: 420px;
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}

.resource-status {
  min-height: 22px;
  margin: 0;
  padding: 0 22px 20px;
  color: var(--resource-muted);
  font-size: 13px;
  font-weight: 800;
}

.resource-status--error {
  color: var(--resource-warn);
}

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

  .resource-workspace {
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  }

  .resource-panel--viewer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .resource-shell {
    display: block;
  }

  .resource-sidebar {
    position: relative;
    height: auto;
    padding: 22px;
  }

  .resource-access-card {
    position: static;
    margin-top: 18px;
  }

  .resource-main {
    padding: 22px;
  }

  .resource-topbar,
  .resource-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .resource-user,
  .resource-search {
    width: 100%;
    min-width: 0;
  }

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

  .resource-panel--viewer .resource-panel__head {
    grid-template-columns: 1fr;
  }

  .resource-panel--viewer .resource-button--download {
    width: 100%;
  }
}
