:root {
  --paper: #f6fbfb;
  --paper-strong: #e7f0ef;
  --surface: #ffffff;
  --surface-soft: #f1f7f6;
  --ink: #142425;
  --muted: #657779;
  --line: rgba(20, 36, 37, .12);
  --line-strong: rgba(20, 36, 37, .2);
  --teal: #0e7c7b;
  --teal-soft: #dcefed;
  --green: #26734d;
  --green-soft: #e1f0e7;
  --coral: #d86a57;
  --coral-soft: #f8e3de;
  --amber: #c7831f;
  --amber-soft: #f3ead9;
  --indigo: #4f64a8;
  --indigo-soft: #e3e8f6;
  --shadow: 0 18px 45px rgba(20, 36, 37, .11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background:
    linear-gradient(115deg, rgba(14, 124, 123, .1), transparent 34%),
    linear-gradient(245deg, rgba(216, 106, 87, .12), transparent 45%),
    #dbe6e8;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input,
textarea {
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.app-shell {
  position: relative;
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), transparent 210px),
    var(--paper);
  box-shadow: 0 0 80px rgba(20, 36, 37, .18);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr 42px;
  gap: 12px;
  align-items: center;
  padding: 22px 18px 12px;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #0f7774, #203f61 55%, #d86a57);
  box-shadow: 0 10px 26px rgba(14, 124, 123, .22);
}

.mark-ring {
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
}

.mark-path {
  position: absolute;
  left: 12px;
  top: 21px;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .86);
  transform: rotate(-32deg);
  transform-origin: left center;
}

.mark-dot {
  position: absolute;
  right: 9px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd28a;
  box-shadow: 0 0 0 3px rgba(255, 210, 138, .24);
}

.life-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 66px;
  height: 40px;
  padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f7774, #203f61 58%, #d86a57);
  color: #fff;
  box-shadow: 0 10px 26px rgba(14, 124, 123, .22);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.life-home-button span {
  font-size: 15px;
  line-height: 1;
}

.life-home-button b {
  font: inherit;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: 23px;
  line-height: 1.05;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.menu-button {
  gap: 4px;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

main {
  padding-bottom: 100px;
}

.view {
  display: none;
  animation: view-in .24s ease;
}

.view.active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px 18px 14px;
}

.status-strip article {
  min-width: 0;
  min-height: 66px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
}

.status-strip span {
  display: block;
  min-height: 21px;
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-strip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.training-band {
  display: grid;
  gap: 16px;
  margin: 0 18px 16px;
  padding: 20px;
  border: 1px solid rgba(14, 124, 123, .2);
  border-radius: 8px;
  color: #f8ffff;
  background:
    linear-gradient(135deg, rgba(20, 36, 37, .08), transparent 36%),
    linear-gradient(145deg, #0d6867, #203f61 68%, #7d5134);
  box-shadow: var(--shadow);
}

.training-band h2 {
  margin: 5px 0 7px;
  font-size: 30px;
  line-height: 1;
}

.training-band p:not(.eyebrow) {
  max-width: 28rem;
  margin: 0;
  color: rgba(248, 255, 255, .76);
  font-size: 13px;
  line-height: 1.5;
}

.training-band .eyebrow {
  color: rgba(248, 255, 255, .68);
}

.focus-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.primary-button,
.quiet-button,
.text-button,
.danger-button,
.quiet-upload {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(14, 124, 123, .16);
}

.training-band .primary-button {
  color: #0d3d3c;
  background: #f8ffff;
}

.button-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(20, 36, 37, .74);
  font-size: 14px;
  line-height: 1;
}

.training-band .button-icon {
  color: #f8ffff;
  background: var(--teal);
}

.quiet-button,
.quiet-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, .74);
}

.training-band .quiet-button {
  color: #f8ffff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
}

.cadence-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 132px);
  gap: 14px;
  align-items: center;
  margin: 0 18px 16px;
  padding: 16px;
  border: 1px solid rgba(79, 100, 168, .2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(227, 232, 246, .82), rgba(255, 255, 255, .86));
}

.cadence-panel h2 {
  margin: 3px 0 6px;
  font-size: 19px;
  line-height: 1.12;
}

.cadence-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cadence-meter-wrap {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cadence-meter-wrap strong {
  text-align: right;
  color: #33405f;
  font-size: 20px;
  line-height: 1;
}

.cadence-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 36, 37, .1);
}

.cadence-meter span {
  display: block;
  width: var(--cadence, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--indigo);
}

.today-loop-panel {
  display: grid;
  gap: 10px;
  margin: 0 18px 16px;
}

.follow-card,
.proof-shelf,
.after-action-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.follow-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  border-color: rgba(79, 100, 168, .22);
  background:
    linear-gradient(135deg, rgba(227, 232, 246, .86), rgba(255, 255, 255, .86));
}

