:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --border: #d8e2ef;
  --border-strong: #b8cadf;
  --text: #16324f;
  --text-soft: #506580;
  --primary: #0a7abf;
  --primary-dark: #095f95;
  --accent: #0ca678;
  --warning: #c58906;
  --danger: #c2410c;
  --shadow: 0 18px 40px rgba(14, 56, 104, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(10, 122, 191, 0.08), transparent 35%),
    radial-gradient(circle at top right, rgba(12, 166, 120, 0.08), transparent 30%),
    var(--bg);
}

body {
  padding: 24px;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 32, 53, 0.45);
  backdrop-filter: blur(4px);
}

body.auth-locked .auth-gate {
  display: flex;
}

body.auth-locked .app-shell {
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.auth-subtitle {
  margin: 4px 0 14px;
  color: var(--text-soft);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-error {
  color: #b42318;
  margin: 2px 0 0;
  font-size: 0.92rem;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}
.topbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}

.topbar-public-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-left: auto;
}

.brand-block {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding-right: 92px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: transparent;
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: none;
}

.eyebrow,
.section-label {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--primary);
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 2vw, 2.2rem);
}

h2 {
  font-size: clamp(1.4rem, 1.7vw, 1.75rem);
}

h3 {
  font-size: 1rem;
}

.subtitle,
.muted-text,
.step-card p,
.footer-bar p,
.field-hint {
  margin: 4px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.topbar-badges,
.info-stack,
.toolbar-left,
.chip-row,
.shortcut-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-info {
  background: rgba(10, 122, 191, 0.1);
  color: var(--primary-dark);
}

.badge-accent {
  background: rgba(12, 166, 120, 0.14);
  color: #0b7857;
}

.badge-soft {
  background: rgba(10, 122, 191, 0.08);
  color: var(--primary-dark);
}

#publicSessionBadge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 4px 8px;
  font-size: 0.68rem;
  line-height: 1.1;
}

.badge-warning {
  background: rgba(197, 137, 6, 0.14);
  color: #9a6b05;
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.sidebar,
.workspace {
  min-width: 0;
}

.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

.sidebar-card,
.card,
.footer-bar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(216, 226, 239, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.sidebar-card,
.card {
  padding: 18px;
}

.compartment-card,
.action-card,
.mini-action,
.toggle-button,
.suggestion-chip,
.ghost-button,
.primary-button {
  border: 1px solid var(--border);
  background: white;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.compartment-card:hover,
.action-card:hover,
.mini-action:hover,
.toggle-button:hover,
.suggestion-chip:hover,
.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 122, 191, 0.12);
}

.compartment-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: var(--radius-lg);
  text-align: left;
  margin-bottom: 10px;
}

.compartment-card strong,
.action-card strong {
  display: block;
  margin-bottom: 4px;
}

.compartment-card small,
.action-card small,
.mini-action,
.toolbar-note {
  color: var(--text-soft);
}

.compartment-card.active {
  border-color: rgba(10, 122, 191, 0.35);
  background: linear-gradient(180deg, rgba(10, 122, 191, 0.08), rgba(10, 122, 191, 0.02));
}

.compartment-icon,
.action-emoji {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  border-radius: 14px;
  background: rgba(10, 122, 191, 0.08);
}

.info-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
}

.mini-action {
  padding: 10px 12px;
  border-radius: 999px;
}

.workspace {
  max-width: 1200px;
  margin: 0 auto;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.public-grid,
.secure-grid {
  display: grid;
  gap: 18px;
}

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

.secure-grid {
  grid-template-columns: minmax(320px, 400px) 1fr;
}

.secure-grid.secure-mode-otp .secure-chat-wrap {
  display: none;
}

.secure-grid.secure-mode-chat .secure-steps {
  display: none;
}

.public-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 7px;
  padding-top: 7px;
}

.public-actions-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-actions-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: left;
}

.quick-actions-chevron {
  font-size: 0.8rem;
  transition: transform 180ms ease;
}

