:root {
  --bg: #f3f2f1;
  --panel: #ffffff;
  --sidebar: #faf9f8;
  --line: #edebe9;
  --line-strong: #d2d0ce;
  --text: #323130;
  --muted: #605e5c;
  --blue: #0f6cbd;
  --blue-dark: #115ea3;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Segoe UI Variable", Tahoma, Arial, sans-serif;
  font-size: 14px;
  position: relative;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.error-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(243, 242, 241, 0.54);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.verify-panel,
.error-window {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(73, 90, 113, 0.18);
}

.verify-panel {
  width: min(100%, 580px);
  padding: 30px 40px 28px;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.verify-panel h2 {
  margin: 0;
  color: #4a7ff0;
  font-size: clamp(28px, 4.1vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  white-space: nowrap;
}

.verify-copy {
  margin: 0;
  color: #2f3543;
  font-size: 18px;
  line-height: 1.5;
}

.verify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 16px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #4b83eb, #447de5);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(68, 125, 229, 0.2);
}

.verify-button:hover {
  background: linear-gradient(180deg, #558af0, #4a82e9);
}

.verify-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    conic-gradient(from 35deg, #6ca1fb 0 18%, transparent 18% 33%, #2e60bd 33% 55%, transparent 55% 72%, #7caaf7 72% 100%);
}

.verify-icon::before,
.verify-icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
}

.verify-icon::before {
  border-top: 4px solid rgba(255, 255, 255, 0.32);
  border-left: 4px solid rgba(255, 255, 255, 0.32);
  transform: rotate(-16deg);
}

.verify-icon::after {
  width: 9px;
  height: 9px;
  inset: auto 4px 4px auto;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.65);
  transform: rotate(45deg);
}

.verify-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.error-window {
  width: min(100%, 620px);
  padding: 28px 30px;
  text-align: center;
}

.error-window h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
  white-space: nowrap;
}

.error-list {
  display: block;
  width: fit-content;
  margin: 20px auto 0 24%;
  padding-left: 24px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.7;
  text-align: left;
}

.windows-logo {
  display: inline-grid;
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
  margin: 0 6px 0 4px;
  vertical-align: middle;
  transform: translateY(-2px);
}

.windows-logo span {
  width: 8px;
  height: 8px;
  background: currentColor;
}

.is-hidden {
  display: none;
}

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
}

.content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.suite-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8f8f8;
  color: var(--muted);
  font-size: 12px;
}

.suite-brand,
.suite-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suite-waffle {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 2px;
}

.suite-waffle span {
  width: 5px;
  height: 5px;
  background: #605e5c;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 16px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 3px;
}

.brand-mark span {
  width: 10px;
  height: 10px;
  background: #0f6cbd;
}

.brand h1,
.section-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-group {
  display: grid;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.nav-item:hover {
  background: #f3f2f1;
}

.nav-item.active {
  background: #e8f3fc;
  color: #0b5cab;
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  color: var(--muted);
  text-align: center;
}

.nav-item.active .nav-icon {
  color: #0b5cab;
}

.storage-card {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

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

.storage-copy strong {
  font-size: 16px;
  font-weight: 600;
}

.storage-copy span,
.profile-pill small,
.file-cell small {
  color: var(--muted);
}

.storage-bar {
  height: 6px;
  margin: 12px 0;
  border-radius: 999px;
  background: #edebe9;
  overflow: hidden;
}

.storage-bar span {
  display: block;
  width: 82%;
  height: 100%;
  background: var(--blue);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 28px;
}

.breadcrumbs span {
  color: var(--muted);
}

.breadcrumbs strong {
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 320px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.icon-button,
.ghost-chip,
.secondary-action,
.primary-action {
  padding: 7px 12px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
}

.primary-action {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.primary-action:hover {
  background: var(--blue-dark);
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.command-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace {
  padding: 16px 20px 28px;
}

.info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #c7e0f4;
  background: #f3f9fd;
  color: #004578;
}

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f6cbd;
}

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

.section-head.compact {
  margin-top: 4px;
}

.folder-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.mini-folder-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.folder-icon {
  width: 28px;
  height: 22px;
  border-radius: 2px;
  position: relative;
  background: #f8d77c;
  border: 1px solid #d8b45a;
}

.folder-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 3px;
  width: 12px;
  height: 6px;
  border: 1px solid #d8b45a;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: #fae3a5;
}

.folder-icon.azure {
  background: #f7d978;
}

.folder-icon.amber {
  background: #f4d36f;
}

.folder-icon.coral {
  background: #f2cd68;
}

.folder-icon.teal {
  background: #eed07a;
}

.file-table {
  border: 1px solid var(--line);
  background: var(--panel);
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 24px minmax(260px, 1.7fr) 160px 180px 110px;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
}

.table-head {
  background: #faf9f8;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.table-row {
  border-bottom: 1px solid var(--line);
  min-height: 44px;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row:hover {
  background: #f8fbfd;
}

.select-box {
  width: 16px;
  height: 16px;
  border: 1px solid #c8c6c4;
  border-radius: 2px;
  background: #fff;
}

.file-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.file-cell div {
  min-width: 0;
}

.file-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.file-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.file-badge.folder {
  background: #c08a00;
}

.file-badge.doc {
  background: #185abd;
}

.file-badge.xls {
  background: #107c41;
}

.file-badge.ppt {
  background: #c43e1c;
}

.file-badge.pdf {
  background: #d13438;
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 760px) {
  .suite-bar,
  .topbar,
  .command-bar,
  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .folder-strip {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .workspace {
    padding: 14px;
  }

  .verify-panel,
  .error-window {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .verify-copy {
    font-size: 17px;
  }

  .verify-button {
    font-size: 18px;
  }

  .error-list {
    font-size: 17px;
  }
}

