:root {
  --white: rgba(255, 255, 255, 0.97);
  --glass: rgba(255, 255, 255, 0.022);
  --glass-strong: rgba(255, 255, 255, 0.038);
  --line: rgba(255, 255, 255, 0.024);
  --text: #15304f;
  --shadow: 0 20px 60px rgba(5, 12, 28, 0.48);
  --dock-shadow: 0 28px 56px rgba(5, 10, 24, 0.52);
  --glass-blur: 20px;
  --glass-saturate: 122%;
  --motion-fast: 0.18s;
  --motion-medium: 0.28s;
  --motion-slow: 0.42s;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Display", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--white);
  background:
    linear-gradient(rgba(8, 16, 32, 0.36), rgba(8, 16, 32, 0.28)),
    radial-gradient(circle at 20% 72%, rgba(58, 220, 255, 0.2), transparent 24%),
    radial-gradient(circle at 72% 18%, rgba(255, 62, 210, 0.16), transparent 18%),
    url("icon/Background.jpg") center center / cover no-repeat;
  overflow-x: hidden;
  background-color: #081125;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 28px 150px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.traffic {
  display: flex;
  gap: 8px;
}

.traffic span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.traffic .red { background: #ff5f57; }
.traffic .yellow { background: #febc2e; }
.traffic .green { background: #28c840; }

.status-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 26px;
}

.glass-box {
  padding: 18px 20px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--shadow);
}

.logo-box,
.account-box {
  width: 260px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(145deg, #1a73ff, #5dd8ff);
  box-shadow: 0 14px 30px rgba(19, 100, 238, 0.3);
}

.center-stage {
  min-height: calc(100vh - 260px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home-stage {
  min-height: calc(100vh - 250px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.eyebrow {
  font-size: 18px;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(20, 33, 58, 0.18);
}

h1 {
  margin: 0;
  font-size: clamp(56px, 12vw, 108px);
  line-height: 0.95;
  text-shadow: 0 12px 34px rgba(14, 26, 49, 0.24);
}

.lead {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 19px;
  line-height: 1.6;
  text-shadow: 0 4px 14px rgba(20, 33, 58, 0.18);
}

.welcome-title {
  margin: 0;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.98;
  text-shadow: 0 12px 34px rgba(14, 26, 49, 0.24);
}

.welcome-copy {
  max-width: 840px;
  margin: 16px auto 0;
  font-size: 20px;
  line-height: 1.6;
}

.quick-modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1160px;
  margin: 32px auto 0;
}

.quick-card {
  padding: 18px;
  border-radius: 26px;
  text-align: left;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.quick-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 18px rgba(18, 30, 50, 0.18);
}

.quick-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.quick-card span {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.dock-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  z-index: 20;
}

.dock {
  display: flex;
  gap: 16px;
  align-items: end;
  padding: 18px 20px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
  border: 1px solid var(--line);
  box-shadow: var(--dock-shadow);
}

.desktop-panel {
  width: 100%;
  max-width: 1040px;
  margin: 16px auto 0;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--shadow);
}

.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.desktop-title h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.04;
}

.desktop-title p,
.desktop-meta,
.module-card p,
.module-window p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.desktop-meta {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-card,
.module-window {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.module-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.module-card strong,
.module-window strong {
  display: block;
  font-size: 16px;
}

.module-badges,
.window-actions,
.window-mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-badge,
.window-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.desktop-windows {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 14px;
}

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.window-mini-grid {
  margin-top: 12px;
}

.window-column {
  display: grid;
  gap: 14px;
}

.module-card.large {
  grid-column: span 2;
}

.minimal-home {
  overflow-x: hidden;
  overflow-y: auto;
}

.minimal-shell {
  position: relative;
  min-height: 100vh;
  padding: 0 12px 168px;
  isolation: isolate;
}

.desktop-topbar {
  position: fixed;
  top: 8px;
  left: 50%;
  right: auto;
  width: min(1240px, calc(100vw - 28px));
  transform: translateX(-50%);
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 18px;
}

.topbar-status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.status-pill-mini {
  min-width: 96px;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 16px rgba(5, 10, 24, 0.16);
}

.status-pill-mini strong,
.status-pill-mini span {
  display: block;
}

.status-pill-mini strong {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill-mini span {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.96);
}

.topbar-search {
  flex: 1 1 480px;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.topbar-search-icon {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.topbar-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.topbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.topbar-search button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.brand-chip,
.account-chip {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-chip {
  gap: 10px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-chip strong,
.account-chip strong {
  display: block;
  font-size: 13px;
}

.brand-chip span,
.account-chip span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.brand-signature {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.brand-mark,
.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 18px rgba(4, 10, 24, 0.38), 0 4px 0 rgba(255,255,255,0.08), inset 0 7px 10px rgba(255, 255, 255, 0.42), inset 0 -8px 10px rgba(0, 0, 0, 0.22);
}

.brand-mark::before,
.account-avatar::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.08));
}

.brand-mark::after,
.account-avatar::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(255,255,255,0.34));
  opacity: 0.58;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: rgba(8, 22, 44, 0.9);
  box-shadow: 0 12px 20px rgba(4, 10, 24, 0.34), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.brand-mark::before,
.brand-mark::after {
  content: none;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
}

.account-avatar {
  background: linear-gradient(165deg, #8eb2ff, #6c52ff);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.topbar-btn-strong {
  background: rgba(255, 255, 255, 0.16);
}

.floating-notice[hidden] {
  display: none;
}

.floating-notice {
  position: fixed;
  top: 22px;
  right: 22px;
  left: auto;
  transform: translateY(-12px);
  z-index: 2147483647;
  min-width: 320px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.floating-notice[data-tone="success"] {
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(13, 55, 34, 0.94);
}

.floating-notice[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(91, 23, 23, 0.94);
}

.floating-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 2147483646;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 18, 34, 0.92);
  color: #fff;
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.upload-progress-head strong,
.upload-progress-head span,
.upload-progress p {
  font-size: 13px;
}

.upload-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8 0%, #3b82f6 46%, #22c55e 100%);
  transition: width 0.16s ease;
}

.upload-progress p {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.5;
}

.upload-progress[data-state="error"] .upload-progress-bar {
  background: linear-gradient(90deg, #fb7185 0%, #ef4444 100%);
}

body.explorer-overlay-open .desktop-topbar,
body.explorer-overlay-open .dock-wrap {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

body.explorer-overlay-open .minimal-dock-wrap {
  transform: translateY(24px);
}

@media (max-width: 720px) {
  .upload-progress,
  .floating-notice {
    top: 16px;
    right: 16px;
    min-width: 0;
    max-width: none;
  }

  .floating-notice {
    left: 16px;
  }

  .upload-progress {
    left: 16px;
    right: 16px;
    width: auto;
  }
}

.desktop-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.9;
}

.desktop-aura-left {
  width: 420px;
  height: 420px;
  left: -90px;
  top: 90px;
  background: radial-gradient(circle, rgba(79, 156, 255, 0.44) 0%, rgba(79, 156, 255, 0.06) 58%, transparent 76%);
}

.desktop-aura-right {
  width: 620px;
  height: 620px;
  right: -120px;
  bottom: 80px;
  background: radial-gradient(circle, rgba(255, 156, 76, 0.38) 0%, rgba(203, 77, 129, 0.12) 52%, transparent 72%);
}

.home-dashboard {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 72px));
  margin: 92px auto 0;
  padding: 22px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(21, 30, 43, 0.58), rgba(11, 18, 28, 0.46));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(4, 10, 24, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  will-change: transform, opacity;
}

.home-widget,
.topbar-btn,
.home-file-type,
.quick-action-pill,
.type-card,
.file-card,
.action-card,
.popover-close,
.search-result-item,
.home-file-row,
.dock-icon,
.dock-item::after,
.dock-item > div:last-child,
.glass-surface,
.module-popover,
.signature-control-panel,
.inline-preview-panel {
  transition:
    transform var(--motion-medium) var(--motion-ease),
    opacity var(--motion-medium) var(--motion-ease),
    box-shadow var(--motion-medium) var(--motion-ease),
    border-color var(--motion-medium) var(--motion-ease),
    background-color var(--motion-medium) var(--motion-ease),
    filter var(--motion-medium) var(--motion-ease);
}

.panel-enter {
  animation: panelFloatIn var(--motion-slow) var(--motion-ease);
}

@keyframes panelFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-dashboard-head {
  margin-bottom: 18px;
  padding: 0 4px;
}

.home-context-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.context-card {
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 36px rgba(4, 10, 24, 0.24), inset 0 1px 0 rgba(255,255,255,0.12);
}

.context-card-highlight {
  background: linear-gradient(145deg, rgba(86, 151, 255, 0.24), rgba(255, 181, 89, 0.14));
}

.context-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.context-card strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.context-card p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  font-size: 14px;
}

.home-dashboard-head h2,
.widget-head h3 {
  display: block;
  margin: 0;
}

.home-dashboard-head p,
.widget-head p,
.weather-body p,
.search-result-item span,
.home-file-row span,
.schedule-item span {
  color: rgba(255,255,255,0.84);
}

.home-dashboard-head h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.home-dashboard-head p {
  margin: 0;
  max-width: 720px;
  line-height: 1.65;
  font-size: 15px;
}

.home-widget-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
  grid-template-areas:
    "schedule weather"
    "schedule todo"
    "files files"
    "search search";
  gap: 16px;
  align-items: stretch;
}

.home-widget {
  padding: 18px;
  border-radius: 24px;
}

.schedule-widget { grid-area: schedule; min-height: 420px; }

.weather-widget { grid-area: weather; min-height: 196px; }

.todo-widget { grid-area: todo; min-height: 208px; }

.file-overview-widget { grid-area: files; min-height: 228px; }

.search-widget {
  grid-area: search;
}

.widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.widget-head h3 {
  font-size: 21px;
}

.widget-head p {
  margin: 6px 0 0;
  line-height: 1.55;
  font-size: 14px;
}

.widget-badge,
.weather-temp {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  white-space: nowrap;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.inline-form-wide {
  grid-template-columns: 1fr auto;
}

.inline-form input,
.todo-item input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 12px 14px;
  font: inherit;
}

.inline-form input::placeholder,
.todo-item input::placeholder {
  color: rgba(255,255,255,0.58);
}

.inline-form button,
.todo-item button,
.schedule-meta button,
.home-file-type {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 11px 14px;
  cursor: pointer;
  font: inherit;
}

.inline-form button,
.todo-item button,
.schedule-meta button {
  min-width: 82px;
  font-weight: 700;
  background: linear-gradient(145deg, rgba(84, 151, 255, 0.92), rgba(59, 111, 231, 0.92));
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 12px 22px rgba(8, 24, 58, 0.28), inset 0 1px 0 rgba(255,255,255,0.24);
}

.todo-item button,
.schedule-meta button {
  min-width: 74px;
  padding: 9px 12px;
  background: linear-gradient(145deg, rgba(255, 126, 126, 0.9), rgba(214, 73, 73, 0.92));
}

.inline-form button:hover,
.todo-item button:hover,
.schedule-meta button:hover,
.home-file-type:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.schedule-list,
.todo-list,
.home-file-list,
.search-result-list {
  display: grid;
  gap: 12px;
}

.schedule-item,
.todo-item,
.home-file-row,
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.home-file-row {
  cursor: pointer;
}

.home-file-row-text,
.search-result-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.home-file-row-action,
.search-result-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.96);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.home-file-row,
.search-result-item,
.file-card {
  width: 100%;
  color: inherit;
  font: inherit;
}

button.home-file-row,
button.search-result-item,
button.file-card {
  appearance: none;
}

.schedule-item strong,
.home-file-row strong,
.search-result-item strong {
  display: block;
}

.schedule-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.schedule-meta span,
.home-file-row span,
.search-result-item span {
  white-space: nowrap;
  font-size: 13px;
}

.weather-body {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 156px;
}

.schedule-item,
.todo-item,
.home-file-row,
.search-result-item {
  flex-wrap: wrap;
}

.weather-hero {
  width: 104px;
  height: 104px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  font-size: 48px;
  background: linear-gradient(165deg, #ffd36a, #ff8e4a);
  box-shadow: 0 22px 34px rgba(8,16,34,0.32), inset 0 10px 14px rgba(255,255,255,0.22), inset 0 -10px 12px rgba(0,0,0,0.14);
}

.file-type-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.home-file-type.active {
  background: rgba(255,255,255,0.18);
}

.empty-state {
  justify-content: flex-start;
}

.home-dashboard.home-desktop-shell {
  width: min(1260px, calc(100vw - 48px));
  margin: 92px auto 0;
  padding: 18px 20px 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 22%, rgba(94, 173, 255, 0.1), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(17, 24, 39, 0.16), transparent 40%),
    transparent;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-dashboard.home-desktop-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-dashboard.home-desktop-shell .home-dashboard-head-compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px 10px;
  margin-bottom: 12px;
}

.home-dashboard.home-desktop-shell .home-dashboard-head-compact h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.home-dashboard.home-desktop-shell .home-dashboard-head-compact p {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.55;
}

.home-desktop-note {
  max-width: 320px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-desktop-note strong {
  display: block;
  margin-top: 10px;
  font-size: 15px;
}

.home-desktop-note p {
  margin: 8px 0 0;
  font-size: 12px !important;
  line-height: 1.55;
}

.home-dashboard.home-desktop-shell .home-desktop-grid {
  grid-template-columns: 236px minmax(0, 1fr) 248px;
  gap: 16px;
  align-items: start;
}

.home-desktop-panel,
.home-shortcut-picker,
.home-command-card,
.home-mini-panel {
  position: relative;
  padding: 14px;
  border-radius: 24px;
  background: rgba(8, 14, 26, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(3, 8, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-shortcut-panel {
  display: grid;
  gap: 12px;
}

.widget-head-compact {
  align-items: flex-start;
  margin-bottom: 12px;
}

.widget-head-compact h3 {
  font-size: 15px;
}

.widget-head-compact p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
}

.home-dashboard.home-desktop-shell .widget-badge,
.home-dashboard.home-desktop-shell .weather-temp {
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  align-content: start;
  min-height: 530px;
}

.home-shortcut-slot {
  min-height: 74px;
}

.home-shortcut-slot.is-empty {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.home-shortcut-slot.is-empty:hover,
.home-shortcut-slot.is-empty:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.home-shortcut-slot.is-filled {
  position: relative;
}

.home-shortcut-launch {
  width: 100%;
  min-height: 74px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 10px 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.home-shortcut-launch:hover,
.home-shortcut-launch:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.home-shortcut-remove {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.home-shortcut-icon {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.home-shortcut-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-shortcut-copy strong {
  display: block;
  font-size: 11px;
  line-height: 1.25;
}

.home-shortcut-copy small {
  display: block;
  font-size: 9.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.66);
}

.home-shortcut-picker {
  padding: 12px;
  border-radius: 22px;
}

.home-shortcut-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.home-shortcut-picker-head strong {
  display: block;
  font-size: 12px;
}

.home-shortcut-picker-head span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.68);
}

.home-shortcut-picker-close {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.home-shortcut-picker-groups {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.home-shortcut-picker-group {
  display: grid;
  gap: 8px;
}

.home-shortcut-picker-group header {
  display: grid;
  gap: 3px;
}

.home-shortcut-picker-group header strong {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-shortcut-picker-group header span {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.62);
}

.home-shortcut-option-list {
  display: grid;
  gap: 8px;
}

.home-shortcut-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-shortcut-option:hover,
.home-shortcut-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.home-shortcut-option-icon {
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.home-shortcut-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-shortcut-option-copy strong {
  font-size: 11px;
}

.home-shortcut-option-copy small {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.35;
}

.home-shortcut-picker-empty {
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 4px;
}

.home-shortcut-picker-empty strong {
  font-size: 11px;
}

.home-shortcut-picker-empty span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.68);
}

.home-ai-stage-panel {
  display: grid;
  gap: 14px;
}

.home-ai-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 18px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02) 34%, rgba(255, 255, 255, 0.01) 58%, transparent 72%), rgba(7, 12, 22, 0.18);
}

.home-ai-beacon {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.home-ai-beacon-star {
  width: 210px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 2%, 61% 36%, 97% 36%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 3% 36%, 39% 36%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(117, 188, 255, 0.18) 48%, rgba(51, 89, 188, 0.18));
  box-shadow: 0 20px 48px rgba(6, 14, 32, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.home-ai-beacon-core {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.16em;
  transform: translateY(-2px);
}

.home-ai-beacon-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.home-ai-stage-copy {
  margin: 0;
  max-width: 420px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.home-command-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-command-card {
  min-height: 0;
}

.home-inline-compact {
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.home-inline-compact input,
.home-mini-form input {
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.home-inline-compact button,
.home-mini-form button {
  min-width: 54px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 11px;
  box-shadow: none;
}

.home-mini-list {
  gap: 8px;
}

.home-mini-list .schedule-item,
.home-mini-list .todo-item,
.home-mini-list .home-file-row,
.home-mini-list .search-result-item {
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
}

.home-mini-list .schedule-item strong,
.home-mini-list .todo-item input,
.home-mini-list .home-file-row strong,
.home-mini-list .search-result-item strong {
  font-size: 11px;
}

.home-mini-list .schedule-item span,
.home-mini-list .todo-item input,
.home-mini-list .home-file-row span,
.home-mini-list .search-result-item span {
  font-size: 10px;
}

.home-mini-list .todo-item input {
  padding: 0;
  border: 0;
  background: transparent;
}

.home-mini-list .todo-item button,
.home-mini-list .schedule-meta button {
  min-width: 48px;
  padding: 7px 10px;
  font-size: 10px;
  border-radius: 10px;
  box-shadow: none;
}

.home-mini-list .home-file-row-action,
.home-mini-list .search-result-action {
  padding: 6px 8px;
  font-size: 9.5px;
  border-radius: 999px;
}

.home-file-switches {
  gap: 6px;
  margin-bottom: 10px;
}

.home-dashboard.home-desktop-shell .home-file-type {
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.home-dashboard.home-desktop-shell .home-file-type.active {
  background: rgba(255, 255, 255, 0.12);
}

.home-right-rail {
  display: grid;
  gap: 12px;
}

.home-mini-panel {
  padding: 12px;
  background: rgba(8, 14, 26, 0.24);
}

.home-mini-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.home-weather-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-weather-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
}

.home-weather-body strong {
  display: block;
  font-size: 12px;
}

.home-weather-body p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.home-focus-list {
  display: grid;
  gap: 8px;
  padding-left: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.home-focus-list li {
  font-size: 10.5px;
  line-height: 1.45;
}

.home-dashboard.home-desktop-shell .type-word {
  background: linear-gradient(145deg, rgba(92, 160, 255, 0.26), rgba(62, 113, 255, 0.12));
}

.home-dashboard.home-desktop-shell .type-excel {
  background: linear-gradient(145deg, rgba(87, 214, 168, 0.24), rgba(33, 132, 105, 0.12));
}

.home-dashboard.home-desktop-shell .type-ppt {
  background: linear-gradient(145deg, rgba(255, 165, 113, 0.24), rgba(219, 92, 39, 0.12));
}

.home-dashboard.home-desktop-shell .type-pdf {
  background: linear-gradient(145deg, rgba(255, 123, 123, 0.22), rgba(170, 42, 42, 0.12));
}

.home-dashboard.home-desktop-shell .type-scan {
  background: linear-gradient(145deg, rgba(190, 153, 255, 0.24), rgba(89, 73, 185, 0.12));
}

@media (max-width: 1180px) {
  .home-dashboard.home-desktop-shell .home-desktop-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .home-dashboard.home-desktop-shell .home-right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-dashboard.home-desktop-shell {
    width: min(100vw - 24px, 1260px);
    padding: 16px;
  }

  .home-dashboard.home-desktop-shell .home-dashboard-head-compact {
    flex-direction: column;
  }

  .home-dashboard.home-desktop-shell .home-desktop-grid {
    grid-template-columns: 1fr;
  }

  .home-dashboard.home-desktop-shell .home-shortcut-grid {
    min-height: 0;
  }

  .home-dashboard.home-desktop-shell .home-command-deck {
    grid-template-columns: 1fr;
  }

  .home-dashboard.home-desktop-shell .home-right-rail {
    grid-template-columns: 1fr;
  }

  .home-dashboard.home-desktop-shell .home-ai-stage {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .home-dashboard.home-desktop-shell .home-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .home-dashboard.home-desktop-shell .home-ai-beacon-star {
    width: 164px;
  }

  .home-dashboard.home-desktop-shell .home-inline-compact,
  .home-dashboard.home-desktop-shell .home-mini-form {
    grid-template-columns: 1fr;
  }

  .home-dashboard.home-desktop-shell .home-shortcut-launch {
    min-height: 68px;
  }
}

.module-popover {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: min(940px, calc(100vw - 56px));
  margin: 96px auto 0;
  padding: 22px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.024);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: 0 30px 80px rgba(8, 16, 34, 0.42);
  z-index: 18;
}

.glass-surface {
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: 0 24px 56px rgba(4, 10, 24, 0.16);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface,
  .module-popover,
  .desktop-topbar,
  .toolbar,
  .glass-box,
  .status-pill {
    background: rgba(16, 24, 38, 0.88);
  }
}

.desktop-topbar,
.topbar-search,
.topbar-search button,
.topbar-btn,
.home-dashboard,
.schedule-item,
.todo-item,
.home-file-row,
.search-result-item,
.browser-toolbar,
.browser-meta,
.view-toggle,
.upload-mini,
.type-card,
.file-card,
.inline-preview-sidebar,
.inline-preview-canvas,
.preview-meta-item,
.popover-close,
.signature-card,
.signature-status-bar,
.signature-field select {
  border-color: rgba(255, 255, 255, 0.018) !important;
}

.document-workspace {
  position: relative;
  width: min(1320px, calc(100vw - 48px));
  margin: 96px auto 0;
  z-index: 17;
}

.document-stage {
  height: auto;
  max-width: none;
  margin: 0;
  padding: 18px 18px 10px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.document-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.document-main-icon {
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0.08)), linear-gradient(160deg, #5ad0ff, #3c78ff);
}

.document-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.document-header p {
  margin: 6px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  font-size: 15px;
}

.document-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-toolbar-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.document-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-action-select-pill,
.quick-action-summary-pill {
  cursor: default;
}

.quick-action-select-pill {
  padding-right: 10px;
}

.quick-action-summary-pill {
  background: rgba(255, 255, 255, 0.06);
}

.smart-folder-select {
  min-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(8, 15, 28, 0.82);
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}

.smart-folder-select option {
  color: #0f172a;
}

.smart-folder-select-compact {
  min-width: 170px;
  margin-left: 4px;
  padding: 8px 10px;
}

.quick-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 14px 22px rgba(4, 10, 24, 0.24);
}

.quick-action-pill:hover,
.quick-action-pill:focus-visible,
.action-card:hover,
.action-card:focus-visible,
.type-card:hover,
.type-card:focus-visible,
.file-card:hover,
.file-card:focus-visible,
.topbar-btn:hover,
.topbar-btn:focus-visible,
.popover-close:hover,
.popover-close:focus-visible,
.home-file-type:hover,
.home-file-type:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 18px 30px rgba(4, 10, 24, 0.22);
}

.quick-action-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 16px rgba(4, 10, 24, 0.28), inset 0 6px 10px rgba(255, 255, 255, 0.22), inset 0 -6px 10px rgba(0, 0, 0, 0.16);
}

.view-toggle {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.view-toggle button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.view-toggle button.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.type-card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.type-card {
  position: relative;
  padding: 16px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.018);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.024);
  color: #fff;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(6, 12, 26, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.type-card.active {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 28px rgba(4, 10, 24, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.type-gloss {
  display: none;
}

.type-icon {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.type-icon-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(10, 18, 30, 0.14));
  user-select: none;
  -webkit-user-drag: none;
}

.type-card strong,
.file-card strong {
  display: block;
  font-size: 13px;
}

.type-card strong {
  margin-top: 8px;
}

.type-card small,
.file-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  font-size: 11px;
}

.type-upload-sources {
  display: none;
}

.type-upload-trigger {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--motion-ease), background var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}

.type-upload-trigger:hover,
.type-upload-trigger:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 18px rgba(4, 10, 24, 0.18);
}

.type-upload-trigger.active {
  background: rgba(111, 209, 255, 0.16);
  border-color: rgba(111, 209, 255, 0.34);
  color: #ffffff;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 22px;
}

.folder-operations-bar {
  display: none;
}

.browser-toolbar strong {
  display: block;
  font-size: 18px;
}

.browser-toolbar p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.browser-meta {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.browser-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
}

.browser-selection-bar strong {
  display: block;
  font-size: 16px;
}

.browser-selection-bar p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.browser-selection-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.selection-action-button {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 15, 28, 0.78);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.selection-action-button-danger {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.82);
}

