* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; background: #f3f5f8; color: #1d2733; min-height: 100vh; }
header { background: #0f2a43; color: #fff; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
header .brand { font-weight: 600; font-size: 18px; letter-spacing: .2px; }
header .who { font-size: 14px; opacity: .9; display: flex; gap: 16px; align-items: center; }
header button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
header button:hover { background: rgba(255,255,255,.12); }
main { max-width: 960px; margin: 0 auto; padding: 32px 24px; }
h1 { font-size: 22px; margin: 0 0 6px; }
.sub { color: #5b6b7c; margin: 0 0 24px; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
a.tile { display: block; background: #fff; border: 1px solid #dbe2ea; border-radius: 10px; padding: 20px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(15,42,67,.05); transition: box-shadow .15s, border-color .15s; }
a.tile:hover, a.tile:focus-visible { border-color: #11a37f; box-shadow: 0 4px 12px rgba(15,42,67,.12); outline: none; }
a.tile h2 { margin: 0 0 8px; font-size: 17px; color: #0f2a43; }
a.tile p { margin: 0; color: #5b6b7c; font-size: 14px; line-height: 1.4; }
a.tile .open { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: #0b7f62; }
.empty { background: #fff; border: 1px dashed #c3ccd6; border-radius: 10px; padding: 32px; text-align: center; color: #5b6b7c; }
.login-box { max-width: 380px; margin: 12vh auto 0; background: #fff; border: 1px solid #dbe2ea; border-radius: 12px; padding: 32px; box-shadow: 0 6px 24px rgba(15,42,67,.08); }
.login-box h1 { margin-bottom: 4px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
input { width: 100%; padding: 10px 12px; border: 1px solid #b8c3cf; border-radius: 6px; font-size: 15px; }
input:focus { outline: 2px solid #11a37f; outline-offset: 0; border-color: #11a37f; }
.btn { width: 100%; margin-top: 22px; padding: 11px; background: #0f2a43; color: #fff; border: 0; border-radius: 6px; font-size: 15px; cursor: pointer; }
.btn:hover { background: #17436b; }
.btn:disabled { opacity: .6; cursor: default; }
/* The bar across the top of an open POC, with the POC in a frame below it */
body.pocshell { margin: 0; height: 100vh; overflow: hidden; background: #fff; }
.pocbar { position: fixed; top: 0; left: 0; right: 0; height: 44px; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: #0f2a43; color: #fff; font-size: 14px; border-bottom: 3px solid #11a37f; }
.pocbar a.pocbar-back { color: #fff; text-decoration: none; font-weight: 600; background: rgba(255,255,255,.14); border-radius: 6px; padding: 6px 12px; white-space: nowrap; }
.pocbar a.pocbar-back:hover, .pocbar a.pocbar-back:focus-visible { background: rgba(255,255,255,.26); outline: none; }
.pocbar .pocbar-poc { font-weight: 600; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pocbar .pocbar-who { margin-left: auto; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pocbar button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.pocbar button:hover { background: rgba(255,255,255,.12); }
.pocframe { position: fixed; top: 47px; left: 0; width: 100%; height: calc(100% - 47px); border: 0; background: #fff; }
@media (max-width: 640px) { .pocbar .pocbar-poc, .pocbar .pocbar-who { display: none; } .pocbar button { margin-left: auto; } }
.err { color: #b3261e; font-size: 14px; margin-top: 14px; min-height: 18px; }
.err.warn { background: #fff4e0; border: 1px solid #f0b34a; color: #8a5300; border-radius: 6px; padding: 10px 12px; font-weight: 600; animation: flash .9s ease-out 1; }
.err.locked { background: #fdecea; border: 1px solid #e5a29d; color: #8c1d18; border-radius: 6px; padding: 10px 12px; font-weight: 600; animation: flash .9s ease-out 1; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(240,179,74,.55); } 100% { box-shadow: 0 0 0 0 rgba(240,179,74,0); } }
@media (prefers-reduced-motion: reduce) { .err.warn, .err.locked { animation: none; } }