.follow-card.empty {
  border-style: dashed;
  background: rgba(255, 255, 255, .58);
}

.follow-card h2,
.proof-shelf h2 {
  margin: 3px 0 0;
  font-size: 19px;
  line-height: 1.12;
}

.follow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.follow-card .planned-line {
  padding: 11px;
  border: 1px solid rgba(79, 100, 168, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  color: var(--ink);
  font-size: 13px;
}

.mini-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-stat-row span {
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 999px;
  color: #33405f;
  background: var(--indigo-soft);
  font-size: 10px;
  font-weight: 850;
}

.text-button {
  min-height: 34px;
  padding: 7px 0;
  border: 0;
  color: var(--teal);
  background: none;
}

.danger-button {
  padding: 10px 13px;
  border: 1px solid rgba(216, 106, 87, .28);
  color: #8b2e22;
  background: var(--coral-soft);
}

.capture-panel,
.intro-check-panel,
.quick-add-panel,
.practice-panel,
.practice-output,
.training-options-panel,
.conversation-review-panel,
.conversation-output,
.review-panel {
  margin: 0 18px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.section-heading h2,
.page-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.08;
}

.field-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field-block span,
.control-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

textarea,
select,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  outline: none;
}

textarea {
  min-height: 126px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

textarea:focus,
select:focus,
input:focus {
  border-color: rgba(14, 124, 123, .58);
  box-shadow: 0 0 0 3px rgba(14, 124, 123, .12);
}

select {
  min-height: 44px;
  padding: 0 12px;
}

.control-block {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.segmented-wrap {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.segmented-wrap::-webkit-scrollbar,
.module-tabs::-webkit-scrollbar {
  display: none;
}

.segment,
.module-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 850;
}

.segment.active,
.module-tab.active {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.field-block.compact {
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.field-block strong {
  color: var(--ink);
  font-size: 12px;
}

.intro-check-panel {
  border-color: rgba(199, 131, 31, .2);
  background:
    linear-gradient(180deg, rgba(243, 234, 217, .68), rgba(255, 255, 255, .84));
}

.monthly-check-panel {
  display: grid;
  gap: 12px;
}

.monthly-check-panel p:not(.eyebrow) {
  max-width: 48ch;
  margin: 0;
  color: #5f502e;
  font-size: 13px;
  line-height: 1.45;
}

.quick-add-panel {
  border-color: rgba(14, 124, 123, .18);
  background:
    linear-gradient(180deg, rgba(220, 239, 237, .62), rgba(255, 255, 255, .86));
}

.quick-add-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.quick-add-mode {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  text-align: left;
}

.quick-add-mode strong {
  font-size: 13px;
  line-height: 1.25;
}

.quick-add-mode span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quick-add-mode.active {
  border-color: rgba(14, 124, 123, .42);
  background:
    linear-gradient(180deg, rgba(220, 239, 237, .92), rgba(255, 255, 255, .88));
  box-shadow: inset 0 0 0 1px rgba(14, 124, 123, .12);
}

.intro-check-grid,
.training-area-grid,
.week-profile-grid,
.area-card-grid {
  display: grid;
  gap: 9px;
}

.intro-check-grid,
.training-area-grid,
.week-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-range-card,
.training-area-card,
.area-summary-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 126px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.intro-range-card {
  min-height: 118px;
}

.intro-range-card header,
.training-area-card header,
.area-summary-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.intro-range-card strong,
.training-area-card strong,
.area-summary-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.intro-range-card p,
.training-area-card p,
.area-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.intro-range-card output {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  font-size: 12px;
  font-weight: 850;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.test-warning {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(199, 131, 31, .3);
  border-radius: 8px;
  background: rgba(243, 234, 217, .76);
}

.test-warning strong {
  font-size: 14px;
}

.test-warning p {
  margin: 0;
  color: #6b5225;
  font-size: 12px;
  line-height: 1.45;
}

.confirm-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.confirm-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

.training-options-panel {
  border-color: rgba(14, 124, 123, .18);
  background:
    linear-gradient(180deg, rgba(220, 239, 237, .7), rgba(255, 255, 255, .84));
}

.training-area-card {
  text-align: left;
  cursor: pointer;
}

.training-area-card.active {
  border-color: var(--teal);
  background:
    linear-gradient(135deg, rgba(220, 239, 237, .92), rgba(255, 255, 255, .9));
  box-shadow: 0 10px 24px rgba(14, 124, 123, .12);
}

.area-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  color: #33405f;
  background: var(--indigo-soft);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.area-score-pill.strong {
  color: #23533c;
  background: var(--green-soft);
}

.area-score-pill.growth {
  color: #7b4e08;
  background: var(--amber-soft);
}

.week-profile-panel {
  border-color: rgba(79, 100, 168, .2);
  background:
    linear-gradient(180deg, rgba(227, 232, 246, .66), rgba(255, 255, 255, .86));
}

.area-summary-card .quiet-button {
  justify-self: start;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.feedback-panel {
  margin: 0 18px 16px;
  padding: 16px;
  border: 1px solid rgba(14, 124, 123, .18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(220, 239, 237, .8), rgba(255, 255, 255, .88));
}

.feedback-panel.urgent {
  border-color: rgba(216, 106, 87, .38);
  background:
    linear-gradient(180deg, rgba(248, 227, 222, .96), rgba(255, 255, 255, .9));
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  max-width: 150px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedback-grid,
.draft-stack,
.pattern-notes,
.read-receipt,
.line-ladder,
.review-map,
.proof-list {
  display: grid;
  gap: 9px;
}

.feedback-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 13px;
}

.feedback-grid article,
.draft-stack article,
.pattern-note,
.receipt-card,
.read-receipt article,
.proof-card,
.ladder-card,
.ifthen-card,
.review-map article,
.perspective-level-card,
.conversation-nudge,
.service-receipt,
.entry-card,
.topic-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.feedback-grid article,
.draft-stack article,
.pattern-note,
.receipt-card,
.read-receipt article,
.ladder-card,
.ifthen-card,
.review-map article,
.perspective-level-card,
.conversation-nudge,
.service-receipt {
  min-height: 102px;
  padding: 12px;
}

.feedback-grid small,
.draft-stack small,
.entry-card small,
.topic-card small,
.pattern-note small,
.receipt-card small,
.read-receipt article small,
.ladder-card small,
.proof-card small,
.ifthen-card small,
.review-map article small,
.perspective-level-card small,
.conversation-nudge small,
.service-receipt small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.feedback-grid p,
.draft-stack p,
.pattern-note p,
.receipt-card p,
.read-receipt article p,
.ladder-card p,
.ifthen-card p,
.review-map article p,
.perspective-level-card p,
.conversation-nudge p,
.service-receipt p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.read-receipt {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 13px;
}

.receipt-card,
.read-receipt article {
  min-height: 82px;
  background: rgba(241, 247, 246, .86);
}

.line-ladder-wrap,
.ifthen-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.compact-heading {
  margin-bottom: 9px;
}

.line-ladder {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ladder-card {
  min-height: 112px;
}

.ladder-card[data-step="soft"] {
  border-color: rgba(14, 124, 123, .18);
}

.ladder-card[data-step="clear"] {
  border-color: rgba(79, 100, 168, .2);
}

.ladder-card[data-step="firm"] {
  border-color: rgba(216, 106, 87, .24);
}

.ladder-card[data-step="final"] {
  border-color: rgba(20, 36, 37, .22);
  background: rgba(241, 247, 246, .9);
}

.ifthen-panel {
  display: grid;
  gap: 10px;
}

.ifthen-panel h2 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.12;
}

.ifthen-card {
  min-height: 86px;
  border-color: rgba(199, 131, 31, .26);
  background: rgba(243, 234, 217, .64);
}

.plan-field {
  margin-top: 12px;
}

.after-action-panel {
  margin: 0 18px 16px;
}

.conversation-review-panel {
  border-color: rgba(14, 124, 123, .18);
  background:
    linear-gradient(180deg, rgba(220, 239, 237, .68), rgba(255, 255, 255, .84));
}

.perspective-level-card {
  min-height: 112px;
  margin-bottom: 13px;
  border-color: rgba(79, 100, 168, .22);
  background:
    linear-gradient(135deg, rgba(227, 232, 246, .82), rgba(255, 255, 255, .86));
}

.perspective-level-card h3 {
  margin: 7px 0 0;
  font-size: 18px;
  line-height: 1.12;
}

.conversation-output {
  margin: 14px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(241, 247, 246, .78));
}

.review-map {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-map article:nth-child(4),
.review-map article:nth-child(6) {
  border-color: rgba(79, 100, 168, .2);
}

.conversation-nudge {
  margin-top: 9px;
  border-color: rgba(199, 131, 31, .28);
  background: rgba(243, 234, 217, .66);
}

.professional-prep-panel {
  border-color: rgba(79, 100, 168, .2);
  background:
    linear-gradient(180deg, rgba(227, 232, 246, .64), rgba(255, 255, 255, .86));
}

.prep-output {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.prep-preview {
  display: grid;
  gap: 9px;
}

.prep-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
}

.prep-card header {
  display: grid;
  gap: 3px;
}

.prep-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.prep-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.prep-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.prep-card li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.prep-card li strong {
  color: var(--ink);
}

.service-receipt {
  min-height: 82px;
  margin-top: 9px;
  background: rgba(241, 247, 246, .88);
}

.list-section {
  padding: 8px 18px 16px;
}

.entry-list {
  display: grid;
  gap: 9px;
}

.entry-card {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  min-height: 98px;
  padding: 12px;
}

.entry-color {
  width: 7px;
  min-height: 74px;
  border-radius: 99px;
  background: var(--teal);
}

.entry-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.entry-card p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.meta-pill {
  max-width: 140px;
  padding: 5px 7px;
  border-radius: 999px;
  color: #32585a;
  background: var(--teal-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-card button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 900;
}

.proof-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-color: rgba(38, 115, 77, .2);
  background:
    linear-gradient(135deg, rgba(225, 240, 231, .82), rgba(255, 255, 255, .88));
}

.proof-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.proof-card .proof-line {
  color: var(--ink);
  font-weight: 700;
}

.empty-state {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, .55);
}

.empty-state strong {
  font-size: 15px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.page-heading {
  padding: 20px 18px 14px;
}

.page-heading p:not(.eyebrow) {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 18px 16px;
}

.topic-card {
  display: grid;
  gap: 9px;
  min-height: 126px;
  padding: 13px;
  text-align: left;
}

.topic-card h3 {
  margin: 0;
  font-size: 15px;
}

.topic-card strong {
  font-size: 28px;
  line-height: 1;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.topic-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 36, 37, .08);
}

.topic-meter span {
  display: block;
  width: var(--meter, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--card-color, var(--teal));
}

.practice-layout {
  display: grid;
  gap: 0;
}

.module-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 18px 14px;
  scrollbar-width: none;
}

.practice-output {
  background:
    linear-gradient(180deg, rgba(227, 232, 246, .76), rgba(255, 255, 255, .86));
}

.draft-stack article {
  min-height: 86px;
}

.review-bars {
  display: grid;
  gap: 10px;
}

.review-row {
  display: grid;
  grid-template-columns: 88px 1fr 32px;
  gap: 10px;
  align-items: center;
}

.review-row span {
  min-width: 0;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 36, 37, .08);
}

.bar-track i {
  display: block;
  width: var(--bar, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--teal));
}

.review-row strong {
  text-align: right;
  font-size: 12px;
}

.summary-box {
  width: 100%;
  min-height: 176px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.weekly-note-box {
  min-height: 248px;
  font-size: 13px;
  line-height: 1.6;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 560px);
  padding: 9px 12px 12px;
  transform: translateX(-50%);
  border-top: 1px solid var(--line);
  background: rgba(246, 251, 251, .92);
  backdrop-filter: blur(16px);
}

.nav-button {
  min-width: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(20, 36, 37, .07);
  font-size: 13px;
  line-height: 1;
}

.nav-button.active {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, .78);
}

.nav-button.active .nav-icon {
  color: #ffffff;
  background: var(--teal);
}

.settings-panel,
.modal-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.settings-scrim,
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 20, 22, .36);
}

