/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-brand-gold: #C9A84C;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .static {
    position: static;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
}
@layer base {
  :root {
    --bg-main: #1a1a1a;
    --bg-card: #242424;
    --bg-input: #2a2a2a;
    --border-col: #333333;
    --text-main: #f3f4f6;
    --text-sub: #9ca3af;
    --text-muted: #6b7280;
    --bg-elevated: #1e1e1e;
    --color-success: #86efac;
    --color-success-border: #14532d;
    --color-success-bg: rgba(20,83,45,0.25);
    --color-danger: #fca5a5;
    --color-danger-border: #991b1b;
    --color-danger-bg: rgba(153,27,27,0.25);
    --color-warning: #fcd34d;
    --color-warning-bg: rgba(120,80,0,0.3);
    --overlay-bg: rgba(0,0,0,0.7);
    --color-grade-line: rgba(239,68,68,0.5);
  }
  [data-theme="light"] {
    --bg-main: #f5f5f4;
    --bg-card: #ffffff;
    --bg-input: #f0f0ef;
    --border-col: #e2e2e0;
    --text-main: #1a1a1a;
    --text-sub: #52525b;
    --text-muted: #71717a;
    --bg-elevated: #fafafa;
    --color-success: #15803d;
    --color-success-border: #86efac;
    --color-success-bg: rgba(187,247,208,0.5);
    --color-danger: #b91c1c;
    --color-danger-border: #fca5a5;
    --color-danger-bg: rgba(254,202,202,0.5);
    --color-warning: #b45309;
    --color-warning-bg: rgba(253,230,138,0.5);
    --overlay-bg: rgba(0,0,0,0.7);
    --color-grade-line: rgba(239,68,68,0.6);
  }
  body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.2s, color 0.2s;
  }
  a {
    color: var(--color-brand-gold);
  }
  h1, h2, h3 {
    font-weight: 600;
  }
}
@layer components {
  .nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-brand-gold);
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
  }
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-col);
    background-color: var(--bg-main);
  }
  .nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  .nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
  }
  .nav-links a:hover {
    color: var(--color-brand-gold);
  }
  .btn-gold {
    background-color: var(--color-brand-gold);
    color: var(--bg-main) !important;
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .btn-gold:hover {
    opacity: 0.9;
  }
  main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
  }
  .card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
    padding: 1.5rem;
  }
  .alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid;
  }
  .alert-error {
    background-color: var(--color-danger-bg);
    border-color: var(--color-danger-border);
    color: var(--color-danger);
  }
  .alert-success {
    background-color: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success);
  }
  .form-group {
    margin-bottom: 1.25rem;
  }
  .form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-sub);
    margin-bottom: 0.375rem;
  }
  .form-group input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-col);
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
  }
  .form-group input:focus {
    border-color: var(--color-brand-gold);
  }
  .btn-primary {
    width: 100%;
    background-color: var(--color-brand-gold);
    color: var(--bg-main);
    padding: 0.625rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .btn-primary:hover {
    opacity: 0.9;
  }
  .auth-container {
    max-width: 28rem;
    margin: 4rem auto;
  }
  .auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
  }
  .auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
  }
  .auth-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
  }
  .auth-link a {
    color: var(--color-brand-gold);
    text-decoration: none;
  }
  .dashboard-header {
    margin-bottom: 2rem;
  }
  .dashboard-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-main);
  }
  .dashboard-sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
    padding: 1.25rem;
  }
  .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
  }
  .stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
  }
  .stat-value.gold {
    color: var(--color-brand-gold);
  }
  .dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
  }
  .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
  }
  .card-link {
    font-size: 0.75rem;
    color: var(--color-brand-gold);
    text-decoration: none;
  }
  .assignment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .assignment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-input);
    border-radius: 0.375rem;
    border: 1px solid var(--border-col);
  }
  .assignment-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
  }
  .assignment-subject {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
  }
  .assignment-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }
  .assignment-due {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .priority-badge {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 99px;
  }
  .priority-1 {
    background-color: var(--color-success-bg);
    color: var(--color-success);
  }
  .priority-2 {
    background-color: var(--color-warning-bg);
    color: var(--color-warning);
  }
  .priority-3 {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
  }
  .empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
  }
  .quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-col);
    border-radius: 0.375rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.875rem;
    transition: border-color 0.2s, color 0.2s;
  }
  .action-btn:hover {
    border-color: var(--color-brand-gold);
    color: var(--color-brand-gold);
  }
  .action-icon {
    font-size: 1.25rem;
  }
  @media (max-width: 768px) {
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
      grid-template-columns: 1fr;
    }
    .quick-actions {
      grid-template-columns: 1fr;
    }
  }
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }
  .page-title {
    font-size: 1.75rem;
    font-weight: 600;
  }
  .section-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
  }
  .assignment-full-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .assignment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
  }
  .assignment-row-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
  }
  .assignment-row-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .check-btn {
    background: none;
    border: 1.5px solid var(--border-col);
    color: var(--text-sub);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .check-btn:hover {
    border-color: var(--color-brand-gold);
    color: var(--color-brand-gold);
  }
  .check-btn.done {
    border-color: var(--color-brand-gold);
    color: var(--color-brand-gold);
  }
  .delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s;
  }
  .delete-btn:hover {
    color: var(--color-danger);
  }
  .due-chip {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-col);
    color: var(--text-sub);
  }
  .due-overdue {
    border-color: var(--color-danger-border);
    color: var(--color-danger);
    background-color: var(--color-danger-bg);
  }
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
  }
  .modal {
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.75rem;
    padding: 1.75rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  .modal-title {
    font-size: 1.125rem;
    font-weight: 600;
  }
  .modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
  }
  .modal-close:hover {
    color: var(--text-main);
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .form-select {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-col);
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
  }
  .form-textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-col);
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    font-family: inherit;
  }
  .subject-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
  }
  .subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-col);
  }
  .subject-name {
    font-size: 1rem;
    font-weight: 600;
  }
  .subject-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .subject-avg {
    font-size: 1.25rem;
    font-weight: 600;
  }
  .subject-count {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .marks-list {
    padding: 0.5rem 0;
  }
  .mark-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-col);
    transition: opacity 0.2s;
  }
  .mark-row:last-child {
    border-bottom: none;
  }
  .mark-inactive {
    opacity: 0.4;
  }
  .mark-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
  }
  .mark-right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
  }
  .mark-name {
    font-size: 0.875rem;
    font-weight: 500;
  }
  .mark-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
  }
  .mark-score {
    font-size: 0.875rem;
    color: var(--text-sub);
  }
  .mark-pct {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-brand-gold);
    min-width: 48px;
    text-align: right;
  }
  .toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 4px;
    border-radius: 4px;
  }
  .toggle-on {
    color: var(--color-brand-gold);
  }
  .toggle-off {
    color: var(--text-muted);
  }
  .has-feedback {
    color: var(--color-brand-gold);
  }
  .gold {
    color: var(--color-brand-gold);
  }
  .streak-display {
    font-size: 0.875rem;
    color: var(--color-brand-gold);
    margin-top: 0.25rem;
  }
  .deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
  }
  .deck-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s;
  }
  .deck-card:hover {
    border-color: var(--color-brand-gold);
  }
  .deck-link {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
  }
  .deck-subject {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
  }
  .deck-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
  }
  .deck-count {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .deck-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-col);
  }
  .deck-study-btn {
    font-size: 0.75rem;
    color: var(--color-brand-gold);
    text-decoration: none;
    font-weight: 500;
  }
  .back-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .back-link:hover {
    color: var(--color-brand-gold);
  }
  .deck-subject-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
  }
  .btn-outline {
    background: none;
    border: 1px solid var(--border-col);
    color: var(--text-main);
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
  }
  .btn-outline:hover {
    border-color: var(--color-brand-gold);
    color: var(--color-brand-gold);
  }
  .cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
    gap: 1rem;
  }
  .card-row-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
  }
  .card-question {
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
  }
  .card-answer {
    font-size: 0.875rem;
    color: var(--text-sub);
  }
  .import-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .import-tab {
    background: none;
    border: 1px solid var(--border-col);
    color: var(--text-muted);
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .import-tab.active {
    border-color: var(--color-brand-gold);
    color: var(--color-brand-gold);
  }
  .form-file {
    width: 100%;
    font-size: 0.875rem;
    color: var(--text-sub);
    padding: 0.5rem 0;
  }
  .quiz-container {
    max-width: 600px;
    margin: 0 auto;
  }
  .quiz-progress-bar {
    height: 4px;
    background: var(--bg-input);
    border-radius: 99px;
    margin-bottom: 2rem;
    overflow: hidden;
  }
  .quiz-progress-fill {
    height: 100%;
    background: var(--color-brand-gold);
    border-radius: 99px;
    transition: width 0.3s ease;
  }
  .flashcard {
    perspective: 1000px;
    cursor: pointer;
    margin-bottom: 1.5rem;
  }
  .flashcard-inner {
    position: relative;
    height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
  }
  .flashcard-front, .flashcard-back {
    position: absolute;
    inset: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    backface-visibility: hidden;
  }
  .flashcard-back {
    transform: rotateY(180deg);
    border-color: var(--color-brand-gold);
  }
  .flashcard-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
  }
  .flashcard-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.6;
  }
  .flashcard-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
  }
  .quiz-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  .quiz-btn {
    flex: 1;
    max-width: 220px;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
  }
  .quiz-btn:hover {
    opacity: 0.85;
  }
  .quiz-wrong {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
  }
  .quiz-correct {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
  }
  .results-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
  .results-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .results-score {
    font-size: 1rem;
    color: var(--text-sub);
  }
  .term-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  .term-tab {
    background: none;
    border: 1px solid var(--border-col);
    color: var(--text-muted);
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .term-tab.active {
    border-color: var(--color-brand-gold);
    color: var(--color-brand-gold);
  }
  .timetable-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
  .timetable-day {
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--border-radius-lg, 0.5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .timetable-day-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-brand-gold);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-col);
    background: var(--bg-elevated);
    flex-shrink: 0;
  }
  .timetable-period {
    padding: 0.75rem 1rem 0.875rem;
    border-bottom: 1px solid var(--border-col);
    flex: 1;
    position: relative;
    transition: background 0.15s, border-color 0.2s;
    border-left: 3px solid transparent;
  }
  .timetable-period:last-child {
    border-bottom: none;
  }
  .timetable-period:hover {
    background: var(--bg-input);
  }
  .timetable-period-empty {
    background: var(--bg-elevated);
    border-left-color: transparent !important;
  }
  .period-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
  }
  .period-subject {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.25rem;
  }
  .period-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
  }
  .period-tag {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
  }
  .tt-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    gap: 2rem;
  }
  .tt-clock-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .tt-clock {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .tt-date {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  .tt-status {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
  }
  .tt-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
  }
  .period-healthbar {
    margin-top: 0.5rem;
    height: 6px;
    background: var(--bg-input);
    border-radius: 99px;
    overflow: hidden;
    width: 100%;
  }
  .period-healthbar-fill {
    height: 100%;
    background: var(--color-brand-gold);
    width: 0%;
    border-radius: 99px;
    transition: width 0.5s linear;
  }
  .period-active {
    border-left: 3px solid var(--color-brand-gold) !important;
  }
  .timetable-empty {
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .tt-mobile-only {
    display: none;
  }
  .tt-desktop-only {
    display: block;
  }
  @media (max-width: 768px) {
    .tt-mobile-only {
      display: block;
    }
    .tt-desktop-only {
      display: none;
    }
  }
  .subject-check-row {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-col);
  }
  .subject-check-row:last-child {
    border-bottom: none;
  }
  .subject-check-label {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    cursor: pointer;
  }
  .subject-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--color-brand-gold);
    flex-shrink: 0;
    cursor: pointer;
  }
  .subject-check-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
  }
  .subject-check-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
  }
  .file-upload-area {
    border: 1px dashed var(--border-col);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .file-upload-area:hover {
    border-color: var(--color-brand-gold);
  }
  .file-upload-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
  }
  .file-upload-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.25rem;
  }
  .file-upload-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .tt-table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--border-col);
  }
  .tt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
  }
  .tt-day-header {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-brand-gold);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-col);
    border-right: 1px solid var(--border-col);
  }
  .tt-period-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-col);
    width: 80px;
  }
  .tt-period-label {
    padding: 0 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-col);
    white-space: nowrap;
    text-align: right;
    font-weight: 500;
  }
  .tt-row {
    border-bottom: 1px solid var(--border-col);
  }
  .tt-row:last-child {
    border-bottom: none;
  }
  .tt-cell {
    padding: 0.625rem 0.875rem;
    vertical-align: top;
    border-right: 1px solid var(--border-col);
    min-width: 140px;
  }
  .tt-cell:last-child {
    border-right: none;
  }
  .tt-cell-empty {
    background: var(--bg-main);
  }
  .tt-cell-filled {
    background-color: var(--bg-card);
  }
  .tt-cell-filled:hover {
    background: var(--bg-input);
  }
  .tt-subject {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.2rem;
  }
  .tt-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
  }
  .tt-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
  }
  .settings-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 640px;
  }
  .settings-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
  }
  .grade-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .grade-input-label {
    width: 80px;
    background: var(--bg-input);
    border: 1px solid var(--border-col);
    border-radius: 0.375rem;
    padding: 0.5rem 0.625rem;
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
  }
  .grade-input-num {
    width: 70px;
    background: var(--bg-input);
    border: 1px solid var(--border-col);
    border-radius: 0.375rem;
    padding: 0.5rem 0.625rem;
    color: var(--text-main);
    font-size: 0.875rem;
    outline: none;
  }
  .grade-dash {
    color: var(--text-muted);
    font-size: 0.875rem;
  }
  .subject-settings-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .subject-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-col);
  }
  .subject-settings-row:last-child {
    border-bottom: none;
  }
  .btn-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .btn-danger:hover {
    opacity: 0.85;
  }
  .period-healthbar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .period-healthbar-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 18px;
  }
  .period-healthbar {
    flex: 1;
    height: 6px;
    background: var(--bg-input);
    border-radius: 99px;
    overflow: hidden;
  }
  .card-answer-spoiler {
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
    border-radius: 0.25rem;
    padding: 2px 6px;
    background: var(--bg-input);
    transition: background 0.2s;
  }
  .card-answer-spoiler .spoiler-text {
    display: none;
    color: var(--text-sub);
  }
  .card-answer-spoiler .spoiler-hidden {
    color: var(--text-muted);
    font-size: 0.75rem;
  }
  .card-answer-spoiler.revealed .spoiler-text {
    display: block;
  }
  .card-answer-spoiler.revealed .spoiler-hidden {
    display: none;
  }
  .card-answer-spoiler.revealed {
    background: var(--bg-input);
  }
  .analytics-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .analytics-subject-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
    padding: 1.25rem;
  }
  .analytics-subject-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .analytics-subject-avg {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.25rem;
  }
  .analytics-subject-grade {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 0.75rem;
  }
  .analytics-avg-bar {
    position: relative;
    height: 4px;
    background: var(--bg-input);
    border-radius: 99px;
    overflow: visible;
  }
  .analytics-avg-fill {
    height: 100%;
    background: var(--color-brand-gold);
    border-radius: 99px;
    max-width: 100%;
  }
  .analytics-benchmark-line {
    position: absolute;
    top: -4px;
    width: 1px;
    height: 12px;
    background: var(--color-grade-line);
    transform: translateX(-50%);
  }
  .analytics-charts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .analytics-chart-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
    padding: 1.5rem;
  }
  .analytics-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .analytics-chart-title {
    font-size: 1rem;
    font-weight: 600;
  }
  .analytics-chart-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 2px;
  }
  .legend-label {
    margin-right: 0.5rem;
  }
  .analytics-chart-wrap {
    position: relative;
  }
  .edit-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s;
  }
  .edit-btn:hover {
    color: var(--color-brand-gold);
  }
  .analytics-subject-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
  }
  .analytics-expand-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 2px 4px;
    transition: color 0.2s;
    flex-shrink: 0;
  }
  .analytics-expand-btn:hover {
    color: var(--color-brand-gold);
  }
  .analytics-subject-options {
    border-top: 1px solid var(--border-col);
    margin-top: 0.75rem;
    padding-top: 0.5rem;
  }
  .task-progress-bar {
    height: 4px;
    background: var(--bg-input);
    border-radius: 99px;
    overflow: hidden;
  }
  .task-progress-fill {
    height: 100%;
    background: var(--color-brand-gold);
    border-radius: 99px;
    transition: width 0.3s ease;
  }
  .task-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border-col);
  }
  .task-row:last-child {
    border-bottom: none;
  }
  @keyframes flame-ignite {
    0% {
      transform: scale(0.3) rotate(-10deg);
      opacity: 0;
    }
    50% {
      transform: scale(1.3) rotate(8deg);
      opacity: 1;
    }
    70% {
      transform: scale(0.9) rotate(-4deg);
    }
    100% {
      transform: scale(1) rotate(0deg);
      opacity: 1;
    }
  }
  .flame-animate {
    display: inline-block;
    animation: flame-ignite 0.6s ease-out;
  }
  .nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 12px;
  }
  .nav-dropdown-trigger {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
  }
  .nav-dropdown-trigger:hover {
    color: var(--color-brand-gold);
  }
  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    margin-top: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 50;
  }
  .nav-dropdown-menu.align-right {
    left: auto;
    right: 0;
  }
  .nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .nav-dropdown-menu a {
    padding: 0.4rem 0.6rem;
    border-radius: 0.375rem;
    white-space: nowrap;
  }
  .nav-dropdown-menu a:hover {
    background-color: var(--bg-input);
  }
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.2s;
  }
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
    }
    .nav-links {
      display: none;
      position: absolute;
      top: 56px;
      left: 0;
      right: 0;
      background: var(--bg-card);
      border-bottom: 1px solid var(--border-col);
      flex-direction: column;
      padding: 0.75rem 1.25rem;
      gap: 0.25rem;
      z-index: 100;
      flex-shrink: 0;
      align-items: flex-end;
    }
    .nav-links.open {
      display: flex;
    }
    .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu {
      display: flex;
    }
    .nav-dropdown {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      width: 100%;
    }
    .nav-dropdown-menu {
      position: static !important;
      box-shadow: none !important;
      border: none !important;
      background: none !important;
      padding: 0.25rem 0 0.25rem 0 !important;
      margin-top: 0 !important;
      align-items: flex-end;
      width: 100%;
    }
    .nav-dropdown-menu a {
      padding: 0.3rem 1.5rem 0.3rem 0 !important;
      font-size: 0.8rem;
      color: var(--text-muted);
    }
    .nav-dropdown-trigger {
      padding: 0.3rem 0;
      width: 100%;
      text-align: right;
    }
  }
  .tt-day-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }
  .tt-day-tab {
    background: var(--bg-input);
    border: 1px solid var(--border-col);
    border-radius: 0.375rem;
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-sub);
    font-family: inherit;
    transition: all 0.15s;
  }
  .tt-day-tab.active {
    background: var(--color-brand-gold);
    color: #1a1a1a;
    border-color: var(--color-brand-gold);
    font-weight: 600;
  }
  .notes-folder {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background 0.15s, color 0.15s;
  }
  .notes-folder:hover {
    background: var(--bg-input);
    color: var(--text-main);
  }
  .notes-folder-active {
    background: rgba(201,168,76,0.1);
    color: #C9A84C;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
    }
  }
}
