/* projectplek.anso — © Anso. Alle rechten voorbehouden. */
:root {
  --bg: #f4f2ed;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --line: #e3dfd6;
  --line-strong: #cfc9bc;
  --text: #1f2328;
  --muted: #6b7078;
  --ink: #1f3a5f;
  --ink-hover: #17304f;
  --ink-soft: #e8eef5;
  --new: #e0751f;
  --new-soft: #fff1e4;
  --ok: #2f7d4f;
  --ok-soft: #e5f3ea;
  --warn: #9a6a00;
  --warn-soft: #fff6dc;
  --danger: #b4372f;
  --danger-soft: #fbe9e7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 30, .06), 0 4px 16px rgba(20, 24, 30, .05);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text)
}

* {
  box-sizing: border-box
}

body,
html {
  margin: 0
}

body {
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh
}

a {
  color: var(--ink)
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 .4em
}

h1 {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -.01em
}

h2 {
  font-size: 1.15rem;
  font-weight: 620
}

.muted {
  color: var(--muted)
}

.small {
  font-size: .85rem
}

.mono {
  font-family: var(--mono);
  font-size: .95em
}

.nowrap {
  white-space: nowrap
}

.r {
  text-align: right
}

.inline {
  display: inline
}

.ic {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  flex: none
}

.ic-xl {
  width: 44px;
  height: 44px
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  color: #fff;
  padding: 0 24px;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 20
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  background: linear-gradient(currentColor, currentColor) 50% 0/2px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 55%/100% 2px no-repeat
}

.mainnav {
  display: flex;
  gap: 4px
}

.mainnav a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  display: flex;
  gap: 7px;
  align-items: center
}

.mainnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08)
}

.mainnav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .14)
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px
}

.me {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: right
}

.me-name {
  font-weight: 600;
  font-size: .9rem
}

.me-role {
  font-size: .75rem;
  color: rgba(255, 255, 255, .65)
}

.bell {
  color: #fff;
  position: relative;
  display: flex;
  padding: 6px;
  border-radius: 7px
}

.bell:hover {
  background: rgba(255, 255, 255, .1)
}

.bell-count {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--new);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px
}

.topbar .icon-btn {
  color: #fff
}

.topbar .icon-btn:hover {
  background: rgba(255, 255, 255, .1)
}

.main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 60px
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: .92rem;
  font-weight: 550;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap
}

.btn:hover {
  border-color: var(--ink);
  color: var(--ink)
}

.btn:disabled {
  opacity: .55;
  cursor: default
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff
}

.btn-primary:hover {
  background: var(--ink-hover);
  color: #fff
}

.btn-sm {
  padding: 5px 10px;
  font-size: .82rem
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 11px
}

.icon-btn {
  background: 0 0;
  border: 0;
  padding: 6px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  font-size: 18px;
  line-height: 1
}

.icon-btn:hover {
  background: var(--ink-soft);
  color: var(--ink)
}

.icon-btn.danger:hover {
  background: var(--danger-soft);
  color: var(--danger)
}

.link-btn {
  background: 0 0;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px
}

.link-btn .ic {
  width: 14px;
  height: 14px
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .88rem;
  font-weight: 550
}

.form label.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 450
}

input:not([type]),
input[type=email],
input[type=password],
input[type=search],
input[type=text],
select,
textarea {
  font: inherit;
  font-weight: 400;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  width: 100%
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ink-soft);
  border-color: var(--ink)
}

textarea {
  resize: vertical
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr }
}

.form .req { color: var(--new, #b9753f); font-weight: 700; margin-left: 2px }
.pf { display: block }
.uren-hint { margin: -2px 0 2px; font-size: .72rem; line-height: 1.35 }

.toolbar {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
  flex-wrap: wrap
}

.toolbar input[type=search] {
  flex: 1;
  min-width: 220px
}

.toolbar input,
.toolbar select {
  width: auto
}

.flash {
  padding: 11px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid
}

.flash-success {
  background: var(--ok-soft);
  border-color: #b9dcc5;
  color: #1d5636
}

.flash-error {
  background: var(--danger-soft);
  border-color: #efc2bd;
  color: #85241e
}

.flash-info {
  background: var(--ink-soft);
  border-color: #c9d6e6
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #22262b;
  color: #fff;
  padding: 11px 18px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  z-index: 100;
  max-width: min(640px, 92vw)
}

.toast-error {
  background: var(--danger)
}

.toast-success {
  background: var(--ok)
}

.pill {
  display: inline-block;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: #eceae4;
  color: var(--muted);
  font-weight: 600;
  vertical-align: 1px;
  margin-left: 4px
}

.pill-warn {
  background: var(--warn-soft);
  color: var(--warn)
}

.pill-ok {
  background: var(--ok-soft);
  color: var(--ok)
}

.chip {
  display: inline-block;
  font-size: .8rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--ink-soft);
  color: var(--ink);
  margin: 2px
}

.page-head,
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px
}

.head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap
}

.crumb {
  font-size: .85rem;
  text-decoration: none;
  color: var(--muted)
}

.crumb:hover {
  color: var(--ink)
}

.code {
  font-family: var(--mono);
  font-size: .8rem;
  background: var(--ink-soft);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  vertical-align: 3px
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line)
}

.tabs a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent
}

.tabs a:hover {
  color: var(--text)
}

.tabs a.active {
  color: var(--ink);
  border-bottom-color: var(--ink)
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted)
}

.empty-state h1 {
  color: var(--text)
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: border-color .15s, box-shadow .15s, transform .15s
}

.project-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow)
}

.project-card.has-new {
  box-shadow: inset 4px 0 0 var(--new)
}

.project-card h2 {
  margin: 6px 0 0
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.project-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap
}

.badge-new {
  background: var(--new);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 5px;
  margin-right: 4px;
  vertical-align: 2px
}

.folder-ic {
  position: relative;
  display: inline-flex;
  color: var(--ink)
}

.folder-ic .ic {
  width: 26px;
  height: 26px
}

.new-dot {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  background: var(--new);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
  animation: 2s ease-in-out 3 pulse
}

@keyframes pulse {
  50% {
    transform: scale(1.18)
  }
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px
}

.notice {
  display: flex;
  gap: 12px;
  background: var(--new-soft);
  border: 1px solid #f3cfaa;
  border-radius: var(--radius);
  padding: 12px 14px;
  text-decoration: none;
  color: inherit
}

.notice:hover {
  border-color: var(--new)
}

.notice.read {
  background: var(--surface);
  border-color: var(--line)
}

.notice-icon {
  color: var(--new)
}

.notice.read .notice-icon {
  color: var(--muted)
}

.notice-body {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.notice-note {
  white-space: normal
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius)
}

.table {
  width: 100%;
  border-collapse: collapse
}

.table th {
  text-align: left;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 650;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2)
}

.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle
}

.table tr:last-child td {
  border-bottom: 0
}

.table tr.inactive td {
  opacity: .55
}

.table-compact td {
  padding: 7px 14px;
  font-size: .9rem
}

.table .actions {
  text-align: right;
  white-space: nowrap
}

.table .actions>* {
  margin-left: 4px
}

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px
}

.panel .table-wrap {
  border: 0
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px
}

.fm {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 480px;
  position: relative;
  overflow: hidden
}

.fm-side {
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  max-height: 75vh;
  overflow-y: auto
}

.fm-side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 8px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 650;
  position: sticky;
  top: 0;
  background: var(--surface-2)
}

.fm-side-head .link-btn {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500
}

.fm-side-empty {
  padding: 0 16px
}

.folder-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 12px
}

.folder-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit
}

.folder-item:hover {
  background: var(--ink-soft)
}

.folder-item.selected {
  background: var(--ink);
  color: #fff
}

.folder-item.selected .folder-ic,
.folder-item.selected .folder-meta {
  color: rgba(255, 255, 255, .8)
}

.folder-item.is-new .folder-name {
  font-weight: 700
}

.folder-text {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.folder-name {
  font-size: .9rem
}

.folder-title {
  font-size: .85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.folder-meta {
  font-size: .76rem;
  color: var(--muted)
}

.fm-main {
  padding: 22px 24px;
  min-width: 0
}

.folder-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px
}

.folder-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  margin: 0
}

.folder-title-lg {
  margin: 4px 0 0;
  font-weight: 550
}

.access-strip {
  margin: 0 0 14px
}

.note-box {
  background: var(--warn-soft);
  border-left: 4px solid #e0a526;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 16px
}

.note-box p {
  margin: 6px 0
}

.note-box-neutral {
  background: var(--ink-soft);
  border-left-color: var(--ink)
}

.fname {
  display: flex;
  align-items: center;
  gap: 10px
}

.fname a {
  text-decoration: none;
  overflow-wrap: break-word;
  min-width: 0
}

.fname a:hover {
  text-decoration: underline
}

.fm-main .table-wrap {
  border-radius: 8px
}

.file-badge {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  padding: 3px 5px;
  min-width: 40px;
  text-align: center;
  border-radius: 4px;
  background: #eceae4;
  color: #555;
  flex: none
}

.file-badge.k-pdf {
  color: #a3291f
}

.file-badge.k-cad {
  background: #e2ecf8;
  color: #1f4f8a
}

.file-badge.k-img {
  background: #e6f2e6;
  color: #2f6b34
}

.file-badge.k-zip {
  background: #f2ece0;
  color: #7a5a1a
}

.file-badge.k-xls {
  background: #e3f3ec;
  color: #1e6b47
}

.file-badge.k-doc {
  background: #e6e9f7;
  color: #33449a
}

.history {
  margin-top: 18px;
  font-size: .88rem
}

.history summary {
  cursor: pointer;
  color: var(--muted)
}

.history ul {
  padding-left: 18px
}

.drop-hint {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 50px 20px;
  color: var(--muted)
}

.drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 58, 95, .82);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 50;
  text-align: center;
  font-size: 1.1rem;
  pointer-events: none
}

.drop-overlay>div {
  border: 3px dashed rgba(255, 255, 255, .7);
  border-radius: 18px;
  padding: 50px 70px
}

.drop-overlay[hidden] {
  display: none
}

.dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(560px, 94vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25)
}

.dialog-wide {
  width: min(780px, 96vw)
}

.dialog::backdrop {
  background: rgba(20, 26, 34, .45)
}

/* Eén schuifbalk: terwijl een venster openstaat, scrollt de achtergrond niet mee. */
html:has(dialog.dialog[open]) { overflow: hidden; }

.dialog .form {
  padding: 20px 24px;
  max-height: 88vh;
  overflow-y: auto
}

.dialog .form>* {
  flex-shrink: 0
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.dialog-head h2 {
  margin: 0
}

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px
}

.section-title {
  font-size: .95rem;
  margin: 6px 0 -4px
}

.upload-files {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto
}

.uf {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-size: .9rem
}

.uf:last-child {
  border-bottom: 0
}

.uf-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.uf-size,
.uf-state {
  font-size: .82rem
}

.uf.busy {
  background: var(--ink-soft)
}

.uf.ok .uf-state {
  color: var(--ok);
  font-weight: 700
}

.uf.err {
  background: var(--danger-soft)
}

.uf.err .uf-state {
  color: var(--danger)
}

.progress-bar {
  height: 8px;
  background: #eceae4;
  border-radius: 4px;
  overflow: hidden
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width .2s
}

.picker {
  border: 1px solid var(--line);
  border-radius: 8px
}

.picker-head,
.picker-row {
  display: grid;
  grid-template-columns: 1fr 90px 120px;
  gap: 8px;
  align-items: center;
  padding: 8px 12px
}

.picker-head {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 650;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0
}

.picker-row {
  border-bottom: 1px solid var(--line)
}

.picker-row.on {
  background: #f7faff
}

.picker-row.inactive {
  opacity: .5
}

.picker-who {
  display: flex;
  flex-direction: column;
  line-height: 1.3
}

.picker .c {
  text-align: center;
  justify-self: center
}

.form .picker label.c {
  display: block
}

.picker-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--ink)
}

.picker-row .pk-note {
  grid-column: 1/-1;
  font-size: .9rem
}

.picker-tools {
  padding: 8px 12px;
  color: var(--muted)
}

body.bare {
  background: var(--bg)
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh
}

.auth-side {
  background: var(--ink);
  color: #fff;
  padding: 46px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden
}

.auth-side::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -150px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: none
}

.auth-side-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 650;
  gap: 0
}

.auth-side-brand .brand-mark {
  margin-bottom: 8px
}

.auth-side-msg h2 {
  font-size: 2.3rem;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 14px
}

.auth-side-msg h2 em {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px
}

.auth-side-msg p {
  max-width: 380px;
  line-height: 1.7;
  opacity: .78;
  margin: 0
}

.auth-side-foot {
  font-size: .78rem;
  opacity: .5
}

.auth-main {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px 24px
}

.auth-form,
.auth-main>.flash {
  width: min(360px, 100%)
}

.auth-form h1 {
  font-size: 1.55rem;
  margin: 0 0 6px
}

.auth-lead {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 24px;
  line-height: 1.55
}

.auth-form .form label {
  font-size: .85rem;
  font-weight: 500
}

.auth-form .form input {
  height: 44px
}

.auth-form .btn-block {
  margin-top: 6px
}

.auth-alt {
  font-size: .85rem;
  margin: 18px 0 0
}

.auth-alt a {
  color: var(--muted)
}

