/* Umsiting */
.admin { min-height: 100vh; }
.admin-bar {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 12px clamp(16px, 4vw, 40px); background: var(--hero-bg); color: var(--hero-ink);
}
.admin-bar .brand-y { color: #d58088; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .85rem; }
.admin-nav a, .linkish { color: inherit; text-decoration: none; opacity: .85; }
.admin-nav a:hover, .linkish:hover { opacity: 1; color: #d58088; }
.linkish { background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.inline { display: inline; margin: 0; }
.btn-mini { border: 1px solid #ffffff40; border-radius: 999px; padding: 5px 12px; }

.admin-main { max-width: 1180px; margin: 0 auto; padding: 36px 16px 90px; }
.admin h1 { font: 400 clamp(2rem, 5vw, 2.8rem)/1.1 var(--serif); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
code { font-size: .88em; background: var(--rose-soft); padding: 1px 5px; border-radius: 4px; }

.flash { padding: 14px 18px; border-radius: 10px; margin: 0 0 24px; border: 1px solid; font-size: .92rem; }
.flash.ok { background: color-mix(in srgb, var(--t-natura) 12%, transparent); border-color: color-mix(in srgb, var(--t-natura) 45%, transparent); }
.flash.err { background: var(--rose-soft); border-color: color-mix(in srgb, var(--rose) 45%, transparent); }
.flash a { color: inherit; font-weight: 600; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.admin label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.hint { font-weight: 400; color: var(--muted); }
.admin input[type=text], .admin input[type=password], .admin input[type=search], .admin select, .admin textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 400 1rem var(--sans);
}
.admin textarea { font: 400 1.2rem/1.55 var(--serif); resize: vertical; min-height: 320px; }
.admin input:focus, .admin select:focus, .admin textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--rose); }

.btn { cursor: pointer; border: 0; }
.admin .btn-primary { background: var(--rose); color: #fff; }
.admin .btn-primary:hover { background: color-mix(in srgb, var(--rose) 85%, #000); }
.btn-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--rose); }
.btn-danger { background: #a3363f; color: #fff; }

/* innritan */
.auth { max-width: 420px; margin: 8vh auto 0; }
.auth h1 { margin-bottom: 8px; }

/* listi */
.list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.filter { width: 220px !important; border-radius: 999px !important; }
.admin-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.admin-list li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.admin-list li:first-child { border-top: 0; }
.admin-list li:hover { background: color-mix(in srgb, var(--tc) 6%, transparent); }
.admin-list .nr { font: 500 .85rem var(--serif); color: var(--muted); }
.admin-list .info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-list .title { font: 500 1.3rem/1.2 var(--serif); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-list .title.untitled { font-style: italic; font-weight: 400; }
.admin-list .title:hover { color: var(--rose); }
.admin-list .meta { font-size: .75rem; color: var(--muted); }
.acts { display: flex; gap: 14px; font-size: .82rem; }
.acts a { color: var(--muted); text-decoration: none; }
.acts a:hover { color: var(--ink); }
.acts a.danger:hover { color: #c0434d; }
@media (max-width: 600px) {
  .admin-list li { grid-template-columns: 1fr; gap: 6px; }
  .admin-list .nr { display: none; }
  .filter { width: 100% !important; }
  .list-head .row { width: 100%; }
}

/* rætta */
.edit-head { margin-bottom: 24px; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.edit-form { display: flex; flex-direction: column; gap: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.counter { margin: -10px 0 0; font-size: .75rem; color: var(--muted); }
.dropzone { position: relative; border: 2px dashed var(--line); border-radius: 14px; padding: 20px; background: var(--surface); transition: border-color .2s, background .2s; }
.dropzone.over { border-color: var(--rose); background: var(--rose-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone label { pointer-events: none; font-weight: 400; }
.dropzone strong { font: 500 1.2rem var(--serif); }
.dropzone span { color: var(--muted); font-size: .85rem; }
.drop-status { margin: 8px 0 0; font-size: .85rem; color: var(--t-natura); }
.drop-status:empty { display: none; }
.sticky-actions { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.preview-pane { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: var(--surface); max-height: calc(100vh - 110px); overflow: auto; }
.preview-pane .poem-title { font-size: 2.2rem; }
.preview-pane .poem { --poem-size: 1.25rem; margin-top: 24px; }
@media (max-width: 900px) {
  .edit-grid { grid-template-columns: 1fr; }
  .preview-pane { position: static; max-height: none; order: -1; }
  .preview-pane:not(.has) { display: none; }
  .two { grid-template-columns: 1fr; }
}
.preview-pane .stanza { animation: none; }
