/* PANEL-02 · Yüzer kart — şablon CSS'ine dokunmaz */

.winsbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--taskbar-h);
  z-index: 16;
  pointer-events: none;
  overflow: visible;
}

.wb-thumbs {
  position: relative;
  height: 174px;
  overflow: visible;
}

.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::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;
  transition:
    left 0.38s cubic-bezier(.22, .82, .2, 1),
    top 0.2s ease,
    width 0.2s ease,
    height 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.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;
}

.ff.is-drag {
  z-index: 8;
  width: 330px;
  height: 194px;
  top: -16px;
  overflow: visible;
  border: 2px solid var(--tab);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition:
    top 0.2s ease,
    width 0.2s ease,
    height 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.ff.is-drag::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--tab);
  z-index: 3;
}

.ff.is-enter {
  opacity: 0;
  transform: scale(0.84);
}

.ff-shot {
  position: absolute;
  inset: 2px;
  overflow: hidden;
}

.ff-shot .win {
  box-shadow: none;
  pointer-events: none;
  opacity: 1;
}

.layer-windows {
  z-index: 2;
}

.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  color: #1b1b1b;
  font-size: 12px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.14);
  transform-origin: center center;
  transition: box-shadow 0.2s ease, left 0.38s cubic-bezier(.22, .82, .2, 1), top 0.38s cubic-bezier(.22, .82, .2, 1), width 0.38s cubic-bezier(.22, .82, .2, 1), height 0.38s cubic-bezier(.22, .82, .2, 1);
}

.win.is-front {
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 0, 0, 0.18);
  z-index: 8;
}

.win.is-enter {
  opacity: 0;
  transform: scale(0.94) translateY(10px);
}

.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);
  display: grid;
  place-items: center;
  flex: 0 0 16px;
}

.win-titlebar .app-mark svg { width: 11px; height: 11px; display: block; }

.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: 148px;
  flex: 0 0 148px;
  background: #f7f7f8;
  border-right: 1px solid #ececec;
  padding: 10px 8px;
}

.mail-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  margin: 2px 6px 12px;
}

.mail-folder {
  padding: 6px 8px;
  border-radius: 4px;
  color: #444;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.mail-folder.is-on {
  background: #cfe8fc;
  color: #0b5cab;
  font-weight: 650;
}

.mail-folder b {
  font-weight: 650;
  color: inherit;
}

.mail-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mail-toolbar {
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid #ececec;
  color: #555;
}

.mail-toolbar .search {
  margin-left: auto;
  width: 180px;
  height: 22px;
  border-radius: 4px;
  background: #f3f3f3;
  border: 1px solid #e2e2e2;
  color: #8a8a8a;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.mail-list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.mail-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  height: 52px;
  box-sizing: border-box;
}