.pw-field {
  position: relative;
  display: block
}

.pw-field input {
  padding-right: 44px;
  width: 100%
}

.pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: 0 0;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  border-radius: 6px
}

.pw-eye.on,
.pw-eye:hover {
  color: var(--ink)
}

.pw-meter {
  display: flex;
  gap: 4px;
  margin-top: 8px
}

.pw-meter i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background .2s
}

.pw-meter[data-score="1"] i:nth-child(-n+1) {
  background: var(--danger)
}

.pw-meter[data-score="2"] i:nth-child(-n+2) {
  background: var(--warn)
}

.pw-meter[data-score="3"] i:nth-child(-n+3) {
  background: var(--ok)
}

.pw-meter[data-score="4"] i {
  background: var(--pw-strong, #4f9a6a)
}

.pw-hint {
  display: block;
  font-size: .76rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
  min-height: 1em
}

@media (max-width:860px) {
  .auth-split {
    grid-template-columns: 1fr
  }

  .auth-side {
    padding: 26px 24px 30px;
    gap: 22px
  }

  .auth-side-msg h2 {
    font-size: 1.6rem;
    margin-bottom: 8px
  }

  .auth-side-msg p {
    font-size: .9rem
  }

  .auth-side-foot {
    display: none
  }

  .auth-main {
    padding: 30px 22px 50px;
    align-content: start
  }

  .topbar {
    padding: 0 14px;
    gap: 12px
  }

  .mainnav a span,
  .me {
    display: none
  }

  .mainnav a {
    font-size: 0;
    gap: 0
  }

  .mainnav a .ic {
    font-size: 15px
  }

  .main {
    padding: 18px 14px 40px
  }

  .fm {
    grid-template-columns: 1fr
  }

  .fm-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 260px
  }

  .folder-head,
  .page-head,
  .panel-head,
  .project-head {
    flex-direction: column
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .picker-head,
  .picker-row {
    grid-template-columns: 1fr 60px 80px
  }
}

.cat-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.cat-field legend {
  font-size: .88rem;
  font-weight: 550;
  padding: 0 4px
}

.cat-field .cat-filter {
  padding: 6px 10px;
  font-size: .9rem
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 2px 10px;
  max-height: 260px;
  overflow-y: auto
}

.form .cat-check {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-weight: 400;
  font-size: .9rem;
  padding: 3px 4px;
  border-radius: 5px;
  cursor: pointer
}

.form .cat-check:hover {
  background: var(--ink-soft)
}

.cat-check input {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  flex: none
}

.cat-check:has(input:checked) {
  color: var(--ink);
  font-weight: 600
}

.form .cat-new {
  font-weight: 450;
  font-size: .85rem
}

.cat-cell {
  max-width: 320px
}

.cat-cell .chip {
  margin: 2px 4px 2px 0
}

.chip-link {
  text-decoration: none
}

.chip-link.on,
.chip-link:hover {
  background: var(--ink);
  color: #fff
}

.cat-add {
  display: flex;
  gap: 8px
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px
}

.cat-list li {
  border-bottom: 1px solid var(--line)
}

.cat-list li:last-child {
  border-bottom: 0
}

.cat-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px
}

.cat-row input {
  padding: 6px 9px
}

.fm-side-sub {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px
}

.fm-group {
  margin: 0 8px 4px;
  border-radius: 8px
}

.fm-group[open] {
  background: rgba(31, 58, 95, .03)
}

.fm-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
  flex-wrap: wrap
}

.fm-group-label::-webkit-details-marker {
  display: none
}

.fm-group-label:hover {
  background: var(--ink-soft)
}

.fm-group-label .pill {
  margin-left: 0
}

.fm-group .folder-list {
  padding: 0 0 6px
}

.fm-sub-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 650;
  padding: 6px 10px 2px 34px
}

.fm-group .fm-side-empty {
  padding-left: 34px;
  margin: 2px 0 6px
}

.new-dot-inline {
  background: var(--new);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 9px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-left: auto
}

.folder-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 6px
}

.folder-kicker.is-offerte {
  color: var(--new)
}

.offerte-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--new-soft);
  border: 1px solid #f3cfaa;
  border-left: 4px solid var(--new);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px
}

.offerte-alert .btn {
  margin-left: auto
}

.kind-choice {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.kind-choice legend {
  font-size: .88rem;
  font-weight: 550;
  margin-bottom: 6px;
  padding: 0
}

.form .kind-opt {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  font-weight: 400
}

.kind-opt:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink-soft)
}

.kind-opt input {
  margin-top: 3px;
  accent-color: var(--ink)
}

.offerte-req {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: var(--muted)
}

@media (max-width:860px) {
  .kind-choice {
    grid-template-columns: 1fr
  }
}

.pill-danger {
  background: var(--danger-soft);
  color: var(--danger)
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
  margin-left: 6px;
  background: #eceae4;
  color: var(--muted)
}

.tab-count.warn {
  background: var(--new);
  color: #fff
}

.scope-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px
}

.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  background: var(--surface-2)
}

.stat-n {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1
}

.stat-l {
  font-size: .82rem;
  color: var(--muted)
}

.stat.ok .stat-n {
  color: var(--ok)
}

.stat.warn .stat-n {
  color: var(--new)
}

.stat.danger .stat-n {
  color: var(--danger)
}

.scope-table tr.st-geen_aannemer td:first-child {
  box-shadow: inset 3px 0 0 var(--danger)
}

.scope-table tr.st-wacht td:first-child {
  box-shadow: inset 3px 0 0 var(--new)
}

.scope-table tr.st-ontvangen td:first-child {
  box-shadow: inset 3px 0 0 var(--ok)
}

.chip-ok {
  background: var(--ok-soft);
  color: var(--ok)
}

.chip-wait {
  background: var(--new-soft);
  color: #9a4d0f
}

.chip-date {
  opacity: .75;
  font-size: .75rem
}

.add-contractor {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
  background: var(--surface-2)
}

.add-contractor .toolbar {
  margin-bottom: 10px
}

.lot-field {
  background: #fff
}

.lot-choice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.lot-choice legend {
  font-size: .88rem;
  font-weight: 550;
  padding: 0 4px
}

.form .lot-opt {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 450
}

.kind-opt.disabled {
  opacity: .55;
  cursor: not-allowed
}

.folder-lot {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--new)
}

.folder-item.selected .folder-lot {
  color: #ffd7b0
}

.scope-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px
}

.scope-track {
  height: 6px;
  border-radius: 3px;
  background: #f3d9c2;
  overflow: hidden
}

.scope-track span {
  display: block;
  height: 100%;
  background: var(--ok)
}

.warn-text {
  color: #9a4d0f;
  font-weight: 600
}

.ok-text {
  color: var(--ok);
  font-weight: 600
}

.view-switch {
  display: inline-flex;
  gap: 4px;
  background: #e9e6df;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px
}

.view-switch a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 550;
  font-size: .9rem
}

.view-switch a:hover {
  color: var(--text)
}

.view-switch a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08)
}

.view-switch .tab-count {
  margin-left: 2px
}

.doclist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px
}

.doclist-tools {
  margin: 0;
  align-items: center
}

.doclist-tools input[type=search] {
  min-width: 240px
}

.doc-table tbody.doc+tbody.doc tr.doc-row td {
  border-top: 1px solid var(--line)
}

.doc-table td {
  border-bottom: 0
}

.doc-table .badge-new {
  margin-left: 6px
}

.ver-toggle {
  font: inherit;
  font-size: .85rem;
  background: var(--ink-soft);
  color: var(--ink);
  border: 0;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  font-weight: 600
}

.ver-toggle:hover {
  background: #d9e3ef
}

.ver-toggle .chev {
  display: inline-block;
  transition: transform .15s
}

.ver-toggle .chev::after {
  content: "▾"
}

.ver-toggle[aria-expanded=true] .chev::after {
  content: "▴"
}

.ver-row td {
  background: var(--surface-2);
  padding-top: 4px
}

.ver-list {
  list-style: none;
  margin: 0 0 0 22px;
  padding: 0 0 4px 50px;
  border-left: 2px solid var(--line-strong)
}

.ver-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 6px 14px;
  position: relative;
  flex-wrap: wrap
}

.ver-list li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  transform: translate(-50%, -50%);
  margin-left: -1px
}

.ver-list li.current::before {
  background: var(--ok)
}

.ver-label {
  font-size: .8rem;
  font-weight: 700;
  min-width: 100px
}

.ver-list li.current .ver-label {
  color: var(--ok)
}

.ver-actions {
  margin-left: auto;
  display: inline-flex;
  gap: 2px
}

@media (max-width:860px) {
  .scope-stats {
    grid-template-columns: 1fr 1fr
  }

  .ver-list {
    padding-left: 10px;
    margin-left: 8px
  }

  .doclist-tools input[type=search] {
    min-width: 0
  }
}

.pin-btn {
  background: 0 0;
  border: 0;
  padding: 3px;
  border-radius: 6px;
  cursor: pointer;
  color: #c2bdb2;
  display: inline-flex;
  flex: none
}

.pin-btn .ic {
  width: 17px;
  height: 17px;
  transform: rotate(35deg)
}

.pin-btn:hover {
  color: var(--ink);
  background: var(--ink-soft)
}

.pin-btn.on {
  color: var(--new)
}

.pin-btn.on .ic {
  transform: none;
  fill: currentColor
}

.pin-btn.static {
  cursor: default
}

.pin-btn.static:hover {
  background: 0 0;
  color: var(--new)
}

tbody.doc.is-pinned tr.doc-row td {
  background: #fff8f0
}

tbody.doc.is-pinned+tbody.doc:not(.is-pinned) tr.doc-row td {
  border-top: 2px solid #f3cfaa
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0)
}

.doc-table td.sym-col,
.doc-table th.sym-col {
  width: 44px;
  padding-right: 0;
  text-align: center
}

.new-sym {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--new);
  color: #fff;
  box-shadow: 0 0 0 4px var(--new-soft);
  animation: 2s ease-in-out 3 pulse
}

.new-sym .ic {
  width: 16px;
  height: 16px;
  stroke-width: 2.4
}

tbody.doc.is-new tr.doc-row td {
  background: #fffaf4
}

tbody.doc.is-new tr.doc-row td:first-child {
  box-shadow: inset 3px 0 0 var(--new)
}

tbody.doc.is-new .fname a {
  font-weight: 650
}

.new-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--new-soft);
  border: 1px solid #f3cfaa;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px
}

.new-banner .new-sym {
  width: 26px;
  height: 26px;
  animation: none
}

.new-banner .check {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.pill-new {
  background: var(--new);
  color: #fff
}

.star-btn {
  background: 0 0;
  border: 0;
  padding: 3px;
  border-radius: 6px;
  cursor: pointer;
  color: #c9c4ba;
  display: inline-flex;
  flex: none
}

.star-btn .ic {
  width: 17px;
  height: 17px
}

.star-btn:hover {
  color: #2d6cdf;
  background: #e8f0fd
}

.star-btn.on {
  color: #2d6cdf
}

.star-btn.on .ic {
  fill: currentColor
}

tbody.doc.is-starred:not(.is-pinned) tr.doc-row td {
  background: #f5f8fe
}

.crumb-link {
  color: inherit;
  text-decoration: none
}

.crumb-link:hover {
  text-decoration: underline
}

.crumb-sep {
  color: var(--muted);
  margin: 0 6px
}

.sub-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px
}

.btn.danger-text {
  color: var(--danger)
}

.btn.danger-text:hover {
  border-color: var(--danger);
  color: var(--danger)
}

.dir-row td {
  background: var(--surface-2)
}

.dir-row a {
  font-weight: 600;
  text-decoration: none
}

.dir-row a:hover {
  text-decoration: underline
}

.dir-ic {
  color: var(--ink);
  display: inline-flex
}

.dir-ic .ic {
  width: 20px;
  height: 20px;
  fill: var(--ink-soft)
}

.uf-dir {
  color: var(--muted)
}

.assign-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ok-soft);
  color: #1d5636;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0;
  font-size: .9rem
}

.archive-note {
  margin: -4px 0 14px
}

.archive-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eceae4;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px
}

.folder-head h2 {
  flex-wrap: wrap;
  row-gap: 2px
}

.badge-new,
.folder-head h2 .crumb-link {
  white-space: nowrap
}

.doc-table .fname {
  flex-wrap: wrap;
  row-gap: 4px
}

.fm-section {
  border-top: 1px solid var(--line)
}

.fm-section:first-of-type {
  border-top: 0
}

.fm-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 650;
  cursor: pointer;
  list-style: none
}

.fm-section-label::-webkit-details-marker {
  display: none
}

.fm-section-label::before {
  content: '▸';
  color: var(--muted);
  font-size: .8rem;
  width: 10px
}

.fm-section[open]>.fm-section-label::before {
  content: '▾'
}

.fm-section-label:hover {
  background: var(--ink-soft)
}

.fm-section-label .ic {
  color: var(--ink)
}

.sec-count {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  background: #eceae4;
  border-radius: 10px;
  padding: 1px 7px
}

.sec-lock {
  font-size: .8rem
}

.sec-add {
  margin-left: auto;
  background: 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0
}

.sec-add:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink)
}

.sec-add .ic {
  width: 14px;
  height: 14px
}

.fm-section .folder-list {
  padding-left: 14px
}

.fm-section .fm-side-empty {
  padding-left: 34px;
  margin-top: 0
}

