:root {
  --ink: #172033;
  --muted: #70798b;
  --subtle: #98a0ae;
  --line: #e5e7eb;
  --surface: #ffffff;
  --canvas: #f4f5f7;
  --sidebar: #151a27;
  --sidebar-muted: #8d95a5;
  --coral: #ef5b3f;
  --coral-dark: #d9472e;
  --coral-soft: #fff0ec;
  --green: #29a66f;
  --green-soft: #e9f7f1;
  --blue: #4b72d8;
  --blue-soft: #edf2ff;
  --shadow: 0 8px 30px rgba(23, 32, 51, 0.06);
  --font: "DM Sans", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 238px;
  flex-direction: column;
  padding: 30px 20px 22px;
  background: var(--sidebar);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-decoration: none;
}

.brand > span:last-child span {
  color: var(--coral);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--coral);
}

.brand-mark svg {
  width: 19px;
}

.nav-list {
  display: grid;
  gap: 7px;
  margin-top: 48px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--sidebar-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-item.active {
  box-shadow: inset 3px 0 var(--coral);
}

.nav-item svg {
  width: 19px;
}

.sidebar-note {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-note p {
  margin: 11px 0 0;
  color: #aeb5c2;
  font-size: 12px;
  line-height: 1.8;
}

.note-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: rgba(239, 91, 63, 0.15);
  color: #ff8068;
}

.note-icon svg {
  width: 15px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 21px 8px 0;
  color: #737d90;
  font-size: 11px;
}

.logout-link {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 7px;
  color: #737d90;
  text-decoration: none;
  transition: 160ms ease;
}

.logout-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ef5b3f;
}

.logout-link svg {
  width: 14px;
}

.system-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39c687;
  box-shadow: 0 0 0 4px rgba(57, 198, 135, 0.1);
}

.main-content {
  margin-left: 238px;
  padding: 38px 42px 52px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1450px;
  margin: 0 auto 28px;
}

.eyebrow,
.section-kicker {
  display: block;
  margin: 0 0 5px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 7px;
  font-size: clamp(28px, 3vw, 39px);
  letter-spacing: -1.4px;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  letter-spacing: -0.4px;
}

.header-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.button svg {
  width: 17px;
}

.button.primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 18px rgba(239, 91, 63, 0.22);
}

.button.primary:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  max-width: 1450px;
  margin: 0 auto 18px;
}

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-right: 14px;
  place-items: center;
  border-radius: 10px;
}

.stat-icon svg {
  width: 20px;
}

.stat-icon.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.stat-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.stat-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.stat-card strong {
  display: block;
  margin-top: 1px;
  font-size: 23px;
}

.stat-detail {
  align-self: end;
  color: var(--subtle);
  font-size: 10px;
}

.stat-detail.live {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-weight: 700;
}

.stat-detail.live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  max-width: 1450px;
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: #cfd3da;
  background: #f8f9fa;
  color: var(--ink);
}

.icon-button svg {
  width: 16px;
}

.channel-list {
  display: grid;
  gap: 7px;
  max-height: 742px;
  overflow: auto;
  padding: 12px;
}

.channel-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 69px;
  padding: 10px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.channel-item:hover {
  background: #f7f8fa;
}

.channel-item.active {
  border-color: #f7c9be;
  background: var(--coral-soft);
}

.channel-thumbnail {
  position: relative;
  display: grid;
  width: 52px;
  height: 42px;
  margin-right: 11px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dde0e6;
  border-radius: 7px;
  background: #232938;
  color: #697084;
}

.channel-thumbnail img,
.channel-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-thumbnail svg {
  width: 18px;
}

.pdf-thumbnail {
  display: grid;
  place-items: center;
  color: #f07a64;
}

.pdf-thumbnail small {
  margin-top: -2px;
  font-size: 7px;
  font-weight: 700;
}

.channel-info {
  overflow: hidden;
}

.channel-info strong,
.channel-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-info strong {
  font-size: 13px;
}

.channel-info span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.channel-state-dot {
  width: 8px;
  height: 8px;
  margin: 0 7px;
  border-radius: 50%;
  background: #c9cdd4;
}

.channel-state-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.control-column {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.selected-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c7cbd2;
}

