:root {
  --ink: #141c5c;
  --muted: #626b80;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #dce3ef;
  --teal: #006633;
  --teal-dark: #004c27;
  --teal-soft: #e7f5ea;
  --lime: #33cc33;
  --blue: #003399;
  --blue-soft: #e9effb;
  --danger: #b0443c;
  --shadow: 0 22px 60px rgba(20, 28, 92, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { min-height: 100%; max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  margin: 0 auto;
  padding: 0 max(24px, calc((100vw - 1172px) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.fundocol-logo { display: block; width: 175px; height: auto; }
.brand-divider { width: 1px; height: 28px; background: var(--line); }
.app-name { color: var(--ink); font-size: 17px; letter-spacing: -.025em; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--lime); }
.brand-mark svg { width: 22px; }
.login-link, .back-link { display: flex; align-items: center; gap: 8px; color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 800; padding: 10px 13px; border-radius: 10px; border: 1px solid transparent; }
.login-link:hover, .back-link:hover { background: var(--blue-soft); border-color: #cad7f2; }
.login-link svg { width: 18px; }

.hero {
  max-width: 1160px;
  margin: 5.5vh auto 0;
  min-height: calc(100vh - 205px);
  padding: 30px 34px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0 0 22px; }
.eyebrow span { width: 22px; height: 2px; background: var(--teal); }
.hero h1 { font-weight: 850; letter-spacing: -.055em; font-size: clamp(54px, 6.5vw, 84px); line-height: .94; margin: 0; }
.hero h1 em { color: var(--blue); font-style: normal; font-weight: 850; }
.hero-description { color: var(--muted); max-width: 490px; font-size: 18px; line-height: 1.6; margin: 28px 0 30px; }
.primary-action, .save-button {
  border: 0;
  background: var(--teal);
  color: white;
  font-weight: 800;
  border-radius: 13px;
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  box-shadow: 0 8px 18px rgba(12, 120, 110, .2);
  transition: transform .18s ease, background .18s ease;
}
.primary-action:hover, .save-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.primary-action:active, .save-button:active { transform: translateY(1px); }
.primary-action:disabled, .save-button:disabled { opacity: .58; cursor: wait; transform: none; }
.primary-action svg { width: 22px; }
.privacy-note { color: #7d8986; font-size: 12px; display: flex; align-items: center; gap: 7px; margin: 17px 0 0; }
.privacy-note svg { width: 16px; color: var(--teal); }

.process-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 24px; padding: 31px 34px 34px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.process-card::before { content: ""; position: absolute; width: 110px; height: 110px; border: 23px solid var(--teal-soft); border-radius: 50%; right: -64px; top: -67px; opacity: .75; }
.card-label { color: #89938f; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .18em; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.process-card ol { list-style: none; margin: 0; padding: 4px 0; }
.process-card li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line); }
.process-card li:last-child { border-bottom: 0; }
.step-number { color: var(--blue); font-weight: 900; font-size: 17px; }
.process-card strong { display: block; font-size: 15px; margin-bottom: 5px; }
.process-card small { color: var(--muted); font-size: 12px; }
.folder-preview { background: var(--blue); color: white; margin: 14px -14px -14px; border-radius: 16px; padding: 18px; display: flex; align-items: center; gap: 15px; }
.folder-preview svg { color: var(--lime); width: 28px; flex: 0 0 auto; }
.folder-preview span { display: block; font-size: 11px; color: #a7bbb6; margin-bottom: 4px; }
.folder-preview code { color: white; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

footer { max-width: 1240px; margin: 0 auto; padding: 20px 34px 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #87918e; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.capture-dialog { width: min(660px, calc(100% - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 24px; padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 30px 100px rgba(6, 35, 32, .3); }
.capture-dialog::backdrop { background: rgba(8, 31, 29, .72); backdrop-filter: blur(7px); }
.dialog-shell { min-width: 0; padding: 25px; }
.access-dialog { width: min(440px, calc(100% - 24px)); }
.access-shell { padding: 36px; }
.access-mark { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); margin-bottom: 22px; }
.access-mark svg { width: 27px; }
.access-shell h2 { margin: 6px 0 10px; font-size: 28px; line-height: 1.13; letter-spacing: -.03em; }
.access-shell > p:not(.access-error) { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 22px; }
.access-shell label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.capture-code-input { text-align: center; font-size: 26px; font-weight: 850; letter-spacing: .5em; padding-left: calc(14px + .5em); }
.access-error { min-height: 20px; color: var(--danger); font-size: 12px; font-weight: 700; line-height: 1.4; margin: 7px 0 10px; }
.access-button { width: 100%; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.dialog-header > div { min-width: 0; }
.dialog-step { color: var(--teal); font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; }
.dialog-header h2 { margin: 5px 0 0; font-weight: 800; letter-spacing: -.025em; font-size: 27px; }
.icon-button { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); color: var(--ink); background: var(--white); border-radius: 50%; display: grid; place-items: center; }
.icon-button:hover { background: var(--paper); }
.icon-button svg { width: 19px; }
.camera-frame { min-width: 0; max-width: 100%; background: #0b1716; aspect-ratio: 4 / 3; max-height: 56vh; border-radius: 17px; overflow: hidden; position: relative; display: grid; place-items: center; }
.camera-frame video, .camera-frame img { min-width: 0; max-width: 100%; width: 100%; height: 100%; object-fit: cover; }
.camera-frame img { display: none; }
.camera-frame.has-photo video { display: none; }
.camera-frame.has-photo img { display: block; }
.camera-message { color: white; text-align: center; padding: 28px; line-height: 1.55; font-size: 14px; }
.camera-message a { display: inline-block; margin-top: 14px; color: var(--lime); font-weight: 800; text-underline-offset: 4px; }
.capture-controls { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 0; }
.shutter { width: 66px; height: 66px; background: white; border: 2px solid var(--teal); border-radius: 50%; padding: 5px; }
.shutter span { width: 100%; height: 100%; display: block; border-radius: 50%; background: var(--teal); transition: transform .15s ease; }
.shutter:hover span { transform: scale(.91); }
.file-fallback { color: var(--teal); font-size: 12px; font-weight: 700; cursor: pointer; padding: 5px; }
.file-fallback input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.classification-step { padding-top: 20px; }
.classification-step label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 9px; }
.classification-step select + label { margin-top: 16px; }
select, input { width: 100%; height: 50px; background: white; border: 1px solid #ccd5e5; border-radius: 11px; padding: 0 14px; color: var(--ink); outline: none; }
select:focus, input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 51, 153, .1); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.secondary-button { border: 1px solid #cbd5d1; background: white; color: var(--ink); border-radius: 11px; min-height: 48px; padding: 0 17px; font-weight: 750; }
.secondary-button:hover { background: var(--paper); }
.save-button:disabled { opacity: .6; cursor: wait; transform: none; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: white; padding: 13px 18px; border-radius: 12px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); transition: all .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: #8e302b; }

/* Administración */
.admin-page { background: #f1f5fa; }
.admin-topbar { max-width: none; }
.admin-main { max-width: 1092px; margin: 0 auto; padding: clamp(45px, 8vh, 90px) 34px 80px; }
.login-card { background: white; width: min(440px, 100%); margin: 0 auto; padding: 40px; border-radius: 24px; box-shadow: var(--shadow); }
.lock-mark { width: 52px; height: 52px; border-radius: 15px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 25px; }
.lock-mark svg { width: 25px; }
.login-card h1, .dashboard h1 { font-size: 38px; font-weight: 850; letter-spacing: -.04em; margin: 0 0 12px; }
.login-card > p:not(.eyebrow), .dashboard-heading > div > p:last-child { color: var(--muted); line-height: 1.55; font-size: 14px; }
.login-card form { margin-top: 28px; }
.login-card label, .new-classification > label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 16px; }
.login-card label input { display: block; margin-top: 8px; }
.full { width: 100%; }
.form-error { min-height: 18px; color: var(--danger); font-size: 12px; margin: 4px 0 10px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.dashboard-heading .eyebrow { margin-bottom: 15px; }
.dashboard-heading > div > p:last-child { margin: 0; }
.dashboard-actions { display: flex; align-items: center; gap: 10px; }
.backup-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; padding: 0 18px; background: var(--blue); color: white; font-weight: 800; }
.backup-button:hover { background: var(--teal-dark); }
.backup-button:disabled { opacity: .65; cursor: wait; }
.backup-button svg { width: 19px; }
.sharepoint-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #8fc8ba; border-radius: 11px; padding: 0 16px; background: #eefaf7; color: var(--teal-dark); font-weight: 800; }
.sharepoint-button:hover { background: #dff4ee; }
.sharepoint-button:disabled { opacity: .6; cursor: wait; }
.sharepoint-button svg { width: 19px; }
.sharepoint-button.compact { min-height: 42px; padding: 0 13px; font-size: 11px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 20px; }
.stats-row article { background: var(--ink); color: white; border-radius: 16px; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; border-top: 3px solid var(--lime); }
.stats-row span { color: #b9cac5; font-size: 13px; }
.stats-row strong { color: var(--lime); font-size: 32px; font-weight: 850; }
.management-card { background: white; border-radius: 22px; padding: 28px; box-shadow: 0 12px 42px rgba(23, 53, 49, .07); }
.configuration-panels { display: grid; gap: 18px; }
.management-heading { margin-bottom: 23px; }
.management-heading h2 { margin: 0 0 6px; font-size: 25px; font-weight: 850; letter-spacing: -.025em; }
.management-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-tab { min-height: 46px; display: inline-flex; align-items: center; gap: 9px; padding: 0 16px; border: 1px solid #cbd5d1; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 800; }
.admin-tab svg { width: 18px; }
.admin-tab:hover { background: white; color: var(--ink); }
.admin-tab.active { background: var(--blue); border-color: var(--blue); color: white; }
.new-classification { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.new-classification > div { display: flex; gap: 10px; }
.new-classification .save-button { min-width: 125px; }
.new-classification .save-button span { font-size: 22px; font-weight: 400; }
.new-classification .form-error { margin-bottom: -18px; }
.list-header, .classification-row { display: grid; grid-template-columns: minmax(180px, 1fr) 90px 120px 120px; gap: 15px; align-items: center; }
.list-header { color: #8a9692; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; font-weight: 800; padding: 24px 12px 12px; }
.classification-row { padding: 17px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.classification-name strong { display: block; font-size: 14px; margin-bottom: 4px; }
.classification-name code { color: #8a9692; font-size: 11px; }
.status { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 99px; background: var(--teal-soft); color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.status.inactive { background: #ecefed; color: #68736f; }
.status.inactive::before { background: #87928e; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions button { border: 1px solid var(--line); background: white; border-radius: 8px; height: 34px; padding: 0 10px; color: var(--ink); font-size: 11px; font-weight: 750; }
.row-actions button:hover { background: var(--paper); }
.row-actions .delete { color: var(--danger); }
.empty-state { text-align: center; padding: 55px 20px 35px; color: var(--muted); }
.empty-state svg { width: 42px; color: var(--teal); margin-bottom: 13px; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--ink); margin-bottom: 7px; }
.empty-state span { font-size: 12px; }

.photos-panel { background: white; border-radius: 22px; padding: 28px; box-shadow: 0 12px 42px rgba(23, 53, 49, .07); }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.gallery-title h2 { font-size: 25px; font-weight: 850; letter-spacing: -.025em; margin: 0 0 5px; }
.gallery-title span { color: var(--muted); font-size: 12px; }
.gallery-filters { display: flex; align-items: flex-end; gap: 10px; }
.gallery-filters label { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.gallery-filters select, .gallery-filters input { display: block; min-width: 170px; height: 42px; margin-top: 6px; font-size: 12px; text-transform: none; letter-spacing: normal; }
.gallery-filters input { min-width: 145px; }
.gallery-filters .clear-filters { min-height: 42px; }
.photo-gallery { padding-top: 8px; }
.month-group { padding: 18px 15px 4px; border: 1px solid #dce6e2; border-radius: 16px; background: white; }
.month-group + .month-group { margin-top: 14px; }
.month-group-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.month-group-header h3 { margin: 0; font-size: 24px; font-weight: 850; letter-spacing: -.025em; text-transform: capitalize; }
.month-group-actions { display: flex; align-items: center; gap: 12px; }
.month-group-actions > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.activity-folder { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fbfcfb; margin-bottom: 14px; }
.activity-folder-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; background: white; }
.activity-folder-identity { display: flex; align-items: center; min-width: 0; gap: 13px; }
.activity-folder-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--teal-soft); color: var(--teal); }
.activity-folder-icon svg { width: 23px; }
.activity-folder-identity h4 { margin: 0 0 5px; font-size: 15px; }
.activity-folder-identity div > span { color: var(--muted); font-size: 11px; }
.activity-folder-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.word-button { min-height: 42px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #b8ccc7; border-radius: 10px; padding: 0 13px; background: white; color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.word-button:hover { background: var(--teal-soft); }
.word-button:disabled, .zip-button:disabled, .sharepoint-button:disabled { opacity: .6; cursor: wait; }
.word-button svg { width: 18px; }
.zip-button { min-height: 42px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 0 13px; background: var(--blue); color: white; font-size: 11px; font-weight: 800; }
.zip-button:hover { background: var(--teal-dark); }
.zip-button svg { width: 18px; }
.month-download { background: var(--teal); }
.place-group { margin: 16px 0 22px; padding: 16px; border: 1px solid #dbe6de; border-radius: 20px; background: #f0f7f2; }
.place-group-heading { display: flex; align-items: center; gap: 12px; padding: 2px 3px 16px; }
.place-group-heading > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); }
.place-group-heading svg { width: 20px; }
.place-group-heading h4 { margin: 0 0 4px; font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.place-group-heading small { color: var(--muted); font-size: 11px; }
.month-group .activity-folder:last-child { margin-bottom: 12px; }
.day-folder-list { padding: 0 15px 14px; }
.day-folder { border-top: 1px solid var(--line); }
.day-folder summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 5px; cursor: pointer; list-style: none; color: var(--muted); font-size: 11px; }
.day-folder summary::-webkit-details-marker { display: none; }
.day-folder summary::after { content: "+"; order: 3; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e9eeeb; color: var(--ink); font-size: 16px; }
.day-folder[open] summary::after { content: "−"; }
.day-folder-name { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--ink); }
.day-folder-name svg { width: 19px; color: var(--teal); }
.day-folder-name strong { font-size: 12px; }
.day-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 5px 3px 17px; }
.photo-card { border: 1px solid var(--line); border-radius: 15px; background: white; padding: 0; overflow: hidden; text-align: left; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.photo-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(23, 53, 49, .13); }
.photo-card-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e7ece9; }
.photo-card-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; }
.photo-card-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.photo-card-info span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.gallery-empty { padding: 70px 20px 45px; }
.photo-viewer { width: min(900px, calc(100% - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 20px; padding: 0; overflow: hidden; background: #071412; color: white; box-shadow: 0 30px 100px rgba(0, 0, 0, .4); }
.photo-viewer::backdrop { background: rgba(2, 15, 13, .82); backdrop-filter: blur(8px); }
.photo-viewer img { display: block; width: 100%; max-height: calc(100vh - 120px); object-fit: contain; background: #071412; }
.viewer-close { position: absolute; z-index: 1; right: 14px; top: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(5, 28, 25, .78); color: white; }
.viewer-close svg { width: 20px; }
.viewer-details { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 22px; }
.viewer-details strong { font-size: 14px; }
.viewer-details span { color: #b9cac5; font-size: 12px; }

@media (max-width: 760px) {
  .topbar { height: 70px; padding: 0 18px; }
  .fundocol-logo { width: 110px; }
  .brand-divider { height: 23px; }
  .app-name { font-size: 14px; }
  .brand-mark { width: 35px; height: 35px; }
  .login-link { font-size: 0; }
  .login-link svg { width: 21px; }
  .hero { width: 100%; max-width: 100%; margin: 0; min-height: auto; padding: 65px 22px 58px; display: block; overflow: hidden; }
  .hero-copy, .process-card { min-width: 0; max-width: 100%; }
  .hero h1 { max-width: 100%; font-size: clamp(38px, 12vw, 50px); overflow-wrap: break-word; }
  .hero-description { font-size: 16px; }
  .primary-action { width: 100%; }
  .process-card { margin-top: 65px; padding: 25px; }
  footer { margin: 0 18px; padding: 20px 0 28px; }
  footer span:last-child { display: none; }
  .dialog-shell { padding: 18px; }
  .access-shell { padding: 27px 22px; }
  .capture-dialog { width: min(660px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 12px); margin-inline: auto; border-radius: 18px; overflow-x: hidden; overflow-y: auto; }
  .camera-frame { width: 100%; height: clamp(330px, 55dvh, 500px); max-height: none; aspect-ratio: auto; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1.25fr; }
  .dialog-actions button { padding: 0 10px; }
  .admin-main { padding: 42px 18px 60px; }
  .login-card { padding: 28px 23px; }
  .dashboard-heading { display: block; }
  .dashboard-actions { margin-top: 16px; flex-wrap: wrap; }
  .stats-row { grid-template-columns: 1fr; }
  .admin-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-tab { justify-content: center; padding: 0 9px; font-size: 12px; }
  .management-card { padding: 20px 15px; }
  .new-classification > div { display: block; }
  .new-classification .save-button { width: 100%; margin-top: 9px; }
  .list-header { display: none; }
  .classification-row { grid-template-columns: 1fr auto; gap: 12px; padding: 18px 4px; }
  .classification-row .photo-total { grid-column: 1; color: var(--muted); }
  .classification-row .photo-total::after { content: " fotos"; }
  .classification-row .status { grid-column: 2; grid-row: 1; }
  .row-actions { grid-column: 2; grid-row: 2; }
  .photos-panel { padding: 20px 15px; }
  .gallery-toolbar { display: block; }
  .gallery-filters { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .gallery-filters select, .gallery-filters input { width: 100%; min-width: 0; }
  .gallery-filters .clear-filters { grid-column: 1 / -1; margin-top: 0; }
  .month-group-header { align-items: flex-end; }
  .month-group-header h3 { font-size: 24px; }
  .month-group-actions { align-items: flex-end; }
  .month-group-actions > span { display: none; }
  .activity-folder-header { align-items: flex-start; }
  .activity-folder-actions { align-items: stretch; }
  .word-button span, .activity-folder-actions .zip-button span, .activity-folder-actions .sharepoint-button span { display: none; }
  .word-button, .activity-folder-actions .zip-button, .activity-folder-actions .sharepoint-button { width: 42px; padding: 0; }
  .month-download span { display: none; }
  .month-download { width: 42px; padding: 0; }
  .day-folder-list { padding: 0 10px 10px; }
  .day-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .photo-card-info { display: block; padding: 10px; }
  .photo-card-info span { display: block; margin-top: 5px; }
  .viewer-details { display: block; }
  .viewer-details span { display: block; margin-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
