/* ============================================================
   Astra Origins — Information Space Hub · new design styles
   Shared shell (header / mid menu / dock / profile) lives in
   cosmos.css. This file styles the article grid, toolbar,
   detail view, comments, modals and the guest login prompt.
   All `ih-` prefixed so it never collides with the old design.
   ============================================================ */

/* ── Toolbar ──────────────────────────────────────────── */
.ih-toolbar {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px;
  margin-bottom: 14px;
}
.ih-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.ih-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 7px;
  background: transparent; color: var(--ink-2);
  font-size: 12px; font-weight: 700; border: none; cursor: pointer;
}
.ih-tab:hover { background: var(--surface-2); color: var(--ink); }
.ih-tab.is-on { background: var(--ink); color: white; }
.ih-tab.is-on .ct { color: oklch(0.75 0.005 240); }
.ih-tab .ct { font-size: 9px; color: var(--ink-3); letter-spacing: 0.04em; }

.ih-filter {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.ih-search {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 200px;
  padding: 7px 12px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-3);
}
.ih-search input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  font-size: 12px; color: var(--ink);
}
.ih-filter-btn, .ih-sort-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 10px; font-weight: 800; color: var(--ink-2);
  letter-spacing: 0.1em; cursor: pointer;
}
.ih-filter-btn:hover, .ih-sort-btn:hover { background: var(--surface-3); color: var(--ink); }
.ih-add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 7px;
  background: var(--accent); color: white; border: none; cursor: pointer;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  margin-left: auto;
}
.ih-media-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 10px; font-weight: 800; color: var(--ink-2);
  letter-spacing: 0.1em; cursor: pointer;
}
.ih-media-btn:hover { background: var(--surface-3); color: var(--ink); }
.ih-cal-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 7px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-size: 10px; font-weight: 800; color: var(--accent);
  letter-spacing: 0.1em; cursor: pointer;
}
.ih-cal-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Dropdown (year / sort / share) ───────────────────── */
.ih-dd { position: relative; }
.ih-dd-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 160px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; box-shadow: 0 16px 36px oklch(0 0 0 / 0.18);
  display: flex; flex-direction: column; gap: 2px;
}
.ih-dd-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 6px; border: none; cursor: pointer;
  background: transparent; color: var(--ink-2);
  font-size: 12px; font-weight: 600;
}
.ih-dd-item:hover { background: var(--surface-2); color: var(--ink); }
.ih-dd-item.is-on { background: var(--accent-soft); color: var(--accent); }

