@charset "UTF-8";

:root {
  color-scheme: dark;
  --lime-cream: #d9ed92ff;
  --light-green: #b5e48cff;
  --light-green-2: #99d98cff;
  --emerald: #76c893ff;
  --ocean-mist: #52b69aff;
  --tropical-teal: #34a0a4ff;
  --bondi-blue: #168aadff;
  --cerulean: #1a759fff;
  --baltic-blue: #1e6091ff;
  --yale-blue: #184e77ff;
  --white: #fff;
  --deep-ink: #07151f;
  --bg: #0b1016;
  --surface: #111922;
  --raised: #182330;
  --ink: #e7edf3;
  --muted: #a4b5c6;
  --line: #293849;
  --accent: var(--ocean-mist);
  --accent-hover: var(--emerald);
  --accent-soft: color-mix(in srgb, var(--ocean-mist) 10%, var(--surface));
  --badge-bg: var(--raised);
  --badge-ink: #b7d7ce;
  --navy: #090f16;
  --nav-text: #c4d0dd;
  --nav-muted: #9cacc0;
  --focus: var(--ocean-mist);
  --sidebar: 240px;
  --shadow: 0 16px 48px #0005;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-time: 280ms;
  --scrim: rgb(0 0 0 / .72);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6f8;
  --surface: var(--white);
  --raised: #eaf0f5;
  --ink: var(--deep-ink);
  --muted: #476279;
  --line: #d3dee7;
  --accent: var(--cerulean);
  --accent-hover: var(--baltic-blue);
  --accent-soft: #eaf5f0;
  --badge-bg: var(--raised);
  --badge-ink: var(--yale-blue);
  --focus: var(--cerulean);
  --shadow: 0 16px 48px #07151f14;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
h3 { font-size: 18px; line-height: 1.4; }
p { line-height: 1.65; }
svg { flex-shrink: 0; vertical-align: middle; }
.icon { width: 20px; height: 20px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input, textarea, select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; background: var(--surface); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; }
input[type="file"] { padding: 10px; }
input::file-selector-button { background: var(--accent-soft); color: var(--accent); border: 0; padding: 9px 12px; margin-right: 12px; border-radius: 5px; cursor: pointer; font: inherit; }
label { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; }
label > input, label > select, label > textarea, label > .password-field { margin-top: 7px; }
form > label + label { margin-top: 20px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px; background: var(--surface); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.muted, .optional { color: var(--muted); }
.optional { font-weight: 400; }
.nowrap { white-space: nowrap; }
.eyebrow, .library-kicker { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 10px; letter-spacing: .01em; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; padding: 10px 15px; font-size: 14px; line-height: 1.3; font-weight: 600; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.button .icon { width: 18px; height: 18px; }
.button-primary { background: var(--ocean-mist); color: var(--deep-ink); box-shadow: 0 3px 12px #0002; }
.button-primary:hover { background: var(--emerald); }
.button-secondary { background: var(--surface); border-color: var(--line); }
.button-secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
.button-danger { background: var(--accent-soft); border-color: var(--light-green); color: var(--ink); }
.button-danger:hover { background: var(--accent-soft); }
.button-small { padding: 8px 12px; }
.button-full { width: 100%; }
.icon-button, .plain-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.icon-button:hover, .plain-button:hover { background: var(--accent-soft); color: var(--accent); }
.text-button, .text-link { color: var(--accent); font-weight: 600; }
.text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; font-size: 14px; background: transparent; border: 0; }

/* Select2 uses the same surfaces and focus treatment as native fields. */
label > .select2-container { margin-top: 7px; }
.select2-container { min-width: 0; max-width: 100%; font-size: 14px; }
.select2-container--humcode .select2-selection { min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.select2-container--humcode .select2-selection--single { position: relative; display: flex; align-items: center; height: auto; padding: 11px 36px 11px 13px; }
.select2-container--humcode .select2-selection--single .select2-selection__rendered { min-width: 0; padding: 0; color: var(--ink); line-height: 22px; }
.select2-container--humcode .select2-selection__placeholder { color: var(--muted); }
.select2-container--humcode .select2-selection__arrow { position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.select2-container--humcode .select2-selection__arrow b { display: none; }
.select2-container--humcode.select2-container--open .select2-selection__arrow { margin-top: -2px; transform: rotate(225deg); }
.select2-container--humcode.select2-container--focus .select2-selection, .select2-container--humcode.select2-container--open .select2-selection { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 1px; }
.select2-container--humcode .select2-selection[aria-invalid="true"] { border-color: var(--focus); outline: 2px solid var(--focus); }
.select2-container--humcode.select2-container--disabled .select2-selection { background: var(--raised); opacity: .6; cursor: not-allowed; }
.select2-container--humcode .select2-dropdown { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.select2-container--humcode .select2-search--dropdown { padding: 10px; }
.select2-container--humcode .select2-search--dropdown .select2-search__field { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; min-height: 44px; font-size: 16px; background: var(--bg); color: var(--ink); }
.select2-container--humcode .select2-results__options { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.select2-container--humcode .select2-results__option { padding: 11px 13px; min-height: 44px; line-height: 22px; overflow-wrap: anywhere; }
.select2-container--humcode .select2-results__option--selected { background: var(--accent-soft); color: var(--ink); }
.select2-container--humcode .select2-results__option--highlighted.select2-results__option--selectable { background: var(--raised); color: var(--ink); box-shadow: inset 3px 0 var(--accent); }
.select2-container--humcode .select2-results__option--disabled { color: var(--muted); }
.select2-container--humcode .select2-results__message { color: var(--muted); }
.select2-container--humcode .select2-selection--multiple { padding: 7px 10px; }
.select2-container--humcode .select2-selection--multiple .select2-selection__rendered { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.select2-container--humcode .select2-selection__choice { display: inline-flex; align-items: center; gap: 7px; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 4px 8px; }
.select2-container--humcode .select2-selection__choice__remove { background: transparent; border: 0; color: var(--muted); }
.select2-container--humcode .select2-search--inline .select2-search__field { margin: 0; min-height: 30px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.library-filters .select2-selection { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }

/* Navigation */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); background: var(--navy); color: var(--nav-text); display: flex; flex-direction: column; overflow: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 11px; padding: 30px 24px 26px; font-size: 26px; font-weight: 750; letter-spacing: -.04em; color: var(--white); }
.brand-mark { color: var(--ocean-mist); border: 1px solid #52b69a55; width: 36px; height: 36px; border-radius: 10px; background: #52b69a12; display: flex; align-items: center; justify-content: center; }
.brand-sub { display: block; font-size: 11px; font-weight: 400; letter-spacing: .02em; color: var(--nav-muted); margin-top: 1px; }
.brand-dark { color: var(--ink); }
.sidebar-caption { margin: 18px 24px 10px; color: var(--nav-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; margin-bottom: 3px; }
.sidebar-heading .plain-button { color: var(--nav-text); }
.nav-total { margin-left: 4px; }
.main-nav, .subject-nav, .sidebar-bottom > nav { padding: 0 12px; }
.subject-nav { flex: 1; padding-bottom: 25px; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; margin: 3px 0; border-radius: 6px; font-size: 13px; line-height: 1.45; }
.nav-link:hover { background: #ffffff08; color: var(--white); }
.nav-link.active { background: #52b69a14; color: #81d6be; box-shadow: inset 2px 0 var(--ocean-mist); }
.nav-name { flex: 1; min-width: 0; }
.nav-count { font-size: 12px; color: var(--nav-muted); }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: currentColor !important; }
.nav-dot.color-teal { color: var(--light-green); }.nav-dot.color-blue { color: var(--yale-blue); }.nav-dot.color-violet { color: var(--cerulean); }.nav-dot.color-orange { color: var(--emerald); }.nav-dot.color-rose { color: var(--ocean-mist); }
.nav-dot { border: 1px solid var(--white); }
.nav-link.active .nav-count { color: #81d6be; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 20px 18px; margin-top: 16px; border-top: 1px solid #ffffff0c; }
.profile-info { flex: 1; min-width: 0; }
.profile-info strong { display: block; color: var(--white); font-size: 13px; overflow-wrap: anywhere; }
.profile-info small { font-size: 12px; color: var(--nav-muted); }
.sidebar-profile .plain-button { color: var(--nav-text); }
.sidebar-profile { padding: 0; }.sidebar-profile > form { padding: 0 18px 0 8px; }.sidebar-profile-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; align-self: stretch; padding: 20px 8px 20px 18px; transition: background-color .15s; }.sidebar-profile-link:hover { background: #ffffff0f; }.sidebar-profile-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.avatar, .topbar-avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 650; flex-shrink: 0; }
.topbar-avatar { width: 44px; height: 44px; padding: 0; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.profile-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.sidebar-shade, .nav-rail { display: none; }
.workspace { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; height: 80px; padding: 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-heading { display: flex; align-items: center; gap: 12px; font-size: 14px; min-width: 0; }
.topbar-heading > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.topbar-brand { font-weight: 650; }.topbar-divider { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.app-body:has([data-library-page]) .header-actions { margin-left: auto; }
.header-user { position: relative; }
.user-menu { position: absolute; top: calc(100% + 15px); right: 0; width: 280px; max-width: calc(100vw - 32px); border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 20px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.user-menu > strong { font-size: 16px; }.user-menu-email { font-size: 14px; margin-top: 5px; color: var(--muted); }
.user-menu-account, .user-menu-logout { display: flex; align-items: center; gap: 9px; padding: 12px 8px; min-height: 44px; border-radius: 6px; font-size: 14px; }
.user-menu-account { margin-top: 14px; }.user-menu form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.user-menu-logout { width: 100%; border: 0; background: transparent; text-align: left; }
.user-menu-account:hover, .user-menu-logout:hover { background: var(--accent-soft); }
:root:not([data-theme="dark"]) .theme-sun, :root[data-theme="dark"] .theme-moon { display: none; }
.main-content { width: 100%; max-width: 1800px; margin: 0 auto; padding: 40px 36px; flex: 1; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.page-heading > div:first-child { min-width: 0; }.page-heading h1 { overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 65ch; }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 22px 36px; color: var(--muted); font-size: 12px; }

/* Library */
.library-heading { margin-bottom: 30px; }
.library-filters { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 1fr) minmax(140px, .8fr) minmax(140px, .8fr); align-items: end; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.library-filters > label { min-width: 0; }.library-filters > label + label { margin: 0; }.library-filters label > span:not(.sr-only):not(.select2-container) { font-size: 12px; color: var(--muted); }
.library-filters select { font-size: 14px; padding-right: 27px; }
.library-search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding-left: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.library-search > .icon { color: var(--muted); width: 19px; }.library-search input { margin: 0; padding: 10px 0; font-size: 15px; font-weight: 400; background: transparent; border: 0; outline: 0; }
.library-search:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.library-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; min-height: 64px; font-size: 14px; color: var(--muted); }
.library-summary > span:first-child { color: var(--ink); }.library-summary > span:nth-child(2) { margin-left: auto; }.library-summary strong { font-weight: 650; }
.library-status { font-size: 13px; color: var(--muted); }.library-status:not(:empty) { padding-bottom: 12px; }
.library-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.library-layout.has-preview { grid-template-columns: minmax(320px, .85fr) minmax(380px, 1.15fr); }
.materials-section { min-width: 0; }
.table-wrap { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.materials-table { width: 100%; border-collapse: collapse; text-align: left; }
.materials-table th { font-weight: 500; color: var(--muted); font-size: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.materials-table td { padding: 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.materials-table tbody tr:last-child td { border-bottom: 0; }
.materials-table tbody tr { transition: background .15s; }
.materials-table tbody tr:hover, .materials-table tbody tr.selected { background: var(--accent-soft); }
.materials-table th:first-child { width: 70%; }
.material-name { display: flex; align-items: center; gap: 16px; }
.material-name > div { min-width: 0; flex: 1; }
.file-badge { display: flex; align-items: center; justify-content: center; width: 46px; height: 54px; flex-shrink: 0; background: var(--badge-bg); color: var(--badge-ink); border-radius: 6px; font-size: 10px; font-weight: 700; }
.ext-pdf { color: var(--badge-ink); background: var(--accent-soft); }.ext-html, .ext-htm { color: var(--badge-ink); background: var(--accent-soft); }.ext-doc, .ext-docx { color: var(--badge-ink); background: var(--badge-bg); }.ext-png, .ext-jpg, .ext-jpeg, .ext-webp, .ext-gif { color: var(--badge-ink); background: var(--accent-soft); }
.material-title { display: block; font-size: 16px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.material-title:hover { color: var(--accent); }
.material-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.subject-tag { display: inline-block; font-size: 12px; line-height: 1.5; font-weight: 500; padding: 2px 7px; border-radius: 4px; }
/* Subject categories retain their stored values and use the current palette. */
.color-teal { color: var(--deep-ink); background: var(--light-green); }
.color-blue { color: var(--white); background: var(--yale-blue); }
.color-violet { color: var(--white); background: var(--cerulean); }
.color-orange { color: var(--deep-ink); background: var(--emerald); }
.color-rose { color: var(--deep-ink); background: var(--ocean-mist); }
.material-filename { font-size: 12px; line-height: 1.5; color: var(--muted); display: block; margin-top: 6px; overflow-wrap: anywhere; }
.date-column { font-size: 13px; }.actions-heading { text-align: right; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.open-material { min-width: 88px; font-size: 13px; }
.material-menu { position: relative; }.material-menu summary { list-style: none; }.material-menu summary::-webkit-details-marker { display: none; }
.material-menu-items { position: absolute; right: 0; top: 46px; z-index: 25; padding: 6px; width: 210px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-radius: 8px; }
.material-menu-items a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; border-radius: 5px; padding: 10px; }
.material-menu-items a:hover { background: var(--accent-soft); }
.table-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 22px; font-size: 13px; color: var(--muted); }
.pagination { display: flex; align-items: center; gap: 15px; }
.library-preview { position: sticky; top: 104px; scroll-margin-top: 104px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--accent); }
.preview-loading { padding: 30px; }
.library-preview [data-reading-content] { padding: 22px; }
.library-preview .page-heading { display: block; margin-bottom: 18px; }
.library-preview .heading-actions { margin-top: 18px; }
.library-preview h2 { font-size: 22px; overflow-wrap: anywhere; }
.library-preview .document-viewer { min-height: 400px; height: calc(100dvh - 430px); border-radius: 5px; }
.library-preview .material-toolbar { gap: 8px; }.library-preview .material-toolbar .button { font-size: 12px; padding: 9px; }
.has-preview .date-column { display: none; }.has-preview .open-material { min-width: 44px; padding: 10px; }.has-preview .open-material span { display: none; }
.has-preview .materials-table td { padding: 17px 14px; }.has-preview .material-name { gap: 11px; }.has-preview .file-badge { width: 34px; height: 44px; font-size: 9px; }
.has-preview .material-filename { display: none; }

/* Forms and reader */
.notice { display: flex; align-items: center; gap: 10px; padding: 15px 18px; margin-bottom: 22px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.notice-success { background: var(--accent-soft); border-color: var(--line); color: var(--badge-ink); }.notice-error { background: var(--accent-soft); border-color: var(--light-green); color: var(--ink); }.notice-info { background: var(--badge-bg); border-color: var(--line); color: var(--badge-ink); }
.modal { padding: 28px; width: calc(100% - 32px); max-width: 540px; max-height: 90dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.modal::backdrop { background: var(--scrim); }
.modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 22px; }.modal-heading h2 { font-size: 24px; }.modal-heading .eyebrow { font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line); }
.color-picker { display: flex; gap: 12px; border: 0; margin: 22px 0 0; padding: 0; }.color-picker legend { font-size: 14px; margin-bottom: 10px; font-weight: 600; }
.color-option { position: relative; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; }.color-option input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.color-option > span:not(.sr-only) { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; }.color-option .icon { opacity: 0; }.color-option input:checked + span { border-color: currentColor; }.color-option input:checked + span .icon { opacity: 1; }.color-option input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 3px; }
.form-hint { font-size: 13px; color: var(--muted); line-height: 1.65; margin-top: 12px; }.form-error { font-size: 14px; color: var(--ink); line-height: 1.5; margin-top: 12px; }
.dropzone { position: relative; display: flex; align-items: center; flex-direction: column; gap: 8px; text-align: center; padding: 28px 20px; margin-top: 22px; border: 1px dashed var(--line); border-radius: 8px; background: var(--accent-soft); cursor: pointer; }.dropzone:focus-within, .dropzone.dragover { outline: 2px solid var(--focus); }
.dropzone-icon, .empty-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--accent); background: var(--accent-soft); border-radius: 10px; margin-bottom: 8px; }.dropzone strong { font-size: 15px; }.dropzone > span:not(.dropzone-icon) { font-size: 14px; font-weight: 400; }.dropzone small { font-size: 12px; color: var(--muted); font-weight: 400; max-width: 34ch; }
.selected-files { list-style: none; margin: 14px 0 0; padding: 0; }.selected-files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }.selected-files li > span { overflow-wrap: anywhere; min-width: 0; }.selected-files small { color: var(--muted); white-space: nowrap; }
.upload-progress { margin-top: 18px; }.upload-progress progress { width: 100%; height: 10px; accent-color: var(--light-green); }.upload-progress p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.empty-state { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 60px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.empty-state p { color: var(--muted); font-size: 15px; margin-top: 10px; }.empty-state .button { margin-top: 22px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; min-height: 44px; color: var(--muted); margin-bottom: 18px; }
.viewer-heading { align-items: flex-start; }.viewer-heading h1 { font-size: clamp(24px, 2.5vw, 32px); }.viewer-heading p { overflow-wrap: anywhere; }
.material-toolbar, .subject-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.document-viewer { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); min-height: 500px; height: calc(100dvh - 310px); }.document-viewer iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--white); }
.document-fallback { min-height: 350px; }
.reading-expanded .sidebar, .reading-expanded .topbar, .reading-expanded .page-footer, .reading-expanded.sidebar-collapsed .nav-rail { display: none; }.reading-expanded .workspace, .reading-expanded.sidebar-collapsed .workspace { margin-left: 0; }.reading-expanded .main-content { max-width: none; padding: 20px 28px; }.reading-expanded .document-viewer { height: calc(100dvh - 190px); }.reading-expanded .material-toolbar, .reading-expanded .back-link, .reading-expanded .viewer-heading p, .reading-expanded .viewer-heading .eyebrow { display: none; }.reading-expanded .viewer-heading { align-items: center; margin-bottom: 18px; }
.delete-confirmation { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; }.delete-confirmation input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; }.modal > p { font-size: 15px; overflow-wrap: anywhere; }
.form-card { width: 100%; max-width: 600px; background: var(--surface); padding: 30px; border: 1px solid var(--line); border-radius: 10px; }.material-edit-card { max-width: 760px; }
.account-summary { display: flex; align-items: center; gap: 15px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }.account-summary p { font-size: 14px; margin-top: 4px; }.avatar-large { width: 56px; height: 56px; font-size: 18px; }
.account-photo { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }.account-photo > p { margin: 8px 0 20px; font-size: 14px; }.account-photo .remove-photo-form { margin-top: 14px; }.account-photo form > .button { margin-top: 16px; }.account-password-heading { margin-bottom: 20px; }.account-card .form-hint { margin-bottom: 22px; }
.account-summary > div { min-width: 0; }.account-summary .form-hint { margin: 8px 0 0; }.account-summary .remove-photo-form .text-button { min-height: 36px; padding: 4px 0; color: var(--accent); }.photo-picker-form { flex-shrink: 0; }.photo-picker { position: relative; display: block; width: 88px; height: 88px; border-radius: 50%; cursor: pointer; }.photo-picker .avatar { width: 88px; height: 88px; font-size: 26px; border: 2px solid var(--line); transition: border-color .15s, filter .15s; }.photo-picker-edit { position: absolute; right: -2px; top: -2px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .15s; }.photo-picker-edit .icon { width: 15px; height: 15px; }.photo-picker:hover .avatar, .photo-picker:focus-within .avatar { border-color: var(--accent); filter: brightness(.92); }.photo-picker:hover .photo-picker-edit, .photo-picker:focus-within .photo-picker-edit { transform: scale(1.12); }.photo-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }.contact-email h3 { margin-bottom: 20px; }.contact-email .button, .account-password .button { margin-top: 20px; }.account-card { max-width: none; }.account-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: start; }.account-sections > section { min-width: 0; margin: 0; padding: 0; border: 0; }
.users-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }.user-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 24px; }.user-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }.user-card h2 { font-size: 20px; overflow-wrap: anywhere; }.user-card > p { font-size: 14px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }.status-pill { padding: 5px 8px; font-size: 12px; border-radius: 5px; }.status-active { color: var(--badge-ink); background: var(--accent-soft); }.status-inactive { color: var(--muted); background: var(--bg); }.user-role { display: flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 13px; color: var(--muted); }.user-card-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }.password-reset summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--accent); }.password-reset form { margin-top: 12px; }.password-reset .button { margin-top: 14px; }.own-account { margin-top: 20px; }
.error-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }.error-card { width: 100%; max-width: 540px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 36px; }.error-card .brand { padding: 0; }.error-code { display: block; color: var(--accent); margin-top: 36px; font-size: 14px; }.error-card h1 { font-size: 28px; margin-top: 12px; }.error-card p { font-size: 15px; color: var(--muted); margin: 18px 0 25px; }

