:root {
  color-scheme: light;
  --rail: #ededee;
  --side: #f6f6f6;
  --chat: #fff;
  --field: #fafafa;
  --line: #dfdfe1;
  --text: #242426;
  --body: #363638;
  --muted: #58585c;
  --dim: #67676c;
  --brand: #48484c;
  --accent: #414145;
  --hover: #ececee;
  --selected: #e4e4e7;
  --control-border: #bcbcc0;
  --focus: #64646a;
  --on-accent: #fff;
  --font-system:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-gothic: "gg sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --font-serif:
    "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --font-rounded: "Noter Rounded", "Hiragino Maru Gothic ProN", sans-serif;
  --font-mono:
    ui-monospace, "SFMono-Regular", Consolas, "BIZ UDGothic", "Osaka-Mono",
    monospace;
  --ui-font: var(--font-system);
  --post-font: var(--font-system);
  --nav-weight: 400;
  --post-weight: 400;
  --post-size: 16px;
  font: 15px/1.5 var(--ui-font);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--chat);
  color: var(--body);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}
input,
textarea,
select {
  color: var(--text);
}
button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible,
.timeline:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
button:not(:disabled):active {
  filter: brightness(0.92);
}
svg.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-style: normal;
}
button img {
  display: block;
  width: 100%;
  height: 100%;
}
[hidden] {
  display: none !important;
}
.app {
  display: grid;
  grid-template-columns: 64px clamp(196px, 18vw, 250px) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.project-rail {
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  background: var(--rail);
  padding: 14px 0 max(14px, env(safe-area-inset-bottom));
  min-height: 0;
  overflow: hidden;
}
.project-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding-block: 5px;
  scroll-padding-block: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.project-scroll::-webkit-scrollbar {
  display: none;
}
.project-list {
  display: contents;
}
.home-button,
.project-button {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04em;
  transition:
    border-radius 0.16s,
    background 0.16s,
    transform 0.16s;
}
.home-button {
  overflow: hidden;
  border-radius: 11px;
}
.home-button:hover,
.project-button:hover,
.project-button.active {
  border-radius: 11px;
}
.project-button {
  background: var(--selected);
  color: var(--body);
}
.project-button:hover {
  background: var(--control-border);
  color: var(--text);
}
.project-button.active {
  background: var(--accent);
  color: var(--on-accent);
}
.project-button::before {
  content: "";
  position: absolute;
  left: -9px;
  width: 3px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  transition: height 0.16s;
}
.project-button:hover:before {
  height: 18px;
}
.project-button.active:before {
  height: 34px;
}
.rail-tools {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rail-tools::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--control-border);
  margin-bottom: 5px;
}
@media (max-height: 600px) {
  .rail-tools .icon-button:not(#command-palette) {
    display: none;
  }
}
.add-project {
  color: var(--muted);
  background: var(--chat);
}
.add-project:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.add-project .icon {
  width: 22px;
  height: 22px;
}
.channel-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--side);
}
.workspace-bar,
.chat-header {
  height: 52px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.workspace-bar {
  display: flex;
  align-items: center;
}
.workspace-header {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 10px;
  padding: 0 16px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.workspace-header:hover {
  background: var(--hover);
}
.workspace-header span,
.profile-name strong,
.header-project,
.channel-button .channel-name,
#channel-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-header .icon {
  width: 17px;
  height: 17px;
}
.channel-scroll {
  padding: 18px 8px 12px;
  flex: 1;
  overflow: auto;
}
.channel-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 3px 5px 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: var(--nav-weight);
  letter-spacing: 0.02em;
}
.channel-section button {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 25px;
}
.channel-section button:hover {
  color: var(--text);
}
#collapse .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
}
#collapse[aria-expanded="false"] .icon {
  transform: rotate(-90deg);
}
.section-add {
  width: 24px;
  justify-content: center;
}
.section-add .icon {
  width: 16px;
  height: 16px;
}
.channels {
  display: grid;
  gap: 2px;
}
.channel-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 5px;
  color: var(--dim);
  text-align: left;
  height: 36px;
  font-weight: var(--nav-weight);
  letter-spacing: 0.01em;
}
.channel-button > .icon {
  width: 21px;
  height: 21px;
  stroke-width: 2;
  color: var(--dim);
}
.channel-button:hover {
  background: var(--hover);
  color: var(--body);
}
.channel-button.active {
  background: var(--selected);
  color: var(--text);
}
.channel-button.active > .icon {
  color: var(--body);
}
.channel-button .channel-setting {
  margin-left: auto;
  color: var(--brand);
  display: flex;
}
.channel-setting .icon {
  width: 15px;
  height: 15px;
}
.profile {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 63px;
  background: var(--side);
  padding: 8px 10px 8px 12px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  background: var(--hover);
  color: var(--muted);
}
.avatar > .icon,
.avatar i > .icon {
  width: 22px;
  height: 22px;
}
.self-avatar {
  position: relative;
}
.self-avatar b {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  background: var(--dim);
  border: 3px solid var(--side);
  border-radius: 50%;
}
.profile-name {
  min-width: 0;
  text-align: start;
  padding: 2px 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.profile-name strong {
  color: var(--text);
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.profile-name:hover strong {
  text-decoration: underline;
}
.connection-code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
  color: var(--text);
  background: var(--rail);
  border-radius: 5px;
  font: 13px/1.6 var(--font-mono);
  padding: 10px;
}
.workflow-template {
  max-height: min(40vh, 22rem);
  overflow: auto;
  white-space: pre;
}
.legacy-sync {
  margin-top: 18px;
}
.legacy-sync summary {
  cursor: pointer;
  color: var(--muted);
}
.report-avatar {
  background: var(--selected);
  color: var(--body);
}
.github-avatar {
  border-radius: 8px;
  color: var(--text);
}
.report-grant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
}
.profile-name span {
  color: var(--dim);
  font-size: 11px;
}
.profile > .icon-button {
  margin-left: auto;
}
.icon-button {
  height: 34px;
  width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 5px;
  flex: none;
}
.icon-button:hover {
  color: var(--text);
  background: var(--hover);
}
.project-rail .icon-button {
  width: 44px;
  height: 44px;
}
.project-rail .icon-button:hover {
  background: var(--selected);
}
.chat-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--chat);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: var(--dim);
}
.header-hash .icon {
  height: 24px;
  width: 24px;
}
.chat-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}
.header-rule {
  width: 1px;
  height: 19px;
  flex: none;
  margin: 0 3px 0 5px;
  background: var(--line);
}
.header-project {
  font-size: 12px;
  color: var(--dim);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  flex: none;
}
#ai-settings.enabled {
  position: relative;
  color: var(--text);
}
#ai-settings.enabled::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.mobile-back {
  display: none;
}
#resume-note {
  display: none;
}
#toggle-sidebar {
  flex: none;
}
.workspace-bar #toggle-sidebar {
  margin-right: 5px;
}
@media (width > 720px) {
  .app[data-sidebar-folded] {
    grid-template-columns: minmax(0, 1fr);
  }
  .app[data-sidebar-folded] > :is(.project-rail, .channel-sidebar) {
    display: none;
  }
}
.channel-capacity-warning {
  padding: 8px 18px;
  border-inline-start: 3px solid var(--brand);
  background: var(--selected);
  color: var(--text);
  font-size: 13px;
}
.filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--side);
  color: var(--muted);
  font-size: 12px;
  padding: 6px 18px;
}
.filter-strip button .icon {
  width: 15px;
  height: 15px;
}
.timeline {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--control-border) transparent;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
}
.timeline-inner {
  margin-block: auto;
  padding: 26px 0 10px;
  flex: none;
}
.timeline-inner.has-posts {
  margin-block: 0;
}
.welcome {
  padding: 24px;
  text-align: center;
}
.empty-channel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--muted);
}
.empty-channel-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}
.welcome h2 {
  margin: 0 0 5px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.welcome p {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
}
.welcome[data-first-visit] {
  max-width: 38rem;
  margin-inline: auto;
  text-align: start;
}
.welcome[data-first-visit] .empty-channel-icon {
  margin-inline: 0;
}
.welcome[data-first-visit] p {
  line-height: 1.65;
}
.first-visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 14px 10px;
}
.first-visit-actions button {
  width: auto;
  min-height: 40px;
}
.no-results {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 45px 15px;
}
.date-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 650;
  margin: 23px 22px 12px;
  white-space: nowrap;
}
.date-divider:before,
.date-divider:after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.date-divider:first-child {
  margin-top: 0;
}
.device-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  margin: 20px 20px 0;
}
.device-heading .icon {
  width: 16px;
  height: 16px;
}
.post {
  display: flex;
  gap: 13px;
  padding: 5px 21px;
  margin: 3px 0;
  min-width: 0;
}
.post:hover {
  background: var(--field);
}
.post .avatar {
  width: 38px;
  height: 38px;
}
.post-copy {
  min-width: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.35;
  margin: 1px 0 3px;
}
.post-meta strong {
  font-size: 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.post-meta time {
  font-size: 11px;
  color: var(--dim);
}
.device-label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
}
.device-label .icon {
  width: 11px;
  height: 11px;
}
.post-text {
  margin: 0;
  color: var(--body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.post-text a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.post-text code {
  font: 0.92em/1.5 var(--font-mono);
  background: var(--rail);
  border-radius: 3px;
  padding: 0.08em 0.28em;
}
.post-text pre {
  max-width: 100%;
  margin: 0.25em 0;
  padding: 0.55em 0.75em;
  overflow-x: auto;
  white-space: pre;
  background: var(--rail);
  border-radius: 4px;
}
.post-text pre code {
  padding: 0;
}
.post-text ul {
  margin: 0.16em 0;
  padding-inline-start: 1.45em;
}
.post-text > :is(pre, ul):first-child {
  margin-top: 0;
}
.post-text > :is(pre, ul):last-child {
  margin-bottom: 0;
}
.post-text,
.composer textarea,
#dialog-body .type-preview-post {
  font: var(--post-weight) var(--post-size) / 1.6 var(--post-font);
}
.post.color-line,
.post.color-frame {
  margin: 4px 12px;
  padding: 6px 9px;
  border-radius: 4px;
}
.post.color-line {
  border-left: 3px solid var(--device-color);
}
.post.color-frame {
  border: 1px solid color-mix(in srgb, var(--device-color) 58%, transparent);
}
.compose-wrap {
  padding: 7px 20px max(9px, env(safe-area-inset-bottom));
  flex: none;
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px 8px 14px;
}
.composer:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}
.compose-mark {
  color: var(--dim);
  align-self: center;
}
.compose-mark .icon {
  width: 19px;
  height: 19px;
}
.composer textarea {
  display: block;
  flex: 1;
  min-width: 0;
  resize: none;
  height: 32px;
  max-height: 150px;
  padding: 4px 0;
  margin: 0;
  background: none;
  border: 0;
  outline: none !important;
  color: var(--text);
}
.composer textarea::placeholder {
  color: var(--dim);
}
.send-button {
  border-radius: 6px;
  width: 32px;
  height: 32px;
  color: var(--on-accent);
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.send-button:disabled {
  background: transparent;
  color: var(--dim);
  opacity: 0.65;
}
.send-button .icon {
  width: 18px;
  height: 18px;
}
.composer-foot {
  min-height: 21px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 10px;
  padding: 2px 2px 0;
}
.composer-foot > span:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.composer-foot .icon {
  width: 11px;
  height: 11px;
}
.key-separator {
  margin: 0 5px;
}
dialog {
  padding: 0;
  width: min(430px, calc(100% - 28px));
  max-height: min(88dvh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chat);
  color: var(--body);
  box-shadow: 0 18px 65px #17171926;
}
dialog::backdrop {
  background: #18181b52;
}
.reload-notice {
  padding: 1.4rem;
}
.reload-notice h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.reload-notice p { margin-bottom: 1rem; }
.reload-notice textarea { width: 100%; min-height: 6rem; }
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--chat);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 10px;
}
.dialog-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.5;
}
.dialog-header .icon-button {
  width: 29px;
  height: 29px;
}
#dialog-body {
  padding: 3px 21px 21px;
  font-size: 14px;
}
.dialog-body-section + .dialog-body-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px;
}
#dialog-body p {
  margin: 7px 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#dialog-body label.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  margin: 12px 0;
}
#dialog-body input:not([type="checkbox"]),
#dialog-body select,
#dialog-body .secret-text {
  width: 100%;
  border: 1px solid var(--control-border);
  background: var(--chat);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 15px;
  min-width: 0;
}
#dialog-body h3 {
  font-size: 14px;
  color: var(--text);
  margin: 8px 0;
}
.type-group {
  min-width: 0;
  margin: 0 0 15px;
  padding: 0;
  border: 0;
}
.type-group legend {
  padding: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.type-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
#dialog-body .type-fields .field {
  min-width: 0;
  margin: 6px 0;
  font-weight: 500;
}
#dialog-body .type-fields select {
  font-weight: 400;
}
.type-preview {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--side);
}
.type-preview-nav {
  color: var(--muted);
  font-family: var(--ui-font);
  font-weight: var(--nav-weight);
}
#dialog-body .type-preview-post {
  margin: 6px 0 0;
  color: var(--body);
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0;
}
.legal-links a { color: var(--text); text-underline-offset: .18em; }
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  padding: 8px 14px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 650;
}
.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.primary:hover {
  background: var(--text);
}
.secondary {
  background: var(--hover);
  color: var(--text);
}
.secondary:hover {
  background: var(--selected);
}
.google-signin {
  min-height: 40px;
  padding: 0 12px;
  gap: 10px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 500;
}
.google-signin::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  background: #fff url("/google-signin-icon.png") center / 40px 40px no-repeat;
}
.menu-list {
  display: grid;
  gap: 4px;
}
.menu-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 9px;
  border-radius: 5px;
  font-size: 14px;
}
.menu-entry:hover {
  background: var(--hover);
  color: var(--text);
}
.menu-entry .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.menu-entry .mini-project {
  display: grid;
  place-items: center;
  height: 29px;
  width: 29px;
  border-radius: 9px;
  background: var(--selected);
  color: var(--body);
}
.switch-row {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: var(--field);
  border-radius: 7px;
  padding: 12px;
  font-weight: 650;
  margin: 8px 0;
}
.switch {
  appearance: none;
  display: block;
  width: 36px;
  height: 21px;
  flex: none;
  border-radius: 99px;
  background: #838388;
  position: relative;
  cursor: pointer;
}
.switch:checked {
  background: var(--accent);
}
.switch:before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  transition: transform 0.12s;
}
.switch:checked:before {
  transform: translateX(15px);
}
.feedback {
  min-height: 0;
  color: var(--body);
  font-size: 12px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.feedback:empty {
  display: none;
}
.secret-text {
  resize: vertical;
  margin: 10px 0 0;
  font: 13px/1.5 monospace !important;
}
.toast {
  position: fixed;
  z-index: 5;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 26px);
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--text);
  color: var(--on-accent);
  padding: 9px 16px;
  font-size: 13px;
  box-shadow: 0 4px 20px #19191b24;
  overflow-wrap: anywhere;
}
.startup-error {
  margin: auto;
  max-width: 500px;
  padding: 30px;
}
@media (max-width: 970px) {
  .header-project,
  .header-rule {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
}
@media (max-width: 720px) {
  .app {
    grid-template-columns: 65px minmax(0, 1fr);
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .app[data-mobile="nav"] .chat-pane {
    display: none;
  }
  .app[data-mobile="chat"] {
    display: block;
  }
  .app[data-mobile="chat"] .project-rail,
  .app[data-mobile="chat"] .channel-sidebar {
    display: none;
  }
  .chat-pane {
    height: 100%;
  }
  .channel-scroll {
    padding: 20px 11px;
  }
  .header-actions #ai-settings,
  .header-actions #display-settings {
    display: none;
  }
  .channel-button {
    height: 44px;
    font-size: 16px;
  }
  .profile {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 66px;
  }
  .workspace-bar,
  .chat-header {
    height: 55px;
    min-height: 55px;
  }
  .workspace-header {
    font-size: 18px;
  }
  #toggle-sidebar {
    display: none;
  }
  #resume-note {
    display: inline-flex;
    margin-right: 5px;
  }
  .mobile-back {
    display: flex;
    margin-left: -4px;
    width: 44px;
    height: 44px;
  }
  .chat-header {
    padding: 0 10px;
    gap: 5px;
  }
  .header-hash .icon {
    width: 21px;
    height: 21px;
  }
  .chat-header h1 {
    font-size: 15px;
  }
  .header-actions {
    gap: 3px;
  }
  .header-actions .icon-button .icon {
    width: 19px;
    height: 19px;
  }
  .compose-wrap {
    padding: 6px 10px max(7px, env(safe-area-inset-bottom));
  }
  .composer {
    padding: 7px 8px 7px 10px;
    gap: 8px;
  }
  #dialog-body .type-fields select {
    min-height: 44px;
    font-size: 16px;
  }
  .type-fields {
    grid-template-columns: repeat(auto-fit, minmax(min(132px, 100%), 1fr));
  }
  #compose-hint {
    display: none;
  }
  .composer-foot {
    min-height: 18px;
  }
  .post {
    padding: 5px 13px;
    gap: 10px;
  }
  .post .avatar {
    width: 33px;
    height: 33px;
  }
  .post-meta {
    gap: 6px;
  }
  .date-divider {
    margin-left: 13px;
    margin-right: 13px;
  }
  .timeline-inner {
    padding-top: 16px;
  }
}
@media (max-width: 720px), (pointer: coarse) {
  .composer {
    --compose-control-size: 44px;
  }
  .compose-mark {
    display: grid;
    place-items: center;
    align-self: flex-end;
    height: var(--compose-control-size);
  }
  .composer textarea {
    font-size: max(16px, var(--post-size));
    line-height: 1.5;
    min-height: var(--compose-control-size);
    max-height: calc(var(--compose-control-size) + 3lh);
    padding-block: calc((var(--compose-control-size) - 1lh) / 2);
  }
  .send-button {
    width: var(--compose-control-size);
    height: var(--compose-control-size);
  }
  .icon-button,
  .dialog-header .icon-button,
  .section-add {
    width: 44px;
    height: 44px;
  }
  .channel-button,
  .channel-section button,
  .profile-name,
  .primary,
  .secondary,
  .menu-entry {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
