/* longsystems — private research interface
   typography-first. information, not chrome.
   accent = interactive only. no decorative emphasis.
*/
/* anti-slop-gate-run: 20260620r */

/* ── Reset + base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b0b0d;
  --bg-rail:     #0f0f12;
  --bg-elevated: #161619;
  --bg-hover:    #1a1a1f;
  --border:      #222227;
  --border-faint:#18181d;
  --accent:      #4d9fff;
  --accent-dim:  #2a5080;
  --accent-bg:   #0b1a2e;
  --text:        #eceef4;
  --text-dim:    #ababc4;
  --text-muted:  #6d6d88;
  --text-mono:   #9ec4ff;
  --red:         #d94f4f;
  --red-bg:      #1e0c0c;
  --green:       #4aaa6e;
  --green-bg:    #0c1d14;
  --yellow:      #cc9a40;
  --font-sans:   -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --font-mono:   "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  --rail-w:      210px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
#app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* Titlebar */
#titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 36px;
  border-bottom: 1px solid var(--border-faint);
  flex-shrink: 0;
  user-select: none;
}
#titlebar .brand {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  text-transform: uppercase;
}
#titlebar .brand::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='1.5' y='1.5' width='13' height='13' rx='2' fill='none' stroke='%23ababc4' stroke-width='1.3'/><polyline points='4,6 7,8 4,10' fill='none' stroke='%23ababc4' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/><line x1='9' y1='10' x2='12' y2='10' stroke='%23ababc4' stroke-width='1.4' stroke-linecap='round'/></svg>") no-repeat center / contain;
  margin-right: 6px;
  vertical-align: -2px;
  flex-shrink: 0;
}
#titlebar .workdir-display {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  flex: 1;
}
#titlebar .title-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 5px;
  font-size: 13px;
  border-radius: 3px;
  line-height: 1;
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-dim); }

/* Main area */
#main { display: flex; flex: 1; overflow: hidden; }

/* ── Left rail ── */
#rail-left {
  width: var(--rail-w);
  min-width: var(--rail-w);
  background: var(--bg-rail);
  border-right: 1px solid var(--border-faint);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rail-header {
  padding: 10px 10px 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rail-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  border-radius: 2px;
}
.rail-header button:hover { color: var(--text-dim); }

#session-list {
  flex: 1;
  overflow-y: auto;
  padding: 3px 0 6px;
}
.session-item {
  padding: 6px 10px;
  cursor: pointer;
  min-width: 0;
  position: relative;
}
.session-item:hover { background: var(--bg-hover); }
.session-item.active { background: var(--bg-hover); border-left: 2px solid var(--accent-dim); padding-left: 8px; }
.session-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--text-dim);
}
.session-item.active .session-title { color: var(--text); font-weight: 500; }
.session-wd {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}
.session-delete {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
  line-height: 1;
}
.session-item:hover .session-delete { display: block; }
.session-item:hover .session-delete:hover { color: var(--red); }

.session-title::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'><path d='M13 0H1C.45 0 0 .45 0 1v7.5c0 .55.45 1 1 1h2v3l3-3h7c.55 0 1-.45 1-1V1c0-.55-.45-1-1-1z' fill='none' stroke='%236d6d88' stroke-width='1.25'/></svg>") no-repeat center / contain;
  margin-right: 6px;
  vertical-align: -1px;
  flex-shrink: 0;
  opacity: 0.7;
}

.rail-footer {
  padding: 8px 10px;
  border-top: 1px solid var(--border-faint);
}
.rail-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.model-selector {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
  outline: none;
}
.model-selector:focus { border-color: var(--accent-dim); }

/* ── Conversation pane ── */
#conversation-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  scroll-behavior: smooth;
}
#messages:empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
#messages:empty::after {
  content: "longsystems";
  font-size: 22px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-elevated);
  user-select: none;
}

