/*
 * Vupi UI — sistema visual compartilhado
 *
 * 01. Fontes, tokens e reset
 * 02. Componentes compartilhados
 * 03. Página inicial privada
 * 04. Autenticação e recuperação
 * 05. Workspace, perfil e projetos
 * 06. Conexões e modais
 * 07. Responsividade e acessibilidade
 *
 * Alterações específicas da view PHP da IDE pertencem a
 * vupi-dashboard-integration.css. Não adicione novos overrides legados aqui.
 */
@font-face {
  font-family: 'Vupi Sans';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #eeeff3;
  --paper: #f9f9fb;
  --card: #fff;
  --ink: #111115;
  --muted: #71717d;
  --line: #dcdde4;
  --purple: #5b4df1;
  --purple-soft: #e9e7ff;
  --green: #26a66e;
  --green-soft: #ddf7eb;
  --orange: #d87a22;
  --shadow: 0 2vw 6vw rgba(25, 24, 40, .12);
  --side: clamp(260px, 19vw, 360px);
  --space: clamp(18px, 2.2vw, 42px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Vupi Sans', system-ui, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}
.home-page { overflow: hidden; }
.login-page { overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vupi-turnstile { min-height: 66px; margin: 18px 0 8px; overflow: hidden; }
.vupi-turnstile-status { display: block; min-height: 20px; margin-bottom: 15px; color: var(--muted); font-size: 13px; font-weight: 650; }
.vupi-turnstile-status[data-state="success"] { color: var(--green); }
.vupi-turnstile-status[data-state="error"], .form-message.error { color: #c9364c; }
.form-message { display: none; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: rgba(201,54,76,.08); font-size: 14px; font-weight: 700; }
.form-message.visible { display: block; }
.login-step[hidden], .recovery-view[hidden], .login-view[hidden] { display: none !important; }
.login-card.is-busy { pointer-events: none; opacity: .75; }
.button-loader { width: 19px; height: 19px; border: 2px solid rgba(255,255,255,.38); border-top-color: #fff; border-radius: 50%; animation: vupi-button-spin .65s linear infinite; }

.circuit-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.circuit-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(#797b8c16 1px, transparent 1px), linear-gradient(90deg, #797b8c16 1px, transparent 1px);
  background-size: clamp(46px, 4vw, 78px) clamp(46px, 4vw, 78px);
}
.circuit-bg::after {
  content: ''; position: absolute; width: 48vw; height: 48vw; min-width: 500px; min-height: 500px;
  right: -20vw; top: -18vw; border: 1px solid #5b4df12e; border-radius: 50%;
  box-shadow: 0 0 0 7vw #5b4df108, 0 0 0 14vw #5b4df106;
}
.beam { position: absolute; z-index: -1; opacity: .55; }
.beam-x { width: 55vw; height: 2px; top: 28%; left: -55vw; background: linear-gradient(90deg, transparent, var(--purple), transparent); animation: beam-x 12s linear infinite; }
.beam-y { width: 2px; height: 60vh; right: 14%; top: -60vh; background: linear-gradient(transparent, var(--green), transparent); animation: beam-y 15s 2s linear infinite; }

.app-frame {
  width: min(1880px, calc(100% - clamp(16px, 2vw, 38px)));
  min-height: calc(100vh - clamp(16px, 2vw, 38px));
  margin: clamp(8px, 1vw, 19px) auto;
  border: 1px solid rgba(17,17,21,.14);
  border-radius: clamp(22px, 2vw, 38px);
  background: rgba(249,249,251,.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.brand { display: flex; align-items: center; gap: clamp(11px, 1vw, 18px); text-decoration: none; min-width: 0; }
.brand img { width: clamp(48px, 3.7vw, 70px); height: clamp(48px, 3.7vw, 70px); flex: none; }
.brand strong { font: 800 clamp(20px, 1.6vw, 30px) Manrope; letter-spacing: -.05em; white-space: nowrap; }
.brand strong span { color: var(--purple); }
.kicker { margin: 0 0 clamp(10px, 1vw, 18px); color: var(--purple); font-size: clamp(11px, .75vw, 14px); font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }

.button {
  min-height: clamp(54px, 4vw, 72px);
  padding: 0 clamp(18px, 1.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: clamp(14px, 1vw, 19px);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--card); color: var(--ink); text-decoration: none;
  font-size: clamp(14px, .95vw, 18px); font-weight: 800; cursor: pointer; transition: .2s;
}
.button svg { font-size: 1.3em; }
.button:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #19182816; border-color: #b8b7c3; }
.button-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.button-purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.button-icon { width: clamp(54px, 4vw, 72px); padding: 0; }
.theme-switch svg { transition: transform .25s; }
.theme-switch .theme-sun { display:none; }.theme-switch.is-dark .theme-moon { display:none; }.theme-switch.is-dark .theme-sun { display:block; transform:rotate(90deg); }

/* Private home */
.private-home {
  width: calc(100% - 12px);
  height: calc(100dvh - 12px);
  margin: 6px auto;
  min-height: 0;
  padding: clamp(12px, 1.2vw, 23px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1vw, 19px);
}
.private-topbar { min-height: clamp(58px, 4vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.private-actions { display: flex; gap: 10px; }
.home-board { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr); gap: clamp(10px, 1vw, 19px); }
.command-hero {
  position: relative; min-height: 0; padding: clamp(30px, 4vw, 72px);
  border: 1px solid var(--line); border-radius: clamp(24px, 2vw, 36px);
  background: var(--card); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.command-hero::after {
  content: ''; position: absolute; width: 48%; aspect-ratio: 1; right: -13%; bottom: -25%;
  border: 1px solid #5b4df129; border-radius: 50%; box-shadow: 0 0 0 4vw #5b4df108, 0 0 0 8vw #5b4df108;
}
.command-copy { position: relative; z-index: 2; }
.command-copy h1 { max-width:none; margin:0; font:800 clamp(28px,5vw,88px)/.94 Manrope; letter-spacing:-.065em; white-space:nowrap; }
.command-copy h1 span { display:inline; color:var(--purple); }
.command-copy h1 .ink-text { color: var(--ink); }
.command-copy > p:not(.kicker) { max-width: 760px; margin: clamp(22px, 2vw, 36px) 0 0; color: var(--muted); font-size: clamp(17px, 1.2vw, 23px); line-height: 1.65; }
.api-browser {
  position:absolute; z-index:3; right:clamp(28px,4vw,70px); bottom:clamp(178px,12vw,230px);
  width: min(44%, 470px); border: 1px solid #292934; border-radius: clamp(17px, 1.3vw, 23px);
  background: #f7f7fa; color: #23232b; box-shadow: 0 24px 55px #17171f18; overflow: hidden;
}
.browser-bar { min-height: clamp(43px, 3.3vw, 56px); padding: 0 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: #ededf2; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #737380; }
.browser-dots i:first-child { background: #ff716c; }.browser-dots i:nth-child(2) { background: #ffc35a; }.browser-dots i:last-child { background: #65d58a; }
.browser-address { min-width: 0; flex: 1; padding: 7px 11px; border-radius: 8px; background: #fff; color: #676773; font-size: clamp(9px, .66vw, 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-bar svg { color: #777684; font-size: 15px; }
.api-browser pre { margin: 0; padding: clamp(16px, 1.5vw, 25px); font: 600 clamp(11px, .85vw, 15px)/1.55 Consolas, monospace; }
.api-browser pre > span { color: #76dd9c; }.api-browser pre b { color: #9e94ff; }.api-browser pre em { color: #76dd9c; font-style: normal; }
.command-bottom { position:relative; z-index:2; display:flex; align-items:flex-end; justify-content:space-between; gap:22px; transform:translateY(clamp(-62px,-4vh,-30px)); }
.command-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.system-stamp { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: clamp(11px, .75vw, 14px); font-weight: 700; }
.system-stamp i { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px var(--green-soft); }
.home-side { display: grid; grid-template-rows: 1fr auto; gap: var(--space); }
.mascot-panel {
  position: relative; min-height: 450px; border-radius: clamp(24px, 2vw, 36px); overflow: hidden;
  display: grid; place-items: center; color: var(--ink); background: #f7f7fa; border: 1px solid var(--line);
}
.mascot-panel::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#797b8c12 1px,transparent 1px),linear-gradient(90deg,#797b8c12 1px,transparent 1px); background-size: 56px 56px; }
.mascot-panel img { position: relative; z-index: 2; width: min(54%, 330px); filter: drop-shadow(0 30px 30px #0007); animation: hover 4.5s ease-in-out infinite; }
.mascot-panel .panel-label { position: absolute; z-index: 3; left: clamp(22px,2vw,38px); top: clamp(22px,2vw,38px); }
.panel-label small { color: #9493a4; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.panel-label strong { display: block; margin-top: 6px; font: 800 clamp(21px,1.5vw,28px) Manrope; }
.quick-stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
.quick-stat { min-height: clamp(135px, 11vw, 190px); padding: clamp(20px,2vw,34px); border: 1px solid var(--line); border-radius: clamp(20px,1.6vw,28px); background: var(--card); }
.quick-stat span { color: var(--muted); font-size: clamp(11px,.75vw,14px); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quick-stat strong { display: block; margin-top: 12px; font: 800 clamp(36px,3vw,58px) Manrope; }
.quick-stat strong.online { color: var(--green); }
.contact-card { min-height: 0; padding: clamp(17px,1.35vw,25px); }
.contact-card-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.contact-card-heading > div > span { display:block; }
.contact-card-heading strong { margin-top:4px; font-size:clamp(22px,1.65vw,31px); line-height:1; letter-spacing:-.04em; }
.contact-card .contact-status { flex:none; display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; background:var(--green-soft); color:var(--green); font-size:10px; letter-spacing:.06em; white-space:nowrap; }
.contact-status i { width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px rgba(38,166,110,.12); }
.contact-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:15px; }
.contact-links a { min-width:0; min-height:39px; padding:0 11px; border:1px solid var(--line); border-radius:11px; display:flex; align-items:center; gap:9px; background:var(--paper); color:var(--ink); text-decoration:none; font-size:clamp(10px,.68vw,13px); font-weight:750; transition:.2s; }
.contact-links a:hover { border-color:var(--purple); color:var(--purple); transform:translateY(-2px); }
.contact-links svg { width:17px; height:17px; flex:none; }
.contact-links span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Login */
.login-private { width: calc(100% - 12px); height: calc(100dvh - 12px); min-height: 0; margin: 6px auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(500px, .92fr); }
.login-art { position: relative; padding: clamp(30px, 4vw, 72px); color: #fff; background: #15151c; overflow: hidden; display: flex; flex-direction: column; }
.login-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ffffff0c 1px,transparent 1px),linear-gradient(90deg,#ffffff0c 1px,transparent 1px); background-size: clamp(48px,4vw,72px) clamp(48px,4vw,72px); }
.login-art::after { content: ''; position: absolute; width: 50vw; height: 50vw; left: -28vw; bottom: -32vw; border: 1px solid #8d83ff55; border-radius: 50%; box-shadow: 0 0 0 7vw #5b4df10b, 0 0 0 14vw #5b4df108; }
.login-art .brand, .login-message, .security-row { position: relative; z-index: 2; }
.login-art .brand { color: #fff; }
.login-message { margin: auto 0; }
.login-message h1 { max-width: 900px; margin: 0; font: 800 clamp(57px, 7vw, 128px)/.89 Manrope; letter-spacing: -.075em; }
.login-message h1 span { color: #8d83ff; }
.login-message p { max-width: 680px; margin: 28px 0 0; color: #aaa9b7; font-size: clamp(17px,1.15vw,22px); line-height: 1.65; }
.security-row { display: flex; flex-wrap: wrap; gap: 10px; }
.security-row span { min-height: 44px; padding: 0 15px; border: 1px solid #ffffff20; border-radius: 12px; display: inline-flex; align-items: center; gap: 9px; color: #cfced9; font-size: 12px; font-weight: 700; }
.login-area { min-height: 0; padding: clamp(24px, 3.8vw, 70px); display: grid; place-items: center; background: rgba(249,249,251,.94); overflow: hidden; }
.login-theme-switch { position: fixed; top: 22px; right: 22px; z-index: 30; }
.login-card { width: min(610px, 100%); }
.login-card img { width: clamp(72px,5vw,96px); }
.login-card h2 { margin: 18px 0 8px; font: 800 clamp(40px,3.6vw,66px)/1 Manrope; letter-spacing: -.06em; }
.login-card > .login-intro { margin: 0 0 clamp(22px,2vw,34px); color: var(--muted); font-size: clamp(15px,1vw,19px); }
.login-card.password-active > img { width: clamp(58px,4vw,76px); }
.login-card.password-active > .login-intro { display: none; }
.login-card.password-active h2 { margin-bottom: 22px; }
.login-step { opacity: 0; transform: translateX(22px); transition: opacity .25s, transform .25s; }
.login-step.active { opacity: 1; transform: translateX(0); }
.field { display: grid; gap: 10px; margin-bottom: clamp(17px,1.4vw,25px); }
.field label { font-size: clamp(13px,.85vw,16px); font-weight: 800; }
.identity-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.identity-mode { padding: 6px 9px; border-radius: 8px; background: var(--purple-soft); color: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.identity-mode.email { background: var(--green-soft); color: var(--green); }
.field input {
  width: 100%; height: clamp(62px,5vw,82px); padding: 0 clamp(17px,1.4vw,24px);
  border: 1px solid var(--line); border-radius: clamp(15px,1.1vw,19px); outline: none;
  background: var(--card); color: var(--ink); font-size: clamp(15px,1vw,19px); transition: .2s;
}
.field input:focus { border-color: var(--purple); box-shadow: 0 0 0 5px #5b4df112; }
.input-glow { position: relative; padding: 2px; border-radius: clamp(16px,1.2vw,20px); background: linear-gradient(90deg,var(--line),var(--line),var(--purple),#a69eff,var(--line),var(--line)); background-size: 260% 100%; animation: input-beam 3.2s linear infinite; }
.input-glow input { position: relative; z-index: 1; border: 0; background: var(--card); }
.input-glow input:focus { box-shadow: none; }
.password-field { position: relative; }
.password-field input { padding-right: clamp(68px,5vw,86px); }
.password-toggle {
  position: absolute; z-index: 2; top: 50%; right: 9px; width: clamp(47px,3.6vw,59px); height: clamp(47px,3.6vw,59px);
  transform: translateY(-50%); border: 0; border-radius: 13px; display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple); font-size: clamp(18px,1.3vw,23px); cursor: pointer;
}
.password-toggle .eye-slash { transition: opacity .18s, transform .18s; transform-origin: center; }
.password-toggle.password-visible .eye-slash { opacity: 0; transform: scale(.6); }
.chosen-identity { min-height: 74px; margin-bottom: 20px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 17px; display: flex; align-items: center; gap: 13px; background: var(--card); }
.identity-icon { width: 47px; height: 47px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--purple-soft); color: var(--purple); font-size: 22px; }
.chosen-identity div { min-width: 0; flex: 1; display: grid; gap: 3px; }
.chosen-identity small { color: var(--muted); font-size: clamp(12px,.85vw,16px); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.chosen-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(18px,1.25vw,24px); font-family: Manrope, sans-serif; }
.change-identity { border: 0; background: transparent; color: var(--purple); font-weight: 800; cursor: pointer; }
.return-login { min-height: 54px; margin-top: 13px; padding:0; border:0; border-radius:0; display:flex; align-items:center; justify-content:center; gap:10px; background:transparent; color:var(--purple); text-decoration:none; font-size:clamp(17px,1.15vw,22px); font-weight:800; cursor:pointer; box-shadow:none; appearance:none; }
.return-login svg { font-size: 1.25em; }
.recovery-success { text-align: left; opacity: 0; transform: translateY(18px); }
.recovery-success.active { opacity: 1; transform: translateY(0); transition: opacity .3s, transform .3s; }
.recovery-success .success-icon { width: clamp(68px,5vw,88px); height: clamp(68px,5vw,88px); margin-bottom: 25px; border-radius: 24px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 38px; }
.recovery-success h2 { margin-top: 12px; }
.recovery-success > p:not(.kicker) { margin: 0 0 28px; color: var(--muted); font-size: clamp(15px,1vw,18px); line-height: 1.65; }
.recovery-success .button { width: 100%; }
.reset-card .button { width: 100%; }
.password-meter { height: 8px; margin: -4px 0 14px; overflow: hidden; border-radius: 999px; background: var(--line); }
.password-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.password-rules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 18px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: clamp(13px,.9vw,16px); }
.password-rules li::before { content: '○'; margin-right: 8px; font-weight: 900; }
.password-rules li.passed { color: var(--green); }
.password-rules li.passed::before { content: '✓'; }
.password-match { display: block; min-height: 20px; margin-top: 8px; color: #dc2626; font-weight: 700; }
.password-match.passed { color: var(--green); }
@media(max-width:600px){.password-rules{grid-template-columns:1fr}.reset-page .login-art{display:none}.reset-page .login-area{min-height:100vh}}
.input-box { position: relative; }
.input-box input {
  width: 100%; height: clamp(62px,4.8vw,82px); padding: 0 66px 0 clamp(17px,1.5vw,25px);
  border: 1px solid var(--line); border-radius: clamp(15px,1.2vw,21px); outline: none;
  color: var(--ink); background: var(--card); font-size: clamp(15px,1vw,19px); transition: .2s;
}
.input-box input:focus { border-color: var(--purple); box-shadow: 0 0 0 5px #5b4df117; }
.input-box button { position: absolute; right: 9px; top: 9px; width: clamp(44px,3.5vw,62px); height: calc(100% - 18px); border: 0; border-radius: 13px; background: #f0f0f4; font-size: 20px; cursor: pointer; }
.login-options { margin: 4px 0 clamp(24px,2vw,34px); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: clamp(15px,.95vw,18px); }
.login-options label { display: flex; align-items: center; gap: 9px; }
.login-options a,.login-options button { padding: 0; border: 0; background: transparent; color: var(--purple); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.login-card .button { width: 100%; min-height: clamp(62px,5vw,82px); }
.restricted-note { margin-top: 24px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; display: flex; gap: 11px; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Workspace */
.workspace { min-height: calc(100vh - clamp(16px,2vw,38px)); display: grid; grid-template-columns: var(--side) minmax(0,1fr); }
.sidebar { padding: clamp(24px,2vw,38px); border-right: 1px solid var(--line); background: #f7f7f9; display: flex; flex-direction: column; }
.sidebar .brand { margin-bottom: clamp(42px,4vw,74px); }
.menu { display: grid; gap: 10px; }
.menu a {
  min-height: clamp(58px,4.4vw,76px); padding: 0 clamp(14px,1.2vw,22px); border-radius: clamp(14px,1vw,19px);
  display: flex; align-items: center; gap: clamp(12px,1vw,17px); color: var(--muted); text-decoration: none;
  font-size: clamp(14px,.9vw,17px); font-weight: 800; transition: .2s;
}
.menu a svg { font-size: 1.45em; }
.menu a:hover, .menu a.active { background: var(--ink); color: #fff; }
.user-box { margin-top: auto; padding: 16px; border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 49px; height: 49px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--purple-soft); color: var(--purple); font-weight: 800; }
.user-box div { min-width: 0; display: grid; }
.user-box strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.user-box small { color: var(--muted); font-size: 10px; }
.workspace-main { min-width: 0; padding: var(--space); }
.workspace-top { min-height: clamp(62px,5vw,86px); display: flex; align-items: center; justify-content: space-between; }
.workspace-top .mobile-brand { display: none; }
.top-title small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.top-title strong { display: block; margin-top: 4px; font: 800 clamp(20px,1.4vw,27px) Manrope; }
.top-actions { display: flex; gap: 9px; }
.mobile-menu-button,.mobile-menu-close,.mobile-menu-overlay { display: none; }
.account-actions { display: flex; align-items: center; gap: 10px; }
.account-button {
  height: clamp(54px,4vw,72px); min-width: clamp(54px,4vw,72px); padding: 0 clamp(18px,1.6vw,30px); border: 1px solid var(--line);
  border-radius: clamp(14px,1vw,19px); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; font: 800 clamp(14px,.95vw,18px) Manrope; cursor: pointer; transition: .2s;
}
.account-button:hover { transform: translateY(-3px); border-color: #b8b7c3; box-shadow: 0 14px 30px #19182816; }
.account-button svg { width: clamp(22px,1.45vw,27px); height: clamp(22px,1.45vw,27px); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-button,.profile-button { width: clamp(54px,4vw,72px); padding: 0; }
.profile-picture { width: clamp(48px,3.35vw,60px); height: clamp(48px,3.35vw,60px); border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#6d5ff7,#342ab7); box-shadow: inset 0 1px 0 #ffffff55; }
.profile-picture img { width: 100%; height: 100%; border-radius: inherit; display: block; object-fit: cover; }
.profile-picture svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.logout-button { color: #d74355; border-color: rgba(215,67,85,.2); }
.logout-button:hover { color: #fff; border-color: #d74355; background: #d74355; }
.theme-sun { display: none; }
.dashboard-dark .theme-moon { display: none; }
.dashboard-dark .theme-sun { display: block; }

.profile-modal { position: fixed; inset: 0; z-index: 120; padding: 24px; display: none; place-items: center; background: rgba(10,9,20,.58); backdrop-filter: blur(10px); }
.profile-modal.open { display: grid; }
.profile-modal-panel { width: min(780px,100%); max-height: calc(100dvh - 48px); overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: 0 35px 100px rgba(9,8,24,.3); animation: modal-rise .25s ease both; display: flex; flex-direction: column; }
.profile-modal-header { padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.profile-modal-header h2 { margin: 0; font: 800 clamp(26px,2.2vw,36px) Manrope; }
.profile-modal-header p { margin: 5px 0 0; color: var(--muted); font-size: clamp(13px,.9vw,16px); }
.profile-modal-close { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.profile-modal-close svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.profile-modal-body { padding: 28px; overflow-y: auto; }
.profile-screen[hidden],.profile-modal-actions[hidden] { display: none; }
.profile-identity { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.profile-picture-large { width: 78px; height: 78px; flex: none; }
.profile-picture-large svg { width: 43px; height: 43px; }
.profile-identity div { display: grid; gap: 3px; }.profile-identity strong { font: 800 23px Manrope; }.profile-identity span:not(.profile-picture) { color: var(--muted); font-size: 15px; }
.profile-identity .profile-role { width: max-content; margin-top: 4px; padding: 5px 10px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-size: 11px; font-weight: 800; }
.profile-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.profile-info-grid article { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--soft); display: grid; gap: 7px; }
.profile-info-grid small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.profile-info-grid strong { overflow-wrap: anywhere; font: 800 16px Manrope; }
.profile-info-grid .profile-empty { color: var(--muted); font-weight: 600; }
.profile-plan { position: relative; margin-top: 18px; padding: 23px; border: 1px solid rgba(91,77,241,.24); border-radius: 20px; display: flex; align-items: center; gap: 17px; overflow: hidden; background: linear-gradient(135deg,rgba(91,77,241,.11),rgba(91,77,241,.025)); }
.profile-plan::after { content: ''; position: absolute; width: 150px; height: 150px; right: -70px; top: -90px; border: 1px solid rgba(91,77,241,.2); border-radius: 50%; }
.profile-plan-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg,#5b4df1,#8177ff); color: #fff; box-shadow: 0 10px 25px rgba(91,77,241,.24); }
.profile-plan-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-plan>div:nth-child(2) { display: grid; gap: 3px; }.profile-plan small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.profile-plan strong { font: 800 21px Manrope; }.profile-plan span { color: var(--muted); font-size: 13px; }
.profile-modal-actions { padding: 20px 28px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 11px; background: var(--soft); }
.profile-modal-actions button { min-height: 52px; padding: 0 20px; border: 1px solid var(--line); border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 800 14px Manrope; cursor: pointer; transition: .2s; }
.profile-modal-actions svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-password-action { background: var(--card); color: var(--ink); }.profile-password-action:hover { border-color: var(--purple); color: var(--purple); }
.profile-edit-action { border-color: var(--purple)!important; background: var(--purple); color: #fff; }.profile-edit-action:hover { filter: brightness(1.08); transform: translateY(-2px); }
.profile-form-heading { margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.profile-form-heading>button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--ink); cursor: pointer; }
.profile-form-heading svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-form-heading h3 { margin: 0; font: 800 clamp(22px,1.7vw,29px) Manrope; }.profile-form-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.profile-form label { min-width: 0; display: grid; gap: 8px; }.profile-form label>span { font-size: 12px; font-weight: 800; }.profile-form label>small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.profile-form input,.profile-form select { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 13px; outline: none; background: var(--soft); color: var(--ink); font: 600 15px 'DM Sans',sans-serif; transition: .2s; }
.profile-form select { cursor: pointer; }.profile-form input:focus,.profile-form select:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(91,77,241,.12); }
.profile-field-wide { grid-column: 1/-1; }
.profile-avatar-preview { min-height: 76px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 13px; background: var(--soft); }.profile-avatar-preview img { width: 56px; height: 56px; border-radius: 15px; display: block; flex: none; object-fit: cover; background: #dedce7; }.profile-avatar-preview>div { min-width: 0; display: grid; gap: 3px; }.profile-avatar-preview strong { font-size: 12px; }.profile-avatar-preview small { overflow-wrap: anywhere; font-size: 10px!important; }.profile-avatar-preview small.loading { color: var(--purple); }.profile-avatar-preview small.success { color: var(--green); }.profile-avatar-preview small.error { color: #d74355; }.profile-avatar-preview small.empty { color: var(--muted); }
.profile-password-fields { width: min(500px,100%); display: grid; gap: 17px; }
.profile-form-error { margin: 17px 0 0; padding: 13px 15px; border: 1px solid rgba(215,67,85,.25); border-radius: 12px; background: rgba(215,67,85,.08); color: #d74355; font-size: 13px; font-weight: 700; }
.profile-form-error[hidden] { display: none; }
.profile-form-actions { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 11px; }
.profile-form-actions button { min-height: 50px; padding: 0 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--ink); font: 800 14px Manrope; cursor: pointer; }
.profile-form-actions .profile-save { border-color: var(--purple); background: var(--purple); color: #fff; }
.profile-address-toggle { width: auto; min-height: 38px; margin-top: 20px; padding: 6px 14px; border: 1.5px dashed rgba(91,77,241,.3); border-radius: 9px; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--purple); font: 700 13px 'DM Sans',sans-serif; cursor: pointer; transition: .15s; }
.profile-address-toggle:hover { border-color: rgba(91,77,241,.55); background: rgba(91,77,241,.06); }.profile-address-toggle i { width: 15px; display: inline-grid; place-items: center; color: currentColor; font: normal 800 17px/1 'DM Sans',sans-serif; }.profile-address-toggle span { white-space: nowrap; }
.profile-address-fields { margin-top: 14px; animation: modal-rise .2s ease both; }.profile-address-fields[hidden] { display: none; }
.profile-address-status { margin: 0 0 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 700; }.profile-address-status[hidden] { display: none; }.profile-address-status.loading { background: rgba(91,77,241,.07); color: var(--purple); }.profile-address-status.success { border-color: rgba(38,166,110,.25); background: rgba(38,166,110,.08); color: var(--green); }.profile-address-status.error { border-color: rgba(215,67,85,.25); background: rgba(215,67,85,.08); color: #d74355; }
.profile-address-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }.profile-address-row:last-child { margin-bottom: 0; }.profile-address-row-wide { grid-template-columns: minmax(0,3fr) minmax(80px,1fr); }

.dashboard-dark { --ink:#f4f3fb; --muted:#a7a4b7; --line:#353242; --card:#211f29; --soft:#292631; --bg:#121116; color-scheme: dark; background: #121116; }
.dashboard-dark .app-frame.workspace { background: #18171d; border-color: #353242; box-shadow: 0 28px 80px rgba(0,0,0,.42); }
.dashboard-dark .sidebar { background: #151419; }
.dashboard-dark .workspace-main { background: radial-gradient(circle at 88% 8%,rgba(91,77,241,.11),transparent 27%),#1a191f; }
.dashboard-dark .project-card,.dashboard-dark .idep-card,.dashboard-dark .db-connection-card { background: linear-gradient(145deg,#24222c,#1d1c23); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.dashboard-dark input,.dashboard-dark select,.dashboard-dark textarea { background: #19181e; color: var(--ink); border-color: var(--line); }
.dashboard-dark .project-modal-panel,.dashboard-dark .db-modal-panel { background: #211f29; color: var(--ink); }
.dashboard-dark .account-button { background: #24222c; }
.dashboard-dark .mobile-menu-button { background: rgba(91,77,241,.72); color: #fff; }
.dashboard-dark .menu a:hover,
.dashboard-dark .menu a.active { background: linear-gradient(135deg,#5b4df1,#766af7); color: #fff; box-shadow: 0 10px 24px rgba(91,77,241,.25); }
.dashboard-dark .status-card,
.dashboard-dark .overview-panel { background: #211f29; border-color: #353242; }
.dashboard-dark .overview-status .status-card.featured { background: linear-gradient(145deg,#302c43,#252231); color: #fff; border-color: #4b4565; }
.dashboard-dark .health-core { background: #2a2735; }
.dashboard-dark .idep-card-name,
.dashboard-dark .idep-new-card h2 { color: #f4f3fb; }
.dashboard-dark .idep-card-desc,
.dashboard-dark .idep-card-stat,
.dashboard-dark .idep-new-card p { color: #aaa7b8; }
.dashboard-dark .idep-card-stats,
.dashboard-dark .idep-card-footer { border-color: #373440; }

/* Tema escuro compartilhado: home e autenticação. */
html.vupi-dark,body.vupi-dark { --bg:#121116;--paper:#1a191f;--card:#211f29;--ink:#f4f3fb;--muted:#aaa7b7;--line:#383542;--soft:#292631; color-scheme:dark; background:#121116; }
.vupi-dark .app-frame { border-color:#383542; background:rgba(24,23,29,.94); box-shadow:0 28px 80px rgba(0,0,0,.42); }
.vupi-dark .command-hero,.vupi-dark .quick-stat { background:#211f29; }
.vupi-dark .mascot-panel { border-color:#383542; background:#211f29; color:#f4f3fb; }
.vupi-dark .mascot-panel::before { background-image:linear-gradient(#ffffff0c 1px,transparent 1px),linear-gradient(90deg,#ffffff0c 1px,transparent 1px); }
.vupi-dark .api-browser { border-color:#36343f; background:#15151c; color:#e8e7f1; box-shadow:0 24px 55px #0006; }
.vupi-dark .browser-bar { border-color:#ffffff12; background:#1d1d25; }
.vupi-dark .browser-address { background:#111117; color:#91909e; }
.vupi-dark .login-area { background:#1a191f; }
.vupi-dark .login-card,.vupi-dark .recovery-view { color:var(--ink); }
.vupi-dark .input-glow input,.vupi-dark .chosen-identity,.vupi-dark .button:not(.button-purple):not(.button-dark) { background:var(--card); color:var(--ink); }
.vupi-dark .restricted-note { background:#211f29; }
.vupi-dark .button-dark { border-color:#3a3745; background:#211f29; color:#f4f3fb; }
.vupi-dark .return-login { background:transparent!important; color:#8d83ff; }
.dashboard-dark .idep-card-footer { background: rgba(255,255,255,.018); }
.dashboard-dark .idep-new-card { background: rgba(99,102,241,.06); border-color: rgba(129,140,248,.34); }
.dashboard-dark .project-limit { background: #292638; color: #ddd9ed; border-color: #484263; }
.dashboard-dark .db-empty-state { background: #292731; border-color: #484451; }
.dashboard-dark .db-status.inactive { background: #302e38; color: #aaa7b4; }
.dashboard-dark .original-module-modal,
.dashboard-dark .modal-dialog { background: #211f29; border-color: #3b3748; color: #f4f3fb; }
.dashboard-dark .original-modal-footer,
.dashboard-dark .modal-actions { background: #1c1a22; border-color: #373440; }
.dashboard-dark .original-form-group label,
.dashboard-dark .original-checkbox { color: #e9e7f1; }
.dashboard-dark .original-form-group input,
.dashboard-dark .original-form-group textarea,
.dashboard-dark .original-form-group select { background: #19181e; color: #f4f3fb; border-color: #403c4b; }
.dashboard-dark .original-form-group input:focus,
.dashboard-dark .original-form-group textarea:focus,
.dashboard-dark .original-form-group select:focus { background: #19181e; }
.dashboard-dark .original-checkbox,
.dashboard-dark .db-choice { background: #292731; color: #f4f3fb; border-color: #45414f; }
.dashboard-dark .db-choice small,
.dashboard-dark .db-screen-intro,
.dashboard-dark .platform-connection small { color: #aaa7b8; }
.dashboard-dark .original-btn-secondary { background: #2c2934; color: #e9e7f1; border-color: #494553; }
.dashboard-dark .original-btn-secondary:hover { background: #35313f; }
.dashboard-dark .modal-close,
.dashboard-dark .profile-modal-close { background: #2b2933; color: #f4f3fb; }
.dashboard-dark .structure-option { background: #292638; border-color: #484263; }
.dashboard-dark .textarea-glow textarea { background: #19181e; }
.dashboard-dark .check-visual { background: #211f29; }
.dashboard-dark .module-preview { color: #d3cfdf; }
.dashboard-dark .db-password-wrap button { background: #302c43; }
.dashboard-dark .profile-plan { background: linear-gradient(135deg,rgba(91,77,241,.18),rgba(91,77,241,.05)); border-color: #494267; }
.dashboard-dark .profile-modal-actions { background: #1c1a22; }
.dashboard-dark .profile-password-action { background: #292731; color: #f4f3fb; }
.dashboard-dark .profile-form-heading>button,
.dashboard-dark .profile-form-actions button { background: #292731; color: #f4f3fb; }
.dashboard-dark .profile-form-actions .profile-save { background: var(--purple); color: #fff; }
.dashboard-dark .profile-address-toggle { border-color: rgba(129,140,248,.32); color: #9da5ff; }

@keyframes modal-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.project-hero { margin: clamp(24px,2.5vw,44px) 0 clamp(27px,3vw,48px); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.project-hero h1 { max-width: 1100px; margin: 0; font: 800 clamp(55px,6.3vw,118px)/.9 Manrope; letter-spacing: -.075em; }
.project-hero h1 span { color: var(--purple); }
.project-hero p:not(.kicker) { margin: 21px 0 0; color: var(--muted); font-size: clamp(15px,1vw,20px); }
.project-hero .button { flex: none; }
.status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(10px,1vw,18px); }
.status-card { min-width: 0; min-height: clamp(135px,10vw,185px); padding: clamp(20px,1.8vw,32px); border: 1px solid var(--line); border-radius: clamp(18px,1.4vw,25px); background: var(--card); overflow: hidden; }
.status-card span { color: var(--muted); font-size: clamp(10px,.7vw,13px); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.status-card strong { display: block; margin-top: 12px; font: 800 clamp(30px,2.7vw,52px) Manrope; overflow-wrap: anywhere; }
.status-card strong.good { color: var(--green); }
.projects-bar { margin: clamp(34px,4vw,68px) 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.projects-bar h2 { margin: 0; font: 800 clamp(25px,1.7vw,34px) Manrope; }
.search { width: min(360px,38vw); height: clamp(54px,4vw,68px); padding: 0 20px; border: 1px solid var(--line); border-radius: 16px; outline: none; background: var(--card); font-size: 15px; }
.search:focus { border-color: var(--purple); box-shadow: 0 0 0 4px #5b4df112; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(320px,1fr)); gap: clamp(22px,2vw,36px); align-items: stretch; }
.project-card {
  --project-accent: 91,77,241;
  position: relative; min-width: 0; min-height: 380px; padding: clamp(25px,2vw,34px); border: 1px solid rgba(var(--project-accent),.22);
  border-radius: clamp(23px,1.8vw,32px);
  background: radial-gradient(circle at 8% 4%,rgba(var(--project-accent),.12),transparent 32%),linear-gradient(145deg,rgba(255,255,255,.99),rgba(247,247,252,.93));
  box-shadow: 0 18px 45px rgba(24,22,49,.09),inset 0 1px 0 #fff,inset 4px 0 0 rgba(var(--project-accent),.72);
  transition: transform .28s,box-shadow .28s,border-color .28s; overflow: hidden; display: flex; flex-direction: column;
}
.project-card:nth-child(2) { --project-accent: 25,139,117; }
.project-card:nth-child(3) { --project-accent: 214,107,39; }
.project-card::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; right: -42%; top: -47%; border-radius: 50%; background: radial-gradient(circle,rgba(91,77,241,.18),transparent 68%); transition: transform .4s, opacity .4s; }
.project-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg,transparent 25%,rgba(255,255,255,.85) 45%,transparent 62%); transform: translateX(-125%); transition: transform .75s; }
.project-card:hover { transform: translateY(-9px) perspective(900px) rotateX(1.2deg); border-color: rgba(var(--project-accent),.48); box-shadow: 0 32px 75px rgba(var(--project-accent),.18),inset 0 1px 0 #fff,inset 5px 0 0 rgba(var(--project-accent),.9); }
.project-card:hover::before { transform: scale(1.18); }.project-card:hover::after { transform: translateX(125%); }
.project-card > * { position: relative; z-index: 2; }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.project-cube-wrap {
  width: clamp(82px,5.2vw,96px); height: clamp(82px,5.2vw,96px); border: 1px solid rgba(91,77,241,.18);
  border-radius: clamp(18px,1.35vw,24px); display: grid; place-items: center; perspective: 500px;
  background: linear-gradient(145deg,#f0efff,#e5e2ff); box-shadow: inset 0 1px 0 #fff,0 12px 28px rgba(91,77,241,.13);
}
.project-cube { --cube: clamp(43px,2.65vw,50px); position: relative; width: var(--cube); height: var(--cube); transform-style: preserve-3d; animation: cube-turn 12s linear infinite; }
.project-cube i { position: absolute; inset: 0; border: 2px solid rgba(91,77,241,.72); background: rgba(91,77,241,.12); box-shadow: inset 0 0 16px rgba(255,255,255,.5),0 0 12px rgba(91,77,241,.12); backdrop-filter: blur(1px); }
.project-cube .front { transform: translateZ(calc(var(--cube)/2)); }.project-cube .back { transform: rotateY(180deg) translateZ(calc(var(--cube)/2)); }
.project-cube .right { transform: rotateY(90deg) translateZ(calc(var(--cube)/2)); }.project-cube .left { transform: rotateY(-90deg) translateZ(calc(var(--cube)/2)); }
.project-cube .top { transform: rotateX(90deg) translateZ(calc(var(--cube)/2)); background: rgba(91,77,241,.2); }.project-cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube)/2)); }
.project-card:nth-child(2) .project-cube-wrap { border-color: rgba(25,139,117,.16); background: linear-gradient(145deg,#e9fbf6,#d8f6ed); box-shadow: inset 0 1px 0 #fff,0 12px 28px rgba(25,139,117,.12); }
.project-card:nth-child(2) .project-cube i { border-color: rgba(25,139,117,.76); background: rgba(25,139,117,.11); box-shadow: inset 0 0 16px rgba(255,255,255,.5),0 0 12px rgba(25,139,117,.12); }
.project-card:nth-child(3) .project-cube-wrap { border-color: rgba(214,107,39,.16); background: linear-gradient(145deg,#fff3e8,#ffe6d1); box-shadow: inset 0 1px 0 #fff,0 12px 28px rgba(214,107,39,.12); }
.project-card:nth-child(3) .project-cube i { border-color: rgba(214,107,39,.78); background: rgba(214,107,39,.11); box-shadow: inset 0 0 16px rgba(255,255,255,.5),0 0 12px rgba(214,107,39,.12); }
.tag { min-height: 42px; padding: 0 16px; border: 1px solid currentColor; border-radius: 999px; display: inline-flex; align-items: center; background: var(--green-soft); color: var(--green); font-size: clamp(12px,.76vw,14px); font-weight: 800; letter-spacing: .05em; box-shadow: 0 8px 18px rgba(38,166,110,.1); }
.tag.draft { background: #fff0dd; color: var(--orange); }
.project-card h3 { margin: clamp(22px,1.5vw,28px) 0 10px; font: 800 clamp(28px,1.85vw,35px) Manrope; letter-spacing: -.045em; }
.project-card p { margin: 0; color: #656571; font-size: clamp(16px,1vw,18px); line-height: 1.58; }
.module-line { margin: 0 0 17px; display: flex; align-items: center; gap: 11px; color: rgb(var(--project-accent)); font-size: clamp(16px,1vw,19px); font-weight: 800; }
.module-line svg { font-size: 1.35em; }
.project-footer { width: 100%; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(var(--project-accent),.16); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.project-details { min-width: 0; display: grid; gap: 9px; color: #686873; font-size: clamp(13px,.84vw,15px); }
.project-details span { display: flex; align-items: center; gap: 7px; font-weight: 800; }
.project-details svg { font-size: 1.25em; }
.project-details time { white-space: nowrap; }
.delete-project { width: clamp(48px,3.45vw,58px); height: clamp(48px,3.45vw,58px); border: 1px solid #efcfd2; border-radius: 15px; display: grid; place-items: center; flex: none; background: #fff4f4; color: #c94750; font-size: clamp(20px,1.4vw,25px); cursor: pointer; transition: .2s; box-shadow: 0 8px 18px rgba(201,71,80,.08); }
.delete-project:hover { background: #c94750; border-color: #c94750; color: #fff; transform: translateY(-2px); }
.project-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.open-ide { min-height: clamp(48px,3.45vw,58px); padding: 0 clamp(14px,1.1vw,19px); border: 1px solid rgb(var(--project-accent)); border-radius: 15px; display: inline-flex; align-items: center; gap: 8px; background: rgb(var(--project-accent)); color: #fff; font-size: clamp(11px,.76vw,14px); font-weight: 800; cursor: pointer; transition: .2s; box-shadow: 0 10px 22px rgba(var(--project-accent),.2); }
.open-ide svg { font-size: 1.25em; }.open-ide:hover { background: var(--purple); border-color: var(--purple); transform: translateY(-2px); }
.project-meta { margin-top: clamp(28px,2.5vw,45px); padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.new-project { border-style: dashed; display: grid; place-items: center; text-align: center; cursor: pointer; }
.new-project .add { width: clamp(62px,5vw,88px); height: clamp(62px,5vw,88px); margin: auto; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 35px; }
.new-project h3 { margin: 20px 0 5px; }
.idep-card { position: relative; min-width: 0; min-height: 285px; border: 1.5px solid rgba(0,0,0,.06); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.03); cursor: pointer; transition: transform .2s cubic-bezier(.22,1,.36,1),box-shadow .2s,border-color .2s; }
.idep-card::before { content: ''; position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,#6366f1,#818cf8,#a5b4fc); opacity: 0; transition: opacity .2s; }
.idep-card:hover { transform: translateY(-6px); border-color: rgba(99,102,241,.3); box-shadow: 0 20px 48px rgba(99,102,241,.12),0 8px 20px rgba(0,0,0,.06); }.idep-card:hover::before { opacity: 1; }.idep-card:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }
.idep-card-body { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }.idep-card-header { display: flex; align-items: flex-start; gap: 16px; }
.idep-card-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg,#6366f1,#818cf8); color: #fff; font-size: 25px; box-shadow: 0 4px 12px rgba(99,102,241,.25); }.idep-card-info { min-width: 0; flex: 1; }.idep-card-name { margin: 0 0 6px; overflow: hidden; color: #1e293b; font: 800 clamp(19px,1.3vw,24px) Manrope; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.idep-card-module { max-width: 100%; padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; overflow: hidden; background: rgba(99,102,241,.08); color: #6366f1; font-size: clamp(12px,.85vw,15px); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.idep-card-module svg { flex: none; font-size: 14px; }
.idep-card-desc { margin: 0; overflow: hidden; color: #64748b; font-size: clamp(13px,.9vw,16px); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.idep-card-stats { padding: 12px 0 0; border-top: 1px solid rgba(0,0,0,.05); display: flex; flex-wrap: wrap; gap: 16px; }.idep-card-stat { display: flex; align-items: center; gap: 6px; color: #64748b; font-size: clamp(12px,.82vw,15px); }.idep-card-stat svg { color: #818cf8; font-size: 15px; }
.idep-card-footer { margin-top: auto; padding: 16px 24px; border-top: 1px solid rgba(0,0,0,.05); display: flex; align-items: center; background: rgba(0,0,0,.015); }.idep-card-actions { width: 100%; display: flex; gap: 8px; }.idep-card-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: clamp(13px,.9vw,16px); font-weight: 700; cursor: pointer; transition: transform .1s,box-shadow .15s,background .15s; }.idep-card-btn:active { transform: scale(.97); }.idep-card-btn-open { flex: 1; background: linear-gradient(135deg,#6366f1,#818cf8); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,.2); }.idep-card-btn-open:hover { box-shadow: 0 4px 16px rgba(99,102,241,.35); }.idep-card-btn-delete { width: 44px; padding: 0; border: 1px solid rgba(239,68,68,.15); background: rgba(239,68,68,.08); color: #ef4444; }.idep-card-btn-delete:hover { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.15); }
.idep-new-card { min-height: 285px; border: 2px dashed rgba(99,102,241,.25); background: rgba(99,102,241,.025); }.idep-new-card-content { min-height: 100%; padding: 30px; display: grid; place-items: center; align-content: center; text-align: center; }.idep-new-card-content>span { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg,#6366f1,#818cf8); color: #fff; font-size: 29px; box-shadow: 0 8px 22px rgba(99,102,241,.22); }.idep-new-card h2 { margin: 18px 0 5px; font: 800 clamp(21px,1.5vw,28px) Manrope; }.idep-new-card p { margin: 0; color: #64748b; font-size: 14px; }
.modal-open { overflow: hidden; }
.project-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(12px,2.5vw,42px); visibility: hidden; opacity: 0; transition: opacity .25s,visibility .25s; }
.project-modal.open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,15,20,.62); backdrop-filter: blur(12px); }
.modal-dialog { position: relative; width: min(820px,100%); max-height: calc(100dvh - clamp(24px,5vw,84px)); border: 1px solid rgba(255,255,255,.8); border-radius: clamp(24px,2vw,34px); background: rgba(251,251,253,.98); box-shadow: 0 40px 110px rgba(10,9,25,.32); overflow: auto; transform: translateY(28px) scale(.97); transition: transform .3s; }
.project-modal.open .modal-dialog { transform: translateY(0) scale(1); }
.modal-head { position: relative; padding: clamp(25px,3vw,45px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px,2vw,26px); background: radial-gradient(circle at 5% 0,#ebe9ff,transparent 45%); }
.modal-symbol { width: clamp(66px,5vw,86px); height: clamp(66px,5vw,86px); border-radius: 22px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: clamp(29px,2.2vw,40px); box-shadow: 0 16px 32px rgba(17,17,21,.18); }
.modal-head .kicker { margin-bottom: 5px; }.modal-head h2 { margin: 0; font: 800 clamp(31px,2.6vw,47px) Manrope; letter-spacing: -.045em; }.modal-head div>p:last-child { margin: 5px 0 0; color: var(--muted); font-size: clamp(13px,.9vw,16px); }
.modal-close { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 21px; cursor: pointer; transition: .2s; }.modal-close:hover { background: var(--ink); color: #fff; }
.modal-fields { padding: clamp(25px,3vw,44px); }.modal-fields .field { margin-bottom: clamp(20px,1.8vw,28px); }.modal-fields .field>small { color: var(--muted); font-size: clamp(10px,.72vw,13px); line-height: 1.45; }
.modal-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.modal-label span { padding: 6px 10px; border-radius: 8px; background: var(--purple-soft); color: var(--purple); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.textarea-glow { padding: 2px; border-radius: 18px; background: linear-gradient(90deg,var(--line),var(--line),var(--purple),#a69eff,var(--line),var(--line)); background-size: 260% 100%; animation: input-beam 3.2s linear infinite; }
.textarea-glow textarea { width: 100%; min-height: 105px; padding: 18px 20px; border: 0; border-radius: 16px; outline: 0; resize: vertical; display: block; background: #fff; color: var(--ink); font: 500 clamp(14px,.95vw,17px) 'DM Sans',sans-serif; }
.structure-option { padding: 18px; border: 1px solid #dcd9ff; border-radius: 18px; display: flex; align-items: center; gap: 14px; background: #f6f5ff; cursor: pointer; }.structure-option>input { position: absolute; opacity: 0; pointer-events: none; }.check-visual { width: 29px; height: 29px; border: 2px solid #bbb5ff; border-radius: 9px; display: grid; place-items: center; flex: none; color: transparent; background: #fff; }.structure-option input:checked+.check-visual { border-color: var(--purple); background: var(--purple); color: #fff; }.structure-option>span:last-child { display: grid; gap: 4px; }.structure-option strong { font-size: clamp(13px,.9vw,16px); }.structure-option small { color: var(--muted); font-size: clamp(10px,.7vw,13px); }
.modal-actions { padding: clamp(20px,2vw,30px) clamp(25px,3vw,44px); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 12px; background: #f5f5f8; }
.original-module-modal { width: min(680px,100%); border-radius: 20px; background: #fff; box-shadow: 0 32px 80px rgba(0,0,0,.22),0 0 0 1px rgba(99,102,241,.08); }
.original-modal-head { position: relative; padding: 28px 28px 20px; border-bottom: 1px solid rgba(0,0,0,.06); display: flex; align-items: flex-start; gap: 16px; }
.original-modal-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg,#6366f1,#818cf8); color: #fff; font-size: 23px; box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.original-modal-title { flex: 1; min-width: 0; padding-right: 42px; }.original-modal-title h2 { margin: 0; color: #1e293b; font: 800 clamp(22px,1.5vw,27px) Manrope; }.original-modal-title p { margin: 4px 0 0; color: #64748b; font-size: clamp(14px,.9vw,16px); }
.original-modal-close { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border: 0; border-radius: 10px; display: grid; place-items: center; background: transparent; color: #94a3b8; font-size: 20px; cursor: pointer; }.original-modal-close:hover { background: rgba(0,0,0,.06); color: #1e293b; }
.original-modal-body { max-height: 70vh; padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; overflow-x: hidden; }
.original-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.original-form-group { display: flex; flex-direction: column; gap: 7px; }
.original-form-group label { color: #334155; font-size: clamp(15px,1vw,17px); font-weight: 700; display: flex; align-items: center; gap: 8px; }.original-form-group label svg { color: #6366f1; font-size: 17px; flex: none; }.original-form-group label small { color: #94a3b8; font-size: 12px; font-weight: 500; }
.original-form-group input,.original-form-group textarea,.original-form-group select { width: 100%; padding: 14px 16px; border: 2px solid rgba(0,0,0,.1); border-radius: 12px; outline: 0; background: #f8fafc; color: #1e293b; font: 500 clamp(15px,1vw,17px) 'DM Sans',sans-serif; transition: border-color .15s,box-shadow .15s,background .15s; }.original-form-group textarea { resize: vertical; }.original-form-group select { cursor: pointer; }.original-form-group input:focus,.original-form-group textarea:focus,.original-form-group select:focus { border-color: #6366f1; background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.original-form-hint { color: #94a3b8; font-size: clamp(11px,.78vw,14px); font-weight: 400; line-height: 1.4; }.module-name-check { padding-top: 3px; font-size: 13px; font-weight: 700; }.module-name-check.valid { color: #16a34a; }.module-name-check.invalid { color: #dc2626; }
.module-preview { padding: 14px 18px; border: 1.5px solid rgba(99,102,241,.2); border-radius: 12px; display: flex; align-items: center; gap: 12px; background: rgba(99,102,241,.06); color: #475569; font-size: 15px; }.module-preview svg { color: #6366f1; font-size: 20px; flex: none; }.module-preview code { padding: 3px 8px; border-radius: 6px; background: rgba(99,102,241,.1); color: #6366f1; }
.original-checkbox { padding: 12px 16px; border: 1.5px solid rgba(99,102,241,.1); border-radius: 12px; display: flex; align-items: center; gap: 12px; background: rgba(99,102,241,.04); color: #334155; font-size: clamp(13px,.9vw,16px); cursor: pointer; }.original-checkbox:hover { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.2); }.original-checkbox input { width: 22px; height: 22px; flex: none; accent-color: #6366f1; cursor: pointer; }
.original-modal-error { padding: 14px 18px; border: 1.5px solid rgba(239,68,68,.25); border-radius: 12px; background: rgba(239,68,68,.08); color: #dc2626; font-size: 14px; font-weight: 600; }
.module-preview[hidden],.module-name-check[hidden],.original-modal-error[hidden] { display: none; }
.original-modal-footer { padding: 20px 28px; border-top: 1px solid rgba(0,0,0,.06); display: flex; justify-content: flex-end; gap: 12px; background: rgba(0,0,0,.02); }.original-btn-primary,.original-btn-secondary { min-height: 50px; padding: 0 24px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: clamp(14px,.95vw,17px); font-weight: 700; cursor: pointer; transition: transform .12s,background .12s; }.original-btn-primary { background: #6366f1; color: #fff; }.original-btn-primary:hover { background: #4f46e5; }.original-btn-secondary { border: 1px solid #d9dce5; background: #fff; color: #475569; }.original-btn-secondary:hover { background: #f1f5f9; }.original-btn-primary:active,.original-btn-secondary:active { transform: scale(.97); }
.connection-hero { margin: clamp(32px,3vw,55px) 0 clamp(25px,2.5vw,42px); }.connection-hero h1 { margin: 0; font: 800 clamp(48px,5.5vw,96px)/.92 Manrope; letter-spacing: -.065em; }.connection-hero>p:last-child { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: clamp(15px,1vw,19px); line-height: 1.6; }
.db-connection-card { width: 100%; margin-top: clamp(34px,4vw,72px); border: 1px solid rgba(99,102,241,.17); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgba(25,24,50,.09); }.db-card-header { padding: clamp(24px,2.2vw,38px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }.db-card-icon { width: clamp(62px,4.7vw,82px); height: clamp(62px,4.7vw,82px); border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg,#6366f1,#818cf8); color: #fff; font-size: clamp(27px,2vw,37px); box-shadow: 0 10px 25px rgba(99,102,241,.25); }.db-card-header h2 { margin: 0 0 6px; font: 800 clamp(21px,1.6vw,30px) Manrope; }.db-card-header p { margin: 0; color: var(--muted); font-size: clamp(13px,.9vw,16px); }.db-status { min-height: 38px; padding: 0 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }.db-status.inactive { background: #f1f2f5; color: #777985; }.db-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.project-limit { min-height: 50px; margin: 0; padding: 0 17px; border: 1px solid #dedcf8; border-radius: 14px; display: inline-flex; align-items: center; gap: 8px; background: #f5f4ff; color: #4d4c59; font-size: clamp(14px,1vw,18px); font-weight: 700; }.project-limit svg { color: var(--purple); font-size: 21px; }.project-limit strong { color: var(--purple); font-size: 1.08em; }.project-limit span { color: var(--muted); font-weight: 600; }
.db-empty-state { margin: 0 clamp(24px,2.2vw,38px) clamp(24px,2.2vw,38px); padding: clamp(21px,2vw,32px); border: 1px dashed #d9dae3; border-radius: 18px; display: flex; align-items: center; gap: 17px; background: #fafafd; }.db-empty-state>span { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--purple-soft); color: var(--purple); font-size: 22px; }.db-empty-state div { display: grid; gap: 5px; }.db-empty-state strong { font-size: clamp(15px,1vw,18px); }.db-empty-state p { margin: 0; color: var(--muted); font-size: clamp(12px,.82vw,15px); }
.db-configure-btn { width: 100%; min-height: 68px; border: 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg,#6366f1,#818cf8); color: #fff; font-size: clamp(15px,1vw,18px); font-weight: 800; cursor: pointer; transition: filter .2s; }.db-configure-btn:hover { filter: brightness(1.08); }
.db-connected-info[hidden],.db-card-actions[hidden],.db-configure-btn[hidden],.db-table-list[hidden] { display: none; }
.db-connected-info { padding: 0 clamp(24px,2.2vw,38px) 24px; }.db-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }.db-info-grid article { min-height: 82px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; gap: 13px; background: var(--soft); }.db-info-grid article>span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--purple-soft); color: var(--purple); }.db-info-grid svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.db-info-grid article>div { display: grid; gap: 3px; }.db-info-grid small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.db-info-grid strong { font: 800 22px Manrope; }
.db-toggle-tables { min-height: 40px; margin-top: 12px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; background: var(--card); color: var(--purple); font-weight: 800; cursor: pointer; }.db-toggle-tables svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }.db-toggle-tables[aria-expanded="true"] svg { transform: rotate(180deg); }.db-table-list { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px; background: var(--soft); }.db-table-list span { padding: 7px 10px; border-radius: 8px; background: var(--card); color: var(--muted); font: 700 12px monospace; }
.db-card-actions { padding: 18px clamp(24px,2.2vw,38px); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }.db-action { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); font: 800 14px 'DM Sans',sans-serif; cursor: pointer; transition: .2s; }.db-action svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.db-action.edit { color: var(--purple); }.db-action.backup { color: #3b82f6; border-color: rgba(59,130,246,.25); }.db-action.delete { color: #dc4053; border-color: rgba(220,64,83,.25); }.db-action:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(20,20,35,.09); }.db-action.delete:hover { background: #dc4053; color: #fff; }
.db-status.active { background: rgba(38,166,110,.1); color: var(--green); }.db-status.active i { box-shadow: 0 0 0 5px rgba(38,166,110,.12); }
.db-delete-modal { position: fixed; inset: 0; z-index: 130; padding: 20px; display: none; place-items: center; }.db-delete-modal.open { display: grid; }.db-delete-dialog { position: relative; width: min(620px,100%); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 35px 90px rgba(10,9,20,.32); animation: modal-rise .24s ease both; }.db-delete-dialog header { padding: 23px 25px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }.db-delete-dialog header>span { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg,#ef4444,#f87171); color: #fff; }.db-delete-dialog svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.db-delete-dialog h2 { margin: 0; font: 800 clamp(19px,1.5vw,25px) Manrope; }.db-delete-dialog header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }.db-delete-dialog header>button { width: 42px; height: 42px; border: 0; border-radius: 11px; background: var(--soft); color: var(--muted); font-size: 24px; cursor: pointer; }.db-delete-body { padding: 26px; }.db-delete-body strong { color: #dc4053; font-size: 16px; }.db-delete-body p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }.db-delete-dialog footer { padding: 18px 25px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--soft); }.db-delete-dialog footer button { min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 800; cursor: pointer; }.db-delete-dialog footer .confirm { border-color: #dc4053; background: #dc4053; color: #fff; }
.db-screen[hidden],[data-db-footer][hidden] { display: none; }.db-screen { animation: db-screen-in .25s ease; }.db-screen-intro { margin: 0 0 20px; color: #64748b; font-size: 14px; line-height: 1.55; }.db-choices { display: grid; gap: 14px; }.db-choice { width: 100%; padding: 17px; border: 1.5px solid #e2e4eb; border-radius: 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; text-align: left; background: #fff; color: #1e293b; cursor: pointer; transition: border-color .18s,transform .18s,box-shadow .18s; }.db-choice:hover { transform: translateY(-2px); border-color: #818cf8; box-shadow: 0 10px 25px rgba(99,102,241,.1); }.db-choice>span { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; }.db-choice>span.blue { background: rgba(59,130,246,.12); color: #3b82f6; }.db-choice>span.purple { background: rgba(168,85,247,.12); color: #a855f7; }.db-choice div { display: grid; gap: 5px; }.db-choice strong { font-size: 15px; }.db-choice small { color: #64748b; font-size: 12px; line-height: 1.4; }.db-choice>svg { color: #94a3b8; font-size: 20px; }
.db-modal .original-modal-title h2 { font-size: clamp(27px,2vw,36px); }.db-modal .original-modal-title p { margin-top: 7px; font-size: clamp(16px,1.1vw,20px); }.db-modal .db-screen-intro { margin-bottom: 25px; font-size: clamp(16px,1.08vw,20px); line-height: 1.65; }.db-modal .db-choice { min-height: 108px; padding: clamp(19px,1.6vw,26px); gap: 18px; }.db-modal .db-choice>span { width: clamp(57px,4vw,68px); height: clamp(57px,4vw,68px); font-size: clamp(25px,1.8vw,32px); }.db-modal .db-choice div { gap: 8px; }.db-modal .db-choice strong { font-size: clamp(18px,1.25vw,23px); }.db-modal .db-choice small { font-size: clamp(14px,.95vw,17px); line-height: 1.5; }
.db-back { min-height: 38px; margin-bottom: 8px; border: 0; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: #6366f1; font-weight: 800; cursor: pointer; }.platform-connection { width: 100%; margin-bottom: 20px; padding: 15px; border: 1.5px solid #6366f1; border-radius: 14px; display: flex; align-items: center; gap: 13px; text-align: left; background: rgba(99,102,241,.05); }.platform-connection>span { width: 43px; height: 43px; border-radius: 11px; display: grid; place-items: center; background: #6366f1; color: #fff; font-size: 20px; }.platform-connection div { flex: 1; display: grid; gap: 3px; }.platform-connection small { color: #64748b; }.platform-connection i { color: #16a34a; font-size: 11px; font-style: normal; font-weight: 800; }.db-screen .original-form-row,.db-screen>.original-form-group { margin-top: 17px; }.db-modal-footer>div { display: flex; gap: 10px; }.db-modal-body { max-height: 68vh; }
.db-password-wrap { position: relative; }.db-password-wrap input { padding-right: 52px; }.db-password-wrap button { position: absolute; right: 7px; top: 50%; width: 40px; height: 40px; transform: translateY(-50%); border: 0; border-radius: 9px; display: grid; place-items: center; background: #eef0ff; color: #6366f1; cursor: pointer; }.db-ca-section[hidden],.db-ca-wrapper[hidden] { display: none; }.db-ca-toggle { width: 100%; min-height: 50px; border: 2px dashed rgba(99,102,241,.3); border-radius: 12px; background: rgba(99,102,241,.08); color: #6366f1; font-weight: 700; cursor: pointer; }.db-ca-wrapper { margin-top: 12px; display: grid; gap: 8px; }
@keyframes db-screen-in { from { opacity: 0; transform: translateX(12px); } }
.overview-hero { margin: clamp(32px,3.5vw,62px) 0 clamp(25px,2.5vw,42px); }
.overview-hero h1 { margin: 0; font: 800 clamp(58px,6.5vw,120px)/.88 Manrope; letter-spacing: -.075em; }
.overview-hero h1 span { color: var(--purple); }
.overview-hero > p:not(.kicker) { margin: 21px 0 0; color: var(--muted); font-size: clamp(15px,1vw,20px); }
.overview-status .status-card { position: relative; }
.overview-status .status-card.featured { background: linear-gradient(145deg,#f2efff,#fff); color: var(--ink); border-color: #ded8ff; }
.overview-status .status-card.featured span,.overview-status .status-card.featured small { color: var(--muted); }
.status-card small { display: block; margin-top: 8px; color: var(--muted); font-size: clamp(10px,.68vw,13px); }
.overview-panels { margin-top: clamp(18px,2vw,34px); display: grid; grid-template-columns: minmax(0,1.35fr) minmax(340px,.65fr); gap: clamp(12px,1.3vw,22px); }
.overview-panel { min-height: 330px; padding: clamp(22px,2vw,34px); border: 1px solid var(--line); border-radius: clamp(20px,1.5vw,27px); background: var(--card); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading .kicker { margin-bottom: 5px; }
.panel-heading h2 { margin: 0; font: 800 clamp(22px,1.6vw,31px) Manrope; }
.panel-heading button { border: 0; background: transparent; color: var(--purple); font-weight: 800; cursor: pointer; }
.event-list { margin-top: 20px; display: grid; }
.event { min-height: 75px; padding: 11px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 13px; }
.event-icon { width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--purple-soft); color: var(--purple); font-size: 20px; }
.event-icon.success { background: var(--green-soft); color: var(--green); }
.event div { min-width: 0; flex: 1; display: grid; gap: 4px; }.event strong { font-size: 13px; }.event small,.event time { color: var(--muted); font-size: 10px; }.event time { flex: none; }
.health-core { margin: 24px 0 18px; padding: 17px; border-radius: 18px; display: flex; align-items: center; gap: 15px; background: #f6f5ff; }
.health-core img { width: 58px; height: 58px; }.health-core div { display: grid; gap: 4px; }.health-core strong { font-size: 13px; }.health-core small { color: var(--muted); font-size: 10px; }
.health-row { min-height: 53px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; }
.health-row b { color: var(--green); font-size: 10px; }.health-row b i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); }

@keyframes beam-x { to { transform: translateX(220vw); } }
@keyframes beam-y { to { transform: translateY(220vh); } }
@keyframes hover { 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes input-beam { from { background-position: 100% 0; } to { background-position: -160% 0; } }
@keyframes cube-turn { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }

@media (min-width: 1900px) {
  .project-grid { grid-template-columns: repeat(3,minmax(320px,1fr)); }
  .home-board { grid-template-columns: 1.35fr .65fr; }
}

@media (max-width: 1180px) {
  .home-board { grid-template-columns: 1fr; }
  .home-side { grid-template-columns: 1.15fr .85fr; grid-template-rows: auto; }
  .quick-stats { grid-template-columns: 1fr; }
  .login-private { grid-template-columns: 1fr 1fr; }
  .status-grid { grid-template-columns: repeat(2,1fr); }
  .project-grid { grid-template-columns: repeat(2,minmax(320px,1fr)); }
  .overview-panels { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .home-page { overflow-y: auto; }
  .login-page { overflow-y: auto; }
  .app-frame { width: calc(100% - 12px); min-height: calc(100vh - 12px); margin: 6px auto; border-radius: 23px; }
  .private-home { height: auto; min-height: calc(100dvh - 12px); padding: 12px; gap: 12px; }
  .private-topbar { min-height: 70px; }
  .private-actions .button:not(.button-icon) { display: none; }
  .home-board { gap: 12px; }
  .command-hero { min-height: 620px; padding: 34px 23px; }
  .command-copy h1 { font-size:clamp(27px,9vw,48px); }
  .command-bottom { align-items: stretch; flex-direction: column; }
  .command-buttons { display: grid; }
  .command-buttons .button { width: 100%; }
  .api-browser { position:relative; right:auto; bottom:auto; width:100%; margin:28px 0; }
  .command-bottom { transform:none; }
  .home-side { grid-template-columns: 1fr; gap: 12px; }
  .mascot-panel { min-height: 420px; }

  .login-private { width: calc(100% - 12px); height: auto; min-height: calc(100dvh - 12px); display: block; }
  .login-art { min-height: 510px; padding: 28px 22px; }
  .login-message h1 { font-size: clamp(58px,17vw,82px); }
  .login-message p { font-size: 16px; }
  .security-row span:nth-child(n+3) { display: none; }
  .login-area { padding: 48px 22px; }

  .workspace { display: block; }
  .sidebar { display: none; }
  .sidebar.mobile-open { position: fixed; inset: 0 auto 0 0; z-index: 200; width: min(340px,88vw); padding: 26px 22px; display: flex; border-right: 1px solid var(--line); background: #f7f7f9; box-shadow: 24px 0 70px rgba(10,9,20,.25); backdrop-filter: none; animation: mobile-drawer-in .24s ease both; }
  .sidebar.mobile-open .brand { margin: 72px 0 36px; }
  .mobile-menu-close { position: absolute; top: 17px; right: 17px; width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
  .sidebar.mobile-open .mobile-menu-close { display: flex; }
  .mobile-menu-close svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mobile-menu-button { position: fixed; z-index: 110; left: 14px; top: 14px; bottom: auto; width: 64px; height: 64px; min-height: 0; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 19px; display: inline-flex; align-items: center; justify-content: center; background: rgba(17,17,21,.72); color: #fff; box-shadow: 0 14px 34px rgba(15,14,30,.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; transition: transform .2s,background .2s,box-shadow .2s; }
  .mobile-menu-button:hover { transform: translateY(-2px); background: rgba(17,17,21,.82); box-shadow: 0 18px 40px rgba(15,14,30,.25); }
  body.mobile-menu-open .mobile-menu-button { z-index: 220; background: rgba(91,77,241,.82); box-shadow: 0 14px 34px rgba(35,28,115,.3); }
  .mobile-menu-button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mobile-menu-button span { display: none; }
  .mobile-menu-overlay,.mobile-menu-overlay.open { display: none; }
  .workspace-top .mobile-brand { margin-left: 76px; }
  .workspace-top .mobile-brand strong { display: none; }
  body.mobile-menu-open { overflow: hidden; }
  .workspace-main { padding: 16px; overflow: hidden; }
  .workspace-top .mobile-brand { display: flex; }
  .workspace-top .mobile-brand img { width: 48px; height: 48px; }
  .top-title { display: none; }
  .top-actions > .button { display: none; }
  .account-actions { gap: 7px; }
  .account-button { height: 54px; min-width: 54px; padding: 0 14px; border-radius: 14px; }
  .theme-button,.profile-button { width: 54px; padding: 0; }
  .profile-picture { width: 50px; height: 50px; }
  .project-hero { margin-top: 50px; display: block; }
  .project-hero h1 { font-size: clamp(57px,16vw,82px); overflow-wrap: anywhere; }
  .project-hero .button { width: 100%; margin-top: 28px; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .projects-bar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .project-grid { grid-template-columns: 1fr; }
  .overview-hero { margin-top: 50px; }
  .overview-hero h1 { font-size: clamp(60px,17vw,86px); }
}

@keyframes mobile-drawer-in { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

@media (min-width: 821px) and (max-width: 1020px) {
  .project-grid { grid-template-columns: 1fr; }
}

@media (min-width: 821px) and (max-height: 820px) {
  .command-copy h1 { font-size:clamp(28px,4.8vw,76px); }
  .command-copy > p:not(.kicker) { margin-top: 16px; font-size: clamp(15px, 1vw, 19px); }
  .command-bottom { align-items: center; }
  .mascot-panel img { width: min(43%, 260px); }
  .quick-stat { min-height: 112px; padding: 19px 24px; }
  .quick-stat strong { margin-top: 6px; font-size: clamp(30px, 2.5vw, 45px); }
}

@media (max-width: 430px) {
  .brand strong { font-size: 19px; }
  .brand img { width: 46px; height: 46px; }
  .command-copy h1, .login-message h1, .project-hero h1 { letter-spacing: -.065em; }
  .quick-stats, .status-grid { grid-template-columns: 1fr; }
  .quick-stat, .status-card { min-height: 125px; }
  .contact-card-heading { align-items:flex-start; flex-direction:column; gap:11px; }
  .contact-links { grid-template-columns:1fr; }
  .login-options { align-items: flex-start; flex-direction: column; gap: 14px; }
  .logout-button span { display: none; }
  .profile-info-grid { grid-template-columns: 1fr; }
  .profile-modal { padding: 10px; }
  .profile-modal-header,.profile-modal-body { padding: 21px 18px; }
  .profile-modal-actions { padding: 15px 18px; }
  .profile-modal-actions button { min-width: 0; flex: 1; padding: 0 10px; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-field-wide { grid-column: auto; }
  .profile-address-row,.profile-address-row-wide { grid-template-columns: 1fr; gap: 16px; }
  .profile-form-actions button { min-width: 0; flex: 1; padding: 0 10px; }
}

@media (max-width: 600px) {
  .status-grid { grid-template-columns: 1fr; }
  .status-card { min-height: 125px; }
  .project-modal { padding: 7px; }
  .modal-dialog { max-height: calc(100dvh - 14px); border-radius: 22px; }
  .modal-head { grid-template-columns: auto 1fr; padding: 23px 19px; }
  .modal-symbol { width: 57px; height: 57px; border-radius: 17px; }
  .modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; }
  .modal-head>div:nth-child(2) { padding-right: 31px; }
  .modal-fields { padding: 23px 18px; }
  .structure-option { align-items: flex-start; }
  .modal-actions { padding: 17px 18px; }
  .modal-actions .button { min-width: 0; flex: 1; padding: 0 10px; }
  .original-modal-head { padding: 22px 20px 17px; }
  .original-modal-icon { width: 46px; height: 46px; border-radius: 12px; }
  .original-modal-title { padding-right: 28px; }
  .original-modal-close { top: 13px; right: 12px; }
  .original-modal-body { max-height: calc(100dvh - 235px); padding: 20px; }
  .original-form-row { grid-template-columns: 1fr; }
  .original-modal-footer { padding: 16px 20px; }
  .original-btn-primary,.original-btn-secondary { min-width: 0; padding: 0 14px; flex: 1; justify-content: center; }
  .db-card-header { grid-template-columns: auto 1fr; padding: 21px 18px; }.db-card-header .db-status { grid-column: 1/-1; justify-self: start; }.db-empty-state { margin: 0 18px 18px; align-items: flex-start; }.db-choice { padding: 14px; }.db-choice>span { width: 43px; height: 43px; }.db-choice>svg { display: none; }.db-modal-footer>div { width: 100%; flex-wrap: wrap; }.db-modal-footer .original-btn-primary,.db-modal-footer .original-btn-secondary { flex: 1; }
}

@keyframes vupi-button-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.dashboard-dark .db-info-grid article,.dashboard-dark .db-table-list { background: #292731; }
.dashboard-dark .db-toggle-tables,.dashboard-dark .db-action { background: #292731; }
.dashboard-dark .db-table-list span { background: #211f29; }
.dashboard-dark .sidebar.mobile-open { background: #151419; }

@media (max-width: 600px) {
  .db-connected-info { padding: 0 18px 18px; }
  .db-info-grid { grid-template-columns: 1fr; }
  .db-card-actions { padding: 16px 18px; }
  .db-action { min-width: 0; flex: 1; padding: 0 8px; }
  .db-delete-modal { padding: 8px; }
  .db-delete-dialog header { padding: 19px 17px; }
  .db-delete-dialog header>span { width: 46px; height: 46px; }
  .db-delete-dialog footer { padding: 15px 17px; }
  .db-delete-dialog footer button { min-width: 0; flex: 1; padding: 0 8px; }
}
