/* r446 (20 Nov 2026, owner): TradingView-app style favourites on phones - star on every tool, big floating bar, add / hide */
.dw446-w{position:relative;min-width:0}
.dw446-w>.dw321-t{width:100%}
.dw446-star{position:absolute;top:3px;right:3px;display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--t3);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.dw446-star svg{width:15px;height:15px;stroke-width:2}
.dw446-star[aria-pressed=true]{color:#f5a524}.dw446-star[aria-pressed=true] svg{fill:#f5a524}
.dw446-star:active{transform:scale(.88)}
.dw446-fh{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px}
.dw446-fh .dw321-h{display:flex;align-items:center;gap:5px}.dw446-fh .dw321-h svg{width:13px;height:13px;color:#f5a524;fill:#f5a524}
.dw446-show{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 11px;border:1px solid var(--hair);border-radius:999px;background:var(--card);color:var(--t1);font:600 11.5px/1 Inter,sans-serif}
.dw446-show svg{width:14px;height:14px}
.dw446-fav{padding:0 14px 6px}
.dw446-tip{display:flex;align-items:center;gap:8px;margin:2px 14px 8px;padding:10px 12px;border:1px dashed var(--hair);border-radius:12px;color:var(--t2);font-size:12px;line-height:1.35}
.dw446-tip svg{flex:none;width:16px;height:16px;color:#f5a524}
.drawing-favourites-bar .favourites-add,.drawing-favourites-bar .favourites-hide{color:var(--t3)}
.drawing-favourites-bar .favourites-add{border-left:1px solid var(--hair)!important;border-radius:0 6px 6px 0}
@media(min-width:768px) and (pointer:fine){.drawing-favourites-bar .favourites-hide{display:none}}
.drawing-favourites-bar.fav446-m{gap:2px;padding:4px 5px;border-radius:16px;box-shadow:0 8px 24px -8px rgb(0 0 0 / .35),0 0 0 1px var(--hair);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.drawing-favourites-bar.fav446-m button{width:42px;height:42px;border-radius:12px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.drawing-favourites-bar.fav446-m svg{width:23px;height:23px}
.drawing-favourites-bar.fav446-m .favourites-grip{width:22px;height:42px}
.drawing-favourites-bar.fav446-m .favourites-scroll{scrollbar-width:none;scroll-snap-type:x proximity}
.drawing-favourites-bar.fav446-m .favourites-scroll::-webkit-scrollbar{display:none}
.drawing-favourites-bar.fav446-m .favourite-tool{scroll-snap-align:start}
.drawing-favourites-bar.fav446-m button[aria-pressed=true]{background:color-mix(in srgb,var(--accent-strong,#2962ff) 14%,transparent);color:var(--accent-strong,#2962ff)}
.drawing-favourites-bar.fav446-m .favourites-hide,.drawing-favourites-bar.fav446-m .favourites-add{width:36px}
.drawing-favourites-toggle.fav446-m{width:40px;height:40px;border-radius:50%;color:#f5a524}
.drawing-favourites-toggle.fav446-m>svg{fill:#f5a524;fill-opacity:.25}
@media(max-width:767px),(max-width:1024px) and (max-height:500px) and (pointer:coarse){body #drawingFavoritesToggle.fav446-m:not([hidden]){display:grid!important}}
html[data-theme=dark] .drawing-favourites-bar.fav446-m{background:rgb(20 20 22 / .92)}
/* r450 (20 Nov 2026, owner): no "Auto" pill in the price-scale corner (the bottom bar Auto button stays) */
.scale-auto-pill { display: none !important; }
/* r450 owner: phones - indicator and drawing-tool sheets are smaller bottom sheets so the chart and favourites stay in view */
@media (max-width: 767px) {
  .modal-box.dw321-box { height: min(58dvh, 520px) !important; margin-top: auto; border-radius: 18px 18px 0 0; }
  .dw321-box > .mh { padding: 10px 12px 4px 14px; }
  .dw321-s { padding-top: 0; }
  .dw321-g { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .dw321-t { min-height: 58px; padding: 6px 2px 4px; gap: 3px; border-radius: 10px; }
  .dw321-i { width: 24px; height: 24px; } .dw321-i svg { width: 21px; height: 21px; }
  .dw321-n { font-size: 9.5px; }
  .dw321-h { padding: 8px 2px 4px; }
  .dw446-star { width: 22px; height: 22px; top: 1px; right: 1px; } .dw446-star svg { width: 13px; height: 13px; }
  .dw321-f { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); } .dw321-f .btn { height: 34px; font-size: 12px; }
  .modal-box.ind318 { height: min(62dvh, 560px) !important; margin-top: auto; border-radius: 18px 18px 0 0 !important; }
  .ind318 .mh { padding: 10px 14px 6px !important; }
  :is(.ind318) .sbox { height: 38px !important; margin: 0 12px 6px !important; }
  .ind318-row { min-height: 40px !important; }
}
@media (max-width: 380px) { .dw321-g { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* r458 owner: phone favourites bar was too big - compact, responsive, scrolls if many tools */
@media (max-width: 767px), (max-width: 1024px) and (max-height: 500px) and (pointer: coarse) {
  .drawing-favourites-bar.fav446-m { gap: 1px; padding: 3px; border-radius: 13px; max-width: calc(100vw - 24px) !important; box-shadow: 0 6px 18px -8px rgb(0 0 0 / .35), 0 0 0 1px var(--hair); }
  .drawing-favourites-bar.fav446-m button { width: 34px; height: 34px; min-width: 34px; border-radius: 9px; }
  .drawing-favourites-bar.fav446-m svg { width: 19px; height: 19px; }
  .drawing-favourites-bar.fav446-m .favourites-grip { width: 16px; height: 34px; min-width: 16px; }
  .drawing-favourites-bar.fav446-m .favourites-grip svg { width: 14px; height: 14px; }
  .drawing-favourites-bar.fav446-m .favourites-hide, .drawing-favourites-bar.fav446-m .favourites-add { width: 30px; min-width: 30px; }
  .drawing-favourites-bar.fav446-m .favourites-scroll { min-width: 0; overflow-x: auto; display: flex; gap: 1px; }
  .drawing-favourites-toggle.fav446-m { width: 34px; height: 34px; }
  .drawing-favourites-toggle.fav446-m > svg { width: 18px; height: 18px; }
}
@media (max-width: 380px) { .drawing-favourites-bar.fav446-m button { width: 31px; height: 31px; min-width: 31px; } .drawing-favourites-bar.fav446-m svg { width: 17px; height: 17px; } }
/* r462b owner: phone drawing sheet - favourites and recent pushed the tools out of view. Now: no Recent row on the phone,
   favourites in one sideways-scrolling line, and the whole sheet scrolls as one with the category chips pinned on top. */
@media (max-width: 767px) {
  .modal-box.dw321-box { height: min(82dvh, 680px) !important; max-height: calc(100dvh - 40px) !important; }
  .dw321-box .advanced-content { overflow: hidden !important; display: flex !important; min-height: 0 !important; flex: 1 1 auto !important; }
  .dw321 { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .dw321 > .dw321-rec, .dw321 > .dw321-h:has(+ .dw321-rec) { display: none !important; }
  .dw321 > #dw446F { flex: none; }
  #dw446F .dw446-fav { padding-bottom: 8px; }
  #dw446F .dw446-fav .dw321-g, #dw446F .dw321-g { display: flex !important; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  #dw446F .dw321-g::-webkit-scrollbar { display: none; }
  #dw446F .dw321-g > * { flex: 0 0 68px; }
  #dw446F .dw446-tip { margin-top: 0; margin-bottom: 6px; padding: 7px 10px; font-size: 11.5px; }
  .dw321 > .dw321-s { position: relative; }
  .dw321 > .dw321-c { position: sticky; top: 0; z-index: 3; background: var(--card, #fff); padding-top: 8px; }
  .dw321-b { flex: none !important; min-height: 0 !important; overflow: visible !important; padding-bottom: 16px !important; }
  .dw321-box .dw321-f { flex: none; }
}
/* r462c owner: phone - no star (favourites) button in the left corner of the chart. The favourites bar can still be shown
   from Drawing tools > Favourites > "Show bar on chart". */
@media (max-width: 767px), (max-width: 1024px) and (max-height: 500px) and (pointer: coarse) {
  html body #drawingFavoritesToggle, html body #drawingFavoritesToggle.fav446-m, html body #drawingFavoritesToggle.fav446-m:not([hidden]), html body .drawing-favourites-toggle { display: none !important; }
}
