.panel{border:1px solid var(--stroke); border-radius:var(--r); background:var(--surface); box-shadow:var(--shadow3); overflow:hidden; min-height:0; display:flex; flex-direction:column; transition:border-color .3s ease;}
.panel:hover{border-color:rgba(140,160,210,.10);}
.panel::after{display:none;}
.panelHeader{padding:10px 12px 8px; border-bottom:1px solid rgba(140,160,210,.04); display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex:0 0 auto; min-width:0; background:rgba(140,165,220,.015); transition:background .3s ease;}
.panelHeader:hover{background:rgba(140,165,220,.025);}
.panelHeader::after{display:none;}
.nowTitle{font-family:var(--brand); font-weight:600; font-size:15px; letter-spacing:-.02em; line-height:1.2; max-width:60ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; transition:color .2s ease;}
.nowTitle:hover{color:rgba(235,240,252,.98);}
.nowSub{margin-top:3px; color:var(--textMuted); font-size:11px; font-family:var(--mono); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:80ch; transition:color .2s ease;}

.dividerWrap{display:flex; align-items:stretch; justify-content:center;}
.divider{width:10px; cursor:col-resize; position:relative; background:transparent; border:none;}
.divider::after{
  content:""; position:absolute; top:50%; left:50%;
  width:4px; height:54px; transform:translate(-50%,-50%);
  border-radius:999px;
  background:
    radial-gradient(circle, rgba(140,165,220,.10) 35%, transparent 40%) 0 0/4px 12px,
    radial-gradient(circle, rgba(140,165,220,.10) 35%, transparent 40%) 0 6px/4px 12px;
  opacity:.20; pointer-events:none; transition:opacity .3s var(--ease-spring), height .3s var(--ease-spring);
}
.divider:hover::after{opacity:.55; height:72px;}
.divider:active::after{opacity:.70;}

.dock{flex:1 1 auto; min-height:0; border-top:1px solid rgba(140,160,210,.04); display:grid; grid-template-columns:62% 10px 38%; background:rgba(0,0,0,.06); overflow:hidden;}
.dockPane{min-height:0; display:flex; flex-direction:column; overflow:hidden;}
.dockInner{padding:10px; min-height:0; display:flex; flex-direction:column; gap:8px; height:100%;}
.dockHeader{padding:10px 12px 9px; border:none; border-radius:var(--r2); display:flex; align-items:center; justify-content:space-between; gap:8px; background:var(--surface-2); flex:0 0 auto; min-height:47px; transition:background .2s ease;}
.dockHeader:hover{background:var(--surface-3);}
#notesHeader{border-bottom-right-radius:7px;}
#infoHeader{border-bottom-left-radius:7px; margin-right:12px;}
.dockTitle{font-family:var(--brand); font-weight:600; letter-spacing:-.02em; font-size:15px; line-height:1.2; color:rgba(218,225,240,.92); display:flex; align-items:center; gap:10px; transition:color .2s ease;}
.dockHeader:hover .dockTitle{color:rgba(235,240,252,.98);}
.dockTitle .fa{color:var(--iconStrong)!important; opacity:.88; font-size:14px; transition:transform .3s var(--ease-bounce), opacity .2s ease;}
.dockHeader:hover .dockTitle .fa{transform:scale(1.12) rotate(-5deg); opacity:1;}

.notesArea{flex:1 1 auto; min-height:0; overflow:hidden; position:relative;}
.notesSaved{
  position:absolute;
  z-index:2;
  bottom:12px; right:12px;
  padding:6px 10px;
  border-radius:var(--r2);
  background:rgba(130,170,130,.12);
  border:none;
  color:rgba(160,195,160,.88);
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
  display:flex; align-items:center; gap:6px;
  opacity:0;
  transform:translateY(4px) scale(.95);
  transition:opacity .4s ease, transform .4s var(--ease-bounce);
  pointer-events:none;
}
.notesSaved.show{
  opacity:1;
  transform:translateY(0) scale(1);
}
.notesSaved .fa{font-size:10px; color:rgba(150,190,150,.88)!important; transition:transform .3s var(--ease-bounce);}
.notesSaved.show .fa{animation:checkBounce .5s var(--ease-bounce);}
@keyframes checkBounce{
  0%{transform:scale(0) rotate(-45deg);}
  60%{transform:scale(1.3) rotate(5deg);}
  100%{transform:scale(1) rotate(0);}
}
/* Notes timestamp highlighting backdrop */
.notesBackdrop{position:absolute; inset:0; padding:10px 12px; border:1px solid transparent; border-radius:var(--r3); background:var(--surface-0); box-shadow:var(--shadowInset); font-family:var(--sans); font-size:13px; line-height:1.45; letter-spacing:0; color:rgba(218,225,240,.90); white-space:pre-wrap; word-break:break-word; overflow-wrap:anywhere; overflow-y:scroll; scrollbar-width:thin; scrollbar-color:transparent transparent; pointer-events:none; transition:border-color .25s ease, box-shadow .25s ease, background .2s ease;}
.notesBackdrop::-webkit-scrollbar{width:2px; height:2px;}
.notesBackdrop::-webkit-scrollbar-track{background:transparent;}
.notesBackdrop::-webkit-scrollbar-thumb{background:transparent;}
.notesBackdrop::-webkit-scrollbar-button{width:0; height:0; display:none;}
.notesBackdrop.hover{background:rgba(140,165,220,.03);}
.notesBackdrop.focus{border-color:rgba(136,164,196,.25); box-shadow:var(--shadowInset), 0 0 0 2px rgba(136,164,196,.12);}
.tsLink{color:rgba(136,164,196,.85); pointer-events:auto; cursor:pointer; transition:color .15s ease;}
.notesBackdrop.hover .tsLink,.notesBackdrop.focus .tsLink{color:rgba(136,164,196,.95);}
.notes{width:100%; height:100%; resize:none; border-radius:var(--r3); border:1px solid transparent; background:transparent; color:transparent; caret-color:rgba(218,225,240,.90); padding:10px 12px; outline:none; font-family:var(--sans); font-size:13px; line-height:1.45; letter-spacing:0; box-shadow:none; overflow:auto; scrollbar-width:thin; scrollbar-color:rgba(140,160,210,.10) transparent; position:relative; z-index:1;}
.notes:hover{background:transparent;}
.notes:focus{border-color:transparent; box-shadow:none;}
.notes::selection{background:rgba(136,164,196,.30);}
.notes::-webkit-scrollbar{width:2px; height:2px;}
.notes::-webkit-scrollbar-track{background:transparent;}
.notes::-webkit-scrollbar-thumb{background:rgba(140,160,210,.10); border-radius:0;}
.notes::-webkit-scrollbar-button{width:0; height:0; display:none;}
.notes::placeholder{color:rgba(155,170,200,.65); transition:color .2s ease;}
.notes:focus::placeholder{color:rgba(148,162,192,.25);}