/* Login */
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-story { display: flex; flex-direction: column; padding: 40px 56px; background: var(--navy); color: var(--white); overflow: hidden; }.login-story .brand { padding: 0; }.login-story-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 60px 0; }.pill { display: flex; align-items: center; gap: 9px; color: var(--light-green-2); font-size: 14px; margin-bottom: 28px; }.login-story h1 { font-size: clamp(40px, 4vw, 64px); font-weight: 650; line-height: 1.1; letter-spacing: -.045em; }.login-story-content > p { font-size: 17px; color: var(--nav-text); margin-top: 26px; }
.study-illustration { position: relative; height: 160px; max-width: 380px; width: 100%; margin-top: 40px; }.illustration-orbit, .illustration-spark { display: none; }.illustration-card { position: absolute; border-radius: 8px; padding: 23px; }.illustration-card-back { width: 190px; top: 0; left: 0; background: var(--baltic-blue); color: var(--nav-text); }.illustration-card-back > span { display: block; font-size: 13px; margin-top: 10px; }.illustration-line { background: var(--light-green-2); width: 100px; height: 3px; margin-top: 14px; }.illustration-line.short { width: 70px; margin-top: 7px; }.illustration-card-front { width: 245px; left: 90px; top: 55px; background: var(--light-green); color: var(--yale-blue); border: 1px solid var(--line); }.illustration-card-front strong { display: block; font-size: 15px; }.illustration-card-front > span { font-size: 12px; color: var(--yale-blue); }.illustration-check { display: none; }.illustration-tags { display: flex; gap: 14px; margin-top: 18px; font-size: 12px; color: var(--yale-blue); }
.login-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 60px 40px 90px; background: var(--surface); }.login-form-wrap { width: 100%; max-width: 390px; }.login-lock { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; margin-bottom: 28px; }.login-form-wrap h2 { font-size: 32px; }.login-form-wrap > .muted { font-size: 15px; margin: 12px 0 30px; }.login-form input { font-size: 16px; min-height: 50px; }.login-form > .button { margin-top: 26px; min-height: 50px; justify-content: space-between; font-size: 15px; }.password-field { display: block; position: relative; }.password-field input { padding-right: 52px; }.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }.login-mobile-brand { display: none; }

