:root {
  --iv-primary: #5c4b8f;
  --iv-primary-dark: #4a3b78;
  --iv-primary-light: #f0edfa;
  --iv-ink: #1e293b;
  --iv-muted: #64748b;
  --iv-line: #e2e8f0;
  --iv-bg: #f8fafc;
}
.iv-wrap { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--iv-ink); background: var(--iv-bg); max-width: 72rem; margin: 0 auto; padding: 1rem; }
.iv-brand { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--iv-line); border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.iv-brand-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--iv-primary-light); padding: 6px; object-fit: contain; flex-shrink: 0; }
.iv-brand-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.iv-brand-sub { margin: .15rem 0 0; font-size: .8rem; color: var(--iv-muted); }
.iv-panel { background: #fff; border: 1px solid var(--iv-line); border-radius: 1rem; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.iv-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid #f1f5f9; padding-bottom: .9rem; margin-bottom: 1rem; flex-wrap: wrap; }
.iv-panel-title { margin: 0; font-size: 1rem; }
.iv-panel-sub { margin: .2rem 0 0; font-size: .78rem; color: var(--iv-muted); }
.iv-count { font-size: .75rem; font-weight: 600; background: var(--iv-primary-light); color: var(--iv-primary); border: 1px solid rgba(92,75,143,.25); padding: .4rem .8rem; border-radius: 999px; white-space: nowrap; }
.iv-filters { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 640px) { .iv-filters { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .iv-filters { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.iv-field label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--iv-muted); margin-bottom: .35rem; }
.iv-field input[type=text], .iv-field input[type=email], .iv-field input[type=tel], .iv-field input[type=file], .iv-field select, .iv-field textarea { width: 100%; padding: .65rem .8rem; background: #f8fafc; border: 1px solid var(--iv-line); border-radius: .75rem; font-size: .88rem; box-sizing: border-box; }
.iv-field input:focus, .iv-field select:focus, .iv-field textarea:focus { outline: none; border-color: var(--iv-primary); box-shadow: 0 0 0 3px rgba(92,75,143,.15); background: #fff; }
.iv-list { display: flex; flex-direction: column; gap: 1rem; }
.iv-card { background: #fff; border: 1px solid var(--iv-line); border-radius: 1rem; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.05); transition: box-shadow .2s; }
.iv-card:hover { box-shadow: 0 8px 24px rgba(92,75,143,.12); }
.iv-card-main { padding: 1.25rem; }
.iv-card-top { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; flex-wrap: wrap; }
.iv-card-title { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.iv-card-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--iv-primary-light); padding: 4px; object-fit: contain; flex-shrink: 0; }
.iv-card-date { font-size: .72rem; color: var(--iv-muted); white-space: nowrap; }
.iv-meta { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1rem; font-size: .85rem; color: #475569; }
@media (min-width: 640px) { .iv-meta { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .iv-meta { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.iv-meta-item { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.iv-dot { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; }
.iv-dot.rose { background: #fff1f2; color: #e11d48; } .iv-dot.blue { background: #eff6ff; color: #2563eb; }
.iv-dot.amber { background: #fffbeb; color: #d97706; } .iv-dot.green { background: #ecfdf5; color: #059669; }
.iv-card-bar { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.iv-link { background: none; border: none; color: var(--iv-primary); font-weight: 600; font-size: .85rem; cursor: pointer; padding: .4rem 0; }
.iv-link:hover { color: var(--iv-primary-dark); text-decoration: underline; }
.iv-intalex-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--iv-muted); background: #f8fafc; border: 1px solid var(--iv-line); padding: .3rem .6rem; border-radius: 999px; }
.iv-intalex-tag img { width: 16px; height: 16px; object-fit: contain; }
.iv-btn { border: 1px solid var(--iv-line); background: #f1f5f9; color: var(--iv-ink); padding: .65rem 1.25rem; border-radius: .75rem; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.iv-btn-primary { background: var(--iv-primary); border-color: var(--iv-primary); color: #fff; box-shadow: 0 4px 12px rgba(92,75,143,.25); }
.iv-btn-primary:hover { background: var(--iv-primary-dark); }
.iv-btn:disabled { opacity: .6; cursor: not-allowed; }
.iv-detail { background: #f8fafc; border-top: 1px solid var(--iv-line); padding: 1.25rem; }
.iv-detail h4 { margin: 0 0 .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--iv-muted); }
.iv-detail ul { margin: 0 0 1.1rem 1.1rem; padding: 0; font-size: .87rem; line-height: 1.6; }
.iv-detail li { margin-bottom: .25rem; }
.iv-empty { text-align: center; background: #fff; border: 1px solid var(--iv-line); border-radius: 1rem; padding: 3rem 1.5rem; }
.iv-empty-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 .3rem; }
.iv-empty-sub { color: var(--iv-muted); font-size: .85rem; margin: 0 0 1rem; }
.iv-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.iv-modal[hidden] { display: none; }
.iv-modal-card { background: #fff; border-radius: 1rem; max-width: 32rem; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 25px 60px rgba(0,0,0,.3); }
.iv-modal-head { background: var(--iv-primary); color: #fff; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.iv-modal-head h3 { margin: 0; font-size: .95rem; }
.iv-modal-x { background: rgba(255,255,255,.15); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.iv-form { padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.iv-grid2 { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 560px) { .iv-grid2 { grid-template-columns: 1fr 1fr; } }
.iv-form-actions { display: flex; justify-content: flex-end; gap: .6rem; padding-top: .4rem; }
.iv-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 10000; background: #0f172a; color: #fff; padding: .85rem 1.2rem; border-radius: .9rem; font-size: .85rem; box-shadow: 0 15px 40px rgba(0,0,0,.3); max-width: min(90vw, 24rem); }
.iv-toast[hidden] { display: none; }
