/* Demo 1 composition: bordered workspace cards and end notification drawer. */
.notification-toggle {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
  flex-shrink: 0;
}
.notification-toggle:hover {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}
.notification-toggle i {
  font-size: 23px;
}
#notification-count {
  position: absolute;
  right: -3px;
  top: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1416c;
  color: white;
  font-size: 10px;
  border: 2px solid var(--surface);
}
#notification-count[hidden] {
  display: none;
}
#notification-backdrop {
  position: fixed;
  inset: 0;
  background: #07143718;
  z-index: 1000;
  backdrop-filter: none;
}
#notification-drawer {
  padding: 0;
  margin: 0;
  position: fixed;
  inset: calc(var(--topbar-size) + 8px) 16px auto auto;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: min(600px, calc(100dvh - var(--topbar-size) - 24px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px #07143722;
  z-index: 1001;
  color: var(--text);
}
#notification-drawer[hidden],
#notification-backdrop[hidden] {
  display: none;
}
.notice-heading {
  padding: 12px 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notice-heading h2 {
  font-size: 15px;
  margin: 0 0 2px;
  font-weight: 650;
}
.notice-heading p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}
.notice-heading button {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 21px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
}
.notice-tabs {
  display: flex;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 22px;
  border-bottom: 1px solid var(--border);
}
.notice-tabs button {
  padding: 8px 0;
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
}
.notice-tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
#notification-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 16px;
  max-height: 400px;
  overscroll-behavior: contain;
}
.notice-item {
  display: flex !important;
  gap: 10px;
  width: 100%;
  padding: 12px 0 !important;
  min-height: 72px;
  text-align: left;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  white-space: normal !important;
  height: auto !important;
}
.notice-item > i {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 18px;
}
.notice-item.unread > i {
  background: var(--brand-soft);
  color: var(--brand);
}
.notice-item > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.notice-item strong {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.notice-item.unread strong:after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-left: 8px;
}
.notice-item span span {
  font-size: 12px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.notice-item small {
  font-size: 10px;
  color: var(--text-secondary);
}
.notice-empty {
  padding: 28px 12px;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.notice-footer {
  padding: 10px 16px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 5px;
  text-align: center;
}
.notice-footer button {
  padding: 7px 10px;
  min-height: 36px;
  border: 0;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 6px;
  font-size: 12px;
}
.notice-footer span {
  font-size: 10px;
  color: var(--text-secondary);
}
@media (min-width: 901px) {
  #workspace.inbox-mode .shell {
    height: calc(100dvh - var(--topbar-size));
    min-height: 0;
  }
  #workspace.inbox-mode main {
    padding: 24px !important;
    background: var(--app-bg);
    height: 100%;
    min-height: 0;
  }
  #workspace.inbox-mode [data-page="inbox"] {
    height: 100%;
    min-height: 0;
  }
  .inbox {
    height: 100% !important;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 20px;
    background: transparent;
    border: 0 !important;
  }
  .thread-list {
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .chat-workspace {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .chat-header {
    height: 82px;
    padding: 18px 24px;
  }
  .messages {
    padding: 24px 28px;
  }
  .composer {
    margin: 0 24px 20px;
    border: 1px solid var(--input);
    border-radius: 10px;
    overflow: visible;
  }
  .composer-toolbar {
    border: 0;
    padding: 8px 12px 0;
  }
  #send-form {
    padding: 4px 12px 12px;
  }
  #send-form textarea {
    min-height: 58px !important;
  }
  .list-heading {
    padding: 22px 20px 16px;
  }
  .list-heading h1 {
    font-size: 19px;
  }
  .list-heading h1:after {
    content: "HỘP THƯ CHĂM SÓC";
    display: block;
    font-size: 9px;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 500;
  }
  .list-footer {
    font-size: 10px;
    padding: 13px 16px;
  }
  .thread {
    width: calc(100% - 16px);
    margin: 3px 8px;
    padding: 14px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
  }
  .thread.selected {
    border-color: color-mix(in srgb, var(--brand) 20%, transparent);
    background: var(--brand-soft);
  }
  .thread .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }
  .thread-top strong {
    font-size: 13px;
  }
  .thread-top time {
    font-size: 10px;
  }
  .thread-preview {
    font-size: 12px;
    margin-top: 5px;
  }
  .list-filters,
  .inbox-crm-filter {
    padding-left: 20px;
    padding-right: 20px;
  }
  .list-account,
  .search-wrap {
    margin-left: 20px;
    margin-right: 20px;
  }
}
.chat-identity h2 {
  font-size: 15px;
  font-weight: 650;
}
.chat-identity p {
  font-size: 11px;
  margin-top: 4px;
}
#chat-avatar {
  border-radius: 50%;
  width: 44px;
  height: 44px;
}
.chat-workspace .messages {
  background: var(--surface);
}
.bubble {
  border: 0;
  box-shadow: none;
  background: var(--surface-soft);
  border-radius: 0 10px 10px 10px;
  padding: 13px 16px;
  font-size: 13px;
  max-width: 74%;
}
.bubble.out {
  background: var(--brand-soft);
  border-radius: 10px 0 10px 10px;
  color: var(--text);
}
.bubble small {
  font-size: 10px;
  display: block;
  margin-top: 7px;
}
.bubble.sticker-bubble {
  background: transparent;
  padding: 0;
}
.day-divider {
  font-size: 10px;
  background: transparent;
  border: 0;
  letter-spacing: 0.3px;
  margin: 20px auto;
}
.send-button {
  background: #1b84ff !important;
  border-radius: 7px !important;
  width: 38px !important;
  height: 38px !important;
}
.composer-hint {
  font-size: 10px;
}
.chat-header-actions .icon-button {
  border-radius: 7px;
}
.chat-header-actions .icon-button:hover {
  background: var(--surface-soft);
}
#chat-empty {
  background: var(--surface);
}
#chat-empty .empty-art {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 20px;
  box-shadow: none;
}
.customer-table thead {
  background: var(--surface-soft) !important;
}
.shell > aside nav button.active {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}
@media (max-width: 900px) {
  #notification-drawer {
    inset: auto 8px calc(8px + env(safe-area-inset-bottom)) auto;
    max-width: calc(100vw - 16px);
    width: 400px;
    max-height: calc(100dvh - 64px);
  }
  .notification-toggle {
    width: 32px;
    height: 32px;
  }
  .notification-toggle i {
    font-size: 21px;
  }
  .workspace-header .actions {
    gap: 8px;
  }
  .workspace-header #user-name {
    display: none;
  }
  .inbox {
    gap: 0 !important;
  }
  .chat-header {
    padding: 12px 14px;
  }
  .messages {
    padding: 16px;
  }
  .bubble {
    max-width: 86%;
    padding: 11px 13px;
  }
  .composer {
    margin: 0;
    border-radius: 0;
    border-top: 1px solid var(--border);
  }
  .composer-toolbar {
    padding: 6px 12px;
  }
  #send-form {
    padding: 4px 12px 10px;
  }
  .notice-heading {
    padding: 12px 16px;
  }
  .notice-footer {
    padding: 10px 16px;
  }
  .notice-footer button {
    min-height: 44px;
  }
  #notification-list {
    max-height: calc(100dvh - 260px);
  }
  .notice-tabs {
    padding: 0 16px;
  }
}
body .search-wrap input.kt-input {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding-left: 0;
  height: 36px;
  min-height: 36px;
}
body .search-wrap:focus-within {
  outline: 2px solid color-mix(in srgb, var(--brand) 25%, transparent);
  outline-offset: 1px;
}
/* Demo 1 header tools: icon triggers, contextual menus, compact row actions. */
body .workspace-header .actions {
  gap: 14px;
}
.theme-tools {
  position: relative;
  display: flex;
  align-items: center;
}
#theme-select[hidden] {
  display: none !important;
}
body .header-icon {
  display: inline-grid !important;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
  box-shadow: none;
  cursor: pointer;
}
body .header-icon i {
  font-size: 21px;
}
body .header-icon:hover,
body .header-icon[aria-expanded="true"] {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}
.header-divider {
  height: 24px;
  border-left: 1px solid var(--border);
  margin: 0 2px;
}
.header-user-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 650;
}
#user-name {
  font-size: 12px;
  font-weight: 550;
  color: var(--text);
}
.toolbar-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 205px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 8px 30px #0002;
  z-index: 800;
}
.toolbar-menu[hidden] {
  display: none;
}
.toolbar-menu p {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 10px;
  margin: 0 0 5px;
  border-bottom: 1px solid var(--border);
}
body .toolbar-menu button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 38px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 0 10px;
  border-radius: 5px;
  font-size: 12px;
  text-align: left;
}
body .toolbar-menu button:hover,
body .toolbar-menu button:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
  outline: 2px solid var(--brand);
}
body .toolbar-menu button[aria-checked="true"] {
  background: var(--brand-soft);
  color: var(--brand);
}
.toolbar-menu button > i {
  font-size: 18px;
}
.toolbar-menu .choice-check {
  margin-left: auto;
  visibility: hidden;
}
.toolbar-menu [aria-checked="true"] .choice-check {
  visibility: visible;
}
body .action-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.action-with-icon > i {
  font-size: 17px;
  flex-shrink: 0;
}
body button.compact-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0 !important;
  gap: 0;
  border: 1px solid transparent !important;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
}
body button.compact-action:hover {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--border) !important;
}
.compact-action > span {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.customer-table td:last-child {
  text-align: right;
}
.customer-table td:last-child button {
  margin-left: auto;
}
.task-card .task-flags {
  align-items: center;
}
body button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (max-width: 900px) {
  body .workspace-header .actions {
    gap: 5px;
  }
  .header-user-avatar {
    width: 30px;
    height: 30px;
  }
  .header-divider {
    display: none;
  }
  body .header-icon {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }
  .toolbar-menu {
    right: -45px;
    top: calc(100% + 10px);
  }
  body .toolbar-menu button {
    height: 44px;
    min-height: 44px;
    font-size: 14px;
  }
  body button.compact-action {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
}
.customer-table .text-button.compact-action {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  background: transparent;
  color: var(--text-secondary);
}
@media (max-width: 900px) {
  .customer-table .text-button.compact-action {
    width: auto;
    min-width: 0;
    gap: 8px;
    padding: 0 12px !important;
    height: 40px;
    min-height: 40px;
    background: var(--brand-soft);
    color: var(--brand);
  }
  .customer-table .text-button.compact-action > span {
    position: static !important;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

/* Compact overlapping identities with a searchable account chooser. */
.zalo-account-switcher {
  position: relative;
  min-width: 0;
}
#sync-account[hidden] {
  display: none;
}
.zalo-account-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  color: var(--text);
}
.zalo-account-trigger:hover,
.zalo-account-trigger[aria-expanded="true"] {
  background: var(--surface-hover);
  border-color: var(--brand);
}
.zalo-account-trigger > .control-glyph {
  margin-left: auto;
  font-size: 14px;
}
.zalo-account-stack {
  display: flex;
  align-items: center;
  flex: none;
  padding-right: 2px;
}
.zalo-account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.zalo-account-stack .zalo-account-avatar + .zalo-account-avatar {
  margin-left: -12px;
}
.zalo-account-stack .zalo-account-avatar:first-child {
  z-index: 4;
  box-shadow: 0 0 0 1px var(--brand);
}
.zalo-account-stack .zalo-account-avatar:nth-child(2) {
  z-index: 3;
}
.zalo-account-stack .zalo-account-avatar:nth-child(3) {
  z-index: 2;
}
.zalo-account-avatar.is-connected::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--success);
}
.zalo-account-more {
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 10px;
}
.zalo-account-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.zalo-account-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.zalo-account-info small {
  color: var(--text-secondary);
  font-size: 10px;
}
.zalo-account-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px #10182824;
}
.zalo-account-popover[hidden] {
  display: none;
}
.zalo-account-popover > strong {
  display: block;
  font-size: 12px;
  margin-bottom: 9px;
}
.zalo-account-popover input {
  width: 100%;
  min-width: 0;
  height: 34px;
  margin-bottom: 8px;
  font-size: 12px;
}
.zalo-account-choices {
  max-height: min(320px, 45dvh);
  overflow: auto;
  display: grid;
  gap: 3px;
}
.zalo-account-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.zalo-account-choice:hover,
.zalo-account-choice[aria-pressed="true"] {
  background: var(--brand-soft);
}
.zalo-account-choice > .control-glyph {
  color: var(--brand);
}
.zalo-account-trigger:focus-visible,
.zalo-account-choice:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.zalo-account-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.zalo-account-avatar.is-connected::after {
  z-index: 1;
}
/* Sound preference belongs to the notification panel. */
.notice-sound-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.notice-sound-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}
.notice-sound-label i {
  font-size: 17px;
  color: var(--text-secondary);
}
:is(#message-sound-toggle, #browser-notification-toggle) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 0 4px 8px;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
  font-size: 11px;
}
.notice-sound-track {
  position: relative;
  display: block;
  width: 30px;
  height: 18px;
  flex: none;
  border-radius: 99px;
  background: var(--input, #cbd5e1);
  transition: background 0.15s;
}
.notice-sound-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #0002;
  transition: transform 0.15s;
}
:is(#message-sound-toggle, #browser-notification-toggle).sound-enabled {
  color: var(--brand);
}
.sound-enabled .notice-sound-track {
  background: var(--brand);
}
.sound-enabled .notice-sound-track::after {
  transform: translateX(12px);
}
:is(#message-sound-toggle, #browser-notification-toggle):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.notice-permission-hint {
  margin: 0;
  padding: 0 16px 10px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 16px;
}
.notice-test-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 10px;
  flex-wrap: wrap;
}
.notice-test-row .btn {
  min-height: 28px;
  font-size: 11px;
}
.notice-test-row [role="status"] {
  font-size: 10px;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
  min-width: 140px;
}
/* Notification list is primary; device preferences live in a separate view. */
#notification-drawer {
  width: 380px;
  height: min(560px, calc(100dvh - var(--topbar-size) - 24px));
  max-height: calc(100dvh - var(--topbar-size) - 24px);
}
#notification-drawer .notice-heading {
  padding: 10px 12px;
  gap: 8px;
  min-height: 52px;
  box-sizing: border-box;
}
.notice-title-group,
.notice-heading-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
#notification-drawer .notice-heading h2 {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}
#notification-drawer .notice-heading button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  font-size: 18px;
  flex-shrink: 0;
}
#notification-drawer .notice-heading button:hover {
  background: var(--surface-soft);
  color: var(--brand);
}
#notification-drawer .notice-heading button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
#notification-drawer .notice-tabs {
  padding: 0 14px;
  gap: 22px;
}
#notification-drawer .notice-tabs button {
  min-height: 36px;
  padding: 7px 0;
  font-size: 12px;
}
#notification-drawer #notification-list {
  max-height: none;
  padding: 0 12px;
  flex: 1;
  min-height: 0;
}
#notification-drawer .notice-item {
  padding: 10px 2px !important;
  min-height: 70px;
  gap: 9px;
}
#notification-drawer .notice-item > i {
  width: 30px;
  height: 30px;
  font-size: 16px;
  margin-top: 2px;
}
#notification-drawer .notice-item > span {
  gap: 2px;
  flex: 1;
}
#notification-drawer .notice-item strong {
  font-size: 12px;
  line-height: 1.4;
}
#notification-drawer .notice-item span span {
  font-size: 12px;
  line-height: 1.4;
  -webkit-line-clamp: 1;
}
#notification-drawer .notice-item small {
  font-size: 10px;
  line-height: 1.4;
}
#notification-drawer .notice-footer {
  padding: 7px 14px;
  min-height: 28px;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  align-items: center;
}
#notification-drawer .notice-footer span {
  font-size: 10px;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.notice-settings {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--border);
  padding: 4px 0 10px;
}
.notice-settings-intro {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 8px 14px 12px;
}
.notice-settings .notice-sound-setting {
  padding: 8px 14px;
  min-height: 44px;
  gap: 8px;
}
.notice-settings > .notice-sound-setting {
  border-top: 0;
}
.notice-settings .notice-sound-label {
  font-size: 12px;
  gap: 7px;
}
.notice-settings .notice-permission-hint {
  padding: 0 14px 10px;
  font-size: 10px;
  line-height: 1.5;
}
.notice-settings .notice-test-row {
  padding: 0 14px 8px;
}
.notice-settings .notice-test-row:has([role="status"]:empty) {
  gap: 0;
}
.notice-settings .notice-test-row [role="status"]:empty {
  display: none;
}
.notice-settings .notice-browser-setting {
  border-top: 1px solid var(--border);
  padding-top: 4px;
}
.notice-settings .notice-browser-setting .notice-sound-setting {
  border-top: 0;
}
@media (max-width: 600px) {
  #notification-drawer {
    inset: calc(var(--topbar-size) + 6px) 8px auto 8px;
    width: auto;
    max-width: none;
    height: min(
      620px,
      calc(100dvh - var(--topbar-size) - 16px - env(safe-area-inset-bottom))
    );
    max-height: calc(
      100dvh - var(--topbar-size) - 16px - env(safe-area-inset-bottom)
    );
    border-radius: 12px;
  }
  #notification-drawer .notice-heading {
    padding: 8px 10px;
    min-height: 54px;
  }
  #notification-drawer .notice-heading button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    font-size: 19px;
  }
  #notification-drawer .notice-heading h2 {
    font-size: 15px;
  }
  #notification-drawer .notice-item {
    min-height: 72px;
    padding: 10px 2px !important;
  }
  #notification-drawer .notice-item strong {
    font-size: 13px;
  }
  #notification-drawer .notice-item span span {
    font-size: 12px;
  }
  .notice-settings .notice-sound-setting {
    min-height: 48px;
  }
}
/* Menu attention counts stay in the upper-right corner on sidebar and mobile nav. */
.shell nav button[data-tab="inbox"],.shell nav button[data-tab="tasks"]{position:relative}
.shell nav button.has-nav-count{padding-right:34px}
.shell nav button .nav-count{position:absolute;right:7px;top:4px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;box-sizing:border-box;border-radius:99px;background:var(--danger,#e34858);color:#fff;font-size:9px;font-weight:650;line-height:1;white-space:nowrap;pointer-events:none;border:1.5px solid var(--surface);z-index:1}
.shell nav button .nav-count[hidden]{display:none}
@media(max-width:900px){.shell nav button.has-nav-count{padding:3px 0}.shell nav button .nav-count{top:1px;right:8px;height:16px;min-width:16px;padding:0 3px;font-size:9px}}
