/* Focora Mobile — layout on top of ui.css. Araf Studio. */
html,body{height:100%}
body.app{display:flex;flex-direction:column;height:100vh;height:100dvh;max-width:520px;margin:0 auto;overflow:hidden;font-size:15px;
  padding:calc(env(safe-area-inset-top,0px) + 12px) 14px 0;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;user-select:none;-webkit-user-select:none}
body.app input{user-select:text;-webkit-user-select:text}
body[data-phase="short"]{--phase-a:#2DD4BF;--phase-b:#5EA8FF}
body[data-phase="long"]{--phase-a:#FFB454;--phase-b:#FF6E8B}
header{display:flex;align-items:center;margin-bottom:10px;flex:none}
header .logo{width:38px;height:38px}
main{flex:1;min-height:0;position:relative}
.panel{height:100%;overflow-y:auto;overflow-x:hidden;padding:2px 2px 16px;display:flex;flex-direction:column;gap:12px;scrollbar-width:none;animation:pin .45s cubic-bezier(.3,1.2,.45,1)}
.panel::-webkit-scrollbar{display:none}
.panel[hidden]{display:none}
@keyframes pin{from{opacity:0;transform:translateY(8px) scale(.985)}}
.panel h2{margin:0;font-size:19px;font-weight:700;letter-spacing:-.015em}
.panel-head p{margin:4px 0 0;font-size:13px;line-height:1.45}
.small{font-size:12.5px;margin:0}

.tabs{flex:none;margin:6px 0 calc(env(safe-area-inset-bottom,0px) + 10px)}
.tabs button{flex-direction:column;gap:2px;padding:8px 4px 7px;font-size:11.5px}
.tabs svg.i{width:21px;height:21px}
.seg button{min-height:38px}

/* timer */
.ring-wrap{position:relative;width:min(260px,68vw);aspect-ratio:1;margin:6px auto 2px;flex:none}
.ring{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.ring circle{fill:none;stroke-width:11;stroke-linecap:round}
.ring .track{stroke:var(--track);opacity:.55}
.ring .prog{stroke-dasharray:653.45;stroke-dashoffset:0;filter:drop-shadow(0 0 10px var(--phase-a));transition:stroke-dashoffset .3s linear}
.disc{position:absolute;inset:8%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.time{font-size:clamp(44px,15vw,64px);font-weight:300;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1}
.phase-label{font-size:13px;font-weight:600;color:var(--muted);margin-top:6px}
.dots{display:flex;gap:6px;margin-top:8px}
.dots i{width:7px;height:7px;border-radius:50%;background:var(--track);transition:.4s}
.dots i.done{background:var(--phase-a);box-shadow:0 0 8px var(--phase-a)}
.dots i.cur{background:var(--text);transform:scale(1.25)}
.controls{display:flex;align-items:center;justify-content:center;gap:28px;margin:4px 0}
.round{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;color:var(--text);background:var(--glass);border:1px solid var(--soft);box-shadow:inset 0 1px 0 var(--spec);
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);transition:transform .18s,background .2s}
.round:active{transform:scale(.92)}
.round.big{width:76px;height:76px;color:#fff;background:linear-gradient(135deg,var(--phase-a),var(--phase-b));border-color:rgba(255,255,255,.35);
  box-shadow:0 10px 26px color-mix(in srgb,var(--phase-a) 55%,transparent),inset 0 1px 0 rgba(255,255,255,.5)}
.round.big svg.i{width:32px;height:32px}
.round[disabled]{opacity:.4;pointer-events:none}
#task{text-align:center;font-size:15px;padding:12px 14px}
.status-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stat-chip{padding:11px 12px;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;line-height:1.25}
.stat-chip svg.i{width:19px;height:19px;flex:none;color:var(--phase-a)}
.stat-chip small{display:block;font-weight:500;color:var(--muted);font-size:11.5px}

/* shield */
.tempt{width:100%;padding:15px;font-size:15px;border-radius:18px}
.add-form{display:flex;gap:8px}
.add-form .btn{padding:10px 18px}
.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chip{padding:8px 9px 8px 13px;font-size:13.5px}
.chip button{width:22px;height:22px}
.chip.add{padding:8px 13px}
.empty{color:var(--muted);font-size:13px;padding:6px 2px}
.sugg-label{width:100%;font-size:12px;font-weight:600;margin-top:6px}

/* stats */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{padding:14px}
.tile .v{font-size:30px;font-weight:650;letter-spacing:-.02em;line-height:1.1}
.tile .l{font-size:12.5px;color:var(--muted);margin-top:3px}
.tile .ic{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;margin-bottom:10px;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}
.week{padding:14px}
.week-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px;font-size:14px}
.bars{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;align-items:end;height:120px}
.bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%;font-size:11px;color:var(--muted)}
.bar i{display:block;width:100%;max-width:28px;border-radius:9px 9px 6px 6px;min-height:6px;background:var(--track);transition:height .6s cubic-bezier(.3,1.2,.45,1)}
.bar.has i{background:linear-gradient(180deg,#8CB0FF,#7B5CF0);box-shadow:0 4px 12px rgba(110,100,255,.4)}
.bar.today span{color:var(--text);font-weight:700}

/* settings */
.card{padding:16px;display:flex;flex-direction:column;gap:12px}
.card h2{font-size:17px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.step{display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--muted);font-weight:600}
.stepper{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:3px;border-radius:14px;background:var(--glass);border:1px solid var(--soft);color:var(--text)}
.stepper button{width:36px;height:36px;border-radius:11px;font-size:19px;font-weight:600;display:grid;place-items:center;background:var(--glass-hi)}
.stepper button:active{transform:scale(.92)}
.stepper b{font-size:15px;min-width:30px;text-align:center;font-variant-numeric:tabular-nums}
.rows{display:flex;flex-direction:column}
.rw{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;font-size:14px;font-weight:550;border-top:1px solid var(--soft)}
.rows .rw:first-child{border-top:0}
.rw small{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-top:2px}
.rw input[type=range]{width:46%;accent-color:#7B6CFF}
.sw{transform:none}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.btn{min-height:44px}
footer{text-align:center;font-size:12px;color:var(--faint);padding:6px 0 4px}
.pill{display:inline-block;padding:2px 9px;border-radius:99px;margin-left:3px;font-weight:700;color:transparent;background:var(--brand-grad);-webkit-background-clip:text;background-clip:text}

/* modal */
.modal{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:20px;background:rgba(4,6,20,.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.modal[hidden]{display:none}
.sheet{width:min(400px,100%);align-items:center;text-align:center;padding:26px 20px 20px;animation:pin .5s cubic-bezier(.3,1.3,.45,1)}
.sheet p{margin:0;font-size:14px;line-height:1.5}
.breath{width:150px;height:150px;display:grid;place-items:center}
.breath i{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--phase-a),var(--phase-b));box-shadow:0 0 40px var(--phase-a);transition:transform 4s ease-in-out}
.breath i.in{transform:scale(2.3)}
.sheet .two{width:100%;margin-top:6px}

.toast{bottom:calc(env(safe-area-inset-bottom,0px) + 92px)}
@media (min-height:760px){.panel{gap:14px}}
