/* ==========================================================
   MULTI-THEME STEALTH WORKSPACE DISGUISE SYSTEM
   Supports: Google Sheets (Primary), Excel 365, and VS Code IDE
   ========================================================== */

:root {
  /* Fonts */
  --font-gsheet: 'Google Sans', Roboto, RobotoDraft, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-excel: 'Segoe UI', Calibri, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-vscode: 'Consolas', 'Courier New', Menlo, Monaco, monospace;
  
  --story-font-family: 'Arial', sans-serif;
  --story-font-size: 11pt;
  --story-line-height: 1.75;
  --story-letter-spacing: 0.15px;
  --story-color: #202124;

  /* Google Sheets Colors */
  --gs-green: #0F9D58;
  --gs-blue: #1a73e8;
  --gs-toolbar-bg: #edf2fa;
  --gs-border: #e0e0e0;
  --gs-grid-header: #f8f9fa;
  --gs-active-cell: #1a73e8;

  /* Excel Colors */
  --excel-green: #107c41;
  --excel-ribbon-bg: #f3f2f1;
  --excel-border: #e1dfdd;
  --excel-active-cell: #107c41;

  /* VS Code Colors */
  --vsc-bg: #1e1e1e;
  --vsc-sidebar-bg: #252526;
  --vsc-act-bg: #333333;
  --vsc-header: #3c3c3c;
  --vsc-tab-active: #1e1e1e;
  --vsc-tab-inactive: #2d2d2d;
  --vsc-status: #007acc;
  --vsc-border: #333333;
  --vsc-text: #cccccc;
}

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

body {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 12px;
}

/* --------------------------------------------------
   THEME TOGGLING DISPLAY RULES (ALL 8 THEMES)
   -------------------------------------------------- */
.gsheet-only, .gdocs-only, .excel-only, .vscode-only, .photoshop-only, .blender-only, .linkedin-only, .autocad-only, .gsheet-excel-only {
  display: none !important;
}

body.theme-googlesheets .gsheet-only,
body.theme-googlesheets .gsheet-excel-only { display: flex !important; }

body.theme-googledocs .gdocs-only { display: flex !important; }

body.theme-excel .excel-only,
body.theme-excel .gsheet-excel-only { display: flex !important; }

body.theme-vscode .vscode-only { display: flex !important; }

body.theme-photoshop .photoshop-only { display: flex !important; }

body.theme-blender .blender-only { display: flex !important; }

body.theme-linkedin .linkedin-only { display: flex !important; }

body.theme-autocad .autocad-only { display: flex !important; }


#main-sheets-bar { display: none; }
body.theme-googlesheets #main-sheets-bar,
body.theme-excel #main-sheets-bar,
body.theme-vscode #main-sheets-bar { display: flex; }

.theme-header-container {
  display: none;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
}


/* ==================================================
   THEME 1: GOOGLE SHEETS
   ================================================== */
body.theme-googlesheets {
  font-family: var(--font-gsheet);
  background-color: #ffffff;
  color: #202124;
}

/* Google Sheets Top Bar & Header */
body.theme-googlesheets .theme-header-container {
  display: flex !important;
  flex-direction: column;
  background-color: #ffffff;
  width: 100%;
  flex-shrink: 0;
}

.gsheet-top-bar {
  background-color: #ffffff;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px 16px;
  box-sizing: border-box;
}

.gsheet-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.gsheet-logo-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.gsheet-title-and-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.gsheet-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gsheet-doc-title {
  font-size: 18px;
  color: #1f1f1f;
  font-weight: 400;
  line-height: 24px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
  cursor: text;
}
.gsheet-doc-title:hover {
  outline: 1px solid #dadce0;
}

.docs-titlebar-badges {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.gsheet-icon-btn {
  background: transparent;
  border: none;
  color: #444746;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.gsheet-icon-btn:hover {
  background-color: #f1f3f4;
}

.gsheet-cloud-status {
  display: inline-flex;
  align-items: center;
  color: #444746;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  justify-content: center;
  cursor: pointer;
}
.gsheet-cloud-status:hover {
  background-color: #f1f3f4;
}

.gsheet-menu-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: -3px;
  flex-wrap: nowrap;
}

.gsheet-menu-item {
  background: transparent;
  border: none;
  padding: 2px 6px;
  font-size: 13.5px;
  line-height: 18px;
  color: #1f1f1f;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.gsheet-menu-item:hover {
  background-color: #f1f3f4;
}

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

.docs-presence-chicken-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgb(163, 90, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 2px #ffffff;
}
.docs-presence-chicken-avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.gsheet-circle-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444746;
  padding: 0;
}
.gsheet-circle-btn:hover {
  background-color: #f1f3f4;
}

.gsheet-meet-container {
  display: inline-flex;
  align-items: center;
}
.gsheet-meet-btn {
  background: transparent;
  border: none;
  height: 36px;
  padding: 0 8px;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #444746;
}
.gsheet-meet-btn:hover {
  background-color: #f1f3f4;
}

