/* ==========================================================================
   Saki Panel Official Website - Authentic & Interactive Workspace Demos
   Liquid Glass & Cupertino Design System from apps/web
   100% SVG Icons · Zero AI Emojis · Fully Interactive
   ========================================================================== */

/* Overall Stage Container */
.saki-real-stage {
  position: relative;
  width: 100%;
  min-height: 600px;
  border-radius: 18px;
  overflow: hidden;
  background: url('./assets/landscape.webp') center 45% / cover no-repeat;
  box-shadow: 0 28px 60px -15px rgba(100, 60, 80, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  display: flex;
  flex-direction: column;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1d1d1f;
}

.saki-real-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 250, 252, 0.42) 0%, rgba(240, 244, 252, 0.32) 100%);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  pointer-events: none;
  z-index: 1;
}

/* Chrome Top Header Bar */
.saki-real-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  gap: 12px;
}

.saki-real-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  font-size: 11.5px;
  color: #554850;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  flex-shrink: 0;
}

.saki-real-breadcrumb strong {
  color: #1d1d1f;
  font-weight: 600;
}

.saki-real-header-center {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  font-size: 11px;
  color: #6a5e65;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.saki-real-header-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.saki-real-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 235, 243, 0.85);
  border: 1px solid rgba(255, 117, 172, 0.35);
  color: #d84581;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}


/* Viewport for switching views */
.saki-real-viewport {
  position: relative;
  z-index: 3;
  flex: 1;
  padding: 0 16px 16px;
  display: flex;
}

.saki-real-pane {
  width: 100%;
  height: 100%;
  display: flex;
}

.saki-real-pane[hidden] {
  display: none !important;
}

/* ==========================================================================
   VIEW 1: Real Dashboard (matches dashboard.png)
   ========================================================================== */
.saki-dash-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 14px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

/* Left: Saki Assistant Glass Sidebar */
.saki-dash-sidebar {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 14px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.saki-dash-sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #1d1d1f;
  font-size: 13px;
  padding: 0 4px;
}

.saki-dash-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
  color: #271f24;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.16s ease;
}

.saki-dash-new-chat:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.saki-dash-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(220, 215, 220, 0.6);
  font-size: 11px;
  color: #8e828a;
}

.saki-dash-search input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 11px;
  color: #1d1d1f;
  outline: none;
}

.saki-dash-group-title {
  font-size: 10.5px;
  font-weight: 600;
  color: #86868b;
  margin: 6px 4px 2px;
}

.saki-dash-tree-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #48484a;
  cursor: pointer;
  transition: all 0.15s;
}

.saki-dash-tree-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.saki-dash-tree-item.active {
  background: rgba(0, 113, 227, 0.12);
  color: #0071e3;
  font-weight: 600;
}

.saki-dash-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.saki-dash-sb-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #86868b;
  padding: 4px;
}

/* Right: Main Workspace Glass Stage */
.saki-dash-main {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 16px 22px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.saki-dash-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.saki-dash-switcher {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 11px;
}

.saki-dash-switcher-btn {
  padding: 4px 14px;
  border-radius: 9999px;
  color: #6a5e65;
  font-size: 11px;
  font-weight: 550;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.saki-dash-switcher-btn:hover {
  color: #1d1d1f;
}

.saki-dash-switcher-btn.active {
  background: #ffffff;
  color: #1d1d1f;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.saki-dash-greeting {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 12px;
}

.saki-dash-context-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 30;
}

.saki-dash-context-row:has(.saki-glass-popover:not([hidden])),
.saki-dash-context-row.is-popover-open {
  z-index: 100 !important;
}

.saki-dash-ctx-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  font-size: 11.5px;
  font-weight: 550;
  color: #3f363b;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
}

.saki-dash-ctx-pill:hover {
  background: #ffffff;
  border-color: rgba(216, 69, 129, 0.45);
  color: #c73774;
  box-shadow: 0 2px 8px rgba(216, 69, 129, 0.12);
  transform: translateY(-1px);
}

.saki-dash-ctx-pill.active,
.saki-dash-ctx-pill[aria-expanded="true"] {
  background: #ffffff;
  border-color: #d84581;
  color: #d84581;
  box-shadow: 0 0 0 2px rgba(216, 69, 129, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Chat stream response box (appears after interaction) */
.saki-interactive-chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  max-height: 180px;
  overflow-y: auto;
  padding: 2px;
}

.saki-chat-bubble-u {
  align-self: flex-end;
  max-width: 85%;
  padding: 8px 14px;
  border-radius: 12px 12px 2px 12px;
  background: #0071e3;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.25);
  animation: saki-bubble-in 0.2s ease-out;
}

.saki-chat-bubble-a {
  align-self: flex-start;
  max-width: 90%;
  padding: 10px 14px;
  border-radius: 12px 12px 12px 2px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.98);
  color: #1d1d1f;
  font-size: 12px;
  line-height: 1.65;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  animation: saki-bubble-in 0.2s ease-out;
}

