.app-shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 55px;
}
.sidebar nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--muted);
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
}
.sidebar nav a span {
  font-size: 23px;
  width: 24px;
  line-height: 1;
}
.sidebar nav a[aria-current] {
  background: var(--blue-soft);
  color: var(--blue);
}
.sidebar-note {
  margin-top: auto;
  padding-top: 70px;
}
.sidebar-note strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 16px;
}
.sidebar-note p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.orbit {
  width: 65px;
  height: 35px;
  border: 1px solid #afc4ea;
  border-radius: 50%;
  transform: rotate(-25deg);
  position: relative;
}
.orbit:after {
  content: '';
  position: absolute;
  inset: -10px 20px;
  border: 1px solid #afc4ea;
  border-radius: 50%;
}
.orbit i {
  position: absolute;
  top: 0;
  left: 42px;
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 50%;
}
.logout {
  margin-top: 30px;
}
.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 89px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.identity {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}
.avatar {
  width: 32px;
  height: 32px;
  background: #dee8f8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.main {
  width: 100%;
  max-width: 1300px;
  padding: 30px 48px 55px;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.page-heading .button {
  flex-shrink: 0;
}
.overview {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 32px;
  padding: 26px 30px;
  background: #e6edf9;
  border-radius: var(--radius);
}
.overview > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
  font-size: 13px;
  color: var(--muted);
}
.overview-number {
  font-size: 35px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.overview p {
  border-left: 1px solid #c3d1e7;
  padding-left: 35px;
  font-size: 14px;
  color: #465c7b;
}
.tag-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.list-heading h2 {
  font-size: 16px;
}
.list-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.tag-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 26px;
  color: var(--ink);
}
.tag-row + .tag-row {
  border-top: 1px solid var(--line);
}
.tag-row:hover {
  background: #f8faff;
}
.tag-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e8effc;
  color: var(--blue);
  font-size: 28px;
}
.tag-icon.card {
  background: #eeeaf8;
  color: #7056a0;
  font-size: 22px;
}
.tag-description {
  flex: 1;
  min-width: 0;
}
.tag-description strong {
  display: block;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.tag-description > span {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.code {
  font-size: 12px;
  letter-spacing: 0.5px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  background: #eef1f5;
  padding: 5px 10px;
  border-radius: 20px;
}
.status:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.active {
  color: var(--green);
  background: #eaf5ef;
}
.status.blocked {
  color: var(--red);
  background: #fff0f1;
}
.row-arrow {
  font-size: 26px;
  color: #8b9ab0;
}
.below-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 35px;
}
.explainer {
  display: flex;
  gap: 14px;
}
.explainer h2 {
  font-size: 15px;
  margin-bottom: 7px;
}
.explainer p {
  font-size: 13px;
  color: var(--muted);
}
.small-icon {
  color: var(--blue);
  font-size: 24px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 48px;
  color: var(--muted);
  font-size: 12px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.share-panel {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.share-panel h2 {
  font-size: 17px;
}
.qr {
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  margin: auto;
}
.share-panel input,
.share-panel .button {
  margin-bottom: 12px;
}
.share-panel .notice {
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 12px;
}
.preview-link {
  display: block;
  text-align: center;
  font-size: 14px;
  margin: 8px 0 18px;
}
.side-info {
  padding: 20px 0;
}
.side-info p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mode-options label {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  padding-left: 42px;
}
.mode-options label:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.mode-options input {
  position: absolute;
  left: 14px;
  top: 19px;
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--blue);
}
.mode-options span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.card-fields {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.card-fields h2 {
  font-size: 17px;
}
.card-fields > .help {
  margin-top: -15px;
}
.empty {
  text-align: center;
  padding: 55px 30px;
}
.empty p {
  margin: 12px auto 24px;
  color: var(--muted);
  max-width: 440px;
  font-size: 14px;
}
.account-panel {
  max-width: 720px;
}
.account-panel p {
  margin: 12px 0 32px;
}
.session-list {
  padding: 0;
  list-style: none;
  margin: 18px 0 28px;
}
.session-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 14px;
}
.session-list strong {
  color: var(--green);
  font-size: 13px;
}
@media (min-width: 1600px) {
  .main {
    margin: 0 auto;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 18px;
  }
  .main {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 18px;
  }
  .overview {
    gap: 24px;
  }
  .overview p {
    padding-left: 24px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .button {
    font-size: 13px;
    padding: 10px 14px;
  }
}
@media (max-width: 820px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    padding: 17px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 21px;
  }
  .sidebar nav {
    margin-top: 20px;
    flex-direction: row;
    gap: 5px;
  }
  .sidebar nav a {
    flex: 1;
    justify-content: center;
    padding: 9px 7px;
    font-size: 13px;
  }
  .sidebar nav a span {
    display: none;
  }
  .sidebar-note,
  .logout {
    display: none;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
  }
  .main {
    padding: 24px 20px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  .page-heading .lead {
    font-size: 14px;
  }
  .overview {
    padding: 22px;
    gap: 24px;
    flex-wrap: wrap;
  }
  .overview p {
    width: 100%;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid #c3d1e7;
  }
  .tag-row {
    padding: 20px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .tag-description > span {
    flex-direction: column;
    gap: 2px;
  }
  .tag-icon {
    width: 44px;
    height: 48px;
  }
  .tag-row .status {
    font-size: 11px;
    padding: 4px 8px;
  }
  .row-arrow {
    display: none;
  }
  .below-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 23px;
  }
  .share-panel {
    max-width: 100%;
  }
  .share-panel .qr {
    max-width: 200px;
  }
  .workspace-footer {
    padding: 18px 20px;
  }
  .mode-options {
    grid-template-columns: 1fr 1fr;
  }
  .mode-options label {
    padding: 14px 10px 14px 36px;
  }
  .mode-options input {
    left: 11px;
  }
  .session-list li {
    flex-direction: column;
  }
}
.conversation-row {
  display: block;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.conversation-row:last-child {
  border-bottom: 0;
}
.conversation-row:hover {
  background: var(--blue-soft);
}
.conversation-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 9px;
}
.conversation-row h2 {
  font-size: 17px;
}
.conversation-row p {
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.dialogue-panel {
  max-width: 850px;
}
.dialogue {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 25px 0 14px;
}
.message {
  max-width: 90%;
  padding: 15px 18px;
  background: var(--canvas);
  border-radius: 12px;
  align-self: flex-start;
  min-width: 180px;
}
.message.owner {
  background: var(--blue-soft);
  align-self: flex-end;
}
.message header {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 12px;
}
.message time {
  color: var(--muted);
  font-size: 11px;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.message-form {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
@media (max-width: 600px) {
  .conversation-meta {
    flex-direction: column;
    gap: 3px;
  }
  .message {
    max-width: 100%;
    padding: 12px;
  }
  .message header {
    flex-direction: column;
    gap: 2px;
  }
}

.channel-card {
  max-width: 640px;
  padding: 24px;
  display: grid;
  gap: 16px;
}
.channel-card-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.channel-status {
  font-size: 12px;
  color: var(--blue);
  background: var(--canvas);
  border-radius: 6px;
  padding: 4px 8px;
}
.channel-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.channel-privacy {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
@media (max-width: 480px) {
  .channel-card {
    padding: 20px;
  }
  .channel-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .channel-actions .button {
    width: 100%;
  }
}
