/* Slack components. Study copy for our team, not for shipping; Slack's design belongs to Slack.
   Two kinds of rule, marked in comments:
   - "Slack Kit": copied from Slack's own public stylesheet (buttons, inputs, menus, tabs, tooltips, dialogs, toasts, avatars, badges).
   - "measured": the app frame (window, rail, sidebar, channel, messages, composer) is only in the signed-in app,
     so it is measured from Slack's own product screenshots. Those show the app about 1.6x larger than normal;
     the 1x values below are the measurements divided by 1.6 (est.). */

/* ---------- base ---------- */
.sk-root { font-family: var(--font-family-slack); font-size: var(--dt_static_type-size-base); line-height: 1.46668; color: var(--dt_color-content-pry);
  -webkit-font-smoothing: antialiased; font-variant-ligatures: common-ligatures; }
.sk-i { width: 20px; height: 20px; flex: none; fill: currentColor; display: inline-block; vertical-align: middle; }
.sk-mask { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; background: currentColor; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }

/* ---------- Slack Kit: buttons (c-button) ---------- */
.c-button { --sk_button-styles-radius: 4px; -webkit-user-select: none; user-select: none; cursor: pointer; border-radius: var(--sk_button-styles-radius); text-align: center; white-space: nowrap; appearance: none;
  border: none; outline: none; justify-content: center; align-items: center; text-decoration: none; font: inherit;
  transition-property: color, background-color, border-color; transition-duration: var(--dt_static_transition-duration-short); transition-timing-function: var(--dt_static_transition-ease-default); display: inline-flex; position: relative; gap: 6px; }
.c-button--small { min-width: 56px; height: 28px; padding: 0 12px 1px; font-size: 13px; }
.c-button--medium { --sk_button-styles-radius: 8px; min-width: 80px; height: 36px; padding: 0 12px 1px; font-size: 15px; }
.c-button--large { --sk_button-styles-radius: 12px; font-size: 18px; font-weight: 700; min-width: 96px; height: 44px; padding: 0 16px 3px; }
.c-button--primary { background-color: var(--dt_color-base-inv-hgl-2); color: var(--dt_color-constants-white); font-weight: 700; box-shadow: none; }
.c-button--primary:hover, .c-button--primary.is-hover { background-blend-mode: var(--dt_blend-mode-interaction); background-image: linear-gradient(var(--dt_color-base-inv-hgl-2-hover), var(--dt_color-base-inv-hgl-2-hover)); box-shadow: var(--dt_static_shadow-base); }
.c-button--primary:active, .c-button--primary.is-active { background-image: linear-gradient(var(--dt_color-base-inv-hgl-2-pressed), var(--dt_color-base-inv-hgl-2-pressed)); background-blend-mode: var(--dt_blend-mode-interaction); box-shadow: none; }
.c-button--danger { background-color: var(--dt_color-base-inv-imp); color: var(--dt_color-constants-white); font-weight: 700; }
.c-button--danger:hover, .c-button--danger.is-hover { background-blend-mode: var(--dt_blend-mode-interaction); background-image: linear-gradient(var(--dt_color-base-inv-imp-hover), var(--dt_color-base-inv-imp-hover)); box-shadow: var(--dt_static_shadow-base); }
.c-button--danger:active, .c-button--danger.is-active { background-image: linear-gradient(var(--dt_color-base-inv-imp-pressed), var(--dt_color-base-inv-imp-pressed)); background-blend-mode: var(--dt_blend-mode-interaction); box-shadow: none; }
.c-button--outline { background-color: var(--dt_color-base-pry); border: 1px solid var(--dt_color-otl-sec); color: var(--dt_color-content-pry); font-weight: 700; background-clip: padding-box; }
.c-button--outline:hover, .c-button--outline.is-hover { background-color: var(--dt_color-base-sec); box-shadow: var(--dt_static_shadow-base); }
.c-button--outline:active, .c-button--outline.is-active { background-color: var(--dt_color-base-sec); box-shadow: none; }
.c-button--ghost { color: var(--dt_color-content-pry); font-weight: 700; background-color: transparent; }
.c-button--ghost:hover, .c-button--ghost.is-hover { background-color: var(--dt_color-base-sec); }
.c-button--ghost:active, .c-button--ghost.is-active { background-color: var(--dt_color-surf-pry); }
.c-button--disabled, .c-button:disabled { box-shadow: none; background: var(--dt_color-base-ter); color: var(--dt_color-content-sec); cursor: default; pointer-events: none; border-color: transparent; }
.c-button:focus-visible, .c-button.is-focus { box-shadow: var(--dt_static_shadow-a11y); outline: none; }