@keyframes saki-bubble-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The Authentic Liquid Glass Refraction Input Container */
.saki-liquid-input-container {
  position: relative;
  z-index: 25;
  width: 100%;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  border-top-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.03),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 -6px 16px rgba(0, 0, 0, 0.04) !important;
  padding: 10px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.saki-liquid-input-container:has(.saki-glass-popover:not([hidden])),
.saki-liquid-input-container.is-popover-open {
  z-index: 100 !important;
}

.saki-liquid-input-container:focus-within {
  border-color: rgba(0, 113, 227, 0.45) !important;
  box-shadow: 0 18px 48px rgba(0, 113, 227, 0.15), inset 0 1.5px 2px rgba(255, 255, 255, 0.95) !important;
}

.saki-liquid-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
  color: #1d1d1f;
  outline: none;
  resize: none;
  font-family: inherit;
}

.saki-liquid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.saki-liquid-tb-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.saki-liquid-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 11px;
  font-weight: 500;
  color: #3a3a3c;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.saki-liquid-tool-pill:hover {
  background: #ffffff;
  border-color: rgba(216, 69, 129, 0.35);
  color: #c73774;
}

.saki-liquid-tool-pill.active,
.saki-liquid-tool-pill[aria-expanded="true"] {
  background: #ffffff;
  border-color: #d84581;
  color: #d84581;
  box-shadow: 0 0 0 2px rgba(216, 69, 129, 0.15);
}

.saki-liquid-send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0071e3;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 113, 227, 0.35);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.saki-liquid-send-btn:hover {
  transform: scale(1.06);
  background: #005bb5;
}

.saki-dash-input-subtext {
  text-align: center;
  font-size: 10px;
  color: #8e8e93;
  margin-bottom: 10px;
}

/* 4 Bento Telemetry Cards */
.saki-bento-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.saki-bento-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  padding: 9px 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: all 0.18s;
}

.saki-bento-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.saki-bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #1d1d1f;
}

.saki-bento-badge {
  font-size: 9.5px;
  font-weight: normal;
  color: #86868b;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 5px;
  border-radius: 4px;
}

.saki-bento-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.saki-bento-val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.saki-bento-subtext {
  font-size: 9.5px;
  color: #86868b;
}

.saki-sparkline {
  width: 100%;
  height: 22px;
  display: block;
}

.saki-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.saki-progress-fill {
  height: 100%;
  background: #10b981;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Quick Action Chips */
.saki-quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.saki-chip-item {
  padding: 4px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.88);
  font-size: 11px;
  color: #48484a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: all 0.16s ease;
}

.saki-chip-item:hover {
  background: #ffffff;
  color: #0071e3;
  transform: translateY(-1px);
}

.saki-dash-chibi {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 76px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
  z-index: 20;
}

/* ==========================================================================
   VIEW 2: Real Terminal (matches terminal.png)
   ========================================================================== */
.saki-term-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 14px;
  width: 100%;
  height: 100%;
}

.saki-term-main-box {
  background: #0b1320;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.saki-term-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #131d2e;
  border-bottom: 1px solid #1f2d42;
  font-size: 11px;
  color: #94a3b8;
}

.saki-term-toolbar-btn {
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 10.5px;
  cursor: pointer;
  transition: background 0.15s;
}

.saki-term-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.saki-term-toolbar-btn.danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.saki-term-output {
  flex: 1;
  padding: 14px 18px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11.5px;
  line-height: 1.75;
  color: #d1d5db;
  overflow-y: auto;
  max-height: 280px;
}

.saki-cli-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #38bdf8;
}

.saki-cli-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11.5px;
  color: #f8fafc;
  outline: none;
}

.saki-term-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #38bdf8;
  vertical-align: middle;
  animation: term-blink 1s steps(1) infinite;
}

@keyframes term-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.saki-term-prompt-wrap {
  position: relative;
  margin: 0 14px 14px;
}

