.uh-root {
    --bg: #0b1020; --panel: #131a30; --panel2: #1a2340; --line: #263156;
    --text: #e8ecfa; --dim: #93a0c8; --accent: #5b8cff; --accent2: #7c5bff;
    --exam: #ff6b81; --ok: #39d98a;
    background: radial-gradient(1200px 600px at 80% -10%, #1b2450 0%, var(--bg) 55%);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    border-radius: 18px;
    overflow: hidden;
    text-align: left;
    min-height: 480px;
}
.uh-root * { box-sizing: border-box; margin: 0; padding: 0; }
.uh-header { padding: 22px 20px 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.uh-logo {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    font-size: 22px; font-weight: 800; color: #fff;
}
.uh-root h1 { font-size: 22px; letter-spacing: .3px; color: var(--text); }
.uh-sub { color: var(--dim); font-size: 13px; margin-top: 2px; }
.uh-nav { display: flex; gap: 8px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.uh-nav button {
    background: none; border: none; color: var(--dim); font-size: 15px; font-weight: 600;
    padding: 12px 16px; cursor: pointer; border-bottom: 3px solid transparent; font-family: inherit;
}
.uh-nav button.on { color: var(--text); border-bottom-color: var(--accent); }
.uh-search { margin: 12px 20px 0; }
.uh-search input {
    width: 100%; background: var(--panel); border: 1px solid var(--line);
    border-radius: 12px; color: var(--text); padding: 11px 14px; font-size: 14.5px;
    font-family: inherit; outline: none;
}
.uh-search input:focus { border-color: var(--accent); }
.uh-search input::placeholder { color: var(--dim); }
.uh-main { padding: 18px 20px 60px; max-width: 880px; margin: 0 auto; }
.uh-daygrp { margin-bottom: 22px; }
.uh-dayhead { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 8px; }
.uh-dayhead .uh-d { font-size: 16px; font-weight: 700; }
.uh-dayhead .uh-w { color: var(--dim); font-size: 13px; }
.uh-today .uh-d { color: var(--accent); }
.uh-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 14px 16px; margin-bottom: 10px; display: flex; gap: 14px; align-items: center;
}
.uh-clickable { cursor: pointer; }
.uh-time { min-width: 96px; font-variant-numeric: tabular-nums; }
.uh-time .uh-s { font-weight: 700; font-size: 15px; }
.uh-time .uh-e { color: var(--dim); font-size: 12px; }
.uh-info { flex: 1; min-width: 0; }
.uh-title { font-weight: 650; font-size: 15px; overflow-wrap: break-word; }
.uh-room { color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.uh-badge {
    font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 4px 9px;
    border-radius: 999px; background: rgba(255,107,129,.15); color: var(--exam);
    border: 1px solid rgba(255,107,129,.4); white-space: nowrap;
}
.uh-badge.uh-next { background: rgba(57,217,138,.13); color: var(--ok); border-color: rgba(57,217,138,.4); }
.uh-frow { display: flex; align-items: center; gap: 12px; }
.uh-ficon {
    width: 38px; height: 38px; border-radius: 10px; background: var(--panel2);
    display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.uh-fname { font-weight: 600; font-size: 14.5px; word-break: break-word; }
.uh-fmeta { color: var(--dim); font-size: 12px; margin-top: 2px; }
.uh-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
    border: none; border-radius: 10px; padding: 9px 14px; font-size: 13.5px; font-weight: 700;
    cursor: pointer; white-space: nowrap; font-family: inherit;
}
.uh-btn:disabled { opacity: .5; cursor: default; }
.uh-crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.uh-crumbs a { color: var(--accent); cursor: pointer; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.uh-crumbs span { color: var(--dim); font-size: 13px; }
.uh-chevron { color: var(--dim); }
.uh-note { color: var(--dim); font-size: 12.5px; text-align: center; margin-top: 26px; line-height: 1.6; }
.uh-empty { text-align: center; color: var(--dim); padding: 44px 10px; font-size: 14.5px; }
.uh-stale {
    background: rgba(255,200,87,.12); border: 1px solid rgba(255,200,87,.4); color: #ffd57a;
    border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 14px;
}
.uh-toast {
    position: sticky; bottom: 26px; left: 50%; transform: translateX(-50%); width: fit-content;
    margin: -40px auto 16px;
    background: var(--panel2); border: 1px solid var(--line); color: var(--text);
    padding: 11px 18px; border-radius: 12px; font-size: 13.5px; z-index: 9; max-width: 90vw;
}
.uh-spin {
    display: inline-block; width: 14px; height: 14px; border: 2px solid var(--dim);
    border-top-color: var(--text); border-radius: 50%; animation: uh-sp .8s linear infinite; vertical-align: -2px;
}
@keyframes uh-sp { to { transform: rotate(360deg); } }
.uh-asgn {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; margin-right: 6px;
    background: var(--panel2); border: 1px solid var(--line); color: var(--text);
    border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 650; cursor: pointer;
    font-family: inherit;
}
.uh-asgn:hover { border-color: var(--accent); }
.uh-asgn:disabled { opacity: .5; cursor: default; }
@media (max-width: 560px) {
    .uh-card { flex-wrap: wrap; gap: 10px; }
    .uh-card .uh-info { flex: 1 1 160px; }
    .uh-card .uh-badge, .uh-card .uh-btn { order: 5; }
    .uh-time { min-width: 76px; }
}
.uh-ownerbar { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.uh-btn-ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.uh-upzone { background: var(--panel); border: 1.5px dashed var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; text-align: center; color: var(--dim); font-size: 14px; }
.uh-upzone.uh-armed { border-color: var(--accent); color: var(--text); cursor: pointer; }
.uh-prog { height: 6px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.uh-prog > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0%; transition: width .2s; }
.uh-upitem { font-size: 13px; color: var(--text); margin-top: 8px; text-align: left; }
.uh-signin-wrap { max-width: 420px; margin: 60px auto; text-align: center; }
.uh-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 10px 18px; border-radius: 12px; font-size: 13.5px; z-index: 50; }
