/* Auto-generated bundle: app-header.css + viewer.css */

/* app-header.css - RC layout (header + sidebar + user dropdown) */

:root{
  --rc-header-h: 56px;
  --rc-sidebar-w: 260px;

  --rc-surface: rgba(10, 14, 20, 0.70);
  --rc-surface-2: rgba(10, 14, 20, 0.92);
  --rc-border: rgba(255,255,255,0.10);
  --rc-border-2: rgba(255,255,255,0.08);

  --rc-surface-light: rgba(255,255,255,0.75);
  --rc-surface-2-light: rgba(255,255,255,0.92);
  --rc-border-light: rgba(2,8,23,0.10);
}

/* Layout wrapper injected by app-header.js */
#rcAppWrap{
  min-height: 100vh;
  display: flex;
}

#rcSidebar{
  width: var(--rc-sidebar-w);
  flex: 0 0 var(--rc-sidebar-w);
}

/* Sidebar hidden state (requested) */
body.rc-sidebar-hidden #rcSidebar{
  display: none;
}

#rcContentSlot{
  flex: 1 1 auto;
  min-width: 0;
}

/* Header */
.rc-header{
  position: sticky;
  top: 0;
  z-index: 1100;
  height: var(--rc-header-h);
  display: flex;
  align-items: center;
  background: var(--rc-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rc-border-2);
}

html[data-theme="light"] .rc-header{
  background: var(--rc-surface-light);
  border-bottom-color: var(--rc-border-light);
}

.rc-header-inner{
  width: 100%;
  max-width: 1400px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rc-left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.rc-brand{
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: var(--text-main);
}

.rc-icon-btn{
  height: 36px;
  width: 36px;
  border-radius: 12px;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .rc-icon-btn{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-center{
  flex: 1 1 auto;
  min-width: 240px;
}

.rc-search{
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.rc-search input{
  width: 100%;
  height: 38px;
  border-radius: 999px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  outline: none;
}

html[data-theme="light"] .rc-search input{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-search-icon{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.75;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rc-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 280px;
}

.rc-auth-actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rc-auth-actions .btn{
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 999px;
}

/* Sidebar */
.rc-sidebar{
  position: sticky;
  top: var(--rc-header-h);
  height: calc(100vh - var(--rc-header-h));
  overflow: auto;
  border-right: 1px solid var(--rc-border-2);
  background: rgba(10, 14, 20, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="light"] .rc-sidebar{
  border-right-color: var(--rc-border-light);
  background: rgba(255,255,255,0.55);
}

.rc-sidebar-inner{
  padding: 14px;
}

.rc-section-label{
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 14px 10px 8px;
}

.rc-nav{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rc-nav a{
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-main);
  opacity: 0.85;
  border: 1px solid transparent;
}

.rc-nav a.is-active{
  opacity: 1;
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.12);
}

.rc-nav a:hover{
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

html[data-theme="light"] .rc-nav a:hover{
  background: rgba(2,8,23,0.04);
}

/* ===== User dropdown ===== */
.rc-user-wrap{ position: relative; }

.rc-user-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  cursor: pointer;
}

html[data-theme="light"] .rc-user-btn{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-user-name{ font-weight: 800; }

.rc-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.4px;
  background: rgba(59,130,246,0.20);
  border: 1px solid rgba(59,130,246,0.30);
}

.rc-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rc-user-chevron{
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rc-badge{
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
}

html[data-theme="light"] .rc-badge{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-badge--admin{ border-color: rgba(59,130,246,0.40); }
.rc-badge--lang{ opacity: 0.9; }

.rc-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 360px;
  z-index: 2000;
}

.rc-menu__panel{
  border-radius: 16px;
  border: 1px solid var(--rc-border);
  background: var(--rc-surface-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  overflow: hidden;
}

html[data-theme="light"] .rc-menu__panel{
  border-color: var(--rc-border-light);
  background: var(--rc-surface-2-light);
  box-shadow: 0 16px 40px rgba(2,8,23,0.10);
}

.rc-menu__head{
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--rc-border-2);
}

html[data-theme="light"] .rc-menu__head{
  border-bottom-color: var(--rc-border-light);
}

.rc-menu__name{
  font-weight: 900;
  font-size: 14px;
  color: var(--text-main);
}

.rc-menu__meta{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rc-pill{
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
}

html[data-theme="light"] .rc-pill{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-pill--muted{ opacity: 0.85; }

.rc-menu__section{
  padding: 12px 14px;
  border-bottom: 1px solid var(--rc-border-2);
}

html[data-theme="light"] .rc-menu__section{
  border-bottom-color: var(--rc-border-light);
}

.rc-menu__section:last-child{ border-bottom: none; }

.rc-menu__label{
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
  color: var(--text-main);
}

.rc-menu__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.rc-menu__rowlabel{
  font-weight: 800;
  opacity: 0.9;
  color: var(--text-main);
}

.rc-chips{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rc-chip{
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--rc-border);
  background: rgba(255,255,255,0.06);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  opacity: 0.95;
}

html[data-theme="light"] .rc-chip{
  border-color: var(--rc-border-light);
  background: rgba(2,8,23,0.04);
}

.rc-chip:hover{ background: rgba(255,255,255,0.10); }
html[data-theme="light"] .rc-chip:hover{ background: rgba(2,8,23,0.06); }

.rc-chip.is-active{
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.14);
}

.rc-chip__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

/* IMPORTANT: avoid purple/underlined links from global styles */
.rc-menu a,
.rc-menu a:visited,
.rc-menu a:hover{
  color: var(--text-main) !important;
  text-decoration: none !important;
}

.rc-menu__item{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 800;
  opacity: 0.95;
}

.rc-menu__item:hover{
  opacity: 1;
  background: rgba(255,255,255,0.06);
}

html[data-theme="light"] .rc-menu__item:hover{
  background: rgba(2,8,23,0.04);
}

.rc-menu__itemicon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.rc-menu__item--danger{
  color: #fca5a5;
}

@media (max-width: 520px){
  .rc-menu{ width: 92vw; }
}

/* ---- viewer.css ---- */

/* /assets/css/viewer.css
   Viewer page polish (SaaS minimal premium)
   Safe: scoped to body.rc-viewer
*/
body.rc-viewer main { padding-top: 18px; }
body.rc-viewer .rc-pagehead{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin: 10px 0 16px;
}
body.rc-viewer .rc-pagehead__h{ margin:0; font-size: 26px; letter-spacing: -0.3px; }
body.rc-viewer .rc-pagehead__p{ margin:6px 0 0; }
body.rc-viewer .rc-pagehead__actions{ display:flex; gap:10px; flex-wrap:wrap; }
body.rc-viewer .rc-viewer-card{
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10,14,20,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  min-height: 240px;
  display:flex; align-items:center; justify-content:center;
}
html[data-theme="light"] body.rc-viewer .rc-viewer-card{
  background: rgba(255,255,255,0.75);
  border-color: rgba(2,8,23,0.10);
}

