:root {
  --navy: #17233a;
  --navy-2: #243653;
  --orange: #e16b4c;
  --orange-dark: #c95337;
  --yellow: #f5c857;
  --ink: #20283a;
  --muted: #687187;
  --line: #dde2ea;
  --soft: #f5f6f8;
  --paper: #fffefa;
  --green: #3d9a78;
  --shadow: 0 18px 45px rgba(26, 36, 55, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7f7f5; font-family: Inter, "Avenir Next", Avenir, Helvetica, Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.top-ribbon { height: 27px; display: grid; place-items: center; background: var(--yellow); color: #463916; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.site-header { height: 82px; position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(22px, 4vw, 72px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; width: max-content; }
.brand-logo { display:block; width:44px; height:44px; flex:0 0 44px; object-fit:contain; border-radius:50%; }
.brand b { display: block; font-family: Georgia, serif; font-size: 16px; }
.brand small { display: block; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-top: 3px; }
.main-tabs { height: 100%; display: flex; gap: 8px; align-items: stretch; }
.tab { position: relative; border: 0; background: transparent; padding: 0 18px; color: #7a8190; font-weight: 700; }
.tab span { color: #a8adba; font-size: 10px; margin-right: 6px; }
.tab em { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: #edf0f4; color: var(--navy); font-size: 11px; font-style: normal; margin-left: 5px; }
.tab.active { color: var(--navy); }
.tab.active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px; background: var(--orange); border-radius: 3px 3px 0 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.save-state { color: var(--muted); font-size: 12px; }.save-state i, .save-card i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; }
.profile { border: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: white; font-size: 12px; font-weight: 800; }
.view { display: none; }.view.active { display: block; }
.hero { min-height: 375px; padding: 66px clamp(28px, 7vw, 120px) 58px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; color: white; background: var(--navy); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 45%, rgba(245,200,87,.08), transparent 34%), linear-gradient(120deg, transparent 65%, rgba(255,255,255,.025) 65%); }
.eyebrow { color: var(--orange); font-size: 11px; letter-spacing: .18em; font-weight: 900; margin-bottom: 16px; }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 68px); line-height: .99; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 700; }
.hero h1 span { color: var(--yellow); }
.hero p { color: #c8cfdb; max-width: 590px; font-size: 16px; line-height: 1.7; margin: 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.quick-builder { display:flex; align-items:center; gap:8px; padding:5px 5px 5px 14px; border:1px solid #d8d3c8; border-radius:12px; background:rgba(255,255,255,.78); box-shadow:0 8px 24px rgba(23,35,58,.07); }
.quick-builder label { color:#697282; font-size:11px; font-weight:800; }
.quick-builder select { min-width:58px; padding:9px 7px; color:var(--navy); border:1px solid #d6d9df; border-radius:8px; background:white; font-weight:900; outline:none; }
.quick-builder .primary { white-space:nowrap; }
.primary, .quiet, .outline-full { border-radius: 10px; padding: 13px 18px; font-weight: 800; border: 1px solid transparent; }
.primary { background: var(--orange); color: white; box-shadow: 0 9px 20px rgba(225,107,76,.2); }.primary:hover { background: var(--orange-dark); }.primary span { margin-left: 12px; }
.quiet { color: var(--navy); background: white; border-color: var(--line); }.hero .quiet { color: white; border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.06); }
.workspace { display: grid; grid-template-columns: 280px 1fr; max-width: 1500px; margin: 0 auto; min-height: 700px; }
.filters { padding: 34px 27px; border-right: 1px solid var(--line); background: #fbfbfa; }
.filter-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-weight: 900; }.filter-title button { color: var(--orange); border: 0; background: none; font-size: 11px; font-weight: 800; }
.search { height: 44px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: white; }.search span{font-size:23px;color:#8991a1; transform:rotate(-20deg)}.search input { border: 0; outline: 0; width:100%; color: var(--ink); background: transparent; font-size: 13px; }
fieldset { border: 0; padding: 0; margin: 29px 0; } legend, .select-label { font-size: 11px; font-weight: 900; letter-spacing: .05em; color: #51596a; }
.difficulty-filter { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px}.difficulty { border:1px solid var(--line); background:white; padding:9px 6px; border-radius:8px; color:#626a78; font-size:12px;font-weight:700}.difficulty.active{color:var(--navy);border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.easy{background:#45a580}.medium{background:#dea32f}.hard{background:#d35c50}
.select-label { display:block; margin:21px 0; }.select-label select { display:block;width:100%;margin-top:9px;padding:11px 9px;border:1px solid var(--line);border-radius:8px;background:white;color:#5c6473;font-size:12px;outline:0; }
.filter-note { margin-top: 32px; padding: 18px; border-radius: 10px; background: #eef2f5; border-left: 3px solid var(--orange); }.filter-note b{font-size:11px;color:var(--orange);letter-spacing:.08em}.filter-note p{font-size:11px;color:#6d7585;line-height:1.55;margin:6px 0 0}
.question-area { padding: 32px clamp(24px, 3.3vw, 50px) 70px; background: #f7f7f5; min-width:0; }
.results-head { display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:21px;font-size:14px;font-weight:800}.results-head small{font-weight:500;color:#9298a4}.results-actions{display:flex;align-items:center;gap:8px}.a4-toggle{display:flex;align-items:center;gap:7px;padding:8px 11px;color:var(--navy);border:1px solid #cfd5dd;border-radius:9px;background:white;font-size:11px;font-weight:900}.a4-toggle span{display:grid;place-items:center;width:25px;height:29px;color:var(--orange);border:1px solid var(--orange);border-radius:2px;font:900 8px/1 Arial,sans-serif}.a4-toggle.active{color:white;border-color:var(--orange);background:var(--orange)}.a4-toggle.active span{color:var(--orange);border-color:white;background:white}.mini-cart{border:0;background:var(--navy);color:white;border-radius:9px;padding:10px 14px;font-weight:800}.mini-cart b{display:inline-grid;place-items:center;background:var(--yellow);color:var(--navy);border-radius:50%;width:20px;height:20px;margin-left:7px}.mini-cart span{margin-left:9px}
.question-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
.question-card { display:grid;grid-template-rows:auto 190px auto 1fr auto;min-height:485px;background:white;border:1px solid #e1e5eb;border-radius:14px;overflow:hidden;transition:.2s ease; }.question-card.text-only{grid-template-rows:auto auto 1fr auto;min-height:360px}.question-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#d5dae2}.card-top{display:flex;justify-content:space-between;gap:12px;padding:18px 19px 13px}.badges{display:flex;flex-wrap:wrap;gap:6px}.badge{padding:6px 8px;border-radius:5px;background:#eef1f5;color:#455068;font-size:9px;font-weight:900;letter-spacing:.04em}.badge.grade-badge{color:white;background:var(--navy)}.badge.level-Kolay{background:#e7f5ef;color:#26795e}.badge.level-Orta{background:#fff2d7;color:#93671d}.badge.level-Zor{background:#fde9e6;color:#a84336}.status-mark{color:#a0a6b2;font-size:10px;white-space:nowrap}
.figure-frame{margin:0 19px;border:1px solid #e3e7ed;border-radius:9px;background:#fbfcfd;display:grid;place-items:center;overflow:hidden;padding:8px}.figure-frame img{width:100%;height:100%;object-fit:contain}.context-title{font-family:Georgia,serif;font-size:16px;color:var(--navy);margin:16px 19px 8px;line-height:1.25}.stem{font-size:13px;line-height:1.55;color:#555e6e;margin:0 19px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0f3;margin-top:16px;padding:13px 19px}.preview-btn{border:0;background:none;color:#657085;font-size:12px;font-weight:800}.add-btn{border:0;background:var(--navy);color:white;border-radius:8px;padding:10px 13px;font-size:11px;font-weight:900}.add-btn.added{background:#e7f5ef;color:#26795e}.empty-state,.empty-builder{padding:70px 20px;text-align:center;color:#777f8c}.empty-state b,.empty-state span{display:block}.empty-state span{font-size:12px;margin-top:7px}
.live-a4-panel{position:fixed;z-index:35;right:22px;top:100px;width:350px;max-height:calc(100vh - 124px);overflow:auto;color:var(--ink);border:1px solid #d4d8df;border-radius:16px;background:#fff;box-shadow:0 26px 80px rgba(16,27,46,.25);opacity:0;pointer-events:none;transform:translateX(calc(100% + 40px));transition:transform .28s ease,opacity .22s ease}.live-a4-panel.open{opacity:1;pointer-events:auto;transform:translateX(0)}.live-a4-head{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;padding:15px 16px;color:white;background:var(--navy)}.live-a4-head span,.live-a4-head strong{display:block}.live-a4-head span{margin-bottom:3px;color:#f2bba9;font-size:9px;font-weight:900;letter-spacing:.13em}.live-a4-head strong{font-size:13px}.live-a4-head button{display:grid;place-items:center;width:30px;height:30px;padding:0;color:white;border:1px solid rgba(255,255,255,.23);border-radius:50%;background:rgba(255,255,255,.08);font-size:19px}.live-a4-stage{display:grid;place-items:center;padding:18px;background:#e8e4dc}.live-a4-page{display:flex;flex-direction:column;width:242px;aspect-ratio:210/297;padding:9px;color:#252d39;background:#fff;box-shadow:0 10px 28px rgba(23,35,58,.18)}.live-a4-page>header{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;min-height:19px;padding-bottom:4px;border-bottom:2px solid var(--navy);font-size:5px}.live-a4-page>header span{overflow:hidden;font-family:Georgia,serif;font-size:6px;font-weight:700;white-space:nowrap;text-overflow:ellipsis}.live-a4-page>header b{letter-spacing:.04em}.live-student-line{display:grid;grid-template-columns:1fr 42px 36px;gap:5px;padding:4px 2px;color:#687180;border-bottom:1px solid #d9dde2;font-size:4px}.live-student-line span{border-bottom:1px dotted #aeb4bd}.live-a4-grid{position:relative;display:grid;grid-auto-flow:column;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));flex:1;min-height:0;gap:4px 6px;padding-top:5px}.live-a4-grid:before{content:"";position:absolute;left:50%;top:5px;bottom:0;width:1px;background:#e0e3e7}.live-a4-slot{position:relative;z-index:1;min-width:0;min-height:0;overflow:hidden;border:1px solid #d9dde2;border-radius:3px;background:white}.live-a4-slot.empty{display:grid;place-items:center;align-content:center;gap:3px;color:#a0a6af;border-style:dashed;background:#fafafa;font-size:5px}.live-a4-slot.empty b{display:grid;place-items:center;width:14px;height:14px;border:1px solid #cbd0d6;border-radius:50%}.live-a4-slot.filled{display:flex;flex-direction:column;padding:4px}.live-slot-head{display:flex;align-items:center;gap:3px;color:#687180;font-size:4px;font-weight:800}.live-slot-head b{display:grid;place-items:center;width:13px;height:13px;flex:0 0 13px;color:white;border-radius:50%;background:var(--navy);font-size:5px}.live-a4-slot h4{margin:3px 0 2px;overflow:hidden;color:var(--navy);font:700 5.5px/1.15 Georgia,serif;white-space:nowrap;text-overflow:ellipsis}.live-a4-slot img{width:100%;height:42%;min-height:23px;object-fit:contain;border:1px solid #eaecf0}.live-a4-slot p{display:-webkit-box;margin:3px 0;color:#434b57;font-size:4px;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.live-choice-lines{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin-top:auto}.live-choice-lines i{display:block;height:3px;border-radius:2px;background:#e5e8ec}.live-a4-controls{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;padding:9px 16px;border-top:1px solid var(--line);text-align:center}.live-a4-controls button{height:28px;color:var(--navy);border:1px solid var(--line);border-radius:7px;background:white;font-weight:900}.live-a4-controls button:disabled{opacity:.35;cursor:not-allowed}.live-a4-controls span{color:#687180;font-size:11px;font-weight:800}.live-a4-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px 15px}.live-a4-foot>span{color:#687180;font-size:10px;font-weight:800}.live-a4-foot .primary{padding:10px 12px;font-size:10px}.live-a4-foot .primary span{margin-left:6px}
.live-a4-grid.layout-6{grid-template-rows:repeat(3,minmax(0,1fr))}.live-a4-grid.layout-4{grid-template-rows:repeat(2,minmax(0,1fr))}.live-a4-grid.layout-4 .live-a4-slot img{height:50%;min-height:48px}.live-a4-grid.layout-4 .live-a4-slot p{-webkit-line-clamp:4}
.live-a4-grid.layout-2{grid-template-rows:1fr}.live-a4-grid.layout-2 .live-a4-slot img{height:35%;min-height:60px}.live-a4-grid.layout-2 .live-a4-slot p{-webkit-line-clamp:12;font-size:5px}
.section-shell{max-width:1400px;margin:0 auto;padding:54px clamp(24px,5vw,80px) 90px}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:34px}.page-heading h2{font-family:Georgia,serif;font-size:42px;color:var(--navy);margin:0 0 8px}.page-heading p{color:var(--muted);margin:0}.heading-actions{display:flex;gap:10px}.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.builder-list-panel,.test-summary{background:white;border:1px solid var(--line);border-radius:14px}.test-title-row{display:flex;justify-content:space-between;align-items:center;padding:19px 21px;border-bottom:1px solid var(--line)}.test-title-row input{border:0;border-bottom:1px dashed #a7afbd;font-family:Georgia,serif;font-size:20px;font-weight:700;color:var(--navy);outline:0;width:min(430px,75%)}.test-title-row span{color:var(--muted);font-size:12px}.builder-list{padding:10px}.builder-item{display:grid;grid-template-columns:36px 1fr auto;gap:14px;align-items:center;padding:13px;border-bottom:1px solid #edf0f3}.reorder{display:grid;gap:2px}.reorder button{width:28px;height:22px;border:0;background:#f1f3f6;color:#6d7584;border-radius:4px}.builder-item h4{margin:0 0 6px;color:var(--navy);font-size:13px}.builder-meta{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--muted)}.remove{border:0;background:none;color:#a25045;font-size:18px}.empty-builder div{font-size:36px;color:var(--orange)}.empty-builder b{display:block;color:var(--navy);margin:8px}.empty-builder p{font-size:12px;margin:0 0 17px}.test-summary{padding:23px;position:sticky;top:120px}.summary-label{font-size:10px;letter-spacing:.15em;font-weight:900;color:var(--orange);margin-bottom:21px}.summary-time,.summary-block{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.summary-time strong{font-family:Georgia,serif;font-size:22px;color:var(--navy)}.summary-block strong{font-size:11px;color:var(--navy);text-align:right}.distribution{padding:18px 0;border-bottom:1px solid var(--line)}.dist-row{display:grid;grid-template-columns:42px 1fr 22px;gap:8px;align-items:center;margin:8px 0;font-size:10px;color:var(--muted)}.bar{height:6px;background:#edf0f3;border-radius:8px;overflow:hidden}.bar i{display:block;height:100%;border-radius:8px}.outline-full{width:100%;margin-top:22px;color:#868d9a;background:#f2f3f5;border-color:#e2e5e9;cursor:not-allowed}.outline-full span{display:block;font-size:9px;font-weight:500;margin-top:2px}.test-summary>small{display:block;text-align:center;color:#959ba7;line-height:1.4;margin-top:13px}
.solve-view{height:calc(100vh - 109px);overflow:hidden;background:#e8ebef}.solve-topbar{height:66px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 25px;background:white;border-bottom:1px solid var(--line)}.back-button{justify-self:start;border:0;background:none;color:var(--muted);font-weight:700}.solve-title{text-align:center}.solve-title b,.solve-title span{display:block}.solve-title b{color:var(--navy);font-family:Georgia,serif}.solve-title span{font-size:10px;color:var(--muted);margin-top:3px}.timer{justify-self:end;display:flex;gap:8px;align-items:center}.timer b{font-size:19px;color:var(--navy);font-variant-numeric:tabular-nums}.timer button{border:1px solid var(--line);background:white;border-radius:6px;padding:6px 8px;font-size:10px}.solve-layout{height:calc(100% - 66px);display:grid;grid-template-columns:150px minmax(600px,1fr) 190px}.navigator,.solve-info{padding:24px 16px;background:#f5f6f7}.navigator{border-right:1px solid #d7dce3}.nav-heading{font-size:10px;letter-spacing:.14em;font-weight:900;color:#7c8493;margin-bottom:16px}.question-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.question-nav button{aspect-ratio:1;border:1px solid #d8dde4;background:white;border-radius:6px;color:#606979;font-size:11px;font-weight:800}.question-nav button.answered{background:#dff1ea;color:#27735b;border-color:#b9ddcf}.question-nav button.current{background:var(--navy);color:white;border-color:var(--navy);box-shadow:0 0 0 3px rgba(23,35,58,.13)}.nav-legend{margin-top:24px;display:grid;gap:8px;font-size:9px;color:#7c8493}.nav-legend span{display:flex;gap:6px;align-items:center}.nav-legend i{width:8px;height:8px;border-radius:2px}.nav-legend i.answered{background:#78bda3}.nav-legend i.current{background:var(--navy)}
.solve-paper-wrap{padding:16px 22px 25px;overflow:auto}.annotation-toolbar{max-width:920px;margin:0 auto 10px;height:44px;display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:10px;background:white;box-shadow:0 4px 14px rgba(28,36,54,.08)}.annotation-toolbar button{border:0;background:transparent;border-radius:6px;padding:7px 9px;color:#596274;font-size:12px;font-weight:700}.annotation-toolbar button.active{background:var(--navy);color:white}.tool span{font-size:10px;margin-left:4px}.tool-separator{height:22px;width:1px;background:var(--line);margin:0 4px}.annotation-note{margin-left:auto;font-size:9px;color:#8c94a3}.solve-paper{position:relative;max-width:920px;min-height:820px;margin:0 auto;background:var(--paper);box-shadow:0 10px 32px rgba(28,36,54,.12);overflow:hidden}.paper-content{position:relative;z-index:1;padding:58px 70px 80px;pointer-events:auto}.paper-no{font-size:10px;letter-spacing:.14em;color:var(--orange);font-weight:900}.paper-outcome{font-size:10px;color:#748094;margin:8px 0 22px}.paper-context h3{font-family:Georgia,serif;color:var(--navy);font-size:24px;margin:0 0 12px}.paper-context p,.paper-stem{font-size:14px;line-height:1.7;color:#434c5d}.paper-figure{height:260px;margin:24px 0;border:1px solid #e1e5ea;background:white;border-radius:8px;padding:12px;display:grid;place-items:center}.paper-figure img{width:100%;height:100%;object-fit:contain}.paper-stem{font-weight:700;margin:23px 0 16px}.choices{display:grid;gap:8px}.choice{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:center;padding:11px;border:1px solid #e1e5eb;border-radius:7px;background:rgba(255,255,255,.85);text-align:left;color:#424b5c}.choice b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f0f2f5;color:var(--navy);font-size:11px}.choice.selected{border-color:var(--orange);background:#fff3ef}.choice.selected b{background:var(--orange);color:white}#annotation-canvas{position:absolute;z-index:2;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;pointer-events:none}#annotation-canvas.drawing{pointer-events:auto}.solve-controls{max-width:920px;margin:12px auto 0;display:flex;justify-content:space-between}.solve-controls button{border:1px solid #ccd2da;background:white;color:var(--navy);padding:10px 15px;border-radius:8px;font-weight:800}.solve-controls .primary{border-color:var(--orange);background:var(--orange);color:white}.solve-info{border-left:1px solid #d7dce3}.save-card{padding:17px;background:white;border:1px solid var(--line);border-radius:9px;font-size:10px}.save-card b,.save-card span{display:block}.save-card b{color:var(--navy);margin:8px 0 4px}.save-card span{color:var(--muted);line-height:1.4}.finish-button{width:100%;margin-top:12px;border:1px solid var(--navy);background:transparent;color:var(--navy);padding:11px;border-radius:8px;font-size:11px;font-weight:900}
.preview-modal,.info-modal{width:min(820px,92vw);max-height:90vh;border:0;border-radius:16px;padding:0;box-shadow:0 25px 80px rgba(0,0,0,.25);overflow:auto}.preview-modal::backdrop,.info-modal::backdrop{background:rgba(13,22,37,.72);backdrop-filter:blur(3px)}.modal-close{position:sticky;float:right;top:15px;right:16px;z-index:3;width:34px;height:34px;border:0;border-radius:50%;background:var(--navy);color:white;font-size:22px}.preview-inner{padding:45px 54px 55px}.preview-inner .paper-figure{height:300px}.preview-actions{display:flex;justify-content:flex-end;margin-top:24px}.info-modal{width:min(510px,90vw);padding:44px}.info-modal h3{font-family:Georgia,serif;font-size:27px;color:var(--navy);margin:10px 0 22px}.info-icon{width:45px;height:45px;display:grid;place-items:center;background:var(--yellow);border-radius:50%;font-family:Georgia,serif;font-size:24px;font-weight:800}.info-modal ol{padding:0;list-style:none;counter-reset:step}.info-modal li{display:grid;grid-template-columns:30px 100px 1fr;gap:10px;align-items:center;padding:13px 0;border-top:1px solid var(--line);font-size:12px}.info-modal li::before{counter-increment:step;content:counter(step);display:grid;place-items:center;width:25px;height:25px;background:#eef1f5;border-radius:50%;font-weight:900;color:var(--navy)}.info-modal li span{color:var(--muted);line-height:1.4}.toast{position:fixed;z-index:100;left:50%;bottom:25px;transform:translate(-50%,20px);background:var(--navy);color:white;padding:12px 17px;border-radius:9px;box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.25s;font-size:12px;font-weight:700}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.site-header{grid-template-columns:1fr auto}.main-tabs{position:fixed;z-index:40;bottom:0;left:0;right:0;height:64px;background:white;justify-content:center;box-shadow:0 -4px 15px rgba(0,0,0,.08)}.header-actions{display:none}.hero{grid-template-columns:1fr .75fr;gap:30px}.workspace{grid-template-columns:235px 1fr}.question-grid{grid-template-columns:1fr}.builder-layout{grid-template-columns:1fr 280px}.solve-layout{grid-template-columns:120px minmax(540px,1fr)}.solve-info{display:none}.solve-view{height:calc(100vh - 109px);padding-bottom:62px}}
@media(max-width:760px){.site-header{height:70px;padding:0 17px}.brand b{font-size:14px}.brand-mark{width:35px;height:35px}.hero{padding:48px 22px;grid-template-columns:1fr}.hero h1{font-size:44px}.hero-stats{display:none}.workspace{display:block}.filters{border-right:0;border-bottom:1px solid var(--line);padding:22px}.filter-note{display:none}.question-area{padding:24px 16px 90px}.question-grid{grid-template-columns:1fr}.question-card{grid-template-rows:auto 170px auto 1fr auto}.page-heading{align-items:flex-start;flex-direction:column}.heading-actions{width:100%;flex-wrap:wrap}.builder-layout{grid-template-columns:1fr}.test-summary{position:static}.section-shell{padding:35px 15px 90px}.solve-topbar{grid-template-columns:auto 1fr auto;padding:0 9px}.solve-title b{display:none}.timer button{display:none}.solve-layout{grid-template-columns:1fr}.navigator{display:none}.solve-paper-wrap{padding:10px 7px 80px}.annotation-toolbar{overflow:auto}.annotation-note{display:none}.paper-content{padding:35px 25px 60px}.paper-figure{height:210px}.solve-paper{min-height:700px}.tool span{display:none}.preview-inner{padding:40px 20px}.main-tabs{gap:0}.tab{padding:0 13px;font-size:11px}.tab span{display:none}.info-modal{padding:35px 24px}.info-modal li{grid-template-columns:30px 80px 1fr}}

/* Refined product shell */
body { background: #f1eee7; }
.top-ribbon { height: 5px; background: linear-gradient(90deg, var(--orange) 0 36%, var(--yellow) 36% 48%, #75a899 48% 100%); }
.site-header { height: 76px; color: white; background: rgba(23, 35, 58, .98); border: 0; box-shadow: 0 8px 30px rgba(23,35,58,.14); }
.brand { color: white; }
.brand-logo { box-shadow:0 0 0 1px rgba(255,255,255,.18); }
.brand small { color: #f2bba9; }
.main-tabs { height: 48px; align-self: center; padding: 4px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(255,255,255,.055); }
.tab { padding: 0 17px; color: #aeb8c8; border-radius: 9px; }
.tab span { color: #7f8da3; }
.tab.active { color: white; background: rgba(255,255,255,.10); }
.tab.active::after { left: 17px; right: 17px; bottom: -5px; height: 2px; background: var(--yellow); }
.tab em { background: var(--yellow); }
.save-state { color: #c2cad7; }
.profile { color: var(--navy); background: white; }
.hero { min-height: 430px; padding-top: 72px; padding-bottom: 70px; color: var(--navy); background: #f1eee7; border-bottom: 1px solid #d8d3c8; }
.hero::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.52; background-image:linear-gradient(rgba(23,35,58,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(23,35,58,.045) 1px,transparent 1px); background-size:48px 48px; mask-image:linear-gradient(90deg,transparent 0,#000 58%,#000 100%); }
.hero::after { background: radial-gradient(circle at 78% 50%, rgba(225,107,76,.11), transparent 31%); }
.hero > div { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--orange); }
.hero h1 { max-width: 720px; font-size: clamp(46px, 5vw, 72px); color: var(--navy); }
.hero h1 span { color: var(--orange); }
.hero p { max-width: 640px; color: #626b78; font-size: 17px; }
.hero .quiet { color: var(--navy); border-color: #cbc6bb; background: rgba(255,255,255,.45); }
.hero { grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); }
.hero > * { min-width:0; }
.hero-stats { position:relative; z-index:1; display:block; width:100%; max-width:28rem; justify-self:end; padding:clamp(20px,2.5vw,32px); color:var(--navy); border:1px solid #d7d3cb; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(23,35,58,.06); }
.stats-heading { margin:0 0 16px; color:#626b78; font-size:.875rem; line-height:1.5; font-weight:600; }
.stat-main { display:flex; flex-direction:column; gap:8px; }
.stat-main strong { color:var(--navy); font-size:3rem; line-height:1.1; font-weight:800; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.stat-main span { color:#4e5868; font-size:1rem; line-height:1.5; }
.stats-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 24px; margin:24px 0 0; padding:24px 0; border-top:1px solid #e1ddd5; border-bottom:1px solid #e1ddd5; }
.stats-grid > div { display:flex; flex-direction:column; gap:5px; min-width:0; }
.stats-grid dt { order:2; color:#626b78; font-size:.875rem; line-height:1.5; overflow-wrap:anywhere; }
.stats-grid dd { margin:0; color:var(--navy); font-size:1.375rem; line-height:1.3; font-weight:700; }
.hero .stats-note { margin:18px 0 0; color:#626b78; font-size:.875rem; line-height:1.6; }
@media(max-width:1100px) {
  .hero { grid-template-columns:minmax(0,1fr); gap:32px; }
  .hero-stats { justify-self:start; max-width:none; }
}
@media(max-width:420px) {
  .stats-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
  .quick-builder { width:100%; flex-wrap:wrap; padding:10px; }
  .quick-builder .primary { width:100%; white-space:normal; }
}
.workspace { max-width: 1480px; gap: 26px; padding: 30px 26px 80px; }
.filters { align-self:start; position:sticky; top:104px; padding: 26px 23px; border: 1px solid #dedad2; border-radius: 15px; background: rgba(255,255,255,.8); box-shadow: 0 10px 30px rgba(23,35,58,.045); }
.question-area { padding: 0; background: transparent; }
.question-card { border-color: #dedad2; border-radius: 17px; box-shadow: 0 5px 16px rgba(23,35,58,.035); }
.question-card:hover { box-shadow: 0 18px 42px rgba(23,35,58,.11); }
.figure-frame { border-color:#e6e1d9; background:#faf9f6; }
.card-actions { border-top-color:#ece8e1; }
.section-shell { max-width: 1480px; }
.builder-list-panel,.test-summary { border-color:#dcd7ce; box-shadow:0 10px 32px rgba(23,35,58,.045); }
.outline-full { color:white; background:var(--navy); border-color:var(--navy); cursor:pointer; }
.outline-full:hover { background:#253957; }
.outline-full span { color:#c9d0dc; }
.add-btn.full,.add-btn:disabled { color:#7b8390; background:#eceef1; cursor:not-allowed; box-shadow:none; }
.capacity-card { margin:0 -5px 7px; padding:16px; border:1px solid #d9dfe7; border-radius:11px; background:#f6f7f8; }
.capacity-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; color:#626b79; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.capacity-head strong { color:var(--navy); font-size:12px; letter-spacing:0; text-transform:none; }
.capacity-head strong b { color:var(--orange); font:700 24px/1 Georgia,serif; }
.capacity-meter i { display:block; height:8px; overflow:hidden; border-radius:10px; background:#e1e5ea; }
.capacity-meter u { display:block; width:0; height:100%; border-radius:10px; background:linear-gradient(90deg,var(--green),var(--orange)); text-decoration:none; transition:width .25s ease; }
.capacity-meta { display:flex; justify-content:space-between; gap:12px; margin-top:11px; color:#697282; font-size:9px; font-weight:700; }
.capacity-meta b { color:var(--navy); }
.capacity-card>small { display:block; margin-top:13px; color:#8a919d; font-size:9px; line-height:1.4; }

.pdf-modal { width:min(690px,92vw); border:0; border-radius:20px; padding:0; box-shadow:0 28px 90px rgba(0,0,0,.28); }
.pdf-modal::backdrop { background:rgba(13,22,37,.72); backdrop-filter:blur(4px); }
.pdf-modal-inner { padding:48px; }
.pdf-modal h3 { margin:0 0 9px; color:var(--navy); font:700 32px/1.15 Georgia,serif; }
.pdf-modal p { margin:0 0 28px; color:var(--muted); font-size:13px; }
.pdf-options { display:grid; gap:12px; }
.pdf-options button { display:grid; grid-template-columns:46px 1fr auto; gap:15px; align-items:center; width:100%; padding:17px; text-align:left; border:1px solid var(--line); border-radius:12px; background:#faf9f6; color:var(--navy); transition:.18s ease; }
.pdf-options button:hover { border-color:var(--orange); background:#fff6f2; transform:translateX(3px); }
.pdf-options i { display:grid; place-items:center; width:44px; height:44px; border-radius:10px; background:var(--navy); color:white; font-style:normal; font-weight:900; }
.pdf-options span b,.pdf-options span small { display:block; }
.pdf-options span b { margin-bottom:4px; font-size:14px; }
.pdf-options span small { color:var(--muted); font-size:11px; }
.pdf-options em { color:var(--orange); font-size:20px; font-style:normal; }
.print-root { display:none; }

/* Scientific figures retain their natural aspect ratio in preview and solving.
   A fixed-height box made the full preview smaller than the pool card. */
.preview-inner .paper-figure,
.paper-content .paper-figure { height:auto; min-height:0; display:block; }
.preview-inner .paper-figure img,
.paper-content .paper-figure img { display:block; width:100%; height:auto; max-height:none; }

/* Testim ekranındaki gerçek A4 ön izlemesi */
.builder-list { display:grid; gap:28px; padding:28px; background:#e5e1d8; }
.builder-list-panel { overflow-x:auto; }
.shared-page-content { display:flex; flex-direction:column; flex:1; min-height:0; padding-top:12px; }
.print-shared-context { flex:none; padding:12px; border:1px solid #cdd7df; border-radius:6px; background:#f9fbfc; }
.print-shared-context .shared-instruction { margin:0 0 8px; color:#9f4436; font-size:11px; font-weight:800; }
.print-shared-context h2 { margin:0 0 8px; font:700 16px/1.2 Georgia,serif; color:#17233a; }
.builder-a4-page .print-shared-context .print-context { font-size:11px; line-height:1.45; }
.print-shared-context img { display:block; width:100%; height:210px; object-fit:contain; margin-top:10px; }
.print-shared-context img.tall-figure { height:405px; }
.builder-a4-page .shared-question-grid { margin-top:12px; padding-top:0; }
.builder-a4-page .shared-question-grid .print-question { padding:10px; }
.builder-a4-page .shared-question-grid .print-question-inner { height:auto; }
.live-shared-context { padding:5px; margin-top:5px; border:1px solid #d7dce3; background:#f9fbfc; }
.live-shared-context .shared-instruction { margin:0 0 3px; font-size:5px; font-weight:800; }
.live-shared-context h2 { font-size:7px; margin:0 0 3px; }
.live-shared-context .print-context { font-size:5px; line-height:1.3; }
.live-shared-context img { display:block; width:100%; height:72px; object-fit:contain; }
.live-a4-grid.shared-live-grid { flex:1; height:auto; min-height:0; }
.compact-context-page { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding-top:12px; flex:1; min-height:0; align-items:start; }
.compact-context-page > .shared-page-content { display:block; padding-top:0; min-width:0; }
.compact-context-page .print-shared-context { padding:8px; }
.compact-context-page .print-shared-context .shared-instruction { font-size:10px; line-height:1.35; }
.compact-context-page .print-shared-context h2 { font-size:13px; }
.builder-a4-page .compact-context-page .print-shared-context .print-context { font-size:10px; line-height:1.35; }
.compact-context-page .print-shared-context img { height:150px; }
.compact-context-page .print-shared-context img.tall-figure { height:235px; }
.builder-a4-page .compact-context-page .shared-question-grid { display:flex; flex-direction:column; gap:10px; margin-top:10px; padding:0; }
.builder-a4-page .compact-context-page .shared-question-grid::before { display:none; }
.builder-a4-page .compact-context-page .print-question { flex:none; padding:6px; border-width:0 0 1px; border-radius:0; }
.builder-a4-page .compact-context-page .print-question-inner { height:auto; }
.builder-a4-page .compact-context-page .print-grid .print-stem,.builder-a4-page .compact-context-page .print-grid .print-choices { font-size:10px; line-height:1.3; }
.builder-a4-page .compact-context-page .print-choices { margin-top:8px; gap:2px 8px; }
.live-a4-page { display:block; padding:0; overflow:hidden; }
.live-a4-page > .builder-a4-page { width:680px; min-width:680px; max-width:none; height:961.714px; padding:26px; margin:0; box-shadow:none; transform:scale(var(--live-scale, .35588)); transform-origin:top left; }
.builder-list .builder-a4-page { min-width:680px; }
@media (max-width:1100px) {
  .builder-layout { grid-template-columns:1fr; }
  .test-summary { position:static; }
}
.builder-a4-page { display:flex; flex-direction:column; width:100%; max-width:850px; aspect-ratio:210/297; margin:0 auto; padding:3.8%; overflow:hidden; color:#1c2430; background:white; box-shadow:0 18px 45px rgba(23,35,58,.16); }
.builder-a4-page .print-page-head { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; flex:0 0 4.7%; padding:0 .5% .8%; border-bottom:2px solid var(--navy); }
.builder-a4-page .print-test-name { overflow:hidden; color:var(--navy); font:700 clamp(8px,.62vw,11px)/1.2 Georgia,serif; white-space:nowrap; text-overflow:ellipsis; }
.builder-a4-page .print-brand { display:flex; align-items:center; justify-self:center; gap:6px; color:var(--navy); }
.builder-a4-page .print-brand .brand-logo-print { display:block; width:32px; height:32px; flex:0 0 32px; object-fit:contain; border-radius:50%; }
.builder-a4-page .print-brand span,.builder-a4-page .print-brand b,.builder-a4-page .print-brand small { display:block; white-space:nowrap; }
.builder-a4-page .print-brand b { font-size:clamp(7px,.55vw,10px); letter-spacing:.07em; }
.builder-a4-page .print-brand small { margin-top:2px; color:var(--orange); font-size:clamp(5px,.4vw,7px); font-weight:900; letter-spacing:.17em; text-align:center; }
.builder-a4-page .print-page-meta { justify-self:end; color:#717986; font-size:clamp(6px,.44vw,8px); font-weight:800; letter-spacing:.06em; }
.builder-a4-page .print-student-line { display:grid; grid-template-columns:1fr 20% 17%; align-items:center; flex:0 0 3.4%; padding:0 .8%; color:#555e6b; border-bottom:1px solid #d6dae0; font-size:clamp(6px,.48vw,8px); }
.builder-a4-page .print-student-line.continuation { grid-template-columns:1fr; color:#8a919c; text-align:right; }
.builder-a4-page .print-grid { position:relative; display:grid; grid-auto-flow:column; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(3,minmax(0,1fr)); flex:1; min-height:0; gap:1% 2.2%; padding-top:1.2%; }
.builder-a4-page .print-grid.layout-4 { grid-template-rows:repeat(2,minmax(0,1fr)); }
.builder-a4-page .print-grid::before { content:""; position:absolute; left:50%; top:1.2%; bottom:0; width:1px; background:#d9dde2; transform:translateX(-50%); }
.builder-a4-page .print-slot-empty { position:relative; z-index:1; display:grid; place-items:center; align-content:center; gap:6px; min-width:0; min-height:0; color:#a0a7b1; border:1px dashed #ccd1d8; border-radius:6px; background:linear-gradient(135deg,#fafafa,#f4f5f6); }
.builder-a4-page .print-slot-empty b { display:grid; place-items:center; width:26px; height:26px; border:1px solid #cfd4da; border-radius:50%; font-size:9px; }
.builder-a4-page .print-slot-empty span { font-size:8px; font-weight:700; letter-spacing:.03em; }
.builder-a4-page .print-question { position:relative; z-index:1; min-width:0; min-height:0; margin:0; padding:1.4%; overflow:hidden; border:1px solid #d5d9de; border-radius:6px; background:white; }
.builder-a4-page .print-question-inner { display:flex; flex-direction:column; width:var(--inverse); height:var(--inverse); transform:scale(var(--fit)); transform-origin:top left; }
.builder-a4-page .print-q-head { display:flex; align-items:center; gap:5px; margin-bottom:4px; }
.builder-a4-page .print-q-head b { display:grid; place-items:center; width:22px; height:22px; flex:0 0 22px; color:white; background:var(--navy); border-radius:50%; font-size:9px; }
.builder-a4-page .print-q-head span { color:#596270; font-size:clamp(6px,.46vw,8px); font-weight:800; }
.builder-a4-page .print-q-head em { margin-left:auto; padding:2px 5px; color:#9f4436; border:1px solid #d9aaa1; border-radius:20px; font-size:clamp(5px,.4vw,7px); font-style:normal; font-weight:800; }
.builder-a4-page .print-question h2 { margin:0 0 4px; color:var(--navy); font:700 clamp(8px,.65vw,11px)/1.15 Georgia,serif; }
.builder-a4-page .print-context { color:#414a57; font-size:clamp(6px,.49vw,8px); line-height:1.25; }
.builder-a4-page .print-question img { display:block; width:100%; height:35%; min-height:100px; max-height:142px; margin:5px 0; padding:3px; object-fit:contain; border:1px solid #e0e3e6; }
.builder-a4-page .print-grid.layout-4 .print-question img { height:45%; min-height:145px; max-height:205px; }
.builder-a4-page .print-grid.layout-4 .print-question h2 { font-size:clamp(9px,.74vw,13px); }
.builder-a4-page .print-grid.layout-4 .print-context,.builder-a4-page .print-grid.layout-4 .print-stem { font-size:clamp(7px,.56vw,9.5px); }
.builder-a4-page .print-grid.layout-2 { grid-template-rows:1fr; }
.builder-a4-page .print-grid.layout-2 .print-question img { height:32%; min-height:145px; max-height:230px; flex-shrink:0; }
.builder-a4-page .print-grid.layout-2 .print-question img.tall-figure { height:auto; max-height:none; aspect-ratio:900/860; }
.builder-a4-page .print-grid.layout-2 .print-question h2 { font-size:clamp(10px,.8vw,14px); }
.builder-a4-page .print-grid.layout-2 .print-context,.builder-a4-page .print-grid.layout-2 .print-stem,.builder-a4-page .print-grid.layout-2 .print-choices { font-size:clamp(10px,.8vw,12px); line-height:1.35; }
.builder-a4-page .print-grid.layout-2 .print-choices { margin-top:10px; }
.builder-a4-page .print-grid.layout-1 { grid-template-columns:1fr; grid-template-rows:1fr; }
.builder-a4-page .print-grid.layout-1::before { display:none; }
.builder-a4-page .print-grid.layout-1 .print-question h2 { font-size:clamp(12px,1vw,17px); }
.builder-a4-page .print-grid.layout-1 .print-context,.builder-a4-page .print-grid.layout-1 .print-stem,.builder-a4-page .print-grid.layout-1 .print-choices { font-size:clamp(10px,.85vw,14px); line-height:1.4; }
.builder-a4-page .print-grid.layout-1 .print-question img { height:auto; min-height:0; max-height:none; aspect-ratio:900/600; flex-shrink:0; }
.builder-a4-page .print-grid.layout-1 .print-choices { margin-top:10px; }
.builder-a4-page .print-grid.layout-4 .print-choices { font-size:clamp(6.5px,.53vw,9px); }
.builder-a4-page .print-stem { margin:4px 0; color:#222a35; font-size:clamp(6px,.51vw,8.5px); line-height:1.25; font-weight:700; }
.builder-a4-page .print-choices { display:grid; gap:3px 8px; margin-top:auto; color:#29313d; font-size:clamp(5.5px,.46vw,7.5px); line-height:1.18; }
.builder-a4-page .print-choices.choice-grid-2 { grid-template-columns:1fr 1fr; }
.builder-a4-page .print-choices.choice-grid-2 div:last-child:nth-child(odd) { grid-column:1 / -1; }
.builder-a4-page .print-choices.choice-grid-1 { grid-template-columns:1fr; }
.builder-a4-page .print-choices div { display:grid; grid-template-columns:16px 1fr; align-items:start; }
.builder-a4-page .print-choices b { color:var(--navy); }
/* Reserve space for complete choices before sizing a full-width shared figure. */
.builder-a4-page > .shared-page-content { display:grid; grid-template-rows:minmax(0,1fr) max-content; }
.builder-a4-page > .shared-page-content > .print-shared-context { display:flex; flex-direction:column; min-height:0; }
.builder-a4-page > .shared-page-content > .print-shared-context > :not(img) { flex:none; }
.builder-a4-page > .shared-page-content > .print-shared-context > img { flex:1 1 auto; min-height:0; max-height:210px; }
.builder-a4-page > .shared-page-content > .print-shared-context > img.tall-figure { max-height:405px; }
.builder-a4-page > .shared-page-content > .shared-question-grid { grid-template-rows:auto; align-items:start; }
.builder-question-controls { position:absolute; z-index:5; right:5px; top:5px; display:flex; gap:3px; padding:3px; opacity:0; border-radius:7px; background:rgba(23,35,58,.94); box-shadow:0 5px 14px rgba(23,35,58,.2); transition:.18s ease; }
.print-question:hover .builder-question-controls,.builder-question-controls:focus-within { opacity:1; }
.builder-question-controls button { display:grid; place-items:center; width:23px; height:23px; padding:0; color:white; border:0; border-radius:4px; background:rgba(255,255,255,.12); font-size:11px; font-weight:900; }
.builder-question-controls button:hover { color:var(--navy); background:var(--yellow); }

@media (max-width:1050px) {
  .site-header { grid-template-columns:auto minmax(0,1fr); gap:16px; }
  .main-tabs { position:static; height:56px; border:0; border-radius:12px; background:white; min-width:0; }
  .main-tabs .tab { padding-left:10px; padding-right:10px; font-size:12px; white-space:nowrap; }
  .tab { color:#778092; }
  .tab.active { color:var(--navy); background:#f2f3f5; }
  .tab.active::after { bottom:0; }
  .workspace { grid-template-columns:235px 1fr; }
}

@media (max-width:600px) {
  .site-header { padding-left:12px; padding-right:12px; gap:10px; }
  .brand > span { display:none; }
  .brand-logo { width:38px; height:38px; flex-basis:38px; }
  .main-tabs { justify-content:stretch; }
  .main-tabs .tab { flex:1; padding-left:8px; padding-right:8px; }
}

@media (max-width:760px) {
  .hero { padding:48px 22px 52px; }
  .hero::before { display:none; }
  .hero h1 { font-size:46px; }
  .hero-actions { align-items:stretch; }
  .quick-builder { width:100%; padding-left:12px; }
  .quick-builder .primary { flex:1; padding-left:12px; padding-right:12px; }
  .workspace { padding:0 0 80px; }
  .filters { position:static; border-width:0 0 1px; border-radius:0; padding:23px 20px; }
  .question-area { padding:24px 16px 30px; }
  .results-head { align-items:stretch; flex-direction:column; }
  .results-actions { width:100%; }
  .a4-toggle { flex:1; justify-content:center; }
  .live-a4-panel { top:88px; right:10px; width:calc(100vw - 20px); max-height:calc(100vh - 164px); }
  .live-a4-stage { padding:12px; }
  .live-a4-page { width:min(242px,75vw); }
  .pdf-modal-inner { padding:42px 22px 28px; }
  .builder-list { padding:12px; }
  .builder-a4-page { min-width:680px; }
  .builder-list-panel { overflow-x:auto; }
  .question-card.text-only { grid-template-rows:auto auto 1fr auto; }
}

/* Complete questions in the pool: natural height, no cropping or miniature text. */
.question-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr)); align-items:start; }
.question-card.full-question-card { display:flex; flex-direction:column; min-height:0; }
.full-question-card .card-top { flex-wrap:wrap; }
.card-question-content { padding:0 20px; min-width:0; }
.full-question-card .context-title { margin:4px 0 12px; font-size:19px; }
.card-context { color:#4b5565; font-size:14px; line-height:1.65; overflow-wrap:anywhere; }
.card-context p { margin:0 0 10px; }
.full-question-card .figure-frame { margin:16px 0; padding:10px; height:auto; overflow:visible; }
.full-question-card .figure-frame img { display:block; width:100%; height:auto; max-height:none; }
.full-question-card .stem { display:block; margin:18px 0 14px; font-size:14px; font-weight:700; line-height:1.65; overflow:visible; -webkit-line-clamp:unset; overflow-wrap:anywhere; }
.card-choices { list-style:none; padding:0; margin:0 0 6px; display:grid; gap:8px; }
.card-choices li { display:grid; grid-template-columns:25px minmax(0,1fr); gap:8px; align-items:baseline; padding:7px 9px; background:#f7f8fa; border-radius:7px; color:#424b5c; font-size:13px; line-height:1.55; overflow-wrap:anywhere; }
.card-choices b { color:var(--navy); }
.card-choices p { margin:0; }
.card-question-content table { width:100%; max-width:100%; border-collapse:collapse; font-size:12px; }
.card-question-content th,.card-question-content td { padding:5px; border:1px solid #dce1e7; overflow-wrap:anywhere; }
.card-question-content img,.card-question-content svg { max-width:100%; }
.full-question-card .card-actions { flex-wrap:wrap; gap:12px; }

@media print {
  @page { size:A4; margin:13mm 14mm 15mm; }
  html,body { margin:0!important; padding:0!important; color:#141922!important; background:white!important; }
  body.printing > *:not(#print-root) { display:none!important; }
  body.printing #print-root { display:block!important; font-family:Arial,Helvetica,sans-serif; }
  .print-cover { position:relative; padding:4mm 0 7mm; margin-bottom:7mm; border-bottom:1.5px solid #17233a; }
  .print-brand { display:flex; align-items:baseline; gap:8px; color:#17233a; font-size:8pt; letter-spacing:.08em; }
  .print-brand span { color:#c95337; font-weight:800; }
  .print-kind { position:absolute; right:0; top:4mm; color:#737b87; font-size:7pt; letter-spacing:.12em; font-weight:800; }
  .print-cover h1 { margin:9mm 0 6mm; color:#17233a; font:700 23pt/1.1 Georgia,serif; }
  .print-fields { display:grid; grid-template-columns:1fr 28mm 34mm; gap:5mm; color:#3e4652; font-size:8.5pt; }
  .print-summary { margin-top:5mm; padding:2.3mm 3mm; color:#545c68; background:#f0f1f2; font-size:7.5pt; font-weight:700; }
  .print-question { position:relative; break-inside:avoid; page-break-inside:avoid; margin:0 0 8mm; padding:0 0 7mm 11mm; border-bottom:.5px solid #d7dbe0; }
  .print-q-head { position:absolute; left:0; top:0; display:grid; justify-items:center; gap:2mm; width:8mm; }
  .print-q-head b { display:grid; place-items:center; width:7mm; height:7mm; border-radius:50%; color:white; background:#17233a; font-size:9pt; }
  .print-q-head span { writing-mode:vertical-rl; color:#6e7682; font-size:6pt; font-weight:800; }
  .print-q-head em { color:#c95337; font-size:6pt; font-style:normal; font-weight:800; }
  .print-question h2 { margin:0 0 2mm; color:#17233a; font:700 12pt/1.2 Georgia,serif; }
  .print-context { color:#424a55; font-size:8.3pt; line-height:1.42; }
  .print-question img { display:block; width:100%; height:45mm; object-fit:contain; margin:3mm 0; border:.5px solid #e1e4e7; }
  .print-stem { margin:2.5mm 0; color:#242b35; font-size:8.8pt; line-height:1.4; font-weight:700; }
  .print-choices { display:grid; grid-template-columns:1fr 1fr; gap:1.4mm 5mm; font-size:8.2pt; }
  .print-choices div { display:grid; grid-template-columns:6mm 1fr; align-items:start; }
  .print-choices b { color:#17233a; }
  .teacher-section { break-before:page; page-break-before:always; }
  .teacher-section h2 { color:#17233a; font:700 17pt Georgia,serif; }
  .answer-key > div { display:grid; grid-template-columns:repeat(10,1fr); border:1px solid #17233a; }
  .answer-key span { display:grid; grid-template-columns:1fr 1fr; padding:2.5mm; border-right:.5px solid #aeb4bd; text-align:center; font-size:9pt; }
  .answer-key span b { color:#6a727e; }
  .solutions { margin-top:10mm; }
  .solutions article { break-inside:avoid; padding:3mm 0; border-top:.5px solid #d7dbe0; }
  .solutions article>b { color:#c95337; font-size:8.5pt; }
  .solutions p { margin:1.5mm 0 0; color:#333b47; font-size:8.3pt; line-height:1.45; }
  .print-footer { position:fixed; bottom:-9mm; left:0; right:0; color:#8a9099; text-align:center; font-size:6.5pt; letter-spacing:.08em; }
}

/* A4 soru kitapçığı: solda üç, sağda üç soru */
@media print {
  @page { size:A4 portrait; margin:8mm; }
  body.printing #print-root { width:auto; }
  .print-booklet { margin:0; padding:0; }
  .print-page { display:flex; flex-direction:column; width:100%; height:281mm; margin:0; padding:0; overflow:hidden; break-after:page; page-break-after:always; }
  .print-page:last-child { break-after:auto; page-break-after:auto; }
  .print-page-head { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; height:13mm; padding:0 1mm 2mm; border-bottom:.55mm solid #17233a; }
  .print-test-name { overflow:hidden; color:#17233a; font:700 8pt/1.2 Georgia,serif; white-space:nowrap; text-overflow:ellipsis; }
  .print-brand { display:flex; align-items:center; justify-self:center; gap:2.2mm; color:#17233a; letter-spacing:0; }
  .print-brand .brand-logo-print { display:block; width:9mm; height:9mm; flex:0 0 9mm; object-fit:contain; border-radius:50%; }
  .print-brand span { display:block; color:#17233a; }
  .print-brand b,.print-brand small { display:block; white-space:nowrap; }
  .print-brand b { font-size:7pt; letter-spacing:.08em; }
  .print-brand small { margin-top:.5mm; color:#c95337; font-size:5.2pt; font-weight:900; letter-spacing:.18em; text-align:center; }
  .print-page-meta { justify-self:end; color:#6d7480; font-size:6pt; font-weight:800; letter-spacing:.08em; }
  .print-student-line { display:grid; grid-template-columns:1fr 34mm 27mm; align-items:center; height:9mm; padding:0 1.5mm; color:#4d5561; border-bottom:.25mm solid #d5d9de; font-size:6.4pt; }
  .print-student-line.continuation { grid-template-columns:1fr; color:#8b919b; text-align:right; }
  .print-grid { position:relative; display:grid; grid-auto-flow:column; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(3,minmax(0,1fr)); flex:1; min-height:0; gap:2.5mm 4mm; padding-top:3mm; }
  .print-grid.layout-4 { grid-template-rows:repeat(2,minmax(0,1fr)); }
  .print-grid.layout-2 { grid-template-rows:1fr; }
  .print-grid::before { content:""; position:absolute; z-index:0; left:50%; top:3mm; bottom:0; width:.25mm; background:#d9dde2; transform:translateX(-50%); }
  .print-question { position:relative; z-index:1; min-width:0; min-height:0; margin:0!important; padding:2.3mm 2.5mm!important; overflow:hidden; color:#1c2430; border:.25mm solid #d5d9de!important; border-radius:2mm; background:white; break-inside:avoid; page-break-inside:avoid; }
  .print-question-inner { display:flex; flex-direction:column; width:var(--inverse); height:var(--inverse); transform:scale(var(--fit)); transform-origin:top left; }
  .print-q-head { position:static!important; display:flex!important; align-items:center; justify-content:flex-start; gap:1.5mm; width:auto!important; margin:0 0 1.1mm; }
  .print-q-head b { display:grid; place-items:center; width:5.6mm; height:5.6mm; flex:0 0 5.6mm; color:white; background:#17233a; border-radius:50%; font-size:7.5pt; }
  .print-q-head span { writing-mode:horizontal-tb!important; color:#596270; font-size:5.5pt; font-weight:800; }
  .print-q-head em { margin-left:auto; padding:.55mm 1.1mm; color:#9f4436; border:.2mm solid #d9aaa1; border-radius:4mm; font-size:5pt; font-style:normal; font-weight:800; }
  .print-question h2 { margin:0 0 1mm; color:#17233a; font:700 8.3pt/1.15 Georgia,serif; }
  .print-context { color:#3f4855; font-size:6.15pt; line-height:1.28; }
  .print-question img { display:block; width:100%; height:30mm; margin:1.4mm 0; padding:.7mm; object-fit:contain; border:.2mm solid #e0e3e6; }
  .print-grid.layout-4 .print-question img { height:50mm; }
  .print-grid.layout-4 .print-question h2 { font-size:9.3pt; }
  .print-grid.layout-4 .print-context { font-size:7.4pt; line-height:1.3; }
  .print-grid.layout-4 .print-stem { font-size:7.5pt; line-height:1.3; }
  .print-grid.layout-4 .print-choices { font-size:7.5pt; line-height:1.24; }
  .print-grid.layout-2 .print-question h2 { font-size:11pt; }
  .print-grid.layout-2 .print-context,.print-grid.layout-2 .print-stem,.print-grid.layout-2 .print-choices { font-size:9pt; line-height:1.35; }
  .print-grid.layout-2 .print-choices { margin-top:3mm; }
  .print-grid.layout-2 .print-question img { height:65mm; flex-shrink:0; }
  .print-grid.layout-2 .print-question img.tall-figure { height:86mm; max-height:86mm; }
  .print-grid.layout-1 { grid-template-columns:1fr; grid-template-rows:1fr; }
  .print-grid.layout-1::before { display:none; }
  .print-grid.layout-1 .print-question h2 { font-size:13pt; }
  .print-grid.layout-1 .print-context,.print-grid.layout-1 .print-stem,.print-grid.layout-1 .print-choices { font-size:10.5pt; line-height:1.4; }
  .print-grid.layout-1 .print-question img { height:115mm; max-height:115mm; flex-shrink:0; }
  .print-grid.layout-1 .print-choices { margin-top:3mm; }
  .print-stem { margin:1.2mm 0; color:#222a35; font-size:6.35pt; line-height:1.28; font-weight:700; }
  .print-choices { display:grid; gap:.8mm 2mm; margin-top:auto; color:#29313d; font-size:5.9pt; line-height:1.2; }
  .print-choices.choice-grid-2 { grid-template-columns:1fr 1fr; }
  .print-choices.choice-grid-2 div:last-child:nth-child(odd) { grid-column:1 / -1; }
  .print-choices.choice-grid-1 { grid-template-columns:1fr; }
  .print-choices div { display:grid; grid-template-columns:4.5mm 1fr; gap:.2mm; align-items:start; }
  .print-choices b { color:#17233a; }
  .teacher-section { min-height:281mm; padding:0; break-before:page; page-break-before:always; }
  .teacher-section>.print-page-head { margin-bottom:8mm; }
  .teacher-section h2 { margin:0 0 4mm; color:#17233a; font:700 16pt Georgia,serif; }
  .answer-key>div { display:grid; grid-template-columns:repeat(10,1fr); border:.35mm solid #17233a; }
  .answer-key span { display:grid; grid-template-columns:1fr 1fr; padding:2.5mm 1mm; border-right:.2mm solid #aeb4bd; text-align:center; font-size:8pt; }
  .solutions { margin-top:9mm; columns:1; }
  .solutions>h2 { column-span:all; }
  .solutions article { break-inside:auto; padding:4mm 0; border-top:.2mm solid #d7dbe0; }
  .solutions article>b { color:#a34839; font-size:10pt; }
  .solutions p { margin:1mm 0 0; color:#333b47; font-size:9pt; line-height:1.45; }
  .print-footer,.print-cover,.print-questions { display:none!important; }
}

.paper-figure { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); }
.paper-figure img { min-width:0; min-height:0; display:block; }
.solution-panel { margin:20px 0; padding:24px; background:#fff; border:1px solid #dce5ee; border-radius:16px; color:#243247; }
.solution-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.solution-heading small { color:#376b69; font-size:12px; font-weight:800; letter-spacing:1.4px; }
.solution-heading h3 { margin:5px 0; font-size:21px; }
.solution-heading>span { border-radius:20px; background:#eaf3f2; padding:8px 12px; font-size:12px; white-space:nowrap; }
.solution-intro { color:#5b6879; font-size:14px; line-height:1.7; }
.reasoning-extension { margin-top:20px; padding:18px; border:1px solid #cddfdc; border-radius:12px; background:#f2f8f6; color:#233d3b; }
.reasoning-extension h4 { margin:0 0 10px; font-size:17px; }
.reasoning-extension p { font-size:15px; line-height:1.7; overflow-wrap:anywhere; }
.reasoning-extension summary { cursor:pointer; padding:10px 0; font-weight:700; }
.reasoning-extension summary:focus-visible { outline:2px solid #286c90; outline-offset:4px; }
@media print {
  .reasoning-extension { padding:3mm; margin-top:3mm; border-radius:0; break-inside:avoid; }
  .reasoning-extension h4 { font-size:10pt; }
  .reasoning-extension p { font-size:9pt; line-height:1.5; }
}
.solution-steps { list-style:none; padding:0; margin:0; }
.solution-step { padding:16px 0; border-top:1px solid #e4eaf0; }
.solution-step h4 { display:flex; align-items:center; gap:10px; margin:0 0 10px; font-size:15px; }
.solution-step h4 span { flex-shrink:0; display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#eaf3f2; color:#285954; font-size:12px; }
.solution-step p,.solution-summary,.solution-feedback { font-size:16px; line-height:1.8; }
.solution-calculation { margin:12px 0 0; padding:14px 16px; border-left:3px solid #3b7b75; background:#f3f7fa; color:#203c55; font:14px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.math-frac { display:inline-flex; flex-direction:column; vertical-align:middle; align-items:stretch; text-align:center; line-height:1.15; margin:0 .16em; white-space:nowrap; font-variant-numeric:lining-nums; break-inside:avoid; }
.math-num,.math-den { display:block; padding:.12em .22em; }
.math-num { border-bottom:1.2px solid currentColor; }
.math-frac .math-frac { font-size:.9em; }
.solution-calculation .math-frac { font-family:Georgia,'Times New Roman',serif; font-size:1.12em; }
.solution-answer { padding:14px 16px; border-radius:8px; background:#eaf3f2; color:#234e49; }
.solution-feedback { margin:12px 0; }
.solution-feedback p { margin:4px 0; }
.solution-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.solution-actions button { padding:10px 14px; border:1px solid #ccd7e2; border-radius:8px; background:#fff; color:#263a50; font:inherit; font-size:14px; cursor:pointer; }
.solution-actions button.primary { background:#254f4b; border-color:#254f4b; color:white; }
.solution-actions button:disabled { opacity:.5; cursor:default; }
.solution-actions button:focus-visible { outline:3px solid #d79a33; outline-offset:3px; }
@media(max-width:600px) { .solution-panel { padding:16px; } .solution-heading h3 { font-size:18px; } }
@media print {
  .solutions article:has(.solution-steps) { break-inside:avoid; }
  .solutions .solution-step { break-inside:avoid; padding:2mm 0; }
  .solutions .solution-step h4 { font-size:10pt; margin:0 0 1.5mm; break-after:avoid; }
  .solutions .solution-step h4 span { width:5mm; height:5mm; font-size:8pt; }
  .solutions .solution-calculation { margin-top:1.5mm; font-size:9pt; line-height:1.5; padding:1.5mm 3mm; }
  .shared-page-content { padding-top:3mm; }
  .print-shared-context { padding:3mm; border-radius:1.5mm; }
  .print-shared-context .shared-instruction { margin:0 0 2mm; font-size:9pt; }
  .print-shared-context h2 { margin:0 0 2mm; font-size:12pt; }
  .print-shared-context .print-context { font-size:9pt; line-height:1.4; }
  .print-shared-context img { height:58mm; margin-top:2mm; }
  .print-shared-context img.tall-figure { height:116mm; }
  .shared-question-grid { margin-top:3mm; padding-top:0; }
  .shared-question-grid .print-question-inner { height:auto; }
  .compact-context-page { gap:4mm; padding-top:3mm; }
  .compact-context-page .print-shared-context { padding:2mm; }
  .compact-context-page .print-shared-context .shared-instruction { font-size:8pt; }
  .compact-context-page .print-shared-context h2 { font-size:10pt; }
  .compact-context-page .print-shared-context .print-context { font-size:8.5pt; line-height:1.35; }
  .compact-context-page .print-shared-context img { height:46mm; }
  .compact-context-page .print-shared-context img.tall-figure { height:68mm; }
  .compact-context-page .shared-question-grid { display:flex; flex-direction:column; gap:3mm; margin-top:3mm; padding:0; }
  .compact-context-page .shared-question-grid::before { display:none; }
  .compact-context-page .print-question { flex:none; padding:2mm!important; border-width:0 0 .25mm!important; border-radius:0; }
  .compact-context-page .print-grid .print-stem,.compact-context-page .print-grid .print-choices { font-size:8.5pt; line-height:1.3; }
  .compact-context-page .print-choices { margin-top:2mm; }
}

.account-link{color:inherit;font-size:12px;text-decoration:none;font-weight:700;white-space:nowrap}.account-link:focus-visible{outline:3px solid #e86d49;outline-offset:4px}

.draft-recovery{display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:#fff5e5;border:1px solid #e8c17c;border-radius:12px;padding:18px;margin-bottom:20px}.draft-recovery[hidden]{display:none}.draft-recovery>div{flex:1;min-width:220px}.draft-recovery p{font-size:13px;margin:6px 0 0}.save-state{max-width:230px;white-space:normal}
@media print{.draft-recovery{display:none!important}}
