/* ==========================================================================
   Dve u fokusu — Studio (admin)
   ========================================================================== */

body {
  min-height: 100vh;
}
em {
  font-style: italic;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand svg {
  width: 38px;
  height: 25px;
  overflow: visible;
}
.brand circle {
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.4;
}
.brand circle:last-child {
  stroke: var(--accent);
}
.brand span {
  font-size: 24px;
  line-height: 1;
}

/* ---------- Fields ---------- */
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  text-align: left;
}
.field__label {
  color: var(--paper-dim);
  font-size: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: rgba(255, 75, 34, 0.05);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--paper-faint);
}
.field input[type='date'] {
  color-scheme: dark;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field__pw {
  position: relative;
  display: block;
}
.field__eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 8px;
  font-size: 10px;
  color: var(--paper-dim);
}
.field__eye:hover {
  color: var(--paper);
}

.btn--danger {
  border-color: rgba(227, 39, 27, 0.6);
  color: #ff8a80;
}
.btn--danger::before {
  background: var(--grease);
}
.btn--danger:hover {
  color: #fff;
  border-color: var(--grease);
}
.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 10px;
}
.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Login ---------- */
.login {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 480px);
  align-items: center;
  gap: 6vw;
  padding: var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.login__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.login__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) brightness(0.42) saturate(1.1);
  transform: scale(1.12);
  animation: breathe 14s ease-in-out infinite alternate;
}
@keyframes breathe {
  to { transform: scale(1.2) translateX(-2%); filter: blur(18px) brightness(0.48) saturate(1.1); }
}
.login__aside {
  align-self: end;
  padding-bottom: 4vh;
}
.login__aside .mono {
  color: var(--paper-dim);
}
.login__quote {
  margin: 18px 0 0;
  font-size: clamp(54px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.login__quote em {
  color: var(--accent);
}
.login__card {
  padding: 44px 40px 34px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(19, 17, 15, 0.72);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.55);
}
.login__title {
  margin: 34px 0 10px;
  font-size: clamp(42px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.login__title em {
  color: var(--accent);
}
.login__sub {
  margin: 0 0 28px;
  color: var(--paper-dim);
  font-size: 15px;
}
.login__err {
  min-height: 16px;
  margin: 2px 0 14px;
  color: var(--grease);
  font-size: 10px;
}
.login__go {
  width: 100%;
  justify-content: space-between;
}
.login__back {
  display: inline-block;
  margin-top: 22px;
  color: var(--paper-faint);
  font-size: 10px;
}
.login__back:hover {
  color: var(--paper);
}
.login.is-error .login__card {
  animation: shake 0.45s;
}
@keyframes shake {
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

/* ---------- App shell ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 10, 9, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tabs {
  display: flex;
  gap: 6px;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 100px;
  color: var(--paper-dim);
  transition: background 0.3s, color 0.3s;
}
.tabs a:hover {
  color: var(--paper);
}
.tabs a.is-active {
  background: var(--paper);
  color: var(--ink);
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
}
.top__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--paper-dim);
}
.top__name {
  color: var(--paper);
  font-weight: 500;
}
.top__out,
.top__site {
  color: var(--paper-dim);
  letter-spacing: inherit;
}
.top__out:hover,
.top__site:hover {
  color: var(--accent);
}

.view {
  padding: 48px var(--gutter) 120px;
}
.vhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.vhead h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.vhead h1 em {
  color: var(--accent);
}
.vhead__sub {
  margin: 12px 0 0;
  color: var(--paper-dim);
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 40px;
  overflow: hidden;
}
.stat {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat__n {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__l {
  display: block;
  margin-top: 8px;
  color: var(--paper-dim);
}

/* album cards */
.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.acard {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2);
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
.acard:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.acard__img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
  overflow: hidden;
}
.acard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}
.acard:hover .acard__img img {
  transform: scale(1.05);
}
.acard__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper-faint);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(11, 10, 9, 0.7);
  border: 1px solid var(--line-strong);
  color: var(--paper-dim);
  backdrop-filter: blur(8px);
}
.pill--live {
  border-color: rgba(155, 227, 122, 0.4);
  color: var(--ok);
}
.pill--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}
.acard__img .pill {
  position: absolute;
  top: 12px;
  left: 12px;
}
.acard__body {
  padding: 18px 20px 20px;
}
.acard__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}
.acard__meta {
  margin: 8px 0 14px;
  color: var(--paper-dim);
  font-size: 14px;
}
.acard__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--paper-faint);
}
.acard--new {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
  text-align: center;
  color: var(--paper-dim);
}
.acard--new:hover {
  border-color: var(--accent);
  color: var(--paper);
}
.acard--new b {
  display: block;
  margin: 0 auto 14px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font: 300 32px/62px var(--sans);
}