.fm-section .fm-group-label {
  cursor: default;
  padding-left: 22px;
  font-size: .85rem
}

.fm-section .fm-group-label:hover {
  background: 0 0
}

.picker-1.picker-head,
.picker-1.picker-row {
  grid-template-columns: 1fr 130px
}

.section-choice {
  grid-template-columns: repeat(4, 1fr)
}

.staff-offerte select {
  width: 100%
}

.section-choice .kind-opt {
  align-items: center
}

.sec-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: -4px 0 14px;
  width: 100%
}

.sec-filter .chip {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: .82rem
}

.sec-filter .chip.on {
  background: var(--ink);
  color: #fff
}

.sec-filter .chip.on .muted {
  color: rgba(255, 255, 255, .7)
}

.phase-tabs {
  flex-wrap: wrap
}

.phase-tabs .tab-archive {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.pill-phase {
  vertical-align: 4px;
  font-size: .75rem
}

.pill-phase.ph-ontwerp {
  background: #efe7f6;
  color: #6a3d8f
}

.pill-phase.ph-verfijnen {
  background: #e3f1f1;
  color: #2a6f73
}

.pill-phase.ph-almost {
  background: #f3eedc;
  color: #7a6420
}

.pill-phase.ph-plannen {
  background: #e6e9f7;
  color: #33449a
}

.pill-phase.ph-offertes {
  background: var(--new-soft);
  color: #9a4d0f
}

.pill-phase.ph-uitvoering {
  background: var(--ink-soft);
  color: var(--ink)
}

.pill-phase.ph-voltooid {
  background: var(--ok-soft);
  color: var(--ok)
}

.fiche-title {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.fiche-title a {
  text-decoration: none
}

.fiche-title a:hover {
  text-decoration: underline
}

.fiche-file {
  font-size: .78rem
}

.fiche-note {
  color: var(--text);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 4px
}

.fiche-table .fname {
  align-items: flex-start
}

.chip-project {
  background: #eef3ea;
  color: #2f6b34;
  text-decoration: none
}

.chip-scope {
  box-shadow: inset 0 0 0 1px var(--ok)
}

.fiche-drop {
  border: 2px dashed var(--line-strong);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  color: var(--muted)
}

.fiche-drop.over {
  border-color: var(--ink);
  background: var(--ink-soft);
  color: var(--ink)
}

.fiche-drop p {
  margin: 6px 0 0
}

.fiche-group {
  margin: 22px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem
}

.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px
}

.link-list {
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px
}

.form .link-item {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  cursor: pointer
}

.form .link-item:hover {
  background: var(--ink-soft)
}

.link-item>span {
  display: flex;
  flex-direction: column
}

.proj-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr))
}

@media (max-width:860px) {
  .section-choice {
    grid-template-columns: 1fr
  }

  .phase-tabs .tab-archive {
    margin-left: 0
  }
}

.map-nav {
  padding: 4px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.map-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 600
}

.map-link:hover {
  background: var(--ink-soft)
}

.map-link .folder-ic .ic {
  width: 22px;
  height: 22px
}

.map-link .new-dot {
  font-size: 10px
}

.map-name {
  flex: 1;
  min-width: 0
}

.map-link.open:not(.active) {
  background: var(--ink-soft)
}

.map-link.active {
  background: var(--ink);
  color: #fff
}

.map-link.active .folder-ic {
  color: rgba(255, 255, 255, .85)
}

.map-link.active .sec-count {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

.map-tree {
  list-style: none;
  margin: 2px 0 6px;
  padding: 0
}

.map-tree li {
  padding-left: calc(22px + var(--depth, 0) * 16px)
}

.map-tree a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.map-tree a .ic {
  width: 16px;
  height: 16px;
  color: var(--ink);
  flex: none
}

.map-tree a:hover {
  background: var(--ink-soft)
}

.map-tree a.active {
  background: var(--ink);
  color: #fff
}

.map-tree a.active .ic {
  color: #fff
}

.map-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.map-head h2 {
  margin: 0 0 2px
}

.map-head p {
  margin: 0
}

.map-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 1.2rem
}

.map-crumbs>.ic {
  color: var(--ink)
}

.crumb-sep {
  color: var(--muted);
  font-weight: 400
}

.doc-name {
  display: inline-flex;
  flex-direction: column;
  min-width: 0
}

.doc-path {
  display: inline-flex;
  align-items: center;
  gap: 4px
}

.doc-path .ic {
  width: 13px;
  height: 13px
}

.new-text {
  color: var(--new)
}

.uploads {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface)
}

.uploads>summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.upload-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px
}

.upload-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line)
}

.upload-list li.is-new {
  background: var(--new-soft)
}

.upload-list li.focus {
  box-shadow: inset 4px 0 0 var(--ink);
  background: var(--ink-soft)
}

.upload-list .note-box {
  margin: 6px 0 0;
  padding: 6px 10px;
  font-size: .88rem
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none
}

.email-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px
}

.offerte-who {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 1rem;
  margin: 18px 0 8px
}

.offerte-who .ic {
  color: var(--ink)
}

.offerte-empty {
  margin: 0 0 8px 26px
}

.is-new-row {
  background: var(--new-soft)
}

@media (max-width:760px) {
  .upload-list li {
    flex-direction: column
  }

  .map-tree li {
    padding-left: calc(12px + var(--depth, 0) * 12px)
  }
}

.doc-table .fname {
  flex-wrap: nowrap
}

.doc-table .doc-name {
  flex: 0 1 auto
}

.doc-table .fname .badge-new {
  flex: none
}

.fm-side:has(.map-nav) {
  max-height: none
}

.uploads>summary .muted {
  font-weight: 400;
  flex-basis: 100%
}

.map-link .folder-ic {
  margin-right: 6px
}

.melding-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--warn-soft);
  border: 1px solid #ecd9a0;
  border-left: 4px solid #e0a526;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px
}

.melding-banner>.ic {
  color: var(--warn);
  flex: none;
  margin-top: 2px
}

.melding-banner p {
  margin: 6px 0 0
}

.file-badge.k-pdf {
  background: #e3e9f1;
  color: var(--ink)
}

.topbar-log {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .55);
  margin-right: 26px
}

.topbar-log.active,
.topbar-log:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1)
}

.topbar-log .ic {
  width: 18px;
  height: 18px
}

.doc-table td.upd {
  font-size: .78rem;
  white-space: nowrap;
  line-height: 1.35
}

.doc-table td.upd .muted {
  font-size: .74rem;
  display: inline-block;
  max-width: 17ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom
}

.doc-table td.actions {
  white-space: nowrap
}

.doc-table tbody.doc.expanded tr td {
  background: #f1efea
}

.doc-table tbody.doc.expanded tr.doc-row td {
  border-bottom: 0
}

.doc-table tbody.doc.expanded tr.doc-row td:first-child,
.doc-table tbody.doc.expanded tr.ver-row td {
  box-shadow: inset 3px 0 0 var(--ink)
}

.ver-cell {
  padding-top: 0;
  padding-bottom: 10px
}

.ver-cell .ver-list {
  margin-left: calc(var(--ver-x, 60px) - 1px);
  padding-left: 18px
}

.doc-table tbody.doc.expanded .ver-list {
  border-left-color: var(--ink)
}

.client-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: inherit;
  font-size: .72rem;
  font-weight: 650;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap
}

.client-btn:hover {
  border-color: var(--line-strong)
}

.client-btn.on {
  background: var(--ok-soft);
  border-color: #bfdcc9;
  color: var(--ok)
}

.client-btn:not(.on) span {
  text-decoration: line-through
}

.pill-client {
  background: #efe8f7;
  color: #5b3d8a
}

.check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 4px
}

.check-row .check {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.client-table td.c,
.client-table th.c {
  text-align: center;
  width: 92px
}

.client-table .always {
  color: var(--ok);
  font-weight: 700
}

.client-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  position: relative
}

.client-btn .ic {
  width: 15px;
  height: 15px
}

.client-btn:not(.on)::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  border-top: 1.5px solid currentColor;
  transform: rotate(-35deg)
}

.client-btn.custom::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--surface)
}

.client-btn.static {
  cursor: default;
  width: 22px;
  height: 22px;
  display: inline-flex
}

.picker-who .pill-client {
  margin-left: 6px
}

.picker-who strong {
  display: inline-flex;
  align-items: center
}

.topbar-rp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: -6px
}

.topbar-rp.solo {
  margin-right: 26px
}

.topbar-rp.active,
.topbar-rp:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1)
}

.topbar-rp.on {
  color: #1f3a5f;
  background: #f3c969
}

.rp-bar {
  position: sticky;
  top: 58px;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #f3c969;
  color: #3d2f0a;
  padding: 7px 24px;
  font-size: .88rem
}

.rp-bar .ic {
  width: 18px;
  height: 18px
}

.rp-bar a,
.rp-bar button {
  color: #3d2f0a;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  background: 0 0;
  border: 0;
  padding: 0;
  cursor: pointer
}

.rp-bar>span {
  flex: 1 1 auto
}

@media (max-width:700px) {
  .rp-bar {
    padding: 7px 14px
  }

  .rp-bar-note {
    display: none
  }
}

.page-head h1 .ic {
  width: 26px;
  height: 26px;
  vertical-align: -4px
}

.rp-current {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fdf3d8;
  border: 1px solid #f0d58e;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px
}

.rp-current>span {
  flex: 1
}

.rp-who {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px
}

.rp-who select {
  min-width: 280px;
  max-width: 100%
}

.rp-form .panel {
  margin-bottom: 16px
}

.rp-form h3 {
  margin: 0 0 4px
}

.rp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px
}

.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: .85rem;
  cursor: pointer;
  background: #fff
}

.rp-chip:has(input:checked) {
  background: var(--ink-soft);
  border-color: transparent;
  color: var(--ink)
}

.rp-proj {
  padding: 9px 0;
  border-top: 1px solid var(--line)
}

.rp-proj:first-of-type {
  border-top: 0
}

.rp-proj .code {
  font-weight: 650;
  color: var(--muted);
  margin-right: 4px
}

.rp-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0 28px
}

.rp-sub[hidden] {
  display: none
}

.rp-diff {
  display: inline-block;
  margin-left: 6px;
  font-size: .68rem;
  font-weight: 700;
  color: #8a5a00;
  background: #fdf0cf;
  border-radius: 10px;
  padding: 1px 6px;
  vertical-align: 1px
}

.rp-actions {
  position: sticky;
  bottom: 0;
  background: var(--bg, #f6f4ef);
  padding: 12px 0;
  display: flex;
  gap: 10px
}

.log-actor {
  color: #8a5a00;
  font-weight: 600
}

.pill-rp {
  background: #fdf0cf;
  color: #8a5a00
}

.pill.pill-bedenker {
  background: #d13b2f;
  color: #fff
}

/* Logboek: avatar vooraan in de "Wie"-kolom. */
.log-wie {
  display: flex;
  align-items: center;
  gap: 8px
}

.log-wie .av {
  width: 26px;
  height: 26px;
  flex: none
}

.log-wie-t {
  min-width: 0
}

.rp-proj .check-row {
  margin: 0;
  gap: 10px;
  cursor: pointer
}

.log-actor .ic {
  width: 15px;
  height: 15px;
  vertical-align: -2px
}

.seen-btn {
  color: var(--muted)
}

.seen-btn:hover {
  color: var(--ink)
}

.seen-pop {
  position: absolute;
  z-index: 60;
  width: 380px;
  max-width: calc(100vw - 16px);
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, .16);
  padding: 12px 14px;
  font-size: .88rem
}

.seen-pop .sp-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  word-break: break-word
}

.seen-pop .sp-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ok, #2f7d4f)
}

.seen-pop .sp-not .sp-label {
  color: var(--muted)
}

.seen-pop .sp-label .ic {
  width: 15px;
  height: 15px
}

.seen-pop ul {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0
}

.seen-pop li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 4px 0;
  border-top: 1px dashed var(--line)
}

.seen-pop li:first-child {
  border-top: 0
}

.seen-pop .sp-name {
  font-weight: 600
}

.seen-pop .pill {
  margin-left: 0
}

.seen-pop .sp-at {
  margin-left: auto;
  font-size: .8rem;
  white-space: nowrap
}

.seen-pop .sp-not .sp-at {
  white-space: normal;
  font-size: .76rem
}

.seen-pop .sp-foot {
  margin: 6px 0 0;
  font-size: .74rem
}

.me-menu {
  position: relative
}

.me-menu>summary {
  list-style: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px
}

.me-menu>summary::-webkit-details-marker {
  display: none
}

.me-menu>summary:hover,
.me-menu[open]>summary {
  background: rgba(255, 255, 255, .1)
}

.me-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  width: 300px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  padding: 10px
}

.me-pop-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 2px 6px 6px
}

.theme-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: 0 0;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit
}

.theme-opt:hover {
  background: var(--surface-2)
}

.theme-opt.on {
  border-color: var(--line-strong)
}

.theme-opt>span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3
}

.theme-opt small {
  color: var(--muted);
  font-size: .76rem
}

.theme-opt .ic {
  color: var(--ok)
}

.theme-sw {
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line)
}

.theme-sw i {
  flex: 1
}

.project-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: .85rem;
  color: var(--muted)
}