.infoGrid{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding-right:12px;
  padding-top:8px;
  padding-bottom:8px;
  scrollbar-width:none;
  --fade-top:30px;
  --fade-bottom:30px;
  mask-image:linear-gradient(180deg, transparent 0%, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
  -webkit-mask-image:linear-gradient(180deg, transparent 0%, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent 100%);
  transition:--fade-top 0.8s ease, --fade-bottom 0.8s ease;
}
@property --fade-top {
  syntax: '<length>';
  initial-value: 30px;
  inherits: false;
}
@property --fade-bottom {
  syntax: '<length>';
  initial-value: 30px;
  inherits: false;
}
.infoGrid.at-top{--fade-top:0px;}
.infoGrid.at-bottom{--fade-bottom:0px;}
.infoGrid::-webkit-scrollbar{width:0; height:0;}

dl.kv{margin:0;}
dl.kv dt,dl.kv dd{margin:0; padding:0;}
.kv{
  display:grid;
  grid-template-columns:78px 1fr;
  gap:3px 12px;
  align-items:baseline;
  padding:10px 12px;
  border-radius:var(--r3);
  border:none;
  background:rgba(10,13,20,.45);
  margin-bottom:6px;
  transition:background .2s ease;
}
.kv:hover{background:rgba(10,13,20,.55);}
.k{
  font-family:var(--sans);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--textDim);
  padding-top:3px;
  white-space:nowrap;
  transition:color .2s ease;
}
.kv:hover .k{color:var(--textDim);}
.v{
  font-family:var(--brand);
  font-size:13px;
  font-weight:500;
  color:var(--text);
  letter-spacing:-.01em;
  word-break:break-word;
  overflow-wrap:anywhere;
  line-height:1.35;
  padding-left:6px;
  transition:color .2s ease;
}
.kv:hover .v{color:rgba(230,235,248,.95);}
.v.mono{
  font-family:var(--mono);
  font-size:11px;
  font-weight:400;
  color:var(--textMuted);
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
  background:var(--accentBg);
  padding:2px 6px;
  border-radius:3px;
  margin:-2px 0;
  transition:background .2s ease, color .2s ease;
}
.kv:hover .v.mono{background:rgba(136,164,196,.09); color:var(--textMuted);}

.dockDividerWrap{display:flex; align-items:stretch; justify-content:center;}
.dockDivider{width:10px; cursor:col-resize; position:relative; background:transparent; border:none;}
.dockDivider::after{
  content:""; position:absolute; top:50%; left:50%;
  width:4px; height:44px; transform:translate(-50%,-50%);
  border-radius:999px;
  background:
    radial-gradient(circle, rgba(140,165,220,.10) 35%, transparent 40%) 0 0/4px 12px,
    radial-gradient(circle, rgba(140,165,220,.10) 35%, transparent 40%) 0 6px/4px 12px;
  opacity:.18; pointer-events:none; transition:opacity .3s var(--ease-spring), height .3s var(--ease-spring);
}
.dockDivider:hover::after{opacity:.50; height:60px;}
.dockDivider:active::after{opacity:.65;}

/* Timestamp button */
.timestampBtn{border:none; background:transparent; padding:0; margin:0 0 0 auto; cursor:pointer; display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:var(--r3); transition:all .2s var(--ease-bounce);}
.timestampBtn:hover{background:var(--surface-3); transform:scale(1.1);}
.timestampBtn:active{transform:scale(.9); transition-duration:.08s;}
.timestampBtn .fa{font-size:12px; color:var(--iconStrong)!important; opacity:.75; transition:opacity .15s ease;}
.timestampBtn:hover .fa{opacity:1;}
.timestampBtn:focus-visible{outline:2px solid rgba(136,164,196,.45); outline-offset:1px;}

/* Dock chevron */
.dockChevron{font-size:10px; color:var(--textDim); transition:transform .25s var(--ease-bounce), color .2s ease; margin-left:4px; flex:0 0 auto;}
.dockHeader:hover .dockChevron{color:var(--textMuted);}

/* Collapsible dock pane */
.dockPane.collapsed{flex:0 0 auto !important;}
.dockPane.collapsed .notesArea,
.dockPane.collapsed .infoGrid{display:none;}

/* Reset confirm state */
.toolbarBtn.confirming{background:rgba(255,70,70,.14);}
.toolbarBtn.confirming .fa{color:rgba(255,160,100,.9)!important;}
