/* site_extra.css - shared dashboard polish */
:root{
  --surface:#111820;
  --surface-2:#151c26;
  --line:rgba(255,255,255,.10);
  --line-strong:rgba(255,255,255,.15);
}
.sidebar{width:232px;padding:22px 14px}
.main{margin-left:232px;padding:24px}
.brand{margin-bottom:28px}
.brand-mark{width:42px;height:42px;border-radius:10px;font-size:23px}
.brand-title{font-size:19px}
.brand-subtitle{font-size:12px}
.nav{gap:7px}
.nav-item{
  min-height:auto;
  padding:11px 14px;
  border-radius:9px;
  gap:11px;
  font-size:15px;
  border:1px solid transparent;
}
.nav-item.active{
  background:linear-gradient(90deg,rgba(245,200,76,.18),rgba(245,200,76,.04));
  border-color:rgba(245,200,76,.55);
  color:var(--gold);
}
.sidebar-status{
  border-radius:10px;
  padding:12px 13px;
  bottom:58px;
  background:rgba(255,255,255,.04);
}
.status-title{margin-bottom:10px}
.version{bottom:22px}
.topbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto;
  gap:14px;
  align-items:start;
}
.page-title{font-size:28px;line-height:1.15}
.title-icon{display:none}
.last-updated{font-size:13px}
.page-hint{
  max-width:340px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:8px 10px;
  background:rgba(255,255,255,.02);
}
.main > h2{
  margin:0 0 12px;
  font-size:24px;
  font-weight:900;
}
.main > p,
.main > ul{
  color:#cbd3df;
}
.panel,
.page-panel{
  border:1px solid var(--line-strong);
  border-radius:10px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.022));
  box-shadow:0 16px 32px rgba(0,0,0,.22);
  margin-bottom:14px;
}
.page-panel{padding:16px}
.panel h3,
.page-panel h3{margin-top:0}
table{
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  overflow:hidden;
  background:rgba(255,255,255,.018);
}
th{
  background:rgba(255,255,255,.035);
}
td,th{
  border-bottom:1px solid rgba(255,255,255,.07);
}
button,
.btn{
  border-radius:7px;
  border:1px solid rgba(246,198,75,.28);
  background:rgba(246,198,75,.08);
  color:var(--gold);
  font-weight:800;
}
input,select,textarea{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  color:var(--text);
  border-radius:7px;
  padding:7px 9px;
}
textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
label{color:#cbd3df}
.settings-form h3{border-top:1px solid rgba(255,255,255,.07);padding-top:12px}
.settings-form h3:first-child{border-top:0;padding-top:0}
.settings-form input[type="number"]{max-width:110px;margin:3px 0 7px 6px}
.settings-form select{min-width:180px}
.action-row{display:flex;flex-wrap:wrap;gap:6px}
.action-row button{padding:6px 9px}
.record-card{
  border:1px solid rgba(255,255,255,.12)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02))!important;
  border-radius:10px!important;
  padding:14px!important;
  margin-bottom:10px!important;
  color:#e7edf6!important;
}
.record-card strong{color:#fff}
.p1-card{
  border:1px solid rgba(246,198,75,.18)!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,rgba(246,198,75,.055),rgba(255,255,255,.02))!important;
  box-shadow:0 16px 32px rgba(0,0,0,.22);
}
.table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.08);border-radius:10px}
.table-wrap table{border:0;border-radius:0}
.data-empty {
  padding:10px;
  border:1px dashed rgba(246,198,75,0.25);
  background:rgba(246,198,75,0.08);
  color:#d9c47f;
  border-radius:8px;
  margin:8px 0;
}
.coming-soon{opacity:0.65;cursor:help}
.status-badge{font-size:0.92rem;color:#cbd3df}
.update-spinner{display:inline-block;width:16px;height:16px;border:2px solid #ccc;border-top-color:#2b8;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;margin-left:6px}
@keyframes spin{to{transform:rotate(360deg)}}

@media(max-width:1100px){
  .topbar{grid-template-columns:1fr}
  .top-action-groups,.top-actions{justify-content:flex-start}
}