.status-indicator.online {
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

.preview-actions,
.playback-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pdf-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 3px;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}

.pdf-controls[hidden] {
  display: none;
}

.pdf-page-label {
  min-width: 46px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.screen-frame {
  padding: 18px 18px 13px;
}

.screen {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  max-height: 510px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #111521;
  color: #fff;
}

.screen img,
.screen video,
.screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.screen-message {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  white-space: pre-wrap;
}

.empty-preview {
  display: grid;
  place-items: center;
  color: #6d7589;
  text-align: center;
}

.empty-preview strong {
  margin-top: 14px;
  color: #c6cbd5;
  font-size: 13px;
}

.empty-preview span {
  margin-top: 7px;
  font-size: 10px;
}

.empty-illustration {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid #303747;
  border-radius: 14px;
  background: #1a2030;
}

.empty-illustration svg {
  width: 25px;
}

.screen-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 2px 0;
  color: var(--subtle);
  font-size: 10px;
}

.screen-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.screen-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.screen-footer-separator {
  color: #c7cbd2;
}

.screen-footer svg {
  width: 13px;
}

.editor-panel {
  padding-bottom: 18px;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 15px 20px;
}

.content-tabs {
  display: flex;
  gap: 5px;
  margin: 0 20px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.content-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.content-tab.active {
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.content-tab svg {
  width: 15px;
}

.tab-panel {
  display: none;
  min-height: 138px;
  padding: 17px 20px 8px;
}

.tab-panel.active {
  display: block;
}

.upload-zone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 12px 15px;
  border: 1px dashed #cfd3db;
  border-radius: 9px;
  background: #fafbfc;
  cursor: pointer;
  transition: 160ms ease;
}

.upload-zone:hover,
.upload-zone.dragging {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.upload-icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--coral);
  box-shadow: 0 2px 10px rgba(23, 32, 51, 0.08);
}

.upload-icon svg {
  width: 19px;
}

.upload-zone strong,
.upload-zone small {
  display: block;
}

.upload-zone strong {
  font-size: 12px;
}

.upload-zone small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.media-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px;
  gap: 8px;
  margin-top: 13px;
}

.media-search {
  position: relative;
}

.media-search svg {
  position: absolute;
  top: 10px;
  left: 11px;
  width: 15px;
  color: var(--subtle);
  pointer-events: none;
}

.media-search input,
.media-sort {
  width: 100%;
  height: 36px;
  border: 1px solid #d8dbe1;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.media-search input {
  padding: 0 11px 0 34px;
}

.media-sort {
  padding: 0 9px;
}

.media-search input:focus,
.media-sort:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(239, 91, 63, 0.08);
}

.media-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.media-filters {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.media-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.media-filter span {
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  border-radius: 99px;
  background: #f0f1f3;
  font-size: 8px;
}

.media-filter.active {
  border-color: #f4b7aa;
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.media-filter.active span {
  background: #fff;
}

.media-result-count {
  flex: 0 0 auto;
  color: var(--subtle);
  font-size: 10px;
}

.media-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  transition: 160ms ease;
}

.media-card:hover {
  border-color: #cfd3da;
  box-shadow: 0 5px 16px rgba(23, 32, 51, 0.08);
  transform: translateY(-1px);
}

.media-card.active {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(239, 91, 63, 0.12);
}

.media-select {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.media-card-visual {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef0f4;
}

.media-card-visual > img,
.media-card-visual > video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-type-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(15, 20, 31, 0.78);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.media-selected-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
}

.media-selected-mark svg {
  width: 12px;
}

.pdf-card-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-content: center;
  place-items: center;
  background: #fff3ef;
  color: var(--coral);
}

.pdf-card-preview svg {
  width: 25px;
  height: 25px;
}

.pdf-card-preview strong {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.8px;
}

.media-card-body {
  display: block;
  padding: 8px 34px 8px 9px;
}

.media-card-body strong,
.media-card-body > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card-body strong {
  font-size: 10px;
}

.media-card-body > span {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 8px;
}

.media-delete {
  position: absolute;
  right: 6px;
  bottom: 7px;
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a2a9b5;
  cursor: pointer;
}

.media-delete:hover:not(:disabled) {
  background: var(--coral-soft);
  color: var(--coral);
}

