/* PANEL-02 · Sekmelerle iş alanları — şablon CSS'ine dokunmaz */

.stage {
  position: relative;
}

.scene {
  position: absolute;
  left: 0;
  bottom: 0;
  top: auto;
  transform-origin: 0 100%;
}

.winsbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--taskbar-h);
  z-index: 16;
  pointer-events: none;
}

.wb-thumbs {
  position: relative;
  height: 174px;
}

.wb-strip {
  height: 24px;
  display: flex;
  align-items: stretch;
  background: #202020;
  border-top: 1px solid #3a3a3a;
  color: #f0f0f0;
  font-size: 11px;
  font-weight: 700;
}

.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.is-press {
  filter: brightness(1.18);
}

.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; }

.ff {
  --tab: #0078d4;
  position: absolute;
  top: 0;
  width: 310px;
  height: 174px;
  background: #1c1c1c;
  border: 1px solid #4a4a4a;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) translateY(8px);
  pointer-events: none;
  z-index: 0;
  transition:
    left 0.38s cubic-bezier(.22, .82, .2, 1),
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(.22, .82, .2, 1),
    visibility 0s linear 0.28s;
}

.ff.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    left 0.38s cubic-bezier(.22, .82, .2, 1),
    opacity 0.28s ease,
    transform 0.38s cubic-bezier(.22, .82, .2, 1),
    visibility 0s linear 0s;
}

.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;
}

.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: #f3f3f3;
  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;
}

/* Excel */
.mini--excel .mini-tb { background: #217346; color: #fff; border-bottom-color: #1a5c38; }
.mini--excel .mini-tb i { background: #fff; }
.mini--excel .mini-tb b { color: #e8f6ee; }

.xl-ribbon {
  height: 18px;
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  background: #f3f3f3;
  color: #444;
  font-size: 9.5px;
  border-bottom: 1px solid #e6e6e6;
}

.xl-ribbon em {
  font-style: normal;
  color: #217346;
  font-weight: 700;
}

.xl-fx {
  height: 16px;
  flex: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 9.5px;
  color: #555;
  border-bottom: 1px solid #ececec;
}

.xl-fx b { color: #217346; font-size: 9px; }

.xl {
  flex: 1;
  min-height: 0;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9.5px;
}

.xl th,
.xl td {
  border: 1px solid #d9e2d9;
  padding: 3px 5px;
  overflow: hidden;
  white-space: nowrap;
}

.xl thead th,
.xl tbody th {
  background: #eef6f1;
  color: #3d5c4a;
  font-weight: 650;
  text-align: center;
  width: 28px;
}

.xl td.on { background: #c6efce; outline: 1px solid #217346; }

/* File Explorer */
.mini--fileex .mini-tb { background: #fff8f0; }
.fe-bar {
  height: 18px;
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
  background: #f7f7f8;
  border-bottom: 1px solid #ececec;
  color: #666;
  font-size: 9.5px;
}

.fe-bar .path {
  flex: 1;
  height: 14px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #fff;
  padding: 0 6px;
  display: flex;
  align-items: center;
}

.fe-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.fe-nav {
  width: 78px;
  flex: 0 0 78px;
  background: #f7f7f8;
  border-right: 1px solid #ececec;
  padding: 6px 6px;
  font-size: 9.5px;
  color: #444;
}

.fe-nav div { padding: 3px 5px; border-radius: 3px; }
.fe-nav .on { background: #fde7d2; color: #9a5b1a; font-weight: 650; }

.fe-list { flex: 1; min-width: 0; padding: 4px 0; }

.fe-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 10px;
}

.fe-row i {
  width: 14px;
  height: 11px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(#ffe082, #e6b422);
  flex: 0 0 14px;
}

.fe-row i.file { height: 14px; border-radius: 2px; background: linear-gradient(#dbeafe, #93c5fd); }

/* Mail */
.mini--mail .mini-tb { background: #eaf4fc; }
.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; }

/* Browser */
.mini--web .mini-tb { background: #eef0ff; }
.web-tabs {
  height: 18px;
  flex: 0 0 18px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 2px 6px 0;
  background: #e4e6f5;
}

.web-tabs span {
  height: 16px;
  padding: 0 8px;
  border-radius: 4px 4px 0 0;
  background: #d5d8ee;
  font-size: 9px;
  display: grid;
  place-items: center;
  color: #445;
}

.web-tabs .on { background: #fff; }

.web-url {
  height: 18px;
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-bottom: 1px solid #ececec;
  font-size: 9.5px;
  color: #555;
}

.web-url .box {
  flex: 1;
  height: 14px;
  border-radius: 8px;
  background: #f3f3f3;
  border: 1px solid #e4e4e4;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.web-page {
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  background: #f7f8fc;
}

.web-page .hero {
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4c6ef5, #7c8cff);
  margin-bottom: 8px;
}

.web-page .line {
  height: 6px;
  border-radius: 3px;
  background: #dde1f0;
  margin-bottom: 5px;
}

.web-page .line.w2 { width: 72%; }
.web-page .line.w3 { width: 54%; }

.web-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.web-cards i {
  display: block;
  height: 36px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e4e7f4;
}

/* Work Area */
.mini--work .mini-tb { background: #eef0ff; }

.kanban {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px;
  background: #f4f5fb;
}

.kanban .col {
  background: #eceef8;
  border-radius: 4px;
  padding: 5px;
}

.kanban .col b {
  display: block;
  font-size: 8.5px;
  color: #5b5f80;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kanban .card {
  background: #fff;
  border-radius: 3px;
  height: 22px;
  margin-bottom: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.note {
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  background: #fffbeb;
  font-size: 10.5px;
  line-height: 1.45;
  color: #4a3b12;
}

.note h4 { margin: 0 0 6px; font-size: 12px; }
.note p { margin: 0 0 5px; }

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 40;
  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;
}