.selection-action-button.is-disabled,
.selection-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.topbar-btn-danger {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.82);
}

.workspace-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 22px;
}

.workspace-context-bar strong {
  display: block;
  font-size: 17px;
}

.workspace-context-bar p {
  margin: 5px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.6;
}

.workspace-context-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.98);
  font-size: 12px;
  font-weight: 700;
}

.file-browser {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
}

.file-browser[data-view="large"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.file-browser[data-view="medium"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.file-browser[data-view="list"] {
  grid-template-columns: 1fr;
}

.file-list-header {
  display: grid;
  grid-template-columns: 84px minmax(240px, 2fr) minmax(150px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(130px, 1fr) minmax(120px, 0.9fr) 168px;
  gap: 12px;
  align-items: center;
  padding: 0 16px 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-card {
  position: relative;
  padding: 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.018);
  text-align: center;
  min-width: 0;
  box-shadow: 0 10px 18px rgba(4, 10, 24, 0.1), inset 0 1px 0 rgba(255,255,255,0.03);
}

.file-card-stack {
  position: relative;
  width: calc(100% - 34px);
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 34px;
}

.file-card-detached-actions {
  padding: 10px;
}

.file-card.has-actions {
  padding-top: 42px;
}

.file-card-select-toggle {
  position: absolute;
  top: 36px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(4, 10, 24, 0.18);
}

.file-card-select-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #3b82f6;
}

.file-card-select-toggle span {
  margin: 0;
  min-height: auto;
  color: inherit;
  font-size: 11px;
}

.file-browser[data-view="list"] .file-card-select-toggle {
  display: none;
}

.file-browser[data-view="medium"] .file-card-select-toggle,
.file-browser[data-view="large"] .file-card-select-toggle {
  top: auto;
  right: auto;
  left: 10px;
  bottom: 0;
}

.file-browser[data-view="medium"] .file-card-select-toggle span,
.file-browser[data-view="large"] .file-card-select-toggle span {
  display: none;
}

.file-browser[data-view="medium"] .file-card-stack.has-actions,
.file-browser[data-view="large"] .file-card-stack.has-actions {
  padding-top: 34px;
  padding-bottom: 34px;
}

.file-browser[data-view="medium"] .file-card-actions,
.file-browser[data-view="large"] .file-card-actions {
  top: 0;
  left: 10px;
  right: 10px;
}

.file-browser[data-view="medium"] .file-card-stack,
.file-browser[data-view="large"] .file-card-stack {
  width: calc(100% - 42px);
}

.file-browser[data-view="large"] .file-card-detached-actions {
  padding: 11px;
}

.file-browser[data-view="medium"] .file-card-detached-actions {
  padding: 9px;
}

.file-browser[data-view="medium"] .file-action-button,
.file-browser[data-view="large"] .file-action-button {
  min-height: 24px;
  padding: 4px 8px;
}

.file-browser[data-view="medium"] .file-card-button strong,
.file-browser[data-view="large"] .file-card-button strong {
  font-size: 13px;
}

.file-browser[data-view="medium"] .file-card-button span,
.file-browser[data-view="large"] .file-card-button span {
  font-size: 11px;
}

.file-card-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: inherit;
  color: inherit;
  cursor: pointer;
}

.file-folder-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: rgba(255, 255, 255, 0.94);
  font-size: 10px;
  font-weight: 700;
}