.media-delete:disabled {
  color: var(--green);
  cursor: not-allowed;
}

.media-delete svg {
  width: 13px;
}

.screen .pdf-page-image {
  width: 100%;
  height: 100%;
  background: #111521;
  object-fit: contain;
  opacity: 1;
  transform: translateX(0);
}

.screen .pdf-page-image.pdf-transition-fade,
.screen .pdf-page-image.pdf-transition-slide {
  transition: opacity 220ms ease, transform 220ms ease;
}

.screen .pdf-page-leave {
  opacity: 0;
}

.screen .pdf-page-image.pdf-transition-slide.pdf-page-leave[data-direction="next"] {
  transform: translateX(-28px);
}

.screen .pdf-page-image.pdf-transition-slide.pdf-page-leave[data-direction="previous"] {
  transform: translateX(28px);
}

.empty-library {
  grid-column: 1 / -1;
  display: grid;
  min-height: 90px;
  padding: 18px;
  place-items: center;
  color: var(--subtle);
  font-size: 11px;
  text-align: center;
}

.empty-library svg {
  width: 22px;
}

.empty-library strong {
  margin-top: 7px;
  color: var(--muted);
}

.empty-library span {
  margin-top: 3px;
  font-size: 9px;
}

.media-load-more {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.media-load-more:hover {
  background: #f7f8fa;
  color: var(--ink);
}

.media-load-more[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: #4f5868;
  font-size: 11px;
  font-weight: 600;
}

.field > span small {
  color: var(--subtle);
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d8dbe1;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  transition: 160ms ease;
}

.field input,
.field select {
  height: 42px;
  padding: 0 12px;
}

.field textarea {
  min-height: 90px;
  padding: 11px 12px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(239, 91, 63, 0.1);
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 16px;
  color: var(--subtle);
}

.input-with-icon input {
  padding-left: 38px;
}

.field-help {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 10px;
}

.youtube-import-status {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #f4d1c9;
  border-radius: 8px;
  background: var(--coral-soft);
}

.youtube-import-status[hidden] {
  display: none;
}

.youtube-import-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6a4b45;
  font-size: 10px;
}

.youtube-import-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.youtube-import-copy strong {
  color: var(--coral-dark);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(239, 91, 63, 0.16);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 240ms ease;
}

.editor-options {
  display: grid;
  grid-template-columns: minmax(145px, 170px) minmax(145px, 170px) auto auto 1fr;
  align-items: end;
  gap: 17px;
  padding: 13px 20px 0;
  border-top: 1px solid var(--line);
}

.field.compact {
  gap: 5px;
}

.field.compact select {
  height: 39px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  opacity: 0;
}

.switch {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: #d3d6dc;
  transition: 160ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: 160ms ease;
}

.switch-row input:checked + .switch {
  background: var(--coral);
}

.switch-row input:checked + .switch::after {
  transform: translateX(14px);
}

.apply-button {
  justify-self: end;
}

.modal {
  width: min(460px, calc(100vw - 30px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(15, 20, 33, 0.25);
}

.modal::backdrop {
  background: rgba(14, 19, 29, 0.58);
  backdrop-filter: blur(2px);
}

.modal form {
  display: grid;
  gap: 17px;
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 6px;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  gap: 9px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 260px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.15);
  font-size: 12px;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-left-color: var(--coral);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .editor-options {
    grid-template-columns: 1fr 1fr;
  }

  .apply-button {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 17px 20px;
    flex-direction: row;
    align-items: center;
  }

  .nav-list {
    display: flex;
    margin: 0 0 0 auto;
  }

  .nav-item {
    min-height: 39px;
  }

  .nav-item span,
  .sidebar-note,
  .sidebar-footer {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 27px 20px 40px;
  }

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

  .channel-list {
    grid-template-columns: repeat(2, 1fr);
    max-height: none;
  }
}

@media (max-width: 600px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header .button {
    width: 100%;
  }

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

  .channel-list {
    grid-template-columns: 1fr;
  }

  .editor-options {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .apply-button {
    justify-self: stretch;
  }

  .content-tabs {
    overflow-x: auto;
  }

  .media-toolbar {
    grid-template-columns: 1fr;
  }

  .media-filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

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