/* AI Team Tools — Strike AI style template 1.1 (strike-claude-plugins / strike-style).
   Tokens are copied verbatim from the plugin's tokens.css. Components follow its components.css. */

:root {
  /* surfaces */
  --background: #ffffff;
  --subtle: #fafafa;
  --card: #ffffff;
  --popover: #ffffff;
  --muted: #f5f5f5;

  /* text */
  --foreground: #0a0a0a;
  --text-secondary: #525252;
  --muted-foreground: #737373;
  --card-foreground: #0a0a0a;
  --popover-foreground: #0a0a0a;

  /* lines */
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --input: #e5e5e5;

  /* Strike navy: actions, and what is switched on */
  --primary: #1d518c;
  --primary-hover: #174173;
  --primary-tint: #e8eef5;
  --primary-foreground: #ffffff;
  --ring: #1d518c;
  --focus-ring: 0 0 0 3px color-mix(in srgb, #1d518c 30%, transparent);

  /* Strike red: the marker, and warnings */
  --destructive: #d13138;
  --destructive-text: #b02329;
  --destructive-tint: #fbeaea;
  --destructive-foreground: #ffffff;

  --secondary: #f5f5f5;
  --secondary-foreground: #171717;
  --accent: #f5f5f5;
  --accent-foreground: #171717;

  /* status */
  --success: #15803d;  --success-text: #166534;  --success-tint: #e9f6ee;
  --warning: #a16207;  --warning-text: #854d0e;  --warning-tint: #fdf4dc;

  /* charts (unused here, kept so the token set is complete) */
  --chart-1: #1d518c; --chart-2: #3f8fd9; --chart-3: #d2691e; --chart-4: #8d5fb3; --chart-5: #0b8a6f;
  --chart-other: #a3a3a3; --chart-grid: #e5e5e5;

  /* shape */
  --radius: 0.625rem;
  --radius-inner: 0.5rem;
  --radius-card: 0.875rem;
  --radius-pill: 9999px;

  /* depth */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);

  /* type */
  --font-body: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-logo: "Exo 2", "Arial Black", sans-serif;

  /* layout */
  --side-w: 250px;
  --side-w-collapsed: 60px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--subtle); color: var(--foreground); font: 14px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
