:root{font-family:Inter,system-ui,Arial,sans-serif;color:#152238;background:#f4f7fb}*{box-sizing:border-box}body{margin:0}header{height:68px;background:#102a43;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(20px,calc((100% - 1050px)/2));gap:12px}header div{display:flex;gap:10px;align-items:center;font-size:20px}header span{opacity:.8}button,input,select,textarea{font:inherit}button{min-height:44px;border:1px solid #cad5e1;background:white;border-radius:12px;padding:10px 15px;cursor:pointer}.ghost{background:transparent;color:white;border-color:#58708a}.primary{background:#102a43;color:white;border-color:#102a43;font-weight:750}.primary:disabled{opacity:.45}main{max-width:1050px;margin:auto;padding:28px 18px 60px}.hero{padding:20px 4px 12px}.hero h1{font-size:clamp(30px,5vw,48px);max-width:760px;margin:5px 0}.hero p{color:#52667a}.eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#276749;margin:0 0 6px}.card{background:white;border:1px solid #dfe7ef;border-radius:18px;padding:22px;margin-top:18px;box-shadow:0 5px 20px #102a430a}.card h2{margin-top:0}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.tile{min-height:86px;display:flex;gap:8px;flex-direction:column;align-items:flex-start;font-size:20px}.tile b{font-size:15px}.tile.active{outline:3px solid #102a43;background:#eef4fa}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wide{grid-column:1/-1}label{display:flex;flex-direction:column;gap:7px;font-weight:650}input,select,textarea{width:100%;border:1px solid #b9c7d5;border-radius:10px;padding:12px;background:white;min-height:44px}textarea{min-height:110px;resize:vertical}.source{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px;border:1px dashed #9cafc1;border-radius:14px;margin-bottom:18px}.source small{display:block;color:#63788b;margin-top:4px}.source input{max-width:300px}.modes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}.modes label{flex-direction:row;align-items:center;border:1px solid #dce5ed;border-radius:12px;padding:12px}.modes input{width:auto;min-height:auto}.ai{display:flex;align-items:center;justify-content:space-between;gap:24px;border-left:6px solid #276749}.ai p{margin-bottom:0;color:#52667a}.hidden{display:none}.resultHead{display:flex;justify-content:space-between;gap:15px;align-items:start}.resultHead span{background:#e8f3ed;padding:7px 10px;border-radius:999px;font-size:13px}.preview{background:#fafcff;border:1px solid #e1e8ef;border-radius:14px;padding:20px;line-height:1.65}.actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}footer{text-align:center;color:#6c7e8f;padding:25px;font-size:13px}@media(max-width:650px){.tiles{grid-template-columns:1fr 1fr}.grid,.modes{grid-template-columns:1fr}.wide{grid-column:auto}.source,.ai{align-items:stretch;flex-direction:column}.source input{max-width:none}.ai .primary{width:100%}.actions{flex-direction:column}.actions button{width:100%}.resultHead{flex-direction:column}.card{padding:17px}.hero h1{font-size:32px}}
@media print{header,.hero,.card:not(#result),footer,.actions{display:none!important}body{background:white}#result{display:block!important;border:0;box-shadow:none;margin:0;padding:0}.preview{border:0;padding:0}}

.brand b{letter-spacing:.04em}.brand-logo{display:block;width:min(330px,70vw);height:auto;margin:0 0 18px 0}.hero>p:last-child{font-size:17px}.brand b{background:linear-gradient(90deg,#1b63d9,#19a9e5,#ff4b35,#ffbd13,#00a77a,#69c532);-webkit-background-clip:text;background-clip:text;color:transparent}@media(max-width:650px){.brand-logo{width:min(270px,80vw)}}

/* FRASTELLI Nauczyciel — pomarańczowe akcenty tylko wewnątrz kart */
.card {
  border-top: 5px solid #ef7d00;
}
.card h2, .card h3 {
  color: #ef7d00;
}
.card .primary {
  background: #ef7d00;
  border-color: #ef7d00;
  color: #fff;
}
.card .primary:hover {
  background: #c96700;
  border-color: #c96700;
}
.card .tile.active {
  outline-color: #ef7d00;
  background: #fff7ed;
}
.card .ai {
  border-left-color: #ef7d00;
}

/* FRASTELLI Nauczyciel — spójne pomarańczowe obramowania kafelków */
.card .tile {
  border-color:#ef7d00 !important;
}
.card .tile:hover {
  border-color:#c96700 !important;
}
.card .tile.active {
  border-color:#ef7d00 !important;
  outline-color:#ef7d00 !important;
  background:#fff7ed !important;
}
