:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --panel: #fffdf8;
  --panel-soft: #fbf7ef;
  --ink: #15251f;
  --muted: #68766d;
  --line: #e3ddd2;
  --green: #506848;
  --green-2: #3f553b;
  --green-3: #edf2e8;
  --gold: #b89870;
  --gold-2: #c7a67d;
  --gold-soft: #efe3d2;
  --rose: #a85245;
  --danger: #a33a2e;
  --shadow: 0 22px 60px rgba(21, 37, 31, 0.1);
  --shadow-soft: 0 10px 28px rgba(21, 37, 31, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(184, 152, 112, 0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(80, 104, 72, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(80, 104, 72, 0.045) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(225deg, rgba(184, 152, 112, 0.04) 25%, transparent 25%) 0 0 / 34px 34px,
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 336px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(160deg, rgba(63, 85, 59, 0.99), rgba(80, 104, 72, 0.96)),
    var(--green-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 18px 0 45px rgba(11, 63, 53, 0.14);
}

.sidebar::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 253, 248, 0.34);
  border: 2px solid rgba(63, 85, 59, 0.95);
  border-radius: 999px;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background:
    linear-gradient(135deg, transparent 18px, rgba(255, 255, 255, 0.14) 19px, transparent 20px) 0 0 / 42px 42px,
    linear-gradient(45deg, transparent 18px, rgba(255, 255, 255, 0.1) 19px, transparent 20px) 0 0 / 42px 42px;
}

.sidebar > * {
  position: relative;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 8px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    #5b7652;
  color: var(--gold-2);
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 -18px 24px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-credit {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.74);
}

.brand-credit small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.2;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
}

p,
small,
.total-card span {
  color: var(--muted);
  line-height: 1.45;
}

.profile-card,
.cloud-card,
.total-card,
.section-panel,
.switch-panel,
.task-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.profile-card,
.cloud-card,
.total-card {
  padding: 16px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.profile-card label,
.cloud-card label,
.form-field > label {
  display: grid;
  gap: 8px;
  color: #53635a;
  font-size: 13px;
  font-weight: 800;
}

.profile-card input[type="text"],
.cloud-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e0d3;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.profile-card input[type="text"]:focus,
.cloud-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 152, 112, 0.18);
}

.profile-card label + label,
.cloud-card label + label {
  margin-top: 12px;
}

.cloud-card {
  display: grid;
  gap: 10px;
}

.cloud-status {
  border: 1px solid rgba(80, 104, 72, 0.24);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--green-3);
  color: var(--green-2);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.cloud-status.is-waiting {
  border-color: rgba(184, 152, 112, 0.42);
  background: var(--gold-soft);
  color: #5d452a;
}

.cloud-status.is-error {
  border-color: rgba(163, 58, 46, 0.28);
  background: #f8e7e4;
  color: var(--danger);
}

.cloud-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cloud-note {
  color: #69776e;
  font-size: 11px;
  line-height: 1.35;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.inline-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.mini-button {
  min-height: 42px;
  border: 1px solid rgba(184, 152, 112, 0.36);
  border-radius: 6px;
  padding: 0 11px;
  background: var(--gold-soft);
  color: #5d452a;
  font-size: 12px;
  font-weight: 950;
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  margin-top: 12px;
  font-weight: 700 !important;
}

.check-row input {
  margin-top: 3px;
  accent-color: var(--green);
}

.total-card {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.save-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #53635a;
  font-size: 12px;
  font-weight: 850;
}

.total-card .save-status {
  justify-self: center;
  margin-top: 2px;
  text-align: center;
}

.save-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(80, 104, 72, 0.1);
}

.sidebar-group {
  display: grid;
  gap: 9px;
}

.sidebar-heading {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.sidebar-footer .check-row {
  color: rgba(255, 255, 255, 0.84) !important;
  margin-top: 0;
}

.sidebar-version {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 850;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
}

.total-card strong {
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  line-height: 0.95;
}

.meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece2;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold-2));
  transition: width 180ms ease;
}

.nav-tabs,
.sidebar-actions {
  display: grid;
  gap: 8px;
}

.nav-tab,
.secondary-button,
.ghost-button,
.primary-button,
.save-now-button {
  display: grid;
  place-items: center;
  min-height: 43px;
  border-radius: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 14px;
  font-weight: 900;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
  text-decoration: none;
}

.nav-tab {
  place-items: center stretch;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
}

