/* Desktop components and colors are supplied unchanged by app.css.
   Only the embedded viewport and phone layout need these adaptations. */
.preview-notice {
  display: none;
}
#demo-notice {
  max-width: 360px;
  width: calc(100% - 40px);
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 25px;
  color: #262626;
  background: #fff;
  box-shadow: 0 20px 60px #0002;
}
#demo-notice::backdrop {
  background: #0003;
}
#demo-notice h2 {
  font-size: 18px;
  margin-bottom: 13px;
}
#demo-notice p {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
}
#demo-notice .notice-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .app-shell {
    --sidebar-default-width: 58px !important;
    --sidebar-width: 58px !important;
  }
  .sidebar {
    padding: 0 5px;
  }
  .window-drag {
    height: 12px;
  }
  .sidebar .nav-item {
    justify-content: center;
    padding: 0;
    min-height: 40px;
  }
  .sidebar .nav-item > span,
  .sidebar .nav-item > small,
  .sidebar .chat-label,
  .sidebar .chat-row > .quiet-icon,
  .sidebar .quiet-tag,
  .sidebar .section-heading,
  .sidebar .sidebar-empty,
  .sidebar .conversation-children,
  .sidebar .conversation-toggle,
  .sidebar .scope-switch > span:nth-child(2),
  .sidebar .scope-switch > .icon,
  .sidebar-resizer {
    display: none;
  }
  .sidebar .chat-row {
    justify-content: center;
    padding: 8px 4px;
  }
  .sidebar .sidebar-footer {
    padding: 8px 0;
  }
  .sidebar .scope-switch {
    justify-content: center;
    padding: 4px;
    min-height: 44px;
  }
  .scope-menu {
    width: 230px;
    right: auto;
    left: 0;
  }
  .page-header {
    padding: 0 12px;
    gap: 8px;
  }
  .page-header h1 {
    font-size: 14px;
  }
  .header-identity {
    gap: 6px;
    min-width: 0;
  }
  .header-title {
    min-width: 0;
  }
  .header-title h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-avatar {
    width: 27px;
    height: 27px;
  }
  .header-actions {
    gap: 2px;
  }
  .header-actions .group-member-entry,
  .header-actions [data-action='new-child'] {
    display: none;
  }
  .preview-notice {
    font-size: 9px;
    padding: 5px 8px;
  }
  .message-scroll {
    padding: 16px 12px;
  }
  .message {
    gap: 8px;
  }
  .message-avatar {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .message-content {
    min-width: 0;
  }
  .message-text {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .composer {
    margin: 10px 10px 12px;
  }
  .composer textarea {
    font-size: 16px;
  }
  .page-content {
    padding: 18px 12px;
  }
  .work-summary {
    gap: 14px;
  }
  .work-summary strong {
    font-size: 24px;
  }
  .work-summary span {
    font-size: 10px;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-task-actions {
    flex-wrap: wrap;
  }
  .work-detail-meta {
    flex-wrap: wrap;
  }
  .space-layout {
    flex-direction: column;
  }
  .directory-tree {
    width: 100%;
    flex: 0 0 auto;
    max-height: 110px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid #e8e8e8;
    padding: 8px;
  }
  .directory-tree .tree-note,
  .directory-tree .section-heading {
    display: none;
  }
  .space-main {
    min-height: 0;
    width: 100%;
  }
  .directory-header {
    padding: 0 12px;
    margin-top: 15px;
  }
  .directory-toolbar {
    padding: 8px 12px;
    flex-wrap: wrap;
  }
  .directory-toolbar .button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .file-list {
    padding: 0 12px;
  }
  .file-row {
    gap: 8px;
  }
  .file-name > span {
    overflow: hidden;
  }
  .file-name small {
    font-size: 9px;
  }
  .file-table-head,
  .file-row {
    grid-template-columns: minmax(0, 1fr) 54px 16px;
  }
  .file-row > span:nth-child(2) {
    font-size: 10px;
  }
  .editor-header {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .editor-actions {
    gap: 4px;
  }
  .editor-actions .button {
    font-size: 10px;
    padding: 5px 7px;
  }
  .editor-title {
    padding: 12px;
  }
  .document-editor {
    font-size: 16px;
    margin: 0 12px;
    width: calc(100% - 24px);
  }
  .editor-bottom {
    font-size: 10px;
    padding: 10px 12px;
  }
  .member-row {
    flex-wrap: wrap;
    gap: 9px;
  }
  .member-row > div {
    min-width: 90px;
  }
  .dialog {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
  }
  .dialog-body {
    padding: 16px;
  }
  .dialog-heading {
    padding: 16px;
  }
  .inbox-row {
    gap: 8px;
    flex-wrap: wrap;
  }
  .inbox-row > div {
    min-width: 130px;
  }
  .settings-content {
    max-width: 100%;
  }
}
