/* PANEL-04 · Üç görünüm modu — ş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 { filter: brightness(1.2); }

.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; }

.win {
  position: absolute;
  left: 360px;
  top: 96px;
  width: 880px;
  height: 520px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  color: #1b1b1b;
  font-size: 12px;
  z-index: 8;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.14);
}

.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-body {
  flex: 1;
  min-height: 0;
  display: flex;
  background: #fff;
}

.mail-nav {
  width: 132px;
  flex: 0 0 132px;
  background: #f7f7f8;
  border-right: 1px solid #ececec;
  padding: 10px 8px;
  font-size: 12px;
  color: #444;
}

.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 { flex: 1; min-width: 0; }

.mail-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.mail-row.is-on { background: #cfe8fc; }

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.mail-row .who { font-weight: 650; font-size: 12px; }
.mail-row .sub { color: #333; font-size: 11px; }
.mail-row .when { color: #777; font-size: 11px; }

.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;
}
