@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root {
  --primary: #0037b0;
  --primary-container: #1c52d6;
  --background: #f7f9fb;
  --surface: #fff;
  --text: #191c1e;
  --secondary: #5c647a;
  --border: #e0e3e5;
  --selected: #dae2fd;
  --error: #ba1a1a;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--primary-container);
  color: white;
  padding: 11px 16px;
  cursor: pointer;
  font:
    600 13px Inter,
    system-ui;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
button:hover,
.button:hover {
  background: var(--primary);
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}
button.quiet {
  background: transparent;
  color: var(--secondary);
  padding: 6px;
}
.danger {
  background: var(--error);
}
.danger-text {
  color: var(--error) !important;
}
:focus-visible {
  outline: 3px solid #a8baff;
  outline-offset: 2px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 600;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 0 0 14px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  margin: 24px 0 12px;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--secondary);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 256px;
  padding: 24px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  padding: 0 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}
.brand img {
  width: 142px;
  height: 42px;
  object-fit: contain;
  object-position: left;
}
.brand strong {
  font-size: 17px;
}
.brand small {
  font-size: 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  padding: 12px;
  color: var(--secondary);
  font-weight: 500;
}
.sidebar nav a[aria-current],
.sidebar nav a:hover {
  background: var(--selected);
  color: var(--primary);
  text-decoration: none;
}
.sidebar nav a span {
  font-size: 20px;
  width: 22px;
  text-align: center;
}
.download {
  margin-top: auto;
  padding: 16px 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.topbar {
  height: 64px;
  position: fixed;
  left: 256px;
  right: 0;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  z-index: 10;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--selected);
  color: var(--primary);
  font-weight: 700;
}
.workspace {
  margin: 64px 0 0 256px;
  padding: 32px;
  max-width: 1900px;
}
.page-heading {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 28px;
}
.page-heading p {
  color: var(--secondary);
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px #191c1e08;
}
.card p {
  color: var(--secondary);
}
.card-link {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 28px;
  font-weight: 600;
}
.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--selected);
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 20px;
}
.section {
  margin-top: 28px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 24px;
}
.info {
  background: #f0f3fb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
  color: var(--secondary);
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #c4c5d7;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  font:
    400 14px Inter,
    system-ui;
}
textarea {
  resize: vertical;
}
form button {
  min-height: 42px;
}
.form-status {
  white-space: pre-wrap;
  font-size: 13px;
}
.guest-header {
  background: white;
  border-bottom: 1px solid var(--border);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  color: var(--secondary);
}
.guest-header img {
  height: 42px;
  max-width: 180px;
}
.guest {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background-image: radial-gradient(#dce1ff 1px, transparent 1px);
  background-size: 24px 24px;
}
.login-card {
  width: 100%;
  max-width: 460px;
  padding: 40px;
}
.login-card h1 {
  text-align: center;
  font-size: 23px;
}
.login-card > p {
  text-align: center;
}
.login-logo {
  display: block;
  height: 64px;
  max-width: 240px;
  margin: 0 auto 24px;
}
.login-card form {
  margin-top: 24px;
}
.login-card button {
  width: 100%;
}
.mail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.mail-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  min-height: 600px;
}
.mail-list {
  border-right: 1px solid var(--border);
  max-height: calc(100vh - 190px);
  overflow: auto;
}
.mail-list h2 {
  padding: 20px;
  margin: 0;
  font-size: 16px;
}
.mail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mail-item strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.mail-item span {
  font-size: 13px;
}
.mail-item:hover,
.mail-item.selected {
  background: #eef2ff;
  text-decoration: none;
}
.mail-content {
  padding: 32px;
  min-width: 0;
}
.mail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text) !important;
}
.attachment,
.badge {
  display: inline-block;
  background: #f0f2f8;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.badge {
  float: right;
}
.mail-content details {
  margin-top: 24px;
}
.mail-content summary {
  color: var(--primary);
  cursor: pointer;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f5f8;
  border-radius: 6px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
blockquote {
  margin: 18px 0;
  border-left: 3px solid var(--primary);
  padding: 10px 20px;
  line-height: 1.8;
}
.eyebrow {
  color: var(--secondary);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.official {
  font-size: 20px;
  color: var(--primary) !important;
}
.hero {
  padding: 48px;
  border-radius: 12px;
  background: #0037b0;
  color: #fff;
}
.hero span {
  font-size: 11px;
  letter-spacing: 0.16em;
}
.hero h2 {
  font-size: 38px;
  line-height: 1.25;
  margin: 20px 0;
}
.hero p {
  color: #dce1ff;
}
.link-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
.bot-frame,
.panel-frame {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 14px 0;
  background: #fff;
}
.panel-frame {
  height: 400px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-weight: 600;
  color: var(--secondary);
  background: #f7f9fb;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
td code {
  font-size: 11px;
}
.code-editor {
  font-family: ui-monospace, monospace;
  line-height: 1.6;
  tab-size: 2;
}
.notice {
  position: fixed;
  bottom: 20px;
  right: 24px;
  background: #191c1e;
  color: white;
  max-width: 460px;
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 20px #0003;
  z-index: 100;
}
.grabacion {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  min-width: 0;
}
.grabacion audio {
  width: 100%;
}
.grabacion img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.columns > * {
  min-width: 0;
}
.atribucion {
  overflow-wrap: anywhere;
}
label.opcion {
  flex-direction: row;
  align-items: center;
  margin-bottom: 8px;
}
label.opcion input {
  width: auto;
  margin: 0;
}
.step {
  display: block;
  font-size: 12px;
  line-height: 1.8;
}
.step.completado {
  color: #17663c;
}
.step.fallido {
  color: var(--error);
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .mail-layout {
    grid-template-columns: 280px 1fr;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 12px;
  }
  .brand {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    overflow: auto;
  }
  .sidebar nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 9px;
  }
  .sidebar nav a span {
    display: none;
  }
  .download {
    display: none;
  }
  .topbar {
    position: static;
    height: 56px;
    padding: 12px;
  }
  .workspace {
    margin: 0;
    padding: 20px;
  }
  .mail-layout {
    grid-template-columns: 1fr;
  }
  .mail-list {
    max-height: 260px;
    border-right: 0;
  }
  .mail-content {
    padding: 20px;
  }
  .hero {
    padding: 28px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .topbar > span {
    font-size: 12px;
  }
  .user {
    font-size: 12px;
  }
  .login-card {
    padding: 28px;
  }
  .guest-header span {
    display: none;
  }
}