.file-browser[data-view="list"] .file-card {
  padding: 14px 16px;
  text-align: left;
}

.file-browser[data-view="list"] .file-card.has-actions {
  padding-top: 14px;
  padding-right: 182px;
}

.file-list-row {
  display: grid;
  grid-template-columns: 84px minmax(240px, 2fr) minmax(150px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(130px, 1fr) minmax(120px, 0.9fr) 168px;
  gap: 12px;
  align-items: center;
}

.file-browser[data-view="list"] .file-card-button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  text-align: left;
}

.file-browser[data-view="list"] .file-icon,
.file-browser[data-view="list"] .file-card-scan .file-icon,
.file-browser[data-view="list"] .file-card-scan .file-icon.file-icon-uploaded {
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.file-browser[data-view="list"] .file-card-button strong,
.file-browser[data-view="list"] .file-card-button span {
  grid-column: 2;
}

.file-browser[data-view="list"] .file-folder-chip {
  margin: 0 0 6px;
}

.file-browser[data-view="list"] .file-card-button strong {
  min-height: auto;
  margin-top: 0;
  font-size: 15px;
}

.file-browser[data-view="list"] .file-card-button span {
  margin-top: 4px;
  font-size: 12px;
}

.file-list-primary {
  min-width: 0;
}

.file-list-cell {
  min-width: 0;
}

.file-list-cell strong {
  display: block;
  min-height: auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.96);
}