/* ── Messages ── */
.msg {
  margin-bottom: 28px;
  max-width: 100%;
}
.msg-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.msg.error .msg-role { color: var(--red); }
.msg.system .msg-role { color: var(--text-muted); }
.msg:not(.user):not(.error):not(.system) .msg-role { color: var(--accent); }

.msg-body {
  line-height: 1.7;
  color: var(--text);
  word-break: break-word;
}
.msg.user .msg-body {
  color: var(--text-dim);
  white-space: pre-wrap;
  background: rgba(255,255,255,0.028);
  border-radius: 4px;
  padding: 9px 13px;
}
.msg.error .msg-body {
  color: var(--red);
  background: var(--red-bg);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 2px;
}
.msg.system .msg-body {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

/* Markdown */
.msg-body h1, .msg-body h2, .msg-body h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 5px;
}
.msg-body h1 { font-size: 15px; }
.msg-body h4, .msg-body h5 { font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.msg-body p { margin: 5px 0; }
.msg-body ul, .msg-body ol { padding-left: 20px; margin: 5px 0; }
.msg-body li { margin: 2px 0; }
.msg-body strong { color: var(--text); font-weight: 600; }
.msg-body em { color: var(--text-dim); }
.msg-body blockquote {
  border-left: 2px solid var(--border);
  margin: 8px 0;
  padding: 4px 12px;
  color: var(--text-dim);
}
.msg-body hr { border: none; border-top: 1px solid var(--border-faint); margin: 12px 0; }
.msg-body a { color: var(--accent); text-decoration: none; }
.msg-body a:hover { text-decoration: underline; }
.msg-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 8px 0;
  font-size: 12px;
}
.msg-body th, .msg-body td {
  border: 1px solid var(--border);
  padding: 5px 8px;
  text-align: left;
}
.msg-body th { color: var(--text-dim); font-weight: 600; }

/* Inline code */
.msg-body code:not([class]) {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mono);
  background: var(--bg-elevated);
  border: 1px solid var(--border-faint);
  padding: 1px 4px;
  border-radius: 2px;
}

/* Code blocks */
.msg-body pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border-faint);
  padding: 11px 13px;
  overflow-x: auto;
  margin: 8px 0;
  border-radius: 3px;
  position: relative;
}
.msg-body pre code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

/* Upgrade action buttons */
.upgrade-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-faint);
}
.btn-upgrade-approve {
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  font-family: var(--font-sans);
}
.btn-upgrade-approve:hover { background: var(--green); color: #000; }
.btn-upgrade-reject {
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  font-family: var(--font-sans);
}
.btn-upgrade-reject:hover { background: var(--red); color: #fff; }
.btn-upgrade-approve:disabled, .btn-upgrade-reject:disabled {
  opacity: 0.35; cursor: not-allowed;
}

/* Streaming indicator */
.thinking-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  margin-left: 4px;
  vertical-align: middle;
}
@keyframes pulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 0.15; } }

/* ── Composer ── */
#composer {
  position: relative;
  border-top: 1px solid var(--border-faint);
  padding: 10px 14px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

/* Command palette */
#cmd-palette {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 14px; right: 14px;
  background: var(--bg-rail);
  border: 1px solid var(--border);
  border-radius: 5px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
#cmd-palette:not([hidden]) { display: block; }
.cmd-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 12px;
  cursor: pointer;
}
.cmd-item:hover, .cmd-item.selected { background: var(--bg-hover); }
.cmd-usage {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.cmd-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#input-area {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 9px 11px;
  resize: none;
  min-height: 40px;
  max-height: 180px;
  line-height: 1.5;
  border-radius: 4px;
  outline: none;
  overflow-y: auto;
}
#input-area:focus { border-color: var(--accent-dim); }
#input-area::placeholder { color: var(--text-muted); }