.saki-term-mascot-sit {
  position: absolute;
  right: 28px;
  top: -38px;
  width: 48px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.saki-term-prompt-capsule {
  background: rgba(30, 41, 59, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #e2e8f0;
}

.saki-term-copilot-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 11.5px;
  outline: none;
  margin-left: 8px;
}

.saki-term-copilot-send {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff75ac;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.saki-term-copilot-send:hover {
  transform: scale(1.08);
}

/* Terminal Right Sidebar: Saki Demo API Info Card */
.saki-term-side-card {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11.5px;
}

.saki-term-side-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
}

.saki-term-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 6px 0;
}

.saki-term-icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-size: 9.5px;
  color: #48484a;
  cursor: pointer;
  transition: all 0.15s;
}

.saki-term-icon-tile:hover {
  background: #ffffff;
  color: #0071e3;
  transform: translateY(-1px);
}

/* ==========================================================================
   VIEW 3: Real Git Diff (matches git.png)
   ========================================================================== */
.saki-git-modal-box {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.saki-git-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f1f4;
  background: #fafafa;
}

.saki-git-modal-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}

.saki-git-modal-head-sub {
  font-size: 11px;
  color: #8e8e93;
  margin-left: 6px;
  font-weight: normal;
}

.saki-git-nav-tabs {
  display: flex;
  gap: 20px;
  padding: 0 16px;
  border-bottom: 1px solid #e5e5ea;
  font-size: 12px;
  color: #86868b;
}

.saki-git-nav-tab {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.saki-git-nav-tab.active {
  color: #1d1d1f;
  font-weight: 600;
  border-bottom-color: #0071e3;
}

.saki-git-split-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  min-height: 0;
}

.saki-git-files-left {
  padding: 10px 14px;
  border-right: 1px solid #f1f1f4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.saki-git-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.15s;
}

.saki-git-file-row:hover {
  background: #f8fafc;
}

.saki-git-file-row.selected {
  background: #f0f6ff;
  color: #0071e3;
  font-weight: 500;
}

.saki-git-tag-mod {
  font-size: 9.5px;
  color: #d97706;
  background: #fef3c7;
  padding: 1px 5px;
  border-radius: 4px;
}

.saki-git-tag-add {
  font-size: 9.5px;
  color: #059669;
  background: #d1fae5;
  padding: 1px 5px;
  border-radius: 4px;
}

.saki-git-commit-box {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e5e5ea;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.saki-git-commit-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  color: #1d1d1f;
  font-family: inherit;
  resize: none;
  outline: none;
}

.saki-git-commit-input:focus {
  border-color: #0071e3;
}

.saki-git-commit-btn {
  padding: 7px;
  border-radius: 6px;
  background: #0f766e;
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.16s, transform 0.12s;
}

.saki-git-commit-btn:hover {
  background: #0d655e;
  transform: translateY(-1px);
}

.saki-git-diff-right {
  padding: 12px 16px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11.5px;
  line-height: 1.7;
  overflow-y: auto;
  background: #fafafc;
}

.saki-git-diff-line-add {
  background: #e6f9f0;
  color: #065f46;
  display: block;
  padding: 0 4px;
}

.saki-git-diff-hunk-line {
  color: #2563eb;
  background: #eff6ff;
  display: block;
  padding: 0 4px;
  margin: 4px 0;
}

/* Mobile Responsiveness */
@media (max-width: 719px) {
  .saki-dash-layout,
  .saki-term-layout,
  .saki-git-split-body {
    grid-template-columns: 1fr;
  }
  .saki-dash-sidebar,
  .saki-term-side-card,
  .saki-git-files-left,
  .saki-real-header-center {
    display: none;
  }
  .saki-cluster-grid {
    grid-template-columns: 1fr;
  }
}

/* Cupertino Glass Popover Dropdowns */
.saki-popover-anchor {
  position: relative;
  display: inline-block;
}

.saki-popover-anchor:has(.saki-glass-popover:not([hidden])),
.saki-popover-anchor.is-popover-open {
  z-index: 120 !important;
}

.saki-glass-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: sakiPopoverIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  color: #1d1d1f;
  text-align: left;
}

.saki-liquid-tb-left .saki-glass-popover {
  left: 0;
  transform: none;
}

#demo-perm-dropdown {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}

@keyframes sakiPopoverIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.saki-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #6a5e65;
}

.saki-popover-text-btn {
  border: none;
  background: transparent;
  color: #d84581;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.saki-popover-text-btn:hover {
  background: rgba(216, 69, 129, 0.08);
}

.saki-popover-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
}

.saki-popover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  color: #332d31;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.14s ease;
}

.saki-popover-item:hover {
  background: rgba(216, 69, 129, 0.08);
  color: #c73774;
}