.nav-tab:hover,
.ghost-button:hover,
.secondary-button:hover,
.primary-button:hover,
.save-now-button:hover {
  transform: translateY(-1px);
}

.nav-tab.is-active,
.primary-button,
.save-now-button {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, var(--gold), #d5ae5a);
  color: #1c231b;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.file-button {
  display: inline-grid;
  place-items: center;
}

.file-button input {
  display: none;
}

.secondary-button {
  background: rgba(239, 227, 210, 0.98);
  border-color: rgba(184, 152, 112, 0.35);
  color: #4b3925;
}

.secondary-button.light {
  border-color: rgba(184, 152, 112, 0.36);
  background: #fffdf8;
  color: var(--green-2);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
}

.danger {
  color: #ffe2df;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

main {
  min-width: 0;
  padding: 32px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar p {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 6px;
}

.score-stack {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
}

.save-now-button {
  min-width: 112px;
  min-height: 43px;
}

.save-cluster {
  align-self: flex-end;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 136px;
}

.bottom-save-bar {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.score-chip {
  min-width: 172px;
  min-height: 136px;
  padding: 14px 17px;
  border: 1px solid rgba(184, 152, 112, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 248, 0.96)),
    white;
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: start;
  gap: 7px;
  text-align: left;
}

.score-chip span {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 5px;
  color: var(--green-2);
  font-size: 30px;
  font-weight: 950;
}

.score-chip b {
  font: inherit;
}

.score-chip em {
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.score-chip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.clear-score-button,
.fill-score-button {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(184, 152, 112, 0.34);
  border-radius: 8px;
  background: var(--gold-soft);
  color: #5d452a;
  font-size: 12px;
  font-weight: 950;
}

.score-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 3px;
}

.fill-score-button {
  border-color: rgba(80, 104, 72, 0.3);
  background: var(--green-3);
  color: var(--green-2);
}

.score-chip.total-card {
  min-width: 172px;
}

.score-chip.total-card .meter {
  width: 100%;
  margin-top: 2px;
}

.section-panel {
  padding: 20px;
  border-color: rgba(221, 230, 217, 0.9);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
}

.is-hidden {
  display: none !important;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(56px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.day-button {
  --day-progress: 0%;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  border: 1px solid #dbe5d7;
  background:
    linear-gradient(90deg, rgba(80, 104, 72, 0.12) var(--day-progress), transparent var(--day-progress)),
    #fffdf8;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  place-items: center;
  gap: 2px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(21, 37, 31, 0.04);
}

.day-button span,
.day-button small {
  position: relative;
}

.day-button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.day-button.is-active {
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #fffefa;
  border-color: var(--green);
}

.day-button.is-active small {
  color: rgba(255, 255, 255, 0.82);
}

.switch-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, rgba(234, 244, 236, 0.85), rgba(255, 254, 250, 0.98)),
    var(--panel);
}

.switch-panel p {
  max-width: 760px;
}

.manual-rule-button {
  display: inline-grid;
  width: fit-content;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  font-size: 12px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  padding: 4px;
  border-radius: 8px;
  background: #ebe8df;
  border: 1px solid #ded6ca;
}

.mode-button,
.special-mode {
  min-width: 96px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: #5f6e65;
  background: transparent;
  font-weight: 900;
}

.mode-button.is-active,
.special-mode.is-active {
  background: #fffdf8;
  color: var(--green);
  box-shadow: 0 2px 10px rgba(21, 37, 31, 0.1);
}

.focus-panel {
  margin-bottom: 18px;
}

.main-collapse-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(184, 152, 112, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(251, 247, 239, 0.98)),
    var(--panel-soft);
  box-shadow: var(--shadow-soft);
}

.main-collapse-panel + .main-collapse-panel {
  margin-top: 12px;
}

.main-collapse-heading {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-left: 6px solid var(--green);
  padding: 11px 14px;
  background: linear-gradient(90deg, rgba(237, 242, 232, 0.96), rgba(255, 253, 248, 0.96));
  color: var(--green-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.main-collapse-heading span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.main-collapse-heading strong {
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.05;
}

.main-collapse-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.main-collapse-heading b {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 32px;
  border: 1px solid rgba(80, 104, 72, 0.22);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fffdf8;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.main-panel-prayer .main-collapse-heading {
  border-left-color: var(--green);
}

.main-panel-tracker .main-collapse-heading {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(255, 246, 223, 0.96), rgba(255, 253, 248, 0.96));
}

.main-panel-counter .main-collapse-heading {
  border-left-color: #8b8f63;
  background: linear-gradient(90deg, rgba(237, 242, 232, 0.96), rgba(255, 246, 223, 0.86));
}

.main-panel-body {
  border-top: 1px solid rgba(221, 221, 210, 0.82);
  padding: 14px;
}

.main-panel-body[hidden] {
  display: none;
}

.prayer-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
}

.prayer-now,
.next-prayer,
.prayer-location-panel {
  border: 1px solid rgba(184, 152, 112, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 12px;
}

.prayer-now {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.prayer-now h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
}

.prayer-now strong {
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  white-space: nowrap;
}

.prayer-now small {
  font-size: 12px;
  font-weight: 850;
}

.prayer-main {
  display: grid;
  gap: 8px;
}

.prayer-main-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}

.next-prayer {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  background: linear-gradient(90deg, var(--green-3), rgba(255, 253, 248, 0.82));
}

.next-prayer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.next-prayer strong {
  justify-self: center;
  color: var(--green-2);
  font-size: 19px;
  text-align: center;
}

.next-prayer em {
  color: var(--gold);
  font-style: normal;
  font-weight: 950;
}

.next-prayer-time {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.next-prayer-time b {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.prayer-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.prayer-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 5px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  background: var(--panel);
}

.prayer-time-row.is-now {
  border-color: rgba(80, 104, 72, 0.46);
  background: linear-gradient(90deg, var(--green-3), var(--panel));
}

.prayer-time-row.is-past {
  opacity: 0.68;
}

.prayer-time-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.prayer-time-row small {
  display: none;
}

.prayer-time-row > span {
  color: var(--green-2);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.prayer-time-row em {
  justify-self: start;
  width: 100%;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--gold-soft);
  color: #5d452a;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.prayer-time-row.is-now em {
  background: var(--green);
  color: #fffefa;
}

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

.prayer-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-button {
  min-height: 34px;
  border: 1px solid rgba(80, 104, 72, 0.22);
  border-radius: 8px;
  padding: 0 11px;
  background: var(--green-3);
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.quick-button.subtle {
  background: transparent;
  color: var(--muted);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.location-grid label {
  display: grid;
  gap: 6px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.location-grid input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--panel);
  color: var(--ink);
}

.prayer-method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-top: 2px;
}

.prayer-method > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.prayer-status {
  grid-column: 1 / -1;
  border: 1px solid rgba(184, 152, 112, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--gold-soft);
  color: #5d452a;
  font-size: 13px;
  font-weight: 850;
}

.prayer-settings {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.settings-toggle {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(80, 104, 72, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--green-3);
  color: var(--green-2);
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  text-align: left;
  list-style: none;
}

.settings-toggle::-webkit-details-marker {
  display: none;
}

.settings-toggle::after {
  content: "v";
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.prayer-settings[open] .settings-toggle::after {
  transform: rotate(180deg);
}

.settings-toggle span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-toggle small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.settings-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 253, 248, 0.7);
}

.prayer-settings:not([open]) .settings-panel {
  display: none;
}

.settings-section {
  grid-column: 1 / -1;
}

.settings-panel label {
  display: grid;
  gap: 6px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.settings-panel input,
.settings-panel select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 11px;
}

.track-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(7, 95, 74, 0.12);
  border-radius: 8px;
  background: linear-gradient(90deg, #edf2e8, #fbf7ef);
  color: var(--green-2);
  font-size: 14px;
  font-weight: 950;
}

.track-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.dhikr-counter-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.generic-counter-panel {
  display: grid;
  gap: 12px;
}

.generic-counter-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.generic-counter-head strong {
  display: block;
  color: var(--green-2);
  font-size: 14px;
}

.generic-counter-head p,
.empty-counter-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.generic-counter-list {
  display: grid;
  gap: 10px;
}

.generic-counter-panel + .dhikr-counter-panel,
.dhikr-counter-panel + .dhikr-counter-panel,
.dhikr-counter-panel + .generic-counter-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.generic-counter-card {
  border: 1px solid rgba(221, 221, 210, 0.86);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.generic-counter-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 0.35fr);
  gap: 10px;
}

.generic-counter-fields label {
  display: grid;
  gap: 6px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.generic-counter-fields input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.generic-counter-readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.generic-counter-readout span {
  min-width: 0;
  color: var(--green-2);
  font-size: 15px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.generic-counter-readout strong {
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.generic-counter-readout em {
  min-width: 46px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.dhikr-counter-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.dhikr-counter-head h3 {
  margin: 0 0 3px;
  color: var(--green-2);
  font-size: 18px;
}

.dhikr-counter-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.dhikr-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.dhikr-counter-card {
  min-width: 0;
  border: 1px solid rgba(221, 221, 210, 0.86);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.dhikr-counter-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dhikr-counter-title span {
  color: var(--green-2);
  font-size: 13px;
  font-weight: 950;
}

.dhikr-counter-title small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.dhikr-counter-card strong {
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.dhikr-target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.dhikr-target-row label {
  display: grid;
  gap: 5px;
  color: var(--green-2);
  font-size: 11px;
  font-weight: 950;
}

.dhikr-target-row input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.dhikr-target-row em {
  min-width: 44px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.dhikr-meter {
  height: 7px;
}

.dhikr-counter-actions {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 6px;
}

.dhikr-counter-actions .primary-button,
.dhikr-counter-actions .quick-button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}

.danger-lite {
  color: #8f3028;
  background: #f8e3df;
  border-color: rgba(143, 48, 40, 0.22);
}

.generic-counter-remove {
  display: flex;
  justify-content: flex-end;
}

.generic-counter-remove .quick-button {
  min-width: 112px;
}

.generic-counter-confirm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(143, 48, 40, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: #fff3f0;
}

.generic-counter-confirm[hidden] {
  display: none;
}

.generic-counter-confirm span {
  flex: 1 1 100%;
  color: #8f3028;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.task-group {
  grid-column: 1 / -1;
  border: 1px solid rgba(221, 221, 210, 0.86);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
  padding: 10px;
}

.task-group + .task-group {
  margin-top: 2px;
}

.task-group-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 11px;
  padding-top: 11px;
}

.group-heading {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 11px;
  background: linear-gradient(90deg, var(--green-3), rgba(251, 247, 239, 0.8));
  color: var(--green-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  text-align: left;
}

.group-heading small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: none;
}

.task-card {
  min-height: 78px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 254, 250, 0.96)),
    var(--panel);
  box-shadow: 0 6px 18px rgba(21, 37, 31, 0.04);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.task-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 37, 31, 0.07);
}

.task-card:has(input:checked) {
  border-color: rgba(7, 95, 74, 0.42);
  background: linear-gradient(180deg, #f3f7ef, #fffdf8);
}

.missed-prayer-card {
  min-height: 92px;
  border: 1px solid rgba(143, 48, 40, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8f5, #fffdf8);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.missed-prayer-card.has-missed {
  border-color: rgba(143, 48, 40, 0.42);
  background: linear-gradient(180deg, #fff1ed, #fffaf5);
}

.missed-prayer-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.missed-prayer-main label,
.makeup-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.missed-prayer-main input,
.makeup-grid input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #8f3028;
  flex: 0 0 auto;
}

.missed-prayer-main strong {
  display: block;
  color: #703025;
  font-size: 14px;
}

.missed-prayer-main small,
.makeup-grid small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.missed-prayer-main b {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 30px;
  border: 1px solid rgba(143, 48, 40, 0.16);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f8e3df;
  color: #8f3028;
  font-size: 12px;
  font-weight: 950;
}

.makeup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(143, 48, 40, 0.12);
  padding-top: 9px;
}

.makeup-grid label {
  border: 1px solid rgba(184, 152, 112, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  padding: 9px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.task-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.task-main input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.check-proxy {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 2px solid #b9c7b3;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  flex: 0 0 auto;
}

.check-proxy.is-checked {
  border-color: var(--green);
  background: var(--green);
}

.task-main strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.task-main small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.points {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 152, 112, 0.24);
  border-radius: 999px;
  background: var(--gold-soft);
  color: #5d452a;
  font-size: 13px;
  font-weight: 950;
}

.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.summary-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.summary-card .meter {
  grid-column: 1 / -1;
}

.summary-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--panel) 0 57%, transparent 58%),
    conic-gradient(var(--green) var(--summary-progress), #e4ded2 0);
}

.summary-ring span {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.summary-card strong {
  display: block;
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.1;
  margin: 8px 0;
}

.summary-card small {
  display: block;
}

.khitma-layout {
  display: grid;
  gap: 14px;
}

.khitma-score-panel,
.khitma-claim-panel,
.khitma-planner-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.khitma-score-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.khitma-score-panel span,
.khitma-coverage-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.khitma-score-panel strong {
  display: block;
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1;
  margin: 6px 0;
}

.khitma-score-panel em {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-style: normal;
}

.khitma-rule-list {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.khitma-rule-list strong {
  color: var(--green-2);
}

.khitma-claim-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.khitma-claim-card,
.khitma-coverage-card,
.khitma-member-row {
  border: 1px solid rgba(221, 221, 210, 0.86);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
}

.khitma-section-head h3 {
  color: var(--green-2);
}

.khitma-score-panel p,
.khitma-section-head p,
.khitma-claim-card small,
.khitma-coverage-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.khitma-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.khitma-claim-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  padding: 13px;
}

.khitma-claim-card.is-selected,
.khitma-member-row.is-current {
  border-color: rgba(7, 95, 74, 0.42);
  background: linear-gradient(180deg, #f3f7ef, #fffdf8);
}

.khitma-claim-card input,
.khitma-current-member input,
.khitma-complete-check input {
  accent-color: var(--green);
}

.khitma-claim-card strong {
  display: block;
  color: var(--green-2);
  font-size: 14px;
}

.khitma-complete-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 900;
}

.khitma-coverage-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
}

.khitma-coverage-card strong {
  display: block;
  color: var(--green-2);
  font-size: 20px;
}

.khitma-coverage-card b {
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--gold-soft);
  color: #5d452a;
  font-size: 12px;
}

.khitma-coverage-card.needs-work b {
  background: #f8e3df;
  color: #8f3028;
}

.khitma-member-list {
  display: grid;
  gap: 8px;
}

.khitma-planner-actions,
.khitma-managed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.khitma-member-row {
  display: grid;
  grid-template-columns: 92px minmax(150px, 1.2fr) repeat(2, minmax(76px, 0.45fr)) minmax(112px, 0.62fr) minmax(112px, 0.62fr) 66px;
  gap: 10px;
  align-items: end;
  padding: 12px;
}

.khitma-member-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.khitma-current-member {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--green-2) !important;
}

.khitma-portion-toggle,
.khitma-istighfar-toggle {
  min-height: 38px;
  border: 1px solid rgba(184, 152, 112, 0.36);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--gold-soft);
  color: #5d452a;
  font-size: 12px;
  font-weight: 950;
}

.khitma-istighfar-toggle {
  border-color: rgba(143, 48, 40, 0.2);
  background: #f8e3df;
  color: #8f3028;
}

.khitma-portion-toggle.is-complete,
.khitma-istighfar-toggle.is-complete {
  border-color: rgba(7, 95, 74, 0.34);
  background: #edf2e8;
  color: var(--green-2);
}

.khitma-member-row input[type="text"],
.khitma-member-row input[type="number"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7e0d3;
  border-radius: 6px;
  padding: 0 10px;
  background: #fffdf8;
  color: var(--ink);
}

.khitma-member-row strong {
  min-height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: #5d452a;
  font-size: 13px;
}

.khitma-managed-card {
  align-items: center;
}

.team-notice {
  border: 1px solid rgba(80, 104, 72, 0.16);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(237, 242, 232, 0.58);
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.team-stats article,
.team-needs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
  padding: 13px;
}

.team-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.team-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.team-needs {
  margin-bottom: 12px;
}

.team-needs p {
  margin-top: 6px;
  font-size: 13px;
}

.team-table {
  display: grid;
  gap: 8px;
}

.team-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(95px, 0.55fr) minmax(95px, 0.55fr) minmax(90px, 0.45fr) minmax(140px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.team-row.header {
  background: #edf2e8;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.team-row strong {
  font-size: 14px;
}

.team-row span {
  color: var(--muted);
  font-size: 13px;
}

.team-manual-entry {
  margin-top: 18px;
}

.manual-score-panel {
  border: 1px solid rgba(184, 152, 112, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fbf7ef);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.manual-score-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.manual-score-head h3 {
  margin: 0 0 4px;
  color: var(--green-2);
  font-size: 20px;
}

.manual-score-head p {
  max-width: 720px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.manual-score-head strong {
  flex: 0 0 auto;
  min-width: 116px;
  border: 1px solid rgba(7, 95, 74, 0.18);
  border-radius: 8px;
  background: #edf2e8;
  color: var(--green-2);
  padding: 10px 12px;
  text-align: center;
  font-size: 18px;
}

.manual-member-name {
  display: grid;
  gap: 6px;
  max-width: 420px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.manual-member-name input,
.manual-score-grid input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.manual-member-name input {
  padding: 0 11px;
}

.manual-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.manual-score-grid label {
  position: relative;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(221, 221, 210, 0.86);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
  padding: 10px;
}

.manual-score-grid label span {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 950;
}

.manual-score-grid input {
  padding: 0 42px 0 10px;
  font-weight: 900;
}

.manual-score-grid label small {
  position: absolute;
  right: 18px;
  bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.manual-score-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.manual-score-list {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.manual-score-list h4 {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: 13px;
  text-transform: uppercase;
}

.manual-score-list p {
  color: var(--muted);
  font-size: 13px;
}

.manual-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(221, 221, 210, 0.72);
}

.manual-score-row:first-of-type {
  border-top: 0;
}

.manual-score-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.manual-score-row span strong {
  color: var(--ink);
  font-size: 14px;
}

.manual-score-row span small {
  color: var(--muted);
  font-size: 12px;
}

.manual-score-row b {
  color: var(--green-2);
  font-size: 14px;
}

.print-view {
  display: none;
}

.print-view header {
  margin-bottom: 22px;
}

.print-view h1,
.print-view h2 {
  color: #15251f;
}

.print-view table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}

.print-view th,
.print-view td {
  border: 1px solid #d8d0c2;
  padding: 9px 10px;
  text-align: left;
}

.print-view pre {
  white-space: pre-wrap;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media print {
  body {
    background: #fff;
    color: #15251f;
  }

  .app-shell {
    display: none;
  }

  .print-view {
    display: block;
    padding: 24px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  main {
    padding: 18px;
  }

  h2 {
    font-size: 34px;
  }

  .topbar,
  .switch-panel,
  .summary-head,
  .khitma-score-panel,
  .khitma-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .action-row {
    justify-content: stretch;
  }

  .action-row > * {
    width: 100%;
  }

  .score-chip {
    text-align: left;
  }

  .score-stack {
    flex-wrap: wrap;
    justify-content: center;
  }

  .score-chip span {
    justify-content: flex-start;
  }

  .score-actions {
    grid-template-columns: 1fr;
  }

  .day-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .segmented {
    width: 100%;
  }

  .mode-button,
  .special-mode {
    min-width: 0;
  }

  .track-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-collapse-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .main-collapse-heading b {
    width: 100%;
  }

  .prayer-dashboard,
  .location-grid,
  .next-prayer,
  .settings-toggle {
    grid-template-columns: 1fr;
  }

  .prayer-method {
    grid-template-columns: 1fr;
  }

  .prayer-now strong {
    font-size: 38px;
  }

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

  .prayer-time-row {
    min-height: 76px;
  }

  .settings-toggle small {
    text-align: left;
  }

  .next-prayer-time {
    justify-items: start;
    text-align: left;
  }

  .team-row {
    grid-template-columns: 1fr;
  }

  .khitma-coverage-card,
  .khitma-member-row {
    grid-template-columns: 1fr;
  }

  .khitma-planner-actions,
  .khitma-managed-actions {
    justify-content: stretch;
  }

  .khitma-planner-actions > *,
  .khitma-managed-actions > * {
    flex: 1 1 140px;
  }

  .manual-score-head,
  .generic-counter-head,
  .dhikr-counter-head,
  .manual-score-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dhikr-counter-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .missed-prayer-main,
  .makeup-grid {
    grid-template-columns: 1fr;
  }

  .missed-prayer-main {
    align-items: stretch;
    flex-direction: column;
  }

  .missed-prayer-main b {
    width: 100%;
  }

  .generic-counter-fields,
  .generic-counter-readout {
    grid-template-columns: 1fr;
  }

  .generic-counter-readout strong,
  .generic-counter-readout em {
    justify-self: start;
    text-align: left;
  }

  .manual-score-row {
    grid-template-columns: 1fr;
  }

  .manual-score-row .mini-button,
  .manual-score-actions > * {
    width: 100%;
  }

  .bottom-save-bar {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .khitma-claim-grid {
    grid-template-columns: 1fr;
  }
}