/* ── Article grid ─────────────────────────────────────── */
.ih-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ih-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ih-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 12px 28px oklch(0 0 0 / 0.08); }
.ih-card-link { display: block; text-decoration: none; color: inherit; }
.ih-cover {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, oklch(0.15 0.05 270), oklch(0.08 0.02 250));
  overflow: hidden;
}
.ih-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ih-cover-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 65%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 25%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 82% 60%, white 50%, transparent 51%);
  opacity: 0.7;
}
.ih-cover-glow { position: absolute; inset: 0; mix-blend-mode: screen; }
.ih-cover-cat {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  font-size: 8px; color: white;
  background: oklch(0 0 0 / 0.55); padding: 3px 8px; border-radius: 3px;
  backdrop-filter: blur(4px); letter-spacing: 0.14em; font-weight: 800;
}
.ih-cover-play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  font-size: 34px; color: white; text-shadow: 0 2px 12px oklch(0 0 0 / 0.6);
}
.ih-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ih-card-meta { display: flex; gap: 5px; font-size: 9px; color: var(--ink-3); letter-spacing: 0.1em; font-weight: 700; }
.ih-card-title { font-size: 14px; font-weight: 800; letter-spacing: -0.005em; line-height: 1.3; margin: 2px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ih-card-desc {
  font-size: 12px; color: var(--ink-2); line-height: 1.55; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ih-card-foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.ih-author {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  color: white; font-size: 10px; font-weight: 800;
}
.ih-author img { width: 100%; height: 100%; object-fit: cover; }
.ih-author.sm { width: 22px; height: 22px; font-size: 9px; }
.ih-author-name { font-size: 12px; font-weight: 800; color: inherit; text-decoration: none; }
.ih-author-name.sm { font-size: 11px; }
a.ih-author-name:hover { color: var(--accent); }
.ih-author-role { font-size: 9px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.12em; }
.ih-stat { margin-left: auto; font-size: 9px; color: var(--ink-3); letter-spacing: 0.06em; }
.ih-stat .bi { margin-right: 3px; }
.ih-save { color: var(--ink-3); font-size: 13px; cursor: default; }

/* Interactive like button on the article card (optimistic) */
.ih-card-like {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 6px; border-radius: 7px;
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-3); font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  transition: color 0.12s, transform 0.12s;
}
.ih-card-like .bi { font-size: 14px; }
.ih-card-like:hover { color: var(--ink); background: var(--surface-2); }
.ih-card-like.is-on { color: oklch(0.6 0.2 25); }
.ih-card-like.is-on:hover { color: oklch(0.55 0.22 25); }
.ih-card-like:active { transform: scale(0.92); }

/* ── Card owner menu ──────────────────────────────────── */
.ih-card-menu { position: absolute; top: 8px; right: 8px; z-index: 5; }
.ih-card-menu-trigger {
  width: 28px; height: 28px; border-radius: 7px; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: oklch(0 0 0 / 0.5); color: white; backdrop-filter: blur(4px);
}
.ih-card-menu-trigger:hover { background: oklch(0 0 0 / 0.7); }
.ih-card-menu-pop {
  position: absolute; right: 0; top: 32px; min-width: 150px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; box-shadow: 0 16px 36px oklch(0 0 0 / 0.2);
  display: flex; flex-direction: column; gap: 2px;
}
.ih-card-menu-pop button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px;
  border: none; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.ih-card-menu-pop button:hover { background: var(--surface-2); color: var(--ink); }
.ih-card-menu-pop button.is-danger:hover { background: oklch(0.55 0.2 25 / 0.12); color: oklch(0.55 0.2 25); }

/* ── Empty + loader ───────────────────────────────────── */
.ih-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px 16px; color: var(--ink-3);
  font-size: 11px; letter-spacing: 0.14em; font-weight: 700;
}
.ih-empty .bi { font-size: 26px; }
.ih-loader {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 22px 16px; font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.16em; font-weight: 700; margin-top: 12px;
}
.ih-loader.is-done { color: var(--ink-2); }
.ih-loader.is-done .ih-loader-spinner { display: none; }
.ih-loader-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: ih-spin 0.8s linear infinite;
}
@keyframes ih-spin { to { transform: rotate(360deg); } }
.ih-sentinel { width: 100%; height: 1px; }
.ih-loadmore {
  display: block; margin: 14px auto 0; padding: 9px 18px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-2); cursor: pointer;
}
.ih-loadmore:hover { background: var(--surface-3); color: var(--ink); }

/* ── Skeleton shimmer ─────────────────────────────────── */
.ih-skel-card { pointer-events: none; }
.ih-skel-block, .ih-skel-line, .ih-skel-dot {
  position: relative; overflow: hidden;
  background: var(--surface-2); border-radius: 6px;
}
.ih-skel-block { height: 140px; border-radius: 0; }
.ih-skel-line { height: 10px; border-radius: 4px; }
.ih-skel-dot { width: 22px; height: 22px; border-radius: 50%; }
.ih-skel-foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.ih-skel-block::after, .ih-skel-line::after, .ih-skel-dot::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.06), transparent);
  animation: ih-shimmer 1.3s infinite;
}
@keyframes ih-shimmer { 100% { transform: translateX(100%); } }

/* ── Article detail ───────────────────────────────────── */
.ih-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--ink-2); text-decoration: none;
}
.ih-back:hover { color: var(--accent); }
.ih-crumb-link { text-decoration: none; }
.ih-crumb-link:hover { color: var(--accent); }

