/* Northwake — additions to theme.css for the PHP-rendered pages.
   Keep tiny: theme.css owns the visual direction. */

.nw-flash {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    border-left: 4px solid var(--cerulean);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.nw-flash-info    { border-color: var(--cerulean); }
.nw-flash-danger  { border-color: var(--punch); color: var(--punch); }
.nw-flash-ok      { border-color: oklch(0.6 0.14 160); }

.nw-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
}
.nw-role-badge {
    background: var(--frosted-tint);
    color: var(--cerulean);
    border-radius: var(--r-pill);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.nw-form-row {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}
.nw-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Simple agenda grid used by planning.php */
.nw-agenda {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    gap: 4px;
    margin-top: 12px;
}
.nw-agenda-head {
    font-size: 12px;
    color: var(--ink-mute);
    font-weight: 700;
}
.nw-agenda-cell {
    height: 32px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    text-decoration: none;
}
.nw-agenda-cell:hover { border-color: var(--cerulean); color: var(--cerulean); }
.nw-agenda-cell.filled { background: var(--frosted-tint); color: var(--cerulean); }
.nw-agenda-cell.blocked {
    cursor: not-allowed;
    color: var(--ink-mute);
    background-image: repeating-linear-gradient(45deg, transparent 0 4px, var(--line-soft) 4px 6px);
}

/* Lightweight modal dialog rendered server-side. */
.nw-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(29, 53, 87, 0.4);
    backdrop-filter: blur(6px);
    display: grid; place-items: center;
    padding: 20px; z-index: 100;
}
.nw-modal {
    background: var(--surface);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    max-width: 540px; width: 100%;
}

/* No-JS approach: server status badges via CSS only. */
.status-orange { color: oklch(0.55 0.14 70); }
.status-blue   { color: var(--cerulean); }
.status-green  { color: oklch(0.55 0.14 160); }
.status-red    { color: var(--punch); }
