:root {
  --bg-start: #0b1d32;
  --bg-end: #16365f;
  --surface: rgba(8, 20, 37, 0.82);
  --surface-soft: rgba(12, 29, 52, 0.74);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text-main: #f7fafc;
  --text-soft: #bfd0e2;
  --accent: #f0b429;
  --accent-strong: #d79710;
  --danger: #ff8f8f;
  --success: #9ff3c4;
  --info: #97c8ff;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(240, 180, 41, 0.18), transparent 28%),
    linear-gradient(160deg, var(--bg-start), var(--bg-end));
}

.landing-body,
.dashboard-body,
.panel-body {
  display: flex;
  flex-direction: column;
}

.login-shell,
.dashboard-shell {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 20px 12px;
}

.login-card,
.dashboard-card {
  width: min(100%, 460px);
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: rise 480ms ease-out;
}

.dashboard-card {
  text-align: center;
}

.brand-logo {
  width: 102px;
  height: 102px;
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
}

.brand-logo.small {
  width: 82px;
  height: 82px;
}

.brand-copy {
  text-align: center;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.login-form,
.form-card {
  display: grid;
  gap: 16px;
}

.login-form label,
.form-card label,
.user-admin-form label {
  display: grid;
  gap: 8px;
}

.login-form span,
.form-card span,
.user-admin-form span {
  font-size: 0.92rem;
  color: var(--text-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  outline: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

select option {
  color: #102947;
}

input::placeholder {
  color: rgba(247, 250, 252, 0.55);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

button {
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #142235;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.secondary-button,
.ghost-button,
.danger-button,
.nav-item,
.user-card-toggle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.danger-button {
  color: #ffd8d8;
}

.secondary-button {
  margin-top: 10px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.form-message[data-state="error"] {
  color: var(--danger);
}

.form-message[data-state="success"] {
  color: var(--success);
}

.form-message[data-state="loading"] {
  color: var(--info);
}

.dashboard-copy,
.muted-copy,
.hero-copy {
  color: var(--text-soft);
  line-height: 1.6;
}

.site-footer {
  padding: 10px 18px 22px;
  text-align: center;
  color: rgba(247, 250, 252, 0.72);
}

.site-footer small {
  font-size: 0.76rem;
}

.panel-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
  position: relative;
}

.sidebar-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 100vh;
  z-index: 25;
  display: none;
}

.sidebar-hover-zone.is-active {
  display: block;
}

.sidebar {
  padding: 24px;
  background: rgba(5, 15, 29, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 28px;
  backdrop-filter: blur(14px);
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 30;
  transition: transform 220ms ease, opacity 220ms ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}

.sidebar-title {
  font-size: 1.2rem;
}

.sidebar-heading {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  text-align: left;
}

.nav-item.is-active {
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.24), rgba(215, 151, 16, 0.18));
  border-color: rgba(240, 180, 41, 0.4);
}

.sidebar-user {
  margin-top: auto;
  display: grid;
  gap: 14px;
  position: sticky;
  bottom: 24px;
  padding-top: 12px;
  background: linear-gradient(180deg, rgba(5, 15, 29, 0), rgba(5, 15, 29, 0.92) 24%);
}

.user-chip,
.preview-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-chip-button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text-main);
  padding: 0;
  text-align: left;
}

.user-chip-button:hover {
  transform: none;
  filter: none;
  background: rgba(255, 255, 255, 0.04);
}

.user-avatar,
.preview-avatar,
.user-list-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.26), rgba(151, 200, 255, 0.18));
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
}

.user-avatar {
  width: 72px;
  height: 72px;
  text-align: center;
}

