*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#0e0e10;
  --surface:#1a1a1e;
  --surface-hover:#222228;
  --border:#2a2a30;
  --text:#e4e4e7;
  --text-muted:#8a8a92;
  --accent:#3b82f6;
  --accent-light:#60a5fa;
  --green:#22c55e;
  --green-bg:rgba(34,197,94,0.12);
  --yellow:#eab308;
  --yellow-bg:rgba(234,179,8,0.12);
  --red:#ef4444;
  --red-bg:rgba(239,68,68,0.12);
  --radius:12px;
  --radius-sm:8px;
}
body{
  font-family:Inter,system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
main{max-width:960px;margin:0 auto;padding:32px 16px 64px}
.header{margin-bottom:24px}
.header__title{font-size:24px;font-weight:700;letter-spacing:-0.02em}
.header__subtitle{color:var(--text-muted);font-size:14px;margin-top:4px}
.controls{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 16px;border-radius:var(--radius-sm);
  background:var(--accent);color:#fff;border:none;
  font-size:14px;font-weight:500;cursor:pointer;
  transition:opacity .15s,transform .1s
}
.btn:hover{opacity:.9}
.btn:active{transform:scale(.97)}
.btn-small{padding:4px 10px;font-size:12px}
.status-badge{font-size:13px;color:var(--text-muted)}
.cards{display:flex;flex-direction:column;gap:16px}
.card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:20px;transition:border-color .15s
}
.card:hover{border-color:var(--accent)}
.card__head{display:flex;align-items:flex-start;gap:14px;margin-bottom:16px;flex-wrap:wrap}
.card__icon{flex-shrink:0;width:44px;height:44px}
.icon-svg{width:44px;height:44px;border-radius:8px}
.card__title-group{flex:1;min-width:140px}
.card__title{font-size:17px;font-weight:600}
.card__home-link{font-size:12px;color:var(--accent-light);text-decoration:none}
.card__home-link:hover{text-decoration:underline}
.card__user-section{display:flex;align-items:flex-end;gap:6px;flex-shrink:0}
.card__user-version-group{display:flex;flex-direction:column;gap:2px}
.card__user-label{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}
.card__user-input{
  width:130px;padding:5px 8px;border-radius:var(--radius-sm);
  background:var(--bg);border:1px solid var(--border);color:var(--text);
  font-size:13px;font-family:monospace
}
.card__user-input:focus{outline:none;border-color:var(--accent)}
.card__current{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.card__current-label{font-size:12px;color:var(--text-muted);display:block;margin-bottom:2px}
.card__current-version-text{font-size:22px;font-weight:700;letter-spacing:-0.02em}
.card__current-date{font-size:12px;color:var(--text-muted);display:block;margin-top:2px}
.card__current-badge{flex-shrink:0}
.badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;
  text-transform:uppercase;letter-spacing:.04em
}
.badge--up-to-date{background:var(--green-bg);color:var(--green)}
.badge--new{background:var(--yellow-bg);color:var(--yellow)}
.badge--outdated{background:var(--red-bg);color:var(--red)}
.badge--checking{background:var(--yellow-bg);color:var(--yellow)}
.card__diff{
  background:var(--yellow-bg);border:1px solid rgba(234,179,8,.2);
  border-radius:var(--radius-sm);padding:12px;margin-bottom:12px
}
.card__diff-title{font-size:12px;font-weight:600;color:var(--yellow);margin-bottom:6px}
.card__diff-list{display:flex;flex-direction:column;gap:4px}
.diff-item{display:flex;justify-content:space-between;font-size:13px;gap:12px}
.diff-item__version{font-family:monospace;font-weight:500}
.diff-item__date{color:var(--text-muted);font-size:12px}
.card__history-summary{
  font-size:13px;color:var(--accent-light);cursor:pointer;
  padding:4px 0;user-select:none
}
.card__history-summary:hover{opacity:.8}
.card__history-list{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.history-item{display:flex;justify-content:space-between;font-size:13px;gap:12px;padding:3px 0}
.history-item__version{font-family:monospace;font-weight:500}
.history-item__date{color:var(--text-muted);font-size:12px}
@media(max-width:600px){
  .card__head{flex-direction:column}
  .card__user-section{width:100%}
  .card__user-input{flex:1;width:auto}
  .card__current{flex-direction:column;align-items:flex-start}
}
