    :root {
      --brand:       #0052CC;
      --brand-dark:  #003D99;
      --brand-light: #DEEBFF;
      --teal:        #00B8D9;
      --green:       #36B37E;
      --amber:       #FFAB00;
      --red:         #FF5630;
      --purple:      #6554C0;
      --bg:          #F4F5F7;
      --surface:     #FFFFFF;
      --border:      #DFE1E6;
      --t1:          #172B4D;
      --t2:          #42526E;
      --t3:          #6B778C;
      --t4:          #97A0AF;
      --radius:      8px;
      --shadow-sm:   0 1px 3px rgba(9,30,66,.12), 0 0 0 1px rgba(9,30,66,.08);
      --shadow-md:   0 4px 12px rgba(9,30,66,.15), 0 0 1px rgba(9,30,66,.1);
      --shadow-lg:   0 8px 32px rgba(9,30,66,.18), 0 0 1px rgba(9,30,66,.1);
      --ease:        0.18s ease;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
      background: var(--bg);
      color: var(--t1);
      min-height: 100vh;
      font-size: 14px;
      line-height: 1.5;
    }
    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; }
    img { display: block; }

    /* ── LOGIN ─────────────────────────────────────── */
    #login-screen {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      background: linear-gradient(140deg, #003D99 0%, #0052CC 45%, #0074D9 75%, #00B8D9 100%);
      padding: 24px;
    }
    .login-card {
      background: var(--surface);
      border-radius: 20px;
      padding: 52px 48px 40px;
      max-width: 420px;
      width: 100%;
      text-align: center;
      box-shadow: var(--shadow-lg);
    }
    .login-logo { margin: 0 auto 28px; }
    .login-card h1 {
      font-size: 34px;
      font-weight: 800;
      color: var(--brand);
      letter-spacing: -1px;
      margin-bottom: 6px;
    }
    .login-tagline { font-size: 15px; color: var(--t3); margin-bottom: 32px; }
    .btn-signin {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: var(--brand);
      color: #fff;
      border: none;
      border-radius: var(--radius);
      padding: 13px 28px;
      font-size: 15px;
      font-weight: 600;
      transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
      box-shadow: 0 2px 8px rgba(0,82,204,.35);
    }
    .btn-signin:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,82,204,.45); }
    .btn-signin:active { transform: translateY(0); }
    .btn-signin:disabled {
      opacity: .6; cursor: not-allowed;
      box-shadow: none; transform: none; background: var(--brand);
    }
    .btn-spinner {
      display: inline-block;
      width: 16px; height: 16px;
      border: 2px solid rgba(255,255,255,.4);
      border-top-color: #fff;
      border-radius: 50%;
      animation: btn-spin .7s linear infinite;
    }
    @keyframes btn-spin { to { transform: rotate(360deg); } }
    .login-suite-note { margin-top: 24px; font-size: 12px; color: var(--t4); }

    /* ── HEADER ────────────────────────────────────── */
    #app-screen { display: none; }
    .app-header {
      background: var(--brand);
      color: #fff;
      height: 56px;
      padding: 0 24px;
      display: flex;
      align-items: center;
      gap: 16px;
      position: sticky;
      top: 0;
      z-index: 200;
      box-shadow: 0 2px 8px rgba(0,0,0,.25);
    }
    .header-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: inherit; text-decoration: none; }
    .header-logo:hover { opacity: .85; }
    .header-wordmark { font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
    .header-wordmark span { opacity: .65; font-weight: 400; font-size: 13px; margin-left: 2px; }
    .header-spacer { flex: 1; }
    .header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

    /* ── PAGE SEARCH (Connect tab) ─────────────────── */
    .page-search-wrap { position: relative; max-width: 520px; margin: 0 0 28px; }
    .page-search-wrap .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--t4); pointer-events: none; }
    .page-search-input {
      width: 100%;
      padding: 13px 18px 13px 46px;
      border-radius: 12px;
      border: 1.5px solid var(--border);
      background: var(--surface);
      color: var(--t1);
      font-size: 15px;
      outline: none;
      box-shadow: var(--shadow-sm);
      transition: border-color var(--ease), box-shadow var(--ease);
    }
    .page-search-input::placeholder { color: var(--t4); }
    .page-search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }

    /* ── TAB NAV ────────────────────────────────────── */
    .tab-nav { display: flex; gap: 6px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
    .tab-btn {
      display: flex; align-items: center; gap: 8px;
      padding: 11px 18px;
      background: none; border: none;
      border-bottom: 2.5px solid transparent;
      margin-bottom: -1px;
      font-size: 14.5px; font-weight: 600; color: var(--t3);
      cursor: pointer;
      transition: color var(--ease), border-color var(--ease);
    }
    .tab-btn:hover { color: var(--t1); }
    .tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
    .tab-btn svg { flex-shrink: 0; opacity: .85; }

    /* ── MY DAY DASHBOARD GRID ──────────────────────── */
    .myday-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      align-items: start;
    }
    .myday-span-all { grid-column: 1 / -1; }
    @media (max-width: 900px) {
      .myday-grid { grid-template-columns: 1fr; }
    }
    .myday-card {
      background: var(--surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: box-shadow var(--ease);
    }
    .myday-card:hover { box-shadow: var(--shadow-md); }
    .myday-card-head {
      display: flex; align-items: center; gap: 10px;
      padding: 14px 18px;
      background: linear-gradient(135deg, #F7F8FA 0%, #EBECF0 100%);
      border-bottom: 1px solid var(--border);
    }
    .myday-card-icon {
      width: 30px; height: 30px; flex-shrink: 0;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 15px;
      background: var(--brand-light);
    }
    .myday-card-title { font-size: 13px; font-weight: 700; color: var(--t1); }
    .myday-card-body { padding: 16px 18px; }
    .my-status-body { display: flex; flex-direction: column; gap: 12px; }

    /* Refresh page button */
    .btn-refresh-page {
      background: rgba(255,255,255,.12);
      color: #fff;
      border: 1px solid rgba(255,255,255,.22);
      border-radius: 6px;
      width: 34px; height: 34px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; line-height: 0;
      transition: background var(--ease), transform var(--ease);
    }
    .btn-refresh-page:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }

    .btn-admin-link {
      display: flex; align-items: center; gap: 6px;
      background: rgba(255,255,255,.12);
      color: #fff;
      border: 1px solid rgba(255,255,255,.22);
      border-radius: 6px;
      height: 34px; padding: 0 12px;
      font-size: 12.5px; font-weight: 700;
      text-decoration: none;
      transition: background var(--ease);
    }
    .btn-admin-link:hover { background: rgba(255,255,255,.25); }
    .btn-admin-link[hidden] { display: none; }

    /* User menu */
    .user-menu-wrap { position: relative; }
    .btn-avatar {
      width: 34px; height: 34px;
      border-radius: 50%;
      background: rgba(255,255,255,.25);
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 700; color: #fff;
      overflow: hidden; flex-shrink: 0;
      border: 2px solid rgba(255,255,255,.35);
      cursor: pointer;
      transition: border-color var(--ease), box-shadow var(--ease);
    }
    .btn-avatar:hover, .btn-avatar[aria-expanded="true"] {
      border-color: rgba(255,255,255,.8);
      box-shadow: 0 0 0 3px rgba(255,255,255,.2);
    }
    .btn-avatar img { width: 100%; height: 100%; object-fit: cover; }

    .user-dropdown {
      position: absolute; top: calc(100% + 10px); right: 0;
      background: var(--surface);
      border-radius: 12px;
      box-shadow: var(--shadow-lg);
      width: 280px;
      z-index: 500;
      overflow: hidden;
      animation: dropIn .15s ease;
    }
    @keyframes dropIn { from { opacity:0; transform: translateY(-6px); } }
    .user-dropdown[hidden] { display: none; }

    .dd-header {
      display: flex; align-items: center; gap: 14px;
      padding: 18px 18px 14px;
      background: linear-gradient(135deg, #F7F8FA, #EBECF0);
    }
    .dd-avatar {
      width: 52px; height: 52px;
      border-radius: 50%; flex-shrink: 0;
      background: var(--brand);
      display: flex; align-items: center; justify-content: center;
      font-size: 18px; font-weight: 700; color: #fff;
      overflow: hidden;
    }
    .dd-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .dd-info { min-width: 0; }
    .dd-name { font-size: 14px; font-weight: 700; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .dd-sub  { font-size: 12px; color: var(--t3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .dd-presence {
      display: flex; align-items: center; gap: 7px;
      padding: 10px 18px;
      border-bottom: 1px solid var(--border);
      font-size: 12px; color: var(--t2);
    }
    .dd-presence .p-badge { font-size: 12px; }
    .dd-setstatus {
      display: flex; align-items: center; gap: 9px;
      width: 100%; padding: 12px 18px;
      background: none; border: none;
      font-size: 13px; color: var(--t2);
      cursor: pointer; text-align: left;
      transition: background var(--ease), color var(--ease);
    }
    .dd-setstatus:hover { background: var(--brand-light); color: var(--brand); }
    .dd-setstatus svg { flex-shrink: 0; }
    .dd-divider { height: 1px; background: var(--border); margin: 0; }
    .dd-signout {
      display: flex; align-items: center; gap: 9px;
      width: 100%; padding: 12px 18px;
      background: none; border: none;
      font-size: 13px; color: var(--t2);
      cursor: pointer; text-align: left;
      transition: background var(--ease), color var(--ease);
    }
    .dd-signout:hover { background: #FFEBE6; color: var(--red); }
    .dd-signout svg { flex-shrink: 0; }

    /* ── STATUS MODAL ──────────────────────────────── */
    .modal-backdrop {
      position: fixed; inset: 0;
      background: rgba(9,30,66,.55);
      z-index: 900;
      display: flex; align-items: center; justify-content: center;
      padding: 24px;
      animation: fadeBg .15s ease;
    }
    @keyframes fadeBg { from { opacity:0; } }
    .modal-backdrop[hidden] { display: none; }
    .modal {
      background: var(--surface);
      border-radius: 14px;
      box-shadow: var(--shadow-lg);
      width: 100%; max-width: 460px;
      animation: slideModal .18s ease;
    }
    @keyframes slideModal { from { opacity:0; transform: translateY(-12px); } }
    .modal-head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 20px 22px 0;
    }
    .modal-title { font-size: 16px; font-weight: 700; color: var(--t1); }
    .modal-close {
      background: none; border: none; cursor: pointer;
      color: var(--t3); padding: 4px; border-radius: 6px; line-height: 0;
      transition: background var(--ease), color var(--ease);
    }
    .modal-close:hover { background: var(--bg); color: var(--t1); }
    .modal-body { padding: 18px 22px; }
    .modal-label {
      font-size: 12px; font-weight: 600; color: var(--t3);
      text-transform: uppercase; letter-spacing: .5px;
      display: block; margin-bottom: 7px;
    }
    .modal-textarea {
      width: 100%; height: 90px;
      padding: 10px 12px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      font-family: inherit; font-size: 14px; color: var(--t1);
      resize: none; outline: none;
      transition: border-color var(--ease);
      line-height: 1.5;
    }
    .modal-textarea:focus { border-color: var(--brand); }
    .modal-textarea::placeholder { color: var(--t4); }
    .char-counter {
      text-align: right; font-size: 11px; color: var(--t4); margin-top: 5px;
    }
    .char-counter.warn { color: var(--red); }
    .modal-select-wrap { margin-top: 14px; }
    .modal-select {
      width: 100%;
      padding: 9px 12px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      font-family: inherit; font-size: 14px; color: var(--t1);
      background: var(--surface);
      outline: none; cursor: pointer;
      transition: border-color var(--ease);
    }
    .modal-select:focus { border-color: var(--brand); }
    .modal-foot {
      display: flex; align-items: center; gap: 10px;
      padding: 0 22px 20px;
    }
    .btn-clear-status {
      background: none; border: 1.5px solid var(--border);
      color: var(--t2); border-radius: var(--radius);
      padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
      transition: background var(--ease), border-color var(--ease);
    }
    .btn-clear-status:hover { background: var(--bg); border-color: var(--t3); }
    .spacer { flex: 1; }
    .btn-cancel-modal {
      background: none; border: 1.5px solid var(--border);
      color: var(--t2); border-radius: var(--radius);
      padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
      transition: background var(--ease);
    }
    .btn-cancel-modal:hover { background: var(--bg); }
    .btn-save-status {
      background: var(--brand); color: #fff; border: none;
      border-radius: var(--radius);
      padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
      transition: background var(--ease), transform var(--ease);
    }
    .btn-save-status:hover { background: var(--brand-dark); }
    .btn-save-status:disabled { opacity: .5; cursor: not-allowed; transform: none; }

    /* ── CHECK-IN MODAL ─────────────────────────────── */
    .checkin-modal-options { display: flex; flex-direction: column; gap: 10px; }
    .checkin-modal-option {
      display: flex; align-items: center; gap: 14px; text-align: left;
      width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
      background: var(--surface); cursor: pointer;
      transition: border-color var(--ease), background var(--ease);
    }
    .checkin-modal-option:hover:not(:disabled) { border-color: var(--brand); background: var(--bg); }
    .checkin-modal-option:disabled { opacity: .5; cursor: not-allowed; }
    .checkin-modal-option-icon { font-size: 24px; flex-shrink: 0; }
    .checkin-modal-option-title { font-size: 14px; font-weight: 700; color: var(--t1); }
    .checkin-modal-option-desc { font-size: 12px; color: var(--t3); margin-top: 2px; }
    .checkin-modal-loading {
      display: flex; flex-direction: column; align-items: center; gap: 12px;
      padding: 28px 0; color: var(--t3); font-size: 13px;
    }
    .checkin-modal-loading .spinner {
      width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--brand);
      border-radius: 50%; animation: btn-spin .8s linear infinite;
    }
    .qr-scan-wrap { text-align: center; }
    #qr-scan-video {
      width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover;
      border-radius: var(--radius); background: #000; margin: 0 auto 12px;
    }

    /* ── MAIN CONTENT ──────────────────────────────── */
    .app-main { max-width: 1480px; margin: 0 auto; padding: 32px 24px; }

    /* ── TAB PANELS ─────────────────────────────────── */
    .tab-panel[hidden] { display: none; }

    .upcoming-list {
      display: flex; flex-direction: column;
      max-height: 360px; overflow-y: auto;
    }
    .upcoming-item {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 8px 0; border-bottom: 1px solid var(--border);
    }
    .upcoming-item:last-child { border-bottom: none; padding-bottom: 0; }
    .upcoming-item:first-child { padding-top: 0; }
    .upcoming-time {
      font-size: 11px; font-weight: 700; color: var(--brand);
      white-space: nowrap; min-width: 54px; padding-top: 1px;
    }
    .upcoming-info { flex: 1; min-width: 0; }
    .upcoming-subject {
      font-size: 13px; font-weight: 600; color: var(--t1);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .upcoming-loc {
      font-size: 11px; color: var(--t3); margin-top: 1px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .upcoming-empty { font-size: 13px; color: var(--t3); }
    .upcoming-add-room {
      flex-shrink: 0; align-self: center;
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 8px; padding: 3px 9px;
      font-size: 11px; font-weight: 600; color: var(--brand);
      cursor: pointer; white-space: nowrap;
      transition: background var(--ease), border-color var(--ease);
    }
    .upcoming-add-room:hover { background: var(--brand-light); border-color: var(--brand); }
    .upcoming-join-btn {
      flex-shrink: 0; align-self: center;
      background: var(--brand); color: #fff;
      border-radius: 8px; padding: 4px 11px;
      font-size: 11px; font-weight: 600; text-decoration: none;
      white-space: nowrap;
      transition: background var(--ease);
    }
    .upcoming-join-btn:hover { background: var(--brand-dark); }

    .quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

    .qa-tile {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 6px;
      width: 100%; max-width: 96px;
      aspect-ratio: 1 / 1;
      justify-self: center;
      border: none; border-radius: 14px;
      color: #fff;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(9,30,66,.18);
      transition: transform var(--ease), box-shadow var(--ease);
    }
    .qa-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
    .qa-tile:active { transform: translateY(-1px) scale(.98); }
    .qa-tile svg { flex-shrink: 0; width: 56%; height: 56%; }
    .qa-label { font-size: 10px; font-weight: 700; color: #fff; text-align: center; }

    .qa-desk    { background: linear-gradient(135deg, #0052CC, #2684FF); }
    .qa-room    { background: linear-gradient(135deg, #6554C0, #9F8FEF); }
    .qa-checkin { background: linear-gradient(135deg, #00875A, #57D9A3); }

    .section-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .section-title { font-size: 18px; font-weight: 700; color: var(--t1); }
    .section-sub { font-size: 13px; color: var(--t3); margin-top: 3px; }
    .btn-text {
      background: none; border: none;
      color: var(--brand);
      font-size: 13px; font-weight: 600;
      padding: 4px 0;
      transition: color var(--ease);
    }
    .btn-text:hover { color: var(--brand-dark); }

    /* ── PEOPLE GRID ───────────────────────────────── */
    .people-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }
    @media (max-width: 1200px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 860px)  { .people-grid { grid-template-columns: repeat(2, 1fr); } }

    /* ── PERSON CARD ───────────────────────────────── */
    .person-card {
      background: var(--surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: box-shadow var(--ease), transform var(--ease);
      position: relative;
    }
    .person-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

    .card-top {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 18px 18px 14px;
      background: linear-gradient(135deg, #F7F8FA 0%, #EBECF0 100%);
    }
    .avatar-wrap { position: relative; flex-shrink: 0; }
    .person-avatar {
      width: 62px; height: 62px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; font-weight: 700; color: #fff;
      overflow: hidden;
    }
    .person-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .p-dot {
      position: absolute; bottom: 1px; right: 1px;
      width: 16px; height: 16px;
      border-radius: 50%;
      border: 2.5px solid #EBECF0;
      background: var(--t4);
    }
    .p-dot.available  { background: #57D9A3; }
    .p-dot.busy       { background: var(--red); }
    .p-dot.away       { background: var(--amber); }
    .p-dot.dnd        { background: var(--red); }
    .p-dot.offline    { background: var(--t4); }

    .card-top-info { flex: 1; min-width: 0; }
    .person-name {
      font-size: 15px; font-weight: 700;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .person-title { font-size: 12px; color: var(--t2); margin-top: 2px; min-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .person-dept  { font-size: 11px; color: var(--t3); margin-top: 1px; min-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    @keyframes spin { to { transform: rotate(360deg); } }

    .card-body { padding: 14px 18px 16px; }

    .status-row {
      display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .p-badge {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 12px; font-weight: 600;
      padding: 3px 10px;
      border-radius: 10px;
      background: var(--bg); color: var(--t3);
    }
    .p-badge .bd { width: 8px; height: 8px; border-radius: 50%; background: var(--t4); flex-shrink: 0; }
    .p-badge.available { background: #E3FCEF; color: #006644; }  .p-badge.available .bd { background: #36B37E; }
    .p-badge.busy      { background: #FFEBE6; color: #BF2600; }  .p-badge.busy .bd      { background: var(--red); }
    .p-badge.away      { background: #FFFAE6; color: #974F0C; }  .p-badge.away .bd      { background: var(--amber); }
    .p-badge.dnd       { background: #FFEBE6; color: #BF2600; }  .p-badge.dnd .bd       { background: var(--red); }
    .p-badge.offline   { background: var(--bg); color: var(--t3); }

    .activity-label { font-size: 11px; color: var(--t3); font-style: italic; }
    .oof-badge {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 12px; font-weight: 500;
      padding: 3px 10px; border-radius: 10px;
      background: #EAE6FF; color: #403294;
    }
    .workloc-badge {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 12px; font-weight: 500;
      padding: 3px 10px; border-radius: 10px;
      background: var(--brand-light); color: var(--brand);
    }
    .workloc-badge.workloc-remote { background: #E3FCEF; color: #006644; }

    .status-msg {
      font-size: 12px; color: var(--t2); font-style: italic;
      padding: 7px 10px; margin-bottom: 12px;
      background: #F4F5F7;
      border-left: 3px solid var(--teal);
      border-radius: 0 6px 6px 0;
    }

    .loc-trail {
      display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    }
    .loc-chip {
      font-size: 12px;
      color: var(--t2);
    }
    .loc-sep { font-size: 11px; color: var(--t4); }

    .contact-list { margin-bottom: 14px; }
    .contact-item {
      display: flex; align-items: center; gap: 7px;
      font-size: 12px; color: var(--t2);
      margin-bottom: 4px;
    }
    .contact-item a { color: var(--brand); }
    .contact-item a:hover { text-decoration: underline; }

    .card-actions {
      display: flex; gap: 7px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
    }
    .btn-act {
      flex: 1;
      display: flex; align-items: center; justify-content: center; gap: 5px;
      padding: 8px 6px;
      border-radius: 6px;
      font-size: 12px; font-weight: 600;
      border: none;
      text-align: center;
      transition: background var(--ease), transform var(--ease);
    }
    .btn-act:hover { transform: translateY(-1px); }
    .btn-act svg { flex-shrink: 0; }
    .btn-chat  { background: var(--brand-light); color: var(--brand); }
    .btn-chat:hover  { background: #B3D4FF; }
    .btn-call  { background: #E3FCEF; color: #006644; }
    .btn-call:hover  { background: #ABF5D1; }
    .btn-video { background: #EAE6FF; color: #403294; }
    .btn-video:hover { background: #C0B6F2; }

    /* ── SKELETON ──────────────────────────────────── */
    .skel {
      background: linear-gradient(90deg, #F4F5F7 25%, #EBECF0 50%, #F4F5F7 75%);
      background-size: 200% 100%;
      animation: shimmer 1.2s infinite;
      border-radius: 4px;
    }
    @keyframes shimmer { to { background-position: -200% 0; } }
    .skel-card {
      background: var(--surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      padding: 18px;
    }

    /* ── LOADING / EMPTY ───────────────────────────── */
    .loading-row {
      display: flex; align-items: center; justify-content: center;
      gap: 12px; padding: 48px; color: var(--t3); font-size: 14px;
    }
    .spinner {
      width: 22px; height: 22px;
      border: 2px solid rgba(0,82,204,.2);
      border-top-color: var(--brand);
      border-radius: 50%;
      animation: spin .8s linear infinite;
    }
    .empty-state {
      grid-column: 1/-1;
      text-align: center;
      padding: 56px 24px;
      color: var(--t3);
    }
    .empty-icon { font-size: 44px; margin-bottom: 16px; }
    .empty-state h3 { font-size: 17px; font-weight: 600; color: var(--t2); margin-bottom: 7px; }
    .empty-state p { font-size: 13px; }

    /* ── TOAST ─────────────────────────────────────── */
    #toasts {
      position: fixed; bottom: 24px; right: 24px;
      display: flex; flex-direction: column; gap: 8px;
      z-index: 9999;
    }
    .toast {
      background: var(--surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow-md);
      padding: 11px 16px;
      font-size: 13px; color: var(--t1);
      display: flex; align-items: center; gap: 8px;
      max-width: 320px;
      animation: slideUp .25s ease;
    }
    @keyframes slideUp { from { transform: translateY(12px); opacity: 0; } }
    .toast.error   { border-left: 4px solid var(--red); }
    .toast.success { border-left: 4px solid var(--green); }
    .toast.info    { border-left: 4px solid var(--brand); }

    /* ── MY STATUS CARD ────────────────────────────── */
    .my-status-top {
      display: flex; align-items: center; justify-content: space-between;
      gap: 14px; flex-wrap: wrap;
    }
    .my-loc-badge {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 20px; font-weight: 700;
    }
    .my-loc-badge.office { color: var(--brand); }
    .my-loc-badge.remote { color: #006644; }
    .my-status-section { display: flex; flex-direction: column; gap: 8px; }
    .my-status-title {
      font-size: 11px; font-weight: 700; letter-spacing: .5px;
      text-transform: uppercase; color: var(--t4);
    }
    .my-status-text {
      font-size: 14px; color: var(--t2);
      white-space: normal; overflow-wrap: break-word;
    }
    .my-status-text.placeholder { color: var(--t4); font-style: italic; }
    .btn-edit-status {
      display: inline-flex; align-items: center; justify-content: center; gap: 6px;
      background: var(--brand); color: #fff;
      border: none; border-radius: var(--radius);
      padding: 9px 16px; font-size: 13px; font-weight: 600;
      cursor: pointer; white-space: nowrap;
      transition: background var(--ease), transform var(--ease);
    }
    .btn-edit-status:hover { background: var(--brand-dark); transform: translateY(-1px); }
    .btn-edit-status-full { width: 100%; }

    /* Weather */
    .weather-widget {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 14px;
      background: linear-gradient(135deg, #E8F4FD, #D1E9F6);
      border-radius: var(--radius);
      flex-shrink: 0;
    }
    .weather-icon { font-size: 24px; line-height: 1; }
    .weather-temp { font-size: 18px; font-weight: 700; color: var(--t1); line-height: 1; }

    /* Quick status templates */
    .status-templates {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    }
    .tpl-label { font-size: 11px; font-weight: 600; color: var(--t4); text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0; }
    .status-tpl-btn {
      display: inline-flex; align-items: center; gap: 5px;
      background: var(--bg); border: 1.5px solid var(--border);
      border-radius: 20px; padding: 5px 14px;
      font-size: 12px; font-weight: 500; color: var(--t2);
      cursor: pointer; white-space: nowrap;
      transition: background var(--ease), border-color var(--ease), color var(--ease);
    }
    .status-tpl-btn:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }

    /* Modal templates row */
    .modal-tpl-row {
      display: flex; flex-wrap: wrap; gap: 7px;
      padding: 0 22px 14px;
    }
    .modal-tpl-row .status-tpl-btn { font-size: 11px; padding: 4px 10px; }

    /* ── NEARBY SECTION ────────────────────────────── */
    #nearby-section {
      margin-bottom: 40px;
      padding: 20px 24px;
      background: linear-gradient(135deg, #E6F0FF 0%, #F0F7FF 100%);
      border: 1.5px solid var(--brand-light);
      border-radius: 16px;
    }
    #nearby-section .section-title { color: var(--brand-dark); }
    #nearby-section .people-grid { margin-top: 0; }

    /* ── SEARCH SECTION ─────────────────────────────── */
    #search-section { display: none; margin-bottom: 40px; }
    #people-section  { margin-bottom: 40px; }

    /* ── RESPONSIVE ────────────────────────────────── */
    /* ── CALENDAR STRIP ON CARDS ────────────────────── */
    .cal-row {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 12px; font-weight: 600;
      padding: 3px 10px; border-radius: 10px;
      max-width: 100%;
    }
    .cal-row.cal-now  { background: #FFEBE6; color: #BF2600; }
    .cal-row.cal-free { background: #E3FCEF; color: #006644; }
    .cal-row svg { flex-shrink: 0; opacity: .8; }
    .cal-row .cal-subject {
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* ── OFFICE HEADCOUNT ────────────────────────────── */
    #headcount-section {
      margin-bottom: 40px;
      padding: 20px 24px;
      background: linear-gradient(135deg, #FFFAE6 0%, #FFFDF0 100%);
      border: 1.5px solid #FFE380;
      border-radius: 16px;
    }
    #headcount-section .section-title { color: #7A5100; }
    .headcount-buildings {
      display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px;
    }
    .headcount-card {
      background: #fff; border: 1px solid #FFE380;
      border-radius: 10px; padding: 12px 18px;
      min-width: 140px; text-align: center;
    }
    .headcount-number {
      font-size: 28px; font-weight: 800; color: #7A5100; line-height: 1.1;
    }
    .headcount-building { font-size: 12px; color: var(--t3); margin-top: 2px; }
    .headcount-avatars {
      display: flex; justify-content: center; gap: 3px;
      margin-top: 8px; flex-wrap: wrap;
    }
    .headcount-dot {
      width: 26px; height: 26px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 9px; font-weight: 700; color: #fff;
      overflow: hidden;
    }
    .headcount-dot img { width: 100%; height: 100%; object-fit: cover; }
    .headcount-more { font-size: 10px; color: var(--t3); margin-top: 4px; }

    /* ── INSIGHTS WIDGET ────────────────────────────── */
    .insights-row {
      display: flex; gap: 10px; flex-wrap: wrap;
      margin-top: 10px; padding-top: 10px;
      border-top: 1px solid var(--border);
    }
    .insight-pill {
      display: flex; align-items: center; gap: 5px;
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 20px; padding: 4px 10px;
      font-size: 12px; color: var(--t2);
    }
    .insight-pill strong { color: var(--t1); font-weight: 700; }

    /* ── BOOKING PANEL ───────────────────────────────── */
    #booking-panel, #room-panel, #meeting-room-panel {
      position: fixed; top: 80px; right: 20px;
      width: 380px; height: min(620px, calc(100vh - 100px));
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: 16px;
      box-shadow: 0 12px 40px rgba(9,30,66,.22);
      z-index: 950;
      display: flex; flex-direction: column;
      overflow: hidden;
      animation: panelIn .18s ease;
    }
    #booking-panel[hidden], #room-panel[hidden], #meeting-room-panel[hidden] { display: none; }
    .bp-date-row select.bp-date-input { flex: 0 0 112px; }
    @keyframes panelIn {
      from { opacity:0; transform: translateY(-8px) scale(.97); }
    }
    .bp-header {
      display: flex; align-items: flex-start; justify-content: space-between;
      padding: 16px 16px 12px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .bp-title { font-size: 15px; font-weight: 700; color: var(--t1); }
    .bp-sub { font-size: 12px; color: var(--brand); margin-top: 2px; }
    .bp-close {
      background: none; border: none; font-size: 18px;
      cursor: pointer; color: var(--t3); padding: 0 2px;
      line-height: 1;
    }
    .bp-date-row {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 16px; border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .bp-date-label { font-size: 12px; font-weight: 600; color: var(--t2); white-space: nowrap; }
    .bp-date-input {
      flex: 1; padding: 6px 10px; border: 1.5px solid var(--border);
      border-radius: 8px; font-size: 13px; background: var(--bg);
    }
    .bp-search-row {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 16px; border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .bp-search-icon { color: var(--t3); flex-shrink: 0; }
    .bp-search-input {
      flex: 1; padding: 6px 10px; border: 1.5px solid var(--border);
      border-radius: 8px; font-size: 13px; background: var(--bg);
    }
    .bp-body {
      overflow-y: auto; flex: 1; padding: 0 0 4px;
    }
    .bp-section-label {
      font-size: 11px; font-weight: 700; letter-spacing: .5px;
      text-transform: uppercase; color: var(--t3);
      padding: 10px 16px 4px;
    }
    .bp-list { display: flex; flex-direction: column; gap: 0; }
    .bp-item {
      display: flex; align-items: center;
      padding: 9px 16px; gap: 10px;
      border-bottom: 1px solid var(--border);
      cursor: pointer; transition: background .12s;
    }
    .bp-item:hover { background: var(--bg); }
    .bp-item-info { flex: 1; min-width: 0; }
    .bp-item-name { font-size: 13px; font-weight: 600; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bp-item-meta { font-size: 11px; color: var(--t3); margin-top: 1px; }
    .bp-avail {
      font-size: 11px; font-weight: 700; padding: 2px 8px;
      border-radius: 8px; flex-shrink: 0;
    }
    .bp-avail.free,
    .bp-avail.available { background: #E3FCEF; color: #006644; }
    .bp-avail.busy { background: #FFEBE6; color: #BF2600; }
    .bp-avail.checking { background: #F4F5F7; color: var(--t3); }
    .bp-avail.mode-assigned    { background: #EAE6FF; color: #403294; }
    .bp-avail.mode-dropin      { background: #FFFAE6; color: #974F0C; }
    .bp-avail.mode-unavailable { background: #F4F5F7; color: var(--t4); }
    .bp-book {
      background: var(--brand); color: #fff; border: none;
      border-radius: 7px; padding: 5px 11px; font-size: 12px;
      font-weight: 600; cursor: pointer; flex-shrink: 0;
    }
    .bp-book:disabled { opacity: .45; cursor: default; }
    .bp-empty {
      padding: 20px 16px; text-align: center;
      font-size: 13px; color: var(--t3);
    }
    .bp-loading {
      display: flex; align-items: center; gap: 8px;
      padding: 16px; color: var(--t3); font-size: 13px;
    }
    .bp-other-wrap { border-top: 1px solid var(--border); flex-shrink: 0; }
    .bp-other-toggle {
      width: 100%; background: none; border: none;
      padding: 10px 16px; font-size: 13px; font-weight: 600;
      color: var(--brand); cursor: pointer; text-align: left;
      display: flex; align-items: center; gap: 6px;
    }
    .bp-other-toggle:hover { background: var(--bg); }
    .bp-filter-row {
      display: flex; flex-direction: column; gap: 6px;
      padding: 8px 16px;
    }
    .bp-select {
      width: 100%; padding: 6px 10px; border: 1.5px solid var(--border);
      border-radius: 8px; font-size: 13px; background: var(--bg);
    }

    /* legacy workspace-item kept for compat */
    .workspace-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
    .workspace-item {
      display: flex; align-items: center; justify-content: space-between;
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 10px; padding: 12px 16px; gap: 12px;
    }
    .ws-avail { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; flex-shrink: 0; }
    .ws-avail.free { background: #E3FCEF; color: #006644; }
    .ws-avail.busy { background: #FFEBE6; color: #BF2600; }
    .btn-book { background: var(--brand); color: #fff; border: none; border-radius: 7px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
    .btn-book:disabled { opacity: .5; cursor: default; }

    /* ── MY ORG SECTION ────────────────────────────── */
    #org-section {
      margin-bottom: 40px;
      padding: 20px 24px;
      background: linear-gradient(135deg, #F3F0FF 0%, #FAF8FF 100%);
      border: 1.5px solid #C0B6F2;
      border-radius: 16px;
    }
    #org-section .section-title { color: #403294; }

    /* ── COLLAPSIBLE SECTION ────────────────────────── */
    .section-toggle {
      background: none; border: none; padding: 0;
      display: flex; align-items: center; gap: 8px;
      cursor: pointer; width: 100%; text-align: left;
    }
    .section-toggle .section-title { pointer-events: none; }
    .toggle-chevron {
      display: inline-block; font-size: 14px; color: var(--t3);
      transition: transform .2s ease; margin-left: auto;
    }
    .section-toggle[aria-expanded="false"] .toggle-chevron { transform: rotate(-90deg); }

    /* ── STATUS SPEECH BUBBLE ───────────────────────── */
    .status-bubble {
      display: block;
      background: #EAF0FB;
      color: #2B5CB8;
      border: 1px solid #BBCFEE;
      font-size: 11px;
      font-style: italic;
      padding: 3px 8px;
      border-radius: 10px 10px 10px 2px;
      white-space: normal;
      overflow-wrap: break-word;
      margin-bottom: 5px;
      min-height: 20px;
    }
    .status-bubble.bubble-empty { visibility: hidden; }

    @media (max-width: 560px) {
      .header-wordmark span, .header-name { display: none; }
      .app-main { padding: 20px 14px; }
      .people-grid { grid-template-columns: 1fr; }
    }

    /* ── MOBILE LAYOUT ─────────────────────────────── */
    body { overflow-x: hidden; }
    .section-head { flex-wrap: wrap; gap: 8px; }
    .user-dropdown { max-width: calc(100vw - 24px); }
    #toasts { left: 16px; right: 16px; bottom: 16px; }
    .toast { max-width: none; }

    @media (max-width: 700px) {
      .app-header {
        flex-wrap: wrap;
        height: auto;
        min-height: 56px;
        padding: 10px 14px;
        row-gap: 10px;
      }
      .header-logo  { order: 1; }
      .header-spacer { order: 2; }
      .header-right { order: 3; }
      .btn-refresh-page, .btn-avatar { width: 38px; height: 38px; }
      .tab-nav { gap: 2px; }
      .tab-btn { padding: 10px 12px; font-size: 13.5px; }

      #booking-panel, #room-panel, #meeting-room-panel {
        top: auto; left: 0; right: 0; bottom: 0;
        width: 100%; max-width: 100%;
        height: min(88vh, calc(100vh - 16px));
        border-radius: 16px 16px 0 0;
        animation: panelInMobile .22s ease;
      }
      .bp-date-row { flex-wrap: wrap; row-gap: 8px; }
    }
    @keyframes panelInMobile { from { opacity: 0; transform: translateY(24px); } }

    @media (max-width: 480px) {
      #nearby-section, #headcount-section, #org-section { padding: 16px; }
      .login-card { padding: 40px 24px 32px; }
      .login-card h1 { font-size: 28px; }
      #blocked-screen > div { padding: 36px 24px !important; }

      .modal-foot { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
      .modal-foot .spacer { display: none; }
      .modal-foot button { width: 100%; }

      .btn-act { padding: 10px 6px; }
    }

    /* ── DESK CHECK-IN (QR landing page) ───────────── */
    #checkin-screen {
      display: none; position: fixed; inset: 0; z-index: 1000;
      align-items: center; justify-content: center;
      background: linear-gradient(140deg, #003D99 0%, #0052CC 45%, #0074D9 75%, #00B8D9 100%);
      padding: 24px;
    }
    .checkin-card {
      background: var(--surface); border-radius: 20px; padding: 48px 40px;
      max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
    }
    .checkin-icon { font-size: 48px; margin-bottom: 12px; }
    .checkin-card h1 { font-size: 24px; font-weight: 800; color: var(--t1); margin-bottom: 4px; }
    .checkin-sub  { font-size: 14px; color: var(--brand); font-weight: 600; margin-bottom: 16px; }
    .checkin-desc { font-size: 14px; color: var(--t3); line-height: 1.6; margin-bottom: 24px; }
    .checkin-error { font-size: 13px; color: var(--red); margin-top: 16px; }
    #checkin-screen .spinner {
      width: 36px; height: 36px; margin: 0 auto 16px;
      border: 3px solid var(--border); border-top-color: var(--brand);
      border-radius: 50%; animation: btn-spin .8s linear infinite;
    }
    .btn-checkin-secondary {
      display: inline-flex; align-items: center; justify-content: center;
      margin-top: 12px; width: 100%;
      background: none; border: 1.5px solid var(--border); color: var(--t2);
      border-radius: var(--radius); padding: 12px 28px; font-size: 14px; font-weight: 600;
      cursor: pointer; transition: background var(--ease);
    }
    .btn-checkin-secondary:hover { background: var(--bg); }

    /* ── QR CODE GENERATOR (hidden utility — not linked in nav) ──── */
    #qr-screen { display: none; max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
    .qr-header { margin-bottom: 24px; }
    .qr-header h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
    .qr-header p  { font-size: 13px; color: var(--t3); max-width: 600px; margin-bottom: 14px; line-height: 1.6; }
    .qr-loading { font-size: 13px; color: var(--t3); text-align: center; padding: 48px 0; }
    .qr-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
    .qr-filters input, .qr-filters select {
      padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
      font-size: 13px; color: var(--t1); background: var(--surface);
    }
    .qr-filters input[type="search"] { flex: 1; min-width: 200px; }
    .qr-grid {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
    }
    .qr-card {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
      padding: 16px; text-align: center; box-shadow: var(--shadow-sm);
    }
    .qr-canvas-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
    .qr-name { font-size: 13px; font-weight: 700; color: var(--t1); }
    .qr-meta { font-size: 11px; color: var(--t3); margin-top: 2px; }
    .qr-badge {
      display: inline-block; margin-top: 6px; padding: 2px 8px;
      font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
      color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
      border-radius: 4px;
    }
    .qr-card-print-btn {
      margin-top: 12px; padding: 6px 10px; font-size: 12px; font-weight: 600;
      border: 1px solid var(--border); border-radius: 8px;
      background: var(--surface); color: var(--t2); cursor: pointer;
    }
    .qr-card-print-btn:hover { background: var(--border); }
    @media print {
      body * { visibility: hidden; }
      #qr-screen, #qr-screen * { visibility: visible; }
      #qr-screen { position: absolute; left: 0; top: 0; width: 100%; }
      .qr-header button, .qr-filters, .qr-card-print-btn { display: none; }
      .qr-card { break-inside: avoid; }
      #qr-screen.print-single .qr-grid { display: block; }
      #qr-screen.print-single .qr-card { display: none; }
      #qr-screen.print-single .qr-card.print-this { display: block; max-width: 320px; margin: 0 auto; }
    }

    @media (max-width: 480px) {
      #checkin-screen { padding: 16px; }
      .checkin-card { padding: 36px 24px; }
      #qr-screen { padding: 20px 14px; }
    }