button, input, select, textarea, a { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
:is(button, a, input, select, textarea):focus-visible { outline: none; border-color: var(--ring); box-shadow: var(--focus-ring); }

.shell { display: flex; min-height: 100vh; }

/* ---------- side menu ---------- */
.side {
  width: var(--side-w); flex-shrink: 0;
  background: var(--background); border-right: 1px solid var(--border);
  height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column;
  transition: width .15s;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
  z-index: 10;
}

/* brand bar: navy, logo in white, 3 px red bottom edge */
.side-head {
  position: relative;
  background: var(--primary); border-bottom: 3px solid var(--destructive);
  padding: 14px 44px 14px 16px; min-height: 64px;
  display: flex; align-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.brand-text { font-family: var(--font-logo); font-weight: 800; font-style: italic; font-size: 19px; line-height: 1; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.brand-text small { display: block; font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .8); margin-top: 3px; }
.collapse {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: var(--radius-inner);
  border: 0; background: transparent; color: rgb(255 255 255 / .85); font-size: 18px; line-height: 1;
}
.collapse:hover { background: rgb(255 255 255 / .14); color: #fff; }

.nav { padding: 6px 10px 8px; }
.nav-label { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); padding: 12px 12px 4px; }
.row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-top: 2px;
  border-radius: var(--radius-inner);
  color: var(--foreground); font-size: 14px; font-weight: 400;
}
.row:hover { background: var(--muted); text-decoration: none; }
.row.active { background: var(--muted); box-shadow: inset 3px 0 0 var(--destructive); font-weight: 500; }
.row-icon { width: 16px; height: 16px; display: inline-flex; color: var(--muted-foreground); flex-shrink: 0; }
.row-icon svg { width: 16px; height: 16px; }
.row.active .row-icon { color: var(--primary); }
.row-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-foot { margin-top: auto; padding: 10px; }
.foot-card { background: var(--subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.foot-label { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.foot-name { font-size: 14px; font-weight: 500; margin-top: 2px; }
.foot-mail { font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; }

.side.collapsed { width: var(--side-w-collapsed); }
.side.collapsed .side-head { padding: 12px 0 10px; flex-direction: column; gap: 6px; justify-content: center; }
.side.collapsed .brand-text, .side.collapsed .nav-label, .side.collapsed .row-text, .side.collapsed .side-foot { display: none; }
.side.collapsed .collapse { position: static; transform: none; }
.side.collapsed .nav { padding: 6px 8px; }
.side.collapsed .row { justify-content: center; padding: 8px 0; }

/* ---------- main ---------- */
.main { flex: 1; min-width: 0; padding: 24px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; border-left: 3px solid var(--destructive); padding-left: 10px; }
.page-head p { font-size: 14px; color: var(--text-secondary); margin: 8px 0 0 13px; max-width: 720px; }

/* ---------- tiles: the picture is the card (pattern from materials/WorkflowGrid.js) ---------- */
.section-title { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); margin: 8px 0 10px; }
.grid { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; align-items: stretch; }

.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-card); background: var(--primary-hover);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  color: #fff; text-decoration: none;
  transition: transform .42s cubic-bezier(.16,1,.3,1), box-shadow .42s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgb(11 13 16 / .35), var(--shadow-md); }
.tile:active { transform: translateY(0) scale(.995); }
.tile:focus-visible { outline: none; box-shadow: var(--focus-ring), var(--shadow-md); }
.tile.lg { width: 320px; height: 400px; }   /* 4:5 poster, like the materials grid */
.tile.sm { width: 200px; height: 250px; }

.tile-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s cubic-bezier(.16,1,.3,1);
}
.tile:hover .tile-photo { transform: scale(1.045); }
.tile-photo-fallback { display: flex; align-items: center; justify-content: center; color: rgb(255 255 255 / .9); }
.tile-photo-fallback svg { width: 56px; height: 56px; }
.tile-tint {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(11 13 16 / .86) 0%, rgb(11 13 16 / .4) 45%, rgb(11 13 16 / .08) 100%);
  transition: opacity .42s;
}
.tile:hover .tile-tint { opacity: .92; }

.tile-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18);
  backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18);
}
.chip.status.live  { background: color-mix(in srgb, var(--success) 55%, transparent); border-color: color-mix(in srgb, var(--success) 70%, white); }
.chip.status.beta  { background: color-mix(in srgb, var(--warning) 60%, transparent); border-color: color-mix(in srgb, var(--warning) 70%, white); }
.chip.status.pilot { background: color-mix(in srgb, var(--primary) 70%, transparent); border-color: color-mix(in srgb, var(--primary) 60%, white); }