.user-list-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.user-avatar-text {
  display: block;
  width: 100%;
  padding: 0 6px;
  font-size: 0.95rem;
  line-height: 1.1;
  text-align: center;
  word-break: break-word;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-role {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.panel-main {
  padding: 28px;
  display: grid;
  gap: 22px;
  align-content: start;
  grid-auto-rows: min-content;
  min-width: 0;
}

.hero-card,
.panel-card,
.module-card {
  background: var(--surface-soft);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  padding: 8px 28px;
  min-height: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 18px;
  align-self: start;
  gap: 16px;
}

.hero-card .eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
}

.hero-kicker {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.hero-kicker:empty {
  display: none;
}

.hero-card h2 {
  font-size: clamp(1.2rem, 2.3vw, 2.05rem);
  line-height: 1.05;
  margin: 0;
}

.hero-subtitle {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 700;
}

.hero-subtitle:empty {
  display: none;
}

.hero-content {
  min-width: 0;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.panel-toggle-button {
  padding: 8px 12px;
  min-width: 108px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-toggle-button:hover {
  transform: none;
  filter: none;
  background: rgba(255, 255, 255, 0.08);
}

.panel-toggle-button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

.panel-toggle-button[data-enabled="true"] {
  border-color: rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.08);
}

.panel-toggle-button[data-enabled="true"]::after {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 180, 41, 0.12);
}

.panel-icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.panel-icon-button:hover {
  transform: none;
  filter: none;
  background: rgba(255, 255, 255, 0.08);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, 0.74);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 60;
}

.modal-card {
  width: min(100%, 460px);
  padding: 24px;
  border-radius: 24px;
  background: rgba(12, 29, 52, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.modal-card-wide {
  width: min(100%, 500px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-grid;
  place-items: center;
  font-size: 1.3rem;
}

.modal-close:hover {
  transform: none;
  filter: none;
  background: rgba(255, 255, 255, 0.08);
}

.modal-subtitle {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.modal-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.content-section {
  display: grid;
  gap: 18px;
}

.fiestas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.fiesta-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(240, 180, 41, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  text-align: left;
  color: var(--text-main);
}

.fiesta-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.fiesta-admin-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fiesta-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  filter: none;
}

.fiesta-card.is-active {
  border-color: rgba(240, 180, 41, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(240, 180, 41, 0.08));
}

.fiesta-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.fiesta-dates {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 700;
}

.publish-toggle {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.publish-toggle:hover {
  transform: none;
  filter: none;
  background: rgba(255, 255, 255, 0.1);
}

.publish-toggle.is-published {
  border-color: rgba(159, 243, 196, 0.34);
  background: rgba(159, 243, 196, 0.12);
  color: var(--success);
}

.edit-fiesta-button {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(151, 200, 255, 0.1);
  color: #d8ebff;
  border: 1px solid rgba(151, 200, 255, 0.24);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.edit-fiesta-button:hover {
  transform: none;
  filter: none;
  background: rgba(151, 200, 255, 0.16);
}

.delete-fiesta-button {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 143, 143, 0.1);
  color: #ffd2d2;
  border: 1px solid rgba(255, 143, 143, 0.24);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.delete-fiesta-button:hover {
  transform: none;
  filter: none;
  background: rgba(255, 143, 143, 0.16);
}

.cuadrante-section {
  display: grid;
  gap: 18px;
}

.cuadrante-grid {
  overflow-x: auto;
  padding-bottom: 8px;
}

.cuadrante-board-table {
  display: grid;
  gap: 0;
  min-width: max-content;
  border: 2px solid rgba(18, 38, 62, 0.95);
  border-radius: 10px;
  overflow: hidden;
  background: #edf3fb;
}

.cuadrante-corner,
.cuadrante-day-header,
.shift-row-label,
.shift-table-cell {
  border-right: 1px solid rgba(18, 38, 62, 0.95);
  border-bottom: 1px solid rgba(18, 38, 62, 0.95);
}

.cuadrante-day-header:last-child,
.shift-table-cell:last-child {
  border-right: 0;
}

.cuadrante-corner {
  min-height: 42px;
  background: #f4f8fc;
}

.cuadrante-day-header {
  padding: 3px 8px;
  min-height: 42px;
  background: #f4f8fc;
  text-align: center;
}

.cuadrante-day-header h3 {
  margin: 0;
  color: #0f2f55;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.shift-row-label {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 10px 6px;
  background: #f6f7f9;
  color: #0f2f55;
  text-align: center;
}

.shift-row-label strong {
  font-size: 0.7rem;
  line-height: 1.1;
}

.shift-row-label span {
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 700;
}

.shift-card-clickable {
  cursor: pointer;
}

.shift-table-cell {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-height: 220px;
  padding: 8px;
  color: #15355d;
  overflow: hidden;
}

.shift-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.shift-panel-manana {
  background: #dff0d0;
}

.shift-panel-tarde {
  background: #d9e8f9;
}

.shift-panel-noche {
  background: #e3e3e3;
}

.shift-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.shift-required,
.shift-required-button {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 38, 62, 0.08);
  color: #163963;
  font-size: 0.68rem;
  font-weight: 800;
}

.shift-required-button {
  border: 1px solid rgba(18, 38, 62, 0.18);
}

.shift-required-button:hover {
  transform: none;
  filter: none;
  background: rgba(18, 38, 62, 0.12);
}

.shift-hours-chip {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 38, 62, 0.08);
  color: #163963;
  font-size: 0.68rem;
  font-weight: 800;
}

.shift-table-cell.is-understaffed {
  box-shadow: inset 0 0 0 3px rgba(210, 60, 60, 0.55);
}

.shift-table-cell.is-understaffed .shift-required,
.shift-table-cell.is-understaffed .shift-required-button {
  background: rgba(210, 60, 60, 0.16);
  border-color: rgba(210, 60, 60, 0.32);
  color: #a12727;
}

.adjust-shift-button {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(18, 38, 62, 0.08);
  color: #163963;
  border: 1px solid rgba(18, 38, 62, 0.18);
  font-size: 0.68rem;
  font-weight: 800;
}

.adjust-shift-button:hover {
  transform: none;
  filter: none;
  background: rgba(18, 38, 62, 0.12);
}

.indicativos-list {
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: auto;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.indicativo-card,
.indicativo-empty {
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 38, 62, 0.12);
  color: #17365d;
}

.indicativo-card strong {
  display: block;
  color: #12345c;
  font-size: 0.76rem;
}

.indicativo-card.is-guard-chief strong {
  color: #d13c3c;
}

.indicativo-card p,
.indicativo-card small,
.indicativo-empty {
  margin: 2px 0 0;
  color: #214a7a;
  font-size: 0.66rem;
  line-height: 1.2;
}

.indicativo-card small {
  display: block;
}

.shift-events {
  display: grid;
  gap: 3px;
  padding-top: 4px;
  border-top: 1px dashed rgba(18, 38, 62, 0.18);
  position: relative;
  z-index: 2;
}

.shift-event-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px;
  align-items: center;
  padding: 0;
  background: transparent;
  color: #0f2f55;
  border: 0;
  font-size: 0.62rem;
  text-align: left;
  width: 100%;
}

.shift-event-line:hover {
  transform: none;
  filter: none;
  background: rgba(18, 38, 62, 0.05);
}

.shift-event-time {
  color: #1e4e8c;
  font-weight: 800;
}

.shift-event-name {
  font-weight: 700;
}

.shift-cell-body {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.shift-status-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.shift-status-overlay span {
  transform: rotate(-24deg);
  color: rgba(186, 32, 32, 0.84);
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 10px;
}

.shift-actions-list {
  display: grid;
  gap: 12px;
}

.shift-action-button {
  width: 100%;
  justify-content: center;
}

.events-grid {
  display: grid;
}

.events-board {
  display: grid;
  gap: 16px;
}

.event-day-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(245, 248, 252, 0.96);
  border: 1px solid rgba(133, 156, 189, 0.2);
}

.event-day-head {
  padding: 12px 16px;
  background: rgba(20, 52, 92, 0.92);
  color: #f7fafc;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.event-day-head h4,
.event-day-head span {
  font-size: 0.95rem;
  font-weight: 800;
}

.event-day-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.event-card,
.event-empty {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(133, 156, 189, 0.24);
  color: #17365d;
  text-align: left;
}

.event-card.is-editable:hover {
  transform: none;
  filter: none;
  background: #eef5fd;
}

.event-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
}

.event-time {
  color: #ff7a00;
  font-size: 0.9rem;
  font-weight: 800;
}

.event-content strong {
  display: block;
  margin-bottom: 4px;
  color: #12345c;
}

.event-content p {
  margin: 3px 0 0;
  color: #214a7a;
  font-size: 0.84rem;
}

.event-content span {
  font-weight: 800;
}

.event-empty {
  font-size: 0.88rem;
}

.indicativo-card.is-editable {
  cursor: pointer;
}

.indicativo-card.is-editable:hover {
  background: #eef5fd;
  transform: none;
  filter: none;
}

.delete-inline-button {
  background: rgba(255, 143, 143, 0.12);
  color: #ffd1d1;
  border: 1px solid rgba(255, 143, 143, 0.24);
}

.delete-inline-button:hover {
  transform: none;
  filter: none;
  background: rgba(255, 143, 143, 0.18);
}

.is-hidden {
  display: none !important;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-card,
.panel-card {
  padding: 24px;
}

.profile-form-wide {
  width: 100%;
}

.module-card[data-access="granted"] {
  border-color: rgba(159, 243, 196, 0.3);
}

.module-card[data-access="denied"] {
  border-color: rgba(255, 143, 143, 0.3);
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 18px;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
}

.checkbox-row input {
  width: auto;
  transform: scale(1.1);
}

.users-list {
  display: grid;
  gap: 14px;
}

.user-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.user-card[data-expanded="true"] {
  border-color: rgba(240, 180, 41, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.user-card-toggle {
  width: 100%;
  border-radius: 0;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.user-card-toggle:hover {
  transform: none;
  filter: none;
  background: rgba(255, 255, 255, 0.03);
}

.user-card-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-card-summary p {
  margin: 4px 0 0;
}

.toggle-indicator {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.user-admin-form {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-actions {
  display: flex;
  gap: 10px;
}

body.module-sidebar-autohide .panel-layout {
  grid-template-columns: 1fr;
}

body.module-sidebar-autohide .sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  transform: translateX(-104%);
  opacity: 0;
  pointer-events: none;
}

body.module-sidebar-autohide.sidebar-peek-visible .sidebar {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .login-card,
  .dashboard-card,
  .hero-card,
  .panel-card,
  .module-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  h1 {
    font-size: 1.72rem;
  }

  .hero-card,
  .sidebar-brand,
  .user-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-toggle-button {
    white-space: normal;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .modal-card,
  .modal-card-wide {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    max-height: calc(100vh - 24px);
  }

  .modal-grid-two {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-card-toggle {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-main {
    padding: 18px;
  }
}
