/* ===================================================
   DATA HUB THE HERITAGE LÁNG HẠ - BENTO EXECUTIVE DASHBOARD v2.7
   Theme: French Limestone Silk • Brushed Metallic Gold • Imperial Lotus Jade
          (Chuẩn Bộ Nhận Diện The Heritage Láng Hạ @heritage29langha)
   Typography: Plus Jakarta Sans & Manrope (Clean Geometric Sans)
   Strict Scale: 3 Tokens Only (--fs-lg, --fs-md, --fs-sm)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --fs-lg: 15px;
  --fs-md: 13.5px;
  --fs-sm: 12px;

  --lh-lg: 1.4;
  --lh-md: 1.5;
  --lh-sm: 1.4;

  --font-main: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Official Brand Palette: The Heritage Láng Hạ (Champagne Silk • Brushed Gold • Imperial Jade) */
  --heritage-jade-deep: #0B3D2C;
  --heritage-jade: #115640;
  --heritage-jade-bright: #197054;
  --heritage-jade-tint: rgba(17, 86, 64, 0.08);

  --heritage-gold-deep: #8C5E26;
  --heritage-gold-main: #B4823E;
  --heritage-gold-bright: #C99A55;
  --heritage-gold-shimmer: #EBD09E;
  --heritage-gold-soft: #F7EFE0;

  --canvas-ivory: #FBF7F0;
  --canvas-champagne: #F4EBDC;
  --canvas-limestone: #EBDDCA;

  --surface-white: #FFFFFF;
  --surface-pearl: #FFFEFA;
  --surface-inner-tray: #FAF5EC;
  --surface-row-hover: #FFFDF7;

  --border-gold-subtle: #E2CCA7;
  --border-gold-medium: #CFA972;
  --border-gold-strong: #B4823E;

  --text-primary: #1C2621;
  --text-jade-title: #0E4533;
  --text-secondary: #534636;
  --text-muted: #826E57;

  --radius-sm: 9px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 26px rgba(110, 78, 36, 0.07), 0 1px 3px rgba(17, 86, 64, 0.04);
  --shadow-card-hover: 0 14px 34px rgba(140, 94, 38, 0.13), 0 2px 8px rgba(17, 86, 64, 0.06);
  --shadow-header: 0 6px 28px rgba(110, 78, 36, 0.09);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 900px) {
  :root {
    --fs-lg: 14px;
    --fs-md: 13px;
    --fs-sm: 11.5px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-md);
  line-height: var(--lh-md);
  background-color: var(--canvas-champagne);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255, 253, 248, 0.96) 0%, transparent 58%),
    radial-gradient(circle at 12% 18%, rgba(201, 154, 85, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 88% 22%, rgba(17, 86, 64, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #FCF8F1 0%, #F4EBDC 54%, #EBDDCA 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .brand-text h1, .folder-title-text, .footer-logo-title {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.015em;
}

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

button {
  font-family: inherit;
  font-size: var(--fs-md);
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--canvas-ivory);
}
::-webkit-scrollbar-thumb {
  background: var(--border-gold-medium);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--heritage-jade);
}

/* ===================================================
   HEADER (FROSTED PEARL-CHAMPAGNE SILK • IMPERIAL JADE & GOLD)
   =================================================== */
.tuta-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.97) 0%, rgba(250, 244, 232, 0.94) 100%);
  backdrop-filter: blur(20px);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #115640 0%, #C99A55 25%, #F2D8A3 50%, #C99A55 75%, #115640 100%) 1;
  border-bottom: 1.5px solid var(--border-gold-medium);
  box-shadow: var(--shadow-header);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(17, 86, 64, 0.14));
  transition: var(--transition);
}
.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-divider {
  width: 1.5px;
  height: 26px;
  background: linear-gradient(180deg, transparent, var(--border-gold-medium), transparent);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-sub-title {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--heritage-gold-deep);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-main-title {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: 0.35px;
  color: var(--heritage-jade);
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-partner-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--heritage-gold-soft);
  border: 1px solid var(--border-gold-subtle);
  margin-left: 4px;
  flex-shrink: 0;
}