.saki-popover-item.selected {
  background: rgba(216, 69, 129, 0.1);
  color: #c73774;
  font-weight: 600;
}

.saki-popover-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.saki-popover-checkbox-row:hover {
  background: rgba(216, 69, 129, 0.06);
}

.saki-popover-checkbox-row input[type="checkbox"] {
  accent-color: #d84581;
  margin-top: 2px;
  cursor: pointer;
}

.saki-popover-label-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.saki-popover-title {
  font-size: 11.5px;
  font-weight: 550;
  color: #1d1d1f;
}

.saki-popover-sub {
  font-size: 10px;
  color: #86868b;
  margin-top: 1px;
}

/* Cluster Telemetry Dashboard Subview */
.saki-cluster-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  margin-bottom: 12px;
}

.saki-cluster-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.saki-status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: sakiPulse 2s infinite ease-in-out;
}

@keyframes sakiPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.1); }
}

.saki-cluster-tag {
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 10px;
  color: #6a5e65;
}

.saki-cluster-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 11px;
  color: #332d31;
  cursor: pointer;
  transition: all 0.14s ease;
}

.saki-cluster-act-btn:hover {
  border-color: #d84581;
  color: #d84581;
}

.saki-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}


.saki-cluster-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saki-cluster-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #332d31;
}

.saki-cluster-cores {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
  padding-top: 6px;
}

.saki-core-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.saki-core-col span {
  font-size: 9px;
  color: #86868b;
}

.saki-core-bar {
  width: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease;
  min-height: 4px;
}

.saki-ram-split-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  margin: 10px 0 4px;
}

.saki-ram-seg.seg-active {
  background: #10b981;
}

.saki-ram-seg.seg-cache {
  background: #3b82f6;
}

.saki-ram-seg.seg-free {
  background: #e2e8f0;
}

.saki-cluster-subtext {
  font-size: 10.5px;
  color: #6a5e65;
}

.saki-proc-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.saki-proc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}

.saki-proc-row:last-child {
  border-bottom: none;
}

.saki-cluster-audit-feed {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 11px;
}

.saki-cluster-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #332d31;
  margin-bottom: 6px;
}

.saki-cluster-feed-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.saki-cluster-feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #48484a;
  padding: 2px 0;
}

.saki-cluster-feed-item .feed-time {
  color: #86868b;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

.saki-cluster-feed-item .feed-tag {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 9.5px;
  font-weight: 600;
  color: #332d31;
}


/* --------------------------------------------------------------------------
   Original Saki Dashboard Hero & Liquid Glass Capsule Styles
   -------------------------------------------------------------------------- */
.dashboard-greeting-sentence {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.015em;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 14px;
  user-select: none;
  line-height: 1.4;
}

.dashboard-input-context-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
  padding-left: 2px;
  position: relative;
  z-index: 30;
}

.dashboard-input-context-row:has(.saki-glass-popover:not([hidden])),
.dashboard-input-context-row.is-popover-open {
  z-index: 100 !important;
}

.dashboard-hero-context-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 6px;
  border: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.16s ease;
}

.dashboard-hero-context-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0071e3;
}

.dashboard-hero-context-btn.active,
.dashboard-hero-context-btn[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0071e3;
}

.dashboard-context-slash {
  color: #9c8a93;
  margin: 0 4px;
  font-size: 13px;
}

.dashboard-liquid-input {
  position: relative;
  z-index: 25;
  width: 100%;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-top-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.03),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 -6px 16px rgba(0, 0, 0, 0.04) !important;
  padding: 12px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.dashboard-liquid-input:focus-within {
  border-color: rgba(0, 113, 227, 0.45) !important;
  border-top-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.16),
    0 0 0 2px rgba(0, 113, 227, 0.22),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 -6px 16px rgba(0, 0, 0, 0.05) !important;
}

.dashboard-liquid-input:has(.saki-glass-popover:not([hidden])),
.dashboard-liquid-input.is-popover-open {
  z-index: 100 !important;
}

.dashboard-input-textarea {
  width: 100%;
  min-height: 38px;
  max-height: 80px;
  resize: none;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1d1d1f;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 2px 0;
  font-family: inherit;
}

.dashboard-input-textarea::placeholder {
  color: #86868b;
  opacity: 0.85;
}

.dashboard-input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  padding-bottom: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.dashboard-toolbar-left,
.dashboard-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-glass-action-btn,
.dashboard-model-btn,
.dashboard-mode-btn,
.dashboard-permission-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #4b5563;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.dashboard-glass-action-btn:hover,
.dashboard-model-btn:hover,
.dashboard-mode-btn:hover,
.dashboard-permission-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #111827;
}