/* ---------- Album detail ---------- */
.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--paper-dim);
}
.back:hover {
  color: var(--paper);
}
.adetail {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-2);
  padding: 22px;
}
.card__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.card__h h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
}
.saved {
  color: var(--paper-faint);
  font-size: 10px;
  transition: color 0.3s;
}
.saved.is-ok {
  color: var(--ok);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch__track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: var(--line-strong);
  transition: background 0.3s;
}
.switch__track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 0.4s var(--ease-out);
}
.switch input:checked + .switch__track {
  background: var(--ok);
}
.switch input:checked + .switch__track::after {
  transform: translateX(20px);
}
.switch input:focus-visible + .switch__track {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.linkbox {
  display: flex;
  gap: 8px;
}
.linkbox input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--paper-dim);
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.iconbtn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.share {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.share a,
.share button {
  display: grid;
  place-items: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: border-color 0.3s, color 0.3s;
}
.share a:hover,
.share button:hover {
  border-color: var(--paper);
  color: var(--paper);
}
.hint {
  margin: 10px 0 0;
  color: var(--paper-faint);
  font-size: 13px;
  line-height: 1.5;
}

/* codes */
.codegen {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.codegen input,
.codegen select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
  font-size: 14px;
  outline: none;
}
.codegen select {
  color-scheme: dark;
}
.codegen .btn {
  grid-column: 1 / -1;
  justify-content: center;
}
.newcode {
  margin-top: 16px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 75, 34, 0.5);
  background: radial-gradient(100% 120% at 50% 0%, rgba(255, 75, 34, 0.14), transparent 70%);
  text-align: center;
}
.newcode__code {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 6px 0 14px;
}
.newcode__code b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 38px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
}
.newcode__code i {
  align-self: center;
  width: 6px;
  height: 1px;
  background: var(--paper-faint);
}
.newcode__label {
  color: var(--paper-dim);
  font-size: 10px;
}
.newcode__acts {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.codes {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.code-row__c {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.12em;
}
.code-row__m {
  grid-column: 1;
  color: var(--paper-faint);
  font-size: 12px;
}
.code-row__acts {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 6px;
}
.code-row.is-revoked {
  opacity: 0.45;
}
.code-row.is-revoked .code-row__c {
  text-decoration: line-through;
}
.mini {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.mini:hover {
  border-color: var(--paper);
  color: var(--paper);
}
.mini--danger:hover {
  border-color: var(--grease);
  color: #ff8a80;
}

.kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kv div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.kv b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}
.kv span {
  display: block;
  margin-top: 6px;
  color: var(--paper-faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* main column */
.mainhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.mainhead h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  word-break: break-word;
}
.mainhead__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.drop:hover,
.drop.is-over {
  border-color: var(--accent);
  background: rgba(255, 75, 34, 0.05);
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.drop__ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: transform 0.6s var(--ease-out), border-color 0.3s;
}
.drop:hover .drop__ico,
.drop.is-over .drop__ico {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--accent);
}
.drop__t {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
}
.drop__s {
  margin: 8px 0 0;
  color: var(--paper-dim);
  font-size: 14px;
}

.queue {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-2);
}
.queue__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--paper-dim);
}
.queue__bar {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 12px;
}
.queue__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.qlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.qitem {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}
.qitem__th {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: var(--ink-3) center / cover;
}
.qitem__n {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.qitem__p {
  height: 2px;
  margin-top: 6px;
  background: var(--line);
}
.qitem__p i {
  display: block;
  height: 100%;
  background: var(--paper);
  width: 0;
  transition: width 0.2s;
}
.qitem.is-done .qitem__p i {
  background: var(--ok);
}
.qitem.is-err {
  color: #ff8a80;
}
.qitem.is-err .qitem__p i {
  background: var(--grease);
}

.ptools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 14px;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.seg button {
  height: 32px;
  padding: 0 14px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.seg button.is-active {
  background: var(--paper);
  color: var(--ink);
}
.ptools__hint {
  color: var(--paper-faint);
  font-size: 10px;
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.ph {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-3) center / cover;
  cursor: grab;
  transition: transform 0.4s var(--ease-out), opacity 0.3s, outline-color 0.3s;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}
.ph.is-dragging {
  opacity: 0.3;
}
.ph.is-target {
  outline-color: var(--accent);
}
.ph.is-cover {
  outline-color: var(--paper);
}
.ph__over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  background: linear-gradient(rgba(0, 0, 0, 0.55), transparent 35%, transparent 60%, rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.3s;
}
.ph:hover .ph__over,
.ph:focus-within .ph__over {
  opacity: 1;
}
.ph__row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.ph__btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 10, 9, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  transition: background 0.3s, color 0.3s;
}
.ph__btn:hover {
  background: var(--paper);
  color: var(--ink);
}
.ph__btn--del:hover {
  background: var(--grease);
  color: #fff;
}
.ph__btn.is-on {
  background: var(--accent);
  color: var(--ink);
}
.ph__info {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph__badges {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  gap: 4px;
  transition: opacity 0.3s;
}
.ph:hover .ph__badges {
  opacity: 0;
}
.ph__badge {
  height: 22px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 11px;
  background: rgba(11, 10, 9, 0.7);
  font-family: var(--mono);
  font-size: 10px;
  color: #fff;
}
.ph__badge--fav {
  background: var(--accent);
  color: var(--ink);
}
.ph__badge--cover {
  background: var(--paper);
  color: var(--ink);
}
.empty-photos {
  padding: 40px;
  text-align: center;
  color: var(--paper-faint);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* inquiries */
.inq {
  display: grid;
  gap: 12px;
  max-width: 980px;
}
.iq {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink-2);
}
.iq.is-unread {
  border-color: rgba(255, 75, 34, 0.55);
  background: radial-gradient(80% 140% at 0% 0%, rgba(255, 75, 34, 0.08), transparent 60%), var(--ink-2);
}
.iq__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}
.iq__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--paper-dim);
  font-size: 14px;
}
.iq__meta a {
  color: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}