.brand-partner-pill img {
  height: 15px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header-sync {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  background: linear-gradient(135deg, #115640 0%, #197054 100%);
  border: 1.5px solid #C99A55;
  color: #FFFFFF;
  border-radius: 999px;
  font-size: var(--fs-md);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(17, 86, 64, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-header-sync:hover:not(:disabled) {
  background: linear-gradient(135deg, #9C6C2F 0%, #C99A55 100%);
  color: #FFFFFF;
  border-color: #8C5E26;
  transform: translateY(-1px);
}
.btn-header-sync.syncing i {
  animation: spin 0.8s linear infinite;
}

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

.btn-header-drive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: var(--surface-white);
  border: 1.5px solid var(--border-gold-medium);
  color: var(--heritage-jade);
  border-radius: 999px;
  font-size: var(--fs-md);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-header-drive i {
  color: var(--heritage-gold-main);
}
.btn-header-drive:hover {
  background: var(--heritage-gold-soft);
  border-color: var(--heritage-jade);
  color: var(--heritage-jade-deep);
  transform: translateY(-1px);
}

/* ===================================================
   MAIN CONTAINER (SEARCH, QUICK FILTER & BENTO GRID)
   =================================================== */
.datahub-main-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 22px 54px;
  flex: 1;
}

.search-controls-wrapper {
  margin-bottom: 18px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-white);
  border: 2px solid var(--border-gold-medium);
  border-radius: 999px;
  padding: 8px 16px 8px 18px;
  box-shadow: 0 8px 26px rgba(140, 94, 38, 0.09);
  transition: var(--transition);
}
.search-input-box:focus-within {
  border-color: var(--heritage-jade);
  box-shadow: 0 10px 30px rgba(17, 86, 64, 0.14);
}

.search-icon {
  font-size: var(--fs-lg);
  color: var(--heritage-jade);
  margin-right: 10px;
}

.mindmap-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--fs-md);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 600;
}
.mindmap-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.btn-clear-search {
  color: var(--text-muted);
  font-size: var(--fs-md);
  padding: 4px;
  display: none;
}
.btn-clear-search:hover {
  color: var(--heritage-jade);
}

/* Quick Category Filter Pills & Toolbar Row */
.dashboard-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 0 2px;
}

.category-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-gold-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(110, 78, 36, 0.04);
}
.filter-pill:hover {
  background: var(--surface-white);
  border-color: var(--heritage-gold-main);
  color: var(--heritage-jade);
  transform: translateY(-1px);
}
.filter-pill.active {
  background: linear-gradient(135deg, #115640 0%, #197054 100%);
  border-color: #115640;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(17, 86, 64, 0.22);
}

.filter-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--heritage-gold-soft);
  color: var(--heritage-gold-deep);
}
.filter-pill.active .filter-pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFF4D4;
}

.toolbar-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.btn-toggle-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-gold-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.btn-toggle-all:hover {
  background: var(--surface-white);
  border-color: var(--heritage-gold-main);
  color: var(--heritage-jade);
}

/* ===================================================
   BENTO 2-COLUMN BALANCED DIRECTORY ARCHITECTURE
   =================================================== */
.royal-directory-list.bento-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.bento-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* Single Category Focus Mode (When a filter tab is clicked) */
.royal-directory-list.bento-directory-grid.is-single-focus {
  grid-template-columns: minmax(0, 1fr);
}
.royal-directory-list.bento-directory-grid.is-single-focus .folder-checklist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

@media (max-width: 920px) {
  .royal-directory-list.bento-directory-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .bento-column {
    gap: 14px;
  }
  .royal-directory-list.bento-directory-grid.is-single-focus .folder-checklist-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.royal-folder-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
}

.royal-folder-card:hover {
  border-color: var(--border-gold-medium);
  box-shadow: var(--shadow-card-hover);
}

.royal-folder-card.open {
  border-color: var(--border-gold-medium);
  box-shadow: var(--shadow-card);
}

