#szlak-misji-app {
  --smp-forest: #173f2d;
  --smp-deep: #0d2d20;
  --smp-moss: #6f984c;
  --smp-paper: #f5e8c8;
  --smp-cream: #fff9ea;
  --smp-amber: #e5a83b;
  --smp-coral: #d9684a;
  --smp-ink: #20312a;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--smp-ink);
  background: var(--smp-paper);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  line-height: 1.35;
}
#szlak-misji-app * { box-sizing: border-box; }
#szlak-misji-app button,
#szlak-misji-app input { font: inherit; }
#szlak-misji-app button { cursor: pointer; }
#szlak-misji-app .smp-loading { padding: 38px; text-align: center; font-weight: 900; color: var(--smp-forest); }

.smp-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 20%, #fff7d9, var(--smp-paper) 55%, #c7b57f);
}
.smp-gate-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 2px solid #b69b59;
  border-radius: 24px;
  background: var(--smp-cream);
  box-shadow: 0 22px 55px #18312344;
  text-align: center;
}
.smp-gate-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--smp-forest);
  color: #fff1c9;
  font-size: 38px;
}
.smp-eyebrow { margin: 0 0 8px; color: var(--smp-coral); font-weight: 900; letter-spacing: .2em; }
.smp-gate-card h1 { margin: 4px 0; color: var(--smp-forest); font-family: Impact, "Arial Narrow", sans-serif; font-size: 48px; letter-spacing: .04em; }
.smp-gate-lead { color: #68705e; font-weight: 700; }
.smp-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 25px 0 18px; padding: 5px; border-radius: 12px; background: #eadcb7; }
.smp-tabs button { padding: 12px; border: 0; border-radius: 9px; background: transparent; color: #5e624e; font-weight: 900; }
.smp-tabs button.active { background: var(--smp-forest); color: #fff; box-shadow: 0 3px 8px #0002; }
.smp-auth-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.smp-auth-form label { display: flex; flex-direction: column; gap: 7px; color: var(--smp-forest); font-weight: 900; }
.smp-auth-form input,
.smp-custom-form input { width: 100%; padding: 14px 15px; border: 2px solid #cdbb87; border-radius: 11px; outline: 0; background: #fff; }
.smp-auth-form input:focus,
.smp-custom-form input:focus { border-color: var(--smp-moss); box-shadow: 0 0 0 3px #789c5540; }
.smp-auth-form small { color: #746d58; }
.smp-primary { padding: 16px; border: 0; border-radius: 12px; background: var(--smp-forest); color: #fff; font-size: 17px; font-weight: 900; box-shadow: 0 5px 0 var(--smp-deep); }
.smp-primary:disabled { opacity: .6; }
.smp-error { padding: 11px; border-radius: 9px; background: #f9d8cf; color: #8d3829; font-weight: 800; }
.smp-note { margin: 20px 0 0; color: #6f6956; font-size: 12px; }

.smp-app { min-height: 100vh; overflow: hidden; background-color: var(--smp-paper); background-image: radial-gradient(circle at 15% 10%, #ffffff88, transparent 28%); }
.smp-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: var(--smp-forest);
  color: #f8eac7;
  box-shadow: 0 4px 18px #172d1f55;
}
.smp-brand { margin-right: auto; display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .06em; }
.smp-brand > span { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid #f8eac7; border-radius: 50%; font-size: 24px; }
.smp-points { padding: 9px 14px; border: 1px solid #789153; border-radius: 999px; font-weight: 900; white-space: nowrap; }
.smp-topbar > button { padding: 9px 11px; border: 1px solid #789153; border-radius: 9px; background: transparent; color: #f8eac7; font-size: 12px; font-weight: 900; }

.smp-hero { max-width: 1240px; margin: 0 auto; padding: 52px 28px 30px; display: grid; grid-template-columns: 1.5fr .7fr; gap: 44px; align-items: center; }
.smp-hero h1 { margin: 0; color: var(--smp-forest); font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(62px, 8vw, 108px); line-height: .84; letter-spacing: .02em; text-shadow: 2px 2px 0 #d2bd86; }
.smp-hero h1 span { color: #28563b; }
.smp-motto { color: #5d684e; font-size: 17px; font-weight: 700; }
.smp-progress { text-align: center; }
.smp-ring { width: 205px; height: 205px; margin: auto; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--smp-forest) var(--progress), #dfcfa7 0); }
.smp-ring::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--smp-paper); box-shadow: inset 0 0 0 2px #c9b37c; }
.smp-ring div { z-index: 1; display: flex; flex-direction: column; }
.smp-ring strong { color: var(--smp-forest); font-family: Impact, sans-serif; font-size: 60px; line-height: 1; }
.smp-ring span { color: #72715a; font-weight: 900; }
.smp-progress > button { width: 100%; margin: 22px auto 12px; padding: 17px 22px; border: 2px solid #c29b39; border-radius: 14px; background: var(--smp-forest); color: #fff4d8; font-size: 19px; font-weight: 900; box-shadow: 0 6px 0 var(--smp-deep); }
.smp-progress small { font-weight: 800; }
.smp-progress small.online { color: #3f723f; }
.smp-progress small.saving { color: #9a7121; }
.smp-progress small.offline { color: #a23f35; }

.smp-cards { max-width: 1240px; margin: 0 auto 55px; padding: 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.smp-category { min-width: 0; padding: 20px; display: grid; grid-template-columns: 82px 1fr 28px; align-items: center; gap: 18px; border: 1px solid #d1bd83; border-radius: 18px; background: linear-gradient(135deg, #fffaf0, #f9edce); color: var(--smp-ink); box-shadow: 0 8px 18px #30372324; text-align: left; transition: .18s; }
.smp-category:hover { transform: translateY(-3px); box-shadow: 0 12px 22px #30372333; }
.smp-category.complete { border-color: #779652; background: linear-gradient(135deg, #f2f8df, #e4efc6); }
.smp-category.omitted { border-color: #b7ad93; background: #ebe6d8; box-shadow: none; }
.smp-cat-icon { width: 68px; height: 68px; display: grid; place-items: center; border: 2px solid var(--smp-forest); border-radius: 50%; color: var(--smp-forest); font-size: 34px; }
.smp-cat-body { min-width: 0; display: flex; flex-direction: column; }
.smp-cat-body strong { font-family: "Arial Narrow", Arial, sans-serif; font-size: 23px; font-weight: 900; }
.smp-cat-body small { margin: 3px 0 10px; overflow: hidden; color: #77735e; text-overflow: ellipsis; white-space: nowrap; }
.smp-bar { height: 10px; overflow: hidden; border-radius: 10px; background: #e4d7b4; }
.smp-bar i { height: 100%; display: block; border-radius: 10px; background: var(--smp-moss); transition: width .4s; }
.smp-cat-body em { margin-top: 6px; color: #5e684a; font-size: 12px; font-style: normal; font-weight: 900; }
.smp-arrow { color: var(--smp-forest); font-size: 38px; font-weight: 900; }

.smp-backdrop { position: fixed; z-index: 99996; inset: 0; border: 0; background: #10271e99; backdrop-filter: blur(3px); }
.smp-drawer { position: fixed; z-index: 99997; top: 0; right: 0; width: min(650px, 100%); height: 100dvh; display: flex; flex-direction: column; background: var(--smp-cream); box-shadow: -18px 0 45px #0d211c55; animation: smpSlide .25s ease-out; }
@keyframes smpSlide { from { transform: translateX(100%); } }
.smp-drawer-head { padding: 25px 28px; display: flex; justify-content: space-between; gap: 18px; background: var(--smp-forest); color: #fff4d8; }
.smp-drawer-head p { margin: 0; color: #bcd096; font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.smp-drawer-head h2 { margin: 4px 0; color: #fff4d8; font-size: 29px; }
.smp-drawer-head span { color: #d8dbbd; }
.smp-drawer-head > button { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid #92a87b; border-radius: 50%; background: transparent; color: #fff; font-size: 30px; }
.smp-omit-stage { margin-top: 14px; padding: 9px 12px; border: 1px solid #cfddb8; border-radius: 9px; background: #ffffff12; color: #fff4d8; font-size: 12px; font-weight: 900; }
.smp-item-list { padding: 16px 22px; overflow: auto; flex: 1; }
.smp-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; border-bottom: 1px dashed #d2c49f; }
.smp-item label { min-width: 0; padding: 14px 8px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 13px; cursor: pointer; }
.smp-item input { position: absolute; opacity: 0; }
.smp-check { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #7e8b67; border-radius: 8px; color: transparent; font-weight: 900; }
.smp-item.checked .smp-check { border-color: var(--smp-moss); background: var(--smp-moss); color: #fff; }
.smp-item.checked b,
.smp-item.skipped b { color: #79806d; text-decoration: line-through; }
.smp-item.skipped { opacity: .65; background: #ece8dd; }
.smp-omit-item,
.smp-delete { padding: 7px 9px; border: 1px solid #b6aa8d; border-radius: 8px; background: #fffaf0; color: #746b55; font-size: 11px; font-weight: 900; }
.smp-delete { border-color: #c99b8d; color: #963f30; }
.smp-drawer-foot { padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #d8caa8; font-weight: 900; }
.smp-drawer-foot button { padding: 13px 17px; border: 0; border-radius: 10px; background: var(--smp-forest); color: #fff; font-weight: 900; }
.smp-custom-form { padding: 18px 28px; border-bottom: 1px solid #cfbd8b; background: #eee1bd; }
.smp-custom-form > label { display: block; margin-bottom: 8px; color: var(--smp-forest); font-weight: 900; }
.smp-custom-form > div { display: flex; gap: 9px; }
.smp-custom-form button { padding: 10px 17px; border: 0; border-radius: 10px; background: var(--smp-forest); color: #fff; font-weight: 900; }
.smp-empty { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #77705c; text-align: center; }
.smp-empty > span { width: 58px; height: 58px; display: grid; place-items: center; border: 2px dashed #9d8e67; border-radius: 50%; font-size: 30px; }
.smp-empty b { color: var(--smp-forest); font-size: 18px; }
.smp-app footer { max-width: 1180px; margin: 0 auto 32px; padding: 16px 20px; border: 1px dashed #a3905d; border-radius: 12px; background: #fff7df88; color: #665f4d; font-size: 13px; }

@media (max-width: 780px) {
  .smp-gate { padding: 12px; }
  .smp-gate-card { padding: 24px 18px; }
  .smp-gate-card h1 { font-size: 40px; }
  .smp-topbar { flex-wrap: wrap; padding: 10px 14px; }
  .smp-brand { width: 100%; justify-content: center; margin: 0; font-size: 14px; }
  .smp-points { margin-right: auto; }
  .smp-topbar > button { flex: 1; }
  .smp-hero { padding: 40px 18px 28px; grid-template-columns: 1fr; gap: 25px; text-align: center; }
  .smp-hero h1 { font-size: 66px; }
  .smp-ring { width: 165px; height: 165px; }
  .smp-ring strong { font-size: 48px; }
  .smp-cards { padding: 0 12px; grid-template-columns: 1fr; }
  .smp-category { padding: 14px; grid-template-columns: 60px 1fr 20px; gap: 12px; }
  .smp-cat-icon { width: 56px; height: 56px; font-size: 27px; }
  .smp-cat-body strong { font-size: 19px; }
  .smp-cat-body small { font-size: 11px; }
  .smp-item { grid-template-columns: 1fr; }
  .smp-omit-item, .smp-delete { margin: 0 8px 9px; justify-self: start; }
  .smp-drawer-foot { flex-wrap: wrap; font-size: 12px; }
  .smp-drawer-foot button { width: 100%; }
  .smp-custom-form { padding: 15px 18px; }
  .smp-custom-form > div { flex-direction: column; }
}
