:root{
  --forest:#173f32;--forest-2:#245c45;--leaf:#4b8964;--mint:#e9f2e9;--mint-2:#f3f7f1;
  --ink:#1c2b24;--muted:#718078;--line:#e1e9e1;--paper:#fff;--gold:#d49a43;--danger:#a84b42;
  --shadow:0 18px 48px rgba(24,55,39,.08)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#f5f7f3;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.55}
a{color:var(--forest-2)}
.topbar{min-height:72px;background:var(--forest);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100% - 1180px)/2));gap:20px;box-shadow:0 5px 24px #102e241c}
.brand{display:inline-flex;align-items:center;color:#fff;text-decoration:none;font-weight:850;letter-spacing:.09em;font-size:13px;white-space:nowrap}
.brand-icon{display:grid;place-items:center;width:34px;height:34px;margin-right:11px;border:1px solid #ffffff38;border-radius:11px;color:#e4c27e;font-size:18px;background:#ffffff0d}
.topbar nav{display:flex;align-items:center;gap:23px}.topbar nav a{color:#e8f0e9;text-decoration:none;font-size:13px;font-weight:650;transition:color .2s}.topbar nav a:hover{color:#e4c27e}.nav-user{color:#c4d7c9;font-size:13px}
.container{max-width:1180px;margin:42px auto;padding:0 22px}.container.narrow{max-width:850px}
.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.eyebrow{color:var(--leaf);font-weight:850;font-size:10px;letter-spacing:.2em;margin:0 0 9px;text-transform:uppercase}
h1{font-size:clamp(31px,4vw,45px);letter-spacing:-.05em;line-height:1.08;margin:0 0 10px;color:var(--forest)}h2{font-size:22px;letter-spacing:-.035em;margin:0 0 6px;color:var(--forest)}h3{font-size:17px;letter-spacing:-.02em;margin:0 0 3px;color:var(--ink)}
.muted{color:var(--muted);font-size:13px;margin:4px 0}
.progress-card,.settings-card,.auth-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:var(--shadow)}
.progress-card{position:relative;overflow:hidden;background:linear-gradient(112deg,#fff 0%,#f3f8f1 62%,#e7f0e4 100%);margin-bottom:30px;padding:27px 30px}
.progress-card:after{content:"";position:absolute;right:-32px;top:-90px;width:270px;height:270px;border:1px solid #8caf8a35;border-radius:50%;box-shadow:0 0 0 28px #8caf8a0c,0 0 0 58px #8caf8a0a;pointer-events:none}
.progress-top{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}.progress-number{font-size:48px;font-weight:900;color:var(--forest);line-height:1.12;letter-spacing:-.06em}.progress-number small{font-size:16px;color:var(--muted);font-weight:650;letter-spacing:0}.percent{font-size:29px;font-weight:900;color:var(--leaf);letter-spacing:-.04em}.progress-track{height:12px;background:#dfe9de;border-radius:30px;overflow:hidden;margin:18px 0 10px;position:relative;z-index:1}.progress-fill{height:100%;background:linear-gradient(90deg,#377c55,#9ebd72);border-radius:30px;box-shadow:0 0 14px #4e956055;transition:width .4s}.progress-card>.muted{position:relative;z-index:1}
.section-head{display:flex;justify-content:space-between;align-items:end;margin:29px 0 16px}.section-head .muted{margin-top:3px}
.peak-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.peak-card{display:flex;gap:15px;padding:19px;background:#fff;border:1px solid var(--line);border-radius:17px;min-width:0;transition:transform .18s,border-color .18s,box-shadow .18s}.peak-card:hover{transform:translateY(-2px);border-color:#c5d8c7;box-shadow:0 12px 26px #1d4c3210}.peak-card.is-done{border-color:#cbdccb;background:linear-gradient(135deg,#fff,#f8fcf7)}.peak-number{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:13px;background:var(--mint);color:var(--forest-2);font-weight:850;font-size:12px;border:1px solid #dce9dc}.peak-card.is-done .peak-number{background:#e3f1e4;color:#28734a;border-color:#d0e6d3}.peak-info{min-width:0;flex:1}.peak-info>p{font-size:12px;color:var(--muted);margin:2px 0 8px}.ascent-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:9px 0}.check{display:inline-flex;align-items:center;gap:5px;color:#28764c;font-weight:800}.check:before{content:"✓";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e1f1e4;font-size:11px}.note{background:#f1f6f0;padding:9px 11px;border-radius:10px;font-size:12px!important;color:#526258!important;border-left:3px solid #9fbea0}.add-details{margin-top:10px}.add-details summary{display:inline-flex;align-items:center;gap:6px;color:var(--forest-2);font-size:12px;font-weight:800;cursor:pointer;list-style:none;padding:7px 10px;border-radius:9px;background:#edf5ed}.add-details summary::-webkit-details-marker{display:none}.add-details summary:hover{background:#e2efe3}.ascent-form{margin-top:12px;display:grid;gap:10px}.ascent-form label,label{display:grid;gap:6px;font-size:12px;font-weight:750;color:#405348}
input,textarea{width:100%;border:1px solid #d8e2d9;border-radius:10px;padding:11px 12px;font:inherit;font-size:13px;background:#fff;color:var(--ink);transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus{outline:0;border-color:#79a785;box-shadow:0 0 0 3px #79a78522}
.btn{border:0;background:var(--forest-2);color:#fff;padding:12px 19px;border-radius:11px;font-weight:800;font-size:13px;cursor:pointer;transition:background .2s,transform .2s,box-shadow .2s;box-shadow:0 5px 12px #245c4520}.btn:hover{background:#34734f;transform:translateY(-1px);box-shadow:0 8px 18px #245c4528}.btn.small{padding:9px 13px;font-size:12px;width:max-content}.link-button{border:0;background:none;padding:0;color:var(--forest-2);font-weight:750;cursor:pointer;font-size:12px}.link-button.danger{color:var(--danger)}.inline-form{display:inline}
.settings-card{margin-top:28px}.visibility-form{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:15px}.radio-label{display:flex;align-items:center;gap:7px;font-weight:600}.radio-label input{width:auto;accent-color:var(--forest-2)}
.notice,.alert{padding:12px 15px;border-radius:12px;margin:15px 0;font-size:13px;border:1px solid transparent}.notice{background:#eaf5eb;color:#25633e;border-color:#d7ead9}.alert{background:#fff0ed;color:#9b3d32;border-color:#f5d8d2}
/* Logowanie i rejestracja */
.auth-page{background:radial-gradient(ellipse at 15% 15%,#e1eee0 0,transparent 38%),linear-gradient(135deg,#f4f7f2,#eaf1e9);min-height:100vh;position:relative;overflow-x:hidden}.auth-page:before{content:"";position:fixed;inset:auto 0 0;height:34vh;pointer-events:none;opacity:.12;background:linear-gradient(145deg,transparent 48%,#6d9476 49% 60%,transparent 61%),linear-gradient(35deg,transparent 40%,#789b7d 41% 58%,transparent 59%);background-size:440px 260px,520px 300px;background-position:left bottom,right bottom;background-repeat:repeat-x}
.auth-wrap{max-width:1120px;margin:58px auto 40px;display:grid;grid-template-columns:1.1fr .9fr;gap:72px;align-items:center;padding:0 24px;position:relative;z-index:1}.hero{padding:28px 0}.hero h1{font-size:clamp(46px,6vw,72px);color:var(--forest);letter-spacing:-.065em}.hero>p:not(.eyebrow){max-width:490px;color:#607168;font-size:16px;line-height:1.8}.hero-stats{display:flex;gap:35px;margin-top:34px;color:#66766c;font-size:12px}.hero-stats span{display:block}.hero-stats b{display:block;font-size:29px;color:var(--forest);letter-spacing:-.04em}.auth-card{padding:31px;border-radius:23px;box-shadow:0 24px 70px #183d2c14}.auth-card h2{margin-top:24px;font-size:24px}.auth-card form{display:grid;gap:16px;margin-top:22px}.auth-card .btn{width:100%;margin-top:5px;padding:14px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);padding-bottom:12px}.tabs a{color:var(--muted);text-decoration:none;font-weight:750;font-size:13px}.tabs a.active{color:var(--forest);border-bottom:3px solid var(--leaf);padding-bottom:12px;margin-bottom:-15px}
footer{text-align:center;color:#89968e;font-size:11px;padding:34px 15px;position:relative;z-index:1}
@media(max-width:760px){.auth-wrap{grid-template-columns:1fr;gap:12px;margin:22px auto}.hero{padding:20px 0 8px}.hero h1{font-size:46px}.hero>p:not(.eyebrow){font-size:14px}.hero-stats{margin-top:18px;gap:24px}.peak-grid{grid-template-columns:1fr}.container{margin:25px auto}.topbar{padding:0 15px;min-height:62px}.topbar nav{gap:12px}.brand{font-size:10px;letter-spacing:.06em}.brand-icon{width:30px;height:30px;margin-right:8px}.nav-user{display:none}.progress-card,.settings-card,.auth-card{padding:19px}.progress-card:after{right:-140px}.progress-number{font-size:42px}.percent{font-size:25px}.visibility-form{align-items:flex-start;flex-direction:column}.page-heading{margin-bottom:18px}}
@media(max-width:390px){.topbar nav{gap:9px}.topbar nav a{font-size:11px}.brand{font-size:9px}.hero h1{font-size:40px}}

/* Galerie zdjęć ze szczytów */
.ascent-form input[type=file]{padding:9px;background:#f8faf7;font-size:12px}
.photo-gallery{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 8px}
.photo-thumb{position:relative;width:92px;height:78px;border-radius:10px;overflow:hidden;background:#e8eee8;border:1px solid var(--line)}
.photo-thumb>a,.profile-gallery>a{display:block;width:100%;height:100%}
.photo-thumb img,.profile-gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s}
.photo-thumb:hover img,.profile-gallery a:hover img{transform:scale(1.05)}
.photo-delete{position:absolute;right:3px;bottom:3px;background:#ffffffed;border-radius:6px;padding:2px 5px}
.photo-delete .link-button{font-size:10px}
.photo-add{margin-top:8px}
.profile-gallery{margin-top:13px}
.profile-gallery>a{width:112px;height:90px;border-radius:11px;overflow:hidden;border:1px solid var(--line)}
@media(max-width:420px){.photo-thumb{width:78px;height:68px}.profile-gallery>a{width:calc(33.333% - 7px);height:78px}}
.photo-visibility{border:1px solid rgba(0,0,0,.12);border-radius:10px;padding:9px 11px;margin:8px 0 12px;display:flex;flex-direction:column;gap:7px;width:100%;box-sizing:border-box}
.photo-visibility legend{font-size:14px;font-weight:700;padding:0 5px}
.photo-visibility .radio-label{font-size:13px;font-weight:500;display:flex;align-items:center;gap:7px;cursor:pointer}
.photo-visibility .radio-label input{width:auto;margin:0;accent-color:var(--forest-2)}
.photo-limit{font-size:13px;margin:8px 0}

.photo-privacy-label{display:inline-block;font-size:11px;font-weight:600;margin-top:4px;padding:2px 6px;border-radius:5px;background:rgba(0,0,0,.06)}

.photo-visibility-edit{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px}.photo-privacy-label{font-size:11px;display:inline-flex;align-items:center;gap:4px}.photo-privacy-label select{font-size:11px;padding:2px 4px;max-width:95px}.photo-visibility-edit .link-button{font-size:11px}

/* Parametry przejścia */
.metrics-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.metrics-summary{display:flex;flex-direction:column;gap:5px;margin:10px 0;padding:10px 11px;background:#f2f6f2;border:1px solid #e3ebe2;border-radius:10px;font-size:11px;color:#536258}
.metrics-summary .metric-line{display:block;width:100%;white-space:normal;line-height:1.5}
.metrics-summary b{color:#31483a}
.overall-summary{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px 22px;margin:-12px 0 28px;box-shadow:var(--shadow)}
.overall-summary-heading h2{font-size:18px;margin:0 0 3px;color:var(--forest)}
.overall-summary-heading .muted{font-size:12px;margin:0 0 12px}
.overall-metrics{display:grid;grid-template-columns:1fr;gap:6px}
.overall-metric{display:block;padding:7px 10px;border-radius:9px;background:#f4f7f3;font-size:12px;color:#536258;line-height:1.5}
.overall-metric strong{color:var(--forest-2);font-size:13px;white-space:normal}
@media(max-width:520px){.overall-summary{padding:17px;margin:-8px 0 24px}}
.metrics-edit{margin:7px 0 10px}
.metrics-edit .ascent-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.metrics-edit .ascent-form button{align-self:end}
@media(max-width:520px){.metrics-fields,.metrics-edit .ascent-form{grid-template-columns:1fr}.metrics-summary{gap:6px 9px}}

/* Motyw Kolekcjoner szczytow — ciemny grafit i zloto z dostarczonego logo */
:root{
  --forest:#f2f0eb;
  --forest-2:#d5a044;
  --leaf:#e18d3a;
  --mint:#41484c;
  --mint-2:#343a3e;
  --ink:#f1f0ec;
  --muted:#b5bdc1;
  --line:#4b5358;
  --paper:#32383c;
  --gold:#d5a044;
  --danger:#ed8c7e;
  --shadow:0 18px 48px rgba(0,0,0,.28);
}
html,body{background:#272b2e;color:var(--ink)}
a{color:#e6a548}
.topbar{background:#262A2D;border-bottom:1px solid #41484c;box-shadow:0 5px 24px rgba(0,0,0,.28)}
.brand{display:flex;align-items:center;gap:12px;color:#fff;font-size:12px;letter-spacing:.1em}
.brand-logo{display:block;width:auto;height:64px;max-width:122px;object-fit:contain;border-radius:0;flex:0 0 auto}
.topbar nav a{color:#e4e5e2}
.topbar nav a:hover{color:#e6a548}
.nav-user{color:#f0c06d!important;font-weight:800!important;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.container{color:var(--ink)}
h1,h2,h3{color:#f2f0eb}
.eyebrow{color:#e6a548}
.muted{color:#b5bdc1}
.progress-card,.settings-card,.auth-card,.account-panel{background:#32383c;border:1px solid #4b5358;box-shadow:var(--shadow)}
.progress-card{background:linear-gradient(112deg,#333a3e 0%,#30363a 62%,#3b4145 100%)}
.progress-card:after{border-color:#d5a04435;box-shadow:0 0 0 28px #d5a0440c,0 0 0 58px #d5a0440a}
.progress-number{color:#f2f0eb}
.progress-number small{color:#b5bdc1}
.percent{color:#e6a548}
.progress-track{background:#4a5155}
.progress-fill{background:linear-gradient(90deg,#a57523,#e18d3a);box-shadow:0 0 14px #d8943d55}
.overall-summary{background:#32383c;border-color:#4b5358;box-shadow:var(--shadow)}
.overall-summary-heading h2{color:#f2f0eb}
.overall-metric{background:#3b4246;color:#d0d4d5}
.overall-metric strong{color:#f0b75b}
.peak-card{background:#32383c;border-color:#4b5358}
.peak-card:hover{border-color:#bd8a3c;box-shadow:0 12px 26px rgba(0,0,0,.25)}
.peak-card.is-done{border-color:#79613c;background:linear-gradient(135deg,#353b3f,#303639)}
.peak-number{background:#41484c;color:#f0c06d;border-color:#555e63}
.peak-card.is-done .peak-number{background:#61491f;color:#ffd17a;border-color:#8b682e}
.peak-info>p{color:#b5bdc1}
.check{color:#f0b75b}
.check:before{background:#5a4729;color:#ffd17a}
.note{background:#3b4246;color:#d0d4d5!important;border-left-color:#d5a044}
.add-details summary{color:#f3bd68;background:#474039}
.add-details summary:hover{background:#554638}
.ascent-form label,label{color:#e2e3df}
input,textarea{background:#252a2d;border-color:#515a5f;color:#f2f0eb}
input:focus,textarea:focus{border-color:#d5a044;box-shadow:0 0 0 3px #d5a04425}
input::placeholder,textarea::placeholder{color:#899398}
.btn{background:#b7832d;color:#211f1b;box-shadow:0 5px 12px rgba(0,0,0,.22)}
.btn:hover{background:#e09a3c;color:#1e1e1b;box-shadow:0 8px 18px rgba(0,0,0,.3)}
.link-button{color:#e6a548}
.link-button.danger{color:#ed8c7e}
.settings-card{color:var(--ink)}
.radio-label{color:#e1e2df}
.radio-label input{accent-color:#d5a044}
.notice{background:#34443d;color:#bce2c8;border-color:#4b6858}
.alert{background:#4a3533;color:#ffc2b8;border-color:#80534c}
.auth-page{background:radial-gradient(ellipse at 15% 15%,#4c4130 0,transparent 38%),linear-gradient(135deg,#272b2e,#303639);}
.auth-page:before{opacity:.07;background:linear-gradient(145deg,transparent 48%,#d5a044 49% 60%,transparent 61%),linear-gradient(35deg,transparent 40%,#e18d3a 41% 58%,transparent 59%)}
.hero h1{color:#f2f0eb}
.hero>p:not(.eyebrow){color:#c2c7c8}
.hero-stats{color:#b5bdc1}
.hero-stats b{color:#e6a548}
.auth-card{background:#32383c;border-color:#4b5358}
.tabs{border-bottom-color:#4b5358}
.tabs a{color:#b5bdc1}
.tabs a.active{color:#f0b75b;border-bottom-color:#d5a044}
footer{color:#969fa3}
.photo-thumb{background:#3b4246;border-color:#4b5358}
.photo-visibility{background:#343a3e;border-color:#596166}
.photo-visibility legend,.photo-visibility .radio-label{color:#e1e2df}
.photo-visibility .radio-label input{accent-color:#d5a044}
.photo-privacy-label{background:#484f53;color:#e2e3df}
.photo-delete{background:#252a2ded}
.photo-limit{color:#b5bdc1}
.metrics-summary{background:#3b4246;border-color:#4b5358;color:#d0d4d5}
.metrics-summary b{color:#f0b75b}
.account-page{max-width:760px}
.account-intro{margin-bottom:22px}
.account-panel{border-radius:18px;padding:22px 24px;margin:18px 0}
.account-panel h2{margin-bottom:4px}
.account-form{display:grid;gap:15px;margin-top:18px}
.account-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.account-field-wide{grid-column:1/-1}
.account-form .btn{width:max-content;min-width:180px;margin-top:3px}
.password-panel{margin-top:22px}
.account-back{margin-top:24px}
.account-back a{color:#e6a548;text-decoration:none;font-weight:700}
.account-back a:hover{text-decoration:underline}
@media(max-width:760px){
  .brand{font-size:9px;letter-spacing:.06em;gap:8px}
  .brand-logo{width:auto;height:54px;max-width:102px}
  .nav-user{display:inline-block;max-width:82px}
  .account-panel{padding:18px}
}
@media(max-width:520px){.account-fields{grid-template-columns:1fr}.account-field-wide{grid-column:auto}.account-form .btn{width:100%}}
.topbar{background:#262A2D}
@media(max-width:760px){
  .topbar{gap:10px}
  .brand{font-size:8px;letter-spacing:.045em;gap:7px}
  .brand-logo{width:auto;height:48px;max-width:91px}
  .topbar nav{gap:8px}
  .topbar nav a{font-size:10px}
  .nav-user{max-width:68px}
}
@media(max-width:370px){
  .brand span{display:none}
  .brand-logo{width:auto;height:44px;max-width:83px}
  .topbar nav{gap:6px}
}

/* Tabelaryczna kronika zdobytych szczytow */
.section-head{flex-wrap:wrap;gap:12px;align-items:center}
.view-toggle{display:inline-flex;flex-wrap:wrap;gap:12px;padding:7px;background:#32383c;border:1px solid #4b5358;border-radius:12px}
.view-toggle-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:8px;color:#d2d7d7;text-decoration:none;font-size:12px;font-weight:750;white-space:nowrap;transition:background .18s,color .18s}
.view-toggle-link:hover{color:#f0bd68;background:#41484c}
.view-toggle-link.active{background:#b7832d;color:#211f1b;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.ascent-table-wrap{width:100%;overflow-x:auto;border:1px solid #4b5358;border-radius:15px;background:#32383c;box-shadow:var(--shadow);margin-bottom:28px;-webkit-overflow-scrolling:touch}
.ascent-table{width:100%;min-width:1080px;border-collapse:separate;border-spacing:0;color:#e6e7e4;font-size:12px}
.ascent-table th,.ascent-table td{padding:12px 13px;text-align:left;white-space:nowrap;border-bottom:1px solid #4b5358}
.ascent-table thead th{position:sticky;top:0;background:#3b4246;color:#f0bd68;font-weight:800;z-index:1}
.ascent-table .table-sort{display:inline-flex;align-items:center;gap:7px;padding:3px 0;border:0;background:transparent;color:inherit;font:inherit;font-weight:800;text-align:left;cursor:pointer;white-space:nowrap}
.ascent-table .table-sort:hover{color:#fff0c9}
.ascent-table .table-sort span{display:inline-block;min-width:10px;color:#e18d3a;font-size:13px}
.ascent-table tbody tr:nth-child(even){background:#2e3438}
.ascent-table tbody tr:hover{background:#41484c}
.ascent-table tbody td{color:#e0e3e1}
.ascent-table tbody td strong{color:#fff;font-size:12px}
.ascent-table tfoot .table-total-row{background:#494137}
.ascent-table tfoot .table-total-row td,.ascent-table tfoot .table-total-row th{border-top:2px solid #b7832d;border-bottom:0;color:#f4c675;font-weight:900}
.ascent-table .table-empty{text-align:center;padding:24px;color:#b5bdc1}
@media(max-width:760px){.section-head{align-items:flex-start}.view-toggle{width:100%;gap:10px}.view-toggle-link{flex:1}.ascent-table th,.ascent-table td{padding:11px 10px}}
