/* U Storage student dashboard (styled after the GW student dashboard) */
:root {
  --u-navy: #0a1e3d; --u-blue: #1a5fce; --u-muted: #6b7a90; --u-border: #e2e8f0; --u-bg: #f1f5f9;
  --u-green: #10b981; --u-amber: #f59e0b; --u-red: #ef4444; --u-sidebar: 230px; --u-header: 64px;
  --bs-body-font-family: "DM Sans", sans-serif;
}
body { font-family: "DM Sans", sans-serif; background: var(--u-bg); color: #1e293b; }
h1, h2, h3, h4, .serif { font-family: "DM Serif Display", serif; font-weight: 400; }
a { color: var(--u-blue); }

.u-shell { display: flex; min-height: calc(100vh - var(--db-h)); }
.u-sidebar { width: var(--u-sidebar); background: var(--u-navy); position: fixed; top: var(--db-h); bottom: 0; left: 0; z-index: 1040; display: flex; flex-direction: column; overflow-y: auto; }
.u-sidebar-brand { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.u-nav { list-style: none; margin: 0; padding: 12px; flex: 1; }
.u-nav a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); text-decoration: none; padding: 10px 12px; border-radius: .5rem; font-size: 14.5px; margin-bottom: 2px; }
.u-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.u-nav a.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.u-nav svg { width: 17px; height: 17px; flex-shrink: 0; }
.u-nav .cnt { margin-left: auto; background: var(--u-red); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.u-sidebar-foot { padding: 14px 20px; font-size: 11.5px; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.08); }
.u-main { margin-left: var(--u-sidebar); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.u-header { height: var(--u-header); background: #fff; border-bottom: 1px solid var(--u-border); align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: var(--db-h); z-index: 30; }
.u-header-title { font-family: "DM Serif Display", serif; font-size: 22px; line-height: 1.1; }
.u-header-sub { font-size: 12.5px; color: var(--u-muted); }
.u-header-right { display: flex; align-items: center; gap: 18px; }
.u-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--u-blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.u-avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.u-icon-btn { background: transparent; border: 0; color: #fff; padding: 6px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.u-icon-btn.dark { color: #334155; }
.u-icon-btn:hover { background: rgba(0,0,0,.05); }
.u-badge { position: absolute; top: -2px; right: -4px; background: var(--u-red); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; padding: 1px 6px; }
.u-content { padding: 28px; flex: 1; outline: none; max-width: 1280px; width: 100%; }
.u-footer { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 18px 28px; border-top: 1px solid var(--u-border); background: #fff; font-size: 12.5px; color: var(--u-muted); }
.u-mobile-head { position: sticky; top: var(--db-h); z-index: 50; background: var(--u-navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.u-backdrop { display: none; }
@media (max-width: 991.98px) {
  .u-sidebar { transform: translateX(-100%); transition: transform .25s; }
  .u-sidebar.open { transform: none; }
  .u-backdrop.open { display: block; position: fixed; inset: var(--db-h) 0 0 0; background: rgba(10,30,61,.45); z-index: 1030; }
  .u-main { margin-left: 0; }
  .u-content { padding: 18px 14px; }
}

.u-card { background: #fff; border: 1px solid var(--u-border); border-radius: 1rem; padding: 20px; }
.u-card + .u-card { margin-top: 16px; }
.u-card-title { font-family: "DM Serif Display", serif; font-size: 20px; margin: 0 0 4px; }
.u-card-sub { color: var(--u-muted); font-size: 13.5px; }
.u-h1 { font-size: 32px; margin: 0; }
.u-lede { color: var(--u-muted); margin: 4px 0 20px; }
.u-alert { display: flex; gap: 14px; align-items: center; border-radius: 1rem; padding: 16px 18px; margin-bottom: 16px; flex-wrap: wrap; }
.u-alert.blue { background: #e8f0fc; border: 1px solid #c4d7f6; color: #12366e; }
.u-alert.green { background: #e7f8f1; border: 1px solid #b3ead3; color: #065f46; }
.u-alert.amber { background: #fff7e6; border: 1px solid #fde1a6; color: #7a4d00; }
.u-alert .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255,255,255,.7); font-size: 20px; }
.u-alert .grow { flex: 1; min-width: 220px; }
.u-alert b { display: block; }
.btn-u { background: var(--u-navy); color: #fff; border: 0; border-radius: .6rem; padding: 10px 16px; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-u:hover { background: #142f5c; color: #fff; }
.btn-u.blue { background: var(--u-blue); }
.btn-u.blue:hover { background: #154fae; }
.btn-u.line { background: #fff; color: var(--u-navy); border: 1px solid #cbd5e1; }
.btn-u.line:hover { background: #f8fafc; }
.btn-u.sm { padding: 7px 12px; font-size: 13px; }

.svc-tile { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; color: inherit; }
.svc-tile:hover { border-color: var(--u-blue); box-shadow: 0 8px 22px rgba(26,95,206,.08); color: inherit; }
.svc-tile .top { display: flex; align-items: center; gap: 12px; }
.svc-tile .tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; }
.svc-tile .st { font-weight: 700; font-size: 17px; }
.svc-tile .meta { font-size: 13px; color: var(--u-muted); }
.svc-tile .bar { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.svc-tile .bar > div { height: 100%; border-radius: 99px; }
.svc-tile.off { opacity: .6; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.pill.gray { background: #f1f5f9; color: #475569; }
.pill.blue { background: #e0ecff; color: #1e4fa8; }
.pill.indigo { background: #e7e9ff; color: #3b3fa8; }
.pill.green { background: #dcfce7; color: #166534; }
.pill.amber { background: #fef3c7; color: #92400e; }
.pill.red { background: #fee2e2; color: #991b1b; }
.pill.violet { background: #ede9fe; color: #5b21b6; }

.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pipe div { background: #f8fafc; border: 1px solid var(--u-border); border-radius: .8rem; padding: 12px; text-align: center; }
.pipe b { display: block; font-size: 26px; font-family: "DM Serif Display", serif; font-weight: 400; color: var(--u-navy); }
.pipe span { font-size: 12px; color: var(--u-muted); }
@media (max-width: 575px) { .pipe { grid-template-columns: 1fr 1fr; } }

.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; padding: 10px 0; position: relative; }
.tl li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 36px; bottom: -10px; width: 2px; background: #e2e8f0; }
.tl .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--u-green); z-index: 1; }
.tl .dot.now { background: var(--u-blue); box-shadow: 0 0 0 4px rgba(26,95,206,.15); }
.tl .dot.up { background: #cbd5e1; }
.tl .t { font-weight: 600; font-size: 14.5px; }
.tl .s { font-size: 13px; color: var(--u-muted); }
.tl .d { font-size: 12.5px; color: var(--u-muted); white-space: nowrap; text-align: right; }

.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.steps5 div { text-align: center; padding: 12px 6px; }
.steps5 .n { width: 34px; height: 34px; border-radius: 50%; background: #e8f0fc; color: var(--u-blue); font-weight: 700; display: grid; place-items: center; margin: 0 auto 8px; }
.steps5 b { display: block; font-size: 14px; }
.steps5 span { font-size: 12px; color: var(--u-muted); }
@media (max-width: 767px) { .steps5 { grid-template-columns: 1fr 1fr; } }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.item { background: #fff; border: 1px solid var(--u-border); border-radius: 1rem; overflow: hidden; cursor: pointer; text-align: left; padding: 0; display: flex; flex-direction: column; }
.item:hover { border-color: var(--u-blue); box-shadow: 0 8px 22px rgba(26,95,206,.08); }
.item .ph { aspect-ratio: 5/4; position: relative; }
.item .ph svg { width: 100%; height: 100%; display: block; }
.item .ph .pill { position: absolute; left: 10px; top: 10px; }
.item .bd { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.item .lb { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--u-muted); }
.item .nm { font-weight: 700; }
.item .loc { font-size: 12.5px; color: var(--u-muted); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }

.addr-card { background: var(--u-navy); color: #fff; border-radius: 1rem; padding: 20px; }
.addr-card .k { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #c8b89a; }
.addr-card .a { font-size: 17px; line-height: 1.5; margin: 8px 0 14px; }
.addr-card .btn-u { background: #fff; color: var(--u-navy); }

.appt { border-radius: 1.2rem; overflow: hidden; background: #fff; border: 1px solid var(--u-border); }
.appt-top { background: linear-gradient(120deg, #0a1e3d, #1a3b74); color: #fff; padding: 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.appt-date { background: #fff; color: var(--u-navy); border-radius: 14px; text-align: center; padding: 10px 16px; min-width: 86px; }
.appt-date b { display: block; font-size: 34px; font-family: "DM Serif Display", serif; font-weight: 400; line-height: 1; }
.appt-date span { font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.appt-top h2 { font-size: 28px; margin: 0; }
.appt-top .sub { color: #c9d6ee; }
.tracker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 22px 24px 6px; }
.tracker div { text-align: center; position: relative; padding: 0 4px; }
.tracker div:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 3px; background: #e2e8f0; }
.tracker div.on:not(:last-child)::after { background: var(--u-green); }
.tracker i { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: #fff; display: grid; place-items: center; margin: 0 auto 8px; font-style: normal; font-weight: 700; font-size: 14px; position: relative; z-index: 1; }
.tracker .on i { background: var(--u-green); }
.tracker .cur i { background: var(--u-blue); box-shadow: 0 0 0 5px rgba(26,95,206,.18); }
.tracker b { display: block; font-size: 13px; }
.tracker span { font-size: 12px; color: var(--u-muted); }
@media (max-width: 575px) { .tracker b { font-size: 11px; } .tracker span { font-size: 10.5px; } }

.phone { width: 300px; max-width: 100%; margin: 0 auto; border: 10px solid #0a1e3d; border-radius: 34px; background: #f4f5f7; padding: 18px 12px; min-height: 380px; }
.phone .who { text-align: center; font-size: 12px; color: var(--u-muted); margin-bottom: 12px; }
.bubble { background: #e4e7ec; border-radius: 18px 18px 18px 6px; padding: 10px 13px; font-size: 13px; line-height: 1.45; margin-bottom: 4px; }
.bubble-meta { font-size: 10.5px; color: var(--u-muted); margin: 0 0 12px 6px; }

.msg { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--u-border); }
.msg:last-child { border-bottom: 0; }
.msg .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #e8f0fc; color: var(--u-blue); flex-shrink: 0; font-size: 17px; }
.msg .ic.text { background: #e7f8f1; color: #047857; }
.msg .t { font-weight: 700; }
.msg .new { font-size: 10.5px; font-weight: 700; background: var(--u-red); color: #fff; border-radius: 99px; padding: 1px 7px; margin-left: 6px; }

.u-table { width: 100%; font-size: 13.5px; }
.u-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--u-muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--u-border); background: #f8fafc; white-space: nowrap; }
.u-table td { padding: 11px 12px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.u-table tr.click { cursor: pointer; }
.u-table tr.click:hover td { background: #f5f9ff; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv .k { color: var(--u-muted); }
.chain { list-style: none; margin: 0; padding: 0; }
.chain li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 8px 0; position: relative; }
.chain li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 30px; bottom: -6px; width: 2px; background: #e2e8f0; }
.chain .c { width: 24px; height: 24px; border-radius: 50%; background: var(--u-green); color: #fff; display: grid; place-items: center; font-size: 11px; z-index: 1; }
.chain .c.p { background: #e2e8f0; }
.chain b { font-size: 14px; }
.chain span { display: block; font-size: 12.5px; color: var(--u-muted); }

.u-modal-back { position: fixed; inset: 0; background: rgba(10,30,61,.55); z-index: 1060; display: grid; place-items: center; padding: 16px; }
.u-modal-back[hidden] { display: none; }
.u-modal { background: #fff; border-radius: 1.1rem; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 30px 70px rgba(10,30,61,.35); }
.u-modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--u-border); position: sticky; top: 0; background: #fff; }
.u-modal-head h3 { font-size: 22px; margin: 0; }
.u-modal-head .x { margin-left: auto; background: #f1f5f9; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.u-modal-body { padding: 20px; }
.photo { border-radius: .9rem; overflow: hidden; border: 1px solid var(--u-border); position: relative; aspect-ratio: 5/4; }
.photo svg { width: 100%; height: 100%; display: block; }
.photo .tag { position: absolute; left: 10px; bottom: 10px; background: rgba(10,30,61,.8); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.camera { background: #0b1220; border-radius: 1rem; aspect-ratio: 4/3; display: grid; place-items: center; position: relative; overflow: hidden; color: #fff; }
.camera .frame { width: 55%; aspect-ratio: 1; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; display: grid; place-items: center; color: #fff; }
.camera .scanline { position: absolute; left: 22%; right: 22%; height: 2px; background: #34d399; box-shadow: 0 0 12px #34d399; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 22%; } to { top: 74%; } }
.u-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--u-navy); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; z-index: 1070; opacity: 0; transition: all .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.u-toast.show { opacity: 1; transform: translateX(-50%); }
.form-label { font-size: 13px; font-weight: 600; }
.switch { position: relative; width: 40px; height: 22px; border-radius: 99px; background: #cbd5e1; border: 0; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--u-green); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.view-as { background: #fff7e6; border: 1px solid #fde1a6; color: #7a4d00; border-radius: .8rem; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
