@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Jost:wght@400;500;600;700&display=swap");
:root {
  --green: #123f34;
  --green2: #1d5b4b;
  --cream: #f5f1e8;
  --ink: #17231e;
  --muted: #68756f;
  --line: #dfe5e1;
  --white: #fff;
  --gold: #c89448;
  --slate: #343a3d;
}

/* Identidad y geometría compacta · 2.11 */
.login-brand-logo{display:block;width:min(340px,72%);height:auto;margin:auto;object-fit:contain}.panel{grid-template-columns:218px minmax(0,1fr)}.panel>aside{background:var(--green);padding:22px 16px}.sidebar-brand{margin-bottom:30px;padding:0 4px 20px}.sidebar-brand img{width:170px;height:112px;padding:0;background:transparent;border-radius:0}.sidebar-brand strong{font-family:Jost,ui-sans-serif,system-ui,sans-serif;font-size:15px}.active-profile{margin:-18px 0 16px}.panel nav button,.aside-actions button{border-radius:0}.content{padding:24px clamp(20px,3vw,44px)}
@media(max-width:760px){.brand{min-height:28vh;padding:28px}.login-brand-logo{width:min(260px,70%)}.panel{grid-template-columns:1fr}.panel>aside{padding:10px 14px}.sidebar-brand img{width:70px;height:44px}.content{padding:18px 14px}}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Jost,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--cream);
}
button,
input,
select {
  font: inherit;
}
.hidden {
  display: none !important;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.brand {
  background: var(--green);
  color: #fff;
  padding: clamp(36px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 7vw, 88px);
  margin: 28px 0 15px;
  letter-spacing: -0.04em;
}
.brand p {
  max-width: 520px;
  font-size: 20px;
  line-height: 1.6;
  color: #dbe8e2;
}
.brand-mark {
  width: 68px;
  height: 68px;
  border: 1px solid #ffffff55;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
  color: #fff;
  background: #ffffff12;
}
.brand-mark.small {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}
.login-card {
  align-self: center;
  width: min(430px, calc(100% - 48px));
  margin: auto;
  background: #fff;
  padding: 42px;
  border-radius: 24px;
  box-shadow: 0 24px 80px #173c2d1a;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
}
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  margin: 8px 0 28px;
}
label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 16px 0;
}
input {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid #cdd6d1;
  border-radius: 11px;
  outline: 0;
}
input:focus {
  border-color: var(--green2);
  box-shadow: 0 0 0 3px #1d5b4b19;
}
button {
  border: 0;
  border-radius: 11px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 800;
}
.login-card button {
  width: 100%;
  background: var(--green);
  color: #fff;
}
.login-card button:disabled {
  opacity: 0.6;
}
.error {
  min-height: 20px;
  color: #a53333;
  font-size: 14px;
}
.secure {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0 0;
}
.panel {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
aside {
  background: var(--slate);
  color: #fff;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 9px;
  margin: 0 0 38px;
  padding: 5px 8px 24px;
  border-bottom: 1px solid #ffffff18;
}
.sidebar-brand img {
  width: 210px;
  height: 142px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 7px;
}
.active-profile { border-top: 1px solid #ffffff18; border-bottom: 1px solid #ffffff18; padding: 10px 12px; margin: -24px 0 22px; display: grid; gap: 2px; }
.active-profile span { color: #aeb9b5; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.active-profile strong { color: #fff; font-size: 12px; }
.service-label { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #f2eee5; color: var(--muted); font-size: 11px; font-weight: 700; }

.viewer-mode .owner-only,
.viewer-mode .settings-button,
.viewer-mode .mobile-settings,
.viewer-mode #toggle-online { display: none !important; }
.login-help{display:block;width:100%;margin-top:12px;border:0;background:transparent;color:var(--green);font-weight:750;text-decoration:underline;cursor:pointer}.login-help[hidden]{display:none}.login-card .hint{min-height:20px;color:var(--muted)}
.sidebar-brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.05;
  color: #fff;
}
nav {
  display: grid;
  gap: 8px;
}
.mobile-settings {
  display: none;
}
nav a,
nav span {
  padding: 13px 14px;
  border-radius: 10px;
  color: #dbe8e2;
  text-decoration: none;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .active {
  background: #ffffff14;
  color: #fff;
}
nav em {
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
  color: #9fb8ae;
}
.logout {
  background: transparent;
  color: #dbe8e2;
  border: 1px solid #ffffff25;
}
.aside-actions {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.aside-actions button {
  width: 100%;
  color: #dbe2e0;
}
.settings-button {
  background: transparent;
  text-align: left;
}
.settings-button.active {
  background: #ffffff14;
  color: #fff;
}
.content {
  padding: 38px clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.content header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.content h1 {
  font:
    700 48px/1 "Cormorant Garamond",
    serif;
  margin: 5px 0 35px;
}
time,
.agenda-stats strong,
.compact-date,
.table-tile small,
.archive-date {
  font-family: Jost, ui-sans-serif, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green);
}
.welcome {
  background: var(--green);
  color: #fff;
  border-radius: 22px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.welcome h2 {
  margin: 5px 0 12px;
}
.welcome p:last-child {
  color: #d9e6e0;
  max-width: 680px;
  line-height: 1.6;
}
.status {
  height: max-content;
  background: #ffffff14;
  border: 1px solid #ffffff25;
  padding: 10px 13px;
  border-radius: 99px;
  white-space: nowrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.cards article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  gap: 8px;
}
.cards span,
.cards small {
  color: var(--muted);
}
.cards strong {
  font-size: 20px;
}
.content footer {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.content footer a {
  color: var(--green);
}
@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .brand {
    min-height: 34vh;
    padding: 35px;
  }
  .brand h1 {
    font-size: 45px;
    margin: 18px 0 8px;
  }
  .brand p {
    font-size: 16px;
  }
  .login-card {
    margin: -25px auto 35px;
    position: relative;
    padding: 28px;
  }
  .panel {
    grid-template-columns: 1fr;
  }
  aside {
    padding: 15px 18px;
    flex-direction: row;
    align-items: center;
  }
  .sidebar-brand {
    display: flex;
    align-items: center;
    text-align: left;
    border: 0;
    padding: 0;
    margin: 0;
    gap: 8px;
  }
  .sidebar-brand img {
    width: 54px;
    height: 40px;
  }
  .sidebar-brand strong {
    max-width: 130px;
    font-size: 14px;
  }
  nav {
    display: none;
  }
  .logout {
    margin: 0 0 0 auto;
    padding: 9px 12px;
  }
  .aside-actions {
    margin: 0 0 0 auto;
    display: flex;
  }
  .aside-actions .settings-button {
    display: none;
  }
  .content {
    padding: 26px 18px;
  }
  .content h1 {
    font-size: 34px;
  }
  .welcome {
    display: grid;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .content footer {
    gap: 16px;
    flex-wrap: wrap;
  }
}

.login-brand-logo{display:block;width:min(340px,72%);height:auto;margin:auto;object-fit:contain}.panel{grid-template-columns:218px minmax(0,1fr)}.panel>aside{background:var(--green);padding:22px 16px}.sidebar-brand{margin-bottom:30px;padding:0 4px 20px}.sidebar-brand img{width:170px;height:112px;padding:0;background:transparent;border-radius:0}.sidebar-brand strong{font-family:Jost,ui-sans-serif,system-ui,sans-serif;font-size:15px}.active-profile{margin:-18px 0 16px}.panel nav button,.aside-actions button{border-radius:0}.content{padding:24px clamp(20px,3vw,44px)}
@media(max-width:760px){.brand{min-height:28vh;padding:28px}.login-brand-logo{width:min(260px,70%)}.panel{grid-template-columns:1fr}.panel>aside{padding:10px 14px}.sidebar-brand img{width:70px;height:44px}.content{padding:18px 14px}}
