/* D101 — iki çalışma alanının kenar çubuğu, üst çubuğu ve telefon sekmeleri. */
.rota-shell { --rota-sidebar-space: 276px; }
body .rota-shell { grid-template-columns: var(--rota-sidebar-space) minmax(0, 1fr); }
body .rota-shell > .rota-sidebar {
  position: sticky;
  top: 10px;
  width: 256px;
  height: calc(100dvh - 20px);
  min-height: 0;
  margin: 10px;
  padding: 14px 10px 10px;
  border: 1px solid var(--rota-highlight);
  border-radius: 26px;
  background: var(--rota-card);
  box-shadow: none;
}
.rota-sidebar .sidebar-heading { min-height: 50px; padding: 0 8px 6px; }
.rota-sidebar .ds-brand { min-height: 50px; padding: 0 8px 6px; margin-bottom: 0; }
.rota-sidebar .ds-brand img { width: 128px; max-height: 52px; object-fit: contain; object-position: left; }
body .rota-menu { padding: 2px; display: flex; flex-direction: column; gap: 2px; }
.rota-menu .ds-nav-group + .ds-nav-group { margin-top: .375rem; }
body .rota-menu :is(.nav-caption, .ds-nav-label) {
  order: 0;
  margin: 0;
  padding: 8px 8px 4px;
  color: var(--rota-secondary);
  font-size: .78125rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}
body .rota-menu .rota-menu-section { margin-top: 6px; }
body:is(.tema-koyu, .ds-body) .rota-shell .rota-menu :is(.nav-link, .ds-nav-link),
body .rota-tab-panel .rota-menu :is(.nav-link, .ds-nav-link) {
  min-height: 40px;
  padding: 3px 8px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--rota-text);
  font-size: .96875rem;
  font-weight: 450;
  box-shadow: none;
}
body:is(.tema-koyu, .ds-body) .rota-shell .rota-menu :is(.nav-link, .ds-nav-link):is(:hover, [aria-current="page"]),
body .rota-tab-panel .rota-menu :is(.nav-link, .ds-nav-link):is(:hover, [aria-current="page"]) {
  background: var(--rota-hover);
  color: var(--rota-text);
  border-color: transparent;
  box-shadow: none;
}
body .rota-menu :is(.nav-link, .ds-nav-link)[aria-current="page"] { font-weight: 650; }
.rota-menu :is(.nav-link, .ds-nav-link) > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.rota-menu .count-pill { margin-left: auto; }
.rota-tile {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--rota-text);
  background: var(--rota-tile-gray);
  box-shadow: inset 0 1px 0 var(--rota-highlight);
}
.rota-tile[data-tone="blue"] { background: var(--rota-tile-blue); }
.rota-tile[data-tone="green"] { background: var(--rota-tile-green); }
.rota-tile[data-tone="orange"] { background: var(--rota-tile-orange); }
.rota-tile[data-tone="indigo"] { background: var(--rota-tile-indigo); }
.rota-tile[data-tone="purple"] { background: var(--rota-tile-purple); }
.rota-tile[data-tone="pink"] { background: var(--rota-tile-pink); }
.rota-tile[data-tone="teal"] { background: var(--rota-tile-teal); }
.rota-tile[data-tone="mint"] { background: var(--rota-tile-mint); }
.rota-tile[data-tone="yellow"] { background: var(--rota-tile-yellow); }
.rota-tile[data-tone="brown"] { background: var(--rota-tile-brown); }
.rota-tile[data-tone="cyan"] { background: var(--rota-tile-cyan); }

