:root {
  --navy-950: #071a33;
  --navy-900: #0b2447;
  --navy-800: #103765;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --slate-950: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 12px 34px rgba(15, 35, 70, .10);
  --shadow-lg: 0 22px 60px rgba(7, 26, 51, .18);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --sidebar-width: 282px;
  --name-column-width: 420px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--slate-800); background: var(--slate-50); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }
.mobile-only { display: none !important; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Authentication */
.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 15% 12%, rgba(59,130,246,.22), transparent 32%),
    linear-gradient(135deg, #071a33 0%, #0d376a 52%, #eef6ff 52.1%, #f8fbff 100%);
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.2vh, 26px) clamp(14px, 2vw, 30px);
  overflow: auto;
}
.auth-shell {
  width: min(1320px, 100%);
  height: min(790px, calc(100svh - clamp(24px, 4.4vh, 52px)));
  min-height: min(650px, calc(100svh - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.auth-visual {
  background: linear-gradient(145deg, rgba(7,26,51,.98), rgba(14,70,128,.94)), url("../img/profdrive.svg") right -90px bottom -110px / 410px no-repeat;
  color: var(--white);
  padding: clamp(30px, 4.5vh, 52px) clamp(34px, 4vw, 58px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: auto -120px -170px auto;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  border: 68px solid rgba(255,255,255,.055);
}
.institution-logo { width: min(330px, 76%); max-height: clamp(66px, 10vh, 102px); object-fit: contain; object-position: left center; filter: brightness(0) invert(1); opacity: .96; }
.auth-brand { margin-top: clamp(24px, 5.2vh, 68px); display: flex; align-items: center; gap: 16px; }
.auth-brand > img { width: 70px; height: 70px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.94); }
.auth-brand span { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #bfdbfe; font-weight: 800; }
.auth-brand h1 { font-size: 40px; line-height: 1; margin: 7px 0 0; }
.auth-visual > h2 { max-width: 660px; margin: clamp(22px, 3.4vh, 38px) 0 clamp(10px, 1.8vh, 16px); font-size: clamp(34px, 3.6vw, 56px); line-height: 1.06; letter-spacing: -.035em; }
.auth-visual > p { max-width: 650px; margin: 0; color: #dbeafe; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; }
.auth-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: clamp(20px, 3vh, 34px); max-width: 650px; }
.auth-feature-grid div { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.auth-card { min-height: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vh, 58px) clamp(34px, 4vw, 64px); overflow: auto; }
.auth-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(28px, 5vh, 52px); }
.auth-card-head img { width: 48px; height: 48px; }
.auth-card-head strong, .auth-card-head span { display: block; }
.auth-card-head strong { color: var(--navy-900); font-size: 18px; }
.auth-card-head span { color: var(--slate-500); font-size: 12px; margin-top: 2px; }
.auth-card h2 { margin: 0 0 12px; font-size: 31px; color: var(--slate-950); letter-spacing: -.025em; }
.auth-card > p { color: var(--slate-600); line-height: 1.7; }
.google-button { min-height: 48px; margin: 30px 0 18px; }
.auth-help { font-size: 13px; background: var(--blue-50); border-left: 3px solid var(--blue-500); border-radius: 8px; padding: 12px 14px; }
.text-link { display: inline-block; margin-top: 28px; color: var(--blue-700); font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.notice { border-radius: 12px; padding: 13px 15px; margin: 16px 0; border: 1px solid transparent; line-height: 1.55; }
.notice-error { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.notice-success { background: #ecfdf5; color: #166534; border-color: #bbf7d0; }
.notice-info { background: var(--blue-50); color: #1e40af; border-color: #bfdbfe; }
.status-card { width: min(580px, 100%); background: white; border-radius: 24px; padding: 48px; text-align: center; box-shadow: var(--shadow-lg); }
.status-card > img { width: 86px; height: 86px; margin-bottom: 16px; }
.status-card h1 { margin: 16px 0 8px; color: var(--slate-950); }
.status-card p { color: var(--slate-600); line-height: 1.65; }
.status-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

/* Shared buttons */
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; border-radius: 10px; padding: 10px 16px; font-weight: 800; cursor: pointer; text-decoration: none;
}
.primary-button { border: 1px solid var(--blue-700); background: var(--blue-700); color: white; }
.primary-button:hover { background: #173fb2; }
.secondary-button { border: 1px solid var(--slate-300); background: white; color: var(--slate-700); }
.secondary-button:hover { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--slate-200); background: white; color: var(--slate-700); border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer; }
.icon-button:hover, .icon-button.active { border-color: #93c5fd; background: var(--blue-50); color: var(--blue-700); }

/* Main application */
.app-page { overflow: hidden; background: #f4f7fb; }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 18px 14px; background: linear-gradient(180deg, #0b2447 0%, #071a33 100%); color: white; z-index: 30; overflow: hidden; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 8px 10px 22px; }
.sidebar-brand > img { width: 45px; height: 45px; border-radius: 12px; background: white; padding: 5px; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { font-size: 18px; letter-spacing: -.01em; }
.sidebar-brand span { color: #93c5fd; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.new-button { margin: 5px 9px 22px; border: 0; border-radius: 12px; background: white; color: var(--navy-900); min-height: 48px; font-weight: 850; font-size: 15px; cursor: pointer; box-shadow: 0 9px 22px rgba(0,0,0,.22); display: flex; align-items: center; justify-content: center; gap: 9px; }
.new-button span { font-size: 22px; line-height: 1; }
.new-button:hover { background: #eaf3ff; }
.side-nav { display: grid; gap: 5px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(147,197,253,.55) transparent; }
.nav-item { width: 100%; border: 0; background: transparent; color: #dbeafe; padding: 11px 14px; border-radius: 10px; text-align: left; cursor: pointer; font-weight: 680; display: flex; align-items: center; gap: 12px; }
.nav-item span { width: 24px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(37,99,235,.75), rgba(59,130,246,.35)); box-shadow: inset 3px 0 #60a5fa; }

.side-nav::-webkit-scrollbar { width: 7px; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(147,197,253,.45); border-radius: 999px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-spacer { display: none; }
.storage-card { border-top: 1px solid rgba(255,255,255,.14); padding: 14px 11px 10px; flex: 0 0 auto; }
.storage-head { display: flex; justify-content: space-between; font-size: 12px; color: #bfdbfe; margin-bottom: 9px; }
.storage-head strong { color: white; }
.progress { height: 7px; background: rgba(255,255,255,.16); border-radius: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #38bdf8, #22c55e); border-radius: inherit; transition: width .35s ease; }
.storage-card small { color: #bfdbfe; display: block; margin-top: 9px; font-size: 11px; }
.driver-badge { display: inline-flex; margin-top: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 4px 8px; color: #dbeafe; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.driver-badge.large { margin: 0; color: var(--blue-700); background: var(--blue-50); border-color: #bfdbfe; font-size: 12px; padding: 7px 10px; }
.sidebar-links { display: grid; gap: 2px; padding: 4px 11px 2px; flex: 0 0 auto; }
.sidebar-links a { color: #cbd5e1; text-decoration: none; font-size: 12px; padding: 7px 0; }
.sidebar-links a:hover { color: white; }
.workspace { min-width: 0; height: 100vh; overflow: auto; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--slate-200); display: flex; align-items: center; gap: 14px; padding: 0 28px; }
.search-box { flex: 1; max-width: 780px; height: 45px; border-radius: 12px; background: #edf3fb; border: 1px solid transparent; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.search-box:focus-within { background: white; border-color: #93c5fd; box-shadow: 0 0 0 3px var(--blue-100); }
.search-box > span { font-size: 25px; color: var(--slate-500); transform: rotate(-15deg); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--slate-800); }
.search-clear { border: 0; background: transparent; color: var(--slate-500); cursor: pointer; font-size: 22px; }
.top-icon { text-decoration: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.top-icon:hover { background: var(--blue-50); }
.user-menu { position: relative; }
.avatar-button { width: 43px; height: 43px; border: 0; border-radius: 50%; background: linear-gradient(135deg, #0ea5e9, #2563eb); color: white; font-weight: 900; cursor: pointer; padding: 0; overflow: hidden; position: relative; }
.avatar-button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.user-popover { position: absolute; right: 0; top: 52px; width: 250px; background: white; border: 1px solid var(--slate-200); border-radius: 14px; box-shadow: var(--shadow-md); padding: 16px; z-index: 60; }
.user-popover strong, .user-popover span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-popover span { color: var(--slate-500); font-size: 12px; margin-top: 4px; }
.user-popover hr { border: 0; border-top: 1px solid var(--slate-200); margin: 13px 0; }
.user-popover a { display: block; padding: 8px 6px; border-radius: 7px; text-decoration: none; font-size: 13px; }
.user-popover a:hover { background: var(--slate-100); color: var(--blue-700); }
.content { padding: 28px 32px 70px; width: min(1500px, 100%); margin: 0 auto; }
.content-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--blue-700); font-weight: 900; font-size: 11px; letter-spacing: .13em; }
.content-head h1, .admin-title h1 { margin: 0; color: var(--slate-950); font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 24px; margin-top: 8px; }
.breadcrumbs button { border: 0; background: transparent; color: var(--slate-500); cursor: pointer; padding: 3px 4px; font-size: 12px; }
.breadcrumbs button:hover { color: var(--blue-700); text-decoration: underline; }
.breadcrumbs span { color: var(--slate-400); font-size: 11px; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.sort-control { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--slate-200); border-radius: 10px; background: white; color: var(--slate-500); font-size: 12px; }
.sort-control select { border: 0; outline: 0; color: var(--slate-700); background: transparent; font-weight: 700; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.quick-actions > button { border: 1px solid var(--slate-200); background: white; border-radius: 14px; min-height: 92px; padding: 16px; text-align: left; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; box-shadow: var(--shadow-sm); }
.quick-actions > button:hover { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(37,99,235,.10); transform: translateY(-1px); }
.quick-actions > button > span { grid-row: 1/3; width: 44px; height: 44px; display: grid; place-items: center; background: var(--blue-50); border-radius: 12px; font-size: 22px; }
.quick-actions strong { color: var(--slate-800); }
.quick-actions small { color: var(--slate-500); margin-top: 3px; }
.drop-zone { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; border: 1.5px dashed #93c5fd; background: rgba(239,246,255,.7); border-radius: 13px; color: var(--blue-700); margin-bottom: 16px; cursor: pointer; }
.drop-zone > span { font-size: 24px; }
.drop-zone small { color: var(--slate-500); }
.drop-zone.drag-over { background: #dbeafe; border-color: var(--blue-600); }
.items-panel { min-height: 360px; background: white; border: 1px solid var(--slate-200); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-status { height: 46px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--slate-200); color: var(--slate-500); font-size: 12px; }
#uploadStatus { color: var(--blue-700); font-weight: 750; }
.loading-state, .empty-state { min-height: 310px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--slate-500); padding: 35px; }
.loading-state p { margin: 14px 0 0; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state > div { font-size: 58px; opacity: .75; }
.empty-state h2 { margin: 14px 0 4px; color: var(--slate-700); font-size: 20px; }
.empty-state p { margin: 0; }
.list-view { width: 100%; overflow-x: auto; scrollbar-width: thin; }
.list-header, .list-row { display: grid; grid-template-columns: minmax(var(--name-column-width), 2.3fr) minmax(110px,.7fr) 100px 170px minmax(370px,390px); min-width: calc(var(--name-column-width) + 800px); align-items: center; gap: 10px; padding: 0 16px; }
.list-header { height: 42px; background: var(--slate-50); color: var(--slate-500); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--slate-200); }
.list-row { min-height: 59px; border-bottom: 1px solid #edf1f6; font-size: 13px; transition: background .12s ease; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #f8fbff; }
.item-name-cell { min-width: 0; display: flex; align-items: center; gap: 11px; }
.item-icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-50); color: var(--blue-700); font-size: 9px; font-weight: 900; letter-spacing: -.02em; }
.item-icon.folder { font-size: 22px; background: #fff7ed; }
.item-link { min-width: 0; color: var(--slate-800); font-weight: 710; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: none; }
.list-row:hover .item-link, .grid-card:hover > strong { color: var(--blue-700); }
.meta-cell { color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visibility-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 800; }
.visibility-pill.public { color: #166534; background: var(--green-100); }
.visibility-pill.private { color: var(--slate-600); background: var(--slate-100); }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; min-width: 0; flex-wrap: nowrap; }
.row-actions button { width: 30px; height: 30px; flex: 0 0 30px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--slate-500); }
.row-actions button:hover { color: var(--blue-700); background: var(--blue-50); }
.row-actions button.danger:hover { color: var(--red-600); background: var(--red-100); }
.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 18px; }
.grid-card { border: 1px solid var(--slate-200); border-radius: 13px; min-height: 174px; padding: 15px; position: relative; cursor: pointer; background: white; display: flex; flex-direction: column; }
.grid-card:hover { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(37,99,235,.09); }
.grid-card .item-icon { width: 52px; height: 52px; margin-bottom: 18px; }
.grid-card .item-icon.folder { font-size: 30px; }
.grid-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.grid-card small { color: var(--slate-500); margin-top: 5px; }
.grid-card .row-actions { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--slate-100); }
.favorite-mark { position: absolute; right: 12px; top: 10px; color: #f59e0b; font-size: 18px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(7,26,51,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(520px, 100%); background: white; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 24px; position: relative; }
.modal h2 { margin: 0 0 20px; }
.modal-close { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.modal-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.modal-options button { min-height: 140px; border: 1px solid var(--slate-200); background: white; border-radius: 14px; cursor: pointer; padding: 18px; text-align: left; }
.modal-options button:hover { background: var(--blue-50); border-color: #93c5fd; }
.modal-options span, .modal-options strong, .modal-options small { display: block; }
.modal-options span { font-size: 34px; margin-bottom: 14px; }
.modal-options small { color: var(--slate-500); margin-top: 5px; }
.drop-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(14,70,128,.88); backdrop-filter: blur(8px); display: grid; place-items: center; color: white; }
.drop-overlay > div { border: 3px dashed rgba(255,255,255,.6); border-radius: 24px; width: min(720px, calc(100% - 50px)); min-height: 340px; display: grid; place-items: center; align-content: center; text-align: center; }
.drop-overlay span { font-size: 74px; }
.drop-overlay strong { font-size: 30px; margin: 10px 0; }
.drop-overlay small { color: #dbeafe; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 9px; width: min(390px, calc(100% - 44px)); }
.toast { background: var(--slate-950); color: white; border-radius: 12px; padding: 13px 15px; box-shadow: var(--shadow-lg); animation: toast-in .2s ease; line-height: 1.45; font-size: 13px; }
.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid #ef4444; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* Public profile */
.public-page { min-height: 100vh; background: linear-gradient(180deg, #eef6ff, #f8fafc 420px); }
.public-header { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 max(24px, calc((100% - 1180px)/2)); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--slate-200); }
.public-header > a img { width: 250px; max-height: 50px; object-fit: contain; }
.public-brand { display: flex; align-items: center; gap: 9px; color: var(--navy-900); }
.public-brand img { width: 34px; height: 34px; }
.public-container { width: min(1100px, calc(100% - 32px)); margin: 52px auto 80px; }
.profile-hero { background: linear-gradient(135deg, #0b2447, #155fa2); border-radius: 24px; color: white; padding: 42px; display: flex; align-items: center; gap: 28px; box-shadow: var(--shadow-md); }
.profile-avatar { flex: 0 0 108px; width: 108px; height: 108px; border: 4px solid rgba(255,255,255,.55); border-radius: 50%; background: #3b82f6; display: grid; place-items: center; overflow: hidden; font-size: 42px; font-weight: 900; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-summary { min-width: 0; }
.profile-hero .eyebrow { color: #bfdbfe; }
.profile-hero h1 { margin: 0; font-size: 37px; }
.profile-hero p { color: #dbeafe; }
.profile-hero code { display: inline-block; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.17); padding: 7px 10px; border-radius: 8px; color: white; }
.profile-url-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-url-row code { overflow-wrap: anywhere; }
.profile-copy-button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.12); color: white; border-radius: 9px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.profile-copy-button:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.profile-copy-button:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 2px; }
.profile-copy-button:disabled { cursor: wait; opacity: .78; }
.copy-feedback { flex-basis: 100%; min-height: 17px; color: #dbeafe; font-size: 12px; }
.public-files { margin-top: 24px; background: white; border: 1px solid var(--slate-200); border-radius: 18px; overflow: hidden; }
.public-files-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--slate-200); }
.public-files-head h2 { margin: 0; font-size: 20px; }
.public-files-head span { color: var(--slate-500); font-size: 12px; }
.public-list { display: grid; }
.public-file { display: grid; grid-template-columns: 52px minmax(0,1fr) 35px; gap: 13px; align-items: center; padding: 15px 22px; text-decoration: none; border-bottom: 1px solid var(--slate-100); }
.public-file:last-child { border-bottom: 0; }
.public-file:hover { background: var(--blue-50); }
.file-type-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); font-weight: 900; font-size: 9px; }
.public-file strong, .public-file small { display: block; }
.public-file small { color: var(--slate-500); margin-top: 5px; }
.download-arrow { font-size: 22px; color: var(--blue-600); }
.public-empty { min-height: 430px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--slate-500); }
.public-empty.compact { min-height: 280px; }
.public-empty > div { font-size: 58px; }
.public-empty h1, .public-empty h3 { color: var(--slate-800); margin-bottom: 0; }
.public-footer { text-align: center; color: var(--slate-500); font-size: 12px; padding: 25px; }

/* Administration */
.admin-page { background: #f1f5f9; min-height: 100vh; }
.admin-header { min-height: 70px; padding: 10px max(22px, calc((100% - 1450px)/2)); display: flex; justify-content: space-between; align-items: center; background: var(--navy-900); color: white; }
.admin-brand { display: flex; align-items: center; gap: 11px; }
.admin-brand img { width: 44px; height: 44px; background: white; border-radius: 10px; padding: 4px; }
.admin-brand strong, .admin-brand span { display: block; }
.admin-brand span { font-size: 11px; color: #bfdbfe; margin-top: 3px; }
.admin-header nav { display: flex; align-items: center; gap: 6px; }
.admin-header nav a { color: #dbeafe; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.admin-header nav a:hover { background: rgba(255,255,255,.1); color: white; }
.admin-container { width: min(1450px, calc(100% - 32px)); margin: 30px auto 80px; display: grid; gap: 18px; }
.admin-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding: 8px 4px; }
.admin-title > div > p:last-child { color: var(--slate-500); margin-bottom: 0; }
.admin-kpis { display: flex; gap: 10px; }
.admin-kpis div { min-width: 112px; background: white; border: 1px solid var(--slate-200); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.admin-kpis strong, .admin-kpis span { display: block; }
.admin-kpis strong { font-size: 18px; color: var(--navy-900); }
.admin-kpis span { color: var(--slate-500); font-size: 11px; margin-top: 3px; }
.admin-card { background: white; border: 1px solid var(--slate-200); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.admin-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.admin-card-head h2 { margin: 0; font-size: 20px; color: var(--slate-950); }
.admin-card-head p { margin: 6px 0 0; color: var(--slate-500); font-size: 13px; }
.source-badge, .pending-count { border-radius: 20px; background: var(--blue-50); color: var(--blue-700); border: 1px solid #bfdbfe; padding: 6px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.pending-count { background: var(--amber-100); color: #92400e; border-color: #fde68a; }
.admin-form { display: grid; gap: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-grid .span-2 { grid-column: 1/-1; }
.admin-form label { display: block; font-size: 12px; font-weight: 800; color: var(--slate-700); margin-bottom: 6px; }
.admin-form input:not([type=checkbox]), .admin-form select, .user-row-form input, .user-row-form select { width: 100%; border: 1px solid var(--slate-300); border-radius: 9px; padding: 10px 11px; background: white; color: var(--slate-800); }
.admin-form input:focus, .admin-form select:focus, .user-row-form input:focus, .user-row-form select:focus { outline: 3px solid var(--blue-100); border-color: var(--blue-500); }
.admin-form small { display: block; color: var(--slate-500); margin-top: 5px; }
.check-row { display: flex; flex-wrap: wrap; gap: 15px 25px; padding: 13px 14px; background: var(--slate-50); border-radius: 10px; }
.check-row label { margin: 0; display: inline-flex; align-items: center; gap: 7px; font-weight: 650; }
.check-row input { width: 17px; height: 17px; }
.form-actions { display: flex; gap: 10px; }
.inline-form { display: inline-block; margin-top: 14px; }
.admin-warning { margin: 18px 0 0; border-left: 4px solid #f59e0b; background: #fffbeb; color: #854d0e; padding: 12px 14px; border-radius: 8px; font-size: 12px; }
.public-route-panel { display: grid; gap: 14px; }
.public-route-address { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 14px; border: 1px solid var(--slate-200); background: var(--slate-50); border-radius: 12px; }
.public-route-address code { flex: 1 1 360px; min-width: 0; overflow-wrap: anywhere; color: var(--navy-900); font-weight: 800; }
.public-route-address button, .public-route-address a { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 8px 13px; font: inherit; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.public-route-address button { border: 0; background: var(--blue-700); color: white; }
.public-route-address a { border: 1px solid var(--slate-300); background: white; color: var(--navy-900); }
.route-status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.route-status-badge.active { background: var(--green-100); color: #166534; }
.route-status-badge.inactive { background: var(--amber-100); color: #92400e; }
.route-details { display: grid; gap: 5px; color: var(--slate-500); font-size: 12px; }
.route-details code { overflow-wrap: anywhere; color: var(--slate-700); }
.route-details a { color: var(--blue-700); overflow-wrap: anywhere; }
.route-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.route-actions form { margin: 0; }
.danger-button { border: 1px solid #fecaca; background: #fff1f2; color: #b91c1c; border-radius: 9px; padding: 10px 14px; font-weight: 850; cursor: pointer; }
.table-scroll { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 980px; font-size: 12px; }
.admin-table th { text-align: left; background: var(--slate-50); color: var(--slate-500); text-transform: uppercase; letter-spacing: .04em; font-size: 10px; padding: 10px; border-bottom: 1px solid var(--slate-200); }
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.admin-table td > small { display: block; color: var(--slate-500); margin-top: 3px; }
.status-badge { display: inline-flex; border-radius: 20px; padding: 5px 9px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.status-badge.active { color: #166534; background: var(--green-100); }
.status-badge.pending { color: #92400e; background: var(--amber-100); }
.status-badge.blocked { color: #991b1b; background: var(--red-100); }
.user-row-form { display: grid; grid-template-columns: 105px 125px 70px; gap: 7px; }
.user-row-form button { border: 0; border-radius: 8px; background: var(--blue-700); color: white; font-weight: 800; cursor: pointer; }
.audit-table code { color: var(--navy-800); font-size: 10px; }

@media (max-width: 1100px) {
  :root { --sidebar-width: 238px; }
  .list-header, .list-row { grid-template-columns: minmax(220px,1fr) 90px 145px minmax(250px,280px); }
  .list-header > :nth-child(2), .list-row > :nth-child(2) { display: none; }
  .row-actions { flex-wrap: wrap; }
  .auth-card { padding: 40px; }
  .auth-visual { padding: 42px; }
}
@media (max-width: 820px) {
  .mobile-only { display: inline-grid !important; }
  .app-layout { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(310px, 88vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .workspace { height: 100vh; }
  .topbar { padding: 0 14px; }
  .content { padding: 22px 16px 60px; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-actions > button { min-height: 72px; }
  .content-head { align-items: flex-start; flex-direction: column; }
  .head-actions { width: 100%; }
  .sort-control { flex: 1; }
  .sort-control select { width: 100%; }
  .list-header { display: none; }
  .list-row { grid-template-columns: minmax(0,1fr) auto; padding: 10px 12px; }
  .list-row > .meta-cell { display: none; }
  .row-actions { min-width: 165px; }
  .auth-page { padding: 0; background: var(--navy-900); }
  .auth-shell { min-height: 100vh; border-radius: 0; grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-card { padding: 36px 24px; }
  .auth-card-head { margin-bottom: 42px; }
  .public-header { padding: 0 16px; }
  .public-header > a img { width: 195px; }
  .profile-hero { padding: 28px; align-items: flex-start; }
  .profile-avatar { flex-basis: 80px; width: 80px; height: 80px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .admin-title { align-items: flex-start; flex-direction: column; }
  .admin-kpis { width: 100%; overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}
@media (max-width: 560px) {
  .top-icon { display: none; }
  .search-box { height: 42px; }
  .quick-actions { display: none; }
  .drop-zone { min-height: 80px; padding: 10px; text-align: center; flex-wrap: wrap; }
  .grid-view { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 10px; gap: 9px; }
  .grid-card { min-height: 160px; padding: 12px; }
  .row-actions { min-width: 0; }
  .list-row { align-items: start; }
      .row-actions button { width: 29px; height: 29px; }
  .modal-options { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; }
  .profile-hero h1 { font-size: 29px; }
  .profile-url-row { align-items: stretch; }
  .profile-url-row code, .profile-copy-button { width: 100%; }
  .profile-copy-button { justify-content: center; }
  .public-file { padding: 13px 14px; grid-template-columns: 44px minmax(0,1fr) 26px; }
  .public-header > a img { width: 165px; }
  .public-brand strong { display: none; }
  .status-card { min-height: 100vh; width: 100%; border-radius: 0; padding: 40px 22px; }
  .status-actions { flex-direction: column; }
}

/* Seleção múltipla e movimentação por arrastar — alpha.3 */
.panel-status { height: auto; min-height: 46px; gap: 12px; flex-wrap: wrap; }
.selection-summary { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--blue-700); }
.selection-summary strong { white-space: nowrap; font-size: 12px; }
.selection-help { color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-summary button { border: 1px solid #bfdbfe; background: var(--blue-50); color: var(--blue-700); border-radius: 8px; padding: 6px 9px; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.selection-summary button:hover { background: #dbeafe; border-color: #93c5fd; }
.list-row, .grid-card { user-select: none; -webkit-user-select: none; }
.list-row[draggable="true"], .grid-card[draggable="true"] { cursor: grab; }
.list-row[draggable="true"]:active, .grid-card[draggable="true"]:active { cursor: grabbing; }
.item-select { flex: 0 0 auto; width: 23px; height: 23px; border-radius: 7px; border: 1px solid var(--slate-300); background: white; color: transparent; display: inline-grid; place-items: center; padding: 0; font-size: 13px; font-weight: 950; cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease; }
.item-select:hover { border-color: #60a5fa; background: var(--blue-50); }
.item-select[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); color: white; }
.item-select:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 2px; }
.list-row.selected { background: #eaf3ff; box-shadow: inset 4px 0 0 var(--blue-600); }
.list-row.selected:hover { background: #dfedff; }
.grid-card.selected { background: #eff6ff; border-color: var(--blue-600); box-shadow: 0 0 0 2px var(--blue-100), 0 8px 24px rgba(37,99,235,.12); }
.grid-card > .item-select { position: absolute; top: 11px; left: 11px; z-index: 2; }
.grid-card > .item-icon { margin-top: 24px; }
.list-row.is-dragging, .grid-card.is-dragging { opacity: .48; }
.list-row.drop-target { background: #ecfdf5; outline: 2px solid #22c55e; outline-offset: -2px; box-shadow: inset 4px 0 0 #16a34a; }
.grid-card.drop-target { background: #ecfdf5; border-color: #16a34a; box-shadow: 0 0 0 3px #bbf7d0, 0 12px 28px rgba(22,163,74,.14); transform: translateY(-2px); }
.list-row.drop-target .item-icon.folder, .grid-card.drop-target .item-icon.folder { transform: scale(1.08); }
.drag-ghost { position: fixed; left: -10000px; top: -10000px; z-index: -1; min-width: 190px; max-width: 320px; padding: 11px 14px; border-radius: 11px; background: var(--navy-900); color: white; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 850; }
.drag-ghost span { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-600); display: grid; place-items: center; flex: 0 0 auto; }
.drag-ghost strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.profdrive-internal-drag .drop-zone { opacity: .62; }

@media (max-width: 820px) {
  .selection-summary { order: 3; flex-basis: 100%; justify-content: space-between; padding-bottom: 8px; }
  .selection-help { display: none; }
}
@media (max-width: 560px) {
  .item-select { width: 26px; height: 26px; }
  .grid-card > .item-select { top: 8px; left: 8px; }
  .selection-summary button { padding: 5px 7px; }
}
.grid-card .row-actions { flex-wrap: wrap; justify-content: flex-start; gap: 2px; }
.grid-card .row-actions button { width: 29px; height: 29px; }

/* Navegação, ações em lote e portal público hierárquico — alpha.4 */
.folder-navigation { min-height: 30px; margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.folder-navigation .breadcrumbs { min-height: 0; margin-top: 0; }
.up-directory { min-height: 30px; border: 1px solid var(--slate-300); background: white; color: var(--navy-900); border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.up-directory:hover { border-color: #93c5fd; background: var(--blue-50); color: var(--blue-700); }
.breadcrumbs button[aria-current="page"] { color: var(--slate-800); font-weight: 850; text-decoration: none; cursor: default; }

.selection-summary { justify-content: space-between; }
.selection-copy { min-width: 0; display: flex; align-items: center; gap: 10px; }
.batch-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.selection-summary .batch-button { min-height: 32px; border: 1px solid #bfdbfe; background: var(--blue-50); color: var(--blue-700); border-radius: 8px; padding: 6px 9px; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.selection-summary .batch-button:hover { background: #dbeafe; border-color: #93c5fd; }
.selection-summary .batch-button.danger { border-color: #fecaca; background: #fff1f2; color: #b91c1c; }
.selection-summary .batch-button.danger:hover { background: var(--red-100); border-color: #fca5a5; }
.selection-summary .batch-button.secondary { border-color: var(--slate-300); background: white; color: var(--slate-600); }
.selection-summary .batch-button:disabled { cursor: not-allowed; opacity: .42; background: var(--slate-100); border-color: var(--slate-200); color: var(--slate-500); }

.public-institution { display: inline-flex; align-items: center; text-decoration: none; border-radius: 10px; }
.public-institution:focus-visible, .public-product-link:focus-visible, .public-view-switch button:focus-visible, .public-up-directory:focus-visible, .public-breadcrumbs a:focus-visible, .public-item:focus-visible, .public-return-link:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 2px; }
.public-products { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.public-product-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 6px 9px; color: var(--navy-900); text-decoration: none; font-size: 12px; font-weight: 850; }
.public-product-link:hover { border-color: #bfdbfe; background: var(--blue-50); color: var(--blue-700); }
.public-product-link.profdrive-link { background: #f8fbff; border-color: var(--slate-200); }
.public-product-link img { width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; }
.public-product-link.core-link img { border-radius: 9px; }
.public-files-head > div:first-child { min-width: 0; }
.public-files-head > div:first-child span { display: block; margin-top: 4px; }
.public-view-switch { display: inline-flex; align-items: center; gap: 6px; }
.public-view-switch button { width: 38px; height: 38px; border: 1px solid var(--slate-300); border-radius: 9px; background: white; color: var(--slate-600); font: inherit; font-size: 17px; cursor: pointer; }
.public-view-switch button:hover { border-color: #93c5fd; background: var(--blue-50); color: var(--blue-700); }
.public-view-switch button.active { border-color: #93c5fd; background: var(--blue-50); color: var(--blue-700); box-shadow: inset 0 0 0 1px #bfdbfe; }
.public-directory-nav { min-height: 54px; padding: 10px 22px; border-bottom: 1px solid var(--slate-200); background: var(--slate-50); display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.public-up-directory { min-height: 32px; display: inline-flex; align-items: center; border: 1px solid var(--slate-300); border-radius: 8px; padding: 6px 10px; background: white; color: var(--navy-900); text-decoration: none; font-size: 11px; font-weight: 850; }
.public-up-directory:hover { border-color: #93c5fd; background: var(--blue-50); color: var(--blue-700); }
.public-breadcrumbs { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--slate-500); font-size: 12px; }
.public-breadcrumbs a { color: var(--blue-700); text-decoration: none; }
.public-breadcrumbs a:hover { text-decoration: underline; }
.public-breadcrumbs a[aria-current="page"] { color: var(--slate-800); font-weight: 850; text-decoration: none; }
.public-breadcrumbs span { color: var(--slate-400); }
.public-items { min-width: 0; }
.public-item { color: var(--slate-800); text-decoration: none; min-width: 0; transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.public-item-copy { min-width: 0; }
.public-item strong, .public-item small { display: block; overflow-wrap: anywhere; }
.public-item small { color: var(--slate-500); margin-top: 5px; line-height: 1.45; }
.public-item-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); font-weight: 900; font-size: 9px; flex: 0 0 auto; }
.public-item-icon.folder { background: #fff7ed; color: var(--amber-600); font-size: 24px; }
.public-item-arrow { color: var(--blue-600); font-size: 22px; }
.public-items.public-list-mode { display: grid; }
.public-list-mode .public-item { display: grid; grid-template-columns: 52px minmax(0,1fr) 35px; gap: 13px; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--slate-100); }
.public-list-mode .public-item:last-child { border-bottom: 0; }
.public-list-mode .public-item:hover { background: var(--blue-50); }
.public-list-mode .public-item-arrow { justify-self: end; }
.public-grid-mode { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 18px; }
.public-grid-mode .public-item { min-height: 190px; border: 1px solid var(--slate-200); border-radius: 14px; padding: 16px; background: white; display: flex; flex-direction: column; align-items: flex-start; }
.public-grid-mode .public-item:hover { border-color: #93c5fd; background: var(--blue-50); box-shadow: 0 9px 24px rgba(37,99,235,.10); transform: translateY(-1px); }
.public-grid-mode .public-item-icon { width: 58px; height: 58px; border-radius: 13px; margin-bottom: 18px; }
.public-grid-mode .public-item-icon.folder { font-size: 31px; }
.public-grid-mode .public-item-copy { width: 100%; }
.public-grid-mode .public-item strong { line-height: 1.35; }
.public-grid-mode .public-item-arrow { margin-top: auto; padding-top: 16px; align-self: flex-end; font-size: 20px; }
.public-return-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 14px; padding: 8px 12px; border: 1px solid #bfdbfe; border-radius: 9px; color: var(--blue-700); background: var(--blue-50); text-decoration: none; font-weight: 850; }
.public-return-link:hover { background: #dbeafe; }
.public-empty.standalone { width: min(720px, 100%); margin: 80px auto; background: white; border: 1px solid var(--slate-200); border-radius: 20px; box-shadow: var(--shadow-md); }

@media (max-width: 980px) {
  .selection-summary { align-items: flex-start; }
  .selection-copy { flex: 1 1 100%; }
  .batch-actions { flex: 1 1 100%; justify-content: flex-start; }
  .public-product-link span { display: none; }
}
@media (max-width: 820px) {
  .folder-navigation { width: 100%; }
  .public-header { height: auto; min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
  .public-header > a img { width: min(220px, 44vw); }
  .public-product-link { padding: 5px; }
  .public-product-link img { width: 34px; height: 34px; }
  .public-files-head { align-items: flex-start; gap: 14px; }
  .public-directory-nav { padding: 10px 14px; }
}
@media (max-width: 620px) {
  .public-container { width: min(100% - 20px, 1100px); margin-top: 24px; }
  .profile-hero { padding: 26px 20px; align-items: flex-start; }
  .profile-avatar { width: 82px; height: 82px; flex-basis: 82px; }
  .profile-hero h1 { font-size: 28px; }
  .public-files-head { padding: 16px 14px; }
  .public-list-mode .public-item { padding: 13px 14px; grid-template-columns: 44px minmax(0,1fr) 25px; }
  .public-item-icon { width: 42px; height: 42px; }
  .public-grid-mode { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 10px; }
  .public-grid-mode .public-item { min-height: 175px; padding: 13px; }
  .public-grid-mode .public-item-icon { width: 50px; height: 50px; }
}
@media (max-width: 560px) {
  .batch-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; }
  .selection-summary .batch-button { white-space: normal; text-align: center; }
  .public-products { gap: 3px; }
  .public-header > a img { width: min(190px, 48vw); }
}
@media (max-width: 420px) {
  .profile-hero { display: grid; }
  .public-grid-mode { grid-template-columns: 1fr; }
}

/* Administração institucional — mantida na v0.5.0-alpha.2 */
.institutional-admin { gap: 20px; }
.admin-tabs {
  position: sticky; top: 8px; z-index: 25;
  display: flex; gap: 6px; overflow-x: auto; padding: 7px;
  border: 1px solid var(--slate-200); border-radius: 14px;
  background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm);
  scrollbar-width: thin; backdrop-filter: blur(9px);
}
.admin-tabs a {
  flex: 0 0 auto; padding: 9px 12px; border-radius: 9px;
  color: var(--slate-600); text-decoration: none; font-size: 12px; font-weight: 850;
}
.admin-tabs a:hover, .admin-tabs a:focus-visible { background: var(--blue-50); color: var(--blue-700); outline: none; }
.admin-tabs a.active { background: var(--blue-700); color: white; }

.institutional-kpi-grid {
  display: grid; grid-template-columns: repeat(6,minmax(150px,1fr)); gap: 12px;
}
.institutional-kpi {
  min-width: 0; min-height: 138px; display: grid; align-content: center; gap: 7px;
  padding: 17px; border: 1px solid var(--slate-200); border-radius: 15px;
  background: white; box-shadow: var(--shadow-sm);
}
.institutional-kpi > span { color: var(--slate-500); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.institutional-kpi > strong { color: var(--navy-900); font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.institutional-kpi > small { color: var(--slate-500); line-height: 1.45; }
.quota-meter { height: 8px; overflow: hidden; border-radius: 999px; background: var(--slate-200); }
.quota-meter > span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: #22c55e; }
.quota-meter.attention > span { background: #f59e0b; }
.quota-meter.warning > span { background: #f97316; }
.quota-meter.critical > span { background: #ef4444; }
.quota-meter.blocked > span { background: #991b1b; }
.quota-alert {
  display: inline-flex; align-items: center; justify-content: center; width: max-content;
  margin-top: 5px; padding: 4px 8px; border-radius: 999px;
  background: var(--green-100); color: #166534; font-size: 10px; font-weight: 900;
}
.quota-alert.attention { background: #fef3c7; color: #92400e; }
.quota-alert.warning { background: #ffedd5; color: #9a3412; }
.quota-alert.critical { background: #fee2e2; color: #991b1b; }
.quota-alert.blocked { background: #7f1d1d; color: white; }

.export-actions, .row-report-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.export-actions { justify-content: flex-end; }
.export-actions a, .row-report-actions a, .report-cards a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px;
  padding: 7px 10px; border: 1px solid #bfdbfe; border-radius: 8px;
  background: var(--blue-50); color: var(--blue-700); text-decoration: none;
  font-size: 11px; font-weight: 850;
}
.export-actions a:hover, .row-report-actions a:hover, .report-cards a:hover { background: #dbeafe; }
.alert-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.alert-legend span, .alert-policy-list > div {
  border-radius: 10px; border: 1px solid transparent; font-weight: 850;
}
.alert-legend span { padding: 6px 9px; font-size: 10px; }
.alert-legend .normal, .alert-policy-list .normal { background: #ecfdf5; color: #166534; border-color: #bbf7d0; }
.alert-legend .attention, .alert-policy-list .attention { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-legend .warning, .alert-policy-list .warning { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.alert-legend .critical, .alert-policy-list .critical { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.alert-legend .blocked, .alert-policy-list .blocked { background: #7f1d1d; color: white; border-color: #7f1d1d; }
.alert-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(130px,1fr)); gap: 10px; }
.alert-summary { padding: 13px; border: 1px solid var(--slate-200); border-left-width: 5px; border-radius: 11px; background: var(--slate-50); }
.alert-summary strong, .alert-summary span { display: block; }
.alert-summary strong { color: var(--navy-900); font-size: 21px; }
.alert-summary span { color: var(--slate-500); font-size: 11px; margin-top: 3px; }
.alert-summary.attention { border-left-color: #f59e0b; }
.alert-summary.warning { border-left-color: #f97316; }
.alert-summary.critical { border-left-color: #ef4444; }
.alert-summary.blocked { border-left-color: #7f1d1d; }

.admin-dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.admin-dashboard-grid.compact { margin-top: 18px; }
.admin-dashboard-grid.compact > article { min-width: 0; padding: 16px; border: 1px solid var(--slate-200); border-radius: 13px; background: var(--slate-50); }
.admin-dashboard-grid.compact h3 { margin: 0 0 13px; color: var(--navy-900); }
.ranking-list, .usage-bars { display: grid; gap: 10px; }
.ranking-row { display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--slate-100); }
.ranking-row:last-child { border-bottom: 0; }
.ranking-position { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-size: 11px; font-weight: 900; }
.ranking-person { min-width: 0; }
.ranking-person strong, .ranking-person small, .ranking-usage strong { display: block; }
.ranking-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-person small { color: var(--slate-500); margin-top: 3px; overflow-wrap: anywhere; }
.ranking-usage { text-align: right; }
.ranking-usage strong { color: var(--navy-900); }
.ranking-usage .quota-alert { margin-left: auto; }
.usage-bar-row { display: grid; grid-template-columns: minmax(150px,1.2fr) minmax(90px,2fr) 58px; align-items: center; gap: 10px; }
.usage-bar-row > div:first-child { min-width: 0; }
.usage-bar-row strong, .usage-bar-row span { display: block; }
.usage-bar-row > div:first-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.usage-bar-row > div:first-child span { color: var(--slate-500); font-size: 10px; margin-top: 2px; }
.usage-bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--slate-200); }
.usage-bar span { height: 100%; border-radius: inherit; background: var(--blue-600); }
.usage-bar-row em { color: var(--slate-500); font-size: 10px; font-style: normal; font-weight: 800; text-align: right; }
.empty-admin { min-height: 110px; display: grid; place-items: center; text-align: center; color: var(--slate-500); }

.institutional-users { min-width: 1240px; }
.institutional-users td:nth-child(2) .quota-alert { margin-left: 5px; }
.institutional-users .quota-meter { min-width: 170px; margin-top: 7px; }
.row-report-actions { min-width: 125px; }
.report-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.report-cards article { display: grid; align-content: start; min-height: 155px; padding: 16px; border: 1px solid var(--slate-200); border-radius: 13px; background: var(--slate-50); }
.report-cards h3 { margin: 0; color: var(--navy-900); font-size: 16px; }
.report-cards p { margin: 7px 0 18px; color: var(--slate-500); line-height: 1.55; }
.report-cards article > div { display: flex; gap: 7px; margin-top: auto; }
.report-user-selector { display: grid; grid-template-columns: auto minmax(260px,1fr) auto; align-items: end; gap: 10px; }
.report-user-selector label { color: var(--slate-700); font-size: 12px; font-weight: 800; }
.report-user-selector select { width: 100%; min-height: 42px; border: 1px solid var(--slate-300); border-radius: 9px; padding: 9px 11px; background: white; }
.professor-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 22px 0 14px; padding-top: 18px; border-top: 1px solid var(--slate-200); }
.professor-report-head h3 { margin: 0; color: var(--navy-900); font-size: 20px; }
.professor-report-head p { margin: 5px 0 0; color: var(--slate-500); }
.mini-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(130px,1fr)); gap: 10px; margin-bottom: 18px; }
.mini-kpi-grid > div { padding: 13px; border: 1px solid var(--slate-200); border-radius: 11px; background: var(--slate-50); }
.mini-kpi-grid span, .mini-kpi-grid strong, .mini-kpi-grid small { display: block; }
.mini-kpi-grid span { color: var(--slate-500); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.mini-kpi-grid strong { color: var(--navy-900); font-size: 18px; margin-top: 4px; }
.mini-kpi-grid small { color: var(--slate-500); margin-top: 4px; }
.file-report-table { min-width: 1020px; }
.file-report-table td:first-child strong, .file-report-table td:nth-child(2) strong { display: block; }
.file-report-table td:first-child small, .file-report-table td:nth-child(2) small { color: var(--slate-500); }

.retention-status { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.retention-status.active { background: var(--green-100); color: #166534; }
.retention-status.inactive { background: var(--amber-100); color: #92400e; }
.destructive-check { border: 1px solid #fecdd3; background: #fff1f2; color: #9f1239; }
.alert-policy-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.alert-policy-list > div { padding: 12px; }
.alert-policy-list strong, .alert-policy-list span { display: block; }
.alert-policy-list strong { font-size: 17px; }
.alert-policy-list span { margin-top: 3px; font-size: 10px; opacity: .9; }
.cron-panel { display: grid; gap: 10px; }
.cron-panel > label { color: var(--slate-700); font-size: 12px; font-weight: 800; }
.cron-panel > div { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--slate-200); border-radius: 10px; background: var(--slate-50); }
.cron-panel code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy-900); }
.cron-panel button { border: 0; border-radius: 8px; padding: 8px 10px; background: var(--blue-700); color: white; font-weight: 850; cursor: pointer; }
.cron-panel .copy-feedback { grid-column: 1/-1; color: #166534; font-size: 10px; }
.cron-panel p { margin: 0; color: var(--slate-500); font-size: 11px; }
.cron-panel p strong { color: var(--slate-800); }

@media (max-width: 1450px) {
  .institutional-kpi-grid { grid-template-columns: repeat(3,minmax(150px,1fr)); }
  .report-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .admin-tabs { position: static; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .alert-summary-grid { grid-template-columns: repeat(2,minmax(130px,1fr)); }
  .mini-kpi-grid { grid-template-columns: repeat(2,minmax(130px,1fr)); }
  .alert-policy-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .institutional-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-cards { grid-template-columns: 1fr; }
  .report-user-selector { grid-template-columns: 1fr; align-items: stretch; }
  .professor-report-head { flex-direction: column; }
  .usage-bar-row { grid-template-columns: minmax(120px,1fr) 70px; }
  .usage-bar { grid-column: 1/-1; }
  .usage-bar-row em { grid-column: 2; grid-row: 1; }
}
@media (max-width: 520px) {
  .institutional-kpi-grid, .alert-summary-grid, .mini-kpi-grid, .alert-policy-list { grid-template-columns: 1fr; }
  .ranking-row { grid-template-columns: 30px minmax(0,1fr); }
  .ranking-usage { grid-column: 2; text-align: left; }
  .ranking-usage .quota-alert { margin-left: 0; }
  .admin-card-head { flex-direction: column; }
  .export-actions { justify-content: flex-start; }
}

/* v0.5.0-alpha.2 — filtros, pré-visualização, metadados e menus de contexto */
.file-filters { display: grid; grid-template-columns: repeat(4,minmax(145px,1fr)) auto minmax(190px,auto); gap: 10px; align-items: end; margin: -8px 0 16px; padding: 12px; border: 1px solid var(--slate-200); border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: var(--shadow-sm); }
.file-filters label { display: grid; gap: 5px; color: var(--slate-600); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.file-filters select { width: 100%; min-height: 38px; padding: 7px 32px 7px 10px; border: 1px solid var(--slate-300); border-radius: 9px; background: white; color: var(--slate-800); font: inherit; font-size: 12px; text-transform: none; letter-spacing: normal; }
.file-filters select:focus-visible, .filter-clear:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 1px; border-color: var(--blue-500); }
.filter-clear { min-height: 38px; border: 1px solid var(--slate-300); border-radius: 9px; background: white; color: var(--slate-700); padding: 8px 12px; cursor: pointer; font-size: 11px; font-weight: 800; white-space: nowrap; }
.filter-clear:hover { border-color: #93c5fd; color: var(--blue-700); background: var(--blue-50); }
.filter-scope { align-self: center; color: var(--blue-700); font-size: 11px; font-weight: 750; }
.item-path-label { display: block; min-width: 0; margin-top: 3px; color: var(--slate-500); font-size: 10px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-title-stack { min-width: 0; display: grid; }

.list-row:focus-visible, .grid-card:focus-visible { outline: 3px solid #93c5fd; outline-offset: -3px; }
.list-row.keyboard-focus, .grid-card.keyboard-focus { box-shadow: inset 4px 0 0 #0ea5e9, 0 0 0 2px #bae6fd; }
.row-actions button.preview-action { color: var(--blue-700); }
.row-actions button.details-action { color: #475569; }

.preview-backdrop { z-index: 180; }
.preview-modal { width: min(1180px, 96vw); max-height: min(850px, 94vh); overflow: hidden; display: grid; grid-template-rows: auto minmax(0,1fr) auto; background: white; border-radius: 18px; box-shadow: var(--shadow-lg); position: relative; }
.preview-head { min-height: 75px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 58px 15px 22px; border-bottom: 1px solid var(--slate-200); }
.preview-head h2 { margin: 4px 0 0; color: var(--navy-900); font-size: clamp(17px,2vw,23px); overflow-wrap: anywhere; }
.preview-head small { display: block; margin-top: 5px; color: var(--slate-500); overflow-wrap: anywhere; }
.preview-type { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.preview-modal > .preview-head .modal-close { top: 14px; right: 16px; }
.preview-layout { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 330px; }
.preview-stage { min-height: 420px; min-width: 0; overflow: auto; display: grid; place-items: center; padding: 18px; background: #e8edf4; }
.preview-stage iframe { width: 100%; height: min(680px,72vh); border: 0; border-radius: 8px; background: white; box-shadow: 0 8px 30px rgba(15,23,42,.14); }
.preview-stage img { max-width: 100%; max-height: min(680px,72vh); object-fit: contain; border-radius: 8px; box-shadow: 0 10px 30px rgba(15,23,42,.16); background: white; }
.preview-stage audio { width: min(680px,94%); }
.preview-stage video { width: min(960px,100%); max-height: min(680px,72vh); background: #020617; border-radius: 10px; box-shadow: 0 12px 36px rgba(15,23,42,.28); }
.preview-placeholder { width: min(520px,100%); text-align: center; padding: 36px; border: 1px dashed var(--slate-300); border-radius: 16px; background: rgba(255,255,255,.75); }
.preview-placeholder .preview-placeholder-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 18px; background: var(--blue-100); color: var(--blue-700); font-weight: 900; font-size: 18px; }
.preview-placeholder h3 { margin: 0; color: var(--navy-900); }
.preview-placeholder p { margin: 9px 0 0; color: var(--slate-500); line-height: 1.55; }
.preview-loading { display: grid; place-items: center; gap: 12px; color: var(--slate-600); }
.metadata-panel { min-height: 0; overflow: auto; padding: 20px; border-left: 1px solid var(--slate-200); background: white; }
.metadata-panel h3 { margin: 0 0 14px; color: var(--navy-900); }
.metadata-panel dl { margin: 0; display: grid; gap: 0; }
.metadata-panel dl > div { padding: 10px 0; border-bottom: 1px solid var(--slate-100); }
.metadata-panel dt { color: var(--slate-500); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.metadata-panel dd { margin: 4px 0 0; color: var(--slate-800); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.metadata-panel dd.hash-value { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 10px; }
.preview-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 13px 20px; border-top: 1px solid var(--slate-200); background: white; }
.secondary-button, .primary-link-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 8px 14px; font-weight: 850; text-decoration: none; cursor: pointer; }
.secondary-button { border: 1px solid var(--slate-300); background: white; color: var(--slate-700); }
.primary-link-button { border: 1px solid var(--blue-700); background: var(--blue-700); color: white; }
.secondary-button:hover { background: var(--slate-50); }
.primary-link-button:hover { background: var(--blue-800); }
.secondary-button:focus-visible, .primary-link-button:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 2px; }

.context-menu { position: fixed; z-index: 220; min-width: 225px; max-width: min(310px,calc(100vw - 20px)); padding: 6px; border: 1px solid var(--slate-200); border-radius: 11px; background: white; box-shadow: 0 18px 48px rgba(15,23,42,.24); }
.context-menu button { width: 100%; min-height: 35px; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--slate-800); text-align: left; cursor: pointer; font-size: 12px; }
.context-menu button:hover, .context-menu button:focus-visible { background: var(--blue-50); color: var(--blue-800); outline: none; }
.context-menu button.danger { color: #b91c1c; }
.context-menu button[disabled] { opacity: .45; cursor: not-allowed; }
.context-menu hr { border: 0; border-top: 1px solid var(--slate-200); margin: 5px 2px; }
.context-menu .context-caption { padding: 6px 10px; color: var(--slate-500); font-size: 9px; font-weight: 850; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.public-file { cursor: pointer; }
.public-file .public-item-actions { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.public-item-action { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 8px; background: white; color: var(--blue-700); text-decoration: none; cursor: pointer; }
.public-item-action:hover { background: var(--blue-50); border-color: #93c5fd; }
.public-list-mode .public-file { grid-template-columns: 52px minmax(0,1fr) auto; }
.public-grid-mode .public-item-actions { margin-top: auto; padding-top: 14px; align-self: stretch; justify-content: flex-end; }
.public-grid-mode .public-file .public-item-arrow { display: none; }

@media (max-width: 1180px) {
  .file-filters { grid-template-columns: repeat(2,minmax(160px,1fr)) auto; }
  .filter-scope { grid-column: 1/-1; }
  .preview-layout { grid-template-columns: minmax(0,1fr) 285px; }
}
@media (max-width: 820px) {
  .file-filters { grid-template-columns: 1fr 1fr; }
  .filter-clear { width: 100%; }
  .preview-modal { width: 98vw; max-height: 96vh; }
  .preview-layout { grid-template-columns: 1fr; overflow: auto; }
  .preview-stage { min-height: 330px; overflow: visible; }
  .metadata-panel { border-left: 0; border-top: 1px solid var(--slate-200); overflow: visible; }
  .preview-stage iframe { height: 58vh; }
}
@media (max-width: 520px) {
  .file-filters { grid-template-columns: 1fr; margin-top: -12px; }
  .filter-scope { grid-column: auto; }
  .preview-head { padding: 14px 52px 13px 14px; }
  .preview-stage { padding: 9px; min-height: 280px; }
  .metadata-panel { padding: 15px; }
  .preview-footer { flex-wrap: wrap; }
  .preview-footer > * { flex: 1 1 auto; }
  .context-menu { min-width: 210px; }
}
.public-file-open { min-width: 0; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.public-file-open:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 2px; border-radius: 8px; }
.public-list-mode .public-file { grid-template-columns: minmax(0,1fr) auto; }
.public-list-mode .public-file-open { min-width: 0; display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 13px; align-items: center; }
.public-grid-mode .public-file-open { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.public-grid-mode .public-file-open .public-item-icon { margin-bottom: 18px; }
.public-grid-mode .public-file-open .public-item-copy { width: 100%; }
@media (max-width: 520px) {
  .public-list-mode .public-file-open { grid-template-columns: 44px minmax(0,1fr); gap: 9px; }
}

body.modal-open { overflow: hidden; }

/* ProfDrive IF v0.5.0-alpha.3 — versionamento e slugs públicos */
.versions-backdrop,.replace-backdrop{z-index:1300}
.versions-modal,.replace-modal{width:min(1040px,calc(100vw - 28px));max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:24px;box-shadow:0 28px 90px rgba(15,47,96,.28);display:flex;flex-direction:column}
.replace-modal{width:min(720px,calc(100vw - 28px))}
.versions-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px;border-bottom:1px solid #e4ebf5;background:#f8fbff}
.version-storage-summary{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px;flex:1}
.version-storage-summary>div{border:1px solid #dbe6f5;border-radius:14px;padding:10px 12px;background:#fff;display:flex;flex-direction:column;gap:3px}
.version-storage-summary span{font-size:.76rem;color:#60708a;text-transform:uppercase;letter-spacing:.04em}
.version-storage-summary strong{color:#102c55;font-size:1rem}
.versions-list{padding:18px 24px;display:flex;flex-direction:column;gap:10px;min-height:180px}
.version-row{display:grid;grid-template-columns:105px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px;border:1px solid #dfe8f5;border-radius:16px;background:#fff}
.version-row.current{border-color:#78aaf8;background:#f2f7ff;box-shadow:inset 4px 0 0 #2459de}
.version-number{font-size:1.08rem;font-weight:800;color:#12315d;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.version-number span{font-size:.68rem;border-radius:999px;background:#d9f8e4;color:#14703d;padding:3px 8px;text-transform:uppercase}
.version-details{min-width:0;display:flex;flex-direction:column;gap:5px}
.version-details>strong{color:#0c2243}
.version-details>span,.version-details>small{color:#60708a;font-size:.86rem}
.version-details code{font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#354967}
.version-details p{margin:3px 0 0;padding:9px 11px;border-radius:10px;background:#f5f7fb;color:#263b5d;font-size:.88rem;white-space:pre-wrap}
.version-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.version-actions button,.version-actions a{min-height:36px;border:1px solid #cfdcf0;border-radius:10px;background:#fff;color:#1749bf;padding:8px 10px;text-decoration:none;font-weight:700;cursor:pointer}
.version-actions .restore-version{background:#ecf8f0;color:#11723d;border-color:#bde7cc}
.version-actions .danger{color:#ba2535;border-color:#f2bdc3;background:#fff7f8}
.versions-empty{padding:40px;text-align:center;color:#65748b}
.replace-body{padding:24px;display:flex;flex-direction:column;gap:18px}
.replace-body label{display:flex;flex-direction:column;gap:8px;font-weight:750;color:#10294f}
.replace-body input[type=file],.replace-body textarea{border:1px solid #cbd9ee;border-radius:13px;padding:13px;background:#fff;font:inherit;color:#172a49}
.replace-body textarea{resize:vertical;min-height:105px}
.replace-drop-field{padding:18px;border:1px dashed #79a8f4;border-radius:16px;background:#f5f9ff}
.replace-body small{font-weight:400;color:#687994}
.row-actions .versions-action,.row-actions .replace-action{color:#1749bf}
.slug-row-form{display:grid!important;grid-template-columns:minmax(95px,.7fr) minmax(120px,.9fr) minmax(230px,1.5fr) auto!important;align-items:end!important;gap:9px!important;min-width:620px}
.slug-row-form label{display:flex;flex-direction:column;gap:4px;min-width:0}
.slug-row-form label>span:first-child{font-size:.72rem;color:#5e6f88;font-weight:750;text-transform:uppercase;letter-spacing:.025em}
.slug-row-form label small{font-size:.7rem;color:#687994;line-height:1.25}
.slug-input-wrap{display:flex!important;align-items:center;border:1px solid #cad8ed;border-radius:10px;background:#fff;overflow:hidden}
.slug-input-wrap b{padding:0 0 0 10px;color:#526784;font-size:1rem}
.slug-input-wrap input{border:0!important;border-radius:0!important;min-width:0;width:100%;padding-left:4px!important}
.versioned-users th:nth-child(5){min-width:650px}

@media(max-width:900px){
  .version-storage-summary{grid-template-columns:repeat(2,minmax(120px,1fr))}
  .versions-toolbar{align-items:stretch;flex-direction:column}
  .version-row{grid-template-columns:78px minmax(0,1fr)}
  .version-actions{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:600px){
  .versions-modal,.replace-modal{width:100vw;max-height:100vh;height:100vh;border-radius:0}
  .version-storage-summary{grid-template-columns:1fr 1fr}
  .version-row{grid-template-columns:1fr}
  .version-number{flex-direction:row;align-items:center}
  .versions-list{padding:12px}
  .versions-toolbar{padding:14px}
}


/* ProfDrive IF v0.5.0-alpha.4 — portal público pedagógico ampliado */
.quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
.row-actions .public-presentation-action{color:#7c3aed}
.skip-link{position:fixed;left:12px;top:-80px;z-index:9999;padding:10px 15px;border-radius:8px;background:#fff;color:#12315d;font-weight:800;box-shadow:0 8px 28px rgba(15,47,96,.25)}
.skip-link:focus{top:12px}
.expanded-profile-hero{align-items:flex-start}
.expanded-profile-hero .profile-summary h2{margin:4px 0 10px;color:#dbeafe;font-size:clamp(1rem,2vw,1.35rem);font-weight:700}
.profile-bio{max-width:920px;white-space:normal;line-height:1.65!important}
.profile-contact{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0 2px;padding:11px 14px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.08);color:#eaf2ff;font-size:.9rem;line-height:1.5}
.profile-contact a{color:#fff;font-weight:750}
.public-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.public-stat-grid>div{padding:17px;border:1px solid #dbe5f2;border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(15,47,96,.05);display:flex;flex-direction:column;gap:3px}
.public-stat-grid strong{font-size:1.3rem;color:#0f2f60}.public-stat-grid span{font-size:.78rem;color:#687994}
.public-discovery{margin-bottom:18px;padding:16px;border:1px solid #dbe5f2;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(15,47,96,.05)}
.public-search-form{display:grid;grid-template-columns:minmax(280px,1.6fr) repeat(3,minmax(150px,.65fr)) auto auto;gap:10px;align-items:end}
.public-search-form label{display:flex;flex-direction:column;gap:5px;color:#50617a;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.public-search-form input,.public-search-form select{min-height:43px;border:1px solid #cad8eb;border-radius:11px;background:#fff;padding:9px 11px;color:#172a49;font:inherit;text-transform:none;letter-spacing:0}
.public-search-input{position:relative}.public-search-input>span{position:absolute;left:13px;bottom:11px;font-size:18px;color:#6b7d98}.public-search-input input{padding-left:40px}
.public-search-submit,.public-clear-search{min-height:43px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;padding:9px 15px;font-weight:800;text-decoration:none;cursor:pointer}
.public-search-submit{border:1px solid #2459de;background:#2459de;color:#fff}.public-clear-search{border:1px solid #cad8eb;background:#fff;color:#42536d}
.public-category-chips{display:flex;gap:8px;overflow-x:auto;padding-top:13px;margin-top:13px;border-top:1px solid #e6edf6;scrollbar-width:thin}
.public-category-chips a{flex:none;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 10px;border:1px solid #d5e1f1;border-radius:999px;background:#fff;color:#334967;text-decoration:none;font-size:.78rem;font-weight:750}
.public-category-chips a.active,.public-category-chips a:hover{border-color:#7aa8f5;background:#edf5ff;color:#1647bd}.public-category-chips span{display:grid;place-items:center;min-width:20px;height:20px;border-radius:999px;background:#e8eef7;font-size:.67rem}
.public-featured{margin:18px 0;padding:20px;border:1px solid #cfe0f7;border-radius:20px;background:linear-gradient(135deg,#f7fbff,#eef6ff)}
.public-featured>header{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:14px}.public-featured h2{margin:3px 0 0;color:#0f2f60}.public-featured>header>span{color:#61738d;font-size:.8rem}
.public-featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.public-featured-grid .public-item{min-height:190px;border-color:#bfd5f4;background:#fff}
.public-item-kicker{display:block;margin-bottom:5px;color:#2459de;font-size:.66rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em}
.public-item-copy p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:6px 0;color:#53657e;font-size:.82rem;line-height:1.48}
.public-path-label{display:block;margin-top:5px;color:#7a8ba3!important;font-size:.7rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.public-tag-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.public-tag-row em{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 7px;border-radius:999px;background:#edf3fb;color:#49607f;font-size:.63rem;font-style:normal}
.public-list-mode .public-item{align-items:flex-start}.public-list-mode .public-item-icon{margin-top:2px}.public-grid-mode .public-item{min-height:230px}.public-grid-mode .public-item-copy p{-webkit-line-clamp:4}.public-grid-mode .public-path-label{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

.portal-settings-page{min-height:100vh;background:#f2f6fb;color:#10213f}.portal-settings-container{width:min(1500px,calc(100% - 34px));margin:0 auto;padding:34px 0 64px}.portal-settings-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.portal-settings-title h1{margin:4px 0 7px;font-size:clamp(2rem,4vw,3.1rem);color:#0c2347}.portal-settings-title>div>p:last-child{margin:0;color:#63748d}
.portal-settings-card{margin-bottom:20px;border:1px solid #dbe4f0;border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(15,47,96,.06);overflow:hidden}.portal-settings-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 25px;border-bottom:1px solid #e6edf5}.portal-settings-card h2{margin:0;color:#10294f}.portal-settings-card header p{margin:5px 0 0;color:#687994}
.portal-profile-form,.portal-item-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;padding:24px}.portal-profile-form label,.portal-item-form label{display:flex;flex-direction:column;gap:7px;color:#173258;font-weight:750}.portal-profile-form input[type=text],.portal-profile-form textarea,.portal-profile-form select,.portal-item-form input[type=text],.portal-item-form textarea{width:100%;border:1px solid #c9d7e9;border-radius:12px;padding:12px 13px;background:#fff;color:#172a49;font:inherit}.portal-profile-form textarea,.portal-item-form textarea{resize:vertical}.portal-profile-form small,.portal-item-form small{color:#73839a;font-weight:400}.portal-field-wide{grid-column:1/-1}.portal-checks{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:11px 24px!important;padding:14px;border:1px solid #dbe5f2;border-radius:13px;background:#f8fbff}.portal-checks label,.portal-feature-check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important}.portal-checks input,.portal-feature-check input{width:18px;height:18px}.portal-form-actions{display:flex;justify-content:flex-end}.portal-form-actions .primary-button{min-height:44px;padding:10px 18px}
.portal-materials-head{align-items:center!important}.portal-item-search{display:flex;gap:7px;align-items:center}.portal-item-search input{min-height:39px;width:min(320px,30vw);border:1px solid #c9d7e9;border-radius:10px;padding:8px 11px}.portal-item-search button,.portal-item-search a{min-height:39px;display:inline-flex;align-items:center;border:1px solid #c9d7e9;border-radius:10px;padding:7px 11px;background:#fff;color:#24466f;text-decoration:none;font-weight:750;cursor:pointer}.portal-item-search button{background:#2459de;color:#fff;border-color:#2459de}
.portal-items-table{padding:0 24px 24px}.portal-items-row{display:grid;grid-template-columns:minmax(280px,1.45fr) 150px minmax(230px,.9fr) auto;gap:14px;align-items:center;min-height:72px;padding:11px 10px;border-bottom:1px solid #e8eef5}.portal-items-header{min-height:44px;color:#65758d;font-size:.72rem;font-weight:850;text-transform:uppercase}.portal-item-name{display:flex;align-items:center;gap:12px;min-width:0}.portal-item-name>div,.portal-presentation-summary{min-width:0;display:flex;flex-direction:column;gap:3px}.portal-item-name strong,.portal-presentation-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#122949}.portal-item-name small,.portal-presentation-summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#74849a}.portal-item-icon{width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:11px;background:#eef4fc;color:#2459de;font-size:.7rem;font-weight:850}.portal-status{justify-self:start;padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:800}.portal-status.public{background:#dcfce7;color:#166534}.portal-status.private{background:#eef2f7;color:#475569}.portal-items-empty{padding:40px;text-align:center;color:#6c7c93}.portal-selected-editor{scroll-margin-top:18px}.portal-admin-header{position:sticky;top:0;z-index:20}

@media(max-width:1180px){.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.public-search-form{grid-template-columns:1fr 1fr 1fr}.public-search-input{grid-column:1/-1}.public-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-items-row{grid-template-columns:minmax(230px,1.3fr) 125px minmax(190px,.9fr) auto}}
@media(max-width:820px){.public-stat-grid{grid-template-columns:1fr 1fr}.public-search-form{grid-template-columns:1fr 1fr}.public-search-input{grid-column:1/-1}.public-featured-grid{grid-template-columns:1fr}.portal-settings-title,.portal-settings-card>header{align-items:stretch;flex-direction:column}.portal-profile-form,.portal-item-form{grid-template-columns:1fr}.portal-field-wide{grid-column:auto}.portal-items-row{grid-template-columns:1fr auto}.portal-items-header{display:none}.portal-items-row>.portal-status,.portal-items-row>.portal-presentation-summary{grid-column:1}.portal-items-row>.secondary-button{grid-column:2;grid-row:1/4}.portal-materials-head{align-items:stretch!important}.portal-item-search{flex-wrap:wrap}.portal-item-search input{width:100%}}
@media(max-width:520px){.public-stat-grid{grid-template-columns:1fr 1fr;gap:8px}.public-stat-grid>div{padding:12px}.public-search-form{grid-template-columns:1fr}.public-search-input{grid-column:auto}.public-discovery{padding:12px}.public-featured{padding:13px}.profile-contact{flex-direction:column}.portal-settings-container{width:min(100% - 18px,1500px);padding-top:18px}.portal-profile-form,.portal-item-form{padding:16px}.portal-settings-card>header{padding:17px}.portal-items-table{padding:0 12px 16px}.portal-items-row{padding:12px 2px}.portal-item-search button,.portal-item-search a{flex:1}.quick-actions{grid-template-columns:1fr}}

/* v0.6.0-alpha.1 — quarentena, antivírus opcional e hardening */
.security-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.security-kpi{min-height:126px;padding:18px;border:1px solid #dbe5f2;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(15,47,96,.055);display:flex;flex-direction:column;gap:6px}.security-kpi>span{color:#64748b;font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.security-kpi>strong{color:#10294f;font-size:1.3rem}.security-kpi>small{color:#6b7c93;line-height:1.45;overflow-wrap:anywhere}.security-kpi.security-ok{border-color:#bbf7d0;background:#f7fff9}.security-kpi.security-warn{border-color:#fde68a;background:#fffdf4}.security-advisory{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px;padding:14px 16px;border-radius:14px;border:1px solid}.security-advisory strong{flex:none}.security-advisory span{line-height:1.55}.security-advisory.warning{border-color:#fcd34d;background:#fffbeb;color:#854d0e}.security-advisory.success{border-color:#86efac;background:#f0fdf4;color:#166534}.security-checks{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.security-checks label{min-height:48px;align-items:flex-start!important;line-height:1.35}.security-details-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:18px;padding-top:17px;border-top:1px solid #e6edf6}.security-details-grid>div{padding:11px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc;display:flex;flex-direction:column;gap:5px}.security-details-grid span{color:#64748b;font-size:.68rem;font-weight:800;text-transform:uppercase}.security-details-grid strong{color:#1e293b;font-size:.8rem}.small-wrap{overflow-wrap:anywhere}.security-summary-row{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 14px}.security-summary-row span{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #dbe5f2;border-radius:999px;background:#f8fafc;color:#52627a;font-size:.76rem}.security-summary-row strong{color:#0f2f60}.quarantine-table td{vertical-align:top}.quarantine-table td small{display:block;margin-top:4px;color:#718096;line-height:1.4}.security-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:.68rem;font-weight:850;text-transform:uppercase}.security-status.status-pending{background:#fef3c7;color:#92400e}.security-status.status-infected{background:#fee2e2;color:#991b1b}.security-status.status-error{background:#ffedd5;color:#9a3412}.security-status.status-clean{background:#dcfce7;color:#166534}.security-status.status-deleted{background:#e2e8f0;color:#475569}.table-actions{display:flex;flex-wrap:wrap;gap:6px}.small-button{min-height:34px;padding:6px 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;font-weight:750;cursor:pointer}.small-button:hover{background:#f8fafc}.small-button.danger{border-color:#fecaca;color:#b91c1c}.security-scan-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.security-scan-grid>div{padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;display:flex;flex-direction:column;gap:5px}.security-scan-grid span{font-size:.72rem;color:#64748b}.security-scan-grid strong{font-size:1.3rem;color:#0f2f60}.security-policy-form .form-grid{margin-top:16px}
@media(max-width:1180px){.security-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.security-details-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.security-scan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.security-kpi-grid,.security-checks,.security-details-grid,.security-scan-grid{grid-template-columns:1fr}.security-advisory{flex-direction:column}.quarantine-table{min-width:880px}}

/* Accessibility and compliance — v0.9.0-rc.1 */
:focus-visible {
  outline: 3px solid #0ea5e9 !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}
.skip-link {
  position: fixed; left: 12px; top: 8px; z-index: 10000;
  transform: translateY(-160%); background: #071a33; color: #fff;
  padding: 10px 14px; border-radius: 8px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.a11y-tools { position: fixed; right: 18px; bottom: 18px; z-index: 500; }
.a11y-launcher { border: 2px solid #1d4ed8; background: #fff; color: #0b2447; border-radius: 999px; padding: 9px 14px; font-weight: 850; box-shadow: var(--shadow-md); cursor: pointer; }
.a11y-panel { position: absolute; right: 0; bottom: 52px; width: 230px; padding: 14px; display: grid; gap: 8px; background: #fff; color: #0f172a; border: 1px solid #cbd5e1; border-radius: 14px; box-shadow: var(--shadow-lg); }
.a11y-panel strong { margin-bottom: 2px; }
.a11y-panel button, .a11y-panel a { min-height: 38px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; color: #1e293b; padding: 8px 10px; text-align: left; cursor: pointer; text-decoration: none; }
.a11y-panel button.active { background: #dbeafe; border-color: #2563eb; color: #1e40af; font-weight: 800; }
html.a11y-large-text { font-size: 118%; }
html.a11y-underline-links a { text-decoration: underline !important; text-underline-offset: .18em; }
html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.a11y-high-contrast body { background: #fff !important; color: #000 !important; }
html.a11y-high-contrast .sidebar, html.a11y-high-contrast .admin-header, html.a11y-high-contrast .profile-hero { background: #000 !important; color: #fff !important; }
html.a11y-high-contrast .items-panel, html.a11y-high-contrast .admin-card, html.a11y-high-contrast .public-files, html.a11y-high-contrast .public-discovery, html.a11y-high-contrast .compliance-card { border: 2px solid #000 !important; box-shadow: none !important; }
html.a11y-high-contrast button, html.a11y-high-contrast input, html.a11y-high-contrast select, html.a11y-high-contrast textarea, html.a11y-high-contrast a { border-color: currentColor !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .visibility-pill, .status-badge, .quota-meter, .driver-badge { border: 1px solid CanvasText; }
}
.compliance-page { min-height: 100vh; }
.compliance-container { width: min(980px, calc(100% - 32px)); margin: 44px auto 80px; display: grid; gap: 18px; }
.compliance-hero { background: linear-gradient(135deg,#0b2447,#1f5f9e); color: #fff; border-radius: 22px; padding: clamp(28px,5vw,56px); }
.compliance-hero .eyebrow { color: #bfdbfe; }
.compliance-hero h1 { margin: 0 0 12px; font-size: clamp(30px,5vw,48px); }
.compliance-hero p { max-width: 760px; line-height: 1.7; }
.compliance-card { background: #fff; border: 1px solid var(--slate-200); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.compliance-card h2 { margin-top: 0; color: var(--slate-950); }
.compliance-card h3 { color: var(--slate-800); }
.compliance-card p, .compliance-card li { line-height: 1.7; color: var(--slate-600); }
.compliance-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.compliance-grid article { border: 1px solid var(--slate-200); border-radius: 12px; padding: 15px; display: grid; gap: 6px; }
.compliance-grid article span { color: var(--slate-600); line-height: 1.55; }
.compliance-dl { display: grid; grid-template-columns: minmax(160px,.5fr) 1fr; gap: 8px 18px; }
.compliance-dl dt { font-weight: 800; }
.compliance-dl dd { margin: 0; }
.compliance-note { padding: 12px 14px; border-left: 4px solid #d97706; background: #fffbeb; border-radius: 8px; }
.quality-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.quality-kpis article { background:#fff; border:1px solid var(--slate-200); border-radius:14px; padding:16px; }
.quality-kpis strong { display:block; font-size:24px; color:var(--slate-950); }
.quality-kpis span { color:var(--slate-500); font-size:12px; }
.pilot-check-list { display:grid; gap:10px; }
.pilot-check { display:grid; grid-template-columns:minmax(220px,1fr) 150px minmax(240px,1fr) auto; gap:10px; align-items:end; padding:12px; border:1px solid var(--slate-200); border-radius:12px; }
.pilot-check label span { display:block; color:var(--slate-500); font-size:11px; margin-bottom:4px; }
.pilot-status-pass { color:#166534; }
.pilot-status-warn { color:#92400e; }
.pilot-status-fail { color:#991b1b; }
.pilot-status-pending { color:#475569; }
@media (max-width: 760px) {
  .compliance-grid, .quality-kpis { grid-template-columns: 1fr; }
  .compliance-dl { grid-template-columns:1fr; }
  .pilot-check { grid-template-columns:1fr; }
  .a11y-tools { right:10px; bottom:10px; }
}

/* ProfDrive IF 1.0.0 — compartilhamento seguro e paginação */
.load-more-wrap{display:flex;align-items:center;justify-content:center;gap:12px;padding:18px 12px 22px;border-top:1px solid #e5e7eb}.load-more-wrap small{color:#667085}.load-more-wrap.hidden{display:none}
.share-backdrop{z-index:1200}.share-modal-panel{width:min(760px,calc(100vw - 28px));max-height:min(820px,calc(100vh - 28px));overflow:auto;background:#fff;border-radius:20px;box-shadow:0 30px 90px rgba(15,47,96,.26)}.share-manager-body{padding:22px}.share-create-form{padding:18px;border:1px solid #d9e2ef;border-radius:16px;background:#f8fbff}.share-create-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.share-create-form .span-2{grid-column:1/-1}.share-create-form label{display:flex;flex-direction:column;gap:6px;font-weight:700}.share-create-form input{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;font:inherit}.share-create-form small{font-weight:400;color:#667085}.share-created{margin-top:18px;padding:16px;border:1px solid #a7f3d0;border-radius:14px;background:#ecfdf5}.share-created.hidden{display:none}.share-link-row{display:flex;gap:8px;margin-top:10px}.share-link-row input{flex:1;min-width:0;border:1px solid #94a3b8;border-radius:10px;padding:10px 12px;font:inherit}.share-active-section{margin-top:22px}.share-active-section h3{margin:0 0 10px}.share-list{display:grid;gap:9px}.share-list-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid #dce5ef;border-radius:12px}.share-list-row.inactive{opacity:.62;background:#f8fafc}.share-list-row>div{display:flex;flex-direction:column;gap:3px;min-width:0}.share-list-row small,.share-list-empty{color:#667085}.share-page{min-height:100vh;background:#f3f7fb;color:#10233e}.share-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px clamp(18px,4vw,56px);background:#fff;border-bottom:1px solid #dce5ef}.share-header>a img{height:42px;width:auto}.share-brand{display:flex;align-items:center;gap:10px}.share-brand img{width:40px;height:40px}.share-brand div{display:flex;flex-direction:column}.share-brand span{font-size:.82rem;color:#667085}.share-shell{min-height:calc(100vh - 160px);display:grid;place-items:center;padding:40px 18px}.share-card{width:min(620px,100%);background:#fff;border:1px solid #dce5ef;border-radius:22px;box-shadow:0 22px 60px rgba(15,47,96,.12);padding:34px;text-align:center}.share-card h1{overflow-wrap:anywhere}.share-file-icon{font-size:3rem;margin-bottom:10px}.share-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0;text-align:left}.share-meta>div{padding:12px;border-radius:12px;background:#f7f9fc}.share-meta dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#667085}.share-meta dd{margin:4px 0 0;font-weight:700}.share-download{display:inline-flex;justify-content:center;min-width:220px}.share-security-note{margin-top:18px;font-size:.86rem;color:#667085}.share-password-form{display:grid;gap:14px;margin-top:22px;text-align:left}.share-password-form label{display:grid;gap:6px;font-weight:700}.share-password-form input{border:1px solid #cbd5e1;border-radius:10px;padding:12px;font:inherit}.share-error{margin:16px 0;padding:12px 14px;border-radius:12px;background:#fff1f2;color:#9f1239;border:1px solid #fecdd3}.share-unavailable small{color:#667085}
@media(max-width:640px){.share-create-form .form-grid,.share-meta{grid-template-columns:1fr}.share-create-form .span-2{grid-column:auto}.share-link-row,.share-list-row{align-items:stretch;flex-direction:column}.share-header{align-items:flex-start}.share-header>a img{height:34px}.share-card{padding:24px}}

/* ProfDrive IF 1.1.0 — colaboração, File Drop, duplicados e explorer avançado */
.nav-link-item { text-decoration:none; }
.explorer-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  width:100%; min-height:46px; padding:5px 0 10px;
}
.explorer-toolbar .folder-navigation { display:flex; align-items:center; gap:10px; min-width:0; flex:1; }
.explorer-toolbar .breadcrumbs { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.explorer-toolbar-actions { display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.compact-button { min-height:38px; padding:8px 12px; border-radius:10px; white-space:nowrap; }
.list-master-check { width:26px; height:26px; display:grid; place-items:center; flex:0 0 auto; }
.list-master-check input { width:18px; height:18px; cursor:pointer; accent-color:var(--blue-600); }

.move-modal-panel {
  width:min(720px,calc(100vw - 28px)); max-height:min(780px,calc(100vh - 28px)); overflow:hidden;
  background:#fff; border-radius:20px; box-shadow:0 30px 90px rgba(15,47,96,.26); display:flex; flex-direction:column;
}
.move-modal-body { padding:18px 22px; min-height:240px; overflow:auto; }
.move-search { margin-bottom:14px; }
.move-search input { width:100%; }
.move-destination-list { display:grid; gap:8px; }
.move-destination {
  width:100%; display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:10px;
  border:1px solid var(--slate-200); border-radius:12px; background:#fff; color:var(--slate-800);
  padding:10px 12px; text-align:left; cursor:pointer;
}
.move-destination:hover,.move-destination:focus-visible { border-color:#60a5fa; background:#eff6ff; }
.move-destination .dest-icon { font-size:1.3rem; }
.move-destination .dest-copy { min-width:0; }
.move-destination .dest-copy strong,.move-destination .dest-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.move-destination .dest-copy small { margin-top:2px; color:var(--slate-500); font-weight:500; }
.move-destination .dest-action { color:var(--blue-700); font-weight:800; }
.move-destination-empty { padding:28px 14px; color:var(--slate-500); text-align:center; }

/* Páginas de colaboração */
.collab-page,.public-drop-page { min-height:100vh; background:#f3f7fb; color:var(--slate-800); overflow-y:auto; overflow-x:hidden; }
body.app-page.collab-page { overflow-y:auto; overflow-x:hidden; }
.collab-top {
  min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:14px clamp(18px,4vw,54px); background:var(--navy-900); color:#fff;
}
.collab-brand { display:flex; align-items:center; gap:12px; text-decoration:none; font-weight:850; }
.collab-brand img { width:46px; height:46px; border-radius:11px; }
.collab-top nav { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.collab-top nav a { text-decoration:none; padding:9px 12px; border-radius:9px; }
.collab-top nav a:hover { background:rgba(255,255,255,.1); }
.collab-main { width:min(1220px,calc(100% - 30px)); margin:34px auto 70px; display:grid; gap:18px; }
.collab-hero {
  padding:clamp(24px,4vw,40px); border-radius:22px;
  background:linear-gradient(135deg,#0b2447,#1f5f9e); color:#fff; box-shadow:var(--shadow-md);
}
.collab-hero .eyebrow { color:#bfdbfe; }
.collab-hero h1 { margin:5px 0 8px; font-size:clamp(28px,4vw,44px); }
.collab-hero p { margin:0; max-width:850px; line-height:1.65; color:#e6f0ff; }
.collab-grid { display:grid; gap:18px; }
.collab-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.collab-card { background:#fff; border:1px solid var(--slate-200); border-radius:18px; padding:22px; box-shadow:var(--shadow-sm); min-width:0; }
.collab-card.accent-card { border-color:#bfdbfe; background:linear-gradient(180deg,#fff,#f8fbff); }
.collab-card h2,.collab-card h3 { margin-top:0; color:var(--slate-950); }
.card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:12px; }
.stack-form { display:grid; gap:14px; }
.stack-form label,.form-grid label { display:grid; gap:6px; color:var(--slate-700); font-weight:750; }
.stack-form input,.stack-form select,.stack-form textarea,.form-grid input,.form-grid select,.form-grid textarea {
  width:100%; border:1px solid var(--slate-300); border-radius:10px; padding:10px 12px; color:var(--slate-800); background:#fff;
}
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid .span-2 { grid-column:1/-1; }
.check-row { display:flex !important; grid-auto-flow:column; justify-content:start; align-items:center; gap:8px !important; }
.check-row input { width:18px !important; height:18px; }
.inline-alert { padding:12px 14px; border-radius:10px; border:1px solid transparent; margin:0 0 14px; }
.inline-alert.success { background:#ecfdf5; border-color:#a7f3d0; color:#166534; }
.inline-alert.error { background:#fff1f2; border-color:#fecdd3; color:#9f1239; }
.feature-list { margin:0; padding-left:20px; color:var(--slate-600); line-height:1.7; }
.admin-note { color:var(--slate-500); line-height:1.6; }
.copy-line { display:flex; gap:8px; align-items:center; }
.copy-line input { flex:1; min-width:0; }
.status-chip { display:inline-flex; align-items:center; justify-content:center; min-height:28px; padding:4px 9px; border-radius:999px; background:#e2e8f0; color:#475569; font-size:.78rem; font-weight:850; white-space:nowrap; }
.status-chip.ok { background:#dcfce7; color:#166534; }
.status-chip.muted { background:#f1f5f9; color:#64748b; }
.responsive-table { overflow:auto; border:1px solid var(--slate-200); border-radius:13px; }
.responsive-table table { width:100%; min-width:760px; border-collapse:collapse; }
.responsive-table th,.responsive-table td { padding:11px 12px; border-bottom:1px solid var(--slate-200); text-align:left; vertical-align:top; }
.responsive-table th { background:#f8fafc; color:var(--slate-600); font-size:.76rem; text-transform:uppercase; letter-spacing:.03em; }
.responsive-table tr:last-child td { border-bottom:0; }
.inline-form { display:inline-flex; gap:8px; align-items:center; flex-wrap:wrap; }
.shared-toolbar,.shared-contribute { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:12px 0; }
.shared-explorer .breadcrumbs { margin:4px 0 16px; }
.duplicate-summary,.stats-strip { display:flex; gap:12px; flex-wrap:wrap; margin:10px 0 18px; }
.duplicate-summary>div,.stats-strip>div { padding:12px 14px; border:1px solid var(--slate-200); border-radius:12px; background:#f8fafc; min-width:130px; }
.duplicate-summary strong,.stats-strip strong { display:block; font-size:1.15rem; color:var(--navy-900); }
.duplicate-group { border:1px solid var(--slate-200); border-radius:14px; overflow:hidden; margin-top:12px; }
.duplicate-group>header { display:flex; justify-content:space-between; gap:12px; padding:12px 14px; background:#f8fafc; }
.duplicate-group ul { list-style:none; margin:0; padding:0; }
.duplicate-group li { display:flex; justify-content:space-between; gap:14px; padding:11px 14px; border-top:1px solid var(--slate-200); }
.empty-state-inline { padding:28px 16px; text-align:center; color:var(--slate-500); }

/* File Drop público: sem qualquer listagem da pasta de destino. */
.drop-public-shell { min-height:100vh; display:grid; place-items:center; padding:28px 16px; background:linear-gradient(145deg,#eaf3ff,#f8fbff 55%,#eef6ff); }
.drop-public-card { width:min(720px,100%); background:#fff; border:1px solid #d7e2ef; border-radius:24px; box-shadow:var(--shadow-lg); padding:clamp(24px,5vw,46px); }
.drop-public-brand { display:flex; align-items:center; gap:12px; margin-bottom:26px; }
.drop-public-brand img { width:50px; height:50px; }
.drop-owner { display:flex; align-items:center; gap:11px; margin:16px 0; padding:12px; border-radius:12px; background:#f8fafc; }
.drop-owner img { width:44px; height:44px; border-radius:50%; object-fit:cover; }
.drop-instructions { white-space:pre-line; color:var(--slate-600); line-height:1.6; }
.drop-file-field { padding:20px; border:2px dashed #93c5fd; border-radius:14px; background:#eff6ff; }
.drop-file-field input[type=file] { width:100%; }
.drop-errors { margin:10px 0; padding-left:20px; color:#991b1b; }
.privacy-note,.drop-public-footer { color:var(--slate-500); font-size:.85rem; line-height:1.55; }
.drop-public-footer { margin-top:22px; text-align:center; }

@media(max-width:900px){
  .collab-grid.two,.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}
  .explorer-toolbar{align-items:flex-start;flex-direction:column}.explorer-toolbar-actions{width:100%;justify-content:space-between}
}
@media(max-width:620px){
  .collab-top{align-items:flex-start;flex-direction:column}.collab-main{width:min(100% - 20px,1220px);margin-top:18px}
  .copy-line,.shared-toolbar,.shared-contribute{align-items:stretch;flex-direction:column}
  .move-destination{grid-template-columns:34px minmax(0,1fr)}.move-destination .dest-action{display:none}
  .compact-button{font-size:.86rem}.explorer-toolbar .folder-navigation{align-items:flex-start;flex-direction:column}
}
.move-empty{padding:26px 14px;text-align:center;color:var(--slate-500)}
.master-select-checkbox{width:18px;height:18px;accent-color:var(--blue-600);cursor:pointer;margin-right:10px;vertical-align:middle}

/* ProfDrive IF 1.1.1 — correções de navegação, seleção e portal público */

/* ProfDrive IF 1.2.0 — File Drop unitário, evidências técnicas e integridade acadêmica */
.drop-integrity-notice {
  margin:14px 0 18px; padding:13px 14px; border:1px solid #bfdbfe; border-left:4px solid #2563eb;
  border-radius:12px; background:#eff6ff; color:#334155; font-size:.86rem; line-height:1.55;
}
.drop-progress-summary { display:grid; gap:8px; margin:4px 0 2px; color:#0f2f60; }
.drop-progress-track,.drop-item-track { height:7px; overflow:hidden; border-radius:999px; background:#dbeafe; }
.drop-progress-track span,.drop-item-track span { display:block; height:100%; width:0; border-radius:inherit; background:#2563eb; transition:width .18s ease; }
.drop-zone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; cursor:pointer; transition:border-color .15s ease,background .15s ease,transform .15s ease; }
.drop-zone:hover,.drop-zone:focus-visible,.drop-zone.dragover { border-color:#2563eb; background:#dbeafe; outline:none; }
.drop-zone.dragover { transform:translateY(-1px); }
.drop-zone.complete { border-color:#86efac; background:#f0fdf4; cursor:default; }
.drop-zone-icon { font-size:1.65rem; line-height:1; }
.drop-live-message { min-height:24px; padding:0 2px; font-size:.9rem; font-weight:700; }
.drop-live-message.success { color:#166534; }
.drop-live-message.error { color:#b91c1c; }
.drop-upload-list { list-style:none; display:grid; gap:10px; margin:2px 0 0; padding:0; }
.drop-upload-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 14px; align-items:center; padding:12px 13px; border:1px solid #dbe4ef; border-radius:12px; background:#fff; }
.drop-upload-item .drop-item-track { grid-column:1/-1; }
.drop-upload-item.sent { border-color:#86efac; background:#f0fdf4; }
.drop-upload-item.sent .drop-upload-status { color:#15803d; font-weight:850; }
.drop-upload-item.sent .drop-item-track span { background:#22c55e; }
.drop-upload-item.failed { border-color:#fecaca; background:#fff1f2; }
.drop-upload-item.failed .drop-upload-status { color:#b91c1c; font-weight:850; }
.drop-upload-item.failed .drop-item-track span { background:#ef4444; }
.drop-upload-name { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-weight:750; color:#0f172a; }
.drop-upload-status { white-space:nowrap; color:#475569; font-size:.86rem; }
.integrity-badge { display:inline-flex; align-items:center; gap:5px; min-height:25px; padding:3px 8px; border-radius:999px; font-size:.74rem; font-weight:850; }
.integrity-badge.high { background:#fee2e2; color:#991b1b; }
.integrity-badge.medium { background:#fef3c7; color:#92400e; }
.integrity-badge.low { background:#e0f2fe; color:#075985; }
.integrity-badge.clone { background:#fce7f3; color:#9d174d; }
.integrity-evidence { margin-top:8px; padding:10px 12px; border-radius:10px; background:#f8fafc; color:#475569; font-size:.82rem; line-height:1.55; }
.integrity-evidence code { overflow-wrap:anywhere; }
.drop-files-detail { margin-top:10px; }
.drop-files-detail summary { cursor:pointer; font-weight:800; color:#1e40af; }
.drop-files-detail ul { list-style:none; padding:8px 0 0; margin:0; display:grid; gap:7px; }
.drop-files-detail li { padding:8px 10px; border:1px solid #e2e8f0; border-radius:9px; background:#fff; }
@media(max-width:620px){
  .drop-upload-item{grid-template-columns:1fr}.drop-upload-status{white-space:normal}.drop-upload-item .drop-item-track{grid-column:1}
}


/* ProfDrive IF 1.2.1 — revisão, finalização parcial e comprovantes do File Drop */
.drop-public-brand{align-items:flex-start}.drop-public-brand-copy{display:flex;flex-direction:column;gap:2px;line-height:1.15}.drop-public-brand-copy strong{font-size:1rem}.drop-public-brand-copy span{font-size:.82rem;color:#64748b;font-weight:500}
.drop-upload-main{min-width:0;display:grid;gap:2px}.drop-upload-meta{color:#64748b}.drop-upload-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.drop-delete-button{border:1px solid #fecaca;background:#fff;color:#b91c1c;border-radius:9px;padding:7px 10px;font:inherit;font-weight:750;cursor:pointer}.drop-delete-button:hover,.drop-delete-button:focus-visible{background:#fff1f2;border-color:#f87171}
.drop-finalize-panel{display:grid;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid #e2e8f0}.drop-partial-ack{display:flex;align-items:flex-start;gap:9px;padding:12px 13px;border:1px solid #fbbf24;border-radius:12px;background:#fffbeb;color:#78350f;font-weight:700;line-height:1.45}.drop-partial-ack input{width:18px;height:18px;margin-top:1px;flex:0 0 auto}.drop-partial-ack.hidden{display:none}.drop-finalize-button{width:100%;justify-content:center}.drop-finalize-panel small{color:#64748b;line-height:1.5}
.drop-public-stack{width:min(720px,100%)}.drop-success-card{text-align:left}.drop-success-card h1{text-align:center}.drop-success-icon{width:64px;height:64px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#15803d;font-size:2rem;font-weight:900}.drop-receipt-files{list-style:none;margin:18px 0;padding:0;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.drop-receipt-files li{display:flex;justify-content:space-between;gap:14px;padding:10px 12px;border-bottom:1px solid #e2e8f0}.drop-receipt-files li:last-child{border-bottom:0}.drop-receipt-files span{overflow-wrap:anywhere}.drop-receipt-files small{white-space:nowrap;color:#64748b}.drop-receipt-button{display:flex;justify-content:center;width:100%;text-decoration:none}.receipt-admin-button{display:inline-flex;margin-top:7px;font-size:.78rem;padding:6px 9px}
@media(max-width:560px){.drop-upload-item{grid-template-columns:1fr}.drop-upload-actions{justify-content:space-between}.drop-receipt-files li{flex-direction:column;gap:4px}}

/* ProfDrive IF 1.3.0 — governança docente, File Drop e histórico */
.primary-button:hover,.primary-button:focus-visible,.primary-link-button:hover,.primary-link-button:focus-visible,.new-button:hover,.new-button:focus-visible{background:#173fb2!important;color:#fff!important;border-color:#173fb2!important;opacity:1!important}
.secondary-button:hover,.secondary-button:focus-visible,.row-report-actions a:hover,.row-report-actions a:focus-visible{background:#eef4ff!important;color:#153f9e!important;border-color:#86aefc!important;opacity:1!important}
.demo-session-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 20px;padding:14px 18px;border:1px solid #c8a100;background:#fff8cf;border-radius:14px;color:#4b3b00}.demo-session-banner div{display:flex;flex-direction:column;gap:3px}.demo-session-banner button{border:1px solid #775f00;background:#fff;color:#4b3b00;border-radius:10px;padding:9px 13px;font-weight:800;cursor:pointer}.demo-badge,.master-badge{display:inline-flex;margin-left:7px;padding:3px 7px;border-radius:999px;font-size:11px;font-weight:900;vertical-align:middle}.demo-badge{background:#ede9fe;color:#5b21b6}.master-badge{background:#dbeafe;color:#1d4ed8}
.teacher-access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.teacher-access-option{display:flex;gap:11px;align-items:flex-start;border:1px solid #dbe3ef;border-radius:12px;padding:13px;background:#fff}.teacher-access-option input{margin-top:4px}.teacher-access-option span{display:flex;flex-direction:column;gap:3px}.teacher-access-option small{color:#61708a}.teacher-access-option.mandatory{background:#f4f7fb}
.drop-folder-picker{display:flex;flex-direction:column;gap:8px}.drop-folder-selected{border:1px solid #bdd1f4;background:#f4f8ff;border-radius:10px;padding:11px 13px;font-weight:800;color:#183d75}.drop-folder-picker-list{max-height:250px;overflow:auto;border:1px solid #d7e0ec;border-radius:12px;background:#fff;padding:6px}.drop-folder-option{display:flex;width:100%;text-align:left;flex-direction:column;gap:2px;border:0;background:#fff;border-radius:8px;padding:10px 12px;color:#10284c;cursor:pointer}.drop-folder-option:hover,.drop-folder-option:focus-visible{background:#eef5ff;color:#133f9d}.drop-folder-option.selected{background:#e8f1ff;box-shadow:inset 3px 0 #2563eb}.drop-folder-option small{color:#6c7a92;white-space:normal}.drop-folder-option[hidden]{display:none!important}
.drop-history-card{min-width:0}.drop-history-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(170px,1fr) auto;gap:10px;align-items:end;margin:12px 0 16px}.drop-history-filters label{display:flex;flex-direction:column;gap:5px;font-weight:800}.drop-history-filters input,.drop-history-filters select{min-height:44px;border:1px solid #ccd7e8;border-radius:10px;padding:8px 11px;background:#fff}.drop-history-scroll{max-height:650px;overflow:auto;border:1px solid #e0e6ef;border-radius:12px}.drop-history-scroll .responsive-table{overflow:visible}.drop-history-table{min-width:1380px}.drop-history-table thead th{position:sticky;top:0;z-index:2;background:#f5f7fb}.drop-history-description{display:block;max-width:270px;margin:5px 0;color:#566680;line-height:1.35}.drop-history-actions{display:flex;flex-direction:column;gap:7px;min-width:150px}.short-link-cell{display:flex;gap:6px;align-items:center;min-width:260px}.short-link-cell input{width:190px;border:1px solid #d7e0ec;border-radius:8px;padding:7px 8px;background:#fafcff;font-size:12px}
@media(max-width:900px){.teacher-access-grid{grid-template-columns:1fr}.drop-history-filters{grid-template-columns:1fr 1fr}.demo-session-banner{align-items:flex-start;flex-direction:column}}


/* ProfDrive IF 1.3.1 — ZIP opaco, nomes extensos e login responsivo */
.name-width-control{display:inline-grid;grid-template-columns:auto minmax(105px,160px) auto;align-items:center;gap:7px;padding:5px 9px;border:1px solid var(--slate-200);border-radius:10px;background:#fff;color:var(--slate-600);font-size:10px;font-weight:800;white-space:nowrap}
.name-width-control input[type=range]{width:100%;accent-color:var(--blue-600);cursor:ew-resize}
.name-width-control output{min-width:46px;text-align:right;color:var(--blue-700);font-variant-numeric:tabular-nums}
.item-link,.grid-card strong{cursor:default}
@media(max-width:1180px){.name-width-control{display:none}.list-header,.list-row{min-width:0}}
@media(min-width:821px) and (max-height:800px){
  .auth-shell{height:calc(100svh - 20px);min-height:0;border-radius:22px}
  .auth-visual{padding:24px 34px}
  .institution-logo{max-height:64px;width:min(260px,72%)}
  .auth-brand{margin-top:18px}.auth-brand>img{width:56px;height:56px}.auth-brand h1{font-size:34px}
  .auth-visual>h2{margin:18px 0 8px;font-size:clamp(30px,3.2vw,46px)}
  .auth-visual>p{font-size:14px;line-height:1.4}
  .auth-feature-grid{margin-top:16px;gap:8px}.auth-feature-grid div{padding:9px 12px;font-size:13px}
  .auth-card{padding:24px 36px}.auth-card-head{margin-bottom:24px}.auth-card h2{font-size:27px}
  .google-button{margin:20px 0 13px}.text-link{margin-top:20px}
}
@media(min-width:821px) and (max-width:1180px){
  .auth-shell{grid-template-columns:minmax(0,1fr) minmax(360px,.82fr)}
  .auth-card{padding-left:32px;padding-right:32px}
  .auth-visual{padding-left:34px;padding-right:34px}
}

/* Similaridade acadêmica multiformato — v1.4.0 */
.similarity-config-row{display:grid;grid-template-columns:minmax(280px,1.6fr) minmax(250px,1fr);gap:14px;align-items:end;padding:14px;border:1px solid #d7e4f5;border-radius:14px;background:#f8fbff}
.similarity-config-row label{display:flex;flex-direction:column;gap:6px;font-weight:800;color:var(--navy-900)}
.similarity-config-row .similarity-enable{flex-direction:row;align-items:center;align-self:center;min-height:44px}
.similarity-config-row select{min-height:44px;border:1px solid #cbd8e8;border-radius:10px;background:#fff;padding:8px 11px}
.card-head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.similarity-page{min-height:100%;overflow-y:auto}
.similarity-hero{background:linear-gradient(115deg,#0b2b57,#2066a8)}
.similarity-disclaimer{padding:16px 18px;border:1px solid #fdba74;border-left:5px solid #ea580c;border-radius:14px;background:#fff7ed;color:#7c2d12;line-height:1.55}
.similarity-report-stats{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px}
.similarity-method-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;margin:16px 0}
.similarity-method-grid article{display:flex;flex-direction:column;gap:7px;padding:14px;border:1px solid #dce5f0;border-radius:13px;background:#f8fafc}
.similarity-method-grid strong{color:var(--navy-900)}
.similarity-method-grid span{color:#53657e;font-size:.9rem;line-height:1.45}
.similarity-backfill{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-top:16px;padding:15px;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff}
.similarity-backfill>div{display:flex;flex-direction:column;gap:5px;max-width:700px}
.similarity-backfill>div span{color:#49617f;font-size:.9rem;line-height:1.45}
.similarity-backfill form{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.similarity-backfill label{display:flex;flex-direction:column;gap:4px;font-weight:800}
.similarity-backfill select{min-height:42px;border:1px solid #b9cbe1;border-radius:9px;background:#fff;padding:7px 9px}
.similarity-filters{display:grid;grid-template-columns:minmax(240px,2fr) minmax(150px,1fr) minmax(130px,1fr) auto;gap:10px;align-items:end;margin:12px 0 16px}
.similarity-filters label{display:flex;flex-direction:column;gap:5px;font-weight:800}
.similarity-filters input,.similarity-filters select{min-height:44px;border:1px solid #ccd7e8;border-radius:10px;padding:8px 11px;background:#fff}
.similarity-table-scroll{overflow:auto;max-height:820px;border:1px solid #dce4ee;border-radius:13px}
.similarity-table{min-width:1740px;width:100%;border-collapse:collapse;background:#fff}
.similarity-table th{position:sticky;top:0;z-index:2;background:#f4f7fb;text-align:left;padding:12px;border-bottom:1px solid #dce4ee;color:#465a75;font-size:.79rem;text-transform:uppercase}
.similarity-table td{padding:13px 12px;border-bottom:1px solid #e6ebf2;vertical-align:top;min-width:170px}
.similarity-table td:nth-child(2),.similarity-table td:nth-child(3){min-width:240px}
.similarity-table td:nth-child(4){min-width:210px}.similarity-table td:nth-child(5){min-width:270px}.similarity-table td:nth-child(6){min-width:310px}
.similarity-table td strong,.similarity-table td small{display:block}.similarity-table td small{margin:4px 0 7px;color:#64748b;line-height:1.4}
.similarity-score{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-bottom:7px}
.similarity-score strong{font-size:1.45rem;color:#0f172a}.similarity-score span{font-weight:850;font-size:.79rem}
.similarity-score.exact strong,.similarity-score.very_high strong{color:#9f1239}.similarity-score.high strong{color:#b91c1c}.similarity-score.medium strong{color:#a16207}
.format-chip{display:inline-flex;padding:3px 7px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-size:.7rem;font-weight:850}
.component-scores{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.component-scores span{display:flex;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:8px;background:#f8fafc;font-size:.78rem}
.similarity-reasons{margin:0;padding-left:18px;color:#4b5d75;line-height:1.45;font-size:.84rem}
.similarity-review-form{display:flex;flex-direction:column;gap:8px}
.similarity-review-form label{display:flex;flex-direction:column;gap:4px;font-weight:800;font-size:.78rem}
.similarity-review-form select,.similarity-review-form textarea{width:100%;border:1px solid #cbd7e6;border-radius:8px;padding:7px 8px;background:#fff;font:inherit;color:#1e293b}
.similarity-review-form textarea{resize:vertical;min-height:58px}
.integrity-badge.exact,.integrity-badge.very_high{background:#fce7f3;color:#9d174d}.integrity-badge.high{background:#fee2e2;color:#991b1b}.integrity-badge.medium{background:#fef3c7;color:#92400e}
@media(max-width:1200px){.similarity-report-stats{grid-template-columns:repeat(3,minmax(130px,1fr))}.similarity-method-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:760px){.similarity-config-row,.similarity-filters{grid-template-columns:1fr}.similarity-method-grid,.similarity-report-stats{grid-template-columns:1fr}.similarity-backfill{align-items:stretch;flex-direction:column}.card-head-actions{justify-content:flex-start}}

/* ProfDrive IF v1.6.1 — ciclo de vida incremental das atividades. */
.inline-alert.warning{background:#fffbeb;border-color:#fde68a;color:#854d0e}.inline-alert.warning a{color:#174ea6;font-weight:800}
.drop-lifecycle-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 16px;padding-bottom:2px}.drop-lifecycle-tabs a{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #cbd8e9;border-radius:999px;background:#fff;color:#25415f;text-decoration:none;font-weight:800}.drop-lifecycle-tabs a span{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#edf4ff;color:#174ea6;font-size:12px}.drop-lifecycle-tabs a.active{background:#164fae;border-color:#164fae;color:#fff}.drop-lifecycle-tabs a.active span{background:#fff;color:#164fae}.status-chip.archived{background:#f3e8ff;color:#6b21a8;border-color:#e9d5ff}.lifecycle-menu{position:relative;min-width:150px}.lifecycle-menu>summary{list-style:none;cursor:pointer;text-align:center}.lifecycle-menu>summary::-webkit-details-marker{display:none}.lifecycle-menu[open]>summary{background:#e8f0ff;border-color:#8db0e7}.lifecycle-form{display:grid;gap:9px;width:min(360px,calc(100vw - 54px));margin-top:7px;padding:13px;border:1px solid #cdd9e8;border-radius:12px;background:#fff;box-shadow:0 16px 42px rgba(14,41,76,.16);position:absolute;right:0;z-index:20}.lifecycle-form label{display:grid;gap:5px;font-size:12px;font-weight:800}.lifecycle-form textarea{width:100%;resize:vertical;border:1px solid #c8d4e5;border-radius:9px;padding:9px;font:inherit;line-height:1.4}.lifecycle-form button{width:100%}.drop-closed-card{width:min(860px,100%)}.drop-closed-badge{display:inline-flex;padding:7px 11px;border-radius:999px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-weight:850;font-size:13px;margin-bottom:12px}.drop-closed-badge.archived{background:#faf5ff;border-color:#e9d5ff;color:#6b21a8}.drop-closed-badge.owner_unavailable{background:#fef2f2;border-color:#fecaca;color:#991b1b}.drop-closed-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}.drop-closed-grid>div{border:1px solid #dce6f2;border-radius:13px;padding:13px;background:#f8fbff}.drop-closed-grid span{display:block;font-size:12px;color:#62738c;margin-bottom:4px}.drop-closed-grid strong{display:block;overflow-wrap:anywhere}.drop-closed-message{border-left:4px solid #2563eb;background:#eff6ff;border-radius:10px;padding:14px 16px;margin:18px 0}.drop-closed-message strong{display:block;margin-bottom:5px}.drop-closed-message p{margin:0;line-height:1.55}@media(max-width:760px){.drop-lifecycle-tabs a{flex:1;justify-content:center;min-width:135px}.lifecycle-form{position:static;width:100%;box-shadow:none}.drop-closed-grid{grid-template-columns:1fr}}

/* ProfDrive IF v1.6.2 — turmas no mesmo link e escopo de comparação. */
.activity-groups-create{margin:2px 0;padding:16px;border:1px solid #cbdcf0;border-radius:14px;background:#f8fbff;min-width:0}.activity-groups-create legend{padding:0 7px;color:var(--navy-900);font-weight:850}.activity-groups-create:disabled{opacity:.78}.optional-label{color:#64748b;font-size:.78rem;font-weight:700}.groups-create-grid{align-items:start}.groups-create-grid textarea{min-height:116px;resize:vertical}.field-warning{margin:10px 0 0;padding:10px 12px;border-left:4px solid #f59e0b;border-radius:8px;background:#fffbeb;color:#854d0e;font-size:.86rem;line-height:1.5}.field-warning a{font-weight:850;color:#174ea6}.drop-group-field{padding:14px;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff}.drop-group-field select{min-height:48px;border-color:#7ca9e6;font-weight:750}.drop-group-field small{color:#49617f;font-weight:600;line-height:1.45}.drop-scope-note{margin-top:-4px;padding:10px 12px;border-radius:10px;background:#f8fafc;color:#475569;font-size:.84rem;line-height:1.45}.group-chip,.activity-group-chip{display:inline-flex;align-items:center;max-width:100%;padding:4px 9px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#174ea6;font-size:.76rem;font-weight:850;line-height:1.25}.activity-group-chip.inactive{background:#f1f5f9;border-color:#cbd5e1;color:#64748b}.activity-scope-summary{margin:8px 0 0!important;color:#dbeafe!important;font-size:.88rem}.group-assignment-summary{display:flex;gap:10px 18px;align-items:center;flex-wrap:wrap;margin:-4px 0 14px;padding:11px 13px;border:1px solid #dbeafe;border-radius:12px;background:#f8fbff;color:#475569}.group-assignment-summary a{margin-left:auto;font-weight:850;color:#174ea6}.activity-scope-banner{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;padding:13px 15px;border:1px solid #bfdbfe;border-left:5px solid #2563eb;border-radius:13px;background:#eff6ff;color:#1e3a5f}.activity-scope-banner small{flex-basis:100%;color:#53657e}.activity-scope-groups{display:flex;gap:7px;flex-wrap:wrap}.similarity-group-chip{display:block;width:max-content;margin:5px 0 1px}.activity-groups-hero{background:linear-gradient(115deg,#0b2b57,#1f6aa8)}.group-scope-form,.group-add-form,.group-assignment-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.group-scope-form label,.group-add-form label{display:grid;gap:5px;flex:1;min-width:240px;font-weight:800}.group-scope-form select,.group-add-form input,.group-assignment-form select{min-height:43px;border:1px solid #c7d5e7;border-radius:10px;background:#fff;padding:8px 10px;color:#1e293b}.scope-explanation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}.scope-explanation article{display:flex;flex-direction:column;gap:5px;padding:13px;border:1px solid #dce6f2;border-radius:12px;background:#f8fbff}.scope-explanation article span{color:#5b6d85;font-size:.86rem;line-height:1.45}.activity-group-stats{display:grid;grid-template-columns:repeat(4,minmax(125px,1fr))}.activity-group-grid{align-items:start}.activity-group-list{display:grid;gap:10px;margin-top:14px}.activity-group-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid #dbe5f0;border-radius:13px;background:#fff}.activity-group-item.inactive{background:#f8fafc;opacity:.82}.activity-group-item>div:first-child{display:grid;gap:4px}.activity-group-item small{color:#64748b}.activity-group-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.activity-group-actions input{min-height:40px;max-width:260px;border:1px solid #cbd8e8;border-radius:9px;padding:7px 9px}.activity-group-table td small{display:block;margin-top:4px;color:#64748b}.group-assignment-form{flex-wrap:nowrap}.group-assignment-form select{min-width:210px}.empty-state-copy{padding:18px;border:1px dashed #cbd8e8;border-radius:12px;background:#f8fbff;color:#64748b;text-align:center}.similarity-filters:has(#similarityGroup){grid-template-columns:minmax(220px,1.7fr) minmax(145px,.8fr) minmax(130px,.75fr) minmax(180px,1fr) auto}
@media(max-width:980px){.scope-explanation{grid-template-columns:1fr}.activity-group-stats{grid-template-columns:repeat(2,minmax(130px,1fr))}.activity-group-item{grid-template-columns:1fr}.activity-group-actions{justify-content:flex-start}.similarity-filters:has(#similarityGroup){grid-template-columns:repeat(2,minmax(0,1fr))}.similarity-filters:has(#similarityGroup) button{align-self:end}}
@media(max-width:620px){.activity-group-stats,.similarity-filters:has(#similarityGroup){grid-template-columns:1fr}.group-scope-form,.group-add-form,.group-assignment-form{align-items:stretch;flex-direction:column}.group-assignment-form select{min-width:0;width:100%}.activity-group-actions,.activity-group-actions .inline-form{width:100%;align-items:stretch;flex-direction:column}.activity-group-actions input,.activity-group-actions button{width:100%;max-width:none}.group-assignment-summary a{margin-left:0}.activity-scope-banner{align-items:flex-start;flex-direction:column}}

/* ProfDrive IF v1.6.5 — situação pedagógica e nota por submissão. */
.status-chip.pending{background:#ffedd5;color:#9a3412}
.status-chip.in_review{background:#dbeafe;color:#1d4ed8}
.status-chip.integrity_confirmed{background:#dcfce7;color:#166534}
.status-chip.similarity_justified{background:#e0f2fe;color:#075985}
.status-chip.insufficient_evidence{background:#f1f5f9;color:#475569}
.status-chip.conduct_incompatible{background:#fee2e2;color:#991b1b}
.status-chip.referred_pedagogy{background:#ede9fe;color:#6d28d9}


/* ProfDrive IF v1.6.6.1 — rolagem principal das páginas independentes. */
html.utility-scroll-root {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
html.utility-scroll-root body.app-page.utility-scroll-page {
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  overflow: visible !important;
  overflow-x: hidden !important;
}
html.utility-scroll-root body.utility-scroll-page > main {
  min-height: 100vh;
  min-height: 100svh;
}
@media (max-width: 760px) {
  html.utility-scroll-root { scrollbar-gutter: auto; }
}

/* v1.8.0 — bounded receipt/queue lists, without changing the existing theme. */
.public-drop-page .drop-upload-list { max-height: min(58vh, 680px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.public-drop-page .drop-queue-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem; margin:1rem 0 .5rem; }
.public-drop-page .drop-queue-toolbar > div { display:flex; flex-wrap:wrap; gap:.5rem; }
.public-drop-page .drop-live-message { white-space:pre-wrap; overflow-wrap:anywhere; max-height:14rem; overflow:auto; }
.public-drop-page .drop-upload-name { overflow-wrap:anywhere; }
.public-drop-page .drop-upload-item.queued { border-style:dashed; }
.public-drop-page .drop-zone[aria-disabled="true"] { cursor:default; }
.public-drop-page [hidden] { display:none !important; }
@media (max-width:600px) { .public-drop-page .drop-queue-toolbar > div { width:100%; } .public-drop-page .drop-queue-toolbar button { flex:1 1 auto; } }


/* ProfDrive IF v1.8.1 — hotfix de layout da página inicial de login para Chrome/Edge em zoom 100%. */
@media (min-width: 821px) {
  .auth-page {
    min-height: 100dvh;
    padding: 12px;
    overflow: hidden;
  }
  .auth-shell {
    width: min(1380px, calc(100vw - 24px));
    height: min(760px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
    min-height: 0;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.78fr);
    border-radius: 24px;
  }
  .auth-visual {
    padding: clamp(26px, 4vh, 46px) clamp(36px, 4vw, 56px);
    display: grid;
    align-content: center;
    align-items: start;
    gap: clamp(10px, 1.6vh, 18px);
    background: linear-gradient(145deg, rgba(7,26,51,.98), rgba(14,70,128,.95)), url("../img/profdrive.svg") right -82px bottom -102px / 380px no-repeat;
  }
  .auth-visual::after {
    inset: auto -108px -156px auto;
    width: 390px;
    height: 390px;
    border-width: 60px;
  }
  .institution-logo {
    width: min(320px, 72%);
    max-height: 82px;
    margin: 0;
  }
  .auth-brand {
    margin-top: 0;
    gap: 15px;
  }
  .auth-brand > img {
    width: 64px;
    height: 64px;
    padding: 8px;
    border-radius: 17px;
  }
  .auth-brand span {
    font-size: 13px;
  }
  .auth-brand h1 {
    margin-top: 6px;
    font-size: clamp(34px, 2.65vw, 48px);
  }
  .auth-visual > h2 {
    max-width: 600px;
    margin: 4px 0 0;
    font-size: clamp(31px, 3vw, 52px);
    line-height: 1.08;
  }
  .auth-visual > p {
    max-width: 590px;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.5;
  }
  .auth-feature-grid {
    margin-top: 2px;
    max-width: 600px;
    gap: 10px;
  }
  .auth-feature-grid div {
    min-height: 54px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
  }
  .auth-card {
    padding: clamp(28px, 4.2vh, 46px) clamp(34px, 3.6vw, 54px);
    overflow: auto;
  }
  .auth-card-head {
    margin-bottom: clamp(22px, 3.2vh, 34px);
  }
  .auth-card h2 {
    font-size: clamp(30px, 2.3vw, 42px);
    line-height: 1.12;
  }
  .auth-card > p {
    margin-bottom: 0;
    line-height: 1.65;
  }
  .google-button {
    margin: 26px 0 16px;
  }
  .auth-help {
    margin-top: 0;
  }
}
@media (min-width: 821px) and (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
    height: min(730px, calc(100dvh - 24px));
  }
  .auth-visual {
    padding-left: 32px;
    padding-right: 32px;
  }
  .auth-card {
    padding-left: 30px;
    padding-right: 30px;
  }
  .auth-visual > h2 {
    font-size: clamp(29px, 2.9vw, 42px);
  }
  .auth-feature-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}
@media (min-width: 1181px) and (max-height: 830px) {
  .auth-shell {
    height: calc(100dvh - 24px);
  }
}


/* ProfDrive IF v1.8.2 — responsividade reforçada do login para smartphone, tablet e monitores variados. */
@media (max-width: 820px) {
  .auth-page {
    padding: 0;
    min-height: 100dvh;
    background:
      radial-gradient(circle at 18% 10%, rgba(59,130,246,.22), transparent 36%),
      linear-gradient(180deg, #071a33 0%, #0d376a 42%, #edf5ff 42.1%, #f8fbff 100%);
    overflow: auto;
  }
  .auth-shell {
    width: 100%;
    min-height: 100svh;
    height: auto;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .auth-visual {
    display: flex;
    padding: 24px 20px 18px;
    min-height: auto;
    background: linear-gradient(145deg, rgba(7,26,51,.98), rgba(14,70,128,.95));
  }
  .auth-visual::after {
    inset: auto -88px -80px auto;
    width: 220px;
    height: 220px;
    border-width: 34px;
  }
  .institution-logo {
    width: min(250px, 82%);
    max-height: 58px;
  }
  .auth-brand {
    margin-top: 18px;
    gap: 12px;
  }
  .auth-brand > img {
    width: 52px;
    height: 52px;
    padding: 6px;
    border-radius: 14px;
  }
  .auth-brand span {
    font-size: 11px;
    letter-spacing: .11em;
  }
  .auth-brand h1 {
    font-size: clamp(28px, 7.8vw, 34px);
  }
  .auth-visual > h2 {
    max-width: none;
    margin: 18px 0 8px;
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.08;
  }
  .auth-visual > p {
    max-width: none;
    font-size: 15px;
    line-height: 1.52;
  }
  .auth-feature-grid {
    max-width: none;
    margin-top: 14px;
    gap: 10px;
  }
  .auth-feature-grid div {
    min-height: 48px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    font-size: 14px;
  }
  .auth-card {
    margin: 0 14px 14px;
    padding: 24px 20px 28px;
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: visible;
    align-self: start;
  }
  .auth-card-head {
    margin-bottom: 24px;
  }
  .auth-card h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
  }
  .auth-card > p {
    font-size: 15px;
    line-height: 1.6;
  }
  .google-button {
    margin: 24px 0 16px;
    min-height: 50px;
  }
  .auth-help {
    font-size: 13px;
    line-height: 1.55;
  }
  .text-link {
    margin-top: 22px;
  }
}
@media (max-width: 640px) {
  .auth-feature-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    margin: 0 12px 12px;
    padding: 22px 18px 24px;
    border-radius: 22px;
  }
  .auth-visual {
    padding: 22px 18px 16px;
  }
}
@media (max-width: 420px) {
  .institution-logo {
    width: min(220px, 88%);
    max-height: 52px;
  }
  .auth-brand {
    gap: 10px;
  }
  .auth-brand > img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .auth-brand span {
    font-size: 10px;
  }
  .auth-brand h1 {
    font-size: 26px;
  }
  .auth-visual > h2 {
    font-size: clamp(25px, 10vw, 32px);
  }
  .auth-visual > p,
  .auth-card > p {
    font-size: 14px;
  }
  .auth-card h2 {
    font-size: clamp(24px, 8.6vw, 30px);
  }
  .auth-card {
    margin: 0 10px 10px;
    padding: 20px 16px 22px;
  }
}


/* ProfDrive IF v1.8.2 — refinamentos do login para smartphone, tablet e desktops Chromium. */
.auth-page { overflow-x: hidden; }
.auth-shell { overflow: hidden; }
.auth-visual > p, .auth-card > p, .auth-help { text-wrap: pretty; }

@media (max-width: 820px) {
  .auth-page {
    min-height: 100svh;
    background: linear-gradient(180deg,#0b2447 0%, #0e457d 36%, #eef3f9 36%, #eef3f9 100%);
    overflow-y: auto;
  }
  .auth-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .auth-visual {
    display: grid;
    padding: 28px 20px 18px;
    gap: 12px;
    background: transparent;
    align-content: start;
  }
  .auth-visual::after { display: none; }
  .institution-logo {
    width: min(220px, 78vw);
    margin: 0;
  }
  .auth-brand {
    margin-top: 6px;
    gap: 12px;
  }
  .auth-brand > img {
    width: 54px;
    height: 54px;
    padding: 6px;
    border-radius: 15px;
  }
  .auth-brand span {
    font-size: 11px;
    letter-spacing: .08em;
  }
  .auth-brand h1 {
    margin-top: 4px;
    font-size: clamp(34px, 8vw, 44px);
  }
  .auth-visual > h2 {
    margin: 4px 0 0;
    max-width: none;
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.06;
  }
  .auth-visual > p {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255,255,255,.92);
  }
  .auth-feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 6px;
  }
  .auth-feature-grid div {
    min-height: 48px;
    padding: 12px 14px;
  }
  .auth-card {
    margin: 0 12px 18px;
    padding: 24px 18px 34px;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 36px rgba(9,32,64,.16);
    overflow: visible;
  }
  .auth-card-head {
    margin-bottom: 24px;
  }
  .auth-card h2 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.12;
  }
  .auth-card > p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
  }
  .google-button {
    margin: 20px 0 14px;
    min-height: 48px;
  }
  .auth-help {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.55;
  }
  .a11y-tools {
    right: 12px;
    bottom: 12px;
  }
  .a11y-panel {
    width: min(230px, calc(100vw - 24px));
    right: 0;
    bottom: 50px;
  }
}
@media (min-width: 521px) and (max-width: 820px) {
  .auth-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .auth-visual {
    padding: 22px 16px 14px;
  }
  .auth-brand {
    align-items: center;
  }
  .auth-visual > h2 {
    font-size: clamp(28px, 10vw, 38px);
  }
  .auth-card {
    margin: 0;
    border-radius: 24px 24px 0 0;
    padding: 22px 16px 30px;
  }
  .auth-card-head {
    gap: 10px;
  }
  .auth-card-head > img {
    width: 42px;
    height: 42px;
  }
  .auth-card-head strong {
    font-size: 16px;
  }
  .auth-card-head span {
    font-size: 12px;
  }
  .a11y-launcher {
    padding: 8px 12px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .auth-feature-grid div {
    font-size: 13px;
  }
  .google-button {
    font-size: 14px;
  }
}
