/* U Storage University additions on top of the partner-portal stylesheet */
.sidebar { top: var(--db-h); height: calc(100vh - var(--db-h)); }
.topbar { top: var(--db-h); }
.brand { justify-content: flex-start; padding: 6px 6px 14px; }
.brand-logo { height: 40px; width: auto; display: block; }
.nav-live { margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #fff; background: #16a34a; border-radius: 999px; padding: 2px 7px; }
.phase-chip { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #134e4a; background: #ccfbf1; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.phase-chip .live-dot { width: 7px; height: 7px; }
.content:focus { outline: none; }

.p-blue { background: #dbeafe; color: #1e40af; }
.p-violet { background: #ede9fe; color: #5b21b6; }
.chip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 10.5px; font-weight: 800; margin-right: 3px; }
.chip.s { background: #e0e7ff; color: #3730a3; }
.chip.p { background: #fef3c7; color: #92400e; }
.chip.m { background: #dcfce7; color: #166534; }
.chip.off { background: #f3f4f6; color: #d1d5db; }
.name-cell { display: flex; align-items: center; gap: 10px; }
.av-sm { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 11px; display: grid; place-items: center; flex-shrink: 0; }
.av-sm.new { background: #ccfbf1; color: #0f766e; }
.sub { color: var(--muted); font-size: 11.5px; }
.is-you td { background: #f0fdfa !important; }

.phase-banner { display: flex; gap: 14px; align-items: center; background: linear-gradient(90deg, #0b1a3a, #1b2c57); color: #fff; border-radius: var(--radius); padding: 14px 16px; margin: 6px 0 14px; flex-wrap: wrap; }
.phase-banner .pb-when { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c8b89a; }
.phase-banner .pb-title { font-size: 17px; font-weight: 700; margin-top: 2px; }
.phase-banner .pb-text { font-size: 13px; color: #cbd5e1; margin-top: 2px; max-width: 820px; }
.phase-banner .pb-clock { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.phase-banner .pb-clock b { display: block; font-size: 22px; }
.phase-banner .pb-clock span { font-size: 11px; color: #c8b89a; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.phase-switch { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.phase-switch button { border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.phase-switch button.on { background: #c8b89a; color: #0b1a3a; border-color: #c8b89a; }

.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.svc-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(79,70,229,.08); }
.svc-card .h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.svc-card .h .go { margin-left: auto; color: var(--accent); font-size: 12px; }
.svc-card .big { font-size: 26px; font-weight: 700; }
.svc-card .note { font-size: 12px; color: var(--muted); }
.svc-card .progress { height: 8px; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi .k { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 26px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kpi.green { border-color: #86efac; background: #f0fdf4; }
.kpi.amber { border-color: #fcd34d; background: #fffbeb; }
.kpi.red { border-color: #fca5a5; background: #fef2f2; }
.kpi.indigo { border-color: #c7d2fe; background: #eef2ff; }
.kpi .dotk { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.stage-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.stage { padding: 14px; border-right: 1px solid var(--line); position: relative; }
.stage:last-child { border-right: 0; }
.stage .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stage .v { font-size: 30px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stage .s { font-size: 11.5px; color: var(--muted); }
.stage .bar { position: absolute; left: 0; bottom: 0; height: 4px; }

.timers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.timer { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.timer .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.timer .v { font-size: 24px; font-weight: 700; margin-top: 4px; }
.timer .s { font-size: 11.5px; color: var(--muted); }
.timer.ok .v { color: #15803d; }
.target { position: relative; height: 8px; background: #f0f1f5; border-radius: 99px; margin-top: 8px; }
.target > div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: #22c55e; }
.target > i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #111827; }

.fmap-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fmap-controls button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 600; }
.fmap-controls button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.fmap { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; padding: 14px; }
.room { position: relative; border: 1px solid var(--line); border-radius: 6px; padding: 6px 4px; text-align: center; font-size: 10.5px; font-weight: 600; color: #6b7280; background: #fafbfd; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: default; }
.room.has { cursor: pointer; background: #fff; color: #111827; }
.room.has:hover { border-color: var(--accent); }
.room i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); padding: 0 14px 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hallway { grid-column: 1 / -1; height: 14px; border-radius: 4px; background: repeating-linear-gradient(90deg, #eef0f4 0 10px, #f7f8fa 10px 20px); }

.col-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding: 14px 14px 0; }
.col-chart .col { flex: 1; background: #c7d2fe; border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.col-chart .col.past { background: #6366f1; }
.col-chart .col.now { background: #0d9488; }
.col-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 6px 14px 12px; }

.item-thumb { width: 54px; height: 43px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); flex-shrink: 0; }
.item-thumb svg, .item-big svg { display: block; width: 100%; height: 100%; }
.item-big { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 5/4; position: relative; }
.photo-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(17,21,33,.78); color: #fff; font-size: 10.5px; padding: 3px 7px; border-radius: 4px; }
.stage-dots { display: inline-flex; align-items: center; }
.stage-dots .sd { width: 9px; height: 9px; border-radius: 50%; background: #e5e7eb; }
.stage-dots .sd.on { background: #22c55e; }
.stage-dots .sl { width: 10px; height: 2px; background: #e5e7eb; }
.stage-dots .sl.on { background: #22c55e; }
.sms { background: #f1f5f9; border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; max-width: 460px; }
.sms-meta { font-size: 11px; color: var(--muted); margin: 3px 0 10px; }
.section-title { font-size: 15px; font-weight: 700; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.toggle { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #d1d5db; border: 0; padding: 0; transition: background .15s; flex-shrink: 0; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle[aria-checked="true"] { background: #16a34a; }
.toggle[aria-checked="true"]::after { transform: translateX(16px); }
.set-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.set-row .grow { flex: 1; }
.set-row .sub { display: block; }
.big-num { font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.money-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.money-row b { font-variant-numeric: tabular-nums; }

@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .svc-cards { grid-template-columns: 1fr; }
  .stage-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage:nth-child(3) { border-right: 0; }
  .stage:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .fmap { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { top: var(--db-h); height: calc(100vh - var(--db-h)); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .timers { grid-template-columns: 1fr; }
  .phase-chip { display: none; }
  .phase-banner .pb-clock { margin-left: 0; text-align: left; }
  .fmap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content { padding-left: 12px; padding-right: 12px; }
}
.live-banner { display: block; line-height: 1.5; }
.live-banner .live-dot { display: inline-block; margin-right: 8px; vertical-align: middle; }