.folder-header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px 0 18px;
  gap: 10px;
  cursor: pointer;
  background: linear-gradient(90deg, #FFFFFF 0%, #FCF7ED 100%);
  transition: var(--transition);
  user-select: none;
}
.folder-header-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #115640 0%, #C99A55 100%);
}
.folder-header-bar:hover {
  background: linear-gradient(90deg, #FFFDF9 0%, #F7EFE0 100%);
}

.royal-folder-card.open .folder-header-bar {
  background: linear-gradient(90deg, #FFFDF9 0%, #F9F1E2 65%, #F3E5CE 100%);
  border-bottom: 1px solid var(--border-gold-subtle);
}

.folder-title-group {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.folder-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #115640 0%, #197054 100%);
  border: 1.5px solid #D8B475;
  color: #FFF3D1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(17, 86, 64, 0.18);
}

.folder-title-text {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--text-jade-title);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: var(--lh-lg);
}

.folder-meta-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.folder-count-badge {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--heritage-gold-deep);
  background: var(--heritage-gold-soft);
  border: 1px solid var(--border-gold-subtle);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.folder-drive-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #9C6C2F 0%, #C59449 100%);
  border: 1px solid #8C5E26;
  color: #FFFFFF;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(156, 108, 47, 0.2);
}

.folder-drive-btn:hover,
.folder-drive-btn:focus-visible {
  background: linear-gradient(135deg, #115640 0%, #197054 100%);
  color: #FFFFFF;
  border-color: #115640;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(17, 86, 64, 0.25);
}

.folder-drive-btn i {
  font-size: 0.72rem;
  opacity: 0.95;
}

.folder-drive-btn-label-short {
  display: none;
}

@media (max-width: 576px) {
  .brand-partner-pill {
    display: none;
  }
  .folder-header-bar {
    gap: 8px;
  }
  .folder-title-group {
    gap: 8px;
  }
  .folder-meta-right {
    gap: 6px;
  }
  .folder-count-badge {
    padding: 2px 6px;
  }
  .folder-drive-btn {
    padding: 3px 7px;
    gap: 4px;
  }
  .folder-drive-btn-label-full {
    display: none;
  }
  .folder-drive-btn-label-short {
    display: inline;
  }
}

.folder-chevron-icon {
  font-size: var(--fs-sm);
  color: var(--heritage-gold-main);
  transition: transform 0.25s ease;
}
.royal-folder-card.open .folder-chevron-icon {
  transform: rotate(180deg);
  color: var(--heritage-jade);
}

.folder-items-body {
  display: none;
  padding: 10px 12px 13px;
  background: var(--surface-inner-tray);
}
.royal-folder-card.open .folder-items-body {
  display: block;
}

.folder-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.folder-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  border: 1px solid #E8D7BC;
  box-shadow: 0 2px 4px rgba(110, 78, 36, 0.03);
  transition: var(--transition);
  color: var(--text-primary);
  gap: 10px;
}
.folder-link-item:hover {
  background: var(--surface-row-hover);
  border-color: var(--heritage-gold-main);
  box-shadow: 0 4px 12px rgba(140, 94, 38, 0.10);
  transform: translateX(3px);
}

