:root {
  color-scheme: light;
  --ink: #182e24;
  --muted: #536358;
  --green: #175c46;
  --hero: #173d32;
  --line: #d5ded4;
  --gold: #ead294;
  --font-display: "Amiri", "Traditional Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f4f5ef; color: var(--ink); font: 1rem/1.65 var(--font-body); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #268267; outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 34rem); margin-inline: auto; }
.hero {
  color: #fff8e8;
  padding: 2rem 0 3.5rem;
  background: radial-gradient(ellipse at 20% 0%, #295849, transparent 65%), var(--hero);
  border-bottom: 3px solid #cfb471;
}
.hero p { margin: 0; }
.hero .brand { font-size: .95rem; color: var(--gold); font-weight: 600; }
.hero h1 { font: 700 clamp(2.45rem, 9vw, 3.5rem)/1.15 var(--font-display); margin: .35rem 0 .3rem; }
.hero .hero-description { color: #e1ebe3; }
.hero .verse { color: var(--gold); font: 1.3rem/1.7 var(--font-display); margin-top: .8rem; }
.verse span { font-family: "KFGQPC Hafs", var(--font-display); }
.content { position: relative; margin-top: -1.5rem; padding-bottom: 2rem; }
.panel, .status { border: 1px solid var(--line); border-radius: 1rem; background: #fffefa; }
.panel { padding: clamp(1.15rem, 5vw, 2rem); box-shadow: 0 .5rem 1.6rem #162e2410; }
h2 { font: 700 2rem/1.2 var(--font-display); margin: 0; }
.panel-intro { margin: .35rem 0 1.15rem; color: var(--muted); }
form { display: grid; gap: .4rem; }
form label { font-weight: 600; }
form label:not(:first-child) { margin-top: .45rem; }
input { width: 100%; min-width: 0; border: 1px solid #aebeb2; background: white; border-radius: .55rem; min-height: 3rem; padding: .45rem .75rem; color: var(--ink); }
small { color: var(--muted); }
.btn { min-height: 2.8rem; border: 1px solid transparent; border-radius: .65rem; padding: .45rem .85rem; font-weight: 600; }
.btn.primary { background: var(--green); color: white; }
.btn.primary:hover { background: #104330; }
.btn.secondary { background: white; color: var(--green); border-color: #9ab4a6; }
.btn.text { background: transparent; color: var(--green); text-decoration: underline; text-underline-offset: .2em; padding-inline: 0; }
.btn:disabled { opacity: .65; cursor: wait; }
form .btn, .full-width { margin-top: .7rem; width: 100%; }
.status { color: var(--ink); margin: 0 0 .65rem; padding: .65rem 1rem; }
.status[data-error="true"] { background: #fff1ea; border-color: #edc6b1; color: #8b3926; }
.group { color: var(--green); font-weight: 700; margin: 0 0 .35rem; }
.assignment { display: flex; align-items: center; justify-content: space-between; border-radius: .75rem; background: #e8f1ea; padding: .55rem 1rem; margin: 1rem 0 .65rem; }
.assignment strong { font-size: 2.5rem; line-height: 1.3; color: var(--green); }
.next, .schedule { color: var(--muted); font-size: .94rem; }
.schedule { text-align: center; margin: 1.1rem .5rem 0; }
details { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 1.1rem; }
summary { cursor: pointer; font-weight: 600; color: var(--green); }
details .btn { margin-top: .55rem; }
.toast { position: fixed; z-index: 60; bottom: max(1rem, env(safe-area-inset-bottom)); inset-inline: 0; width: fit-content; max-width: calc(100% - 2rem); margin: auto; padding: .65rem 1rem; background: #173d32; color: white; border-radius: .6rem; }

.install-panel { text-align: center; margin-top: 1rem; }
.install-panel .panel-intro { margin: .5rem auto 0; max-width: 28rem; }