.btn-send, .btn-stop {
  height: 40px;
  padding: 0 14px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.btn-send { background: var(--accent); color: #000; }
.btn-send:hover { background: #6aaeff; }
.btn-send:disabled { background: var(--accent-dim); color: var(--text-muted); cursor: not-allowed; }
.btn-stop {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: none;
  font-size: 11px;
}
.btn-stop:hover { border-color: var(--red); color: var(--red); }
.btn-stop.visible { display: block; }

/* ── Right rail — hidden (context data for Telegram only) ── */
#rail-right { display: none !important; }

/* ── Mobile drawer helpers ── */
#btn-hamburger { display: none; }
#mobile-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 499;
}

/* ── Login overlay ── */
#login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#login-overlay:not([hidden]) { display: flex; }
.login-card {
  width: 300px;
  background: var(--bg-rail);
  border: 1px solid var(--border);
  padding: 26px 22px;
  border-radius: 4px;
}
.login-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.login-card label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.login-card input[type="password"] {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 10px;
  margin-bottom: 12px;
  outline: none;
  border-radius: 3px;
}
.login-card input[type="password"]:focus { border-color: var(--accent-dim); }
.btn-login {
  width: 100%;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
  font-family: var(--font-sans);
}
.btn-login:hover { background: #6aaeff; }
.login-error {
  color: var(--red);
  font-size: 11px;
  font-family: var(--font-mono);
  margin-top: 8px;
  min-height: 16px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Mobile ── */
@media (max-width: 900px) {
  /* Sessions: slide-in drawer from left */
  #btn-hamburger {
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: var(--text-dim); font-size: 19px; line-height: 1;
    padding: 6px 8px; border-radius: 3px; flex-shrink: 0;
  }
  #btn-hamburger:hover { color: var(--text); background: var(--bg-hover); }
  #rail-left {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; min-width: 0; height: 100%;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    border-right: 1px solid var(--border);
    overflow-y: auto;
  }
  #rail-left.drawer-open {
    transform: translateX(0);
    box-shadow: 6px 0 24px rgba(0,0,0,.6);
  }
  #mobile-backdrop.visible { display: block; }
  /* #rail-right already display:none */
  /* #main stays flex-row — conversation-pane fills full width */

  /* Titlebar: compact topbar, hide workdir path (too long) */
  #titlebar {
    height: 50px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border-faint);
  }
  #titlebar .workdir-display { display: none; }
  #titlebar .brand { font-size: 11px; }
  .btn-icon { padding: 5px 8px; font-size: 16px; }

  /* Messages: comfortable mobile padding */
  #messages { padding: 16px 14px 8px; }

  /* Body text: slightly larger for mobile readability */
  .msg-body { font-size: 15px; line-height: 1.75; }
  .msg-body pre code { font-size: 12px; }
  .msg-body code:not([class]) { font-size: 12px; }
  .msg-role { font-size: 10px; }
  .msg { margin-bottom: 26px; }

  /* Composer: no hard top border, subtle shadow, safe area bottom */
  #composer {
    border-top: none;
    box-shadow: 0 -1px 0 var(--border-faint);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    align-items: center;
    gap: 8px;
  }

  /* Pill input — MUST be font-size ≥16px to prevent iOS Safari zoom on focus */
  #input-area {
    border-radius: 22px;
    padding: 12px 16px;
    font-size: 16px;
    min-height: 48px;
    max-height: 140px;
  }

  /* Send button: compact circle with arrow icon */
  #btn-attach { height: 44px; width: 40px; font-size: 18px; }
  .btn-send {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    padding: 0;
    font-size: 0;          /* hide Send text */
    flex-shrink: 0;
  }
  .btn-send::after {
    content: "↑";
    font-size: 18px;
    line-height: 1;
  }
  .btn-send:disabled::after { content: "↑"; }

  /* Stop button: pill */
  .btn-stop {
    border-radius: 22px;
    height: 44px;
    min-width: 44px;
    padding: 0 14px;
    font-size: 0;          /* hide ■ Stop text */
  }
  .btn-stop::before {
    content: "■";
    font-size: 13px;
    line-height: 1;
  }

  /* Command palette: slide up from composer */
  #cmd-palette {
    left: 0; right: 0;
    border-radius: 8px 8px 0 0;
    max-height: 220px;
  }

  /* Login card: safe width on small screens */
  .login-card { width: calc(100vw - 40px); max-width: 320px; }

  /* Modal: safe width */
  .modal-box { width: calc(100vw - 32px); }
}

