/* Landscape tablet layout. Keeps every game surface available without shrinking text into a desktop miniature. */
@media (orientation:landscape) and (min-width:960px) and (max-width:1280px){
  html,body{font-size:13px}

  #app{
    grid-template-rows:54px minmax(0,1fr) 144px;
    grid-template-columns:76px minmax(0,1fr) 292px;
    gap:6px;
    padding:6px;
  }

  #topbar{
    grid-template-columns:minmax(170px,1fr) auto auto;
    gap:6px;
    padding:0 8px;
  }
  #topbar .cb{gap:7px;min-width:0}
  #topbar .top-guild-logo{display:none}
  #topbar .pf{width:34px;height:34px;flex:0 0 34px}
  #topbar .ci{min-width:0}
  #topbar .top-level{font-size:21px}
  #topbar .top-guild-copy,#topbar .top-identity-separator{display:none}
  #topbar .top-player-copy{max-width:132px}
  #topbar .top-player-title{display:block;max-width:132px;font-size:8px}
  #topbar .cn{max-width:132px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-clock{gap:4px;padding:4px 7px}
  .top-text-btn{width:30px;min-width:30px;padding:0}
  .top-text-btn span{display:none}
  .top-text-btn img{width:20px;height:20px;flex-basis:20px}
  .clock-time{font-size:16px}
  .clock-icon-btn{width:30px;height:30px}
  .clock-icon-btn img,.clock-icon-btn.enchant-top-btn img{width:20px;height:20px}
  .currency-strip{gap:4px}
  .cur{gap:5px;padding:4px 6px}
  .cur-ico,.bc-ico{width:26px;height:26px}
  .cur-v{max-width:72px;font-size:10px}
  .bc-mini,.account-currency-v{min-width:40px;padding:2px 4px}

  #leftnav{overflow:hidden;z-index:30}
  #leftnav>.slbl{display:none}
  #leftnav .nl{
    gap:5px;
    padding:6px;
    overflow-x:hidden;
    overflow-y:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  #leftnav .nl::-webkit-scrollbar{display:none}
  #leftnav .nb{
    width:100%;
    min-height:50px;
    padding:5px 3px;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    font-size:8px;
    line-height:1.05;
    text-align:center;
  }
  #leftnav .nb::before,
  #leftnav .nb[data-s="auction"]::before{
    --menu-icon-size:28px 28px;
    width:30px;
    height:30px;
    flex:0 0 30px;
  }
  #leftnav .nb::after{inset:-3px}
  #leftnav .nav-key{display:none}
  #leftnav .nav-label{
    position:static;
    width:100%;
    max-width:100%;
    padding:0;
    color:var(--text-1);
    font-size:8px;
    font-weight:700;
    line-height:1.05;
    white-space:normal;
    overflow-wrap:anywhere;
  }

  #sidebar{gap:6px}
  #sidebar .chh{min-height:36px;padding:8px 10px 6px}
  #sidebar .slbl{font-size:9px}
  #sidebar .log-tabs,#sidebar .chat-tabs{gap:5px;padding-left:8px;padding-right:8px}
  #sidebar .log-tabs{padding-bottom:8px}
  #sidebar .chat-tabs{padding-bottom:8px}
  #sidebar .log-tab,#sidebar .chat-tab{height:30px;font-size:8px;letter-spacing:.04em}
  #sidebar .log-body,#sidebar .chbd{
    padding-left:10px;
    padding-right:10px;
    font-size:11.5px;
    line-height:1.5;
  }
  #sidebar .chm{overflow-wrap:anywhere;word-break:normal}
  #sidebar .chat-time{min-width:34px;margin-right:4px;font-size:9px}
  #sidebar .cht,#sidebar .chat-prefix{font-size:10px}
  #sidebar .chir{gap:5px;padding:6px 7px}
  #sidebar .chi{height:35px;padding-left:46px;font-size:11px}
  #sidebar .chat-channel-btn{width:40px;font-size:10px}
  #sidebar .chs-btn{min-width:34px;padding:6px 9px;font-size:11px}

  #hotbar{
    grid-template-columns:minmax(168px,190px) 1px 82px 1px 34px 1px 367px 1px minmax(198px,1fr) 1px 34px;
    grid-template-rows:132px;
    gap:4px;
    padding:6px 7px;
  }
  #hotSlots{
    grid-template-columns:repeat(10,34px);
    grid-auto-rows:34px;
    gap:3px;
    width:367px;
    min-width:367px;
  }
  .quick-item-slots{grid-template-rows:repeat(2,34px);gap:4px;width:34px;min-width:34px}
  .hs{width:34px;height:34px;font-size:8px}
  .hk{right:2px;bottom:1px;font-size:7px}
  .hot-actions{width:82px;gap:5px}
  .ab{width:82px;height:49px;padding:0 5px;gap:5px;font-size:8px;letter-spacing:.03em}
  .ab img{width:17px;height:17px}
  .hdiv{height:112px}
  .auto-panel{grid-template-columns:76px minmax(0,1fr);gap:4px}
  .auto-checks,.auto-pots,.auto-timer{padding:5px}
  .auto-checks{gap:3px}
  .auto-cb{min-height:16px;gap:4px;font-size:8px}
  .auto-cb input{width:12px;height:12px}
  .auto-pots{grid-template-columns:34px minmax(0,1fr);gap:3px 5px}
  .auto-lbl{font-size:7px}
  .auto-slot{height:20px;padding:0 5px;font-size:7.5px}
  .auto-range{grid-template-columns:18px minmax(46px,1fr) 27px;gap:4px;font-size:7px}
  .auto-range b,.auto-time,.auto-tbtn{font-size:7px}
  .auto-range input{height:12px}
  .auto-timer{gap:4px}
  .auto-tbtn{padding:3px 2px}
  .combat-vitals{min-width:0;padding:5px 7px;gap:3px}
  .combat-vitals .bt{height:13px;border-radius:4px}
  .combat-vitals .bl{font-size:8px}
  .combat-vitals .bl span:last-child{font-size:10px}
  .quick-tools{height:106px;grid-template-rows:repeat(3,32px);gap:5px}
  .qt{width:32px;height:32px}
  .qt img,.qt svg{width:20px;height:20px}

  .presence-panel{position:absolute;left:9px;top:66px;width:206px;max-height:calc(100% - 126px);margin:0;padding:7px}
  .presence-list{max-height:188px}
  .presence-row{min-height:38px;grid-template-columns:26px 26px minmax(0,1fr);gap:6px;padding:5px}
  .presence-class,.presence-guild-logo{width:26px;height:26px}
  .presence-guild,.presence-title{font-size:9px}
  .presence-name{font-size:10px}
  .quest-tracker{top:82px;right:9px;width:226px;max-height:calc(100% - 172px);padding:8px;font-size:10px}

  .scr[data-s="character"]{overflow:auto}
  .scr[data-s="character"] .uni{
    flex:none;
    min-height:100%;
    height:auto;
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
    grid-template-areas:"equipment stats" "inventory inventory";
    overflow:visible;
  }
  .scr[data-s="character"] .uni-eq{grid-area:equipment;padding:10px 8px}
  .scr[data-s="character"] .uni-st{grid-area:stats;padding:10px 9px;border-right:0}
  .scr[data-s="character"] .uni-iv{grid-area:inventory;min-height:280px;padding:9px 8px;border-top:1px solid var(--glass-border)}

  .craft-screen{overflow:auto;padding:10px}
  .craft-title{margin-bottom:8px;font-size:21px}
  .craft-layout{
    flex:none;
    grid-template-columns:132px minmax(0,1fr);
    grid-template-areas:"categories recipes" "details details";
    gap:8px;
    min-height:0;
  }
  .craft-side{grid-area:categories;max-height:320px;padding:7px;overflow:auto}
  .craft-main{grid-area:recipes;min-height:320px}
  .craft-detail{grid-area:details;max-height:none;padding:13px}
  .craft-cat{padding:7px 8px;font-size:10px}
  .craft-toolbar{padding:7px 8px}
  .craft-tools{width:100%;min-width:0;justify-content:flex-start}
  .craft-search{min-width:0;max-width:none;flex:1}
  .recipe-list{padding:12px;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:10px}

  .skills-screen,.guild-screen,.auction-screen,.ps-screen,.map-screen{padding:10px}
}

