.bottom{grid-template-columns:repeat(4,minmax(0,1fr))}
.mcp-memory-list{display:grid;gap:0;max-height:none;overflow:visible}
.mcp-memory-row{position:relative;min-height:48px;padding:11px 8px 11px 23px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.mcp-memory-row::before{content:'•';position:absolute;left:7px;top:10px;color:var(--orange);font-size:16px}
.mcp-memory-row:hover,.mcp-memory-row:focus-visible{background:var(--orange-soft);transform:none}
.mcp-memory-note{display:block;font-size:13px;font-weight:500;line-height:1.65;white-space:pre-wrap;-webkit-line-clamp:unset}
.memory-dialog-list{display:block;max-width:900px;margin:0 auto;padding:0 0 0 25px;list-style:disc}
.memory-dialog-item{padding:14px 8px;border:0;border-bottom:1px solid var(--line);border-radius:0;color:var(--ink);background:transparent;font-size:16px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.memory-dialog-item::marker{color:var(--orange)}
.memory-dialog-head{background:var(--white)}
.past-page{max-width:1520px;margin:auto}
.past-controls{display:grid;grid-template-columns:minmax(125px,160px) minmax(125px,160px) minmax(240px,1fr);gap:12px;margin:0 0 16px}
.past-controls label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700}
.past-controls select,.past-controls input{width:100%;min-height:46px;padding:0 13px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--white);font:inherit;font-size:14px}
.past-controls select:focus-visible,.past-controls input:focus-visible,.past-result:focus-visible,.past-more:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.past-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.8fr);gap:16px;align-items:start}
.past-results,.past-detail{min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.past-results-head{display:flex;justify-content:space-between;align-items:center;padding:17px 18px;border-bottom:1px solid var(--line);color:var(--navy)}
.past-results-head span{color:var(--muted);font-size:12px}
.past-result-list{max-height:calc(100dvh - 285px);min-height:260px;overflow:auto;overscroll-behavior:contain}
.past-result{display:grid;gap:6px;width:100%;min-height:72px;padding:13px 18px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.past-result:hover{background:var(--surface)}
.past-result.active{padding-left:15px;border-left:3px solid var(--orange);background:var(--orange-soft)}
.past-result-number,.past-detail-number{color:var(--orange);font-size:12px;font-weight:800}
.past-result-text{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:14px;line-height:1.55}
.past-detail{position:sticky;top:18px;max-height:calc(100dvh - 80px);padding:25px;overflow:auto}
.past-detail h2{margin:10px 0 18px;color:var(--navy);font-size:22px}
.past-detail p{margin:0;color:var(--ink);font-size:18px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.past-detail small{display:block;margin-top:22px;color:var(--muted)}
.past-more{width:100%;min-height:48px;border:0;background:var(--surface);color:var(--navy);font-weight:700;cursor:pointer}
.past-message{padding:26px;color:var(--muted);line-height:1.6}
.past-timer{position:relative;display:grid;grid-template-columns:150px minmax(0,1fr);gap:25px;align-items:center;margin:0 0 18px;padding:22px 25px;overflow:hidden;border:1px solid rgba(21,48,74,.09);border-radius:20px;background:radial-gradient(ellipse at 2% 0%,rgba(235,88,48,.10),transparent 38%),linear-gradient(120deg,#fff 12%,#fffaf8 100%);box-shadow:0 12px 32px rgba(19,42,65,.055)}
.past-timer::after{position:absolute;right:-54px;top:-93px;width:225px;height:225px;border:1px solid rgba(235,88,48,.07);border-radius:50%;content:"";pointer-events:none}
.past-timer-dial{--timer-progress:0%;position:relative;z-index:1;display:grid;width:144px;aspect-ratio:1;place-items:center;border-radius:50%;background:conic-gradient(from -90deg,var(--orange) 0%,var(--orange) var(--timer-progress),rgba(17,46,73,.11) var(--timer-progress),rgba(17,46,73,.11) 100%);transition:filter .25s ease}
.past-timer-dial::before{position:absolute;inset:8px;border:1px solid rgba(17,46,73,.06);border-radius:50%;background:linear-gradient(145deg,#fff 20%,#fff8f4 100%);box-shadow:inset 0 2px 8px rgba(20,43,64,.045);content:""}
.past-timer-face{position:relative;display:grid;justify-items:center;gap:1px}
.past-timer-time{color:var(--navy);font:750 38px/1.12 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR","Apple SD Gothic Neo",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-1.8px}
.past-timer-face>span{color:var(--muted);font-size:10px;font-weight:650;letter-spacing:.04em}
.past-timer-body{position:relative;z-index:1;display:grid;min-width:0;gap:14px}
.past-timer-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.past-timer-heading{display:flex;min-width:0;align-items:center;gap:11px}
.past-timer-icon{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border:1px solid rgba(235,88,48,.12);border-radius:13px;background:linear-gradient(145deg,#fff1eb,#fff8f5);color:var(--orange)}
.past-timer-icon svg{width:21px;height:21px}
.past-timer-heading-copy{min-width:0}
.past-timer-eyebrow{display:block;margin-bottom:2px;color:var(--orange);font-size:10px;font-weight:800;letter-spacing:.07em}
.past-timer-heading-copy h2{margin:0;color:var(--navy);font-size:17px;font-weight:750;letter-spacing:-.025em}
.past-timer-heading-copy p{margin:3px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.past-timer-state{display:inline-flex;flex:0 0 auto;min-height:28px;align-items:center;gap:7px;padding:0 10px;border:1px solid rgba(21,48,74,.08);border-radius:999px;background:rgba(255,255,255,.8);color:var(--muted);font-size:11px;font-weight:750;white-space:nowrap}
.past-timer-state::before{width:7px;height:7px;border-radius:50%;background:#a8b1bb;content:""}
.past-timer-state.is-running{border-color:rgba(31,151,112,.17);background:#f0faf6;color:#167b5d}
.past-timer-state.is-running::before{background:#20a979;box-shadow:0 0 0 3px rgba(32,169,121,.12)}
.past-timer-state.is-paused{border-color:rgba(235,88,48,.15);background:#fff7f3;color:#c94d2b}
.past-timer-state.is-paused::before{background:var(--orange)}
.past-timer-state.is-complete{border-color:rgba(21,48,74,.12);background:#f1f4f7;color:var(--navy)}
.past-timer-state.is-complete::before{background:var(--navy)}
.past-timer-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.past-timer-preset{position:relative;display:grid;min-width:0;min-height:68px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;align-items:center;gap:1px 8px;padding:10px 14px;border:1px solid rgba(21,48,74,.1);border-radius:13px;background:rgba(255,255,255,.86);color:var(--ink);font-family:inherit;text-align:left;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.past-timer-preset:hover{border-color:rgba(235,88,48,.34);background:#fff}
.past-timer-preset:active{transform:scale(.985)}
.past-timer-preset.active{border-color:rgba(226,80,43,.58);background:linear-gradient(120deg,#fff8f4,#fff);box-shadow:0 0 0 3px rgba(235,88,48,.07)}
.past-timer-preset:focus-visible,.past-timer-action:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.past-timer-option-label{color:var(--muted);font-size:12px;font-weight:700}
.past-timer-option-time{grid-column:1;color:var(--navy);font-size:20px;font-weight:750;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.past-timer-preset::after{grid-column:2;grid-row:1/3;align-self:center;color:var(--muted);font-size:17px;content:"↗"}
.past-timer-preset.active::after{color:var(--orange)}
.past-timer-footer{display:flex;min-height:44px;justify-content:space-between;align-items:center;gap:12px}
.past-timer-note{color:var(--muted);font-size:11px;line-height:1.4}
.past-timer-actions{display:flex;justify-content:flex-end;gap:8px}
.past-timer-action{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:7px;padding:0 14px;border:1px solid rgba(21,48,74,.12);border-radius:12px;background:#fff;color:var(--ink);font-family:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,transform .18s ease}
.past-timer-action span{font-size:14px;line-height:1}
.past-timer-action.primary{border-color:var(--orange);background:var(--orange);box-shadow:0 4px 11px rgba(225,79,42,.16);color:#fff}
.past-timer-action.primary:hover{background:#d94e2b}
.past-timer-action.subtle{background:rgba(255,255,255,.8);color:var(--muted)}
.past-timer-action:active{transform:scale(.975)}
@media(prefers-reduced-motion:reduce){.past-timer-preset,.past-timer-action,.past-timer-dial{transition:none}}
@media(max-width:780px){.past-timer{grid-template-columns:104px minmax(0,1fr);gap:14px;margin-bottom:16px;padding:15px 14px;border-radius:18px}.past-timer-dial{width:100px}.past-timer-dial::before{inset:6px}.past-timer-time{font-size:28px;letter-spacing:-1.2px}.past-timer-face>span{font-size:9px}.past-timer-body{gap:10px}.past-timer-header{align-items:flex-start;gap:6px}.past-timer-heading{gap:8px}.past-timer-icon{width:32px;height:32px;flex-basis:32px;border-radius:11px}.past-timer-icon svg{width:18px;height:18px}.past-timer-eyebrow{font-size:9px}.past-timer-heading-copy h2{font-size:14px}.past-timer-heading-copy p{display:none}.past-timer-state{min-height:24px;padding:0 7px;gap:5px;font-size:10px}.past-timer-state::before{width:6px;height:6px}.past-timer-presets{gap:7px}.past-timer-preset{min-height:62px;padding:8px 9px;border-radius:11px;gap:0 4px}.past-timer-option-label{font-size:11px}.past-timer-option-time{font-size:17px}.past-timer-preset::after{font-size:14px}.past-timer-footer{min-height:40px;gap:6px}.past-timer-note{max-width:105px;font-size:9px}.past-timer-actions{gap:6px}.past-timer-action{min-height:40px;padding:0 9px;border-radius:10px;font-size:11px}.past-timer-action span{font-size:12px}}
@media(max-width:1020px){.past-layout{grid-template-columns:minmax(0,1fr) minmax(280px,.85fr)}}
@media(max-width:780px){.past-timer-footer{min-height:44px}.past-timer-action{min-height:44px}}
@media(max-width:780px){.past-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.past-search-label{grid-column:1/-1}.past-layout{grid-template-columns:1fr}.past-result-list{max-height:none;min-height:0;overflow:visible}.past-detail{order:-1;position:static;max-height:none;padding:20px;scroll-margin-top:16px}.past-detail p{font-size:16px}.memory-dialog-item{font-size:15px}.bottom button{font-size:10px}}

/* A disposable writing surface for past-exam practice. The question and canvas share one pane. */
.past-page .heading{margin-bottom:16px}
.past-page .past-layout{grid-template-columns:minmax(270px,.69fr) minmax(0,1.31fr);grid-template-areas:"timer panel" "browser panel";grid-template-rows:auto minmax(0,1fr);gap:12px 14px;align-items:start}
.past-browser{grid-area:browser;min-width:0}
.past-layout>.past-timer{grid-area:timer;grid-template-columns:68px minmax(0,1fr);gap:11px;margin:0;padding:13px;border-radius:14px}
.past-layout>.past-timer .past-timer-dial{width:68px}
.past-layout>.past-timer .past-timer-dial::before{inset:5px}
.past-layout>.past-timer .past-timer-time{font-size:19px;letter-spacing:-.04em}
.past-layout>.past-timer .past-timer-face>span{font-size:8px}
.past-layout>.past-timer .past-timer-body{gap:9px}
.past-layout>.past-timer .past-timer-heading{gap:6px}
.past-layout>.past-timer .past-timer-icon{width:30px;height:30px;flex-basis:30px;border-radius:10px}
.past-layout>.past-timer .past-timer-icon svg{width:17px;height:17px}
.past-layout>.past-timer .past-timer-eyebrow{font-size:8px}
.past-layout>.past-timer .past-timer-heading-copy h2{font-size:13px}
.past-layout>.past-timer .past-timer-heading-copy p,.past-layout>.past-timer .past-timer-note{display:none}
.past-layout>.past-timer .past-timer-state{min-height:22px;padding:0 6px;font-size:9px}
.past-layout>.past-timer .past-timer-presets{gap:6px}
.past-layout>.past-timer .past-timer-preset{min-height:52px;padding:7px 9px;border-radius:10px}
.past-layout>.past-timer .past-timer-option-label{font-size:10px}
.past-layout>.past-timer .past-timer-option-time{font-size:17px}
.past-layout>.past-timer .past-timer-footer{min-height:44px;justify-content:flex-end}
.past-layout>.past-timer .past-timer-actions{flex-wrap:wrap}
.past-layout>.past-timer .past-timer-action{min-height:44px;padding:0 8px;font-size:10px}
.past-browser .past-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}
.past-browser .past-search-label{grid-column:1/-1}
.past-browser .past-result-list{max-height:calc(100dvh - 350px);min-height:260px}
.past-browser .past-result{min-height:66px;padding:10px 12px}
.past-browser .past-result.active{padding-left:9px}
.past-ink-panel{grid-area:panel;position:sticky;top:14px;display:flex;flex-direction:column;height:calc(100dvh - 28px);min-height:590px;max-height:none;padding:0;overflow:hidden;border-color:#dce4eb;border-radius:17px;box-shadow:0 15px 38px rgba(19,42,65,.07)}
.past-ink-question{flex:0 0 auto;padding:16px 18px 12px;border-bottom:1px solid #e5eaef;background:linear-gradient(125deg,#fff,#fffaf8)}
.past-ink-question-top,.past-ink-nav,.past-ink-nav>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.past-ink-question .past-detail-number{font-size:11px}
.past-ink-question h2{max-height:4.8em;margin:8px 0 11px;overflow:auto;color:var(--navy);font-size:19px;line-height:1.45;overflow-wrap:anywhere}
.past-ink-expand,.past-ink-nav button,.past-ink-tools button,.past-ink-actions button,.past-ink-footer button{min-height:44px;border:1px solid #dce4eb;border-radius:10px;background:#fff;color:#21384e;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;cursor:pointer}
.past-ink-expand{min-width:86px;padding:0 11px}
.past-ink-nav>span{color:#748395;font-size:11px;font-weight:700;white-space:nowrap}
.past-ink-nav button{min-width:74px;padding:0 10px}
.past-ink-nav button:last-child{border-color:var(--orange);background:var(--orange);color:#fff}
.past-ink-nav button:disabled,.past-ink-actions button:disabled{opacity:.38;cursor:not-allowed}
.past-ink-workspace{display:flex;flex:1;flex-direction:column;min-height:0;background:#fbfcfd}
.past-ink-workspace,.past-ink-workspace *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
.past-ink-workspace button{touch-action:manipulation}
.past-ink-tools{display:flex;flex:0 0 auto;gap:6px;padding:9px 12px 5px;overflow-x:auto;scrollbar-width:thin}
.past-ink-tools button{display:inline-flex;flex:1 0 auto;align-items:center;justify-content:center;gap:5px;min-width:68px;padding:0 7px;white-space:nowrap}
.past-ink-tools button span{font-size:19px;font-weight:400;line-height:1}
.past-ink-tools button[aria-pressed="true"]{border-color:#a6bbca;background:#eaf2f8;color:#15344b;box-shadow:inset 0 0 0 1px #b7ccd9}
.past-ink-controls{display:flex;flex:0 0 auto;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:6px 12px 10px;border-bottom:1px solid #e5eaef}
.past-ink-colors,.past-ink-actions{display:flex;align-items:center;gap:4px}
.past-ink-colors button{display:grid;width:44px;height:44px;place-items:center;border:0;border-radius:10px;background:transparent;cursor:pointer}
.past-ink-colors button span{width:23px;height:23px;border:1px solid rgba(0,0,0,.13);border-radius:50%;background:var(--ink-swatch)}
.past-ink-colors button[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #9db6c9}
.past-ink-colors button:disabled{opacity:.4;cursor:not-allowed}
.past-ink-size{display:flex;min-width:130px;flex:1;align-items:center;gap:6px;color:#53667a;font-size:11px;font-weight:700;white-space:nowrap}
.past-ink-size input{width:100%;min-width:60px;accent-color:var(--orange)}
.past-ink-size output{min-width:30px;font-variant-numeric:tabular-nums;text-align:right}
.past-ink-actions button{min-width:44px;padding:0 8px;font-size:16px}
.past-ink-actions button:last-child{min-width:83px;font-size:11px}
.past-ink-stage{position:relative;flex:1;min-height:230px;overflow:hidden;background-color:#fff;background-image:radial-gradient(#dfe5ea .7px,transparent .8px);background-size:21px 21px;box-shadow:inset 0 2px 4px rgba(22,47,68,.03)}
.past-ink-stage canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
.past-ink-stage canvas:focus-visible{outline:3px solid var(--orange);outline-offset:-4px}
.past-ink-placeholder{position:absolute;top:38%;left:50%;display:grid;justify-items:center;gap:5px;width:min(90%,260px);transform:translate(-50%,-50%);color:#94a4b3;text-align:center;pointer-events:none}
.past-ink-placeholder[hidden]{display:none}
.past-ink-placeholder>span{font-size:32px;font-weight:300}
.past-ink-placeholder strong{font-size:14px}
.past-ink-placeholder small{font-size:11px}
.past-ink-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;padding:7px 12px;border-top:1px solid #e5eaef;background:#fff;color:#718193;font-size:10px}
.past-ink-footer button{min-height:44px;padding:0 9px;font-size:10px}
.past-ink-footer button[aria-pressed="true"]{border-color:var(--orange);background:var(--orange-soft);color:#a5472b}
.past-ink-diagnostics{position:relative;margin-left:auto}
.past-ink-diagnostics summary{display:flex;align-items:center;min-height:44px;padding:0 10px;border:1px solid #dce4eb;border-radius:10px;color:#53667a;cursor:pointer;touch-action:manipulation}
.past-ink-diagnostics output{position:absolute;z-index:2;right:0;bottom:calc(100% + 8px);width:max-content;max-width:min(85vw,390px);padding:12px;border:1px solid #dce4eb;border-radius:10px;background:#fff;color:#19334b;font-size:12px;line-height:1.7;white-space:pre-line;box-shadow:0 6px 24px #19334b22}
.past-ink-panel .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.past-ink-expand:focus-visible,.past-ink-nav button:focus-visible,.past-ink-tools button:focus-visible,.past-ink-colors button:focus-visible,.past-ink-actions button:focus-visible,.past-ink-footer button:focus-visible,.past-ink-size input:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.past-ink-empty{display:grid;place-items:center;padding:24px}
body.past-ink-fullscreen{overflow:hidden}
.past-ink-panel.past-ink-expanded{position:fixed;z-index:1200;inset:0;width:100vw;height:100dvh;min-height:0;max-height:none;border:0;border-radius:0;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);box-shadow:0 0 0 200vmax rgba(13,32,50,.55)}
.past-ink-expanded .past-ink-question{padding:13px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left))}
@media(max-width:1100px){.past-page .past-layout{grid-template-columns:minmax(250px,.76fr) minmax(0,1.24fr)}.past-ink-controls{gap:5px 8px}.past-ink-tools{gap:4px}.past-ink-tools button{min-width:64px}}
@media(min-width:781px) and (max-width:1100px){.past-layout>.past-timer{display:block;min-height:130px}.past-layout>.past-timer .past-timer-dial{position:absolute;top:11px;right:10px;width:48px}.past-layout>.past-timer .past-timer-dial::before{inset:4px}.past-layout>.past-timer .past-timer-time{font-size:14px}.past-layout>.past-timer .past-timer-face>span{font-size:7px}.past-layout>.past-timer .past-timer-body{gap:12px}.past-layout>.past-timer .past-timer-header{padding-right:52px}.past-layout>.past-timer .past-timer-icon,.past-layout>.past-timer .past-timer-eyebrow{display:none}.past-layout>.past-timer .past-timer-heading-copy h2,.past-layout>.past-timer .past-timer-option-label{white-space:nowrap}.past-layout>.past-timer .past-timer-footer{min-height:0}.past-layout>.past-timer .past-timer-actions:empty{display:none}}
@media(max-width:780px){.past-page .past-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"timer" "panel" "browser";grid-template-rows:auto auto auto}.past-layout>.past-timer{margin-bottom:0}.past-ink-panel{position:static;top:auto;width:100%;height:auto;min-height:0;max-height:none;margin-bottom:2px;padding:0;scroll-margin-top:12px}.past-ink-stage{flex:none;height:clamp(370px,52dvh,580px)}.past-ink-question h2{max-height:5.8em;font-size:17px}.past-browser .past-result-list{max-height:none;min-height:0;overflow:visible}.past-ink-footer>span:last-of-type{flex-basis:100%}.past-ink-panel.past-ink-expanded{position:fixed;width:100vw;height:100dvh;margin:0}.past-ink-expanded .past-ink-stage{flex:1;height:auto;min-height:0}}
@media(max-width:430px){.past-ink-question{padding:12px}.past-ink-controls{padding-inline:8px}.past-ink-tools{padding-inline:8px}.past-ink-tools button{min-width:0;flex:1 1 0;gap:3px;padding:0 2px;font-size:10px}.past-ink-tools button span{font-size:16px}.past-ink-colors{flex:0 0 100%;justify-content:space-between}.past-ink-size{min-width:98px}.past-ink-actions{margin-left:auto}}