.tile-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tile-text { min-width: 0; display: flex; flex-direction: column; }
.tile-name { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.08; color: #fff; }
.tile-desc { margin-top: 6px; font-size: 13px; line-height: 1.4; color: rgb(255 255 255 / .78); max-width: 28ch; }
.avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.puck {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 2px;
  display: grid; place-items: center; color: #fff;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(8px);
  transition: transform .42s cubic-bezier(.16,1,.3,1), background-color .42s, color .42s;
}
.puck svg { width: 14px; height: 14px; }
.tile:hover .puck { transform: translateX(4px); background: #fff; color: var(--foreground); }

/* small tile */
.tile.sm .tile-top { top: 10px; left: 10px; right: 10px; }
.tile.sm .chip { font-size: 10px; padding: 2px 7px; }
.tile.sm .tile-bottom { padding: 12px; }
.tile.sm .tile-name { font-size: 17px; }
.tile.sm .tile-desc { display: none; }
.tile.sm .tile.sm .tile.sm .tile.sm .puck { width: 28px; height: 28px; }
.tile.sm .puck svg { width: 12px; height: 12px; }

@media (prefers-reduced-motion: reduce) { .tile, .tile-photo, .puck, .tile-tint { transition: none; } }

.empty { color: var(--muted-foreground); font-size: 13px; padding: 24px 0; }

/* buttons */
.btn { height: 32px; padding: 0 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; background: var(--primary); color: var(--primary-foreground); }
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn.ghost { background: var(--background); color: var(--foreground); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn.ghost:hover { background: var(--muted); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* names in the admins table */
.admin-n { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-k { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.admin-e { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---------- admins table ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-xs); }
.table { width: 100%; min-width: 640px; border-collapse: collapse; }
.table th { font-size: 12px; font-weight: 500; color: var(--muted-foreground); text-align: left; background: var(--subtle); border-bottom: 1px solid var(--border); padding: 8px 12px; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:hover { background: color-mix(in srgb, var(--muted) 60%, transparent); }
.table tr:last-child td { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; background: var(--primary-tint); color: var(--primary); }
.chip:hover { text-decoration: none; background: color-mix(in srgb, var(--primary) 18%, white); }
.person { display: flex; align-items: center; gap: 10px; }

/* ---------- forms ---------- */
.form-page { max-width: 720px; margin: 0 auto; padding: 8px 0 48px; }
.form-page .page-head { margin-bottom: 18px; }
.info { background: var(--primary-tint); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); color: var(--primary); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.info b { color: var(--primary-hover); }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-xs); padding: 28px; transition: box-shadow .15s, border-color .15s; }
.form-card:focus-within { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.field .hint { font-size: 12px; color: var(--muted-foreground); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 14px; color: var(--foreground);
  height: 36px; padding: 0 12px; background: var(--background);
  border: 1px solid var(--input); border-radius: var(--radius);
}
.field textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-foreground); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ring); box-shadow: var(--focus-ring); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--destructive); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label {
  position: relative; font-size: 13px; font-weight: 500; color: var(--foreground);
  height: 32px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--background);
  display: inline-flex; gap: 7px; align-items: center; cursor: pointer; box-shadow: var(--shadow-xs);
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.radio-row label:hover { background: var(--muted); border-color: var(--border-strong); }
.radio-row label:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
.radio-row label:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.radio-row label:active { transform: scale(.97); }
.radio-row input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.radio-row label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted-foreground); transition: all .15s; }
.radio-row label:has(input:checked)::before { background: #fff; border-color: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--foreground); line-height: 1.5; cursor: pointer; }
.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
.form-foot { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.form-foot .note { font-size: 12px; color: var(--muted-foreground); }
.form-page .btn { height: 36px; padding: 0 16px; transition: background-color .15s, transform .15s, box-shadow .15s; }
.form-page .btn:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.form-page .btn:active { transform: translateY(0); box-shadow: none; }
.form-page .btn.sent { background: var(--success); }

/* reveal: the page rises in, then each field follows in order */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.form-page .reveal { animation: rise .35s cubic-bezier(.2,.7,.2,1) both; }
.form-page .reveal:nth-child(2) { animation-delay: .06s; }
.form-page .reveal:nth-child(3) { animation-delay: .12s; }
.form-page .field { animation: rise .35s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.18s + var(--i, 0) * .045s); }
@media (prefers-reduced-motion: reduce) {
  .form-page .reveal, .form-page .field { animation: none; }
  .form-page * { transition: none !important; }
}

/* toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--foreground); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 13px; box-shadow: var(--shadow-md); z-index: 50; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .tile.lg { width: 100%; height: 360px; }
  .tile.sm { width: calc(50% - 8px); }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
}
@media (max-width: 560px) {
  .main { padding: 16px; }
  .tile.sm { width: 100%; }
}