.item-left-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.item-type-icon {
  font-size: var(--fs-md);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.item-type-icon.pdf { color: #DC2626; }
.item-type-icon.image { color: #B47834; }
.item-type-icon.video { color: #7C3AED; }
.item-type-icon.excel { color: #15803D; }
.item-type-icon.link { color: var(--heritage-jade); }
.item-type-icon.zip { color: #D97706; }

.item-title-text {
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: var(--lh-md);
  color: var(--text-primary);
  white-space: normal;
  word-break: break-word;
}
.folder-link-item:hover .item-title-text {
  color: var(--heritage-jade);
  font-weight: 700;
}

.item-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.item-type-pill {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--heritage-gold-soft);
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid #E4CEAA;
}

.item-open-icon {
  font-size: var(--fs-sm);
  color: var(--heritage-gold-main);
  opacity: 0.85;
}
.folder-link-item:hover .item-open-icon {
  color: var(--heritage-jade);
  opacity: 1;
  transform: scale(1.15);
}

.folder-link-item.pending {
  cursor: pointer;
  opacity: 0.82;
  background: #FAF6F0;
}
.folder-link-item.pending:hover {
  opacity: 1;
  background: #FFF9EE;
  border-color: #D97706;
  transform: none;
}
.folder-link-item.pending .item-title-text {
  color: var(--text-secondary);
}

.item-status-pending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.empty-search-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface-white);
  border: 1.5px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-top: 20px;
}
.empty-search-state .empty-icon {
  font-size: 32px;
  color: var(--heritage-gold-main);
  margin-bottom: 10px;
}
.empty-search-state h3 {
  font-size: var(--fs-lg);
  color: var(--text-jade-title);
  margin-bottom: 4px;
}
.empty-search-state p {
  font-size: var(--fs-md);
  color: var(--text-muted);
}

/* ===================================================
   TOAST NOTIFICATION
   =================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120px);
  background: linear-gradient(135deg, #115640 0%, #197054 100%);
  border: 1.5px solid #EBD09E;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(17, 86, 64, 0.32);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-md);
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  max-width: 90vw;
  width: max-content;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ===================================================
   FOOTER (CHAMPAGNE ALABASTER SILK PEDESTAL • JADE & GOLD)
   =================================================== */
.tuta-footer {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92) 0%, #EFE3CE 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent 5%, #C99A55 30%, #115640 50%, #C99A55 70%, transparent 95%) 1;
  padding: 26px 20px;
  text-align: center;
  color: var(--text-primary);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-logo-main {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.footer-logo-divider {
  width: 1.5px;
  height: 22px;
  background: var(--border-gold-medium);
}
.footer-logo-partner {
  height: 21px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}
.footer-logo-title {
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: 0.45px;
  color: var(--heritage-jade);
  margin-bottom: 4px;
}
.footer-text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .datahub-main-container {
    padding: 12px 10px 40px;
  }
  .header-container {
    padding: 8px 10px;
    min-height: 52px;
    gap: 8px;
  }
  .brand-wrapper {
    gap: 7px;
  }
  .brand-logo-img {
    height: 34px;
    width: 34px;
  }
  .brand-divider {
    height: 18px;
  }
  .brand-sub-title {
    font-size: 9.5px;
    letter-spacing: 0.6px;
  }
  .brand-main-title {
    font-size: 13px;
    white-space: nowrap;
  }
  .header-actions {
    gap: 5px;
  }
  .btn-header-sync, .btn-header-drive {
    height: 30px;
    padding: 0 10px;
    gap: 4px;
    border-radius: 999px;
    font-size: 12px;
  }
  .folder-header-bar {
    height: 52px;
    padding: 0 12px 0 14px;
  }
  .folder-icon-box {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .folder-items-body {
    padding: 8px 8px 10px;
  }
  .folder-link-item {
    padding: 8px 10px;
    gap: 6px;
  }
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  line-height: 1;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: default;
  user-select: none;
}

.sync-status .sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--heritage-jade);
  box-shadow: 0 0 6px rgba(17, 86, 64, 0.55);
  flex-shrink: 0;
}

.sync-status.is-syncing .sync-dot {
  width: 9px;
  height: 9px;
  background: transparent;
  box-shadow: none;
  border: 1.5px solid var(--heritage-gold-main);
  border-top-color: transparent;
  animation: spin 0.9s linear infinite;
}

.sync-status.is-error {
  color: #B45309;
}

.sync-status.is-error .sync-dot {
  background: #D97706;
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.6);
}

.btn-header-sync:disabled {
  cursor: progress;
  opacity: 0.75;
}

.skeleton-card {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold-subtle);
  background: var(--surface-white);
}

.skeleton-icon,
.skeleton-line {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(180, 130, 62, 0.08) 25%, rgba(180, 130, 62, 0.20) 50%, rgba(180, 130, 62, 0.08) 75%);
  background-size: 200% 100%;
  animation: dhShimmer 1.3s ease-in-out infinite;
}

.skeleton-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.skeleton-line {
  height: 12px;
}

@keyframes dhShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.badge-new {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--heritage-jade);
  color: #FFF3D1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.badge-new-folder {
  margin-left: 0;
  margin-right: 0;
}

.folder-link-item.is-fresh {
  animation: dhFreshPulse 2s ease-out 1;
}

@keyframes dhFreshPulse {
  0% { box-shadow: inset 0 0 0 1.5px var(--heritage-gold-main), 0 0 14px rgba(180, 130, 62, 0.35); }
  100% { box-shadow: inset 0 0 0 1.5px transparent, 0 0 0 rgba(180, 130, 62, 0); }
}

@media (max-width: 640px) {
  .dashboard-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-meta-right {
    justify-content: space-between;
    margin-left: 0;
  }
}
