/* LyrikOS v3 - minimal dark UI */
:root{
  --bg:#111114;
  --panel:#18181f;
  --panel2:#1f1f28;
  --text:#ececf5;
  --muted:#b8b8c8;
  --line:#2a2a38;
  --accent:#7aa2ff;
  --danger:#ff6b6b;
  --ok:#7dffb2;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:12px;
  --gap:12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background:linear-gradient(180deg,#0f0f12 0%, #12121a 100%);
  color:var(--text);
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(17,17,20,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--gap);
  padding:14px 16px;
  max-width:1100px;
  margin:0 auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand img{width:28px; height:28px}
.brand small{display:block; color:var(--muted); font-weight:600; letter-spacing:0; margin-top:2px}

.nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav button{
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
}
.nav button.active{
  border-color:rgba(122,162,255,.6);
  box-shadow: 0 0 0 2px rgba(122,162,255,.15) inset;
}
.nav button:hover{background:var(--panel2)}

main{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
}

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:var(--gap);
}

@media(min-width:900px){
  .grid.two{
    grid-template-columns: 1.2fr .8fr;
    align-items:start;
  }
}

.h1{
  font-size:22px;
  font-weight:900;
  margin:0 0 8px 0;
}
.p{
  margin:0;
  color:var(--muted);
  line-height:1.45;
}

hr{
  border:0;
  border-top:1px solid var(--line);
  margin:14px 0;
}

.row{
  display:flex;
  gap:var(--gap);
  flex-wrap:wrap;
  align-items:center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:700;
  font-size:12px;
}

.button{
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--text);
  padding:12px 14px;
  border-radius:var(--radius2);
  font-weight:800;
  cursor:pointer;
}
.button:hover{filter:brightness(1.08)}
.button.primary{border-color:rgba(122,162,255,.55); background:rgba(122,162,255,.12)}
.button.danger{border-color:rgba(255,107,107,.55); background:rgba(255,107,107,.10)}
.button.ghost{background:transparent}

.big5{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-top:10px;
}
@media(min-width:640px){
  .big5{grid-template-columns: 1fr 1fr}
}
@media(min-width:1000px){
  .big5{grid-template-columns: repeat(5, 1fr)}
}

.choice{
  text-align:left;
  padding:14px 14px;
  min-height:64px;
  border-radius:var(--radius2);
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  cursor:pointer;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.choice strong{font-size:14px}
.choice span{color:var(--muted); font-size:12px; line-height:1.25}
.choice:hover{border-color:rgba(122,162,255,.45)}

textarea, input, select{
  width:100%;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--text);
  padding:12px;
  font-family:var(--mono);
  font-size:13px;
}
textarea{min-height:220px; resize:vertical}

.small{
  font-size:12px;
  color:var(--muted);
}

.kbd{
  font-family:var(--mono);
  font-size:12px;
  padding:2px 6px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.03);
  color:var(--muted);
}

.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--line);
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
  font-size:13px;
}
.table th{
  text-align:left;
  color:var(--muted);
  background:rgba(255,255,255,.02);
  font-weight:800;
}
.table tr:hover td{background:rgba(255,255,255,.02)}

.toast{
  position:fixed;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(24,24,31,.95);
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 14px;
  color:var(--text);
  box-shadow:var(--shadow);
  font-weight:800;
  display:none;
  z-index:50;
}
.toast.show{display:block}

.mono{font-family:var(--mono)}