.mail-row.is-on { background: #cfe8fc; }
.mail-row.is-hit { background: #9fd0f5; }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.mail-row .who { font-weight: 650; font-size: 12px; }
.mail-row .sub { color: #222; font-size: 12px; line-height: 1.2; }
.mail-row .pre { color: #777; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row .when { color: #777; font-size: 11px; align-self: start; padding-top: 2px; }

.msg-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.msg-head {
  padding: 12px 16px 8px;
  border-bottom: 1px solid #ececec;
}

.msg-head h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.msg-meta { color: #666; font-size: 12px; line-height: 1.45; }
.msg-meta strong { color: #222; }

.msg-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 14px 16px 18px;
  color: #333;
  line-height: 1.55;
  font-size: 12.5px;
}

.msg-body p { margin: 0 0 10px; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 4px 0 14px;
}

.kpi {
  background: #f4f7fb;
  border: 1px solid #e3eaf2;
  border-radius: 6px;
  padding: 8px 10px 7px;
}

.kpi em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: #6a7786;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi b {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: #123;
  margin: 2px 0 1px;
}

.kpi span { font-size: 10px; color: #7a8794; }

.fig {
  margin: 4px 0 14px;
  padding: 8px 8px 6px;
  border: 1px solid #e3eaf2;
  border-radius: 6px;
  background: #fff;
}

.fig svg { display: block; }

.fig figcaption {
  margin: 4px 2px 0;
  font-size: 10.5px;
  color: #667486;
}

.live-fig { margin-top: 8px; }

.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #5a6a7a;
  padding: 2px 4px 6px;
}

.live-kpi {
  font-size: 16px;
  color: #0b5cab;
  font-variant-numeric: tabular-nums;
}

.msg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 14px;
  font-size: 11.5px;
}

.msg-table th,
.msg-table td {
  border: 1px solid #e3eaf2;
  padding: 6px 8px;
  text-align: left;
}

.msg-table th {
  background: #eef3f8;
  color: #334;
  font-weight: 650;
}

.msg-table tr:nth-child(even) td { background: #f7f9fc; }

.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,
.cursor.is-hold svg {
  transform: scale(0.86);
  transform-origin: 4px 3px;
}

.win--excel .win-titlebar {
  background: #217346;
  color: #fff;
  border-bottom-color: #1a5c38;
}

.win--excel .win-titlebar .app-mark {
  background: #fff;
  color: #217346;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  border-radius: 3px;
}

.win--excel .win-controls i { color: #e8f6ee; }

.xl-ribbon {
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: #eef6f1;
  border-bottom: 1px solid #d5e4da;
  color: #2d4a38;
  font-size: 11px;
}

.xl-ribbon em {
  font-style: normal;
  font-weight: 700;
  color: #217346;
}

.xl-fx {
  height: 22px;
  flex: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #f7faf7;
  border-bottom: 1px solid #e2ece4;
  font-size: 11px;
  color: #3d5c48;
}

.xl-fx b {
  color: #217346;
  font-size: 10px;
}

.xl-fx__box {
  flex: 1;
  height: 16px;
  border: 1px solid #d9e2d9;
  border-radius: 2px;
  background: #fff;
  padding: 0 6px;
  display: flex;
  align-items: center;
}

.xl {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.xl th,
.xl td {
  border: 1px solid #d9e6dc;
  padding: 5px 7px;
  text-align: left;
}

.xl thead th,
.xl tbody th {
  background: #eef6f1;
  color: #2d4a38;
  font-weight: 650;
  text-align: center;
}

.xl td.on { background: #c6efce; font-weight: 650; }

.mail-toolbar .new-btn {
  padding: 4px 10px;
  border-radius: 4px;
  background: #cfe8fc;
  color: #0b5cab;
  font-weight: 650;
}

.mail-toolbar .new-btn.is-hit { background: #9fd0f5; }

.win.is-max {
  left: 0 !important;
  top: 0 !important;
  width: 1600px !important;
  height: 944px !important;
  border-radius: 0;
  z-index: 10 !important;
  transition: left 0.38s cubic-bezier(.22, .82, .2, 1), top 0.38s cubic-bezier(.22, .82, .2, 1), width 0.38s cubic-bezier(.22, .82, .2, 1), height 0.38s cubic-bezier(.22, .82, .2, 1);
}

.compose-fields {
  padding: 8px 16px 0;
  border-bottom: 1px solid #ececec;
  font-size: 12px;
}

.compose-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}

.compose-row b {
  width: 52px;
  flex: 0 0 52px;
  font-weight: 650;
  color: #666;
}

.compose-row span { color: #1b1b1b; }

.compose-body {
  flex: 1;
  min-height: 0;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #222;
  white-space: pre-wrap;
}

.compose-body .caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  margin-left: 1px;
  background: #222;
  vertical-align: -2px;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.ff.is-away {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  border-width: 0;
  overflow: hidden;
}

.float-win {
  position: absolute;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: #1c1c1c;
  border: 1px solid #5a5a5a;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.float-win.is-off { display: none; }

.float-chrome {
  height: 28px;
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 0 8px;
  background: #2b2b2b;
  color: #f0f0f0;
  font-size: 11.5px;
  font-weight: 600;
}

.float-chrome .app-mark {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #fff;
  color: #217346;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  flex: 0 0 14px;
}

.float-chrome span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.float-close {
  width: 40px;
  height: 28px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 14px;
  color: #eee;
}

.float-close.is-hit { background: #c42b1c; }

.float-body {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.float-body .win {
  box-shadow: none;
  border-radius: 0;
}

.float-grip {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(135deg, transparent 0 55%, #888 55% 62%, transparent 62% 72%, #888 72% 79%, transparent 79%);
  pointer-events: none;
}

.ctx-menu {
  position: absolute;
  z-index: 45;
  width: 228px;
  padding: 6px;
  background: #2b2b2b;
  border: 1px solid #3f3f3f;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: #f0f0f0;
  font-size: 12.5px;
}

.ctx-row {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border-radius: 6px;
}

.ctx-row svg { width: 16px; height: 16px; flex: 0 0 16px; }

.ctx-row span { flex: 1; }

.ctx-row b {
  font-weight: 400;
  color: #aaa;
  font-size: 16px;
}

.ctx-row.is-hot { background: #0078d4; }
