*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;background:#F7F3E9;color:#3B2F2F}
.topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 18px;background:#5B3A22;color:#FFFDF7}
.topbar h1{margin:0;font-size:22px}.topbar p{margin:3px 0 0;opacity:.8}
button,.importBtn{border:0;border-radius:8px;padding:9px 12px;background:#A67C52;color:white;cursor:pointer;font-weight:650}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.layout{display:grid;grid-template-columns:370px 1fr;min-height:calc(100vh - 96px)}
.panel{background:#FFFDF7;border-right:1px solid #D7C4A7;padding:16px;overflow:auto}
.panel button{display:block;width:100%;text-align:left;margin:6px 0}.danger{background:#C2410C}
.hidden{display:none}.muted{color:#7A6245;line-height:1.45}
label{display:block;font-size:14px;margin:10px 0}
input,select,textarea{width:100%;padding:9px;margin-top:5px;border:1px solid #C9B18E;border-radius:8px;font-family:inherit}
.row{display:flex;gap:8px}.row button{text-align:center}
.helperBox{border:1px solid #D7C4A7;background:#F4E8D1;border-radius:10px;padding:10px;margin:10px 0}
.hint{font-size:13px;color:#7A6245;margin:4px 0 0}
.workspace{min-width:0;display:flex;flex-direction:column}
.toolbar{position:sticky;top:0;z-index:10;display:flex;gap:8px;padding:12px;background:#F7F3E9}
.toolbar input{max-width:320px;margin:0;background:#FFFDF7}.toolbar button{width:auto;white-space:nowrap}
.viewport{position:relative;flex:1;overflow:auto;background:#F7F3E9;cursor:grab;user-select:none;touch-action:none}
.viewport.dragging{cursor:grabbing}
.stage{position:relative;min-width:100%;min-height:100%;transform-origin:0 0}
#lines{position:absolute;left:0;top:0;overflow:visible;z-index:1}
#cards{position:absolute;left:0;top:0;z-index:2}

.vamsa-card{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;width:255px;min-height:116px;padding:14px 16px;background:#FFFDF7;border:3px solid #A67C52;border-radius:8px;box-shadow:0 8px 20px rgba(91,58,34,.18);cursor:pointer;text-align:center}
.vamsa-card:hover{outline:4px solid #C2410C}.vamsa-card.selected{outline:5px solid #C2410C}.vamsa-card.searchHit{outline:5px solid #D4A017}
.card-line{font-size:18px;line-height:1.2;font-weight:780;margin:3px 0}.card-line.small{font-size:16px}

.list-box{position:absolute;min-width:260px;font-size:17px;line-height:1.35;font-weight:650;color:#3B2F2F}
.leaf-row{position:relative;margin:8px 0;white-space:nowrap;cursor:pointer;padding:2px 6px;border-radius:6px}
.leaf-row:hover{background:#F4E8D1}.leaf-row.selected{background:#ECD8B6;outline:2px solid #C2410C}.leaf-row.searchHit{background:#E9D5B7}
.connector{stroke:#8B7355;stroke-width:4;fill:none;stroke-linecap:square;stroke-linejoin:round}

@media print{
  .topbar,.panel,.toolbar{display:none}
  .layout{display:block}
  .viewport{overflow:visible}
}
@media(max-width:850px){.layout{grid-template-columns:1fr}.panel{border-right:0;border-bottom:1px solid #D7C4A7}.topbar{align-items:flex-start;flex-direction:column}}


/* Collapsible left panel */
.panel { position: relative; }
.panelToggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: auto !important;
  padding: 6px 10px;
  border-radius: 999px;
  background:#E9D5B7;
  color:#3B2F2F;
  font-size: 18px;
  line-height: 1;
  text-align: center !important;
}
.panelOpen {
  position: fixed;
  left: 12px;
  top: 110px;
  z-index: 30;
  width: auto;
  padding: 10px 13px;
  border-radius: 999px;
  background:#5B3A22;
  color: white;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.layout.panel-collapsed {
  grid-template-columns: 1fr;
}
.layout.panel-collapsed .panel {
  display: none;
}
.layout.panel-collapsed .workspace {
  grid-column: 1;
}
@media(max-width:850px){
  .panelOpen { top: 100px; }
}

.leaf-row{font-size:17px;line-height:1.35;font-weight:650;color:#3B2F2F;z-index:3;}


/* Option 5 — Genealogy / Parchment Theme */
:root{
  --page-bg:#F7F3E9;
  --card-bg:#FFFDF7;
  --card-border:#A67C52;
  --text:#3B2F2F;
  --muted:#7A6245;
  --line:#8B7355;
  --selected:#C2410C;
  --nav:#5B3A22;
  --soft:#F4E8D1;
}

body{background:var(--page-bg);color:var(--text);}
.topbar{background:var(--nav);color:#FFFDF7;}
.panel{background:var(--card-bg);border-right:1px solid #D7C4A7;}
.toolbar{background:var(--page-bg);}
.viewport{background:var(--page-bg);}
input,select,textarea{background:#FFFDF7;border-color:#C9B18E;color:var(--text);}
button,.importBtn{background:var(--card-border);color:#FFFDF7;}
button:hover,.importBtn:hover{filter:brightness(.95);}
.vamsa-card{
  background:var(--card-bg);
  border-color:var(--card-border);
  color:var(--text);
}
.vamsa-card:hover{outline:4px solid #D4A017;}
.vamsa-card.selected{outline:5px solid var(--selected);}
.vamsa-card.searchHit{outline:5px solid #D4A017;}
.connector{stroke:var(--line);}
.leaf-row{color:var(--text);}
.leaf-row:hover{background:var(--soft);}
.leaf-row.selected{background:#ECD8B6;outline:2px solid var(--selected);}
.muted,.hint{color:var(--muted);}
.contextMenu{background:var(--card-bg);border-color:#C9B18E;}
.contextMenu button{background:var(--card-bg);color:var(--text);}
.contextMenu button:hover{background:var(--soft);}
.panelToggle{background:#E9D5B7;color:var(--text);}
.panelOpen{background:var(--nav);color:#FFFDF7;}


/* Fixed left panel + independent scrollable tree workspace */
html, body {
  height: 100%;
  overflow: hidden;
}

.topbar {
  height: 96px;
  flex: 0 0 96px;
}

.layout {
  height: calc(100vh - 96px);
  min-height: 0;
  overflow: hidden;
}

.panel {
  height: calc(100vh - 96px);
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 0;
  align-self: start;
}

.workspace {
  height: calc(100vh - 96px);
  min-height: 0;
  overflow: hidden;
}

.viewport {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.brandTitle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #FFFDF7;
  color: #5B3A22;
  box-shadow: 0 2px 8px rgba(91,58,34,.22);
  font-size: 22px;
}

/* Collapsed panel still keeps main workspace fixed */
.layout.panel-collapsed {
  grid-template-columns: 1fr;
}

.layout.panel-collapsed .workspace {
  height: calc(100vh - 96px);
}

@media(max-width:850px){
  html, body {
    overflow: hidden;
  }
  .layout {
    height: calc(100vh - 96px);
  }
  .panel {
    max-height: 42vh;
    height: auto;
    position: relative;
  }
  .workspace {
    height: calc(58vh);
  }
}


/* Mockup-style brand logo: custom inline SVG tree, not emoji */
.brandBlock{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:280px;
}

.brandText h1{
  margin:0;
  font-family: Georgia, "Times New Roman", serif;
  font-size:30px;
  line-height:1.05;
  font-weight:700;
  color:#5B3A22;
  letter-spacing:.2px;
}

.topbar .brandText p{
  margin:5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size:18px;
  line-height:1.1;
  color:#6F4A2B;
  opacity:1;
}

.brandTreeLogo{
  width:70px;
  height:70px;
  flex:0 0 70px;
  filter: drop-shadow(0 2px 4px rgba(91,58,34,.22));
}

.brandTreeLogo .treeLeaves{
  fill:#6E7F2A;
}

.brandTreeLogo .treeTrunk,
.brandTreeLogo .treeRoots{
  fill:#6F421F;
  stroke:#6F421F;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.brandTreeLogo .treeRoots{
  fill:none;
}

.topbar{
  background:linear-gradient(180deg,#FFF8E8 0%,#F7EBCF 100%);
  color:#5B3A22;
  border-bottom:1px solid #D7C4A7;
}

.topbar > div:first-child{
  display:flex;
  align-items:center;
}

/* keep toolbar/buttons on the right visually aligned with larger logo */
.topbar .actions{
  align-items:center;
}

/* legacy emoji holder disabled if present */
.brandIcon{
  display:none !important;
}


/* Refined logo/header sizing */
.topbar{
  height:82px !important;
  flex:0 0 82px !important;
  padding:10px 18px !important;
}

.layout,
.workspace,
.layout.panel-collapsed .workspace{
  height:calc(100vh - 82px) !important;
}

.panel{
  height:calc(100vh - 82px) !important;
}

.brandBlock{
  gap:12px !important;
  min-width:360px;
}

.brandTreeLogo{
  width:58px !important;
  height:58px !important;
  flex:0 0 58px !important;
  filter: drop-shadow(0 1px 2px rgba(91,58,34,.18)) !important;
}

.brandTreeLogo .leafCluster{
  fill:#75862C;
}

.brandTreeLogo .branch{
  fill:none;
  stroke:#7A4A25;
  stroke-width:4.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.brandTreeLogo .trunk{
  fill:#7A4A25;
  stroke:#7A4A25;
  stroke-width:1.5;
  stroke-linejoin:round;
}

.brandTreeLogo .roots{
  fill:none;
  stroke:#7A4A25;
  stroke-width:3.2;
  stroke-linecap:round;
}

.brandText h1{
  font-size:34px !important;
  line-height:1 !important;
  letter-spacing:.1px !important;
}

.topbar .brandText p{
  font-size:18px !important;
  margin-top:4px !important;
}

.panelOpen{
  top:96px !important;
}

@media(max-width:850px){
  .topbar{
    height:82px !important;
  }
  .layout{
    height:calc(100vh - 82px) !important;
  }
}


/* Use actual logo image supplied by user */
.brandTreeLogo{
  width:66px !important;
  height:66px !important;
  flex:0 0 66px !important;
  object-fit:contain !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  filter:none !important;
}

.brandBlock{
  gap:14px !important;
  min-width:390px;
}

.brandText h1{
  font-size:34px !important;
  line-height:1 !important;
}

.topbar .brandText p{
  font-size:18px !important;
  margin-top:5px !important;
}


/* Telugu brand typography */
.brandText h1{
  font-family: "Noto Serif Telugu", "Noto Sans Telugu", "Gautami", "Mallanna", Georgia, serif !important;
  font-size:32px !important;
  font-weight:800 !important;
  letter-spacing:0 !important;
}

.topbar .brandText p{
  font-family: "Noto Serif Telugu", "Noto Sans Telugu", "Gautami", "Mallanna", Georgia, serif !important;
  font-size:17px !important;
  font-weight:600 !important;
}


/* Edit / Save / Cancel mode */
.editPrimaryBtn{background:#5B3A22 !important;color:#FFFDF7 !important;}
.saveBtn{background:#166534 !important;color:#FFFDF7 !important;}
.cancelBtn{background:#9A3412 !important;color:#FFFDF7 !important;}
.editStatusBadge{
  align-self:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #D7C4A7;
  background:#FFFDF7;
  color:#5B3A22;
  font-weight:800;
  white-space:nowrap;
}
.editStatusBadge.dirty{
  background:#FEF3C7;
  border-color:#D97706;
  color:#92400E;
}
body.readOnlyMode #cardOps,
body.readOnlyMode #leafOps,
body.readOnlyMode #editForm{
  display:none !important;
}
body.readOnlyMode .vamsa-card,
body.readOnlyMode .leaf-row{cursor:default;}
body.editMode .vamsa-card,
body.editMode .leaf-row{cursor:pointer;}
body.readOnlyMode .importBtn{opacity:.55;cursor:not-allowed;}


/* Core compact/fold-unfold mode */
.collapseToggleBtn{
  position:absolute;
  right:8px;
  bottom:8px;
  width:28px;
  height:28px;
  border-radius:999px;
  padding:0 !important;
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:900;
  line-height:1;
  background:#A67C52 !important;
  color:#FFFDF7 !important;
  border:1px solid #8B7355;
  box-shadow:0 3px 8px rgba(91,58,34,.22);
  cursor:pointer;
}

.collapsedBranchBadge{
  margin:8px auto 0;
  display:inline-block;
  padding:4px 9px;
  border-radius:999px;
  background:#F4E8D1;
  border:1px solid #D7C4A7;
  color:#7A6245;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
}

.vamsa-card.pathHit{
  outline:5px solid #D4A017 !important;
  box-shadow:0 0 0 6px rgba(212,160,23,.18), 0 8px 20px rgba(91,58,34,.18) !important;
}

.vamsa-card.leafPathHit{
  outline:5px solid #D4A017 !important;
  box-shadow:0 0 0 6px rgba(212,160,23,.18), 0 8px 20px rgba(91,58,34,.18) !important;
}

.vamsa-card.searchHit{
  outline:6px solid #C2410C !important;
  box-shadow:0 0 0 7px rgba(194,65,12,.18), 0 8px 20px rgba(91,58,34,.18) !important;
}

.leaf-row.searchHit{
  background:#FEF3C7 !important;
  outline:3px solid #C2410C !important;
  border-radius:8px;
}

.connector{
  pointer-events:none;
}

.connector.routeConnector{
  stroke:transparent !important;
  stroke-width:8 !important;
  fill:none !important;
  pointer-events:none;
}

.connector.routeConnector.linkHit{
  stroke:#C2410C !important;
  stroke-width:7 !important;
  filter:drop-shadow(0 0 5px rgba(194,65,12,.45));
}


/* ================================
   v1.0 Mobile Stable UX
   ================================ */
:root{
  --app-height: 100vh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

.mobileActionBar,
.mobileNodeSheet,
.mobileSheetBackdrop{
  display:none;
}

.viewport{
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px), (pointer: coarse){
  html,
  body{
    width:100%;
    min-height:var(--app-height);
    overflow:hidden;
    overscroll-behavior:none;
    touch-action:manipulation;
  }

  body.mobileUX{
    position:fixed;
    inset:0;
  }

  .topbar{
    height:64px !important;
    min-height:64px !important;
    padding:calc(6px + var(--safe-top)) calc(10px + var(--safe-right)) 6px calc(10px + var(--safe-left)) !important;
    box-sizing:border-box;
  }

  .brandBlock{
    gap:8px !important;
    min-width:0 !important;
  }

  .brandTreeLogo{
    width:38px !important;
    height:38px !important;
    flex:0 0 38px !important;
  }

  .brandText h1{
    font-size:20px !important;
    line-height:1.1 !important;
    white-space:nowrap;
  }

  .brandText p{
    display:none !important;
  }

  .topbar .actions{
    max-width:56vw;
    overflow-x:auto;
    gap:6px;
    padding-bottom:2px;
    scrollbar-width:none;
  }

  .topbar .actions::-webkit-scrollbar{
    display:none;
  }

  .topbar .actions button,
  .topbar .actions .importBtn{
    min-height:40px;
    padding:8px 10px;
    font-size:13px;
    white-space:nowrap;
  }

  .userBadge{
    display:none !important;
  }

  .layout{
    display:block !important;
    height:calc(var(--app-height) - 64px) !important;
    overflow:hidden !important;
  }

  .workspace{
    height:calc(var(--app-height) - 64px) !important;
    width:100vw !important;
    min-width:0 !important;
  }

  .panel{
    position:fixed !important;
    left:0;
    top:64px;
    bottom:0;
    width:min(88vw, 380px) !important;
    height:auto !important;
    max-height:none !important;
    z-index:80;
    transform:translateX(0);
    transition:transform .22s ease;
    box-shadow:18px 0 42px rgba(91,58,34,.22);
    padding-bottom:calc(90px + var(--safe-bottom));
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }

  .layout.panel-collapsed .panel{
    display:block !important;
    transform:translateX(-105%);
  }

  .panelOpen{
    display:none !important;
  }

  .toolbar{
    position:fixed !important;
    top:64px;
    left:0;
    right:0;
    z-index:45;
    padding:8px calc(8px + var(--safe-right)) 8px calc(8px + var(--safe-left));
    gap:6px;
    overflow-x:auto;
    background:rgba(247,243,233,.97) !important;
    border-bottom:1px solid #D7C4A7;
    scrollbar-width:none;
  }

  .toolbar::-webkit-scrollbar{
    display:none;
  }

  .toolbar input{
    min-width:170px;
    width:42vw;
    height:40px;
    font-size:16px; /* prevents iOS zoom on focus */
  }

  .toolbar button,
  .toolbar .editStatusBadge{
    min-height:40px;
    padding:8px 10px;
    font-size:13px;
    white-space:nowrap;
  }

  .viewport{
    height:calc(var(--app-height) - 64px) !important;
    width:100vw !important;
    padding-top:54px;
    padding-bottom:calc(96px + var(--safe-bottom));
    touch-action:none;
    overscroll-behavior:none;
    background:#F7F3E9;
  }

  .stage{
    transform-origin:0 0 !important;
    will-change:transform;
  }

  .vamsa-card{
    width:245px;
    min-height:112px;
    padding:12px 36px 12px 14px;
    border-radius:14px;
    touch-action:manipulation;
  }

  .card-line{
    font-size:16px;
    line-height:1.22;
  }

  .card-line.small{
    font-size:13px;
  }

  .leaf-row{
    min-height:38px;
    padding:8px 11px;
    font-size:16px;
    touch-action:manipulation;
  }

  .collapseToggleBtn{
    width:34px !important;
    height:34px !important;
    font-size:20px !important;
    right:7px !important;
    bottom:7px !important;
  }

  .mobileActionBar{
    display:flex;
    position:fixed;
    left:50%;
    transform:translateX(-50%);
    bottom:calc(12px + var(--safe-bottom));
    z-index:120;
    gap:10px;
    padding:10px;
    border-radius:999px;
    background:#FFFDF7;
    border:1px solid #D7C4A7;
    box-shadow:0 14px 40px rgba(91,58,34,.25);
  }

  .mobileActionBar button{
    width:46px;
    height:46px;
    min-width:46px;
    min-height:46px;
    border-radius:999px;
    display:grid;
    place-items:center;
    padding:0;
    font-size:20px;
    background:#5B3A22;
    color:#FFFDF7;
    border:0;
  }

  .mobileSheetBackdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:130;
    background:rgba(15,23,42,.28);
  }

  .mobileSheetBackdrop.hidden{
    display:none !important;
  }

  .mobileNodeSheet{
    display:block;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:140;
    background:#FFFDF7;
    border-radius:22px 22px 0 0;
    border:1px solid #D7C4A7;
    box-shadow:0 -18px 45px rgba(91,58,34,.25);
    padding:10px 16px calc(16px + var(--safe-bottom));
    transform:translateY(0);
    transition:transform .2s ease;
  }

  .mobileNodeSheet.hidden{
    display:block !important;
    transform:translateY(110%);
    pointer-events:none;
  }

  .mobileSheetHandle{
    width:44px;
    height:5px;
    border-radius:999px;
    background:#D7C4A7;
    margin:0 auto 12px;
  }

  .mobileSheetHeader{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  .mobileSheetHeader h2{
    margin:0;
    color:#5B3A22;
    font-size:18px;
    line-height:1.25;
  }

  .mobileSheetHeader button{
    width:38px;
    height:38px;
    border-radius:999px;
    font-size:22px;
    padding:0;
  }

  .mobileSheetBody{
    margin-top:10px;
    color:#7A6245;
    line-height:1.45;
  }

  .mobileSheetActions{
    display:flex;
    gap:10px;
    margin-top:14px;
  }

  .mobileSheetActions button{
    flex:1;
    min-height:44px;
    border-radius:12px;
    font-weight:800;
  }

  body.readOnlyMode #cardOps,
  body.readOnlyMode #leafOps,
  body.readOnlyMode #editForm{
    display:none !important;
  }
}

@media (max-width: 480px){
  .brandText h1{
    font-size:18px !important;
  }

  .topbar .actions button:not(#signOutBtn):not(#adminRequestsBtn){
    display:none;
  }

  .toolbar input{
    min-width:150px;
    width:48vw;
  }

  .toolbar button{
    font-size:12px;
    padding:7px 9px;
  }

  .mobileActionBar{
    gap:8px;
    padding:9px;
  }

  .mobileActionBar button{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
  }
}

@media (max-height: 520px) and (orientation: landscape){
  .topbar{
    height:54px !important;
    min-height:54px !important;
  }

  .layout,
  .workspace,
  .viewport{
    height:calc(var(--app-height) - 54px) !important;
  }

  .panel{
    top:54px;
  }

  .toolbar{
    top:54px;
    padding-top:5px;
    padding-bottom:5px;
  }

  .viewport{
    padding-top:46px;
    padding-bottom:76px;
  }

  .mobileActionBar{
    bottom:calc(8px + var(--safe-bottom));
  }

  .mobileActionBar button{
    width:40px;
    height:40px;
    min-width:40px;
    min-height:40px;
  }
}


/* MOBILE ACCOUNT STRIP FIX */
.mobileAccountStrip{
  display:none;
}

@media (max-width: 900px), (pointer: coarse){
  .mobileAccountStrip{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    position:fixed;
    top:64px;
    left:0;
    right:0;
    z-index:46;
    padding:6px calc(10px + var(--safe-right)) 6px calc(10px + var(--safe-left));
    background:rgba(255,253,247,.98);
    border-bottom:1px solid #E8DDCC;
    box-shadow:0 3px 10px rgba(91,58,34,.08);
    box-sizing:border-box;
  }

  #mobileUserBadge{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:13px;
    font-weight:800;
    color:#5B3A22;
  }

  #mobileSignOutBtn{
    flex:0 0 auto;
    min-height:34px;
    padding:7px 11px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    background:#FFFDF7;
    color:#5B3A22;
    border:1px solid #D7C4A7;
  }

  /* Top toolbar now sits below the mobile account strip. */
  .toolbar{
    top:112px !important;
  }

  .viewport{
    padding-top:104px !important;
  }

  /* Keep desktop header simpler but do not lose account controls. */
  .topbar .actions{
    max-width:48vw;
  }

  .userBadge{
    display:none !important;
  }

  .topbar .actions #signOutBtn{
    display:none !important;
  }

  .brandText h1{
    max-width:58vw;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

@media (max-width: 480px){
  .brandText h1{
    max-width:60vw;
    font-size:16px !important;
  }

  .mobileAccountStrip{
    top:64px;
  }

  .toolbar{
    top:112px !important;
  }
}

@media (max-height: 520px) and (orientation: landscape){
  .mobileAccountStrip{
    top:54px;
    padding-top:4px;
    padding-bottom:4px;
  }

  .toolbar{
    top:94px !important;
  }

  .viewport{
    padding-top:86px !important;
  }
}


/* MOBILE PANE GAP AND TELUGU TITLE FIX */
@media (max-width: 900px), (pointer: coarse){
  .mobileAccountStrip{
    margin-bottom:10px;
    border-bottom:1px solid #E2D2BA;
  }

  .toolbar{
    box-shadow:0 3px 10px rgba(91,58,34,.07);
  }
}


/* TAGLINE GAP AND SEARCH CLEAR FIX */
.brandText p{
  margin-top:7px !important;
}

.searchControl{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.searchControl input{
  padding-right:34px !important;
}

.clearSearchBtn{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  min-width:24px !important;
  min-height:24px !important;
  border-radius:999px;
  padding:0 !important;
  display:grid;
  place-items:center;
  font-size:18px !important;
  line-height:1;
  background:#E8DDCC !important;
  color:#5B3A22 !important;
  border:1px solid #D7C4A7 !important;
  cursor:pointer;
}

.clearSearchBtn.hidden{
  display:none !important;
}

@media (max-width: 900px), (pointer: coarse){
  .brandText p{
    display:block !important;
    margin-top:6px !important;
    font-size:12px !important;
    line-height:1.1 !important;
  }

  .searchControl{
    min-width:170px;
    width:42vw;
  }

  .searchControl input{
    width:100% !important;
    min-width:0 !important;
  }
}

@media (max-width: 480px){
  .searchControl{
    min-width:150px;
    width:48vw;
  }
}


/* TELUGU MOBILE HEADER CLIPPING FIX */
@media (max-width: 900px), (pointer: coarse){
  .topbar{
    height:88px !important;
    min-height:88px !important;
    align-items:center !important;
    overflow:visible !important;
  }

  .brandBlock{
    align-items:center !important;
    overflow:visible !important;
  }

  .brandText{
    overflow:visible !important;
    padding-top:4px;
    padding-bottom:4px;
  }

  .brandText h1{
    font-size:24px !important;
    line-height:1.28 !important;
    margin:0 0 8px 0 !important;
    max-width:70vw !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  .brandText p{
    display:block !important;
    font-size:13px !important;
    line-height:1.2 !important;
    margin:0 !important;
  }

  .layout{
    height:calc(var(--app-height) - 88px) !important;
  }

  .workspace{
    height:calc(var(--app-height) - 88px) !important;
  }

  .panel{
    top:88px !important;
  }

  .mobileAccountStrip{
    top:88px !important;
  }

  .toolbar{
    top:136px !important;
  }

  .viewport{
    height:calc(var(--app-height) - 88px) !important;
    padding-top:128px !important;
  }
}

@media (max-width: 480px){
  .brandTreeLogo{
    width:34px !important;
    height:34px !important;
    flex:0 0 34px !important;
  }

  .brandText h1{
    font-size:22px !important;
    line-height:1.3 !important;
    max-width:72vw !important;
  }

  .brandText p{
    font-size:12px !important;
  }
}

@media (max-height: 520px) and (orientation: landscape){
  .topbar{
    height:68px !important;
    min-height:68px !important;
  }

  .brandText h1{
    font-size:20px !important;
    line-height:1.22 !important;
    margin-bottom:4px !important;
  }

  .brandText p{
    font-size:11px !important;
  }

  .layout,
  .workspace,
  .viewport{
    height:calc(var(--app-height) - 68px) !important;
  }

  .panel{
    top:68px !important;
  }

  .mobileAccountStrip{
    top:68px !important;
  }

  .toolbar{
    top:106px !important;
  }

  .viewport{
    padding-top:98px !important;
  }
}


/* ===== LEFT ALIGNED MOBILE HEADER FIX ===== */
@media (max-width: 900px), (pointer: coarse){

  .brandBlock{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    text-align:left !important;
    gap:12px !important;
    width:100%;
  }

  .brandTreeLogo{
    width:42px !important;
    height:42px !important;
    flex:0 0 42px !important;
    margin:0 !important;
  }

  .brandText{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    text-align:left !important;
    flex:1;
    overflow:visible !important;
  }

  .brandText h1{
    text-align:left !important;
    align-self:flex-start !important;
    margin:0 0 8px 0 !important;
    font-size:22px !important;
    line-height:1.25 !important;
    white-space:normal !important;
    max-width:none !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  .brandText p{
    display:block !important;
    text-align:left !important;
    align-self:flex-start !important;
    margin:0 !important;
    font-size:12px !important;
    color:#8B6A47 !important;
  }
}
