:root{font:120%/1.5 system-ui,sans-serif;color:#142c28;background:#faf9f4}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}.wrap{max-width:60rem;margin:auto;padding:1rem 1.4rem}header{border-bottom:2px solid #163f36;background:white}header .wrap,.actions,form{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}header .wrap{justify-content:space-between}h1,h2{font-family:Georgia,serif;line-height:1.13}h1{font-size:clamp(2rem,6vw,3.8rem);margin-bottom:.4em}h2{font-size:1.65rem;margin:.5em 0}.lead{max-width:42rem;font-size:1.17rem}form{padding:1rem 0;border-block:1px solid #9faea5}select,input,button{font:inherit}select,button{padding:.35rem}input[type=checkbox]{width:1.2rem;height:1.2rem;vertical-align:middle}a{color:#174c3e;text-underline-offset:.18em}a:focus-visible,select:focus-visible,input:focus-visible,button:focus-visible{outline:3px solid #9a4105;outline-offset:3px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr));gap:1rem}article,section.panel{background:white;border:1px solid #91a399;padding:1.2rem}.button{background:#184c40;color:white;padding:.55rem .85rem;text-decoration:none;border-radius:.2rem;font-weight:650}.mark{display:block;border-top:1px solid #c5cfc7;margin-top:1.1rem;padding-top:.7rem}.meta,small{font-size:.87em}#rinkinys{margin:2rem 0;padding-top:1rem;border-top:2px solid}aside nav{display:grid;gap:.8rem}body.admin{display:grid;grid-template-columns:minmax(12rem,16rem) 1fr;min-height:100vh}.admin aside{padding:1.4rem;background:#173d35;color:white}.admin aside a{color:white}.admin main{min-width:0;margin:0;padding:1rem 2rem}.admin section{margin-bottom:1.2rem}.admin table{border-collapse:collapse}.admin td,.admin th{text-align:left;padding:.45rem;border-bottom:1px solid #bcc9c3}@media(max-width:740px){body.admin{display:block}.admin aside nav{display:flex;flex-wrap:wrap}.admin main{padding:1rem}.admin table{font-size:.9rem}}
#history{margin:1rem 0}#history button{margin:.4rem}#rinkinys>.panel{margin:1rem 0}#rinkinys h3{margin:.3rem 0 1rem}button,select{cursor:pointer}

.sheet-preview{float:right;margin:0 0 .7rem .65rem;display:block;width:4.7rem;border:1px solid #aeb8b0;box-shadow:.12rem .16rem 0 #e1e4dc}.sheet-preview img{display:block;width:100%;height:auto}.mark{clear:both}.catalog-tools{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin:.5rem 0}.catalog-tools details{max-width:100%}summary{cursor:pointer;color:#174c3e;text-decoration:underline;text-underline-offset:.18em}details .actions{margin:.65rem 0}article h2{overflow-wrap:break-word}@media(max-width:480px){.sheet-preview{width:3.75rem}article{padding:.85rem}.actions{gap:.65rem}.catalog-tools{margin-bottom:1rem}}

#print-history{display:none}
@media print{
  body.printing-history{background:white;color:black}
  .printing-history>header,.printing-history>main{display:none}
  .printing-history #print-history{display:block;font:14pt/1.35 Arial,sans-serif}
  #print-history h1{font-size:24pt}
  #print-history table{width:100%;border-collapse:collapse}
  #print-history th,#print-history td{padding:7pt 4pt;border-bottom:1pt solid black;text-align:left}
  #print-history td:first-child{text-align:center}
  #print-history thead{display:table-header-group}
  #print-history tr{break-inside:avoid}
}

.guide{max-width:48rem;padding-bottom:3rem}.guide .panel{margin:1.6rem 0}.guide ol{padding-left:1.5rem}.guide li{margin:.65rem 0}.guide>h2{margin-top:1.6rem}

.admin .panel p{overflow-wrap:anywhere}

.large-preview{display:block;width:min(17rem,100%);height:auto;border:1px solid #91a399}

.after-solving{margin:1.2rem 0}.after-solving p{max-width:38rem}
.server-created-scroll{overflow-x:auto}.server-created td{vertical-align:top}.server-created td:nth-child(3){overflow-wrap:anywhere}