.rota-workspaces {
  display: flex;
  gap: 2px;
  margin: 6px 2px;
  padding: 2px;
  background: var(--rota-fill);
  border-radius: var(--rota-pill);
}
.rota-workspaces a {
  flex: 1;
  padding: 6px 4px;
  border-radius: inherit;
  color: var(--rota-text);
  font-size: .84375rem;
  text-align: center;
  text-decoration: none;
}
.rota-workspaces a[aria-current="true"] { background: var(--rota-selected); font-weight: 650; }
body .rota-sidebar .sidebar-user, body .rota-tab-panel .sidebar-user { border: 0; background: transparent; margin: 4px 0 0; padding: 8px; }
.rota-sidebar .ds-sidebar-foot { margin: 0; padding-top: 5px; border-top: 1px solid var(--rota-line); }
.rota-sidebar .ds-avatar { border-radius: 50%; }
.rota-sidebar .ds-sidebar-foot .ds-nav-link { min-height: 36px; }
body .rota-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 60px;
  padding: 10px clamp(16px, 3vw, 36px);
  background: var(--rota-bg);
  color: var(--rota-text);
}
.rota-top-context { color: var(--rota-text); font-weight: 650; text-decoration: none; }
.rota-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rota-topbar .ds-account > summary { min-height: 38px; border-radius: var(--rota-pill); background: var(--rota-fill); }

body .rota-tabbar { display: none; }
@media (max-width: 1023px) {
  body .rota-shell { display: block; }
  body .rota-shell > .rota-sidebar { display: none; }
  body .rota-tabbar {
    position: fixed;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 35;
    height: 66px;
    inset: auto 14px max(14px, env(safe-area-inset-bottom)) 14px;
    padding: 4px;
    border: 1px solid var(--rota-highlight);
    border-radius: 33px;
    background: var(--rota-bar);
    box-shadow: 0 10px 30px var(--rota-shadow);
  }
  @supports (backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px)) {
    body .rota-tabbar { background: var(--rota-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  }
  body .rota-tabbar > :is(a, details) { flex: 1; min-width: 0; }
  body .rota-tabbar > a, body .rota-tabbar > details > summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 56px;
    min-width: 0;
    padding: 2px 4px;
    border-radius: 29px;
    color: var(--rota-text);
    font-size: .6875rem;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    list-style: none;
    cursor: pointer;
  }
  .rota-tabbar summary::-webkit-details-marker { display: none; }
  body .rota-tabbar > a[aria-current="page"] { background: var(--rota-hover); color: var(--rota-text); font-weight: 650; }
  body .rota-tabbar > a[aria-current="page"] .rota-icon { color: var(--rota-accent); }
  body .rota-tab-panel {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 28px));
    max-height: calc(100dvh - 120px);
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--rota-highlight);
    border-radius: 22px;
    background: var(--rota-card);
    box-shadow: 0 14px 36px var(--rota-shadow);
  }
  .rota-tab-panel .app-nav { margin: 0; }
  body .rota-shell .app-main, body.ds-has-bottom .rota-shell .ds-main { padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
}
@media print {
  body .rota-shell { display: block; }
  body .rota-shell > .rota-sidebar, body .rota-topbar, body .rota-tabbar { display: none; }
  body .rota-shell :is(.app-main, .ds-main) { padding-bottom: 0; }
}

/* D102 — Hasbahçe */
body.workspace-hasbahce .rota-shell > .rota-sidebar .hb-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 14px 8px 12px;
  border-radius: 18px;
  background: var(--rota-h-logo-plate);
  box-shadow: inset 0 0 0 .5px var(--rota-highlight);
}
.hb-brand::after {
  content: "";
  width: 52%;
  height: 3px;
  border-radius: 2px;
  background: var(--rota-h-logo-line);
}
.workspace-hasbahce .rota-sidebar .hb-brand .hb-brand-logo {
  width: min(100%, 196px);
  height: auto;
  max-height: none;
  object-position: center;
}
.workspace-hasbahce .rota-sidebar .hb-brand .hb-brand-monogram { display: none; }
.workspace-hasbahce .rota-sidebar .ds-sidebar-foot .ds-nav-link { min-height: 44px; }
.hb-sidebar-identity { min-width: 0; overflow-wrap: anywhere; }
.workspace-hasbahce .ds-sidebar-foot .hb-sidebar-identity small { padding: 0; color: var(--rota-secondary); }
body.workspace-hasbahce .rota-shell .rota-menu .ds-nav-link,
body.workspace-hasbahce .rota-tab-panel .rota-menu .ds-nav-link { min-height: 44px; }
body.workspace-hasbahce .rota-sidebar .ds-nav { scrollbar-gutter: auto; }