.project-switch label {
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.project-switch select {
  width: auto;
  max-width: 340px;
  padding: 5px 10px;
  font-size: .88rem
}

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 38px 42px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden
}

.welcome::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none
}

.welcome .project-switch {
  color: rgba(255, 255, 255, .7);
  margin-bottom: 18px
}

.welcome .project-switch select {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .25)
}

.welcome .project-switch option {
  color: #000
}

.welcome-greet {
  font-size: 1.15rem;
  margin: 0 0 6px;
  opacity: .85
}

.welcome-greet em {
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px
}

.welcome-title {
  font-size: 3rem;
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: -.02em;
  color: #fff
}

.welcome-addr {
  margin: 0 0 18px;
  opacity: .65
}

.welcome-text {
  max-width: 640px;
  line-height: 1.7;
  opacity: .88;
  margin: 0 0 22px
}

.welcome-text strong {
  font-weight: 600
}

.welcome-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: .88rem;
  opacity: .9
}

.welcome-facts>span {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 5px 12px
}

.welcome-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--new);
  color: #fff;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600
}

.welcome-new:hover {
  filter: brightness(1.08)
}

.welcome-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 1
}

.welcome-label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .55;
  margin-bottom: 8px
}

.welcome-contact {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.welcome-contact strong {
  font-size: 1.05rem;
  font-weight: 600
}

.welcome-contact a {
  color: #fff;
  opacity: .85;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  word-break: break-all
}

.welcome-contact a:hover {
  opacity: 1;
  text-decoration: underline
}

.phase-steps {
  list-style: none;
  margin: 0;
  padding: 0
}

.phase-steps li {
  position: relative;
  padding: 0 0 14px 28px;
  font-size: .92rem;
  opacity: .5
}

.phase-steps li span {
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: 0 0
}

.phase-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 19px;
  bottom: 2px;
  width: 1px;
  background: currentColor;
  opacity: .5
}

.phase-steps li.done {
  opacity: .8
}

.phase-steps li.done span {
  background: currentColor
}

.phase-steps li.now {
  opacity: 1;
  font-weight: 600
}

.phase-steps li.now span {
  background: var(--new);
  border-color: var(--new);
  box-shadow: 0 0 0 5px rgba(224, 117, 31, .22)
}

@media (max-width:860px) {
  .welcome {
    grid-template-columns: 1fr;
    padding: 26px 22px;
    gap: 24px
  }

  .welcome-title {
    font-size: 2.2rem
  }
}

.client-maps {
  margin: 4px 0 26px
}

.cm-title {
  font-size: 1.35rem;
  margin: 0 0 16px;
  text-align: center
}

.cm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px 34px
}

.cm-blob {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 360px;
  max-width: 100%;
  aspect-ratio: 36/25;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 64px 42px;
  text-decoration: none;
  color: var(--text);
  background: var(--ink-soft);
  transition: transform .25s, box-shadow .25s
}

.cm-shape-1 {
  border-radius: 62% 38% 46% 54%/55% 48% 52% 45%
}

.cm-shape-2 {
  border-radius: 42% 58% 63% 37%/48% 60% 40% 52%
}

.cm-blob:hover {
  transform: translateY(-3px) rotate(-.6deg)
}

.cm-blob.on {
  box-shadow: 0 0 0 3px var(--surface, #fff), 0 0 0 5px var(--ink)
}

.cm-blob.has-img,
.cm-renders {
  color: #fff
}

.cm-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: center/cover no-repeat;
  transition: transform .6s
}

.cm-blob:hover .cm-img {
  transform: scale(1.05)
}

.cm-renders:not(.has-img) {
  background: linear-gradient(135deg, #d8c8b4, #8a6a4f 55%, #3a2d24)
}

.cm-blob.has-img::after,
.cm-renders::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .6))
}

.cm-plannen:not(.has-img) {
  background: linear-gradient(180deg, var(--surface-2), var(--ink-soft))
}

.cm-plan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  color: var(--muted);
  opacity: .28
}

.cm-label {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 600
}

.cm-count {
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: 4px
}

.cm-new {
  position: absolute;
  top: 34px;
  right: 60px;
  background: var(--new);
  color: #fff;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 11px
}

.cm-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  flex-basis: 100%
}

.cm-pill {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  color: var(--ink);
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.cm-pill.on,
.cm-pill:hover {
  background: var(--ink);
  color: #fff
}

.cm-dot {
  background: var(--new);
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  padding: 1px 7px
}

.fm.fm-full {
  grid-template-columns: 1fr
}

@media (max-width:700px) {
  .cm-row {
    gap: 16px
  }

  .cm-blob {
    width: calc(50% - 8px);
    padding: 18px 26px 24px
  }

  .cm-label {
    font-size: 1.25rem
  }

  .cm-new {
    top: 16px;
    right: 22px
  }
}

label>small.muted {
  display: block;
  font-weight: 400;
  font-size: .8rem;
  margin-top: 4px
}

.lot-choice[hidden],
.staff-offerte[hidden] {
  display: none
}

.section-choice.contractor-kind {
  grid-template-columns: repeat(2, 1fr)
}

.tabs {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
  padding: 5px;
  margin-bottom: 24px;
  background: var(--tab-track, var(--ink-soft));
  border: 0;
  border-radius: 999px
}

.tabs::-webkit-scrollbar {
  display: none
}

.tabs a {
  flex: none;
  margin: 0;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap
}

.tabs a:hover {
  background: rgba(0, 0, 0, .05);
  color: var(--text)
}

.tabs a.active {
  background: var(--ink);
  color: #fff;
  border: 0
}

/* Rollenspel: de gespeelde rol kan dit niet zien (vervaagd + arcering).
   Blijft klikbaar, zodat de beheerder kan bekijken wat die rol met een oude link te zien krijgt. */
.rp-cloak {
  position: relative;
  opacity: .55;
}
.rp-cloak:not(.active) {
  color: var(--muted) !important;
}
.rp-cloak::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 4px, color-mix(in srgb, var(--ink) 22%, transparent) 4px, color-mix(in srgb, var(--ink) 22%, transparent) 6px);
  pointer-events: none;
}
.rp-cloak:hover {
  opacity: .8;
}

.tabs a.active .tab-count {
  background: rgba(255, 255, 255, .22);
  color: inherit
}

.phase-tabs {
  display: flex;
  width: 100%
}

.phase-tabs .tab-archive {
  margin-left: auto !important
}

@media (max-width:860px) {

  .phase-tabs,
  .tabs {
    display: flex;
    flex-wrap: wrap;
    width: auto;
    border-radius: 18px;
    overflow: visible
  }

  .tabs a {
    padding: 8px 14px
  }

  .phase-tabs .tab-archive {
    margin-left: 0 !important
  }
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--new-soft);
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  width: fit-content;
  max-width: 100%
}

.notice-bar .ic {
  color: var(--new);
  width: 16px;
  height: 16px
}

.notice-bar-go {
  color: var(--new);
  font-weight: 600;
  margin-left: 6px
}

.notice-bar:hover .notice-bar-go {
  text-decoration: underline
}

.cover-btn.on {
  background: var(--new);
  color: #fff;
  border-radius: 50%
}

.pill-cover {
  background: var(--new-soft);
  color: var(--new)
}

.cover-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0
}

.cover-pick legend {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 8px;
  padding: 0
}

.form .cover-opt {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 104px;
  font-weight: 400;
  cursor: pointer;
  text-align: center
}

.cover-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.cover-im {
  display: grid;
  place-items: center;
  height: 66px;
  border-radius: 9px;
  background: var(--ink-soft) center/cover no-repeat;
  border: 2px solid transparent;
  font-size: .78rem;
  color: var(--muted)
}

.cover-opt small {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.cover-opt:has(input:checked) .cover-im {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--surface) inset
}

.cover-opt:has(input:checked) small {
  color: var(--text);
  font-weight: 600
}

.cover-opt:has(input:focus-visible) .cover-im {
  outline: 2px solid var(--ink);
  outline-offset: 2px
}

.project-card {
  padding: 0;
  overflow: hidden;
  min-height: 250px;
  justify-content: flex-end;
  color: #fff;
  border: 0;
  isolation: isolate;
  background: var(--ink)
}

.project-card>:not(.project-cover) {
  position: relative;
  margin: 0 20px
}

.project-card>:last-child {
  margin-bottom: 18px
}

.project-cover {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink) center/cover no-repeat;
  color: rgba(255, 255, 255, .5);
  transition: transform .5s
}

.project-card:hover .project-cover {
  transform: scale(1.04)
}

.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 15%, rgba(0, 0, 0, .75))
}

.project-cover svg {
  width: 100%;
  height: 100%;
  opacity: .3
}

.project-card-top {
  position: absolute !important;
  top: 16px;
  left: 0;
  right: 0
}

.project-card h2 {
  color: #fff;
  font-size: 1.4rem
}

.project-card .muted,
.project-card .project-meta,
.project-card .scope-bar .small {
  color: rgba(255, 255, 255, .82) !important
}

.project-card .code {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

.project-card .folder-ic {
  color: #fff
}

.project-card.has-new {
  box-shadow: inset 0 0 0 3px var(--new);
  border: 0
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.project-card .scope-track {
  background: rgba(255, 255, 255, .25)
}

.project-addr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .88);
  margin-top: 2px !important
}

.project-addr .ic {
  width: 14px;
  height: 14px
}

.contact-av {
  position: absolute !important;
  right: 18px;
  bottom: 16px;
  margin: 0 !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--new);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .75)
}

.project-card:has(.contact-av) .project-meta,
.project-card:has(.contact-av) .scope-bar {
  margin-right: 72px
}

.doc-table .actions>* {
  margin-left: 1px
}

.doc-table .actions .icon-btn {
  padding: 5px
}

.thumb-pop {
  position: absolute;
  z-index: 80;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
  pointer-events: none
}

.thumb-pop img {
  display: block;
  max-width: 300px;
  max-height: 300px;
  border-radius: 7px
}

.thumb-pop.loading {
  width: 120px;
  height: 90px;
  display: grid;
  place-items: center
}

.thumb-pop>.small {
  display: block;
  padding: 8px 10px
}

.thumb-spin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  animation: .8s linear infinite thumbspin
}

@keyframes thumbspin {
  to {
    transform: rotate(360deg)
  }
}

[data-thumb] {
  cursor: zoom-in
}

.doc-name a[data-thumb] {
  cursor: pointer
}

.me-pop-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line)
}

.me-pop-link:hover {
  background: var(--surface-2)
}

.storage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px
}

.storage-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.storage-stat strong {
  font-size: 1.5rem;
  font-weight: 600
}

.storage-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted)
}

.storage-bar,
.storage-quota {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden
}

.storage-bar i,
.storage-quota i {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 3px
}

.storage-bar-col {
  width: 160px
}

.storage-fiches td {
  background: var(--surface-2)
}

.storage-purge {
  margin-top: 22px;
  max-width: 760px
}

.storage-purge h3 {
  margin: 0 0 6px
}

.storage-purge-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px
}

@media (max-width:860px) {
  .storage-stats {
    grid-template-columns: 1fr 1fr
  }

  .storage-bar-col {
    display: none
  }
}

.storage-table td a {
  text-decoration: none;
  color: var(--text)
}

.storage-table td a:hover {
  text-decoration: underline
}

.topbar-log:has(+ .topbar-disk) {
  margin-right: 4px
}

.topbar-disk .ic {
  width: 19px;
  height: 19px
}

.topbar-rp {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, .85)
}

.topbar-rp .ic {
  stroke-width: 1.7;
  width: 31px;
  height: 31px;
  stroke-width: 1.4
}

.topbar-disk.active {
  background: #f3c969;
  color: #1f3a5f
}

.req-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  display: grid;
  gap: 10px
}

.req-box label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400
}

.req-box input[type=checkbox] {
  width: auto;
  margin: 0;
  flex: none
}

.req-main {
  align-items: flex-start !important
}

.req-main input {
  margin-top: 3px !important
}

.req-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-left: 24px
}

.req-date input {
  width: auto
}

.req-box textarea {
  margin-left: 24px;
  width: calc(100% - 24px)
}

.req-box input:disabled,
.req-box textarea:disabled {
  opacity: .5
}

.deadline-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 12px 16px;
  margin: 4px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2)
}

.deadline-strip label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400
}

.deadline-strip input[type=date] {
  width: auto
}

.deadline-strip input[type=number] {
  width: 64px
}

.deadline-strip input[type=checkbox] {
  width: auto;
  margin: 0
}

.deadline-ic .ic {
  width: 20px;
  height: 20px;
  color: var(--muted);
  display: block
}

.deadline-hint {
  flex-basis: 100%
}

.req-meta {
  margin-top: 6px
}

.dl-pill {
  display: inline-block;
  font-size: .75rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 20px;
  background: #efe7dd;
  color: #6f655b;
  white-space: nowrap
}

.dl-soon {
  background: var(--new-soft);
  color: #8a5326
}

.dl-late {
  background: #f6dcd2;
  color: #a34a2a
}

.remind-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-right: 6px;
  vertical-align: middle
}

.remind-cell .ic {
  width: 15px;
  height: 15px
}

.offerte-alert.late {
  border-left-color: #a34a2a
}

.form .req-box label,
.req-box label {
  flex-direction: row;
  align-items: center;
  font-size: inherit
}

.form .req-box .req-main {
  align-items: flex-start;
  font-weight: 400;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px
}