.file-list-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.file-list-cell-status strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.file-list-select {
  display: flex;
  align-items: center;
}

.file-select-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.file-select-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
}

.file-select-disabled {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 600;
}

.file-browser[data-view="list"] .file-card-actions {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  width: auto;
  transform: none;
  gap: 6px;
}

.file-card-actions {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.file-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 22px;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 15, 28, 0.82);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 5px 10px rgba(4, 10, 24, 0.18);
  position: relative;
  z-index: 7;
  pointer-events: auto;
}

.file-action-button-danger {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.82);
}

.file-action-button:hover,
.file-action-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 14px 24px rgba(4, 10, 24, 0.26);
}

.file-action-button-danger:hover,
.file-action-button-danger:focus-visible {
  border-color: rgba(252, 165, 165, 0.6);
}

.file-card:hover,
.home-file-row:hover,
.search-result-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 36px rgba(4, 10, 24, 0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}

.inline-preview-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
}

.inline-preview-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.inline-preview-topbar h3 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
}

.inline-preview-topbar p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.inline-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-preview-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.382fr) minmax(0, 0.618fr);
  gap: 18px;
  margin-top: 20px;
}

.inline-preview-sidebar,
.inline-preview-canvas {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.inline-preview-canvas {
  max-height: 72vh;
  overflow: auto;
}

.inline-preview-sidebar strong {
  display: block;
  font-size: 17px;
}

.inline-preview-sidebar p {
  margin: 8px 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.file-preview-meta-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-meta-item {
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.preview-meta-item span,
.preview-meta-item strong {
  display: block;
}

.preview-meta-item span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.preview-sheet,
.preview-slide,
.preview-pdf,
.preview-image {
  min-height: 100%;
}

.preview-sheet,
.preview-slide-frame,
.preview-pdf-page,
.preview-image-frame {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: #1d2d42;
  box-shadow: 0 24px 50px rgba(4, 10, 24, 0.18);
}

.preview-sheet {
  padding: 22px 24px;
  max-width: 100%;
}

.preview-sheet p {
  line-height: 1.8;
  color: #334155;
}

.preview-sheet-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.preview-sheet-head strong,
.preview-slide-frame h3,
.preview-pdf-page h3,
.preview-image-frame strong {
  margin: 0;
  font-size: 23px;
}

.preview-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(47, 123, 255, 0.1);
  color: #245bca;
  font-size: 13px;
  font-weight: 700;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
}

.preview-table th,
.preview-table td {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(29, 45, 66, 0.1);
  text-align: left;
}

.preview-word-html {
  display: grid;
  gap: 14px;
  color: #334155;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.preview-word-html > * {
  margin: 0;
}

.preview-word-html h1,
.preview-word-html h2,
.preview-word-html h3,
.preview-word-html h4 {
  color: #0f172a;
  line-height: 1.25;
}

.preview-word-html p,
.preview-word-html li {
  font-size: 15px;
}

.preview-word-html ul,
.preview-word-html ol {
  margin: 0;
  padding-left: 22px;
}

.preview-word-html table,
.preview-workbook-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.preview-word-html td,
.preview-word-html th,
.preview-workbook-table td,
.preview-workbook-table th {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  vertical-align: top;
}

.preview-workbook-sheet {
  display: grid;
  gap: 12px;
}

.preview-workbook-sheet + .preview-workbook-sheet {
  margin-top: 18px;
}

.preview-workbook-sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-workbook-sheet-head strong {
  font-size: 18px;
  color: #0f172a;
}

.preview-workbook-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: #fff;
}

.preview-word,
.preview-excel {
  max-width: 100%;
}

.preview-workbook-table thead th {
  position: sticky;
  top: 0;
  background: #eff6ff;
  color: #0f172a;
  font-weight: 700;
}

.preview-slide-frame,
.preview-image-frame {
  min-height: 420px;
  padding: 24px;
}

.preview-slide-frame {
  background: linear-gradient(135deg, #eff6ff, #fef3c7);
}

.preview-bullets {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.8;
}

.preview-pdf {
  display: grid;
  gap: 14px;
}

.preview-pdf-page {
  min-height: 280px;
  padding: 22px;
}

.preview-pdf-page.secondary {
  min-height: 120px;
  background: rgba(255,255,255,0.82);
}

.preview-image-frame {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
}

.preview-image-art {
  width: 144px;
  height: 144px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  font-size: 58px;
  background: linear-gradient(165deg, #dbeafe, #bfdbfe);
}

.file-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 10px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.file-icon-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(10, 18, 30, 0.1));
  user-select: none;
  -webkit-user-drag: none;
}

.file-card strong,
.file-card span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.file-card strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 3em;
}

.file-card span {
  min-height: 2.8em;
}

.file-browser[data-view="medium"] .file-card {
  padding: 10px;
}

.file-browser[data-view="medium"] .file-icon {
  width: 58px;
  height: 58px;
}

.file-browser[data-view="medium"] .file-icon-art {
  width: 100%;
  height: 100%;
}

.file-browser[data-view="medium"] .file-card strong {
  font-size: 14px;
}

.file-icon-uploaded {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
}

.file-card-scan .file-icon {
  width: 100%;
  height: 172px;
  margin-bottom: 14px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(148, 163, 184, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.file-browser[data-view="medium"] .file-card-scan .file-icon {
  height: 124px;
  border-radius: 18px;
}

.file-card-scan .file-icon.file-icon-uploaded,
.file-browser[data-view="medium"] .file-card-scan .file-icon.file-icon-uploaded {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.file-card-scan .file-icon-art,
.file-card-scan .file-icon-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.file-card-scan .file-icon-uploaded .file-icon-art {
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(10, 18, 30, 0.1));
}

.file-card-scan .file-icon-thumbnail {
  background: rgba(255, 255, 255, 0.08);
}

.file-browser[data-view="large"] .file-card-scan .file-icon.file-icon-thumbnail {
  width: 100%;
  height: 172px;
  border-radius: 22px;
  overflow: hidden;
}

.file-browser[data-view="medium"] .file-card-scan .file-icon.file-icon-thumbnail {
  width: 100%;
  height: 124px;
  border-radius: 18px;
  overflow: hidden;
}

.file-browser[data-view="large"] .file-card-scan .file-icon.file-icon-thumbnail .file-icon-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-browser[data-view="medium"] .file-card-scan .file-icon.file-icon-thumbnail .file-icon-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-card-scan strong {
  min-height: 2.7em;
}

.popover-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.popover-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.popover-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.06)), linear-gradient(160deg, #4bc3ff, #2a78ff);
  box-shadow: 0 16px 34px rgba(13, 47, 104, 0.34);
}

.popover-header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
}

.popover-header p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.5;
}

.popover-close {
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.workspace-subtitle {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.module-insight-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.module-insight-card {
  padding: 16px 18px;
  border-radius: 22px;
}

.module-insight-card strong {
  display: block;
  margin-top: 12px;
  font-size: 17px;
}

.module-insight-card p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  font-size: 14px;
}

.popover-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.action-card {
  padding: 12px 10px 12px;
  border-radius: 18px;
  text-align: center;
  min-width: 0;
}

.action-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 16px 24px rgba(4, 10, 24, 0.34), inset 0 8px 12px rgba(255, 255, 255, 0.22), inset 0 -8px 12px rgba(0, 0, 0, 0.14);
}

.action-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  font-size: 15px;
  line-height: 1.4;
}

.guide-workspace {
  display: grid;
  gap: 22px;
  margin-top: 18px;
  max-height: none;
  overflow: visible;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 18, 40, 0.32);
}

.guide-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.guide-workspace-head strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.guide-workspace-head p {
  margin: 8px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.6;
}

.guide-workspace-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.guide-role-picker-wrap {
  display: grid;
  gap: 16px;
}

.guide-role-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  justify-content: center;
  gap: 28px;
}

.guide-role-trigger {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 30px;
  padding: 24px 18px 20px;
  display: grid;
  gap: 16px;
  justify-items: center;
  color: #fff;
  cursor: pointer;
  transition: transform var(--motion-medium) var(--motion-ease), border-color var(--motion-medium) var(--motion-ease), background var(--motion-medium) var(--motion-ease), box-shadow var(--motion-medium) var(--motion-ease);
}

.guide-role-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
}

.guide-role-trigger.is-active {
  border-color: rgba(88, 182, 255, 0.72);
  background: rgba(56, 150, 255, 0.19);
  box-shadow: 0 16px 30px rgba(6, 22, 44, 0.34);
}