.settings-sheet,
.modal-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 560px);
  max-height: 82vh;
  overflow: auto;
  padding: 18px;
  transform: translateX(-50%);
  border-radius: 8px 8px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 60px rgba(20, 36, 37, .22);
}

.intro-check-sheet {
  background:
    linear-gradient(180deg, rgba(243, 234, 217, .92), rgba(246, 251, 251, .98) 180px),
    var(--paper);
}

.close-button {
  font-weight: 900;
}

.settings-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.settings-item + .settings-item {
  margin-top: 9px;
}

.settings-item strong {
  display: block;
  font-size: 14px;
}

.settings-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

#import-data {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 80;
  width: min(92%, 420px);
  padding: 12px 14px;
  transform: translate(-50%, 18px);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(20, 36, 37, .94);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 720px) {
  .app-shell {
    min-height: calc(100vh - 28px);
    margin-top: 14px;
    margin-bottom: 14px;
    border-radius: 18px;
  }

  .bottom-nav {
    bottom: 14px;
    border-radius: 0 0 18px 18px;
  }
}

@media (max-width: 390px) {
  .field-grid,
  .feedback-grid,
  .topic-grid,
  .intro-check-grid,
  .quick-add-mode-grid,
  .training-area-grid,
  .week-profile-grid,
  .read-receipt,
  .line-ladder,
  .review-map {
    grid-template-columns: 1fr;
  }

  .cadence-panel {
    grid-template-columns: 1fr;
  }

  .cadence-meter-wrap strong {
    text-align: left;
  }

  .training-band h2 {
    font-size: 26px;
  }

  .entry-card {
    grid-template-columns: 6px minmax(0, 1fr);
  }

  .entry-card button {
    grid-column: 2;
    width: 100%;
  }
}
