/* Premium reading workspace. Scoped to this tool;
original engines and controls remain available. */
html[data-premium]{
  --bg-app:#f5f5f8;
  --bg-surface:#fff;
  --bg-elevated:#f6f6fa;
  --bg-canvas:#eeeff4;
  --bg-subtle:#f0eff6;
  --text-primary:#202437;
  --text-secondary:#64697d;
  --text-muted:#6d7385;
  --border-color:#e9e9f0;
  --border-strong:#d9d9e5;
  --accent-primary:#6654d9;
  --accent-primary-hover:#5442c7;
  --accent-secondary:#287c7f;
  --accent-soft:#f0ecff;
  --accent-blue-soft:#edf7f5;
  --font-sans:Manrope,'Noto Sans Devanagari',system-ui,sans-serif;
  --premium-shadow:0 8px 30px #27213d0a;
  --premium-paper-shadow:0 3px 7px #1d203108,0 20px 55px #24263c0d;
  --premium-welcome:#faf9f6
}
html[data-premium][data-theme=dark]{
  --bg-app:#10131e;
  --bg-surface:#161b2a;
  --bg-elevated:#1b2133;
  --bg-canvas:#0e1320;
  --bg-subtle:#232a3e;
  --text-primary:#eef0fa;
  --text-secondary:#aab2c9;
  --text-muted:#8792af;
  --border-color:#2a3147;
  --border-strong:#3e4863;
  --accent-primary:#b1a0ff;
  --accent-primary-hover:#c8baff;
  --accent-secondary:#8ad0c6;
  --accent-soft:#b1a0ff18;
  --accent-blue-soft:#8ad0c614;
  --premium-shadow:0 8px 35px #0003;
  --premium-paper-shadow:0 16px 55px #0004;
  --premium-welcome:#111727
}
.premium-desk{
  isolation:isolate;
  background:var(--bg-app);
  font-size:13px
}
.premium-desk button,.premium-desk a,.premium-desk summary{
  -webkit-tap-highlight-color:transparent
}
.premium-desk svg{
  width:18px;
  height:18px;
  flex-shrink:0
}
.premium-desk .top-header{
  padding:14px 24px;
  min-height:82px;
  gap:20px;
  border-bottom:1px solid var(--border-color);
  background:var(--bg-surface)
}
.premium-desk .brand-cluster{
  gap:14px
}
.premium-desk .brand-logo{
  width:39px;
  height:43px;
  background:#211e37;
  border-radius:12px;
  box-shadow:none
}
.premium-desk .brand-logo i{
  background:#abeca6;
  width:7px;
  height:7px;
  border:2px solid var(--bg-surface)
}
.premium-desk .brand-h1{
  font-size:16px;
  letter-spacing:-.45px;
  gap:12px;
  font-weight:750
}
.premium-desk .brand-name{
  font-size:18px;
  letter-spacing:-.8px
}
.premium-desk .brand-title-divider{
  color:var(--border-strong);
  padding-inline:2px
}
.premium-desk .doc-meta-bar{
  margin-top:4px;
  font-size:10px;
  max-width:44vw;
  gap:7px;
  color:var(--text-muted)
}
.premium-desk #docNameBadge{
  max-width:260px
}
.premium-desk .save-badge{
  font-weight:600;
  font-size:9px;
  border-radius:5px;
  padding:2px 5px;
  background:var(--success-bg);
  color:var(--success-color)
}
.premium-desk .btn{
  box-shadow:none;
  min-height:35px;
  gap:7px;
  border:1px solid var(--border-color);
  background:var(--bg-surface);
  font-size:11px;
  font-weight:650;
  border-radius:9px;
  padding:7px 10px;
  line-height:1.5
}
.premium-desk .btn:hover{
  background:var(--bg-elevated);
  border-color:var(--border-strong)
}
.premium-desk .btn.btn-primary{
  background:var(--accent-primary);
  color:white;
  border-color:var(--accent-primary);
  box-shadow:0 3px 8px #6654d91a
}
.premium-desk .btn.btn-primary:hover{
  background:var(--accent-primary-hover)
}
[data-theme=dark] .premium-desk .btn.btn-primary{
  color:#16182c
}
.premium-desk .btn.btn-secondary{
  background:var(--accent-blue-soft);
  border-color:transparent;
  color:var(--accent-secondary)
}
.premium-desk .btn.btn-danger{
  background:var(--danger-bg);
  color:var(--danger-color);
  border-color:transparent
}
.premium-desk .btn-icon{
  min-width:34px;
  padding:7px
}
.premium-desk .header-actions{
  gap:8px;
  flex-shrink:0
}
.premium-desk #btnDownloadAnnotatedPdf{
  min-height:40px;
  padding:9px 16px;
  letter-spacing:-.1px;
  border-radius:10px
}
.premium-desk #btnLangToggle,.premium-desk #btnThemeToggle{
  background:transparent;
  border-color:transparent;
  min-height:36px;
  color:var(--text-secondary)
}
.premium-desk .premium-open-file{
  min-height:40px;
  background:var(--bg-elevated);
  border-color:transparent;
  padding:9px 13px
}
.premium-desk #btnToggleLeftPanel{
  border:0;
  background:transparent;
  color:var(--text-secondary)
}
.premium-desk .desk-mode-strip{
  min-height:48px;
  padding:7px 24px;
  gap:20px;
  background:var(--bg-surface);
  border-color:var(--border-color)
}
.premium-crumb{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  white-space:nowrap;
  color:var(--text-muted)
}
.premium-crumb svg{
  width:16px;
  color:var(--accent-primary)
}
.premium-crumb strong{
  font-weight:650;
  color:var(--text-secondary)
}
.premium-crumb-slash{
  margin-inline:3px;
  opacity:.4
}
.premium-workspace-actions{
  display:flex;
  align-items:center;
  gap:6px
}
.premium-workspace-actions .btn{
  min-height:30px;
  font-size:10px;
  border-color:transparent;
  padding:5px 9px;
  color:var(--text-secondary);
  background:transparent
}
.premium-workspace-actions .btn.active{
  background:var(--accent-soft);
  color:var(--accent-primary)
}
.premium-icon-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:30px;
  min-height:30px;
  border:0;
  background:transparent;
  border-radius:7px;
  color:var(--text-secondary);
  padding:4px;
  cursor:pointer;
  font-size:10px
}
.premium-icon-button:hover{
  background:var(--bg-elevated);
  color:var(--accent-primary)
}
.premium-icon-button svg{
  width:16px
}
.premium-icon-button kbd{
  margin-inline-start:6px;
  font-family:inherit;
  font-size:9px;
  color:var(--text-muted);
  border:1px solid var(--border-color);
  border-radius:4px;
  padding:2px 4px
}
.premium-desk .workspace-body{
  border-top:0
}
.premium-desk .center-stage{
  background:var(--bg-canvas);
  overflow:hidden
}
.premium-desk .left-panel{
  width:var(--premium-left);
  background:var(--bg-surface);
  border-right:0;
  z-index:23
}
.premium-desk .right-panel{
  width:var(--premium-right);
  background:var(--bg-surface);
  border-left:0;
  z-index:23
}
.premium-desk .right-panel.wide-notes{
  width:clamp(344px,42vw,560px)
}
.premium-panel-heading{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:84px;
  padding:20px 20px 16px;
  background:var(--bg-surface)
}
.premium-panel-heading>div{
  min-width:0;
  flex:1
}
.premium-panel-heading strong{
  display:block;
  font-size:14px;
  font-weight:750;
  letter-spacing:-.25px;
  line-height:1.5
}
.premium-panel-heading small{
  display:block;
  color:var(--text-muted);
  font-size:9px;
  line-height:1.7;
  margin-top:4px
}
.premium-panel-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg-elevated);
  border:1px solid var(--border-color);
  border-radius:11px;
  width:34px;
  height:38px;
  color:var(--accent-primary);
  flex-shrink:0
}
.premium-panel-icon svg{
  width:18px;
  height:18px
}
.premium-notebook-heading{
  gap:12px;
  padding-inline:22px;
  min-height:84px
}
.premium-notebook-heading .premium-panel-icon{
  background:var(--accent-soft);
  border-color:transparent
}
.premium-desk .panel-tabs{
  padding:0 12px;
  gap:0;
  min-height:42px;
  border:0;
  border-bottom:1px solid var(--border-color);
  background:var(--bg-surface);
  align-items:stretch
}
.premium-desk .panel-tab{
  padding:10px 7px;
  font-size:10px!important;
  letter-spacing:0;
  font-weight:600;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  color:var(--text-muted);
  line-height:1.7;
  background:transparent;
  flex:1;
  min-width:0
}
.premium-desk .panel-tab.active{
  border-color:var(--accent-primary);
  color:var(--accent-primary);
  font-weight:750;
  background:transparent
}
.premium-desk .panel-content{
  padding:18px 15px;
  background:var(--bg-surface);
  scrollbar-width:thin;
  scrollbar-color:var(--border-strong) transparent
}
.premium-desk .right-panel .panel-content{
  padding:20px
}
.premium-desk .thumb-card{
  background:var(--bg-elevated);
  border:1px solid transparent;
  border-radius:10px;
  padding:9px 9px 7px;
  margin-bottom:15px;
  box-shadow:none
}
.premium-desk .thumb-card.active{
  border-color:color-mix(in srgb,var(--accent-primary) 55%,transparent);
  background:var(--accent-soft);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-primary) 5%,transparent)
}
.premium-desk .thumb-card-header{
  font-size:9px;
  line-height:1.8;
  gap:4px;
  font-weight:650;
  color:var(--text-secondary)
}
.premium-desk .thumb-card-header>span{
  min-width:0
}
.premium-desk .thumb-card-header>span:last-child{
  font-size:8px;
  white-space:nowrap
}
.premium-desk .desk-page-mini{
  margin:9px auto;
  border:1px solid #0000000d;
  background:#fff;
  box-shadow:0 2px 4px #00000005;
  border-radius:3px;
  width:100%;
  max-width:160px
}
.premium-desk .thumb-actions{
  gap:4px;
  justify-content:center;
  margin-top:6px
}
.premium-desk .thumb-actions button{
  font-size:9px;
  border:0;
  min-height:24px;
  background:var(--bg-surface);
  color:var(--text-secondary);
  border-radius:5px;
  padding:3px 5px
}
.premium-desk .thumb-actions button:hover{
  color:var(--accent-primary);
  background:var(--accent-soft)
}
.premium-resizer{
  width:5px;
  flex-shrink:0;
  position:relative;
  background:var(--border-color);
  cursor:col-resize;
  z-index:26;
  touch-action:none;
  outline:none;
  transition:background .15s
}
.premium-resizer::after{
  content:"";
  position:absolute;
  left:-3px;
  right:-3px;
  top:0;
  bottom:0
}
.premium-resizer:hover,.premium-resizer:focus-visible,.premium-resizing .premium-resizer{
  background:var(--accent-primary)
}
.premium-resizing{
  user-select:none;
  cursor:col-resize
}
.premium-no-left .premium-resizer-left,.premium-no-right .premium-resizer-right{
  display:none
}
.premium-desk .main-toolbar{
  flex-shrink:0;
  min-height:56px;
  padding:9px 12px;
  gap:8px;
  background:var(--bg-surface);
  border:1px solid var(--border-color);
  border-radius:12px;
  margin:16px 18px 0;
  overflow:visible;
  z-index:34;
  box-shadow:var(--premium-shadow);
  align-items:center;
  position:relative;
  justify-content:flex-start;
  flex-wrap:nowrap
}
.premium-desk .main-toolbar .tool-group{
  gap:3px;
  min-width:0;
  flex-shrink:1
}
.premium-desk .main-toolbar .tool-group:has(>.toolbar-divider:only-child){
  display:none
}
.premium-desk .tool-btn{
  min-height:34px;
  min-width:34px;
  gap:6px;
  padding:7px 8px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  font-size:10px;
  font-weight:650;
  color:var(--text-secondary);
  line-height:1.4
}
.premium-desk .tool-btn.active{
  background:var(--accent-soft);
  color:var(--accent-primary);
  border-color:transparent;
  box-shadow:none
}
.premium-desk .tool-btn:hover{
  background:var(--bg-elevated);
  color:var(--text-primary)
}
.premium-desk .tool-btn.active:hover{
  background:var(--accent-soft);
  color:var(--accent-primary)
}
.premium-desk .tool-btn svg{
  width:16px;
  height:16px
}
.premium-desk #toolAreaHighlight span,.premium-desk #toolMarker span,.premium-desk #toolStickyNote span{
  display:none
}
.premium-desk .toolbar-divider{
  background:var(--border-color);
  margin:0 5px;
  height:22px
}
.premium-desk .main-toolbar .premium-muted-divider{
  display:none
}
.premium-desk #shapeTypeSelect{
  font-size:10px;
  max-width:128px;
  width:128px;
  min-height:32px;
  background:transparent;
  border-color:var(--border-color);
  margin-inline-start:7px;
  padding-inline:7px
}
.premium-history{
  display:flex;
  gap:2px;
  flex-shrink:0;
  border-inline-end:1px solid var(--border-color);
  padding-inline-end:7px
}
.premium-history .btn{
  border:0;
  min-width:29px;
  min-height:32px;
  padding:5px;
  background:transparent
}
.premium-history .btn svg{
  width:15px;
  height:15px
}
.premium-active-tool{
  display:none;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
  color:var(--text-muted);
  font-size:9px;
  max-width:165px;
  margin-inline-start:auto
}
.premium-desk #selectionActionCluster{
  position:absolute;
  left:50%;
  top:calc(100% + 8px);
  transform:translateX(-50%);
  background:var(--bg-surface);
  border:1px solid var(--border-color);
  border-radius:9px;
  padding:5px;
  box-shadow:var(--premium-shadow);
  white-space:nowrap;
  z-index:41
}
.premium-desk #selectionActionCluster .toolbar-divider{
  display:none
}
.premium-popover{
  position:relative;
  flex-shrink:0;
  z-index:45
}
.premium-popover summary{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 9px;
  min-height:34px;
  font-size:10px;
  font-weight:650;
  line-height:1.5;
  cursor:pointer;
  color:var(--text-secondary);
  border:1px solid transparent;
  border-radius:8px;
  list-style:none;
  white-space:nowrap
}
.premium-popover summary::-webkit-details-marker{
  display:none
}
.premium-popover summary svg{
  width:16px;
  height:16px
}
.premium-popover summary:hover,.premium-popover[open]>summary{
  background:var(--bg-elevated);
  color:var(--accent-primary)
}
.premium-popover[open]>summary{
  border-color:var(--border-color)
}
.premium-popover-content{
  display:none;
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:290px;
  background:var(--bg-surface);
  border:1px solid var(--border-color);
  border-radius:14px;
  padding:17px;
  box-shadow:0 10px 50px #19152d24;
  max-height:min(520px,65dvh);
  overflow:auto;
  color:var(--text-primary);
  white-space:normal
}
.premium-popover[open]>.premium-popover-content{
  display:block
}
.premium-menu-heading{
  font-size:11px;
  font-weight:750;
  line-height:1.6;
  color:var(--text-primary);
  padding-bottom:14px
}
.premium-more-menu{
  margin-inline-start:0
}
.premium-more-menu summary{
  border:1px solid var(--border-color);
  min-width:36px;
  min-height:36px
}
.premium-more-menu summary>span{
  display:none
}
.premium-desk .premium-menu-grid{
  padding:17px;
  width:290px
}
.premium-desk .premium-menu-grid>.btn{
  display:flex!important;
  width:100%;
  justify-content:flex-start;
  background:transparent;
  border-color:transparent;
  font-size:12px;
  padding:9px 10px;
  min-height:39px;
  color:var(--text-secondary);
  font-weight:600
}
.premium-menu-grid .hide-on-mobile{
  display:inline-flex!important
}
.premium-desk .premium-menu-grid>.btn:hover{
  background:var(--bg-elevated);
  color:var(--text-primary)
}
.premium-menu-grid>.btn svg{
  width:17px;
  margin-inline-end:5px
}
.premium-menu-links{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding:16px 8px 2px;
  border-top:1px solid var(--border-color);
  margin-top:10px;
  font-size:10px
}
.premium-menu-links a{
  color:var(--text-muted);
  text-decoration:none
}
.premium-menu-links a:hover{
  color:var(--accent-primary)
}
#premiumToolSettings{
  margin-inline-start:auto
}
#premiumToolSettings>summary>span{
  display:none
}
#premiumToolSettings .premium-popover-content{
  width:326px
}
.premium-ink-palette{
  display:flex;
  gap:9px;
  align-items:center;
  padding:0 2px 20px
}
.premium-desk .premium-ink-palette .color-swatch{
  width:21px;
  height:21px;
  outline:0;
  border:3px solid var(--bg-surface);
  box-shadow:0 0 0 1px var(--border-color);
  transform:none
}
.premium-desk .premium-ink-palette .color-swatch.active{
  box-shadow:0 0 0 2px var(--accent-primary);
  border:3px solid var(--bg-surface);
  transform:none
}
.premium-desk .premium-ink-palette #customColorPicker{
  width:23px!important;
  height:23px!important;
  margin-left:2px
}
.premium-desk .style-controls{
  display:grid;
  grid-template-columns:90px minmax(0,1fr);
  gap:14px 10px;
  padding-top:15px;
  border-top:1px solid var(--border-color);
  font-size:11px
}
.premium-desk .style-controls label{
  font-size:11px!important;
  color:var(--text-secondary)!important;
  align-self:center;
  line-height:1.6
}
.premium-desk .style-controls .compact-select{
  width:100%;
  min-width:0;
  min-height:33px;
  background:var(--bg-elevated);
  font-size:11px
}
.premium-desk .style-controls input[type=range]{
  width:100%!important;
  min-width:0;
  accent-color:var(--accent-primary)
}
.premium-range-field{
  display:flex;
  gap:8px;
  align-items:center
}
.premium-desk #strokeWidthLabel{
  font-size:10px!important;
  color:var(--text-muted);
  min-width:28px
}
.premium-desk .pdf-viewport-scroll{
  padding:26px 28px 120px;
  gap:26px;
  background:transparent;
  background-image:none;
  scrollbar-width:thin;
  scrollbar-color:var(--border-strong) transparent;
  scroll-behavior:smooth
}
.premium-desk .pdf-page-wrapper{
  border-radius:3px;
  box-shadow:var(--premium-paper-shadow);
  border:1px solid #00000004;
  margin-bottom:30px;
  max-width:none
}
.premium-desk .pdf-render-canvas{
  border-radius:3px
}
.premium-desk .page-badge-footer{
  color:var(--text-muted);
  font-size:9px;
  bottom:-24px;
  font-weight:500;
  letter-spacing:.05px
}
.premium-desk .scanned-page-pill{
  top:10px;
  right:10px;
  max-width:86%;
  font-size:9px;
  border-radius:7px;
  line-height:1.8;
  background:#202437d9;
  padding:5px 9px
}
.premium-desk .premium-reader-dock{
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-wrap:nowrap;
  justify-content:center;
  gap:10px;
  padding:9px 10px;
  background:color-mix(in srgb,var(--bg-surface) 95%,transparent);
  backdrop-filter:blur(20px);
  border:1px solid var(--border-color);
  border-radius:13px;
  box-shadow:0 6px 30px #27213d13;
  max-width:calc(100% - 32px);
  width:max-content;
  min-height:52px;
  overflow:visible;
  z-index:37
}
.premium-reader-dock .page-nav-controls{
  gap:4px
}
.premium-reader-dock .page-nav-controls>span:first-of-type{
  display:none
}
.premium-desk .premium-reader-dock .btn{
  min-height:30px;
  min-width:29px;
  padding:5px 7px;
  border-color:transparent;
  background:transparent;
  border-radius:6px
}
.premium-desk .premium-reader-dock .btn:hover{
  background:var(--bg-elevated)
}
.premium-desk .premium-reader-dock .page-num-input{
  width:34px;
  min-height:29px;
  height:29px;
  background:var(--bg-elevated);
  border-color:transparent;
  padding:2px;
  font-size:11px;
  border-radius:6px
}
.premium-desk .premium-reader-dock #totalPagesLabel{
  font-weight:500;
  font-size:10px!important;
  margin-inline-end:3px;
  color:var(--text-muted)
}
.premium-desk .premium-reader-dock #btnJumpLastRead{
  display:none
}
.premium-zoom{
  display:flex;
  gap:2px;
  align-items:center;
  padding-inline:8px;
  border-inline-start:1px solid var(--border-color)
}
.premium-desk #zoomSelect{
  font-size:10px;
  min-height:29px;
  max-width:125px;
  border-color:transparent;
  background:transparent;
  padding:2px 5px
}
.premium-view-menu{
  padding-inline-start:3px;
  border-inline-start:1px solid var(--border-color)
}
.premium-view-menu summary{
  min-height:29px;
  padding:4px 8px
}
.premium-view-menu>.premium-popover-content{
  top:auto;
  bottom:calc(100% + 16px);
  width:295px;
  right:-9px;
  padding:16px
}
.premium-desk .premium-view-menu .view-controls{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  min-width:0
}
.premium-view-menu .hide-on-mobile{
  display:block!important
}
.premium-view-menu .view-controls .compact-select{
  grid-column:1/-1;
  width:100%;
  min-height:36px;
  font-size:11px;
  background:var(--bg-elevated)
}
.premium-desk .premium-view-menu .view-controls .btn{
  min-height:36px;
  border:1px solid var(--border-color);
  background:var(--bg-elevated);
  font-size:13px
}
.premium-reading-progress{
  position:absolute;
  height:2px;
  overflow:hidden;
  left:13px;
  right:13px;
  bottom:0;
  background:var(--bg-elevated);
  border-radius:8px;
  pointer-events:none
}
.premium-reading-progress>span{
  display:block;
  height:100%;
  background:var(--accent-primary);
  border-radius:8px;
  transition:width .2s ease
}
.premium-desk .search-bar-strip.open{
  padding:12px 20px;
  background:var(--bg-surface);
  border-top:1px solid var(--border-color);
  border-bottom:1px solid var(--border-color);
  gap:9px
}
.premium-desk .compact-input,.premium-desk .compact-select{
  font-size:12px;
  min-height:33px;
  border-radius:7px;
  border-color:var(--border-color);
  background:var(--bg-elevated);
  color:var(--text-primary)
}
.premium-desk .right-panel .compact-select{
  font-size:11px;
  background:var(--bg-surface);
  min-height:34px
}
.premium-desk .right-panel input,.premium-desk .right-panel textarea{
  font-size:12px;
  line-height:1.8
}
.premium-desk .right-panel input::placeholder,.premium-desk .right-panel textarea::placeholder{
  color:var(--text-muted);
  opacity:.85
}
.premium-desk #rightPanelNotes>div:first-child{
  margin-bottom:13px!important
}
.premium-desk #rightPanelNotes>div:first-child>strong{
  font-size:11px!important;
  font-weight:650;
  color:var(--text-secondary)
}
.premium-desk #btnExpandNotesWidth{
  font-size:0!important;
  border:0;
  background:var(--bg-elevated);
  width:29px;
  min-height:27px;
  padding:4px
}
.premium-desk #btnExpandNotesWidth::before{
  content:'↔';
  font-size:15px
}
.premium-desk .premium-note-composer{
  padding:14px!important;
  border:1px solid var(--border-color)!important;
  border-radius:12px!important;
  background:var(--bg-elevated)!important;
  margin-bottom:17px!important
}
.premium-note-composer>div:first-child{
  margin-bottom:10px!important
}
.premium-desk .premium-note-title-row{
  flex-wrap:wrap;
  gap:7px!important
}
.premium-desk #noteTitleInput{
  width:100%;
  flex-basis:100%!important;
  background:var(--bg-surface);
  min-height:36px;
  font-size:12px;
  padding:8px 10px
}
.premium-desk #noteTagSelect{
  font-size:10px;
  min-height:29px;
  background:transparent;
  border-color:transparent;
  margin:0;
  padding-inline:3px
}
.premium-desk #noteContentInput{
  min-height:115px;
  padding:12px!important;
  border-color:transparent;
  background:var(--bg-surface);
  font-size:12px;
  line-height:1.9;
  resize:vertical
}
.premium-desk #btnInsertPageCitation{
  font-size:10px!important;
  background:transparent;
  border-color:transparent;
  padding:5px 3px!important;
  color:var(--accent-primary)
}
.premium-desk #btnAddStudyNote{
  font-size:11px!important;
  min-height:34px;
  padding:7px 13px!important
}
.premium-note-filters{
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:7px!important;
  margin-bottom:18px!important
}
.premium-note-filters #notesFilterQuery{
  grid-column:1/-1;
  min-height:35px;
  font-size:11px;
  background:var(--bg-elevated);
  padding-inline:10px;
  border-color:transparent
}
.premium-note-filters select{
  font-size:10px!important;
  min-height:30px!important;
  background:transparent!important;
  border-color:var(--border-color)
}
.premium-note-summary{
  display:flex;
  gap:8px;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  font-size:10px;
  color:var(--text-muted)
}
.premium-note-summary strong{
  font-size:9px;
  white-space:nowrap;
  font-weight:650;
  border-radius:5px;
  background:var(--bg-elevated);
  padding:3px 5px;
  color:var(--text-secondary)
}
.premium-desk .note-card,.premium-desk .annot-item-card{
  padding:14px;
  border-radius:10px;
  border:1px solid var(--border-color);
  background:var(--bg-surface);
  box-shadow:0 3px 10px #201c3403;
  line-height:1.8;
  margin-bottom:12px
}
.premium-desk .note-card[data-note-id]{
  border-inline-start:3px solid color-mix(in srgb,var(--accent-primary) 55%,var(--border-color))
}
.premium-desk .note-card .tag-pill{
  font-size:8px;
  line-height:1.5;
  border-radius:4px;
  padding:3px 6px
}
.premium-desk .note-card .inline-page-ref{
  font-size:9px;
  background:var(--accent-soft);
  color:var(--accent-primary);
  border-radius:4px;
  padding:2px 4px
}
.premium-desk .note-card [data-user-content]{
  font-size:12px!important;
  line-height:1.9!important;
  overflow-wrap:anywhere
}
.premium-desk .note-quote-block{
  border-left:2px solid var(--accent-primary);
  padding-left:9px;
  font-size:11px!important;
  color:var(--text-secondary);
  font-style:normal;
  background:var(--bg-elevated);
  border-radius:0 5px 5px 0;
  padding-block:7px
}
.premium-desk .note-card .btn{
  font-size:9px!important;
  min-height:24px;
  padding:3px 5px!important;
  border-color:transparent;
  background:var(--bg-elevated);
  color:var(--text-secondary)
}
.premium-desk .premium-notes-export{
  padding-top:16px!important;
  margin-top:20px!important;
  gap:7px!important
}
.premium-desk .premium-notes-export>span{
  font-weight:600!important;
  color:var(--text-muted)!important;
  font-size:10px!important;
  margin-bottom:3px
}
.premium-desk .premium-notes-export .btn{
  font-size:10px!important;
  min-height:34px
}
.premium-desk #annotationsListContainer strong{
  font-size:10px
}
.premium-desk #rightPanelFlashcards .note-card{
  padding:13px
}
.premium-desk #rightPanelFlashcards strong{
  font-size:12px
}
.premium-desk #studyTimerDisplay{
  font-size:23px!important;
  letter-spacing:.2px;
  line-height:1.5;
  margin-top:4px;
  font-weight:750!important
}
.premium-desk .modal-backdrop{
  backdrop-filter:blur(10px);
  background:#15162e52
}
.premium-desk .modal-dialog{
  border-radius:17px;
  border-color:var(--border-color);
  box-shadow:0 25px 90px #16142830;
  padding:26px;
  line-height:1.9
}
.premium-desk .modal-dialog input,.premium-desk .modal-dialog textarea,.premium-desk .modal-dialog select{
  min-height:37px
}
.premium-desk .modal-dialog input[type=checkbox]{
  min-height:0
}
.premium-desk .modal-dialog h3{
  font-size:18px;
  font-weight:750
}
.premium-desk .toast-container{
  max-height:30dvh;
  right:20px;
  bottom:22px;
  z-index:100
}
.premium-desk .toast-item{
  padding:12px 16px;
  border-left-width:3px;
  font-size:11px;
  border-radius:11px;
  border-top:1px solid var(--border-color);
  border-right:1px solid var(--border-color);
  border-bottom:1px solid var(--border-color);
  box-shadow:0 8px 35px #18152c15;
  line-height:1.8;
  background:var(--bg-surface)
}
/* Welcome */
.premium-welcome .left-panel,.premium-welcome .right-panel,.premium-welcome .premium-resizer,.premium-welcome .main-toolbar,.premium-welcome .premium-reader-dock,.premium-welcome .mobile-bottom-dock{
  display:none!important
}
.premium-desk.premium-welcome .center-stage{
  background:var(--premium-welcome)
}
.premium-desk #emptyDropzoneContainer{
  padding:0!important;
  overflow-y:auto;
  scrollbar-width:thin;
  background:var(--premium-welcome)
}
.premium-desk .empty-upload-card{
  max-width:1240px;
  margin:0 auto;
  padding:44px 52px 28px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-align:left
}
.premium-original-symbol{
  display:none
}
.premium-welcome-hero{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  align-items:center;
  gap:60px;
  min-height:380px;
  padding-block:10px 26px
}
.premium-welcome-copy{
  min-width:0
}
.premium-desk .desk-eyebrow{
  font-size:9px;
  letter-spacing:1.6px;
  color:var(--accent-primary);
  font-weight:800;
  margin:0 0 18px;
  line-height:1.8
}
.premium-desk .premium-welcome-copy h2{
  font-size:46px!important;
  line-height:1.35;
  font-weight:750;
  letter-spacing:-1.7px;
  margin:0 0 17px!important;
  color:var(--text-primary)
}
[lang=hi] .premium-desk .premium-welcome-copy h2{
  font-size:39px!important;
  line-height:1.65;
  letter-spacing:-1.1px
}
.premium-welcome-copy h2 em{
  font-style:normal;
  color:var(--accent-primary)
}
.premium-desk .premium-welcome-copy>p{
  font-size:13px!important;
  line-height:2;
  max-width:435px;
  color:var(--text-secondary)!important;
  margin:0 0 23px!important
}
.premium-desk .premium-welcome-actions{
  justify-content:flex-start!important;
  gap:10px!important;
  margin-bottom:17px!important
}
.premium-desk .premium-welcome-actions .btn{
  min-height:45px;
  padding:11px 19px!important;
  font-size:12px!important;
  border-radius:9px
}
.premium-desk .premium-welcome-actions .btn svg{
  width:17px;
  height:17px
}
.premium-trust-line{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--text-muted);
  font-size:10px;
  line-height:1.7
}
.premium-trust-line svg{
  width:13px;
  height:13px;
  color:var(--accent-secondary)
}
.premium-welcome-art{
  position:relative;
  height:360px;
  min-width:0;
  isolation:isolate
}
.premium-art-orbit{
  position:absolute;
  border:1px solid color-mix(in srgb,var(--accent-primary) 9%,transparent);
  border-radius:50%;
  z-index:-1;
  pointer-events:none
}
.premium-art-orbit-one{
  width:360px;
  height:360px;
  right:0;
  top:0;
  background:radial-gradient(ellipse,#bbaaf014,transparent 65%)
}
.premium-art-orbit-two{
  width:280px;
  height:280px;
  right:40px;
  top:40px;
  border-style:dashed
}
.premium-art-paper{
  position:absolute;
  top:21px;
  left:10px;
  width:255px;
  height:305px;
  background:var(--bg-surface);
  border:1px solid var(--border-color);
  border-radius:13px;
  padding:26px 23px;
  box-shadow:0 16px 50px #33264b10;
  transform:rotate(-7deg);
  z-index:1
}
.premium-art-paper-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:17px;
  border-bottom:1px solid var(--border-color);
  color:var(--text-muted);
  font-size:10px;
  margin-bottom:21px
}
.premium-art-paper-top svg{
  width:17px;
  height:17px;
  color:var(--accent-primary)
}
.premium-art-paper>strong{
  display:block;
  font-size:16px;
  letter-spacing:-.3px;
  margin-bottom:18px;
  font-weight:750
}
.premium-art-line{
  height:4px;
  background:var(--border-color);
  border-radius:5px;
  width:100%;
  margin-bottom:10px
}
.premium-art-line.short{
  width:63%
}
.premium-art-line.medium{
  width:81%
}
.premium-art-highlight{
  font-size:10px;
  line-height:1.8;
  white-space:nowrap;
  display:inline-block;
  background:#eff6bb;
  color:#4b4d35;
  border-radius:2px;
  padding:2px 4px;
  margin:3px -3px 13px
}
.premium-art-scribble{
  width:145px;
  height:38px;
  margin:5px 0 0 -5px;
  color:var(--accent-primary)
}
.premium-art-scribble svg{
  height:44px;
  width:170px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round
}
.premium-art-paper-bottom{
  position:absolute;
  bottom:16px;
  left:23px;
  right:20px;
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--text-muted);
  font-size:7px
}
.premium-art-paper-bottom i{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#8cb594
}
.premium-art-note{
  position:absolute;
  right:0;
  top:130px;
  width:190px;
  min-height:168px;
  padding:19px 18px;
  background:#f4eee1;
  border:1px solid #e7e1d5;
  border-radius:11px;
  transform:rotate(7deg);
  z-index:3;
  box-shadow:0 12px 35px #473d2412;
  color:#514a39
}
.premium-art-note>svg{
  width:17px;
  height:17px;
  float:right;
  color:#8a7956
}
.premium-art-note>small{
  display:block;
  font-size:9px;
  color:#8b816a;
  font-weight:600;
  margin-bottom:15px
}
.premium-art-note>strong{
  display:block;
  font-size:12px;
  line-height:1.8;
  font-weight:650;
  margin-bottom:14px
}
.premium-art-note .premium-art-line{
  background:#ddd4c1
}
.premium-art-note-tag{
  display:inline-block;
  font-size:7px;
  background:#dce8cc;
  color:#68784c;
  border-radius:4px;
  padding:3px 6px;
  line-height:1.5;
  margin-top:5px
}
.premium-art-pill{
  position:absolute;
  left:30px;
  top:0;
  z-index:4;
  display:flex;
  gap:7px;
  align-items:center;
  font-size:9px;
  font-weight:650;
  background:var(--bg-surface);
  border:1px solid var(--border-color);
  border-radius:8px;
  box-shadow:0 5px 20px #27213d08;
  padding:9px 13px;
  color:var(--accent-primary);
  transform:rotate(2deg)
}
.premium-art-pill svg{
  width:14px;
  height:14px
}
.premium-feature-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  border-top:1px solid var(--border-color);
  border-bottom:1px solid var(--border-color);
  padding:21px 0;
  margin:0 0 25px
}
.premium-feature-row>span{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:11px;
  line-height:1.7;
  color:var(--text-secondary)
}
.premium-feature-row svg{
  color:var(--accent-primary);
  width:16px;
  height:16px
}
.premium-feature-row b{
  font-weight:600
}
.premium-samples-title{
  font-size:11px!important;
  font-weight:700!important;
  color:var(--text-secondary)!important;
  margin:0 0 14px!important
}
.premium-desk .sample-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}
.premium-desk .sample-card{
  padding:17px 15px;
  min-height:140px;
  border-radius:11px;
  background:var(--bg-surface);
  border:1px solid var(--border-color);
  box-shadow:0 2px 8px #27213d02;
  transition:transform .18s,border-color .18s,box-shadow .18s;
  text-align:left;
  line-height:1.9;
  gap:10px;
  position:relative;
  overflow:hidden
}
.premium-desk .sample-card:hover{
  background:var(--bg-surface);
  border-color:color-mix(in srgb,var(--accent-primary) 45%,var(--border-color));
  box-shadow:0 8px 20px #27213d06;
  transform:translateY(-3px)
}
.premium-desk .sample-card:focus-visible{
  outline:2px solid var(--accent-primary);
  outline-offset:2px
}
.premium-desk .sample-card strong{
  font-size:11px!important;
  line-height:1.9;
  letter-spacing:-.1px;
  color:var(--text-primary)!important;
  font-weight:750
}
.premium-desk .sample-card>span{
  font-size:9px!important;
  line-height:1.9;
  color:var(--text-muted)!important
}
.premium-desk .sample-card code{
  background:var(--bg-elevated);
  font-size:9px;
  padding:1px 3px;
  border-radius:3px
}
.premium-return-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:20px
}
.premium-desk .premium-return-button{
  border:0;
  background:transparent;
  color:var(--accent-primary);
  font-size:10px;
  min-height:30px
}
.premium-desk .desk-info-guide{
  font-size:10px;
  border-top:0;
  padding-top:8px;
  margin:5px auto 0;
  max-width:760px;
  color:var(--text-muted);
  text-align:center
}
.premium-desk .desk-info-guide summary{
  font-size:10px;
  font-weight:600;
  color:var(--text-muted)
}
/* Command palette */
.premium-command-dialog{
  width:540px;
  max-width:calc(100vw - 32px);
  max-height:min(650px,84dvh);
  border:1px solid var(--border-color);
  padding:0;
  border-radius:17px;
  box-shadow:0 30px 120px #0e0d2a3d;
  background:var(--bg-surface);
  color:var(--text-primary);
  margin:11vh auto auto;
  overflow:hidden
}
.premium-command-dialog::backdrop{
  background:#15162e55;
  backdrop-filter:blur(7px)
}
.premium-command-search{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 20px;
  border-bottom:1px solid var(--border-color)
}
.premium-command-search>svg{
  width:20px;
  color:var(--accent-primary)
}
.premium-command-search input{
  flex:1;
  min-width:0;
  background:transparent;
  border:0;
  outline:none;
  color:var(--text-primary);
  font-size:14px;
  line-height:1.7;
  padding:0;
  box-shadow:none
}
.premium-command-search input:focus-visible{
  outline:none
}
.premium-command-search input::placeholder{
  color:var(--text-muted)
}
.premium-command-search>button{
  border:0;
  background:transparent;
  padding:2px;
  cursor:pointer
}
.premium-command-dialog kbd{
  font-size:9px;
  border:1px solid var(--border-color);
  border-radius:4px;
  padding:3px 5px;
  line-height:1.2;
  background:var(--bg-elevated);
  color:var(--text-muted);
  font-family:inherit
}
.premium-command-caption{
  font-size:10px;
  padding:13px 21px 7px;
  color:var(--text-muted)
}
#premiumCommandResults{
  max-height:min(410px,53dvh);
  overflow:auto;
  padding:4px 9px 9px;
  scrollbar-width:thin
}
.premium-command-result{
  display:flex;
  width:100%;
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--text-secondary);
  cursor:pointer;
  text-align:left;
  min-height:46px;
  font-size:12px;
  line-height:1.7
}
.premium-command-result>span:nth-child(2){
  flex:1
}
.premium-command-result-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:29px;
  height:29px;
  border-radius:7px;
  background:var(--bg-elevated);
  color:var(--text-muted);
  flex-shrink:0
}
.premium-command-result-icon svg{
  width:15px;
  height:15px
}
.premium-command-result[aria-selected=true],.premium-command-result:hover{
  background:var(--accent-soft);
  color:var(--accent-primary)
}
.premium-command-result[aria-selected=true] .premium-command-result-icon{
  color:var(--accent-primary);
  background:var(--bg-surface)
}
.premium-command-dialog footer{
  display:flex;
  align-items:center;
  gap:18px;
  padding:12px 20px;
  border-top:1px solid var(--border-color);
  font-size:10px;
  color:var(--text-muted);
  background:var(--bg-elevated)
}
.premium-command-dialog footer>span{
  display:flex;
  gap:5px
}
.premium-command-empty{
  padding:30px 14px;
  color:var(--text-muted);
  font-size:12px;
  text-align:center;
  line-height:1.9
}
.premium-desk.focus-mode .main-toolbar{
  margin-right:150px
}
.premium-desk.focus-mode .premium-resizer{
  display:none
}
.premium-desk .focus-exit{
  top:17px;
  right:20px;
  box-shadow:var(--premium-shadow);
  background:var(--bg-surface);
  z-index:70;
  font-size:10px;
  min-height:35px
}
@media(min-width:1720px){
  .premium-desk .top-header{
    padding-inline:30px
  }
  .premium-desk .desk-mode-strip{
    padding-inline:30px
  }
  .premium-desk .main-toolbar{
    margin-inline:26px;
    padding-inline:16px;
    gap:11px
  }
  .premium-desk .main-toolbar .tool-group{
    gap:5px
  }
  .premium-desk .tool-btn{
    font-size:11px;
    padding-inline:10px
  }
  .premium-desk #toolEraser span{
    display:inline
  }
  .premium-desk #shapeTypeSelect{
    max-width:150px;
    width:150px
  }
  .premium-active-tool{
    display:block
  }
  .premium-desk .pdf-viewport-scroll{
    padding-inline:38px
  }
  .premium-desk .empty-upload-card{
    padding-top:60px
  }
  .premium-welcome-hero{
    min-height:410px;
    gap:80px
  }
  .premium-welcome-art{
    height:380px
  }
  .premium-art-paper{
    left:20px;
    top:25px;
    width:275px;
    height:315px
  }
  .premium-art-note{
    width:200px;
    top:155px;
    right:10px
  }
}
@media(max-width:1370px){
  .premium-desk .tool-btn span{
    display:none
  }
  .premium-desk .main-toolbar{
    margin:14px 14px 0;
    gap:6px;
    padding:8px
  }
  .premium-desk #shapeTypeSelect{
    width:115px;
    max-width:115px;
    font-size:9px
  }
  .premium-desk .tool-btn{
    padding:7px;
    min-width:32px
  }
  .premium-history{
    padding-inline-end:4px
  }
  .premium-desk .header-actions{
    gap:5px
  }
  .premium-desk .doc-meta-bar{
    max-width:40vw
  }
  .premium-desk .premium-reader-dock #zoomSelect{
    max-width:100px
  }
  .premium-view-menu summary>span{
    display:none
  }
  .premium-desk .premium-reader-dock{
    gap:4px;
    padding:8px
  }
  .premium-desk .premium-reader-dock #btnBookmarkPage{
    display:none
  }
  .premium-desk .empty-upload-card{
    padding-inline:40px
  }
  .premium-welcome-hero{
    gap:40px
  }
}
@media(max-width:1120px){
  .premium-desk .premium-open-file>span{
    display:none
  }
  .premium-desk .brand-h1{
    font-size:14px
  }
  .premium-desk .brand-name{
    font-size:16px
  }
  .premium-desk .brand-logo{
    width:34px;
    height:38px
  }
  .premium-desk #docNameBadge{
    max-width:180px
  }
  .premium-workspace-actions .btn{
    font-size:9px;
    padding-inline:6px
  }
  .premium-crumb{
    font-size:10px
  }
  .premium-icon-button>span{
    display:none
  }
  .premium-icon-button kbd{
    font-size:8px
  }
  .premium-desk .main-toolbar{
    gap:3px;
    margin-inline:10px;
    padding:7px;
    min-height:50px
  }
  .premium-history{
    gap:0
  }
  .premium-history .btn{
    min-width:25px;
    padding:4px
  }
  .premium-desk .tool-btn{
    min-width:29px;
    padding:6px
  }
  .premium-desk .tool-btn svg{
    width:15px;
    height:15px
  }
  .premium-desk #shapeTypeSelect{
    max-width:97px;
    width:97px;
    min-height:29px;
    font-size:9px;
    margin-left:2px
  }
  .premium-desk .main-toolbar .tool-group{
    gap:1px
  }
  .premium-popover summary{
    padding:6px;
    min-height:30px
  }
  .premium-desk .premium-reader-dock{
    gap:1px;
    bottom:14px;
    max-width:calc(100% - 22px)
  }
  .premium-desk .premium-reader-dock .btn{
    min-width:25px;
    padding:5px
  }
  .premium-desk #zoomSelect{
    max-width:83px!important;
    padding-inline:2px;
    font-size:9px
  }
  .premium-zoom{
    padding-inline:4px
  }
  .premium-desk .premium-reader-dock .page-num-input{
    width:31px
  }
  .premium-desk .premium-reader-dock #totalPagesLabel{
    font-size:9px!important
  }
  .premium-desk .premium-reader-dock #btnBookmarkPage{
    display:none
  }
  .premium-desk .empty-upload-card{
    padding-inline:32px
  }
  .premium-welcome-art{
    height:330px
  }
  .premium-art-paper{
    width:230px;
    height:285px;
    left:0
  }
  .premium-art-note{
    width:170px;
    right:-5px
  }
  .premium-art-orbit-one{
    width:310px;
    height:310px
  }
  .premium-art-orbit-two{
    width:245px;
    height:245px;
    right:32px;
    top:32px
  }
}
@media(max-width:1024px){
  .premium-desk .top-header{
    min-height:76px;
    padding:12px 18px;
    gap:12px
  }
  .premium-desk .left-panel,.premium-desk .right-panel,.premium-desk .right-panel.wide-notes{
    position:absolute;
    top:0;
    bottom:0;
    width:min(360px,88vw);
    max-width:88vw;
    z-index:55;
    box-shadow:0 4px 40px #15162e26;
    transition:none
  }
  .premium-desk .left-panel{
    left:0;
    width:240px;
    border-right:1px solid var(--border-color)
  }
  .premium-desk .right-panel,.premium-desk .right-panel.wide-notes{
    right:0;
    border-left:1px solid var(--border-color)
  }
  .premium-desk .left-panel.collapsed,.premium-desk .right-panel.collapsed{
    display:none
  }
  .premium-desk .premium-resizer{
    display:none
  }
  .premium-desk .desk-mode-strip{
    padding:8px 18px;
    min-height:44px
  }
  .premium-workspace-actions .btn{
    font-size:10px;
    padding-inline:8px
  }
  .premium-desk .main-toolbar{
    margin:14px 18px 0;
    padding:9px 12px;
    gap:10px;
    min-height:55px
  }
  .premium-desk .tool-btn{
    min-width:35px;
    padding:7px
  }
  .premium-desk .main-toolbar .tool-group{
    gap:5px
  }
  .premium-desk #shapeTypeSelect{
    width:130px;
    max-width:130px;
    margin-left:6px;
    min-height:33px;
    font-size:10px
  }
  .premium-history{
    gap:3px;
    padding-right:9px
  }
  .premium-history .btn{
    min-width:29px
  }
  .premium-desk .premium-reader-dock{
    bottom:83px;
    max-width:calc(100% - 32px);
    gap:8px;
    padding:9px 10px
  }
  .premium-desk .premium-reader-dock .btn{
    min-width:29px;
    padding:6px
  }
  .premium-desk .premium-reader-dock #zoomSelect{
    max-width:115px!important;
    font-size:10px
  }
  .premium-desk .premium-reader-dock #btnBookmarkPage{
    display:inline-flex
  }
  .premium-view-menu summary>span{
    display:inline
  }
  .premium-desk .mobile-bottom-dock{
    display:flex;
    left:50%;
    right:auto;
    bottom:max(12px,env(safe-area-inset-bottom));
    transform:translateX(-50%);
    width:max-content;
    max-width:calc(100vw - 24px);
    gap:5px;
    padding:8px 9px;
    border:1px solid var(--border-color);
    border-radius:14px;
    background:color-mix(in srgb,var(--bg-surface) 96%,transparent);
    box-shadow:0 7px 30px #25213b18;
    backdrop-filter:blur(15px);
    z-index:65;
    min-height:52px
  }
  .premium-desk .mobile-bottom-dock .tool-btn{
    display:flex;
    min-height:33px;
    font-size:10px;
    gap:5px;
    padding:7px 9px;
    border-radius:7px
  }
  .premium-desk .pdf-viewport-scroll{
    padding-bottom:170px
  }
  .premium-desk .toast-container{
    bottom:144px;
    right:17px
  }
  .premium-desk .toast-item{
    max-width:min(360px,85vw)
  }
  .premium-desk .premium-welcome-copy h2{
    font-size:40px!important
  }
  [lang=hi] .premium-desk .premium-welcome-copy h2{
    font-size:32px!important
  }
  .premium-desk .sample-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .premium-desk .sample-card{
    min-height:118px
  }
  .premium-feature-row{
    gap:15px
  }
  .premium-feature-row>span{
    font-size:10px
  }
  .premium-desk .premium-welcome-actions .btn{
    font-size:11px!important;
    padding-inline:13px!important
  }
}
@media(max-width:700px){
  .premium-desk .top-header{
    padding:10px 12px;
    min-height:66px;
    gap:8px
  }
  .premium-desk .brand-cluster{
    gap:8px
  }
  .premium-desk .brand-logo{
    width:31px;
    height:35px;
    font-size:18px;
    border-radius:9px
  }
  .premium-desk .brand-logo span{
    font-size:15px;
    margin-bottom:7px
  }
  .premium-desk .brand-logo i{
    width:6px;
    height:6px;
    right:-1px
  }
  .premium-desk .brand-name,.premium-desk .brand-title-divider{
    display:none
  }
  .premium-desk .brand-h1{
    font-size:13px;
    letter-spacing:-.25px;
    line-height:1.7;
    gap:0
  }
  .premium-desk .doc-meta-bar{
    margin-top:0;
    font-size:8px;
    max-width:32vw;
    gap:4px;
    flex-wrap:nowrap;
    line-height:1.8
  }
  .premium-desk #docDimBadge,.premium-desk .doc-meta-bar>span:nth-child(2),.premium-desk .doc-meta-bar>span:nth-child(4){
    display:none
  }
  .premium-desk #docNameBadge{
    max-width:84px;
    min-width:0
  }
  .premium-desk .save-badge{
    display:none
  }
  .premium-desk #btnToggleLeftPanel{
    min-width:28px;
    padding:4px;
    min-height:31px;
    font-size:16px
  }
  .premium-desk .header-actions{
    gap:3px
  }
  .premium-desk .premium-open-file{
    min-width:32px;
    min-height:33px;
    padding:6px;
    background:transparent
  }
  .premium-desk .premium-more-menu>summary{
    min-height:32px;
    min-width:29px;
    padding:4px;
    border-color:transparent
  }
  .premium-desk #btnLangToggle{
    font-size:9px;
    padding:4px;
    min-height:31px
  }
  .premium-desk #btnThemeToggle{
    min-width:28px;
    padding:5px;
    min-height:31px
  }
  .premium-desk #btnDownloadAnnotatedPdf{
    min-height:33px;
    min-width:34px;
    padding:7px;
    border-radius:8px
  }
  .premium-desk #btnDownloadAnnotatedPdf span{
    display:none
  }
  .premium-desk #btnDownloadAnnotatedPdf svg{
    width:16px;
    height:16px
  }
  .premium-desk .premium-more-menu>.premium-popover-content{
    position:fixed;
    top:65px;
    right:12px;
    width:280px;
    max-width:calc(100vw - 24px);
    z-index:90
  }
  .premium-desk .desk-mode-strip{
    padding:6px 12px;
    gap:10px;
    min-height:40px
  }
  .premium-crumb{
    font-size:9px;
    gap:5px
  }
  .premium-crumb svg{
    width:14px
  }
  .premium-crumb-slash,.premium-crumb strong{
    display:none
  }
  .premium-workspace-actions{
    gap:2px
  }
  .premium-workspace-actions .btn{
    font-size:0;
    min-height:27px;
    min-width:30px;
    padding:5px;
    gap:0;
    border-radius:6px
  }
  .premium-workspace-actions .btn span{
    display:none!important
  }
  .premium-workspace-actions .btn svg{
    width:15px;
    height:15px
  }
  .premium-icon-button{
    min-width:28px;
    min-height:27px;
    padding:3px
  }
  .premium-icon-button kbd{
    display:none
  }
  .premium-desk .main-toolbar{
    margin:11px 12px 0;
    padding:7px 9px;
    gap:6px;
    min-height:49px;
    border-radius:10px
  }
  .premium-desk .main-toolbar .tool-group{
    gap:3px;
    overflow:auto;
    scrollbar-width:none
  }
  .premium-desk .main-toolbar .tool-group::-webkit-scrollbar{
    display:none
  }
  .premium-desk .main-toolbar .tool-btn{
    min-width:30px;
    min-height:31px;
    flex-shrink:0;
    padding:6px
  }
  .premium-desk .tool-btn svg{
    width:16px;
    height:16px
  }
  .premium-history{
    padding-right:5px;
    gap:0
  }
  .premium-history .btn{
    min-width:24px;
    min-height:28px;
    padding:4px
  }
  .premium-desk #shapeTypeSelect{
    width:110px;
    max-width:110px;
    flex-shrink:0;
    font-size:9px;
    margin-left:4px;
    min-height:30px
  }
  #premiumToolSettings{
    margin-left:1px
  }
  #premiumToolSettings>summary{
    padding:5px;
    min-height:29px;
    min-width:26px
  }
  #premiumToolSettings>.premium-popover-content{
    position:fixed;
    top:166px;
    left:auto;
    right:12px;
    width:310px;
    max-width:calc(100vw - 24px)
  }
  .premium-desk .pdf-viewport-scroll{
    padding:18px 12px 170px;
    gap:18px
  }
  .premium-desk .premium-reader-dock{
    bottom:80px;
    padding:7px 8px;
    gap:4px;
    border-radius:11px;
    max-width:calc(100% - 24px);
    min-height:45px
  }
  .premium-desk .premium-reader-dock .page-nav-controls{
    gap:2px
  }
  .premium-desk .premium-reader-dock .btn{
    min-width:26px;
    min-height:28px;
    padding:4px;
    font-size:11px
  }
  .premium-desk .premium-reader-dock #btnBookmarkPage{
    display:none
  }
  .premium-desk .premium-reader-dock #totalPagesLabel{
    font-size:9px!important;
    margin-inline-end:1px;
    white-space:nowrap
  }
  .premium-desk .premium-reader-dock .page-num-input{
    width:29px;
    min-height:28px;
    height:28px;
    font-size:10px
  }
  .premium-desk .premium-reader-dock #zoomSelect{
    max-width:85px!important;
    font-size:9px;
    padding:2px
  }
  .premium-zoom{
    gap:0;
    padding-inline:5px
  }
  .premium-view-menu{
    padding-left:2px
  }
  .premium-view-menu summary{
    min-height:27px;
    padding:4px
  }
  .premium-view-menu summary>span{
    display:none
  }
  .premium-view-menu>.premium-popover-content{
    right:-7px;
    bottom:calc(100% + 13px);
    width:280px;
    max-width:calc(100vw - 30px)
  }
  .premium-desk .mobile-bottom-dock{
    gap:2px;
    padding:7px 8px;
    bottom:max(12px,env(safe-area-inset-bottom));
    border-radius:12px;
    min-height:49px
  }
  .premium-desk .mobile-bottom-dock .tool-btn{
    font-size:9px;
    min-height:32px;
    gap:4px;
    padding:6px 8px;
    min-width:31px
  }
  .premium-desk .left-panel{
    width:222px
  }
  .premium-desk .right-panel,.premium-desk .right-panel.wide-notes{
    width:min(345px,91vw);
    max-width:91vw
  }
  .premium-desk .premium-panel-heading{
    min-height:74px;
    padding:17px 18px 12px
  }
  .premium-panel-heading strong{
    font-size:14px
  }
  .premium-panel-heading small{
    font-size:9px
  }
  .premium-desk .right-panel .panel-content{
    padding:17px
  }
  .premium-desk .right-panel .panel-tab{
    font-size:10px!important
  }
  .premium-desk .search-bar-strip.open{
    gap:7px;
    padding:10px 12px;
    font-size:11px
  }
  .premium-desk .search-bar-strip.open strong{
    font-size:10px
  }
  .premium-desk .search-bar-strip.open label{
    font-size:9px
  }
  .premium-desk #searchQueryInput{
    min-width:130px;
    max-width:calc(100vw - 130px);
    font-size:12px
  }
  .premium-desk .modal-dialog{
    padding:20px;
    max-width:calc(100vw - 24px);
    max-height:87dvh;
    border-radius:14px
  }
  .premium-desk .modal-dialog h3{
    font-size:16px
  }
  .premium-desk .modal-dialog p{
    font-size:12px!important
  }
  .premium-desk .empty-upload-card{
    padding:30px 22px 25px
  }
  .premium-welcome-hero{
    display:block;
    padding:7px 0 25px;
    min-height:0
  }
  .premium-welcome-art{
    display:none
  }
  .premium-desk .premium-welcome-copy h2{
    font-size:39px!important;
    letter-spacing:-1.2px;
    line-height:1.3;
    max-width:440px
  }
  [lang=hi] .premium-desk .premium-welcome-copy h2{
    font-size:31px!important;
    letter-spacing:-1px;
    line-height:1.7
  }
  .premium-desk .premium-welcome-copy>p{
    font-size:12px!important;
    line-height:1.95;
    max-width:420px;
    margin-bottom:21px!important
  }
  .premium-desk .desk-eyebrow{
    font-size:9px;
    letter-spacing:1.1px;
    margin-bottom:17px
  }
  .premium-desk .premium-welcome-actions{
    gap:9px!important
  }
  .premium-desk .premium-welcome-actions .btn{
    min-height:42px;
    padding:10px 13px!important;
    font-size:11px!important
  }
  .premium-trust-line{
    font-size:9px
  }
  .premium-trust-line svg{
    width:12px
  }
  .premium-feature-row{
    grid-template-columns:1fr;
    gap:13px;
    padding:18px 0;
    margin-bottom:23px
  }
  .premium-feature-row>span{
    font-size:10px;
    gap:10px
  }
  .premium-feature-row svg{
    width:15px;
    height:15px
  }
  .premium-desk .sample-grid{
    gap:10px;
    grid-template-columns:1fr 1fr
  }
  .premium-desk .sample-card{
    padding:14px 12px;
    min-height:145px;
    gap:8px
  }
  .premium-desk .sample-card strong{
    font-size:10px!important;
    line-height:1.9
  }
  .premium-desk .sample-card>span{
    font-size:9px!important;
    line-height:1.9
  }
  .premium-samples-title{
    font-size:10px!important;
    line-height:1.8
  }
  .premium-desk .desk-info-guide{
    font-size:10px;
    margin-top:10px;
    line-height:1.9
  }
  .premium-desk .toast-container{
    bottom:142px;
    right:13px
  }
  .premium-desk .toast-item{
    max-width:calc(100vw - 40px);
    font-size:10px;
    padding:11px 14px
  }
  .premium-desk.focus-mode .main-toolbar{
    margin-right:12px;
    margin-top:60px
  }
  .premium-desk .focus-exit{
    min-height:31px;
    top:14px;
    right:13px;
    max-width:220px;
    font-size:10px
  }
  .premium-command-dialog{
    margin-top:8vh;
    max-width:calc(100vw - 24px);
    border-radius:14px
  }
  .premium-command-search{
    padding:16px;
    gap:10px
  }
  .premium-command-search input{
    font-size:13px
  }
  .premium-command-caption{
    font-size:9px;
    padding-inline:17px
  }
  .premium-command-result{
    font-size:11px;
    padding:9px 8px;
    gap:9px
  }
  .premium-command-dialog footer{
    font-size:9px;
    padding:10px 16px;
    gap:14px
  }
}
@media(max-width:370px){
  .premium-desk .brand-logo{
    display:none
  }
  .premium-desk .brand-h1{
    font-size:12px
  }
  .premium-desk .top-header{
    padding-inline:9px;
    gap:5px
  }
  .premium-desk .header-actions{
    gap:1px
  }
  .premium-desk .premium-welcome-copy h2{
    font-size:34px!important
  }
  [lang=hi] .premium-desk .premium-welcome-copy h2{
    font-size:27px!important
  }
  .premium-desk .empty-upload-card{
    padding-inline:18px
  }
  .premium-desk .premium-reader-dock{
    gap:1px;
    padding-inline:6px
  }
  .premium-desk .premium-reader-dock #zoomSelect{
    max-width:77px!important
  }
  .premium-desk .mobile-bottom-dock .tool-btn{
    font-size:8px;
    padding:6px;
    gap:3px
  }
  .premium-desk .premium-reader-dock .btn{
    min-width:24px
  }
  .premium-desk .main-toolbar{
    padding-inline:7px
  }
  .premium-desk .sample-card{
    padding:12px 10px
  }
}
@media(prefers-reduced-motion:reduce){
  .premium-desk *, .premium-desk *::before,.premium-desk *::after{
    transition:none!important;
    scroll-behavior:auto!important
  }
}
@media(max-width:1024px){
  .premium-desk .mobile-bottom-dock{
    position:fixed;
    right:auto;
    bottom:max(12px,env(safe-area-inset-bottom));
    left:50%;
    transform:translateX(-50%);
    z-index:65
  }
  .premium-desk .premium-reader-dock{
    bottom:86px
  }
}
@media(max-width:700px){
  #premiumCommandButton>svg{
    display:none
  }
  #premiumCommandButton>span{
    display:inline;
    font-size:9px;
    white-space:nowrap;
    padding:0 5px
  }
  .premium-workspace-actions>.hide-on-mobile{
    display:inline-flex!important
  }
  .premium-desk .mobile-bottom-dock .tool-btn{
    flex-direction:column;
    min-width:42px;
    min-height:41px;
    gap:3px;
    padding:4px 6px;
    font-size:8px;
    line-height:1.4
  }
  .premium-desk .mobile-bottom-dock .tool-btn svg{
    width:16px;
    height:16px
  }
  .premium-desk .mobile-bottom-dock .tool-btn span{
    display:inline;
    white-space:nowrap
  }
  .premium-desk .mobile-bottom-dock{
    gap:3px;
    padding:7px 8px
  }
  .premium-desk .premium-reader-dock{
    bottom:86px
  }
}
/* Page geometry remains identical to the PDF coordinate space. */
.premium-desk .pdf-page-wrapper{
  border:0
}
