/* S3 Media Agency theme. Palette and type taken from the S3M brand deck. */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/montserrat-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* brand */
  --s3-cyan: #19c3ec;        /* cover glow */
  --s3-petrol: #16303f;      /* cover background */
  --s3-charcoal: #2a2a2a;    /* slide background */
  --s3-slate: #33404f;       /* logo circle */
  --s3-orange: #ed7d31;
  --s3-yellow: #ffc000;
  --s3-blue: #4472c4;

  /* surfaces */
  --sidebar: #1f1f1f;
  --sidebar-glow: linear-gradient(180deg, #17384a 0%, rgba(23,56,74,0) 220px);
  --sidebar-text: #c6cacf;
  --sidebar-active: var(--s3-slate);
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #687078;
  --border: #e3e6e9;
  --hover: #f3f5f7;

  /* accents */
  --accent: var(--s3-cyan);
  --accent-ink: #0b1a22;              /* text on cyan */
  --accent-soft: rgba(25,195,236,.14);
  --link: #0877a7;                    /* cyan darkened for contrast on white */
  --badge: var(--s3-orange);
  --mention: rgba(255,192,0,.18);
  --mention-bar: var(--s3-yellow);
  --danger: #e5484d;
  --online: #3ccf7a;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sidebar: #181818; --sidebar-text: #c2c6cb;
    --bg: #222222; --surface: var(--s3-charcoal); --text: #ececec; --muted: #9ba1a7;
    --border: #383a3d; --hover: #2c2d2f; --link: #5fd6f5; --mention: rgba(255,192,0,.12);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: var(--font); font-size: 15px; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* shared controls */
.login-card input, .composer textarea, .channel-header input, .task-form input, .task-form select,
.task-item select, .task-item input[type=date], .canvas-editor {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.login-card input:focus, .composer textarea:focus, .channel-header input:focus, .task-form input:focus,
.task-form select:focus, .canvas-editor:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-primary, .login-card button, .composer button[type=submit], .task-form button {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius); padding: 10px 18px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px;
  transition: box-shadow .15s, filter .15s;
}
.btn-primary:hover, .login-card button:hover, .composer button[type=submit]:hover, .task-form button:hover {
  filter: brightness(1.08); box-shadow: 0 0 18px rgba(25,195,236,.45);
}
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.btn-secondary:hover { border-color: var(--accent); }
.error { color: var(--danger); font-size: 14px; min-height: 1em; }
.muted { color: var(--muted); font-size: 13px; }

/* login: cover-slide look */
.login {
  min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 24px 16px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 105%, rgba(25,195,236,.38), transparent 70%),
    linear-gradient(165deg, #1d3a4e 0%, var(--s3-petrol) 50%, #0d1820 100%);
}
.login-logo { width: min(300px, 70vw); height: auto; filter: drop-shadow(0 4px 24px rgba(0,0,0,.35)); }
.login-card {
  background: rgba(30,30,30,.92); color: #f2f2f2; padding: 32px; border-radius: 16px; width: min(380px, 92vw); display: grid; gap: 12px;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.login-card h1 { margin: 0 0 2px; font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
.login-card p { margin: 0 0 6px; color: #a9b0b6; font-size: 14px; font-weight: 300; }
.login-card input { padding: 11px 14px; background: #1a1a1a; border-color: #3a3a3a; color: #f2f2f2; }
.login-card button { padding: 12px 18px; margin-top: 4px; }

/* layout */
.app { display: flex; height: 100%; }
.sidebar {
  width: 260px; background: var(--sidebar-glow), var(--sidebar); color: var(--sidebar-text);
  display: flex; flex-direction: column; overflow-y: auto; flex-shrink: 0;
}
.workspace { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 16px 16px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.workspace button, .section-title button { background: none; border: 0; color: inherit; font-size: 18px; }
.workspace button { opacity: .6; }
.workspace button:hover { opacity: 1; }
.me { padding: 12px 16px 6px; font-size: 13px; display: flex; gap: 8px; align-items: center; color: #fff; font-weight: 600; }
.section-title {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 6px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #8d949b;
}
.section-title button:hover { color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0 8px; }
.list li { position: relative; padding: 6px 10px; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.list li:hover { background: rgba(255,255,255,.06); }
.list li.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.list li.active::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.list li.unread { color: #fff; font-weight: 700; }
.badge { margin-left: auto; background: var(--badge); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 800; line-height: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; flex-shrink: 0; }
.dot.online { background: var(--online); border-color: var(--online); }
.nav-list { padding-top: 4px; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.channel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.channel-header h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.topic { color: var(--muted); font-size: 12px; margin-top: 2px; }
.channel-header input { width: 240px; padding: 7px 12px; font-size: 13px; }

/* tabs */
.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 6px; padding: 0 20px; border-bottom: 1px solid var(--border); }
.tab {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 8px; margin-bottom: -1px;
  color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { background: var(--badge); color: #fff; border-radius: 8px; padding: 0 6px; font-size: 10px; margin-left: 2px; }
.tab-count:empty { display: none; }

/* messages */
.messages { flex: 1; overflow-y: auto; padding: 12px 0; }
.msg { display: flex; gap: 12px; padding: 6px 20px; position: relative; }
.msg:hover { background: var(--hover); }
.msg.mention { background: var(--mention); box-shadow: inset 3px 0 0 var(--mention-bar); }
.msg.grouped { padding-top: 1px; }
.msg.grouped .avatar { visibility: hidden; height: 0; }
.avatar { width: 36px; height: 36px; border-radius: 9px; color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; font-size: 15px; }
.msg-body { min-width: 0; flex: 1; }
.msg-meta { display: flex; gap: 8px; align-items: baseline; }
.msg-meta strong { font-size: 14px; font-weight: 800; }
.msg-meta time, .edited { color: var(--muted); font-size: 11px; }
.msg-text { white-space: pre-wrap; word-wrap: break-word; line-height: 1.5; font-size: 14.5px; }
.msg-text .at, .canvas-view .at { background: var(--accent-soft); color: var(--link); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.msg-text code, .canvas-view code { background: var(--hover); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; font-size: 12.5px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.msg-text a, .canvas-view a { color: var(--link); }
.reactions { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.reaction { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px; padding: 0 8px; font-size: 12px; }
.reaction.mine { border-color: var(--accent); background: var(--accent-soft); }
.replies-link { color: var(--link); background: none; border: 0; padding: 0; font-size: 12px; font-weight: 700; margin-top: 4px; }
.actions { position: absolute; right: 16px; top: -12px; display: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.msg:hover .actions { display: flex; }
.actions button { background: none; border: 0; padding: 4px 6px; border-radius: 6px; color: var(--text); }
.actions button:hover { background: var(--hover); }
.day-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 14px 20px; }
.day-divider::before, .day-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.typing { height: 18px; padding: 0 20px; font-size: 12px; color: var(--muted); font-style: italic; }
.composer { display: flex; gap: 8px; padding: 0 20px 16px; }
.composer textarea { flex: 1; resize: none; max-height: 160px; padding: 10px 14px; }
.composer .attach-btn { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; font-size: 18px; color: var(--text); }
.composer .attach-btn:hover { border-color: var(--accent); }

/* side panels */
.thread { width: 380px; border-left: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; background: var(--bg); }
.thread-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.thread-header h3 { margin: 0; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.thread-header button { background: none; border: 0; color: var(--muted); font-size: 16px; }
.thread-header button:hover { color: var(--text); }
.thread-parent { border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 8px; }
.search-hit { cursor: pointer; }
.search-hit .channel-tag { color: var(--muted); font-size: 11px; }

/* canvas */
.canvas-toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.banner { margin: 0 20px 8px; padding: 8px 12px; border-radius: var(--radius); background: var(--mention); border-left: 3px solid var(--mention-bar); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.canvas-editor { flex: 1; margin: 0 20px 16px; padding: 16px; resize: none; font: 13.5px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; }
.canvas-view { flex: 1; overflow-y: auto; padding: 4px 32px 32px; line-height: 1.65; max-width: 820px; font-size: 15px; }
.canvas-view h1 { font-size: 30px; font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.1; margin: 18px 0 10px; }
.canvas-view h2 { font-size: 19px; font-weight: 800; margin: 20px 0 6px; }
.canvas-view h2::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--accent); }
.canvas-view h3 { font-size: 15px; font-weight: 800; margin: 14px 0 4px; }
.canvas-view p { margin: 6px 0; }
.canvas-view strong { font-weight: 800; }
.canvas-view ul, .canvas-view ol { margin: 4px 0; padding-left: 24px; }
.canvas-view li::marker { color: var(--s3-orange); font-weight: 800; }
.canvas-view li.check { list-style: none; margin-left: -20px; }
.canvas-view li.check input { accent-color: var(--accent); }
.canvas-view li.check.done > span { text-decoration: line-through; color: var(--muted); }
.canvas-view blockquote { margin: 10px 0; padding: 4px 14px; border-left: 3px solid var(--s3-orange); color: var(--muted); font-style: italic; }
.canvas-view hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.canvas-empty { color: var(--muted); padding: 24px 0; }

/* tasks */
.task-form { display: flex; gap: 8px; padding: 14px 20px; flex-wrap: wrap; }
.task-form input, .task-form select { padding: 8px 12px; }
.task-form #task-title { flex: 1; min-width: 180px; }
.task-form button { padding: 8px 18px; }
.task-filters { display: flex; gap: 16px; padding: 0 20px 8px; font-size: 13px; color: var(--muted); }
.task-filters input { accent-color: var(--accent); }
.task-list { list-style: none; margin: 0; padding: 0 12px 16px; overflow-y: auto; flex: 1; }
.task-item { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; border-bottom: 1px solid var(--border); }
.task-item:hover { background: var(--hover); }
.task-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.task-title { flex: 1; min-width: 0; cursor: text; word-break: break-word; font-weight: 600; font-size: 14px; }
.task-item.done .task-title { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.task-item select, .task-item input[type=date] { padding: 3px 6px; font-size: 12px; border-radius: 6px; }
.task-item .overdue, .task-item input.overdue { border-color: var(--danger); color: var(--danger); }
.task-item .del { background: none; border: 0; color: var(--muted); font-size: 15px; }
.task-item .del:hover { color: var(--danger); }
.task-meta { font-size: 11px; color: var(--muted); font-weight: 400; }
.task-empty { color: var(--muted); padding: 24px 8px; text-align: center; }
.my-task .task-title { cursor: pointer; }

/* attachments */
.attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 8px; }
.chip { position: relative; overflow: hidden; display: flex; align-items: center; gap: 6px; max-width: 260px;
  border: 1px solid var(--border); border-radius: 8px; padding: 4px 6px 4px 10px; font-size: 12px; background: var(--surface); }
.chip.error { border-color: var(--danger); color: var(--danger); }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chip-meta { color: var(--muted); flex-shrink: 0; }
.chip.error .chip-meta { color: var(--danger); }
.chip-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); box-shadow: 0 0 6px var(--accent); transition: width .15s; }
.chip button { background: none; border: 0; color: var(--muted); padding: 0 2px; }
.dropping { outline: 2px dashed var(--accent); outline-offset: -6px; background: var(--accent-soft); }
.files { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.file-images { display: flex; flex-wrap: wrap; gap: 6px; }
.file-images img { max-width: 360px; max-height: 240px; border-radius: var(--radius); border: 1px solid var(--border); display: block; object-fit: cover; }
.file-card { display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); text-decoration: none; background: var(--surface); transition: border-color .15s; }
.file-card:hover { border-color: var(--accent); }
.file-icon { font-size: 22px; }
.file-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: 11px; }
.file-dl { color: var(--accent); font-weight: 800; }
.thread .file-images img { max-width: 100%; }

/* branding */
.brand-logo { width: 150px; height: auto; display: block; }

/* mobile-only controls (hidden on desktop) */
.icon-btn {
  position: relative; display: none; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
  background: none; border: 0; border-radius: 10px; color: var(--text);
}
.icon-btn:active { background: var(--hover); }
.menu-dot { position: absolute; top: 7px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--badge); border: 2px solid var(--bg); }
.drawer-backdrop { display: none; }
.channel-title { min-width: 0; flex: 1; }
.msg.show-actions .actions { display: flex; }

/* ---------- phones & small tablets ---------- */
@media (max-width: 760px) {
  html, body { font-size: 15px; }
  .app { height: 100dvh; }

  /* sidebar becomes an off-canvas drawer */
  .sidebar {
    position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: min(300px, 84vw);
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: none;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  }
  .app.drawer-open .sidebar { transform: none; box-shadow: 12px 0 40px rgba(0,0,0,.35); }
  .drawer-backdrop {
    display: block; position: fixed; inset: 0; z-index: 25; background: rgba(8,14,20,.55);
    opacity: 0; pointer-events: none; transition: opacity .22s ease;
  }
  .app.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .list li { padding: 10px 12px; font-size: 15px; }   /* bigger touch targets */
  .section-title button { width: 36px; height: 36px; }

  /* header: menu · title · search */
  .icon-btn { display: grid; }
  .channel-header { gap: 4px; padding: 8px 8px 8px 6px; padding-top: max(8px, env(safe-area-inset-top)); flex-wrap: wrap; }
  .channel-header h2 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topic { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .channel-header input { display: none; }
  .channel-header.search-open input { display: block; order: 10; flex-basis: 100%; width: 100%; margin: 4px 2px 2px; }
  .channel-header.search-open #search-btn { color: var(--accent); }

  .tabs { padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
  .tab { padding: 11px 10px; flex-shrink: 0; }

  /* messages */
  .msg { padding: 6px 12px; gap: 10px; }
  .actions { right: 10px; top: -16px; }
  .actions button { padding: 7px 9px; font-size: 16px; }
  .day-divider { margin: 12px; }
  .file-images img { max-width: 100%; max-height: 260px; }
  .file-card { max-width: 100%; }

  /* composer: iOS zooms into inputs under 16px */
  .composer { gap: 6px; padding: 0 8px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .composer textarea, .channel-header input, .task-form input, .task-form select, .login-card input { font-size: 16px; }
  .composer textarea { padding: 9px 12px; }
  .composer button[type=submit] { padding: 0 14px; }
  .composer .attach-btn { padding: 0 10px; }
  .attachments, .typing { padding-left: 12px; padding-right: 12px; }

  /* side panels cover the screen */
  .thread { position: fixed; inset: 0; width: auto; z-index: 20; padding-top: env(safe-area-inset-top); }
  .thread-header { padding: 12px; }
  .thread-header button { width: 40px; height: 40px; font-size: 20px; }

  /* canvas */
  .canvas-toolbar { padding: 10px 12px; flex-wrap: wrap; }
  .canvas-view { padding: 4px 16px 24px; }
  .canvas-view h1 { font-size: 24px; }
  .canvas-editor { margin: 0 8px 8px; }
  .banner { margin: 0 8px 8px; }

  /* tasks: title on its own line, controls underneath */
  .task-form { padding: 10px 8px; }
  .task-form #task-title { flex-basis: 100%; }
  .task-form select, .task-form input[type=date] { flex: 1; min-width: 0; }
  .task-form button { flex-basis: 100%; padding: 11px; }
  .task-filters { padding: 0 12px 8px; gap: 12px; flex-wrap: wrap; }
  .task-list { padding: 0 4px 16px; }
  .task-item { flex-wrap: wrap; row-gap: 6px; }
  .task-title { flex-basis: calc(100% - 40px); }
  .task-item select { margin-left: 28px; flex: 1; min-width: 0; }
  .task-item input[type=date] { flex: 1; min-width: 0; }

  /* login */
  .login { gap: 24px; }
  .login-card { padding: 24px; }
}

/* login extras */
.ms-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border-radius: var(--radius);
  background: #fff; color: #1f1f1f; text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid #d0d0d0;
}
.ms-btn:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.login-divider { display: flex; align-items: center; gap: 10px; color: #8d949b; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: #3a3a3a; }
.login-hint { margin: 0; color: #8d949b; font-size: 12px; text-align: center; }

/* admin panel */
.admin-body { overflow-y: auto; padding: 4px 16px 24px; }
.admin-section { padding: 12px 0; border-bottom: 1px solid var(--border); }
.admin-section h4 { margin: 0 0 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.admin-section .muted { margin: 0 0 10px; }
.invite-form { display: flex; gap: 6px; flex-wrap: wrap; }
.invite-form input, .invite-form select, .invite-result input, .admin-row select {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text);
}
.invite-form input { flex: 1; min-width: 140px; }
.invite-form .btn-primary { padding: 8px 14px; flex-basis: 100%; }
.invite-result { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding: 10px; border-radius: var(--radius); background: var(--accent-soft); }
.invite-result input { flex: 1; min-width: 0; font-size: 12px; }
.invite-result .muted { flex-basis: 100%; margin: 2px 0 0; font-size: 12px; }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.admin-row:last-child { border-bottom: 0; }
.admin-row.disabled strong { color: var(--muted); text-decoration: line-through; }
.admin-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px; }
.admin-row-main .muted { margin: 0; font-size: 11px; }
.status { font-size: 11px; font-weight: 700; }
.status.pending { color: var(--s3-orange); }
.status.ok { color: var(--online); }
.status.off { color: var(--muted); }
.btn-secondary.danger:hover { border-color: var(--danger); color: var(--danger); }
