:root {
  --bg: #f7f3ea;
  --card: #fffaf0;
  --card-2: #fffdf8;
  --text: #1f1b14;
  --muted: #7b6c55;
  --line: #eadfca;
  --gold: #b88a2d;
  --gold-dark: #7a5514;
  --nav: #19150f;
  --success: #237a4b;
  --danger: #9a3a2d;
  --shadow: 0 18px 45px rgba(52, 38, 9, .10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #fff7dc 0, #f7f3ea 38%, #efe4d0 100%); }
.auth-card { width: min(420px, 100%); background: var(--card-2); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 34px; }
.auth-card h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.04em; }
.auth-card p { color: var(--muted); margin: 0 0 22px; }
.auth-card label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.auth-card input { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 14px; outline: none; font-size: 15px; }
.auth-card input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 138, 45, .12); }
.auth-card button, .primary-btn { width: 100%; border: 0; border-radius: 15px; padding: 13px 16px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
#message { margin-top: 16px; font-size: 13px; }

.dashboard-page { min-height: 100vh; display: block; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--nav); color: #fff9ec; padding: 26px 20px; display: flex; flex-direction: column; gap: 24px; }
.brand-mark { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--gold), #ffe1a0); color: #171108; font-weight: 900; font-size: 24px; }
.brand-mark strong { display: block; font-size: 17px; }
.brand-mark small { display: block; color: rgba(255,255,255,.55); margin-top: 2px; }
.side-nav { display: grid; gap: 6px; }
.side-nav a { padding: 12px 14px; border-radius: 14px; color: rgba(255,255,255,.72); font-weight: 650; font-size: 14px; }
.side-nav a:hover, .side-nav a.active { background: rgba(184, 138, 45, .18); color: #fff; }
.ghost-btn { margin-top: auto; border: 1px solid rgba(255,255,255,.16); color: #fff; background: transparent; border-radius: 14px; padding: 12px 14px; cursor: pointer; }

/* LinkedIn-inspired top taskbar navigation */
.top-taskbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 30px;
  background: rgba(255, 250, 240, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(52, 38, 9, .08);
  backdrop-filter: blur(14px);
}
.top-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
}
.top-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--gold), #ffe1a0);
  color: #171108;
  font-weight: 950;
  font-size: 22px;
}
.top-brand strong { display: block; font-size: 16px; line-height: 1.1; }
.top-brand small { display: block; color: var(--muted); margin-top: 2px; font-size: 11px; }
.top-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-nav-links::-webkit-scrollbar { display: none; }
.top-nav-links a {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.top-nav-links a:hover,
.top-nav-links a.active {
  background: #f2e3c4;
  color: var(--gold-dark);
}
.top-logout-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-main { padding: 30px; max-width: 1440px; width: 100%; margin: 0 auto; }
.top-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 7px; color: var(--gold-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.05em; margin-bottom: 7px; }
h2 { font-size: 24px; margin-bottom: 8px; }
h3 { font-size: 18px; margin-bottom: 6px; }
.muted { color: var(--muted); margin-bottom: 0; }
.user-chip { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; color: var(--muted); box-shadow: 0 8px 20px rgba(52, 38, 9, .05); }
.brief-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px; background: linear-gradient(135deg, #fffdf8, #fbefd3); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); margin-bottom: 18px; }
.brief-card p:last-child { color: var(--muted); margin-bottom: 0; }
.brief-card .primary-btn { width: auto; min-width: 170px; }
.metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-card, .panel, .module-card, .api-panel { background: var(--card-2); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 26px rgba(52, 38, 9, .06); }
.metric-card { padding: 18px; }
.metric-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-card strong { display: block; margin: 8px 0 2px; font-size: 32px; letter-spacing: -.05em; }
.metric-card small { color: var(--muted); }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel, .api-panel { padding: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.small-btn, .module-card button { border: 1px solid var(--line); background: #fff; color: var(--gold-dark); border-radius: 12px; padding: 9px 12px; cursor: pointer; font-weight: 750; }
.list-box { display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.list-item strong { display: block; font-size: 14px; }
.list-item small { display: block; color: var(--muted); margin-top: 3px; }
.status-pill { white-space: nowrap; border-radius: 999px; padding: 5px 9px; background: #f4ecd9; color: var(--gold-dark); font-size: 11px; font-weight: 800; text-transform: capitalize; }
.status-pill.critical, .status-pill.high { background: #fae4df; color: var(--danger); }
.empty-state { color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 18px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.module-card { padding: 18px; }
.module-card p { color: var(--muted); font-size: 14px; line-height: 1.5; min-height: 64px; }
.api-panel pre { white-space: pre-wrap; word-break: break-word; background: #16120d; color: #fff2d2; border-radius: 18px; padding: 18px; overflow: auto; max-height: 420px; }

@media (max-width: 1080px) {
  .top-taskbar { grid-template-columns: 1fr auto; padding: 10px 16px; }
  .top-brand { min-width: auto; }
  .top-nav-links { grid-column: 1 / -1; justify-content: flex-start; order: 3; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .panel-grid, .module-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .top-taskbar { gap: 10px; }
  .top-brand div { display: none; }
  .top-nav-links a { font-size: 13px; padding: 9px 10px; }
.dashboard-main { padding: 18px; }
  .top-header, .brief-card, .panel-head { flex-direction: column; }
  .metric-grid, .panel-grid, .module-grid { grid-template-columns: 1fr; }
  .brief-card .primary-btn { width: 100%; }
}

/* Quiming OS dashboard module pages */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-header h1 { margin-bottom: 6px; }
.small-link { border: 1px solid var(--line); background: #fff; color: var(--gold-dark); border-radius: 12px; padding: 9px 12px; cursor: pointer; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; }
.content-grid { display: grid; gap: 16px; align-items: start; }
.content-grid.two-column { grid-template-columns: 390px 1fr; }
.wide-panel { min-width: 0; }
.data-form { display: grid; gap: 13px; }
.data-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 850; }
.data-form input, .data-form select, .data-form textarea, .inline-select { width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; background: #fff; color: var(--text); outline: none; font: inherit; }
.data-form textarea { resize: vertical; }
.data-form input:focus, .data-form select:focus, .data-form textarea:focus, .inline-select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 138, 45, .12); }
.form-message { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.form-message.success { color: var(--success); }
.form-message.error { color: var(--danger); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 740px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: #fff8e9; }
td { background: rgba(255,255,255,.55); }
.table-empty { text-align: center; color: var(--muted); padding: 24px; }
.danger-btn { border: 1px solid #f1c4bc; background: #fff3f0; color: var(--danger); border-radius: 12px; padding: 8px 10px; cursor: pointer; font-weight: 800; }
.danger-btn.large { padding: 11px 14px; }
.primary-btn.compact { width: auto; padding: 11px 14px; }
.card-list { display: grid; gap: 12px; }
.approval-card { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.approval-actions { display: flex; gap: 8px; align-items: center; }
.detail-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.detail-list span { border: 1px solid var(--line); background: #fffaf0; color: var(--muted); border-radius: 999px; padding: 5px 9px; font-size: 12px; }
.module-card span { color: var(--gold-dark); font-weight: 850; }
@media (max-width: 1080px) { .content-grid.two-column { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .page-header { flex-direction: column; } .approval-card { flex-direction: column; } .approval-actions { width: 100%; } .approval-actions button { flex: 1; } }

.role-category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.role-category-strip article {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(52, 38, 9, .05);
}
.role-category-strip .formal-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: #f8ecd0;
  border: 1px solid var(--line);
  color: var(--gold-dark);
}
.role-category-strip .formal-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.role-category-strip strong { display: block; font-size: 13px; }
.role-category-strip small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.field-note { color: var(--muted); font-size: 12px; line-height: 1.5; margin: -4px 0 0; }
.hidden-field { display: none !important; }
.job-title-admin-grid { margin-top: 16px; }
@media (max-width: 1080px) { .role-category-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .role-category-strip { grid-template-columns: 1fr; } }

/* v6 hard refresh UI layer — fixes old browser/Hostinger cached styles */
html, body { width: 100%; min-height: 100%; }
body.dashboard-page { background: var(--bg) !important; color: var(--text) !important; margin: 0 !important; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important; }
body.dashboard-page > .top-taskbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  width: 100% !important;
  min-height: 74px !important;
  display: grid !important;
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 12px 30px !important;
  background: rgba(255, 250, 240, .98) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 10px 28px rgba(52, 38, 9, .08) !important;
}
body.dashboard-page > .top-taskbar .top-brand {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 210px !important;
  color: var(--text) !important;
  text-decoration: none !important;
}
body.dashboard-page > .top-taskbar .top-brand span {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--gold), #ffe1a0) !important;
  color: #171108 !important;
  font-weight: 950 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}
body.dashboard-page > .top-taskbar .top-brand strong { display: block !important; font-size: 16px !important; line-height: 1.1 !important; }
body.dashboard-page > .top-taskbar .top-brand small { display: block !important; color: var(--muted) !important; margin-top: 2px !important; font-size: 11px !important; }
body.dashboard-page > .top-taskbar .top-nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
}
body.dashboard-page > .top-taskbar .top-nav-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  padding: 10px 13px !important;
  border-radius: 999px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
body.dashboard-page > .top-taskbar .top-nav-links a:hover,
body.dashboard-page > .top-taskbar .top-nav-links a.active { background: #f2e3c4 !important; color: var(--gold-dark) !important; }
body.dashboard-page > .top-taskbar .top-logout-btn {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--gold-dark) !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  cursor: pointer !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
body.dashboard-page .dashboard-main { padding: 30px !important; max-width: 1440px !important; width: 100% !important; margin: 0 auto !important; }
body.dashboard-page .page-header { display: flex !important; align-items: flex-start !important; justify-content: space-between !important; gap: 20px !important; margin-bottom: 22px !important; }
body.dashboard-page .role-category-strip { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; margin-bottom: 16px !important; }
body.dashboard-page .role-category-strip article { background: var(--card-2) !important; border: 1px solid var(--line) !important; border-radius: 18px !important; padding: 14px !important; box-shadow: 0 8px 20px rgba(52, 38, 9, .05) !important; }
body.dashboard-page .content-grid.two-column { display: grid !important; grid-template-columns: 390px minmax(0, 1fr) !important; gap: 16px !important; align-items: start !important; }
body.dashboard-page .panel { background: var(--card-2) !important; border: 1px solid var(--line) !important; border-radius: 22px !important; box-shadow: 0 10px 26px rgba(52, 38, 9, .06) !important; padding: 20px !important; }
body.dashboard-page .data-form { display: grid !important; gap: 13px !important; }
body.dashboard-page .data-form input,
body.dashboard-page .data-form select,
body.dashboard-page .data-form textarea { width: 100% !important; border: 1px solid var(--line) !important; border-radius: 13px !important; padding: 11px 12px !important; background: #fff !important; color: var(--text) !important; outline: none !important; font: inherit !important; }
body.dashboard-page table { width: 100% !important; border-collapse: collapse !important; min-width: 740px !important; }
@media (max-width: 1080px) {
  body.dashboard-page > .top-taskbar { grid-template-columns: 1fr auto !important; padding: 10px 16px !important; }
  body.dashboard-page > .top-taskbar .top-nav-links { grid-column: 1 / -1 !important; justify-content: flex-start !important; order: 3 !important; }
  body.dashboard-page .content-grid.two-column { grid-template-columns: 1fr !important; }
  body.dashboard-page .role-category-strip { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 680px) {
  body.dashboard-page > .top-taskbar .top-brand div { display: none !important; }
  body.dashboard-page .dashboard-main { padding: 18px !important; }
  body.dashboard-page .role-category-strip { grid-template-columns: 1fr !important; }
  body.dashboard-page .page-header { flex-direction: column !important; }
}

/* V7 formal icon patch: no emoji category icons */
body.dashboard-page .role-category-strip .formal-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
  background: #f8ecd0 !important;
  border: 1px solid var(--line) !important;
  color: var(--gold-dark) !important;
}
body.dashboard-page .role-category-strip .formal-icon svg {
  width: 19px !important;
  height: 19px !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* V8 corporate topbar: formal nav icons, smart search, and profile dropdown */
body.dashboard-page > .top-taskbar {
  grid-template-columns: minmax(210px, auto) minmax(0, 1fr) minmax(330px, auto) !important;
  gap: 18px !important;
  padding: 12px 30px !important;
}
body.dashboard-page > .top-taskbar .top-nav-links {
  justify-content: center !important;
  gap: 5px !important;
}
body.dashboard-page > .top-taskbar .top-nav-links a {
  gap: 7px !important;
  padding: 9px 11px !important;
}
body.dashboard-page > .top-taskbar .nav-icon,
body.dashboard-page > .top-taskbar .search-icon,
body.dashboard-page > .top-taskbar .dropdown-action span {
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}
body.dashboard-page > .top-taskbar svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.top-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: 0 !important;
}
.smart-search {
  position: relative !important;
  width: min(320px, 32vw) !important;
  min-width: 220px !important;
}
.smart-search .search-icon {
  position: absolute !important;
  left: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--muted) !important;
  pointer-events: none !important;
}
.smart-search input {
  width: 100% !important;
  height: 42px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--text) !important;
  padding: 0 15px 0 40px !important;
  outline: none !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  box-shadow: 0 8px 20px rgba(52, 38, 9, .05) !important;
}
.smart-search input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 4px rgba(184, 138, 45, .12) !important;
}
.smart-search-results {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  width: min(430px, 86vw) !important;
  display: none !important;
  background: #fffdf8 !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 60px rgba(52, 38, 9, .18) !important;
  overflow: hidden !important;
  z-index: 1200 !important;
}
.smart-search-results.open { display: block !important; }
.search-result-item {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 2px 12px !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--text) !important;
  text-decoration: none !important;
}
.search-result-item:last-child { border-bottom: 0 !important; }
.search-result-item:hover { background: #fff6e1 !important; }
.search-type {
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 5px 8px !important;
  background: #f2e3c4 !important;
  color: var(--gold-dark) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}
.search-result-item strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}
.search-result-item small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}
.search-empty {
  padding: 16px !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}
.profile-menu {
  position: relative !important;
  flex: 0 0 auto !important;
}
.profile-button {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  box-shadow: 0 8px 20px rgba(52, 38, 9, .05) !important;
}
.profile-button:hover,
.profile-button[aria-expanded="true"] {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 4px rgba(184, 138, 45, .12) !important;
}
.profile-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(135deg, var(--gold), #ffe1a0) !important;
  color: #171108 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: .03em !important;
}
.profile-avatar.large {
  width: 48px !important;
  height: 48px !important;
  font-size: 15px !important;
}
.profile-dropdown {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 10px) !important;
  width: 260px !important;
  display: none !important;
  background: #fffdf8 !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 60px rgba(52, 38, 9, .18) !important;
  overflow: hidden !important;
  z-index: 1300 !important;
}
.profile-dropdown.open { display: block !important; }
.profile-dropdown-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px !important;
  border-bottom: 1px solid var(--line) !important;
  background: #fff8e9 !important;
}
.profile-dropdown-head strong {
  display: block !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}
.profile-dropdown-head small {
  display: block !important;
  color: var(--muted) !important;
  margin-top: 3px !important;
  font-size: 12px !important;
}
.dropdown-action {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 13px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
  color: var(--text) !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  text-align: left !important;
  text-decoration: none !important;
}
.dropdown-action:last-child { border-bottom: 0 !important; }
.dropdown-action:hover { background: #fff6e1 !important; color: var(--gold-dark) !important; }
.settings-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 16px !important;
}
.account-card-row {
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 13px 0 !important;
  border-bottom: 1px solid var(--line) !important;
}
.account-card-row:last-child { border-bottom: 0 !important; }
.account-card-row span { color: var(--muted) !important; font-size: 13px !important; }
.account-card-row strong { text-align: right !important; }
@media (max-width: 1280px) {
  body.dashboard-page > .top-taskbar { grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto !important; padding: 12px 18px !important; }
  body.dashboard-page > .top-taskbar .top-nav-links a span:not(.nav-icon) { display: none !important; }
  body.dashboard-page > .top-taskbar .top-nav-links a { padding: 10px !important; }
  .smart-search { width: 250px !important; min-width: 210px !important; }
}
@media (max-width: 900px) {
  body.dashboard-page > .top-taskbar { grid-template-columns: 1fr auto !important; }
  body.dashboard-page > .top-taskbar .top-nav-links { grid-column: 1 / -1 !important; order: 3 !important; justify-content: flex-start !important; }
  .top-actions { gap: 8px !important; }
  .smart-search { width: 220px !important; min-width: 180px !important; }
  .settings-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 680px) {
  body.dashboard-page > .top-taskbar { padding: 10px 14px !important; }
  .smart-search { width: min(250px, 58vw) !important; min-width: 0 !important; }
  .smart-search input { height: 40px !important; }
  .profile-button { width: 40px !important; height: 40px !important; }
  .profile-avatar { width: 31px !important; height: 31px !important; }
}

/* V9 LinkedIn-style corporate top taskbar — icon-only navigation */
body.dashboard-page > .top-taskbar.linkedin-style-taskbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  width: 100% !important;
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: minmax(430px, 520px) minmax(420px, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 8px 28px !important;
  background: rgba(255, 253, 248, .98) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 6px 18px rgba(52, 38, 9, .08) !important;
}
.top-left-zone {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}
body.dashboard-page > .top-taskbar .top-brand.compact-brand {
  min-width: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: var(--text) !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
}
body.dashboard-page > .top-taskbar .top-brand.compact-brand > span {
  width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--gold), #ffe1a0) !important;
  color: #171108 !important;
  font-weight: 950 !important;
  font-size: 21px !important;
  line-height: 1 !important;
}
body.dashboard-page > .top-taskbar .top-brand.compact-brand strong {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.1 !important;
}
body.dashboard-page > .top-taskbar .top-brand.compact-brand small {
  display: block !important;
  color: var(--muted) !important;
  margin-top: 2px !important;
  font-size: 11px !important;
}
body.dashboard-page > .top-taskbar .smart-search.topbar-search {
  position: relative !important;
  width: min(390px, 100%) !important;
  min-width: 230px !important;
  flex: 1 1 auto !important;
}
body.dashboard-page > .top-taskbar .smart-search.topbar-search input {
  width: 100% !important;
  height: 44px !important;
  border: 1px solid #d8c7a6 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--text) !important;
  padding: 0 16px 0 43px !important;
  outline: none !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}
body.dashboard-page > .top-taskbar .smart-search.topbar-search input:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 4px rgba(184, 138, 45, .12) !important;
}
body.dashboard-page > .top-taskbar .smart-search.topbar-search .search-icon {
  position: absolute !important;
  left: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #4f4738 !important;
  pointer-events: none !important;
}
body.dashboard-page > .top-taskbar .icon-nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  white-space: nowrap !important;
}
body.dashboard-page > .top-taskbar .icon-nav-links::-webkit-scrollbar { display: none !important; }
body.dashboard-page > .top-taskbar .icon-nav-links a {
  position: relative !important;
  width: 52px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  border-radius: 14px !important;
  color: #655d4e !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease, transform .15s ease !important;
}
body.dashboard-page > .top-taskbar .icon-nav-links a:hover {
  background: #f4ead5 !important;
  color: var(--gold-dark) !important;
  transform: translateY(-1px) !important;
}
body.dashboard-page > .top-taskbar .icon-nav-links a.active {
  background: #f2e3c4 !important;
  color: var(--gold-dark) !important;
}
body.dashboard-page > .top-taskbar .icon-nav-links a.active::after {
  content: '' !important;
  position: absolute !important;
  left: 15px !important;
  right: 15px !important;
  bottom: 4px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: var(--gold-dark) !important;
}
body.dashboard-page > .top-taskbar .icon-nav-links .nav-icon {
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: currentColor !important;
}
body.dashboard-page > .top-taskbar .icon-nav-links .nav-icon svg,
body.dashboard-page > .top-taskbar .smart-search .search-icon svg,
body.dashboard-page > .top-taskbar .dropdown-action svg {
  width: 24px !important;
  height: 24px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
body.dashboard-page > .top-taskbar .icon-nav-links .nav-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.dashboard-page > .top-taskbar .profile-action-zone {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  min-width: 64px !important;
}
body.dashboard-page > .top-taskbar .profile-button {
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid #d8c7a6 !important;
  background: #fff !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  box-shadow: none !important;
}
body.dashboard-page > .top-taskbar .profile-button:hover,
body.dashboard-page > .top-taskbar .profile-button[aria-expanded="true"] {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 4px rgba(184, 138, 45, .12) !important;
}
body.dashboard-page > .top-taskbar .profile-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(135deg, var(--gold), #ffe1a0) !important;
  color: #171108 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: .03em !important;
}
body.dashboard-page > .top-taskbar .profile-avatar.large {
  width: 50px !important;
  height: 50px !important;
  font-size: 15px !important;
}
body.dashboard-page > .top-taskbar .profile-dropdown {
  right: 0 !important;
  top: calc(100% + 9px) !important;
  width: 270px !important;
  border-radius: 16px !important;
}
@media (max-width: 1320px) {
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar {
    grid-template-columns: minmax(360px, 470px) minmax(360px, 1fr) auto !important;
    gap: 12px !important;
    padding: 8px 18px !important;
  }
  body.dashboard-page > .top-taskbar .top-brand.compact-brand div { display: none !important; }
  body.dashboard-page > .top-taskbar .icon-nav-links { gap: 6px !important; }
  body.dashboard-page > .top-taskbar .icon-nav-links a { width: 48px !important; }
}
@media (max-width: 980px) {
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar {
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "left profile"
      "nav nav" !important;
    min-height: auto !important;
  }
  .top-left-zone { grid-area: left !important; }
  body.dashboard-page > .top-taskbar .icon-nav-links { grid-area: nav !important; justify-content: flex-start !important; padding-top: 4px !important; }
  body.dashboard-page > .top-taskbar .profile-action-zone { grid-area: profile !important; }
}
@media (max-width: 680px) {
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar { padding: 8px 12px !important; }
  body.dashboard-page > .top-taskbar .smart-search.topbar-search { min-width: 0 !important; width: min(290px, 68vw) !important; }
  body.dashboard-page > .top-taskbar .smart-search.topbar-search input { height: 40px !important; font-size: 14px !important; }
  body.dashboard-page > .top-taskbar .top-brand.compact-brand > span { width: 40px !important; height: 40px !important; border-radius: 11px !important; font-size: 19px !important; }
  body.dashboard-page > .top-taskbar .icon-nav-links a { width: 44px !important; height: 44px !important; }
  body.dashboard-page > .top-taskbar .icon-nav-links .nav-icon svg { width: 22px !important; height: 22px !important; }
  body.dashboard-page > .top-taskbar .profile-button { width: 42px !important; height: 42px !important; }
  body.dashboard-page > .top-taskbar .profile-avatar { width: 33px !important; height: 33px !important; }
}


/* V10 cache-safe LinkedIn-style topbar fix */
body.dashboard-page .sidebar,
body.dashboard-page .brand-mark,
body.dashboard-page .side-nav,
body.dashboard-page .ghost-btn,
body.dashboard-page .legacy-shell {
  display: none !important;
  visibility: hidden !important;
}
body.dashboard-page {
  background: var(--bg) !important;
  color: var(--text) !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: minmax(430px, 520px) minmax(420px, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 8px 28px !important;
  background: rgba(255, 253, 248, .985) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 6px 18px rgba(52, 38, 9, .08) !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .top-left-zone {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links a {
  width: 52px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #655d4e !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links a.active,
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links a:hover {
  background: #f2e3c4 !important;
  color: var(--gold-dark) !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .nav-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .smart-search.topbar-search {
  position: relative !important;
  width: min(390px, 100%) !important;
  min-width: 230px !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .profile-action-zone {
  justify-self: end !important;
}
@media (max-width: 980px) {
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar {
    grid-template-columns: 1fr auto !important;
    grid-template-areas: "left profile" "nav nav" !important;
    padding: 8px 16px !important;
  }
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar .top-left-zone { grid-area: left !important; }
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links { grid-area: nav !important; justify-content: flex-start !important; overflow-x: auto !important; }
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar .profile-action-zone { grid-area: profile !important; }
}


/* V11 hard cache-bust topbar: LinkedIn-style icon navigation, search, and profile menu */
body.dashboard-page > .top-taskbar.linkedin-style-taskbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  min-height: 68px !important;
  display: grid !important;
  grid-template-columns: minmax(420px, 540px) minmax(400px, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 8px 28px !important;
  background: rgba(255, 253, 248, .99) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 6px 18px rgba(52, 38, 9, .08) !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .top-left-zone {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .compact-brand {
  min-width: 190px !important;
  flex: 0 0 auto !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .smart-search.topbar-search {
  position: relative !important;
  width: 310px !important;
  min-width: 230px !important;
  flex: 1 1 310px !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .smart-search.topbar-search input {
  height: 42px !important;
  width: 100% !important;
  padding: 0 14px 0 42px !important;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .smart-search.topbar-search .search-icon {
  position: absolute !important;
  left: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 18px !important;
  height: 18px !important;
  color: var(--muted) !important;
  z-index: 2 !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links::-webkit-scrollbar { display: none !important; }
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links a {
  width: 52px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  color: #655d4e !important;
  position: relative !important;
  text-decoration: none !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links a.active,
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links a:hover {
  background: #f2e3c4 !important;
  color: var(--gold-dark) !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links .nav-icon,
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links .nav-icon svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links .nav-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .profile-action-zone {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .profile-button {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  border-radius: 999px !important;
  padding: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .profile-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--gold), #ffe1a0) !important;
  color: #171108 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .profile-dropdown {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 10px) !important;
  width: 260px !important;
  display: none !important;
  background: #fffdf8 !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 45px rgba(52, 38, 9, .18) !important;
  padding: 10px !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .profile-dropdown.open {
  display: block !important;
}
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .profile-menu { position: relative !important; }
body.dashboard-page > .top-taskbar.linkedin-style-taskbar .top-logout-btn { display: none !important; }
@media (max-width: 980px) {
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar {
    grid-template-columns: 1fr auto !important;
    grid-template-areas: "left profile" "nav nav" !important;
    padding: 8px 16px !important;
  }
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar .top-left-zone { grid-area: left !important; }
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar .icon-nav-links { grid-area: nav !important; justify-content: flex-start !important; }
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar .profile-action-zone { grid-area: profile !important; }
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar .compact-brand div { display: none !important; }
  body.dashboard-page > .top-taskbar.linkedin-style-taskbar .compact-brand { min-width: auto !important; }
}