body.workspace-hasbahce .hb-topbar {
  position: relative;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  min-height: 66px;
  padding: 10px 36px 10px 14px;
  border: 0;
}
.hb-topbar .ds-topbar-actions { flex-shrink: 0; }
.hb-topbar .hb-top-icon {
  display: inline-grid;
  position: relative;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--rota-pill);
  background: transparent;
  color: var(--rota-text);
  cursor: pointer;
  text-decoration: none;
}
.hb-topbar .hb-top-icon[hidden] { display: none; }
.hb-topbar .hb-top-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  pointer-events: none;
}
.hb-topbar .hb-top-icon:hover::before, .hb-topbar .hb-back::before,
.hb-topbar .hb-bell[aria-expanded="true"]::before { background: var(--rota-fill); }
.hb-top-icon .rota-icon { position: relative; }
.hb-back .rota-icon { transform: rotate(180deg); }
.hb-back span { display: none; }
.hb-breadcrumb { display: flex; align-items: center; min-width: 0; font-size: .90625rem; }
.hb-breadcrumb a {
  display: block;
  min-width: 0;
  height: 44px;
  padding: 0 7px;
  border-radius: 10px;
  color: var(--rota-secondary);
  line-height: 44px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}
.hb-breadcrumb a[aria-current="page"] { color: var(--rota-text); font-weight: 650; }
.hb-breadcrumb a:hover { color: var(--rota-text); background: var(--rota-fill); }
.hb-breadcrumb > span { color: var(--rota-decoration); }
.workspace-hasbahce :is(.hb-topbar, .ds-sidebar-foot) .ds-avatar {
  background: var(--rota-h-avatar);
  color: var(--rota-text);
}
.hb-topbar .ds-account > summary {
  min-height: 44px;
  padding-inline: 4px 12px;
  color: var(--rota-text);
}
.hb-topbar .ds-account-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-topbar .ds-account-panel .ds-nav-link { min-height: 44px; }
.hb-topbar .hb-online { min-height: 44px; }
.hb-bell-count {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 19px;
  padding: 0 4px;
  border-radius: var(--rota-pill);
  background: var(--rota-danger);
  color: var(--rota-black);
  font-size: .71875rem;
  font-weight: 750;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--rota-bg);
}

.hb-inbox { position: relative; }
.hb-preview-inbox > summary { list-style: none; }
.hb-preview-inbox > summary::-webkit-details-marker { display: none; }
.hb-preview-inbox .hb-inbox-panel { overflow: auto; }
.hb-inbox-panel {
  position: absolute;
  z-index: 45;
  inset: calc(100% + 9px) -24px auto auto;
  width: min(390px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 76px);
  margin: 0;
  padding: 0;
  border: 1px solid var(--rota-line);
  border-radius: 18px;
  background: var(--rota-card);
  color: var(--rota-text);
  box-shadow: 0 24px 60px var(--rota-shadow);
}
.hb-inbox-content { display: flex; flex-direction: column; max-height: inherit; }
.hb-inbox-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 15px 6px;
}
body.workspace-hasbahce .hb-inbox-heading h2 { margin: 0; font-size: 1.0625rem; }
.hb-inbox-heading span { font-size: .8125rem; color: var(--rota-secondary); }
.hb-inbox-list { min-height: 0; margin: 0; padding: 0; overflow: auto; list-style: none; }
.hb-inbox-list li { position: relative; }
.hb-inbox-list li + li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 60px;
  border-top: 1px solid var(--rota-line);
}
.hb-inbox-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 15px;
  color: var(--rota-text);
  text-decoration: none;
}
.hb-inbox-list a:hover { background: var(--rota-fill); }
.hb-inbox-list .rota-tile { width: 32px; height: 32px; border-radius: 9px; }
.hb-inbox-copy { flex: 1; min-width: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.hb-inbox-copy strong { font-weight: 650; }
.hb-inbox-copy small { display: block; color: var(--rota-secondary); font-size: .875rem; }
.hb-inbox-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rota-accent); }
.hb-inbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 10px 5px 15px;
  border-top: 1px solid var(--rota-line);
  font-size: .8125rem;
}
.hb-inbox-footer a, .hb-inbox-footer button { display: inline-flex; align-items: center; min-height: 44px; }
.hb-inbox-footer button {
  border: 0;
  border-radius: var(--rota-pill);
  background: var(--rota-fill);
  color: var(--rota-text);
  padding: 0 14px;
}
.hb-inbox-empty { margin: 0; padding: 25px 16px 28px; text-align: center; }
.hb-inbox-error { color: var(--rota-danger); padding: 0 15px 12px; }

