:root{
  --bg1:#0b1020;
  --bg2:#0b2a3a;
  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, #1a3a70 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 30%, #0b5a5f 0%, transparent 55%),
              linear-gradient(160deg, var(--bg1), var(--bg2));
}

.bg{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:24px;
}

.card{
  width:min(900px, 100%);
  background: var(--card);
  border:1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 26px;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom: 18px;
}

.logo{
  width:44px;height:44px;
  border-radius:14px;
  display:grid;place-items:center;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-weight:700;
}

.title{font-size:20px; font-weight:700; letter-spacing:.2px}
.sub{font-size:13px; color:var(--muted); margin-top:2px}

.form{display:grid; gap:14px; margin-top: 10px}
label span{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}

input{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
input:focus{border-color: rgba(255,255,255,.32)}

.toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 14px;
}

.btn-small{
  padding:10px 12px;
  border-radius:12px;
  margin-top:0;
  white-space:nowrap;
}

.tabs{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background: rgba(0,0,0,.12);
  margin-bottom: 14px;
  overflow:auto;
}

.tab{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  text-decoration:none;
  font-weight:700;
}
.tab.active{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.95);
}

.list{display:grid; gap:10px; margin-top: 4px;}

.item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
}

.item-title{font-weight:800; letter-spacing:.2px}
.item-sub{font-size:13px; color: rgba(255,255,255,.7); margin-top:4px; word-break:break-all}
.item-date{font-size:12px; color: rgba(255,255,255,.55); white-space:nowrap}
.empty{
  padding:12px 14px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.10);
  margin-top:10px;
}



.btn{
  margin-top:4px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover{background: rgba(255,255,255,.18)}
.btn:active{transform: translateY(1px)}

.msg{
  min-height: 18px;
  font-size: 13px;
  color: #ffd3d3;
}

.foot{
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  display:flex;
  justify-content:center;
}

.chain-box{
  margin-top:18px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
}

.chain-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:nowrap;
}

.chain-title{
  font-size:16px;
  font-weight:800;
  letter-spacing:.3px;
}

/* Button soll nicht umbrechen */
.chain-header .btn{
  white-space:nowrap;
}
.item-meta{
  display:flex;
  align-items:center;
  gap:10px;
}

.del{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  text-decoration:none;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}

.del:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}


@media (max-width: 700px){
	.card{
	  width:100%;
	  max-width:900px;
	  background: var(--card);
	  border:1px solid var(--border);
	  border-radius: 20px;
	  box-shadow: var(--shadow);
	  backdrop-filter: blur(14px);
	  padding: 26px;
	}

}