.ih-detail {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-bottom: 18px;
}
.ih-detail-cover {
  position: relative; min-height: 240px;
  background: linear-gradient(135deg, oklch(0.15 0.05 270), oklch(0.08 0.02 250));
  overflow: hidden;
}
.ih-detail-cover-img, .ih-detail-video { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.ih-detail-video { background: #000; }
.ih-detail-body { padding: 22px 26px; }
.ih-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; font-weight: 700; }
.ih-detail-meta .bi { color: var(--ink-2); margin-right: 4px; }
.ih-detail-title { font-size: 26px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; margin: 10px 0 14px; }
.ih-detail-byline { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ih-detail-actions { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ih-act {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.ih-act:hover { background: var(--surface-3); color: var(--ink); }
.ih-act.is-on { color: oklch(0.6 0.2 25); border-color: oklch(0.6 0.2 25 / 0.4); background: oklch(0.6 0.2 25 / 0.1); }
.ih-act.ih-save { cursor: default; }
.ih-share-menu { min-width: 170px; }
.ih-share-menu a, .ih-share-menu button {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px; border: none; background: transparent;
  color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; width: 100%; text-align: left;
}
.ih-share-menu a:hover, .ih-share-menu button:hover { background: var(--surface-2); color: var(--ink); }
.ih-detail-copy { font-size: 14px; line-height: 1.7; color: var(--ink); }
.ih-detail-copy p { margin: 0 0 14px; }
.ih-detail-copy img { max-width: 100%; height: auto; border-radius: 8px; }
.ih-detail-notes { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ih-note { font-size: 11px; color: var(--ink-3); margin: 0 0 6px; }
.ih-note .mono { color: var(--ink-2); font-weight: 700; }

/* ── Comments ─────────────────────────────────────────── */
.ih-comments { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.ih-comments-head { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink); margin: 0 0 16px; }
.ih-comments-head .ct { color: var(--ink-3); margin-left: 4px; }
.ih-comment-guest {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px; border: 1px dashed var(--line); border-radius: 10px;
  color: var(--ink-2); font-size: 13px; margin-bottom: 16px;
}
.ih-comment-guest .bi { font-size: 18px; color: var(--ink-3); }
.ih-comment-guest .ih-btn-primary { margin-left: auto; }
.ih-comment-composer { display: flex; gap: 10px; margin-bottom: 18px; }
.ih-composer-main { flex: 1; }
.ih-composer-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.ih-comment-list { display: flex; flex-direction: column; gap: 14px; }
.ih-comment { display: flex; gap: 10px; }
.ih-comment-main { flex: 1; min-width: 0; }
.ih-comment-top { display: flex; align-items: center; gap: 8px; }
.ih-comment-author { font-size: 12px; font-weight: 800; color: var(--ink); text-decoration: none; }
a.ih-comment-author:hover { color: var(--accent); }
.ih-comment-time { font-size: 9px; color: var(--ink-3); letter-spacing: 0.06em; }
.ih-comment-del { margin-left: auto; border: none; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 12px; }
.ih-comment-del:hover { color: oklch(0.55 0.2 25); }
.ih-comment-body { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 4px 0 6px; white-space: pre-wrap; word-break: break-word; }
.ih-comment-foot { display: flex; align-items: center; gap: 10px; }
.ih-comment-like { display: inline-flex; align-items: center; gap: 5px; border: none; background: transparent; cursor: pointer; color: var(--ink-3); font-size: 11px; font-weight: 700; }
.ih-comment-like.is-on { color: oklch(0.6 0.2 25); }
.ih-comment-empty { text-align: center; color: var(--ink-3); font-size: 11px; letter-spacing: 0.14em; padding: 18px; }

/* ── Form controls (modal + composer) ─────────────────── */
.ih-input {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); font-size: 13px; outline: none;
}
.ih-input:focus { border-color: var(--accent-line); }
.ih-textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.ih-label { display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 6px; }
.ih-label-opt { color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.ih-field { margin-bottom: 14px; }
.ih-field.is-hidden { display: none; }
.ih-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ih-cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ih-cat-chip {
  padding: 6px 12px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer;
}
.ih-cat-chip:hover { background: var(--surface-3); color: var(--ink); }
.ih-cat-chip.is-on { background: var(--accent); color: white; border-color: var(--accent); }

/* Upload drop zone */
.ih-drop {
  display: block; position: relative; cursor: pointer;
  border: 1px dashed var(--line); border-radius: 10px;
  background: var(--surface-2); overflow: hidden;
}
.ih-drop:hover { border-color: var(--accent-line); }
.ih-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; color: var(--ink-3); font-size: 12px; }
.ih-drop-empty .bi { font-size: 26px; }
.ih-drop-preview { position: relative; }
.ih-drop-preview img,
.ih-drop-preview video { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.ih-drop-preview img[hidden],
.ih-drop-preview video[hidden] { display: none; }
.ih-drop-clear {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  border-radius: 50%; border: none; cursor: pointer;
  background: oklch(0 0 0 / 0.6); color: white; font-size: 18px; line-height: 1;
}

.ih-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
}
.ih-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.ih-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
}
.ih-btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ── Modal shell ──────────────────────────────────────── */
.ih-modal, .ih-login-modal {
  position: fixed; inset: 0; z-index: 4000;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: oklch(0 0 0 / 0.55); backdrop-filter: blur(3px);
}
.ih-modal.is-open, .ih-login-modal.is-open { display: flex; }
.ih-modal-dialog {
  width: 100%; max-width: 560px; max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 30px 80px oklch(0 0 0 / 0.4);
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-line) transparent;
  scroll-behavior: smooth;
}

/* ── Friendly custom scrollbar (modals + textareas) ───── */
.ih-modal-dialog::-webkit-scrollbar,
.ih-textarea::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.ih-modal-dialog::-webkit-scrollbar-track,
.ih-textarea::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}
.ih-modal-dialog::-webkit-scrollbar-thumb,
.ih-textarea::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
  border: 3px solid var(--surface);          /* inset look → slimmer thumb */
  background-clip: padding-box;
}
.ih-modal-dialog::-webkit-scrollbar-thumb:hover,
.ih-textarea::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  background-clip: padding-box;
}
.ih-textarea {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-line) transparent;
}
.ih-textarea::-webkit-scrollbar-thumb {
  border-color: var(--surface-2);            /* match the field background */
}
.ih-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 2;
}
.ih-modal-title { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; }
.ih-modal-close, .ih-login-close {
  border: none; background: transparent; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--ink-3);
}
.ih-modal-close:hover, .ih-login-close:hover { color: var(--ink); }
.ih-modal-body { padding: 18px 20px; }
.ih-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ih-modal-error {
  margin: 4px 0 12px; padding: 9px 12px; border-radius: 8px;
  background: oklch(0.6 0.2 25 / 0.1); border: 1px solid oklch(0.6 0.2 25 / 0.3);
  color: oklch(0.55 0.2 25); font-size: 11px; font-weight: 600;
}

/* ── Login prompt modal ───────────────────────────────── */
.ih-login-dialog {
  width: 100%; max-width: 380px; text-align: center;
  padding: 28px 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 80px oklch(0 0 0 / 0.4); position: relative;
}
.ih-login-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px; color: white;
  background: linear-gradient(135deg, oklch(0.58 0.19 305), oklch(0.5 0.2 270));
}
.ih-login-title { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; margin: 0 0 8px; }
.ih-login-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 0 0 18px; }
.ih-login-actions { display: flex; flex-direction: column; gap: 8px; }
.ih-login-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px; border-radius: 9px; text-decoration: none;
  background: var(--accent); color: white; font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
}
.ih-login-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px; border-radius: 9px; text-decoration: none;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
}
.ih-login-secondary:hover { background: var(--surface-2); color: var(--ink); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .ih-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ih-toolbar { padding: 8px; }
  .ih-tab { padding: 6px 10px; font-size: 11px; }
  .ih-add-btn { margin-left: 0; }
  .ih-search { min-width: 100%; }
  .ih-detail-title { font-size: 20px; }
  .ih-field-row { grid-template-columns: 1fr; }
}