.guide-role-trigger-photo {
  width: 190px;
  height: 190px;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 16px 28px rgba(4, 14, 30, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

.guide-role-trigger-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-role-trigger-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.guide-role-detail-wrap {
  width: 100%;
}

.guide-document-frame {
  width: 100%;
  min-height: 900px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: transparent;
  overflow: hidden;
}

@media (max-width: 980px) {
  .guide-role-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .guide-role-picker-grid {
    grid-template-columns: 1fr;
  }

  .guide-role-trigger-photo {
    width: 164px;
    height: 164px;
  }

  .guide-role-trigger-title {
    font-size: 21px;
  }
}

.signature-control-panel {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: min(1040px, calc(100vw - 56px));
  margin: 96px auto 0;
  padding: 22px;
  border-radius: 32px;
  z-index: 18;
}

.signature-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.signature-panel-head h3 {
  margin: 0;
  font-size: 24px;
}

.signature-panel-head p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  font-size: 14px;
  max-width: 720px;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.signature-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
}

.signature-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
}

.signature-field,
.signature-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.signature-field span,
.signature-switch-row span,
.signature-help,
.signature-status-bar {
  color: rgba(255,255,255,0.84);
  font-size: 13px;
  line-height: 1.5;
}

.signature-field select {
  min-width: 180px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.signature-module-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.signature-status-bar {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
}

.minimal-dock-wrap {
  bottom: 14px;
  perspective: 1200px;
}

.minimal-dock {
  --dock-hover-scale: 1.52;
  --dock-hover-lift: 11px;
  position: relative;
  gap: 10px;
  padding: 0 16px 10px;
  width: max-content;
  max-width: calc(100vw - 32px);
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  will-change: transform;
}

.minimal-dock::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 1px;
  height: 52px;
  border-radius: 12px 12px 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(207,216,228,0.24) 28%, rgba(83,93,110,0.32) 70%, rgba(34,42,54,0.48));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 18px 22px rgba(5, 10, 20, 0.24), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -5px 10px rgba(0,0,0,0.26);
  clip-path: polygon(0 100%, 100% 100%, 96% 0, 4% 0);
  transform: perspective(1200px) rotateX(58deg);
  transform-origin: center bottom;
  pointer-events: none;
}

.minimal-dock::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -9px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(8, 12, 20, 0.54), rgba(8, 12, 20, 0) 76%);
  filter: blur(8px);
  pointer-events: none;
}

.minimal-dock-wrap::after {
  content: none;
}

.dock-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  z-index: 1;
  padding: 26px 0 0;
  font: inherit;
  overflow: visible;
}

.dock-button .dock-icon {
  margin: 0 auto 0;
  transform: none;
  box-shadow: none;
  transition: transform var(--motion-medium) var(--motion-ease), filter var(--motion-medium) var(--motion-ease);
}

.dock-button.active .dock-icon {
  transform: none;
  box-shadow: none;
  filter: saturate(1.02);
}

.dock-button:hover .dock-icon {
  transform: translateY(calc(-1 * var(--dock-hover-lift))) scale(var(--dock-hover-scale));
  box-shadow: none;
  filter: saturate(1.08);
  z-index: 3;
}

.dock-home-button {
  margin: 0;
}

@media (max-width: 860px) {
  .home-dashboard {
    width: calc(100vw - 28px);
    margin-top: 80px;
    padding: 15px;
    border-radius: 24px;
  }

  .home-widget-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "schedule"
      "weather"
      "todo"
      "files"
      "search";
  }

  .search-widget {
    grid-column: auto;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .home-context-strip {
    grid-template-columns: 1fr;
  }

  .weather-body {
    align-items: flex-start;
  }

  .desktop-topbar {
    left: 50%;
    right: auto;
    width: calc(100vw - 28px);
    transform: translateX(-50%);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 10px;
  }

  .topbar-search {
    width: 100%;
    max-width: none;
  }

  .topbar-status-strip {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .account-chip {
    flex: 1 1 100%;
  }

  .popover-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-insight-strip {
    grid-template-columns: 1fr;
  }

  .document-workspace {
    width: calc(100vw - 28px);
    margin-top: 112px;
  }

  .workspace-context-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .document-stage {
    padding: 16px;
  }

  .document-header {
    flex-direction: column;
  }

  .document-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .browser-toolbar-side {
    width: 100%;
    justify-content: space-between;
  }

  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-browser[data-view="large"],
  .file-browser[data-view="medium"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-popover {
    width: calc(100vw - 28px);
    margin-top: 112px;
    padding: 16px;
  }

  .popover-header {
    flex-direction: column;
  }

  .inline-preview-layout {
    grid-template-columns: 1fr;
  }

  .signature-grid {
    grid-template-columns: 1fr;
  }

  .view-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .view-toggle button {
    flex: 1 1 0;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 126px;
  }

  .dock-home-button {
    margin: 0 4px;
  }

  .home-dashboard-head h2 {
    font-size: 22px;
  }

  .widget-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-preview-topbar,
  .inline-preview-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-item,
  .home-file-row,
  .search-result-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .desktop-topbar {
    top: 12px;
    gap: 10px;
  }

  .brand-chip,
  .account-chip {
    width: 100%;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .topbar-btn {
    width: 100%;
    text-align: center;
  }

  .popover-actions-grid {
    grid-template-columns: 1fr;
  }

  .minimal-shell {
    padding: 0 8px 176px;
  }

  .document-title-wrap {
    align-items: flex-start;
  }

  .document-main-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .type-grid,
  .file-browser[data-view="large"],
  .file-browser[data-view="medium"] {
    grid-template-columns: 1fr;
  }

  .popover-title-wrap {
    align-items: flex-start;
  }

  .popover-icon {
    width: 52px;
    height: 52px;
    font-size: 19px;
  }

  .minimal-dock-wrap {
    bottom: 8px;
    padding: 0 8px calc(env(safe-area-inset-bottom, 0px) + 4px);
  }

  .minimal-dock {
    gap: 6px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 0 10px 10px;
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .minimal-dock::-webkit-scrollbar {
    display: none;
  }

  .dock-item {
    width: 58px;
    flex: 0 0 58px;
    padding-top: 18px;
    scroll-snap-align: center;
  }

  .dock-icon {
    width: 48px;
    height: 48px;
    margin-bottom: -4px;
  }

  .dock-item > div:last-child {
    font-size: 9px;
    max-width: 72px;
    white-space: normal;
    text-align: center;
  }

  .document-workspace,
  .module-popover,
  .signature-control-panel,
  .home-dashboard {
    width: calc(100vw - 16px);
  }

  .browser-toolbar,
  .inline-preview-topbar,
  .signature-panel-head,
  .document-header-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-preview-canvas,
  .inline-preview-sidebar,
  .signature-card,
  .home-widget {
    padding: 16px;
  }

  .weather-body {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .home-dashboard {
    margin-top: 94px;
    padding: 12px;
    border-radius: 22px;
  }

  .home-dashboard-head h2,
  .document-header h2,
  .popover-header h2,
  .signature-panel-head h3 {
    font-size: 20px;
  }

  .widget-head h3,
  .browser-toolbar strong,
  .inline-preview-topbar h3 {
    font-size: 17px;
  }

  .type-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 14px;
  }

  .file-card,
  .type-card,
  .action-card {
    border-radius: 18px;
  }
}

@media (pointer: coarse) {
  .minimal-dock {
    --dock-hover-scale: 1.16;
    --dock-hover-lift: 6px;
  }

  .dock-button:hover .dock-icon,
  .dock-button:hover > div:last-child,
  .dock-button:hover::after,
  .dock-item:hover::after {
    transform: none;
  }

  .quick-action-pill:hover,
  .action-card:hover,
  .type-card:hover,
  .file-card:hover,
  .topbar-btn:hover,
  .popover-close:hover,
  .home-file-type:hover,
  .home-file-row:hover,
  .search-result-item:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  body.desktop-page {
    background-attachment: scroll;
  }

  .minimal-shell {
    padding: 0 10px 156px;
  }

  .desktop-topbar {
    position: sticky;
    top: 8px;
    left: auto;
    right: auto;
    width: 100%;
    transform: none;
    margin: 0 auto 12px;
    padding: 12px;
    border-radius: 24px;
    gap: 12px;
  }

  .brand-chip,
  .topbar-search,
  .topbar-actions,
  .account-chip {
    width: 100%;
    max-width: none;
  }

  .topbar-search {
    order: 2;
    padding: 10px 12px;
  }

  .topbar-search input {
    min-width: 0;
    font-size: 16px;
  }

  .topbar-search button {
    flex: 0 0 auto;
  }

  .topbar-actions {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .topbar-btn {
    min-height: 42px;
    width: 100%;
    text-align: center;
  }

  .account-chip {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .home-dashboard,
  .document-workspace,
  .module-popover,
  .signature-control-panel {
    width: 100%;
    margin-top: 12px;
    border-radius: 28px;
  }

  .home-dashboard {
    padding: 14px;
  }

  .home-dashboard-head,
  .widget-head,
  .document-header,
  .browser-toolbar,
  .inline-preview-topbar,
  .popover-header,
  .signature-panel-head {
    gap: 10px;
  }

  .inline-form,
  .inline-form-wide {
    grid-template-columns: 1fr;
  }

  .inline-form button,
  .todo-item button,
  .schedule-meta button,
  .upload-mini,
  .popover-close,
  .topbar-btn,
  .quick-action-pill {
    min-height: 42px;
  }

  .schedule-item,
  .todo-item,
  .home-file-row,
  .search-result-item,
  .signature-field,
  .signature-switch-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-meta {
    width: 100%;
    justify-content: space-between;
  }

  .file-type-switches,
  .document-quick-actions {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .file-type-switches::-webkit-scrollbar,
  .document-quick-actions::-webkit-scrollbar {
    display: none;
  }

  .home-file-type,
  .quick-action-pill {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .document-stage {
    padding: 0;
  }

  .document-title-wrap,
  .popover-title-wrap {
    align-items: flex-start;
    gap: 12px;
  }

  .document-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .view-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-toggle button {
    min-height: 40px;
  }

  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .type-card,
  .file-card,
  .action-card,
  .signature-card,
  .home-widget,
  .inline-preview-sidebar,
  .inline-preview-canvas {
    border-radius: 20px;
  }

  .type-card {
    padding: 12px 10px;
  }

  .type-icon {
    width: 86px;
    height: 86px;
    margin-bottom: 14px;
  }

  .browser-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }


  .file-browser[data-view="list"] .file-card.has-actions {
    padding-right: 16px;
    padding-top: 52px;
  }

  .browser-selection-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .browser-selection-actions {
    width: 100%;
  }

  .file-list-header {
    display: none;
  }

  .file-list-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .file-list-select,
  .file-list-cell,
  .file-browser[data-view="list"] .file-card-actions {
    justify-content: flex-start;
  }

  .file-browser[data-view="list"] .file-card-button {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 10px;
  }

  .file-browser[data-view="list"] .file-icon,
  .file-browser[data-view="list"] .file-card-scan .file-icon,
  .file-browser[data-view="list"] .file-card-scan .file-icon.file-icon-uploaded {
    width: 44px;
    height: 44px;
  }

  .file-browser[data-view="list"] .file-card-actions {
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    transform: none;
  }
  .browser-meta {
    align-self: stretch;
    text-align: center;
  }

  .file-browser {
    padding: 12px;
  }

  .file-browser[data-view="large"],
  .file-browser[data-view="medium"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .inline-preview-panel {
    padding: 14px;
  }

  .inline-preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-slide-frame,
  .preview-image-frame,
  .preview-pdf-page,
  .preview-sheet {
    padding: 16px;
  }

  .signature-grid,
  .popover-actions-grid {
    grid-template-columns: 1fr;
  }

  .signature-field select {
    width: 100%;
    min-width: 0;
  }

  .minimal-dock-wrap {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 0;
    justify-content: stretch;
  }

  .minimal-dock {
    width: 100%;
    max-width: none;
    padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 10px);
    border-radius: 28px;
    background: rgba(10, 18, 30, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 38px rgba(4, 10, 24, 0.4);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px 4px;
    overflow: visible;
  }

  .minimal-dock::before,
  .minimal-dock::after,
  .dock-item::before,
  .dock-item::after {
    content: none;
  }

  .dock-item,
  .dock-button {
    width: 100%;
    flex: initial;
    min-width: 0;
    padding-top: 0;
  }

  .dock-button {
    gap: 6px;
    padding: 6px 2px 2px;
  }

  .dock-button .dock-icon,
  .dock-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    filter: none;
  }

  .dock-button > div:last-child,
  .dock-item > div:last-child {
    position: static;
    width: 100%;
    max-width: none;
    padding: 0;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
    transform: none !important;
    opacity: 0.88;
  }

  .dock-button.active {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
  }

  .dock-button.active .dock-icon {
    filter: saturate(1.06);
    transform: none;
  }

  .dock-button:hover .dock-icon {
    transform: none;
    filter: none;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 96px;
  }

  .minimal-shell {
    padding: 0 8px 152px;
  }

  .desktop-topbar {
    top: 6px;
    padding: 10px;
    border-radius: 20px;
  }

  .brand-chip strong,
  .account-chip strong {
    font-size: 12px;
  }

  .brand-chip span,
  .account-chip span {
    font-size: 10px;
  }

  .brand-signature {
    font-size: 10px;
  }

  .home-dashboard-head h2,
  .document-header h2,
  .popover-header h2,
  .signature-panel-head h3 {
    font-size: 19px;
  }

  .widget-head h3,
  .browser-toolbar strong,
  .inline-preview-topbar h3 {
    font-size: 16px;
  }

  .document-main-icon,
  .popover-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 18px;
  }

  .type-grid,
  .file-browser[data-view="large"],
  .file-browser[data-view="medium"] {
    grid-template-columns: 1fr;
  }

  .type-icon {
    width: 78px;
    height: 78px;
  }

  .minimal-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dock-button > div:last-child,
  .dock-item > div:last-child {
    font-size: 9px;
  }
}

.module-card .quick-icon {
  flex: 0 0 auto;
}

.desktop-page .dock-wrap {
  position: fixed;
}

@media (max-width: 1100px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-windows {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .desktop-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card.large {
    grid-column: auto;
  }
}

.dock-item {
  width: 74px;
  flex: 0 0 74px;
  padding-top: 22px;
  text-align: center;
  position: relative;
}

.dock-item::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 32%, rgba(255,255,255,0));
  transform: perspective(220px) rotateX(68deg);
  transform-origin: center top;
  opacity: 0.18;
  filter: blur(1.2px);
  pointer-events: none;
}

.dock-item::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(9, 14, 24, 0.72), rgba(9, 14, 24, 0) 72%);
  filter: blur(5px);
  opacity: 1;
  transition: transform 0.16s ease, opacity 0.16s ease;
  pointer-events: none;
}

.dock-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto -8px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent !important;
  box-shadow: none;
  border: 0;
  transition: transform 0.16s ease;
  overflow: visible;
  z-index: 1;
}

.dock-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 7px rgba(16, 22, 38, 0.2));
  -webkit-box-reflect: below -6px linear-gradient(to bottom, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.16) 24%, rgba(0, 0, 0, 0.04) 52%, rgba(0, 0, 0, 0) 78%);
  user-select: none;
  -webkit-user-drag: none;
}

