:root{
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --primary:#086b76;
  --danger:#dc2626;
  --shadow:0 10px 28px rgba(15,23,42,.08);
  --radius:16px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:var(--bg);
  color:var(--text);
}
.container{
  max-width:1100px;
  margin:24px auto;
  padding:0 16px 40px;
}
.login-gate{
  max-width:460px;
  margin:80px auto 24px;
  padding:28px;
  text-align:center;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid var(--border);
}
.login-gate h1{ margin:0 0 10px; font-size:22px; }
.login-gate p{ margin:0 0 18px; color:var(--muted); line-height:1.5; }
.login-field{ margin:12px 0; text-align:left; }
.login-field label{ display:block; margin-bottom:6px; font-size:12px; font-weight:700; }
.topbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.title h1{
  margin:0;
  font-size:22px;
  letter-spacing:-.2px;
}
.title p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
}

.layout{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
}
@media(max-width: 900px){
  .layout{ grid-template-columns:1fr; }
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(226,232,240,.7);
  overflow:hidden;
}
.card-header{
  padding:16px 16px 12px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.card-header .h{
  font-weight:800;
  font-size:14px;
  letter-spacing:.2px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.card-body{
  padding:16px;
}

label{
  display:block;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  margin-bottom:6px;
}
select,input,button{
  width:100%;
  border-radius:12px;
  border:1px solid var(--border);
  padding:12px 12px;
  font-size:14px;
  background:#fff;
  outline:none;
}
/* Hover effect */
button:hover:not(:disabled) {
  background-color: #d97706; /* orange hover */
  color: #fff;
  transform: translateY(-1px);
}
/* Disabled state */
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
select:disabled, input:disabled{
  background:#f8fafc;
  color:#94a3b8;
}

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.row-3{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:10px;
}
@media(max-width: 520px){
  .row, .row-3{ grid-template-columns:1fr; }
}

.btn{
  border:none;
  background:var(--primary);
  color:#fff;
  font-weight:800;
  cursor:pointer;
  padding:12px 14px;
  border-radius:12px;
  justify-content:center;
  align-items:center;
}
.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.btn.ghost{
  background:#f1f5f9;
  color:#0f172a;
  border:1px solid var(--border);
  font-weight:800;
}
.btn.danger{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
  font-weight:800;
}

.hint{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}

.preview{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#eff6ff;
  border:1px solid #dbeafe;
  color:#cf7a12;
  font-weight:800;
  font-size:13px;
}

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.item{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  background:#fff;
}
.item .left{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.item .time{
  font-weight:900;
  font-size:13px;
}
.item .meta{
  color:var(--muted);
  font-size:12px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width: 520px;
}
.item .tag{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid var(--border);
  background:#f8fafc;
  color:#0f172a;
  white-space:nowrap;
}
.item .tag.mine{
  background:#ecfdf5;
  border-color:#bbf7d0;
  color:#166534;
}

.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.summary{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}

.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  padding:10px 12px;
  border-radius:12px;
  background:#0f172a;
  color:#fff;
  font-size:13px;
  display:none;
  box-shadow:var(--shadow);
  max-width: 92vw;
  z-index: 9999;
}

/* ===== Banner ===== */
.banner{
  background: linear-gradient(135deg, #04706d 0%, #d6d9d9 45%, #d47706 100%);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  color: #fff;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.banner::after{
  content:"";
  position:absolute;
  right:-60px;
  top:-60px;
  width:180px;
  height:180px;
  border-radius:999px;
  background: rgba(255,255,255,.12);
}

.banner-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.banner-left{
  min-width: 240px;
}

.banner-title{
  font-weight: 900;
  font-size: 16px;
  margin: 0;
  letter-spacing: -.2px;
}

.banner-sub{
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .92;
  line-height: 1.4;
}

.banner-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.badge-light{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-light span{
  opacity:.9;
  font-weight:700;
}

.banner-actions{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.banner-link{
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
  padding:8px 10px;
  border-radius:10px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
}

.banner-link:hover{
  background: #d47706;
}
