:root{--ink:#15283b;--blue:#205d94;--blue2:#18436b;--soft:#f2f5f9;--line:#dce4ed;--muted:#64748b;--white:#fff;--red:#b93144;--shadow:0 5px 25px #1223390b}
*{box-sizing:border-box}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f7f9fc;color:var(--ink)}body{margin:0;font-size:15px;line-height:1.52}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.shell{max-width:1180px;margin:auto;padding:0 22px}.topbar{background:#12283f;color:white}.bar{min-height:68px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font-size:21px;letter-spacing:-.6px;font-weight:800;color:white}.topbar nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.topbar nav a{color:#dde6ef;font-size:13px}.topbar nav a:hover{color:white}main.shell{padding-top:34px;padding-bottom:50px;min-height:calc(100vh - 140px)}.footer{padding-bottom:24px;color:var(--muted);font-size:12px}.heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}h1,h2,h3{letter-spacing:-.035em;line-height:1.2}h1{font-size:clamp(25px,3vw,36px);margin:0 0 22px}h2{font-size:21px;margin:0 0 15px}h3{margin:0 0 13px;font-size:17px}p{margin:8px 0 18px}.heading h1{margin:0}.button,button{display:inline-block;background:var(--blue);color:white;font:inherit;border:1px solid transparent;border-radius:9px;padding:10px 17px;cursor:pointer;white-space:normal;text-align:center;font-weight:650}.button:hover,button:hover{background:var(--blue2);color:white;text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}.button.muted,button.muted{background:#e5ecf4;color:var(--ink)}button.muted:hover,.button.muted:hover{background:#d9e4ee}.danger{background:#fff;color:var(--red);border-color:#f4c4ce}.danger:hover{background:#ffe9ed;color:#932737}.small{padding:6px 11px;font-size:13px}.panel{background:white;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:13px;padding:23px;margin:0 0 20px}.form{display:flex;flex-direction:column;gap:18px}label{display:block;font-weight:600;font-size:13px}input,textarea,select{display:block;width:100%;padding:10px 11px;border:1px solid #cbd7e4;border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-weight:400;margin-top:5px}textarea{resize:vertical}input:focus,textarea:focus,select:focus{outline:2px solid #80b5db;outline-offset:1px}.check{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:500}.check input{width:17px;height:17px;flex:0 0 auto;margin:0}.grid2,.grid3,.stat-grid{display:grid;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 23px;color:var(--ink)}.stat span{display:block;color:var(--muted);font-size:13px}.stat strong{font-size:34px;font-weight:750;letter-spacing:-.06em}.hint,.muted{font-size:13px;color:var(--muted)}.notice{background:#eaf3fc;border:1px solid #bfd9f2;border-radius:10px;padding:13px 17px;margin-bottom:20px}.notice.warn{background:#fff7e6;border-color:#f2d99a}.notice.error{background:#fff0f2;border-color:#ffc5ce}.notice h2{font-size:17px;margin:0 0 7px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.actions form,.inline{display:inline-block;margin:0}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:750}td,th{padding:12px 9px;border-bottom:1px solid var(--line);vertical-align:top}tbody tr:last-child td{border-bottom:0}.chips{display:flex;gap:13px;flex-wrap:wrap}fieldset{border:1px solid var(--line);border-radius:8px;padding:16px}legend{font-weight:700;padding:0 8px}.thumb{display:block;max-height:200px;max-width:280px;object-fit:contain;margin-bottom:10px}.inline-form{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.inline-form label{flex:1}.inline-form input,.inline-form select{min-width:200px}.listrow{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:15px 0}.listrow:last-child{border:0}.listrow .actions{flex-wrap:nowrap}.pill{display:inline-block;border-radius:50px;padding:3px 10px;background:#eef1f4;font-size:12px;font-weight:700}.pill.active{background:#def6e7;color:#126e3b}.pill.paused{background:#fff1d9;color:#8e5c0a}.pill.finished{background:#e5e9ef;color:#42546b}.stat:hover{border-color:#9ab5cf}.login{max-width:420px;margin:65px auto}.login form{display:grid;gap:16px}.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:35px;min-height:420px;align-items:center}.hero h1{font-size:clamp(34px,4vw,54px);line-height:1.13}.hero p{max-width:540px;font-size:17px;color:#4c6075}.hero-symbol{font-weight:900;text-align:center;font-size:92px;color:#194b7c;letter-spacing:-.06em}.hero-symbol span{color:#eb9d35}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px!important;color:var(--blue)!important;font-weight:800}.player{max-width:580px;margin:10px auto}.player-top{text-align:center;padding:18px 0 20px}.player-top h1{font-size:45px;margin:8px 0}.player-top p{color:var(--muted)}.join-form h2,.answer-form h2{text-align:center}.join-form .check{font-size:16px;padding:8px 0}.join-form button{margin-top:15px}.wide{display:block;width:100%;padding:14px 18px;font-size:16px}.answer-options{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:25px 0}.answer-choice{cursor:pointer;position:relative}.answer-choice input{position:absolute;opacity:0;width:1px;height:1px}.answer-choice span{display:grid;place-items:center;height:105px;border-radius:13px;background:#f5f7fb;border:2px solid #bfccdc;color:#234b70;font-size:46px;font-weight:850}.answer-choice input:checked+span{background:#dbeefc;border-color:#18689c;box-shadow:0 0 0 3px #8bc6f4}.answer-choice input:focus-visible+span{outline:4px solid #a1d6ff}.answer-result{text-align:center}.check-circle{display:inline-grid;place-items:center;width:65px;height:65px;background:#e3f8e7;color:#15803d;border-radius:50%;font-size:36px;font-weight:bold;margin:5px auto 12px}.player-foot{display:flex;justify-content:center;gap:18px;flex-wrap:wrap}.center{text-align:center}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:18px;margin-top:22px}.paper-stage{background:#e6ebf1;border:1px solid #d1dae5;border-radius:12px;min-height:600px;padding:20px;overflow:auto}.paper{background:#fff;box-shadow:0 8px 22px #1d335033;position:relative;margin:auto;overflow:hidden;user-select:none}.paper-margins{position:absolute;border:1px dashed #e9afb6;pointer-events:none}.paper-element{position:absolute;white-space:pre-wrap;overflow:hidden;line-height:1.24;cursor:grab;touch-action:none;outline:1px dashed transparent;padding:1px}.paper-element:hover{outline:1px dashed #63a4dd}.paper-element.selected{outline:2px solid #1c80be;background:#6cbaf317;z-index:2}.paper-element.dragging{cursor:grabbing}.paper-element img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;pointer-events:none}.qr-placeholder{height:100%;width:100%;border:3px solid #101b27;display:grid;place-items:center;font-weight:900;font-size:18px;background:repeating-conic-gradient(#171b20 0 25%,white 0 50%) 0 0/16px 16px;color:#d92e58;text-shadow:1px 1px white, -1px -1px white}.element-props{padding:18px;border:1px solid var(--line);border-radius:9px;align-self:start;background:#fafbfd}.element-props label{margin-bottom:12px}.element-props .grid2{gap:8px}.element-props .grid2 input{padding:7px}.element-props #propColor{height:40px;padding:2px}.editor-layout .element-props .check{margin:15px 0}#editorWarnings ul{margin:5px 0 0;padding-left:20px}.add-question select{min-width:250px}
@media(max-width:880px){.topbar .bar{align-items:flex-start;flex-direction:column;padding-top:13px;padding-bottom:13px}.topbar nav{gap:12px}.stat-grid{grid-template-columns:repeat(2,1fr)}.editor-layout{grid-template-columns:1fr}.paper-stage{min-height:400px}.grid3{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.hero-symbol{display:none}}
@media(max-width:580px){.shell{padding-left:13px;padding-right:13px}main.shell{padding-top:19px}.grid2,.grid3{grid-template-columns:1fr}.stat-grid{gap:9px}.stat{padding:12px}.stat strong{font-size:26px}.panel{padding:16px}.heading h1{font-size:28px}.answer-choice span{height:85px}.player-top h1{font-size:35px}.listrow{align-items:flex-start;flex-direction:column}.hero h1{font-size:35px}}

.topbar nav form{display:inline-block;margin:0}.topbar nav .nav-logout{background:transparent;border:0;padding:0;font-size:13px;font-weight:400;color:#dde6ef}.topbar nav .nav-logout:hover{text-decoration:underline;color:white}

/* Tipsrudan 1.0.2: poäng och datorbaserad simulering */
.points-form{margin:7px 0;align-items:end;justify-content:flex-start}.points-form label{max-width:105px}.points-form input{min-width:80px;width:100px}
.sim-layout{max-width:860px;margin:0 auto}.sim-status{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.sim-status p{font-weight:800;font-size:23px;margin:0}.sim-status .eyebrow{margin:0;font-size:11px!important}
.sim-image{display:block;max-width:100%;width:auto;max-height:340px;object-fit:contain;margin:20px auto;border-radius:9px}.sim-image[hidden]{display:none}
.sim-answers{display:grid;grid-template-columns:1fr;gap:12px;margin:23px 0}.sim-option{background:#f7faff;color:var(--ink);border:2px solid #b9cbdc;text-align:left;white-space:normal;display:flex;align-items:center;gap:15px;font-size:16px}.sim-option:hover{color:white}.sim-option:disabled{opacity:1;cursor:default}.sim-option:disabled:hover{color:var(--ink);background:#f7faff}.sim-option.is-correct,.sim-option.is-correct:disabled:hover{background:#ddf5e4;border-color:#198451;color:#0b5932}.sim-option.is-wrong,.sim-option.is-wrong:disabled:hover{background:#fee5e9;border-color:#c62c42;color:#781827}.sim-option-key{display:inline-grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:9px;background:#dce8f5;color:#154c7a;font-size:24px;font-weight:850}.sim-option.is-correct .sim-option-key{background:#c5e6d0;color:#0b5932}.sim-option.is-wrong .sim-option-key{background:#f9c7d0;color:#781827}.sim-feedback{min-height:30px;font-weight:700}.sim-feedback.good{color:#087044}.sim-feedback.bad{color:#aa3040}.sim-controls{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:20px}.sim-review table td:nth-child(2){font-weight:700}@media(max-width:580px){.sim-status{gap:12px}.sim-option{font-size:14px}.sim-option-key{width:40px;height:40px}}

.quiz-question-row{align-items:flex-start;flex-wrap:wrap}.quiz-question-row>div:first-child{flex:1 1 320px;min-width:200px}

.danger-text{color:var(--red);font-weight:650}.danger-text:hover{color:#932737}

/* 1.0.5 – storleksändring direkt på utskriftsarket. */
.paper-element.selected {overflow:visible}
.paper-element.selected img,.paper-element.selected .qr-placeholder {max-width:100%;max-height:100%}
.paper-element.resizing {cursor:default}
.paper-element .resize-handle {display:block;position:absolute;width:13px;height:13px;
  background:#fff;border:2px solid #1c80be;border-radius:3px;
  box-shadow:0 1px 4px #12283f44;z-index:9;touch-action:none;user-select:none}
.paper-element .resize-handle:hover {background:#b8e4ff;border-color:#095b99}
.resize-handle-nw{left:0;top:0;transform:translate(-50%,-50%);cursor:nwse-resize}
.resize-handle-n{left:50%;top:0;transform:translate(-50%,-50%);cursor:ns-resize}
.resize-handle-ne{right:0;top:0;transform:translate(50%,-50%);cursor:nesw-resize}
.resize-handle-e{right:0;top:50%;transform:translate(50%,-50%);cursor:ew-resize}
.resize-handle-se{right:0;bottom:0;transform:translate(50%,50%);cursor:nwse-resize}
.resize-handle-s{left:50%;bottom:0;transform:translate(-50%,50%);cursor:ns-resize}
.resize-handle-sw{left:0;bottom:0;transform:translate(-50%,50%);cursor:nesw-resize}
.resize-handle-w{left:0;top:50%;transform:translate(-50%,-50%);cursor:ew-resize}
.paper-element-content{width:100%;height:100%;overflow:hidden;pointer-events:none}
.paper-element-content.qr-content{display:flex;align-items:center;justify-content:center}

/* Tipsrudan 1.0.6 – redigerare och direkt förhandsgranskning samtidigt. */
.editor-layout-live{grid-template-columns:minmax(0,1.15fr) minmax(0,.95fr) 245px;align-items:start;gap:15px}
.editor-pane,.live-preview{min-width:0}
.editor-pane h3,.live-preview h3{margin:0 0 12px}
.editor-layout-live .paper-stage{padding:14px;min-height:470px;max-height:710px}
.live-preview{border:1px solid #d7e2ec;background:#fafcfe;border-radius:11px;padding:13px;align-self:start}
.live-preview-title{display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.live-preview-title h3{margin:0;font-size:16px}
.live-pill{font-size:11px;display:inline-block;padding:3px 7px;color:#215c42;border-radius:30px;background:#dcfce7;vertical-align:middle;letter-spacing:0;font-weight:700}
.live-preview>label{margin:0 0 12px;display:block}
.live-preview>label select{font-size:12px;max-width:100%}
.preview-stage{background:#e6ebf1;border:1px solid #cdd9e3;border-radius:8px;padding:14px;overflow:auto;min-height:260px;display:flex;align-items:flex-start;justify-content:center}
.preview-paper{background:white;position:relative;flex:0 0 auto;overflow:hidden;box-shadow:0 5px 20px #142d4729;user-select:none}
.preview-card{position:absolute;border:1px solid #e1e6ee;pointer-events:none}
.preview-element{box-sizing:border-box;position:absolute;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.24;pointer-events:none}
.preview-element img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.preview-element .preview-qr-image{max-width:none;max-height:none;object-fit:contain}
.preview-qr-placeholder{display:grid;place-items:center;font-size:12px;font-weight:900;color:#26394b;border:1px solid #222;background:repeating-conic-gradient(#171b20 0 25%,#fff 0 50%) 0 0/12px 12px;text-shadow:1px 1px #fff,-1px -1px #fff}
.preview-cutline{position:absolute;z-index:5;pointer-events:none}
.live-preview .hint{font-size:12px;margin:9px 0 0}
.live-preview.preview-expanded{position:fixed;inset:3vh 3vw;z-index:1000;overflow:auto;box-shadow:0 24px 90px #091e42aa;max-height:94vh;background:#fff;padding:20px}
.preview-expanded .preview-stage{min-height:65vh;align-items:flex-start;padding:25px}
.preview-expanded .preview-paper{margin:auto}
@media (max-width:1120px){.editor-layout-live{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.editor-layout-live .element-props{grid-column:1/-1}}
@media (max-width:750px){.editor-layout-live{grid-template-columns:1fr}.editor-layout-live .element-props{grid-column:auto}.editor-layout-live .paper-stage{max-height:none;min-height:380px}.preview-stage{min-height:310px}}

/* Tipsrudan 1.0.7 – större, tåligare utskriftsförhandsvisning. */
.editor-layout-live{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}
.editor-layout-live .element-props{grid-column:1 / -1;display:block}
.editor-layout-live .element-props #props{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:14px}
.editor-layout-live .element-props #props[hidden]{display:none}
.editor-layout-live .element-props #props>label{min-width:0}
.preview-stage{min-height:360px;background:#dfe6ee;justify-content:flex-start}
.preview-paper{margin:0 auto;min-width:210px;min-height:140px}
.preview-zoom-label{margin-bottom:12px!important}
.preview-zoom-label select{font-size:13px}
#editorStatus[hidden]{display:none}
.preview-element{overflow:hidden}
.preview-element .preview-qr-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.preview-element .preview-qr-placeholder{width:100%;height:100%;min-width:16px;min-height:16px}
@media(max-width:850px){.editor-layout-live{grid-template-columns:1fr}.editor-layout-live .element-props{grid-column:auto}.editor-layout-live .element-props #props{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.editor-layout-live .element-props #props{grid-template-columns:1fr}}

/* Tipsrudan 1.0.12 – valfri frågevisning på mobil per tävling. */
.phone-question{padding:18px 20px}
.phone-question h2{margin:0 0 10px;font-size:20px}
.phone-question h3{margin:20px 0 9px;font-size:15px}
.phone-question-text{font-size:clamp(18px,4vw,23px);font-weight:650;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px}
.phone-question-image{display:block;max-width:100%;width:auto;max-height:360px;object-fit:contain;margin:14px auto;border-radius:8px}
.phone-readonly-answers{display:grid;gap:9px}
.phone-readonly-answer{display:flex;align-items:flex-start;gap:13px;padding:10px;border:1px solid #d6e2ed;border-radius:9px;background:#f8fbfe}
.phone-readonly-answer strong{display:grid;place-items:center;min-width:41px;height:41px;border-radius:8px;background:#e0ecf7;color:#18436b;font-size:20px}
.phone-readonly-answer span{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;padding-top:7px}
.answer-options-with-text{grid-template-columns:1fr;gap:11px;margin:17px 0 23px}
.answer-choice-with-text{display:flex;align-items:center;gap:12px;cursor:pointer;min-width:0;background:#f8fbff;border:2px solid #c4d5e6;border-radius:13px;padding:9px}
.answer-choice-with-text:focus-within{outline:3px solid #91c9f0;outline-offset:2px}
.answer-choice-with-text .answer-key{flex:0 0 58px;width:58px;height:64px;border:0;border-radius:9px;background:#e0ebf7;color:#19486e;font-size:28px}
.answer-choice-with-text .answer-choice-text{flex:1;min-width:0;height:auto;min-height:64px;border:0;border-radius:0;background:transparent;color:var(--ink);padding:10px 7px 10px 0;text-align:left;display:flex;align-items:center;font-size:16px;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}
.answer-choice-with-text input:checked + .answer-key{background:#1465a0;color:white;box-shadow:none}
.answer-choice-with-text input:checked ~ .answer-choice-text{background:transparent;color:var(--ink)}
@media(max-width:580px){.phone-question{padding:16px}.phone-question-image{max-height:280px}.answer-choice-with-text .answer-choice-text{font-size:15px}}