.hb-page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  z-index: 100;
  background: var(--rota-bg);
  color: var(--rota-secondary);
  font-size: .84375rem;
  pointer-events: none;
}
.hb-page-loader[hidden] { display: none; }
.hb-page-loader img { object-fit: contain; animation: hb-loading-breath 1.4s ease-in-out infinite; }
@keyframes hb-loading-breath {
  0%, 100% { transform: scale(.88); opacity: .55; }
  50% { transform: scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-page-loader img { animation: none; }
}
@media screen and (min-width: 900px) {
  body.workspace-hasbahce .rota-shell { display: grid; }
  body.workspace-hasbahce .rota-shell > .rota-sidebar { display: flex; }
  body.workspace-hasbahce .rota-tabbar { display: none; }
  body.workspace-hasbahce.ds-has-bottom .rota-shell .ds-main { padding-bottom: 0; }
  .hb-topbar .ds-account-name { display: inline; }
  .workspace-hasbahce .hb-menu-collapsed { --rota-sidebar-space: 88px; }
  body.workspace-hasbahce .hb-menu-collapsed > .rota-sidebar { width: 68px; padding-inline: 7px; }
  body.workspace-hasbahce .hb-menu-collapsed > .rota-sidebar .hb-brand {
    padding: 9px 0 12px;
    background: none;
    box-shadow: none;
  }
  .hb-menu-collapsed .hb-brand::after,
  .workspace-hasbahce .hb-menu-collapsed .hb-brand .hb-brand-logo,
  .hb-menu-collapsed .rota-sidebar :is(.hb-sidebar-identity, .rota-workspaces),
  .hb-menu-collapsed .rota-sidebar .ds-nav-link > span:not(.rota-tile, .ds-avatar) { display: none; }
  .workspace-hasbahce .hb-menu-collapsed .hb-brand .hb-brand-monogram {
    display: block;
    width: 34px;
    height: 34px;
    object-position: center;
  }
  body.workspace-hasbahce .hb-menu-collapsed .rota-sidebar .ds-nav-link { justify-content: center; padding-inline: 0; }
  body.workspace-hasbahce .hb-menu-collapsed .rota-sidebar .ds-nav-label {
    overflow: hidden;
    height: 1px;
    margin: 8px 6px;
    padding: 0;
    font-size: 0;
    background: var(--rota-line);
  }
}
@media screen and (width < 900px) {
  body.workspace-hasbahce .hb-topbar { min-height: 60px; padding: 8px 10px 8px 12px; }
  .hb-topbar :is(.hb-menu-toggle, .hb-breadcrumb, .hb-top-icon[hidden]) { display: none; }
  .hb-topbar .hb-back {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    width: auto;
    min-width: 44px;
    max-width: 55%;
    gap: 2px;
    color: var(--rota-accent);
    padding: 0 7px;
  }
  .hb-back::before { display: none; }
  .hb-back span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hb-topbar .ds-account > summary { width: 44px; padding: 0; justify-content: center; background: transparent; }
  .hb-topbar .ds-account > summary > :is(.ds-account-name, svg) { display: none; }
  .hb-topbar .hb-online { font-size: .75rem; padding-inline: 6px; }
  .hb-inbox-panel {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-height: min(75dvh, 600px);
    border-radius: var(--rota-sheet-radius) var(--rota-sheet-radius) 0 0;
    padding: 8px 15px max(20px, env(safe-area-inset-bottom));
    background: var(--rota-bg);
  }
  .hb-inbox-panel::backdrop { background: var(--rota-veil); }
  .hb-inbox-heading { padding: 12px 2px 10px; }
  body.workspace-hasbahce .hb-inbox-heading h2 { font-size: 1.1875rem; }
  .hb-inbox-list { border-radius: var(--rota-card-radius); background: var(--rota-card); }
}
