:root{
  --bg:#0b0d16;
  --panel:#12162a;
  --panel2:#0f1324;
  --text:#e9ecff;
  --muted:#aab2d6;
  --line:#24305a;
  --accent:#ff2d55;
  --accent2:#2bd4ff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,45,85,.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(43,212,255,.18), transparent 55%),
    var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
  background: rgba(10,12,22,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.brand{display:flex; flex-direction:column; gap:2px}
.brand-title{font-weight:900; letter-spacing:.3px; line-height:1}
.brand-sub{font-size:12px; color:var(--muted)}
.toolbar,.actions,.right{display:flex; gap:8px; align-items:center}
select{
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:12px;
}
.btn{
  background:var(--accent);
  color:white;
  border:none;
  padding:8px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
.btn.secondary{
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
}
.btn.small{padding:6px 10px; border-radius:10px; font-weight:650}

.einsatzbar{
  display:flex; gap:12px; align-items:center;
  padding:10px 16px;
  border-bottom:1px solid var(--line);
  background: rgba(18,22,42,.40);
}
.einsatzbar .title{font-weight:800}
.einsatzbar .meta{color:var(--muted); font-size:13px}
.einsatzbar .grow{flex:1}
.einsatzbar .chips{display:flex; gap:8px; flex-wrap:wrap}

.main{display:none}

/* -------------------------------------------------------------------------
   Step 6.0 Command-Center Layout (three panes, no page-scrolling)
   ------------------------------------------------------------------------- */

.cc{
  display:grid;
  grid-template-columns: 40% 35% 25%;
  gap:12px;
  padding:12px;
  height: calc(100vh - 110px);
  overflow:hidden;
}

.pane{
  background: rgba(18,22,42,.65);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width: 0;
}

.pane-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
}
.pane-title{font-weight:900}
.pane-actions{display:flex; gap:8px; align-items:center; flex-wrap:wrap}

/* Left pane tabs (Aufträge / Protokoll) */
.pane-tabs{display:flex; gap:6px; padding:2px; border:1px solid var(--line); border-radius:999px; background: rgba(0,0,0,.18)}
.tab{
  border:none;
  background:transparent;
  color:var(--muted);
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
}
.tab.active{color:var(--text); background: rgba(43,212,255,.14); box-shadow:0 0 0 1px rgba(43,212,255,.28) inset}

.left-tools{display:flex; gap:8px; padding:10px 12px; border-bottom:1px solid var(--line)}

/* Make inner areas scroll without scrolling the whole page */
.pane-left .columns{min-height:260px; overflow:auto}
.pane-left .logwrap{border-top:1px solid var(--line); margin:0}
.pane-left .loglist{max-height: 32vh; overflow:auto}

.pane-mid #teamsList{padding:10px; overflow:auto}

.pane-right #peoplePanel{margin:10px; overflow:auto}

@media (max-width: 1100px){
  .cc{ grid-template-columns: 1fr; height:auto; overflow:visible }
  .pane{ min-height: 260px }
}
.sidebar{
  width: 320px;
  background: rgba(18,22,42,.65);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
}
.sidebar-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px;
  border-bottom:1px solid var(--line);
}
.sidebar-title{font-weight:800}
.sidebar-filters{
  padding:10px 12px;
  display:flex; gap:8px; flex-wrap:wrap;
  border-bottom:1px solid var(--line);
}
.chip{
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:650;
}
.chip.active{border-color:rgba(43,212,255,.6); box-shadow:0 0 0 3px rgba(43,212,255,.12) inset}
.chip.muted{color:var(--muted)}


/* Mode toggle (Übersicht / Zuteilen) */
.sidebar-modes{
  display:flex;
  gap:8px;
  padding:10px 12px 0 12px;
  flex-wrap:wrap;
}
body.mode-assign #peoplePanel{ display:block; }
body.mode-overview #assignHint{ display:none !important; }
.teams{padding:10px; display:flex; flex-direction:column; gap:10px; max-height: calc(100vh - 220px); overflow:auto}

/* -------------------------------------------------------------------------
   Step 4.5: Einsatzteilnehmer (Roster) Panel
   ------------------------------------------------------------------------- */

.people-panel{margin:10px; padding:10px; border:1px dashed rgba(255,255,255,.25); border-radius:14px; background: rgba(0,0,0,.18)}
.people-panel .ph{font-weight:800; margin-bottom:6px}
.people-panel .small{font-size:12px; opacity:.8}
.people-panel .row{display:flex; gap:8px; align-items:center}
.people-panel input[type="text"]{width:100%; padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.14); background: rgba(10,10,18,.6); color:inherit; outline:none}
.caps{display:flex; flex-wrap:wrap; gap:6px; margin:8px 0}
.cap{display:inline-flex; align-items:center; gap:6px; padding:6px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.12); font-size:12px}
.people-list{display:flex; flex-direction:column; gap:8px; margin-top:10px; max-height: 260px; overflow:auto}
.person{padding:10px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.12); cursor:pointer}
.person:hover{border-color: rgba(255,255,255,.22)}
.person.selected{outline:2px solid rgba(235,0,60,.75)}
.person .meta{opacity:.85; font-size:12px; margin-top:4px}
.person .chips{display:flex; flex-wrap:wrap; gap:6px; margin-top:6px}
.person .chips .chip{padding:4px 8px}
.assign-hint{margin-top:8px; font-size:12px; opacity:.85}
.team.assignTarget{border-color: rgba(235,0,60,.55)}
.team{
  background: linear-gradient(180deg, rgba(18,22,42,.95), rgba(15,19,36,.95));
  border:1px solid var(--line);
  border-radius:14px;
  padding:9px 10px;
}
.team.compact{padding:8px 10px}
.team .meta.long{display:none}
.team-head{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  align-items:start;
}
.team-title{display:flex; flex-wrap:wrap; gap:6px; align-items:center}
.badge-mini{display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:999px; border:1px solid var(--line); font-size:12px; color:var(--text); background: rgba(0,0,0,.12)}
.badge-mini.muted{color:var(--muted)}
.team-roles-compact{margin-top:6px; display:flex; flex-wrap:wrap; gap:10px; color:var(--text); font-size:13px}
.rolepair b{color:var(--muted); font-weight:800}
.rolepair .v{font-weight:800}
.team-actions{margin-top:8px}

