* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #e0e0e0; background: #111; line-height: 1.6; }

/* header */
header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; border-bottom: 1px solid #333; }
header h1 { font-size: 1.25rem; color: #fff; }
header h1 a { background: none; padding: 0; color: #fff; }
header a { text-decoration: none; color: #fff; background: #333; padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.875rem; }

/* nav */
nav { display: flex; gap: 1rem; align-items: center; }
nav a { text-decoration: none; color: #888; font-size: 0.875rem; background: none; padding: 0; }
nav a.active { color: #fff; font-weight: 600; }

/* footer */
footer { text-align: center; padding: 2rem; color: #555; font-size: 0.8rem; border-top: 1px solid #333; margin-top: 4rem; }

/* toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
.toolbar h2 { font-size: 1.25rem; color: #fff; }
.toolbar a { text-decoration: none; color: #fff; background: #333; padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.875rem; }

/* table */
table { width: 100%; border-collapse: collapse; }
thead { background: #1a1a1a; }
th, td { text-align: left; padding: 0.75rem 2rem; border-bottom: 1px solid #222; font-size: 0.875rem; }
th { color: #888; }
tr.mine { background: #1a2332; }

/* status badges */
.status { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.status.active { background: #14532d; color: #4ade80; }
.status.creating { background: #1e3a5f; color: #60a5fa; }
.status.queued { background: #333; color: #999; }
.status.running { background: #1e3a5f; color: #60a5fa; }
.status.completed { background: #14532d; color: #4ade80; }
.status.failed { background: #450a0a; color: #f87171; }

/* actions */
.actions button { background: none; border: 1px solid #444; color: #ccc; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; cursor: pointer; margin-right: 0.25rem; }

/* content sections */
.content { max-width: 700px; margin: 0 auto; padding: 2rem; }
.section { margin-bottom: 2rem; }
.section h2 { font-size: 1.125rem; color: #fff; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #333; }

/* fields */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.75rem; color: #666; text-transform: uppercase; margin-bottom: 0.25rem; }
.field span { font-size: 0.9rem; }

/* cards */
.org-card { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border: 1px solid #333; border-radius: 6px; margin-bottom: 0.5rem; }
.org-card .org-name { font-weight: 600; font-size: 0.9rem; }
.org-card .org-role { font-size: 0.75rem; color: #666; }

.invite-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border: 1px solid #333; border-radius: 6px; margin-bottom: 0.5rem; background: #1a1a00; }
.invite-row .invite-info { font-size: 0.875rem; }
.invite-row .invite-actions { display: flex; gap: 0.5rem; }

/* buttons */
button { border: 1px solid #444; background: #222; color: #ccc; padding: 0.4rem 0.75rem; border-radius: 4px; font-size: 0.8rem; cursor: pointer; }
button.primary { background: #e0e0e0; color: #111; border-color: #e0e0e0; }
button.danger { background: #222; color: #f87171; border-color: #7f1d1d; }

/* forms */
.inline-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.inline-form input { flex: 1; padding: 0.4rem 0.75rem; border: 1px solid #444; border-radius: 4px; font-size: 0.8rem; background: #1a1a1a; color: #e0e0e0; }

/* index page */
.hero { text-align: center; padding: 4rem 2rem; }
.hero h2 { font-size: 2rem; margin-bottom: 1rem; color: #fff; }
.hero p { font-size: 1.125rem; color: #888; max-width: 600px; margin: 0 auto 2rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; padding: 2rem; max-width: 900px; margin: 0 auto; }
.feature { padding: 1.5rem; border: 1px solid #333; border-radius: 8px; }
.feature h3 { margin-bottom: 0.5rem; color: #fff; }
.feature p { color: #888; font-size: 0.9rem; }
