/* CORI / Panel de instrumentos v2. Canonical visual layer; see docs/DISENO_CORI.md.
   No scripts, remote assets, continuous animations, or changes to media layout. */
:root {
  --bg: #1b1a18;
  --bg-panel: #242220;
  --bg-raised: #2c2925;
  --bg-hover: #332f29;
  --border: #3c3731;
  --text: #ece6d9;
  --text-dim: #a79c8a;
  --text-faint: #aaa08e;
  --accent: #c6973f;
  --action-bg: #c6973f;
  --on-accent: #17130e;
  --border-active: #d4a355;
  --brand: #c6973f;
  --accent-dim: #c6973f1f;
  --brand-line: #c6973f38;
  --brand-wash: #c6973f0a;
  --brand-panel: linear-gradient(155deg, #ffffff03, transparent 65%);
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-panel: 0 3px 10px #00000012, inset 0 1px #ffffff04;
  --glow: 0 3px 12px #00000026;
  --cori-action: linear-gradient(115deg, #cf9f4a, #a87830);
  --cori-surface: linear-gradient(145deg, #ffffff04, transparent 58%);
  --cori-contour: #c6973f30;
  --cori-focus: #e3b968;
  --cori-ease: cubic-bezier(.2,.7,.2,1);
}
[data-theme="light"] {
  --bg: #eee9df;
  --bg-panel: #f8f5ee;
  --bg-raised: #e9e2d0;
  --bg-hover: #e0d7bf;
  --border: #d2c6ac;
  --text: #231f19;
  --text-dim: #55493a;
  --text-faint: #655843;
  --accent: #6e4b1a;
  --action-bg: #8a5f22;
  --on-accent: #fff;
  --border-active: #6e4b1a;
  --brand: #8a5f22;
  --accent-dim: #8a5f220c;
  --brand-line: #8a5f2242;
  --brand-wash: #8a5f2208;
  --brand-panel: linear-gradient(155deg, #ffffffaa, transparent 65%);
  --shadow-panel: 0 3px 12px #231f1908, inset 0 1px #ffffff;
  --cori-action: linear-gradient(115deg, #96691f, #71501a);
  --cori-surface: linear-gradient(145deg, #ffffffbb, transparent 58%);
  --cori-contour: #8a5f2230;
  --cori-focus: #6e4b1a;
}
body { background-image: none; text-rendering: optimizeLegibility; }
h1,h2,h3,.auth-title,.welcome-modal h2,.user-manager-heading h1 {
  font-family: var(--font-ui); letter-spacing: -.025em; font-weight: 600;
}
h1 { line-height: 1.2; }
h2 { letter-spacing: -.01em; }
.value,.balance-value,td { font-variant-numeric: tabular-nums; }
::selection { color: var(--text); background: var(--brand-line); }
/* Controls: a single highlight on interaction, never a permanent neon halo. */
button,.button,.btn-primary {
  background-image: var(--cori-action);
  border-color: transparent;
  box-shadow: inset 0 1px #ffffff18, 0 2px 3px #00000012;
  transition: background-color 160ms, border-color 160ms, box-shadow 160ms, opacity 160ms;
}
button:hover:not(:disabled),.button:hover,.btn-primary:hover {
  opacity: 1; box-shadow: inset 0 1px #ffffff30, 0 3px 10px #00000026;
}
button:active:not(:disabled),.button:active { box-shadow: inset 0 2px 5px #00000024; }
button.secondary,.button.secondary,.btn-ghost,
.dash-nav-logout,#logout,#theme,.channel-tool,.operation-tabs button {
  background-image: none; background-color: var(--bg-raised);
  color: var(--text-dim); border-color: var(--border); box-shadow: none;
}
button.secondary:hover:not(:disabled),.button.secondary:hover,.channel-tool:hover {
  color: var(--text); background-color: var(--bg-hover); border-color: var(--text-faint); box-shadow: none;
}
button:disabled { box-shadow: none; }
input,select,textarea {
  border-color: var(--border); box-shadow: inset 0 1px 2px #0000000c;
  transition: border-color 150ms, box-shadow 150ms;
}
input:hover,select:hover,textarea:hover { border-color: var(--text-faint); }
:is(input,select,textarea,button,a,summary):focus-visible {
  outline: 2px solid var(--cori-focus); outline-offset: 3px;
}
input:focus,select:focus,textarea:focus { border-color: var(--accent); }
input::placeholder,textarea::placeholder { color: var(--text-faint); opacity: 1; }
a { text-underline-offset: 3px; }
/* App surfaces keep their existing compact geometry. */
.card,.panel,.user-manager,.profile-history,.channels-sidebar,.channel-row,.group-panel,
.operations-filters { background-image: var(--cori-surface); box-shadow: var(--shadow-panel); }
.dash-nav-inner { background-image: linear-gradient(90deg, var(--brand-wash), transparent 35%); }
.dash-nav-dot { width: 3px; height: 22px; border-radius: 2px; }
.shell nav { background: var(--bg-panel); gap: 6px; }
.shell nav a { border-radius: 7px; position: relative; transition: color 150ms, background-color 150ms; }
.shell nav a:hover { color: var(--text); background: var(--bg-raised); }
.shell nav a.active { color: var(--text); background: var(--accent-dim); border-color: var(--brand-line); }
.shell nav a.active::after { content: ''; position: absolute; height: 2px; border-radius: 2px; bottom: 0; left: 13px; right: 13px; background: var(--brand); }
.cards .card h2 { color: var(--text-dim); font-size: 12px; font-weight: 500; }
.cards .value { font-family: var(--font-ui); font-weight: 500; letter-spacing: -.04em; }
.stat-card { border-top-color: var(--brand-line); }
.beta-badge { border-color: var(--brand-line); background: var(--brand-wash); color: var(--accent); border-radius: 5px; }
.table-wrap { border-radius: 8px; }
th { font-weight: 500; background: var(--bg-raised); }
tbody tr { transition: background-color 130ms; }
tbody tr:hover { background: var(--accent-dim); }
td { border-bottom-color: var(--border); }
details>summary { transition: color 150ms; }
details>summary:hover { color: var(--accent); }
#notice:empty { display: none; }
#notice:not(:empty) { background: var(--bg-raised); border-bottom-color: var(--brand-line); animation: cori-notice-in 180ms var(--cori-ease) both; }
.channels-selector>button { background-image: none; box-shadow: none; }
.channels-selector>button strong { font-family: var(--font-ui); font-weight: 600; letter-spacing: -.01em; }
.channels-selector>button[aria-pressed="true"] { background: var(--accent-dim); border-color: var(--brand-line); box-shadow: inset 3px 0 var(--brand); }
.channels-configuration .channel-row { border-color: var(--border); border-top-color: var(--brand-line); }
.channels-configuration h2 { color: var(--text); }
.channel-security { border-top-style: solid; }
.channel-footer { border-top-color: var(--border); }
.copy-success { background-image: none; box-shadow: inset 0 0 0 1px var(--green); }
/* Authentication: the CORI crest and an aerial contour, rather than floating UI ornaments. */
.auth-mode .auth-page { isolation: isolate; background: var(--bg); }
.auth-mode .auth-page::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: 0; background: radial-gradient(ellipse at 17% 18%, var(--brand-line), transparent 48%);
  opacity: .42;
}
.auth-mode .auth-page::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: min(72vw,920px); aspect-ratio: 1; left: -32%; top: -10%;
  border: 1px solid var(--cori-contour); border-radius: 50%;
  box-shadow: 0 0 0 70px var(--brand-wash), 0 0 0 140px var(--brand-wash), 0 0 0 210px var(--brand-wash);
}
.auth-mode .auth-intro-logo-full { background: none; border: 0; box-shadow: none; }
.auth-intro-logo-full::before,.auth-intro-logo-full::after { display: none; }
.auth-mode .auth-intro h1 { font-family: var(--font-ui); font-weight: 600; letter-spacing: -.04em; font-size: 36px; }
.auth-mode .auth-intro h1 span { color: var(--text); }
.auth-mode .auth-intro-meaning { color: var(--text-dim); }
.auth-mode .auth-card {
  position: relative; border: 1px solid var(--border); border-top-color: var(--brand);
  background: var(--cori-surface),var(--bg-panel); border-radius: 18px;
  box-shadow: 0 20px 60px #00000016, inset 0 1px #ffffff05;
  animation: cori-notice-in 200ms ease both;
}
.auth-mode .auth-card .auth-title { font-family: var(--font-ui); font-weight: 600; font-size: 28px; letter-spacing: -.04em; }
.auth-mode .auth-card label { text-transform: none; font-size: 12px; letter-spacing: 0; font-weight: 500; color: var(--text-dim); }
.auth-mode .auth-card .btn-primary { font-size: 13px; letter-spacing: .04em; }
.auth-mode .auth-eyebrow { color: var(--accent); letter-spacing: .12em; }
.auth-mode .auth-card input { background-color: var(--bg); border-radius: 8px; }
.auth-mode .auth-forgot { color: var(--text-dim); }
.auth-mode .auth-card .btn-link { color: var(--text-dim); }
.auth-mode .auth-contact { opacity: .95; }
/* Dialogs: clear depth and restrained entry. No transforms on video/fullscreen ancestors. */
dialog.channel-modal {
  border: 1px solid var(--border); border-top-color: var(--brand);
  border-radius: 18px; background: var(--cori-surface),var(--bg-panel);
  box-shadow: 0 24px 90px #00000055; color: var(--text);
}
dialog.channel-modal::backdrop { background: #080b11ba; }
dialog.channel-modal[open] { animation: cori-dialog-in 220ms var(--cori-ease) both; }
dialog.channel-modal[open]::backdrop { animation: cori-backdrop-in 180ms ease both; }
.channel-modal-heading { border-bottom-color: var(--border); }
.channel-modal-heading h2 { font: 600 16px/1.3 var(--font-ui); letter-spacing: -.02em; }
.welcome-modal .welcome-brand span { color: var(--text-dim); letter-spacing: .08em; }
.welcome-modal h2 { font-family: var(--font-ui); font-weight: 600; letter-spacing: -.035em; }
.welcome-balance { background: var(--accent-dim); border-color: var(--brand-line); border-left: 3px solid var(--brand); border-radius: 8px; }
.welcome-close { border-radius: 50%; }
.pilot-survey-card { border-color: var(--brand-line)!important; border-top-color: var(--brand)!important; }
.pilot-survey-card h2 { font-weight: 600; }
.group-option { transition: border-color 150ms, background-color 150ms; }
.group-option:hover { border-color: var(--text-faint); }
.group-option.selected { border-color: var(--brand-line); background: var(--accent-dim); }
.player { border-color: var(--border); box-shadow: 0 4px 16px #00000016; }
.player__bar { background: var(--bg-panel); }
@keyframes cori-dialog-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes cori-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cori-notice-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width:850px) {
  .auth-mode .auth-page::after { width: 600px; left: -430px; top: -180px; }
  .auth-mode .auth-card .auth-title { font-size: 26px; }
  .auth-mode .auth-card { border-radius: 16px; }
}
@media (hover:none) {
  button,.button,.btn-primary { transition-duration: 100ms; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
@media print {
  .auth-mode .auth-page::before,.auth-mode .auth-page::after { display: none; }
  .card,.panel,dialog.channel-modal { box-shadow: none; }
}

/* Public Enterprise trial: three steps, one compact device, no account navigation. */
.trial-mode #header-user,.trial-mode #viewer-title{display:none}.dji-trial{max-width:820px;margin:auto;padding:32px 24px 48px}.trial-heading{margin-bottom:24px}.trial-heading h1{font-size:clamp(28px,5vw,42px);margin:14px 0;letter-spacing:-.045em}.trial-heading p{color:var(--text-dim)}.trial-steps{list-style:none;padding:0;display:grid;gap:12px}.trial-steps>li{display:flex;gap:18px;padding:20px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--cori-surface),var(--bg-panel)}.trial-steps>li[aria-current]{border-color:var(--brand-line);box-shadow:inset 3px 0 var(--brand)}.trial-step-number{font:500 14px var(--font-mono);color:var(--accent);padding-top:1px}.trial-steps section{min-width:0;flex:1}.trial-steps h2{font-size:18px;margin:0 0 8px}.trial-steps p{color:var(--text-dim);margin:0 0 12px;font-size:13px;line-height:1.6}.trial-steps .actions{margin:0;gap:8px}.trial-state [data-state]{font-weight:600}.trial-qr img{display:block;margin-top:14px;max-width:100%;background:white;border-radius:8px}.dji-trial [hidden]{display:none!important}.trial-help{color:var(--text-dim);font-size:13px}.trial-help summary{cursor:pointer;padding:8px 0}.trial-help p{line-height:1.6}.trial-steps form>div{margin-bottom:12px}.trial-steps button{min-height:42px}@media(max-width:600px){.dji-trial{padding:24px 16px}.trial-steps>li{padding:16px;gap:12px}.trial-step-number{font-size:12px}.trial-steps h2{font-size:17px}}

.dji-trial{padding-top:22px}.trial-heading{margin-bottom:18px}.trial-heading h1{font-size:clamp(28px,4vw,34px);margin:10px 0}.trial-heading p{font-size:14px;margin:0}.trial-steps>li{padding:14px 18px;gap:14px}.trial-steps h2{font-size:17px;margin-bottom:6px}.trial-steps p{margin-bottom:9px}.trial-state{padding:14px 18px}.trial-state p{margin:6px 0}.trial-state .value{font-size:26px}.trial-state .small{line-height:1.5}.trial-help{margin-top:12px}