.iq__msg {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: var(--paper-dim);
  line-height: 1.6;
  white-space: pre-wrap;
}
.iq__acts {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.iq__when {
  color: var(--paper-faint);
}

/* dialogs */
.dlg {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
}
.dlg::backdrop {
  background: rgba(8, 7, 6, 0.7);
  backdrop-filter: blur(10px);
}
.dlg__card {
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--ink-2);
}
.dlg__card h2 {
  margin: 0 0 8px;
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
}
.dlg__sub {
  margin: 0 0 24px;
  color: var(--paper-dim);
  font-size: 14px;
}
.dlg__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.dlg[open] .dlg__card {
  animation: dlgin 0.6s var(--ease-out);
}
@keyframes dlgin {
  from { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(8px); }
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, 30px);
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
  pointer-events: none;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.is-err {
  background: var(--grease);
  color: #fff;
}

.loading-line {
  padding: 60px 0;
  color: var(--paper-faint);
  text-align: center;
}

@media (max-width: 1080px) {
  .adetail {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    max-height: none;
    order: 2;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    border-right: 0;
  }
  .stat:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 800px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login__aside {
    display: none;
  }
  .top {
    gap: 14px;
    flex-wrap: wrap;
  }
  .top__hello,
  .top__site {
    display: none;
  }
  .vhead,
  .mainhead {
    flex-direction: column;
    align-items: flex-start;
  }
  .mainhead__acts {
    justify-content: flex-start;
  }
  .photos {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .ph__over {
    opacity: 1;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .login__card {
    padding: 34px 22px 26px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .iq {
    grid-template-columns: 1fr;
  }
  .iq__acts {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ---------- consent, site picker, calendar ---------- */
.pill--warn {
  border-color: rgba(242, 184, 75, 0.5);
  color: #f2b84b;
}
.pill--no {
  border-color: rgba(227, 39, 27, 0.5);
  color: #ff8a80;
}
.acard__consent {
  margin: 12px 0 0;
  color: var(--paper-faint);
  font-size: 10px;
}
.acard__consent.is-full {
  color: var(--ok);
}
.acard__consent.is-limited {
  color: #f2b84b;
}
.acard__consent.is-none {
  color: #ff8a80;
}
.consent__who {
  margin: 0;
  font-size: 15px;
}
.consent__note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  color: var(--paper-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
}
.sitepick {
  position: absolute;
  z-index: 80;
  width: 260px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--ink-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: dlgin 0.4s var(--ease-out);
}
.sitepick__h {
  margin: 4px 0 8px;
  color: var(--paper-faint);
  font-size: 9px;
}
.sitepick__warn {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(242, 184, 75, 0.12);
  color: #f2b84b;
  font-size: 12px;
  line-height: 1.4;
}
.sitepick label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 4px;
  font-size: 14px;
  cursor: pointer;
}
.sitepick input {
  accent-color: var(--accent);
}
.iq__st {
  grid-column: 1;
  justify-self: start;
}
.alegend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 18px;
  color: var(--paper-dim);
}
.alegend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.alegend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
}
.alegend i.is-limited {
  background: rgba(242, 184, 75, 0.7);
}
.alegend i.is-booked {
  background: var(--grease);
}
.acal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
}
.amonth {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
}
.amonth__h {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: 34px;
  text-transform: capitalize;
}
.amonth__wk,
.amonth__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.amonth__wk {
  margin-bottom: 6px;
  color: var(--paper-faint);
  text-align: center;
  font-size: 10px;
}
.aday {
  position: relative;
  min-height: 64px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.aday:hover {
  border-color: var(--paper-dim);
}
.aday__n {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
}
.aday__req {
  font-size: 8px;
  color: var(--accent);
}
.aday__note {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aday.is-limited {
  background: rgba(242, 184, 75, 0.2);
  border-color: rgba(242, 184, 75, 0.5);
}
.aday.is-booked {
  background: rgba(227, 39, 27, 0.32);
  border-color: rgba(227, 39, 27, 0.6);
}
.aday.is-past {
  opacity: 0.35;
}
.aday.is-today {
  outline: 1px dashed var(--paper-dim);
  outline-offset: 2px;
}

/* ---------- Teodora & Marija ---------- */
.login__duo {
  --duo-h: clamp(130px, 14vw, 200px);
  display: flex;
  width: max-content;
  margin: 0 0 18px;
}
.login__aside .say {
  font-size: 11px;
}
.empty__duo {
  --duo-h: 120px;
  display: flex;
  width: max-content;
  margin: 10px auto 22px;
}