.gsheet-share-split-btn {
  display: inline-flex;
  align-items: center;
  background-color: #c2e7ff;
  border-radius: 20px;
  height: 36px;
  overflow: hidden;
  margin-left: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.gsheet-share-split-btn:hover {
  background-color: #b8e2fb;
}
.gsheet-share-main {
  background: transparent;
  border: none;
  height: 100%;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #001d35;
  cursor: pointer;
}
.gsheet-share-caret {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(0, 29, 53, 0.15);
  height: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #001d35;
  cursor: pointer;
}

.gsheet-gemini-sparkle-btn {
  margin-left: 2px;
}

.gsheet-user-profile-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #681da8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
  margin-left: 4px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

/* Material 3 Rounded Toolbar */
.gsheet-toolbar {
  background-color: #edf2fa;
  height: 38px;
  border-radius: 20px;
  margin: 0 16px 4px 16px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-sizing: border-box;
}

.gsheet-tools-group {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gsheet-tools-group::-webkit-scrollbar {
  display: none;
}

.gs-omnibox-pill {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12.5px;
  color: #444746;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.gs-omnibox-pill:hover {
  background: #f8fafd;
}

.gs-tool-symbol-btn {
  font-size: 12.5px;
  font-weight: 500;
  color: #444746;
  padding: 0 4px;
  width: auto;
  min-width: 26px;
  height: 28px;
  gap: 2px;
}

.gs-zoom-wrapper, .gs-font-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.gs-select-caret {
  position: absolute;
  right: 6px;
  pointer-events: none;
  color: #444746;
}

.gs-zoom-select {
  width: 68px;
  padding-right: 18px;
  appearance: none;
}
.gs-font-select {
  width: 142px;
  padding-right: 20px;
  appearance: none;
}

.gs-font-size-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 14px;
  height: 28px;
  padding: 0 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.gs-font-step-btn {
  width: 22px;
  height: 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  color: #444746;
}
.gs-size-select {
  width: 32px;
  height: 24px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #1f1f1f;
  outline: none;
  cursor: pointer;
  padding: 0;
  appearance: none;
}

.gs-color-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.gs-color-letter {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}
.gs-color-bar {
  display: block;
  width: 12px;
  height: 3px;
  background-color: #1f1f1f;
  margin-top: 1px;
}

.gs-collapse-btn {
  margin-left: auto;
  flex-shrink: 0;
}
.gsheet-tools-group, .gsheet-stealth-group { display: flex; align-items: center; gap: 2px; }
.gs-tool-btn {
  background: transparent;
  border: none;
  height: 28px;
  min-width: 28px;
  padding: 0 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444746;
  font-size: 13px;
  flex: 0 0 auto;
  gap: 1px;
}
.gs-tool-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.gs-tool-btn:hover { background-color: rgba(68, 71, 70, 0.08); }
.gs-tool-btn.active-toggle { background-color: #d3e3fd; color: #041e49; }
.gs-tool-divider { width: 1px; height: 18px; background-color: #c4c7c5; margin: 0 4px; }

.gs-select {
  background: transparent;
  border: none;
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
  color: #444746;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-gsheet);
  outline: none;
}
.gs-select:hover { background-color: rgba(68, 71, 70, 0.08); }
.gs-font-select { width: 90px; }
.gs-size-select { width: 44px; }
.gs-zoom-select { width: 62px; }

.gs-stealth-pill-btn {
  background: white;
  border: 1px solid #c4c7c5;
  border-radius: 14px;
  height: 26px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  color: #0F9D58;
}
.gs-stealth-pill-btn:hover { background-color: #e6f4ea; }
.gs-file-name {
  font-size: 10px;
  color: #5f6368;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-page-controls, .gs-autoscroll-controls { display: flex; align-items: center; gap: 3px; }
.gs-mini-btn {
  background: white;
  border: 1px solid #c4c7c5;
  border-radius: 3px;
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
  cursor: pointer;
  color: #444746;
}
.gs-mini-btn:hover { background-color: #f1f3f4; }
.gs-mini-btn.gs-play-btn { font-weight: 600; color: #0F9D58; border-color: #0F9D58; }
.gs-mini-btn.gs-play-btn.playing { color: #d93025; border-color: #d93025; }
.gs-page-text { font-size: 11px; font-weight: 600; color: #1f1f1f; min-width: 50px; text-align: center; }
#gs-input-jump {
  width: 44px;
  height: 24px;
  border: 1px solid #c4c7c5;
  border-radius: 3px;
  font-size: 11px;
  text-align: center;
  outline: none;
}
.gs-dim-control { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #5f6368; }
.gs-dim-control input { width: 65px; }


/* ==================================================
   THEME 2: MICROSOFT EXCEL 365
   ================================================== */
body.theme-excel {
  font-family: var(--font-excel);
  background-color: #ffffff;
  color: #323130;
}

.excel-title-bar {
  background-color: var(--excel-green);
  color: #ffffff;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  flex-shrink: 0;
  font-size: 12px;
}
.excel-title-bar .left-section { display: flex; align-items: center; gap: 10px; }
.quick-access { display: flex; align-items: center; gap: 2px; }
.qa-btn { background: transparent; border: none; color: white; padding: 4px 6px; border-radius: 2px; cursor: pointer; }
.autosave-container { display: flex; align-items: center; gap: 6px; font-size: 11px; border-left: 1px solid rgba(255, 255, 255, 0.3); padding-left: 8px; }
.document-name { font-weight: 600; font-size: 12px; margin-left: 10px; white-space: nowrap; }
.center-search { flex: 0 1 420px; margin: 0 16px; }
.search-box { background-color: rgba(255, 255, 255, 0.9); border-radius: 4px; height: 26px; display: flex; align-items: center; padding: 0 10px; gap: 8px; }
.search-box input { border: none; outline: none; background: transparent; width: 100%; font-size: 12px; }
.right-window-controls { display: flex; align-items: center; gap: 8px; }
.user-profile { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 0 8px; }
.user-avatar { background-color: #004b1c; color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 10px; }
.win-btn { background: transparent; border: none; color: white; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.win-btn:hover { background-color: rgba(255, 255, 255, 0.15); }
.win-close:hover { background-color: #c42b1c; }

.excel-ribbon-tabs {
  background-color: #ffffff;
  display: flex;
  border-bottom: 1px solid var(--excel-border);
  height: 31px;
  align-items: flex-end;
  padding-left: 12px;
  gap: 4px;
  flex-shrink: 0;
}
.excel-ribbon-tabs .tab-item { background: transparent; border: none; padding: 6px 14px; font-size: 12px; color: #323130; cursor: pointer; border-bottom: 3px solid transparent; }
.excel-ribbon-tabs .tab-item.active { color: var(--excel-green); font-weight: 600; border-bottom: 3px solid var(--excel-green); }
.excel-ribbon-tabs .file-tab { background-color: var(--excel-green); color: white; border-radius: 2px 2px 0 0; font-weight: 600; }

.excel-ribbon-body {
  background-color: var(--excel-ribbon-bg);
  border-bottom: 1px solid var(--excel-border);
  padding: 6px 14px 4px 14px;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  height: 86px;
}
.ribbon-group { display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--excel-border); padding-right: 14px; height: 100%; }
.ribbon-group:last-child { border-right: none; }
.ribbon-subgroup { display: flex; gap: 6px; }
.ribbon-subgroup.font-subgroup, .ribbon-subgroup.alignment-subgroup { flex-direction: column; gap: 4px; }
.row-sub { display: flex; align-items: center; gap: 4px; }
.group-label { font-size: 10px; color: #605e5c; text-align: center; margin-top: 4px; }
.ribbon-select { height: 24px; border: 1px solid var(--excel-border); background: white; padding: 0 4px; font-size: 11px; border-radius: 2px; outline: none; cursor: pointer; }
.tool-btn { background: white; border: 1px solid var(--excel-border); border-radius: 2px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; }
.tool-btn:hover { background-color: #edebe9; }
.tool-btn.active-toggle { width: auto; padding: 0 8px; font-size: 11px; }

.stealth-tools-group .ribbon-subgroup { gap: 14px; align-items: center; }
.stealth-opt { display: flex; flex-direction: column; gap: 2px; }
.stealth-opt label { font-size: 10px; color: #605e5c; font-weight: 500; }
.page-controls, .auto-scroll-controls { display: flex; align-items: center; gap: 4px; }
.mini-btn { background: white; border: 1px solid var(--excel-border); border-radius: 2px; height: 22px; padding: 0 6px; font-size: 11px; cursor: pointer; }
.mini-btn.play-btn { font-weight: 600; color: var(--excel-green); border-color: var(--excel-green); }
.mini-btn.play-btn.playing { color: #d83b01; border-color: #d83b01; }
.page-text { font-size: 11px; font-weight: 600; color: #323130; min-width: 50px; text-align: center; }
.open-pdf-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: white; border: 1px dashed var(--excel-green); padding: 4px 10px; border-radius: 3px; cursor: pointer; font-weight: 600; font-size: 11px; color: var(--excel-green); }
.sub-caption { font-size: 9px; color: #666; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }


/* ==================================================
   THEME 3: TRUE VISUAL STUDIO CODE IDE
   ================================================== */
body.theme-vscode {
  font-family: var(--font-vscode);
  background-color: var(--vsc-bg);
  color: var(--vsc-text);
}

.vscode-title-bar {
  background-color: var(--vsc-header);
  color: #cccccc;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--vsc-border);
}
.vscode-title-left { display: flex; align-items: center; gap: 12px; }
.vscode-menu-bar { display: flex; gap: 10px; font-size: 12px; color: #cccccc; }
.vscode-menu-bar span { cursor: pointer; padding: 2px 4px; }
.vscode-menu-bar span:hover { background: #505050; border-radius: 3px; }
.vscode-title-center { color: #999999; font-size: 12px; }
.vscode-title-right { display: flex; align-items: center; gap: 8px; }

.vscode-tabs-bar {
  background-color: var(--vsc-tab-inactive);
  display: flex;
  align-items: center;
  height: 35px;
  border-bottom: 1px solid var(--vsc-border);
}
.vscode-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 100%;
  font-size: 12px;
  color: #969696;
  background-color: var(--vsc-tab-inactive);
  border-right: 1px solid var(--vsc-border);
  cursor: pointer;
}
.vscode-tab.active {
  background-color: var(--vsc-bg);
  color: #ffffff;
  border-top: 2px solid #007acc;
}
.vscode-tab .tab-close { font-size: 14px; margin-left: 6px; }

.vscode-stealth-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-right: 12px;
}
.vscode-pill-btn {
  background-color: #0e639c;
  color: white;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.vsc-btn {
  background: #3c3c3c;
  border: 1px solid #555;
  color: #eee;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}
.vsc-btn:hover { background: #505050; }
.vscode-file-text { font-size: 11px; color: #888; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Real VS Code Layout Container */
.vscode-workspace {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background-color: var(--vsc-bg);
}

/* Activity Bar (Left 48px) */
.vsc-activity-bar {
  width: 48px;
  background-color: var(--vsc-act-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 16px;
  flex-shrink: 0;
  border-right: 1px solid #252526;
}
.vsc-act-icon {
  font-size: 18px;
  color: #858585;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.vsc-act-icon:hover { color: #ffffff; }
.vsc-act-icon.active {
  color: #ffffff;
  border-left: 2px solid #ffffff;
}
.vsc-act-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Sidebar Explorer (Left 210px) */
.vsc-sidebar {
  width: 210px;
  background-color: var(--vsc-sidebar-bg);
  border-right: 1px solid #1e1e1e;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.vsc-sidebar-title {
  padding: 10px 14px 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #bbbbbb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.5px;
}
.vsc-folder-header {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #cccccc;
}
.vsc-tree-section {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.vsc-tree-item {
  padding: 4px 14px;
  font-size: 12px;
  color: #cccccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.vsc-tree-item:hover { background-color: #2a2d2e; }
.vsc-tree-item.active { background-color: #37373d; color: #ffffff; }
.vsc-tree-file { padding-left: 28px; }

/* Editor Area */
.vsc-editor-wrapper {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--vsc-bg);
}

.vsc-breadcrumbs {
  height: 24px;
  background-color: var(--vsc-bg);
  border-bottom: 1px solid #252526;
  padding: 3px 16px;
  font-size: 11px;
  color: #a9a9a9;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  flex-shrink: 0;
}
.vsc-func-sym { color: #dcdcaa; font-weight: bold; }

/* Code area with gutter */
.vsc-code-editor {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  overflow: auto;
  background-color: var(--vsc-bg);
  font-family: var(--font-vscode);
  font-size: 13px;
  line-height: 1.6;
}

.vsc-editor-gutter {
  width: 50px;
  background-color: var(--vsc-bg);
  color: #858585;
  text-align: right;
  padding: 10px 14px 10px 0;
  user-select: none;
  flex-shrink: 0;
  border-right: 1px solid #2b2b2b;
}
.vsc-gutter-num {
  min-height: 21px;
  line-height: var(--story-line-height, 1.6);
  font-size: var(--story-font-size, 13px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.vsc-editor-lines {
  flex: 1;
  padding: 10px 18px;
  user-select: text;
  background-color: var(--vsc-bg);
}

.vsc-code-line {
  min-height: 21px;
  font-size: var(--story-font-size, 13px);
  line-height: var(--story-line-height, 1.6);
  letter-spacing: var(--story-letter-spacing, 0.15px);
  display: flex;
  align-items: center;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0 4px;
  border-radius: 2px;
  cursor: pointer;
}
.vsc-code-line:hover { background-color: #262626; }
.vsc-code-line.active-line {
  background-color: #282828;
  outline: 1px solid #3c3c3c;
}

/* Syntax Coloring */
.kw { color: #569cd6; font-weight: 500; }
.kw-flow { color: #c586c0; font-weight: 500; }
.fn { color: #dcdcaa; }
.cls { color: #4ec9b0; }
.cm { color: #6a9955; font-style: italic; }
.str { color: #ce9178; }
.var { color: #9cdcfe; }
.num { color: #b5cea8; }

/* VS Code Terminal Panel */
.vsc-terminal-panel {
  height: 130px;
  border-top: 1px solid #333333;
  background-color: var(--vsc-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.vsc-terminal-header {
  height: 28px;
  border-bottom: 1px solid #2d2d2d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 11px;
  color: #858585;
}
.vsc-term-tabs {
  display: flex;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.vsc-term-tabs span { cursor: pointer; }
.vsc-term-tabs span.active { color: #ffffff; border-bottom: 1px solid #ffffff; padding-bottom: 2px; font-weight: 600; }
.vsc-term-actions { display: flex; gap: 10px; cursor: pointer; }

.vsc-terminal-body {
  flex: 1;
  padding: 6px 16px;
  font-family: var(--font-vscode);
  font-size: 11px;
  line-height: 1.5;
  overflow-y: auto;
  color: #cccccc;
}
.term-line.prompt { color: #4ec9b0; }
.term-line.prompt .cmd { color: #dcdcaa; }
.term-line.info { color: #858585; }
.term-line.success { color: #6a9955; }
.term-line .url { color: #569cd6; text-decoration: underline; }

/* VS Code Status Bar Content */
.vscode-statusbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 24px;
  background-color: var(--vsc-status);
  color: #ffffff;
  padding: 0 8px;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.vsc-stat-left, .vsc-stat-right { display: flex; align-items: center; gap: 12px; }
.vsc-stat-item { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.vsc-stat-item.remote { background: #16825d; padding: 2px 8px; border-radius: 2px; }


/* ==================================================
   SHARED: FORMULA BAR (GSHEET & EXCEL ONLY)
   ================================================== */
.excel-formula-bar-container {
  height: 28px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 12px;
}

.name-box {
  width: 70px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e0e0e0;
  font-weight: 600;
  color: #323130;
  background: #fbfbfb;
}
.formula-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  border-right: 1px solid #e0e0e0;
  height: 100%;
}
.formula-btn {
  background: transparent;
  border: none;
  font-size: 10px;
  color: #8a8886;
  cursor: pointer;
  padding: 2px 4px;
}
.fx-symbol {
  font-size: 13px;
  color: #5f6368;
  font-weight: bold;
  padding-left: 2px;
}
.formula-input-wrapper { flex: 1; height: 100%; }
.formula-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  font-family: inherit;
  color: #201f1e;
  background: transparent;
  text-overflow: ellipsis;
}

body.theme-googlesheets .excel-formula-bar-container {
  height: 32px;
  background-color: #ffffff;
  border-top: 1px solid #e0e2e0;
  border-bottom: 1px solid #e0e2e0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
}

body.theme-googlesheets .name-box-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

body.theme-googlesheets .name-box {
  width: auto;
  min-width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 2px 0 4px;
  background: transparent;
  border: none;
  color: #1f1f1f;
  font-size: 13px;
  font-weight: 500;
}

.name-box-caret {
  color: #444746;
  flex-shrink: 0;
}

.formula-bar-divider {
  width: 1px;
  height: 18px;
  background-color: #dadce0;
  margin: 0 8px;
  flex-shrink: 0;
}

.formula-fx-symbol {
  color: #5f6368;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  padding: 0 4px;
  user-select: none;
  flex-shrink: 0;
}

body.theme-googlesheets .formula-input-wrapper {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

body.theme-googlesheets .formula-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #1f1f1f;
  padding: 0 8px;
  font-family: Roboto, Arial, sans-serif;
}

.FormulaBarContainerGeminiSummarizeButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #c4c7c5;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #1f1f1f;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
}
.FormulaBarContainerGeminiSummarizeButton:hover {
  background: #f1f3f4;
  border-color: #94a3b8;
}
.FormulaBarContainerGeminiButtonLabel {
  font-size: 12px;
  line-height: 1;
}

/* Status banner */
.status-banner {
  background-color: #e6f4ea;
  color: #137333;
  padding: 5px 14px;
  font-size: 12px;
  border-bottom: 1px solid #ceead6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.banner-close { background: transparent; border: none; cursor: pointer; font-weight: bold; font-size: 13px; color: inherit; }


/* ==================================================
   WORKSPACE: SPREADSHEET (GSHEET & EXCEL)
   ================================================== */
.excel-workspace {
  flex: 1 1 0%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.sheet-content {
  display: none;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.sheet-content.active { display: block; }
.table-container { height: 100%; width: 100%; overflow: auto; position: relative; }

.excel-grid-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 1100px;
  background-color: white;
}

.excel-grid-table th {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  color: #5f6368;
  font-weight: 500;
  font-size: 11px;
  height: 24px;
  text-align: center;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 2;
}
body.theme-excel .excel-grid-table th {
  background-color: #f3f2f1;
  border-color: #e1dfdd;
  font-weight: 600;
}

.corner-header { width: 45px; background-color: #f1f3f4; }
.row-header {
  width: 45px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  color: #5f6368;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
}
.header-titles-row th {
  background-color: #edf2fa;
  color: #041e49;
  font-weight: 600;
  height: 26px;
  border: 1px solid #d3e3fd;
  position: sticky;
  top: 24px;
  z-index: 2;
}
body.theme-excel .header-titles-row th {
  background-color: #e7f2eb;
  color: var(--excel-green-dark);
  border-color: #c3decb;
}

.excel-grid-table td {
  border: 1px solid #e0e0e0;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #202124;
  vertical-align: top;
  word-break: break-word;
  white-space: normal;
  user-select: text;
}
.story-cell {
  font-family: var(--story-font-family, 'Arial', sans-serif);
  font-size: var(--story-font-size, 11pt);
  color: var(--story-color, #202124);
  line-height: var(--story-line-height, 1.7);
  letter-spacing: var(--story-letter-spacing, 0.15px);
  cursor: pointer;
  background-color: #ffffff;
  padding: 6px 12px;
  word-break: break-word;
}

tr.selected-story-row td { background-color: #e8f0fe !important; }
body.theme-excel tr.selected-story-row td { background-color: #e8f4ec !important; }

body.theme-googlesheets tr.selected-story-row td { background-color: #ffffff !important; }
body.theme-googlesheets tr.selected-story-row .row-header {
  background-color: #d3e3fd !important;
  color: #185abc;
  font-weight: 600;
}
body.theme-googlesheets .story-col-header {
  background-color: #d3e3fd;
  color: #185abc;
}

.story-cell.cell-focused {
  outline: 2px solid var(--gs-blue);
  outline-offset: -2px;
  position: relative;
}
body.theme-googlesheets .story-cell.cell-focused {
  background-color: #ffffff !important;
  z-index: 1;
}
body.theme-excel .story-cell.cell-focused { outline-color: var(--excel-green); }

body.theme-excel .story-cell {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
}

.story-cell.cell-focused::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 6px;
  height: 6px;
  background-color: var(--gs-blue);
}
body.theme-excel .story-cell.cell-focused::after { background-color: var(--excel-green); }

.dummy-financial-table td { text-align: right; }
.dummy-financial-table td:nth-child(2) { text-align: center; }
.dummy-financial-table td:nth-child(3) { text-align: left; }
.bold-text { font-weight: 600; }
.positive { color: #0F9D58; font-weight: 600; }
.negative { color: #d93025; }
.highlight-yellow { background-color: #fff9e6; }
.highlight-green { background-color: #e6f4ea; }

.badge-status { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 500; }
.badge-status.verified { background-color: #e6f4ea; color: #137333; }
.badge-status.review { background-color: #fef7e0; color: #b06000; }
.badge-status.audit { background-color: #f1f3f4; color: #5f6368; }

body.theme-googlesheets .badge-status {
  border-radius: 2px;
  padding: 1px 5px;
  font-size: 9px;
  line-height: 14px;
}
body.theme-googlesheets .table-container {
  scrollbar-color: #bdc1c6 #f8f9fa;
  scrollbar-width: thin;
}
body.theme-googlesheets .table-container::-webkit-scrollbar { width: 12px; height: 12px; }
body.theme-googlesheets .table-container::-webkit-scrollbar-track { background: #f8f9fa; }
body.theme-googlesheets .table-container::-webkit-scrollbar-thumb {
  background: #bdc1c6;
  border: 3px solid #f8f9fa;
  border-radius: 8px;
}


/* ==================================================
   BOTTOM SHEETS BAR (GSHEET & EXCEL)
   ================================================== */
.excel-sheets-bar {
  height: 36px;
  background-color: #f8fafd;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  flex-shrink: 0;
  font-size: 11px;
}
body.theme-googlesheets .excel-sheets-bar {
  height: 34px;
  padding: 0 8px;
  border-top-color: #dadce0;
}
body.theme-excel .excel-sheets-bar {
  height: 32px;
  background-color: #f3f2f1;
  border-top-color: var(--excel-border);
}
body.theme-vscode .excel-sheets-bar {
  height: 24px;
  background-color: var(--vsc-status);
  padding: 0 4px;
  border-top: none;
}

.gs-bottom-left { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.gs-plus-sheet-btn, .gs-all-sheets-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #444746;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gs-plus-sheet-btn:hover, .gs-all-sheets-btn:hover { background-color: #e0e5eb; }

.sheet-tabs-list { display: flex; align-items: center; height: 100%; gap: 4px; }
.sheet-tab {
  background: transparent;
  border: 1px solid transparent;
  height: 28px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  color: #444746;
  border-radius: 6px 6px 0 0;
  transition: 0.1s;
}
.sheet-tab:hover { background-color: #e8ecf1; }
.sheet-tab.active {
  background-color: #ffffff;
  font-weight: 600;
  color: #0F9D58;
  border-color: #e0e0e0;
  border-bottom: 2px solid #0F9D58;
}
body.theme-googlesheets .sheet-tab {
  height: 30px;
  border-radius: 3px 3px 0 0;
  padding: 0 12px;
}
body.theme-googlesheets .sheet-tab.active {
  color: #188038;
  border-color: transparent;
  border-bottom: 3px solid #188038;
}
body.theme-excel .sheet-tab {
  border-radius: 2px 2px 0 0;
  height: 26px;
  border-color: #e1dfdd;
  border-bottom: none;
  background: #f8f9fa;
}
body.theme-excel .sheet-tab.active {
  background: #ffffff;
  color: var(--excel-green);
  border-bottom: 2px solid var(--excel-green);
}

.excel-status-bar { display: flex; align-items: center; gap: 12px; color: #5f6368; font-size: 11px; }
.status-item.ready { font-weight: 600; color: #0F9D58; }
body.theme-excel .status-item.ready { color: var(--excel-green-dark); }
.formula-calc { background-color: #e8eaed; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.gs-explore-btn {
  background: transparent;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 2px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 11px;
  color: #1a73e8;
  font-weight: 600;
}
.gs-explore-btn:hover { background-color: #f1f3f4; }


/* ==================================================
   THEME PICKER MODAL
   ================================================== */
.stealth-modal-content.theme-picker-content,
.theme-picker-content {
  width: 760px !important;
  max-width: 95vw !important;
  box-sizing: border-box;
}
.theme-picker-content .modal-body {
  padding: 14px 18px !important;
  overflow-x: hidden !important;
  overflow-y: auto;
  box-sizing: border-box;
  width: 100%;
}
.theme-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
  width: 100%;
  box-sizing: border-box;
}
.theme-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 7px 10px;
  cursor: pointer;
  background: #ffffff;
  position: relative;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  user-select: none;
}
.theme-card:hover {
  border-color: #1a73e8;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}
.theme-card.active {
  border-color: #0F9D58;
  background-color: #f0fdf4;
  box-shadow: 0 0 0 1.5px #0F9D58;
}
.theme-card-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-card-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.theme-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.theme-card.active .theme-card-title {
  color: #0f766e;
  font-weight: 700;
}
.theme-card-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.theme-card.active .theme-card-check {
  border-color: #0F9D58;
  background: #0F9D58;
  color: #ffffff;
}
@media (max-width: 680px) {
  .theme-selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 440px) {
  .theme-selection-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   SHARED MODALS & OVERLAYS
   ================================================== */
.stealth-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.stealth-modal-overlay.show { display: flex; }
.stealth-modal-content {
  background: #fffdf9;
  width: 580px;
  max-width: 95vw;
  border-radius: 9px 12px 10px 11px;
  border: 1.5px solid #ded2bf;
  box-shadow: 0 12px 35px rgba(50, 40, 30, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--portal-font, serif);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1.5px solid #ded2bf; background: #faf4e8; }
.modal-header h3 { font-family: var(--portal-font-display, serif); font-size: 15px; color: #1f1b16; font-weight: 700; margin: 0; }
.modal-close-btn { background: transparent; border: none; font-size: 16px; color: #6d5f4e; cursor: pointer; }

.modal-body { padding: 18px 20px; overflow-y: auto; overflow-x: hidden !important; max-height: 70vh; display: flex; flex-direction: column; gap: 16px; color: #221d17; box-sizing: border-box; }
.settings-group h4 { font-family: var(--portal-font-display, serif); font-size: 13px; color: #284b6f; margin-bottom: 6px; font-weight: 700; }
.guide-text { font-size: 12px; color: #6d5f4e; margin-bottom: 8px; line-height: 1.45; }

.file-drop-area { border: 2px dashed #bba68d; background-color: #f7efe1; border-radius: 8px; padding: 22px; text-align: center; cursor: pointer; position: relative; }
.file-drop-area:hover, .file-drop-area.dragover { border-color: #284b6f; background-color: #ede2cf; }
.file-drop-area input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.browse-link { color: #284b6f; font-weight: 700; text-decoration: underline; }

.hotkey-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
kbd { background-color: #fbf7ee; border: 1.5px solid #c7b79e; border-bottom: 2.5px solid #9c8a70; border-radius: 4px; padding: 2px 6px; font-family: var(--portal-font-mono, monospace); font-weight: 700; color: #1f1a14; }

.modal-footer { padding: 12px 20px; border-top: 1.5px solid #ded2bf; display: flex; justify-content: flex-end; background: #faf4e8; }
.primary-btn { background-color: #284b6f; color: #fffdf9; border: 1px solid #162c44; padding: 8px 18px; border-radius: 6px; font-family: var(--portal-font-display, serif); font-weight: 700; cursor: pointer; box-shadow: 0 2px 5px rgba(40, 75, 111, 0.25); transition: all 0.18s ease; }
.primary-btn:hover { background-color: #1c3652; filter: brightness(1.05); }

.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 100005;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loading-box { background: white; padding: 24px 32px; border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.spinner { width: 32px; height: 32px; border: 3px solid #e0e0e0; border-top-color: #0F9D58; border-radius: 50%; animation: spin 0.8s linear infinite; }
.loading-status-detail { max-width: 460px; margin: -4px 0 0; color: #5f6368; font-size: 12px; line-height: 1.45; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Seamless Page Flip Toast */
.page-flip-toast {
  position: fixed;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 30, 0.92);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.page-flip-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================================================
   CONTINUOUS / INFINITE READING STYLES
   ================================================== */
tr.section-break-row,
tr.section-break-row td {
  display: none !important;
}
.section-break-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-break-badge {
  background-color: #0F9D58;
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}
body.theme-googlesheets .section-break-badge {
  background-color: #0F9D58;
}
body.theme-excel .section-break-badge {
  background-color: #107c41;
}

.vsc-section-divider {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 4px;
  user-select: none;
  color: #6a9955;
  font-style: italic;
  font-size: 11px;
  border-top: 1px dashed #383838;
  border-bottom: 1px dashed #383838;
  margin: 6px 0;
  background-color: rgba(255, 255, 255, 0.02);
}

/* ==================================================
   DUOLINGO DESIGN SYSTEM (HOMEPAGE & DONATE PORTAL)
   Style: Gamification, friendly, approachable, cartoon-like, rounded, playful
   Colors: Duolingo Green (#58CC02), Feather Blue (#1CB0F6), Owl Orange (#FF9600)
   ================================================== */
/* ==========================================================
   LANDING PORTAL - CLEAN & MODERN DESIGN (BRIGHT WHITE)
   ========================================================== */
:root {
  --portal-bg: #f8fafc;
  --portal-card-bg: #ffffff;
  --portal-border: #e2e8f0;
  --portal-border-hover: #bae6fd;
  --portal-text-primary: #0f172a;
  --portal-text-secondary: #64748b;
  --portal-primary: #0284c7;
  --portal-primary-hover: #0369a1;
  --portal-primary-light: #f0f9ff;
  --portal-skyblue: #0ea5e9;
  --portal-skyblue-light: #e0f2fe;
  --portal-blue-royal: #1d4ed8;
  --portal-green: #10b981;
  --portal-green-light: #ecfdf5;
  --portal-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --portal-font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --portal-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Portal Overlay */
.landing-portal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background-color: var(--portal-bg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  font-family: var(--portal-font);
  color: var(--portal-text-primary);
}

.landing-portal-overlay.hidden {
  display: none !important;
}

.portal-container {
  max-width: 1540px;
  width: 100%;
  padding: 20px 24px 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  flex: 1 0 auto;
}

/* Top Modern Navbar (Full Width & Flush to Top) */
.duo-top-navbar {
  width: 100%;
  background: var(--portal-card-bg);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--portal-border);
  border-radius: 0;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.duo-mascot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-primary);
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(37, 99, 235, 0.08);
}

.duo-brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.duo-brand-titles h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--portal-text-primary);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.portal-version-pill {
  font-size: 11px;
  font-weight: 700;
  background: #e0e7ff;
  color: #4338ca;
  padding: 2px 7px;
  border-radius: 100px;
  line-height: 1.2;
}

.duo-brand-sub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.duo-brand-sub-row p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--portal-text-secondary);
}

.portal-reload-tip {
  font-size: 11.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.portal-reload-tip kbd {
  font-family: var(--portal-font-mono);
  font-size: 11px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  color: #0f172a;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.duo-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Elegant Announcement Card */
.portal-announcement-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--portal-primary);
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.portal-announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--portal-primary-light);
  color: var(--portal-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.announcement-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portal-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.portal-announcement-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  flex: 1;
}

.portal-announcement-text strong {
  color: #0f172a;
}

.portal-announcement-hint {
  display: inline-block;
  margin-left: 8px;
  color: #64748b;
  font-size: 12.5px;
}

.duo-btn-close {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  min-height: 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.duo-btn-close:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

/* 3-Column Desktop Grid */
.duo-main-grid {
  display: grid;
  grid-template-columns: 310px 1fr 310px;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1280px) {
  .duo-main-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portal-col-main {
    grid-column: 1 / -1;
    order: 1;
  }
  .portal-col-guide {
    order: 2;
  }
  .portal-col-donate {
    order: 3;
  }
}

@media (max-width: 768px) {
  .duo-main-grid {
    grid-template-columns: 1fr;
  }
  .portal-col-main {
    grid-column: auto;
  }
}

/* Clean White Cards */
.duo-card {
  background: var(--portal-card-bg);
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

.duo-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.portal-card-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--portal-skyblue-light);
  color: var(--portal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08);
}

.duo-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--portal-text-primary);
  letter-spacing: -0.2px;
}

.duo-card-desc {
  font-size: 13px;
  color: var(--portal-text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Theme Selection Grid */
.duo-theme-missions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 1080px) {
  .duo-theme-missions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .duo-theme-missions {
    grid-template-columns: 1fr;
  }
}

.duo-mission-item {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-width: 0;
  box-sizing: border-box;
}

.duo-mission-item:hover {
  background: #f8fafc;
  border-color: var(--portal-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.duo-mission-item.selected {
  border-color: var(--portal-primary);
  background: var(--portal-primary-light);
  box-shadow: 0 0 0 1.5px var(--portal-primary);
}

.duo-mission-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.duo-mission-icon-box svg {
  width: 28px;
  height: 28px;
}
.duo-mission-icon-box.gsheet { background: #e8f5e9; }
.duo-mission-icon-box.excel { background: #e8f5e9; }
.duo-mission-icon-box.vscode { background: #1e1e1e; }

.duo-mission-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.duo-mission-top {
  display: flex;
  align-items: center;
  width: 100%;
}

.duo-mission-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.duo-mission-desc {
  display: none !important;
}

.duo-mission-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--portal-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.duo-mission-item.selected .duo-mission-check {
  border-color: var(--portal-primary);
  background: var(--portal-primary);
  color: #ffffff;
}

/* File Upload Quest Box */
/* File Upload Quest Box - Modern, Minimalist & Sleek */
.duo-upload-quest {
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
  border-radius: 14px;
  padding: 16px 20px;
  position: relative;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.duo-upload-quest:hover {
  border-color: var(--portal-skyblue);
  background: #f0f9ff;
  box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.08);
}

.duo-upload-quest.is-dragover {
  border-color: var(--portal-primary);
  border-style: solid;
  background: #e0f2fe;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
  transform: scale(1.005);
}

.duo-upload-quest.shake {
  animation: uploadShakeAnim 0.45s ease-in-out;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3) !important;
}

@keyframes uploadShakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.duo-upload-quest.has-doc {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--portal-primary);
  box-shadow: 0 4px 16px -2px rgba(14, 165, 233, 0.08), 0 2px 4px -1px rgba(14, 165, 233, 0.04);
}

.duo-upload-quest.has-doc:hover {
  border-color: #7dd3fc;
  border-left-color: var(--portal-primary-hover);
  box-shadow: 0 6px 20px -2px rgba(14, 165, 233, 0.12);
}

.duo-upload-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--portal-skyblue-light);
  color: var(--portal-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.duo-upload-quest.has-doc .duo-upload-badge-tag {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.duo-upload-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.duo-upload-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.duo-upload-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--portal-primary);
  border: 1px solid var(--portal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.duo-upload-quest.has-doc .duo-upload-icon-box {
  background: #f0f9ff;
  color: var(--portal-primary);
  border-color: #bae6fd;
}

.duo-upload-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.duo-upload-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.duo-upload-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  letter-spacing: -0.2px;
}

.duo-upload-status-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}

.duo-upload-quest.has-doc .duo-upload-status-pill {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.duo-upload-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.4;
}

.portal-file-change-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--portal-skyblue) 0%, var(--portal-primary) 100%);
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.portal-file-change-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
  color: #ffffff;
}

.duo-upload-quest.has-doc .portal-file-change-btn {
  background: #ffffff;
  color: var(--portal-primary);
  border: 1px solid #bae6fd;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.duo-upload-quest.has-doc .portal-file-change-btn:hover {
  background: #f0f9ff;
  border-color: var(--portal-primary);
  color: var(--portal-primary-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.online-story-picker {
  margin: 0 0 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.online-story-picker:hover {
  border-color: #bae6fd;
  box-shadow: 0 4px 14px -2px rgba(14, 165, 233, 0.09);
}

.online-story-picker.is-open {
  border-color: #7dd3fc;
  box-shadow: 0 6px 18px -2px rgba(14, 165, 233, 0.11);
}

.online-story-header {
  min-height: 64px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
}

.online-story-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.online-story-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.online-story-picker:hover .online-story-icon-box {
  background: #e0f2fe;
  transform: scale(1.04);
}

.online-story-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.online-story-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.online-story-kicker {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.online-story-sources-tag {
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
}

.online-story-header h3 {
  margin: 1px 0 0;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.online-story-subtitle {
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
  margin-top: 2px;
}

.online-story-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #f0f9ff;
  color: #0369a1;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.online-story-toggle:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 3px 8px rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}

.online-story-toggle[aria-expanded="true"] {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
  box-shadow: none;
}

.online-story-toggle[aria-expanded="true"]:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #94a3b8;
}

.online-story-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100010;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.online-story-modal-overlay.show {
  display: flex !important;
}

.online-story-modal-dialog {
  width: 660px;
  max-width: 95vw;
  max-height: 86vh;
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: onlineStoryModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes onlineStoryModalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.online-story-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  flex-shrink: 0;
}

.online-story-modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.online-story-icon-box.small {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.online-story-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.online-story-modal-sub {
  font-size: 11.5px;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

.online-story-modal-body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  background: #ffffff;
}

.online-story-search-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.online-story-search-view[hidden],
.online-story-detail[hidden] {
  display: none !important;
}

.online-story-back-row {
  margin-bottom: 6px;
}

.online-story-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0284c7;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.online-story-back-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

.portal-upload-header-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.online-story-search {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.online-story-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.online-story-input-icon {
  position: absolute;
  left: 11px;
  color: #94a3b8;
  pointer-events: none;
}

.online-story-search input {
  width: 100%;
  height: 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 12px 0 34px;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.18s ease;
}

.online-story-search input:focus,
.online-story-chapter-search:focus,
.online-story-range-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.online-story-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.26);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.online-story-search button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.35);
}

.online-story-search button:active {
  transform: translateY(0);
}

.online-story-search button:disabled,
.online-story-primary:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.online-story-quick-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
  padding-left: 2px;
}

.online-story-quick-label {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
}

.online-story-tag-btn {
  background: #ffffff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  border-radius: 9999px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.online-story-tag-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
}

.online-story-status {
  min-height: 20px;
  margin: 10px 0 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.online-story-status.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 6px 10px;
  border-radius: 6px;
}

.online-story-results {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.online-story-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.online-story-result:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.online-story-result.selected {
  background: #e0f2fe;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

/* Book Cover in Search Results */
.online-story-book-cover {
  width: 42px;
  height: 58px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.online-story-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.online-story-book-cover:not(.has-img) .online-story-cover-img {
  display: none;
}

/* Stylized Mini Book Cover Fallback */
.online-story-mini-cover {
  width: 100%;
  height: 100%;
  padding: 5px 4px 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, hsl(var(--cover-hue, 210), 65%, 45%), hsl(calc(var(--cover-hue, 210) + 40), 75%, 25%));
  color: #ffffff;
  position: relative;
  box-sizing: border-box;
}

.online-story-book-cover.has-img .online-story-mini-cover {
  display: none;
}

.mini-cover-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.2);
}

.mini-cover-title {
  font-size: 8px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.mini-cover-author {
  font-size: 6.5px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.online-story-result-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.online-story-result-content {
  min-width: 0;
  flex: 1;
}

.online-story-result strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-story-result span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.3;
  flex-wrap: wrap;
}

.online-story-result-action {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #0284c7;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.online-story-detail {
  margin-top: 12px;
  padding: 14px;
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px -1px rgba(14, 165, 233, 0.08);
}

.online-story-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.online-story-detail-cover-box {
  width: 60px;
  height: 82px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: #1e293b;
}

.online-story-detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.online-story-detail-cover-box:not(.has-img) .online-story-detail-cover {
  display: none;
}

.online-story-detail-cover-box.has-img .online-story-mini-cover {
  display: none;
}

.online-story-mini-cover.detail-size .mini-cover-title {
  font-size: 9.5px;
  -webkit-line-clamp: 4;
}

.online-story-mini-cover.detail-size .mini-cover-author {
  font-size: 8px;
}

.online-story-detail-info {
  min-width: 0;
  flex: 1;
}

.online-story-detail-info h4 {
  margin: 3px 0 2px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-story-author-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 3px 0 0;
  color: #64748b;
  font-size: 11.5px;
}

.online-story-detail-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.online-story-chapter-count-pill {
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.online-story-reading-tag {
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 4px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.online-story-detail-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.online-story-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.28);
  flex-shrink: 0;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.online-story-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.35);
}

.online-story-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.online-story-secondary:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0369a1;
}

.online-story-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.online-story-resume-btn:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #047857;
}

.online-story-chapter-tools {
  margin-bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.online-story-tools-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.online-story-filter-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.online-story-filter-icon {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  pointer-events: none;
}

.online-story-chapter-search {
  width: 100%;
  height: 34px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 28px 0 32px;
  font: inherit;
  font-size: 12px;
  outline: none;
  transition: all 0.15s ease;
}

.online-story-search-clear {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: #e2e8f0;
  color: #475569;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  line-height: 1;
}

.online-story-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.online-story-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 11px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.online-story-sort-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.online-story-sort-btn.is-desc {
  background: #f0f9ff;
  border-color: #7dd3fc;
  color: #0284c7;
}

.online-story-range-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.online-story-range-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.online-story-range-tab {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.online-story-range-tab:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

.online-story-range-tab.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.online-story-range-select-wrap {
  width: 100%;
}

.online-story-range-select {
  width: 100%;
  height: 32px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 11.5px;
  font-weight: 550;
  padding: 0 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.online-story-chapter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.online-story-chapter {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0;
  box-sizing: border-box;
}

.online-story-chapter:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.12);
}

.online-story-chapter.is-reading {
  background: #f0fdf4;
  border-color: #4ade80;
  box-shadow: 0 0 0 1px #4ade80;
}

.online-story-ch-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #0284c7;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.online-story-chapter.is-reading .online-story-ch-num {
  background: #dcfce7;
  color: #15803d;
}

.online-story-ch-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 550;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.online-story-chapter:hover .online-story-ch-title {
  color: #0284c7;
}

.online-story-reading-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.online-story-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.online-story-page-button {
  padding: 5px 13px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.online-story-page-button:hover:not(:disabled) {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #7dd3fc;
}

.online-story-page-button:disabled {
  opacity: 0.45;
  cursor: default;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.online-story-page-indicator {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .online-story-header { padding: 12px 14px; }
  .online-story-search { flex-direction: row; }
  .online-story-detail-head { flex-direction: column; align-items: stretch; }
  .online-story-detail-actions { width: 100%; flex-wrap: wrap; }
  .online-story-primary { flex: 1; justify-content: center; }
  .online-story-secondary { flex: 1; justify-content: center; }
  .online-story-tools-row { flex-direction: column; align-items: stretch; }
  .online-story-chapter-list { grid-template-columns: 1fr; }
}

/* Header row inside upload card */
.duo-upload-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.duo-upload-header-row .duo-upload-badge-tag {
  margin-bottom: 0;
}

.portal-file-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.portal-file-add-btn:hover {
  background: #f0f9ff;
  border-color: var(--portal-primary);
  color: var(--portal-primary);
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

/* Portal In-Card Upload Progress */
.portal-upload-progress-container {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
  animation: portalProgressFadeIn 0.25s ease-out;
}

@keyframes portalProgressFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.portal-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.portal-progress-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #bae6fd;
  border-top-color: var(--portal-primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

.portal-progress-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.portal-progress-title {
  font-size: 13px;
  font-weight: 700;
  color: #0369a1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-progress-detail {
  font-size: 11.5px;
  color: var(--portal-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-progress-percent {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--portal-primary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.portal-progress-track {
  width: 100%;
  height: 7px;
  background: #e0f2fe;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.portal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--portal-skyblue), var(--portal-primary));
  border-radius: 999px;
  transition: width 0.2s ease;
  position: relative;
  overflow: hidden;
}

.portal-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  animation: portalProgressShimmer 1.5s infinite;
}

@keyframes portalProgressShimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.portal-btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* Books List inside Portal Card */
.portal-books-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.portal-books-list::-webkit-scrollbar {
  width: 5px;
}

.portal-books-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.portal-book-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.portal-book-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.portal-book-item.selected {
  background: #ffffff;
  border-color: var(--portal-primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.portal-book-select-indicator {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.portal-book-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: #ffffff;
}

.portal-book-item.selected .portal-book-radio {
  border-color: var(--portal-primary);
  background: var(--portal-primary);
}

.portal-book-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.portal-book-item.selected .portal-book-icon-box {
  background: #f0f9ff;
  color: var(--portal-primary);
  border-color: #bae6fd;
}

.portal-book-icon-box.is-online {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
}

.portal-book-item.selected .portal-book-icon-box.is-online {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.portal-book-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portal-book-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portal-book-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-book-item.selected .portal-book-title {
  color: #0369a1;
  font-weight: 700;
}

.portal-book-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.portal-book-pill.active {
  background: #e0f2fe;
  color: #0284c7;
}

.portal-book-meta {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.portal-book-delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.portal-book-delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.duo-upload-alert {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Primary Action Buttons */
.duo-btn-primary {
  background: #059669;
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  padding: 14px 22px;
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px -1px rgba(5, 150, 105, 0.35);
}

.duo-btn-primary:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -2px rgba(5, 150, 105, 0.45);
}

.duo-btn-primary.disabled-need-file {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: pointer;
  border: 1px dashed #cbd5e1;
  box-shadow: none;
}

.duo-btn-primary.disabled-need-file:hover {
  background: #e2e8f0;
  color: #64748b;
  border-color: #94a3b8;
  transform: none;
}

.duo-btn-primary.ready {
  background: linear-gradient(135deg, var(--portal-skyblue) 0%, var(--portal-primary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px -1px rgba(14, 165, 233, 0.35);
}

.duo-btn-primary.ready:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px -2px rgba(14, 165, 233, 0.45);
  transform: translateY(-1px);
}

.duo-btn-orange,
.duo-btn-copy-stk {
  background: linear-gradient(135deg, var(--portal-skyblue) 0%, var(--portal-primary) 100%);
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px -1px rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.duo-btn-orange:hover,
.duo-btn-copy-stk:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(14, 165, 233, 0.4);
}

.duo-btn-orange.copied,
.duo-btn-copy-stk.copied {
  background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-blue-royal) 100%);
  box-shadow: 0 4px 14px -1px rgba(29, 78, 216, 0.35);
}

/* Author Box */
.duo-author-box {
  background: #f8fafc;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.duo-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--portal-skyblue) 0%, var(--portal-blue-royal) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
}

.duo-author-text .name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--portal-text-primary);
  line-height: 1.2;
}

.duo-author-text .badge {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--portal-text-secondary);
  margin-top: 2px;
}

/* Author Social Contacts */
.duo-author-socials {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.duo-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--portal-text-primary);
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.duo-social-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.duo-social-fb:hover {
  border-color: #1877f2;
  background: #f0f7ff;
}

.duo-social-zalo:hover {
  border-color: #0068ff;
  background: #f0f6ff;
}

.duo-social-gmail:hover {
  border-color: #ea4335;
  background: #fdf2f2;
}

.social-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
}

.social-icon-box.fb {
  background: #1877f2;
}

.social-icon-box.zalo {
  background: #0068ff;
  font-size: 9px;
  letter-spacing: -0.3px;
}

.social-icon-box.gmail {
  background: #ea4335;
}

.social-row-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.social-row-info .social-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--portal-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.social-row-info .social-value {
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.social-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.15s ease, color 0.15s ease;
  font-weight: bold;
}

.duo-social-row:hover .social-arrow {
  color: var(--portal-primary);
  transform: translate(2px, -2px);
}

.duo-speech-donate {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  color: #0369a1;
  line-height: 1.45;
  margin-bottom: 16px;
}

.speech-donate-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--portal-skyblue-light);
  color: var(--portal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.duo-qr-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.duo-qr-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: none;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.duo-bank-info {
  width: 100%;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 10px 14px;
}

.duo-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.duo-bank-row.stk-row {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--portal-border);
}

.duo-bank-label {
  color: var(--portal-text-secondary);
  font-weight: 500;
}

.duo-bank-val {
  color: var(--portal-text-primary);
  font-weight: 600;
}

.duo-bank-val.stk-highlight {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.5px;
}

.duo-footer-note {
  font-size: 11px;
  color: var(--portal-text-secondary);
  text-align: center;
  margin-top: 8px;
}

/* User Guide Column (Simplified & Modern) */
.guide-block {
  background: #f8fafc;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.guide-block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--portal-primary);
  margin-bottom: 8px;
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.guide-step-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.guide-step-num {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--portal-skyblue-light);
  color: var(--portal-primary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  border: none;
}

.guide-step-text {
  flex: 1;
  font-size: 12px;
  color: var(--portal-text-secondary);
  line-height: 1.4;
}

.guide-step-text b {
  color: var(--portal-text-primary);
}

.guide-step-text code {
  background: #e2e8f0;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10.5px;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.guide-shortcuts-list {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 4px 10px;
}

.guide-shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--portal-border);
  font-size: 12px;
}

.guide-shortcut-item:last-child {
  border-bottom: none;
}

.guide-shortcut-keys {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.guide-shortcut-keys kbd {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-bottom: 2px solid #94a3b8;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  display: inline-block;
  line-height: 1.25;
}

.guide-key-or {
  font-size: 11px;
  color: #94a3b8;
}

.guide-shortcut-info {
  text-align: right;
  color: var(--portal-text-secondary);
  font-size: 11.5px;
}

.guide-shortcut-info b {
  color: var(--portal-text-primary);
}

.guide-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #0369a1;
  margin-top: 10px;
}

.guide-tip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--portal-primary);
  margin-top: 1px;
  flex-shrink: 0;
}

.guide-tip-content {
  flex: 1;
}

.guide-tip-content b {
  color: var(--portal-primary);
}

.portal-guide-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--portal-border);
  font-size: 11px;
  color: var(--portal-text-secondary);
}

/* Portal Nav Button in Themes Header */
.portal-nav-btn {
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
}
.portal-nav-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.portal-nav-btn:active {
  transform: translateY(1px);
}


* ==========================================================
   EDITABLE STEALTH DOCUMENT TITLES (CLICK-TO-RENAME)
   ========================================================== */
.gsheet-doc-title[contenteditable="true"] {
  cursor: text;
  transition: all 0.15s ease;
  min-width: 60px;
}
.gsheet-doc-title[contenteditable="true"]:hover {
  outline: 1px solid #1a73e8;
  background-color: rgba(26, 115, 232, 0.05);
}
.gsheet-doc-title[contenteditable="true"]:focus {
  outline: 2px solid #1a73e8;
  background-color: #ffffff;
  color: #202124;
}

.document-name[contenteditable="true"] {
  cursor: text;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.15s ease;
  min-width: 60px;
}
.document-name[contenteditable="true"]:hover {
  background: rgba(255, 255, 255, 0.18);
  outline: 1px dashed rgba(255, 255, 255, 0.6);
}
.document-name[contenteditable="true"]:focus {
  background: #ffffff;
  color: #107c41;
  outline: 2px solid #ffffff;
}

#vsc-tab-filename[contenteditable="true"] {
  cursor: text;
  padding: 1px 4px;
  border-radius: 2px;
  transition: all 0.15s ease;
  min-width: 50px;
}
#vsc-tab-filename[contenteditable="true"]:hover {
  background: rgba(255, 255, 255, 0.12);
  outline: 1px dashed #666;
}
#vsc-tab-filename[contenteditable="true"]:focus {
  background: #1e1e1e;
  outline: 1px solid #007acc;
  color: #ffffff;
}

/* Universal Stealth Editable Elements */
.stealth-editable,
[data-stealth-key] {
  cursor: text !important;
  border-radius: 3px;
  transition: background-color 0.15s ease, outline 0.15s ease;
  user-select: text !important;
}
.stealth-editable:hover,
[data-stealth-key]:hover {
  outline: 1px dashed rgba(37, 99, 235, 0.45) !important;
  background-color: rgba(37, 99, 235, 0.08) !important;
}
.stealth-editable:focus,
[data-stealth-key]:focus {
  outline: 2px solid #2563eb !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Dark mode theme overrides for editable elements */
.theme-vscode .stealth-editable:focus,
.theme-vscode [data-stealth-key]:focus,
.theme-photoshop .stealth-editable:focus,
.theme-photoshop [data-stealth-key]:focus,
.theme-blender .stealth-editable:focus,
.theme-blender [data-stealth-key]:focus,
.theme-autocad .stealth-editable:focus,
.theme-autocad [data-stealth-key]:focus,
.theme-figma .stealth-editable:focus,
.theme-figma [data-stealth-key]:focus {
  background-color: #1e1e1e !important;
  color: #f8fafc !important;
  outline: 2px solid #38bdf8 !important;
}

.theme-vscode .stealth-editable:hover,
.theme-vscode [data-stealth-key]:hover,
.theme-photoshop .stealth-editable:hover,
.theme-photoshop [data-stealth-key]:hover,
.theme-blender .stealth-editable:hover,
.theme-blender [data-stealth-key]:hover,
.theme-autocad .stealth-editable:hover,
.theme-autocad [data-stealth-key]:hover,
.theme-figma .stealth-editable:hover,
.theme-figma [data-stealth-key]:hover {
  outline: 1px dashed rgba(56, 189, 248, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================
   THEME 4: ADOBE PHOTOSHOP 2026 STYLES
   ========================================================== */
body.theme-photoshop {
  background-color: #282828;
  color: #eeeeee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ps-title-bar {
  background-color: #323232;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #242424;
}
.ps-title-left { display: flex; align-items: center; gap: 14px; }
.ps-app-icon {
  background-color: #001e36;
  color: #31a8ff;
  font-weight: 800;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
}
.ps-menu-bar { display: flex; gap: 10px; font-size: 12px; color: #cccccc; }
.ps-menu-bar span { cursor: pointer; padding: 2px 4px; border-radius: 2px; }
.ps-menu-bar span:hover { background: #444; color: #fff; }
.ps-title-center { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #bbb; }
#ps-doc-title { color: #fff; font-weight: 500; cursor: text; padding: 1px 6px; border-radius: 2px; }
#ps-doc-title:hover { outline: 1px solid #31a8ff; }
.ps-zoom-label { color: #888; font-size: 11px; }
.ps-title-right { display: flex; align-items: center; gap: 6px; }
.ps-theme-btn { background: #444; color: #fff; border-color: #555; }

.ps-options-bar {
  background-color: #383838;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #222;
  font-size: 11px;
}
.ps-opt-group { display: flex; align-items: center; gap: 10px; }
.ps-tool-icon { font-weight: bold; font-size: 13px; color: #31a8ff; }
.ps-opt-select { background: #262626; color: #eee; border: 1px solid #444; border-radius: 2px; padding: 2px 6px; font-size: 11px; }
.ps-opt-label { color: #bbb; }
.ps-opt-aa { color: #aaa; }
.ps-stealth-tools { display: flex; align-items: center; gap: 8px; }
.ps-pill-btn { background: #005fb8; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 11px; cursor: pointer; }
.ps-page-ctrl { display: flex; align-items: center; gap: 4px; }
.ps-btn { background: #484848; color: #eee; border: 1px solid #555; padding: 2px 6px; border-radius: 2px; font-size: 11px; cursor: pointer; }
.ps-btn:hover { background: #5a5a5a; }

.photoshop-workspace {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background-color: #1e1e1e;
}
.ps-tools-panel {
  width: 40px;
  background-color: #333333;
  border-right: 1px solid #242424;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  gap: 4px;
  flex-shrink: 0;
}
.ps-t-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
}
.ps-t-btn:hover { background: #444; color: #fff; }
.ps-t-btn.active { background: #222; color: #31a8ff; outline: 1px solid #444; }
.ps-color-swatches { margin-top: auto; position: relative; width: 26px; height: 26px; }
.ps-swatch-fg { width: 16px; height: 16px; background: #000; border: 1px solid #888; position: absolute; top: 0; left: 0; z-index: 2; }
.ps-swatch-bg { width: 16px; height: 16px; background: #fff; border: 1px solid #888; position: absolute; bottom: 0; right: 0; z-index: 1; }

.ps-canvas-wrapper {
  flex: 1 1 0%;
  min-height: 0;
  overflow: auto;
  background-color: #282828;
  display: flex;
  padding: 10px 14px 24px;
  box-sizing: border-box;
}
.ps-canvas-container { max-width: none; width: 100%; margin: 0; }
.ps-artboard {
  background-color: #ffffff;
  color: #1a1a1a;
  border-radius: 1px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  min-height: 900px;
  padding: 48px 56px;
  margin-bottom: 40px;
}
.ps-artboard-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #111;
  padding-bottom: 8px;
  margin-bottom: 24px;
  font-family: monospace;
  font-size: 11px;
  color: #555;
}
.ps-sheet-title-block h2 {
  font-size: 22px;
  color: #111;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 700;
}
.ps-spec-line { font-size: 11px; color: #777; margin-bottom: 28px; font-family: monospace; }
.ps-story-stream { display: flex; flex-direction: column; gap: 14px; }
.ps-story-paragraph {
  font-size: 15px;
  line-height: 1.8;
  color: #222;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: text;
  border-left: 3px solid transparent;
}
.ps-story-paragraph:hover { background-color: #f7f9fc; }
.ps-story-paragraph.active-paragraph {
  background-color: #eef5ff;
  border-left: 3px solid #31a8ff;
}
.ps-chunk-meta {
  font-size: 10px;
  color: #888;
  font-family: monospace;
  margin-bottom: 2px;
  display: block;
}

.ps-right-sidebar {
  width: 250px;
  background-color: #323232;
  border-left: 1px solid #242424;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* Photoshop Rulers */
.ps-ruler-h {
  height: 18px;
  background: #2a2a2a;
  border-bottom: 1px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}
.ps-ruler-h span {
  position: absolute;
  top: 1px;
  font-size: 9px;
  color: #777;
  padding-left: 2px;
  border-left: 1px solid #444;
  height: 12px;
}

/* Floating Photoshop 2024 Contextual Task Bar (Thanh tác vụ ngữ cảnh) */
.ps-contextual-taskbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(36, 36, 36, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid #484848;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
  border-radius: 24px;
  padding: 4px 10px;
  margin: 14px auto 0;
  width: fit-content;
  user-select: none;
  z-index: 25;
}
.ps-ctx-drag {
  color: #777;
  cursor: grab;
  font-size: 13px;
  padding: 0 4px;
  line-height: 1;
}
.ps-ctx-btn {
  background: #383838;
  border: 1px solid #4a4a4a;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.12s ease;
}
.ps-ctx-btn:hover {
  background: #4a4a4a;
  border-color: #666;
  color: #ffffff;
}
.ps-ctx-btn.ps-ctx-genfill {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  font-weight: 600;
}
.ps-ctx-btn.ps-ctx-genfill:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}
.ps-ctx-sep {
  width: 1px;
  height: 16px;
  background: #4a4a4a;
  margin: 0 2px;
}
.ps-ctx-icon-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
}
.ps-ctx-icon-btn:hover {
  background: #444;
  color: #fff;
}
.ps-ctx-icon-btn.active {
  color: #38bdf8;
}

/* Photoshop Layers Panel CC 2024 */
.ps-panel-header { display: flex; background: #2a2a2a; border-bottom: 1px solid #222; }
.ps-panel-header span { padding: 6px 12px; font-size: 11px; color: #888; cursor: pointer; }
.ps-panel-header span.active { color: #fff; border-bottom: 2px solid #31a8ff; background: #323232; }

.ps-layers-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #2a2a2a;
  border-bottom: 1px solid #222;
}
.ps-filter-kind-select {
  background: #1e1e1e;
  color: #ccc;
  border: 1px solid #3a3a3a;
  border-radius: 2px;
  font-size: 10px;
  padding: 1px 4px;
  height: 18px;
}
.ps-filter-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ps-f-ic {
  font-size: 10px;
  color: #777;
  padding: 1px 3px;
  cursor: pointer;
  border-radius: 2px;
}
.ps-f-ic:hover {
  color: #ddd;
}
.ps-f-ic.active {
  color: #31a8ff;
  background: #1e1e1e;
}

.ps-layers-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #323232;
  border-bottom: 1px solid #282828;
}
.ps-blend-mode-select {
  background: #222;
  color: #eee;
  border: 1px solid #444;
  border-radius: 2px;
  font-size: 10px;
  padding: 2px 4px;
  width: 90px;
}
.ps-opacity-box, .ps-fill-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #aaa;
}
.ps-layers-lock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #2e2e2e;
  border-bottom: 1px solid #242424;
  font-size: 10px;
  color: #888;
}
.ps-lock-icon {
  cursor: pointer;
  font-size: 10px;
  opacity: 0.6;
}
.ps-lock-icon.active {
  opacity: 1;
  color: #fff;
}
.ps-layers-list { flex: 1; overflow-y: auto; padding: 4px 0; }
.ps-layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 11px;
  color: #ccc;
  border-bottom: 1px solid #2d2d2d;
  cursor: pointer;
}
.ps-layer-item:hover { background: #3a3a3a; }
.ps-layer-item.active { background: #264a66; color: #fff; }
.ps-layer-thumb {
  width: 22px;
  height: 20px;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #31a8ff;
}
.ps-layer-thumb.folder-thumb { color: #f59e0b; }
.ps-layer-thumb.adj-thumb { color: #a855f7; }
.ps-layer-thumb.so-thumb { color: #06b6d4; }
.ps-layer-thumb.bg-thumb { color: #94a3b8; }
.ps-layer-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ps-layers-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px;
  background: #2a2a2a;
  border-top: 1px solid #222;
}
.ps-layer-action-btn {
  font-size: 11px;
  color: #888;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
}
.ps-layer-action-btn:hover {
  color: #fff;
  background: #3a3a3a;
}

.ps-properties-box { border-top: 1px solid #242424; padding: 10px; background: #2d2d2d; }
.ps-props-title { font-size: 11px; font-weight: 600; color: #aaa; margin-bottom: 6px; }
.ps-props-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 11px; }
.ps-props-grid div { display: flex; flex-direction: column; gap: 2px; }
.ps-props-grid label { color: #777; font-size: 10px; }
.ps-props-grid span { color: #ddd; }

.ps-boss-view { background: #ffffff; border-radius: 4px; padding: 40px; text-align: center; color: #111; }
.ps-ad-hero h3 { font-size: 28px; font-weight: 800; letter-spacing: 1px; color: #001e36; margin: 16px 0 8px 0; }
.ps-ad-metrics-bar { display: flex; justify-content: center; gap: 16px; font-family: monospace; font-size: 11px; color: #666; margin-top: 20px; }
.ps-shape-gradient { height: 180px; background: linear-gradient(135deg, #31a8ff, #001e36); border-radius: 8px; margin-bottom: 16px; }


/* ==========================================================
   THEME 5: BLENDER 4.2 STYLES
   ========================================================== */
body.theme-blender {
  background-color: #232323;
  color: #dedede;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.blender-top-bar {
  background-color: #303030;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid #1a1a1a;
  font-size: 12px;
}
.blender-top-left { display: flex; align-items: center; gap: 12px; }
.blender-menu-bar { display: flex; gap: 8px; color: #ccc; }
.blender-workspaces { display: flex; gap: 2px; margin-left: 10px; }
.blender-workspaces span { padding: 3px 8px; font-size: 11px; color: #aaa; border-radius: 3px; cursor: pointer; }
.blender-workspaces span.active { background: #444; color: #fff; }
.blender-workspaces span:hover { color: #fff; }
#blender-doc-title { color: #fff; font-weight: 500; cursor: text; padding: 1px 6px; border-radius: 2px; }
#blender-doc-title:hover { outline: 1px solid #ea7600; }
.blender-top-right { display: flex; align-items: center; gap: 6px; }
.blender-theme-btn { background: #ea7600; color: #fff; border: none; }

.blender-sub-bar {
  background-color: #2c2c2c;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #1f1f1f;
  font-size: 11px;
}
.blender-sub-left { display: flex; align-items: center; gap: 8px; color: #999; }
.blender-badge { background: #3d3d3d; color: #eee; padding: 2px 6px; border-radius: 3px; }
.blender-stealth-tools { display: flex; align-items: center; gap: 8px; }
.blender-pill-btn { background: #ea7600; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 11px; cursor: pointer; }
.blender-page-ctrl { display: flex; align-items: center; gap: 4px; }
.blender-btn { background: #3a3a3a; color: #ddd; border: 1px solid #4a4a4a; padding: 2px 6px; border-radius: 2px; font-size: 11px; cursor: pointer; }

.blender-workspace {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background-color: #181818;
}
.blender-main-view {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  background-color: #1e1e1e;
  padding: 16px 20px;
}
.blender-console-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2b2b2b;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.b-tab { padding: 4px 10px; font-size: 11px; color: #888; border-radius: 3px; cursor: pointer; }
.b-tab.active { background: #2f2f2f; color: #ea7600; font-weight: 600; }
.b-console-status { margin-left: auto; font-family: monospace; font-size: 10px; color: #666; }
.blender-code-lines { display: flex; flex-direction: column; gap: 8px; font-family: 'Consolas', monospace; font-size: 13px; }
.blender-code-line {
  padding: 6px 12px;
  background: #242424;
  border-radius: 4px;
  border-left: 3px solid transparent;
  cursor: pointer;
  user-select: text;
  line-height: 1.6;
}
.blender-code-line:hover { background: #2a2a2a; }
.blender-code-line.active-line {
  background: #2b2f38;
  border-left: 3px solid #ea7600;
}
.b-cmd-prefix { color: #e5c07b; margin-right: 8px; }
.b-story-text { color: #98c379; }

.blender-right-sidebar {
  width: 260px;
  background-color: #2b2b2b;
  border-left: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.blender-outliner { flex: 1; padding: 10px; font-size: 11px; border-bottom: 1px solid #222; }
.b-outliner-title { font-weight: 600; color: #ea7600; margin-bottom: 8px; }
.b-tree-node { padding: 3px 6px; color: #ccc; cursor: pointer; }
.b-tree-node:hover { background: #383838; }
.b-tree-node.ind { padding-left: 16px; }
.b-tree-node.ind2 { padding-left: 28px; }
.blender-props-panel { padding: 12px; font-size: 11px; }
.b-prop-tab { font-weight: 600; color: #ddd; margin-bottom: 8px; }
.b-prop-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #333; }
.b-prop-row span { color: #888; }

.blender-boss-view {
  position: relative;
  height: 500px;
  background: #191919;
  border: 1px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blender-3d-gizmo { position: absolute; top: 16px; right: 20px; font-weight: bold; font-family: monospace; font-size: 16px; display: flex; gap: 8px; }
.blender-stats-overlay {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.8;
  color: #aaa;
  background: rgba(0,0,0,0.6);
  padding: 12px 18px;
  border-radius: 4px;
}
.blender-stats-overlay b { color: #ea7600; }


/* ==========================================================
   THEME 6: LINKEDIN FEED STYLES
   ========================================================== */
body.theme-linkedin {
  background-color: #f3f2ef;
  color: #191919;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.linkedin-navbar {
  background-color: #ffffff;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid #e0e0e0;
}
.linkedin-nav-left { display: flex; align-items: center; gap: 10px; }
.linkedin-logo {
  background-color: #0a66c2;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  padding: 1px 7px;
  border-radius: 4px;
}
.linkedin-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #edf3f8;
  padding: 6px 12px;
  border-radius: 4px;
  width: 240px;
}
.linkedin-search-box input { background: transparent; border: none; outline: none; font-size: 12px; width: 100%; color: #333; }
.linkedin-nav-center { display: flex; gap: 24px; }
.linkedin-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #666;
  cursor: pointer;
  padding: 4px 6px;
}
.linkedin-nav-item:hover, .linkedin-nav-item.active { color: #191919; border-bottom: 2px solid #191919; }
.ln-icon { font-size: 16px; }
.linkedin-nav-right { display: flex; align-items: center; gap: 8px; }
.linkedin-nav-btn { background: #0a66c2; color: #fff; padding: 4px 10px; border-radius: 16px; font-weight: 600; font-size: 12px; cursor: pointer; }
.linkedin-page-ctrl { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #666; }
.ln-btn { background: #fff; border: 1px solid #ccc; padding: 3px 8px; border-radius: 12px; font-size: 11px; cursor: pointer; }
.ln-btn:hover { background: #f0f0f0; }

.linkedin-workspace {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  background-color: #f3f2ef;
}
.linkedin-layout-container {
  display: flex;
  max-width: 1180px;
  width: 100%;
  padding: 20px 10px;
  gap: 20px;
  height: 100%;
}
.linkedin-col-left { width: 230px; flex-shrink: 0; }
.ln-profile-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}
.ln-cover-banner { height: 55px; background: linear-gradient(120deg, #a0b4b7, #dbe7e4); }
.ln-avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0a66c2;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -30px auto 8px auto;
  border: 2px solid #fff;
}
.ln-profile-details { padding: 0 12px 12px 12px; border-bottom: 1px solid #eee; }
.ln-profile-details h4 { font-size: 14px; font-weight: 600; color: #191919; }
.ln-profile-details p { font-size: 11px; color: #666; margin-top: 4px; }
.ln-profile-stats { padding: 10px 14px; text-align: left; font-size: 11px; border-bottom: 1px solid #eee; }
.stat-row { display: flex; justify-content: space-between; margin-bottom: 6px; color: #666; }
.stat-row b { color: #0a66c2; }
.ln-profile-footer { padding: 10px; font-size: 11px; font-weight: 600; color: #555; text-align: left; }

.linkedin-col-center {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ln-start-post-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
}
.ln-start-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ln-avatar-mini {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0a66c2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.ln-fake-input {
  flex: 1;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 12px;
  color: #666;
}
.ln-post-types { display: flex; justify-content: space-around; font-size: 12px; font-weight: 600; color: #666; }

.linkedin-story-stream { display: flex; flex-direction: column; gap: 12px; }
.linkedin-post-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
  user-select: text;
}
.linkedin-post-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.linkedin-post-card.active-post {
  border: 1.5px solid #0a66c2;
  box-shadow: 0 2px 12px rgba(10, 102, 194, 0.15);
}
.ln-post-author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ln-post-author h5 { font-size: 13px; font-weight: 600; color: #191919; }
.ln-post-author span { font-size: 11px; color: #777; display: block; }
.ln-post-text { font-size: 14px; line-height: 1.6; color: #222; margin-bottom: 12px; }
.ln-hashtags { font-size: 12px; color: #0a66c2; font-weight: 500; margin-bottom: 12px; }
.ln-reaction-bar {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 8px;
  font-size: 11px;
  color: #666;
  font-weight: 600;
}

.linkedin-col-right { width: 280px; flex-shrink: 0; }
.ln-news-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
}
.ln-news-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ln-news-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ln-news-list li b { font-size: 12px; color: #191919; display: block; }
.ln-news-list li span { font-size: 11px; color: #777; }

.ln-kpi-highlight-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  background: #f7fafc;
  padding: 16px;
  border-radius: 6px;
  margin-top: 12px;
  text-align: center;
}
.kpi-box h3 { color: #0a66c2; font-size: 20px; font-weight: 700; }
.kpi-box span { font-size: 11px; color: #666; }


/* ==========================================================
   THEME 7: AUTODESK AUTOCAD 2026 STYLES
   ========================================================= */
body.theme-autocad {
  background-color: #212830;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.cad-title-bar {
  background-color: #2d333b;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid #1c2128;
}
.cad-title-left { display: flex; align-items: center; gap: 12px; }
.cad-logo {
  background-color: #c41527;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 1px 6px;
  border-radius: 3px;
}
.cad-quick-access { display: flex; gap: 8px; font-size: 13px; color: #bbb; }
.cad-title-center { display: flex; align-items: center; gap: 6px; font-size: 12px; }
#autocad-doc-title { color: #fff; font-weight: 600; cursor: text; padding: 1px 6px; }
#autocad-doc-title:hover { outline: 1px solid #c41527; }
.cad-version { color: #888; font-size: 11px; }
.cad-title-right { display: flex; align-items: center; gap: 6px; }
.cad-theme-btn { background: #c41527; color: #fff; border: none; }

.cad-ribbon-bar {
  background-color: #282f38;
  border-bottom: 1px solid #1c2128;
}
.cad-ribbon-tabs { display: flex; gap: 4px; padding: 2px 10px 0 10px; }
.cad-ribbon-tabs span { padding: 4px 12px; font-size: 11px; color: #aaa; cursor: pointer; border-radius: 3px 3px 0 0; }
.cad-ribbon-tabs span.active { background: #22272e; color: #fff; font-weight: 600; }
.cad-ribbon-panels {
  background-color: #22272e;
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 16px;
  border-top: 1px solid #1c2128;
}
.cad-ribbon-group { display: flex; flex-direction: column; align-items: center; border-right: 1px solid #333; padding-right: 14px; }
.cad-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 10px; }
.cad-tool { background: #2d333b; padding: 2px 6px; border-radius: 2px; color: #ddd; cursor: pointer; }
.cad-group-label { font-size: 9px; color: #777; margin-top: 3px; text-transform: uppercase; }
.cad-layer-box { display: flex; align-items: center; gap: 6px; background: #2d333b; padding: 6px 12px; border-radius: 3px; font-size: 11px; }
.cad-layer-color { width: 10px; height: 10px; background: #00ffff; border-radius: 2px; }
.cad-stealth-group { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cad-pill-btn { background: #c41527; color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 11px; cursor: pointer; }
.cad-page-ctrl { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.cad-btn { background: #373e47; color: #eee; border: 1px solid #444c56; padding: 3px 8px; border-radius: 2px; font-size: 11px; cursor: pointer; }

.autocad-workspace {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #212830;
}
.cad-viewport-wrapper {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  background-color: #1e242b;
  background-image: radial-gradient(#2d3744 1px, transparent 1px);
  background-size: 24px 24px;
}
.cad-ucs-icon {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-left: 2px solid #00ff00;
  border-bottom: 2px solid #ff0000;
  font-size: 10px;
  font-family: monospace;
}
.cad-axis-y { position: absolute; top: -14px; left: -2px; color: #00ff00; font-weight: bold; }
.cad-axis-x { position: absolute; bottom: -14px; right: -8px; color: #ff0000; font-weight: bold; }

.cad-drawing-sheet { max-width: 960px; margin: 0 auto; }
.cad-drawing-border {
  border: 2px solid #00ffff;
  padding: 24px;
  background: rgba(33, 40, 48, 0.95);
  box-shadow: 0 0 20px rgba(0,255,255,0.1);
}
.cad-title-block-header {
  border-bottom: 1.5px solid #00ffff;
  padding-bottom: 12px;
  margin-bottom: 20px;
  font-family: monospace;
  font-size: 11px;
  color: #ffff00;
  display: flex;
  justify-content: space-between;
}
.cad-notes-container { display: flex; flex-direction: column; gap: 10px; font-family: monospace; font-size: 13px; }
.cad-note-item {
  padding: 8px 12px;
  background: rgba(45, 51, 59, 0.6);
  border-left: 3px solid #ffff00;
  line-height: 1.7;
  cursor: pointer;
  user-select: text;
}
.cad-note-item:hover { background: rgba(55, 62, 71, 0.9); }
.cad-note-item.active-note {
  border-left: 3px solid #00ffff;
  background: rgba(0, 255, 255, 0.12);
}
.cad-note-tag { color: #00ffff; font-weight: bold; margin-right: 8px; }
.cad-note-text { color: #ffffff; }

.cad-command-line {
  background-color: #1c2128;
  border-top: 1px solid #30363d;
  padding: 6px 14px;
  font-family: monospace;
  font-size: 12px;
  color: #c9d1d9;
}
.cad-cmd-history { color: #8b949e; font-size: 11px; margin-bottom: 2px; }
.cad-cmd-input-row { display: flex; align-items: center; gap: 8px; }
.cad-cmd-prompt { color: #58a6ff; font-weight: bold; }
.cad-cmd-input { background: transparent; border: none; outline: none; color: #fff; font-family: monospace; font-size: 12px; flex: 1; }

.cad-boss-view { background: #161b22; border: 2px solid #58a6ff; padding: 20px; border-radius: 4px; }
.cad-plan-title { font-family: monospace; font-size: 13px; color: #58a6ff; margin-bottom: 12px; font-weight: bold; }
.cad-plan-svg { width: 100%; height: 420px; background: #0d1117; }


/* ==========================================================
/* ==========================================================
   ADVANCED SPLIT WORKSPACES & ACTIVE WORK IN PROGRESS STYLING
   ========================================================== */

/* 1. PHOTOSHOP MULTI-ARTBOARD STYLING */
.ps-artboards-row {
  display: flex;
  gap: 16px;
  max-width: none;
  width: 100%;
  margin: 0;
  align-items: flex-start;
}
.ps-canvas-container {
  max-width: none;
  width: 100%;
  margin: 0;
}
.ps-visual-artboard {
  flex: 0 0 60%;
  min-width: 0;
  background-color: #242830;
  border: 1px solid #363d47;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  padding: 12px 14px;
  position: sticky !important;
  top: 10px !important;
  align-self: flex-start !important;
  max-height: calc(100vh - 95px) !important;
  overflow: hidden !important;
  z-index: 10;
}
.ps-text-artboard {
  flex: 1 1 40%;
  min-width: 0;
}
.ps-visual-artboard .ps-artboard-header {
  border-bottom: 1px solid #3a424d;
  color: #31a8ff;
}
.ps-visual-canvas {
  position: relative;
  height: 580px;
  background: radial-gradient(#2b323c 1px, #16191d 1px);
  background-size: 20px 20px;
  border: 1px solid #2d333b;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-guide-line-h {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 255, 255, 0.5);
  pointer-events: none;
  z-index: 5;
}
.ps-guide-line-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 255, 255, 0.5);
  pointer-events: none;
  z-index: 5;
}
.ps-composition-body {
  position: relative;
  width: 86%;
  height: 80%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-comp-bg-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #09203f 0%, #537895 100%);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0.9;
}
.ps-comp-abstract-shape {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,168,255,0.7) 0%, rgba(255,0,128,0.3) 100%);
  filter: blur(24px);
  top: 15%;
  right: 15%;
}
.ps-transform-bounding-box {
  position: relative;
  z-index: 6;
  border: 1.5px solid #31a8ff;
  padding: 30px 24px;
  background: rgba(10, 25, 45, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  max-width: 380px;
  box-shadow: 0 0 15px rgba(49, 168, 255, 0.3);
}
.ps-brand-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: #31a8ff;
  font-weight: 700;
  font-family: monospace;
}
.ps-transform-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0;
  line-height: 1.3;
}
.ps-transform-content p {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
}
.ps-handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #ffffff;
  border: 1.5px solid #31a8ff;
}
.ps-handle.tl { top: -4px; left: -4px; cursor: nwse-resize; }
.ps-handle.tc { top: -4px; left: calc(50% - 3.5px); cursor: ns-resize; }
.ps-handle.tr { top: -4px; right: -4px; cursor: nesw-resize; }
.ps-handle.ml { top: calc(50% - 3.5px); left: -4px; cursor: ew-resize; }
.ps-handle.mr { top: calc(50% - 3.5px); right: -4px; cursor: ew-resize; }
.ps-handle.bl { bottom: -4px; left: -4px; cursor: nesw-resize; }
.ps-handle.bc { bottom: -4px; left: calc(50% - 3.5px); cursor: ns-resize; }
.ps-handle.br { bottom: -4px; right: -4px; cursor: nwse-resize; }
.ps-hud-info {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  gap: 12px;
  font-family: monospace;
  font-size: 10px;
  color: #38bdf8;
  z-index: 8;
}

/* 2. BLENDER DUAL VIEWPORT SPLIT STYLING */
.blender-split-container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.blender-3d-pane {
  flex: 0 0 46%;
  background-color: #191919;
  border-right: 2px solid #111111;
  display: flex;
  flex-direction: column;
  position: relative;
}
.blender-script-pane {
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #1e1e1e;
}
.b-viewport-header {
  height: 28px;
  background-color: #262626;
  border-bottom: 1px solid #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
}
.b-view-title { font-weight: 600; color: #ea7600; }
.b-view-stats { color: #888; font-family: monospace; font-size: 10px; }
.b-3d-canvas-area {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at center, #2c2c2c 0%, #151515 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.b-viewport-scene {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.b-mesh-svg {
  width: 98%;
  height: 96%;
  max-width: 1200px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
}
.b-viewport-hud {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: monospace;
  font-size: 10px;
  line-height: 1.6;
  color: #888888;
  background: rgba(15, 15, 15, 0.7);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #292929;
  pointer-events: none;
}
.b-viewport-hud b { color: #ea7600; }

/* 3. AUTOCAD DUAL MODEL SPACE STYLING */
.cad-dual-model-space {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 12px 14px;
  gap: 14px;
  box-sizing: border-box;
}
.cad-blueprint-live-pane {
  flex: 0 0 52%;
  display: flex;
  flex-direction: column;
  background: #181d22;
  border: 1.5px solid #2d3744;
  border-radius: 2px;
  overflow: hidden;
}
.cad-notes-live-pane {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cad-pane-title-tag {
  background: #232931;
  padding: 6px 12px;
  font-family: monospace;
  font-size: 11px;
  color: #00ffff;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #2d3744;
}
.cad-scale-tag { color: #ffff00; font-weight: bold; }
.cad-canvas-vector-box {
  flex: 1;
  position: relative;
  background-color: #1e242b;
  background-image: radial-gradient(#2c3746 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cad-blueprint-svg {
  width: 96%;
  height: 94%;
}
.cad-crosshair-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}
.cad-crosshair-cursor::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  width: 1px;
  height: 48px;
  background: #ffffff;
}
.cad-crosshair-cursor::after {
  content: "";
  position: absolute;
  left: -24px;
  top: 0;
  height: 1px;
  width: 48px;
  background: #ffffff;
}
.cad-crosshair-pickbox {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border: 1px solid #ffffff;
}
.cad-notes-live-pane .cad-drawing-border {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 16px;
}
.cad-notes-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

/* 5. LINKEDIN GROUPED PARAGRAPHS STYLING */
.ln-post-paragraphs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.ln-post-paragraph {
  font-size: 14px;
  line-height: 1.65;
  color: #222222;
  padding: 6px 10px;
  border-radius: 4px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-left 0.15s ease;
  user-select: text;
}
.ln-post-paragraph:hover {
  background-color: #f3f6f9;
}
.ln-post-paragraph.active-paragraph {
  background-color: #e8f3fc;
  border-left: 3px solid #0a66c2;
  color: #053b70;
  font-weight: 500;
}
.ln-paragraph-seq {
  font-size: 10px;
  font-family: monospace;
  color: #0a66c2;
  margin-right: 6px;
  font-weight: bold;
}

/* 6. AUTOCAD 3D MODEL VIEWPORT & REALISTIC ASSET RENDERING */
.cad-3d-model-viewport {
  position: relative;
  background-color: #1a1e24 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cad-house-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cad-live-3d-model-img {
  max-width: 96%;
  max-height: 94%;
  object-fit: contain;
  filter: contrast(1.05) brightness(0.98);
  pointer-events: none;
}
.cad-viewcube-overlay {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 12;
  pointer-events: none;
}
.cad-viewcube-box {
  width: 48px;
  height: 48px;
  background: #3a424d;
  border: 1px solid #586575;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-family: monospace;
  font-weight: bold;
  color: #c9d1d9;
}
.cad-viewcube-box span { line-height: 1.1; }
.vc-top { color: #58a6ff; }
.vc-front { color: #f0883e; }
.vc-right { color: #3fb950; }
.cad-wcs-label {
  font-size: 9px;
  font-family: monospace;
  color: #8b949e;
  margin-top: 3px;
  font-weight: bold;
}
.cad-viewport-stats-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(15, 20, 26, 0.82);
  border: 1px solid #30363d;
  border-radius: 3px;
  padding: 6px 12px;
  font-family: monospace;
  font-size: 10px;
  color: #8b949e;
  line-height: 1.6;
  z-index: 10;
  pointer-events: none;
}
.cad-viewport-stats-tag b { color: #58a6ff; }

/* Fullscreen Boss AutoCAD 3D Mode */
.cad-fullscreen-3d-box {
  position: relative;
  background: #11151b;
  border: 1.5px solid #30363d;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}
.cad-boss-full-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 2px;
}
.cad-boss-telemetry-hud {
  width: 100%;
  margin-top: 14px;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid #30363d;
  border-radius: 4px;
  padding: 10px 16px;
  font-family: monospace;
  font-size: 11px;
  color: #8b949e;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cad-boss-telemetry-hud b { color: #58a6ff; }

/* Photoshop Boss Mode Artwork Enhancements */
.ps-boss-hero-svg {
  width: 100%;
  height: 100%;
}
.ps-comp-mesh-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ps-comp-vector-mesh {
  width: 90%;
  height: 90%;
}

/* Blender Boss Mode Artwork Enhancements */
.blender-3d-boss-canvas {
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blender-boss-svg {
  width: 95%;
  height: 95%;
}

/* ==========================================================
   GLOBAL STEALTH READING CONTROLS & SHOW/HIDE SYSTEM
   ========================================================== */
.stealth-reading-ctrls {
  display: flex !important;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

body.controls-hidden .stealth-reading-ctrls {
  display: none !important;
}

/* Control Buttons Standard Polish */
.portal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  transition: all 0.15s ease;
}
.portal-nav-btn:hover {
  background: #1d4ed8;
}

.theme-switch-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  background: #374151;
  color: #f3f4f6;
  border: 1px solid #4b5563;
  transition: all 0.15s ease;
}
.theme-switch-pill:hover {
  background: #4b5563;
  color: #fff;
}

.boss-key-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  background: #d93025;
  color: #ffffff;
  border: 1px solid #b3261e;
  transition: all 0.15s ease;
}
.boss-key-btn:hover {
  background: #b3261e;
}
.boss-key-btn .boss-badge {
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: bold;
}

.stealth-toggle-btn {
  padding: 3px 9px;
  border-radius: 4px;
  background: #2b313a;
  color: #c9d1d9;
  border: 1px solid #444c56;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  user-select: none;
  transition: all 0.15s ease;
}
.stealth-toggle-btn:hover {
  background: #3b434e;
  color: #ffffff;
  border-color: #58a6ff;
}

.floating-stealth-toggle {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(26, 32, 44, 0.92);
  color: #edf2f7;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  user-select: none;
}
.floating-stealth-toggle:hover {
  background: rgba(45, 55, 72, 0.98);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
body.controls-hidden .floating-stealth-toggle {
  opacity: 0.35;
  background: rgba(18, 20, 24, 0.75);
}
body.controls-hidden .floating-stealth-toggle:hover {
  opacity: 1.0;
  background: rgba(26, 32, 44, 0.95);
}

.version-reload-button {
  position: fixed;
  right: 16px;
  bottom: 58px;
  z-index: 100001;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(26, 32, 44, 0.92);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font: 600 20px/1 "Segoe UI Symbol", "Segoe UI", sans-serif;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.version-reload-button:hover {
  background: rgba(45, 55, 72, 0.98);
  transform: translateY(-1px);
}

.version-reload-button:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 2px;
}

.version-reload-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.version-reload-button.is-loading {
  animation: version-reload-spin 0.8s linear infinite;
}

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

/* Photoshop */
body.theme-photoshop {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #535353;
}

.ps-title-bar {
  height: 32px;
  padding: 0 8px;
  background: #252525;
  border-bottom: 1px solid #161616;
}

.ps-menu-bar { gap: 0; }
.ps-menu-bar span {
  padding: 8px 9px;
  color: #dedede;
  font-size: 12px;
}

.ps-title-center {
  font-size: 11px;
  color: #c8c8c8;
}

.ps-title-right { gap: 3px; }
.ps-title-right .app-icon-action {
  color: #d8d8d8;
  background: transparent;
  border: 1px solid transparent;
}
.ps-title-right .app-icon-action:hover {
  background: #414141;
  border-color: #525252;
}

.ps-options-bar {
  height: 35px;
  padding: 0 8px;
  background: #323232;
  border-bottom: 1px solid #181818;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ps-opt-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ps-opt-btn, .ps-align-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  font-size: 11px;
  color: #c0c0c0;
  cursor: pointer;
  border-radius: 2px;
  border: 1px solid transparent;
  user-select: none;
}
.ps-opt-btn:hover, .ps-align-btn:hover {
  background: #3e3e3e;
  color: #fff;
  border-color: #555;
}
.ps-align-btn.active {
  background: #222;
  border-color: #555;
  color: #38bdf8;
}
.ps-align-group {
  display: inline-flex;
  gap: 1px;
  background: #272727;
  padding: 1px;
  border-radius: 2px;
}
.ps-color-chip {
  width: 20px;
  height: 16px;
  border: 1px solid #888;
  border-radius: 2px;
  display: inline-block;
  cursor: pointer;
}

.ps-pill-btn,
.ps-btn {
  color: #e2e8f0;
  background: #3c3c3c;
  border: 1px solid #525252;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.ps-pill-btn:hover,
.ps-btn:hover {
  background: #4a4a4a;
  border-color: #666;
  color: #fff;
}

.ps-document-tabs {
  display: flex;
  height: 31px;
  align-items: stretch;
  background: #252525;
  border-bottom: 1px solid #151515;
  padding-left: 39px;
}
.ps-document-tabs span {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #9b9b9b;
  font-size: 11px;
  border-right: 1px solid #161616;
}
.ps-document-tabs span.active {
  color: #f0f0f0;
  background: #424242;
  box-shadow: inset 0 2px #31a8ff;
}

.photoshop-workspace {
  height: calc(100vh - 98px);
  min-height: 0;
  background: #535353;
}

.ps-tools-panel {
  width: 40px;
  flex: 0 0 40px;
  padding: 5px 3px;
  background: #2b2b2b;
  border-right: 1px solid #191919;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ps-t-btn {
  width: 32px;
  height: 28px;
  margin: 1px 0;
  color: #d5d5d5;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
  font-size: 13px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.ps-t-btn .sub-arrow {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 0;
  height: 0;
  border-right: 3px solid #888;
  border-top: 3px solid transparent;
}
.ps-t-btn:hover { background: #3b3b3b; border-color: #4a4a4a; color: #fff; }
.ps-t-btn.active {
  background: #222 !important;
  border-color: #0078d4 !important;
  color: #38bdf8 !important;
  box-shadow: inset 0 0 2px #0078d4;
}
.ps-color-swatches {
  margin-top: auto;
  position: relative;
  width: 28px;
  height: 32px;
  margin-bottom: 4px;
}
.ps-default-colors-btn {
  position: absolute;
  top: -8px;
  left: 0;
  font-size: 8px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
}
.ps-swap-colors-btn {
  position: absolute;
  top: -8px;
  right: 0;
  font-size: 9px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
}
.ps-swatch-fg {
  width: 15px;
  height: 15px;
  background: #000;
  border: 1px solid #888;
  position: absolute;
  top: 6px;
  left: 1px;
  z-index: 2;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.ps-swatch-bg {
  width: 15px;
  height: 15px;
  background: #fff;
  border: 1px solid #888;
  position: absolute;
  bottom: 0px;
  right: 1px;
  z-index: 1;
}

/* Layers Sidebar Controls */
.ps-layers-control-bar, .ps-layers-lock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #2b2b2b;
  border-bottom: 1px solid #202020;
  font-size: 10px;
  color: #aaa;
}
.ps-blend-mode-select {
  background: #1e1e1e;
  color: #ccc;
  border: 1px solid #3c3c3c;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  outline: none;
}
.ps-opacity-box, .ps-fill-box {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ps-opacity-box b, .ps-fill-box b {
  color: #fff;
}
.ps-lock-icon {
  font-size: 10px;
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 2px;
}
.ps-lock-icon.active {
  background: #3a3a3a;
  color: #38bdf8;
}
.ps-layers-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px;
  background: #2b2b2b;
  border-top: 1px solid #202020;
  color: #aaa;
  font-size: 11px;
}
.ps-layer-action-btn {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  user-select: none;
}
.ps-layer-action-btn:hover {
  background: #3c3c3c;
  color: #fff;
}

.ps-canvas-wrapper {
  padding: 10px 14px 24px;
  background: #3a3a3a;
  box-sizing: border-box;
}
.ps-artboards-row {
  gap: 14px;
  max-width: none;
  width: 100%;
  margin: 0;
}
.ps-visual-artboard {
  flex: 0 0 60%;
  flex-basis: 60%;
  min-width: 0;
  padding: 10px 12px;
  background: #25282e;
  border: 1.5px solid #383f4a;
  border-radius: 4px;
  position: sticky !important;
  top: 10px !important;
  align-self: flex-start !important;
  max-height: calc(100vh - 90px) !important;
  overflow: hidden !important;
  z-index: 10;
}
.ps-text-artboard {
  flex: 1 1 40%;
  flex-basis: 40%;
  min-width: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  margin-bottom: 0;
}
.ps-text-artboard .ps-artboard-header {
  padding: 4px 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #444;
  color: #aaa;
  font-size: 10px;
}
.ps-visual-canvas {
  height: auto;
  min-height: 480px;
  max-height: calc(100vh - 150px);
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111 url("static/photoshop_campaign_visual.png") center / cover no-repeat;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.ps-comp-bg-layer,
.ps-comp-mesh-art { display: none; }
.ps-composition-body { width: 100%; height: 100%; }
.ps-transform-bounding-box {
  position: absolute;
  left: 6%;
  bottom: 8%;
  max-width: 440px;
  padding: 20px 22px;
  background: rgba(12,18,24,.68);
  border: 1px solid #31a8ff;
  border-radius: 2px;
  box-shadow: none;
  backdrop-filter: none;
}
.ps-hud-info {
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 1px;
  background: rgba(30,30,30,.88);
}
.ps-artboard-sheet {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  padding: 22px 26px 36px;
  border-radius: 2px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.45);
  min-height: calc(100vh - 120px);
  border: 1px solid #d0d7de;
}
.ps-sheet-title-block {
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
}
.ps-sheet-title-block h2 { font-size: 16px; letter-spacing: 0; margin-bottom: 3px; color: #111111 !important; }
.ps-spec-line { font-size: 10px; margin-bottom: 14px; color: #666666 !important; }
.ps-story-paragraph { color: #202020 !important; }
.ps-story-stream { gap: 0; }
.ps-story-paragraph {
  padding: 9px 10px 11px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ps-story-paragraph:hover { background: #f2f6fb; }
.ps-story-paragraph.active-paragraph {
  background: #eaf4ff;
  border-left-color: #168de2;
  box-shadow: none;
}
.ps-chunk-meta {
  margin-bottom: 4px;
  color: #8a8a8a;
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  letter-spacing: 0;
}
.ps-chunk-body {
  font-size: var(--story-font-size, 14px);
  line-height: var(--story-line-height, 1.7);
  letter-spacing: var(--story-letter-spacing, 0.15px);
  color: #202020;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-break: break-word;
}
.ps-right-sidebar { width: 250px; flex: 0 0 250px; background: #292929; }
.ps-layer-item { height: 28px; font-size: 11px; }
.ps-layer-item.active { background: #454545; }

/* Blender */
body.theme-blender { font-family: "Segoe UI", Arial, sans-serif; }
.blender-top-bar { height: 29px; padding: 0 7px; background: #1d1d1d; }
.blender-menu-bar { gap: 0; }
.blender-menu-bar span,
.blender-workspaces span { padding: 6px 8px; border-radius: 0; font-size: 11px; }
.blender-workspaces span.active { background: #303030; box-shadow: inset 0 -2px #ea7600; }
.blender-top-right { gap: 2px; }
.blender-top-right .app-icon-action {
  color: #c8c8c8;
  background: transparent;
  border: 1px solid transparent;
}
.blender-top-right .app-icon-action:hover { background: #353535; border-color: #454545; }
.blender-sub-bar { height: 29px; padding: 0 7px; }
.blender-pill-btn,
.blender-btn { background: #393939; color: #d2d2d2; border-color: #4c4c4c; }
.blender-workspace { height: calc(100vh - 58px); min-height: 0; }
.blender-3d-pane { flex-basis: 58%; }
.blender-script-pane { flex-basis: 42%; min-width: 390px; }
.b-viewport-header { height: 28px; padding: 0 8px; }
.b-vp-menus { display: flex; gap: 9px; }
.b-vp-shading { display: flex; gap: 3px; color: #aaa; }
.b-vp-shading span { width: 18px; text-align: center; }
.b-3d-canvas-area { background: radial-gradient(circle at 50% 45%, #303030 0%, #191919 72%); }
.b-viewport-hud { background: transparent; border: 0; padding: 0; border-radius: 0; }
.blender-console-header { height: 29px; background: #252525; border-bottom: 1px solid #111; }
.b-tab { padding: 7px 12px; border-right: 1px solid #151515; color: #aaa; }
.b-tab.active { color: #ddd; background: #343434; box-shadow: inset 0 2px #ea7600; }
.blender-code-lines {
  gap: 0;
  padding: 8px 0 40px;
  background: #1b1b1b;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
.blender-code-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 23px;
  padding: 2px 12px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 19px;
}
.blender-code-line:hover { background: #252525; }
.blender-code-line.active-line { background: #303238; box-shadow: inset 2px 0 #ea7600; }
.b-line-number {
  padding-right: 10px;
  color: #666;
  text-align: right;
  user-select: none;
}
.b-code-content { min-width: 0; color: #c8c8c8; white-space: pre-wrap; overflow-wrap: anywhere; }
.b-code-var { color: #79b8ff; }
.b-code-op { color: #d8d8d8; }
.b-story-text {
  color: #ce9178;
  font-size: var(--story-font-size, 12pt);
  line-height: var(--story-line-height, 1.65);
  letter-spacing: var(--story-letter-spacing, 0.15px);
}
.b-cmd-prefix { display: none; }
.blender-right-sidebar { width: 225px; flex-basis: 225px; }

/* AutoCAD */
body.theme-autocad { font-family: "Segoe UI", Arial, sans-serif; background: #20262d; }
.cad-title-bar { height: 31px; padding: 0 8px; background: #272e36; }
.cad-title-right { gap: 2px; }
.cad-title-right .app-icon-action {
  color: #d7dce2;
  background: transparent;
  border: 1px solid transparent;
}
.cad-title-right .app-icon-action:hover { background: #39424d; border-color: #4c5662; }
.cad-quick-access { gap: 1px; }
.cad-quick-access span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d5d9de;
  font-size: 13px;
}
.cad-ribbon-bar { background: #2d343d; }
.cad-ribbon-tabs { height: 26px; padding-top: 0; }
.cad-ribbon-tabs span { padding: 6px 12px 5px; border-radius: 0; }
.cad-ribbon-tabs span.active { background: #3a424c; box-shadow: inset 0 2px #d73b4a; }
.cad-ribbon-panels { height: 62px; padding: 5px 10px 3px; }
.cad-tools-grid { gap: 2px 8px; }
.cad-tool { min-width: 72px; color: #d2d6da; font-size: 10px; }
.cad-tool b { width: 16px; color: #53bde8; font-size: 14px; text-align: center; }
.cad-pill-btn,
.cad-btn { background: #3a424c; color: #dfe3e7; border-color: #505a66; }
.cad-file-tabs {
  display: flex;
  align-items: end;
  height: 31px;
  padding-left: 8px;
  background: #1f252c;
  border-top: 1px solid #171b20;
  border-bottom: 1px solid #11161b;
}
.cad-file-tabs span {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #aeb5bd;
  font-size: 11px;
  border-right: 1px solid #11161b;
}
.cad-file-tabs span.active { color: #fff; background: #303842; box-shadow: inset 0 2px #d73b4a; }
.cad-file-tabs .cad-new-tab { width: 30px; padding: 0; justify-content: center; }
.autocad-workspace { height: calc(100vh - 181px); min-height: 0; }
.cad-viewport-wrapper { background-color: #191f25; }
.cad-dual-model-space { padding: 0; gap: 1px; }
.cad-blueprint-live-pane {
  flex-basis: 68%;
  border: 0;
  border-radius: 0;
  background: #1b2026;
}
.cad-notes-live-pane {
  flex-basis: 32%;
  min-width: 330px;
  border-left: 1px solid #0f1317;
  background: #252c34;
}
.cad-pane-title-tag { height: 26px; padding: 6px 10px; background: #242b33; }
.cad-canvas-vector-box { background-color: #1b2026; background-size: 18px 18px; }
.cad-house-img-container { width: 100%; height: 100%; }
.cad-live-3d-model-img { display: none !important; }
.cad-blueprint-svg { display: block !important; width: 96%; height: 96%; }
.cad-notes-live-pane .cad-drawing-border { padding: 0; border: 0; }
.cad-title-block-header {
  padding: 10px 12px;
  background: #303842;
  border-bottom: 1px solid #11161b;
  font-family: "Segoe UI", sans-serif;
}
.cad-tb-proj { color: #e5e9ed; font-size: 11px; }
.cad-tb-sheet,
.cad-tb-scale { color: #9ca6b0; font-size: 9px; }
.cad-notes-scroll-container { padding: 6px 4px 30px 0; }
.cad-notes-container { gap: 0; font-family: Consolas, monospace; font-size: 11px; }
.cad-note-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  line-height: 1.55;
}
.cad-note-item:hover { background: #2d3640; }
.cad-note-item.active-note { background: #313d47; border-left-color: #00c6d7; box-shadow: none; }
.cad-note-tag { color: #49c6d7; font-size: 10px; }
.cad-note-text {
  color: #e1e6eb;
  font-size: var(--story-font-size, 12pt);
  line-height: var(--story-line-height, 1.65);
  letter-spacing: var(--story-letter-spacing, 0.15px);
}
.cad-command-line { height: 45px; min-height: 45px; padding: 3px 10px; background: #20272e; }
.cad-status-strip {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  padding: 0 8px;
  background: #1b5a80;
  color: #dbefff;
  font-size: 9px;
}
.cad-status-strip span { padding: 3px 6px; }
.cad-status-strip span.active { background: #2876a3; color: #fff; }
.cad-status-strip .cad-coordinates { margin-left: auto; font-family: Consolas, monospace; }

/* LinkedIn Navigation & Post Controls */
.linkedin-nav-right { gap: 6px; }
.ln-profile-item, .ln-apps-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #666;
  cursor: pointer;
  padding: 0 6px;
  user-select: none;
}
.ln-avatar-nav {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a66c2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}
.ln-profile-item:hover, .ln-apps-item:hover { color: #000; }
.ln-btn, .linkedin-nav-btn {
  background: #edf3f8;
  color: #0a66c2;
  border: 1px solid #0a66c2;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.ln-btn:hover, .linkedin-nav-btn:hover { background: #d0e4f7; }
.linkedin-post-card.active-post { border-color: #d6d6d6; box-shadow: inset 3px 0 #0a66c2; }
.ln-paragraph-seq { display: none; }
.ln-post-paragraph { padding: 7px 0; border: 0; background: transparent; }
.ln-post-paragraph.active-paragraph { background: #eef6fc; box-shadow: inset 2px 0 #0a66c2; }



/* Left Column Layout with Updates & Guide */
.portal-col-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* New Updates (Changelog) Box */
.portal-card-updates {
  background: var(--portal-card-bg);
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  padding: 18px 18px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.portal-badge-new {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #86efac;
  letter-spacing: 0.2px;
}

.portal-updates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 6px;
}

.portal-updates-list::-webkit-scrollbar {
  width: 5px;
}
.portal-updates-list::-webkit-scrollbar-track {
  background: transparent;
}
.portal-updates-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.portal-updates-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.update-entry {
  background: #f8fafc;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 9px 12px;
  transition: all 0.15s ease;
}
.update-entry:hover {
  background: #f1f5f9;
  border-color: var(--portal-border-hover);
}
.update-entry.current-version {
  background: #f0fdf4;
  border-color: #86efac;
  box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.3);
}

.update-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.update-version-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.update-version-tag .v-num {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--portal-text-primary);
}
.update-version-tag .v-date {
  font-size: 10.5px;
  color: var(--portal-text-secondary);
}

.update-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.update-badge.purple {
  background: #ede9fe;
  color: #6d28d9;
}
.update-badge.blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.update-badge.orange {
  background: #ffedd5;
  color: #c2410c;
}
.update-badge.cyan {
  background: #cffafe;
  color: #0e7490;
}
.update-badge.green {
  background: #dcfce7;
  color: #15803d;
}
.update-badge.gray {
  background: #f1f5f9;
  color: #475569;
}

.update-bullet-list {
  margin: 0;
  padding-left: 15px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #334155;
}
.update-bullet-list li {
  margin-bottom: 3px;
}
.update-bullet-list li:last-child {
  margin-bottom: 0;
}
.update-bullet-list li b {
  color: var(--portal-text-primary);
}

/* Guide scrollable container polish */
.portal-col-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portal-col-guide {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.portal-guide-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.guide-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}



/* Google Form Feedback Section & Header Action Buttons */
.duo-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.duo-btn-auth {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #dadce0;
  border-radius: 9px;
  padding: 7px 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.duo-btn-auth:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(66, 133, 244, 0.12);
  transform: translateY(-1px);
}
.duo-btn-auth.needs-setup {
  border-style: dashed;
  background: #fcfcfc;
}
.duo-btn-auth.signed-in {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
.duo-btn-auth.signed-in:hover {
  background: #f8fafc;
  border-color: var(--portal-skyblue);
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.15);
}
.duo-btn-auth.signed-in.dropdown-open {
  border-color: var(--portal-primary);
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.hybrid-dropdown-chevron {
  color: #64748b;
  margin-left: 2px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.duo-btn-auth.signed-in.dropdown-open .hybrid-dropdown-chevron,
.unav-btn.hybrid-auth-button.signed-in.dropdown-open .hybrid-dropdown-chevron {
  transform: rotate(180deg);
}

.hybrid-google-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.hybrid-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--portal-skyblue) 0%, var(--portal-primary) 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(14, 165, 233, 0.25);
}

.hybrid-user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.hybrid-sync-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Hybrid Cloud Auth Dropdown */
.hybrid-account-dropdown {
  position: fixed;
  z-index: 1000000;
  width: 290px;
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  animation: hybridDropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--portal-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.hybrid-account-dropdown.show {
  display: flex !important;
}

@keyframes hybridDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hybrid-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hybrid-dropdown-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--portal-skyblue) 0%, var(--portal-blue-royal) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.28);
}

.hybrid-dropdown-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.hybrid-dropdown-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.hybrid-dropdown-email {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-top: 2px;
}

.hybrid-dropdown-sync-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hybrid-dropdown-sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hybrid-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.hybrid-sync-status-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #15803d;
}

.hybrid-dropdown-sync-sub {
  font-size: 11px;
  color: #166534;
  line-height: 1.3;
}

.hybrid-dropdown-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid #f1f5f9;
}

.hybrid-dropdown-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.hybrid-dropdown-logout-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12);
}

.hybrid-dropdown-logout-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
}

/* Universal Google Auth Modal */
.google-auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.google-auth-modal-overlay.show {
  display: flex !important;
  opacity: 1 !important;
}

.google-auth-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
  padding: 28px 24px 24px;
  box-sizing: border-box;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
}

.google-auth-modal-overlay.show .google-auth-modal-dialog {
  transform: translateY(0) scale(1);
}

.google-modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.google-modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.google-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.google-modal-icon-badge {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.google-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.google-modal-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.google-quick-section {
  margin-bottom: 16px;
}

.google-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: left;
}

.google-account-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.google-account-quick-card:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.google-quick-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.google-quick-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.google-quick-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-quick-email {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.google-quick-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.google-quick-arrow {
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.google-account-quick-card:hover .google-quick-arrow {
  transform: translateX(3px);
  color: #2563eb;
}

.google-modal-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.google-modal-divider::before,
.google-modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.google-modal-divider span {
  padding: 0 10px;
}

.google-custom-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.google-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.google-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.google-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.google-input-wrapper:focus-within {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.google-input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: #0f172a;
}

.google-input-wrapper input::placeholder {
  color: #94a3b8;
}

.google-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: #1e293b;
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.google-btn-submit:hover {
  background: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}

.google-benefits-card {
  margin-top: 16px;
  padding: 11px 13px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.google-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #475569;
}

.google-benefit-item .benefit-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.duo-btn-feedback-nav {
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--portal-border);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  min-height: 38px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.duo-btn-feedback-nav svg {
  color: var(--portal-primary);
  flex-shrink: 0;
}
.duo-btn-feedback-nav:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.duo-btn-sheet-nav {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  min-height: 38px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}
.duo-btn-sheet-nav svg {
  color: #059669;
  flex-shrink: 0;
}
.duo-btn-sheet-nav:hover {
  background: #d1fae5;
  color: #065f46;
  border-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

/* =========================================================
   Portal Simple & Modern Footer (Full Width & Edge-to-Edge)
   ========================================================= */
.portal-footer {
  width: 100%;
  background: var(--portal-card-bg);
  border-top: 1px solid var(--portal-border);
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  padding: 20px 32px 18px 32px;
  color: var(--portal-text-secondary);
  box-sizing: border-box;
  flex-shrink: 0;
  box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.02);
}

.portal-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-sizing: border-box;
}

.portal-footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.portal-footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
}

.portal-footer-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--portal-primary-light);
  color: var(--portal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.portal-footer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--portal-text-primary);
  line-height: 1.2;
}

.portal-footer-tagline {
  font-size: 12px;
  color: var(--portal-text-secondary);
  line-height: 1.2;
}

.portal-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 5px 11px;
  border-radius: 100px;
  font-weight: 500;
}

.portal-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.portal-footer-link {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.portal-footer-link:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.portal-footer-scroll-top {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--portal-text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.portal-footer-scroll-top:hover {
  background: var(--portal-primary-light);
  color: var(--portal-primary);
  border-color: var(--portal-primary);
  transform: translateY(-1px);
}

.portal-footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 12px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.portal-footer-copy {
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
  max-width: 900px;
}

.duo-feedback-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px dashed var(--portal-border-hover);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.duo-feedback-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.duo-feedback-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.duo-feedback-header h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--portal-text-primary);
}

.duo-feedback-header p {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: var(--portal-text-secondary);
}

.duo-feedback-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.duo-btn-feedback {
  background: #ffffff;
  color: var(--portal-primary);
  border: 1.5px solid var(--portal-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.duo-btn-feedback:hover {
  background: var(--portal-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.duo-btn-progress {
  background: #ecfdf5;
  color: #047857;
  border: 1.5px solid #10b981;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.duo-btn-progress:hover {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.portal-updates-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--portal-border);
  font-size: 11px;
  color: var(--portal-text-secondary);
}

.portal-link-feedback {
  background: none;
  border: none;
  color: var(--portal-primary);
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.portal-link-feedback:hover {
  text-decoration: underline;
  background: var(--portal-primary-light);
}

.portal-link-sheet {
  background: none;
  border: none;
  color: #047857;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.portal-link-sheet:hover {
  text-decoration: underline;
  background: #ecfdf5;
}

.duo-btn-progress-settings {
  background: #188038 !important;
  color: #ffffff !important;
  border: 1px solid #137333 !important;
  transition: all 0.18s ease;
}
.duo-btn-progress-settings:hover {
  background: #137333 !important;
}

/* ==================================================
   THEME: GOOGLE DOCS (GOOGLE TÀI LIỆU)
   ================================================== */
body.theme-googledocs {
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  background-color: #f9fbfd;
  color: #202124;
}

/* --- GOOGLE DOCS TOP BAR --- */
.gdocs-top-bar {
  background-color: #ffffff;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px 14px;
  border-bottom: 1px solid #f1f3f4;
}

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

.gdocs-logo-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.gdocs-title-and-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gdocs-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gdocs-doc-title {
  font-size: 18px;
  color: #1f1f1f;
  font-weight: 400;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.gdocs-doc-title:hover {
  outline: 1px solid #dadce0;
}

.gdocs-doc-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gdocs-icon-btn {
  background: transparent;
  border: none;
  font-size: 15px;
  color: #5f6368;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gdocs-icon-btn:hover {
  background-color: #f1f3f4;
}

.gdocs-cloud-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #5f6368;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.gdocs-cloud-status:hover {
  background-color: #f1f3f4;
}

.gdocs-menu-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: -4px;
}

.gdocs-menu-item {
  background: transparent;
  border: none;
  font-size: 13px;
  color: #202124;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.gdocs-menu-item:hover {
  background-color: #f1f3f4;
}

.gdocs-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gdocs-reading-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gdocs-circle-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444746;
}

.gdocs-circle-btn:hover {
  background-color: #f1f3f4;
}

.gdocs-share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #c2e7ff;
  color: #001d35;
  border: none;
  height: 38px;
  padding: 0 20px 0 16px;
  border-radius: 19px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

.gdocs-share-btn:hover {
  background-color: #b3d7f5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.gdocs-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #1a73e8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* --- GOOGLE DOCS TOOLBAR --- */
.gdocs-toolbar {
  background-color: #edf2fa;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin: 4px 16px 6px 16px;
  border-radius: 20px;
  flex-shrink: 0;
}

.gdocs-tools-group {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gdocs-tools-group::-webkit-scrollbar {
  display: none;
}

.gd-tool-btn {
  background: transparent;
  border: none;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #444746;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s ease;
}

.gd-tool-btn:hover {
  background-color: rgba(68, 71, 70, 0.08);
}

.gd-tool-divider {
  width: 1px;
  height: 18px;
  background-color: #c4c7c5;
  margin: 0 4px;
}

.gd-select {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 12px;
  color: #444746;
  cursor: pointer;
  outline: none;
}

.gd-select:hover {
  background-color: rgba(68, 71, 70, 0.08);
}

.gd-style-select {
  width: 125px;
}

.gd-font-select {
  width: 105px;
}

.gd-size-select {
  width: 52px;
  text-align: center;
}

.gd-font-step-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  color: #444746;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, color 0.15s;
}

.gd-font-step-btn:hover {
  background-color: rgba(68, 71, 70, 0.12);
  color: #1a73e8;
}

.gd-line-height-select {
  width: 125px;
}

.gd-zoom-select {
  width: 68px;
}

/* Reading Controls inside toolbar */
.gdocs-stealth-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gd-stealth-pill-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: #ffffff;
  border: 1px solid #c4c7c5;
  color: #1a73e8;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gd-stealth-pill-btn:hover {
  background-color: #f1f3f4;
  border-color: #1a73e8;
}

.gd-file-name {
  font-size: 11px;
  color: #444746;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gd-page-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #ffffff;
  padding: 2px 6px;
  border-radius: 12px;
  border: 1px solid #dadce0;
}

.gd-mini-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  color: #444746;
}

.gd-mini-btn:hover {
  background-color: #f1f3f4;
}

.gd-page-text {
  font-size: 11px;
  color: #444746;
  font-weight: 500;
  min-width: 38px;
  text-align: center;
}

#gd-input-jump {
  width: 38px;
  height: 20px;
  font-size: 11px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  text-align: center;
  outline: none;
}

/* --- GOOGLE DOCS WORKSPACE --- */
.gdocs-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  background-color: #f9fbfd;
  position: relative;
}

.gdocs-layout-container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Left Document Outline Sidebar */
.gdocs-outline-sidebar {
  width: 240px;
  background-color: #ffffff;
  border-right: 1px solid #e0e2ec;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.gdocs-outline-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #444746;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gdocs-outline-summary-card {
  background-color: #f0f4f9;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 18px;
}

.gdocs-outline-summary-card h5 {
  font-size: 12px;
  font-weight: 600;
  color: #1a73e8;
  margin-bottom: 4px;
}

.gdocs-outline-summary-card p {
  font-size: 11px;
  color: #444746;
  line-height: 1.4;
}

.gdocs-outline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gdocs-outline-item {
  font-size: 12px;
  color: #444746;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gdocs-outline-item:hover {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.gdocs-outline-item.active {
  background-color: #d3e3fd;
  color: #041e49;
  font-weight: 600;
}

.gdocs-outline-item.level-2 {
  padding-left: 20px;
  font-size: 11px;
  color: #747775;
}

/* Center Canvas & Paper Container */
.gdocs-canvas-scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  background-color: #f9fbfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 80px;
}

/* Google Docs Ruler */
.gdocs-ruler-bar {
  width: 816px;
  height: 18px;
  flex-shrink: 0;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  border-bottom: 1px solid #e8eaed;
  margin-top: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  user-select: none;
}

.gdocs-ruler-ticks {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  box-sizing: border-box;
}

.gdocs-ruler-tick {
  font-size: 9px;
  color: #70757a;
  position: relative;
}

.gdocs-ruler-tick::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 1px;
  height: 4px;
  background-color: #dadce0;
}

/* Document Paper Sheet (A4 / US Letter representation) */
.gdocs-page-sheet {
  width: 816px;
  min-height: 1056px;
  height: auto;
  flex-shrink: 0;
  background-color: #ffffff;
  box-shadow: 0 1px 3px 1px rgba(60,64,67,.15), 0 1px 2px 0 rgba(60,64,67,.3);
  padding: 72px 72px 90px 72px;
  box-sizing: border-box;
  margin-top: 14px;
  margin-bottom: 60px;
  color: #202124;
  line-height: 1.65;
  font-size: 11pt;
  position: relative;
}

.gdocs-header-watermark {
  font-size: 9pt;
  color: #70757a;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #e8eaed;
  padding-bottom: 6px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gdocs-doc-heading {
  font-size: 20pt;
  font-weight: 700;
  color: #1f1f1f;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.gdocs-doc-subtitle {
  font-size: 11pt;
  color: #5f6368;
  text-align: center;
  margin-bottom: 24px;
}

.gdocs-doc-divider {
  border: none;
  height: 1px;
  background-color: #dadce0;
  margin: 20px 0 28px 0;
}

/* Story Stream inside Google Docs */
.gdocs-story-stream {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.gdocs-story-paragraph {
  font-family: var(--story-font-family, Arial, sans-serif);
  font-size: var(--story-font-size, 11pt);
  line-height: var(--story-line-height, 1.75);
  letter-spacing: 0.15px;
  color: var(--story-color, #202124);
  text-indent: 28px;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-left 0.15s ease, box-shadow 0.15s ease;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-break: break-word;
}

.gdocs-story-paragraph:hover {
  background-color: #f1f3f4;
}

.gdocs-story-paragraph.active-paragraph {
  background-color: #e8f0fe;
  border-left: 3.5px solid #1a73e8;
  padding-left: 12px;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.08);
}

/* Boss Mode View (Real High-Level Corporate Business Proposal) */
.gdocs-boss-view {
  display: none;
  font-size: 11pt;
  color: #202124;
  line-height: 1.6;
}

.gdocs-boss-view h2 {
  font-size: 15pt;
  color: #1a73e8;
  margin: 24px 0 10px 0;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 4px;
}

.gdocs-boss-view h3 {
  font-size: 12pt;
  color: #202124;
  margin: 16px 0 8px 0;
}

.gdocs-boss-view p {
  margin-bottom: 12px;
  text-align: justify;
}

.gdocs-boss-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px 0;
  font-size: 10.5pt;
}

.gdocs-boss-table th {
  background-color: #f1f3f4;
  border: 1px solid #dadce0;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: #202124;
}

.gdocs-boss-table td {
  border: 1px solid #dadce0;
  padding: 8px 10px;
}

.gdocs-boss-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 9.5pt;
  font-weight: 600;
}

.gdocs-badge-done {
  background-color: #ceead6;
  color: #0d652d;
}

.gdocs-badge-prog {
  background-color: #feefc3;
  color: #b06000;
}

.gdocs-boss-signoff {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px dashed #dadce0;
}

.gdocs-signoff-col {
  text-align: center;
  width: 40%;
}

.gdocs-signoff-title {
  font-weight: 600;
  margin-bottom: 50px;
}

.gdocs-signoff-name {
  font-weight: 700;
  color: #1f1f1f;
}

/* Quick Font Size Controls & Settings Modal Typography */
.font-settings-group {
  background-color: #f8fafd;
  border: 1px solid #e0e2ec;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 10px;
}

.font-settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.font-step-ctrl-btn {
  background-color: #1a73e8;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.font-step-ctrl-btn:hover {
  background-color: #1557b0;
}

.font-step-ctrl-btn:active {
  transform: scale(0.96);
}

.font-size-badge {
  font-weight: 700;
  color: #1a73e8;
  min-width: 45px;
  font-size: 14px;
  text-align: center;
  background-color: #e8f0fe;
  padding: 3px 8px;
  border-radius: 12px;
}

.font-slider {
  width: 160px;
  cursor: pointer;
  accent-color: #1a73e8;
}

.stealth-quick-font-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2px 6px;
  margin-left: 6px;
}

.stealth-font-btn {
  background: transparent;
  border: none;
  color: inherit;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 3px;
}

.stealth-font-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.stealth-font-text {
  font-size: 11px;
  min-width: 26px;
  text-align: center;
  font-weight: 500;
}


/* === Imported from css/zalo.css === */
/* Zalo PC Desktop Theme Styles */

/* Zalo PC Desktop Theme Styles - Pixel-Perfect Replica of Real Zalo PC Windows App */

/* ==========================================================
   THEME 9: ZALO PC WORKSPACE STYLES (AUTHENTIC ZALO WEB REPLICA)
   ========================================================== */
body.theme-zalo {
  background-color: #ebedf0;
  color: #081c36;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
}

#app-page {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #ffffff;
}

.zalo-app-container {
  display: flex;
  width: 100vw;
  height: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background-color: #ffffff;
}

/* TOP SYSTEM DOWNLOAD BANNER */
.system-banner__container {
  width: 100%;
  background-color: #e5f3ff;
  border-bottom: 1px solid #cce5ff;
  font-size: 13px;
  color: #081c36;
  flex-shrink: 0;
  z-index: 100;
}
.system-banner__item__wrapper {
  padding: 6px 16px;
}
.z-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.z-banner__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.z-banner__info__content {
  font-size: 13px;
  color: #081c36;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.z-banner__action.--link {
  background: transparent;
  border: none;
  color: #0068ff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.z-banner__close {
  cursor: pointer;
  color: #72808e;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  user-select: none;
}
.z-banner__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* MAIN WEB CONTAINER */
#container.WEB {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 1. LEFT NAV RAIL (ZALO ICONIC DEEP BLUE #0068FF) */
#sidebarNav,
.zalo-nav-rail {
  width: 64px;
  background: #0068ff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 25;
}
.nav__tabs {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 14px;
  box-sizing: border-box;
}
.nav__tabs__zalo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}
.zavatar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.zavatar {
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zavatar-m {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.zavatar-l {
  width: 48px;
  height: 48px;
}
.a-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar-emoji-status {
  position: absolute;
}
.nav__tabs__top,
.nav__tabs__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  width: 100%;
}
.leftbar-tab,
.zalo-rail-btn {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.82;
  transition: all 0.12s ease;
  padding: 4px 0;
  box-sizing: border-box;
  position: relative;
}
.leftbar-tab:hover,
.zalo-rail-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}
.leftbar-tab.selected,
.zalo-rail-btn.active {
  background: #0052cc;
  opacity: 1;
}
.mmi-icon-wr {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-tab-title {
  font-size: 10px;
  line-height: 12px;
  margin-top: 3px;
  text-align: center;
  max-width: 52px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zalo-badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  height: 15px;
  min-width: 15px;
  border-radius: 8px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0068ff;
}

/* 2. CONVERSATION LIST COLUMN (WIDTH 344PX - AUTHENTIC ZALO WEB) */
.zalo-chat-list-pane {
  width: 344px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
}
.zalo-search-bar-row {
  padding: 10px 14px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.zalo-search-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eaedf0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: #64748b;
}
.zalo-search-input-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: #0f172a;
}
.zalo-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  background: transparent;
  border: none;
}
.zalo-icon-btn:hover {
  background: #f1f5f9;
  color: #0068ff;
}

/* FILTER TABS: ƯU TIÊN | KHÁC | PHÂN LOẠI ▾ */
.msg-filters-bar {
  border-bottom: 1px solid #f1f3f6;
  font-size: 13px;
}
.tab-main {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 38px;
}
.tab-item {
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #64748b;
  position: relative;
  font-weight: 500;
  font-size: 13px;
}
.tab-item.selected {
  color: #0068ff;
  font-weight: 600;
}
.tab-item.selected::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #0068ff;
}
.filter-preview-v2 {
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.zalo-icon-btn-small {
  cursor: pointer;
  color: #64748b;
  font-weight: bold;
  padding: 0 4px;
}

/* CONVERSATION SCROLL LIST */
.zalo-conversations-scroll {
  flex: 1;
  overflow-y: auto;
}
.zalo-conv-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
  border-bottom: 1px solid #f8fafc;
}
.zalo-conv-item:hover {
  background: #f8fafc;
}
.zalo-conv-item.active {
  background: #e5efff;
}
.zalo-conv-item.pinned {
  background: #fafbfc;
}
.zalo-conv-item.pinned:hover {
  background: #f1f5f9;
}
.zalo-conv-avatar-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
}
.zalo-conv-avatar-box.stranger-bg {
  background: #cbd5e1;
  font-size: 20px;
}
.zalo-conv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.zalo-conv-info {
  flex: 1;
  min-width: 0;
}
.zalo-conv-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.zalo-conv-name {
  font-weight: 600;
  font-size: 14px;
  color: #081c36;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zalo-conv-time {
  font-size: 11px;
  color: #72808e;
  flex-shrink: 0;
}
.zalo-conv-preview {
  font-size: 13px;
  color: #72808e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zalo-pin-icon,
.zalo-mute-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #72808e !important;
  fill: #72808e !important;
  margin-left: 4px;
  flex-shrink: 0;
}
.zalo-pin-icon svg,
.zalo-mute-icon svg {
  fill: #72808e !important;
  color: #72808e !important;
}

/* 3. MAIN CHAT PANE WORKSPACE */
.zalo-chat-main-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #eaedf0;
  min-width: 0;
  position: relative;
  height: 100%;
}

/* CHAT HEADER */
.zalo-chat-header {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
}
.zalo-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.zalo-toggle-sidebar-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 2px;
  padding: 0;
}
.zalo-toggle-sidebar-btn:hover {
  background: #f1f5f9;
  color: #0068ff;
}
.zalo-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.zalo-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.zalo-header-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.zalo-header-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.zalo-header-title {
  font-weight: 700;
  font-size: 16px;
  color: #081c36;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  outline: none;
  min-width: 0;
  flex-shrink: 1;
}
.zalo-header-tag {
  font-size: 11px;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
  margin-left: 4px;
  flex-shrink: 0;
}
.zalo-header-sub {
  font-size: 12px;
  color: #72808e;
  margin-top: 2px;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0;
  max-width: 100%;
}
.zalo-header-sub span,
.zalo-header-sub * {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: inline;
}
.zalo-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.zalo-top-action-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.zalo-top-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5b6b79;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.15s ease;
}
.zalo-top-action-btn:hover {
  background: #f1f5f9;
  color: #081c36;
}
.zalo-top-action-btn.active {
  color: #5b6b79;
  background: rgba(0, 0, 0, 0.05);
}

/* WINDOW CONTROLS */
.zalo-win-ctrls {
  display: flex;
  align-items: center;
  margin-left: 8px;
  border-left: 1px solid #e2e8f0;
  padding-left: 8px;
  gap: 2px;
}
.zalo-win-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.zalo-win-btn:hover {
  background: #f1f5f9;
  color: #081c36;
}
.zalo-win-btn.zalo-win-close:hover {
  background: #ef4444;
  color: #ffffff;
}

/* PINNED MESSAGE BANNER */
.zalo-pinned-banner {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #334155;
  z-index: 5;
  flex-shrink: 0;
}
.zalo-pinned-content {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  min-width: 0;
  flex: 1;
}
#zalo-pinned-msg-text {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0;
  max-width: 100%;
  display: inline-block;
}
.zalo-pinned-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
}
.zalo-pinned-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.zalo-pinned-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: #475569;
  cursor: pointer;
}

/* CHAT MESSAGES SCROLL FEED */
.zalo-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zalo-date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
}
.zalo-date-divider span {
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 14px;
  border-radius: 12px;
  font-weight: 500;
}

/* INCOMING MESSAGE (WHITE BUBBLE) */
.zalo-msg-row-incoming {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 780px;
  align-self: flex-start;
}
.zalo-msg-avatar-in {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.zalo-msg-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.zavatar-key-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 11px;
  background: #ffffff;
  border-radius: 50%;
  line-height: 1;
  padding: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.zalo-msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 680px;
}
.zalo-msg-sender {
  font-size: 12px;
  font-weight: 600;
  color: #72808e;
  margin-bottom: 3px;
}
.zalo-msg-bubble-in {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 2px 14px 14px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  position: relative;
}
.zalo-quote-box {
  background: #f1f5f9;
  border-left: 3px solid #0068ff;
  border-radius: 4px;
  padding: 4px 8px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  font-size: 11px;
}
.zalo-quote-author {
  font-weight: 600;
  color: #0068ff;
  margin-bottom: 2px;
}
.zalo-quote-text {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zalo-mention {
  color: #0068ff;
  font-weight: 600;
}
.zalo-msg-content-text {
  font-size: 13px;
  color: #081c36;
  line-height: 1.5;
}
.zalo-msg-time-row {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  text-align: right;
}

/* OUTGOING MESSAGE (LIGHT BLUE BUBBLE) */
.zalo-msg-row-outgoing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 780px;
  align-self: flex-end;
}
.zalo-msg-bubble-out {
  background: #e5efff;
  padding: 10px 14px;
  border-radius: 14px 2px 14px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #c7ddff;
  position: relative;
  color: #081c36;
}
.zalo-msg-meta-out {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #64748b;
  margin-top: 3px;
}
.zalo-msg-status-check {
  color: #0068ff;
  font-size: 11px;
}

/* NOVEL STORY STREAM MESSAGE ITEM */
.zalo-msg-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 820px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.zalo-msg-item:empty {
  display: none !important;
}
.zalo-msg-item:hover .zalo-msg-bubble {
  border-color: #0068ff;
  box-shadow: 0 2px 8px rgba(0, 104, 255, 0.15);
}
.zalo-msg-item.active-msg .zalo-msg-bubble {
  border-left: 3.5px solid #0068ff;
  background: #f0f7ff;
}
.zalo-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.zalo-msg-content-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: calc(100% - 46px);
}
.zalo-msg-sender-name {
  font-size: 12px;
  font-weight: 600;
  color: #72808e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.zalo-msg-time {
  font-size: 10px;
  color: #94a3b8;
  font-weight: normal;
}
.zalo-msg-bubble {
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 2px 14px 14px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.12s ease;
  position: relative;
}
.zalo-msg-text {
  font-size: var(--story-font-size, 11pt);
  line-height: var(--story-line-height, 1.75);
  font-family: var(--story-font-family, inherit);
  letter-spacing: var(--story-letter-spacing, 0.15px);
  color: #081c36;
  word-break: break-word;
  user-select: text;
}
.zalo-msg-meta-tag {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
}

/* CHAT INPUT BAR */
.zalo-chat-input-area {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 8px 16px 10px;
  flex-shrink: 0;
}
.zalo-input-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5b6b79;
  padding-bottom: 6px;
}
.zalo-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: #5b6b79;
  cursor: pointer;
  transition: all 0.15s ease;
}
.zalo-tool-icon:hover {
  background: #f1f5f9;
  color: #081c36;
}
.zalo-tool-icon svg {
  display: block;
}
.zalo-textarea-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.zalo-chat-input {
  flex: 1;
  height: 28px;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
}
.zalo-right-input-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
}

/* 4. RIGHT SIDEBAR: "THÔNG TIN NHÓM" (ISSUE WMS) */
.zalo-info-sidebar {
  width: 280px;
  background: #ffffff;
  border-left: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  height: 100%;
}
.zalo-sidebar-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-weight: 700;
  font-size: 15px;
  color: #081c36;
  border-bottom: 1px solid #f1f3f6;
  flex-shrink: 0;
}
.zalo-group-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-bottom: 8px solid #f4f5f7;
}
.zalo-group-big-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}
.zalo-group-name-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 14px;
}

/* 4 ACTION BUTTONS: TẮT THÔNG BÁO | GHIM | THÊM TV | QUẢN LÝ */
.zalo-quick-action-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  text-align: center;
}
.zalo-quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #475569;
  cursor: pointer;
}
.zalo-action-icon-circle {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.zalo-action-icon-circle:hover {
  background: #e2e8f0;
}

/* SECTIONS: THÀNH VIÊN NHÓM | BẢNG TIN NHÓM | ẢNH/VIDEO | FILE */
.zalo-sidebar-section {
  padding: 12px 14px;
  border-bottom: 8px solid #f4f5f7;
}
.zalo-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  cursor: pointer;
}
.zalo-section-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
}
.zalo-section-sub-item:hover {
  color: #0068ff;
}

/* MEDIA GRID */
.zalo-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.zalo-media-thumb {
  aspect-ratio: 1/1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  overflow: hidden;
  cursor: pointer;
}
.zalo-see-all-btn {
  width: 100%;
  padding: 6px;
  background: #f1f5f9;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

/* FILE ROWS */
.zalo-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 11px;
}
.zalo-file-badge-green {
  width: 26px;
  height: 26px;
  background: #16a34a;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
}
.zalo-file-badge-yellow {
  width: 26px;
  height: 26px;
  background: #eab308;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
}

/* BOSS MODE VIEW (TECHNICAL INCIDENT REPORT) */
.zalo-boss-view {
  flex: 1;
  background: #ffffff;
  padding: 40px 60px;
  overflow-y: auto;
}
.zalo-boss-header {
  border-bottom: 2px solid #0068ff;
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.zalo-boss-header h2 {
  font-size: 20px;
  color: #0068ff;
  margin-bottom: 6px;
}
.zalo-boss-body {
  font-size: 13px;
  line-height: 1.8;
  color: #334155;
}

/* RESPONSIVE & OVERLAY STYLES FOR ZALO PC THEME */
.zalo-sidebar-close-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.zalo-sidebar-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.zalo-btn-close-pane {
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.zalo-btn-close-pane:hover {
  background: #f1f5f9;
  color: #081c36;
}
#container.zalo-convs-collapsed .zalo-chat-list-pane {
  display: none !important;
}
#container.zalo-convs-collapsed .zalo-toggle-sidebar-btn {
  display: inline-flex !important;
}
.zalo-pane-backdrop {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 45;
}
#container.zalo-convs-open .zalo-pane-backdrop,
#container.zalo-info-open .zalo-pane-backdrop {
  display: block;
}
#container.zalo-info-collapsed .zalo-info-sidebar {
  display: none !important;
}

@media (max-width: 1100px) {
  .zalo-info-sidebar {
    display: none;
  }
  #container.zalo-info-open .zalo-info-sidebar {
    display: flex !important;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    z-index: 50;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    background: #ffffff;
  }
  #zalo-close-info-btn {
    display: inline-flex !important;
  }
  .zalo-sidebar-header {
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
  }
}

@media (max-width: 850px) {
  .zalo-chat-list-pane {
    display: none;
  }
  #container.zalo-convs-open .zalo-chat-list-pane {
    display: flex !important;
    position: absolute;
    top: 0;
    left: 64px;
    bottom: 0;
    width: 320px;
    max-width: calc(100% - 64px);
    z-index: 50;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    background: #ffffff;
  }
  .zalo-toggle-sidebar-btn {
    display: inline-flex !important;
  }
  #zalo-close-convs-btn {
    display: inline-flex !important;
  }
  .zalo-hide-sm {
    display: none !important;
  }
  .zalo-chat-header {
    padding: 0 10px;
  }
  .zalo-messages-scroll {
    padding: 12px 14px;
  }
}

@media (max-width: 520px) {
  #sidebarNav,
  .zalo-nav-rail {
    width: 52px;
  }
  .zavatar-m {
    width: 36px;
    height: 36px;
  }
  .leftbar-tab,
  .zalo-rail-btn {
    height: 44px;
    padding: 2px 0;
  }
  .lb-tab-title {
    display: none;
  }
  #container.zalo-convs-open .zalo-chat-list-pane {
    left: 52px;
    max-width: calc(100% - 52px);
  }
  .zalo-win-ctrls {
    display: none !important;
  }
  .zalo-header-tag {
    display: none !important;
  }
  .zalo-header-avatar {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .zalo-header-title {
    font-size: 14px;
  }
  .zalo-header-sub {
    font-size: 11px;
  }
  .zalo-chat-header {
    padding: 0 8px;
    height: 56px;
  }
  .zalo-pinned-banner {
    padding: 5px 8px;
  }
  .zalo-messages-scroll {
    padding: 8px 8px;
    gap: 10px;
  }
  .zalo-chat-input-area {
    padding: 6px 8px 8px;
  }
  .zalo-input-toolbar {
    gap: 10px;
  }
}

/* ==========================================================
   THEME 10: FIGMA WORKSPACE STYLES
/* ==========================================================
   THEME 10: FIGMA WORKSPACE STYLES (Light Mode Figma UI3 Replica)
   ========================================================== */
body.theme-figma {
  background-color: #f5f5f5;
  color: #1e1e1e;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.figma-app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100%; min-height: 0; flex: 1;
  overflow: hidden;
  background-color: #f5f5f5;
  position: relative;
}

/* 1. Figma Top Navigation Bar */
.figma-top-bar {
  height: 48px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  z-index: 30;
}

.figma-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.figma-logo-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.figma-logo-btn:hover { background: #f0f0f0; }
.figma-logo-svg { width: 17px; height: 26px; }

.figma-file-title-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1e1e1e;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.figma-file-title-group:hover { background: #f0f0f0; }

#figma-doc-title {
  color: #1e1e1e;
  font-weight: 700;
  cursor: text;
  outline: none;
}
.figma-title-caret { font-size: 11px; color: #6e6e6e; }

.figma-icon-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.figma-icon-action-btn:hover { background: #f0f0f0; color: #000; }

.figma-top-center {
  display: flex;
  align-items: center;
}

.figma-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.figma-user-avatar {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.figma-user-avatar span:first-child {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f43f5e;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-caret { font-size: 10px; color: #6e6e6e; }

.figma-share-btn {
  background: #0d99ff;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  box-shadow: 0 1px 3px rgba(13, 153, 255, 0.25);
}
.figma-share-btn:hover { background: #0b87e3; }

.figma-zoom-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.figma-zoom-pill:hover { background: #f0f0f0; }
.zoom-caret { font-size: 10px; color: #6e6e6e; }

/* Stealth Reading Controls in Figma Header */
.figma-stealth-ctrls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.figma-pill-btn {
  background: #0d99ff;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
}
.figma-pill-btn:hover { background: #0b87e3; }
.figma-page-ctrl {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #4b5563;
}
.figma-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #1f2937;
  cursor: pointer;
  font-weight: 500;
}
.figma-btn:hover { background: #e5e7eb; }
.figma-font-ctrl {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1px 6px;
}
.figma-font-ctrl button {
  background: transparent;
  border: none;
  font-weight: bold;
  color: #0d99ff;
  cursor: pointer;
  padding: 1px 4px;
}
.figma-font-ctrl span {
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
  min-width: 26px;
  text-align: center;
}

/* 2. Figma Main Workspace Layout (Three-column layout) */
.figma-workspace-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Left Pages & Layers Panel */
.figma-left-panel {
  width: 240px;
  background: #ffffff;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 12px;
  color: #333333;
  user-select: none;
}
.figma-pages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 4px;
}
.figma-panel-title {
  font-size: 11px;
  font-weight: 700;
  color: #1e1e1e;
}
.figma-panel-mini-btn {
  background: transparent;
  border: none;
  color: #6e6e6e;
  cursor: pointer;
  border-radius: 4px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.figma-panel-mini-btn:hover { background: #f0f0f0; }

.figma-pages-list {
  padding: 4px 8px;
}
.figma-page-row {
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}
.figma-page-row.active {
  background: #f0f0f0;
  font-weight: 700;
  color: #000;
}

.figma-panel-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 4px 0 8px;
}

.figma-layers-header {
  padding: 4px 14px 6px;
}
.figma-layers-tree {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.figma-layer-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  color: #333333;
  transition: background 0.1s;
}
.figma-layer-node:hover { background: #f5f5f5; }
.figma-layer-node.active {
  background: #e5f2ff;
  color: #0d99ff;
  font-weight: 600;
}
.figma-layer-node.comp-node {
  color: #7b61ff;
  font-weight: 500;
}
.figma-node-icon {
  font-size: 12px;
  width: 14px;
  text-align: center;
  color: #6e6e6e;
  flex-shrink: 0;
}
.figma-layer-node.comp-node .figma-node-icon { color: #7b61ff; }

/* Center Infinite Canvas Viewport */
.figma-canvas-viewport {
  flex: 1;
  background-color: #f5f5f5;
  background-image: radial-gradient(#d4d4d4 1px, transparent 1px);
  background-size: 20px 20px;
  overflow-y: auto;
  overflow-x: auto;
  padding: 40px 60px 140px;
  position: relative;
}

#figma-story-view {
  width: 100%;
}

.figma-canvas-board-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  min-width: max-content;
}

/* Travel Web Frame: Trang chủ */
.figma-design-frame-wrapper {
  display: flex;
  flex-direction: column;
}
.figma-canvas-frame-label {
  font-size: 11px;
  font-weight: 600;
  color: #8c8c8c;
  margin-bottom: 8px;
  font-family: Inter, sans-serif;
}
.figma-travel-artboard {
  width: 680px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.btn-top-info-bar {
  background: #03428e;
  color: #e2e8f0;
  font-size: 9px;
  padding: 4px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-info-left {
  display: flex;
  gap: 12px;
}
.btn-main-nav-bar {
  background: #ffffff;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}
.btn-logo-area {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-logo-badge {
  background: #03428e;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 3px;
}
.btn-logo-sub {
  font-size: 10px;
  font-weight: 700;
  color: #03428e;
}
.btn-nav-links {
  display: flex;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
}
.btn-nav-links a {
  color: #334155;
  text-decoration: none;
}
.btn-nav-links a.active {
  color: #03428e;
}

.btn-hero-banner {
  height: 180px;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.55)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="680" height="180" viewBox="0 0 680 180"><defs><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="%231e3a8a"/><stop offset="100%" stop-color="%23065f46"/></linearGradient></defs><rect width="680" height="180" fill="url(%23g)"/><path d="M0 120 Q120 70 240 130 T480 110 T680 135 L680 180 L0 180 Z" fill="%23047857" opacity="0.6"/><path d="M40 180 L140 80 L220 180 Z" fill="%23064e3b"/><path d="M180 180 L280 95 L360 180 Z" fill="%23065f46"/><path d="M420 180 L520 70 L640 180 Z" fill="%23047857"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.btn-hero-overlay {
  width: 92%;
  text-align: center;
  color: #ffffff;
}
.btn-hero-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.btn-search-widget {
  background: rgba(255,255,255,0.95);
  border-radius: 6px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 8px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #1e293b;
}
.btn-search-field label {
  font-size: 8px;
  color: #64748b;
  font-weight: 600;
  display: block;
}
.btn-field-input {
  font-size: 9px;
  font-weight: 600;
  color: #0f172a;
  padding: 2px 0;
}
.btn-range {
  width: 100%;
  height: 3px;
  accent-color: #03428e;
}
.btn-search-submit {
  background: #ea580c;
  color: #fff;
  border: none;
  font-size: 9px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-tours-section {
  padding: 14px;
  background: #ffffff;
}
.btn-section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}
.btn-section-title {
  font-size: 12px;
  font-weight: 800;
  color: #03428e;
  margin: 0;
  border-left: 3px solid #ea580c;
  padding-left: 6px;
}
.btn-section-subtitle {
  font-size: 9px;
  color: #64748b;
  margin: 2px 0 0 9px;
}
.btn-filter-pills {
  display: flex;
  gap: 4px;
}
.btn-pill-filter {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
}
.btn-pill-filter.active {
  background: #ea580c;
  color: #fff;
  border-color: #ea580c;
}
.btn-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.btn-tour-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.btn-card-img-box {
  height: 70px;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 4px;
}
.img-mocchau { background: linear-gradient(135deg, #0d9488, #1e3a8a); }
.img-halong { background: linear-gradient(135deg, #0284c7, #065f46); }
.img-sapa { background: linear-gradient(135deg, #ea580c, #7c3aed); }
.img-danang { background: linear-gradient(135deg, #f59e0b, #0369a1); }
.btn-date-badge {
  background: rgba(15,23,42,0.85);
  color: #ffffff;
  font-size: 7px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  display: inline-block;
}
.btn-card-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.btn-tour-location { font-size: 8px; color: #64748b; font-weight: 600; }
.btn-tour-name {
  font-size: 8px;
  font-weight: 700;
  color: #0f172a;
  margin: 3px 0;
  line-height: 1.3;
  height: 22px;
  overflow: hidden;
}
.btn-tour-meta { font-size: 7px; color: #94a3b8; margin-bottom: 4px; }
.btn-tour-price { font-size: 10px; font-weight: 800; color: #ea580c; margin-top: auto; }
.btn-card-cta {
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #03428e;
  color: #03428e;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 0;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
}

/* Component 45 Card Wrapper */
.figma-component-wrapper {
  display: flex;
  flex-direction: column;
}
.figma-comp-label {
  font-size: 11px;
  font-weight: 700;
  color: #7b61ff;
  margin-bottom: 6px;
  font-family: Inter, sans-serif;
}
.comp-card {
  width: 160px;
}

/* Story Reading Frame inside Figma */
.figma-artboard-frame {
  width: 760px;
  min-height: calc(100vh - 160px);
  height: auto;
  flex-shrink: 0;
  background: #ffffff;
  color: #111e2e;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 36px 42px 80px;
  position: relative;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}
.figma-frame-header-tag {
  position: absolute;
  top: -24px;
  left: 0;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #8c8c8c;
  display: flex;
  align-items: center;
  gap: 6px;
}
.figma-auto-layout-badge {
  background: #f0f0f0;
  color: #0d99ff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}
.figma-frame-title-block {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.figma-frame-title-block h2 {
  font-size: 17px;
  color: #0f172a;
  margin: 0 0 4px 0;
  font-weight: 800;
}
.figma-spec-meta { font-size: 11px; color: #64748b; font-family: monospace; }

/* Story stream inside Figma frame */
.figma-story-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.figma-layer-item {
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
}
.figma-layer-item:hover { background: #f8fafc; }
.figma-layer-item.active-layer {
  background: #f0f7ff;
  border-left-color: #0d99ff;
  box-shadow: 0 0 0 1px #0d99ff;
}
.figma-layer-meta {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}
.figma-meta-name {
  font-size: 10px;
  color: #0d99ff;
  font-weight: 600;
  font-family: monospace;
}
.figma-meta-spec {
  font-size: 10px;
  color: #94a3b8;
  font-family: monospace;
  margin-left: 8px;
}
.figma-text-layer {
  font-size: var(--story-font-size, 11pt);
  line-height: var(--story-line-height, 1.75);
  letter-spacing: var(--story-letter-spacing, 0.15px);
  color: #1e293b;
  user-select: text;
}

/* Right Comments & Properties Panel */
.figma-right-panel {
  width: 240px;
  background: #ffffff;
  border-left: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-size: 11px;
  color: #1e1e1e;
}
.figma-inspect-tabs {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
}
.figma-inspect-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  color: #6e6e6e;
  border-bottom: 2px solid transparent;
}
.figma-inspect-tab.active {
  color: #000000;
  border-bottom-color: #000000;
}

.figma-search-box {
  margin: 10px 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.figma-search-box input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 11px;
  flex: 1;
  color: #1e1e1e;
}
.search-filter-icon, .search-more-icon {
  font-size: 11px;
  color: #8c8c8c;
  cursor: pointer;
}

.figma-empty-comments {
  padding: 24px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.figma-comment-bubble-icon {
  font-size: 20px;
  color: #6e6e6e;
  margin-bottom: 4px;
}
.figma-comment-hint {
  font-size: 11px;
  color: #6e6e6e;
  line-height: 1.5;
  margin: 0;
}

.figma-inspect-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.figma-inspect-section h6 {
  font-size: 10px;
  font-weight: 700;
  color: #8c8c8c;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}
.figma-dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 10px;
  color: #4b5563;
}

/* 3. Floating Bottom Toolbar (Figma UI3 Replica) */
.figma-floating-toolbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.06);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.figma-tool-pill-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.figma-tool-pill-btn:hover { background: #f0f0f0; }
.figma-tool-pill-btn.active {
  background: #0d99ff;
  color: #ffffff;
}

.figma-ask-edit-btn {
  background: #0d99ff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(13, 153, 255, 0.3);
  transition: background 0.15s ease;
}
.figma-ask-edit-btn:hover { background: #0b87e3; }

.figma-tb-divider {
  width: 1px;
  height: 20px;
  background: #e5e5e5;
  margin: 0 4px;
}

/* 4. Bottom Right Help Question Mark */
.figma-help-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  z-index: 50;
  transition: all 0.15s ease;
}
.figma-help-btn:hover {
  background: #f0f0f0;
  color: #000;
}


/* === Imported from css/canva.css === */
/* Canva Online Design Tool Theme Styles */

/* Canva Online Design Tool Theme Styles - Pixel-Perfect Real Canva Replica */

/* ==========================================================
   THEME 11: CANVA WORKSPACE STYLES
   ========================================================== */
body.theme-canva {
  background-color: #ebedf0;
  color: #0e1318;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.canva-app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100%; min-height: 0; flex: 1;
  overflow: hidden;
  background-color: #ebedf0;
}

/* 1. Canva Top Header Bar */
.canva-top-bar {
  height: 48px;
  background: #ffffff;
  border-bottom: 1px solid #e1e4ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #0e1318;
  flex-shrink: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.canva-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.canva-logo-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}
.canva-logo-svg {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.canva-nav-item {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.1s;
}
.canva-nav-item:hover { background: #f1f5f9; }
.canva-crown-badge {
  background: #ffd700;
  color: #854d0e;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: bold;
}

.canva-top-center {
  display: flex;
  align-items: center;
  gap: 8px;
}
#canva-doc-title {
  color: #0e1318;
  font-weight: 600;
  font-size: 13px;
  cursor: text;
  padding: 3px 8px;
  border-radius: 4px;
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#canva-doc-title:hover { background: #f1f5f9; }
.canva-saved-icon { font-size: 12px; color: #64748b; }

.canva-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stealth Reading Controls in Canva Header */
.canva-stealth-ctrls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.canva-pill-btn {
  background: #f1f5f9;
  color: #0f172a;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
}
.canva-pill-btn:hover { background: #e2e8f0; }
.canva-page-ctrl {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #334155;
}
.canva-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #334155;
  cursor: pointer;
}
.canva-btn:hover { background: #f8fafc; }
.canva-font-ctrl {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 1px 6px;
}
.canva-font-ctrl button {
  background: transparent;
  border: none;
  font-weight: bold;
  color: #7d2ae8;
  cursor: pointer;
  padding: 1px 4px;
}
.canva-font-ctrl span {
  font-size: 11px;
  font-weight: 600;
  color: #0e1318;
  min-width: 28px;
  text-align: center;
}

/* Canva Collaborator Avatars (Authentic) */
.canva-collaborator-avatars {
  display: flex;
  align-items: center;
  margin-right: 6px;
}
.canva-collab-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  margin-left: -8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.canva-collab-avatar:first-child {
  margin-left: 0;
}
.canva-add-collab-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  color: #475569;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.canva-add-collab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Canva Present Button */
.canva-present-btn {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.12s ease;
}
.canva-present-btn:hover {
  background: #e2e8f0;
}

.canva-share-btn {
  background: linear-gradient(135deg, #7d2ae8 0%, #00c4cc 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(125,42,232,0.3);
}

/* Floating Canva Contextual Toolbar (Authentic 2024 Slide Editor) */
/* Canva Screenshot 1 Specific Styles */
.canva-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
}
.canva-icon-link-btn {
  background: transparent;
  border: none;
  color: #475569;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.canva-icon-link-btn:hover {
  background: #f1f5f9;
}
.canva-share-outline-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s;
}
.canva-share-outline-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.canva-submit-teacher-btn {
  background: #7d2ae8;
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(125,42,232,0.3);
  transition: all 0.12s;
}
.canva-submit-teacher-btn:hover {
  background: #6c20d1;
}

/* Floating Canva Contextual Toolbar (100% Matching Screenshot 1) */
.canva-contextual-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  width: fit-content;
  box-sizing: border-box;
  user-select: none;
  z-index: 15;
}
.canva-ctx-btn-pill {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.1s;
}
.canva-ctx-btn-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.canva-ctx-icon-btn {
  background: transparent;
  border: none;
  color: #475569;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: background 0.1s;
}
.canva-ctx-icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.canva-ctx-divider {
  width: 1px;
  height: 16px;
  background: #e2e8f0;
}

/* Research Background Slide Theme (Matching Screenshot 1) */
.canva-research-slide {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
  border: 1px solid #e2e8f0;
}
.canva-bg-decor-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 200px;
  pointer-events: none;
}
.canva-bg-decor-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 240px;
  height: 220px;
  pointer-events: none;
}
.canva-bg-decor-tr {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 220px;
  height: 140px;
  pointer-events: none;
}
.canva-bg-decor-bl {
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 220px;
  height: 140px;
  pointer-events: none;
}

.canva-research-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.5px;
  margin: 0;
  user-select: text;
}
.canva-research-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
  position: relative;
  z-index: 5;
}
.canva-card-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 24px 18px;
  position: relative;
  box-shadow: 0 2px 6px rgba(186, 230, 253, 0.2);
}
.canva-card-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
}
.canva-card-bracket.tl {
  top: -4px;
  left: -4px;
  border-top: 2px solid #38bdf8;
  border-left: 2px solid #38bdf8;
}
.canva-card-bracket.br {
  bottom: -4px;
  right: -4px;
  border-bottom: 2px solid #38bdf8;
  border-right: 2px solid #38bdf8;
}
.canva-card-inner-text {
  font-size: 11.5px;
  line-height: 1.65;
  color: #1e293b;
  text-align: center;
}

/* Filmstrip Thumbnails (Screenshot 1) */
.canva-film-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  min-width: 65px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  font-size: 9px;
  gap: 2px;
  transition: all 0.12s;
}
.canva-film-thumb:hover {
  border-color: #7d2ae8;
}
.canva-film-thumb.active {
  border: 2px solid #7d2ae8;
  box-shadow: 0 0 6px rgba(125,42,232,0.3);
}
.canva-film-thumb-num {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
}
.canva-film-thumb-lbl {
  font-size: 7.5px;
  color: #475569;
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.canva-film-arrow-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  margin-left: 4px;
}

/* 2. Canva Workspace Layout (Dark Rail | Template Drawer | Canvas Viewport) */
.canva-workspace-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Leftmost Dark Icon Rail (Matching Image 2) */
.canva-dark-rail {
  width: 72px;
  background: #18191b;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 4px;
  flex-shrink: 0;
  z-index: 20;
}
.canva-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 56px;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  text-decoration: none;
}
.canva-rail-item:hover {
  background: #27292d;
  color: #ffffff;
}
.canva-rail-item.active {
  background: #27292d;
  color: #38bdf8;
  font-weight: 600;
}
.canva-rail-item.active::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: #38bdf8;
  border-radius: 3px;
}
.canva-rail-icon {
  font-size: 18px;
  margin-bottom: 2px;
}
.canva-rail-label {
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}
.canva-badge-new {
  position: absolute;
  top: 4px;
  right: 6px;
  background: #8b5cf6;
  color: #ffffff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
}

/* Left Flyout Drawer (Slide Templates - Matching Image 2) */
.canva-template-drawer {
  width: 350px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 15;
}
.canva-drawer-top {
  padding: 12px 14px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.canva-drawer-back-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
  padding: 2px 4px;
  margin-bottom: 6px;
}
.canva-drawer-meta-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 3px;
}
.canva-drawer-meta-sub {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
}
.canva-drawer-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #334155;
  margin-bottom: 12px;
}
.canva-author-avatar {
  width: 18px;
  height: 18px;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}
.canva-apply-all-btn {
  width: 100%;
  padding: 8px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 10px;
}
.canva-apply-all-btn:hover {
  background: #e2e8f0;
}

/* 2-Column Template Grid (Matching Image 2) */
.canva-drawer-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}
.canva-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.canva-grid-card {
  aspect-ratio: 16/9;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  transition: all 0.15s ease;
}
.canva-grid-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(56,189,248,0.25);
  transform: translateY(-1px);
}
.canva-grid-card.active {
  border: 2px solid #38bdf8;
}
.canva-grid-card svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Drawer Palette Section */
.canva-palette-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}
.canva-palette-title {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}
.canva-palette-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  background: #f8fafc;
}
.canva-color-bars {
  display: flex;
  width: 44px;
  height: 36px;
  border-radius: 3px;
  overflow: hidden;
}
.canva-color-bar { flex: 1; height: 100%; }

/* Drawer Toggle Button */
.canva-drawer-toggle-btn {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 25;
}

/* 3. Center Canvas & Presentation Slide (Matching Image 2) */
.canva-canvas-viewport {
  flex: 1;
  background: #ebedf0;
  overflow-y: auto;
  overflow-x: auto;
  padding: 30px 40px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#canva-story-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Authentic 16:9 Slide Canvas */
.canva-slide-deck-card {
  width: 960px;
  max-width: 96%;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 36px 44px 50px;
  min-height: calc(100vh - 180px);
  height: auto;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

/* Pinned / Sticky Visual Header in Canva Presentation Slide */
.canva-pinned-visual-header {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #ffffff;
  margin-top: -36px;
  margin-left: -44px;
  margin-right: -44px;
  padding: 24px 44px 16px 44px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.canva-pinned-visual-header .canva-slide-header-box {
  margin-bottom: 16px;
}
.canva-pinned-visual-header .canva-infographic-orbit-container {
  margin-bottom: 0;
}

/* Slide Header (Matching Image 2) */
.canva-slide-header-box {
  margin-bottom: 24px;
}
.canva-slide-main-title {
  font-size: 24px;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
}
.canva-slide-header-line {
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #93c5fd 80%, transparent 100%);
  width: 100%;
}

/* Infographic Section (Orbital timeline matching Image 2) */
.canva-infographic-orbit-container {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.canva-orbit-svg-wrapper {
  position: relative;
  width: 100%;
  min-height: 220px;
}

/* Milestone Circles */
.canva-orbit-milestones-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 5;
  margin-top: 20px;
}
.canva-milestone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 18%;
}
.canva-milestone-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(30,58,138,0.25);
  margin-bottom: 10px;
}
.canva-milestone-circle.c-98 { background: #1e3a8a; }
.canva-milestone-circle.c-85 { background: #2563eb; }
.canva-milestone-circle.c-74 { background: #3b82f6; }
.canva-milestone-circle.c-5m { background: #0284c7; font-size: 11px; flex-direction: column; line-height: 1.1; }
.canva-milestone-circle.c-32 { background: #d97706; }

.canva-milestone-desc {
  font-size: 11px;
  color: #334155;
  line-height: 1.35;
  font-weight: 500;
}

/* Slide Summary Dark Banner */
.canva-slide-summary-banner {
  margin-top: 20px;
  background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  box-shadow: 0 4px 14px rgba(30,58,138,0.2);
}

/* Reading Stream inside Canva Slide */
.canva-story-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.canva-block-item {
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px dashed transparent;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}
.canva-block-item:hover {
  background: #ffffff;
  border: 1px solid #7d2ae8;
  box-shadow: 0 2px 8px rgba(125,42,232,0.12);
}
.canva-block-item.active-block {
  background: #ffffff;
  border: 1.5px solid #7d2ae8;
  box-shadow: 0 4px 14px rgba(125,42,232,0.18);
}
/* Canva Selection Handles */
.canva-block-item.active-block::before,
.canva-block-item.active-block::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: #ffffff;
  border: 1.5px solid #7d2ae8;
  border-radius: 50%;
}
.canva-block-item.active-block::before { top: -4px; left: -4px; }
.canva-block-item.active-block::after { bottom: -4px; right: -4px; }

.canva-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.canva-block-label {
  font-size: 10px;
  color: #7d2ae8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.canva-text-box {
  font-size: var(--story-font-size, 11pt);
  line-height: var(--story-line-height, 1.75);
  letter-spacing: var(--story-letter-spacing, 0.15px);
  color: #1e293b;
  user-select: text;
}

/* 4. Bottom Filmstrip & Footer Bar (Matching Image 2) */
.canva-filmstrip-bar {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  flex-shrink: 0;
  z-index: 30;
}
.canva-film-thumb {
  width: 64px;
  aspect-ratio: 16/9;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #64748b;
  position: relative;
  flex-shrink: 0;
  transition: all 0.12s ease;
}
.canva-film-thumb:hover { border-color: #38bdf8; }
.canva-film-thumb.active {
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}
.canva-film-thumb-num {
  position: absolute;
  bottom: 2px;
  left: 4px;
  font-size: 8px;
  font-weight: 700;
  color: #0f172a;
}
.canva-add-slide-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
}

.canva-bottom-bar {
  height: 38px;
  background: #ffffff;
  border-top: 1px solid #e1e4ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  color: #475569;
  flex-shrink: 0;
  z-index: 30;
}
.canva-bottom-left, .canva-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.canva-zoom-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.canva-zoom-slider {
  width: 80px;
  height: 3px;
  accent-color: #7d2ae8;
}

/* Boss Mode View */
.canva-boss-view {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Microsoft PowerPoint 365 Theme Styles - Realistic Executive Presentation with Charts & Diagrams */

/* ==========================================================
   THEME 12: POWERPOINT WORKSPACE STYLES
   ========================================================== */
body.theme-powerpoint {
  background-color: #f3f4f6;
  color: #1f2937;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.ppt-app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100%; min-height: 0; flex: 1;
  overflow: hidden;
  background-color: #f3f4f6;
}

/* 1. PowerPoint Orange-Red Title Bar (Office 365 Authentic) */
.ppt-title-bar {
  height: 42px;
  background-color: #d24726;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #ffffff;
  flex-shrink: 0;
  z-index: 30;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.ppt-title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ppt-app-badge {
  background-color: #b0381b;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Office 365 AutoSave Toggle */
.ppt-autosave-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.12);
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}
.ppt-autosave-txt {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}
.ppt-autosave-switch {
  width: 28px;
  height: 14px;
  background: rgba(255,255,255,0.4);
  border-radius: 10px;
  position: relative;
  transition: all 0.2s ease;
}
.ppt-autosave-switch.active {
  background: #ffffff;
}
.ppt-switch-knob {
  width: 10px;
  height: 10px;
  background: #d24726;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 16px;
  transition: all 0.2s ease;
}
.ppt-quick-tools {
  display: flex;
  gap: 8px;
  font-size: 13px;
  opacity: 0.9;
}
.ppt-quick-tools span {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
}
.ppt-quick-tools span:hover {
  background: rgba(255,255,255,0.18);
}

/* Center: Doc Title & Office 365 Search Bar */
.ppt-title-center {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.ppt-doc-info {
  display: flex;
  align-items: center;
  gap: 4px;
}
#ppt-doc-title {
  color: #ffffff;
  font-weight: 600;
  cursor: text;
  padding: 2px 6px;
  border-radius: 3px;
}
#ppt-doc-title:hover { background: rgba(255,255,255,0.15); }
.ppt-cloud-status {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}
.ppt-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 3px 12px;
  width: 220px;
  transition: background 0.15s ease;
}
.ppt-search-box:hover {
  background: rgba(0,0,0,0.28);
}
.ppt-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 11px;
  width: 100%;
  cursor: text;
}
.ppt-search-box input::placeholder {
  color: rgba(255,255,255,0.75);
}

.ppt-title-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ppt-comments-btn, .ppt-share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.ppt-comments-btn:hover, .ppt-share-btn:hover {
  background: rgba(255,255,255,0.2);
}
.ppt-avatar-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #d24726;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ppt-win-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}
.ppt-win-controls span {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.1s ease;
}
.ppt-win-controls span:hover {
  background: rgba(255,255,255,0.2);
}
.ppt-win-controls span.close:hover {
  background: #e81123;
}

/* 2. Ribbon Tabs & Toolbar */
.ppt-ribbon-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #d1d5db;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.ppt-ribbon-tabs {
  display: flex;
  background: #f8fafc;
  padding: 2px 10px 0;
  gap: 2px;
  border-bottom: 1px solid #e2e8f0;
}
.ppt-tab {
  padding: 6px 11px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  border-radius: 3px 3px 0 0;
  transition: background 0.1s;
}
.ppt-tab:hover { background: #e2e8f0; }
.ppt-tab.active {
  background: #ffffff;
  color: #d24726;
  font-weight: 700;
  border-bottom: 2.5px solid #d24726;
}
.ppt-tab.file-tab {
  background: #c43e1c;
  color: #ffffff;
  font-weight: 700;
  border-radius: 2px;
}

.ppt-ribbon-body {
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  background: #ffffff;
  overflow-x: auto;
}
.ppt-ribbon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #f1f5f9;
  padding-right: 8px;
  padding-left: 2px;
  gap: 2px;
  height: 62px;
  justify-content: space-between;
}
.ppt-group-label {
  font-size: 9px;
  color: #94a3b8;
  text-transform: capitalize;
  margin-top: auto;
  line-height: 1;
}

.ppt-grp-content {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ppt-paste-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 1px solid transparent;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  color: #334155;
}
.ppt-paste-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.ppt-v-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #475569;
}
.ppt-v-btns span {
  padding: 1px 5px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}
.ppt-v-btns span:hover {
  background: #f1f5f9;
}

/* Font cluster */
.ppt-font-cluster, .ppt-para-cluster {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ppt-font-row-1, .ppt-font-row-2, .ppt-para-row-1, .ppt-para-row-2 {
  display: flex;
  align-items: center;
  gap: 3px;
}
.ppt-select-font {
  height: 22px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  padding: 0 4px;
  color: #1e293b;
  background: #ffffff;
}
.ppt-select-size {
  height: 22px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  padding: 0 2px;
  width: 44px;
  color: #1e293b;
  background: #ffffff;
}
.ppt-mini-btn, .ppt-style-btn {
  height: 22px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 2px;
  cursor: pointer;
  color: #334155;
  user-select: none;
}
.ppt-mini-btn:hover, .ppt-style-btn:hover {
  background: #f1f5f9;
}
.ppt-style-btn.active {
  background: #e2e8f0;
  color: #d24726;
  font-weight: bold;
}
.ppt-color-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
  cursor: pointer;
  height: 22px;
  justify-content: center;
}
.ppt-color-btn i {
  display: block;
  width: 12px;
  height: 3px;
  margin-top: 1px;
}

/* Drawing cluster */
.ppt-draw-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ppt-shapes-mini-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #f8fafc;
  padding: 3px;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
}
.ppt-shapes-mini-box span {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
}
.ppt-shapes-mini-box span:hover {
  background: #dbeafe;
  color: #2563eb;
}

/* Designer button */
.ppt-designer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #9a3412;
  gap: 2px;
}
.ppt-designer-btn:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #ffedd5 100%);
  box-shadow: 0 2px 6px rgba(210,71,38,0.15);
}
  display: flex;
  align-items: center;
  gap: 8px;
}
.ppt-pill-btn {
  background: #d24726;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.ppt-pill-btn:hover { background: #b0381b; }
.ppt-page-ctrl {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
}
.ppt-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}
.ppt-btn:hover { background: #e5e7eb; }
.ppt-font-ctrl {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  padding: 1px 6px;
}
.ppt-font-ctrl button {
  background: transparent;
  border: none;
  font-weight: bold;
  color: #d24726;
  cursor: pointer;
  padding: 1px 4px;
}
.ppt-font-ctrl span {
  font-size: 11px;
  font-weight: 600;
  color: #1f2937;
  min-width: 28px;
  text-align: center;
}

/* 3. PowerPoint Workspace Layout */
.ppt-workspace-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Left Slide Thumbnails Pane (6 Detailed Colorful Slide Cards) */
.ppt-thumbnails-pane {
  width: 200px;
  background: #f3f4f6;
  border-right: 1px solid #d1d5db;
  padding: 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.ppt-thumb-card {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.ppt-thumb-num { font-size: 11px; font-weight: 600; color: #6b7280; width: 14px; text-align: right; }
.ppt-thumb-preview {
  flex: 1;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  padding: 4px 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.12s ease;
}
.ppt-thumb-card:hover .ppt-thumb-preview {
  border-color: #d24726;
}
.ppt-thumb-card.active .ppt-thumb-preview {
  border: 2px solid #d24726;
  box-shadow: 0 0 8px rgba(210,71,38,0.35);
}

/* Center Slide Canvas Viewport */
.ppt-canvas-viewport {
  flex: 1;
  background: #e5e7eb;
  overflow-y: auto;
  overflow-x: auto;
  padding: 24px 36px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#ppt-story-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Authentic PowerPoint 16:9 Slide Sheet */
.ppt-slide-sheet {
  width: 1060px;
  max-width: 96%;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.16);
  padding: 32px 42px 50px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: calc(100vh - 160px);
  height: auto;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Slide Header with Accent Lines */
.ppt-slide-header-box {
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 12px;
  position: relative;
}
.ppt-slide-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #d24726;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.ppt-slide-title-text {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}
.ppt-slide-sub-text {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
}
.ppt-slide-header-accent {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 180px;
  height: 3px;
  background: #d24726;
}

/* Multi-Column Slide Body Layout (Left: Graphics & Charts | Right: Reading Text Box) */
.ppt-slide-content-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  flex: 1;
  align-items: start;
}

/* Left Graphics Panel (Sticky - cuộn theo trang khi đọc truyện) */
.ppt-visuals-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
  align-self: start;
  z-index: 10;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* 1. Chart 1: Bar Chart (Doanh thu & Tăng trưởng quý) */
.ppt-chart-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 14px;
}
.ppt-chart-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ppt-bar-chart-svg-box {
  width: 100%;
  height: 120px;
}

/* 2. Chart 2: Donut Chart (Cơ cấu nguồn lực) */
.ppt-donut-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ppt-donut-svg {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
.ppt-legend-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: #475569;
}
.ppt-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ppt-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* 3. SmartArt Process Flow */
.ppt-smartart-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
}
.ppt-smartart-title {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.ppt-smartart-steps {
  display: flex;
  gap: 4px;
}
.ppt-step-chevron {
  flex: 1;
  background: #f1f5f9;
  border-left: 3px solid #d24726;
  border-radius: 3px;
  padding: 6px 4px;
  font-size: 9px;
  text-align: center;
  color: #334155;
  font-weight: 600;
}
.ppt-step-chevron.done {
  background: #e0f2fe;
  border-left-color: #0284c7;
  color: #0369a1;
}

/* Right Content: PowerPoint Text Box */
.ppt-textbox-container {
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  border-radius: 4px;
  padding: 16px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* PowerPoint Text Box Resize Handles */
.ppt-handle-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border: 1.5px solid #d24726;
  border-radius: 1px;
}
.ppt-handle-tl { top: -3px; left: -3px; }
.ppt-handle-tr { top: -3px; right: -3px; }
.ppt-handle-bl { bottom: -3px; left: -3px; }
.ppt-handle-br { bottom: -3px; right: -3px; }
.ppt-handle-tm { top: -3px; left: 50%; transform: translateX(-50%); }
.ppt-handle-bm { bottom: -3px; left: 50%; transform: translateX(-50%); }
.ppt-handle-ml { top: 50%; left: -3px; transform: translateY(-50%); }
.ppt-handle-mr { top: 50%; right: -3px; transform: translateY(-50%); }

.ppt-textbox-label {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Story Stream inside PowerPoint Text Box */
.ppt-story-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ppt-para-item {
  padding: 8px 12px;
  border-radius: 3px;
  border-left: 3px solid transparent;
  background: #fdfdfd;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ppt-para-item:hover { background: #f8fafc; }
.ppt-para-item.active-bullet {
  background: #fef2f2;
  border-left-color: #d24726;
}
.ppt-bullet-icon { color: #d24726; font-size: 14px; margin-top: 2px; }
.ppt-bullet-text {
  flex: 1;
  font-size: var(--story-font-size, 11pt);
  line-height: var(--story-line-height, 1.75);
  letter-spacing: var(--story-letter-spacing, 0.15px);
  color: #1f2937;
  user-select: text;
}

/* PowerPoint Speaker Notes Drawer (Office 365 Authentic) */
.ppt-notes-drawer {
  width: 1060px;
  max-width: 96%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-top: 2px solid #e5e7eb;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-top: 10px;
  padding: 8px 16px 12px;
  box-sizing: border-box;
}
.ppt-notes-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  cursor: pointer;
  user-select: none;
}
.ppt-notes-header:hover {
  color: #d24726;
}
.ppt-notes-box {
  font-size: 11px;
  line-height: 1.6;
  color: #334155;
  outline: none;
  min-height: 38px;
  cursor: text;
  padding: 4px 6px;
  border-radius: 2px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.ppt-notes-box:focus {
  background: #ffffff;
  border-color: #d24726;
  border-style: solid;
}

/* 4. Bottom Status Bar (Office 365 Authentic) */
.ppt-status-bar {
  height: 28px;
  background: #f1f5f9;
  border-top: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: #475569;
  flex-shrink: 0;
  user-select: none;
}
.ppt-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ppt-stat-sep {
  color: #cbd5e1;
}
.ppt-status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ppt-status-btn {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: 500;
}
.ppt-status-btn:hover {
  background: #e2e8f0;
}
.ppt-status-btn.active {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 600;
}
.ppt-view-modes {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ppt-view-btn {
  width: 22px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  font-size: 12px;
}
.ppt-view-btn:hover {
  background: #e2e8f0;
}
.ppt-view-btn.active {
  background: #cbd5e1;
  color: #0f172a;
}
.ppt-zoom-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ppt-zoom-minus, .ppt-zoom-plus {
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
  padding: 0 2px;
}
.ppt-zoom-range {
  width: 70px;
  height: 3px;
  accent-color: #d24726;
  cursor: pointer;
}
.ppt-zoom-val {
  min-width: 30px;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}
.ppt-fit-btn {
  cursor: pointer;
  font-size: 12px;
  padding: 2px;
  border-radius: 2px;
}
.ppt-fit-btn:hover {
  background: #e2e8f0;
}

/* Boss Mode View (Quarterly Financial PPT Slide) */
.ppt-boss-view {
  width: 100%;
  display: flex;
  justify-content: center;
}
.ppt-boss-slide {
  width: 1060px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  padding: 36px 44px;
}
.ppt-boss-slide h2 { color: #d24726; font-size: 22px; margin-bottom: 20px; }
.ppt-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ppt-kpi-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 16px; }
.ppt-kpi-val { font-size: 26px; font-weight: 800; color: #111827; margin: 4px 0; }


/* Thư Viện Pháp Luật (TVPL - Classic Authentic Replica based on User Screenshot) */

/* ==========================================================
   THEME 13: THƯ VIỆN PHÁP LUẬT CLASSIC STYLES
   - Top Header: Warm Orange Gradient (#ff8a00 to #e52d27)
   - Nav Bar: Sky Blue Gradient (#2980b9 to #6dd5fa)
   - Left Sidebar: White with Red title (#c0392b)
   - Center Document: Classic Law Sheet with Orange Active Tab (#f39c12)
   - Document Stamp: Blue/Red official stamp watermark box
   - Right Sidebar: Clean Login Box & Social buttons & Yellow Action Buttons
   - Main Background: #eceef1
   ========================================================== */

/* Thư Viện Pháp Luật (TVPL - thuvienphapluat.vn) Authentic Fixed-Width Layout with Centered Margins */

/* ==========================================================
   THEME 13: THƯ VIỆN PHÁP LUẬT CLASSIC STYLES
   - Fixed standard container width (1200px) centered with equal margins on both sides
   - Background of the entire page: #e9ebef
   - Background of the page container: #ffffff / clean bordered layout
   - Top Header: Warm Orange Gradient (#ff9000 to #e65100)
   - Nav Bar: Blue Utility Bar (#1976d2 to #1565c0)
   - Search Row: Clean White with Yellow Action buttons
   - Content Area: 3-column structured portal layout
   ========================================================== */

body.theme-thuvienphapluat {
  background-color: #dbe0e6;
  color: #333333;
  font-family: Arial, Tahoma, Verdana, sans-serif;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Outer wrapper taking 100vw and 100vh, centering the fixed 1200px container */
/* Outer wrapper taking 100vw and 100vh, centering the fixed 1200px container with clear blank margins */
.tvpl-app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: 100%; min-height: 0; flex: 1;
  overflow: hidden;
  background-color: #eaedf1;
}

/* Inner fixed-width container: centered with authentic margins on both sides */
.tvpl-page-wrapper {
  width: 1200px;
  max-width: 96vw;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%; max-height: 100%; min-height: 0; flex: 1;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
  border-left: 1px solid #d0d5dc;
  border-right: 1px solid #d0d5dc;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* 1. TOP HEADER WITH WHITE LOGO SECTION AND RIGHT ORANGE + BLUE BARS */
.tvpl-header-top {
  height: 62px;
  background: #ffffff;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  color: #333333;
  flex-shrink: 0;
  border-bottom: 1px solid #d9d9d9;
  z-index: 30;
}

.tvpl-header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #ffffff;
  flex-shrink: 0;
}

/* Red Scales of Justice Emblem */
.tvpl-emblem-badge {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  border: 2px solid #b71c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.tvpl-emblem-badge svg {
  width: 32px;
  height: 32px;
}

.tvpl-header-text-block {
  display: flex;
  flex-direction: column;
}

.tvpl-brand-headline {
  font-size: 20px;
  font-weight: 900;
  color: #b71c1c;
  letter-spacing: 0.5px;
  line-height: 1.15;
  font-family: Arial, sans-serif;
}

.tvpl-sub-headline {
  font-size: 10px;
  color: #555555;
  font-weight: 500;
}

.tvpl-slogan-italic {
  font-size: 10.5px;
  color: #b71c1c;
  font-style: italic;
  margin-top: 1px;
}

/* Right Header Menu: Top Orange Bar + Bottom Blue Utility Bar */
.tvpl-header-right-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tvpl-header-orange-bar {
  height: 31px;
  background: linear-gradient(180deg, #f57c00 0%, #e65100 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
  gap: 12px;
  color: #ffffff;
}

.tvpl-top-nav-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background 0.15s;
}

.tvpl-top-nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tvpl-lang-flags {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  cursor: pointer;
}

/* 2. SUB-BAR: SKY BLUE QUICK UTILITIES BAR */
.tvpl-sub-nav-bar {
  height: 31px;
  background: linear-gradient(180deg, #0288d1 0%, #01579b 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #ffffff;
  font-size: 11px;
  flex-shrink: 0;
}

.tvpl-sub-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tvpl-sub-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 500;
}

.tvpl-sub-btn:hover {
  text-decoration: underline;
}

/* Stealth reading controls in Sub-bar */
.tvpl-stealth-ctrls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tvpl-stealth-pill-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  border-radius: 3px;
  font-size: 11px;
  padding: 2px 7px;
  cursor: pointer;
  font-weight: 600;
}

.tvpl-stealth-pill-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.tvpl-page-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  padding: 1px 4px;
  gap: 4px;
}

.tvpl-nav-step-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 10px;
  padding: 1px 4px;
}

.tvpl-nav-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tvpl-font-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  padding: 1px 4px;
}

/* 3. SEARCH TABS & SEARCH BOX ROW */
.tvpl-search-nav-tabs {
  height: 28px;
  background: #f8f9fa;
  border-bottom: 2px solid #e65100;
  display: flex;
  align-items: flex-end;
  padding: 0 12px;
  gap: 3px;
}

.tvpl-search-tab-pill {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  cursor: pointer;
}

.tvpl-search-tab-pill.active {
  background: #e65100;
  color: #ffffff;
  border-color: #e65100;
  font-weight: bold;
}

.tvpl-search-row {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 16px;
}

.tvpl-search-box-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  max-width: 760px;
}

.tvpl-search-form-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.tvpl-search-input-field {
  flex: 1;
  height: 28px;
  border: 1px solid #a6a6a6;
  border-right: none;
  padding: 0 8px;
  font-size: 11.5px;
  color: #333;
  outline: none;
}

.tvpl-search-type-select {
  height: 28px;
  border: 1px solid #a6a6a6;
  background: #f7f7f7;
  padding: 0 6px;
  font-size: 11.5px;
  color: #333;
  outline: none;
}

.tvpl-search-submit-btn {
  height: 28px;
  background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
  border: 1px solid #e65100;
  color: #111111;
  font-weight: bold;
  font-size: 11.5px;
  padding: 0 18px;
  cursor: pointer;
}

.tvpl-search-submit-btn:hover {
  background: linear-gradient(180deg, #ffb300 0%, #fb8c00 100%);
}

.tvpl-search-quick-links {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: #64748b;
}

.tvpl-search-quick-links span {
  color: #b71c1c;
  cursor: pointer;
}

/* Contact Support Box next to Search */
.tvpl-contact-support-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10.5px;
  color: #334155;
  border-left: 1px dashed #cbd5e1;
  padding-left: 14px;
}

.tvpl-contact-support-box b {
  color: #b71c1c;
}

/* 4. WORKSPACE 3-COLUMN LAYOUT (CỘT TRÁI | NỘI DUNG VĂN BẢN | CỘT PHẢI) */
.tvpl-workspace-3col {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #f0f2f5;
  padding: 8px 10px;
  gap: 10px;
}

/* CỘT TRÁI: TƯ VẤN PHÁP LUẬT & CÂY MỤC LỤC BÀI VIẾT */
.tvpl-col-left-sidebar {
  width: 215px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.tvpl-left-box-header {
  height: 26px;
  background: #ffffff;
  border-bottom: 2px solid #b71c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: bold;
  color: #b71c1c;
  text-transform: uppercase;
}

.tvpl-left-box-close {
  color: #dc2626;
  border: 1px solid #f87171;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  cursor: pointer;
  border-radius: 2px;
}

.tvpl-left-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tvpl-left-article-link {
  font-size: 11px;
  line-height: 1.35;
  color: #2563eb;
  padding: 5px 6px;
  border-bottom: 1px dashed #e5e7eb;
  text-decoration: none;
  cursor: pointer;
}

.tvpl-left-article-link:hover {
  color: #b71c1c;
  text-decoration: underline;
}

.tvpl-left-article-link.highlight {
  color: #dc2626;
  font-weight: bold;
}

/* CỘT GIỮA: KHUNG VĂN BẢN CHÍNH THỨC (CHỨA TRUYỆN ĐỌC) */
.tvpl-col-center-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Tabs: [Thuộc tính] [Nội dung ★] [Tiếng Anh] [Văn bản gốc/PDF] [Lược đồ] [Liên quan hiệu lực] [Tải về] */
.tvpl-tab-bar-classic {
  height: 30px;
  background: #f1f3f5;
  border-bottom: 2px solid #e67e22;
  display: flex;
  align-items: flex-end;
  padding: 0 6px;
  gap: 2px;
  flex-shrink: 0;
}

.tvpl-tab-pill {
  height: 26px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.tvpl-tab-pill:hover {
  background: #f3f4f6;
  color: #111827;
}

.tvpl-tab-pill.active {
  background: #f39c12;
  color: #ffffff;
  border-color: #e67e22;
  font-weight: bold;
}

/* Sub-header: MỤC LỤC VĂN BẢN (Đỏ đậm) */
.tvpl-toc-bar {
  height: 24px;
  background: #fdf2e9;
  border-bottom: 1px solid #fcd34d;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  font-weight: bold;
  color: #b71c1c;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Document Paper Scroll Area */
.tvpl-doc-scroll-pane {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 36px 50px 36px;
  background: #ffffff;
  scroll-behavior: smooth;
}

/* Official Vietnamese State Header per Decree 30/2020/NĐ-CP */
.tvpl-doc-state-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: "Times New Roman", Times, serif;
  margin-bottom: 18px;
}

.tvpl-head-left {
  width: 45%;
  text-align: center;
}

.tvpl-head-left .org-title {
  font-size: 13.5px;
  font-weight: bold;
  color: #111827;
}

.tvpl-head-left .doc-number {
  font-size: 12.5px;
  color: #374151;
  margin-top: 4px;
}

.tvpl-head-right {
  width: 53%;
  text-align: center;
}

.tvpl-head-right .country-title {
  font-size: 13.5px;
  font-weight: bold;
  color: #111827;
}

.tvpl-head-right .motto-title {
  font-size: 13px;
  font-weight: bold;
  color: #111827;
  border-bottom: 1px solid #111827;
  display: inline-block;
  padding-bottom: 2px;
  margin-top: 2px;
}

.tvpl-head-right .doc-date-str {
  font-size: 12.5px;
  font-style: italic;
  color: #4b5563;
  margin-top: 5px;
}

/* Document Title */
.tvpl-doc-main-title {
  text-align: center;
  margin: 18px 0 20px 0;
  font-family: "Times New Roman", Times, serif;
}

.tvpl-doc-main-title .doc-type-label {
  font-size: 17px;
  font-weight: bold;
  color: #111827;
  text-transform: uppercase;
}

.tvpl-doc-main-title .doc-title-editable {
  font-size: 14.5px;
  font-weight: bold;
  color: #111827;
  text-transform: uppercase;
  line-height: 1.45;
  margin: 6px auto 0 auto;
  max-width: 92%;
  padding: 2px 6px;
  border-radius: 4px;
}

.tvpl-doc-main-title .doc-title-editable:hover {
  background: #fef3c7;
}

/* STAMP WATERMARK BOX (Dấu mộc chứng nhận văn bản chính thức) */
.tvpl-stamp-container {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 20px 0;
}

.tvpl-stamp-box {
  width: 210px;
  border: 2px dashed #b71c1c;
  border-radius: 6px;
  padding: 6px 10px;
  color: #b71c1c;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  transform: rotate(-3deg);
  background: rgba(254, 242, 242, 0.7);
  box-shadow: 0 1px 3px rgba(183, 28, 28, 0.15);
}

.tvpl-stamp-name {
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tvpl-stamp-status {
  font-size: 10.5px;
  font-weight: bold;
  color: #047857;
  margin-top: 2px;
}

.tvpl-stamp-date {
  font-size: 9.5px;
  font-style: italic;
  margin-top: 1px;
}

/* Continuous Story Stream: Styled as official legal text */
.tvpl-story-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 380px;
}

.tvpl-clause-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 3px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}

.tvpl-clause-item:hover {
  background-color: #f9fafb;
}

.tvpl-clause-item.active-clause {
  background-color: #fffbeb;
  border-left-color: #f39c12;
  box-shadow: 0 1px 4px rgba(243, 156, 18, 0.15);
}

.tvpl-clause-num {
  font-family: "Times New Roman", Times, serif;
  font-size: 13.5px;
  font-weight: bold;
  color: #111827;
  flex-shrink: 0;
  min-width: 60px;
  margin-top: 1px;
}

.tvpl-clause-text {
  flex: 1;
  font-family: var(--story-font-family, "Times New Roman"), Times, serif;
  font-size: var(--story-font-size, 13pt);
  line-height: var(--story-line-height, 1.8);
  letter-spacing: var(--story-letter-spacing, 0.1px);
  color: #1f2937;
  text-align: justify;
  user-select: text;
}

/* CỘT PHẢI: LOGIN BOX, SOCIAL BUTTONS & ACTION BUTTONS */
.tvpl-col-right-sidebar {
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  overflow-y: auto;
}

/* Login Box (Đăng nhập) */
.tvpl-login-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tvpl-login-header {
  font-size: 11.5px;
  font-weight: bold;
  color: #e65100;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.tvpl-login-input {
  width: 100%;
  box-sizing: border-box;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  padding: 0 6px;
  font-size: 11px;
  margin-bottom: 6px;
  outline: none;
}

.tvpl-login-submit-btn {
  width: 100%;
  height: 24px;
  background: linear-gradient(180deg, #ff9800 0%, #f57c00 100%);
  border: 1px solid #e65100;
  border-radius: 2px;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.tvpl-social-login-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.tvpl-social-btn {
  flex: 1;
  height: 22px;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  background: #f9fafb;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

/* Quick Tools Grid (Lưu trữ, Ghi chú, Ý kiến...) */
.tvpl-tools-grid {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.tvpl-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #4b5563;
  cursor: pointer;
}

.tvpl-tool-item:hover {
  color: #e65100;
}

.tvpl-tool-icon {
  font-size: 16px;
}

/* Yellow Action Buttons (Theo dõi hiệu lực VB, Văn bản song ngữ) */
.tvpl-action-banner-btn {
  width: 100%;
  height: 28px;
  background: linear-gradient(180deg, #fef08a 0%, #fde047 100%);
  border: 1px solid #eab308;
  border-radius: 3px;
  color: #713f12;
  font-weight: bold;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tvpl-action-banner-btn:hover {
  background: #fde047;
}

/* Ad Banner Card (Legal AI Recruitment) */
.tvpl-ad-card {
  background: linear-gradient(180deg, #4f46e5 0%, #3730a3 100%);
  border-radius: 4px;
  padding: 12px 10px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.tvpl-ad-title {
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #c7d2fe;
}

.tvpl-ad-role {
  font-size: 12px;
  font-weight: bold;
  margin: 4px 0;
  line-height: 1.3;
}

.tvpl-ad-salary {
  font-size: 14px;
  font-weight: 800;
  color: #fde047;
  margin: 6px 0;
}

.tvpl-ad-cta-btn {
  background: #ffffff;
  color: #3730a3;
  border: none;
  border-radius: 12px;
  padding: 3px 14px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 6px;
}

/* 5. BOTTOM STATUS BAR */
.tvpl-status-bar {
  height: 24px;
  background: #263238;
  color: #90a4ae;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 10.5px;
  flex-shrink: 0;
  border-top: 1px solid #37474f;
}

/* BOSS MODE VIEW (OFFICIAL DECREE TEXT) */
.tvpl-boss-view {
  width: 100%;
  background: #ffffff;
  padding: 10px 0;
  font-family: "Times New Roman", Times, serif;
}

.tvpl-boss-view h2 {
  font-size: 16px;
  font-weight: bold;
  color: #111827;
  text-align: center;
  text-transform: uppercase;
  margin: 14px 0 18px 0;
}

.tvpl-boss-article {
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #1f2937;
  text-align: justify;
}

/* Floating Sticky Support Tab (as in real thuvienphapluat.vn) */
.tvpl-sticky-help-tab {
  position: fixed;
  right: 24px;
  bottom: 0;
  background: #ff9800;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 100;
  font-family: Arial, sans-serif;
  letter-spacing: 0.2px;
  transition: background 0.15s;
}

.tvpl-sticky-help-tab:hover {
  background: #f57c00;
}



/* ==========================================================
   UNIVERSAL PINNED READING NAVBAR COMPONENT (MODERN SLATE DESIGN)
   ========================================================== */
:root {
  --unav-height: 40px;
}

body.has-pinned-navbar {
  padding-top: var(--unav-height) !important;
}

body.controls-hidden.has-pinned-navbar,
body.controls-hidden {
  padding-top: 0 !important;
}

.universal-reader-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--unav-height);
  background: rgba(15, 20, 28, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11.5px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 999999;
  user-select: none;
  box-sizing: border-box;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.controls-hidden .universal-reader-navbar {
  display: none !important;
}

tr.online-chapter-next-row {
  display: table-row !important;
  cursor: pointer;
  background-color: #fafbfd;
  transition: background-color 0.12s ease;
}

tr.online-chapter-next-row:hover {
  background-color: #f1f8ff !important;
}

.online-chapter-cell {
  text-align: right;
}

.online-chapter-inline-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.online-chapter-next-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  height: 22px;
  padding: 1px 9px;
  border: 1px solid #1a73e8;
  border-radius: 4px;
  background: #e8f0fe;
  color: #1a73e8;
  font: 600 11px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.online-chapter-next-button:hover {
  background: #d2e3fc;
  border-color: #174ea6;
  color: #174ea6;
}

.online-chapter-next-button:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 1px;
}

.online-chapter-next-button:disabled,
.online-chapter-next-button.is-loading {
  cursor: wait;
  opacity: 0.65;
}

.online-chapter-title-tag {
  font-size: 11px;
  color: #5f6368;
  font-weight: 500;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-chapter-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  line-height: 1;
  border-radius: 3px;
  background: rgba(26, 115, 232, 0.15);
  color: #1a73e8;
  border: 1px solid rgba(26, 115, 232, 0.3);
  margin-left: 2px;
}

.online-chapter-inline-block {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 6px;
  background: rgba(26, 115, 232, 0.05);
  border: 1px dashed rgba(26, 115, 232, 0.3);
}

.online-chapter-next-row[hidden],
.online-chapter-next-button[hidden],
body.boss-mode-active .online-chapter-next-row,
body.boss-mode-active .online-chapter-next-button {
  display: none !important;
}

/* Dark mode compatibility */
[data-theme="dark"] .online-chapter-next-row,
.theme-chatgpt[data-theme="dark"] .online-chapter-next-row,
.theme-vscode .online-chapter-next-row {
  background-color: #1f2023;
}

[data-theme="dark"] .online-chapter-next-row:hover,
.theme-chatgpt[data-theme="dark"] .online-chapter-next-row:hover,
.theme-vscode .online-chapter-next-row:hover {
  background-color: #2b2d31 !important;
}

[data-theme="dark"] .online-chapter-next-button,
.theme-chatgpt[data-theme="dark"] .online-chapter-next-button,
.theme-vscode .online-chapter-next-button {
  background: #2a2b32;
  color: #ececf1;
  border-color: #565869;
}

[data-theme="dark"] .online-chapter-next-button:hover,
.theme-chatgpt[data-theme="dark"] .online-chapter-next-button:hover,
.theme-vscode .online-chapter-next-button:hover {
  background: #40414f;
  border-color: #8e8ea0;
  color: #ffffff;
}

[data-theme="dark"] .online-chapter-title-tag,
.theme-chatgpt[data-theme="dark"] .online-chapter-title-tag,
.theme-vscode .online-chapter-title-tag {
  color: #c5c5d2;
}

[data-theme="dark"] .online-chapter-kbd,
.theme-chatgpt[data-theme="dark"] .online-chapter-kbd,
.theme-vscode .online-chapter-kbd {
  background: rgba(255, 255, 255, 0.12);
  color: #ececf1;
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .online-chapter-inline-block,
.theme-chatgpt[data-theme="dark"] .online-chapter-inline-block,
.theme-vscode .online-chapter-inline-block {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}
.unav-section {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.unav-left {
  flex: 0 0 auto;
}

.unav-center {
  flex: 1 1 auto;
  justify-content: center;
  gap: 8px;
}

.unav-right {
  flex: 0 0 auto;
  gap: 6px;
}

/* Brand */
.unav-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 6px;
  font-weight: 600;
  color: #38bdf8;
  font-size: 11.5px;
  letter-spacing: 0.2px;
}
.unav-brand svg {
  color: #38bdf8;
  flex-shrink: 0;
}

/* Base button */
.unav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
  height: 28px;
}
.unav-btn svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.unav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}
.unav-btn:active {
  transform: scale(0.97);
}

.unav-btn.hybrid-auth-button {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.unav-btn.hybrid-auth-button:hover { background: rgba(255, 255, 255, 0.12); }
.unav-btn.hybrid-auth-button.needs-setup { border-style: dashed; }
.unav-btn.hybrid-auth-button.signed-in {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.1);
}

/* Upload button */
.unav-btn-upload {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-weight: 600;
}
.unav-btn-upload:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

/* File Badge */
.unav-file-badge {
  max-width: 170px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  height: 28px;
  transition: all 0.15s ease;
}
.unav-file-badge:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

/* Universal Navbar Book Switcher Dropdown */
.unav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.unav-btn-switch-book {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  height: 28px;
  box-sizing: border-box;
}

.unav-btn-switch-book:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
}

.unav-file-badge.clickable {
  cursor: pointer;
  transition: all 0.15s ease;
}

.unav-file-badge.clickable:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
}

.unav-books-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 330px;
  max-width: 420px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  z-index: 100005;
  overflow: hidden;
  animation: unavDropdownFadeIn 0.18s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes unavDropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.unav-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.unav-dropdown-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unav-dropdown-add-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.unav-dropdown-add-mini:hover {
  background: #059669;
}

.unav-dropdown-add-btn {
  margin: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #10b981;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.unav-dropdown-add-btn:hover {
  background: #059669;
}

.unav-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.unav-dropdown-list::-webkit-scrollbar {
  width: 5px;
}

.unav-dropdown-list::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

.unav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  background: #1e293b;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.unav-dropdown-item:hover {
  background: #334155;
  border-color: #475569;
}

.unav-dropdown-item.selected {
  background: #0f172a;
  border-color: #10b981;
}

.unav-dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.unav-dropdown-check {
  width: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  text-align: center;
  flex-shrink: 0;
}

.unav-dropdown-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.unav-dropdown-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.unav-dropdown-item.selected .unav-dropdown-item-title {
  color: #34d399;
}

.unav-dropdown-item-meta {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
}

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

.unav-dropdown-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #065f46;
  background: #a7f3d0;
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.unav-dropdown-del-btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.unav-dropdown-del-btn:hover {
  background: #7f1d1d;
  color: #fca5a5;
}

.unav-dropdown-empty {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

/* Layout & Line Customizer Dropdown */
.unav-btn-layout {
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.unav-btn-layout:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.unav-layout-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 370px;
  max-width: 440px;
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 8px 16px rgba(0, 0, 0, 0.6);
  z-index: 100005;
  overflow: hidden;
  animation: unavDropdownFadeIn 0.18s ease-out;
  display: flex;
  flex-direction: column;
}

.unav-layout-dropdown-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
}

.unav-layout-dropdown-content::-webkit-scrollbar {
  width: 5px;
}
.unav-layout-dropdown-content::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 3px;
}

.unav-layout-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.unav-layout-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unav-layout-card-option {
  padding: 8px 10px;
  border-radius: 8px;
  background: #0f172a;
  border: 1.5px solid #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.unav-layout-card-option:hover {
  background: #1e293b;
  border-color: #64748b;
}

.unav-layout-card-option.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
}

.unav-layout-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
}

.unav-layout-card-option.active .unav-layout-card-title {
  color: #34d399;
}

.unav-layout-card-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
  margin-left: 20px;
}

.unav-layout-pills-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-left: 20px;
}

.unav-layout-pill-btn {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #475569;
  cursor: pointer;
  transition: all 0.12s;
}

.unav-layout-pill-btn:hover {
  background: #334155;
  color: #f1f5f9;
}

.unav-layout-pill-btn.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.unav-layout-grid-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.unav-layout-select-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.unav-layout-select-label {
  font-size: 10.5px;
  color: #94a3b8;
}

.unav-layout-select {
  padding: 6px 8px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  color: #f1f5f9;
  font-size: 11.5px;
  outline: none;
  cursor: pointer;
}

.unav-layout-select:focus {
  border-color: #10b981;
}

.unav-layout-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.unav-layout-checkbox-item input {
  accent-color: #10b981;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.unav-layout-footer {
  padding: 10px 14px;
  background: #0f172a;
  border-top: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unav-layout-status-tip {
  font-size: 10.5px;
  color: #34d399;
}

.unav-layout-apply-btn {
  padding: 6px 14px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.unav-layout-apply-btn:hover {
  background: #059669;
}

/* Reader tools live preview */
.reader-tools-preview-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #1e293b;
  font-size: 11pt;
  line-height: 1.7;
  max-height: 150px;
  overflow-x: auto;
  overflow-y: auto;
}

/* Control groups */
.unav-control-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 3px;
  height: 28px;
  box-sizing: border-box;
}

.unav-icon-btn, .unav-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 0 4px;
  min-width: 22px;
  height: 22px;
  transition: all 0.15s ease;
}
.unav-icon-btn:hover, .unav-btn-sm:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.unav-icon-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: transparent;
}

.unav-indicator {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-weight: 600;
  font-size: 11.5px;
  color: #38bdf8;
  padding: 0 6px;
  min-width: 48px;
  text-align: center;
  letter-spacing: -0.3px;
}

.unav-font-indicator {
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-weight: 600;
  font-size: 11px;
  color: #34d399;
  padding: 0 4px;
  min-width: 30px;
  text-align: center;
}

.unav-jump-box input {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #f8fafc;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 10.5px;
  text-align: center;
  padding: 0;
  transition: all 0.15s ease;
}
.unav-jump-box input:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Autoscroll button */
.unav-btn-autoscroll {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
}
.unav-btn-autoscroll:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.45);
  color: #93c5fd;
}
.unav-btn-autoscroll.playing {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
  font-weight: 600;
}

/* Bookmark button */
.unav-btn-bookmark {
  min-width: 82px;
  justify-content: center;
}
.unav-btn-bookmark.saved {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}
.unav-btn-bookmark.saved:hover {
  color: #fef08a;
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
}

/* Theme button */
.unav-btn-theme {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}
.unav-btn-theme:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
}

/* Portal button */
.unav-btn-portal {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
}
.unav-btn-portal:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Boss key button */
.unav-btn-boss {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-weight: 600;
  gap: 6px;
}
.unav-btn-boss:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}
.unav-btn-boss.boss-active {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
}
.unav-btn-boss .boss-badge,
.universal-reader-navbar .boss-badge,
.boss-badge,
.unav-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'SF Mono', Consolas, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 4px;
  line-height: 1.2;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Hide toggle button */
.unav-btn-hide {
  background: transparent;
  border-color: transparent;
  color: #64748b;
  padding: 4px 6px;
}
.unav-btn-hide:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .unav-brand-text { display: none; }
  .unav-file-badge { max-width: 110px; }
}

@media (max-width: 768px) {
  .universal-reader-navbar {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 8px;
  }
}

/* ==========================================================
   GLOBAL BULLETPROOF FLEX SCROLLING FIXES FOR ALL THEMES
   ========================================================== */
html, body {
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.has-pinned-navbar {
  padding-top: var(--unav-height) !important;
}

body.controls-hidden.has-pinned-navbar,
body.controls-hidden {
  padding-top: 0 !important;
}

/* Ensure all theme workspaces and scrollable panes shrink and scroll properly */
.excel-workspace,
.sheet-content,
.table-container,
.gdocs-workspace,
.gdocs-layout-container,
.gdocs-canvas-scroll-container,
.vsc-workspace,
.vsc-editor-main,
.photoshop-workspace,
.ps-canvas-wrapper,
.blender-workspace,
.blender-split-container,
.blender-main-view,
.linkedin-workspace,
.linkedin-col-center,
.autocad-workspace,
.cad-viewport-wrapper,
.cad-notes-scroll-container,
.zalo-app-container,
.zalo-chat-main,
.zalo-main-chat-area,
.zalo-messages-scroll,
.figma-app-container,
.figma-workspace-layout,
.figma-canvas-viewport,
.canva-app-container,
.canva-workspace-layout,
.canva-canvas-viewport,
.ppt-app-container,
.ppt-workspace-layout,
.ppt-canvas-viewport,
.tvpl-app-container,
.tvpl-page-wrapper,
.tvpl-workspace-3col,
.tvpl-col-center-viewport,
.tvpl-doc-scroll-pane {
  min-height: 0 !important;
}

/* Explicit Scroll Container Rules */
#grid-scroll-container,
#gdocs-canvas-scroll-container,
#vsc-code-scroll-container,
#ps-canvas-scroll-container,
#blender-viewport-scroll-container,
#linkedin-feed-scroll-container,
#autocad-canvas-scroll-container,
#zalo-chat-scroll-container,
#figma-canvas-scroll-container,
#canva-canvas-scroll-container,
#ppt-canvas-scroll-container,
#tvpl-document-scroll-container,
#premiere-transcript-scroll-container,
#claude-chat-scroll-container,
#chatgpt-chat-scroll-container {
  overflow-y: auto !important;
  min-height: 0 !important;
  flex: 1 1 0% !important;
  -webkit-overflow-scrolling: touch !important;
}




/* ==========================================================================
   THEME 14: ADOBE PREMIERE PRO 2026 (.theme-premiere) - HIGH FIDELITY
   ========================================================================== */
body.theme-premiere {
  background: #181818;
  color: #c8c8c8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  user-select: none;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body.theme-premiere * {
  box-sizing: border-box;
}

body.theme-premiere.has-pinned-navbar {
  padding-top: var(--unav-height, 38px) !important;
}
body.theme-premiere.controls-hidden {
  padding-top: 0 !important;
}

.pr-app {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  height: 100%;
  min-height: 0;
  width: 100%;
  background: #181818;
  overflow: hidden;
}

/* Premiere Titlebar - Clear, Bold, Standout */
.pr-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  min-height: 38px;
  background: #0f0f0f;
  border-bottom: 1px solid #282828;
  padding: 0 10px;
  font-size: 12.5px;
  flex-shrink: 0;
}
.pr-title-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pr-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.pr-menu {
  display: flex;
  gap: 16px;
  color: #d1d1d1;
  font-size: 13px;
  font-weight: 500;
}
.pr-menu span {
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.15s;
}
.pr-menu span:hover {
  color: #ffffff;
}
.pr-title-center {
  color: #aaaaaa;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.pr-win {
  display: flex;
  gap: 4px;
  color: #aaaaaa;
  font-size: 13px;
}
.pr-win span {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.pr-win span:hover {
  background: #252525;
  color: #fff;
}
.pr-win span.x:hover {
  background: #e81123;
  color: #fff;
}

/* Premiere Headerbar - Big Mode Pills & Workspaces */
.pr-headerbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  min-height: 42px;
  background: #1c1c1c;
  border-bottom: 1px solid #2b2b2b;
  padding: 0 14px;
  font-size: 13px;
  flex-shrink: 0;
}
.pr-modes {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #141414;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid #282828;
}
.pr-modes span {
  color: #999;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.pr-modes span:hover {
  color: #fff;
}
.pr-modes span.active {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.pr-project-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}
.pr-edited {
  color: #888;
  font-weight: normal;
  font-size: 12px;
}
.pr-ws {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pr-ws span {
  color: #a3a3a3;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.pr-ws span:hover {
  color: #fff;
}
.pr-ws span.active {
  color: #3b82f6;
  font-weight: 600;
  border-bottom: 2px solid #3b82f6;
  border-radius: 0;
}

.pr-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  gap: 4px;
  padding: 4px;
  background: #111;
  overflow: hidden;
}
.pr-top {
  display: flex;
  flex: 1.15 1 0%;
  min-height: 0;
  gap: 4px;
}
.pr-bottom {
  display: flex;
  flex: 0.85 1 0%;
  min-height: 0;
  gap: 4px;
}

.pr-panel {
  background: #202020;
  border: 1px solid #2d2d2d;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.pr-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #181818;
  border-bottom: 1px solid #2d2d2d;
  padding: 4px 8px 0 8px;
  font-size: 12px;
  flex-shrink: 0;
}
.pr-tabs span {
  padding: 6px 12px;
  color: #949494;
  cursor: pointer;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  font-weight: 500;
}
.pr-tabs span:hover {
  color: #ddd;
}
.pr-tabs span.active {
  color: #ffffff;
  background: #202020;
  border: 1px solid #2d2d2d;
  border-bottom: 1px solid #202020;
  margin-bottom: -1px;
  font-weight: 600;
}
.pr-tab-menu {
  margin-left: auto;
  color: #888;
  font-size: 15px;
}

/* Premiere Text Panel (Novel Container) */
.pr-text-panel {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.pr-subtabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #1c1c1c;
  border-bottom: 1px solid #282828;
  flex-shrink: 0;
}
.pr-subtabs span {
  color: #888;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.pr-subtabs span.active {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  font-weight: 600;
}
.pr-text-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141414;
  border: 1px solid #2d2d2d;
  border-radius: 4px;
  padding: 3px 10px;
  color: #888;
  font-size: 12px;
}
.pr-text-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #181818;
  border-bottom: 1px solid #262626;
  font-size: 11.5px;
  color: #888;
  flex-shrink: 0;
}
.pr-badge-lang {
  background: #2a2a3e;
  color: #9999FF;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
}
.pr-text-right {
  margin-left: auto;
  color: #3b82f6;
  cursor: pointer;
  font-weight: 500;
}
.pr-text-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px;
  background: #1c1c1c;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: text;
}
.pr-cap {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #232323;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.pr-cap:hover {
  background: #2a2a2a;
}
.pr-cap.active-caption {
  background: rgba(59, 130, 246, 0.16);
  border-left-color: #3b82f6;
}
.pr-cap-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11.5px;
}
.pr-cap-speaker {
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10.5px;
}
.pr-cap-speaker.s1 {
  background: #1e3a5f;
  color: #93c5fd;
}
.pr-cap-speaker.s0 {
  background: #4c1d63;
  color: #e9d5ff;
}
.pr-cap-tc {
  color: #38bdf8;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
}
.pr-cap-text {
  color: #e2e8f0;
  line-height: 1.65;
  font-size: 13.5px;
}

/* Premiere Program Monitor - High Realistic 4K Visual */
.pr-program {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.pr-monitor {
  flex: 1 1 0%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-height: 0;
  overflow: hidden;
}
.pr-frame {
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 100%;
  background: #0b1320;
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.pr-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pr-scene-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Lower Third */
.pr-lower-third {
  position: absolute;
  bottom: 24px;
  left: 28px;
  display: flex;
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}
.pr-lt-bar {
  width: 5px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
}
.pr-lt-content {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pr-lt-content b {
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.pr-lt-content span {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 500;
}

.pr-mon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #181818;
  border-top: 1px solid #282828;
  font-size: 12px;
  flex-shrink: 0;
}
.pr-tc-blue {
  color: #38bdf8;
  font-family: 'Consolas', monospace;
  font-weight: bold;
}
.pr-tc-blue.big {
  font-size: 14px;
}
.pr-sel {
  color: #aaa;
  cursor: pointer;
  font-weight: 500;
}
.pr-tc-dur {
  color: #888;
  font-family: 'Consolas', monospace;
}
.pr-mon-scrub {
  height: 4px;
  background: #252525;
  position: relative;
  flex-shrink: 0;
}
.pr-mon-scrub i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 33%;
  background: #3b82f6;
}
.pr-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px;
  background: #1c1c1c;
  border-top: 1px solid #282828;
  color: #a0a0a0;
  flex-shrink: 0;
}
.pr-transport span {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.pr-transport span:hover {
  color: #fff;
  background: #262626;
}
.pr-transport span.pr-play {
  color: #38bdf8;
}

/* Premiere Project Bin */
.pr-project {
  flex: 0 0 240px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pr-proj-path {
  padding: 5px 10px;
  background: #181818;
  border-bottom: 1px solid #282828;
  font-size: 11px;
  color: #999;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}
.pr-media-head {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  background: #161616;
  color: #777;
  font-size: 11px;
  border-bottom: 1px solid #242424;
  flex-shrink: 0;
}
.pr-media-list {
  flex: 1 1 0%;
  overflow-y: auto;
  background: #1a1a1a;
  min-height: 0;
}
.pr-media-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-size: 12px;
  border-bottom: 1px solid #202020;
  cursor: pointer;
}
.pr-media-row:hover {
  background: #262626;
}
.pr-media-ic {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}
.pr-media-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ddd;
}
.pr-media-dur {
  color: #777;
  font-family: 'Consolas', monospace;
  font-size: 11px;
}

/* Premiere Tools */
.pr-tools {
  width: 36px;
  min-width: 36px;
  background: #1c1c1c;
  border: 1px solid #2d2d2d;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  gap: 6px;
  flex-shrink: 0;
}
.pr-tools span {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #999;
  cursor: pointer;
  transition: all 0.15s;
}
.pr-tools span:hover {
  background: #2a2a2a;
  color: #fff;
}
.pr-tools span.active {
  background: #2563eb;
  color: #fff;
}

/* Premiere Timeline */
.pr-timeline {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.pr-tl-top {
  display: flex;
  align-items: center;
  background: #181818;
  border-bottom: 1px solid #282828;
  padding: 4px 10px;
  gap: 14px;
  flex-shrink: 0;
}
.pr-ruler {
  flex: 1;
  height: 18px;
  position: relative;
  font-family: 'Consolas', monospace;
  font-size: 10px;
  color: #777;
  overflow: hidden;
}
.pr-ruler span {
  position: absolute;
  top: 0;
}
.pr-tracks {
  flex: 1 1 0%;
  background: #161616;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0;
  min-height: 0;
}
.pr-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33%;
  width: 1.5px;
  background: #38bdf8;
  z-index: 10;
  pointer-events: none;
}
.pr-playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 11px;
  height: 9px;
  background: #38bdf8;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.pr-track {
  display: flex;
  height: 26px;
  min-height: 26px;
  background: #1c1c1c;
  border-bottom: 1px solid #242424;
  flex-shrink: 0;
}
.pr-track-head {
  width: 75px;
  background: #202020;
  border-right: 1px solid #282828;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  font-size: 11px;
  flex-shrink: 0;
}
.pr-tk-name {
  font-weight: 700;
  color: #999;
}
.pr-tk-ico {
  font-size: 10px;
  color: #777;
  border: 1px solid #333;
  padding: 0 3px;
  border-radius: 2px;
}
.pr-track-lane {
  flex: 1;
  position: relative;
  background: #181818;
}
.pr-clip {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 2px;
  padding: 3px 8px;
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  border-left: 2px solid rgba(255,255,255,0.5);
}
.pr-clip.vid { background: #5353a2; }
.pr-clip.gfx { background: #b0437e; }
.pr-clip.aud { background: #2e7d56; }
.pr-clip.aud2 { background: #3d6a7d; }

.pr-meters {
  width: 32px;
  min-width: 32px;
  background: #181818;
  border: 1px solid #2d2d2d;
  border-radius: 3px;
  display: flex;
  padding: 8px 3px;
  gap: 3px;
  align-items: flex-end;
  flex-shrink: 0;
}
.pr-meter {
  flex: 1;
  height: 100%;
  background: #111;
  border-radius: 1px;
  display: flex;
  align-items: flex-end;
}
.pr-meter i {
  width: 100%;
  background: linear-gradient(0deg, #22c55e 0%, #eab308 70%, #ef4444 100%);
  border-radius: 1px;
}
.pr-meter-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 8px;
  color: #666;
  height: 100%;
  padding-left: 1px;
}

/* Premiere Boss View */
.pr-boss-head {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2d2d2d;
}
.pr-boss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 18px;
}
.pr-boss-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #262626;
}
.pr-boss-table td:first-child {
  color: #999;
  width: 180px;
}
.pr-boss-table td:last-child {
  color: #eee;
  font-family: 'Consolas', monospace;
}
.pr-boss-queue {
  background: #181818;
  border: 1px solid #2d2d2d;
  border-radius: 4px;
  padding: 12px;
}
.pr-boss-queue b {
  color: #eee;
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}
.pr-q {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 8px;
}
.pr-q-bar {
  flex: 1;
  height: 7px;
  background: #262626;
  border-radius: 4px;
  overflow: hidden;
}
.pr-q-bar i {
  display: block;
  height: 100%;
  background: #3b82f6;
}


/* ==========================================================================
   THEME 15: CLAUDE AI (.theme-claude)
   ========================================================================== */
body.theme-claude {
  background: #FAF9F5;
  color: #1D1C16;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
}
body.theme-claude * {
  box-sizing: border-box;
}

.cl-app {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: #FAF9F5;
}
.cl-sidebar {
  width: 260px;
  background: #F5F4EE;
  border-right: 1px solid #E5E3D8;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  flex-shrink: 0;
}
.cl-side-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
}
.cl-wordmark {
  font-size: 18px;
  font-weight: 700;
  font-family: Georgia, serif;
  color: #1D1C16;
  letter-spacing: -0.3px;
}
.cl-icon-btn {
  color: #6E6B62;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.cl-newchat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ECE9DF;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1D1C16;
  cursor: pointer;
  transition: background 0.15s;
}
.cl-newchat:hover {
  background: #E2DFD3;
}
.cl-plus {
  color: #D97757;
  display: flex;
}
.cl-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cl-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #6E6B62;
  font-size: 13px;
  cursor: pointer;
}
.cl-nav-item:hover {
  background: #ECE9DF;
  color: #1D1C16;
}
.cl-recents-label {
  font-size: 11px;
  font-weight: 600;
  color: #9C988D;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 8px 2px 8px;
}
.cl-recents {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cl-recent {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #4A4840;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cl-recent:hover {
  background: #ECE9DF;
  color: #1D1C16;
}
.cl-recent.active {
  background: #ECE9DF;
  color: #1D1C16;
  font-weight: 500;
}
.cl-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #ECE9DF;
  cursor: pointer;
}
.cl-user-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #D97757;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.cl-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cl-user-info b {
  font-size: 12px;
  color: #1D1C16;
}
.cl-user-info span {
  font-size: 10px;
  color: #8C887B;
}
.cl-user-caret {
  color: #8C887B;
}

.cl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #FAF9F5;
}
.cl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid #E5E3D8;
}
.cl-chat-title {
  font-size: 15px;
  font-weight: 600;
  color: #1D1C16;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.cl-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cl-share {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #D1CEBF;
  font-size: 12px;
  color: #4A4840;
  cursor: pointer;
}
.cl-share:hover {
  background: #F5F4EE;
}

.cl-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  justify-content: center;
}
.cl-thread {
  width: 100%;
  max-width: 760px;
}

.cl-user-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.cl-user-bubble {
  max-width: 85%;
  background: #F5F4EE;
  border: 1px solid #E5E3D8;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #1D1C16;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cl-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #DCD9CD;
  border-radius: 8px;
  padding: 6px 10px;
}
.cl-file-ic {
  background: #E05252;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 3px 5px;
  border-radius: 4px;
}
.cl-file-chip b {
  font-size: 12px;
  display: block;
  color: #1D1C16;
}
.cl-file-chip span {
  font-size: 10px;
  color: #8C887B;
}
.cl-av-sm {
  display: none;
}

.cl-assistant {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.cl-assistant-mark {
  flex-shrink: 0;
  margin-top: 2px;
}
.cl-assistant-body {
  flex: 1;
  min-width: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: #2D2B24;
}

/* Claude novel paragraphs */
.cl-para {
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  transition: background 0.15s;
  cursor: pointer;
}
.cl-para:hover {
  background: #F0EFEA;
}
.cl-para.active-para {
  background: #ECE9DF;
  border-left: 3px solid #D97757;
  padding-left: 7px;
}
.cl-h {
  font-size: 16px;
  font-weight: 700;
  color: #1D1C16;
  margin: 16px 0 8px 0;
}
.cl-list {
  padding-left: 20px;
  margin: 8px 0;
}
.cl-list li {
  margin-bottom: 6px;
}

.cl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: #8C887B;
  font-size: 12px;
}
.cl-actions span {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cl-actions span:hover {
  color: #1D1C16;
}
.cl-retry {
  margin-left: 8px;
}
.cl-mistake {
  font-size: 11px;
  color: #ABA79C;
  margin-top: 8px;
}

.cl-composer-wrap {
  padding: 0 24px 20px 24px;
  display: flex;
  justify-content: center;
}
.cl-composer {
  width: 100%;
  max-width: 760px;
  background: #F5F4EE;
  border: 1px solid #DCD9CD;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.cl-input {
  color: #8C887B;
  font-size: 14px;
  margin-bottom: 12px;
}
.cl-comp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cl-comp-left {
  display: flex;
  gap: 12px;
  color: #6E6B62;
}
.cl-cbtn {
  cursor: pointer;
  display: flex;
  align-items: center;
}
.cl-cbtn:hover {
  color: #1D1C16;
}
.cl-comp-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cl-model {
  font-size: 12px;
  font-weight: 500;
  color: #4A4840;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.cl-send {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #D97757;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


/* ==========================================================================
   THEME 16: CHATGPT (.theme-chatgpt)
   ========================================================================== */
body.theme-chatgpt {
  background: #ffffff;
  color: #0d0d0d;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}
body.theme-chatgpt * {
  box-sizing: border-box;
  letter-spacing: 0;
}
body.theme-chatgpt.has-pinned-navbar {
  padding-top: var(--unav-height, 40px) !important;
}
body.theme-chatgpt.controls-hidden {
  padding-top: 0 !important;
}

.gpt-app {
  display: flex;
  height: 100%;
  width: 100vw;
  background: #ffffff;
}
.gpt-sidebar {
  width: 260px;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 10px;
  gap: 2px;
  flex-shrink: 0;
  border-right: 1px solid #e7e7e7;
}
.gpt-side-top {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 4px 8px;
}
.gpt-wordmark {
  color: #0d0d0d;
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}
.gpt-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #424242;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gpt-icon-btn:hover {
  color: #0d0d0d;
  background: #ececec;
}
.gpt-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.gpt-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #171717;
  font-size: 14px;
  cursor: pointer;
}
.gpt-nav-item:hover {
  background: #ececec;
}
.gpt-nav-item svg,
.gpt-project-row svg {
  flex: 0 0 auto;
}
.gpt-project-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #171717;
  font-size: 14px;
  cursor: pointer;
}
.gpt-project-row:hover {
  background: #ececec;
}
.gpt-project-add {
  margin-left: auto;
  color: #6b6b6b;
  font-size: 20px;
  line-height: 1;
}
.gpt-chats-label {
  font-size: 12px;
  font-weight: 600;
  color: #5d5d5d;
  padding: 18px 10px 7px;
}
.gpt-chats {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.gpt-chats:hover {
  scrollbar-color: #c7c7c7 transparent;
}
.gpt-chat {
  position: relative;
  min-height: 36px;
  padding: 8px 32px 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #262626;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.gpt-chat:hover {
  background: #ececec;
  color: #0d0d0d;
}
.gpt-chat.active {
  background: #ececec;
  color: #0d0d0d;
}
.gpt-chat-more {
  position: absolute;
  right: 10px;
  top: 6px;
  color: #5f5f5f;
  font-size: 14px;
  opacity: 0;
}
.gpt-chat:hover .gpt-chat-more,
.gpt-chat.active .gpt-chat-more {
  opacity: 1;
}
.gpt-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
}
.gpt-user:hover {
  background: #ececec;
}
.gpt-user-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6f42c1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.gpt-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.gpt-user-info b {
  font-size: 13px;
  color: #171717;
}
.gpt-user-info span {
  font-size: 11px;
  color: #6b6b6b;
}
.gpt-user-more {
  margin-left: auto;
  color: #6b6b6b;
}

.gpt-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
}
.gpt-topbar {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.94);
  z-index: 4;
}
.gpt-model {
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #2f2f2f;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.gpt-model:hover {
  background: #f3f3f3;
}
.gpt-top-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gpt-share {
  border: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #171717;
  cursor: pointer;
}
.gpt-share:hover {
  background: #f3f3f3;
}
.gpt-top-avatar {
  width: 32px;
  height: 32px;
  margin-left: 5px;
  border-radius: 50%;
  background: #6f42c1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
}

.gpt-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 34px 24px 42px;
  display: flex;
  justify-content: center;
  scrollbar-color: #d0d0d0 transparent;
}
.gpt-thread {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
}
#chatgpt-story-view,
#chatgpt-boss-view {
  width: 100%;
}

.gpt-user-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.gpt-file-card {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: min(320px, 82%);
  min-height: 58px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 8px 10px;
}
.gpt-file-ic {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: #ff5c5c;
  color: #ffffff !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gpt-file-card b {
  max-width: 235px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: block;
  color: #171717;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gpt-file-card span {
  font-size: 12px;
  color: #6b6b6b;
}
.gpt-user-bubble {
  max-width: 72%;
  background: #f4f4f4;
  border-radius: 18px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #0d0d0d;
}

.gpt-assistant {
  margin-bottom: 24px;
}
.gpt-thought {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 13px;
  color: #5d5d5d;
  margin: 0 0 12px -7px;
  cursor: pointer;
}
.gpt-thought:hover {
  background: #f4f4f4;
}
.gpt-para {
  padding: 2px 0;
  margin: 0 0 10px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.7;
  color: #171717;
  transition: background-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.gpt-para > p {
  margin: 0;
}
.gpt-para:hover {
  background: #fafafa;
}
.gpt-para.active-para {
  background: #f7f7f7;
  box-shadow: none;
  color: #0d0d0d;
}
.gpt-h {
  font-size: 18px;
  font-weight: 600;
  color: #171717;
  margin: 18px 0 10px;
}
.gpt-list {
  padding-left: 20px;
  margin: 8px 0;
  color: #171717;
}
.gpt-list li {
  margin-bottom: 6px;
}
.gpt-code {
  background: #0d0d0d;
  border-radius: 8px;
  padding: 0 14px 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #f8f8f2;
  overflow-x: auto;
  margin: 12px 0;
}
.gpt-code-head {
  display: flex;
  justify-content: space-between;
  color: #b4b4b4;
  font-size: 12px;
  margin: 0 -14px 12px;
  padding: 9px 14px;
  border-bottom: 1px solid #2f2f2f;
}

.gpt-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  color: #6b6b6b;
  font-size: 13px;
}
.gpt-actions span {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gpt-actions span:hover {
  color: #171717;
  background: #f2f2f2;
}

.gpt-composer-wrap {
  flex: 0 0 auto;
  padding: 8px 24px 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.gpt-composer {
  width: 100%;
  max-width: 768px;
  min-height: 96px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 28px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.gpt-input {
  flex: 1;
  min-height: 34px;
  padding: 0 5px;
  color: #8f8f8f;
  font-size: 16px;
  line-height: 24px;
}
.gpt-composer-actions {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 5px;
}
.gpt-composer-spacer {
  flex: 1;
}
.gpt-cbtn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #303030;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gpt-cbtn:hover {
  color: #0d0d0d;
  background: #f2f2f2;
}
.gpt-tools-btn {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #303030;
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.gpt-tools-btn:hover {
  background: #f2f2f2;
}
.gpt-voice {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.gpt-voice:hover {
  background: #2f2f2f;
}
.gpt-disclaimer {
  font-size: 11px;
  line-height: 15px;
  color: #6b6b6b;
  text-align: center;
}

@media (max-width: 900px) {
  .gpt-sidebar {
    width: 224px;
  }
  .gpt-scroll {
    padding-inline: 20px;
  }
}

@media (max-width: 720px) {
  .gpt-sidebar {
    display: none;
  }
  .gpt-topbar {
    min-height: 54px;
    padding: 7px 10px;
  }
  .gpt-model {
    font-size: 17px;
  }
  .gpt-share span,
  .gpt-top-more {
    display: none;
  }
  .gpt-scroll {
    padding: 22px 14px 30px;
  }
  .gpt-user-bubble {
    max-width: 88%;
  }
  .gpt-para {
    font-size: 15px;
  }
  .gpt-composer-wrap {
    padding: 6px 10px 8px;
  }
  .gpt-composer {
    min-height: 88px;
    border-radius: 24px;
    padding: 12px 12px 8px;
  }
  .gpt-disclaimer {
    display: none;
  }
}


/* ==========================================================================
   CHATGPT THEME: DARK / LIGHT TOGGLE & USER MENU
   ========================================================================== */
.gpt-user-wrap {
  position: relative;
  width: 100%;
}
.gpt-user-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gpt-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #171717;
  cursor: pointer;
  transition: all 0.12s ease;
}
.gpt-menu-item:hover {
  background: #ececec;
  color: #0d0d0d;
}
.gpt-menu-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 4px 0;
}
.gpt-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gpt-theme-toggle .gpt-sun-icon,
.gpt-menu-item .gpt-sun-icon {
  display: none;
}
.gpt-theme-toggle .gpt-moon-icon,
.gpt-menu-item .gpt-moon-icon {
  display: block;
}

/* ==========================================================================
   CHATGPT THEME: DARK MODE (.theme-chatgpt.dark, .theme-chatgpt.dark-mode)
   ========================================================================== */
body.theme-chatgpt.dark,
body.theme-chatgpt.dark-mode {
  background: #212121 !important;
  color: #ececec !important;
}

body.theme-chatgpt.dark .gpt-app,
body.theme-chatgpt.dark-mode .gpt-app {
  background: #212121;
}

/* Dark Mode Sidebar */
body.theme-chatgpt.dark .gpt-sidebar,
body.theme-chatgpt.dark-mode .gpt-sidebar {
  background: #171717;
  border-right-color: #2f2f2f;
}

body.theme-chatgpt.dark .gpt-wordmark,
body.theme-chatgpt.dark-mode .gpt-wordmark {
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-icon-btn,
body.theme-chatgpt.dark-mode .gpt-icon-btn {
  color: #b4b4b4;
}

body.theme-chatgpt.dark .gpt-icon-btn:hover,
body.theme-chatgpt.dark-mode .gpt-icon-btn:hover {
  color: #ffffff;
  background: #212121;
}

body.theme-chatgpt.dark .gpt-nav-item,
body.theme-chatgpt.dark-mode .gpt-nav-item,
body.theme-chatgpt.dark .gpt-project-row,
body.theme-chatgpt.dark-mode .gpt-project-row {
  color: #b4b4b4;
}

body.theme-chatgpt.dark .gpt-nav-item:hover,
body.theme-chatgpt.dark-mode .gpt-nav-item:hover,
body.theme-chatgpt.dark .gpt-project-row:hover,
body.theme-chatgpt.dark-mode .gpt-project-row:hover {
  background: #212121;
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-project-add,
body.theme-chatgpt.dark-mode .gpt-project-add,
body.theme-chatgpt.dark .gpt-chats-label,
body.theme-chatgpt.dark-mode .gpt-chats-label {
  color: #8e8e8e;
}

body.theme-chatgpt.dark .gpt-chats,
body.theme-chatgpt.dark-mode .gpt-chats {
  scrollbar-color: #2f2f2f transparent;
}

body.theme-chatgpt.dark .gpt-chats:hover,
body.theme-chatgpt.dark-mode .gpt-chats:hover {
  scrollbar-color: #424242 transparent;
}

body.theme-chatgpt.dark .gpt-chat,
body.theme-chatgpt.dark-mode .gpt-chat {
  color: #b4b4b4;
}

body.theme-chatgpt.dark .gpt-chat:hover,
body.theme-chatgpt.dark-mode .gpt-chat:hover,
body.theme-chatgpt.dark .gpt-chat.active,
body.theme-chatgpt.dark-mode .gpt-chat.active {
  background: #212121;
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-chat-more,
body.theme-chatgpt.dark-mode .gpt-chat-more {
  color: #8e8e8e;
}

body.theme-chatgpt.dark .gpt-user:hover,
body.theme-chatgpt.dark-mode .gpt-user:hover {
  background: #212121;
}

body.theme-chatgpt.dark .gpt-user-info b,
body.theme-chatgpt.dark-mode .gpt-user-info b {
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-user-info span,
body.theme-chatgpt.dark-mode .gpt-user-info span,
body.theme-chatgpt.dark .gpt-user-more,
body.theme-chatgpt.dark-mode .gpt-user-more {
  color: #8e8e8e;
}

body.theme-chatgpt.dark .gpt-user-menu,
body.theme-chatgpt.dark-mode .gpt-user-menu {
  background: #212121;
  border-color: #383838;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

body.theme-chatgpt.dark .gpt-menu-item,
body.theme-chatgpt.dark-mode .gpt-menu-item {
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-menu-item:hover,
body.theme-chatgpt.dark-mode .gpt-menu-item:hover {
  background: #2f2f2f;
  color: #ffffff;
}

body.theme-chatgpt.dark .gpt-menu-divider,
body.theme-chatgpt.dark-mode .gpt-menu-divider {
  background: #2f2f2f;
}

/* Dark Mode Main & Topbar */
body.theme-chatgpt.dark .gpt-main,
body.theme-chatgpt.dark-mode .gpt-main {
  background: #212121;
}

body.theme-chatgpt.dark .gpt-topbar,
body.theme-chatgpt.dark-mode .gpt-topbar {
  background: rgba(33, 33, 33, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-chatgpt.dark .gpt-model,
body.theme-chatgpt.dark-mode .gpt-model {
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-model:hover,
body.theme-chatgpt.dark-mode .gpt-model:hover {
  background: #2f2f2f;
}

body.theme-chatgpt.dark .gpt-share,
body.theme-chatgpt.dark-mode .gpt-share {
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-share:hover,
body.theme-chatgpt.dark-mode .gpt-share:hover {
  background: #2f2f2f;
}

/* Dark Mode Content & Chat */
body.theme-chatgpt.dark .gpt-scroll,
body.theme-chatgpt.dark-mode .gpt-scroll {
  scrollbar-color: #424242 transparent;
}

body.theme-chatgpt.dark .gpt-file-card,
body.theme-chatgpt.dark-mode .gpt-file-card {
  background: #212121;
  border-color: #383838;
}

body.theme-chatgpt.dark .gpt-file-card b,
body.theme-chatgpt.dark-mode .gpt-file-card b {
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-file-card span,
body.theme-chatgpt.dark-mode .gpt-file-card span {
  color: #8e8e8e;
}

body.theme-chatgpt.dark .gpt-user-bubble,
body.theme-chatgpt.dark-mode .gpt-user-bubble {
  background: #2f2f2f;
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-thought,
body.theme-chatgpt.dark-mode .gpt-thought {
  color: #b4b4b4;
}

body.theme-chatgpt.dark .gpt-thought:hover,
body.theme-chatgpt.dark-mode .gpt-thought:hover {
  background: #2f2f2f;
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-para,
body.theme-chatgpt.dark-mode .gpt-para {
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-para:hover,
body.theme-chatgpt.dark-mode .gpt-para:hover {
  background: #262626;
}

body.theme-chatgpt.dark .gpt-para.active-para,
body.theme-chatgpt.dark-mode .gpt-para.active-para {
  background: #2f2f2f;
  color: #ffffff;
}

body.theme-chatgpt.dark .gpt-h,
body.theme-chatgpt.dark-mode .gpt-h,
body.theme-chatgpt.dark .gpt-list,
body.theme-chatgpt.dark-mode .gpt-list {
  color: #ececec;
}

body.theme-chatgpt.dark .gpt-code,
body.theme-chatgpt.dark-mode .gpt-code {
  background: #171717;
  border: 1px solid #303030;
  color: #f8f8f2;
}

body.theme-chatgpt.dark .gpt-code-head,
body.theme-chatgpt.dark-mode .gpt-code-head {
  color: #b4b4b4;
  border-bottom: 1px solid #303030;
}

body.theme-chatgpt.dark .gpt-actions,
body.theme-chatgpt.dark-mode .gpt-actions {
  color: #8e8e8e;
}

body.theme-chatgpt.dark .gpt-actions span:hover,
body.theme-chatgpt.dark-mode .gpt-actions span:hover {
  color: #ececec;
  background: #2f2f2f;
}

/* Dark Mode Composer */
body.theme-chatgpt.dark .gpt-composer-wrap,
body.theme-chatgpt.dark-mode .gpt-composer-wrap {
  background: #212121;
}

body.theme-chatgpt.dark .gpt-composer,
body.theme-chatgpt.dark-mode .gpt-composer {
  background: #2f2f2f;
  border-color: #383838;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

body.theme-chatgpt.dark .gpt-input,
body.theme-chatgpt.dark-mode .gpt-input {
  color: #8e8e8e;
}

body.theme-chatgpt.dark .gpt-cbtn,
body.theme-chatgpt.dark-mode .gpt-cbtn {
  color: #b4b4b4;
}

body.theme-chatgpt.dark .gpt-cbtn:hover,
body.theme-chatgpt.dark-mode .gpt-cbtn:hover {
  color: #ececec;
  background: #424242;
}

body.theme-chatgpt.dark .gpt-tools-btn,
body.theme-chatgpt.dark-mode .gpt-tools-btn {
  color: #b4b4b4;
}

body.theme-chatgpt.dark .gpt-tools-btn:hover,
body.theme-chatgpt.dark-mode .gpt-tools-btn:hover {
  color: #ececec;
  background: #424242;
}

body.theme-chatgpt.dark .gpt-voice,
body.theme-chatgpt.dark-mode .gpt-voice {
  background: #ececec;
  color: #212121;
}

body.theme-chatgpt.dark .gpt-voice:hover,
body.theme-chatgpt.dark-mode .gpt-voice:hover {
  background: #ffffff;
}

body.theme-chatgpt.dark .gpt-disclaimer,
body.theme-chatgpt.dark-mode .gpt-disclaimer {
  color: #8e8e8e;
}

/* Toggle Sun/Moon Icon State */
body.theme-chatgpt.dark .gpt-theme-toggle .gpt-sun-icon,
body.theme-chatgpt.dark-mode .gpt-theme-toggle .gpt-sun-icon,
body.theme-chatgpt.dark .gpt-menu-item .gpt-sun-icon,
body.theme-chatgpt.dark-mode .gpt-menu-item .gpt-sun-icon {
  display: block;
}

body.theme-chatgpt.dark .gpt-theme-toggle .gpt-moon-icon,
body.theme-chatgpt.dark-mode .gpt-theme-toggle .gpt-moon-icon,
body.theme-chatgpt.dark .gpt-menu-item .gpt-moon-icon,
body.theme-chatgpt.dark-mode .gpt-menu-item .gpt-moon-icon {
  display: none;
}

/* Dark Mode Stealth Editable */
body.theme-chatgpt.dark .stealth-editable:hover,
body.theme-chatgpt.dark [data-stealth-key]:hover,
body.theme-chatgpt.dark-mode .stealth-editable:hover,
body.theme-chatgpt.dark-mode [data-stealth-key]:hover {
  outline: 1px dashed rgba(255, 255, 255, 0.35) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

body.theme-chatgpt.dark .stealth-editable:focus,
body.theme-chatgpt.dark [data-stealth-key]:focus,
body.theme-chatgpt.dark-mode .stealth-editable:focus,
body.theme-chatgpt.dark-mode [data-stealth-key]:focus {
  outline: 2px solid #ffffff !important;
  background-color: #2f2f2f !important;
  color: #ececec !important;
}

/* Dark & Light Theme Stealth Editable Focus */
.theme-premiere .stealth-editable:hover,
.theme-premiere [data-stealth-key]:hover {
  outline: 1px dashed rgba(59, 130, 246, 0.6) !important;
  background-color: rgba(59, 130, 246, 0.12) !important;
}

.theme-premiere .stealth-editable:focus,
.theme-premiere [data-stealth-key]:focus {
  outline: 2px solid #3b82f6 !important;
  background-color: #1e293b !important;
  color: #ffffff !important;
}

.theme-chatgpt .stealth-editable:hover,
.theme-chatgpt [data-stealth-key]:hover {
  outline: 1px dashed rgba(0, 0, 0, 0.22) !important;
  background-color: rgba(0, 0, 0, 0.035) !important;
}

.theme-chatgpt .stealth-editable:focus,
.theme-chatgpt [data-stealth-key]:focus {
  outline: 2px solid #171717 !important;
  background-color: #ffffff !important;
  color: #0d0d0d !important;
}

.theme-claude .stealth-editable:hover,
.theme-claude [data-stealth-key]:hover {
  outline: 1px dashed rgba(217, 119, 87, 0.6) !important;
  background-color: rgba(217, 119, 87, 0.08) !important;
}

.theme-claude .stealth-editable:focus,
.theme-claude [data-stealth-key]:focus {
  outline: 2px solid #d97757 !important;
  background-color: #faf9f5 !important;
  color: #1d1c16 !important;
}

/* ==========================================================
   CUSTOM CAMOUFLAGE IMAGE PILL & DRAG-AND-DROP STYLES
   ========================================================== */
.unav-btn-custom-img {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.22);
  color: #38bdf8;
}
.unav-btn-custom-img:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.45);
  color: #7dd3fc;
}

.stealth-img-ctrl-pill {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px 6px;
  opacity: 0.55;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.stealth-img-ctrl-pill:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.stealth-img-btn {
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.stealth-img-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.stealth-img-btn.reset {
  color: #fca5a5;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0 12px 12px 0;
  padding-left: 7px;
}
.stealth-img-btn.reset:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fef2f2;
}

.stealth-img-dragover {
  outline: 2.5px dashed #38bdf8 !important;
  outline-offset: -4px !important;
  background-color: rgba(56, 189, 248, 0.08) !important;
  filter: brightness(1.1);
  transition: all 0.2s ease;
}

/* Canva Custom Stealth Image Boxes */
.canva-custom-orbit-box {
  width: 100%;
  max-height: 220px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.canva-custom-orbit-box img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.canva-custom-boss-box {
  width: 100%;
  max-height: 380px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.canva-custom-boss-box img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

/* PowerPoint Custom Stealth Image Boxes */
.ppt-custom-img-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 0;
}
.ppt-custom-img-body {
  width: 100%;
  text-align: center;
  background: #ffffff;
  border-radius: 4px;
  padding: 6px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.ppt-custom-img-body img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 3px;
  display: block;
  margin: 0 auto;
}
.ppt-custom-boss-box {
  margin: 14px 0;
  text-align: center;
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.ppt-custom-boss-box img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

.reader-tools-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: Arial, sans-serif;
  letter-spacing: 0;
}

.reader-tools-modal.open { display: flex; }
.reader-tools-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.reader-tools-dialog,
.reader-error-dialog {
  position: relative;
  width: min(760px, 96vw);
  max-height: min(760px, 88vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  color: #172033;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.reader-tools-header,
.reader-error-dialog > header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
}
.reader-tools-header > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.reader-tools-header strong { font-size: 16px; }
.reader-tools-header small { overflow: hidden; color: #64748b; text-overflow: ellipsis; white-space: nowrap; }
.reader-tools-icon-button,
.reader-error-dialog header button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #475569;
  font-size: 24px;
  cursor: pointer;
}
.reader-tools-tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
}
.reader-tools-tabs button { min-height: 42px; border: 0; border-bottom: 3px solid transparent; background: #f8fafc; color: #475569; cursor: pointer; }
.reader-tools-tabs button.active { border-bottom-color: #2563eb; background: #fff; color: #1d4ed8; font-weight: 700; }
.reader-tools-content {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px 24px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.reader-tools-storage { margin-bottom: 10px; color: #64748b; font-size: 12px; }
.reader-tools-list { display: grid; gap: 8px; padding-bottom: 8px; }
.reader-tools-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #dbe3ee; border-radius: 6px; background: #fff; }
.reader-tools-item.current { border-color: #2563eb; background: #eff6ff; }
.reader-tools-item-main { display: grid; min-width: 0; flex: 1; gap: 5px; }
.reader-tools-item-main strong,
.reader-tools-item-main small { overflow: hidden; text-overflow: ellipsis; }
.reader-tools-item-main small { color: #64748b; }
.reader-tools-item-main input,
.reader-search-form input { min-width: 0; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 4px; font: inherit; }
.reader-tools-actions { display: flex; gap: 6px; }
.reader-tools-actions button,
.reader-tools-toolbar button,
.reader-search-form button,
.reader-error-dialog footer button { padding: 7px 12px; border: 1px solid #2563eb; border-radius: 4px; background: #2563eb; color: #fff; cursor: pointer; }
.reader-tools-actions button.danger { border-color: #dc2626; background: #fff; color: #dc2626; }
.reader-tools-toolbar { margin-bottom: 12px; }
.reader-tools-empty { padding: 36px 16px; color: #64748b; text-align: center; }
.reader-toc-item,
.reader-search-result { display: flex; width: 100%; gap: 12px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 5px; background: #fff; color: #172033; text-align: left; cursor: pointer; }
.reader-toc-item { align-items: center; justify-content: space-between; }
.reader-toc-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-toc-item small { flex: 0 0 auto; color: #64748b; }
.reader-search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.reader-search-summary { min-height: 24px; color: #64748b; font-size: 12px; }
.reader-search-result { flex-direction: column; }
.reader-search-result span { color: #475569; line-height: 1.45; }
.reader-search-hit { outline: 3px solid #f59e0b !important; outline-offset: 2px; }
.reader-error-dialog { padding-bottom: 14px; }
.reader-error-dialog > p,
.reader-error-stage,
.reader-error-file,
.reader-error-dialog details { margin: 12px 16px; }
.reader-error-stage { color: #b45309; font-weight: 700; }
.reader-error-file { color: #64748b; font-size: 12px; }
.reader-error-dialog pre { max-height: 160px; overflow: auto; padding: 10px; background: #f1f5f9; white-space: pre-wrap; }
.reader-error-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 16px; }
.reader-loading-progress { width: min(360px, 80vw); height: 7px; overflow: hidden; border-radius: 4px; background: #dbe3ee; }
.reader-loading-progress-bar { width: 0; height: 100%; background: #2563eb; transition: width 160ms ease; }
.reader-loading-progress-label { min-height: 18px; color: #64748b; font-size: 12px; }
.reader-loading-cancel { padding: 8px 16px; border: 1px solid #dc2626; border-radius: 4px; background: #fff; color: #dc2626; cursor: pointer; }

@media (max-width: 680px) {
  .reader-tools-modal { padding: 8px; }
  .reader-tools-dialog, .reader-error-dialog { width: 100%; max-height: 94vh; }
  .reader-tools-content { max-height: none; }
  .reader-tools-item { align-items: stretch; flex-direction: column; }
  .reader-tools-actions button { flex: 1; }
  .reader-tools-tabs button { font-size: 12px; }
}


/* === Imported from css/gmail.css === */
/* ==========================================================================
   GMAIL THEME STYLES - AUTHENTIC GOOGLE WORKSPACE REPLICA
   ========================================================================== */

body.theme-gmail {
  margin: 0;
  padding: 0;
  background-color: #f6f8fc;
  font-family: Roboto, 'Google Sans', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f1f1f;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

body.theme-gmail *,
body.theme-gmail *::before,
body.theme-gmail *::after {
  box-sizing: border-box;
}

.gmail-app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #f6f8fc;
}

/* 1. TOP HEADER */
.gmail-header {
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: #f6f8fc;
  user-select: none;
}

.gmail-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
}

.gmail-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #5f6368;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gmail-icon-btn:hover {
  background-color: #e8eaed;
}

.gmail-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding-left: 4px;
}

.gmail-brand-text {
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #5f6368;
  letter-spacing: -0.5px;
}

.gmail-brand-img {
  width: 109px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.gmail-header-center {
  flex: 1 1 720px;
  max-width: 720px;
  margin: 0 16px;
}

.gmail-search-container {
  width: 100%;
}

.gmail-search-bar {
  display: flex;
  align-items: center;
  background-color: #eaf1fb;
  border-radius: 24px;
  height: 46px;
  padding: 0 8px;
  margin: 0;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.gmail-search-bar:focus-within,
.gmail-search-bar:hover {
  background-color: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
}

.gmail-search-icon-btn,
.gmail-search-tune-btn {
  border: none;
  background: transparent;
  color: #5f6368;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.gmail-search-icon-btn:hover,
.gmail-search-tune-btn:hover {
  background-color: rgba(60,64,67,0.08);
}

.gmail-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 16px;
  color: #1f1f1f;
  padding: 0 8px;
}

.gmail-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.gmail-gemini-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gmail-gemini-btn:hover {
  background-color: #e8eaed;
}

.gmail-upgrade-pill {
  height: 36px;
  border-radius: 18px;
  border: 1px solid #c7c7c7;
  background-color: #ffffff;
  color: #1a73e8;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 4px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gmail-upgrade-pill:hover {
  background-color: #f8fafd;
  border-color: #1a73e8;
}

.gmail-avatar-wrap {
  margin-left: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.gmail-avatar-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gmail-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #00796b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmail-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. BODY LAYOUT */
.gmail-body {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

/* SIDEBAR */
.gmail-sidebar {
  width: 256px;
  flex: 0 0 256px;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  user-select: none;
}

.gmail-compose-wrap {
  margin-bottom: 16px;
}

.gmail-compose-btn {
  height: 56px;
  padding: 0 24px 0 18px;
  border-radius: 16px;
  border: none;
  background-color: #c2e7ff;
  color: #001d35;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3);
  transition: box-shadow 0.2s, background-color 0.2s;
}

.gmail-compose-btn:hover {
  background-color: #b3dbf7;
  box-shadow: 0 1px 3px 1px rgba(60,64,67,0.15), 0 2px 8px 4px rgba(60,64,67,0.1);
}

.gmail-folder-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gmail-folder-item {
  height: 34px;
  border-radius: 17px;
  padding: 0 16px 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #202124;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gmail-folder-item:hover {
  background-color: #e8eaed;
}

.gmail-folder-item.active {
  background-color: #d3e3fd;
  color: #001d35;
  font-weight: 600;
}

.gmail-folder-label {
  flex: 1;
}

.gmail-folder-count {
  font-size: 12px;
  font-weight: 700;
}

/* MAIN EMAIL READING PANE */
.gmail-content-pane {
  flex: 1 1 0%;
  min-width: 0;
  background-color: #ffffff;
  border-radius: 16px 16px 0 0;
  margin-right: 16px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0,0,0,0.06);
}

/* TOOLBAR */
.gmail-toolbar {
  height: 48px;
  flex: 0 0 48px;
  border-bottom: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
}

.gmail-toolbar-left,
.gmail-toolbar-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.gmail-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #5f6368;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.15s ease;
}

.gmail-tool-btn:hover {
  background-color: #f1f3f4;
}

.gmail-sep {
  width: 1px;
  height: 20px;
  background-color: #dadce0;
  margin: 0 8px;
}

.gmail-page-indicator {
  font-size: 12px;
  color: #5f6368;
  margin-right: 8px;
}

/* READING VIEW & SCROLL CONTAINER */
.gmail-reading-container {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gmail-reading-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 40px 60px;
}

/* SUBJECT ROW */
.gmail-subject-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f3f4;
  padding-bottom: 16px;
}

.gmail-subject-title {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: #1f1f1f;
  line-height: 1.35;
  outline: none;
  cursor: text;
}

.gmail-subject-title:focus {
  background-color: #f8fafd;
  border-radius: 4px;
}

.gmail-subject-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gmail-badge-inbox {
  font-size: 11px;
  background-color: #e0e0e0;
  color: #444444;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.gmail-badge-tag {
  font-size: 11px;
  background-color: #f1f3f4;
  color: #5f6368;
  padding: 3px 8px;
  border-radius: 4px;
}

/* SENDER CARD */
.gmail-sender-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.gmail-sender-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #00796b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gmail-sender-meta {
  flex: 1;
}

.gmail-sender-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.gmail-sender-name {
  font-size: 14px;
  font-weight: 700;
  color: #202124;
}

.gmail-sender-email {
  font-size: 12px;
  color: #5f6368;
}

.gmail-email-time {
  margin-left: auto;
  font-size: 12px;
  color: #5f6368;
}

.gmail-recipient-line {
  font-size: 12px;
  color: #5f6368;
  margin-top: 2px;
}

.gmail-sender-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5f6368;
  font-size: 18px;
  cursor: pointer;
}

.gmail-star-btn {
  font-size: 20px;
  line-height: 1;
}

.gmail-action-icon {
  font-size: 16px;
  line-height: 1;
}

/* EMAIL BODY & STORY STREAM */
.gmail-email-body-content {
  font-size: 14px;
  line-height: 1.75;
  color: #202124;
  max-width: 900px;
}

.gmail-email-intro-text {
  margin-bottom: 20px;
  color: #444746;
  font-style: italic;
  padding: 10px 14px;
  background-color: #f8fafd;
  border-left: 3px solid #1a73e8;
  border-radius: 0 4px 4px 0;
}

.gmail-stream-wrapper {
  margin: 16px 0;
}

.gmail-story-para {
  margin: 0 0 12px 0;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-left-color 0.15s ease;
  line-height: 1.75;
  overflow-x: hidden !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

.gmail-para-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.gmail-para-meta {
  display: block;
  font-size: 11px;
  color: #5f6368;
  margin-top: 4px;
  user-select: none;
}

.gmail-section-heading {
  font-size: 13px;
  font-weight: 600;
  color: #1a73e8;
  padding: 6px 0 10px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #e0e0e0;
}

.gmail-story-para:hover {
  background-color: #f8f9fa;
}

.gmail-story-para.active-email-para,
.gmail-story-para.active-chunk {
  background-color: #e8f0fe !important;
  border-left: 3px solid #1a73e8;
  padding-left: 9px;
}

.gmail-email-signoff {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed #dadce0;
  line-height: 1.6;
}

/* QUICK REPLY BAR */
.gmail-reply-bar {
  margin-top: 36px;
  display: flex;
  gap: 12px;
}

.gmail-reply-btn {
  height: 38px;
  padding: 0 20px;
  border-radius: 19px;
  border: 1px solid #747775;
  background-color: #ffffff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gmail-reply-btn:hover {
  background-color: #f1f3f4;
}

/* BOSS VIEW */
.gmail-boss-container {
  padding: 32px 40px;
  background-color: #ffffff;
  flex: 1 1 0%;
  overflow-y: auto;
}

.gmail-boss-header {
  border-bottom: 2px solid #ea4335;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.gmail-boss-header h2 {
  margin: 0;
  font-size: 18px;
  color: #c5221f;
}

.gmail-boss-body {
  font-size: 14px;
  line-height: 1.65;
  color: #3c4043;
}


/* === Imported from css/outlook.css === */
/* ==========================================================================
   OUTLOOK THEME STYLES - AUTHENTIC MICROSOFT 365 REPLICA
   ========================================================================== */

body.theme-outlook {
  margin: 0;
  padding: 0;
  background-color: #f3f2f1;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: #201f1e;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

body.theme-outlook *,
body.theme-outlook *::before,
body.theme-outlook *::after {
  box-sizing: border-box;
}

.outlook-app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #f3f2f1;
}

/* 1. TOP HEADER (MICROSOFT 365 RIBBON) */
.outlook-header {
  height: 48px;
  flex: 0 0 48px;
  background-color: #0078d4;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
}

.outlook-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.outlook-waffle-btn {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.outlook-waffle-btn:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.outlook-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.outlook-header-center {
  flex: 1 1 480px;
  max-width: 480px;
  margin: 0 16px;
}

.outlook-search-bar {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  height: 32px;
  padding: 0 12px;
  color: #ffffff;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.outlook-search-bar:focus-within,
.outlook-search-bar:hover {
  background-color: #ffffff;
  color: #242424;
}

.outlook-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  outline: none;
  font-size: 13px;
  margin-left: 8px;
}

.outlook-search-input::placeholder {
  color: inherit;
  opacity: 0.8;
}

.outlook-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.outlook-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.outlook-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

.outlook-avatar-wrap {
  margin-left: 8px;
  cursor: pointer;
}

.outlook-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #107c41;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. BODY LAYOUT */
.outlook-body {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

/* 2A. LEFT APP RAIL */
.outlook-app-rail {
  width: 48px;
  flex: 0 0 48px;
  background-color: #f0f0f0;
  border-right: 1px solid #e1dfdd;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
  user-select: none;
}

.outlook-rail-item {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #605e5c;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.outlook-rail-item:hover {
  background-color: #e1dfdd;
  color: #201f1e;
}

.outlook-rail-item.active {
  background-color: #ffffff;
  color: #0078d4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 2B. FOLDER PANE */
.outlook-folder-pane {
  width: 190px;
  flex: 0 0 190px;
  background-color: #faf9f8;
  border-right: 1px solid #edebe9;
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  user-select: none;
}

.outlook-new-mail-wrap {
  margin-bottom: 12px;
}

.outlook-new-mail-btn {
  width: 100%;
  height: 36px;
  border-radius: 4px;
  border: none;
  background-color: #0078d4;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.outlook-new-mail-btn:hover {
  background-color: #106ebe;
}

.outlook-folder-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.outlook-folder-item {
  height: 32px;
  border-radius: 4px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #323130;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.outlook-folder-item:hover {
  background-color: #edebe9;
}

.outlook-folder-item.active {
  background-color: #e1dfdd;
  color: #0078d4;
  font-weight: 600;
}

.outlook-folder-name {
  flex: 1;
}

.outlook-folder-badge {
  font-size: 11px;
  font-weight: 600;
  color: #0078d4;
}

/* 2C. MIDDLE MESSAGE LIST PANE */
.outlook-message-list-pane {
  width: 320px;
  flex: 0 0 320px;
  background-color: #ffffff;
  border-right: 1px solid #edebe9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.outlook-filter-tabs {
  height: 40px;
  flex: 0 0 40px;
  border-bottom: 1px solid #edebe9;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 20px;
  user-select: none;
}

.outlook-filter-tab {
  font-size: 13px;
  font-weight: 600;
  color: #605e5c;
  cursor: pointer;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.outlook-filter-tab.active {
  color: #201f1e;
  border-bottom-color: #0078d4;
}

.outlook-messages-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
}

.outlook-msg-card {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f2f1;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.outlook-msg-card:hover {
  background-color: #f8f9fa;
}

.outlook-msg-card.active {
  background-color: #eff6fc;
  border-left: 3px solid #0078d4;
  padding-left: 13px;
}

.outlook-msg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.outlook-msg-sender {
  font-size: 13px;
  font-weight: 600;
  color: #201f1e;
}

.outlook-msg-time {
  font-size: 11px;
  color: #605e5c;
}

.outlook-msg-subject {
  font-size: 13px;
  font-weight: 500;
  color: #323130;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.outlook-msg-preview {
  font-size: 12px;
  color: #605e5c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2D. READING PANE */
.outlook-reading-pane {
  flex: 1 1 0%;
  min-width: 0;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.outlook-command-bar {
  height: 44px;
  flex: 0 0 44px;
  border-bottom: 1px solid #edebe9;
  background-color: #faf9f8;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
  user-select: none;
}

.outlook-cmd-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 2px;
  border: none;
  background: transparent;
  color: #323130;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.outlook-cmd-btn:hover {
  background-color: #edebe9;
}

.outlook-cmd-sep {
  width: 1px;
  height: 18px;
  background-color: #edebe9;
  margin: 0 4px;
}

.outlook-email-view {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.outlook-email-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 36px 60px;
}

.outlook-subject-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #edebe9;
  padding-bottom: 14px;
}

.outlook-subject-text {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #201f1e;
  line-height: 1.35;
  outline: none;
  cursor: text;
}

.outlook-subject-text:focus {
  background-color: #f8fafd;
  border-radius: 4px;
}

.outlook-sender-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.outlook-sender-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #0078d4;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.outlook-sender-info {
  flex: 1;
}

.outlook-sender-name-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.outlook-sender-name {
  font-size: 14px;
  font-weight: 600;
  color: #201f1e;
}

.outlook-sender-addr {
  font-size: 12px;
  color: #605e5c;
}

.outlook-to-line {
  font-size: 12px;
  color: #605e5c;
  margin-top: 2px;
}

.outlook-body-text-pane {
  font-size: 14px;
  line-height: 1.75;
  color: #242424;
  max-width: 900px;
}

.outlook-intro-notice {
  margin-bottom: 20px;
  color: #444746;
  font-style: italic;
  padding: 10px 14px;
  background-color: #f8f9fa;
  border-left: 3px solid #0078d4;
  border-radius: 0 4px 4px 0;
}

.outlook-stream-wrapper {
  margin: 16px 0;
}

.outlook-story-para {
  margin: 0 0 12px 0;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-left-color 0.15s ease;
  line-height: 1.75;
  overflow-x: hidden !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

.outlook-para-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.outlook-para-meta {
  display: block;
  font-size: 11px;
  color: #605e5c;
  margin-top: 4px;
  user-select: none;
}

.outlook-section-heading {
  font-size: 13px;
  font-weight: 600;
  color: #0078d4;
  padding: 6px 0 10px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #edebe9;
}

.outlook-story-para:hover {
  background-color: #f3f2f1;
}

.outlook-story-para.active-outlook-para,
.outlook-story-para.active-chunk {
  background-color: #deecf9 !important;
  border-left: 3px solid #0078d4;
  padding-left: 9px;
}

.outlook-signoff {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed #edebe9;
  line-height: 1.6;
}

/* BOSS VIEW */
.outlook-boss-container {
  padding: 32px 36px;
  background-color: #ffffff;
  flex: 1 1 0%;
  overflow-y: auto;
}

.outlook-boss-banner {
  background-color: #fff4ce;
  border-left: 4px solid #ffb900;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #323130;
}

.outlook-boss-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #201f1e;
}

.outlook-boss-body {
  font-size: 14px;
  line-height: 1.65;
  color: #323130;
}

/* ==========================================================
   INLINE STORY IMAGE LINK & STEALTH IMAGE VIEWER MODAL
   ========================================================== */
.stealth-inline-img-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.28);
  color: #0284c7;
  font-weight: 600;
  font-size: 0.94em;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
  max-width: 100%;
}

.stealth-inline-img-link:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.5);
  color: #0369a1;
  text-decoration: none;
}

.stealth-inline-img-link:active {
  transform: translateY(1px);
}

.stealth-inline-img-icon {
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.9;
}

.stealth-inline-img-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stealth-inline-img-badge {
  flex-shrink: 0;
  font-size: 0.82em;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.14);
  color: #0369a1;
}

/* Dark-theme adaptation for inline image link */
.theme-vscode .stealth-inline-img-link,
.theme-photoshop .stealth-inline-img-link,
.theme-blender .stealth-inline-img-link,
.theme-autocad .stealth-inline-img-link,
.theme-premiere .stealth-inline-img-link,
.theme-capcut .stealth-inline-img-link,
.theme-figma .stealth-inline-img-link {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.theme-vscode .stealth-inline-img-link:hover,
.theme-photoshop .stealth-inline-img-link:hover,
.theme-blender .stealth-inline-img-link:hover,
.theme-autocad .stealth-inline-img-link:hover,
.theme-premiere .stealth-inline-img-link:hover,
.theme-capcut .stealth-inline-img-link:hover,
.theme-figma .stealth-inline-img-link:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  color: #7dd3fc;
}

.theme-vscode .stealth-inline-img-badge,
.theme-photoshop .stealth-inline-img-badge,
.theme-blender .stealth-inline-img-badge,
.theme-autocad .stealth-inline-img-badge,
.theme-premiere .stealth-inline-img-badge,
.theme-capcut .stealth-inline-img-badge,
.theme-figma .stealth-inline-img-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #bae6fd;
}

/* Stealth Image Viewer Modal Overlay */
.stealth-img-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.stealth-img-viewer-overlay.show {
  display: flex;
}

.stealth-img-viewer-card {
  width: min(980px, 94vw);
  height: min(760px, 90vh);
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.stealth-img-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #1e293b;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  flex-shrink: 0;
}

.stealth-img-viewer-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.stealth-img-viewer-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stealth-img-viewer-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stealth-img-viewer-counter {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  flex-shrink: 0;
}

.stealth-img-viewer-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.stealth-img-ctrl-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.stealth-img-ctrl-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.stealth-img-ctrl-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.stealth-img-zoom-label {
  min-width: 52px;
  font-family: Consolas, monospace;
}

.stealth-img-ctrl-divider {
  width: 1px;
  height: 18px;
  background: rgba(148, 163, 184, 0.24);
  margin: 0 2px;
}

.stealth-img-close-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.stealth-img-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.stealth-img-viewer-viewport {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  position: relative;
}

.stealth-img-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transform-origin: center center;
  transition: transform 0.15s ease;
  background: #ffffff;
}

.stealth-img-viewer-status {
  color: #94a3b8;
  font-size: 13.5px;
  text-align: center;
  padding: 24px;
}

.stealth-img-viewer-footer {
  padding: 9px 16px;
  background: #1e293b;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: #94a3b8;
  flex-shrink: 0;
}


/* ==========================================================================
   24. THEME JIRA SOFTWARE (ATLASSIAN JIRA CLOUD SUITE - BEYOND GRAVITY)
   ========================================================================== */
body.theme-jira {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #172b4d;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

body.theme-jira *,
body.theme-jira *::before,
body.theme-jira *::after {
  box-sizing: border-box;
}

.jira-app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #ffffff;
}

/* 1. TOP GLOBAL NAVIGATION (Atlassian Suite, exact screenshot layout) */
.jira-top-nav {
  height: 56px;
  flex: 0 0 56px;
  background-color: #ffffff;
  border-bottom: 1px solid #dfe1e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  z-index: 100;
}

.jira-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.jira-app-switcher {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #42526e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.jira-app-switcher:hover {
  background-color: #ebecf0;
}

.jira-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0052cc;
  padding: 4px 6px;
  border-radius: 4px;
}

.jira-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #172b4d;
}

.jira-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 10px;
  height: 100%;
}

.jira-nav-item {
  background: transparent;
  border: none;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  color: #42526e;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}

.jira-nav-item:hover {
  background-color: #ebecf0;
  color: #172b4d;
}

.jira-nav-item.active {
  color: #0052cc;
  font-weight: 600;
  border-bottom: 3px solid #0052cc;
  border-radius: 0;
}

.jira-chevron {
  font-size: 10px;
  color: #6b778c;
  line-height: 1;
}

.jira-btn-create {
  background-color: #0052cc;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 8px;
  transition: background-color 0.15s ease;
}

.jira-btn-create:hover {
  background-color: #0065ff;
}

.jira-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jira-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  padding: 4px 10px;
  width: 200px;
  height: 32px;
  transition: border-color 0.15s ease;
}

.jira-search-bar:focus-within {
  border-color: #4c9aff;
  box-shadow: 0 0 0 1px #4c9aff;
}

.jira-search-bar svg {
  color: #6b778c;
  flex-shrink: 0;
}

.jira-search-bar input {
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  color: #172b4d;
  width: 100%;
}

.jira-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #42526e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.jira-icon-btn:hover {
  background-color: #ebecf0;
}

.jira-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jira-avatar-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0052cc;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 0 2px #dfe1e6;
}

/* 2. BODY LAYOUT (PROJECT SIDEBAR + MAIN WORKSPACE) */
.jira-layout-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* PROJECT SIDEBAR (Beyond Gravity) */
.jira-sidebar {
  width: 240px;
  flex: 0 0 240px;
  background-color: #fafbfc;
  border-right: 1px solid #ebecf0;
  display: flex;
  flex-direction: column;
  padding: 16px 8px;
  user-select: none;
  overflow-y: auto;
}

.jira-sidebar-project-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  margin-bottom: 8px;
}

.jira-project-avatar.beyond-gravity {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #6554c0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jira-project-meta {
  overflow: hidden;
}

.jira-project-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #172b4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jira-project-type {
  font-size: 11px;
  color: #6b778c;
}

.jira-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
}

.jira-menu-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b778c;
  text-transform: uppercase;
  padding: 12px 10px 4px;
  letter-spacing: 0.5px;
}

.jira-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #42526e;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.jira-sidebar-link:hover {
  background-color: #ebecf0;
  color: #172b4d;
}

.jira-sidebar-link.active {
  background-color: #deebff;
  color: #0052cc;
  font-weight: 600;
  border-left: 3px solid #0052cc;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.jira-sb-svg {
  flex-shrink: 0;
  color: #42526e;
}

.jira-sidebar-link.active .jira-sb-svg {
  color: #0052cc;
}

.jira-sidebar-link.jira-sb-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #ebecf0;
}

/* MAIN CONTENT AREA */
.jira-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
}

/* ==========================================================
   A. KANBAN BOARD VIEW (Exact Beyond Gravity Board)
   ========================================================== */
.jira-board-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #ffffff;
}

.jira-board-top-section {
  padding: 20px 32px 14px;
  flex-shrink: 0;
}

.jira-board-breadcrumbs {
  font-size: 13px;
  color: #6b778c;
  margin-bottom: 6px;
}

.jira-board-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.jira-board-title {
  font-size: 24px;
  font-weight: 600;
  color: #172b4d;
  margin: 0;
}

.jira-board-title-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.jira-board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.jira-board-toolbar-left,
.jira-board-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jira-board-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  background: #ffffff;
  padding: 4px 8px;
  width: 140px;
  height: 32px;
}

.jira-board-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  background: transparent;
  color: #172b4d;
}

.jira-board-search-box svg {
  color: #6b778c;
}

.jira-avatar-stack {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.jira-stack-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -6px;
  display: inline-block;
  background-size: cover;
  background-position: center;
}

.jira-stack-avatar:first-child {
  margin-left: 0;
}

.jira-stack-avatar.a1 { background: #0052cc; }
.jira-stack-avatar.a2 { background: #36b37e; }
.jira-stack-avatar.a3 { background: #ff5630; }
.jira-stack-avatar.a4 { background: #6554c0; }
.jira-stack-avatar.more {
  background: #f4f5f7;
  color: #42526e;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jira-pill-filter {
  background: #f4f5f7;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #42526e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.jira-pill-filter:hover {
  background-color: #ebecf0;
}

.jira-group-by-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jira-group-by-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b778c;
  letter-spacing: 0.5px;
}

.jira-btn-insights {
  background: #f4f5f7;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #42526e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jira-btn-insights:hover {
  background-color: #ebecf0;
}

.btn-add-col {
  background: #f4f5f7;
  border-radius: 3px;
  width: 32px;
  height: 32px;
}

.jira-kanban-board-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 32px 24px;
}

.jira-kanban-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 14px;
  height: 100%;
  align-items: start;
}

.jira-board-col {
  background-color: #f4f5f7;
  border-radius: 4px;
  padding: 10px 10px 14px;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.jira-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 2px 4px;
}

.jira-col-name {
  font-size: 12px;
  font-weight: 700;
  color: #5e6c84;
  letter-spacing: 0.3px;
}

.jira-col-count {
  font-size: 12px;
  font-weight: 600;
  color: #5e6c84;
}

.jira-check-green {
  color: #36b37e;
  font-weight: bold;
  margin-left: 2px;
}

.jira-col-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jira-kanban-card {
  background: #ffffff;
  border-radius: 3px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.2);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  user-select: none;
  border-left: 3px solid transparent;
}

.jira-kanban-card:hover {
  box-shadow: 0 2px 6px rgba(9, 30, 66, 0.25);
  transform: translateY(-1px);
}

.jira-kanban-card.active-card {
  border-left-color: #0052cc;
  background-color: #ffffff;
}

.jira-card-summary {
  font-size: 13.5px;
  font-weight: 400;
  color: #172b4d;
  line-height: 1.4;
  margin-bottom: 8px;
}

.jira-card-badge-row {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.jira-pill-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.jira-pill-tag.tag-blue {
  background-color: #0052cc;
  color: #ffffff;
}

.jira-pill-tag.tag-green {
  background-color: #006644;
  color: #ffffff;
}

.jira-pill-tag.tag-purple {
  background-color: #5243aa;
  color: #ffffff;
}

.jira-pill-tag.tag-yellow {
  background-color: #ffab00;
  color: #172b4d;
}

.jira-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.jira-card-key-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
}

.jira-story-icon {
  font-size: 12px;
  color: #36b37e;
}

.jira-tag-key {
  color: #5e6c84;
  font-weight: 600;
  font-size: 11.5px;
}

.jira-tag-key.highlight {
  color: #0052cc;
  font-weight: 700;
}

.jira-card-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #dfe1e6;
  flex-shrink: 0;
}

.jira-card-avatar.a1 { background-color: #0052cc; }
.jira-card-avatar.a2 { background-color: #36b37e; }
.jira-card-avatar.a3 { background-color: #ff5630; }
.jira-card-avatar.a4 { background-color: #6554c0; }

/* ==========================================================
   B. STORY READING LAYOUT (Issue Detail Pane)
   ========================================================== */
.jira-story-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #ffffff;
}

.jira-subnav-bar {
  height: 44px;
  flex: 0 0 44px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ebecf0;
  background-color: #ffffff;
  user-select: none;
}

.jira-breadcrumbs {
  font-size: 13px;
  color: #6b778c;
}

.jira-issue-key {
  color: #0052cc;
  font-weight: 600;
}

.jira-subnav-actions {
  display: flex;
  gap: 6px;
}

.jira-btn-subaction {
  background: #f4f5f7;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #42526e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.jira-btn-subaction:hover {
  background-color: #ebecf0;
  color: #172b4d;
}

.jira-btn-subaction.active {
  background-color: #deebff;
  border-color: #b3d4ff;
  color: #0052cc;
  font-weight: 600;
}

/* SCROLL CONTAINER & ISSUE LAYOUT */
.jira-issue-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 60px;
  background-color: #ffffff;
}

.jira-issue-page-layout {
  display: flex;
  gap: 36px;
  max-width: 1360px;
  margin: 0 auto;
}

.jira-issue-main-col {
  flex: 1 1 68%;
  min-width: 0;
}

.jira-issue-side-col {
  flex: 0 0 320px;
  min-width: 280px;
}

/* ISSUE HEADER & ACTIONS */
.jira-issue-summary-box {
  margin-bottom: 16px;
}

.jira-issue-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b778c;
  margin-bottom: 8px;
}

.jira-type-icon {
  font-size: 14px;
}

.jira-issue-title {
  font-size: 22px;
  font-weight: 600;
  color: #172b4d;
  margin: 0;
  line-height: 1.35;
  outline: none;
  cursor: text;
  border-radius: 3px;
  padding: 2px 4px;
  margin-left: -4px;
}

.jira-issue-title:focus {
  background-color: #ebecf0;
  box-shadow: 0 0 0 1px #4c9aff;
}

.jira-issue-actions-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.jira-pill-action {
  background: #f4f5f7;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #42526e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.jira-pill-action:hover {
  background-color: #ebecf0;
  color: #172b4d;
}

.jira-pill-action.active {
  background-color: #deebff;
  border-color: #b3d4ff;
  color: #0052cc;
  font-weight: 600;
}

/* SECTION CARDS */
.jira-section-card {
  margin-bottom: 26px;
}

.jira-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #ebecf0;
  padding-bottom: 8px;
}

.jira-section-header h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: #172b4d;
  margin: 0;
}

.jira-desc-prologue {
  background-color: #fafbfc;
  border-left: 3px solid #0052cc;
  padding: 10px 14px;
  border-radius: 0 3px 3px 0;
  margin-bottom: 14px;
  font-size: 13px;
  color: #42526e;
  line-height: 1.5;
}

.jira-desc-prologue p {
  margin: 0;
}

.jira-desc-note {
  margin-top: 6px !important;
  font-size: 12px;
  color: #6b778c;
}

/* STORY STREAM IN JIRA */
.jira-story-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}

.jira-log-item {
  background-color: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.jira-log-item:hover {
  background-color: #f8fafc;
  border-color: #c1c7d0;
  box-shadow: 0 1px 3px rgba(9, 30, 66, 0.08);
}

.jira-log-item.active-jira-item {
  background-color: #eff6ff;
  border-color: #388bff;
  box-shadow: 0 0 0 1px #388bff;
  border-left: 3px solid #0052cc;
}

.jira-section-heading {
  font-size: 12.5px;
  font-weight: 700;
  color: #0052cc;
  background-color: #e6f0ff;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  display: inline-block;
}

.jira-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.jira-log-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  background-color: #dfe1e6;
  color: #172b4d;
  padding: 2px 6px;
  border-radius: 3px;
}

.jira-log-meta {
  font-size: 11px;
  color: #6b778c;
}

.jira-log-body {
  font-size: 14px;
  line-height: 1.6;
  color: #172b4d;
  word-break: break-word;
}

/* COMMENTS SECTION */
.jira-activity-tabs {
  display: flex;
  gap: 6px;
}

.jira-tab-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6b778c;
  cursor: pointer;
}

.jira-tab-btn.active {
  border-bottom: 2px solid #0052cc;
  color: #0052cc;
  font-weight: 600;
}

.jira-comment-input-box {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0 16px;
}

.jira-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #0052cc;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.jira-avatar-sm.qa {
  background-color: #ff5630;
}

.jira-comment-fake-input {
  flex: 1;
  border: 1px solid #dfe1e6;
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 13px;
  background-color: #fafbfc;
  outline: none;
}

.jira-comment-item {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #172b4d;
}

.jira-comment-content {
  flex: 1;
  background-color: #fafbfc;
  border: 1px solid #ebecf0;
  border-radius: 4px;
  padding: 10px 12px;
}

.jira-comment-author {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.jira-comment-author strong {
  color: #172b4d;
}

.jira-comment-author span {
  color: #6b778c;
}

.jira-comment-content p {
  margin: 0;
  line-height: 1.45;
}

/* SIDEBAR METADATA (RIGHT COLUMN) */
.jira-meta-card {
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 16px;
  background-color: #ffffff;
}

.jira-card-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b778c;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.jira-meta-field {
  margin-bottom: 12px;
}

.jira-meta-field:last-child {
  margin-bottom: 0;
}

.jira-meta-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #6b778c;
  margin-bottom: 4px;
}

.jira-status-badge.in-progress {
  background-color: #deebff;
  color: #0052cc;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.jira-status-badge.in-progress:hover {
  background-color: #b3d4ff;
}

.jira-user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #172b4d;
}

.jira-priority-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #172b4d;
}

.jira-priority-icon {
  font-size: 12px;
}

.jira-meta-val {
  font-size: 13px;
  color: #172b4d;
}

.jira-meta-val.badge-gray {
  display: inline-block;
  background-color: #ebecf0;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.jira-meta-val.link-blue {
  color: #0052cc;
  cursor: pointer;
  text-decoration: underline;
}

.jira-labels-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.jira-label-pill {
  background-color: #ebecf0;
  color: #42526e;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
}

/* Reduce GPU-heavy effects automatically on low-memory/low-core devices. */
html.performance-lite *,
html.performance-lite *::before,
html.performance-lite *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

html.performance-lite *:not(.spinner):not(.portal-btn-spinner):not(.version-reload-icon) {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}

/* AUTHENTIC ZALO SIDEBAR & CONVERSATIONS EXTENSIONS */
.sync-v2-banner {
  background-color: #f0f7ff;
  border-bottom: 1px solid #e0effe;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #081c36;
  gap: 8px;
  flex-shrink: 0;
}
.sync-v2-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sync-v2-text {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.sync-title {
  color: #334155;
  font-size: 12px;
}
.sync-v2-ok {
  background: transparent;
  border: none;
  color: #0068ff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.sync-v2-ok:hover {
  text-decoration: underline;
}
.sync-v2-cancel {
  cursor: pointer;
  color: #94a3b8;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
}
.sync-v2-cancel:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #475569;
}
.zavatar-multi-grid {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  background: #cbd5e1;
  flex-shrink: 0;
}
.zavatar-mini {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.zavatar-count {
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conv__label {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  flex-shrink: 0;
  vertical-align: middle;
}
.conv__label.orange {
  color: #ff6905;
}
.conv__label.teal {
  color: #2ac5bb;
}
.conv-msg-icon {
  margin-right: 3px;
  vertical-align: -2px;
  flex-shrink: 0;
}
.zalo-conv-badge-counter {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  height: 16px;
  min-width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

/* =========================================================
   WORKREADER PRO — UNIVERSAL WEB CLIPPER (FEATURE 6)
   ========================================================= */
.web-clipper-card {
  margin: 0 0 18px;
  border: 1.5px solid #e0e7ff;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.web-clipper-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.08);
}

.web-clipper-header {
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8faff;
  border-bottom: 1px solid #f1f5f9;
}

.web-clipper-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.web-clipper-card:hover .web-clipper-icon-box {
  transform: scale(1.04);
  background: #e0e7ff;
}

.web-clipper-title-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.web-clipper-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.web-clipper-kicker {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.web-clipper-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.web-clipper-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.web-clipper-body {
  padding: 14px 18px;
  background: #ffffff;
}

.web-clipper-input-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.web-clipper-input-wrap input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  font-size: 13px;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.web-clipper-input-wrap input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.web-clipper-extract-btn {
  height: 42px;
  padding: 0 18px;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}

.web-clipper-extract-btn:hover {
  background: linear-gradient(135deg, #4338ca, #3730a3);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

.web-clipper-extract-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.web-clipper-tags {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.web-clipper-tag-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.web-clipper-tag-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.web-clipper-tag-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
}

.web-clipper-status {
  margin-top: 10px;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
}

.web-clipper-status.loading {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  display: flex;
  align-items: center;
  gap: 8px;
}

.web-clipper-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.web-clipper-status.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Spinner */
.clipper-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: clipper-spin 0.6s linear infinite;
  display: inline-block;
}

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

/* Next Chapter Floating Quick Button */
.web-next-chap-bar {
  position: fixed;
  bottom: 20px;
  right: 170px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.web-next-chap-bar:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}


/* ---------------------------------------------------------
   Floating helpers: compact and faded so they do not cover the
   reading content; full opacity on hover/focus. The label stays
   available as the tooltip.
   --------------------------------------------------------- */
.floating-stealth-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  right: 12px;
  bottom: 12px;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.45;
}

.floating-stealth-toggle .stealth-toggle-text {
  display: none;
}

.version-reload-button {
  width: 32px;
  height: 32px;
  right: 12px;
  bottom: 52px;
  font-size: 17px;
  opacity: 0.45;
}

.floating-stealth-toggle:hover,
.floating-stealth-toggle:focus-visible,
.version-reload-button:hover,
.version-reload-button:focus-visible {
  opacity: 1;
}

/* Both only matter while reading, not on the landing portal. */
body:has(#landing-portal:not(.hidden)) .floating-stealth-toggle,
body:has(#landing-portal:not(.hidden)) .version-reload-button {
  display: none;
}

/* ---------------------------------------------------------
   Reader controls peek: while hidden, the navbar slides in over
   the content when the pointer touches the top edge (app.js
   adds .controls-peek). No body padding, so the page does not
   jump.
   --------------------------------------------------------- */
body.controls-hidden.controls-peek .universal-reader-navbar {
  display: flex !important;
  animation: unav-peek-in 0.15s ease-out;
}

@keyframes unav-peek-in {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   Synced from upstream thedeceiver.site "UPDATE 2026-10-30":
   column H filler and spreadsheet workspace personalization.
   ========================================================= */
/* Column H filler to avoid empty space */
.col-filler-header {
  min-width: 180px;
  background-color: #f8f9fa;
  color: #5f6368;
  border: 1px solid #e0e0e0;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  user-select: none;
}

body.theme-excel .col-filler-header {
  background-color: #f3f2f1;
  border-color: #d2d0ce;
  color: #605e5c;
}

.col-filler-title {
  border: 1px solid #d3e3fd;
  background-color: #edf2fa;
  color: #041e49;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 8px;
  text-align: left;
  white-space: nowrap;
}

body.theme-excel .col-filler-title {
  border-color: #c3decb;
  background-color: #e7f2eb;
  color: var(--excel-green-dark);
}

.col-filler-cell {
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  padding: 5px 8px;
  font-size: 11px;
  color: #555555;
  vertical-align: top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: text;
}

body.theme-excel .col-filler-cell {
  border-color: #e1dfdd;
}

table.col-d-auto .col-filler-header,
table.col-d-auto .col-filler-title,
table.col-d-auto .col-filler-cell {
  display: none !important;
}

/* Spreadsheet workspace personalization */
.workspace-personalization-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; cursor: pointer; }
.workspace-personalization-button.excel-workspace-button { width: 30px; height: 28px; padding: 0; border: 0; border-radius: 3px; color: #fff; background: transparent; }
.workspace-personalization-button.excel-workspace-button:hover { background: rgba(255, 255, 255, 0.16); }
.workspace-personalization-modal { position: fixed; inset: 0; z-index: 22000; display: none; align-items: center; justify-content: center; padding: 20px; font-family: Arial, sans-serif; color: #1f2937; }
.workspace-personalization-modal.show { display: flex; }
.workspace-personalization-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); }
.workspace-personalization-dialog { position: relative; display: flex; flex-direction: column; width: min(880px, 96vw); max-height: min(850px, 92vh); overflow: hidden; border: 1px solid #d9e0ea; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28); }
.workspace-personalization-header { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 14px 20px; border-bottom: 1px solid #e5e7eb; background: linear-gradient(135deg, #f8fafc, #fff); }
.workspace-personalization-header > div { display: grid; gap: 3px; }
.workspace-personalization-header strong { font-size: 17px; color: #111827; }
.workspace-personalization-header small { font-size: 12px; color: #64748b; }
.workspace-personalization-header > button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #475569; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.workspace-personalization-header > button:hover { background: #eef2f7; }
#workspace-personalization-form { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.workspace-personalization-body { display: grid; gap: 14px; min-height: 0; overflow: auto; padding: 18px 20px 22px; background: #f8fafc; }
.workspace-settings-section { padding: 15px; border: 1px solid #e1e7ef; border-radius: 11px; background: #fff; }
.workspace-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.workspace-section-title > span { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: #0f9d58; font-size: 12px; font-weight: 700; }
body.theme-excel .workspace-section-title > span { background: #107c41; }
.workspace-section-title > div { display: grid; gap: 2px; }
.workspace-section-title strong { font-size: 13px; color: #1f2937; }
.workspace-section-title small { font-size: 11px; color: #718096; }
.workspace-field-row, .workspace-display-grid, .workspace-fields-grid, .workspace-columns-grid { display: grid; gap: 10px; }
.workspace-field-row { grid-template-columns: minmax(180px, 1fr) minmax(190px, 1fr) auto auto; align-items: end; }
.workspace-fields-two { grid-template-columns: minmax(240px, 2fr) minmax(90px, .5fr) repeat(3, minmax(120px, 1fr)); }
.workspace-columns-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.workspace-display-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)) repeat(2, auto); align-items: end; }
.workspace-field { display: grid; gap: 5px; min-width: 0; color: #475569; font-size: 11px; font-weight: 600; }
.workspace-field b { color: #64748b; font-size: 10px; }
.workspace-field input, .workspace-field select { width: 100%; height: 36px; min-width: 0; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 7px; outline: none; color: #1f2937; background: #fff; font: 12px Arial, sans-serif; }
.workspace-field input:focus, .workspace-field select:focus { border-color: #0f9d58; box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.12); }
.workspace-primary-btn, .workspace-secondary-btn, .workspace-icon-action, .workspace-link-btn { height: 36px; border-radius: 7px; font: 600 12px Arial, sans-serif; cursor: pointer; }
.workspace-primary-btn { padding: 0 18px; border: 1px solid #0f9d58; color: #fff; background: #0f9d58; }
body.theme-excel .workspace-primary-btn { border-color: #107c41; background: #107c41; }
.workspace-primary-btn:hover { filter: brightness(.94); }
.workspace-secondary-btn { padding: 0 13px; border: 1px solid #cbd5e1; color: #334155; background: #fff; }
.workspace-secondary-btn:hover { background: #f1f5f9; }
.workspace-icon-action { width: 38px; border: 1px solid #fecaca; color: #b91c1c; background: #fff; }
.workspace-icon-action:hover { background: #fff1f2; }
.workspace-link-btn { padding: 0; border: 0; color: #64748b; background: transparent; }
.workspace-link-btn:hover { color: #b91c1c; }
.workspace-switch { display: flex; align-items: center; gap: 8px; height: 36px; white-space: nowrap; color: #334155; font-size: 11px; font-weight: 600; cursor: pointer; }
.workspace-switch input { position: absolute; opacity: 0; pointer-events: none; }
.workspace-switch span { position: relative; width: 34px; height: 19px; border-radius: 999px; background: #cbd5e1; transition: background .15s ease; }
.workspace-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .24); transition: transform .15s ease; }
.workspace-switch input:checked + span { background: #0f9d58; }
body.theme-excel .workspace-switch input:checked + span { background: #107c41; }
.workspace-switch input:checked + span::after { transform: translateX(15px); }
.workspace-personalization-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid #e5e7eb; background: #fff; }
.workspace-personalization-footer > div { display: flex; gap: 9px; }
body.workspace-gridlines-hidden #excel-table tbody td:not(.row-header) { border-color: transparent !important; }
body.workspace-gridlines-hidden #excel-table tbody tr + tr td { border-top-color: transparent !important; }
body[data-workspace-density="compact"] #excel-table tbody td { padding-top: 3px !important; padding-bottom: 3px !important; line-height: 1.35 !important; }
body[data-workspace-density="comfortable"] #excel-table tbody td { padding-top: 6px !important; padding-bottom: 6px !important; }
body[data-workspace-density="spacious"] #excel-table tbody td { padding-top: 10px !important; padding-bottom: 10px !important; line-height: 1.9 !important; }
@media (max-width: 900px) {
  .workspace-field-row { grid-template-columns: 1fr 1fr auto; }
  .workspace-field-row .workspace-icon-action { grid-column: 3; }
  .workspace-fields-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-columns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-display-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .workspace-personalization-modal { padding: 8px; }
  .workspace-personalization-dialog { max-height: 96vh; border-radius: 10px; }
  .workspace-field-row, .workspace-fields-two, .workspace-columns-grid, .workspace-display-grid { grid-template-columns: 1fr; }
  .workspace-field-row .workspace-icon-action { grid-column: auto; }
}
