:root{
  --bg:#ffffff;
  --panel:#f7f8fa;
  --muted:#5a6672;
  --accent:#0b66ff;
  --surface:#ffffff;
  --glass: rgba(255,255,255,0.6);
  --radius:12px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body,#app{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:#0b1220;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* Header */
.site-header{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:12px;
  border-bottom:1px solid #e6e9ee;
  background:linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
  position:sticky;
  top:0;
  z-index:20;
}
.brand{display:flex;gap:10px;align-items:center}
.logo{width:44px;height:44px;border-radius:8px;object-fit:cover;border:1px solid #e3e8ef}
.brand-text small{display:block;color:var(--muted);font-size:12px}
.nav{display:flex;gap:6px;flex-wrap:wrap}
.nav-btn{
  background:transparent;border:0;padding:8px 10px;border-radius:8px;color:var(--muted);cursor:pointer;font-weight:600;
}
.nav-btn:hover{background:var(--panel);color:#0b1220}

.header-actions{display:flex;align-items:center;gap:8px}
.header-actions input{
  width:180px;padding:8px 10px;border-radius:10px;border:1px solid #e6e9ee;background:var(--surface)
}
#toggle-theme{padding:8px;border-radius:10px;border:0;background:var(--panel);cursor:pointer}

/* Main layout */
.container{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:14px;
  flex:1;
  max-width:1100px;
  margin:0 auto;
  width:100%;
}

/* Hero */
.hero{
  display:flex;
  gap:12px;
  align-items:center;
  background:var(--panel);
  border-radius:var(--radius);
  padding:14px;
  overflow:hidden;
}
.hero-img{
  flex:0 0 120px;height:80px;border-radius:8px;object-fit:cover;border:1px solid #e6e9ee;
}
.hero-content h1{margin:0;font-size:18px}
.hero-content p{margin:6px 0 0;color:var(--muted)}

/* Grid */
.grid{display:grid;grid-template-columns:repeat(1,1fr);gap:12px}
@media(min-width:720px){.grid{grid-template-columns:1fr 360px}}

/* Card */
.card{
  background:var(--surface);
  border-radius:12px;padding:12px;border:1px solid #e9edf2;
  box-shadow:0 1px 0 rgba(11,18,32,0.02);
}
.small{font-size:13px;color:var(--muted)}

/* Projects list (github style boxes) */
.repo{
  display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:10px;background:linear-gradient(180deg,#fff,#fbfcfe);
  border:1px solid #eef3fa;
}
.repo .meta{flex:1}
.repo h3{margin:0;font-size:15px}
.repo p{margin:6px 0 0;color:var(--muted);font-size:13px}
.repo .actions{display:flex;gap:8px;align-items:center}
.badge{padding:6px 8px;border-radius:999px;background:#eef6ff;color:#0b66ff;font-weight:700;font-size:12px;border:1px solid rgba(11,102,255,0.06)}

/* News feed */
.news-list{display:flex;flex-direction:column;gap:10px}
.news-card{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:10px;border:1px solid #f0f3f7;background:linear-gradient(180deg,#fff,#fbfdff)}
.news-card img{width:88px;height:60px;border-radius:8px;object-fit:cover}

/* Footer */
.site-footer{
  display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-top:1px solid #e6e9ee;background:#fff;font-size:13px;
  gap:8px;flex-wrap:wrap
}
.footer-links a{margin-left:12px;color:var(--accent);text-decoration:none}

/* toast */
.toast{
  position:fixed;left:50%;transform:translateX(-50%);bottom:20px;background:#0b1220;color:#fff;padding:10px 14px;border-radius:10px;box-shadow:0 6px 18px rgba(11,18,32,0.18)
}

/* small helpers */
.row{display:flex;gap:8px;align-items:center}
.center{display:flex;align-items:center;justify-content:center}
.link{color:var(--accent);text-decoration:none}