/* Participants (right pane) condensed rows */
.people-list.compact{gap:6px; max-height:none}
.person-row{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.10)}
.person-row .l{min-width:0}
.person-row .n{font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.person-row .s{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.person-row .r{display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end}
.person-row .capchip{padding:3px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.14); font-size:12px; color:var(--text); background: rgba(0,0,0,.12)}
.team.dragover{outline:2px solid rgba(43,212,255,.55)}
.team .row{display:flex; justify-content:space-between; gap:10px; align-items:center}
.team .name{font-weight:800}
.team .meta{color:var(--muted); font-size:13px; margin-top:4px}

.warn-tri{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px; height:18px;
  margin-left:6px;
  border-radius:6px;
  background: rgba(255,153,0,.14);
  border:1px solid rgba(255,153,0,.35);
  color: #ffb24a;
  font-size:12px;
  line-height:1;
}
.warn-text{color:#ffcc80}

.warnbox{
  border:1px solid rgba(255,153,0,.35);
  background: rgba(255,153,0,.08);
  border-radius:12px;
  padding:10px;
  color:#ffe3b8;
}

.loan-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:12px;
  color: var(--muted);
  white-space:nowrap;
}
.loan-pending{border-color:rgba(255,153,0,.45); color:#ffcc80}
.loan-declined{border-color:rgba(255,80,80,.45); color:#ffb0b0}
.loan-approved{border-color:rgba(43,212,255,.35); color:#c9f3ff}


.loan-panel{
  border:1px dashed rgba(255,153,0,.35);
  background: rgba(255,153,0,.05);
  border-radius:14px;
  padding:10px;
}
.loan-item{
  border:1px dashed rgba(255,153,0,.28);
  background: rgba(255,255,255,.02);
  border-radius:14px;
  padding:10px;
}
.badge{
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.badge.ok{border-color:rgba(43,212,255,.35); color:#c9f3ff}
.team-actions{display:flex; gap:8px; margin-top:8px; flex-wrap:wrap}

.team-members{
  margin-top:8px;
  padding-top:8px;
  border-top:1px dashed rgba(255,255,255,.14);
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:12px;
  color:var(--muted);
}
.tm-line{display:flex; gap:6px; align-items:baseline; flex-wrap:wrap}
.tm-role{font-weight:800; color:#e8ecff; opacity:.95}
.tm-names{opacity:.95}

.hf2{white-space:nowrap}
.hf-warn{font-size:11px; margin-left:2px; opacity:.95}


.board{
  flex:1;
  min-width: 0;
  background: rgba(18,22,42,.65);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.board-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
}
.board-title{font-weight:800}
.board-actions{display:flex; gap:8px; flex-wrap:wrap}

.columns{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  padding:12px;
  min-height: 380px;
}
.col{
  background: rgba(15,19,36,.72);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width: 0;
}
.col-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 10px;
  border-bottom:1px solid var(--line);
}
.col-title{font-weight:800}
.col-count{color:var(--muted); font-size:13px}
.col-body{
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:auto;
  max-height: 55vh;
  min-height: 160px;
  flex: 1;
}
.col-body.dragover{outline:2px dashed rgba(43,212,255,.45); outline-offset:-6px}

.card{
  background: var(--panel2);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  cursor:grab;
}
.card:active{cursor:grabbing}
.card.dragging{opacity:.55}
.card .title{font-weight:850}
.card .meta{display:flex; gap:8px; flex-wrap:wrap; margin-top:6px}
.pill{
  padding:3px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}
.pill.prio-hoch{border-color: rgba(255,45,85,.6); color:#ffd0da}
.pill.prio-mittel{border-color: rgba(43,212,255,.45); color:#c9f3ff}
.pill.prio-niedrig{border-color: rgba(170,178,214,.35); color:var(--muted)}
.card .desc{margin-top:6px; color:var(--muted); font-size:13px; line-height:1.25}
.card .actions{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.iconbtn{
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
}

.logwrap{
  border-top:1px solid var(--line);
  padding:12px;
}
.loghead{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:10px;
}
.loglist{display:flex; flex-direction:column; gap:10px; max-height: 26vh; overflow:auto}
.logitem{
  background: var(--panel2);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
}
.logitem .t{font-weight:750; font-size:13px}
.logitem .m{color:var(--muted); font-size:13px; margin-top:4px}

.modal.hidden{display:none}
.modal{position:fixed; inset:0; z-index:50}
.modal-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.75)}
.modal-card{
  position:relative;
  width:min(760px, calc(100% - 24px));
  margin:60px auto;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  max-height:calc(100vh - 120px);
}
.modal-head,.modal-foot{
  padding:12px 14px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.modal-foot{border-top:1px solid var(--line); border-bottom:none}
.modal-body{padding:14px; overflow:auto}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:10px}
.field label{color:var(--muted); font-size:13px}
.field input,.field textarea,.field select{
  background:var(--panel2);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:12px;
  padding:10px;
}
.field textarea{min-height:90px; resize:vertical}
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
.hint{color:var(--muted); font-size:13px}

@media (max-width: 980px){
  .main{flex-direction:column}
  .sidebar{width: auto}
  .columns{grid-template-columns: 1fr}
  .col-body{max-height: 40vh}
}
@media print{
  .topbar,.btn,.chip,.iconbtn{display:none!important}
  body{background:white; color:black}
}

.card button{cursor:pointer}

.col-body:empty::before{
  content:"Hier ablegen";
  display:block;
  padding:10px;
  border:1px dashed rgba(170,178,214,.35);
  border-radius:12px;
  color:rgba(170,178,214,.8);
  text-align:center;
  pointer-events:none;
}

/* login */
.login-body{display:flex;align-items:center;justify-content:center;min-height:100vh}
.login-card{
  width:min(420px, calc(100% - 24px));
  background: rgba(18,22,42,.72);
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.login-brand{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.login-logo{
  width:48px;height:48px;border-radius:16px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(255,45,85,.95), rgba(43,212,255,.55));
  font-weight:900;
}
.login-title{font-weight:900;font-size:18px}
.login-sub{color:var(--muted);font-size:13px;margin-top:2px}
.login-form{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.login-form label{color:var(--muted);font-size:13px}
.login-form input{
  background:var(--panel2);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:14px;
  padding:12px;
}
.login-error{
  background: rgba(255,45,85,.14);
  border:1px solid rgba(255,45,85,.35);
  color:#ffd0da;
  padding:10px 12px;
  border-radius:14px;
  margin-top:10px;
}
.login-hint{color:var(--muted);font-size:12px;margin-top:10px;line-height:1.35}
code{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;font-size:12px}

.userbadge{padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:rgba(18,22,42,.55);font-weight:800}

.toast-container{position:fixed; right:16px; bottom:16px; display:flex; flex-direction:column; gap:10px; z-index:9999}
.toast{opacity:0; transform:translateY(8px); transition: all .25s ease; padding:12px 14px; border-radius:14px; border:1px solid var(--line); background:rgba(18,22,42,.92); color:var(--text); box-shadow:0 10px 30px rgba(0,0,0,.35); font-weight:800}
.toast.show{opacity:1; transform:translateY(0)}
.bell-ping{animation: bellPing .7s ease}
@keyframes bellPing{0%{transform:scale(1)} 35%{transform:scale(1.06)} 70%{transform:scale(0.98)} 100%{transform:scale(1)}}

.mention{font-weight:900; color: rgba(235,0,60,1); background: rgba(235,0,60,.12); padding:1px 6px; border-radius:999px}
.ce{min-height:92px; border:1px solid var(--line); border-radius:14px; padding:10px 12px; background:rgba(18,22,42,.35); outline:none; white-space:pre-wrap}
.ce:empty:before{content:attr(data-ph); color:rgba(232,236,255,.55)}
.mention-picker{position:fixed; z-index:99999; border:1px solid var(--line); border-radius:14px; background:rgba(18,22,42,.98); box-shadow:0 10px 30px rgba(0,0,0,.35); overflow:hidden}
.mention-item{padding:10px 12px; cursor:pointer; font-weight:900; display:flex; gap:10px; align-items:center}
.mention-item:hover{background:rgba(232,236,255,.08)}

.team .right{display:flex; gap:10px; align-items:center}
.ampel{width:14px;height:14px;border-radius:999px;border:1px solid var(--line); box-shadow:0 0 0 3px rgba(0,0,0,.08) inset; cursor:pointer}
.ampel[data-ampel="green"]{background:rgba(0,255,200,.85)}
.ampel[data-ampel="yellow"]{background:rgba(242,179,0,.92)}
.ampel[data-ampel="red"]{background:rgba(235,0,60,.92)}
.log-head{display:flex; gap:10px; align-items:center}

.logrow{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.logleft{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
.logright{display:flex; gap:8px; align-items:center}
.logitem{border:1px solid var(--line); border-radius:16px; padding:10px 12px; background:rgba(18,22,42,.30); margin-bottom:10px}
.logitem .t{font-weight:900}
.logitem .msg{margin-top:6px}
.badge{display:inline-flex; padding:2px 8px; border-radius:999px; font-weight:900; font-size:12px; border:1px solid var(--line)}
.badge-print{background:rgba(0,255,200,.10)}
.badge-int{background:rgba(232,236,255,.06)}
.pin{font-weight:900}
.logfooter{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:8px}

.playbackBanner{
  margin-top:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(235,0,60,.08);
  font-weight:800;
}
.tllist{ margin-top:10px; max-height: 320px; overflow:auto; border:1px solid var(--line); border-radius:14px; }
.tlrow{ padding:10px; border-bottom:1px solid var(--line); cursor:pointer; }
.tlrow:hover{ background: rgba(232,236,255,.06); }
.tlrow:last-child{ border-bottom:none; }
.tltime{ font-size:12px; color: var(--muted); }
.tlaction{ margin-top:2px; }
.tluser{ font-size:12px; color: var(--muted); font-weight:700; }

.ta{width:100%;min-height:44px;resize:vertical;padding:10px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;}
.hint{opacity:.75;font-size:12px;margin-top:8px}
.grid2{display:grid;grid-template-columns:1fr 1fr}
@media (max-width:900px){.grid2{grid-template-columns:1fr}}

/* ===== v21: clearer, less cluttered ===== */
.chips{gap:8px; flex-wrap:wrap;}
.chip{border-radius:999px; padding:8px 12px; font-weight:800;}
.card{border-radius:18px;}
.board{gap:14px;}
.col{border-radius:18px;}
.colHead{padding:10px 12px;}
.item{border-radius:16px;}
.meta{opacity:.78;}
.title{letter-spacing:.2px;}
/* soften dense areas */
.panel{border-color: color-mix(in oklab, var(--line), transparent 30%);}

/* ===== v22: calmer, more professional ===== */
:root{
  --bg: #0b0f17;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.04);
  --line: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
}
body.theme-dark{
  background: radial-gradient(circle at 20% 10%, rgba(235,0,60,0.12), transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(0,120,255,0.10), transparent 55%),
              radial-gradient(circle at 20% 90%, rgba(0,255,200,0.06), transparent 55%);
  background-color: var(--bg);
}
.chips{gap:8px; flex-wrap:wrap;}
.chip{background: var(--panel2); border:1px solid var(--line); color: var(--text); border-radius:999px;}
.chip:hover{filter: brightness(1.08);}
.item{background: var(--panel); border:1px solid var(--line);}
.col{background: rgba(255,255,255,0.03); border:1px solid var(--line); border-radius:18px;}
.colHead{background: transparent; border-bottom:1px solid var(--line);}
.meta, .hint{color: var(--muted);}
a{color: var(--text);}

/* Overflow menu */
.moreWrap{position:relative; display:inline-flex; align-items:center;}
.moreBtn{display:inline-flex; align-items:center; gap:8px;}
.moreMenu{
  position:absolute; right:0; top:44px; min-width: 220px;
  background: rgba(15,20,32,0.96);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  padding: 8px;
  z-index: 50;
}
.moreMenu[hidden]{display:none;}
.moreItem{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align:left;
  cursor:pointer;
}
.moreItem:hover{background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10);}
.moreSep{height:1px; background: rgba(255,255,255,0.10); margin:6px 4px;}
.kbd{font-size:11px; color: var(--muted);}


/* Step 4.2: Loan confirmation strip */
.loan-strip{margin-top:10px;padding:10px;border:2px dashed rgba(255,255,255,.22);border-radius:12px;background:rgba(255,255,255,.04);}
.loan-title{font-size:13px;opacity:.9;margin-bottom:8px;}
.loan-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 0;border-top:1px dashed rgba(255,255,255,.15);}
.loan-row:first-of-type{border-top:none;}
.loan-name{font-weight:600;}
.loan-meta{font-size:12px;opacity:.75;margin-top:2px;}
.loan-right{display:flex;gap:8px;}


@media (max-width: 720px){
  .modal-card{margin:12px auto; width:calc(100% - 16px); max-height:calc(100vh - 24px)}
}

.pill.ok{border-color:var(--accent2);color:var(--accent2)}
.pill.warn{border-color:var(--accent);color:var(--accent)}


/* Step 6.3: shared team (read-only visibility via loan) */
.team.shared{
  border-style: dashed;
  opacity: 0.98;
}
.notice-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px dashed rgba(255,170,0,.45);
  border-radius:12px;
  margin-top:10px;
  background: rgba(255,170,0,.08);
}
.notice-strip .notice-text{
  font-size: 13px;
  opacity: .95;
}
.btn.warn, .chip.warn{
  border-color: rgba(255,170,0,.6) !important;
}
