    body {
      font-family: Arial, sans-serif;
      margin: 0;
      background: #f6f7fb;
      color: #1f2a37;
    }
    header {
      background: #111827;
      color: #fff;
    }
    .container {
      max-width: 1920px;
      margin: 0 auto;
      padding: 16px 24px;
      width: 100%;
      box-sizing: border-box;
    }
    header.hidden {
      transform: translateY(-100%);
    }
    #site-header {
      position: sticky;
      top: 0;
      z-index: 10;
      transition: transform 0.2s ease;
    }
    .header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: nowrap;
    }
    header h1 {
      margin: 0;
      font-size: 20px;
    }
    .tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }
    .tab-button {
      padding: 8px 14px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      background: #fff;
      color: #111827;
      cursor: pointer;
      font-weight: 600;
    }
    .tab-button.active {
      border-color: #2563eb;
      background: #eff6ff;
      color: #1d4ed8;
    }
    .tab-panel.hidden {
      display: none;
    }
    .ghost-button {
      padding: 6px 10px;
      border-radius: 6px;
      border: 1px solid #d1d5db;
      background: #fff;
      color: #111827;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      box-shadow: 0 4px 10px rgba(17, 24, 39, 0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .ghost-button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    .ghost-button:hover:not(:disabled) {
      border-color: #9ca3af;
      box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
      transform: translateY(-1px);
    }
    .filters {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      margin-bottom: 12px;
      width: 100%;
    }
    .header-actions .filters {
      margin-bottom: 0;
      width: auto;
      flex: 0 0 auto;
    }
    .menu-toggle {
      width: 38px;
      height: 38px;
      padding: 0;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .menu-toggle .icon {
      width: 18px;
      height: 18px;
      display: block;
    }
    .filters-toggle {
      width: 38px;
      height: 38px;
      padding: 0;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .filters-toggle .icon {
      width: 18px;
      height: 18px;
      display: block;
    }
    .favorites-button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 10px;
      font-weight: 600;
    }
    .favorites-button.icon-only {
      width: 38px;
      height: 38px;
      padding: 0;
      justify-content: center;
      font-size: 18px;
      line-height: 1;
    }
    .favorites-button.active {
      border-color: #2563eb;
      background: #eff6ff;
      color: #1d4ed8;
    }
    .filters-toggle.active {
      border-color: #2563eb;
      background: #eff6ff;
      color: #1d4ed8;
    }
    .filters-body {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      width: min(340px, calc(100vw - 24px));
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      align-items: start;
      padding: 34px 12px 12px;
      border-radius: 14px;
      border: 1px solid #e5e7eb;
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
      opacity: 0;
      transform: translateY(-6px);
      max-height: 0;
      overflow: hidden;
      pointer-events: none;
      transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
      z-index: 25;
    }
    .header-actions .filters-body {
      left: auto;
      right: 0;
    }
    .filters-body.open {
      opacity: 1;
      transform: translateY(0);
      max-height: 400px;
      overflow: visible;
      pointer-events: auto;
    }
    .filters-body .filter-close {
      top: 8px;
      right: 10px;
      z-index: 2;
    }
    .filters-body .modal-title {
      position: absolute;
      top: 10px;
      left: 12px;
      margin: 0;
    }
    .filter-item {
      display: flex;
      flex-direction: column;
      gap: 6px;
      align-items: flex-start;
      font-size: 13px;
      color: #374151;
      min-width: 0;
    }
    .filter-item.checkbox {
      grid-column: 1 / -1;
      flex-direction: row;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      line-height: 1.3;
      padding: 2px 2px 0;
    }
    .dropdown {
      position: relative;
      min-width: 0;
      width: 100%;
      flex: none;
    }
    .dropdown-toggle {
      width: 100%;
      text-align: left;
      padding: 8px 12px;
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      cursor: pointer;
      font-size: 14px;
      font-family: inherit;
      color: #111827;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .dropdown-toggle:hover {
      border-color: #cbd5f5;
      box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
      transform: translateY(-1px);
    }
    .dropdown-menu {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      background: #fff;
      border-radius: 12px;
      border: 1px solid #e5e7eb;
      box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
      max-height: 0;
      opacity: 0;
      transform: translateY(-6px);
      overflow: hidden;
      transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
      z-index: 40;
    }
    .dropdown-menu.open {
      max-height: 260px;
      opacity: 1;
      transform: translateY(0);
    }
    .dropdown-item {
      width: 100%;
      text-align: left;
      padding: 10px 12px;
      border: none;
      border-bottom: 1px solid #f1f5f9;
      background: #fff;
      cursor: pointer;
      font-size: 14px;
      color: #1f2937;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }
    .dropdown-item:last-child {
      border-bottom: none;
    }
    .dropdown-item:hover {
      background: #f8fafc;
      color: #111827;
      transform: translateX(2px);
    }
    .dropdown-item.active {
      background: #e0f2fe;
      color: #0369a1;
      font-weight: 600;
      z-index: inherit;
    }
    .filter-item label {
      color: #374151;
      font-weight: 600;
      cursor: pointer;
    }
    .filter-item select {
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      background: #fff;
      cursor: pointer;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }
    .filter-item select:focus {
      outline: none;
      border-color: #2563eb;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }
    .filter-item.checkbox input {
      width: 16px;
      height: 16px;
      cursor: pointer;
    }
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }
    #schedule {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      align-items: flex-start;
    }
    .year-block {
      margin-bottom: 24px;
    }
    .year-header {
      font-size: 20px;
      font-weight: 700;
      margin: 0px 0 10px;
      color: #111827;
    }

    .month-header {
      font-size: 18px;
      font-weight: 700;
      margin: 10px 0 12px;
      color: #1f2937;
    }
    .week-row {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      align-items: flex-start;
      margin-bottom: 12px;
    }
    .status {
      font-size: 13px;
      margin-top: 6px;
      color: #9ca3af;
    }
    .header-link {
      color: #93c5fd;
      text-decoration: none;
      margin-left: 6px;
    }
    .header-link:hover {
      text-decoration: underline;
    }
    .day {
      background: #fff;
      border-radius: 12px;
      padding: 16px;
      /*margin-bottom: 16px;*/
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
      border: 1px solid #e5e7eb;
      flex: 1 1 320px;
      max-width: 360px;
      box-sizing: border-box;
    }
    .day.highlight {
      border-color: #f59e0b;
      box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
    }
    .day.today {
      border-color: #10b981;
      box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    }
    .day-title {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }
    .day-title h2 {
      margin: 0;
      font-size: 18px;
    }
    .day-title .day-name {
      font-weight: 600;
    }
    .day-title .day-date {
      color: #6b7280;
      text-align: left;
      font-size: 14px;
      font-weight: 500;
    }
    .badge {
      font-size: 12px;
      padding: 4px 8px;
      border-radius: 5px;
      background: #fef3c7;
      color: #92400e;/*#3730a3;*/ 
    }
    .lesson {
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      padding: 12px;
      margin-bottom: 10px;
      background: #fafafa;
      cursor: pointer;
      transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
      position: relative;
    }
    .lesson:hover {
      border-color: #d1d5db;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
      transform: translateY(-1px);
    }
    .lesson.soon {
      border-color: #fdba74;
      background: #fff7ed;
    }
    .lesson.in-progress {
      border-color: #10b981;
      background: #ecfdf5;
    }
    .lesson.exam {
      border-color: #ef4444;
      background: #fff1f2;
    }
    .lesson.credit {
      border-color: #3b82f6;
      background: #eff6ff;
    }
    .lesson-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }
    .lesson-controls {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .lesson-status {
      font-size: 11px;
      padding: 3px 6px;
      border-radius: 999px;
      background: #e0f2fe;
      color: #075985;
      display: none;
    }
    .lesson-status.active {
      display: inline-flex;
    }
    .lesson-status.soon {
      background: #ffedd5;
      color: #9a3412;
    }
    .lesson-status.in-progress {
      background: #dcfce7;
      color: #166534;
    }
    .favorite-toggle {
      border: 1px solid #e5e7eb;
      background: #fff;
      color: #9ca3af;
      border-radius: 8px;
      width: 28px;
      height: 28px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 14px;
      line-height: 1;
      transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
      position: absolute;
      top: 12px;
      right: 12px;
    }
    .favorite-toggle.active {
      color: #f59e0b;
      border-color: #f59e0b;
      background: #fffbeb;
    }
    .favorite-toggle:disabled {
      cursor: not-allowed;
      opacity: 0.6;
    }
    .favorite-toggle:hover:not(:disabled) {
      border-color: #d1d5db;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }
    .lesson-title {
      font-weight: 600;
      display: block;
      padding-right: 40px;
      word-break: break-word;
    }
    .lesson-meta {
      font-size: 13px;
      color: #6b7280;
      margin-top: 4px;
    }
    .hw-badge {
      font-size: 11px;
      padding: 4px 6px;
      border-radius: 8px;
      background: #fef3c7;
      color: #92400e;
    }
    .lesson-details {
      border-top: 1px dashed #e5e7eb;
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transform: translateY(-6px);
      transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.45s ease;
    }
    .lesson-details:not(.active) {
      margin-top: 0;
      padding-top: 0;
      border-top: none;
    }
    .lesson-details.active {
      margin-top: 10px;
      max-height: 600px;
      opacity: 1;
      transform: translateY(0);
    }
    .homework-list {
      margin-bottom: 16px;
      margin-top: 10px;
      padding: 12px;
      background: #f9fafb;
      border-radius: 8px;
      border: 1px solid #e5e7eb;
    }
    .homework-item {
      border-radius: 8px;
      padding: 12px;
      background: #eff6ff;
      border-left: 4px solid #3b82f6;
      border-right: 1px solid #dbeafe;
      border-top: 1px solid #dbeafe;
      border-bottom: 1px solid #dbeafe;
      margin-bottom: 8px;
      box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
    }
    .homework-item:last-child {
      margin-bottom: 0;
    }
    .homework-form {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 16px;
      padding: 12px;
      background: #fef3c7;
      border-radius: 8px;
      border: 1px dashed #f59e0b;
    }
    .homework-form textarea {
      width: 100%;
      min-height: 70px;
      padding: 8px;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      font-family: inherit;
      box-sizing: border-box;
      resize: none;
      background: #fff;
    }
    .homework-form input {
      margin-top: 8px;
      padding: 6px 8px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
    }
    .homework-form button {
      margin-top: 8px;
      padding: 8px 12px;
      border: none;
      border-radius: 8px;
      background: #111827;
      color: #fff;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    .homework-form button:hover {
      background: #1f2937;
      box-shadow: 0 6px 14px rgba(17, 24, 39, 0.25);
      transform: translateY(-1px);
    }
    .auth-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 14px;
      border-radius: 8px;
      border: 1px solid #4b5563;
      background: #374151;
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
      text-decoration: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    .auth-button:hover {
      background: #1f2937;
      box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22);
      transform: translateY(-1px);
    }
    .secondary-button {
      padding: 8px 14px;
      border-radius: 5px;
      border: 1px solid #9ca3af;
      background: #fff;
      color: #111827;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .secondary-button:hover {
      border-color: #6b7280;
      box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
      transform: translateY(-1px);
    }
    .google-button {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      background: #fff;
      color: #1f2937;
      cursor: pointer;
      font-weight: 600;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .google-button:hover {
      border-color: #9ca3af;
      box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
      transform: translateY(-1px);
    }
    .google-button.connected {
      border-color: #fecaca;
      background: #fef2f2;
      color: #991b1b;
    }
    .modal {
      position: fixed;
      inset: 0;
      background: rgba(17, 24, 39, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 1;
      visibility: visible;
      transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }
    .modal.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .modal-content {
      background: #fff;
      border-radius: 14px;
      padding: 20px;
      min-width: 320px;
      max-width: 420px;
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
      transform: translateY(0);
      opacity: 1;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .modal.hidden .modal-content {
      transform: translateY(8px);
      opacity: 0;
    }
    .modal-title {
      font-size: 16px;
      font-weight: 700;
      color: #111827;
      line-height: 1.2;
      letter-spacing: 0.01em;
    }
    .modal-title {
      margin-bottom: 8px;
    }
    .modal-status {
      font-size: 13px;
      color: #6b7280;
      margin-bottom: 12px;
    }
    .modal-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .empty {
      color: #6b7280;
      font-size: 14px;
      padding: 12px;
      text-align: center;
      font-style: italic;
    }
    .favorites-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      transition: opacity 0.2s ease;
      margin-top: 6px;
    }
    .favorites-list.loading {
      opacity: 0.6;
    }
    .favorites-loading {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #6b7280;
      font-size: 14px;
      padding: 10px 12px;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      background: #f9fafb;
    }
    .spinner {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid #e5e7eb;
      border-top-color: #3b82f6;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }
    .favorites-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    }
    .favorites-item-name {
      font-size: 14px;
      font-weight: 600;
      color: #1f2937;
      line-height: 1.35;
    }

    .danger-button {
      padding: 5px 10px;
      border-radius: 6px;
      border: 1px solid #d1d5db;
      background: #fff;
      color: #374151;
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }
    .danger-button:hover {
      border-color: #fca5a5;
      background: #fef2f2;
      color: #9f1239;
      box-shadow: 0 4px 10px rgba(248, 113, 113, 0.18);
      transform: translateY(-1px);
    }
    .favorites-modal .modal-content {
      max-width: 360px;
      position: absolute;
      border: 1px solid #e5e7eb;
      border-radius: 14px;
      padding: 18px 20px 16px;
      box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      transition: transform 0.35s ease, opacity 0.35s ease;
      will-change: transform, opacity;
    }
    .favorites-modal .modal-title {
      padding-right: 34px;
    }
    .modal-icon-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 20px;
      height: 20px;
      border: none;
      border-radius: 0;
      background: transparent;
      color: #9ca3af;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      line-height: 1;
      padding: 0;
      transition: color 0.2s ease, transform 0.2s ease;
    }
    .modal-icon-close:hover {
      color: #111827;
      transform: scale(1.05);
    }
    .favorites-modal {
      background: transparent;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.35s ease, visibility 0s linear 0.35s;
    }
    .favorites-modal.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.35s ease;
    }
    .favorites-modal .modal-content {
      opacity: 0;
      transform: translateY(10px) scale(0.98);
    }
    .favorites-modal.open .modal-content {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    .mobile-menu-overlay {
      position: fixed;
      inset: 0;
      background: rgba(17, 24, 39, 0.4);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.2s ease, visibility 0s linear 0.2s;
      z-index: 950;
    }
    .mobile-menu-overlay.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.2s ease;
    }
    .mobile-menu {
      position: fixed;
      top: 0;
      right: 0;
      height: 100vh;
      height: 100dvh;
      width: min(320px, 86vw);
      background: #fff;
      box-shadow: -18px 0 36px rgba(15, 23, 42, 0.18);
      transform: translateX(100%);
      transition: transform 0.25s ease;
      z-index: 960;
      display: flex;
      flex-direction: column;
      padding: 16px;
      gap: 12px;
      box-sizing: border-box;
      padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    .mobile-menu.open {
      transform: translateX(0);
    }
    .mobile-menu-button {
      width: 100%;
      justify-content: center;
    }
    .mobile-menu-button.gcalendar-sync-button {
      justify-content: flex-start;
    }
    .gcalendar-sync-button {
      display: inline-flex;
      align-items: stretch;
      text-align: left;
      padding: 10px 12px;
      border-radius: 12px;
      font-weight: 600;
      transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }
    .gcalendar-sync-button.secondary-button:hover:not(:disabled) {
      transform: translateY(-1px);
    }
    .gcalendar-sync-button.secondary-button:hover:disabled {
      transform: none;
    }
    .gcalendar-sync-button__inner {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      width: 100%;
    }
    .gcalendar-sync-button__icon {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.65);
    }
    .gcalendar-sync-button__text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
      flex: 1;
    }
    .gcalendar-sync-button__title {
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: inherit;
      opacity: 0.92;
    }
    .gcalendar-sync-button__state {
      font-size: 14px;
      font-weight: 700;
      line-height: 1.3;
      color: inherit;
    }
    .gcalendar-sync-button__hint {
      font-size: 12px;
      font-weight: 500;
      line-height: 1.25;
      opacity: 0.82;
      margin-top: 2px;
    }
    .gcalendar-sync-button--on {
      border: 1px solid #d8f0e5;
      background: linear-gradient(135deg, #fafdfb 0%, #f0faf5 100%);
      color: #14532d;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }
    .gcalendar-sync-button--on .gcalendar-sync-button__icon {
      background: rgba(16, 185, 129, 0.09);
      color: #15803d;
    }
    .gcalendar-sync-button--on:hover:not(:disabled) {
      border-color: #c5e8d8;
      background: linear-gradient(135deg, #f7fcfa 0%, #e8f7ef 100%);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    }
    .gcalendar-sync-button--off {
      border: 1px solid #cbd5e1;
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
      color: #334155;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    }
    .gcalendar-sync-button--off .gcalendar-sync-button__icon {
      background: rgba(148, 163, 184, 0.2);
      color: #475569;
    }
    .gcalendar-sync-button--off:hover:not(:disabled) {
      border-color: #94a3b8;
      background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    }
    .gcalendar-sync-button--unavailable {
      border: 1px dashed #d1d5db;
      background: #f3f4f6;
      color: #6b7280;
      box-shadow: none;
      cursor: not-allowed;
    }
    .gcalendar-sync-button--unavailable .gcalendar-sync-button__icon {
      background: rgba(156, 163, 175, 0.25);
      color: #6b7280;
    }
    .gcalendar-sync-button:disabled {
      cursor: not-allowed;
      opacity: 1;
    }
    .mobile-menu-footer {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      padding-top: 8px;
    }
    .logout-button {
      border: 1px solid #fecaca;
      background: #fff1f2;
      color: #9f1239;
      font-weight: 700;
    }
    .logout-button:hover {
      border-color: #fda4af;
      background: #ffe4e6;
      color: #881337;
      box-shadow: 0 6px 14px rgba(244, 63, 94, 0.18);
    }
    @media (max-width: 820px) {
      .container {
        padding: 12px 14px;
      }
      .header-row {
        gap: 8px;
      }
      header h1 {
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 44vw;
      }
      .header-actions {
        gap: 6px;
        flex-wrap: nowrap;
      }
      .auth-button {
        padding: 6px 10px;
        font-size: 12px;
      }
      .filters {
        flex-direction: row;
        align-items: center;
        height: 38px;
      }
      .header-actions .filters {
        width: auto;
      }
      .favorites-modal .modal-content {
        min-width: 0;
        width: min(360px, calc(100% - 32px));
        max-width: calc(100% - 32px);
      }
      .filters-body {
        position: fixed;
        top: 62px;
        left: 12px;
        right: 16px;
        width: auto;
        max-width: none;
        box-sizing: border-box;
        max-height: 0;
        overflow: hidden;
        grid-template-columns: 1fr;
        padding-top: 34px;
        z-index: 980;
      }
      .header-actions .filters-body {
        left: 12px;
        right: 16px;
      }
      .filters-body.open {
        max-height: calc(100dvh - 74px);
        overflow: auto;
      }
      .filter-item {
        width: 100%;
        align-items: center;
        flex-wrap: nowrap;
        min-width: 0;
      }
      .filter-item:not(.checkbox) {
        flex-direction: row;
      }
      .filter-item label {
        flex: 0 0 70px;
        text-align: left;
      }
      .filter-item.checkbox {
        flex-direction: row;
        align-items: center;
      }
      .dropdown {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
      }
      #schedule {
        flex-direction: column;
      }
      .week-row {
        flex-direction: column;
        width: 100%;
      }
      .day {
        max-width: none;
        width: 100%;
        flex: 0 0 auto;
      }
      .day .lesson:last-child {
        margin-bottom: 0;
      }
      .year-header {
        margin-top: 12px;
      }
    }
    @media (min-width: 821px) {
      .mobile-menu {
        top: 66px;
        right: 24px;
        height: auto;
        width: 240px;
        max-width: calc(100vw - 48px);
        border-radius: 14px;
        border: 1px solid #e5e7eb;
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
        transform: translateY(-8px) scale(0.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
        z-index: 980;
        padding: 12px;
        gap: 10px;
      }
      .mobile-menu.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.2s ease, transform 0.2s ease;
      }
      .mobile-menu-overlay {
        display: none;
      }
    }
