:root { font-family: Arial, Helvetica, sans-serif; color: #213349; background: #f8fafc; }
* { box-sizing: border-box; }
body { margin: 0; }
header { height: 100px; margin: 0 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ced8e3; }
.brand { text-decoration: none; color: #000; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 0; }
.brand-logo { display: block; width: 227px; height: auto; mix-blend-mode: multiply; }
main { display: grid; min-height: calc(100vh - 100px); margin: 0 48px; }
.portal-columns { grid-template-columns:357px minmax(360px,520px) minmax(300px,1fr); }
.generators { padding:36px 16px 48px; border-right:1px solid #dce3eb; }
.calendar-empty { border-right:1px solid #dce3eb; }
.future { min-width:0; }
@media(max-width:1250px) { .portal-columns { grid-template-columns:357px minmax(0,1fr); } .latest-galleries { grid-column:1 / -1; } }
@media(max-width:820px) { .portal-columns { grid-template-columns:minmax(0,1fr); } .portal-columns .generators { border-right:0; padding:28px 0 32px; } .calendar-empty { display:none; } }
.grid { display: grid; grid-template-columns: repeat(2, 150px); gap: 30px 24px; width: 324px; margin: auto; }
.item { width: 150px; text-align: center; }
.tile { display: block; width: 150px; height: 150px; border-radius: 18px; position: relative; touch-action: none; user-select: none; box-shadow: 0 4px 10px #172e4a12; outline-offset: 5px; transition: box-shadow .15s; }
.tile img { display: block; width: 150px; height: 150px; object-fit: contain; border-radius: 18px; pointer-events: none; }
.tile:hover { box-shadow: 0 6px 20px #172e4a30; }
.tile:focus-visible { outline: 3px solid #1260ae; }
.tile.selected { outline: 3px dashed #1260ae; }
.tile.dragging { opacity: .45; cursor: grabbing; }
.tile.target { outline: 3px solid #1260ae; box-shadow: 0 0 0 8px #dbeafe; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 750px) {
  header { margin: 0 20px; height: 84px; }
  .brand-logo { width: 190px; }
  main { margin: 0 20px; grid-template-columns: 1fr; min-height: calc(100vh - 84px); }
  .generators { border-right: 0; padding: 28px 0 40px; }
  .future { display: none; }
}
@media (max-width: 370px) {
  header, main { margin-left: 8px; margin-right: 8px; }
  .grid { gap: 28px 12px; width: 312px; }
  .brand-logo { width: 176px; }
}


.version { flex-shrink: 0; margin-left: 12px; color: #66768a; font-size: 12px; border: 1px solid #dbe2ea; border-radius: 6px; padding: 5px 9px; background: white; }
.header-tools { display:flex; align-items:center; gap:12px; margin-left:auto; }
.header-tools .version { margin-left:0; }
.language-form { margin:0; }
.language-form select { min-height:34px; padding:5px 8px; border:1px solid #ced8e3; border-radius:6px; background:#fff; color:#213349; font:600 12px Arial,sans-serif; cursor:pointer; }
@media(max-width:420px) { header { height:auto; min-height:100px; padding:10px 0; gap:10px; } .header-tools { gap:8px; } }
@media (max-width: 420px) { header { flex-wrap: wrap; align-content: center; row-gap: 3px; } .version { margin-left: auto; font-size: 10px; padding: 2px 6px; } }

.brand-subtitle { display: block; margin-top: -8px; font-size: 18px; font-weight: 600; letter-spacing: .4px; line-height: 1.25; white-space: nowrap; }
@media (max-width: 750px) { .brand-subtitle { font-size: 15px; margin-top: -6px; } }
@media (max-width: 370px) { .brand-subtitle { font-size: 14px; } }