.notice-icon.offerte {
  background: var(--new);
  color: #fff;
  font-weight: 600;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  align-self: flex-start
}

.notice.read .notice-icon.offerte {
  background: #e3d8cc;
  color: #6f655b
}

.wt-tags {
  margin-top: 6px
}

.wt-tags code {
  background: var(--ink-soft);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: .82rem
}

.wt-section {
  margin-bottom: 18px
}

.wt-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line)
}

.wt-row.off .wt-edit {
  opacity: .55
}

.wt-edit textarea {
  width: 100%
}

.wt-preview {
  margin: 6px 2px 0;
  line-height: 1.55
}

.wt-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start
}

.wt-side select {
  width: 100%
}

.wt-side .check-row {
  margin: 0
}

.wt-btns {
  display: flex;
  gap: 6px;
  align-items: center
}

.wt-insert {
  display: flex;
  gap: 6px;
  margin-top: 6px
}

.wt-insert .chip {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: .78rem
}

.wt-add {
  background: 0 0
}

@media (max-width:760px) {
  .wt-row {
    grid-template-columns: 1fr
  }
}

.shrink-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 4px;
  background: var(--ink-soft, #faf8f5)
}

.form .shrink-box .shrink-toggle {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap
}

.shrink-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px
}

.form .shrink-box .shrink-opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
  background: #fff;
  font-weight: 400
}

.shrink-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.shrink-opt.on {
  border-color: var(--new, var(--accent));
  background: var(--new-soft, #eef3f9);
  box-shadow: 0 0 0 1px var(--new, var(--accent))
}

.shrink-opt.on strong::after {
  content: ' ✓'
}

.shrink-opt:focus-within {
  outline: 2px solid var(--new, var(--accent));
  outline-offset: 1px
}

.shrink-box.off .shrink-seg {
  opacity: .45
}

.shrink-box #shrink-total {
  margin: 8px 0 0
}

.shrink-box .save,
.uf .save {
  color: var(--ok);
  font-weight: 700
}

.uf-old {
  text-decoration: line-through;
  opacity: .6
}

@media (max-width:560px) {
  .shrink-seg {
    grid-template-columns: 1fr
  }
}

.wt-test {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin: -8px 0 22px;
  padding: 10px 14px;
  border: 1.5px dashed var(--new, var(--accent));
  border-radius: 10px;
  background: var(--new-soft, #eef3f9)
}

.wt-test-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  align-self: center
}

.wt-test-label .ic {
  width: 22px;
  height: 22px
}

.wt-test label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .8rem;
  font-weight: 600
}

.wt-test select {
  min-width: 180px;
  max-width: 340px;
  padding: 5px 8px;
  font-weight: 400
}

.wt-test .btn .ic {
  width: 15px;
  height: 15px
}

.wt-test-info {
  flex-basis: 100%
}

@media (min-width:701px) {
  .mob-only {
    display: none !important
  }
}

@media (max-width:700px) {
  html .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 0 10px 0 14px;
    gap: 0 6px
  }

  .topbar .brand {
    height: 56px
  }

  .mainnav {
    order: 3;
    flex: 0 0 calc(100% + 24px);
    margin: 0 -10px 0 -14px;
    padding: 0 8px 8px;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none
  }

  .mainnav:not(:has(a)) {
    display: none
  }

  html .mainnav a {
    flex: 1 1 0;
    min-width: 62px;
    color: rgba(255, 255, 255, .72);
    box-shadow: none;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px 6px;
    font-size: 11px !important;
    line-height: 1.1;
    white-space: nowrap;
    border-radius: 10px
  }

  html .mainnav a .ic {
    display: block;
    width: 20px;
    height: 20px
  }

  html .mainnav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    box-shadow: none
  }

  .mainnav a.nav-rp {
    display: flex !important
  }

  .mainnav a.nav-rp .ic {
    width: 24px;
    height: 24px;
    margin: -2px 0
  }

  html .mainnav a.nav-rp.on {
    background: var(--new, #f3c969);
    color: #fff
  }

  .topbar-right {
    gap: 2px
  }

  .topbar-log,
  .topbar-out,
  .topbar-rp {
    display: none !important
  }

  .bell {
    padding: 9px
  }

  .me-menu>summary {
    padding: 0;
    color: #fff;
    border-radius: 9px
  }

  .me-menu>summary .me {
    display: none
  }

  .me-burger {
    display: grid !important;
    place-items: center;
    width: 40px;
    height: 40px
  }

  .me-burger .ic {
    width: 24px;
    height: 24px
  }

  .me-burger .ic+.ic,
  .me-menu[open] .me-burger .ic:first-child {
    display: none
  }

  .me-menu[open] .me-burger .ic+.ic {
    display: block
  }

  .me-menu[open]>summary,
  .me-menu[open]>summary:hover {
    background: var(--new, #f3c969);
    color: #fff
  }

  .me-pop {
    position: fixed;
    top: 56px;
    right: 0;
    bottom: 0;
    width: min(310px, 88vw);
    border: 0;
    border-radius: 0 !important;
    overflow-y: auto;
    padding: 6px 10px 28px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .38)
  }

  .me-pop-who {
    display: flex !important;
    flex-direction: column;
    padding: 10px 8px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line)
  }

  .me-pop-who span {
    font-size: .8rem;
    color: var(--muted)
  }

  .me-pop .me-pop-link {
    display: flex !important;
    padding: 11px 8px;
    margin-bottom: 2px;
    border-bottom: 0
  }

  .me-pop .me-pop-link .ic {
    width: 20px;
    height: 20px;
    color: var(--muted)
  }

  .me-pop form[action="thema.php"] {
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 10px
  }

  .me-pop-out {
    display: block !important;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 6px
  }

  .me-pop-out .me-pop-link {
    width: 100%;
    background: 0 0;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-align: left
  }

  .desk-only {
    display: none !important
  }
}

.me-pop-link.act {
  background: var(--new-soft, #eef3f9);
  color: var(--new, var(--accent));
  font-weight: 600
}

.me-pop-link.act .ic {
  color: inherit !important
}

@media (max-width:700px) {
  .welcome .welcome-side {
    display: none
  }

  .wm-phase {
    display: block !important;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(243, 233, 223, .14)
  }

  .wm-bar {
    display: flex;
    gap: 4px;
    margin: 8px 0 6px
  }

  .wm-bar i {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: rgba(243, 233, 223, .18)
  }

  .wm-bar i.on {
    background: var(--new)
  }

  .wm-now {
    font-weight: 600;
    font-size: .95rem
  }

  .wm-now span {
    opacity: .6;
    font-weight: 400
  }

  .wm-contact {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(243, 233, 223, .07);
    border: 1px solid rgba(243, 233, 223, .12)
  }

  .wm-av {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--beige, #e9dccd);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .85rem
  }

  .wm-who {
    min-width: 0
  }

  .wm-who strong {
    display: block;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
  }

  .wm-who small {
    opacity: .6;
    font-size: .75rem
  }

  .wm-btns {
    margin-left: auto;
    display: flex;
    gap: 8px
  }

  .wm-btns a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cream, #fff);
    color: var(--ink);
    display: grid;
    place-items: center
  }

  .wm-btns .ic {
    width: 18px;
    height: 18px
  }

  .welcome-facts {
    gap: 8px
  }

  .client-tools {
    display: none !important
  }

  .doc-mobile {
    display: block !important
  }

  .doc-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 0 -2px 12px;
    padding: 2px;
    scrollbar-width: none
  }

  .chip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1px solid var(--line-strong, var(--line));
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .82rem;
    color: var(--text);
    text-decoration: none;
    background: var(--surface)
  }

  .chip-link .ic {
    width: 14px;
    height: 14px
  }

  .chip-link.on {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink)
  }

  .chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--new)
  }

  .doc-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }

  .doc-tile {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    color: var(--text);
    text-decoration: none
  }

  .doc-tile.is-new {
    border-color: var(--new);
    box-shadow: 0 0 0 1px var(--new)
  }

  .dt-thumb {
    position: relative;
    height: 112px;
    background: var(--ink-soft, #eee) center/cover no-repeat;
    display: grid;
    place-items: center
  }

  .dt-thumb.has-img .dt-ph {
    display: none
  }

  .dt-thumb.k-pdf.has-img {
    background-color: #fff;
    background-size: contain
  }

  .dt-ph .ic {
    width: 34px;
    height: 34px;
    color: var(--muted);
    opacity: .6
  }

  .dt-thumb .file-badge {
    position: absolute;
    left: 8px;
    top: 8px
  }

  .dt-new {
    position: absolute;
    right: 8px;
    top: 8px;
    background: var(--new);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: 4px 8px
  }

  .dt-name {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px
  }

  .dt-name strong {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word
  }

  .dt-name small {
    color: var(--muted);
    font-size: .72rem
  }
}

.form label.remember-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 2px 0 14px;
  font-size: .95em;
  cursor: pointer
}

.form label.remember-row input {
  width: auto;
  margin: 0;
  flex: none
}

.doc-row.ip-open>td {
  background: var(--surface-2)
}

.ip-row>td {
  padding: 0 !important;
  background: var(--surface-2);
  border-top: 0
}

.ip {
  padding: 4px 16px 18px;
  box-sizing: border-box;
  animation: .22s ip-open
}

@keyframes ip-open {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.ip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: .85rem
}

.ip-sp {
  flex: 1
}

.ip-count {
  color: var(--muted);
  min-width: 52px;
  text-align: center
}

.pv-b {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 7px;
  padding: 4px 10px;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap
}

.pv-b:hover {
  border-color: var(--text)
}

.pv-b.sm {
  padding: 2px 8px
}

.pv-b:disabled {
  opacity: .35;
  cursor: default
}

.pv-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  margin-left: 6px
}

.ip-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px
}

.ip-stage canvas,
.ip-stage img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12)
}

.ip-stage canvas {
  max-height: none
}

body.mv-lock {
  overflow: hidden
}

.mv {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 56px;
  z-index: 60;
  background: #121212;
  color: #fff;
  display: flex;
  flex-direction: column;
  animation: .2s mv-open
}

@keyframes mv-open {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.mv-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px
}

.mv-n {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column
}

.mv-n strong {
  font-weight: 500;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.mv-n small {
  opacity: .6;
  font-size: .75rem
}

.mv-x {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer
}

.mv-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 6px
}

.mv-stage canvas,
.mv-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block
}

.mv-stage canvas {
  height: auto;
  background: #fff
}

.mv-stage .muted {
  color: rgba(255, 255, 255, .6);
  text-align: center;
  padding: 20px
}

.mv-stage .thumb-spin {
  border-color: rgba(255, 255, 255, .2);
  border-top-color: #fff
}

.mv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer
}

.mv-nav.prev {
  left: 8px
}

.mv-nav.next {
  right: 8px
}

.mv-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: rgba(255, 255, 255, .6);
  padding: 8px 12px 0
}

.mv-foot .pv-pages {
  color: rgba(255, 255, 255, .8);
  margin: 0
}

.mv-foot .pv-b {
  background: rgba(255, 255, 255, .14);
  border: 0;
  color: #fff
}

.mv-bot {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom))
}

.mv-bot a {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: .85rem;
  text-decoration: none
}

.pv-pages[hidden] {
  display: none
}

.dp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap
}

.dp-btn svg {
  width: 16px;
  height: 16px;
  flex: none
}

.dp-btn i {
  font-style: normal;
  font-size: .75em;
  color: var(--muted)
}

.dp-btn.open,
.dp-btn:hover {
  border-color: var(--text)
}

.dp-btn.open {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06)
}

.dp-btn.empty {
  color: var(--muted);
  font-weight: 450
}

.dp-pop {
  position: fixed;
  z-index: 200;
  width: 300px;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  padding: 14px;
  font-size: .9rem
}

.dp-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px
}

.dp-quick button {
  font: inherit;
  font-size: .8rem;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer
}

.dp-quick button:hover {
  border-color: var(--line-strong)
}

.dp-quick button.on {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text)
}

.dp-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px
}

.dp-hd strong {
  font-weight: 600
}

.dp-hd button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: 0 0;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text)
}

.dp-hd button:hover:not(:disabled) {
  background: var(--surface-2)
}

.dp-hd button:disabled {
  opacity: .25;
  cursor: default
}

.dp-cal table {
  width: 100%;
  border-collapse: collapse;
  text-align: center
}

.dp-cal th {
  color: var(--muted);
  font-weight: 500;
  font-size: .72rem;
  padding: 4px 0
}

.dp-cal td {
  padding: 1px 0
}

.dp-cal td button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: 0 0;
  font: inherit;
  color: var(--text);
  cursor: pointer
}

.dp-cal td button:hover:not(:disabled) {
  background: var(--surface-2)
}

.dp-cal td button.out {
  color: var(--muted);
  opacity: .6
}

.dp-cal td button.today {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line-strong)
}

.dp-cal td button.sel {
  background: var(--text);
  color: var(--surface);
  font-weight: 600
}

.dp-cal td button:disabled {
  color: var(--muted);
  opacity: .35;
  text-decoration: line-through;
  cursor: default
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden
}

.stepper button {
  width: 34px;
  height: 100%;
  border: 0;
  background: 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer
}

.stepper button:hover {
  background: var(--surface-2);
  color: var(--text)
}

