/* Shared sli styles */
:root {
  --saffron: #FF9933; --saffron-soft: #FFE7CE;
  --text: #222; --muted: #777;
  --divider: #E0E0E0; --bg: #FFFFFF;
  --error: #C0392B;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; min-height: 100vh;
}
.header, .offline-banner, .flash { flex: 0 0 auto; }
main, .screen-stack { flex: 1 1 auto; }

.header {
  background: var(--saffron); color: white;
  padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header .brand { display: flex; align-items: center; gap: 12px; }
.header .logo {
  width: 44px; height: 44px; border-radius: 8px; background: #fff; color: var(--saffron);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px;
}
.header .title { font-size: 16px; opacity: 0.9; line-height: 1.15; }
.header .title .main { font-size: 20px; font-weight: 600; opacity: 1; }
.header .meta { text-align: right; font-size: 14px; line-height: 1.2; }
.header .meta .time { font-size: 22px; font-weight: 600; }

.flash {
  font-size: 18px; font-weight: 500; max-height: 0; padding: 0 22px; overflow: hidden;
  transition: max-height 200ms ease-out, padding 200ms ease-out;
  background: var(--saffron-soft); color: var(--text);
}
.flash.show { max-height: 80px; padding: 14px 22px; }
.flash.ok { background: var(--saffron-soft); color: var(--text); border-bottom: 2px solid var(--saffron); }
.flash.fail { background: var(--error); color: white; border-bottom: 0; }

.offline-banner {
  background: var(--error); color: white; text-align: center; font-size: 16px;
  padding: 0 22px; max-height: 0; overflow: hidden;
  transition: max-height 200ms ease-out, padding 200ms ease-out;
}
.offline-banner.show { max-height: 60px; padding: 12px 22px; }

.btn {
  background: var(--saffron); color: white; border: 0; border-radius: 10px;
  padding: 16px 22px; font-size: 18px; font-weight: 600; min-height: 56px;
}
.btn.secondary { background: white; color: var(--text); border: 1px solid var(--divider); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.full { width: 100%; }

.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 3px solid rgba(0,0,0,0.15); border-top-color: var(--saffron);
  border-radius: 50%; animation: spin 0.9s linear infinite; vertical-align: middle;
}
.spinner.lg { width: 36px; height: 36px; border-width: 4px; }
.spinner.white { border-color: rgba(255,255,255,0.4); border-top-color: white; }
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
