
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
}


.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  padding: 0 0.5rem;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-label::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.125rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.12s;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.95);
}

.sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(190, 150, 255, 0.08), transparent);
  color: rgba(255, 255, 255, 0.95);
  position: relative;
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.sidebar-nav a.active i {
  color: var(--accent);
}

.sidebar-nav a i {
  width: 16px;
  text-align: center;
  font-size: 0.875rem;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
  cursor: pointer;
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.04);
}

.user-avatar {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 0.825rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-plan {
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.main {
  margin-left: 240px;
  min-height: 100vh;
}

.topbar {
  height: 56px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

.breadcrumb .crumb {
  color: var(--text-subtle);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.breadcrumb .separator {
  color: var(--text-faint);
}

.breadcrumb .current {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.content {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.95);
}

.page-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.page-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: -0.005em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.15s;
}

.stat-card:hover {
  border-color: var(--border);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-icon {
  color: var(--accent);
  opacity: 0.6;
  font-size: 0.875rem;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.95);
}

.stat-meta {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.panel-body {
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-input,
.form-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color 0.15s;
  width: 100%;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(190, 150, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(190, 150, 255, 0.08);
}

.form-input::placeholder {
  color: var(--text-faint);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.875rem;
  padding-right: 2.5rem;
  font-family: 'Inter', sans-serif;
}

.form-select optgroup {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.form-select option {
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem;
}

.attack-btn {
  width: 100%;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.18s;
  font-family: inherit;
  letter-spacing: -0.005em;
}

.attack-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08), 0 4px 16px rgba(190, 150, 255, 0.15);
}

.attack-btn:active {
  transform: translateY(0);
}

.attack-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.console {
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 1rem;
}

.console::-webkit-scrollbar {
  width: 6px;
}

.console::-webkit-scrollbar-track {
  background: transparent;
}

.console::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.console-line {
  padding: 0.2rem 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.console-line.success { color: #4ade80; }
.console-line.error { color: #f87171; }
.console-line.info { color: #93c5fd; }
.console-line.warning { color: #fbbf24; }

.console-line .timestamp {
  color: var(--text-faint);
  margin-right: 0.5rem;
}

.attack-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px 1fr 80px;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  transition: background 0.15s;
}

.attack-row:last-child {
  border-bottom: none;
}

.attack-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.attack-row.header {
  padding: 0.625rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.attack-target {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.attack-method,
.attack-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: width 0.3s;
}

.progress-text {
  font-size: 0.7rem;
  color: var(--text-subtle);
  font-family: 'JetBrains Mono', monospace;
}

.stop-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.stop-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border-strong);
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-faint);
}

.empty-state i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.empty-state p {
  font-size: 0.875rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table td {
  padding: 0.875rem 1.5rem;
  color: var(--text);
}

.data-table .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
}

.data-table .muted {
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.success {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.badge.error {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.badge.warning {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.badge.neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.settings-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.settings-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.settings-section .section-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.settings-row + .save-row,
.settings-section .save-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.save-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.save-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.k-select {
  position: relative;
  width: 100%;
}

.k-select-trigger {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.875rem;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  transition: all 0.18s;
  text-align: left;
}

.k-select-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.k-select.open .k-select-trigger {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(190, 150, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(190, 150, 255, 0.08);
}

.k-select.disabled .k-select-trigger {
  opacity: 0.5;
  cursor: not-allowed;
}

.k-select-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.k-select-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: transform 0.2s, color 0.15s;
  flex-shrink: 0;
}

.k-select.open .k-select-caret {
  transform: rotate(180deg);
  color: var(--accent);
}

.k-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(12, 12, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.375rem;
  max-height: 280px;
  overflow-y: auto;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(190, 150, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.k-select.open .k-select-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.k-select-panel::-webkit-scrollbar {
  width: 6px;
}

.k-select-panel::-webkit-scrollbar-track {
  background: transparent;
}

.k-select-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.k-select-group {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.75rem 0.75rem 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.k-select-group::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.k-select-option {
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.k-select-option:hover,
.k-select-option.focused {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.95);
}

.k-select-option.selected {
  background: rgba(190, 150, 255, 0.1);
  color: rgba(190, 150, 255, 0.95);
}

.k-select-option.selected::after {
  content: '✓';
  font-size: 0.85rem;
  color: var(--accent);
  margin-left: 0.5rem;
}

.k-select-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.drawer-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-right: 0.5rem;
}

.drawer-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.drawer-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.drawer-toggle.active span:nth-child(2) {
  opacity: 0;
}

.drawer-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 49;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sidebar-backdrop.open {
  display: block;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .attack-row {
    grid-template-columns: 1fr 100px 80px;
  }

  .attack-row.header > :nth-child(3),
  .attack-row.header > :nth-child(4),
  .attack-row:not(.header) > :nth-child(3),
  .attack-row:not(.header) > :nth-child(4) {
    display: none;
  }
}

@media (max-width: 860px) {
  .drawer-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 260px;
    z-index: 60;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  
  input, select, textarea {
    font-size: 16px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .content {
    padding: 1rem;
  }

  .topbar {
    padding: 0 1rem;
    height: 52px;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .page-header {
    margin-bottom: 1.5rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .panel-header {
    padding: 0.875rem 1rem;
  }

  .panel-body {
    padding: 1rem;
  }

  
  .attack-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.625rem;
  }

  .attack-row.header {
    display: none;
  }

  .attack-row > :nth-child(2),
  .attack-row > :nth-child(3) {
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 0.75rem;
  }

  .attack-row .attack-method::before {
    content: 'Method: ';
    color: var(--text-subtle);
  }

  .attack-row .attack-duration::before {
    content: 'Duration: ';
    color: var(--text-subtle);
  }

  .attack-row .progress {
    width: 100%;
  }

  .attack-row .stop-btn {
    align-self: flex-end;
    width: auto;
    padding: 0.5rem 1rem;
  }

  .console {
    font-size: 0.75rem;
    padding: 0.75rem;
    max-height: 220px;
  }

  
  .panel {
    overflow-x: auto;
  }

  .data-table {
    min-width: 480px;
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.625rem 0.875rem;
  }

  
  .settings-section {
    padding: 1.25rem;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  
  .breadcrumb {
    font-size: 0.8rem;
  }

  .breadcrumb .crumb {
    display: none;
  }

  .breadcrumb .separator {
    display: none;
  }

  .status-pill {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  
  .attack-btn {
    min-height: 44px;
  }

  .save-btn,
  .stop-btn {
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .sidebar {
    padding-left: max(1.25rem, env(safe-area-inset-left));
  }

  .topbar {
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .content {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}