.deadline-strip .stepper input[type=number],
.stepper input[type=number] {
  width: 34px;
  border: 0;
  padding: 0;
  text-align: center;
  font: inherit;
  font-weight: 600;
  background: 0 0;
  -moz-appearance: textfield;
  appearance: textfield;
  box-shadow: none;
  height: 100%
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0
}

.deadline-days {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.deadline-days[hidden] {
  display: none
}

.req-date {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

@media (max-width:700px) {

  .deadline-strip label,
  .req-date {
    flex-wrap: wrap
  }
}

.tabs-grouped {
  align-items: center
}

.tab-sep {
  flex: none;
  width: 1px;
  height: 20px;
  background: var(--line-strong);
  margin: 0 8px
}

.cm {
  max-width: 780px
}

.cm-intro {
  margin: 0 0 14px
}

.cm-hdl-inline .ic {
  width: 14px;
  height: 14px;
  vertical-align: -2px
}

.cm-add {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px
}

.cm-add input {
  flex: 1 1 260px
}

.cm-add select {
  width: auto;
  flex: none
}

.cm-status {
  min-height: 1.2em;
  margin: 4px 0 8px
}

.cm-status.ok {
  color: var(--ok)
}

.cm-status.err {
  color: var(--danger)
}

.cm-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px
}

.cm-g {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden
}

.cm-gh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  box-sizing: border-box;
  flex-wrap: wrap
}

.cm-gh strong {
  font-weight: 600
}

.cm-count {
  color: var(--muted);
  font-size: .8rem
}

.cm-gh .cm-ed {
  margin-left: auto
}

.cm-none {
  background: 0 0;
  border-style: dashed
}

.cm-none .cm-gh {
  background: 0 0
}

.cm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 8px
}

.cm-i {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex-wrap: wrap;
  min-height: 44px;
  box-sizing: border-box
}

.cm-list .cm-i:nth-last-child(2) {
  border-bottom: 0
}

.cm-name {
  flex: 1;
  min-width: 0
}

.cm-n {
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap
}

.cm-hdl {
  color: var(--muted);
  opacity: .55;
  cursor: grab;
  touch-action: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 30px;
  border-radius: 6px;
  flex: none
}

.cm-hdl:focus-visible,
.cm-hdl:hover {
  opacity: 1;
  background: var(--surface-2);
  outline: 0
}

.cm-hdl .ic {
  width: 18px;
  height: 18px
}

.cm-ed {
  opacity: .5
}

.cm-gh:hover .cm-ed,
.cm-i:hover .cm-ed {
  opacity: 1
}

.cm-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 100%;
  flex-wrap: wrap;
  padding: 2px 0 4px
}

.cm-form input[name=name] {
  flex: 1 1 200px;
  padding: 6px 10px
}

.editing>.cm-count,
.editing>.cm-ed,
.editing>.cm-gname,
.editing>.cm-n,
.editing>.cm-name {
  display: none
}

.cm-empty {
  display: none;
  padding: 12px;
  color: var(--muted);
  font-size: .85rem;
  text-align: center
}

.cm-list .cm-empty:only-child {
  display: block
}

.cm-ph {
  list-style: none;
  margin: 4px 10px;
  border: 2px dashed var(--new);
  border-radius: 9px;
  background: var(--new-soft);
  box-sizing: border-box
}

.cm-ph-g {
  margin: 0;
  border-radius: 12px
}

.cm-ghost {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transform: rotate(-1deg);
  opacity: .96;
  overflow: hidden;
  background: var(--surface)
}

.cm-ghost-g {
  border-radius: 12px
}

body.cm-busy,
body.cm-busy * {
  cursor: grabbing !important;
  user-select: none
}

.cm-dropped {
  animation: .7s cm-flash
}

@keyframes cm-flash {
  from {
    background: var(--new-soft)
  }

  to {
    background: var(--surface)
  }
}

.cat-gh {
  grid-column: 1/-1;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 8px 0 2px
}

.cat-gh:first-child {
  margin-top: 0
}

.cm-form[hidden] {
  display: none
}

.bm {
  max-width: 1000px
}

.bm-intro {
  margin: 0 0 12px
}

.bm-f {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 4px 0 6px
}

.bm-f select {
  width: auto;
  flex: none;
  max-width: 100%
}

.bm-f input[type=search] {
  flex: 1 1 200px;
  width: auto
}

.bm-seg {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface)
}

.bm-seg button {
  border: 0;
  background: 0 0;
  font: inherit;
  font-size: .85rem;
  padding: 7px 13px;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap
}

.bm-seg button.on {
  background: var(--text);
  color: var(--surface)
}

.bm-day {
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 8px
}

.bm-c {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px
}

.bm-ic {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text)
}

.bm-ic .ic {
  width: 17px;
  height: 17px
}

.bm-ic.o {
  background: var(--new-soft);
  border-color: #f3d3b4;
  color: #b85c12
}

.bm-ic.g {
  background: var(--ok-soft);
  border-color: #bfe0cb;
  color: var(--ok)
}

.bm-b {
  flex: 1;
  min-width: 0
}

.bm-h {
  display: flex;
  gap: 6px 8px;
  align-items: baseline;
  flex-wrap: wrap
}

.bm-h strong {
  font-weight: 600
}

.bm-arrow {
  color: var(--muted)
}

.bm-t {
  margin-left: auto;
  color: var(--muted);
  font-size: .8rem
}

.bm-k {
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: #eceae4;
  color: #555;
  text-decoration: none
}

.bm-k.o {
  background: var(--new-soft);
  color: #b85c12
}

.bm-k.g {
  background: var(--ok-soft);
  color: var(--ok)
}

a.bm-proj:hover {
  background: var(--line)
}

.bm-sub {
  color: var(--muted);
  font-size: .85rem;
  margin-top: 2px
}

.bm-msg {
  margin-top: 8px;
  padding: 9px 12px;
  border-left: 3px solid var(--new);
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  font-size: .92rem;
  overflow-wrap: anywhere
}

.bm-msg small {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  margin-bottom: 2px
}

.bm-to {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px
}

.bm-to span {
  font-size: .78rem;
  padding: 3px 9px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface)
}

.bm-to span i {
  font-style: normal;
  color: var(--muted)
}

.bm-to span.r {
  border-color: #bfe0cb
}

.bm-to span.x {
  border-color: #f0b8b2
}

.bm-lnk {
  font-size: .82rem;
  margin-top: 8px;
  display: inline-block
}

.bm-more {
  text-align: center;
  margin: 16px 0
}

.tab-n {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .08);
  font-size: .75em;
  text-align: center;
  margin-left: 4px
}

.tabs a.active .tab-n {
  background: rgba(255, 255, 255, .25)
}

@media (max-width:700px) {
  .bm-c {
    padding: 12px;
    gap: 10px
  }

  .bm-ic {
    width: 30px;
    height: 30px
  }

  .bm-t {
    margin-left: 0;
    width: 100%;
    order: -1
  }

  .bm-seg {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none
  }

  .bm-seg button {
    padding: 7px 11px
  }
}

button.cat-gh {
  display: flex;
  align-items: center;
  gap: 8px;
  background: 0 0;
  border: 0;
  padding: 4px 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit
}

button.cat-gh:hover {
  color: var(--text)
}

.cat-gh-all {
  font-size: .68rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted)
}

button.cat-gh:hover .cat-gh-all {
  border-color: var(--text);
  color: var(--text)
}

.role-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 8px
}

.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer
}

.role-card:focus-visible,
.role-card:hover {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
  outline: 0
}

.role-card.last {
  border-color: var(--text)
}

.rc-ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  flex: none
}

.rc-ic .ic {
  width: 20px;
  height: 20px
}

.rc-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.rc-txt strong {
  font-weight: 600
}

.rc-txt small {
  color: var(--muted);
  font-size: .82rem
}

.rc-last {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--new-soft);
  color: #b85c12;
  margin-left: 4px;
  vertical-align: 1px
}

.rc-ar {
  color: var(--muted);
  flex: none
}

.rc-ar .ic {
  width: 18px;
  height: 18px
}

.role-card:hover .rc-ar {
  color: var(--text)
}

.linklike {
  background: 0 0;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer
}

.me-roles {
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px
}

.me-roles button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: 0 0;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left
}

.me-roles button:hover {
  background: var(--surface-2)
}

.me-roles button.on {
  background: var(--surface-2);
  font-weight: 600;
  cursor: default
}

.me-roles button .ic {
  width: 17px;
  height: 17px
}

.me-roles button .ok {
  margin-left: auto;
  color: var(--ok)
}

.addrole {
  max-width: 560px;
  margin: 24px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--shadow)
}

.addrole h1 {
  margin: 0 0 6px;
  font-size: 1.5rem
}

.addrole-who {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  margin: 14px 0
}

.addrole-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 600;
  flex: none
}

.addrole-pills span {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #eceae4;
  margin: 4px 4px 0 0
}

.addrole-pills span.n {
  background: var(--new-soft);
  color: #b85c12
}

.addrole-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px
}

.role-also {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--ink-soft);
  color: var(--ink);
  margin-left: 4px;
  vertical-align: 1px
}

.roles-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 2px 0 6px
}

.roles-edit .role-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  padding: 3px 4px 3px 10px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line)
}

.roles-edit .role-chip button {
  border: 0;
  background: 0 0;
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
  padding: 0 6px;
  border-radius: 10px
}

.roles-edit .role-chip button:hover {
  color: var(--danger);
  background: var(--danger-soft)
}

.grp-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: -4px 0 14px
}

.grp-filter a {
  font-size: .84rem;
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap
}

.grp-filter a:hover {
  border-color: var(--text)
}

.grp-filter a.on {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text)
}

.grp-filter a i {
  font-style: normal;
  opacity: .6;
  margin-left: 3px
}

.cat-sum {
  position: relative;
  display: inline-block;
  max-width: 100%
}

.cat-sum summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: .85rem;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap
}

.cat-sum summary::-webkit-details-marker {
  display: none
}

.cat-sum summary span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0
}

.cat-sum summary i {
  font-style: normal;
  color: var(--muted)
}

.cat-sum-ar {
  color: var(--muted);
  font-size: .75em
}

.cat-sum[open] summary {
  border-color: var(--text)
}

.cat-sum-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-width: 80vw;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  padding: 12px 14px
}

.cat-sum-pop h5 {
  margin: 10px 0 4px;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600
}

.cat-sum-pop h5:first-child {
  margin-top: 0
}

.cat-sum-pop .chip {
  margin: 2px 4px 2px 0
}

.ip-full {
  margin: 0 0 10px;
  font-size: .9rem;
  overflow-wrap: anywhere
}

.ip-full strong {
  font-weight: 600
}

.ip-full span {
  color: var(--muted);
  font-size: .85em;
  margin-left: 6px
}

select.rp-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px
}

.rpick {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%
}

.rpick-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer
}

.rpick-btn:hover,
.rpick-btn[aria-expanded=true] {
  border-color: var(--text)
}

.rpick-btn.err {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft)
}

.rpick-val {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25
}

.rpick-list .t,
.rpick-val strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.rpick-val strong {
  font-weight: 600
}

.rpick-list .t span,
.rpick-val span {
  color: var(--muted);
  font-weight: 400;
  font-size: .88em
}

.rpick-list small,
.rpick-val small {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.rpick-val .ph {
  color: var(--muted)
}

.rpick-ar {
  color: var(--muted);
  font-size: .75em;
  flex: none
}

.rpick-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: min(320px, 90vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
  padding: 8px
}

.rpick-q {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 6px
}

.rpick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(320px, 50vh);
  overflow-y: auto
}

.rpick-list li {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer
}

.rpick-list li .t {
  display: block
}

.rpick-list li:focus,
.rpick-list li:hover {
  background: var(--surface-2);
  outline: 0
}

.rpick-list li.on {
  background: var(--ink-soft)
}

.rpick-list li.none {
  color: var(--muted);
  cursor: default
}

.rpick-pop input.rpick-q,
.toolbar .rpick-pop input.rpick-q {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: block;
  flex: none
}

@media (min-width:1200px) {
  .doc-table .doc-row>td:nth-child(2) {
    max-width: 0;
    width: 45%
  }

  .doc-table .fname {
    min-width: 0
  }

  .doc-table .doc-name {
    flex: 1 1 auto;
    min-width: 0
  }
}

.doc-table .doc-name>a {
  white-space: normal;
  overflow-wrap: break-word
}

.doc-table .doc-path {
  white-space: normal
}

.doc-table td.upd .upd-top {
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.doc-table td.upd .upd-size {
  color: var(--muted);
  font-variant-numeric: tabular-nums
}

.doc-table td.upd .upd-sub {
  display: block;
  max-width: 26ch
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff
}

.btn-danger:hover {
  filter: brightness(.94)
}

.ui-dlg {
  border: 0;
  padding: 0;
  border-radius: 18px;
  width: min(460px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  animation: .16s ease-out ui-in
}

.ui-dlg::backdrop {
  background: rgba(20, 22, 26, .45);
  backdrop-filter: blur(2px);
  animation: .16s ease-out ui-fade
}

.ui-dlg.closing {
  animation: .12s ease-in forwards ui-out
}

@keyframes ui-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes ui-out {
  to {
    opacity: 0;
    transform: translateY(4px) scale(.98)
  }
}

@keyframes ui-fade {
  from {
    opacity: 0
  }
}

.ui-dlg-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  padding: 24px 24px 20px;
  margin: 0
}

.ui-dlg-ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  grid-row: span 1
}