/* Dynamic viewport height: iOS Safari resizes on keyboard/chrome show/hide */
@supports (height: 100dvh) {
  #app { height: 100dvh; }
}

/* ── New-session modal ── */
#new-session-modal {
  position: fixed; inset: 0; z-index: 900;
}
#new-session-modal:not([hidden]) {
  display: flex; align-items: center; justify-content: center;
}
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
}
.modal-box {
  position: relative; z-index: 1;
  background: var(--bg-rail);
  border: 1px solid var(--border);
  padding: 20px 22px 18px;
  width: 400px; max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; gap: 10px;
  border-radius: 4px;
}
.modal-title {
  font-size: 10px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-dim);
}
.modal-label {
  font-size: 9.5px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .07em;
}
.modal-box input[type="text"] {
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); padding: 8px 10px;
  font-family: var(--font-mono); font-size: 13px;
  outline: none; width: 100%; border-radius: 3px;
}
.modal-box input[type="text"]:focus { border-color: var(--accent-dim); }
.modal-shortcuts { display: flex; flex-wrap: wrap; gap: 5px; }
.modal-shortcut {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); padding: 3px 8px;
  border: 1px solid var(--border-faint);
  background: var(--bg-elevated); cursor: pointer;
}
.modal-shortcut:hover { border-color: var(--border); color: var(--text-dim); }
.modal-actions {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 2px;
}
.modal-actions button {
  font-size: 12px; padding: 6px 16px;
  border: 1px solid var(--border); background: none;
  color: var(--text-dim); cursor: pointer; font-family: inherit;
  border-radius: 3px;
}
.modal-actions button:hover { color: var(--text); border-color: var(--text-dim); }
#new-session-confirm { border-color: var(--accent-dim); color: var(--accent); }
#new-session-confirm:hover { background: var(--accent-bg); border-color: var(--accent); }

/* ── hljs ── */
.hljs { background: transparent !important; }


/* ═══ v4 overrides ═══════════════════════════════════════════════ */

/* 1. User messages: right-aligned chat bubble (no label) */
.msg.user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.msg.user .msg-role {
  display: none;
}
.msg.user .msg-body {
  background: var(--bg-elevated);
  border-radius: 14px 14px 3px 14px;
  padding: 10px 16px;
  width: fit-content;
  max-width: 76%;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  /* remove old bg */
  background-image: none;
}

/* 2. No session bubble icons (clutter) */
.session-title::before { content: none; display: none; }

/* 3. MODEL label: hidden — dropdown is self-describing */
.rail-meta { display: none; }

/* 4. Sessions header: whisper-level, not announcement */
.rail-header {
  padding: 10px 10px 6px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.55;
}

/* 5. Model selector: slightly taller for comfort */
.model-selector {
  padding: 6px 8px;
  font-size: 12px;
  margin-top: 2px;
}

/* 6. Rail footer: less cramped without MODEL label */
.rail-footer { padding: 10px 10px 12px; }

.session-item.active { border-left: none; padding-left: 10px; }


/* ═══ File attachment ════════════════════════════════════════════════ */

#btn-attach {
  height: 40px;
  width: 36px;
  flex-shrink: 0;
  opacity: 0.45;
  font-size: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
#btn-attach:hover:not(:disabled) { opacity: 1; }
#btn-attach:disabled { cursor: default; opacity: 0.2; }

.attachment-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  margin: 6px 8px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.attachment-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}
.attachment-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
}
.attachment-remove:hover { color: var(--red); }