.dock-icon::before {
  content: none;
}

.dock-icon::after {
  content: none;
}

.glyph {
  position: relative;
  z-index: 1;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(19, 31, 53, 0.18));
}

.glyph.book {
  transform: translateY(-1px);
}

.glyph.resources {
  font-size: 18px;
}

.glyph.lesson-glyph,
.glyph.docs-glyph,
.glyph.home-glyph,
.glyph.report-glyph,
.glyph.users-glyph,
.glyph.backup-glyph,
.glyph.search-glyph {
  font-size: 20px;
}

.glyph.admin-glyph {
  font-size: 18px;
}

.glyph.ai {
  font-size: 19px;
}

.dock-item:hover .dock-icon {
  transform: translateY(calc(-1 * var(--dock-hover-lift))) scale(var(--dock-hover-scale));
}

.dock-button:hover::after,
.dock-item:hover::after {
  transform: scale(1.55);
  opacity: 0.95;
}

.dock-item > div:last-child {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: max-content;
  max-width: 96px;
  padding: 0 4px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 4px 10px rgba(8, 14, 28, 0.38);
  transform: translateX(-50%);
  transform-origin: center bottom;
  transition: transform 0.18s ease, opacity 0.18s ease;
  z-index: 6;
  pointer-events: none;
}

.dock-button:hover > div:last-child {
  transform: translateX(-50%) translateY(calc(-1 * var(--dock-hover-lift))) scale(var(--dock-hover-scale));
}

.dock-button.active > div:last-child {
  opacity: 0.98;
}

