:root{--bg:#f1f3f4;--card:#fff;--black:#191d1a;--green:#248746;--lime:#40be70;--mint:#e9f5ec;--text:#1d211e;--muted:#858c86;--line:#e8ece9;--danger:#d4474a;--shadow:0 1px 2px rgba(10,20,14,.025)}
*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;-webkit-font-smoothing:antialiased}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #0f8f4e;outline-offset:2px}.sprite{position:absolute;overflow:hidden;width:0;height:0}.tophead{background:#222523;color:#fff;padding:calc(13px + env(safe-area-inset-top,0px)) 22px 15px}.headcontent{max-width:740px;margin:auto;text-align:center}.brandtag{font-size:10px;font-weight:800;letter-spacing:1.5px;display:flex;align-items:center;justify-content:center;gap:6px;margin:4px 0 16px;color:#f2fff7}.branddot{background:#55dc86;width:8px;height:8px;border-radius:50%}.brandmuted{color:#c0cbc3}.tophead h1{font-size:17px;margin:0;font-weight:750;letter-spacing:.6px;padding-bottom:1px}
.tabs{display:flex;align-items:stretch;justify-content:space-around;background:#fff;box-shadow:0 1px 0 #e7eae8;max-width:none;padding:0 max(0px,calc((100vw - 740px)/2));height:57px}.tab{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;flex:1;border:0;background:#fff;color:#a0a5a0;font-size:12px;font-weight:800;letter-spacing:.15px;padding:10px 2px}.tab.active{color:#191c1a}.tab.active:after{content:"";height:3px;background:#191d1a;position:absolute;bottom:0;left:3%;right:3%;border-radius:3px 3px 0 0}.countbubble{border-radius:20px;background:#dcece1;color:#19703e;font-size:10px;padding:2px 5px}.content{max-width:740px;margin:auto;padding:0 16px 95px}.weeknav{display:flex;align-items:center;justify-content:space-between;margin:18px 0 15px;gap:12px}.weekmiddle{text-align:center;min-width:0}.weekname{font-size:15px;font-weight:800;letter-spacing:-.2px}.weekhint{font-size:11px;display:block;color:#89918b;margin-top:4px}.weekarrow{height:34px;width:38px;border:1px solid #dde3df;background:#fff;border-radius:11px;display:grid;place-items:center;color:#2e3730}.weekarrow svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:2}.weekarrow:first-child svg{transform:rotate(180deg)}.tabpane[hidden]{display:none!important}
.card{background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:18px;margin-bottom:12px}.balancecard{padding:20px 20px 17px}.labelrow,.goal-heading,.goal-bottom,.headingrow{display:flex;justify-content:space-between;align-items:center;gap:12px}.captionlabel{font-size:15px;display:flex;align-items:center;gap:8px;font-weight:800}.labelicon{width:22px;height:22px;fill:none;stroke:var(--green);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.pill{color:#2f9456;background:#e9f6ed;padding:6px 8px;font-weight:800;font-size:9px;border-radius:9px;letter-spacing:.35px}.netnumber{font-size:clamp(36px,8.7vw,51px);font-weight:850;letter-spacing:-2px;line-height:1.1;color:#2c8a4e;margin:20px 0 7px;font-variant-numeric:tabular-nums}.netnote{font-size:11px;color:#7c8780;line-height:1.5;margin:0}.thinrule{border-top:1px solid var(--line);margin:19px 0 17px}.goal-heading{font-weight:800;font-size:13px}.goal-heading>span:first-child{display:flex;align-items:center;gap:7px}.goal-heading>span:last-child{color:var(--green);font-size:11px}.mini-svg{width:17px;height:17px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.bar{height:12px;border-radius:60px;background:#e9edea;overflow:hidden;margin-top:13px}.barfill{height:100%;width:0;background:linear-gradient(90deg,#1e9c5b,#69df85);border-radius:60px;transition:width .24s ease}.goal-bottom{margin:8px 0 17px;color:#87918b;font-size:11px}.goalform{background:#f2f6f3;border-radius:12px;padding:12px}.goalform label,.field label,.formcard>label{display:block;font-size:12px;color:#5c6d61;font-weight:750;margin-bottom:7px}.inline-field{display:flex;gap:9px;align-items:stretch}.inline-field input{width:100%;min-width:0}.goalform input,.field input,.formcard select,.formcard>input,.inline-field input{border:1px solid #e3e8e4;background:#fff;border-radius:11px;color:#252c27;font-size:16px;padding:13px 12px;min-height:46px;outline:none;max-width:100%;width:100%}.goalform input:focus,.field input:focus,.formcard select:focus,.inline-field input:focus{border-color:#6bc88c;box-shadow:0 0 0 3px #6bc88c18}.btn{display:flex;gap:5px;align-items:center;justify-content:center;min-height:45px;border:0;border-radius:11px;padding:10px 14px;font-size:12px;font-weight:800;white-space:nowrap}.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.blackbtn{background:var(--black);color:#fff;flex-shrink:0}.greenbtn{background:#2f9955;color:#fff}.softbtn{background:#e6f4e9;color:#237f46}.btn:active{transform:scale(.99)}
.statgrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.statgrid .card{margin-bottom:0}.stat{min-height:107px;padding:15px;display:flex;flex-direction:column}.stat span{font-size:12px;color:#556159;font-weight:750}.stat strong{font-size:clamp(19px,4.8vw,25px);color:#1c2420;margin:14px 0 4px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.stat small{margin-top:auto;color:#9ca39e;font-size:10px}.stat .redtext{color:#c83a48}.headingrow{margin:24px 0 12px;align-items:baseline}.headingrow h2{font-size:17px;letter-spacing:-.35px;margin:0;font-weight:850}.headingrow span{color:#919a93;font-size:11px}.formcard{display:flex;flex-direction:column;gap:12px}.fieldgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field{min-width:0}.dualbuttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.helpnote{font-size:11px;line-height:1.65;margin:0;color:#888f89}.formcard select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#6c8173 50%),linear-gradient(135deg,#6c8173 50%,transparent 50%);background-position:calc(100% - 19px) 22px,calc(100% - 13px) 22px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:34px}
.dailycard,.loglist{padding:4px 15px}.dayrow{display:flex;align-items:center;gap:8px;border-bottom:1px solid #eef0ee;padding:12px 0}.dayrow:last-child{border-bottom:0}.dayleft{flex:1;min-width:0}.dayname{font-size:13px;font-weight:800}.daydate{color:#9aa39b;font-size:10px;margin-top:4px}.dayvalue{text-align:right;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}.dayoff{display:flex;align-items:center;gap:3px;font-size:10px;color:#9aa39b}.dayoff input{accent-color:#2a9b58;width:15px;height:15px}.editicon,.smallbtn{background:#f0f5f1;color:#258747;border:0;border-radius:8px;width:30px;height:30px;display:grid;place-items:center;flex-shrink:0}.editicon svg,.smallbtn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.danger{background:#fff0f0;color:#d44b4b}.breakdown{padding:5px 17px}.breakrow{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf0ed;font-size:12px}.breakrow:last-child{border-bottom:0}.breakrow span{color:#7b847d}.breakrow strong{font-size:13px}.grandtotal{font-size:15px;align-items:center}.grandtotal span{color:#19251c;font-weight:850}.grandtotal strong{color:#2c9653;font-size:19px;font-variant-numeric:tabular-nums}.projection{background:#e8f4eb;border-radius:14px;color:#246f40;font-size:12px;line-height:1.65;padding:15px 17px;font-weight:650}.logrow{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 0;border-bottom:1px solid #eef0ee}.logrow:last-child{border-bottom:0}.logtitle{font-size:13px;font-weight:800;overflow-wrap:anywhere}.logsmall{font-size:10px;color:#98a19a;margin-top:5px}.logright{display:flex;align-items:center;gap:9px;flex-shrink:0}.logamount{font-size:13px;font-weight:850;font-variant-numeric:tabular-nums}.logamount.minus{color:var(--danger)}.empty{padding:19px 0;text-align:center;color:#a0a8a2;font-size:12px}
.debthero{padding:23px 20px}.debtsum{font-size:40px;letter-spacing:-1.8px;color:#d0424a;font-weight:850;margin:15px 0 9px;font-variant-numeric:tabular-nums}.debthero p{color:#818c83;font-size:12px;line-height:1.65;margin:0}.infobar{border-radius:13px;background:#e9f5ed;color:#31764a;font-size:12px;display:flex;align-items:flex-start;gap:9px;padding:15px;line-height:1.6}.infobar svg{flex-shrink:0;margin-top:1px}.historycard{padding:10px 16px}.historyrow{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;border-top:1px solid #e9eeea;padding:15px 0}.historyrow>span:first-child{flex:1;min-width:0}.historyrow strong{display:block;font-size:13px}.historyrow small{display:block;font-size:10px;color:#96a19a;margin-top:6px}.historyrow b{font-size:13px;color:#31884c;font-variant-numeric:tabular-nums}.historyrow svg{width:16px;height:16px;fill:none;stroke:#89988d;stroke-width:2}.divider{border-top:1px solid var(--line);margin:4px 0}.toast{position:fixed;bottom:calc(25px + env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%,22px);opacity:0;pointer-events:none;z-index:10;background:#222c25;color:white;border-radius:12px;padding:12px 16px;font-weight:700;font-size:12px;text-align:center;max-width:90vw;box-shadow:0 7px 35px #0004;transition:opacity .2s,transform .2s}.toast.show{transform:translate(-50%,0);opacity:1}footer{text-align:center;padding:30px 5px;color:#949c96;font-size:10px;line-height:1.8}
@media(min-width:640px){.content{padding:0 20px 95px}.balancecard{padding:25px}.card{border-radius:19px}.weeknav{margin-top:25px}.statgrid{grid-template-columns:repeat(4,1fr)}.stat{padding:15px 12px}.stat strong{font-size:19px}.stat span{font-size:11px}}@media(max-width:370px){.content{padding:0 11px 90px}.card{padding:14px}.stat{padding:12px}.netnumber{font-size:35px}.fieldgrid{gap:6px}.inline-field{gap:5px}.btn{padding:9px;font-size:11px}.dayvalue{font-size:12px}.dayrow{gap:5px}}

/* v4: sade, kısa ana ekran ve altta sabit net gösterimi */
.content{padding-bottom:calc(138px + env(safe-area-inset-bottom,0px))}
.tophead{padding-bottom:12px}.brandtag{margin-bottom:9px}.tabs{height:49px}.weeknav{margin:12px 0 12px}
.card{border-radius:15px;margin-bottom:10px}
.goalcard{padding:15px 17px 13px}
.goal-toprow,.goalline{display:flex;align-items:center;justify-content:space-between;gap:10px}
.goalcard .captionlabel{font-size:13px}.goalcard .labelicon{width:19px;height:19px}
.goaledit{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:10px;padding:8px 10px;background:var(--mint);color:#237b45;font-weight:800;font-size:12px;white-space:nowrap}
.goaledit svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.goalline{margin-top:13px}.goalline strong{font-size:21px;font-weight:850;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.goalline>span{color:#218c4b;font-size:12px;font-weight:800}
.goalcard .bar{margin-top:10px;height:10px}.goal-remaining{color:#7c8b80;font-size:11px;font-weight:700;margin-top:9px}
.statgrid{gap:8px}.stat{min-height:79px;padding:12px 13px}.stat span{font-size:11px}.stat strong{margin:10px 0 0;font-size:clamp(18px,4.5vw,23px)}.stat small{display:none}
.headingrow{margin:16px 0 9px}.headingrow h2{font-size:15px}.formcard{gap:9px;padding:14px}.formcard select,.field input{min-height:41px;padding:9px 11px}.btn{min-height:42px}.helpnote{line-height:1.4;font-size:10px}
.projection{margin:12px 0 0;padding:11px 13px;font-size:11px}.projection[hidden]{display:none}
.foldsection{background:#fff;border-radius:14px;margin-top:10px;overflow:hidden;box-shadow:var(--shadow)}
.foldsection summary{list-style:none;min-height:53px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:7px;cursor:pointer;font-size:13px;font-weight:830}
.foldsection summary::-webkit-details-marker{display:none}.foldsection summary>span{display:flex;align-items:center;gap:8px}.foldsection summary .foldright{font-size:10px;color:#859288;font-weight:600;white-space:nowrap;gap:7px}
.foldicon{width:18px;height:18px;fill:none;stroke:#288b4d;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.foldchevron{width:14px;height:14px;fill:none;stroke:#828d85;stroke-width:2;transform:rotate(90deg);transition:transform .16s}
.foldsection[open] .foldchevron{transform:rotate(-90deg)}
.foldsection>.card{border-radius:0;box-shadow:none;margin:0;border-top:1px solid var(--line)}
.netdock{position:fixed;bottom:0;left:0;right:0;z-index:8;background:#151a17;color:white;box-shadow:0 -8px 30px rgba(13,30,17,.16);padding:12px max(18px,env(safe-area-inset-left,0px)) calc(13px + env(safe-area-inset-bottom,0px));border-top:2px solid #3cd579}
.netdockinner{max-width:700px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px}
.netdocklabel{display:flex;align-items:center;gap:7px;font-size:10px;color:#d5e3d9;letter-spacing:.3px;font-weight:850;line-height:1.3}
.netdot{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#4ad880}
.netdock strong{font-size:clamp(22px,6.4vw,31px);color:#61e790;font-weight:850;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.netdock strong.negative{color:#ff878a}
.goaldialog{border:0;border-radius:23px;padding:23px 20px 18px;width:calc(100% - 32px);max-width:390px;box-shadow:0 16px 75px rgba(0,0,0,.28);color:#1c261e}
.goaldialog::backdrop{background:rgba(12,22,15,.64);backdrop-filter:blur(3px)}
.dialoghead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.dialogoverline{font-size:10px;color:#389357;font-weight:850;letter-spacing:1px}
.dialoghead h2{margin:5px 0 0;font-size:21px;letter-spacing:-.5px}.dialogclose{border:0;width:32px;height:32px;border-radius:50%;background:#f0f4f1;color:#333;flex:none;font-size:15px}
.goaldialog .goalform{padding:0;background:transparent;display:flex;flex-direction:column;gap:10px}.goaldialog .goalform label{margin:0;font-size:12px;color:#66776a}
.goaldialog input{min-height:53px;width:100%;padding:11px 14px;border-radius:12px;border:1px solid #d8e2d9;font-size:19px;outline:none}
.goaldialog input:focus{border-color:#2f9955;box-shadow:0 0 0 3px #2f995522}
.dialogsave{font-size:14px;margin-top:5px;min-height:48px}.cleargoal{background:none;color:#75887b;border:none;font-size:12px;font-weight:700;margin-top:4px;padding:10px}
.toast{bottom:calc(85px + env(safe-area-inset-bottom,0px));z-index:20}
@media(min-width:640px){.content{padding-bottom:calc(138px + env(safe-area-inset-bottom,0px))}.statgrid{grid-template-columns:repeat(4,1fr)}.stat{min-height:92px}.stat strong{font-size:19px}}
@media(max-width:360px){.netdocklabel{font-size:9px}.netdock strong{font-size:21px}.goalcard{padding:13px}.stat strong{font-size:17px}}

/* v5 - iPhone clear, solid status/header area (no translucent scroll edge). */
html { background: #1d221f; }
.tophead {
  background: #1d221f;
  background-image: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  filter: none;
  isolation: isolate;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: 15px;
}
.headcontent, .tophead h1, .brandtag, .brandmuted {
  filter: none;
  -webkit-filter: none;
  text-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brandtag {
  color: #f2fff7;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 1.2px;
  margin: 0 0 12px;
}
.tophead h1 { color: #fff; line-height: 1.2; }

/* v6: single daily entry editor - tap a weekday for gross + cash + one Save. */
.dayentry{border-bottom:1px solid #edf0ed}
.dayentry:last-child{border-bottom:0}
.dailycard{padding:0 15px}
.daytrigger{border:0;background:transparent;color:var(--text);width:100%;display:flex;align-items:center;gap:10px;min-height:61px;padding:11px 0;text-align:left;cursor:pointer}
.daytrigger .dayleft{display:flex;flex:1;flex-direction:column;gap:2px}
.daytrigger .dayname{font-size:13px;font-weight:820}
.daytrigger .daydate{font-size:10px;color:#8a998e}
.dayfigures{display:flex;flex-direction:column;gap:4px;text-align:right;color:#84938a;font-size:10px;white-space:nowrap}
.dayfigures b{font-size:12px;color:#243129;font-variant-numeric:tabular-nums;font-weight:800;margin-left:5px}
.daychevron{width:16px;height:16px;flex:none;fill:none;stroke:#7c8e80;stroke-width:2;transition:transform .2s ease}
.daytrigger[aria-expanded="true"] .daychevron{transform:rotate(90deg)}
.dayeditor{padding:4px 0 15px;display:flex;flex-direction:column;gap:11px}
.dayeditor[hidden]{display:none}
.dayeditor .fieldgrid{gap:10px}
.dayeditor .field label{display:block;font-size:11px;font-weight:750;color:#53675a;margin-bottom:6px}
.dayeditor input[type="text"]{width:100%;min-width:0;border:1px solid #dfe7e1;background:#fff;border-radius:10px;color:var(--text);font-size:16px;min-height:44px;padding:10px 9px}
.dayeditor input[type="text"]:focus{outline:2px solid #49b771;outline-offset:0}
.leavecheck{display:flex;align-items:center;gap:8px;font-size:12px;color:#506b57;font-weight:700}
.leavecheck input{accent-color:#2f9955;width:18px;height:18px}
.daysave{width:100%;font-size:14px;min-height:46px}
.dayeditor .helpnote{font-size:10px;line-height:1.5;color:#829187}
@media(max-width:360px){.dailycard{padding:0 10px}.daytrigger{gap:5px}.dayfigures b{font-size:11px}}


/* v8: minimal income screen, no bottom fixed net, no stat boxes, no cash log fold */
.content{padding-bottom:calc(34px + env(safe-area-inset-bottom,0px))}
.goalcard{padding:18px 17px 14px;margin-bottom:12px}
.goalline strong{font-size:clamp(26px,8vw,34px);letter-spacing:-1.2px}
.goalline>span{font-size:15px}
.goal-remaining{font-size:12px}
.projection{margin:0 0 12px;padding:13px 15px;font-size:12px}
.statgrid,.netdock,#cashFold{display:none !important}
.toast{bottom:calc(24px + env(safe-area-inset-bottom,0px));}
@media(min-width:640px){.content{padding-bottom:40px}}


/* v9: borçlar anasayfaya taşındı, projection kutusu kaldırıldı */
.tabs{grid-template-columns:1fr 1fr}
.projection{display:none !important}
.debtinline{background:#fff;border-top:1px solid var(--line);padding:14px}
.debtmini{margin:0 0 10px}
.debtmini.second{margin:14px 0 10px}
.debtmini h2{font-size:15px}
.debtmini span{font-size:12px;color:#91a097;font-weight:700}
.debtformmini{padding:0;background:transparent;box-shadow:none;border-radius:0}
.debtformmini .field input{background:#fff}
#debtLog{margin:0}
.foldsection summary .foldright span{font-size:10px;color:#859288;font-weight:700}

/* v11 – gerçek hesap ve lisans yönetimi */
[hidden]{display:none!important}
.tabs.hasAdmin{grid-template-columns:1fr 1fr 1fr}
.authGate{background:linear-gradient(155deg,#0f1913 0%,#192b20 55%,#102116 100%);min-height:100dvh;padding:calc(env(safe-area-inset-top,0px) + 35px) 18px calc(env(safe-area-inset-bottom,0px) + 38px);color:#fff;display:flex;align-items:flex-start;justify-content:center}
.authBox{max-width:440px;width:100%;margin:0 auto;background:#1b2720;border:1px solid #36513b;border-radius:24px;padding:27px 22px;box-shadow:0 22px 55px #0003}
.authLogo{width:66px;height:66px;border-radius:16px;object-fit:cover;display:block;margin:0 auto 17px}
.authLabel{text-align:center;color:#77e09a;font-weight:800;font-size:10px;letter-spacing:1.5px;margin-bottom:14px}
.authBox h1{font-size:26px;letter-spacing:-.7px;text-align:center;margin:4px 0 5px;color:white}
.authSub{color:#a9bfb0;font-size:12px;text-align:center;line-height:1.6;margin:3px 0 20px}
.authFields{display:flex;flex-direction:column;gap:12px}.authFields label{font-size:12px;font-weight:800;color:#cbded1;display:flex;flex-direction:column;gap:7px}
.authFields input{background:#273a2d;color:#f6fff9;border:1px solid #496550;border-radius:12px;padding:12px 13px;min-height:46px;font:inherit;font-size:16px;width:100%;outline:0;box-sizing:border-box}
.authFields input:focus{border-color:#68ec93;box-shadow:0 0 0 3px #47ba6927}.authFields input::placeholder{color:#92a699}
.authSubmit{background:#40d77b;color:#0f2518;border:0;border-radius:12px;min-height:48px;font-size:14px;font-weight:850;margin-top:7px}
.authSubmit:disabled{opacity:.55}.authLink{color:#83dda3;background:transparent;border:0;min-height:31px;font-weight:750;font-size:12px}
.authAlert{background:#49302b;border:1px solid #a35e54;color:#ffe9e4;padding:12px;border-radius:10px;font-size:12px;line-height:1.5;margin-bottom:13px}
.authBottom{font-size:10px;line-height:1.5;color:#839588;text-align:center;margin:22px 0 0}
.accountBody{padding:16px;background:#fff;border-top:1px solid #e7ece8}.accountInfo{font-size:12px;color:#75897b;display:flex;flex-direction:column;gap:5px;margin-bottom:13px;overflow-wrap:anywhere}.accountInfo strong{font-size:13px;color:#263329}
.compactForm{display:grid;gap:12px;margin:0 0 18px}.compactForm label{font-size:12px;font-weight:780;color:#4f6758;display:flex;flex-direction:column;gap:6px}.compactForm input,.adminFilters input,.adminFilters select{min-height:43px;border:1px solid #d9e5dc;border-radius:10px;padding:10px 12px;background:#fff;color:#152419;font-size:16px;width:100%;min-width:0}.compactForm h3{font-size:14px;margin:0}.accountFeedback{min-height:14px;font-size:12px}
.adminSummary{padding:18px}.adminTop{display:flex;align-items:center;justify-content:space-between;gap:10px}.adminTop h2{font-size:18px;margin:0}.adminTop p{font-size:10px;color:#8ca195;margin:5px 0 0}.adminTop .btn{width:auto;flex-shrink:0}.adminMetrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 0}.adminMetrics>div{background:#eef7f0;border-radius:11px;padding:12px 7px;display:flex;align-items:center;flex-direction:column;gap:4px}.adminMetrics strong{font-size:22px}.adminMetrics small{font-size:11px;color:#5c7b66}
.adminRows{padding:10px 14px;background:#fff;border-radius:13px}.adminEmpty{font-size:12px;color:#819187;padding:14px 3px}.adminFilters{display:flex;gap:8px;margin:15px 0}.adminFilters input{flex:1}.adminFilters select{width:132px;font-size:12px}.adminLicense{padding:13px 0;border-bottom:1px solid #edf0ee}.adminLicense:last-child{border-bottom:0}.adminLicenseHead,.adminEntry{display:flex;justify-content:space-between;gap:10px;align-items:start}.adminLicenseHead b{display:block;font-size:12px;word-break:break-all}.adminLicenseHead small,.adminEntry small{display:block;font-size:11px;color:#84968b;margin-top:7px}.licBadge{font-size:10px;border-radius:20px;padding:6px 10px;font-weight:780;white-space:nowrap;background:#ecf0ec;color:#6a796f}.licBadge.active{background:#e0f8e8;color:#158546}.licBadge.disabled{background:#ffe8e8;color:#b33939}.adminInfo{font-size:11px;line-height:1.6;color:#718178;margin-top:10px}.adminActions{display:flex;gap:8px;margin-top:12px}.adminActions .btn{flex:1;min-width:0;white-space:normal}.dangerButton{border:1px solid #ffd3d3;background:#ffebeb;color:#b63b3b}.adminEntry{align-items:center;padding:12px 0;border-bottom:1px solid #edf0ee}.adminEntry:last-child{border:0}.adminEntry .btn{width:auto;flex-shrink:0}
#adminPageCount{margin:12px 0}#showMoreLicenses{width:100%}
@media(max-width:380px){.authBox{padding:23px 16px}.adminFilters{flex-wrap:wrap}.adminFilters select{width:100%}.adminActions .btn{padding:10px 6px;font-size:10px}}

/* v13 - Hafta gezintisi sadece Haftalar listesinden, geçmis haftaya dönüs küçük bir bantta. */
.weeknav{display:none !important}
.pastweeknotice{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#e4f3e9;color:#216c3d;border-radius:12px;padding:11px 13px;margin:0 0 12px;font-size:12px}
.pastweeknotice button{background:#2e9555;color:#fff;border:0;border-radius:9px;padding:9px 11px;font-size:11px;font-weight:800;white-space:nowrap}
.pastweeknotice[hidden]{display:none!important}


/* v14: Kazançlar / Haftalar / Ayarlar (+ Yönetim for admins) */
.tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.tabs.hasAdmin { grid-template-columns:repeat(4,minmax(0,1fr)); }
.tabs .tab { min-width:0; font-size:11px; letter-spacing:0; padding:10px 3px; white-space:nowrap; }
@media(max-width:390px){ .tabs.hasAdmin .tab {font-size:10px; padding:10px 1px;} }
#pane-settings > .headingrow:first-child { margin-top:18px; }
#pane-settings .foldsection { margin-top:10px; }



/* v16: Uber-style minimal bottom icon navigation, edge-to-edge white strip. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tophead{padding:calc(12px + env(safe-area-inset-top,0px)) 18px 12px;background:#1d221f;min-height:0}
.brandtag{font-size:10px;letter-spacing:1.45px;line-height:1.5;margin:0;font-weight:800}
.content{padding-top:17px;padding-bottom:calc(98px + env(safe-area-inset-bottom,0px))}
.tabs,.tabs.hasAdmin{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  position:fixed;z-index:70;left:0;right:0;bottom:0;top:auto;
  width:100%;max-width:none;height:calc(66px + env(safe-area-inset-bottom,0px));
  transform:none;gap:0;box-sizing:border-box;
  padding:0 max(8px,calc((100vw - 640px)/2)) env(safe-area-inset-bottom,0px);
  border:0;border-top:1px solid #ececec;border-radius:0;
  background:#fff;box-shadow:0 -2px 12px rgba(10,20,15,.045);
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
.tabs.hasAdmin{grid-template-columns:repeat(4,minmax(0,1fr))}
.tabs .tab{
  min-width:0;min-height:55px;height:65px;padding:0;
  display:flex;align-items:center;justify-content:center;
  border:0;border-radius:0;background:transparent;
  color:#868686;box-shadow:none;flex:initial;
  -webkit-tap-highlight-color:transparent;
}
.tabs .tab.active{color:#111;background:transparent}
.tabs .tab.active::after,.tabs .tab.active:after{display:none!important;content:none!important}
.tabs .tabicon{display:block;width:27px;height:27px;flex-shrink:0;fill:currentColor;stroke:none;opacity:1}
.tabs .tab[data-tab="settings"] .tabicon{width:26px;height:26px}
.tabs .tab[data-tab="admin"] .tabicon{width:26px;height:26px}
.tabs .tab:active{opacity:.65;transform:none}
.tabs .tab:focus-visible{outline:2px solid #2e9555;outline-offset:-7px;border-radius:12px}
.toast{bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:80}
@media(min-width:640px){.content{padding-top:20px;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}}
@media(max-width:370px){.content{padding-top:13px;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}}


/* v17 - iPhone/Android: shorter bottom bar, icons lowered safely. */
:root { --bottom-nav-safe: env(safe-area-inset-bottom, 0px); }
.tabs,.tabs.hasAdmin {
  height:calc(48px + var(--bottom-nav-safe));
  padding-bottom:max(0px, calc(var(--bottom-nav-safe) - 12px));
  align-items:stretch;
}
.tabs .tab {
  height:100%;
  min-height:44px;
}
.content { padding-bottom:calc(76px + var(--bottom-nav-safe)); }
.toast { bottom:calc(62px + var(--bottom-nav-safe)); }
@media (min-width:640px){ .content { padding-bottom:calc(76px + var(--bottom-nav-safe)); } }
@media (max-width:370px){ .content { padding-bottom:calc(76px + var(--bottom-nav-safe)); } }


/* v19 - motorcycle startup and situational, non-repeating motivation */
.startup-splash{position:fixed;inset:0;z-index:300;background:#030605;color:#fff;display:flex;align-items:center;justify-content:center;padding:20px env(safe-area-inset-right,0px) 20px env(safe-area-inset-left,0px);box-sizing:border-box;opacity:1;transition:opacity .25s ease-out}
.startup-splash.is-leaving{opacity:0;pointer-events:none}
.startup-splash[hidden]{display:none!important}
.splash-center{width:min(100%,360px);display:flex;align-items:center;flex-direction:column;transform:translateY(-5%)}
.splash-track{width:240px;max-width:84vw;height:145px;position:relative;overflow:hidden}
.splash-motion{position:absolute;left:50%;top:5px;width:150px;height:110px;transform:translateX(-50%);animation:splash-ride 1.65s linear infinite}
.splash-bike{width:150px;height:98px;display:block;filter:drop-shadow(0 3px 12px rgba(50,224,105,.18))}
.splash-bike .bike-wheels{transform-origin:center}
.splash-wind{height:2px;position:absolute;right:100%;background:#67e993;border-radius:99px;opacity:0;animation:splash-streak 1s linear infinite}
.wind-one{top:40px;width:35px;animation-delay:0s}.wind-two{top:63px;width:24px;animation-delay:.35s}.wind-three{top:81px;width:47px;animation-delay:.7s}
.splash-road{position:absolute;left:12px;right:12px;bottom:16px;height:2px;background:linear-gradient(90deg,transparent,#3c8056 12%,#3c8056 88%,transparent);opacity:.65}
.splash-road:before{content:'';position:absolute;left:0;right:0;top:4px;height:2px;background:repeating-linear-gradient(90deg,transparent 0 20px,#5ddd84 20px 34px,transparent 34px 48px);animation:splash-asphalt .9s linear infinite;opacity:.43}
.splash-wordmark{font-size:19px;letter-spacing:2.2px;font-weight:850;margin-top:24px}
.splash-subtitle{font-size:12px;color:#b3c4b6;margin-top:9px}
.splash-retry{margin-top:22px;border:1px solid #5cdd80;color:#76f3a1;background:#102719;border-radius:11px;padding:12px 17px;font-size:13px;font-weight:800}
@keyframes splash-ride{0%{transform:translateX(calc(-50% - 82px)) translateY(0);opacity:0}15%{opacity:1}78%{opacity:1}100%{transform:translateX(calc(-50% + 95px)) translateY(-2px);opacity:0}}
@keyframes splash-streak{0%{transform:translateX(15px);opacity:0}25%{opacity:.72}100%{transform:translateX(-80px);opacity:0}}
@keyframes splash-asphalt{to{background-position:-48px 0}}
.coach-note{display:flex;gap:11px;align-items:center;padding:12px 14px;margin-bottom:10px;border-radius:14px;background:#e8f7ed;color:#1d6035;border:1px solid #d2ebd9}
.coach-note[hidden]{display:none!important}.coach-note-icon{font-size:20px;flex:none}.coach-note-text{font-size:12px;line-height:1.45;font-weight:650}.coach-note-label{font-size:9px;letter-spacing:.8px;color:#378454;font-weight:850;margin-bottom:3px}
.coach-pop{position:fixed;z-index:120;bottom:calc(64px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:min(430px,calc(100% - 24px));box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:15px 13px;border:1px solid #a6e6b5;border-radius:16px;background:#122519;color:#f4fff6;box-shadow:0 16px 45px #07150b4a;animation:coach-arrive .28s ease-out}
.coach-pop[hidden]{display:none!important}.coach-pop-emoji{font-size:25px;flex:none}.coach-pop-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.coach-pop-copy strong{font-size:11px;color:#79e99d}.coach-pop-copy span{font-size:13px;font-weight:700;line-height:1.4}.coach-pop button{width:28px;height:28px;flex:none;border:0;border-radius:50%;color:#e9ffef;background:#294936;font-size:20px;line-height:1}
@keyframes coach-arrive{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
.week-celebration{width:calc(100% - 32px);max-width:390px;max-height:80dvh;overflow:hidden;position:fixed;border:1px solid #66d887;border-radius:23px;background:linear-gradient(155deg,#0d1f13,#172a1a);box-shadow:0 15px 85px #0008;padding:28px 21px 22px;color:#fff;text-align:center}
.week-celebration::backdrop{background:#000b;backdrop-filter:blur(4px)}
.week-celebration h2{font-size:25px;letter-spacing:-.5px;margin:14px 0 10px}.week-celebration p{font-size:15px;line-height:1.6;color:#d5f2db;margin:0}.celebrate-emoji{font-size:54px;animation:celebrate-pop .65s cubic-bezier(.22,1.5,.45,1) both}
.celebrate-stats{border:1px solid #386343;border-radius:13px;background:#213a28;padding:13px;margin:19px 0;color:#aeeec0;font-size:12px;font-weight:800}
.celebrate-close{width:100%;background:#45db79;color:#102b17;font-weight:850;border:0;border-radius:12px;min-height:48px;font-size:15px}
.celebrate-bits{position:absolute;inset:0;overflow:hidden;pointer-events:none}.celebrate-bits i{position:absolute;top:-20px;width:6px;height:13px;border-radius:2px;opacity:0;animation:celebrate-fall var(--dur,2.1s) ease-in var(--delay,0s) 1 forwards;background:var(--c,#62e78d);left:var(--x,50%)}
@keyframes celebrate-fall{0%{transform:translate3d(0,-40px,0) rotate(0deg);opacity:1}100%{transform:translate3d(var(--drift,30px),430px,0) rotate(690deg);opacity:0}}
@keyframes celebrate-pop{from{transform:scale(.65);opacity:0}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.splash-motion,.splash-road:before,.splash-wind,.celebrate-bits i,.celebrate-emoji,.coach-pop{animation:none!important}.startup-splash{transition:none}}


/* v21: clean calendar outline and symmetric settings gear on iOS/Android */
.tabs .tab[data-tab="weeks"] .tabicon{width:26px;height:26px}
.tabs .tab[data-tab="settings"] .tabicon{width:27px;height:27px}
.dayeditor{gap:12px}

/* v22 final: keep one-finger scrolling, disable pinch / double-tap page scaling. */
html,body{touch-action:pan-y;overscroll-behavior-x:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,summary{touch-action:manipulation}
.coach-note-metric{margin-top:5px;font-size:11px;font-weight:800;color:#206b3b;line-height:1.45}
.coach-note-metric[hidden]{display:none!important}

/* v23: show each motivational number clearly, with its own label. */
.coach-note{align-items:flex-start}
.coach-note-text{min-width:0;flex:1;width:100%}
.coach-note-metric{margin-top:11px;font-size:12px;font-weight:700}
.coach-metric-day{font-size:10px;letter-spacing:.5px;color:#368553;font-weight:850;margin-bottom:7px}
.coach-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.coach-metric-cell{min-width:0;display:flex;flex-direction:column;gap:4px;padding:9px 10px;background:rgba(255,255,255,.56);border:1px solid #cbe7d3;border-radius:10px}
.coach-metric-cell span{font-size:10px;line-height:1.3;color:#648274;font-weight:750}
.coach-metric-cell strong{font-size:clamp(13px,3.8vw,17px);white-space:nowrap;letter-spacing:-.5px;font-variant-numeric:tabular-nums;color:#183d28}
.coach-metric-diff{font-size:11px;line-height:1.4;font-weight:820;margin-top:7px;padding:5px 2px}
.coach-metric-diff span{color:#467a59}
.coach-metric-diff.below{color:#9a6b14}
@media(max-width:350px){.coach-metric-cell{padding:8px 6px}.coach-metric-cell strong{font-size:12px}}
/* Make the animated courier scooter clearly visible while loading. */
.splash-track{width:290px;height:155px}
.splash-motion{width:192px;height:128px}
.splash-bike{width:192px;height:118px}

/* v23 final: motivation card shows two readable figures and their difference. */
.coach-note{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:start;column-gap:10px;row-gap:9px;padding:15px 15px 14px}
.coach-note-icon{line-height:1.5}
.coach-note-text{font-size:13px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.coach-note-metric{grid-column:1/-1;margin:4px 0 0;padding:12px;background:rgba(255,255,255,.60);border-radius:13px;border:1px solid rgba(75,166,101,.18);min-width:0}
.coach-metric-day{font-size:10px;font-weight:900;letter-spacing:.55px;color:#508a64;margin-bottom:11px}
.coach-metric-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
.coach-metric-cell{min-width:0;display:flex;flex-direction:column;gap:4px;padding:9px 10px;background:rgba(236,248,239,.98);border-radius:9px}
.coach-metric-cell span{font-size:10px;color:#477855;font-weight:750;white-space:nowrap}
.coach-metric-cell strong{color:#1e3626;font-weight:880;font-size:clamp(15px,4.25vw,19px);white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.45px}
.coach-metric-diff{margin-top:10px;font-size:12px;line-height:1.5;font-weight:850}
.coach-metric-diff.ahead{color:#176f39}.coach-metric-diff.below{color:#9a5d14}
.coach-metric-diff span{white-space:nowrap}
@media(max-width:360px){.coach-note{padding:12px}.coach-note-metric{padding:9px}.coach-metric-grid{gap:6px}.coach-metric-cell{padding:8px 7px}.coach-metric-cell strong{font-size:15px;letter-spacing:-.65px}}


/* v24: clean, short motivational sentence. No giant separate number fields. */
.coach-note{display:flex;align-items:center;gap:11px;padding:13px 15px}
.coach-note-icon{font-size:21px;line-height:1.2;flex:none}
.coach-note-text{min-width:0;flex:1;font-size:13px;line-height:1.5;font-weight:700}
.coach-note-label{font-size:9px;letter-spacing:.7px;margin-bottom:4px}
.coach-note-metric{display:none!important}


/* v25: Exactly the approved six-frame GIF, without redrawing any element. */
.startup-splash{background:#010201;padding:0;display:flex;justify-content:center;align-items:center;overflow:hidden}
.splash-center{width:100%;height:100%;max-width:none;transform:none;display:flex;align-items:center;justify-content:center;flex-direction:row}
.startup-art{width:100%;height:100%;max-width:none;max-height:none;display:block;object-fit:contain;object-position:center center;image-rendering:auto}
.splash-failure{position:absolute;z-index:1;bottom:calc(30px + env(safe-area-inset-bottom,0px));left:20px;right:20px;text-align:center;background:rgba(4,14,7,.92);color:#dcffe6;border:1px solid rgba(85,208,127,.55);border-radius:12px;padding:11px 16px;font-size:12px}
.splash-failure p{margin:0}.splash-failure .splash-retry{margin-top:9px}

/* v29: Half-size crisp static Uber Eats scooter, with only speed lines moving left.
   Scooter/rider/wheels remain entirely motionless, and the background is pure black. */
.startup-splash{background:#000!important;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden}
.startup-splash .splash-center{width:100%;height:100%;max-width:none;display:flex;align-items:center;justify-content:center;transform:none}
.startup-splash .splash-scooter-scene{position:relative;width:min(100vw,540px);height:230px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.startup-splash .startup-art{display:block;position:relative;z-index:2;width:min(46vw,265px);height:auto;max-width:100%;object-fit:contain;image-rendering:auto;filter:none;transform:none;backface-visibility:hidden}
.startup-splash .splash-speed-lines{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.startup-splash .splash-speed-lines span{display:block;position:absolute;right:calc(50% + 85px);width:63px;height:2px;background:linear-gradient(90deg,transparent,rgba(102,235,143,.86) 75%,rgba(102,235,143,0));border-radius:20px;opacity:0;animation:uekt-trail-left 1.45s linear infinite;will-change:transform,opacity}
.startup-splash .splash-speed-lines span:nth-child(1){top:37%;width:46px;animation-delay:-.5s}
.startup-splash .splash-speed-lines span:nth-child(2){top:49%;width:72px;animation-delay:-1.1s}
.startup-splash .splash-speed-lines span:nth-child(3){top:62%;width:52px;animation-delay:-.16s}
.startup-splash .splash-speed-lines span:nth-child(4){top:72%;width:34px;animation-delay:-.86s}
@keyframes uekt-trail-left{
  0%{transform:translateX(50px);opacity:0}
  18%{opacity:.82}
  77%{opacity:.62}
  100%{transform:translateX(-75px);opacity:0}
}
@media(min-width:700px){.startup-splash .splash-scooter-scene{height:320px}}
@media(prefers-reduced-motion:reduce){.startup-splash .splash-speed-lines span{animation:none;opacity:.35;transform:none}}
/* Retry is shown only on an unusually long authentication check; normal startup has no text. */


/* v33 – compact two-way switch: Precalculation / Weekly history */
.weektools{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:17px 0 13px;padding:4px;background:#e4e9e5;border:1px solid #dfe7e1;border-radius:15px}
.weektool{min-width:0;min-height:41px;padding:9px 6px;border:0;border-radius:11px;background:transparent;color:#76877b;font:inherit;font-size:12px;font-weight:800;transition:background .16s,color .16s,box-shadow .16s}
.weektool.active{background:#fff;color:#153522;box-shadow:0 1px 6px rgba(16,35,22,.09)}
.weektool-panel[hidden]{display:none!important}
.precalc-card{padding:20px 18px 18px}
.precalc-header{margin-bottom:19px}
.precalc-overline{font-size:10px;letter-spacing:1.25px;color:#2b9857;font-weight:900}
.precalc-header h2{font-size:19px;letter-spacing:-.55px;line-height:1.25;margin:7px 0 5px}
.precalc-header p{margin:0;color:#7d8a80;font-size:12px;line-height:1.5}
.precalc-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px}
.precalc-form label{min-width:0;display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:800;color:#516357}
.precalc-form input,.precalc-form select{appearance:none;-webkit-appearance:none;min-width:0;width:100%;height:49px;padding:11px 13px;border:1px solid #dae7dd;background:#fff;color:#1b2a20;border-radius:11px;font:inherit;font-size:16px;font-weight:650;outline:0}
.precalc-form input::placeholder{color:#aab5ac;opacity:1}
.precalc-form select{appearance:auto;-webkit-appearance:menulist}
.precalc-form input:focus,.precalc-form select:focus{border-color:#34a367;box-shadow:0 0 0 3px rgba(52,163,103,.11)}
.precalc-result{margin-top:18px;padding:18px 15px 16px;border-radius:14px;background:linear-gradient(135deg,#153321,#214c30);color:#fff;display:flex;flex-direction:column;gap:7px;min-width:0}
.precalc-result-label{font-size:11px;letter-spacing:.35px;color:#c4ebd2;font-weight:750}
.precalc-result strong{font-size:clamp(27px,7vw,36px);line-height:1.2;letter-spacing:-.8px;font-weight:850;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.precalc-result-sub{color:#c3d9ca;font-size:11px;line-height:1.45}
.precalc-breakdown{margin:14px 0 3px}
.precalc-breakdown>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;border-bottom:1px solid #edf1ee;font-size:11px;color:#7b8b7e}
.precalc-breakdown>div:last-child{border-bottom:0}
.precalc-breakdown strong{font-size:12px;font-variant-numeric:tabular-nums;color:#213928;white-space:nowrap}
.precalc-warning{font-size:10.5px;line-height:1.5;margin:16px 0 0;color:#788b7d}
@media(max-width:350px){.precalc-card{padding:16px 13px}.precalc-form{gap:8px}.precalc-form input,.precalc-form select{padding:8px}.precalc-result strong{font-size:27px}}

/* v34: show one consistent seven-day weekly average beside every workday. */
.daytrigger .daytarget{font-size:10px;color:#328354;font-weight:750;margin-top:3px;font-variant-numeric:tabular-nums;line-height:1.3}
