:root {
  --ink: #132522;
  --muted: #63726f;
  --line: #dfe7e4;
  --paper: #ffffff;
  --wash: #f2f6f4;
  --green: #07584f;
  --green-deep: #043d37;
  --mint: #8ee2bb;
  --lime: #d9f36a;
  --danger: #b42c3b;
  --shadow: 0 18px 48px rgba(17, 45, 40, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--wash); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 560px) 1fr;
  background: var(--paper);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 7vw, 92px);
  position: relative;
  z-index: 2;
}

.login-identity {
  width: 100%;
  max-width: 430px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mod-lockup { display: flex; align-items: center; gap: 11px; flex: none; }
.mod-lockup strong, .mod-lockup small { display: block; line-height: 1.05; }
.mod-lockup strong { color: var(--ink); font-size: 15px; letter-spacing: .02em; }
.mod-lockup small { margin-top: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.partner-lockup { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.identity-divider { width: 1px; height: 27px; display: block; flex: none; background: #d5dfdc; }
.identity-rule { width: 100%; max-width: 430px; height: 1px; margin: 21px 0 32px; background: linear-gradient(90deg, var(--green), var(--line) 42%, transparent); }
.logo-badge { position: relative; display: block; flex: none; overflow: hidden; background: transparent; }
.logo-badge img { position: absolute; display: block; max-width: none; mix-blend-mode: multiply; }
.vinci-badge img { width: 140%; height: auto; left: -20%; top: -43%; }
.emaphos-badge img { width: 94%; height: 94%; left: 3%; top: 3%; object-fit: contain; }
.partner-lockup .vinci-badge { width: 86px; height: 34px; }
.partner-lockup .emaphos-badge { width: 99px; height: 34px; }

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  background: var(--lime);
  border-radius: 16px 16px 16px 5px;
  font-weight: 900;
  letter-spacing: -.06em;
  box-shadow: 8px 8px 0 var(--green);
  margin-bottom: 28px;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 10px 10px 10px 3px;
  box-shadow: 4px 4px 0 var(--green);
  font-size: 13px;
}
.brand-mark.identity-mark { width: 43px; height: 43px; margin: 0; border-radius: 11px 11px 11px 4px; box-shadow: 4px 4px 0 var(--green); font-size: 12px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .17em;
}

.eyebrow.light { color: var(--mint); }

.login-panel h1 {
  margin: 0;
  max-width: 430px;
  font-size: clamp(42px, 4.1vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}
.login-panel h1 em { color: var(--green); font-style: normal; }

.login-copy {
  max-width: 390px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.login-register { margin-top: 15px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 10px; }
.login-register button { padding: 2px 0; color: var(--green); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 850; }
.login-register button:hover { color: var(--green-deep); text-decoration: underline; }
.remember-me { margin-top: -5px; display: flex !important; align-items: center; gap: 9px; width: fit-content; cursor: pointer; }
.remember-me input { width: 17px; height: 17px; padding: 0; accent-color: var(--green); }
.remember-me span { margin: 0; color: var(--muted); font-size: 11px; }
.login-help-row { margin-top: -5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-help-row .remember-me { margin-top: 0; }
.forgot-password-link { padding: 3px 0; color: var(--green); background: transparent; border: 0; cursor: pointer; font-size: 10px; font-weight: 850; }
.forgot-password-link:hover { color: var(--green-deep); text-decoration: underline; }
.language-control { display: flex; align-items: center; gap: 7px; }
.language-control span { margin: 0; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.language-control select { width: auto; min-width: 82px; min-height: 34px; padding: 0 28px 0 10px; background-color: #f4f8f6; border-radius: 9px; font-size: 10px; font-weight: 800; cursor: pointer; }
.login-language { position: absolute; top: 25px; right: 28px; }
.app-language span { display: none; }
.app-language select { min-width: 58px; height: 38px; }

.stack-form { display: grid; gap: 17px; }
.field-help { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }

label span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 750;
  color: #41514e;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fbfdfc;
  border-radius: 11px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

input, select { height: 48px; padding: 0 14px; }
textarea { padding: 12px 14px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(7, 88, 79, .1);
}

.button {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 780;
  font-size: 13px;
  text-decoration: none;
}

.button.primary { color: #fff; background: var(--green); box-shadow: 0 7px 18px rgba(7, 88, 79, .18); }
.button.primary:hover { background: var(--green-deep); }
.button.quiet { color: var(--ink); background: #eaf0ed; }
.button.wide { width: 100%; margin-top: 2px; }
.button.compact { min-height: 36px; padding: 0 14px; color: var(--green-deep); background: var(--lime); }
.button:disabled { opacity: .55; cursor: wait; }

.form-error { min-height: 18px; margin: -4px 0 0; color: var(--danger); font-size: 12px; font-weight: 650; }

.local-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #20aa65; box-shadow: 0 0 0 4px rgba(32,170,101,.12); }

.login-visual { position: relative; overflow: hidden; background: var(--green); }
.login-visual::before {
  content: "";
  position: absolute;
  width: 58vw;
  height: 58vw;
  right: -25vw;
  bottom: -28vw;
  border: 2px solid rgba(217,243,106,.34);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(217,243,106,.03), 0 0 0 160px rgba(217,243,106,.02);
}
.visual-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 44px 44px;
}

.visual-card {
  position: absolute;
  width: clamp(165px, 20vw, 250px);
  aspect-ratio: 1.35;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 70px rgba(0,0,0,.18);
}
.visual-card strong { font-size: clamp(34px, 4vw, 62px); letter-spacing: -.06em; }
.visual-card span { font-size: 12px; opacity: .72; }
.card-a { top: 18%; left: 14%; transform: rotate(-6deg); }
.card-b { top: 40%; right: 10%; transform: rotate(7deg); background: rgba(217,243,106,.17); }
.card-c { bottom: 8%; left: 21%; transform: rotate(-2deg); }

.app-view { min-height: 100vh; }
.page-folder-drop-overlay { position: fixed; z-index: 95; inset: 70px 0 0; padding: 28px; display: grid; place-items: center; pointer-events: none; background: rgba(4, 36, 32, .74); backdrop-filter: blur(5px); }
.page-folder-drop-card { width: min(650px, calc(100% - 24px)); min-height: 260px; padding: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: rgba(7, 88, 79, .96); border: 3px dashed var(--lime); border-radius: 24px; box-shadow: 0 22px 70px rgba(0, 0, 0, .24); }
.page-folder-drop-card > span { width: 70px; height: 70px; margin-bottom: 22px; display: grid; place-items: center; color: var(--green-deep); background: var(--lime); border-radius: 20px; font-size: 38px; font-weight: 900; }
.page-folder-drop-card strong { font-size: clamp(22px, 3vw, 34px); }
.page-folder-drop-card small { margin-top: 10px; color: #cde2dc; font-size: 13px; }
.topbar {
  height: 76px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-identity { min-width: 0; display: flex; align-items: center; gap: 18px; }
.header-divider { width: 1px; height: 37px; display: block; flex: none; background: var(--line); }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: 14px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.company-logos { min-width: 0; display: flex; align-items: center; gap: 9px; }
.company-logos .vinci-badge { width: 88px; height: 34px; }
.company-logos .emaphos-badge { width: 102px; height: 34px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.role-badge { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; color: var(--green-deep); background: #e4f2ec; border-radius: 99px; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.icon-button, .close-button {
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  background: #edf2f0;
  border-radius: 10px;
}
.icon-button { width: 38px; height: 38px; font-size: 16px; }
.logout-button .logout-label { display: none; }
.logout-button.textual { width: auto; padding: 0 13px; display: flex; gap: 7px; color: var(--green-deep); font-size: 11px; font-weight: 850; }
.logout-button.textual .logout-label { display: inline; }

main { padding-bottom: 60px; }
.hero {
  min-height: 270px;
  padding: 54px clamp(20px, 7vw, 100px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  background: linear-gradient(112deg, #043f39 0%, var(--green) 56%, #0a675a 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .055;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 42px 42px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: 13%;
  top: -260px;
  border: 1px solid rgba(217,243,106,.3);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(217,243,106,.035), 0 0 0 110px rgba(217,243,106,.025);
}
.hero > * { position: relative; z-index: 1; }
.hero h2 { margin: 0; font-size: clamp(38px, 5.2vw, 66px); line-height: .96; letter-spacing: -.055em; }
.hero h2 em { color: var(--lime); font-style: normal; }
.hero p:not(.eyebrow) { margin: 19px 0 0; color: rgba(255,255,255,.68); font-size: 14px; }
.hero-stat { min-width: 170px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 12px; }
.hero-stat span { color: var(--lime); font-size: 72px; line-height: .8; font-weight: 870; letter-spacing: -.08em; }
.hero-stat small { color: rgba(255,255,255,.65); font-size: 10px; line-height: 1.35; text-transform: uppercase; letter-spacing: .1em; }

.warning, .toolbar, .content-section { width: min(1180px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.warning {
  margin-top: 22px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #433b08;
  background: #fff8c9;
  border: 1px solid #eddf7a;
  border-radius: 12px;
}
.warning strong, .warning span { display: block; }
.warning strong { font-size: 13px; }
.warning span { margin-top: 2px; font-size: 11px; opacity: .78; }

.toolbar {
  margin-top: 26px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(17,45,40,.06);
}
.search-box { position: relative; }
.search-box > span { position: absolute; left: 16px; top: 11px; color: var(--green); font-size: 23px; font-weight: 500; line-height: 1; }
.search-box input { padding-left: 45px; background: var(--wash); }
.toolbar select { background: var(--wash); }
.toolbar-actions { display: flex; align-items: center; gap: 9px; }

.content-section { margin-top: 42px; }
.breadcrumb { min-height: 28px; margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.breadcrumb button { padding: 0; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 11px; font-weight: 730; }
.breadcrumb button:hover { color: var(--green); }
.breadcrumb button[aria-current="page"] { color: var(--green-deep); cursor: default; }
.breadcrumb .separator { color: #aab6b3; font-size: 13px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h3, .modal-head h3 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.result-label { padding-bottom: 3px; color: var(--muted); font-size: 12px; }
.section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.folder-location { margin: -7px 0 20px; padding: 11px 13px; color: var(--green-deep); background: #edf6f2; border-radius: 9px; font-size: 11px; font-weight: 800; }
.form-hint { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.files-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.folders-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.folder-card {
  min-height: 124px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.folder-card:hover { transform: translateY(-3px); border-color: #a9c7bf; box-shadow: var(--shadow); }
.folder-card.folder-selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(6, 98, 87, .14), var(--shadow); }
.folder-menu-button {
  width: 34px;
  height: 34px;
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  background: #edf5f2;
  border: 1px solid #d8e5e1;
  border-radius: 10px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.folder-menu-button:hover { color: #fff; background: var(--green); border-color: var(--green); }
.add-folder-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  color: var(--green-deep);
  text-align: left;
  background: #f7fbf9;
  border: 1px dashed #91b9ae;
  cursor: pointer;
}
.add-folder-card:hover { background: #edf8f3; border-color: var(--green); }
.add-folder-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--green-deep); background: var(--lime); border-radius: 15px; font-size: 28px; font-weight: 500; }
.import-folder-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-align: left;
  background: var(--green);
  border-color: var(--green);
  cursor: pointer;
}
.import-folder-card:hover { background: var(--green-deep); border-color: var(--green-deep); }
.import-folder-card .folder-copy small, .import-folder-card .folder-arrow { color: #c8ded8; }
.import-folder-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--green-deep); background: var(--lime); border-radius: 15px; font-size: 24px; font-weight: 800; }
.folder-open {
  width: 100%;
  min-height: 124px;
  padding: 18px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.folder-card.has-menu .folder-open { padding-right: 52px; }
.folder-card.has-actions .folder-open { padding-bottom: 56px; }
.folder-card-actions {
  position: absolute;
  right: 14px;
  bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.folder-action-button, .file-delete-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}
.folder-color-button { color: #324b46; background: #f3f6f5; border: 1px solid #d8e2df; }
.folder-color-button span { margin-right: 4px; color: var(--folder-color, var(--green)); }
.folder-color-button:hover { color: var(--green-deep); background: #e8f2ef; border-color: #b5cec7; }
.folder-rename-button { color: #3d504c; background: #f1f5f3; border: 1px solid #d8e2df; }
.folder-rename-button:hover { color: var(--green-deep); background: #e5f1ed; border-color: #acc9c1; }
.folder-move-button { color: var(--green-deep); background: #e4f2ec; border: 1px solid #c9e2d8; }
.folder-move-button:hover { color: #fff; background: var(--green); border-color: var(--green); }
.folder-delete-button, .file-delete-button { color: #8d2935; background: #faecee; border: 1px solid #f1d5d9; }
.folder-delete-button:hover, .file-delete-button:hover { color: #fff; background: #a72d3a; border-color: #a72d3a; }
.folder-actions-dialog { width: min(470px, calc(100% - 24px)); }
.folder-action-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.folder-sheet-button {
  min-height: 76px;
  padding: 13px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  color: var(--ink);
  text-align: left;
  background: #f5f8f7;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}
.folder-sheet-button > span { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; color: var(--green-deep); background: #e4f1ed; border-radius: 10px; font-size: 18px; font-weight: 900; }
.folder-sheet-button strong { font-size: 12px; }
.folder-sheet-button small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.folder-sheet-button:hover { border-color: #a9c7bf; background: #eef6f3; }
.folder-sheet-button.primary-action { grid-column: 1 / -1; color: #fff; background: var(--green); border-color: var(--green); }
.folder-sheet-button.primary-action > span { color: var(--green-deep); background: var(--lime); }
.folder-sheet-button.primary-action small { color: #cee2dc; }
.folder-sheet-button.danger-action { color: #8d2935; background: #fff4f5; border-color: #f1d5d9; }
.folder-sheet-button.danger-action > span { color: #9f2937; background: #f9e1e4; }
.folder-sheet-button.danger-action:hover { color: #fff; background: #a72d3a; border-color: #a72d3a; }
.folder-sheet-button.danger-action:hover small { color: #ffe3e6; }
.protected-folder-note { margin: 12px 0 0; padding: 10px 12px; color: #5d6654; background: #fff8ce; border: 1px solid #ead66a; border-radius: 10px; font-size: 10px; line-height: 1.45; }
.folder-action-help { text-align: center; }
.folder-icon { width: 52px; height: 42px; position: relative; display: block; background: var(--folder-color, var(--green)); border-radius: 7px 10px 10px 10px; box-shadow: inset 0 -8px 0 rgba(0,0,0,.08); transition: background .2s; }
.folder-icon::before { content: ""; position: absolute; width: 24px; height: 9px; left: 0; top: -6px; background: var(--folder-color, var(--green)); border-radius: 6px 6px 0 0; transition: background .2s; }
.folder-icon::after { content: ""; position: absolute; width: 9px; height: 9px; right: 8px; bottom: 8px; background: var(--lime); border-radius: 50%; }
.color-folder-preview { margin-bottom: 20px; padding: 18px; display: flex; align-items: center; gap: 16px; background: #f5f9f7; border: 1px solid var(--line); border-radius: 14px; }
.color-folder-preview .folder-icon { flex: 0 0 auto; background: var(--preview-color, var(--green)); }
.color-folder-preview .folder-icon::before { background: var(--preview-color, var(--green)); }
.color-fieldset { margin: 0; padding: 0; border: 0; }
.color-fieldset legend, .color-picker-field span { margin-bottom: 9px; display: block; color: #40524e; font-size: 11px; font-weight: 800; }
.color-swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.color-swatch { aspect-ratio: 1; min-width: 34px; background: var(--swatch-color); border: 3px solid #fff; border-radius: 11px; box-shadow: 0 0 0 1px #cdd9d5; cursor: pointer; }
.color-swatch:hover, .color-swatch.selected { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--green-deep); }
.color-picker-field { margin-top: 18px; }
.color-picker-field input[type="color"] { width: 100%; height: 48px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.split-actions { justify-content: space-between; }
.split-actions > div { display: flex; gap: 8px; }
@media (max-width: 520px) {
  .color-swatches { grid-template-columns: repeat(4, 1fr); }
  .split-actions { align-items: stretch; flex-direction: column-reverse; }
  .split-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
}
.folder-copy { min-width: 0; }
.folder-copy strong, .folder-copy small { display: block; }
.folder-copy strong { font-size: 16px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.folder-copy small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.folder-count { min-width: 27px; height: 27px; padding: 0 8px; display: grid; place-items: center; color: var(--green-deep); background: #e4f2ec; border-radius: 99px; font-size: 10px; font-weight: 850; }
.folder-arrow { color: var(--green); font-size: 25px; line-height: 1; }
.file-card {
  min-height: 260px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.file-card:hover { transform: translateY(-3px); border-color: #bfd1cc; box-shadow: var(--shadow); }
.file-top { display: flex; align-items: center; gap: 8px; }
.file-type {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 9px 9px 9px 3px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.file-type.pdf { background: #c93b43; }
.file-type.doc, .file-type.docx { background: #2871c7; }
.file-type.xls, .file-type.xlsx, .file-type.csv { background: #23865d; }
.file-type.ppt, .file-type.pptx { background: #d66136; }
.file-type.jpg, .file-type.jpeg, .file-type.png, .file-type.webp { background: #6d51ad; }
.category-pill { padding: 6px 9px; color: var(--green-deep); background: #e2f2eb; border-radius: 99px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.file-menu-button {
  width: 34px;
  height: 34px;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}
.file-menu-button:hover { color: #fff; background: var(--green); border-color: var(--green); }
.file-card.file-selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(6,98,87,.12), var(--shadow); }
.file-main { flex: 1; padding-top: 20px; }
.file-title { margin: 0; font-size: 17px; line-height: 1.27; letter-spacing: -.025em; overflow-wrap: anywhere; }
.file-description { margin: 8px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.metadata { display: flex; flex-wrap: wrap; gap: 6px; }
.metadata span { padding: 4px 7px; color: #52625f; background: var(--wash); border-radius: 6px; font-size: 9px; font-weight: 700; }
.file-bottom { margin-top: 20px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.file-size { color: var(--muted); font-size: 9px; font-weight: 700; }
.file-actions { display: flex; align-items: center; gap: 12px; }
.file-actions a { color: var(--green); font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.file-actions .download-link { color: #fff; background: var(--green); padding: 7px 9px; border-radius: 7px; }

.empty-state { padding: 65px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #bfd0cb; border-radius: var(--radius); }
.empty-icon { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; color: var(--green); background: #e4f2ec; border-radius: 18px; font-size: 25px; }
.empty-state h4 { margin: 0; color: var(--ink); font-size: 17px; }
.empty-state p { margin: 7px 0 0; font-size: 12px; }
.loading-state { height: 150px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.loading-state span { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: bounce 1s infinite alternate; }
.loading-state span:nth-child(2) { animation-delay: .16s; }
.loading-state span:nth-child(3) { animation-delay: .32s; }
@keyframes bounce { to { opacity: .25; transform: translateY(-8px); } }

.modal {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  padding: 26px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(5,35,31,.3);
  overflow-y: auto;
}
.modal.narrow { width: min(500px, calc(100% - 28px)); }
.modal.users-modal { width: min(820px, calc(100% - 28px)); }
.modal.smtp-modal { width: min(650px, calc(100% - 28px)); }
.modal::backdrop { background: rgba(4,36,32,.62); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.close-button { width: 36px; height: 36px; font-size: 23px; }
.drop-zone {
  padding: 23px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f4f8f6;
  border: 1px dashed #9ebbb3;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
}
.drop-zone.dragging { border-color: var(--green); background: #e8f5ef; }
.upload-symbol { width: 42px; height: 42px; margin-bottom: 9px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 12px; font-size: 21px; }
.drop-zone strong { font-size: 13px; }
.drop-zone small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.drop-zone input { position: absolute; inset: 0; height: 100%; opacity: 0; cursor: pointer; }
.selected-file { max-width: 100%; margin-top: 10px; color: var(--green); font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.folder-import-drop-zone.dragging { border-color: var(--lime); background: #e8f5ef; box-shadow: inset 0 0 0 2px rgba(207, 246, 87, .65); }
.add-another-folders { margin-top: 11px; }
.form-grid { margin-top: 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.move-form-grid { margin-top: 0; }
.import-folder-list { margin-top: 15px; display: grid; gap: 7px; }
.import-folder-row { min-height: 47px; padding: 8px 10px 8px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f2f7f5; border: 1px solid var(--line); border-radius: 10px; }
.import-folder-row span, .import-folder-row strong, .import-folder-row small { display: block; }
.import-folder-row strong { font-size: 11px; }
.import-folder-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.import-folder-row button { width: 29px; height: 29px; flex: 0 0 auto; color: #8d2935; background: #faecee; border: 1px solid #f1d5d9; border-radius: 8px; cursor: pointer; font-size: 18px; }
.import-folder-row button:hover { color: #fff; background: #a72d3a; border-color: #a72d3a; }
.form-grid .full { grid-column: 1 / -1; }
.modal-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions.split-actions { justify-content: space-between; }
.user-create-panel { padding: 18px; background: #f3f8f6; border: 1px solid var(--line); border-radius: 14px; }
.user-section-head strong, .user-section-head small { display: block; }
.user-section-head strong { font-size: 14px; }
.user-section-head small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.user-form-grid { grid-template-columns: 1.05fr 1fr 1fr auto; align-items: end; gap: 10px; }
.user-form-grid .button { min-height: 46px; white-space: nowrap; }
.users-list-head { margin: 23px 2px 10px; display: flex; align-items: center; justify-content: space-between; }
.users-list-head strong { font-size: 13px; }
.users-list-head span { color: var(--muted); font-size: 10px; }
.users-list { display: grid; gap: 8px; }
.users-admin-note { margin: 0 0 18px; padding: 13px 15px; color: var(--muted); background: #f3f8f6; border: 1px solid var(--line); border-radius: 11px; font-size: 10px; line-height: 1.5; }
.admin-settings-row { margin-bottom: 18px; padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.admin-settings-row strong, .admin-settings-row small { display: block; }
.admin-settings-row strong { font-size: 12px; }
.admin-settings-row small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.admin-settings-row .button { flex: none; }
.smtp-security-note { margin-bottom: 0; }
.smtp-grid { margin-top: 18px; }
.verification-explanation { margin: 0 0 18px; padding: 13px 15px; background: #f3f8f6; border: 1px solid var(--line); border-radius: 11px; }
.users-loading { padding: 24px; color: var(--muted); text-align: center; font-size: 11px; }
.user-account { min-height: 70px; padding: 11px 12px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.user-account.disabled { background: #f7f8f8; opacity: .75; }
.user-avatar { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 12px; font-size: 12px; font-weight: 850; }
.user-account-copy { min-width: 0; }
.user-account-copy strong, .user-account-copy small { display: block; }
.user-account-copy strong { font-size: 13px; overflow-wrap: anywhere; }
.user-account-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.account-status { padding: 6px 9px; border-radius: 99px; font-size: 9px; font-weight: 850; }
.account-status.active { color: #07584f; background: #e3f3ec; }
.account-status.inactive { color: #7b3540; background: #fae9ec; }
.account-status.pending { color: #765305; background: #fff3c9; }
.user-account.pending { border-color: #ecd689; background: #fffdf5; opacity: 1; }
.user-account-actions { display: flex; gap: 5px; }
.mini-action { min-height: 30px; padding: 0 9px; color: #34504a; background: #f1f5f3; border: 1px solid #d8e2df; border-radius: 8px; cursor: pointer; font-size: 9px; font-weight: 800; }
.mini-action:hover { color: #fff; background: var(--green); border-color: var(--green); }
.mini-action.reset-requested { color: #765305; background: #fff3c9; border-color: #ecd689; }
.mini-action.reset-requested:hover { color: #fff; background: #8a6509; border-color: #8a6509; }
.mini-action.danger { color: #8d2935; background: #faecee; border-color: #f1d5d9; }
.mini-action.danger:hover { color: #fff; background: #a72d3a; border-color: #a72d3a; }
.account-toggle { min-height: 48px; padding: 0 13px; display: flex !important; align-items: center; gap: 10px; background: #f3f7f5; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.account-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.account-toggle span { margin: 0 !important; }
.install-copy { color: var(--muted); font-size: 13px; line-height: 1.6; }
.install-copy strong { color: var(--ink); }
.naming-rule { margin-bottom: 18px; padding: 15px 17px; background: #eef6f2; border-left: 4px solid var(--green); border-radius: 9px; }
.naming-rule strong, .naming-rule code { display: block; }
.naming-rule strong { margin-bottom: 7px; color: var(--green-deep); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.naming-rule code { color: var(--ink); font-size: 14px; font-weight: 800; }
.naming-rule p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.bulk-result { margin-top: 17px; padding: 14px 16px; color: #31504a; background: #f3f8f6; border: 1px solid var(--line); border-radius: 11px; font-size: 11px; }
.bulk-result > strong { display: block; color: var(--ink); font-size: 13px; }
.bulk-result ul { margin: 10px 0 0; padding-left: 18px; max-height: 180px; overflow-y: auto; }
.bulk-result li { margin: 6px 0; line-height: 1.45; }
.add-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.add-choice { min-height: 180px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; color: var(--ink); text-align: left; background: #f3f7f5; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; transition: border-color .18s, transform .18s; }
.add-choice:hover { transform: translateY(-2px); border-color: var(--green); }
.choice-icon { width: 45px; height: 45px; margin-bottom: auto; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 13px; font-size: 22px; }
.add-choice strong { font-size: 15px; }
.add-choice small { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  min-width: 240px;
  max-width: calc(100% - 30px);
  padding: 12px 17px;
  color: #fff;
  background: var(--green-deep);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.24);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8e2632; }

@media (max-width: 900px) {
  .files-grid, .folders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-view { grid-template-columns: minmax(320px, 1fr) .8fr; }
  .visual-card { padding: 18px; }
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .company-logos { gap: 7px; }
  .company-logos .vinci-badge { width: 78px; height: 31px; }
  .company-logos .emaphos-badge { width: 90px; height: 31px; }
}

@media (max-width: 680px) {
  .role-badge { display: none; }
  .login-view { display: block; background: var(--green); padding-top: max(0px, env(safe-area-inset-top)); }
  .login-panel { min-height: 100vh; justify-content: flex-start; padding: 34px 24px 28px; border-radius: 0 0 30px 30px; background: #fff; }
  .login-visual { display: none; }
  .login-identity { flex-direction: column; align-items: flex-start; gap: 17px; }
  .partner-lockup { justify-content: flex-start; }
  .partner-lockup .vinci-badge { width: 96px; height: 38px; }
  .partner-lockup .emaphos-badge { width: 112px; height: 38px; }
  .identity-rule { margin: 20px 0 28px; }
  .brand-mark { width: 54px; height: 54px; margin-bottom: 26px; }
  .brand-mark.identity-mark { width: 43px; height: 43px; margin: 0; }
  .login-panel h1 { font-size: 45px; }
  .login-copy { margin: 20px 0 27px; font-size: 14px; }
  .login-language { top: 18px; right: 18px; }
  .login-language span { display: none; }
  .login-language select { min-width: 82px; }
  .topbar { height: 70px; padding: 0 13px; gap: 8px; }
  .header-identity { gap: 8px; }
  .header-divider { display: none; }
  .brand > span:last-child { display: none; }
  .company-logos { gap: 4px; }
  .company-logos .vinci-badge { width: 62px; height: 27px; }
  .company-logos .emaphos-badge { width: 72px; height: 27px; }
  .company-logos .identity-divider { height: 20px; }
  .top-actions .button { padding: 0 12px; }
  .app-language select { min-width: 48px; width: 48px; padding-left: 8px; padding-right: 20px; }
  #usersButton { width: 46px; padding: 0; font-size: 0; }
  #usersButton span { font-size: 18px; }
  .hero { min-height: 240px; padding: 42px 22px 34px; align-items: flex-end; }
  .hero h2 { font-size: 42px; }
  .hero-stat { min-width: auto; position: absolute; top: 28px; right: 22px; }
  .hero-stat span { font-size: 42px; }
  .hero-stat small { display: none; }
  .hero p:not(.eyebrow) { max-width: 270px; font-size: 12px; }
  .warning, .toolbar, .content-section { width: calc(100% - 28px); }
  .warning { align-items: flex-start; }
  .toolbar { margin-top: 18px; grid-template-columns: 1fr; }
  .toolbar select { min-width: 0; }
  .toolbar .button { padding: 0 14px; }
  .toolbar-actions .button { flex: 1; }
  .content-section { margin-top: 34px; }
  .section-heading h3 { font-size: 22px; }
  .section-heading { align-items: flex-start; }
  .section-actions { flex-direction: column; align-items: flex-end; gap: 8px; }
  .files-grid, .folders-grid { grid-template-columns: 1fr; }
  .folder-card { min-height: 105px; }
  .add-choice-grid { grid-template-columns: 1fr; }
  .add-choice { min-height: 135px; }
  .file-card { min-height: 240px; }
  .modal { padding: 21px 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .user-account { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .user-account-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .admin-settings-row { align-items: stretch; flex-direction: column; }
  .modal-actions.split-actions { align-items: stretch; flex-direction: column-reverse; }
  .modal-actions.split-actions .button { width: 100%; }
}

@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top); height: calc(70px + env(safe-area-inset-top)); }
}