.ui-dlg-ic svg {
  width: 21px;
  height: 21px
}

.ui-danger .ui-dlg-ic {
  background: var(--danger-soft);
  border-color: #f0c4be;
  color: var(--danger)
}

.ui-dlg-body {
  min-width: 0;
  padding-top: 2px
}

.ui-dlg-body h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  line-height: 1.2
}

.ui-dlg-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere
}

.ui-dlg-in {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  font-size: .85rem;
  font-weight: 550
}

.ui-dlg-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden
}

.ui-dlg-field:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .06)
}

.ui-dlg-field input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: 0 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  outline: 0
}

.ui-dlg-field i {
  font-style: normal;
  color: var(--muted);
  padding: 0 12px 0 2px;
  font-weight: 400
}

.ui-dlg-foot {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap
}

@media (max-width:700px) {
  .ui-dlg {
    margin: auto auto 12px;
    width: calc(100vw - 20px)
  }

  .ui-dlg-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 22px 18px 16px
  }

  .ui-dlg-body {
    text-align: center;
    width: 100%
  }

  .ui-dlg-in {
    text-align: left;
    width: 100%
  }

  .ui-dlg-foot {
    flex-direction: column-reverse;
    width: 100%
  }

  .ui-dlg-foot .btn {
    width: 100%;
    justify-content: center
  }
}

.btn.btn-danger,
html .btn.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff
}

html .btn.btn-danger:hover {
  background: var(--danger);
  filter: brightness(.92)
}

a.user-mail {
  color: var(--new);
  text-decoration: none
}

a.user-mail:hover {
  text-decoration: underline;
  text-underline-offset: 2px
}

td.user-actions {
  white-space: nowrap
}

td.user-actions>.btn,
td.user-actions>form.inline {
  display: inline-flex;
  vertical-align: middle;
  margin: 0
}

td.user-actions>form.inline .btn {
  margin: 0
}

.wm-who small a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap
}

.pc-wrap {
  position: relative;
  display: flex
}

.pc-wrap>.project-card {
  flex: 1;
  min-width: 0
}

.pc-pin {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(20, 22, 26, .45);
  color: #fff;
  opacity: 0;
  transition: opacity .15s, background .15s;
  backdrop-filter: blur(4px)
}

.pc-pin .ic {
  width: 17px;
  height: 17px
}

.pc-pin.on,
.pc-pin:focus-visible,
.pc-wrap:hover .pc-pin {
  opacity: 1
}

.pc-pin:hover {
  background: rgba(20, 22, 26, .7)
}

.pc-pin.on {
  background: var(--new);
  color: #fff
}

@media (hover:none) {
  .pc-pin {
    opacity: .85
  }
}

.pinned-row {
  margin: 4px 0 22px
}

.pinned-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin: 0 0 10px
}

.pinned-title .ic {
  width: 17px;
  height: 17px;
  color: var(--new)
}

.pc-wrap .project-card-top {
  padding-right: 52px !important
}

.upd-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px
}

@media (max-width:900px) {
  .upd-grid {
    grid-template-columns: 1fr
  }
}

.upd-grid .panel h2,
.upd-result h2 {
  margin-top: 0
}

.upd-form {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.upd-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  cursor: pointer;
  padding: 16px;
  font-weight: 400
}

.upd-drop.over,
.upd-drop:hover {
  border-color: var(--new);
  background: var(--new-soft)
}

.upd-drop input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer
}

.upd-drop.has-file span strong {
  color: var(--new)
}

.upd-result {
  margin-bottom: 18px;
  border-left: 4px solid var(--ok)
}

.upd-result.err {
  border-left-color: var(--danger)
}

.upd-line {
  margin: 2px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem
}

.upd-line.err {
  color: var(--danger)
}

.upd-list {
  margin: 6px 0;
  padding-left: 18px
}

.upd-ok {
  color: var(--ok);
  font-weight: 600
}

.doc-table .doc-row .doc-name {
  flex: 1 1 auto;
  min-width: 8ch
}

.doc-table .doc-row>td:nth-child(2) {
  min-width: 200px
}

.doc-table .doc-line {
  display: block
}

.doc-table .doc-line>.badge-new,
.doc-table .doc-line>.pill {
  display: inline-block;
  margin: 2px 0 2px 8px;
  vertical-align: middle;
  white-space: nowrap
}

html .tabs.phase-tabs {
  background: 0 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 0;
  gap: 2px;
  flex-wrap: nowrap;
  align-items: flex-end;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  box-shadow: none;
  width: 100%;
  gap: 10px
}

html .tabs.phase-tabs::-webkit-scrollbar {
  display: none
}

html .tabs.phase-tabs a {
  background: 0 0;
  color: var(--muted);
  border-radius: 0;
  font-size: .85rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  box-shadow: none;
  flex: none;
  padding: 8px 12px 10px
}

html .tabs.phase-tabs a:hover {
  color: var(--text);
  background: 0 0
}

html .tabs.phase-tabs a.active {
  color: var(--text);
  background: 0 0;
  border-bottom-color: var(--new);
  font-weight: 600
}

html .tabs.phase-tabs a .tab-count {
  font-size: .66rem;
  min-width: 16px;
  height: 17px;
  padding: 0 5px;
  margin-left: 5px;
  background: var(--surface-2);
  color: var(--muted)
}

html .tabs.phase-tabs a.active .tab-count {
  background: var(--new);
  color: #fff
}

html .tabs.phase-tabs a.tab-archive {
  margin-left: auto !important;
  font-size: .75rem;
  opacity: .7;
  gap: 4px
}

html .tabs.phase-tabs a.tab-archive.active,
html .tabs.phase-tabs a.tab-archive:hover {
  opacity: 1
}

html .tabs.phase-tabs a.tab-archive .ic {
  width: 13px;
  height: 13px
}

@media (max-width:860px) {
  html .tabs.phase-tabs {
    display: flex;
    flex-wrap: nowrap;
    border-radius: 0
  }

  html .tabs.phase-tabs a.tab-archive {
    margin-left: 12px !important
  }
}

.toolbar.has-psearch {
  position: relative
}

.psd {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
  padding: 6px;
  max-height: min(420px, 60vh);
  overflow-y: auto
}

.psd a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none
}

.psd a.f,
.psd a:hover {
  background: var(--surface-2)
}

.psd .th {
  width: 44px;
  height: 34px;
  border-radius: 7px;
  flex: none;
  background: linear-gradient(135deg, #8b7a6b, #3b332c) center/cover
}

.psd .nm {
  flex: 1;
  min-width: 0
}

.psd .nm strong {
  display: block;
  font-weight: 600
}

.psd .nm small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.psd .ph {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--new);
  color: #fff;
  white-space: nowrap;
  flex: none
}

.psd .ph.here {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 600
}

.psd .ph.arch {
  background: #eceae4;
  color: var(--muted)
}

.psd .ft,
.psd .none {
  font-size: .78rem;
  color: var(--muted);
  padding: 6px 10px 4px
}

.upd-ver {
  font-size: .9rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--new);
  background: var(--new-soft);
  padding: 3px 10px;
  border-radius: 12px;
  vertical-align: middle;
  margin-left: 8px
}

.upd-vline {
  font-size: 1rem
}

.me-ver {
  margin: 8px 8px 2px;
  font-size: .72rem;
  color: var(--muted)
}

.head-search {
  display: flex;
  align-items: center;
  gap: 10px
}

.head-search form.psearch-form {
  margin: 0;
  width: 340px;
  display: block
}

.head-search form.psearch-form input[type=search] {
  width: 100%;
  height: 42px;
  border-radius: 21px;
  padding-left: 40px;
  box-sizing: border-box;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 14px center/16px
}

.head-search .psd {
  left: auto;
  right: 0;
  width: min(560px, calc(100vw - 32px))
}

.search-note {
  margin: -4px 0 16px;
  font-size: .88rem;
  color: var(--muted)
}

@media (max-width:700px) {
  .psd .ft {
    display: none
  }

  .psd .nm small {
    white-space: normal
  }

  .page-head:has(.head-search) {
    flex-wrap: wrap
  }

  .head-search {
    width: 100%
  }

  .head-search form.psearch-form {
    flex: 1;
    width: auto
  }

  .head-search .btn-primary {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    flex: none
  }

  .head-search .btn-primary span {
    display: none
  }

  .head-search .btn-primary .ic {
    margin: 0
  }

  .head-search .psd {
    left: 0;
    right: auto;
    width: calc(100vw - 32px)
  }
}

.project-card .card-line {
  margin: 6px 20px 0;
  font-size: .74rem;
  color: rgba(255, 255, 255, .62);
  letter-spacing: .01em
}

.project-card .card-line .cl-warn {
  color: #f3c69a
}

.project-card .project-cover.empty~.card-line,
.project-card:not(:has(.project-cover)) .card-line {
  color: var(--muted)
}

.project-card {
  padding-bottom: 18px
}

.project-card>:last-child:not(.card-line):not(h2):not(.project-addr) {
  margin-bottom: 0
}

.project-card:has(.contact-av) .card-line,
.project-card:has(.contact-av) .project-addr {
  margin-right: 72px
}

body.pd-busy,
body.pd-busy * {
  cursor: grabbing !important;
  user-select: none
}

.pc-wrap.pd-dragging {
  opacity: .35;
  transform: scale(.97);
  transition: opacity .15s, transform .15s
}

.pd-ghost {
  position: fixed;
  z-index: 400;
  pointer-events: none;
  background: var(--text);
  color: var(--surface);
  font-weight: 600;
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  white-space: nowrap
}

.phase-dock {
  position: fixed;
  z-index: 390;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1160px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  padding: 12px 14px 14px;
  animation: .18s ease-out pd-in
}

@keyframes pd-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px)
  }
}

.phase-dock p {
  margin: 0 0 10px;
  font-size: .85rem;
  color: var(--muted);
  text-align: center
}

.phase-dock p strong {
  color: var(--text)
}

.phase-dock-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center
}

.pd-t {
  flex: 1 1 auto;
  white-space: nowrap;
  text-align: center;
  padding: 14px 12px;
  border-radius: 12px;
  border: 2px dashed var(--line-strong);
  font-size: .88rem;
  font-weight: 550;
  color: var(--text);
  background: var(--surface-2)
}

.pd-t.arch {
  flex: 0 1 90px;
  color: var(--muted);
  font-weight: 400
}

[data-drop-phase].pd-current {
  opacity: .35
}

[data-drop-phase].pd-over {
  border-color: var(--new) !important;
  background: var(--new-soft) !important;
  color: var(--text) !important
}

html .tabs.phase-tabs a.pd-over {
  border-bottom-color: var(--new)
}

@media (max-width:700px) {
  .pd-t {
    flex-basis: 40%;
    padding: 12px 6px
  }

  .phase-dock {
    bottom: 10px
  }
}

.pv-bar {
  position: sticky;
  top: 58px;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #e9dccd;
  color: #3d2f1c;
  padding: 7px 24px;
  font-size: .88rem
}

.pv-bar.on {
  background: #b9753f;
  color: #fff
}

.pv-bar .ic {
  width: 18px;
  height: 18px;
  flex: none
}

.pv-bar>span {
  flex: 1 1 auto
}

.pv-bar a,
.pv-bar button {
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  background: 0 0;
  border: 0;
  padding: 0;
  cursor: pointer
}

.pv-bar button.pv-go {
  text-decoration: none;
  background: #fff;
  color: #7a4a22;
  padding: 4px 12px;
  border-radius: 999px
}

@media (max-width:700px) {
  .pv-bar {
    padding: 7px 14px;
    gap: 10px
  }

  .pv-note {
    display: none
  }
}

.cat-grid:has(.cat-sec) {
  display: block;
  columns: 2 230px;
  column-gap: 18px
}

.cat-sec {
  break-inside: avoid;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column
}

.cat-sec .cat-gh {
  align-self: flex-start
}

.cat-pick .cat-grid {
  display: block;
  columns: auto;
  max-height: min(56vh, 520px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface)
}

.cat-pick .cat-sec {
  margin: 0;
  gap: 0
}

.cat-pick .cat-gh {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: .7rem
}

.cat-pick .cat-sec+.cat-sec .cat-gh {
  border-top: 1px solid var(--line)
}

.form .cat-pick .cat-check {
  font-size: .82rem;
  padding: 7px 12px 7px 24px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.3
}

.cat-pick .cat-sec:first-child .cat-check:first-child:not(:has(+ *)),
.form .cat-pick .cat-sec:last-child .cat-check:last-child {
  border-bottom: 0
}

.cat-pick .cat-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px
}

.cat-pick .cat-check {
  position: relative
}

.form .cat-pick .cat-check:has(input:checked) {
  background: var(--new, #b9753f);
  color: #fff;
  font-weight: 500
}

.form .cat-pick .cat-check:has(input:focus-visible) {
  border-color: var(--ink)
}

.cat-pick legend b {
  color: var(--new, #b9753f)
}

.av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  flex: none;
  background: #e3dbd0;
  vertical-align: middle
}

.av img,
.av svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover
}

.av.sm {
  width: 22px;
  height: 22px
}

.av.lg {
  width: 42px;
  height: 42px
}

.av.xl {
  width: 84px;
  height: 84px
}

.av.me-av {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25)
}

.me-sum {
  display: flex;
  align-items: center
}

