.portal-app {
  min-height:100vh
}
.portal-sidebar {
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:var(--gh-sidebar);
  background:#fff;
  border-right:1px solid var(--gh-border);
  padding:18px 14px;
  z-index:120;
  display:flex;
  flex-direction:column
}
.sidebar-brand {
  height:58px;
  display:flex;
  align-items:center;
  padding:0 10px;
  border-bottom:1px solid #edf3fb;
  margin-bottom:10px
}
.sidebar-brand .logo-image {
  height:31px
}
.sidebar-nav {
  display:flex;
  flex-direction:column;
  gap:4px;
  overflow-y:auto;
  padding:6px 2px 16px
}
.nav-section {
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:800;
  color:#8a9fba;
  padding:14px 10px 6px
}
.nav-link {
  display:flex;
  align-items:center;
  gap:11px;
  border-radius:10px;
  padding:10px 11px;
  color:#557398;
  font-size:.88rem;
  font-weight:650;
  transition:.16s ease
}
.nav-link [data-lucide] {
  width:17px;
  height:17px
}
.nav-link:hover {
  background:#f2f7ff;
  color:#1d5faf
}
.nav-link.active {
  background:linear-gradient(90deg,#eaf3ff,#f4f8ff);
  color:#0b5dc8;
  box-shadow:inset 3px 0 0 var(--gh-blue)
}
.sidebar-foot {
  margin-top:auto;
  border-top:1px solid #edf3fb;
  padding-top:12px
}
.sidebar-status {
  padding:10px 11px;
  border-radius:10px;
  background:#f5fbf8;
  border:1px solid #d8f1e7;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:.78rem;
  color:#456a5f;
  margin-bottom:8px
}
.sidebar-mini-links {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:5px 8px;
  font-size:.7rem;
  color:#8095af
}
.portal-main {
  margin-left:var(--gh-sidebar);
  min-height:100vh
}
.portal-topbar {
  height:var(--gh-header);
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(248,251,255,.88);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(215,230,249,.88);
  display:flex;
  align-items:center;
  gap:16px;
  padding:0 22px
}
.mobile-menu {
  display:none
}
.global-search {
  flex:1;
  max-width:760px;
  position:relative
}
.global-search [data-lucide] {
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  color:#7f97b7
}
.global-search input {
  padding-left:41px;
  background:#fff
}
.topbar-actions {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:9px
}
.notif-wrap {
  position:relative
}
.notif-badge {
  position:absolute;
  right:-4px;
  top:-5px;
  background:#ef5a67;
  color:#fff;
  border:2px solid #f8fbff;
  min-width:19px;
  height:19px;
  border-radius:999px;
  font-size:.66rem;
  font-weight:850;
  display:grid;
  place-items:center
}
.user-chip {
  border:1px solid var(--gh-border);
  background:#fff;
  border-radius:12px;
  padding:5px 8px 5px 5px;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px
}
.avatar {
  width:32px;
  height:32px;
  border-radius:9px;
  background:linear-gradient(145deg,#cae2ff,#8ebcff);
  display:grid;
  place-items:center;
  color:#fff;
  overflow:hidden
}
.avatar img {
  width:100%;
  height:100%;
  object-fit:cover
}
.user-chip strong {
  display:block;
  font-size:.8rem;
  max-width:150px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.user-chip small {
  display:block;
  color:var(--gh-muted);
  font-size:.68rem;
  margin-top:1px
}
.portal-content {
  padding:22px
}
.page-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px
}
.page-head h1 {
  margin:0;
  font-size:clamp(1.45rem,2.3vw,2.15rem);
  letter-spacing:-.025em;
  color:#0b2e60
}
.page-head p {
  margin:6px 0 0;
  color:var(--gh-muted);
  font-size:.9rem;
  line-height:1.5
}
.page-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.company-hero {
  position:relative;
  overflow:hidden;
  min-height:220px;
  border-radius:18px;
  border:1px solid #cfe0f7;
  background:#0c376f;
  box-shadow:var(--gh-shadow-sm);
  margin-bottom:18px
}
.company-hero .banner {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}
.company-hero .overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(3,24,55,.72),rgba(5,47,101,.24) 60%,rgba(9,114,255,.08))
}
.company-hero-content {
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-end;
  gap:18px;
  height:220px;
  padding:24px
}
.company-logo {
  width:92px;
  height:92px;
  border-radius:18px;
  background:#fff;
  border:5px solid rgba(255,255,255,.74);
  box-shadow:0 14px 32px rgba(0,0,0,.18);
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:0 0 auto
}
.company-logo img {
  width:100%;
  height:100%;
  object-fit:cover
}
.company-info {
  color:#fff;
  min-width:0
}
.company-info h2 {
  margin:0 0 6px;
  font-size:clamp(1.35rem,2.5vw,2rem)
}
.company-info p {
  margin:0;
  color:#dceaff;
  font-size:.87rem
}
.company-meta {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px
}
.company-meta span {
  background:rgba(255,255,255,.11);
  border:1px solid rgba(255,255,255,.2);
  padding:6px 9px;
  border-radius:8px;
  font-size:.72rem;
  backdrop-filter:blur(8px)
}
.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);
  gap:16px
}
.metric-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px
}
.metric-card {
  padding:16px;
  background:#fff;
  border:1px solid var(--gh-border);
  border-radius:14px;
  display:flex;
  gap:12px;
  align-items:center;
  min-width:0
}
.metric-icon {
  width:42px;
  height:42px;
  border-radius:11px;
  background:#edf4ff;
  color:#1164d2;
  display:grid;
  place-items:center;
  flex:0 0 auto
}
.metric-card small {
  display:block;
  color:var(--gh-muted);
  font-size:.75rem
}
.metric-card strong {
  display:block;
  font-size:1.3rem;
  color:#0c3269;
  margin-top:2px
}
.section-card {
  padding:18px
}
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px
}
.section-head h3 {
  margin:0;
  font-size:1rem;
  color:#143b70
}
.section-head a,.section-head button {
  font-size:.78rem;
  color:#1468d9;
  font-weight:760;
  border:0;
  background:none
}
.quick-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}
.quick-card {
  padding:14px;
  border:1px solid var(--gh-border);
  border-radius:12px;
  background:linear-gradient(145deg,#fff,#f8fbff);
  transition:.18s ease
}
.quick-card:hover {
  border-color:#aed0ff;
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(20,70,140,.08)
}
.quick-card .icon {
  width:36px;
  height:36px;
  border-radius:10px;
  background:#eaf3ff;
  color:#0c64d4;
  display:grid;
  place-items:center;
  margin-bottom:12px
}
.quick-card strong {
  font-size:.86rem
}
.quick-card p {
  font-size:.75rem;
  color:var(--gh-muted);
  line-height:1.45;
  margin:5px 0 0
}
.project-list {
  display:flex;
  flex-direction:column;
  gap:10px
}
.project-item {
  padding:13px;
  border:1px solid var(--gh-border);
  border-radius:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 110px;
  gap:14px;
  align-items:center
}
.project-item h4 {
  margin:0 0 5px;
  font-size:.88rem
}
.project-item p {
  margin:0;
  color:var(--gh-muted);
  font-size:.75rem;
  line-height:1.45
}
.project-progress small {
  display:block;
  font-size:.7rem;
  color:var(--gh-muted);
  margin-bottom:6px;
  text-align:right
}
.notification-list {
  display:flex;
  flex-direction:column;
  gap:8px
}
.notification-item {
  display:grid;
  grid-template-columns:38px 1fr;
  gap:10px;
  padding:11px;
  border-radius:11px;
  border:1px solid #edf2fa;
  background:#fbfdff
}
.notification-item.unread {
  background:#f3f8ff;
  border-color:#d8e8ff
}
.notification-item .nicon {
  width:38px;
  height:38px;
  border-radius:10px;
  background:#eaf3ff;
  color:#0c65d5;
  display:grid;
  place-items:center
}
.notification-item strong {
  font-size:.8rem
}
.notification-item p {
  margin:3px 0;
  color:var(--gh-muted);
  font-size:.73rem;
  line-height:1.45
}
.notification-item time {
  font-size:.67rem;
  color:#92a5bd
}
.activity-list {
  display:flex;
  flex-direction:column
}
.activity-row {
  padding:11px 0;
  border-bottom:1px solid #edf2fa;
  display:flex;
  gap:10px
}
.activity-row:last-child {
  border-bottom:0
}
.activity-dot {
  width:9px;
  height:9px;
  border-radius:50%;
  background:#84b8ff;
  margin-top:5px;
  flex:0 0 auto
}
.activity-row strong {
  display:block;
  font-size:.79rem
}
.activity-row span {
  display:block;
  color:var(--gh-muted);
  font-size:.72rem;
  margin-top:3px
}
.filter-bar {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:14px
}
.filter-bar .search-small {
  min-width:220px;
  flex:1;
  max-width:420px
}
.filter-bar select {
  border:1px solid var(--gh-border);
  border-radius:10px;
  padding:.68rem .78rem;
  background:#fff;
  color:var(--gh-text)
}
.project-cards,.doc-grid,.tutorial-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px
}
.project-card,.doc-card,.tutorial-card {
  padding:16px;
  border:1px solid var(--gh-border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 20px rgba(22,68,129,.05);
  transition:.18s
}
.project-card:hover,.doc-card:hover,.tutorial-card:hover {
  transform:translateY(-2px);
  border-color:#b9d6ff;
  box-shadow:0 14px 28px rgba(22,68,129,.08)
}
.project-card .top,.doc-card .top {
  display:flex;
  justify-content:space-between;
  gap:10px
}
.project-card h3,.doc-card h3,.tutorial-card h3 {
  font-size:.93rem;
  margin:11px 0 7px
}
.project-card p,.doc-card p,.tutorial-card p {
  font-size:.77rem;
  color:var(--gh-muted);
  line-height:1.5;
  margin:0
}
.project-card .meta,.doc-card .meta {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:13px 0;
  font-size:.7rem;
  color:#6b83a5
}
.project-card .footer,.doc-card .footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:14px
}
.doc-icon {
  width:42px;
  height:42px;
  border-radius:11px;
  background:#edf4ff;
  color:#1267d6;
  display:grid;
  place-items:center
}
.doc-actions {
  display:flex;
  gap:7px
}
.doc-actions .btn {
  padding:.52rem .7rem;
  min-height:34px;
  font-size:.74rem
}
.tutorial-thumb {
  height:150px;
  border-radius:11px;
  overflow:hidden;
  background:#eaf2ff;
  position:relative
}
.tutorial-thumb img {
  width:100%;
  height:100%;
  object-fit:cover
}
.play-badge {
  position:absolute;
  inset:0;
  margin:auto;
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:#0a67db;
  display:grid;
  place-items:center;
  box-shadow:0 10px 24px rgba(0,0,0,.18)
}
.profile-layout {
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:16px
}
.profile-card {
  padding:22px;
  text-align:center
}
.profile-avatar {
  width:98px;
  height:98px;
  border-radius:20px;
  margin:0 auto 14px;
  background:linear-gradient(145deg,#d5e8ff,#91beff);
  display:grid;
  place-items:center;
  color:#fff;
  overflow:hidden
}
.profile-avatar img {
  width:100%;
  height:100%;
  object-fit:cover
}
.profile-card h2 {
  font-size:1.05rem;
  margin:0
}
.profile-card p {
  margin:6px 0 14px;
  color:var(--gh-muted);
  font-size:.8rem
}
.profile-meta {
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:17px
}
.profile-meta div {
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid #edf2fa;
  padding-top:10px;
  font-size:.76rem
}
.profile-meta span {
  color:var(--gh-muted)
}
.profile-form {
  padding:20px
}
.profile-form h3 {
  margin:0 0 16px;
  font-size:1rem
}
.readonly-note {
  background:#f7faff;
  border:1px solid #dae8fb;
  border-radius:11px;
  padding:11px 13px;
  font-size:.77rem;
  color:#5d7699;
  margin-bottom:16px
}
.ticket-layout {
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  gap:14px
}
.ticket-list {
  padding:12px;
  max-height:650px;
  overflow:auto
}
.ticket-card {
  padding:12px;
  border:1px solid transparent;
  border-radius:11px;
  margin-bottom:6px;
  cursor:pointer
}
.ticket-card:hover {
  background:#f5f9ff
}
.ticket-card.active {
  background:#eef5ff;
  border-color:#cfe2ff
}
.ticket-card strong {
  display:block;
  font-size:.82rem
}
.ticket-card p {
  margin:4px 0 7px;
  font-size:.72rem;
  color:var(--gh-muted)
}
.ticket-card small {
  font-size:.66rem;
  color:#8ca0b9
}
.conversation {
  display:flex;
  flex-direction:column;
  min-height:520px
}
.conversation-head {
  padding:16px;
  border-bottom:1px solid var(--gh-border)
}
.conversation-messages {
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
  max-height:460px;
  overflow:auto;
  background:#f9fbff
}
.message {
  max-width:78%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--gh-border);
  background:#fff
}
.message.mine {
  align-self:flex-end;
  background:#eaf3ff;
  border-color:#cce1ff
}
.message strong {
  font-size:.74rem
}
.message p {
  margin:4px 0;
  font-size:.78rem;
  line-height:1.5
}
.message time {
  font-size:.65rem;
  color:#869bb7
}
.conversation-compose {
  padding:14px;
  border-top:1px solid var(--gh-border);
  display:flex;
  gap:8px
}
.conversation-compose input {
  flex:1;
  border:1px solid var(--gh-border);
  border-radius:10px;
  padding:.7rem .8rem
}
.status-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}
.status-card {
  padding:16px
}
.status-card .line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.status-card h3 {
  font-size:.85rem;
  margin:0
}
.status-card strong {
  font-size:1.12rem;
  display:block;
  margin-top:10px
}
.status-card p {
  font-size:.72rem;
  color:var(--gh-muted);
  margin:5px 0 0
}
.course-frame {
  width:100%;
  height:68vh;
  border:1px solid var(--gh-border);
  border-radius:14px;
  background:#fff
}
.prose {
  max-width:880px
}
.prose h2 {
  font-size:1.15rem;
  margin-top:26px;
  color:#0d376e
}
.prose p,.prose li {
  font-size:.88rem;
  line-height:1.7;
  color:#4f6b90
}
.global-results {
  position:absolute;
  top:52px;
  left:0;
  right:0;
  background:#fff;
  border:1px solid var(--gh-border);
  border-radius:12px;
  box-shadow:var(--gh-shadow);
  padding:8px;
  max-height:420px;
  overflow:auto;
  z-index:300
}
.search-result {
  padding:10px;
  border-radius:9px;
  display:grid;
  grid-template-columns:32px 1fr;
  gap:10px
}
.search-result:hover {
  background:#f3f8ff
}
.search-result .sicon {
  width:32px;
  height:32px;
  border-radius:8px;
  background:#edf4ff;
  color:#1765ca;
  display:grid;
  place-items:center
}
.search-result strong {
  display:block;
  font-size:.8rem
}
.search-result small {
  color:var(--gh-muted);
  font-size:.7rem
}
.mobile-overlay {
  display:none
}
.session-warning {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9980;
  width:min(390px,calc(100% - 36px));
  padding:16px;
  background:#fff;
  border:1px solid #f4d79a;
  border-radius:14px;
  box-shadow:var(--gh-shadow)
}
.session-warning h3 {
  margin:0 0 6px;
  font-size:.93rem
}
.session-warning p {
  margin:0 0 12px;
  color:var(--gh-muted);
  font-size:.78rem;
  line-height:1.5
}
.session-warning .actions {
  display:flex;
  justify-content:flex-end;
  gap:8px
}
