/* TuyetPhamstudio — giao diện chung cho trang quản lý và trang review */
:root {
  --bg: #111114; --panel: #18181c; --panel-2: #202026; --panel-3: #2a2a31; --line: #2f2f37; --line-2: #3b3b45;
  --text: #eeecf2; --muted: #a09eac; --faint: #6f6d7a;
  --accent: #f6a5c0; --accent-2: #ffc4d6; --accent-ink: #2b0d19;
  --ok: #78d98f; --ok-ink: #0d2614; --warn: #ffb45c; --warn-ink: #2e1a02; --bad: #ff6b6b; --info: #7cc4ff;
  --radius: 10px; --radius-sm: 7px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 13px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap; text-decoration: none; color: var(--text); font-weight: 500; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--panel-3); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); font-weight: 600; }
.btn.ok:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { color: var(--bad); }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #2a0606; font-weight: 600; }
.btn.icon { width: 34px; padding: 0; }
.btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.input {
  width: 100%; height: 36px; padding: 0 11px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--accent); outline: none; }
select.input { padding-right: 6px; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 500; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }
.kicker { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.badge.in_review { background: #23303d; color: var(--info); border-color: #2f4659; }
.badge.changes { background: #3a2610; color: var(--warn); border-color: #5a3a14; }
.badge.approved { background: #183022; color: var(--ok); border-color: #24502f; }
.badge.review_again { background: #3a1c2a; color: var(--accent-2); border-color: #64304a; }
.badge.new { background: var(--accent); color: var(--accent-ink); }

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-style: normal; color: var(--accent-ink); font: 700 14px/1 var(--font); }
.logo small { font: 500 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 999px; z-index: 100; box-shadow: 0 8px 30px #0008; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); animation: toastIn .18s ease-out; }
.toast button { background: none; border: 0; color: var(--accent-2); font-weight: 600; cursor: pointer; padding: 0; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

.modal-overlay { position: fixed; inset: 0; background: #0009; display: grid; place-items: center; z-index: 90; padding: 16px; animation: fade .15s; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; width: min(420px, 100%); box-shadow: 0 20px 60px #000a; }
.modal h3 { margin: 0 0 8px; font-size: 17px; }
.modal p { margin: 0 0 14px; color: var(--muted); }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal kbd, .help-keys kbd { font: 500 11px/1 var(--mono); background: var(--panel-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; font-size: 13px; }
@keyframes fade { from { opacity: 0; } }

/* ================= Trang review ================= */
.review { display: grid; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; }
.topbar .title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .client { color: var(--muted); white-space: nowrap; }
.spacer { flex: 1; }
.ver { display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); flex: none; }
.ver select { background: transparent; border: 0; height: 100%; padding: 0 6px 0 9px; font-weight: 700; cursor: pointer; }
.ver .date { font: 500 11px/1 var(--mono); color: var(--muted); padding: 0 9px 0 6px; border-left: 1px solid var(--line); height: 100%; display: flex; align-items: center; }
.ver.old { border-color: var(--warn); }
.ver.old select, .ver.old .date { color: var(--warn); }
.ver-tag { font: 600 10px/1 var(--mono); text-transform: uppercase; color: var(--warn); padding-left: 9px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 0; }
.viewer { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; background: #000; }
.stage { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.stage video, .stage img.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage canvas { position: absolute; pointer-events: none; touch-action: none; }
.stage.drawing canvas { pointer-events: auto; cursor: crosshair; }
.stage .audio-art { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; color: var(--muted); }
.stage .audio-art span { font-size: 56px; color: var(--accent); }
.big-play { position: absolute; width: 74px; height: 74px; border-radius: 50%; border: 0; background: #000a; color: #fff; font-size: 28px; cursor: pointer; display: grid; place-items: center; padding-left: 5px; backdrop-filter: blur(4px); }
.big-play:hover { background: var(--accent); color: var(--accent-ink); }
.stage-draw { position: absolute; top: 12px; right: 12px; }
.draw-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: #000b; padding: 6px 12px; border-radius: 999px; font-size: 13px; pointer-events: none; }
.spinner { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff3; border-top-color: var(--accent); animation: spin .8s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { position: absolute; max-width: 420px; margin: 16px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; text-align: center; }
.notice b { display: block; margin-bottom: 6px; }
.notice p { margin: 0; color: var(--muted); }

.controls { background: var(--panel); border-top: 1px solid var(--line); padding: 6px 12px 10px; }
.timeline { position: relative; height: 30px; cursor: pointer; touch-action: none; }
.timeline .track { position: absolute; left: 0; right: 0; top: 13px; height: 5px; background: var(--panel-3); border-radius: 3px; overflow: hidden; }
.timeline .buffered { position: absolute; inset: 0 auto 0 0; background: #ffffff1f; }
.timeline .played { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.timeline .head { position: absolute; top: 8px; width: 3px; height: 15px; margin-left: -1px; background: #fff; border-radius: 2px; pointer-events: none; box-shadow: 0 0 0 2px #0007; }
.timeline .tip { position: absolute; bottom: 30px; transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--line-2); font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 5px; pointer-events: none; white-space: nowrap; }
.marker { position: absolute; top: 2px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--panel); background: var(--warn); cursor: pointer; padding: 0; z-index: 2; }
.marker.editor { background: var(--accent); }
.marker.resolved { background: var(--ok); }
.marker.other { background: var(--panel); border-color: var(--faint); }
.marker.active { transform: scale(1.35); box-shadow: 0 0 0 2px #fff; }
.seg { position: absolute; top: 12px; height: 7px; border-radius: 3px; pointer-events: none; }
.seg.note { background: #ffb45c55; }
.seg.note.resolved { background: #78d98f44; }
.seg.note.active { background: #ffffff55; }
.seg.draft { background: #f6a5c066; outline: 1px solid var(--accent); pointer-events: none; z-index: 3; }
.seg.draft .rh { position: absolute; top: -7px; width: 14px; height: 21px; margin-left: -7px; background: var(--accent); border-radius: 4px; cursor: ew-resize; pointer-events: auto; touch-action: none; }
.seg.draft .rh[data-end="a"] { left: 0; }
.seg.draft .rh[data-end="b"] { left: 100%; }
.bar { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.bar .btn { height: 32px; }
.frame-step { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.frame-step .btn { border: 0; border-radius: 0; width: 32px; padding: 0; background: var(--panel-2); }
.frame-step select { background: var(--panel-2); border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font: 500 12px var(--mono); padding: 0 4px; cursor: pointer; }
.tc { font: 500 13px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.tc b { color: var(--text); font-weight: 600; }
.bar select.speed { height: 32px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 6px; cursor: pointer; }
.bar input[type=range] { width: 90px; accent-color: var(--accent); }

.side { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; border-left: 1px solid var(--line); background: var(--panel); }
.side-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.side-head h2 { margin: 0; font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.side-head h2 small { font: 500 11px/1 var(--mono); color: var(--muted); }
.tabs { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px; margin-left: auto; }
.tabs button { background: none; border: 0; padding: 4px 9px; border-radius: 5px; font: 600 11px/1 var(--mono); text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--panel-3); color: var(--text); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 38px; z-index: 20; width: 270px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px; box-shadow: 0 12px 40px #000a; }
.menu button { display: grid; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.menu button:hover { background: var(--panel-3); }
.menu small { color: var(--muted); font-size: 12px; }

.comments { overflow-y: auto; padding: 8px; display: grid; align-content: start; gap: 6px; }
.comments .none { color: var(--muted); text-align: center; padding: 40px 18px; }
.comment { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 11px; background: var(--panel); cursor: pointer; transition: border-color .12s, background .12s; }
.comment:hover { border-color: var(--line-2); }
.comment.active { border-color: var(--accent); background: #22191e; }
.comment.resolved .c-body { color: var(--muted); }
.c-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #3b3220; color: var(--warn); flex: none; }
.avatar.editor { background: var(--accent); color: var(--accent-ink); }
.c-author { font-weight: 600; font-size: 13px; }
.c-role { font: 600 9px/1 var(--mono); text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 3px 5px; border-radius: 4px; }
.c-date { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.c-body { white-space: pre-wrap; word-break: break-word; }
.chip { display: inline-block; font: 600 12px/1 var(--mono); background: #2a2116; color: var(--warn); border: 1px solid #4a3417; padding: 3px 6px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; }
.comment.resolved .chip { background: #18261b; color: var(--ok); border-color: #24402b; }
.vtag { display: inline-block; font: 600 10px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); padding: 3px 5px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.pen-tag { color: var(--accent-2); margin-right: 4px; }
.replies { margin: 8px 0 0 12px; padding-left: 10px; border-left: 2px solid var(--line-2); display: grid; gap: 8px; }
.reply .c-head { margin-bottom: 3px; }
.c-tools { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.c-tools button { background: none; border: 1px solid transparent; color: var(--muted); font-size: 12px; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.c-tools button:hover { background: var(--panel-2); color: var(--text); }
.c-tools .done { border-color: var(--line-2); }
.c-tools .done.on { background: #18261b; border-color: #24502f; color: var(--ok); }
.c-tools .done:disabled { cursor: default; }
.c-tools .danger { margin-left: auto; }
.c-tools .danger:hover { color: var(--bad); }
.reply-box { margin-top: 8px; display: grid; gap: 6px; }
.reply-box .row { display: flex; justify-content: flex-end; gap: 6px; }

.composer { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 8px; background: var(--panel); }
.composer .row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.composer .time { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: 600 12px var(--mono); cursor: pointer; background: var(--bg); }
.composer .time input { accent-color: var(--accent); margin: 0; }
.who-line { font-size: 12px; color: var(--muted); margin-bottom: -2px; }
.who-line b { color: var(--text); font-weight: 600; }
.who-line button { background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; font-size: 12px; text-decoration: underline; }
.range-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.range-row b { font: 600 12px var(--mono); }
.range-row .len { color: var(--accent-2); font: 600 12px var(--mono); }
.range-row .hint { color: var(--muted); width: 100%; }
.swatches { display: inline-flex; gap: 5px; }
.swatches button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.swatches button.on { box-shadow: 0 0 0 2px #fff; }
#send.nudge { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 5px #f6a5c044; } }
.note-fab { position: fixed; right: 14px; bottom: 16px; z-index: 30; box-shadow: 0 8px 24px #000a; }

.cheer { text-align: center; padding: 30px 26px; }
.cheer .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: var(--ok-ink); display: grid; place-items: center; font-size: 34px; margin: 0 auto 14px; font-weight: 700; }
.cheer h3 { font-size: 22px; }
canvas.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 95; }

@media (max-width: 860px) {
  .review { height: auto; min-height: 100dvh; display: block; }
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar .title { flex: 1 1 60%; }
  .topbar .client { display: none; }
  .hide-sm { display: none !important; }
  .workspace { display: block; }
  .viewer { position: sticky; top: 0; z-index: 20; display: block; width: 100%; max-width: 100vw; overflow: hidden; }
  .stage { aspect-ratio: var(--ar, 16 / 9); max-height: 52vh; width: 100%; }
  .controls { padding: 4px 10px 8px; }
  .bar { gap: 6px; }
  .bar input[type=range], .bar #mute, .tc .total { display: none; }
  .side { border-left: 0; display: block; }
  .comments { overflow: visible; }
}
@media (min-width: 861px) { .show-sm { display: none !important; } }

/* ================= Trang quản lý ================= */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login { width: min(360px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 14px; }
.login h1 { margin: 6px 0 0; font-size: 22px; }
.dash { max-width: 1120px; margin: 0 auto; padding: 18px 20px 80px; }
.dash header { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.public-info { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.public-info.on { color: var(--ok); border-color: #24502f; background: #18261b; }
.public-info.off { color: var(--warn); border-color: #5a3a14; background: #2a2116; }
.storage { display: grid; gap: 5px; min-width: 200px; font-size: 12px; color: var(--muted); }
.storage .meter { height: 6px; background: var(--panel-3); border-radius: 3px; overflow: hidden; }
.storage .meter i { display: block; height: 100%; background: var(--accent); }
.storage.warn .meter i { background: var(--warn); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.new-project { display: grid; grid-template-columns: 1.4fr 1fr 110px auto; gap: 10px; align-items: end; }
.drop { grid-column: 1 / -1; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #f6a5c00d; color: var(--text); }
.drop b { color: var(--text); }
.file-info { grid-column: 1 / -1; font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.file-info .warn { color: var(--warn); }
.toolbar { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.toolbar h2 { margin: 0; font-size: 18px; }
.toolbar .input { max-width: 260px; margin-left: auto; }
.plist { display: grid; gap: 8px; }
.prow { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; }
.prow .name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prow .name a { color: var(--text); text-decoration: none; }
.prow .name a:hover { color: var(--accent-2); }
.prow .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; align-items: center; }
.prow .meta .seen { color: var(--ok); }
.prow .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.prow select.status { height: 28px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 12.5px; padding: 0 6px; cursor: pointer; }
.notes-pill { font: 600 11.5px/1 var(--mono); padding: 4px 7px; border-radius: 6px; background: var(--panel-2); color: var(--muted); }
.notes-pill.open { background: #2a2116; color: var(--warn); }
.notes-pill.done { background: #18261b; color: var(--ok); }
.progress { grid-column: 1 / -1; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.progress .meter { height: 6px; background: var(--panel-3); border-radius: 3px; overflow: hidden; }
.progress .meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.empty { text-align: center; color: var(--muted); padding: 40px; }
.versions-list { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; overflow-x: hidden; margin: 4px 0; }
.versions-list .vrow { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 13px; }
.versions-list .vrow .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
@media (max-width: 760px) {
  .new-project { grid-template-columns: 1fr 1fr; }
  .prow { grid-template-columns: 1fr; }
  .prow .actions { justify-content: flex-start; }
  .dash header .storage { display: none; }
}

/* ================= Ảnh đại diện của Tuyết (thêm 27/11/2026) ================= */
.logo img.ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--accent); }
.topbar .logo .brand { font-size: 13px; padding-right: 10px; margin-right: 2px; border-right: 1px solid var(--line-2); }
img.avatar.photo { object-fit: cover; box-shadow: 0 0 0 1.5px var(--accent); }
.comments .none { display: grid; justify-items: center; gap: 12px; }
.comments .none .none-ava { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--accent); }
.cheer .ava-wrap { position: relative; width: 104px; height: 104px; margin: 0 auto 16px; }
.cheer .ava-big { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--ok); display: block; }
.cheer .ava-wrap .tick { position: absolute; right: -4px; bottom: -4px; width: 36px; height: 36px; font-size: 19px; margin: 0; border: 3px solid var(--panel); }
.login.art { width: min(760px, 100%); grid-template-columns: 1fr 1fr; padding: 0; gap: 0; overflow: hidden; }
.login.art .art-img { background: url(/img/portrait.jpg) center 18% / cover no-repeat; min-height: 440px; }
.login.art .form { padding: 32px 28px; display: grid; gap: 14px; align-content: center; }
@media (max-width: 680px) {
  .login.art { grid-template-columns: 1fr; }
  .login.art .art-img { min-height: 260px; background-position: center 22%; }
}