@media (max-width:760px) {
  .av.me-av {
    display: none
  }
}

.av-edit {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 4px 0 6px
}

.av-edit {
  position: relative;
  border-radius: 14px;
  transition: outline-color .12s, background .12s
}

.av-edit.av-drag {
  outline: 2px dashed var(--new);
  outline-offset: 5px;
  background: var(--new-soft)
}

.av-edit.av-drag * {
  pointer-events: none
}

.av-drop-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.at-cut {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 12px
}

.at-cut input {
  flex: none;
  align-self: center
}

.at-cell {
  border-radius: 12px;
  transition: outline-color .12s, background .12s
}

.at-cell.av-drag {
  outline: 2px dashed var(--new);
  outline-offset: 3px;
  background: var(--new-soft)
}

.at-cell.av-drag * {
  pointer-events: none
}

.av-edit-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1
}

.av-edit-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}

.form .av-edit-btns .btn {
  width: auto;
  cursor: pointer;
  flex-direction: row
}

.form .av-rm,
.form .av-use {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 400
}

.form .av-use {
  flex-direction: column;
  align-items: stretch
}

.form .av-cut {
  flex-direction: row;
  align-items: baseline;
  gap: 7px;
  font-weight: 400;
  flex-wrap: wrap
}

.form .av-cut input {
  flex: none;
  align-self: center
}

.av-own {
  display: flex;
  gap: 8px;
  align-items: center
}

.av-own img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover
}

.addr-field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0
}

.addr-field legend {
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: 6px;
  padding: 0
}

.addr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 96px minmax(0, 1fr);
  gap: 10px
}

.form .addr-grid label {
  font-weight: 400
}

.addr-l {
  font-size: .78rem;
  color: var(--muted)
}

@media (max-width:560px) {
  .addr-grid {
    grid-template-columns: 96px minmax(0, 1fr)
  }

  .addr-street {
    grid-column: 1/-1
  }
}

.u-id {
  display: flex;
  gap: 12px;
  align-items: center
}

.u-id>div {
  min-width: 0
}

.av.u-av {
  width: 65px;
  height: 65px
}

/* Avatar met online-bolletje rechtsonder (enkel zichtbaar voor de bedenker) */
.u-avw {
  position: relative;
  display: inline-flex;
  flex: none;
}
.u-avw .pres {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.5px solid var(--surface, #fff);
  box-sizing: border-box;
  background: #c3bdb4;
}
.u-avw .pres-on {
  background: #2ecc71;
}
.u-avw .pres-idle {
  background: #f5a623;
}
.u-avw .pres-away {
  background: #e23b3b;
}
.u-avw .pres-off {
  background: #c3bdb4;
}

.firm-row td {
  background: var(--surface-2);
  border-top: 2px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px
}

.firm-h {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.firm-ic {
  width: 40px;
  height: 40px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none
}

.firm-ic svg {
  width: 40px;
  height: 40px;
  display: block;
  fill: currentColor
}

.firm-ic .fi-ch {
  fill: currentColor
}

.firm-ic .fi-txt {
  fill: var(--cream, #fff);
  font-weight: 700;
  font-size: 12px;
  font-family: inherit
}

.firm-cats {
  display: block;
  margin-top: 4px;
  line-height: 1.5
}

.firm-cats .chip {
  all: unset;
  cursor: pointer;
  font-size: .82rem;
  color: var(--muted)
}

.firm-cats .chip:not(:last-child)::after {
  content: " · ";
  color: var(--line-strong)
}

.firm-cats .chip:hover {
  color: var(--text);
  text-decoration: underline
}

.firm-cats .chip.on {
  color: var(--new, #b9753f);
  font-weight: 600
}

tr.firm-person td:first-child {
  position: relative;
  padding-left: 48px
}

tr.firm-person td:first-child::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line-strong)
}

tr.firm-person td:first-child::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 50%;
  width: 13px;
  height: 2px;
  background: var(--line-strong)
}

tr.firm-person.firm-last td:first-child::before {
  bottom: auto;
  height: 50%
}

.firm-tag {
  font-size: .74rem;
  color: var(--new, #b9753f);
  font-weight: 600;
  margin-left: 4px
}

.firm-member-spec {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 1px
}

.firm-specs {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0
}

.firm-specs legend {
  font-weight: 500;
  padding: 0 4px
}

.form .firm-spec {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  padding: 4px 0
}

.firm-spec span {
  flex: 1;
  min-width: 0
}

.firm-spec select {
  flex: 0 1 240px
}

.av-zoom-pop {
  position: fixed;
  z-index: 9999;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .35);
  border: 3px solid #fff;
  pointer-events: none;
  opacity: 0;
  transform: scale(.92);
  transition: opacity .12s, transform .12s;
  background: var(--surface-2)
}

.av-zoom-pop.on {
  opacity: 1;
  transform: scale(1)
}

.av-zoom-pop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}
/* Inspecteer-stand (enkel de bedenker): tabel.veld tonen bij hover */
.insp-toggle.on { background: var(--new, #b9753f); color: #fff; }
.inspect-on [data-f] { outline: 1px dashed rgba(185, 117, 63, .55); outline-offset: 1px; cursor: help; border-radius: 2px; }
.inspect-on [data-f]:hover { outline: 2px solid var(--new, #b9753f); background: rgba(185, 117, 63, .1); }
.insp-tip { position: fixed; z-index: 10000; background: #1b1a19; color: #ffd9b0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.4; padding: 3px 8px; border-radius: 6px; pointer-events: none; opacity: 0; transform: translateY(-2px); transition: opacity .1s ease; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); white-space: nowrap; }
.insp-tip.on { opacity: 1; transform: none; }

/* Inspecteer-stand: ook knoppen en links tonen hun bestemming */
.inspect-on a[href]:hover, .inspect-on button:hover, .inspect-on summary:hover { outline: 1px dashed rgba(70, 130, 180, .6); outline-offset: 2px; }
.insp-tip.insp-link { color: #bfe3ff; }

/* Avatarthema's: verjaardagsrand + taart-badge (migratie 038) */
.av.av-bday {
  overflow: visible;
  position: relative;
  box-shadow: 0 0 0 2px var(--surface, #fff), 0 0 0 4px #e6a95c;
}
.av.av-bday img { border-radius: 50%; }
.av-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  font-size: .62em;
  line-height: 1;
  background: var(--surface, #fff);
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  pointer-events: none;
}

/* Topbar: nav-items niet laten afbreken (compactere balk) */
.mainnav a { white-space: nowrap; }

/* Topbar nooit de pagina horizontaal laten scrollen: de nav krimpt en scrollt intern */
.mainnav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }

.mail-fail{display:inline-block;background:#f6e3df;color:#b23c2a;border-radius:10px;padding:2px 9px;font-size:11.5px;font-weight:600;white-space:nowrap;margin-right:6px}

/* Pseudo-submappen in Plannen & documenten (v1.9.36) — bestanden met gelijke stam visueel groeperen */
.doc-table .dir-pseudo .pseudo-toggle{display:inline-flex;align-items:center;gap:.45rem;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.doc-table .dir-pseudo .pseudo-toggle .dir-ic{display:inline-flex;align-items:center;color:var(--accent,#e08a1e)}
.doc-table .dir-pseudo .pseudo-name{font-weight:600}
.doc-table .dir-pseudo .pseudo-chev{color:var(--muted,#9a9a9a);font-size:1.15em;line-height:1;transition:transform .15s ease;transform:rotate(0deg)}
.doc-table .dir-pseudo.is-open .pseudo-chev{transform:rotate(90deg)}
.doc-table tbody.doc.pseudo-member > tr > td:first-child{position:relative}
.doc-table tbody.doc.pseudo-member > tr > td:nth-child(2){padding-left:1.7rem}
.doc-table tbody.doc.pseudo-member.pseudo-collapsed{display:none}

/* Versienummer: subtiel vast hoekje in het huisoranje (enkel voor het bureau). */
.app-ver { position: fixed; left: 12px; bottom: 10px; z-index: 40; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--new); background: var(--new-soft); border: 1px solid #f0d3b4; border-radius: 8px; padding: 3px 9px; opacity: .95; pointer-events: none; }
@media print { .app-ver { display: none !important; } }

/* code viewer: formules, config en vaste tekst */
.insp-tip { white-space: pre-wrap; max-width: min(560px, calc(100vw - 16px)); }
.insp-tip.insp-calc { color: #b8f0c0; }
.insp-tip.insp-cfg { color: #f0d8ff; }
.insp-tip.insp-vast { color: #d6d0c8; font-style: italic; }
.inspect-on [data-f^="= "] { outline-color: rgba(60, 150, 90, .6); }

/* voorletters in plaats van een speelse avatar */
.av.av-ini { color: #fff; font-weight: 600; font-size: 11px; letter-spacing: .02em; align-items: center; justify-content: center; border-radius: 30%; line-height: 1; }
.av.sm.av-ini { font-size: 9px; }
.av.lg.av-ini { font-size: 18px; }

/* profiel: avatars */
.avs { margin-top: 18px; }
.avs h2 { margin: 0 0 2px; }
.avs-opt { display: flex; gap: 12px; margin-top: 10px; }
.avs-o { flex: 1; border: 1.5px solid #e4dccd; border-radius: 14px; padding: 12px; background: #fffcf8; cursor: pointer; display: block; }
.avs-o:has(input:checked) { border-color: var(--accent, #b9753f); background: #f8eadc; }
.avs-o input { position: absolute; opacity: 0; pointer-events: none; }
.avs-o b { display: block; margin: 8px 0 2px; }
.avs-o small { color: #847a70; display: block; }
.avs-avs { display: flex; gap: 6px; min-height: 40px; }
.avs-avs .av { width: 40px; height: 40px; }
.avs-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #9a8f82; margin: 16px 0 6px; }
.avs-sw { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.avs-sw .av { width: 44px; height: 44px; margin-right: 6px; }
.avs-c input { position: absolute; opacity: 0; }
.avs-c i { width: 28px; height: 28px; border-radius: 8px; display: inline-block; background: var(--c); cursor: pointer; }
.avs-c input:checked + i { outline: 2.5px solid #1b1a19; outline-offset: 2px; }
.avs-c input:focus-visible + i { outline: 2.5px solid var(--accent, #b9753f); outline-offset: 2px; }
.avs-ask { margin-top: 18px; border: 1.5px dashed #d6c9bb; border-radius: 14px; padding: 14px 16px; background: #fffcf8; }
.avs-ask > b { font-size: 15px; }
.avs-up { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.avs-drop { flex: 1; border: 1px dashed #cbbfb1; border-radius: 10px; padding: 12px; color: #847a70; font-size: 13px; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.avs-drop.over { border-color: var(--accent, #b9753f); background: #f8eadc; }
.avs-fine { font-size: 11.5px; color: #9a8f82; margin: 10px 0 0; line-height: 1.5; }
.avs-wacht { color: #5f7d6e; margin: 8px 0 0; }
@media (max-width: 600px) { .avs-opt { flex-direction: column; } .avs-up { flex-direction: column; align-items: stretch; } }

/* beheer: avatars */
.avb { margin-top: 18px; }
.avb h2 { margin: 0 0 10px; }
.avb-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.avb-t th { text-align: left; font-weight: 500; color: #9a8f82; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid #ebe1d6; }
.avb-t td { padding: 9px 8px; border-bottom: 1px solid #f1eadf; }
.avb-t tfoot td { border-bottom: 0; font-weight: 600; }
.avb-t .r { text-align: right; width: 120px; }
.avb-bar { display: inline-block; width: 120px; height: 7px; border-radius: 9px; background: #efe6da; vertical-align: middle; overflow: hidden; }
.avb-bar i { display: block; height: 100%; background: var(--accent, #b9753f); border-radius: 9px; }
.avb-row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid #f1eadf; align-items: flex-start; }
.avb-foto img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; display: block; }
.avb-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.avb-acties { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.avb-recent { margin-top: 10px; } .avb-recent div { margin: 6px 0; }
@media (max-width: 600px) { .avb-t .avb-bar-h, .avb-t td:nth-child(4) { display: none; } .avb-t .r { width: auto; } }

/* Jouw team (klant) */
.jt { margin: 22px 0 30px; }
.jt h2 { font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 8px; }
.jt-intro { background: #f8eadc; border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.55; color: #4a3826; margin: 0 0 18px; max-width: 900px; }
.jt-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #9a8f82; margin: 18px 0 8px; }
.jt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.jt-card { background: #fffcf8; border: 1px solid #ebe1d6; border-radius: 16px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.jt-card .av.jt-av { width: 56px; height: 56px; font-size: 18px; }
.jt-body { min-width: 0; }
.jt-body b { display: block; font-size: 15px; }
.jt-body small { display: block; color: #847a70; font-size: 12.5px; margin: 1px 0 8px; }
.jt-c { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.jt-c a { color: var(--accent, #b9753f); text-decoration: none; overflow-wrap: anywhere; display: inline-flex; gap: 6px; align-items: center; }
.jt-c a svg { width: 14px; height: 14px; flex: none; }
.jt-open { border: 1.5px dashed #d6c9bb; background: transparent; }
.jt-q { background: #f3ece2 !important; color: #b9ab9c; font-size: 22px; align-items: center; justify-content: center; }
.jt-muted { color: #9a8f82; }
@media (max-width: 600px) { .jt-grid { grid-template-columns: 1fr; } }