.ghost-button.clear-inline {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

.public-actions .action-grid {
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 160ms ease;
}

.public-actions.is-collapsed .action-grid {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.public-actions.is-collapsed .quick-actions-chevron {
  transform: rotate(-90deg);
}

.action-grid {
  display: grid;
  gap: 12px;
}

.action-card {
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.chat-card {
  display: flex;
  flex-direction: column;
  min-height: 680px;
}

.secure-chat-wrap {
  min-height: 760px;
}

.chat-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.messages {
  flex: 1;
  min-height: 420px;
  max-height: 620px;
  overflow: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.message.user {
  flex-direction: row-reverse;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.message.user .avatar {
  background: rgba(10, 122, 191, 0.14);
  color: var(--primary-dark);
}

.message.assistant .avatar {
  background: rgba(12, 166, 120, 0.12);
  color: #0b7857;
}

.message.system .avatar {
  background: rgba(197, 137, 6, 0.15);
  color: #9a6b05;
}

.bubble-wrap {
  max-width: min(720px, 100% - 52px);
}

.bubble-meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.message.user .bubble-meta {
  text-align: right;
}

.bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-link {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pay-option-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pay-option-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pay-option-btn:hover {
  border-color: rgba(10, 122, 191, 0.4);
  box-shadow: 0 6px 14px rgba(10, 122, 191, 0.15);
}

.message.user .bubble {
  background: linear-gradient(180deg, rgba(10, 122, 191, 0.1), rgba(10, 122, 191, 0.03));
  border-color: rgba(10, 122, 191, 0.18);
}

.message.assistant .bubble.invoice-result {
  background: linear-gradient(180deg, rgba(12, 166, 120, 0.08), rgba(12, 166, 120, 0.02));
}

.invoice-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}

.composer {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.composer-input-wrap {
  position: relative;
}

.text-input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 15px;
  background: white;
  color: var(--text);
  outline: none;
}

.textarea-input,
#publicInput {
  min-height: 56px;
  max-height: 56px;
  resize: none;
  padding-right: 68px;
  padding-bottom: 14px;
  line-height: 1.2;
  overflow: hidden;
}

#publicInput::placeholder {
  font-size: 0.95rem;
}

.text-input:focus,
textarea:focus {
  border-color: rgba(10, 122, 191, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 122, 191, 0.09);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.composer-hint {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.composer-send-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(10, 122, 191, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #2f9fe0);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(10, 122, 191, 0.22);
}

.composer-send-button:hover {
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 10px 20px rgba(10, 122, 191, 0.28);
}

.primary-button,
.ghost-button {
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), #2f9fe0);
  color: white;
  border-color: rgba(10, 122, 191, 0.3);
}

.primary-button.secondary-tone {
  background: linear-gradient(135deg, #0ca678, #45c798);
  border-color: rgba(12, 166, 120, 0.25);
}

.primary-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ghost-button {
  background: white;
  color: var(--text);
}

.ghost-button.small {
  padding: 9px 12px;
  font-size: 0.88rem;
}

.wide {
  width: 100%;
}

.payload-preview {
  min-height: 220px;
  padding: 14px;
  border-radius: 18px;
  background: #0f172a;
  color: #d6e6f7;
  overflow: auto;
  font-size: 0.84rem;
  line-height: 1.5;
}

.secure-steps {
  display: grid;
  gap: 14px;
  align-content: start;
}

.step-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.92));
}

.step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.step-index {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(10, 122, 191, 0.1);
  color: var(--primary-dark);
  font-weight: 800;
  flex: 0 0 auto;
}

.toggle-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.toggle-button,
.suggestion-chip {
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
}

.toggle-button.active,
.suggestion-chip.active {
  border-color: rgba(10, 122, 191, 0.36);
  background: rgba(10, 122, 191, 0.08);
  color: var(--primary-dark);
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.otp-digit {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 0;
  background: white;
}

.otp-digit:focus {
  outline: none;
  border-color: rgba(10, 122, 191, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 122, 191, 0.09);
}

.footer-bar {
  margin-top: 18px;
  padding: 16px 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.typing-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(80, 101, 128, 0.45);
  animation: pulse 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

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

  .sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-grid,
  .secure-grid {
    grid-template-columns: 1fr;
  }

  .chat-card,
  .secure-chat-wrap {
    min-height: 560px;
  }
}

@media (max-width: 880px) {
  body {
    padding: 14px;
  }

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

  .panel-header,
  .composer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-block {
    flex: 1 1 100%;
    align-items: flex-start;
  }

  .topbar-public-meta {
    margin-left: 0;
  }

  .assistant-inline,
  .subtitle-line {
    font-size: 0.9rem;
  }

  .messages {
    max-height: none;
  }

  .otp-grid {
    grid-template-columns: repeat(6, minmax(38px, 1fr));
  }

  body.secure-panel-active .workspace {
    padding-bottom: 84px;
  }

  body.secure-panel-active .topbar-actions {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 390px;
    box-sizing: border-box;
    margin-top: 0;
    z-index: 30;
    padding: 8px;
    border-radius: 14px;
    background: rgba(243, 247, 251, 0.92);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 8px;
    align-items: center;
  }

  body.secure-panel-active .topbar-actions .ghost-button[data-switch-panel="public-panel"] {
    min-height: 44px;
    padding: 0 14px;
  }

  body.secure-panel-active #resetSecure {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
  }
}


.action-card {
  align-items: center;
}

.action-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.action-copy strong {
  margin: 0;
}

.step-card.step-locked {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.82), rgba(244, 247, 251, 0.82));
  border-style: dashed;
}

