:root {
  --bg: #f4f8fc;
  --panel: #ffffff;
  --panel-2: #eef5fb;
  --ink: #2d2d2d;
  --muted: #6f7d8a;
  --line: #d8e4ee;
  --accent: #0066b1;
  --accent-2: #18a0d8;
  --danger: #c73535;
  --warning: #9a6a00;
  --focus: #0066b1;
  --shadow: 0 10px 30px rgba(0, 75, 130, 0.1);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  border-color: #8fb8d6;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.primary:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
}

.secondary {
  background: var(--panel-2);
}

.danger {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.login-screen,
.binding-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-panel,
.binding-panel {
  width: min(760px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-panel {
  width: min(460px, 100%);
}

.auth-brand {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-bottom: 8px;
}

.auth-logo {
  width: min(210px, 70vw);
  height: auto;
  display: block;
}

.panel-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
}

.panel-section-title {
  margin: 14px 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.panel-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 4px;
  margin-bottom: 18px;
}

.binding-actions {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 14px;
}

.mode-switch button {
  border: 0;
  background: transparent;
  min-height: 38px;
}

.mode-switch button.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(17, 30, 36, 0.08);
}

.banner {
  border: 1px solid #f0c9c4;
  background: #fff4f2;
  color: var(--danger);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.notice {
  border: 1px solid #bedaf0;
  background: #eff7fd;
  color: #004f8a;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.app-shell {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.action-locked {
  cursor: wait;
}

.action-blocker {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(245, 247, 249, 0.16);
  cursor: wait;
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 118px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.workspace {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(420px, 46%) minmax(0, 1fr);
}

.task-pane,
.detail-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.task-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid var(--line);
  background: #f7fbff;
}

.pane-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7fbff;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.pane-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pane-title {
  margin: 0;
  font-size: 18px;
}

.pane-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: -3px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.sync-status span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sync-status.error {
  color: var(--warning);
}

.sync-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b7c8d8;
}

.sync-dot.on {
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(24, 160, 216, 0.14);
}

.filters-panel {
  display: grid;
  gap: 9px;
}

.filters-summary {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filters-panel.collapsed {
  gap: 0;
}

.filters-panel.collapsed .filters {
  display: none;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filters .wide {
  grid-column: 1 / -1;
}

.search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.search-field input {
  grid-column: 1 / -1;
  grid-row: 1;
  padding-right: 42px;
}

.search-clear-btn {
  grid-column: 2;
  grid-row: 1;
  width: 32px;
  min-height: 32px;
  margin-right: 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.search-clear-btn:hover {
  color: var(--ink);
}

.search-clear-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--ink);
}

.check-row input {
  width: 16px;
  min-height: 16px;
}

.task-list {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.task-row {
  display: grid;
  grid-template-columns: 24px 76px minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.task-row:hover,
.task-row.active {
  background: #e8f4fd;
}

.task-row.busy {
  cursor: wait;
  opacity: 0.68;
}

.unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.unread-dot.on {
  background: var(--accent-2);
}

.task-code {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.task-main {
  min-width: 0;
}

.task-title {
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta {
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 26px;
  border: 1px solid #cbd8df;
  border-radius: 999px;
  padding: 3px 9px;
  color: #2e4b59;
  background: #f7fafb;
  font-size: 12px;
  white-space: nowrap;
}

.status-pill.hot {
  border-color: #dfc179;
  color: #6f4a00;
  background: #fff8e7;
}

.detail-pane {
  display: grid;
  background: var(--panel);
}

.detail-mobile-back {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.detail-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px 14px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.detail-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.info-grid {
  margin-top: 0;
  max-width: 980px;
}

.desktop-info {
  margin-top: 14px;
}

.mobile-info,
.mobile-info-tab {
  display: none;
}

.field-read {
  display: grid;
  gap: 3px;
}

.field-read span:first-child {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 12px 20px 0;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  min-height: 40px;
}

.tab-button.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.tab-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px 28px;
}

.chat-tab-body {
  display: grid;
  overflow: hidden;
  padding: 0;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.icon-button {
  min-width: 36px;
  width: 36px;
  padding: 0;
  font-weight: 700;
}

.editor {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  line-height: 1.55;
}

.editor:focus {
  outline: 2px solid rgba(0, 102, 177, 0.2);
  border-color: var(--focus);
}

.description-form {
  position: relative;
}

.description-status {
  display: grid;
  gap: 3px;
  max-width: 860px;
  border: 1px solid #bedaf0;
  border-radius: 8px;
  background: #eff7fd;
  color: #004f8a;
  padding: 12px 14px;
  line-height: 1.4;
}

.description-status strong {
  font-size: 14px;
}

.description-status span {
  font-size: 12px;
}

.description-status.saving {
  border-color: #d9c686;
  background: #fff8df;
  color: #6f4a00;
}

.description-status.error {
  border-color: #f0c9c4;
  background: #fff4f2;
  color: var(--danger);
}

.create-task-status {
  display: grid;
  gap: 4px;
  border: 1px solid #d9c686;
  border-radius: 8px;
  background: #fff8df;
  color: #6f4a00;
  padding: 12px 14px;
  line-height: 1.4;
}

.create-task-status strong {
  font-size: 14px;
}

.create-task-status span {
  font-size: 12px;
}

.description-html {
  line-height: 1.55;
  max-width: 860px;
}

.description-html p,
.editor p {
  line-height: 1.15;
  margin: 0;
  white-space: pre-wrap;
}

.description-html ul,
.description-html ol,
.editor ul,
.editor ol {
  margin-top: 0;
  margin-bottom: 0;
}

.description-html li > p,
.editor li > p {
  display: inline;
}

.description-html a,
.chat-text a {
  color: var(--accent);
}

.description-html img,
.editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
}

.files-list {
  display: grid;
  gap: 8px;
}

.file-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  max-width: 720px;
}

.file-upload-form label {
  min-width: 0;
}

.file-upload-form input[type="file"] {
  width: 100%;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  text-decoration: underline;
}

.files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 8px;
}

.files-header h2 {
  margin: 0;
  font-size: 16px;
}

.files-header span {
  color: var(--muted);
  font-size: 12px;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.files-empty {
  min-height: 160px;
}

.upload-progress {
  display: grid;
  gap: 7px;
  max-width: 720px;
  margin-top: 12px;
  border: 1px solid #bedaf0;
  border-radius: 8px;
  background: #f1f8fe;
  padding: 12px;
}

.upload-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.upload-progress-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d6e8f6;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 160ms ease;
}

.chat-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  background: #e8f3fb;
}

.chat-thread {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding: 18px 20px 22px;
}

.chat-empty {
  align-self: center;
  width: 100%;
  background: transparent;
}

.chat-message {
  display: flex;
  max-width: none;
  background: transparent;
}

.chat-message.from_client {
  justify-content: flex-end;
}

.chat-message:not(.from_client) {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: min(680px, 78%);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 30, 36, 0.08);
  padding: 8px 11px 7px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.chat-message.from_client .chat-bubble {
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 18px;
  background: #dff0fb;
}

.chat-author {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.chat-text p {
  margin: 0 0 6px;
}

.chat-text p:last-child {
  margin-bottom: 0;
}

.chat-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto minmax(0, 1fr);
  grid-template-areas:
    "recipient send ."
    "message message message";
  align-items: end;
  gap: 8px 10px;
  border-top: 1px solid #c8dcea;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 14px 14px;
}

.chat-recipient {
  grid-area: recipient;
}

.chat-message-input {
  grid-area: message;
  min-height: 46px;
  max-height: 140px;
  border-radius: 8px;
  padding: 12px 14px;
}

.chat-send-button {
  grid-area: send;
  min-height: 46px;
  align-self: end;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
}

.toast {
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px 42px 12px 12px;
}

.toast-title {
  margin-bottom: 6px;
  font-weight: 700;
}

.toast-link {
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  line-height: 1.35;
}

.toast-link:hover {
  color: var(--accent);
}

.toast-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 24, 28, 0.35);
  z-index: 20;
}

.modal {
  width: min(820px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.modal h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.small {
  color: var(--muted);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .task-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 54vh;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-bubble {
    max-width: 86%;
  }
}

@media (max-width: 640px) {
  .login-screen,
  .binding-screen {
    padding: 14px;
  }

  .auth-panel,
  .binding-panel {
    padding: 18px;
  }

  .app-shell {
    height: 100dvh;
    min-height: 100dvh;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    gap: 10px;
    align-items: stretch;
    padding: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 96px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-subtitle {
    max-width: calc(100vw - 130px);
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .top-actions button {
    min-width: 0;
    padding: 7px 6px;
    white-space: nowrap;
  }

  .workspace {
    min-height: 0;
    overflow: hidden;
  }

  .app-shell.detail-open .task-pane,
  .app-shell.list-open .detail-pane {
    display: none;
  }

  .task-pane,
  .detail-pane {
    height: 100%;
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 0;
  }

  .pane-header {
    padding: 10px;
  }

  .pane-title-row {
    align-items: stretch;
    margin-bottom: 10px;
  }

  .pane-title {
    align-self: center;
    font-size: 17px;
  }

  .pane-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .pane-actions button {
    padding: 7px 8px;
    white-space: nowrap;
  }

  .filters-summary {
    font-size: 11px;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .filters .wide,
  .filters .check-row {
    grid-column: 1 / -1;
  }

  input,
  select,
  textarea,
  button {
    min-height: 38px;
  }

  .two-cols,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .task-row {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 7px;
    padding: 10px;
  }

  .unread-dot {
    grid-row: 1 / span 3;
    align-self: start;
    margin-top: 6px;
  }

  .task-main,
  .task-code,
  .task-row .status-pill {
    grid-column: 2;
  }

  .task-code {
    font-size: 12px;
  }

  .task-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .task-meta {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .task-row .status-pill {
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .detail-layout {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .detail-header {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .detail-mobile-back {
    display: inline-flex;
    justify-self: start;
    align-items: center;
  }

  .detail-title-row,
  .file-row {
    display: grid;
  }

  .detail-title-row {
    gap: 9px;
    justify-items: center;
    text-align: center;
  }

  .detail-title-row > div {
    min-width: 0;
    width: 100%;
  }

  .detail-title {
    font-size: 17px;
    line-height: 1.3;
  }

  .detail-title-row > .status-pill {
    justify-self: center;
    width: min(300px, 100%);
  }

  .detail-grid {
    gap: 8px;
    margin-top: 0;
  }

  .desktop-info {
    display: none;
  }

  .mobile-info {
    display: block;
  }

  .mobile-info-tab {
    display: inline-flex;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }

  .tab-button {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 0 4px;
    font-size: 13px;
    text-align: center;
  }

  .tab-body {
    padding: 12px;
  }

  .description-html {
    max-width: none;
  }

  .editor {
    min-height: 150px;
  }

  .file-upload-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .file-upload-form button {
    width: 100%;
  }

  .file-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .file-row a,
  .file-row .link-button,
  .file-row .small {
    justify-self: start;
  }

  .files-header {
    margin-top: 14px;
  }

  .chat-thread {
    padding: 12px;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .chat-compose {
    grid-template-columns: 1fr;
    grid-template-areas:
      "recipient"
      "message"
      "send";
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .chat-recipient {
    max-width: none;
  }

  .chat-send-button {
    width: 100%;
  }

  .toast-stack {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .modal-backdrop {
    padding: 8px;
  }

  .modal {
    max-height: calc(100dvh - 16px);
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .top-actions {
    grid-template-columns: 1fr 1fr;
  }

  #logout-btn {
    grid-column: 1 / -1;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .pane-title-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pane-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
}
