/* PANEL-05 · Görev çubuğu gibi sabitleyin — şablon CSS'ine dokunmaz */

.stage {
  position: relative;
}

.scene {
  position: absolute;
  left: 50%;
  bottom: 0;
  right: auto;
  top: auto;
  margin-left: calc(var(--scene-w) / -2);
  transform-origin: 50% 100%;
}

.winsbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--taskbar-h);
  z-index: 16;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  background: #17181b;
  border-top: 1px solid #3a3a3a;
  transition: background 0.32s cubic-bezier(.22, .82, .2, 1), border-color 0.32s ease;
}

.winsbar.is-float,
.winsbar.is-hide {
  background: transparent;
  border-top-color: transparent;
  flex-direction: column-reverse;
}

.wb-thumbs {
  position: relative;
  height: 174px;
  overflow: visible;
  transition: height 0.32s cubic-bezier(.22, .82, .2, 1);
}

.winsbar.is-float .wb-thumbs {
  height: 112px;
}

.winsbar.is-hide .wb-thumbs {
  height: 0;
  overflow: hidden;
}

.wb-strip {
  height: 24px;
  display: flex;
  align-items: stretch;
  background: #202020;
  border-bottom: 1px solid #3a3a3a;
  color: #f0f0f0;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.winsbar.is-float .wb-strip,
.winsbar.is-hide .wb-strip {
  border-bottom: none;
  border-top: 1px solid #3a3a3a;
}

.wb-target,
.wb-add,
.wb-ico {
  width: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
}

.wb-target svg,
.wb-add svg,
.wb-ico svg { width: 16px; height: 16px; display: block; }

.wb-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 1px 4px 0;
}

.wb-tab {
  --tab: #888;
  min-width: 78px;
  height: 22px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border-radius: 4px 4px 0 0;
  background: #242528;
  color: color-mix(in srgb, var(--tab) 62%, #9a9a9a);
  position: relative;
}

.wb-tab.is-active {
  background: #2d2e32;
  color: var(--tab);
}

.wb-tab::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 1px;
  background: var(--tab);
  opacity: 0.45;
}

.wb-tab.is-active::after {
  left: 6px;
  right: 6px;
  opacity: 1;
}

.wb-spacer { flex: 1; }

.wb-modes {
  display: flex;
  align-items: center;
  margin-right: 2px;
  padding: 2px;
  gap: 1px;
  background: #181818;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  align-self: center;
  height: 20px;
}

.wb-mode {
  width: 22px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 3px;
}

.wb-mode svg { width: 13px; height: 13px; }

.wb-mode.is-on { background: #0078d4; }
.wb-mode.is-on svg * { stroke: #fff; fill: #fff; }
.wb-mode.is-press,
.wb-pin.is-press { filter: brightness(1.2); }

.wb-pin {
  position: relative;
}

.wb-pin .pin-on { display: none; }

.scene.is-pinned .wb-pin {
  background: #0078d4;
}

.scene.is-pinned .wb-pin svg * {
  stroke: #fff;
}

.scene.is-pinned .wb-pin .pin-off { display: none; }
.scene.is-pinned .wb-pin .pin-on { display: block; }

.ff {
  --tab: #0078d4;
  position: absolute;
  top: 0;
  width: 310px;
  height: 174px;
  background: #1c1c1c;
  border: 1px solid #4a4a4a;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 0;
  transform-origin: 50% 100%;
  transition:
    left 0.32s cubic-bezier(.22, .82, .2, 1),
    width 0.32s cubic-bezier(.22, .82, .2, 1),
    height 0.32s cubic-bezier(.22, .82, .2, 1),
    top 0.32s cubic-bezier(.22, .82, .2, 1),
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(.22, .82, .2, 1),
    border-radius 0.32s ease,
    box-shadow 0.32s ease,
    visibility 0s linear 0s;
}

.ff.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ff.is-front {
  border: 2px solid var(--tab);
  z-index: 2;
}

.ff.is-front::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--tab);
  z-index: 3;
}

.winsbar.is-float .ff {
  width: 176px;
  height: 100px;
  top: 8px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
}

.winsbar.is-hide .ff {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.78) translateY(14px);
  transition:
    left 0.32s cubic-bezier(.22, .82, .2, 1),
    width 0.32s cubic-bezier(.22, .82, .2, 1),
    height 0.32s cubic-bezier(.22, .82, .2, 1),
    top 0.32s cubic-bezier(.22, .82, .2, 1),
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(.22, .82, .2, 1),
    visibility 0s linear 0.22s;
}

.mini {
  position: absolute;
  inset: 2px;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1b1b1b;
  font-size: 11px;
  overflow: hidden;
}

.mini-tb {
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 0 7px;
  background: #eaf4fc;
  border-bottom: 1px solid #e4e4e4;
  font-weight: 650;
  font-size: 10.5px;
}

.mini-tb i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 12px;
  background: var(--tab);
}