.step-card.step-locked .step-index {
  background: rgba(197, 137, 6, 0.12);
  color: #9a6b05;
}

.step-card.is-unlocked {
  border-color: rgba(12, 166, 120, 0.28);
  background: linear-gradient(180deg, rgba(12, 166, 120, 0.06), rgba(255, 255, 255, 0.96));
}

.text-input:disabled,
textarea:disabled,
.toggle-button:disabled,
.suggestion-chip:disabled,
.otp-digit:disabled {
  background: rgba(240, 245, 250, 0.92);
  color: rgba(22, 50, 79, 0.6);
  cursor: not-allowed;
  box-shadow: none;
}

.suggestion-chip:disabled,
.toggle-button:disabled {
  transform: none;
}

.payload-preview {
  min-height: 260px;
}
.brand-mark {
  background: transparent;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand {
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.brand-title h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.brand-title span {
  font-size: 13px;
  color: #6b7280;
}
/* OTP style premium */
.otp-digit {
  transition: all 0.2s ease;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
}

.otp-digit:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  transform: scale(1.05);
}

.otp-digit.filled {
  border-color: #2563eb;
  background: #eff6ff;
}
.otp-digit.validated {
  border-color: #0ca678;
  background: #ecfdf5;
  box-shadow: 0 0 0 3px rgba(12, 166, 120, 0.15);
}
.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: #999;
  border-radius: 50%;
  opacity: 0.3;
  animation: typingBlink 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBlink {
  0%, 80%, 100% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}
.brand-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title .section-label {
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.secure-title-extra {
  display: none;
}

body.secure-panel-active .secure-title-extra {
  display: inline-flex;
}

body.secure-panel-active .brand-title .section-label {
  margin: 0;
  align-items: center;
  line-height: 1;
  transform: translateY(3px);
}

body.secure-panel-active .brand-line1 .separator {
  transform: translateY(2px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-actions {
  display: none;
  gap: 10px;
}

body.secure-panel-active .topbar-actions {
  display: flex;
  order: 3;
  flex: 1 1 100%;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

body.secure-panel-active .topbar {
  flex-wrap: wrap;
}

body.secure-panel-active .topbar-public-meta {
  display: none;
}
.brand-line1,
.brand-line2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-inline,
.subtitle-line {
  display: inline-block;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.separator {
  opacity: 0.4;
}

.year-buttons,
.month-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.year-btn,
.month-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 76px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--primary);
  background: white;
  color: var(--primary);
  cursor: pointer;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.year-btn:hover,
.month-btn:hover {
  background: var(--primary);
  color: white;
}

.quit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin-top: 0;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  background: #dc2626;
  color: white;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.quit-btn:hover {
  background: #b91c1c;
}
.year-buttons,
.month-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.year-buttons button,
.month-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 76px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid #2b7bb9;
  background: white;
  color: #2b7bb9;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.month-buttons button {
  min-width: 48px;
}

.year-buttons button:hover,
.month-buttons button:hover {
  background: #2b7bb9;
  color: white;
  transform: translateY(-1px);
}

.invoice-btn:hover {
  opacity: 0.9;
}

/* bouton quitter */
.session-actions {
  margin-top: 6px;
}

.return-menu-actions {
  margin-top: 8px;
}

.invoice-access-title {
  margin-top: 6px;
}

.session-actions button,
.return-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  background: #e53935;
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.session-actions button:hover,
.return-menu-btn:hover {
  background: #c62828;
}

.invoice-btn {
  display: inline-block;
  padding: 4px 12px;   /* moitié hauteur */
  border-radius: 8px;
  background: #2b7bb9;
  }
