/* Workspace chrome, shared typography and navigation */
:root {
  --tw-ink: #0c121c;
  --tw-panel: #111b28;
  --tw-panel-raised: #172434;
  --tw-line: #253241;
  --tw-soft: #97a9bc;
  --tw-text: #edf3f7;
  --tw-teal: #77dfc9;
  --tw-amber: #e6ba72;
  --tw-rail-width: 216px;
  --tw-ui: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --tw-mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
}
body[data-tw-page] {
  background: var(--tw-ink);
  color: var(--tw-text);
  font-family: var(--tw-ui);
}
.app-shell.tw-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding-inline-start: var(--tw-rail-width);
  background: var(--tw-ink);
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  isolation: isolate;
  --bg: var(--tw-ink);
  --surface: var(--tw-panel);
  --muted: var(--tw-soft);
  --text: var(--tw-text);
  --line: var(--tw-line);
  --line-soft: #202c39;
}
.tw-shell, .tw-shell *, .tw-shell *::before, .tw-shell *::after { box-sizing: border-box; }
.tw-shell .app-main.tw-main {
  width: min(100%, 1460px);
  min-width: 0;
  margin: 0 auto;
  padding: 30px 36px 64px;
}
.tw-main:focus { outline: none; }
.tw-shell :is(a,button,input,select,textarea,summary):focus-visible,
.tw-jump-dialog :focus-visible {
  outline: 2px solid var(--tw-teal);
  outline-offset: 3px;
}
.tw-skip { position: fixed; z-index: 120; inset-block-start: 8px; inset-inline-start: 8px; padding: 10px 18px; transform: translateY(-160%); background: var(--tw-teal); color: var(--tw-ink); border-radius: 6px; }
.tw-skip:focus-visible { transform: none; }
.tw-rail {
  position: fixed;
  z-index: 46;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  width: var(--tw-rail-width);
  padding: 0 14px;
  border-inline-end: 1px solid var(--tw-line);
  background: #0e1722;
}
.tw-rail-brand, .tw-mobile-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  color: #eff6f9;
  text-decoration: none;
}
.tw-rail-brand { min-height: 74px; padding-inline: 10px; }
.tw-brand-mark { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; background: var(--tw-teal); color: #0d2426; border-radius: 9px; }
.tw-brand-mark svg { display: block; width: 26px; height: 26px; }
.tw-brand-name { font: 720 24px/1.1 "Segoe UI",system-ui,sans-serif; letter-spacing: -1.4px; white-space: nowrap; }
.tw-brand-name span { color: var(--tw-teal); }
.tw-rail-groups { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #334452 transparent; padding: 16px 0; }
.tw-rail-group + .tw-rail-group { margin-top: 25px; }
.tw-rail-group h2 {
  margin: 0 0 8px;
  padding-inline: 12px;
  color: #8295a9;
  font: 600 11px/1.6 var(--tw-ui);
  text-transform: uppercase;
  letter-spacing: 1.3px;
}
html[lang=ar] .tw-rail-group h2 { font-size: 12px; letter-spacing: 0; }
.tw-rail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  margin-block: 3px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a9b7c6;
  font: 550 14px/1.35 var(--tw-ui);
  text-decoration: none;
  transition: color .16s, background .16s, border-color .16s;
}
.tw-line-icon { width: 19px; height: 19px; flex: 0 0 auto; stroke-width: 1.65; }
.tw-rail-link:hover, .tw-rail-link:focus-visible { color: #f2f6fb; background: #192534; }
.tw-rail-link.is-current { color: var(--tw-teal); background: #152f31; border-color: #244846; }
.tw-rail-footer { padding-block: 13px 18px; border-top: 1px solid var(--tw-line); }
.tw-vip { display: flex; align-items: center; justify-content: space-between; min-height: 39px; margin-block-end: 13px; padding: 0 5px; background: #27251f; color: var(--tw-amber); border: 1px solid #423a2c; border-radius: 8px; }
.tw-vip button { display: inline-flex; align-items: center; gap: 9px; padding: 8px 6px; color: inherit; font: 600 13px/1.4 var(--tw-ui); }
.tw-vip .tw-vip-close { padding: 6px; color: #b5a789; }
.tw-vip-close .icon { width: 13px; height: 13px; }
.tw-account { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 3px 5px; color: var(--tw-text); text-decoration: none; }
.tw-avatar { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; background: #29343f; color: #d0dfe9; border: 1px solid #435463; border-radius: 50%; font: 650 15px/1 var(--tw-ui); }
.tw-account-name { display: grid; gap: 3px; min-width: 0; }
.tw-account-name strong { max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tw-text); font: 650 14px/1.3 var(--tw-ui); }
.tw-account-name small { color: var(--tw-soft); font: 500 11px/1.25 var(--tw-ui); }
.tw-account > .icon { width: 15px; height: 15px; margin-inline-start: auto; color: var(--tw-soft); transform: rotate(-90deg); }
html[dir=rtl] .tw-account > .icon { transform: rotate(90deg); }
.tw-shell .app-header {
  position: sticky;
  z-index: 38;
  top: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 68px;
  min-height: 68px;
  padding: 0 36px;
  border-bottom: 1px solid var(--tw-line);
  background: #0e1722f5;
  backdrop-filter: blur(18px);
}
.tw-shell .tw-mobile-brand { display: none; }
.tw-breadcrumb, .tw-shell .header-actions, .tw-zone, .tw-open-search { display: flex; align-items: center; }
.tw-breadcrumb { gap: 11px; min-width: 0; white-space: nowrap; color: #8999ac; font: 550 13px/1.4 var(--tw-ui); }
.tw-breadcrumb a { color: #93a4b7; text-decoration: none; }
.tw-breadcrumb a:hover { color: var(--tw-teal); }
.tw-breadcrumb span { color: #607084; }
.tw-breadcrumb strong { color: #e5edf4; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.tw-shell .header-actions { flex: 0 0 auto; gap: 11px; }
.tw-zone { gap: 6px; color: #a1b2c3; font-size: 12px; white-space: nowrap; margin-inline-end: 8px; }
.tw-zone .icon { width: 15px; height: 15px; color: #85a3ae; }
.tw-zone time { color: #e4ecef; font: 12px/1.2 var(--tw-mono); font-variant-numeric: tabular-nums; }
.tw-open-search, .tw-shell .header-actions > .icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid #2b3949;
  background: #141e2b;
  border-radius: 7px;
  color: #9fb1c4;
}
.tw-open-search { gap: 8px; padding: 0 8px; font: 500 12px/1.1 var(--tw-ui); }
.tw-open-search kbd { padding: 2px 4px; background: #1b2937; color: #a5b6c8; border: 1px solid #354454; border-radius: 3px; font: 10px/1.25 var(--tw-mono); }
.tw-open-search .icon, .tw-shell .header-actions > .icon-btn .icon { width: 17px; height: 17px; }
.tw-shell .header-actions > .icon-btn { width: 34px; padding: 0; }
.tw-open-search:hover, .tw-shell .header-actions > .icon-btn:hover { color: var(--tw-teal); border-color: #44615f; }
.tw-shell .header-actions .lang-toggle { display: inline-flex; gap: 1px; padding: 2px; border: 1px solid #2b3949; border-radius: 7px; background: #101824; }
.tw-shell .lang-toggle button { min-width: 31px; min-height: 27px; padding: 2px 6px; font: 600 12px/1 var(--tw-ui); border-radius: 5px; background: transparent; color: #94a4b8; }
.tw-shell .lang-toggle button.active { background: #233740; color: #9de8d9; box-shadow: none; }
.tw-shell .bottom-nav { display: none; }
.tw-jump-dialog {
  width: min(430px, calc(100vw - 30px)); max-height: min(560px, 82dvh);
  margin: min(12dvh,96px) auto 0; padding: 18px;
  background: #121c27; color: var(--tw-text);
  border: 1px solid #3a4e5e; border-radius: 14px;
  box-shadow: 0 26px 80px #0008;
}
.tw-jump-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0,1fr); gap: 14px; }
.tw-jump-dialog::backdrop { background: #050a12be; backdrop-filter: blur(3px); }
.tw-jump-head, .tw-jump-input { display: flex; align-items: center; }
.tw-jump-head { justify-content: space-between; gap: 10px; }
.tw-jump-head h2 { margin: 0; font: 650 19px/1.45 var(--tw-ui); }
.tw-jump-close { display: grid; place-items:center; width: 34px; height: 34px; border: 1px solid var(--tw-line); border-radius: 7px; color: var(--tw-soft); }
.tw-jump-input { gap: 10px; padding-inline: 12px; border: 1px solid #46615f; border-radius: 8px; color: var(--tw-teal); background: #0d1520; }
.tw-jump-input input { flex: 1; width: 100%; min-width: 0; padding: 9px 0; color: var(--tw-text); font: 500 15px/1.4 var(--tw-ui); background: none; border: 0; outline: none !important; }
.tw-jump-input:focus-within { border-color: var(--tw-teal); }
.tw-jump-list { display: grid; align-content: start; overflow-y: auto; color: var(--tw-soft); scrollbar-width: thin; }
.tw-jump-list .tw-rail-link { margin: 0; }
@media (min-width:768px) and (max-width:1023px) {
  :root { --tw-rail-width: 76px; }
  .tw-rail { padding-inline: 9px; }
  .tw-rail-brand { margin-inline: auto; padding-inline: 0; min-height: 68px; }
  .tw-rail .tw-brand-name, .tw-rail .tw-rail-link span, .tw-rail-group h2, .tw-account-name, .tw-account > .icon, .tw-vip-button span, .tw-vip .tw-vip-close { display: none; }
  .tw-rail .tw-rail-link { justify-content: center; padding: 8px 0; }
  .tw-rail-group + .tw-rail-group { margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--tw-line); }
  .tw-account, .tw-vip { justify-content: center; }
  .tw-shell .app-main.tw-main { padding: 24px 24px 60px; }
  .tw-shell .app-header { padding-inline: 24px; }
}
@media (max-width:767px) {
  :root { --tw-rail-width: 0px; }
  .tw-rail { display: none; }
  .tw-shell .app-main.tw-main { padding: 21px 16px calc(91px + env(safe-area-inset-bottom)); }
  .tw-shell .app-header { min-height: 60px; height: 60px; padding: 0 16px; gap: 6px; }
  .tw-shell .tw-mobile-brand { display: inline-flex; gap: 8px; }
  .tw-brand-mark { flex-basis: 30px; width: 30px; height: 30px; border-radius: 7px; }
  .tw-brand-mark svg { width: 23px; height: 23px; }
  .tw-brand-name { font-size: 21px; }
  .tw-breadcrumb, .tw-zone, .tw-open-search span, .tw-open-search kbd { display: none; }
  .tw-shell .header-actions { gap: 6px; }
  .tw-shell .header-actions > .icon-btn, .tw-open-search { width: 33px; min-width: 33px; height: 34px; }
  .tw-shell .bottom-nav {
    position: fixed; z-index: 45;
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
    left: 0; right: 0; bottom: 0;
    width: 100%; max-width: none; margin: 0;
    padding: 5px 4px max(5px,env(safe-area-inset-bottom));
    border: 0; border-top: 1px solid #2c3b49;
    border-radius: 0; background: #0f1926f7;
    transform: none; backdrop-filter: blur(16px);
  }
  .tw-shell .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 0; min-height: 49px; gap: 4px; padding: 2px;
    color: #9baec0; font: 550 11px/1.3 var(--tw-ui); text-decoration: none;
  }
  html[lang=ar] .tw-shell .bottom-nav a { font-size: 11px; }
  .tw-shell .bottom-nav a .icon.nav-ico { width: 21px; height: 21px; }
  .tw-shell .bottom-nav a.active { color: var(--tw-teal); }
  .tw-shell .bottom-nav a.active .icon.nav-ico { color: var(--tw-teal); transform: none; filter: none; }
  .tw-shell .bottom-nav a:after, .tw-shell .bottom-nav a:before { display: none; }
  .tw-shell .bottom-nav a.active:before { display: block; inset: auto auto -3px; width: 13px; height: 2px; border-radius: 2px; background: var(--tw-teal); }
}
@media (max-width:365px) {
  .tw-shell .app-header { padding-inline: 11px; }
  .tw-shell .header-actions { gap: 3px; }
  .tw-shell .header-actions > .icon-btn, .tw-open-search { min-width: 29px; width: 29px; }
  .tw-brand-name { font-size: 19px; }
  .tw-shell .app-main.tw-main { padding-inline: 12px; }
}
@media (prefers-reduced-motion:reduce) { .tw-shell *, .tw-shell *::before, .tw-shell *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
