/* Standalone shell (task-management-frontend on Render): the few Hub styles
 * the Task Manager scripts lean on outside the Hub page, plus the login and
 * landing screens. Inside the Hub none of this loads — its own app.css has
 * the same rules. Load order: tokens.css, components.css, this, task-scheduler.css. */

html, body { margin: 0; min-height: 100%; }
body { background: var(--ras-paper); color: var(--ras-text); font-family: var(--ras-font); font-size: var(--ras-fs-md); }

/* ---- From the Hub's app.css (the modal frame tasks.js builds into) ------ */
.ship-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1100; align-items: center; justify-content: center; }
.ship-modal.active { display: flex; }

/* ---- From the Hub's app.css (showNotification's toast) ----------------- */
.notification {
    position: fixed; top: 20px; right: 20px; padding: 15px 20px; border-radius: 2px;
    color: white; font-weight: 500; z-index: 99999; display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); max-width: min(420px, 90vw);
}
.notification.info { background: #185FA5; }
.notification.success { background: #48bb78; }
.notification.error { background: #f56565; }
.notification.active { display: block; animation: slideIn 0.3s ease; }
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---- From the Hub's app.css (helpWalkStart's spotlight tour) ----------- */
#fkWalkSpot {
    position: fixed; z-index: 100040; border-radius: 3px;
    border: 2px solid #FFD24A; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.62);
    transition: top .18s ease, left .18s ease, width .18s ease, height .18s ease;
}
#fkWalkCard {
    position: fixed; z-index: 100041; width: min(360px, 90vw);
    background: #fff; border-radius: 3px; padding: 16px 18px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.35);
    font-family: inherit; color: #1F1F1C;
}
#fkWalkCard .fkw-step { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #8A8983; }
#fkWalkCard .fkw-title { font-size: 16px; font-weight: 700; color: #005B3A; margin: 4px 0 7px; }
#fkWalkCard .fkw-progress { height: 4px; background: #ECEBE6; border-radius: 2px; overflow: hidden; margin: 6px 0 10px; }
#fkWalkCard .fkw-progress span { display: block; height: 100%; background: #005B3A; border-radius: 2px; transition: width .2s ease; }
#fkWalkCard .fkw-head { display: flex; align-items: center; gap: 10px; }
#fkWalkCard .fkw-head .fkw-title { margin: 0; }
#fkWalkCard .fkw-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #E6F1ED; display: flex; align-items: center; justify-content: center; font-size: 20px; }
#fkWalkCard .fkw-head + .fkw-text { margin-top: 9px; }
#fkWalkCard .fkw-text { font-size: 13.5px; line-height: 1.5; color: #3D3D38; }
#fkWalkCard .fkw-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
#fkWalkCard button { height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; font-family: inherit; border-radius: 2px; cursor: pointer; }
#fkWalkCard .fkw-next { background: #005B3A; color: #fff; border: none; }
#fkWalkCard .fkw-back { background: #fff; color: #1F1F1C; border: 1px solid #D5D5CE; }
#fkWalkCard .fkw-skip { background: none; border: none; color: #6E6E68; text-decoration: underline; margin-left: auto; padding: 0; height: auto; font-size: 13px; }
body.fk-walk .notification { z-index: 100060; }

/* ---- Login ------------------------------------------------------------ */
.tm-screen[hidden] { display: none !important; }
.tm-login {
    min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px; background: linear-gradient(180deg, var(--ras-green) 0 220px, var(--ras-paper) 220px);
}
.tm-card {
    width: 100%; max-width: 420px; background: var(--ras-surface); border: 1px solid var(--ras-line);
    border-radius: var(--ras-radius); box-shadow: var(--ras-shadow-modal); padding: 26px 28px 28px;
}
.tm-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--ras-ink); }
.tm-brand svg { color: var(--ras-green); flex: none; }
.tm-brand .t { font-size: var(--ras-fs-xl); font-weight: 700; }
.tm-brand .s { font-size: var(--ras-fs-sm); color: var(--ras-muted); }
.tm-card h1 { font-size: var(--ras-fs-lg); margin: 0 0 4px; color: var(--ras-ink); }
.tm-card p { margin: 0 0 14px; color: var(--ras-muted); font-size: var(--ras-fs-base); line-height: 1.5; }
.tm-card .ras-field { margin-bottom: 12px; }
.tm-card .ras-input { width: 100%; box-sizing: border-box; }
.tm-code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 24px; letter-spacing: 8px; text-align: center; }
.tm-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.tm-link { background: none; border: 0; padding: 0; color: var(--ras-green); font: inherit; font-size: var(--ras-fs-base); cursor: pointer; text-decoration: underline; }
.tm-err { color: var(--ras-danger); background: var(--ras-danger-soft); border-radius: var(--ras-radius); padding: 8px 12px; margin-top: 12px; font-size: var(--ras-fs-base); }
.tm-err:empty { display: none; }
.tm-foot { margin-top: 18px; font-size: var(--ras-fs-xs); color: var(--ras-muted-soft); }

/* ---- Landing (behind the full-screen Task Manager) --------------------- */
.tm-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 22px; background: var(--ras-green); color: var(--ras-on-dark);
}
.tm-header .tm-brand { margin: 0; color: var(--ras-on-dark); }
.tm-header .tm-brand svg { color: var(--ras-on-dark); }
.tm-header .tm-brand .s { color: var(--ras-on-dark-muted); }
.tm-user { display: flex; align-items: center; gap: 12px; font-size: var(--ras-fs-base); }
.tm-user b { font-weight: 600; }
.tm-user .ras-btn { color: var(--ras-on-dark); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }
.tm-main { max-width: 760px; margin: 0 auto; padding: 32px 16px 60px; }
.tm-tile {
    display: flex; gap: 18px; align-items: flex-start; background: var(--ras-surface); border: 1px solid var(--ras-line);
    border-radius: var(--ras-radius); padding: 22px 24px; box-shadow: var(--ras-shadow-card);
}
.tm-tile .ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ras-green-soft); color: var(--ras-green); display: flex; align-items: center; justify-content: center; }
.tm-tile h2 { margin: 0 0 4px; font-size: var(--ras-fs-xl); color: var(--ras-ink); }
.tm-tile p { margin: 0 0 14px; color: var(--ras-muted); font-size: var(--ras-fs-base); line-height: 1.5; }
.tm-noaccess { margin-top: 16px; padding: 12px 14px; background: var(--ras-warn-soft); border: 1px solid #E8C35A; border-radius: var(--ras-radius); color: var(--ras-warn); font-size: var(--ras-fs-base); }
@media (max-width: 560px) { .tm-card { padding: 20px 18px 22px; } .tm-header { padding: 10px 14px; } .tm-user span { display: none; } }
