:root {
  color-scheme: light;
  --ink: #10131a;
  --on-ink: #ffffff;
  --muted: #596174;
  --faint: #7a8394;
  --soft: #f5f7fb;
  --line: #dde3ec;
  --panel: #ffffff;
  --panel-soft: #f7f8fb;
  --field: #ffffff;
  --page: #fbfcfe;
  --accent: #2b5bd7;
  --accent-soft: #e9f0ff;
  --accent-strong: #1f49b8;
  --ok: #0f8058;
  --warn: #a76200;
  --danger: #bd2d3a;
  --shadow: 0 18px 46px -34px rgba(16, 19, 26, .7);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f6fb;
  --on-ink: #0d1118;
  --muted: #b4bccb;
  --faint: #8791a3;
  --soft: #171b23;
  --line: #303746;
  --panel: #151922;
  --panel-soft: #1b202a;
  --field: #10141c;
  --page: #0d1118;
  --accent: #88a7ff;
  --accent-soft: #1b2a4d;
  --accent-strong: #b4c7ff;
  --ok: #67d6a5;
  --warn: #f3bf6a;
  --danger: #ff8b94;
  --shadow: 0 24px 70px -38px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button { cursor: pointer; }
code, pre { font-family: var(--mono); }

.skip {
  position: absolute;
  left: -9999px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--on-ink);
  z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(14px, 3vw, 30px);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  font: 800 .72rem/1 var(--mono);
  letter-spacing: .06em;
  color: var(--on-ink);
  background: var(--ink);
  padding: 5px 7px;
  border-radius: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-button { display: none; }

.hello-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px clamp(14px, 3vw, 30px);
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
}
.hello-bar p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}
.hello-bar div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hello-bar[hidden] { display: none; }

button, .primary-link {
  min-height: 34px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 6px 11px;
  background: var(--ink);
  color: var(--panel);
  font-weight: 680;
  font-size: .9rem;
}
.primary-link {
  display: inline-flex;
  align-items: center;
}
button:hover, .primary-link:hover {
  text-decoration: none;
  transform: none;
}
.ghost, .event-actions button {
  border-color: var(--line);
  background: var(--field);
  color: var(--ink);
}
.primary-action, .install-button, .hello-bar button:not(.icon-button), .help-install button {
  background: var(--accent);
  border-color: var(--accent);
}
.hello-bar button:not(.icon-button) {
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: .78rem;
}
.hello-bar .icon-button {
  width: 28px;
  min-height: 28px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-color: var(--line);
  background: var(--field);
  color: var(--ink);
}
.icon-button.small {
  width: 30px;
  min-height: 30px;
  font-size: .9rem;
}
.icon-button.menu-button {
  display: none;
}

input, select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--field);
  color: var(--ink);
}
input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(43, 91, 215, .22);
  outline-offset: 2px;
}
label {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 720;
}

.control-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.search-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.toolbar-actions {
  display: flex;
  align-items: start;
  gap: 10px;
}

