:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color:#0f172a;background-color:#f8fafc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}html,body,#root{height:100%;margin:0}body{display:flex;background:linear-gradient(180deg,#e2e8f0,#f8fafc 80%)}button,input,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}.app-shell{flex:1;display:flex;flex-direction:column;margin:0 auto;width:min(100%,720px);padding:1.5rem 1.25rem 3.5rem;box-sizing:border-box}.glass-panel{background-color:#ffffffbf;border-radius:28px;box-shadow:0 20px 35px #0f172a1a;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);padding:1.5rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.loading-state{display:flex;flex-direction:column;align-items:center;gap:1rem;font-size:1.125rem;text-align:center}.loading-spinner{width:48px;height:48px;border-radius:50%;border:4px solid rgba(15,23,42,.2);border-top-color:#0f172a;animation:spin .8s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.auth-form{display:grid;gap:1rem}.auth-title{font-size:clamp(2rem,5vw,2.75rem);margin:0;font-weight:700;color:#0f172a;display:flex;flex-direction:column;gap:.35rem}.auth-subtitle{font-size:1rem;font-weight:400;color:#475569}.auth-label{font-size:.95rem;font-weight:600;color:#1f2937}.auth-input{border:none;border-radius:16px;padding:1.1rem 1.25rem;background-color:#e2e8f099;font-size:1.05rem;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .2s ease,background-color .2s ease}.auth-input:focus{outline:none;box-shadow:inset 0 0 0 2px #2563eb;background-color:#ffffffe6}.auth-error{margin:0;color:#dc2626;font-weight:600}.auth-submit{border:none;border-radius:18px;padding:1.1rem;font-size:1.15rem;font-weight:700;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;box-shadow:0 16px 30px #2563eb59;transition:transform .12s ease,box-shadow .12s ease}.auth-submit:active{transform:translateY(1px) scale(.99);box-shadow:0 8px 22px #2563eb4d}.auth-submit:disabled{opacity:.6;box-shadow:none}.auth-toggle{border:none;background:transparent;color:#2563eb;font-weight:600;padding:.75rem .5rem;font-size:1rem}.routine-shell{display:flex;flex-direction:column;gap:1.5rem;height:100%}.routine-planner{gap:1.75rem}.routine-runner{gap:1.5rem}.routine-banner{background-color:#fbbf2440;border-radius:18px;padding:.9rem 1.1rem;font-size:.95rem;font-weight:600;color:#92400e}.routine-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap}.routine-brand{display:inline-flex;align-items:center;padding:.5rem 1.15rem;border-radius:999px;border:1px solid rgba(15,23,42,.12);background-color:#fff;box-shadow:0 10px 20px #0f172a1f;font-size:.95rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#0f172a;margin-right:auto}.routine-planner .routine-header{padding-bottom:.5rem;border-bottom:1px solid rgba(15,23,42,.05)}.routine-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin-left:auto}.routine-nav__link{border:none;border-radius:999px;padding:.5rem 1.1rem;background-color:#0f172a0d;color:#0f172a;font-weight:600;font-size:.9rem;transition:background-color .15s ease,transform .15s ease}.routine-nav__link:active{transform:translateY(1px)}.routine-nav__link--danger{background-color:#ef44441a;color:#b91c1c}.routine-greeting{display:flex;flex-direction:column;gap:.35rem}.routine-overline{margin:0;font-size:.9rem;letter-spacing:.08em;text-transform:uppercase;color:#475569}.routine-title{margin:0;font-size:clamp(1.8rem,5vw,2.4rem);color:#0f172a}.routine-header__actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.routine-manage{border:none;border-radius:16px;padding:.8rem 1.2rem;background-color:#3b82f61f;color:#1d4ed8;font-weight:600;font-size:.95rem}.routine-signout{background-color:#ef44441a;border-radius:16px;padding:.85rem 1.4rem;border:none;color:#b91c1c;font-weight:600;font-size:.95rem}.routine-exit{background-color:#f871712e;color:#b91c1c}.routine-config{display:grid;gap:1rem;padding:1.2rem;border-radius:24px;background-color:#e2e8f059}.routine-config__label{font-size:.9rem;font-weight:600;color:#1f2937;margin:0;text-transform:uppercase;letter-spacing:.08em}.routine-template-picker{display:flex;gap:.75rem;overflow-x:auto;padding-bottom:.25rem}.routine-template-card{display:flex;flex-direction:row;align-items:center;gap:.75rem;min-width:210px;border-radius:20px;border:none;padding:.9rem 1.1rem;background-color:#ffffffa6;box-shadow:0 12px 22px #0f172a1f;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}.routine-template-card:active{transform:translateY(1px) scale(.99)}.routine-template-card--active{background:linear-gradient(135deg,#3b82f6d9,#2563ebeb);color:#fff;box-shadow:0 16px 30px #3b82f64d}.routine-template-card__badge{font-size:1.2rem;font-weight:700;width:42px;height:42px;border-radius:12px;background:#0f172a1a;display:grid;place-items:center;color:#1f2937}.routine-template-card--active .routine-template-card__badge{background:#ffffff38;color:#fff}.routine-template-card__text{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem}.routine-template-card__name{font-size:1.1rem;font-weight:700}.routine-template-card__tasks{font-size:.9rem;opacity:.85}.routine-time-input{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem}.routine-time-input input[type=time]{border:none;border-radius:16px;padding:.85rem 1rem;background-color:#fffc;font-size:1.1rem;box-shadow:inset 0 0 0 1px #0f172a14}.routine-time-input input[type=time]:focus{outline:none;box-shadow:inset 0 0 0 2px #2563eb;background-color:#fffffff2}.routine-time-input__hint{font-size:.85rem;color:#475569}.routine-status{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.95rem;color:#334155}.routine-status__progress{font-weight:700}.routine-status__complete{font-weight:700;color:#0f766e}.routine-status__timed{opacity:.8}.routine-status--runner{align-items:center}.routine-status__required{min-width:100%}.routine-template-details{background-color:#ffffffa6;border-radius:24px;padding:1.25rem;display:flex;flex-direction:column;gap:1rem;box-shadow:0 20px 35px #0f172a14}.routine-template-details--runner{margin-top:.5rem}.routine-template-details h3{margin:0;font-size:1.2rem}.routine-template-details ul{list-style:none;padding:0;margin:0;display:grid;gap:.9rem}.routine-template-details li{display:flex;flex-direction:column;gap:.35rem;padding:.9rem 1rem;border-radius:18px;background-color:#e2e8f066}.routine-template-details__timed,.routine-template-details__anytime{font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:#475569}.routine-template-details__anytime{color:#10b981}.routine-template-details li p{margin:0;font-size:.9rem;color:#475569}.routine-planner__details{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:center;justify-content:space-between}.routine-planner__actions{display:flex;gap:1rem}.routine-start{border:none;border-radius:20px;padding:1rem 1.75rem;font-size:1.05rem;font-weight:700;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;box-shadow:0 16px 30px #2563eb59}.routine-history{background-color:#0f172ad9;color:#fff;border-radius:24px;padding:1.25rem;display:flex;flex-direction:column;gap:1rem;box-shadow:0 20px 40px #0f172a47}.routine-history__header{display:flex;justify-content:space-between;align-items:center}.routine-history__header h3{margin:0;font-size:1.2rem}.routine-history ul{list-style:none;padding:0;margin:0;display:grid;gap:.85rem}.routine-history li{background-color:#ffffff14;border-radius:18px;padding:.9rem 1rem}.routine-history__meta{display:flex;gap:.75rem;align-items:center}.routine-history__badge{width:38px;height:38px;border-radius:10px;background:#ffffff29;display:grid;place-items:center;font-weight:700;font-size:1rem}.routine-history__meta strong{font-size:1rem}.routine-history__meta p{margin:.1rem 0 0;font-size:.85rem;opacity:.9}.routine-history__empty{margin:0;font-size:.95rem;color:#ffffffbf}.template-editor{gap:1.75rem}.template-editor__layout{display:flex;flex-wrap:wrap;gap:1.5rem}.template-editor__sidebar{flex:1 1 240px;max-width:280px;background-color:#e2e8f080;border-radius:24px;padding:1rem;display:flex;flex-direction:column;gap:1rem}.template-editor__sidebar-header{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}.template-editor__sidebar-header h3{margin:0;font-size:1.1rem}.template-editor__sidebar-header span{font-size:.9rem;color:#475569}.template-editor__list{display:flex;flex-direction:column;gap:.75rem}.template-pill{border:none;text-align:left;border-radius:18px;padding:.85rem 1rem;background-color:#fffc;box-shadow:0 10px 18px #0f172a1f;display:flex;flex-direction:column;gap:.2rem;color:#0f172a}.template-pill strong{font-size:1rem}.template-pill span{font-size:.85rem;color:#475569}.template-pill--active{background:linear-gradient(135deg,#2563ebe6,#7c3aede6);color:#fff;box-shadow:0 14px 28px #2563eb59}.template-pill--active span{color:#ffffffd9}.template-editor__form{flex:2 1 360px;background-color:#ffffffeb;border-radius:28px;padding:1.25rem;display:flex;flex-direction:column;gap:1.25rem;box-shadow:0 20px 35px #0f172a1f}.template-editor__form label{display:flex;flex-direction:column;gap:.4rem;font-size:.9rem;font-weight:600;color:#1f2937}.template-editor__form input{border:none;border-radius:16px;padding:.85rem 1rem;background-color:#f1f5f9e6;font-size:1rem;box-shadow:inset 0 0 0 1px #0f172a14}.template-editor__form input:focus{outline:none;box-shadow:inset 0 0 0 2px #2563eb;background-color:#fff}.template-editor__form-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.template-editor__tasks{background-color:#f8fafce6;border-radius:24px;padding:1.2rem;display:flex;flex-direction:column;gap:1rem}.template-editor__tasks-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.template-editor__hint{margin:.35rem 0 0;font-size:.85rem;color:#475569}.template-editor__add-task{border:none;border-radius:16px;padding:.75rem 1.25rem;background-color:#3b82f626;color:#1d4ed8;font-weight:600}.template-editor__task-list{display:flex;flex-direction:column;gap:.85rem}.template-editor__task-row{background-color:#fffffff2;border-radius:18px;padding:.85rem;display:flex;flex-wrap:wrap;align-items:center;gap:1rem;box-shadow:0 10px 20px #0f172a14}.template-editor__task-fields{flex:1;display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.template-editor__task-fields label span{font-size:.8rem;color:#475569;text-transform:uppercase;letter-spacing:.05em}.template-editor__remove-task{border:none;background:transparent;color:#dc2626;font-weight:600}.template-editor__error{margin:0;color:#dc2626;font-weight:600}.template-editor__status{margin:0;color:#0f766e;font-weight:600}.template-editor__actions{display:flex;flex-wrap:wrap;gap:1rem;align-items:center}.template-editor__delete{border:none;border-radius:18px;padding:.85rem 1.4rem;background-color:#ef44441f;color:#b91c1c;font-weight:600}@media (max-width: 768px){.template-editor__sidebar{max-width:none}.template-editor__layout{flex-direction:column}.template-editor__task-row,.template-editor__actions{flex-direction:column;align-items:stretch}}.routine-tabs{display:flex;gap:.75rem;flex-wrap:wrap}.routine-tab{flex:1 1 45%;min-width:140px;border:none;border-radius:18px;background-color:#e2e8f099;padding:.9rem 1rem;font-size:1rem;font-weight:600;display:flex;align-items:center;gap:.5rem;justify-content:center;transition:background-color .15s ease,transform .15s ease}.routine-tab--active{background-color:#3b82f62e;color:#1d4ed8;transform:scale(1.02)}.task-grid{display:flex;flex-direction:column;gap:.9rem;margin-top:.75rem}.routine-planner .task-grid{gap:.65rem}.task-sections{display:grid;grid-template-columns:1fr;gap:1.25rem;align-items:start}.task-section{border-radius:28px;padding:1.25rem 1.5rem;background-color:#e2e8f04d;box-shadow:inset 0 0 0 1px #0f172a08;display:flex;flex-direction:column;min-height:100%;width:100%;box-sizing:border-box}.routine-planner .task-section{padding:1rem 1.25rem}.task-section--flex{background-color:#0f172a0f}.task-section--timed{order:1}.task-section--flex{order:2}@media (min-width: 720px){.routine-planner .task-sections,.routine-runner .task-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}.task-section__header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.task-section__header h3{margin:0;font-size:1.2rem}.task-section__eyebrow{margin:0;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#475569}.task-section__hint{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;font-weight:600;color:#475569}.task-section__empty{margin:.75rem 0 0;font-size:.95rem;color:#475569}.task-card{border:none;border-radius:24px;background:#0f172abf;color:#fff;padding:1.5rem;display:flex;flex-direction:column;align-items:flex-start;gap:.75rem;text-align:left;box-shadow:0 20px 30px #0f172a4d;transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease}.task-card--disabled{opacity:.6}.task-card--timed{background:linear-gradient(135deg,#0f172ad9,#0f172aeb)}.task-card--flex{background:#0f172aa6}.task-card--preview{cursor:default;box-shadow:0 12px 20px #0f172a2e}.routine-planner .task-card--preview{border-radius:18px;padding:1.1rem 1.2rem;gap:.5rem}.routine-planner .task-card--preview .task-card__header h3{font-size:1.15rem}.routine-planner .task-card--preview .task-card__countdown{font-size:.75rem;padding:.25rem .6rem}.routine-runner .task-card{border-radius:18px;padding:1.1rem 1.2rem;gap:.5rem}.routine-runner .task-card .task-card__header h3{font-size:1.15rem}.routine-runner .task-card .task-card__countdown{font-size:.75rem;padding:.25rem .6rem}.task-card--warning:not(.task-card--complete){box-shadow:0 18px 24px #fb923c59}.task-card--late:not(.task-card--complete){background:linear-gradient(135deg,#ef4444e6,#b91c1cf2);box-shadow:0 22px 30px #ef444459}.task-card--final.task-card--complete{background:linear-gradient(135deg,#10b981d9,#059669eb);box-shadow:0 18px 30px #10b98152}.task-card__header{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.75rem}.task-card__title{display:flex;flex-direction:column;gap:.35rem}.task-card__header h3{margin:0;font-size:1.4rem;font-weight:700}.task-card__time{background-color:#ffffff1f;padding:.35rem .65rem;border-radius:999px;font-size:.85rem}.task-card__meta{display:flex;flex-direction:column;gap:.45rem;align-items:flex-end}.task-card__meta-row{display:flex;gap:.5rem;align-items:center}.task-card__countdown{border-radius:999px;padding:.35rem .75rem;font-size:.85rem;font-weight:600}.task-card__countdown--ok{background-color:#3b82f62e;color:#bfdbfe}.task-card__countdown--warning{background-color:#fbbf2440;color:#fef3c7}.task-card__countdown--danger{background-color:#f8717140;color:#fee2e2}.task-card__countdown--complete{background-color:#10b98138;color:#d1fae5}.task-card__countdown--flex{background-color:#0f172a59;color:#e2e8f0f2}.task-card__status{margin-top:auto;font-size:.95rem;font-weight:600;opacity:.85}.task-card:active{transform:translateY(1px) scale(.995);box-shadow:0 14px 24px #0f172a47}.task-card--complete{background:linear-gradient(135deg,#2563ebe6,#1e40aff2);box-shadow:0 18px 24px #2563eb59}.routine-footer{display:flex;justify-content:center;margin-top:1rem;gap:1rem}.routine-reset{border:none;border-radius:16px;padding:.85rem 1.75rem;font-size:1rem;font-weight:600;background-color:#0f766e1f;color:#0f766e}.routine-finish{border:none;border-radius:16px;padding:.85rem 1.75rem;font-size:1rem;font-weight:600;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;box-shadow:0 16px 24px #2563eb59}.routine-finish:disabled{background:#0f172a33;color:#0f172a99;box-shadow:none}.routine-finish--badge{font-size:.95rem;font-weight:600;color:#0f766e;background-color:#0f766e1f;padding:.75rem 1.2rem;border-radius:16px}@media (max-width: 560px){.app-shell{padding:1.25rem 1rem 3rem}.routine-header{flex-direction:column;align-items:stretch}.routine-tabs{gap:.5rem}.routine-tab{flex:1 1 100%}.routine-template-picker{flex-wrap:wrap}.routine-planner__details{flex-direction:column;align-items:stretch}.routine-planner__actions{justify-content:flex-start}.task-sections{grid-template-columns:1fr}.task-section{padding:1rem 1.1rem}.task-section--flex{order:1}.task-section--timed{order:2}}.routine-runner__badge{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;background:#0f172a14;font-weight:700;margin-right:.75rem}
