:root{--navy:#05194e;--gold:#d48e3e;--cream:#f8f5ef;--ink:#142443;--muted:#52617a;--line:#e1e5ec;--blue:#edf2fc;font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--cream)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}[hidden]{display:none!important}a{color:inherit;text-underline-offset:4px}:focus-visible{outline:3px solid #ce7b22;outline-offset:4px}.skip{position:absolute;top:-100px;background:white;padding:12px;z-index:10}.skip:focus{top:0}.top{background:var(--navy);color:white;padding:22px max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;font-size:18px;letter-spacing:.12em}.brand b{color:#f2bb77}.brand small{display:block;font-size:9px;letter-spacing:.18em;opacity:.8}.seal{border:1px solid #e5b16b;border-radius:50%;width:44px;height:44px;text-align:center;line-height:41px;color:#f2bb77;font:italic 32px/41px Georgia,serif}.back{font-size:12px}main{max-width:1180px;margin:auto;padding:0 24px}.intro{text-align:center;padding:58px 0 36px}.eyebrow,.step{font-size:10px;letter-spacing:.16em;font-weight:750;color:#8a5420}.intro h1{font:clamp(38px,5vw,62px)/1.08 Georgia,serif;margin:15px 0 22px;letter-spacing:-.035em;color:var(--navy)}h1 em{color:#a16426;font-weight:400}.intro p{color:var(--muted);margin:0}.pills{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:22px}.pills span{font-size:11px;border:1px solid #d7cfbf;padding:4px 13px;border-radius:20px}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);background:white;border:1px solid #d9dde5;border-radius:20px;box-shadow:0 18px 55px #05194e0a;overflow:hidden;scroll-margin-top:20px}.setup{background:#fffcf6;border-right:1px solid var(--line);padding:28px 25px}.setup h2{font:25px/1.25 Georgia,serif;margin:12px 0 26px;color:var(--navy)}label{display:block;font-size:12px;font-weight:650;margin:18px 0 6px}select{background:white;border:1px solid #c4ccda;border-radius:8px;width:100%;padding:10px;color:var(--navy);font-size:13px}.hint{font-size:11px;line-height:1.55;color:var(--muted)}.trial{border-top:1px solid #e3d7c5;border-bottom:1px solid #e3d7c5;margin:24px 0 16px;padding:16px 0}.trial b{font-size:11px;font-weight:500}.trial strong{display:block;color:var(--navy);font:25px/1.4 Georgia,serif}.trial span{display:block;font-size:11px;color:var(--muted);margin-top:6px}.consent{display:flex;align-items:flex-start;gap:8px;font-size:10px;font-weight:400;line-height:1.6}.consent input{margin:4px 0;min-width:16px;min-height:16px}.primary{border:0;border-radius:9px;background:var(--navy);color:white;font-size:12px;padding:13px 18px;font-weight:650;min-height:44px}.setup .primary,.secondary{width:100%;margin-top:12px}.secondary{background:transparent;color:var(--navy);border:1px solid #c8ceda;border-radius:9px;padding:11px;font-size:11px;min-height:44px}.next{border-top:1px solid var(--line);padding-top:20px;margin-top:26px}.next p{font-size:11px;color:var(--muted)}.conversation{min-width:0;display:flex;flex-direction:column}.chat-head{padding:20px 25px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.avatar{width:38px;height:38px;background:var(--navy);border-radius:50%;color:#f1b86f;display:grid;place-items:center;font:italic 25px Georgia,serif}.chat-head h2{font-size:14px;margin:0}.chat-head p{font-size:10px;color:var(--muted);margin:2px 0}.timer{margin-left:auto;background:var(--cream);border-radius:7px;padding:5px 10px;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.messages{padding:24px;min-height:320px;max-height:560px;overflow-y:auto;background:#f7f9fc;display:flex;flex-direction:column;gap:16px}.bubble{background:white;border:1px solid var(--line);padding:16px 18px;border-radius:3px 14px 14px;max-width:95%;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.bubble p{margin:8px 0}.bubble.student{align-self:flex-end;background:var(--navy);color:white;border:0;border-radius:14px 3px 14px 14px}.sender{font-size:9px;letter-spacing:.12em;font-weight:750;color:#976126}.student .sender{color:#e4bb84}.bubble h3{font-size:12px;margin:18px 0 5px}.bubble ul{padding-left:20px;white-space:normal}.bubble li{margin:7px 0}.correction{padding:10px 0;border-bottom:1px solid var(--line)}.correction del{color:#963c39;text-decoration-thickness:1px}.correction ins{color:#226347;text-decoration:none;font-weight:650;display:block}.correction small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.improved{border-left:3px solid var(--gold);padding-left:12px;white-space:pre-wrap}.notice{background:#fff6df;border:1px solid #e3cb96;color:#604417;font-size:11px;padding:10px;border-radius:7px}.task{margin:18px 24px 0;padding:14px 16px;background:var(--blue);border-left:3px solid var(--navy);font-size:12px}.task b{color:var(--navy)}.task p{margin:7px 0}.task small{font-size:10px;color:var(--muted)}.composer{padding:12px 24px 14px}.composer label{margin-top:0}.composer textarea{display:block;resize:vertical;width:100%;min-height:118px;border:1px solid #c4ccda;border-radius:9px;padding:12px;color:var(--ink);background:white;font-size:13px;line-height:1.6}.composer textarea:disabled{background:#f7f8fa}.compose-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.compose-foot span{font-size:11px;color:var(--muted)}#error{font-size:12px;color:#8e2828;margin-bottom:0}.chat-tools{padding:0 24px 20px;display:flex;justify-content:space-between;gap:12px}.text-button{background:none;border:none;padding:8px 0;color:var(--muted);text-decoration:underline;text-underline-offset:3px;font-size:10px}.how{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;margin:44px 0}.how span{font:24px Georgia,serif;color:#a66a2d}.how h3{font-size:14px}.how p{font-size:12px;color:var(--muted)}details{padding:20px 0;border-top:1px solid #ded8cc;font-size:11px;color:var(--muted)}summary{font-size:12px;cursor:pointer;color:var(--navy);font-weight:600}footer{max-width:1180px;margin:auto;padding:25px 24px;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted);border-top:1px solid #ded8cc}@media(max-width:760px){.top{padding:16px 20px}.brand{font-size:14px}.brand small{font-size:7px}.back{font-size:10px}.seal{width:36px;height:36px;line-height:33px}main{padding:0 16px}.intro{padding:36px 0 28px}.intro p{font-size:13px}.workspace{grid-template-columns:1fr}.setup{border-right:0;border-bottom:1px solid var(--line);padding:22px}.setup h2{margin:8px 0 18px}.setup label{margin-top:12px}.trial{margin:18px 0 10px}.next{display:none}.messages{min-height:220px;max-height:480px;padding:18px}.chat-head{padding:16px}.chat-head h2{font-size:12px}.chat-head p{font-size:9px}.task{margin:16px}.composer{padding:0 16px 16px}.chat-tools{padding:0 16px 18px}.how{gap:20px;margin:30px 0}.how h3{font-size:12px}.how p{font-size:11px}.bubble{max-width:100%;font-size:12px}.timer{font-size:11px;padding:5px 7px}footer{font-size:9px}.compose-foot{align-items:flex-start}.compose-foot .primary{font-size:11px}}@media(max-width:420px){.back{max-width:85px;text-align:right}.how{grid-template-columns:1fr;gap:14px}.how h3{display:inline;margin-left:10px}.how p{margin:6px 0}.chat-head{gap:8px}}

/* Conversational onboarding: one continuous chat on desktop and mobile. */
.workspace{display:block;max-width:820px;margin:auto}.conversation{width:100%}.intro{padding-bottom:28px}.intro h1{font-size:clamp(34px,4.5vw,52px)}.messages{min-height:330px;max-height:560px}.availability{font-size:11px;line-height:1.5;color:var(--muted);padding:10px 24px;margin:0;background:#fff8e9;border-bottom:1px solid #e8ddc5}.choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;white-space:normal}.choice{border:1px solid #b8c6de;background:#fff;color:var(--navy);border-radius:18px;padding:9px 15px;font-size:12px;min-height:42px}.choice:hover{background:var(--blue)}.chat-confirm{margin:0;max-width:100%;width:100%}.chat-confirm .consent{font-size:12px;margin-top:0}.chat-confirm .primary{margin-top:10px}.task{margin:0;max-width:95%;border-radius:3px 14px 14px}.chat-tools{flex-wrap:wrap}.how{max-width:820px;margin-left:auto;margin-right:auto}.intro .pills span:first-child{font-weight:650}@media(max-width:760px){.messages{min-height:300px}.availability{padding:10px 16px}.chat-tools{gap:10px 18px}.intro h1{font-size:36px}.choice{font-size:12px}.chat-confirm .consent{font-size:11px}}

/* Messaging layout */
body { background: #e9eeec; }
main { max-width: 900px; padding: 20px 16px 0; }
.workspace { background: #efeae2; border: 1px solid #cdd7d3; border-radius: 12px; box-shadow: 0 4px 24px #183d3020; }
.conversation { height: calc(100dvh - 64px); min-height: 360px; }
.chat-head { background: #075e54; color: white; padding: 12px 16px; gap: 12px; flex-shrink: 0; }
.chat-head h2 { color: white; font-size: 16px; }
.chat-head p { color: #d4eee6; font-size: 12px; }
.chat-back { color: white; text-decoration: none; font-size: 24px; padding: 0 4px; }
.avatar { background: #d9f4e7; color: #075e54; flex: 0 0 38px; }
.timer { background: #ffffff20; color: white; }
.availability { padding: 6px 14px; background: #fff8de; color: #594a28; flex-shrink: 0; }
.messages {
  flex: 1; min-height: 0; max-height: none; gap: 9px; padding: 20px 22px;
  background-color: #efeae2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='112' fill='none' stroke='%23bfb3a4' stroke-opacity='.42' stroke-width='1.1'%3E%3Cpath d='M9 18q0-6 6-6h13q6 0 6 6v8q0 6-6 6H17l-7 5 2-7q-3-2-3-6zM78 11l18 8-18 9 3-8zM81 20l15-1M52 52l3-7 3 7 7 3-7 3-3 7-3-7-7-3zM17 80q-10-8-14-1-4 8 14 17 18-9 14-17-4-7-14 1zM93 77q12-8 25 0v16q-13-8-25 0-12-8-24 0V77q12-8 24 0zm0 0v16'/%3E%3Ccircle cx='116' cy='48' r='6'/%3E%3C/svg%3E");
}
.messages > .bubble { align-self: flex-start; width: fit-content; max-width: min(83%, 640px); background: white; color: #152521; border: 0; border-radius: 0 9px 9px; padding: 8px 12px 5px; box-shadow: 0 1px 2px #0002; font-size: 14px; }
.messages > .student { align-self: flex-end; background: #d9fdd3; border-radius: 9px 0 9px 9px; }
.bubble p { margin: 2px 0; }
.message-time { display: block; text-align: right; font-size: 10px; color: #546762; margin-top: 3px; }
.composer { flex-shrink: 0; display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: end; gap: 4px 8px; padding: 9px 12px 6px; background: #f0f2f5; }
#composer-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.composer textarea { min-height: 44px; max-height: 32dvh; padding: 10px 15px; border: 1px solid #dce3df; border-radius: 20px; font-size: 16px; resize: vertical; }
#send { background: #087e69 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 4l19 8-19 8 2-7 10-1-10-1z'/%3E%3C/svg%3E") center / 23px no-repeat; width: 44px; height: 44px; border-radius: 50%; padding: 0; font-size: 0; }
.word-count, #error { grid-column: 1 / -1; font-size: 11px; color: #536660; }
#error { margin: 0; color: #9b2828; }
#error:empty { display: none; }
#privacy { margin: 0 4px; padding: 9px 0; }
@media (max-width: 760px) {
  main { padding: 0; }
  .workspace { border: 0; border-radius: 0; }
  .conversation { height: 100dvh; min-height: 0; }
  .messages { padding: 14px 11px; }
  .messages > .bubble { max-width: 89%; }
  .composer { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  #privacy { margin: 0 12px; }
}

.exam-catalog { list-style: none; padding: 0; margin: 9px 0 6px; display: grid; gap: 5px; }
.exam-row { display: flex; gap: 9px; align-items: center; background: #f6f8f7; padding: 6px 8px; border-radius: 7px; }
.exam-mark { width: 39px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 6px; color: white; background: #075e54; font-size: 10px; font-weight: 750; }
.exam-mark-oxford { background: #263860; }
.exam-mark-cambridge { background: #623e4d; }
.exam-mark-ielts { background: #94394b; }
.exam-mark-toefl { background: #4d4675; }
.exam-details { display: grid; line-height: 1.35; }
.exam-details small,.exam-note { color: #536660; font-size: 11px; }

.writing-intro main { padding: 20px 16px 30px; max-width: 760px; }
.writing-intro nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #075e54; font-size: 13px; padding: 0 2px 14px; }
.writing-intro nav a { color: inherit; text-decoration: none; font-weight: 700; }
.intro-card,.catalog-card { border-radius: 14px; padding: clamp(20px,5vw,39px); }
.intro-card { background: #075e54; color: white; }
.intro-card h1 { margin: 14px 0; color: white; font-size: clamp(36px,7vw,64px); line-height: 1.02; letter-spacing: -.04em; }
.intro-card p { max-width: 53ch; }
.open-chat { display: inline-flex; gap: 24px; padding: 11px 17px; border-radius: 24px; background: #d9fdd3; color: #143d33; text-decoration: none; font-weight: 750; margin: 6px 0; }
.intro-card .trial-note { font-size: 13px; color: #d4eee6; margin-bottom: 0; }
.catalog-card { margin-top: 14px; background: white; }
.catalog-card h2 { margin: 0; font-size: 21px; }
.catalog-card p { color: #536660; font-size: 14px; }
.catalog-card .exam-row { padding: 9px 12px; }