/* ---------- Slack Kit: text input ---------- */
.c-input_text { border-radius: var(--sk_input_styles-radius, 8px); border: 1px solid var(--dt_color-otl-pry); box-sizing: border-box; width: 100%; height: 36px; color: var(--dt_color-content-pry);
  background-color: var(--dt_color-base-pry); padding: 4px 12px; font: inherit; font-size: 15px; line-height: normal; transition: border 80ms ease-out, box-shadow 80ms ease-out; }
.c-input_text::placeholder { color: var(--dt_color-content-ter); }
.c-input_text:focus, .c-input_text.is-focus { box-shadow: var(--dt_static_shadow-a11y); border-color: transparent; outline: none; }
.c-input_text[disabled] { background: var(--dt_color-ctr-sec); border: 1px solid var(--dt_color-otl-sec); }

/* ---------- Slack Kit: menu (c-menu), copied from Slack's stylesheet ---------- */
.c-menu { box-shadow: 0 0 0 1px rgba(29, 28, 29, .13), 0 4px 12px 0 #0000001f; background-color: var(--dt_color-ctr-pry); user-select: none; z-index: 1012; border-radius: 4px; width: 300px; min-width: 200px; max-width: 100%; padding: .1px 0; overflow-y: auto; }
.c-menu__items { margin: 0; padding: 12px 0; list-style: none; }
.c-menu_item__header { font-size: 13px; line-height: 1.38463; color: var(--dt_color-content-sec); padding: 4px 24px; }
.c-menu_item__button { color: var(--dt_color-content-pry); font: inherit; cursor: pointer; text-align: left; text-overflow: ellipsis; white-space: nowrap; background: 0 0; border: 0; border-radius: 0; align-items: center; width: 100%; min-height: 28px; padding: 0 24px; font-size: 15px; line-height: 28px; text-decoration: none; display: flex; overflow: hidden; }
.c-menu_item__button:focus { outline: none; }
.c-menu_item__icon { text-align: center; width: 20px; color: var(--dt_color-content-pry); flex-shrink: 0; margin-right: 8px; }
.c-menu_item__shortcut { color: var(--dt_color-content-ter); margin-left: auto; padding-left: 8px; font-size: 13px; }
.c-menu_item__button--highlighted, .c-menu_item__button:hover, .c-menu_item__button:focus-visible { background-color: var(--sk_menu-item_highlight-background, #1264a3); color: var(--dt_color-content-inv-pry); }
.c-menu_item__button--highlighted .c-menu_item__icon, .c-menu_item__button:hover .c-menu_item__icon, .c-menu_item__button:focus-visible .c-menu_item__icon,
.c-menu_item__button:hover .c-menu_item__shortcut, .c-menu_item__button:focus-visible .c-menu_item__shortcut { color: var(--dt_color-content-inv-pry); }
.c-menu_item__button--danger { color: var(--dt_color-content-imp); }
.c-menu_item__button--danger:hover, .c-menu_item__button--danger:focus-visible { color: var(--dt_color-content-inv-pry); background-color: var(--dt_color-base-inv-imp); }
.c-menu_item__separator { height: 1px; margin: 8px 0; background: var(--dt_color-otl-ter); }

/* ---------- Slack Kit: tooltip (c-tooltip__tip), copied from Slack's stylesheet ---------- */
.c-tooltip__tip { --background: var(--dt_color-base-inv-pry); font-size: 13px; line-height: 1.38463; color: var(--dt_color-content-inv-pry); background-color: var(--background); max-width: 200px; font-weight: 700; text-align: center; overflow-wrap: break-word; border-radius: 8px; padding: 8px 12px; display: inline-block; position: relative; }

/* ---------- reactions: Slack's product-picture stylesheet (rollup-style-product-uis-custom), real values ---------- */
.sk-reaction { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: 12px; background: rgba(29, 28, 29, .04);
  font: inherit; font-size: 11px; line-height: 16px; color: var(--dt_color-content-pry); cursor: pointer; white-space: nowrap; transition: background-color var(--dt_static_transition-duration-short) ease, border-color var(--dt_static_transition-duration-short) ease; }
.sk-reaction .e { font-size: 14px; line-height: 1; }
.sk-reaction:hover { background: var(--dt_color-base-ter); border-color: var(--dt_color-otl-sec); }
.sk-reaction.is-mine { background: rgba(5, 118, 185, .05); border-color: rgba(5, 118, 185, .3); color: #0576b9; font-weight: 700; } /* Slack's "c-reaction--reacted" */
.sk-reaction:focus-visible { outline: none; box-shadow: var(--dt_static_shadow-a11y); }
.sk-dark .sk-reaction { background: rgba(255, 255, 255, .06); }
.sk-dark .sk-reaction.is-mine { background: rgba(29, 155, 209, .15); border-color: rgba(29, 155, 209, .5); color: #1d9bd1; }

/* ---------- messages (measured on Slack's screenshots; 1x sizes = measured / 1.57, est.) ---------- */
.sk-msg { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; padding: 8px 20px; transition: background-color var(--dt_static_transition-duration-short) ease; }
.sk-msg:hover, .sk-msg.is-hover { background: var(--dt_color-base-sec); }
.sk-msg .av { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.sk-msg .who { font-weight: 900; font-size: 15px; } .sk-msg .when { margin-left: 4px; font-size: 12px; color: var(--dt_color-content-sec); }
.sk-msg .txt { font-size: 15px; line-height: 1.46668; overflow-wrap: anywhere; }
.sk-msg .reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sk-mention { color: var(--dt_color-content-hgl-1); background: var(--dt_color-base-hgl-1); border-radius: 3px; padding: 0 2px; }
.sk-msg-actions { position: absolute; right: 20px; top: -14px; display: none; gap: 2px; padding: 2px; border-radius: 8px; background: var(--dt_color-ctr-pry); box-shadow: 0 0 0 1px var(--dt_color-otl-ter), var(--dt_static_shadow-sm); }
.sk-msg:hover .sk-msg-actions, .sk-msg:focus-within .sk-msg-actions, .sk-msg.is-hover .sk-msg-actions { display: flex; }
.sk-msg-actions button { width: 32px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: var(--dt_color-content-sec); display: grid; place-items: center; cursor: pointer; }
.sk-msg-actions button:hover { background: var(--dt_color-base-sec); color: var(--dt_color-content-pry); }
.sk-msg-actions button:focus-visible { outline: none; box-shadow: var(--dt_static_shadow-a11y); }
.sk-msg-actions .sk-i { width: 18px; height: 18px; }
.sk-day { display: flex; align-items: center; margin: 12px 0; font-size: 13px; font-weight: 700; }
.sk-day::before, .sk-day::after { content: ""; flex: 1; height: 1px; background: var(--dt_color-otl-ter); }
.sk-day span { padding: 4px 16px; border: 1px solid var(--dt_color-otl-ter); border-radius: 24px; background: var(--dt_color-base-pry); } /* Slack's "c-message--date": 1px #ddd edge, round, bold */

/* ---------- sidebar rows (new design, measured, est. at 1x) ---------- */
.sk-side { background: var(--sl-window); color: var(--sl-sidebar-text); }
.sk-row { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px 0 16px; margin: 0 8px; border-radius: 6px; color: var(--sl-sidebar-text-muted); font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; }
.sk-row:hover { background: var(--sl-sidebar-veil); }
.sk-row.is-active { background: var(--sl-sidebar-selected); color: #fff; }
.sk-row.is-unread { color: #fff; font-weight: 900; }
.sk-row .sk-i { width: 16px; height: 16px; flex: none; }
.sk-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff; }
.sk-row .sk-badge { margin-left: auto; }
.sk-sec-head { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 16px; margin: 8px 8px 0; color: var(--sl-sidebar-text-muted); font-size: 15px; cursor: pointer; border-radius: 6px; }
.sk-sec-head:hover { background: var(--sl-sidebar-veil); }

/* ---------- badge, avatar, presence ---------- */
.sk-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--dt_color-base-inv-imp); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.sk-avatar { position: relative; display: inline-block; flex: none; }
.sk-avatar img, .sk-avatar .ini { display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }
.sk-avatar .ini { display: grid; place-items: center; background: rgb(var(--dt_color-plt-aubergine-70)); color: #fff; font-weight: 700; }
.sk-presence { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--dt_color-base-inv-hgl-2); box-shadow: 0 0 0 2px var(--dt_color-base-pry); }
.sk-presence.away { background: var(--dt_color-base-pry); box-shadow: 0 0 0 2px var(--dt_color-base-pry), inset 0 0 0 1.5px var(--dt_color-content-sec); }

/* ---------- message box (composer), measured ---------- */
.sk-composer { border: 1px solid var(--dt_color-otl-pry); border-radius: 8px; background: var(--dt_color-base-pry); transition: border-color var(--dt_static_transition-duration-short) ease, box-shadow var(--dt_static_transition-duration-short) ease; }
.sk-composer:focus-within { border-color: var(--dt_color-otl-sec); box-shadow: var(--dt_static_shadow-base); }
.sk-composer .field { display: block; width: 100%; box-sizing: border-box; min-height: 40px; max-height: 140px; padding: 10px 12px 4px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; line-height: 1.46668; color: var(--dt_color-content-pry); resize: none; }
.sk-composer .field::placeholder { color: var(--dt_color-content-ter); }
.sk-composer .tools { display: flex; align-items: center; gap: 2px; padding: 4px 6px 6px; }
.sk-composer .tools button { width: 28px; height: 28px; border: 0; border-radius: 4px; background: transparent; color: var(--dt_color-content-sec); display: grid; place-items: center; cursor: pointer; }
.sk-composer .tools button:hover { background: var(--dt_color-base-sec); color: var(--dt_color-content-pry); }
.sk-composer .tools button:focus-visible { outline: none; box-shadow: var(--dt_static_shadow-a11y); }
.sk-composer .tools .sk-i { width: 18px; height: 18px; }
.sk-composer .tools .send { margin-left: auto; width: 32px; color: var(--dt_color-content-ter); }
.sk-composer .tools .send.on { background: var(--dt_color-base-inv-hgl-2); color: #fff; } /* Slack's green send button once there is text */

/* ---------- tabs (channel header tabs: Messages, Canvas, Files), measured, est. ---------- */
.sk-tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--dt_color-otl-ter); }
.sk-tab { height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--dt_color-content-sec); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow var(--dt_static_transition-duration-short) ease, color var(--dt_static_transition-duration-short) ease; }
.sk-tab:hover { color: var(--dt_color-content-pry); }
.sk-tab[aria-selected="true"] { color: var(--dt_color-content-pry); box-shadow: inset 0 -2px 0 rgb(var(--dt_color-plt-aubergine-70)); }
.sk-dark .sk-tab[aria-selected="true"] { box-shadow: inset 0 -2px 0 rgb(var(--dt_color-plt-aubergine-30)); }
.sk-tab:focus-visible { outline: none; box-shadow: var(--dt_static_shadow-a11y); border-radius: 4px; }

/* ---------- dialog and toast (sizes from Slack's help-centre pictures, est.) ---------- */
.sk-scrim { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(0, 0, 0, .5); }
.sk-dialog { width: min(520px, calc(100vw - 32px)); border-radius: 12px; background: var(--dt_color-base-pry); color: var(--dt_color-content-pry); box-shadow: var(--dt_static_shadow-2xl); }
.sk-dialog h3 { margin: 0; padding: 20px 28px 0; font-size: 22px; font-weight: 900; }
.sk-dialog p { margin: 0; padding: 12px 28px 0; font-size: 15px; line-height: 1.46668; }
.sk-dialog .btns { display: flex; justify-content: flex-end; gap: 12px; padding: 24px 28px; }
.sk-toast { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; border-radius: 8px; background: var(--dt_color-base-inv-pry); color: var(--dt_color-content-inv-pry); font-size: 15px; box-shadow: var(--dt_static_shadow-lg); }
.sk-toast button { border: 0; background: transparent; color: var(--dt_color-content-inv-pry); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

@media (prefers-reduced-motion: reduce) { .sk-msg, .sk-reaction, .sk-tab, .sk-composer, .c-button { transition: none; } }
