:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #27382f;
  background: #f7f5ea;
  font-synthesis: none;
  --ink: #27382f;
  --muted: #52645a;
  --green: #245c42;
  --line: #d8dfd0;
  --paper: #fffef8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--green); }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid #a25d23; outline-offset: 4px; }
.topbar {
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(22px, calc((100% - 960px) / 2));
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; }
.brand-icon { width: 24px; height: 24px; background: var(--green); border-radius: 80% 15% 77% 20%; transform: rotate(-9deg); }
main { width: min(100% - 36px, 960px); margin: 36px auto 68px; }
.intro { display: flex; align-items: center; gap: clamp(20px, 5vw, 46px); padding: 32px clamp(20px, 5vw, 48px); margin-bottom: 26px; border-radius: 28px; color: #fcfff8; background: #254b3c; }
.intro h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 5vw, 52px); line-height: 1.05; font-weight: 600; }
.intro p { margin: 10px 0 0; color: #e2eddb; font-size: clamp(15px, 2vw, 18px); }
.hero-art { flex: 0 0 auto; position: relative; display: grid; place-items: center; width: clamp(62px, 12vw, 115px); aspect-ratio: 1; background: #f9d99b; border-radius: 50%; }
.hero-art span { width: 56%; height: 47%; background: #315742; border-radius: 45% 45% 46% 46%; position: relative; margin-top: 14%; }
.hero-art span::before, .hero-art span::after { content:""; position:absolute; top:-34%; width: 42%; height: 74%; background:#315742; clip-path: polygon(0 90%, 18% 0, 100% 100%); }
.hero-art span::after { right:0; transform: scaleX(-1); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tabs button { color: var(--green); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 9px 16px; font-weight: 700; }
.tabs button[aria-pressed=true] { background: #dcebd9; border-color: #a7c7a8; }
.card { background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 4vw, 32px); border-radius: 22px; }
h2 { margin: 0 0 14px; font-size: clamp(22px, 3vw, 28px); }
p { line-height: 1.5; }
form label:not(.secondary) { display: block; font-weight: 650; margin-bottom: 7px; }
.login-steps { padding-left: 22px; line-height: 1.5; }
.login-steps li + li { margin-top: 6px; }
#login-form { margin-top: 20px; }
#login-value { flex: 1 1 240px; min-width: 0; min-height: 44px; border: 1px solid #aebdad; border-radius: 12px; padding: 10px 13px; background: #fff; color: var(--ink); }
textarea { display: block; width: 100%; min-height: 108px; resize: vertical; border: 1px solid #aebdad; border-radius: 14px; padding: 13px; background: #fff; color: var(--ink); line-height: 1.5; }
textarea::placeholder { color: #64736b; }
.actions, .upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.upload { margin-top: 12px; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within label { outline: 3px solid #a25d23; outline-offset: 3px; }
#photo-name { min-width: 0; overflow-wrap: anywhere; }
.primary, .secondary { display: inline-block; padding: 10px 16px; border-radius: 12px; border: 1px solid transparent; text-decoration: none; font-weight: 700; cursor: pointer; line-height: 1.45; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #173e2c; }
.secondary { background: #edf2e8; color: var(--green); border-color: var(--line); }
.text-button { border: 0; padding: 9px 4px; color: var(--green); background: none; text-decoration: underline; }
.note { color: var(--muted); font-size: 14px; }
.test-note { background: #fff3d8; padding: 9px 13px; border-radius: 10px; }
.feedback { margin: 16px 0 0; padding: 14px; border-radius: 14px; background: #edf2e8; white-space: pre-line; overflow-wrap: anywhere; }
.tasks { margin-top: 32px; }
#task-list { display: grid; gap: 18px; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.task-group > h3 { margin: 0 0 8px; color: var(--green); font-size: 17px; }
.task { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; }
.task h3 { font-size: 18px; margin: 0 0 8px; }
.task p { margin: 0 0 10px; overflow-wrap: anywhere; white-space: pre-line; }
.task .actions { margin-top: auto; padding-top: 4px; }
.tag { font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.tag.draft { color: #80531e; }
.empty { color: var(--muted); margin: 0; }
@media (max-width: 520px) {
  main { margin-top: 22px; }
  .intro { padding: 24px 16px; gap: 14px; }
  .topbar { min-height: 58px; }
  .card { border-radius: 17px; }
}