.view-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: .8rem;
  font-weight: 720;
}
.view-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--field);
}
.view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: var(--field);
  color: var(--muted);
  font-size: .84rem;
  padding-inline: 10px;
}
.view-switch button + button { border-left: 1px solid var(--line); }
.view-switch button.is-active {
  background: var(--panel-soft);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.view-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filters-panel {
  position: relative;
  min-width: 0;
}
.filters-panel summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  background: var(--field);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.filters-panel summary::-webkit-details-marker { display: none; }
.filters-grid {
  position: absolute;
  right: 0;
  z-index: 4;
  width: min(620px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
  align-items: end;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  white-space: nowrap;
}
.check input { width: 18px; min-height: 18px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 24px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px clamp(18px, 3vw, 34px) 44px;
}
[data-width="full"] .workspace {
  width: 100%;
}
[data-width="full"] .view-cards {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.sidebar-collapsed .workspace {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
}
.sidebar-collapsed .sidebar {
  display: none;
}
.sidebar-restore {
  position: sticky;
  top: 76px;
  align-self: start;
  justify-self: start;
  display: none;
  place-items: center;
  width: 36px;
  min-height: 36px;
  border-color: var(--line);
  background: var(--field);
  color: var(--ink);
  padding: 0;
}
.sidebar-collapsed .sidebar-restore {
  display: inline-grid;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 76px;
  display: grid;
  gap: 14px;
}
.event-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.side-block {
  padding: 0;
}
.side-block + .side-block {
  padding-top: 16px;
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--panel-soft);
}
.side-head h2, .results-head h2 {
  margin: 0;
  font-size: .96rem;
}
.side-head h2 {
  color: var(--faint);
  font-size: 1rem;
  font-weight: 750;
}
.side-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.side-head:hover .side-tools,
.side-head:focus-within .side-tools {
  opacity: 1;
  pointer-events: auto;
}
.side-tools .icon-button {
  border-color: transparent;
  background: transparent;
  color: var(--faint);
}
.side-tools .icon-button:hover,
.side-tools .icon-button:focus-visible {
  background: var(--field);
  color: var(--ink);
  transform: none;
}
.sidebar-collapse-button {
  font-size: .86rem;
}
.subtle-menu {
  font-weight: 900;
  letter-spacing: .08em;
}
.add-menu-wrap {
  position: relative;
}
.add-menu-wrap > .icon-button {
  border-color: transparent;
  background: transparent;
  font-size: 1.45rem;
  font-weight: 400;
}
.board-create-button {
  border-color: transparent;
  background: transparent;
  font-size: 1.45rem;
  font-weight: 400;
}
.add-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 9;
  display: none;
  width: 250px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 52px -24px rgba(16, 19, 26, .75);
}
.add-menu-wrap:hover .add-menu,
.add-menu-wrap:focus-within .add-menu {
  display: grid;
  gap: 4px;
}
.add-menu button {
  display: block;
  width: 100%;
  min-height: 42px;
  border: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
}
.add-menu button:hover,
.add-menu button:focus-visible {
  background: var(--panel-soft);
  transform: none;
}
.muted-small {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: .84rem;
}

.library {
  display: grid;
  gap: 2px;
}
.library-row, .saved-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 30px minmax(24px, auto);
  column-gap: 6px;
  align-items: center;
}
.library-row {
  border-radius: 7px;
}
.library-row > .icon-button {
  opacity: 0;
  pointer-events: none;
}
.library-row:hover > .icon-button,
.library-row:focus-within > .icon-button {
  opacity: 1;
  pointer-events: auto;
}
.library-row.is-active {
  background: var(--panel-soft);
}
.library-row.has-unread .feed-title {
  color: var(--ink);
  font-weight: 900;
}
.library-row.has-unread .library-main::before {
  content: "";
  width: 6px;
  height: 6px;
  align-self: center;
  border-radius: 50%;
  background: var(--accent);
}
.library-row.has-unread .library-main {
  grid-template-columns: 8px minmax(0, 1fr);
}
.category-row.has-unread .library-main {
  grid-template-columns: 8px minmax(0, 1fr);
}
.library-row.is-drop-target {
  background: var(--accent-soft);
  outline: 2px solid var(--accent);
}
.library-main {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 6px 8px;
  text-align: left;
}
.category-row .library-main {
  grid-column: 2 / 3;
  padding-left: 0;
}
.library-row.has-chevron .library-main {
  grid-column: 2 / 3;
}
.library-row:not(.has-chevron) .library-main {
  grid-column: 1 / 3;
}
.library-main:hover {
  background: var(--panel-soft);
  transform: none;
}
.chevron-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: .86rem;
  font-weight: 400;
  line-height: 1;
  transform: none;
}
.chevron-button:hover,
.chevron-button:focus-visible {
  background: var(--panel-soft);
  transform: none;
}
.library-body {
  min-width: 0;
  display: grid;
}
.library-all .feed-title, .category-row .feed-title {
  font-weight: 800;
}
.category-row {
  margin-top: 8px;
}
.nested .library-main {
  padding-left: 38px;
}
.library-count {
  grid-column: 4;
  justify-self: end;
  color: var(--faint);
  font-size: .78rem;
  font-weight: 700;
}
.library-row > .icon-button {
  grid-column: 3;
}
.plain-action {
  width: 100%;
  min-height: 32px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 5px 8px;
}
.plain-action:hover {
  background: var(--panel-soft);
  transform: none;
}
.feed-title {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inline-name-input {
  min-height: 32px;
  border-color: var(--accent);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 1rem;
  font-weight: 850;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.saved-row {
  grid-template-columns: minmax(0, 1fr) 30px minmax(24px, auto);
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.saved-row.is-active {
  background: var(--panel-soft);
  border-radius: 7px;
  padding-inline: 6px;
}
.feed-meta {
  overflow: hidden;
  color: var(--faint);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-meta:empty {
  display: none;
}

.context-menu {
  position: fixed;
  z-index: 30;
  width: 280px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 22px 58px -26px rgba(16, 19, 26, .9);
}
.context-menu[hidden] {
  display: none;
}
.context-menu button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 18px;
  text-align: left;
  font-size: 1rem;
  font-weight: 650;
}
.context-menu button:hover,
.context-menu button:focus-visible {
  background: var(--panel-soft);
  transform: none;
}
.context-icon {
  color: var(--faint);
  font-size: 1.3rem;
  text-align: center;
}
.context-menu .context-danger,
.context-menu .context-danger .context-icon {
  color: var(--danger);
}
.context-separator {
  height: 1px;
  margin: 8px 0;
  background: var(--line);
}
.saved-filter {
  min-height: 30px;
  justify-content: flex-start;
  overflow: hidden;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  padding: 4px 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-row > .icon-button {
  opacity: 0;
  pointer-events: none;
}
.board-row:hover > .icon-button,
.board-row:focus-within > .icon-button {
  opacity: 1;
  pointer-events: auto;
}

.results-head, .results-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.results-head {
  justify-content: space-between;
  margin-bottom: 12px;
}
.results-actions {
  gap: 8px;
}

.message {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
}
.message.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, var(--panel)); color: var(--warn); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  max-height: 62px;
  overflow: hidden;
}
.chip {
  flex: 0 1 auto;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--field);
  color: var(--muted);
  font-weight: 700;
  font-size: .8rem;
}
.chip.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
}
.hint-line {
  margin: -3px 0 0;
  color: var(--faint);
  font-size: .78rem;
}