.books { background: linear-gradient(145deg, #ff8757, #ffbd5c); }
.resources { background: linear-gradient(145deg, #2780ff, #62d6ff); }
.lesson { background: linear-gradient(145deg, #8d60ff, #d682ff); }
.search { background: linear-gradient(145deg, #14c984, #72f0b9); }
.docs { background: linear-gradient(145deg, #ff4b67, #ff9a55); }
.report { background: linear-gradient(145deg, #1b4c8d, #52adff); }
.users { background: linear-gradient(145deg, #00a989, #69efcf); }
.admin { background: linear-gradient(145deg, #43435e, #8d8db4); }
.backup { background: linear-gradient(145deg, #9457c8, #d98cff); }
.ai { background: linear-gradient(145deg, #232526, #667dff); }

.page-title {
  margin: 18px 0 0;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.96;
  text-shadow: 0 12px 34px rgba(14, 26, 49, 0.24);
}

.page-desc {
  max-width: 900px;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.6;
}

.grid-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.file-card,
.content-card,
.mini-module {
  padding: 18px;
  border-radius: 26px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  box-shadow: var(--shadow);
}

.file-card {
  text-align: center;
}

.file-badge {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(17, 28, 47, 0.18);
}

.word { background: linear-gradient(145deg, #2263ff, #6ab9ff); }
.excel { background: linear-gradient(145deg, #0e9f6e, #59d88f); }
.ppt { background: linear-gradient(145deg, #ff7b36, #ffb364); }
.pdf { background: linear-gradient(145deg, #ff465d, #ff8b58); }
.scan { background: linear-gradient(145deg, #1b6fd9, #5de3ff); }

.content-grid {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.content-card h3,
.mini-module,
.file-card,
.content-card,
.glass-box {
  color: var(--white);
}

.content-card p,
.content-card li,
.glass-box p,
.file-card p {
  line-height: 1.6;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}

.table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.pill {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.module-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.mini-module {
  width: 120px;
  text-align: center;
}

.mini-module strong {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.icon-books { background: linear-gradient(145deg, #ff8757, #ffbd5c); }
.icon-resources { background: linear-gradient(145deg, #2780ff, #62d6ff); }
.icon-lesson { background: linear-gradient(145deg, #8d60ff, #d682ff); }
.icon-docs { background: linear-gradient(145deg, #ff4b67, #ff9a55); }
.icon-search { background: linear-gradient(145deg, #14c984, #72f0b9); }
.icon-report { background: linear-gradient(145deg, #1b4c8d, #52adff); }
.icon-users { background: linear-gradient(145deg, #00a989, #69efcf); }
.icon-admin { background: linear-gradient(145deg, #43435e, #8d8db4); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 20px;
  margin-top: 26px;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-item {
  padding: 14px 16px;
  border-left: 3px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 16px 16px 0;
}

@media (max-width: 1080px) {
  .quick-modules,
  .grid-icons,
  .content-grid,
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topline {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 16px 16px 180px;
  }

  .quick-modules,
  .grid-icons,
  .content-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .dock {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dock-item {
    width: 88px;
  }

  .dock-icon {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .logo-box,
  .account-box {
    width: 100%;
  }
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
}

.view-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  padding: 9px 14px;
  font: inherit;
  cursor: pointer;
}

.view-switch button.active {
  background: rgba(255, 255, 255, 0.24);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 0.64fr);
  gap: 20px;
  margin-top: 24px;
}

.side-nav {
  position: sticky;
  top: 22px;
  align-self: start;
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.nav-list {
  display: grid;
  gap: 8px;
}

body.home-desktop-focus {
  overflow: hidden;
}

body.home-desktop-focus .minimal-shell {
  padding-bottom: 122px;
}

.home-dashboard.home-desktop-shell {
  width: min(1220px, calc(100vw - 38px));
  height: calc(100vh - 176px);
  margin-top: 78px;
  padding: 10px 14px 12px;
  overflow: hidden;
}

.home-dashboard.home-desktop-shell .home-dashboard-head-compact,
.home-dashboard.home-desktop-shell .home-command-deck,
.home-dashboard.home-desktop-shell .home-focus-widget,
.home-dashboard.home-desktop-shell .home-ai-beacon,
.home-dashboard.home-desktop-shell .home-ai-stage-copy,
.home-dashboard.home-desktop-shell .dashboard-entry-strip {
  display: none !important;
}

.home-dashboard.home-desktop-shell .home-desktop-grid {
  height: 100%;
  grid-template-columns: 164px minmax(0, 1fr) 188px;
  gap: 10px;
}

.home-dashboard.home-desktop-shell .home-shortcut-panel,
.home-dashboard.home-desktop-shell .home-ai-stage {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-dashboard.home-desktop-shell .home-shortcut-panel {
  position: relative;
}

.home-dashboard.home-desktop-shell .home-shortcut-panel .widget-head-compact {
  display: none;
}

.home-dashboard.home-desktop-shell .home-shortcut-grid {
  height: 100%;
  min-height: 0;
  padding: 6px 0;
  gap: 8px 16px;
  grid-auto-rows: 1fr;
  align-content: center;
}

.home-dashboard.home-desktop-shell .home-shortcut-slot {
  min-height: 44px;
}

.home-dashboard.home-desktop-shell .home-shortcut-slot.is-empty,
.home-dashboard.home-desktop-shell .home-shortcut-launch {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home-dashboard.home-desktop-shell .home-shortcut-slot.is-empty {
  font-size: 34px;
}

.home-dashboard.home-desktop-shell .home-shortcut-launch {
  min-height: 48px;
  gap: 8px;
  padding: 2px 0;
}

.home-dashboard.home-desktop-shell .home-shortcut-icon {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-dashboard.home-desktop-shell .home-shortcut-icon.is-image,
.home-dashboard.home-desktop-shell .home-shortcut-option-icon.is-image {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-dashboard.home-desktop-shell .home-shortcut-icon-art,
.home-dashboard.home-desktop-shell .home-shortcut-option-icon-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-dashboard.home-desktop-shell .home-shortcut-copy,
.home-dashboard.home-desktop-shell .home-shortcut-option-copy {
  gap: 0;
}

.home-dashboard.home-desktop-shell .home-shortcut-copy strong,
.home-dashboard.home-desktop-shell .home-shortcut-option-copy strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.home-dashboard.home-desktop-shell .home-shortcut-copy small,
.home-dashboard.home-desktop-shell .home-shortcut-option-copy small,
.home-dashboard.home-desktop-shell .home-shortcut-picker-head span,
.home-dashboard.home-desktop-shell .home-shortcut-picker-group header span {
  display: none !important;
}

.home-dashboard.home-desktop-shell .home-shortcut-remove {
  top: 1px;
  left: 2px;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1;
}

.home-dashboard.home-desktop-shell .home-shortcut-remove:hover,
.home-dashboard.home-desktop-shell .home-shortcut-remove:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.95);
}

.home-dashboard.home-desktop-shell .home-shortcut-picker {
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: 10px;
  background: rgba(6, 10, 20, 0.92);
  border: 0;
  box-shadow: 0 20px 46px rgba(2, 6, 23, 0.4);
}

.home-dashboard.home-desktop-shell .home-shortcut-picker-head {
  margin-bottom: 8px;
}

.home-dashboard.home-desktop-shell .home-shortcut-picker-head strong,
.home-dashboard.home-desktop-shell .home-shortcut-picker-group header strong {
  font-size: 10px;
}

.home-dashboard.home-desktop-shell .home-shortcut-option {
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-dashboard.home-desktop-shell .home-shortcut-option:hover,
.home-dashboard.home-desktop-shell .home-shortcut-option:focus-visible {
  background: transparent;
  border: 0;
}

.home-dashboard.home-desktop-shell .home-shortcut-option-icon {
  min-width: 32px;
  width: 32px;
  height: 32px;
  border-radius: 0;
  font-size: 11px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-dashboard.home-desktop-shell .home-ai-stage-panel {
  height: 100%;
}

.home-dashboard.home-desktop-shell .home-ai-stage {
  min-height: 100%;
}

.home-dashboard.home-desktop-shell .home-right-rail {
  grid-template-rows: auto auto;
  gap: 10px;
  align-content: start;
}

.home-dashboard.home-desktop-shell .home-mini-panel {
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.home-dashboard.home-desktop-shell .home-mini-panel .widget-head-compact {
  margin-bottom: 8px;
}

.home-dashboard.home-desktop-shell .home-mini-panel .widget-head-compact p,
.home-dashboard.home-desktop-shell .home-schedule-card .widget-badge {
  display: none;
}

.home-dashboard.home-desktop-shell .home-mini-panel h3 {
  font-size: 14px;
}

.home-dashboard.home-desktop-shell .home-mini-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.home-dashboard.home-desktop-shell .home-mini-form input {
  padding: 8px 10px;
  font-size: 10px;
}

.home-dashboard.home-desktop-shell .home-mini-form button {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  font-size: 10px;
}

.home-dashboard.home-desktop-shell .home-mini-list {
  gap: 6px;
}

.home-dashboard.home-desktop-shell .home-mini-list .schedule-item,
.home-dashboard.home-desktop-shell .home-mini-list .todo-item,
.home-dashboard.home-desktop-shell .home-mini-list .home-file-row,
.home-dashboard.home-desktop-shell .home-mini-list .search-result-item {
  padding: 8px 9px;
  border-radius: 14px;
}

.home-dashboard.home-desktop-shell .home-weather-body {
  gap: 8px;
}

.home-dashboard.home-desktop-shell .home-weather-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 18px;
}

@media (max-width: 900px) {
  body.home-desktop-focus {
    overflow: auto;
  }

  .home-dashboard.home-desktop-shell {
    height: auto;
    overflow: visible;
  }

  .home-dashboard.home-desktop-shell .home-desktop-grid {
    grid-template-columns: 1fr;
  }

  .home-dashboard.home-desktop-shell .home-shortcut-grid {
    height: auto;
    grid-auto-rows: minmax(44px, auto);
  }

  .home-dashboard.home-desktop-shell .home-shortcut-picker {
    position: relative;
    inset: auto;
  }
}

.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-note {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
}

.workspace {
  display: grid;
  gap: 20px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 18px;
}

.hero-box,
.kpi-box,
.module-panel,
.finder-panel,
.action-panel,
.table-panel {
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-box h2,
.kpi-box h3,
.module-panel h3,
.finder-panel h3,
.action-panel h3,
.table-panel h3 {
  margin: 0 0 10px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-mini {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
}

.kpi-number {
  display: block;
  font-size: 34px;
  font-weight: 800;
  margin-top: 8px;
}

.module-section {
  display: grid;
  gap: 18px;
}

.module-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.module-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-btn,
.solid-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--white);
  font: inherit;
}

.ghost-btn {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
}

.solid-btn {
  background: linear-gradient(145deg, #2f7cf6, #5bd0ff);
}

.finder-panel[data-view="medium"] .finder-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.finder-panel[data-view="large"] .finder-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finder-grid {
  display: grid;
  gap: 16px;
}

.finder-item {
  padding: 16px 12px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
}

.finder-icon {
  margin: 0 auto 10px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(17, 28, 47, 0.18);
}

.finder-panel[data-view="medium"] .finder-icon {
  width: 68px;
  height: 68px;
  font-size: 28px;
}

.finder-panel[data-view="large"] .finder-icon {
  width: 94px;
  height: 94px;
  font-size: 36px;
}

.finder-title {
  font-size: 14px;
}

.split-panels {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: 18px;
}

.short-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.short-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  border-left: 3px solid rgba(255,255,255,0.56);
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.data-table th,
.data-table td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.84);
}

.compact-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.compact-tab {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}

.compact-tab.active {
  background: rgba(255,255,255,0.24);
}

.icon-backup { background: linear-gradient(145deg, #9457c8, #d98cff); }
.icon-ai { background: linear-gradient(145deg, #232526, #667dff); }

.explorer-webview[hidden] {
  display: none;
}

.explorer-webview {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.window-tray[hidden] {
  display: none;
}

.window-tray {
  position: fixed;
  top: 86px;
  right: 28px;
  z-index: 2147482900;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.window-tray-item {
  min-width: 184px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 22, 39, 0.9);
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
}

.window-tray-item-icon {
  font-size: 16px;
}

.window-tray-item-label {
  font-size: 12px;
  font-weight: 700;
}

.explorer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.explorer-dialog {
  position: relative;
  z-index: 2147483001;
  width: min(1180px, calc(100vw - 82px));
  height: min(760px, calc(100vh - 122px));
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(7, 13, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 36px 90px rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.explorer-webview.is-maximized .explorer-dialog {
  width: min(1420px, calc(100vw - 24px));
  height: calc(100vh - 42px);
  border-radius: 22px;
  z-index: 10000;
}

.explorer-window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.explorer-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.explorer-window-control {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.explorer-window-control-close {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(248, 113, 113, 0.38);
}

.explorer-window-titlebar {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.explorer-window-titlebar strong {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.explorer-topbar,
.explorer-searchbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.explorer-toolbar-meta,
.explorer-pane-subtitle,
.explorer-selected-folder {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.explorer-topbar-actions,
.explorer-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.explorer-topbar-actions .topbar-btn {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.explorer-topbar-actions .topbar-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.explorer-toolbar-meta {
  min-width: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
}

.explorer-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.explorer-view-toggle button {
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.explorer-view-toggle button.active {
  background: rgba(59, 130, 246, 0.22);
  color: #fff;
}

.folder-operations-bar {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
}

.explorer-search-input,
.explorer-folder-select {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  padding: 8px 12px;
  font: inherit;
}

.explorer-search-input {
  flex: 1 1 320px;
  font-size: 12px;
}

.explorer-content {
  min-height: 0;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 10px;
}

.document-workspace-explorer-open .browser-toolbar,
.document-workspace-explorer-open .folder-operations-bar,
.document-workspace-explorer-open .browser-selection-bar,
.document-workspace-explorer-open .workspace-context-bar,
.document-workspace-explorer-open .file-browser,
.document-workspace-explorer-open .inline-preview-panel {
  visibility: hidden;
  pointer-events: none;
}

.explorer-pane {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.explorer-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.explorer-pane-head strong {
  font-size: 14px;
}

.explorer-pane-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.explorer-folder-grid,
.explorer-file-grid {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  align-content: start;
}

.explorer-folder-grid {
  padding-right: 2px;
}

.explorer-tree-root,
.explorer-tree-row {
  width: 100%;
  display: grid;
  grid-template-columns: 16px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #e5eefc;
  text-align: left;
  cursor: pointer;
}

.explorer-tree-root {
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.explorer-tree-row {
  padding-left: calc(9px + var(--tree-depth, 0) * 14px);
}

.explorer-tree-root.active,
.explorer-tree-row.active {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(125, 211, 252, 0.34);
}

.explorer-tree-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.68);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  line-height: 1;
}

.explorer-tree-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.explorer-tree-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.explorer-tree-meta {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.explorer-tree-group,
.explorer-tree-children,
.explorer-tree-node {
  display: grid;
  gap: 4px;
}

.explorer-file-row {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
}

.explorer-file-row.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(125, 211, 252, 0.4);
}

.explorer-file-open {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.explorer-file-select {
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.explorer-file-select input {
  margin: 0;
}

.explorer-file-select.is-disabled {
  opacity: 0.5;
}

.explorer-file-copy strong {
  font-size: 15px;
}

.explorer-file-copy span,
.explorer-file-copy small,
.explorer-empty-state span,
.explorer-preview-empty span,
.explorer-preview-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.explorer-file-grid[data-view="medium"] {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.explorer-file-grid[data-view="medium"] .explorer-file-row {
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 144px;
}

.explorer-file-grid[data-view="medium"] .explorer-file-open {
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: start;
}

.explorer-file-grid[data-view="medium"] .explorer-file-row .file-icon {
  width: 42px;
  height: 42px;
}

.explorer-file-grid[data-view="list"] {
  grid-template-columns: 1fr;
}

.explorer-file-row .file-icon {
  width: 48px;
  height: 48px;
  margin: 0;
}

.explorer-file-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.explorer-file-copy strong,
.explorer-file-copy span,
.explorer-file-copy small {
  overflow-wrap: anywhere;
}

.explorer-file-kind {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
}

.explorer-file-copy span,
.explorer-file-copy small {
  font-size: 11px;
}

.explorer-empty-state,
.explorer-preview-empty {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
  min-height: 140px;
  padding: 16px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.search-workbench-dialog {
  width: min(1280px, calc(100vw - 72px));
  height: min(820px, calc(100vh - 96px));
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.search-workbench-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.search-workbench-topbar strong {
  display: block;
  font-size: 22px;
  color: #fff;
}

.search-workbench-topbar p {
  margin: 8px 0 0;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.6;
}

.search-workbench-meta-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-workbench-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.search-workbench-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 312px minmax(0, 1fr);
  gap: 10px;
}

.search-workbench-pane {
  padding: 12px;
}

.search-workbench-actions-pane {
  grid-template-rows: auto 1fr auto;
}

.search-workbench-action-list,
.search-workbench-result-list,
.search-workbench-detail {
  min-height: 0;
  overflow: auto;
}

.search-workbench-action-list,
.search-workbench-result-list {
  display: grid;
  gap: 8px;
  align-content: start;
}

.search-workbench-action {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.search-workbench-action.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(125, 211, 252, 0.34);
}

.search-workbench-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(4, 10, 24, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-workbench-action-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.search-workbench-action-copy strong {
  font-size: 14px;
}

.search-workbench-action-copy small,
.search-workbench-summary-card span,
.search-workbench-inline-note span,
.search-workbench-detail-card p,
.search-workbench-detail-meta span,
.search-workbench-result-copy small {
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.55;
}

.search-workbench-history-summary {
  display: grid;
  gap: 10px;
}

.search-workbench-summary-card,
.search-workbench-inline-note,
.search-workbench-detail-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-workbench-summary-card strong,
.search-workbench-inline-note strong,
.search-workbench-detail-card strong {
  display: block;
  color: #fff;
}

.search-workbench-summary-card span,
.search-workbench-inline-note span,
.search-workbench-detail-card p {
  display: block;
  margin-top: 8px;
}

.search-workbench-inline-danger {
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(127, 29, 29, 0.18);
}

.search-workbench-controls {
  display: grid;
  gap: 12px;
}

.search-workbench-form {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.search-workbench-form-ai {
  grid-template-columns: minmax(0, 1fr) auto;
}

.search-workbench-field {
  display: grid;
  gap: 6px;
}

.search-workbench-field-wide {
  grid-column: span 2;
}

.search-workbench-field span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-workbench-field input,
.search-workbench-field select,
.search-workbench-field textarea {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}

.search-workbench-field textarea {
  min-height: 120px;
  resize: vertical;
}

.search-workbench-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.92fr);
  gap: 10px;
}

.search-workbench-results-shell {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
}

.search-workbench-result-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.search-workbench-result-item.active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(125, 211, 252, 0.34);
}

.search-workbench-result-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.search-workbench-result-copy strong,
.search-workbench-result-copy span,
.search-workbench-result-copy small {
  overflow-wrap: anywhere;
}

.search-workbench-detail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.search-workbench-detail-card {
  display: grid;
  gap: 12px;
}

.search-workbench-detail-card p {
  margin: 0;
}

.search-workbench-detail-meta {
  display: grid;
  gap: 8px;
}

.search-workbench-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-workbench .topbar-btn-danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.32);
}

@media (max-width: 1080px) {
  .explorer-content {
    grid-template-columns: 1fr;
  }

  .search-workbench-layout,
  .search-workbench-content {
    grid-template-columns: 1fr;
  }

  .search-workbench-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-workbench-form-ai {
    grid-template-columns: 1fr;
  }

  .search-workbench-field-wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .signature-lockline {
    bottom: 4px;
    max-width: calc(100vw - 16px);
    padding: 0 8px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .explorer-webview {
    padding: 12px;
  }

  .window-tray {
    top: 74px;
    right: 12px;
  }

  .explorer-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    padding: 14px;
    border-radius: 24px;
  }

  .search-workbench-dialog {
    height: calc(100vh - 24px);
  }

  .explorer-file-row {
    grid-template-columns: 1fr;
  }

  .explorer-file-open {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .explorer-file-kind {
    display: none;
  }

  .explorer-view-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .explorer-window-chrome {
    align-items: flex-start;
    flex-direction: column;
  }

  .explorer-search-input,
  .explorer-folder-select {
    width: 100%;
    min-width: 0;
  }

  .search-workbench-meta-strip,
  .search-workbench-detail-actions,
  .search-workbench-form,
  .search-workbench-form-ai {
    width: 100%;
  }

  .search-workbench-form,
  .search-workbench-form-ai {
    grid-template-columns: 1fr;
  }

  .search-workbench-field-wide {
    grid-column: auto;
  }

  .search-workbench-result-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .app-shell,
  .hero-panel,
  .split-panels {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .finder-panel[data-view="medium"] .finder-grid,
  .finder-panel[data-view="large"] .finder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell,
  .hero-panel,
  .split-panels,
  .kpi-row {
    grid-template-columns: 1fr;
  }

  .finder-panel[data-view="medium"] .finder-grid,
  .finder-panel[data-view="large"] .finder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}