.se-panel .se-lead { margin: 0 0 12px; }
.se-dns-wait {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: .95rem;
  line-height: 1.45;
}
.se-dns-wait[hidden] { display: none !important; }
.se-dns-wait.is-live {
  background: #ecfdf5;
  border-color: #34d399;
  color: #065f46;
}
.se-app {
  position: relative;
  display: flex;
  min-height: 560px;
  max-height: min(72vh, 820px);
  border: 1px solid #e8eaed;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 8px 28px rgba(11, 87, 208, .06);
  max-width: 100%;
}
.se-monitor-lock {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: rgba(148, 163, 184, .82);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  pointer-events: auto;
}
.se-monitor-lock[hidden],
.se-app:not(.is-monitor-locked) .se-monitor-lock {
  display: none !important;
}
.se-monitor-lock p { max-width: 420px; margin: 8px 0 0; }
.se-app.is-monitor-locked .se-ai,
.se-app.is-monitor-locked .se-toolbar-actions { pointer-events: none; opacity: .35; }
.se-side {
  width: 280px;
  flex: 0 0 280px;
  border-right: 1px solid #e8eaed;
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}
.se-side-head { padding: 12px 12px 8px; border-bottom: 1px solid #e8eaed; }
.se-drive-title { font-weight: 700; color: #0b57d0; margin-bottom: 8px; word-break: break-all; }
.se-chips { display: flex; gap: 6px; margin-bottom: 8px; }
.se-chip {
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 99px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: .82rem;
}
.se-chip.is-on { background: #0b57d0; color: #fff; border-color: #0b57d0; }
.se-filter {
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 8px 10px;
}
.se-filter:focus { outline: 2px solid #c5d8ff; border-color: #0b57d0; }
.se-crumb {
  padding: 8px 12px 0;
  color: #5f6368;
  font-size: .8rem;
  min-height: 22px;
  word-break: break-all;
}
.se-crumb button {
  border: 0;
  background: transparent;
  color: #0b57d0;
  cursor: pointer;
  padding: 0;
}
.se-list { flex: 1; overflow: auto; padding: 8px; }
.se-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #202124;
}
.se-item:hover { background: #eef1f5; }
.se-item.is-on { background: #e8f0fe; color: #0b57d0; font-weight: 600; }
.se-item.is-dir { color: #3c4043; }
.se-ico {
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  background: #fbbc04;
  border-radius: 3px 3px 2px 2px;
  position: relative;
}
.se-ico::before {
  content: "";
  position: absolute;
  left: 0; top: -5px;
  width: 10px; height: 6px;
  background: #f4b400;
  border-radius: 2px 2px 0 0;
}
.se-item-name {
  min-width: 0;
  overflow: hidden;
  flex: 1;
}
.se-open {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.se-del {
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #b91c1c;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: .8rem;
  min-height: 36px;
  cursor: pointer;
}
.se-del:hover { background: #fef2f2; }
.se-item-path {
  display: block;
  font-size: .72rem;
  color: #0f766e;
  font-weight: 600;
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
  white-space: normal;
}
.se-item.is-asset { color: #334155; }
.se-item.is-frozen { opacity: 0.7; color: #64748b; }
.se-empty { color: #5f6368; padding: 24px 10px; text-align: center; font-size: .9rem; }
.se-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.se-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 2px solid #0b57d0;
  background: linear-gradient(180deg, #f7f9ff, #fff);
  flex-wrap: wrap;
}
.se-file-meta { min-width: 0; }
.se-file-name { display: block; }
.se-file-path { font-size: .8rem; word-break: break-all; }
.se-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.se-code {
  flex: 1;
  width: 100%;
  border: 0;
  resize: none;
  padding: 14px 16px;
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
  background: #0b1220;
  color: #e2e8f0;
  tab-size: 2;
  min-height: 280px;
}
.se-code:focus { outline: none; }
.se-code:disabled { opacity: .7; }
.se-status {
  border-top: 1px solid #e8eaed;
  padding: 8px 14px;
  font-size: .82rem;
  color: #5f6368;
  background: #fafafa;
  min-height: 34px;
}
.se-status.is-ok { color: #059669; background: #ecfdf5; }
.se-status.is-err { color: #b91c1c; background: #fef2f2; }
.se-status.is-dirty { color: #b45309; background: #fffbeb; }
.se-modal {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, .45);
  display: grid;
  place-items: center;
  z-index: 80;
}
.se-modal[hidden] { display: none; }
.se-modal-card {
  background: #fff;
  border-radius: 12px;
  width: min(440px, 92vw);
  padding: 18px 20px 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
}
.se-modal-card h3 { margin: 0 0 8px; }
.se-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .se-panel { padding: 12px; overflow: visible; }
  .se-app {
    flex-direction: column;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }
  .se-side {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #e8eaed;
  }
  .se-list {
    max-height: 46vh;
    min-height: 160px;
  }
  .se-item {
    min-height: 48px;
    padding: 10px 8px;
  }
  .se-code { min-height: 280px; }
  .se-toolbar-actions { width: 100%; }
  .se-toolbar-actions .btn,
  .se-toolbar-actions .se-upload-btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
}
@media (max-width: 700px) {
  .dashboard { padding-left: 10px; padding-right: 10px; }
  #domain .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  #domain .data-table { min-width: 520px; }
}
.se-ai {
  margin-top: 16px;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px 16px;
  box-shadow: 0 8px 28px rgba(11, 87, 208, .06);
}
.se-ai-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.se-ai-head h3 { margin: 0; font-size: 1.05rem; }
.se-ai-lead { margin: 8px 0 12px; }
.se-ai-log {
  min-height: 72px;
  max-height: 240px;
  overflow: auto;
  background: #f8fafc;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .9rem;
}
.se-ai-msg { margin: 0 0 8px; }
.se-ai-msg strong { color: #0b57d0; }
.se-ai-msg.is-err { color: #b42318; }
.se-ai-msg.is-build { color: #174ea6; }
.se-ai-build-bar {
  height: 7px;
  margin: 6px 0 2px;
  background: #e8eaed;
  border-radius: 99px;
  overflow: hidden;
}
.se-ai-build-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #0b57d0, #4fc3f7);
  transition: width .28s ease;
}
.se-ai-box { margin-top: 10px; }
.se-ai-in {
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  min-height: 72px;
}
.se-ai-in:focus { outline: 2px solid #c5d8ff; border-color: #0b57d0; }
.se-ai-actions { margin-top: 8px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.se-ai-topup {
  border: 1px solid #dadce0;
  background: #fff;
  color: #202124;
}
.se-ai-topup:hover { background: #f1f3f4; }
.se-ai-send.is-exhausted { opacity: .72; }

.se-topup-modal,
.se-exh-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, .55);
  display: grid;
  place-items: center;
  padding: 16px;
}
.se-topup-modal[hidden],
.se-exh-modal[hidden] { display: none !important; }
.se-topup-card {
  position: relative;
  width: min(420px, 94vw);
  background: #2b2b2f;
  color: #f3f4f6;
  border-radius: 28px;
  padding: 28px 24px 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
.se-topup-card h3 {
  margin: 0 36px 8px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}
.se-topup-sub {
  margin: 0 36px 22px 0;
  color: #9ca3af;
  font-size: 1.02rem;
  line-height: 1.35;
}
.se-topup-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 99px;
  background: #3a3a40;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.se-topup-x:hover { background: #4b4b52; }
.se-topup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.se-topup-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  border: 0;
  border-radius: 999px;
  background: #3a3a40;
  color: #fff;
  cursor: pointer;
  padding: 14px 10px;
  font: inherit;
}
.se-topup-pill:hover { background: #4a4a52; }
.se-topup-price { font-weight: 600; font-size: 1.02rem; }
.se-topup-n { font-size: .75rem; color: #c4c4cc; }
.se-topup-cancel {
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: #3a3a40;
  color: #e5e7eb;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
}
.se-topup-cancel:disabled { opacity: .5; cursor: wait; }
.se-topup-wait { text-align: center; padding: 18px 8px 6px; color: #c4c4cc; }
.se-topup-wait p { margin: 12px 0 0; color: #c4c4cc; }
.se-topup-err { margin: 12px 0 0; color: #fca5a5; font-size: .9rem; text-align: center; }
.se-dots { display: inline-flex; gap: 7px; height: 18px; align-items: center; justify-content: center; }
.se-dots i {
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  animation: se-dot 1s infinite ease-in-out both;
}
.se-dots i:nth-child(2) { animation-delay: .15s; }
.se-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes se-dot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0) scale(.85); }
  40% { opacity: 1; transform: translateY(-6px) scale(1); }
}
.se-topup-cancel:hover { background: #4a4a52; }
.se-exh-card {
  width: min(440px, 94vw);
  background: #fff;
  color: #202124;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}
.se-exh-card h3 { margin: 0 0 8px; }
.se-exh-card p { margin: 0 0 16px; color: #4b5563; line-height: 1.45; }
.se-exh-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

html[data-theme="dark"] .se-ai {
  background: var(--panel, #111a2e);
  border-color: var(--border, #1e293b);
  box-shadow: none;
}
html[data-theme="dark"] .se-ai-log {
  background: var(--panel-soft, #0f172a);
  border-color: var(--border, #1e293b);
  color: var(--text, #e2e8f0);
}
html[data-theme="dark"] .se-ai-topup {
  background: var(--input-bg, #0b1220);
  color: var(--text, #e2e8f0);
  border-color: var(--border, #1e293b);
}
html[data-theme="dark"] .se-exh-card {
  background: var(--panel, #111a2e);
  color: var(--text, #e2e8f0);
}

html[data-theme="dark"] .se-app {
  background: var(--panel, #111a2e);
  border-color: var(--border, #1e293b);
  box-shadow: none;
}
html[data-theme="dark"] .se-side {
  background: var(--panel-soft, #0f172a);
  border-right-color: var(--border, #1e293b);
}
html[data-theme="dark"] .se-side-head {
  border-bottom-color: var(--border, #1e293b);
}
html[data-theme="dark"] .se-chip,
html[data-theme="dark"] .se-filter,
html[data-theme="dark"] .se-ai-in {
  background: var(--input-bg, #0b1220);
  color: var(--text, #e2e8f0);
  border-color: var(--border, #1e293b);
}
html[data-theme="dark"] .se-drive-title {
  color: #93c5fd;
}
