/*! tailwindcss v4.1.10 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .table {
    display: table;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
}
@layer base {
  :root {
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
    --bg: #f4f6f8;
    --panel: #fff;
    --ink: #18272d;
    --muted: #62747b;
    --line: #dce5e7;
    --accent: #16775b;
    --accent-soft: #e4f3eb;
    --soft: #f0f5f4;
    --shadow: 0 8px 28px #142b2210;
    color: var(--ink);
    background: var(--bg);
    color-scheme: light;
  }
  :root[data-theme=dark] {
    --bg: #101817;
    --panel: #192422;
    --ink: #eef4f1;
    --muted: #a0b4ae;
    --line: #334641;
    --accent: #71d9ad;
    --accent-soft: #253d34;
    --soft: #222f2b;
    --shadow: none;
    color-scheme: dark;
  }
  body {
    margin: 0;
    min-width: 300px;
    font-size: 14px;
    line-height: 1.5;
  }
  button {
    cursor: pointer;
    font: inherit;
  }
  button:disabled {
    cursor: default;
    opacity: .55;
  }
  button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  h1,h2,h3,p {
    margin: 0;
  }
  h1 {
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -1px;
  }
  h2 {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 720;
    letter-spacing: -.4px;
  }
  h3 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 12px;
  }
  p {
    margin: 9px 0;
    line-height: 1.55;
  }
  small {
    font-size: 12px;
    color: var(--muted);
  }
  [hidden] {
    display: none !important;
  }
  label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 650;
  }
  input,select,textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
    color: var(--ink);
    padding: 9px 11px;
    font-size: 14px;
    outline: none;
    min-width: 0;
  }
  textarea {
    min-height: 58px;
    resize: vertical;
  }
  form {
    display: grid;
    gap: 12px;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
  }
  th,td {
    padding: 11px 9px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }
  th {
    color: var(--muted);
    font-weight: 650;
  }
  details {
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }
  summary {
    cursor: pointer;
    font-weight: 650;
  }
  details td:last-child {
    white-space: normal;
    min-width: 120px;
  }
}
@layer components {
  .shell {
    display: grid;
    grid-template-columns: 218px minmax(0,1fr);
    min-height: 100vh;
    max-width: 1600px;
    margin: auto;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--panel);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 28px 15px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 0 6px 35px;
  }
  .brand small {
    display: block;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 1.15px;
    margin-top: 7px;
  }
  .brand-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    background: #16775b;
    color: #fff;
    border-radius: 11px;
    font-size: 25px;
    font-weight: 850;
  }
  .accent {
    color: var(--accent);
  }
  nav {
    display: grid;
    gap: 5px;
  }
  nav button {
    text-align: left;
    padding: 12px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-weight: 650;
  }
  nav button:hover,nav button.active {
    background: var(--accent-soft);
    color: var(--accent);
  }
  .side-bottom {
    margin-top: auto;
    color: var(--muted);
    padding: 10px;
    font-size: 12px;
  }
  .status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 5px;
  }
  main {
    padding: 30px clamp(18px,4vw,50px) 42px;
    min-width: 0;
    max-width: 1200px;
    width: 100%;
    margin: auto;
  }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.35px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 750;
  }
  .actions {
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .primary,.secondary,.text-btn,.tabs button {
    border-radius: 9px;
    padding: 10px 14px;
    font-weight: 680;
    transition: background .15s,border-color .15s;
  }
  .primary {
    background: #16775b;
    color: white;
    border: 1px solid #16775b;
  }
  .primary:hover {
    background: #105e47;
  }
  .secondary,.tabs button {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
  }
  .secondary:hover,.tabs button:hover {
    background: var(--soft);
  }
  .text-btn {
    border: 0;
    color: var(--accent);
    background: transparent;
    padding: 7px 9px;
  }
  .text-btn:hover {
    background: var(--accent-soft);
  }
  .full {
    width: 100%;
  }
  .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    min-width: 0;
  }
  .daily-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
    align-items: center;
    margin-bottom: 20px;
  }
  .daily-heading h2 {
    text-transform: capitalize;
    font-size: 26px;
    margin-top: 8px;
  }
  .daily-heading p {
    color: var(--muted);
    margin: 4px 0;
  }
  .tag {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 750;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
  }
  .daily-count {
    text-align: right;
  }
  .daily-count strong {
    font-size: 34px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    display: block;
    font-variant-numeric: tabular-nums;
  }
  .daily-count strong small {
    font-size: 20px;
    font-weight: 600;
  }
  .daily-count span {
    font-size: 12px;
    color: var(--muted);
  }
  .track {
    grid-column: 1/-1;
    background: var(--line);
    height: 7px;
    border-radius: 20px;
    overflow: hidden;
  }
  .track div {
    height: 100%;
    background: var(--accent);
    border-radius: 20px;
    transition: width .2s;
  }
  .today-grid {
    display: grid;
    grid-template-columns: minmax(0,1.03fr) minmax(0,1fr);
    gap: 17px;
    align-items: start;
  }
  .focus {
    text-align: center;
    padding: 23px;
  }
  .focus h2 {
    font-size: 25px;
    margin: 9px 0 12px;
  }
  .exercise-img {
    display: block;
    width: 100%;
    height: 155px;
    object-fit: contain;
    margin: 0 auto 10px;
    background: #fafafa;
    border-radius: 10px;
    padding: 7px;
    max-width: 420px;
  }
  .big-dose {
    font-size: 44px;
    letter-spacing: -2px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    margin: 14px 0 8px;
  }
  .focus p {
    color: var(--muted);
    font-size: 14px;
    margin: 10px 0 19px;
  }
  .focus .primary {
    font-size: 15px;
    padding: 13px;
    margin: 8px 0 5px;
  }
  .timer {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    margin: 12px 0;
    display: grid;
    gap: 8px;
    justify-items: center;
  }
  .timer strong {
    font-size: 32px;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
  }
  .timer .secondary {
    padding: 6px 11px;
    font-size: 12px;
  }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .sequence {
    padding: 18px;
  }
  .exercise-row {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
    gap: 3px;
    padding: 3px 0;
  }
  .exercise-row.current {
    background: var(--accent-soft);
    border-radius: 9px;
    border-top-color: transparent;
  }
  .row-select {
    display: flex;
    text-align: left;
    gap: 10px;
    align-items: center;
    padding: 9px 6px;
    border: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
    color: var(--ink);
  }
  .row-select small {
    display: block;
    margin-top: 2px;
  }
  .row-select:disabled {
    opacity: .8;
  }
  .check {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    background: var(--panel);
  }
  .check.done {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
  }
  .check.skipped {
    background: var(--soft);
  }
  .current .check {
    background: #16775b;
    color: white;
    border-color: #16775b;
  }
  .note {
    background: var(--soft);
    color: var(--muted);
    border-radius: 9px;
    padding: 11px 13px;
    margin: 10px 0 16px;
    font-size: 13px;
  }
  .note.small {
    font-size: 11px;
    margin-bottom: 0;
  }
  .muted {
    color: var(--muted);
    font-size: 13px;
  }
  .metrics {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
  }
  .metric strong {
    display: block;
    font-size: 25px;
    font-weight: 780;
    letter-spacing: -1px;
    margin-top: 4px;
  }
  .heatmap {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7,1fr);
    grid-template-columns: repeat(14,minmax(0,1fr));
    gap: 5px;
    max-width: 500px;
    margin: 12px 0;
  }
  .heat {
    aspect-ratio: 1;
    border-radius: 4px;
    background: var(--soft);
    border: 1px solid var(--line);
  }
  .heat.partial-day {
    background: #8bcba8;
    border-color: #8bcba8;
  }
  .heat.full-day {
    background: #16775b;
    border-color: #16775b;
  }
  .table-scroll {
    overflow: auto;
  }
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0;
  }
  .tabs button.selected {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
  }
  .editor-row {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 13px;
    display: grid;
    gap: 9px;
  }
  .editor-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  .empty,.finished {
    padding: 30px;
    text-align: center;
    color: var(--muted);
  }
  .finish-icon {
    font-size: 50px;
    color: var(--accent);
    font-weight: 800;
  }
  #log-detail {
    display: grid;
    gap: 10px;
    text-align: left;
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 14px;
  }
  #warning {
    background: #fff1d1;
    color: #805400;
    border: 1px solid #e6bb61;
    border-radius: 9px;
    padding: 12px;
    margin-bottom: 15px;
  }
  #toast {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translate(-50%,20px);
    opacity: 0;
    pointer-events: none;
    max-width: 90vw;
    border-radius: 10px;
    background: #18372c;
    color: #fff;
    padding: 10px 17px;
    transition: all .18s;
    z-index: 10;
    box-shadow: 0 5px 20px #0002;
  }
  #toast.show {
    opacity: 1;
    transform: translate(-50%,0);
  }
}
@media (max-width:950px) {
  .shell {
    grid-template-columns: 180px minmax(0,1fr);
  }
  main {
    padding: 23px 20px;
  }
  .today-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width:650px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 12px 12px 7px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0 0 10px;
    font-size: 19px;
  }
  .brand-icon {
    width: 31px;
    height: 31px;
    font-size: 21px;
  }
  .brand small {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 2px;
  }
  nav button {
    font-size: 12px;
    padding: 8px;
    white-space: nowrap;
  }
  .side-bottom {
    display: none;
  }
  main {
    padding: 16px 12px;
  }
  .topbar {
    margin-bottom: 15px;
  }
  .topbar h1 {
    font-size: 23px;
  }
  .actions .secondary {
    padding: 7px 9px;
    font-size: 12px;
  }
  .daily-heading h2 {
    font-size: 20px;
  }
  .daily-count strong {
    font-size: 28px;
  }
  .panel {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .focus h2 {
    font-size: 23px;
  }
  .big-dose {
    font-size: 40px;
  }
}
body.compact .shell {
  display: block;
  max-width: 440px;
}
body.compact .sidebar {
  display: none;
}
body.compact main {
  padding: 12px;
}
body.compact .topbar {
  margin-bottom: 12px;
}
body.compact .topbar h1 {
  font-size: 21px;
}
body.compact .daily-heading {
  margin-bottom: 10px;
  gap: 6px;
}
body.compact .daily-heading h2 {
  font-size: 17px;
}
body.compact .daily-heading p {
  display: none;
}
body.compact .daily-count strong {
  font-size: 27px;
}
body.compact .today-grid {
  display: block;
}
body.compact .focus {
  padding: 15px;
}
body.compact .exercise-img {
  height: 115px;
}
body.compact .focus h2 {
  font-size: 21px;
}
body.compact .big-dose {
  font-size: 39px;
}
body.compact .sequence {
  display: none;
}
body.compact .focus p {
  margin: 8px 0;
}
body.compact .actions .secondary {
  font-size: 12px;
  padding: 7px 8px;
}
body.compact .daily-heading .tag {
  font-size: 10px;
}
body.compact .timer {
  padding: 6px;
  margin: 6px 0;
}
body.compact .timer strong {
  font-size: 25px;
}
