/* Partner Board – minimal, clean CSS (no framework) */
:root{
  --bg:#0b0f17;
  --panel:#111827;
  --panel2:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:#1f2937;
  --ok:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --btn:#1f2937;
  --btn2:#111827;
  --focus:#60a5fa;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 700px at 15% 0%, #111827 0%, #0b0f17 55%, #070a10 100%);
  color:var(--text);
}

a{ color: #93c5fd; text-decoration:none; }
a:hover{ text-decoration:underline; }

#app{ min-height:100%; display:flex; align-items:stretch; }

.loading{
  margin:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.spinner{
  width:42px;height:42px;border-radius:50%;
  border:3px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.75);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

.layout{
  width:100%;
  display:grid;
  grid-template-columns: 260px 1fr;
  min-height:100vh;
}

.sidebar{
  border-right:1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,24,39,0.96) 0%, rgba(15,23,42,0.85) 100%);
  padding:18px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
}

.brand{
  display:flex; flex-direction:column;
  gap:6px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
  margin-bottom:14px;
}
.brand h1{
  margin:0; font-size:18px; letter-spacing:0.2px;
}
.brand .sub{ font-size:12px; color:var(--muted); }

.nav{ display:flex; flex-direction:column; gap:6px; }
.nav button{
  width:100%;
  text-align:left;
  border:1px solid transparent;
  background: transparent;
  color: var(--text);
  padding:10px 10px;
  border-radius:10px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav button:hover{ background: rgba(255,255,255,0.04); }
.nav button.active{
  background: rgba(96,165,250,0.10);
  border-color: rgba(96,165,250,0.25);
}

.sidebar .footer{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.badge{
  display:inline-flex;
  gap:8px; align-items:center;
  font-size:12px; color:var(--muted);
}
.dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--ok);
}

.main{
  padding:22px;
}

.card{
  background: rgba(17,24,39,0.82);
  border:1px solid rgba(31,41,55,0.9);
  border-radius:14px;
  padding:16px;
  margin-bottom:14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.20);
}

.card h2{
  margin:0 0 10px 0;
  font-size:16px;
}

.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.row > *{ flex: 1 1 auto; }

input, textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(31,41,55,0.9);
  background: rgba(15,23,42,0.9);
  color: var(--text);
  outline:none;
}
textarea{ min-height:90px; resize:vertical; }
input:focus, textarea:focus, select:focus{ border-color: rgba(96,165,250,0.6); box-shadow: 0 0 0 3px rgba(96,165,250,0.12); }

.btn{
  background: rgba(31,41,55,0.9);
  border:1px solid rgba(55,65,81,0.9);
  color: var(--text);
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  white-space:nowrap;
}
.btn:hover{ background: rgba(31,41,55,1); }
.btn.primary{
  background: rgba(96,165,250,0.25);
  border-color: rgba(96,165,250,0.5);
}
.btn.primary:hover{ background: rgba(96,165,250,0.32); }

.btn.danger{
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.35);
}
.btn.danger:hover{ background: rgba(239,68,68,0.24); }

.small{ font-size:12px; color: var(--muted); }
.muted{ color: var(--muted); }
.sep{ height:1px; background: rgba(31,41,55,0.9); margin:12px 0; }

.list{ display:flex; flex-direction:column; gap:8px; }
.item{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(31,41,55,0.8);
  background: rgba(15,23,42,0.6);
}
.item:hover{ background: rgba(15,23,42,0.75); }
.item .grow{ flex:1; }
.item .title{ font-weight:600; line-height:1.25; }
.item .meta{ font-size:12px; color:var(--muted); margin-top:3px; display:flex; gap:10px; flex-wrap:wrap; }
.item .actions{ display:flex; gap:8px; align-items:center; }

.checkbox{
  width:18px; height:18px;
  border-radius:6px;
  border:1px solid rgba(55,65,81,1);
  background: rgba(17,24,39,1);
  display:flex; align-items:center; justify-content:center;
  margin-top:2px;
  cursor:pointer;
  flex: 0 0 auto;
}
.checkbox.checked{
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.6);
}
.checkbox.checked::after{
  content:"✓";
  font-weight:800;
  color: rgba(34,197,94,0.95);
  font-size:12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(55,65,81,0.9);
  background: rgba(17,24,39,0.7);
  color: var(--muted);
}
.pill.ok{ border-color: rgba(34,197,94,0.35); color: rgba(167,243,208,0.95); }
.pill.warn{ border-color: rgba(245,158,11,0.35); color: rgba(253,230,138,0.95); }
.pill.bad{ border-color: rgba(239,68,68,0.35); color: rgba(254,202,202,0.95); }

.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  background: rgba(15,23,42,0.8);
  border:1px solid rgba(31,41,55,0.9);
  padding:3px 6px;
  border-radius:8px;
}

.toast{
  position:fixed;
  right:18px;
  bottom:18px;
  background: rgba(17,24,39,0.95);
  border:1px solid rgba(31,41,55,0.9);
  border-radius:12px;
  padding:12px 14px;
  max-width: 420px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  display:none;
}
.toast.show{ display:block; }
.toast .t-title{ font-weight:700; margin-bottom:2px; }
.toast .t-body{ color: var(--muted); font-size: 13px; line-height:1.35; }

@media (max-width: 920px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{
    position:relative;
    height:auto;
    border-right:none;
    border-bottom:1px solid var(--line);
    padding:10px;
  }
  .sidebar .footer{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
    padding-top:10px;
  }
  .nav{
    flex-direction:row;
    flex-wrap:wrap;
    gap:4px;
  }
  .nav button{
    width:auto;
    padding:8px 12px;
    font-size:13px;
  }
  .nav button .small{ display:none; }
  .brand{
    flex-direction:row;
    align-items:center;
    gap:12px;
    border-bottom:none;
    margin-bottom:6px;
    padding-bottom:0;
  }
  .brand h1{ font-size:16px; }
  .brand .sub{ display:none; }
  .main{ padding:8px; }
  .card{ padding:10px; margin-bottom:8px; }
  .card h2{ margin-bottom:4px; font-size:15px; }
  .card .small.muted{ margin-bottom:4px; }
  .sep{ margin:6px 0; }
  .row{ flex-direction:column; gap:3px !important; }
  .row[style]{ margin-top:3px !important; }
  .row > *{ width:100%; flex:none; }
  .row > div[style*="flex"]{ width:100% !important; flex:none !important; }
  .item{ flex-direction:column; gap:6px; padding:8px; }
  .item .actions{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:6px;
  }
  .btn{ padding:10px 12px; font-size:14px; }
  input, textarea, select{ padding:9px 10px; font-size:16px; margin:0; }
  textarea{ min-height:50px; }
  .toast{ left:10px; right:10px; bottom:10px; max-width:none; }
}

@media (max-width: 480px){
  .nav button{
    padding:6px 10px;
    font-size:12px;
    border-radius:8px;
  }
  .card h2{ font-size:14px; }
  .pill{ font-size:11px; padding:2px 6px; }
  .item .title{ font-size:14px; }
  .item .meta{ font-size:11px; }
}