.dashboard-send-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.08);
  color: #86868b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard-send-circle-btn.has-input {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.35);
}

.dashboard-send-circle-btn.has-input:hover {
  transform: scale(1.08);
}

.dashboard-project-permission-hint {
  color: #86868b;
  font-size: 11px;
  line-height: 1.5;
  padding: 7px 12px 0;
  text-align: left;
}

/* ==========================================================================
   Hero Actions Liquid Glass Capsule Buttons (Cupertino Fluid Glass Optics)
   ========================================================================== */

.hero-actions {
  display: flex !important;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  position: relative;
  z-index: 10;
}

.hero-actions .button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px !important;
  min-height: 48px !important;
  min-width: 152px !important;
  padding: 0 24px !important;
  border-radius: 9999px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.015em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(4px) saturate(155%) contrast(1.04);
  backdrop-filter: blur(4px) saturate(155%) contrast(1.04);
  transform: translateY(0) scale(1);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-actions .button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.48) 0%, rgba(255,255,255,.08) 12%, transparent 32%, transparent 82%, rgba(255,255,255,.14) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-actions .button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 90%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.14) 50%, transparent 100%);
  transform: skewX(-22deg);
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .hero-actions .button:hover::after {
    left: 170%;
  }
}

.hero-actions .button > span,
.hero-actions .button .icon {
  position: relative;
  z-index: 3;
}

.hero-actions .button .icon {
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .hero-actions .button:hover .icon {
    transform: translateX(4px);
  }
}

/* Primary Button: Translucent Fluid Rose Gem Glass */
.hero-actions .button-primary {
  background: linear-gradient(180deg,rgba(238,125,167,.12),rgba(208,87,137,.035) 50%,rgba(180,62,111,.11)) !important;
  border-color: rgba(193,121,150,.22) !important;
  border-top-color: rgba(255,255,255,.82) !important;
  border-bottom-color: rgba(169,91,124,.26) !important;
  box-shadow:
    0 6px 18px rgba(117,65,94,.09),
    inset 0 1px 1px rgba(255,255,255,.72),
    inset 1px 0 1px rgba(255,255,255,.28),
    inset 0 -1px 1.5px rgba(145,77,107,.12) !important;
  color: #963a60 !important;
  text-shadow: 0 1px 1px rgba(255,255,255,.4);
}

.hero-actions .button-primary::before {
  background: linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.03) 20%,transparent 55%,rgba(255,255,255,.08));
}

@media (hover: hover) and (pointer: fine) {
  .hero-actions .button-primary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    background: linear-gradient(180deg,rgba(238,125,167,.16),rgba(208,87,137,.045) 50%,rgba(180,62,111,.14)) !important;
    box-shadow:
      0 9px 23px rgba(117,65,94,.12),
      inset 0 1px 1px rgba(255,255,255,.85),
      inset 0 -1px 2px rgba(145,77,107,.16) !important;
  }
}

.hero-actions .button-primary:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow:
    0 6px 18px rgba(185, 39, 97, 0.18),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.75),
    inset 0 -3px 8px rgba(90, 10, 45, 0.28) !important;
}

/* Secondary Button: Ultra-Clear Water Frosted Glass */
.hero-actions .button-secondary {
  background: rgba(255,255,255,.025) !important;
  border-top-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow:
    0 6px 18px rgba(58,48,61,.065),
    inset 0 1px 1px rgba(255,255,255,.72),
    inset 1px 0 1px rgba(255,255,255,.25),
    inset 0 -1px 1.5px rgba(75,57,79,.1) !important;
  color: var(--rose, #ad3e65) !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.hero-actions .button-secondary::before {
  background: linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,.025) 20%,transparent 55%,rgba(255,255,255,.09));
}

@media (hover: hover) and (pointer: fine) {
  .hero-actions .button-secondary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    background: rgba(255,255,255,.065) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    border-top-color: #ffffff !important;
    color: #922d52 !important;
    box-shadow:
      0 9px 23px rgba(58,48,61,.1),
      inset 0 1px 1px rgba(255,255,255,.85),
      inset 0 -1px 2px rgba(75,57,79,.12) !important;
  }
}

.hero-actions .button-secondary:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow:
    0 5px 14px rgba(43, 32, 48, 0.07),
    inset 0 1px 1.5px #ffffff,
    inset 0 -2px 6px rgba(43, 32, 48, 0.03) !important;
}