@media (orientation:landscape) and (min-width:960px) and (max-width:1280px) and (max-height:620px){
  #app{grid-template-rows:48px minmax(0,1fr) 122px}
  #topbar .pf{width:30px;height:30px;flex-basis:30px}
  #topbar .top-level{font-size:19px}
  #topbar .top-player-title{font-size:7px}
  #topbar .cn{font-size:13px}
  .clock-time{font-size:14px}
  .clock-icon-btn,.top-text-btn{width:28px;min-width:28px;height:28px}
  .cur-ico,.bc-ico{width:24px;height:24px}
  #leftnav .nl{gap:3px;padding:4px 6px}
  #leftnav .nb{min-height:46px;padding:3px 2px}
  #leftnav .nb::before,#leftnav .nb[data-s="auction"]::before{--menu-icon-size:25px 25px;width:27px;height:27px;flex-basis:27px}
  #leftnav .nav-label{font-size:7.5px}
  #sidebar .log-body,#sidebar .chbd{font-size:10.5px;line-height:1.42}
  #sidebar .log-tab,#sidebar .chat-tab{height:27px}
  #sidebar .chi{height:32px}
  #hotbar{
    grid-template-columns:minmax(160px,184px) 1px 78px 1px 32px 1px 347px 1px minmax(190px,1fr) 1px 32px;
    grid-template-rows:110px;
    padding:5px 7px;
  }
  #hotSlots{grid-template-columns:repeat(10,32px);grid-auto-rows:32px;width:347px;min-width:347px}
  .quick-item-slots{grid-template-rows:repeat(2,32px);width:32px;min-width:32px}
  .hs{width:32px;height:32px}
  .hot-actions{width:78px}
  .ab{width:78px;height:43px}
  .hdiv{height:96px}
  .auto-panel{grid-template-columns:72px minmax(0,1fr)}
  .auto-cb{min-height:14px;font-size:7.5px}
  .quick-tools{height:94px;grid-template-rows:repeat(3,28px);gap:4px}
  .qt{width:30px;height:28px}
  .presence-panel{top:58px;max-height:calc(100% - 112px)}
  .presence-list{max-height:150px}
  .quest-tracker{top:66px;max-height:calc(100% - 132px)}
}