.events {
  display: grid;
  gap: 12px;
}
.view-cards {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.view-feed, .view-calendar {
  grid-template-columns: 1fr;
}

.event-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}
.view-feed .event-card {
  grid-template-columns: 48px minmax(0, 1fr);
  box-shadow: none;
}
.view-calendar .event-card {
  box-shadow: none;
}
.event-card.is-cancelled {
  opacity: .68;
}
.event-card.is-cancelled h3 {
  text-decoration: line-through;
}
.event-date {
  display: grid;
  place-content: center;
  min-height: 70px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink);
  text-align: center;
  font-weight: 850;
}
.event-date span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
}
.event-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-size: .8rem;
}
.event-body h3 {
  margin: 5px 0 7px;
  font-size: 1.06rem;
  line-height: 1.2;
}
.event-description {
  color: var(--muted);
  font-size: .92rem;
}
.event-description p {
  margin: 0 0 8px;
}
.event-description p:last-child {
  margin-bottom: 0;
}
.event-description ul {
  margin: 0 0 8px 18px;
  padding: 0;
}
.event-meta, .event-tags, .event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.event-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: .84rem;
}
.event-tags {
  margin-top: 9px;
}
.tag, .pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 750;
}
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, var(--panel)); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, var(--panel)); color: var(--warn); }
.event-actions { margin-top: 12px; }
.event-actions button, .event-actions a { min-height: 34px; font-size: .84rem; }
.save-event.is-active {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.calendar-group {
  display: grid;
  gap: 10px;
}
.calendar-group h3 {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
  text-transform: capitalize;
}

.modal {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.modal-wide {
  width: min(720px, calc(100vw - 28px));
}
.modal::backdrop {
  background: rgba(16, 19, 26, .38);
}
.modal-card {
  display: block;
  margin: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px -28px rgba(16, 19, 26, .9);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.modal-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.help-install[hidden] { display: none; }
.link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--field);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
}
.ghost-link:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  color: var(--accent-strong);
}
.modal-card h3 {
  margin: 14px 0 4px;
  font-size: .98rem;
}
.modal-card pre {
  overflow-x: auto;
  padding: 10px;
  border-radius: 7px;
  background: var(--panel-soft);
  font-size: .78rem;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.modal-actions [hidden] {
  display: none;
}
.danger {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
  background: var(--field);
  color: var(--danger);
}
.url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.source-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.source-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.source-row span {
  overflow: hidden;
  color: var(--faint);
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-picker {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.board-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  color: var(--ink);
}
.board-choice input {
  width: 18px;
  min-height: 18px;
}

@media (max-width: 980px) {
  .control-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }
  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .filters-grid {
    position: static;
    width: 100%;
  }
  .view-switch {
    width: 100%;
  }
  .view-switch button {
    flex: 1;
    justify-content: center;
  }
  .filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar-collapsed .workspace {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .sidebar-collapsed .sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-header {
    align-items: center;
    padding: 9px 12px;
    justify-content: flex-start;
  }
  .header-actions {
    margin-left: auto;
  }
  .icon-button.menu-button {
    display: inline-grid;
  }
  .sidebar-collapse-button {
    display: none;
  }
  .sidebar-restore,
  .sidebar-collapsed .sidebar-restore {
    display: none;
  }
  .side-tools {
    opacity: 1;
    pointer-events: auto;
  }
  .hello-bar, .workspace {
    padding-inline: 12px;
  }
  .hello-bar {
    align-items: center;
    flex-wrap: wrap;
    padding-block: 5px;
  }
  .hello-bar p {
    flex: 1;
    min-width: 180px;
  }
  .control-bar {
    padding: 0 0 12px;
  }
  .filters-panel summary {
    width: 100%;
    justify-content: center;
  }
  .filters-grid {
    grid-template-columns: 1fr;
  }
  .view-switch {
    overflow-x: auto;
  }
  .view-switch button {
    min-width: 104px;
  }
  .view-control {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }
  .sidebar {
    position: fixed;
    inset: 52px 0 0 0;
    z-index: 8;
    width: 100vw;
    display: block;
    overflow-y: auto;
    padding: 12px 14px 22px;
    background: var(--page);
    border-right: 1px solid var(--line);
    box-shadow: 20px 0 48px -32px rgba(16, 19, 26, .85);
    transform: translateX(-105%);
    transition: transform .16s ease;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .library-row > .icon-button {
    opacity: .42;
    pointer-events: auto;
  }
  .library-row:hover > .icon-button,
  .library-row:focus-within > .icon-button {
    opacity: 1;
  }
  .context-menu {
    left: 10px !important;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
  }
  .scrim {
    position: fixed;
    inset: 52px 0 0;
    z-index: 7;
    background: rgba(16, 19, 26, .36);
  }
  .scrim[hidden] { display: none; }
  .view-cards {
    grid-template-columns: 1fr;
  }
  .event-card, .view-feed .event-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .event-date {
    display: flex;
    justify-content: space-between;
    min-height: auto;
    padding: 9px 11px;
  }
  .url-row {
    grid-template-columns: 1fr;
  }
  .source-row {
    grid-template-columns: 1fr;
  }
  .results-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .results-actions {
    width: 100%;
  }
  .results-actions button {
    flex: 1;
  }
}