.mini-tb span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-tb b {
  display: flex;
  font-weight: 400;
  color: #555;
  letter-spacing: 4px;
  padding: 0 8px;
  font-size: 10px;
}

.mail-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.mail-side {
  width: 72px;
  flex: 0 0 72px;
  background: #f7f7f8;
  border-right: 1px solid #ececec;
  padding: 6px;
  font-size: 9.5px;
  color: #555;
}

.mail-side .on { background: #cfe8fc; color: #0b5cab; font-weight: 650; border-radius: 3px; padding: 3px 5px; }
.mail-side div { padding: 3px 5px; }

.mail-rows { flex: 1; min-width: 0; }

.mrow {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.mrow.on { background: #cfe8fc; }

.av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.mrow .who { font-weight: 650; font-size: 10px; }
.mrow .sub { color: #333; font-size: 9.5px; line-height: 1.2; }
.mrow .when { color: #777; font-size: 9px; }

.msg {
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.4;
  color: #333;
}

.msg h4 { margin: 0 0 4px; font-size: 12px; }
.msg .meta { color: #777; font-size: 9px; margin-bottom: 8px; }
.msg p { margin: 0 0 6px; }

.layer-windows { z-index: 2; }

/* Maximize Posta: Windows görev çubuğuna kadar, WinsBar üstüne biner veya pin ile yer açılır */
.win--max {
  position: absolute;
  left: 0;
  top: 0;
  width: 1600px;
  height: 944px;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  color: #1b1b1b;
  font-size: 12px;
  z-index: 8;
  box-shadow: none;
  border-bottom: 1px solid #d8d8d8;
  transition: height 0.42s cubic-bezier(.22, .82, .2, 1);
}

.scene.is-pinned.mode-full .win--max {
  height: 746px;
}

.scene.is-pinned.mode-float .win--max,
.scene.is-pinned.mode-hide .win--max {
  height: 920px;
}

.win-titlebar {
  height: 32px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 0 10px;
  background: #f3f3f3;
  border-bottom: 1px solid #e6e6e6;
}

.win-titlebar .app-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(#fb8a7a, #d94b3c);
  flex: 0 0 16px;
}

.win-titlebar .title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-controls {
  display: flex;
  height: 100%;
}

.win-controls i {
  width: 46px;
  height: 32px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  color: #333;
}

.win-controls i.close { font-size: 14px; }
.win-controls i.max { font-size: 12px; }

.mail-toolbar {
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  background: #fafafa;
  border-bottom: 1px solid #ececec;
  color: #333;
  font-size: 12px;
  font-weight: 600;
}

.mail-toolbar span {
  padding: 4px 10px;
  border-radius: 4px;
}

.mail-toolbar .search {
  margin-left: auto;
  width: 220px;
  height: 24px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  color: #888;
  font-weight: 500;
  font-size: 11.5px;
}

.win-body {
  flex: 1;
  min-height: 0;
  display: flex;
  background: #fff;
}

.mail-nav {
  width: 168px;
  flex: 0 0 168px;
  background: #f7f7f8;
  border-right: 1px solid #ececec;
  padding: 12px 8px;
  font-size: 12px;
  color: #444;
}

.mail-brand {
  font-weight: 700;
  font-size: 13px;
  color: #1b1b1b;
  padding: 4px 8px 12px;
}

.mail-folder { padding: 6px 8px; border-radius: 4px; }
.mail-folder.is-on { background: #cfe8fc; color: #0b5cab; font-weight: 650; }
.mail-folder b { font-weight: 700; margin-left: 4px; }

.mail-list {
  width: 340px;
  flex: 0 0 340px;
  min-width: 0;
  border-right: 1px solid #ececec;
  overflow: hidden;
}

.mail-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.mail-row.is-on { background: #cfe8fc; }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-top: 1px;
}

.mail-row .who { font-weight: 650; font-size: 12.5px; }
.mail-row .sub { color: #222; font-size: 12px; margin-top: 1px; }
.mail-row .pre { color: #777; font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row .when { color: #777; font-size: 11px; padding-top: 2px; }

.mail-read {
  flex: 1;
  min-width: 0;
  padding: 22px 28px;
  overflow: hidden;
}

.mail-read h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
}

.mail-read .meta {
  color: #666;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.mail-read p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #2a2a2a;
  max-width: 52em;
}

.win-footer {
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #f3f3f3;
  border-top: 1px solid #e2e2e2;
  color: #444;
  font-size: 11.5px;
  font-weight: 550;
}

.win-footer .sep {
  width: 1px;
  height: 14px;
  background: #d4d4d4;
}

.win-footer .live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1b7a3a;
  font-weight: 650;
}

.win-footer .live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ea043;
  box-shadow: 0 0 0 3px rgba(46, 160, 67, 0.18);
}

.win-footer .spacer { flex: 1; }

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 50;
  width: 28px;
  height: 28px;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

.cursor.is-click svg {
  transform: scale(0.86);
  transform-origin: 4px 3px;
}