/* Dark workspace: restrained accents and compact material rows. */
.topbar { height: 72px; background: var(--bg); }
.sidebar { border-right: 1px solid #ffffff0a; }
.brand { font-size: 25px; }
.brand-sub { text-transform: none; font-size: 10px; }
.sidebar-caption { letter-spacing: 0; }
.main-content { padding-top: 32px; }
.library-kicker, .page-heading > div > .eyebrow, .modal-heading .eyebrow, .login-form-wrap > .eyebrow { display: none; }
.page-heading p { margin-top: 8px; font-size: 14px; }
.library-heading { margin-bottom: 24px; }
.library-filters { padding: 16px; gap: 12px; border-radius: 12px; }
.library-search { background: var(--bg); }
.library-filters select, .library-filters input { min-height: 44px; }
.library-summary { min-height: 56px; font-size: 13px; }
.table-wrap { border-radius: 12px; }
.materials-table th { background: var(--raised); padding: 13px 18px; }
.materials-table th:first-child { border-top-left-radius: 12px; }
.materials-table th:last-child { border-top-right-radius: 12px; }
.materials-table td { padding: 16px 18px; }
.materials-table tbody tr:hover, .materials-table tbody tr.selected { background: var(--raised); }
.material-name { gap: 12px; }
.file-badge { width: 38px; height: 44px; font-size: 9px; border-radius: 8px; }
.material-title { font-size: 15px; }
.material-meta { margin-top: 5px; }
.material-filename { display: none; }
.color-teal { --subject-color: var(--light-green); }
.color-blue { --subject-color: #95bde0; }
.color-violet { --subject-color: #85c3df; }
.color-orange { --subject-color: var(--emerald); }
.color-rose { --subject-color: var(--ocean-mist); }
.subject-tag:is(.color-teal,.color-blue,.color-violet,.color-orange,.color-rose) { color: var(--subject-color); background: color-mix(in srgb, var(--subject-color) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--subject-color) 18%, var(--surface)); font-size: 11px; padding: 2px 7px; border-radius: 5px; }
:root[data-theme="light"] .subject-tag:is(.color-teal,.color-blue,.color-violet,.color-orange,.color-rose) { color: var(--yale-blue); }
.avatar, .topbar-avatar { background: var(--raised); color: var(--accent); }
.button-secondary { background: var(--raised); border-color: var(--line); }
.open-material { background: transparent; border-color: transparent; }
.open-material:hover { background: var(--accent-soft); }
.library-preview { top: 96px; scroll-margin-top: 96px; border-radius: 12px; box-shadow: var(--shadow); }
.preview-toolbar { background: var(--raised); }
.modal, .user-menu { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.dropzone { background: var(--bg); }
.upload-progress progress { accent-color: var(--ocean-mist); }
.notice-success, .status-active { background: var(--accent-soft); color: var(--accent); }
.notice-error, .button-danger { border-color: var(--line); }
.notice-error { border-left: 3px solid var(--ocean-mist); }
.button-danger:hover { background: var(--raised); }
.login-story { border-right: 1px solid var(--line); }
.login-story h1 { font-size: clamp(40px, 4vw, 58px); }
.pill { color: var(--ocean-mist); }
.study-illustration { display: none; }
.login-lock { background: var(--raised); }
.login-panel { background: var(--bg); }
.login-form input { background: var(--surface); }
.page-footer { border-color: transparent; font-size: 11px; }

/* Responsive */
@media (min-width: 761px) {
  .sidebar { z-index: 41; }
  .sidebar-collapsed .sidebar { transform: translateX(-100%); visibility: hidden; }
  .sidebar-collapsed .workspace { margin-left: 68px; }
  .nav-rail { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 40; width: 68px; align-items: center; flex-direction: column; gap: 12px; padding-top: 20px; background: var(--navy); opacity: 0; visibility: hidden; pointer-events: none; }
  .sidebar-collapsed .nav-rail { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-rail a, .nav-rail button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; color: var(--nav-text); border: 0; border-radius: 7px; }
  .nav-rail a:hover, .nav-rail button:hover { background: #52b69a14; }
}
@media (max-width: 1400px) {
  .topbar-brand, .topbar-divider { display: none; }
  .main-content { padding: 32px 28px; }.topbar { padding: 0 28px; }
  .library-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .library-search { grid-column: 1 / -1; }
  .library-heading { align-items: flex-start; }.library-heading .heading-actions { justify-content: flex-end; }
}
@media (max-width: 1100px) {
  .date-column { display: none; }.page-heading { align-items: flex-start; flex-direction: column; }
  .topbar { gap: 14px; }.topbar-heading > span:last-child { max-width: 130px; }
  .login-story { padding: 40px 30px; }.login-story h1 { font-size: 45px; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); visibility: hidden; width: min(310px,85vw); }
  .sidebar-open { overflow: hidden; }.sidebar-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-shade { display: block; position: fixed; inset: 0; z-index: 35; border: 0; background: var(--scrim); opacity: 0; visibility: hidden; pointer-events: none; }
  .sidebar-open .sidebar-shade { opacity: 1; visibility: visible; pointer-events: auto; }
  .workspace { margin-left: 0; }.topbar { height: 72px; padding: 0 16px; gap: 12px; }.topbar-heading > span { display: none; }.header-actions { gap: 6px; }
  .main-content { padding: 28px 18px; }.page-heading { gap: 20px; margin-bottom: 24px; }.page-heading h1 { font-size: 30px; }.page-heading p { font-size: 15px; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; }
  .library-filters { padding: 16px; gap: 12px; grid-template-columns: 1fr 1fr; }.library-filters > label:nth-child(4) { grid-column: 1 / -1; }.library-filters select { font-size: 14px; }.library-search input { font-size: 16px; }.library-summary { gap: 8px 14px; padding: 18px 0; min-height: 0; font-size: 13px; }.library-summary > span:nth-child(2) { margin-left: 0; }.library-summary .text-button { min-height: 32px; }
  .materials-table thead { display: none; }.materials-table, .materials-table tbody { display: block; }.materials-table tr { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding: 18px 16px; gap: 14px; }.materials-table tbody tr:last-child { border-bottom: 0; }.materials-table td { display: block; border: 0; padding: 0; }.materials-table td:first-child { width: 100%; }.materials-table td.date-column { display: none; }.materials-table td:last-child { margin-left: auto; }.material-name { align-items: flex-start; gap: 12px; }.material-title { font-size: 16px; }.material-meta { gap: 9px; }.material-filename { display: none; }.file-badge { width: 40px; height: 48px; }.row-actions { gap: 10px; }.open-material { min-width: 96px; }.table-footer { font-size: 13px; }.pagination { width: 100%; justify-content: flex-end; }
  .page-footer { flex-direction: column; padding: 20px 18px; font-size: 12px; gap: 6px; }.modal { padding: 24px; }.modal-heading h2 { font-size: 22px; }.modal-actions .button { flex: 1; }.form-card { padding: 24px; }.users-grid { grid-template-columns: 1fr; }.subject-toolbar .button, .material-toolbar .button { font-size: 13px; }
  .viewer-heading .heading-actions { gap: 8px; }.viewer-heading .heading-actions .button { white-space: normal; font-size: 13px; text-align: center; }.document-viewer { height: 72dvh; min-height: 420px; }.back-link { margin-bottom: 12px; }.reading-expanded .main-content { padding: 16px; }.reading-expanded .viewer-heading h1 { font-size: 22px; }.reading-expanded .document-viewer { height: 72dvh; }.reading-expanded .viewer-heading .heading-actions a[target="_blank"] { display: none; }
  .login-layout { grid-template-columns: 1fr; }.login-story { display: none; }.login-panel { min-height: 100dvh; padding: 130px 24px 90px; }.login-mobile-brand { display: block; position: absolute; top: 26px; left: 24px; }.login-mobile-brand .brand { padding: 0; }.login-form-wrap h2 { font-size: 30px; }.login-lock { margin-bottom: 24px; }
}
/* Complete entry and exit transitions; hidden elements remain painted only until exit ends. */
.motion-ready .sidebar { transition: transform var(--motion-time) var(--motion-ease), visibility 0s; }
.motion-ready .sidebar-collapsed .sidebar { transition: transform var(--motion-time) var(--motion-ease), visibility 0s var(--motion-time); }
.motion-ready .workspace { transition: margin-left var(--motion-time) var(--motion-ease); }
.motion-ready .nav-rail { transition: opacity 180ms var(--motion-ease), visibility 0s 180ms; }
.motion-ready .sidebar-collapsed .nav-rail { transition: opacity 180ms var(--motion-ease) 80ms, visibility 0s; }
@media (max-width: 760px) {
  .motion-ready .sidebar { transition: transform var(--motion-time) var(--motion-ease), visibility 0s var(--motion-time); }
  .motion-ready .sidebar-open .sidebar { transition: transform var(--motion-time) var(--motion-ease), visibility 0s; }
  .motion-ready .sidebar-shade { transition: opacity var(--motion-time) var(--motion-ease), visibility 0s var(--motion-time); }
  .motion-ready .sidebar-open .sidebar-shade { transition: opacity var(--motion-time) var(--motion-ease), visibility 0s; }
}
:root[data-theme="dark"] .modal { --surface: #191a1d; --bg: #111214; --raised: #26272b; --line: #37393f; }
.modal { opacity: 0; transform: translateY(16px) scale(.985); transition: opacity 220ms var(--motion-ease), transform var(--motion-time) var(--motion-ease), display var(--motion-time) allow-discrete, overlay var(--motion-time) allow-discrete; }
.modal[open] { opacity: 1; transform: translateY(0) scale(1); }
.modal::backdrop { opacity: 0; transition: opacity 220ms var(--motion-ease), display var(--motion-time) allow-discrete, overlay var(--motion-time) allow-discrete; }
.modal[open]::backdrop { opacity: 1; }
.user-menu { opacity: 0; transform: translateY(-6px); transition: opacity 160ms var(--motion-ease), transform 200ms var(--motion-ease), display 200ms allow-discrete; }
.user-menu:not([hidden]) { opacity: 1; transform: translateY(0); }
.user-menu[hidden] { pointer-events: none; }
@starting-style {
  .modal[open] { opacity: 0; transform: translateY(16px) scale(.985); }
  .modal[open]::backdrop { opacity: 0; }
  .user-menu:not([hidden]) { opacity: 0; transform: translateY(-6px); }
}
.button, .icon-button, .plain-button, .nav-link, .select2-selection { transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--motion-ease); }
.select2-container--humcode .select2-selection__arrow { transition: transform 180ms var(--motion-ease); }
.select2-container--humcode .select2-dropdown { animation: surface-enter 160ms var(--motion-ease); }
.select2-container--humcode .select2-dropdown--above { animation-name: surface-enter-above; }
.motion-ready .library-layout, .motion-ready .library-preview:not([hidden]) { animation: surface-enter 200ms var(--motion-ease); }
@keyframes surface-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes surface-enter-above { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) { .button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.video-section { margin-bottom: 28px; }
.video-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.video-heading h2 { font-size: 20px; margin: 0; }
.video-heading p { margin: 2px 0 0; font-size: 14px; }
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.video-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.video-play { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--raised); }
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play-icon { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .3); transition: background 160ms; }
.video-play-icon .icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--ocean-mist, #52b69a); color: #0b1016; fill: currentColor; }
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { background: rgba(0, 0, 0, .1); }
.video-info { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; flex: 1; }
.video-title { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.video-actions { display: flex; gap: 4px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.video-actions form { margin: 0; }
.video-actions .icon-button[disabled] { opacity: .35; cursor: not-allowed; }
.move-up .icon { transform: rotate(-90deg); }
.move-down .icon { transform: rotate(90deg); }
.video-modal { max-width: 860px; }
.video-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } .video-modal { padding: 16px; } }
.folder-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; overflow-wrap: anywhere; }
.folder-breadcrumb a { color: var(--ocean-mist); min-width: 0; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.category-tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.category-tabs a[aria-current="page"] { border-color: var(--ocean-mist); color: var(--ocean-mist); background: var(--raised); }
.category-tabs span { font-size: 12px; }
.folder-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin: 20px 0 12px; }
.folder-heading h2 { font-size: 19px; margin: 0; overflow-wrap: anywhere; min-width: 0; }
.folder-heading .row-actions { flex-wrap: wrap; }
.folder-list { display: grid; gap: 8px; margin-bottom: 22px; }
.folder-row { display: flex; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.folder-link { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; color: var(--ocean-mist); }
.folder-link > .icon { flex-shrink: 0; }
.folder-link span { overflow-wrap: anywhere; min-width: 0; }
.folder-link small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.kind-badge { display: inline-block; margin: 5px 6px 5px 0; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ocean-mist); font-size: 12px; }
.folder-column { max-width: 220px; overflow-wrap: anywhere; }
.folder-column a { color: var(--ocean-mist); }
@media (max-width: 760px) {
  .category-tabs { gap: 6px; }
  .category-tabs a { padding: 8px 10px; font-size: 13px; }
  .folder-column { max-width: none; }
  .materials-table td.folder-column { display: block; padding: 0 14px 8px; }
  .materials-table th.folder-column { display: none; }
}
.agenda-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; flex-wrap: wrap; }
.calendar-toolbar h2 { font-size: 18px; margin: 0; }
.calendar-toolbar nav { display: flex; align-items: center; gap: 6px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.calendar-weekdays span { padding: 12px 4px; }
.calendar-day { min-height: 112px; padding: 5px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside-month { background: var(--accent-soft); }
.calendar-day.outside-month .calendar-date { color: var(--muted); }
.calendar-date { display: flex; justify-content: space-between; align-items: center; min-height: 38px; border-radius: 6px; padding: 4px 7px; font-size: 13px; }
.calendar-day.is-today .calendar-date { font-weight: 750; color: var(--accent); }
.calendar-day.is-selected .calendar-date { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.calendar-date:hover { background: var(--accent-soft); }
.calendar-event-count { font-size: 10px; color: var(--muted); }
.calendar-events { display: grid; gap: 3px; padding: 4px 0; }
.calendar-event { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; line-height: 1.6; padding: 2px 5px; border-radius: 4px; border-left: 3px solid currentColor; }
.calendar-events > small { color: var(--muted); font-size: 10px; }
.event-priority { display: inline-flex; align-items: center; border-radius: 5px; padding: 4px 8px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.priority-baixa { background: #dcfce7; color: #166534; }
.priority-media { background: #fef3c7; color: #854d0e; }
.priority-urgente { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .priority-baixa { background: #153c2a; color: #86efac; }
[data-theme="dark"] .priority-media { background: #423313; color: #fde047; }
[data-theme="dark"] .priority-urgente { background: #461d24; color: #fca5a5; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.agenda-day-list { margin-top: 24px; }
.agenda-day-list .calendar-toolbar { padding: 0 0 14px; }
.agenda-event-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.agenda-event-row > div { min-width: 0; overflow-wrap: anywhere; }
.agenda-event-row p, .notification-item p { margin: 5px 0 8px; color: var(--muted); font-size: 13px; }
.agenda-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 30px; color: var(--muted); text-align: center; }
.event-form-card { max-width: 800px; }
.event-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.event-form-grid[hidden] { display: none; }
.event-detail { max-width: 800px; overflow-wrap: anywhere; }
.event-description { white-space: normal; margin-top: 24px; line-height: 1.7; }
.notification-menu { position: relative; }
.notification-menu > summary { list-style: none; cursor: pointer; position: relative; }
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-menu[open] > summary { background: var(--accent-soft); }
.notification-count { position: absolute; top: 0; right: -2px; min-width: 18px; padding: 2px 4px; border-radius: 10px; background: #b91c1c; color: white; font-size: 10px; line-height: 1.3; text-align: center; }
.notification-popover { position: absolute; right: 0; top: 54px; width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 100px)); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; z-index: 45; }
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.notification-heading a { color: var(--accent); font-size: 12px; }
.notification-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item > div { min-width: 0; overflow-wrap: anywhere; }
.notification-item a { font-size: 14px; }
.notification-item.unread { box-shadow: inset 3px 0 var(--accent); }
.notification-item > small { color: var(--muted); }
.event-subject { display: block; color: var(--muted); margin-top: 8px; }
.notification-empty, .notification-footnote { color: var(--muted); padding: 18px; margin: 0; font-size: 13px; }
.notification-footnote { border-top: 1px solid var(--line); font-size: 11px; }
@media (max-width: 600px) {
  .calendar-day { min-height: 55px; padding: 2px; }
  .calendar-date { padding: 3px; font-size: 12px; min-height: 44px; flex-direction: column; justify-content: center; gap: 2px; }
  .calendar-events { display: none; }
  .calendar-toolbar { padding: 12px; }
  .calendar-toolbar h2 { font-size: 16px; }
  .event-form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .header-actions { gap: 3px; }
  .topbar { gap: 8px; }
  .notification-popover { position: fixed; top: 68px; right: 12px; }
}
.event-tasks { margin-top: 28px; }
.event-tasks > .calendar-toolbar { padding: 0 0 16px; }
.event-tasks [data-task-progress] { font-size: 13px; margin: 6px 0 0; }
.task-row { align-items: flex-start; }
.task-row .task-status-form { flex-shrink: 0; margin: -8px 0 0 -8px; }
.task-row-content { flex: 1; }
.task-row-content small { color: var(--muted); overflow-wrap: anywhere; }
.task-row-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.task-row-badges > small { color: var(--muted); font-size: 11px; }
.task-complete .task-title { text-decoration: line-through; color: var(--muted); }
.task-status-button[aria-checked="true"] { color: var(--accent); background: var(--accent-soft); }
.recurrence-fields { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 16px 0; min-width: 0; }
.recurrence-fields legend { color: var(--muted); font-size: 13px; padding: 0 6px; }
.recurrence-weekdays { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 12px 0; }
.recurrence-weekdays > span { flex-basis: 100%; font-size: 13px; }
.recurrence-weekdays label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.recurrence-weekdays input { width: 18px; min-height: 18px; margin: 0; }
.recurrence-fields [hidden] { display: none; }
.agenda-badges { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.recurrence-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.recurrence-badge .icon { width: 12px; height: 12px; }
.my-day-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.my-day-summary a { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.my-day-summary strong { font-size: 30px; color: var(--accent); }
.my-day-summary span { font-size: 13px; color: var(--muted); }
.my-day-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.my-day-section { min-width: 0; scroll-margin-top: 90px; }
.my-day-section h2 { margin: 0 0 16px; font-size: 18px; }
.my-day-section > .muted { font-size: 13px; margin-top: -6px; }
.my-day-title { display: block; margin-top: 4px; }
.my-day-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.my-day-completed { margin-top: 18px; }
.my-day-completed > summary { cursor: pointer; color: var(--muted); padding: 12px 0; font-size: 13px; }
@media (max-width: 1000px) {
  .my-day-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-day-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .task-row { padding: 12px; gap: 8px; }
  .event-tasks .button { white-space: normal; }
}
/* Conteúdos dos compromissos */
.content-links { margin-top: 24px; }
.content-links h2, .content-links h3 { margin-bottom: 16px; }
.content-link-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.content-link-row > div { min-width: 0; overflow-wrap: anywhere; }
.content-link-row p { margin-top: 6px; }
.content-link-row form { width: 260px; max-width: 100%; flex-shrink: 0; }
.content-add-form { margin-top: 24px; }
@media (max-width: 600px) { .content-link-row { flex-direction: column; } .content-link-row form { width: 100%; } }
.study-progress { margin: 20px 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.study-progress h2 { font-size: 18px; }
.study-progress-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.study-progress-grid p { margin: 8px 0; }
.study-progress progress { width: 100%; accent-color: var(--ocean-mist); }
.study-form { margin: 12px 0; }
.study-toggle { max-width: 100%; white-space: normal; text-align: left; }
.study-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--ocean-mist); margin-left: 8px; font-size: 12px; }
@media (max-width: 600px) { .study-progress-grid { grid-template-columns: 1fr; } }
.private-notes { margin: 24px 0; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.private-notes h2 { font-size: 18px; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 16px; }
.note-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow-wrap: anywhere; transition: border-color .15s, background-color .15s; }.note-card:hover, .note-card:focus-within { border-color: var(--accent); background: var(--accent-soft); }.note-card p { margin: 0; }.note-card-title { font-size: 17px; line-height: 1.35; }.note-card-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }.note-card-title a:focus-visible { outline: none; }.note-card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }.note-card-meta { font-size: 13px; color: var(--muted); }.note-card-excerpt { font-size: 14px; line-height: 1.6; color: var(--ink); }
.subject-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.subject-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px 20px 18px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; overflow-wrap: anywhere; transition: border-color .15s, background-color .15s; }.subject-card:hover, .subject-card:focus-within { border-color: var(--accent); background: var(--accent-soft); }.subject-card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.subject-card-mark { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--subject-color, var(--line)); }
.subject-card-title { margin: 0; font-size: 18px; line-height: 1.35; }.subject-card-title a { color: var(--ink); text-decoration: none; }.subject-card-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }.subject-card-title a:focus-visible { outline: none; }
.subject-card-description { margin: 0; flex: 1; font-size: 14px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.subject-card-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }.subject-card-meta .icon { width: 15px; height: 15px; }
.note-body, .note-editor { overflow-wrap: anywhere; white-space: pre-wrap; }.note-body { max-width: none; }
.form-card-centered { margin-inline: auto; }
.note-attachments { margin: 20px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.note-attachments legend { padding: 0 8px; font-size: 14px; font-weight: 700; }
.note-attachments > label { margin-top: 14px; }
.note-attachments input[type=file] { width: 100%; max-width: 100%; }
.note-attachments + .button { margin-top: 20px; }
.note-file-list { list-style: none; margin: 14px 0 0; padding: 0; }
.note-file-list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.note-file-list li:last-child { border-bottom: 0; }
.note-file-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; overflow-wrap: anywhere; }
.note-file-name small { color: var(--muted); font-size: 12px; }
.note-file-actions, .note-file-edit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note-file-edit { flex: 1 1 220px; flex-direction: column; align-items: stretch; }
.note-files { margin-top: 24px; max-width: none; }
.note-files h2 { font-size: 20px; }
.note-delete-form { display: inline-flex; align-items: center; gap: 10px; }
.event-invitations { margin-top: 24px; }
.invitation-send-form, .contact-email { margin-top: 24px; }
.invitation-body { margin: 16px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.invitation-answer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.swal2-popup { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-family: inherit; }.swal2-title { color: var(--ink); font-size: 22px; }.swal2-html-container { color: var(--muted); font-size: 15px; }.swal2-actions { gap: 12px; }.swal2-actions .button { min-width: 96px; }.swal2-container { z-index: 2000; }
.notes-filter-form > label { display: block; }.notes-filter-group { display: flex; align-items: stretch; margin-top: 7px; border-radius: 8px; }.notes-filter-group > select, .notes-filter-group > .select2-container { flex: 1 1 auto; min-width: 0; width: auto !important; margin: 0; }.notes-filter-group > select, .notes-filter-group .select2-container--humcode .select2-selection { border-top-right-radius: 0; border-bottom-right-radius: 0; }.notes-filter-group > .button { flex: 0 0 auto; min-height: 46px; margin-left: -1px; border-color: var(--line); border-top-left-radius: 0; border-bottom-left-radius: 0; position: relative; }.notes-filter-group > .button:hover { z-index: 1; }.notes-filter-group:has(select:focus, .select2-container--focus, .select2-container--open, .button:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }.notes-filter-group:has(select:focus, .select2-container--focus, .select2-container--open, .button:focus-visible) > .button { border-color: var(--focus); }.notes-filter-group select:focus, .notes-filter-group .select2-container--humcode.select2-container--focus .select2-selection, .notes-filter-group .select2-container--humcode.select2-container--open .select2-selection, .notes-filter-group > .button:focus-visible { outline: none; }.notes-filter-form + .muted { margin-top: 18px; }.notes-filter-group > .button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }.notes-filter-group > .button { padding-inline: 16px; }
.notes-card { max-width: none; }
.modal-wide { max-width: 720px; }
.note-edit-button { padding-inline: 14px; flex-shrink: 0; }
.note-file-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }.note-file-replace { position: relative; cursor: pointer; }.note-file-replace:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.note-files-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }.note-files-heading + .note-file-list, .note-files-heading + .muted { margin-top: 14px; }.note-file-replace.is-disabled { opacity: .45; cursor: not-allowed; }.note-file-replace.is-disabled:hover { background: var(--ocean-mist); }
.note-files-edit { max-width: 600px; margin-inline: auto; }.form-card form > .form-hint + .button { margin-top: 18px; }
.note-selected-files { margin-top: 12px; }.note-selected-files[hidden] { display: none; }.note-selected-files .file-badge { min-width: 38px; }
.invitations-card { max-width: none; }.invitation-filter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.invitation-filter-field { min-width: 0; }.invitation-filter-field > select, .invitation-filter-field > .select2-container { margin-top: 7px; }.invitation-filter-field > label { display: block; }.invitation-filter-form + .muted { margin-top: 18px; }.invitation-status { margin-top: 4px; }.invitation-status strong { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised, var(--surface)); color: var(--muted); font-size: 12px; font-weight: 650; }.invitation-status [data-invitation-state=accepted] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }.invitation-status [data-invitation-state=pending] { color: var(--ink); }@media (max-width: 700px) { .invitation-filter-form { grid-template-columns: minmax(0, 1fr); } }
.detail-dialog { max-width: 760px; }.detail-dialog .back-link { display: none; }.detail-dialog .page-heading { margin-bottom: 18px; }.detail-dialog .page-heading h1 { font-size: 26px; overflow-wrap: anywhere; }.detail-dialog .eyebrow { display: block; }.detail-dialog .form-card { max-width: none; padding: 20px; }.detail-dialog .note-files { margin-top: 18px; }.detail-dialog .invitation-answer { margin-top: 18px; }
.detail-dialog .heading-actions { justify-content: flex-end; }.detail-dialog .heading-actions .button { flex: 0 0 auto; }
.calendar-toolbar .calendar-month-nav { gap: 18px; }
.detail-dialog .event-form-card { max-width: none; }.detail-dialog .modal-actions { position: static; }.detail-dialog .event-tasks, .detail-dialog .content-links, .detail-dialog .event-invitations { margin-top: 18px; }
.detail-dialog { overflow: visible; max-height: none; }.detail-dialog [data-detail-content] { max-height: calc(90dvh - 56px); overflow-y: auto; padding: 2px 4px 2px 0; }
form > .event-form-grid, form > .event-form-grid + label, form > .event-form-grid + fieldset, form > label + fieldset, form > fieldset + label { margin-top: 20px; }
@media (max-width: 600px) { .event-form-grid { gap: 20px 0; } }
.note-important-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 2px 10px 2px 8px; border-radius: 999px; background: #f5b94222; color: #f5b942; font-size: 12px; font-weight: 650; }
.note-important-badge .icon { width: 14px; height: 14px; fill: currentColor; }
.note-card.is-important { border-color: #f5b94266; box-shadow: inset 3px 0 0 #f5b942; }
.note-important-button.is-active .icon { fill: currentColor; }
.note-important-form { display: inline-flex; margin: 0; }
.notes-table { margin-top: 16px; }
.notes-table.tabulator { background: transparent; border: 0; font-size: inherit; color: var(--ink); }
.notes-table.tabulator .tabulator-header { display: none; }
.notes-table.tabulator .tabulator-tableholder { overflow: visible; background: transparent; }
.notes-table.tabulator .tabulator-tableholder .tabulator-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; background: transparent; width: 100% !important; color: var(--ink); }
.notes-table.tabulator .tabulator-row, .notes-table.tabulator .tabulator-row.tabulator-row-even, .notes-table.tabulator .tabulator-row.tabulator-row-odd, .notes-table.tabulator .tabulator-row:hover { display: block; min-width: 0; min-height: 0; width: auto !important; background: transparent !important; border: 0; color: var(--ink); }
.notes-table.tabulator .tabulator-row .tabulator-cell { display: block; width: auto !important; height: auto !important; padding: 0; border: 0; overflow: visible; white-space: normal; background: transparent !important; color: var(--ink); }
.notes-table.tabulator .note-card { height: 100%; }
.notes-table.tabulator .note-card-title a { color: var(--ink); }
.notes-table.tabulator .tabulator-placeholder { min-height: 80px; background: transparent; }
.notes-table.tabulator .tabulator-placeholder .tabulator-placeholder-contents { color: var(--ink); font-size: 16px; font-weight: 400; }
.notes-table.tabulator .tabulator-footer { background: transparent !important; border: 0; padding: 18px 0 0; color: var(--ink); }
.notes-table.tabulator .tabulator-footer .tabulator-footer-contents { justify-content: center; }
.notes-table.tabulator .tabulator-paginator { display: flex; justify-content: center; gap: 6px; text-align: center; color: var(--ink); }
.notes-table.tabulator .tabulator-footer .tabulator-page { min-width: 40px; min-height: 40px; margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 15px; opacity: 1; }
.notes-table.tabulator .tabulator-footer .tabulator-page:not(.disabled):hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.notes-table.tabulator .tabulator-footer .tabulator-page.active { background: var(--accent); border-color: var(--accent); color: var(--deep-ink, #05201a); font-weight: 700; }
.notes-table.tabulator .tabulator-footer .tabulator-page.disabled { opacity: .4; cursor: default; }
.notes-table.tabulator .tabulator-footer .tabulator-page-size { display: none; }
.notes-table.tabulator .tabulator-pages { display: flex; gap: 6px; }
:root[data-theme="light"] .note-important-badge { background: #fff0c2; color: #8a5a00; }:root[data-theme="light"] .note-card.is-important { border-color: #e0a82e88; box-shadow: inset 3px 0 0 #e0a82e; }
.notes-table.tabulator .tabulator-footer .tabulator-page { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; font-size: 18px; font-weight: 600; line-height: 1; }
.notes-table.tabulator .tabulator-footer .tabulator-page[data-page="first"], .notes-table.tabulator .tabulator-footer .tabulator-page[data-page="prev"], .notes-table.tabulator .tabulator-footer .tabulator-page[data-page="next"], .notes-table.tabulator .tabulator-footer .tabulator-page[data-page="last"] { font-size: 22px; }
.notes-table.tabulator .tabulator-footer .tabulator-page:disabled { opacity: .35; }
.notes-table.tabulator .tabulator-footer .tabulator-paginator { align-items: center; flex-wrap: wrap; }
.notes-table.tabulator .tabulator-footer .tabulator-pages { display: flex !important; }
@media (max-width: 600px) { .notes-table.tabulator .tabulator-footer .tabulator-page[data-page="first"], .notes-table.tabulator .tabulator-footer .tabulator-page[data-page="last"] { display: none; } }

.notes-table.tabulator .tabulator-footer .tabulator-page { box-sizing: border-box; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; font-size: 15px; font-weight: 650; }
.notes-table.tabulator .tabulator-footer .tabulator-page:is([data-page="first"], [data-page="prev"], [data-page="next"], [data-page="last"]) { font-size: 0; position: relative; }
.notes-table.tabulator .tabulator-footer .tabulator-page:is([data-page="first"], [data-page="prev"], [data-page="next"], [data-page="last"])::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.notes-table.tabulator .tabulator-footer .tabulator-page[data-page="prev"] { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.notes-table.tabulator .tabulator-footer .tabulator-page[data-page="next"] { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.notes-table.tabulator .tabulator-footer .tabulator-page[data-page="first"] { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 6l-6 6 6 6M18 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.notes-table.tabulator .tabulator-footer .tabulator-page[data-page="last"] { --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 6l6 6-6 6M6 6l6 6-6 6'/%3E%3C/svg%3E"); }
.notes-table.tabulator .tabulator-footer .tabulator-paginator, .notes-table.tabulator .tabulator-footer .tabulator-pages { gap: 8px; margin: 0; }
.notes-table.tabulator .tabulator-footer .tabulator-footer-contents { padding: 0; }
/* Validação em 2 etapas */
.login-layout-single { grid-template-columns: 1fr; }
.login-layout-single .login-mobile-brand { display: block; position: absolute; top: 26px; left: 24px; }
.login-layout-single .login-mobile-brand .brand { padding: 0; }
.login-form-wrap input[name="code"] { font-size: 22px; letter-spacing: .3em; text-align: center; }
.remember-check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.remember-check input { width: 18px; height: 18px; min-height: 0; margin: 0; flex-shrink: 0; }
.two-factor-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.two-factor-actions .text-button { min-height: 36px; color: var(--accent); }
.two-factor-settings h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.two-factor-settings .button { margin-top: 20px; }
.two-factor-pending > p { margin: 0 0 16px; }
