.company-admin {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}

.section-toolbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.section-toolbar .eyebrow { margin-bottom: 8px; }
.section-toolbar h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.section-toolbar p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.company-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 24px 26px;
  background: #f7f7f2;
  border-bottom: 1px solid var(--line);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 26px;
}

.company-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  border: 1px solid #e2e5df;
  border-radius: 15px;
  background: #fafaf6;
}

.company-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--green);
  color: var(--lime);
  font-size: 11px;
  font-weight: 900;
}

.company-card > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.company-card strong, .company-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-card > div span { color: var(--muted); font-size: 10px; }
.company-empty { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 28px; border: 1px dashed #cbd1cb; border-radius: 15px; color: var(--muted); }
.company-empty strong { color: var(--ink); }

.company-assignment {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 16px;
  border: 1px solid #cbd1cb;
  border-radius: 12px;
}

.company-assignment legend { padding: 0 7px; font-size: 11px; font-weight: 800; }
.company-assignment > p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.company-choices { display: flex; flex-wrap: wrap; gap: 9px; }
.check-choice { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.check-choice input { width: 16px; height: 16px; margin: 0; }
.check-choice span { font-size: 11px; letter-spacing: 0; text-transform: none; }
.choice-empty { color: var(--danger); font-size: 11px; }
.form-submit { grid-column: 1 / -1; justify-self: start; }
.company-access-cell { max-width: 270px; color: var(--muted); line-height: 1.45; }

@media (max-width: 900px) {
  .company-grid { grid-template-columns: 1fr 1fr; }
  .company-form { grid-template-columns: 1fr 1fr; }
  .company-form .primary-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 620px) {
  .section-toolbar { align-items: flex-start; flex-direction: column; }
  .company-grid, .company-form { grid-template-columns: 1fr; }
  .company-grid { padding: 18px; }
  .company-form .primary-button { grid-column: auto; }
}

.workspace-browser, .company-workspace {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.workspace-heading h2, .workspace-identity h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.workspace-heading p:last-child, .workspace-identity p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.workspace-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }

.workspace-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e5df;
  border-radius: 14px;
  background: #fafaf6;
  text-align: left;
  cursor: pointer;
}

.workspace-choice:hover { border-color: var(--green2); background: var(--soft); }
.workspace-choice-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.workspace-choice-copy strong, .workspace-choice-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-choice-copy small { color: var(--muted); text-transform: uppercase; }
.workspace-arrow { color: var(--green2); font-size: 11px; font-weight: 800; }
.workspace-empty { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px dashed #cbd1cb; border-radius: 12px; color: var(--muted); font-size: 12px; }

.company-workspace { border-color: var(--green); box-shadow: 0 16px 45px rgba(18, 60, 47, .09); }
.workspace-identity { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; }
.workspace-identity .eyebrow { margin-bottom: 6px; }
.workspace-access-note { margin-top: 20px; padding: 13px 15px; border-radius: 10px; background: var(--soft); color: var(--green); font-size: 12px; font-weight: 700; }
.workspace-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.workspace-metrics article { display: flex; flex-direction: column; min-height: 130px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.workspace-metrics span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.workspace-metrics strong { margin-top: auto; font-size: 32px; }
.workspace-metrics small { margin-top: 4px; color: var(--muted); }

@media (max-width: 900px) {
  .workspace-list { grid-template-columns: 1fr 1fr; }
  .main-nav { gap: clamp(14px, 5vw, 42px); }
}

@media (max-width: 620px) {
  .workspace-browser, .company-workspace { padding: 20px; }
  .workspace-list, .workspace-metrics { grid-template-columns: 1fr; }
  .workspace-identity { grid-template-columns: auto 1fr; }
  .workspace-identity .row-action { grid-column: 1 / -1; justify-self: start; }
}

.brand-site-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.brand-site-hero { min-height: 310px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 30px; padding: clamp(34px, 6vw, 70px); border-radius: 26px; background: var(--green); color: #fff; overflow: hidden; position: relative; }
.brand-site-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -180px; border: 55px solid rgba(185,244,93,.08); border-radius: 50%; }
.brand-site-mark { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 28px; background: var(--lime); color: var(--green); font-size: 28px; font-weight: 900; transform: rotate(-3deg); }
.brand-site-hero .eyebrow { color: var(--lime); }
.brand-site-hero h1 { margin: 0; font-size: clamp(46px, 6vw, 74px); line-height: .98; letter-spacing: -.06em; }
.brand-site-hero p:not(.eyebrow) { max-width: 620px; margin: 16px 0 0; color: #cbd8d3; line-height: 1.6; }
.brand-site-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.brand-site-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: #dbe7e2; font-size: 10px; text-transform: uppercase; }
.brand-metrics { margin-top: 18px; }
.brand-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.brand-modules article { min-height: 190px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.brand-modules h2 { margin: 16px 0 8px; font-size: 29px; }
.brand-modules p { margin: 0; color: var(--muted); line-height: 1.6; }
.brand-settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brand-settings-form textarea { width: 100%; padding: 12px; resize: vertical; border: 1px solid #cbd1cb; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; line-height: 1.5; }
.brand-settings-form textarea:focus-visible { outline: 3px solid #80c92f; outline-offset: 3px; }
.brand-wide { grid-column: 1 / -1; }
.brand-settings-form .form-message { margin: 0; }
.brand-settings-form .primary-button { justify-self: start; }
.settings-directories { margin-top: 18px; }
.settings-directories h2 { margin-bottom: 7px; }
.settings-directories > div > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.settings-directory-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.settings-directory-link { display: flex; flex-direction: column; gap: 6px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf6; color: var(--ink); text-align: left; cursor: pointer; }
.settings-directory-link:hover { border-color: var(--green2); background: var(--soft); }
.settings-directory-link strong { color: var(--green2); font-size: 14px; }
.settings-directory-link span { color: var(--muted); font-size: 11px; line-height: 1.4; }

@media (max-width: 620px) {
  .brand-site-hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .brand-site-mark { width: 76px; height: 76px; border-radius: 21px; font-size: 21px; }
  .brand-site-hero h1 { font-size: 46px; }
  .brand-modules, .brand-settings-form { grid-template-columns: 1fr; }
  .brand-wide { grid-column: auto; }
  .settings-directory-links { grid-template-columns: 1fr; }
}

.module-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.module-heading h1 { margin: 0; font-size: clamp(44px, 6vw, 68px); letter-spacing: -.06em; }
.module-heading p:last-child { margin: 12px 0 0; color: var(--muted); }
.module-heading-actions { display: flex; align-items: center; gap: 10px; }
.module-heading-actions > a.row-action { display: inline-flex; align-items: center; text-decoration: none; }
.danger-button { min-height: 40px; padding: 0 14px; border: 1px solid #b85c55; border-radius: 9px; background: #fff3f1; color: #8c302a; font-size: 11px; font-weight: 800; cursor: pointer; }
.danger-button:hover { background: #f8e2df; }
.danger-button:disabled { opacity: .45; cursor: not-allowed; }
.row-action.danger-row { color: #9c3c36; }
.row-action:disabled { opacity: .42; cursor: not-allowed; }
.csv-import-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr) auto; align-items: end; gap: 18px; padding: 22px 24px; border: 1px solid #9bbde2; border-radius: 18px 18px 0 0; background: #eef6ff; }
.csv-import-panel h2 { margin: 0; color: #084c91; font-size: 23px; }
.csv-import-panel p:last-child { margin: 8px 0 0; color: #41617f; font-size: 11px; line-height: 1.5; }
.csv-import-panel .csv-template-help { margin-top: 10px; padding-left: 12px; border-left: 2px solid #79aee6; }
.csv-import-actions { display: flex; align-items: center; gap: 8px; }
.csv-file-preview { color: #31536f; font-size: 11px; font-weight: 700; line-height: 1.45; }
.csv-file-preview.error { color: var(--danger); }
.csv-template-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid #79aee6; border-radius: 10px; background: #fff; color: #084c91; text-decoration: none; white-space: nowrap; }
.csv-template-link:hover { background: #e5f1ff; }
.csv-import-panel + .form-message { margin: 12px 0 18px; }
.module-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 18px 18px 0 0; background: #f7f7f2; }
.module-form textarea { width: 100%; padding: 12px; resize: vertical; border: 1px solid #cbd1cb; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.module-form .primary-button { justify-self: start; align-self: end; }
.automatic-id { min-height: 68px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 9px 12px; border: 1px dashed var(--green2); border-radius: 9px; background: var(--soft); }
.automatic-id > span { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.automatic-id strong { color: var(--green); font-family: Consolas, monospace; font-size: 14px; }
.automatic-id small { color: var(--muted); font-size: 9px; }
.inventory-highlight > span { color: #0b5cab; }
.inventory-highlight input { border-color: #79aee6; background: #eef6ff; color: #084c91; font-weight: 800; }
.inventory-highlight input:focus-visible { outline-color: #2879c9; }
.inventory-heading { color: #0b5cab; background: #e8f2ff; }
.inventory-cell { color: #084c91; background: #f3f8ff; font-family: Consolas, monospace; font-weight: 800; }
.last-movement-cell { min-width: 160px; max-width: 230px; }
.last-movement-cell > span { display: block; overflow: hidden; color: var(--ink); line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.last-movement-cell > small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.asset-comment-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-card-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 22px; }
.asset-card-heading h1 { margin: 0; font-size: clamp(42px, 6vw, 68px); letter-spacing: -.055em; }
.asset-card-identity { display: flex; align-items: center; gap: 12px; margin-top: 15px; }
.asset-card-identity code { padding: 8px 11px; border-radius: 8px; background: var(--green); color: var(--lime); font-size: 13px; }
.asset-gallery-card, .asset-record-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.asset-record-card { margin-top: 18px; }
.asset-gallery-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.asset-gallery-heading h2, .asset-record-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.asset-gallery-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.asset-image-upload { display: flex; align-items: center; gap: 12px; }
.asset-image-upload small { color: var(--muted); white-space: nowrap; }
.asset-image-picker { position: relative; overflow: hidden; }
.asset-image-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.asset-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.asset-image-slot { min-width: 0; aspect-ratio: 4 / 3; margin: 0; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f5f6f2; }
.asset-image-slot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.asset-image-slot figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; background: rgba(18, 60, 47, .9); color: #fff; font-size: 9px; }
.asset-image-slot figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-image-remove { flex: 0 0 auto; padding: 2px 5px; border: 0; background: transparent; color: var(--lime); font-weight: 800; cursor: pointer; }
.asset-image-empty { display: grid; place-items: center; border-style: dashed; color: var(--muted); font-size: 11px; }
.asset-record-heading { margin-bottom: 20px; }
.asset-record-heading .eyebrow { margin-bottom: 8px; }
.asset-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--line); }
.asset-detail-item { min-width: 0; padding: 16px; background: var(--surface); }
.asset-detail-item dt { margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.asset-detail-item dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.asset-detail-item.inventory-detail { background: #eef6ff; }
.asset-detail-item.inventory-detail dt, .asset-detail-item.inventory-detail dd { color: #084c91; }
.asset-notes, .asset-custom-details { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.asset-notes span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.asset-notes p { margin: 8px 0 0; line-height: 1.6; white-space: pre-wrap; }
.asset-custom-details h3 { margin: 0 0 13px; font-size: 18px; }
.asset-custom-editor .custom-fields-heading h3 { margin: 0 0 7px; font-size: 24px; }
.asset-custom-editor .custom-fields-heading .eyebrow { margin-bottom: 7px; }
.asset-card-field-form { margin-top: 18px; }
.asset-custom-values-form { margin-top: 18px; }
.asset-custom-value-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafaf6; }
.asset-custom-values-form > .primary-button { justify-self: start; }
.asset-custom-editor .form-message { margin: 12px 0; }
.asset-selection-column { width: 42px; padding-right: 4px; }
.asset-selection-column input { width: 16px; height: 16px; }
.asset-bulk-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 16px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fafaf6; }
.asset-bulk-toolbar span { color: var(--muted); font-size: 11px; font-weight: 800; }
.asset-bulk-toolbar > div { display: flex; gap: 8px; }
.asset-trash-panel { margin-top: 24px; padding: 22px; border: 1px solid #d7aaa6; border-radius: 18px; background: #fff9f7; }
.asset-trash-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.asset-trash-heading h2 { margin: 0; font-size: 28px; }
.asset-trash-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.asset-trash-panel .module-table { border-radius: 0 0 14px 14px; }
.asset-trash-panel .form-message { margin: 12px 0; }
.custodian-form { grid-template-columns: 1.2fr 1fr 1fr auto; }
.status-form { grid-template-columns: 1.2fr 1fr auto; }
.module-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
#brandAssetsPage .module-table table { min-width: 1200px; table-layout: fixed; }
#brandAssetsPage .module-table th, #brandAssetsPage .module-table td { padding-left: 14px; padding-right: 14px; }
.module-form + .form-message + .module-table, .module-form:not([hidden]) ~ .module-table { border-radius: 0 0 18px 18px; }

/* The asset register needs more horizontal room than the dashboard cards. */
.page-content { width: min(1600px, 96vw); }
.empty-table-cell { display: table-cell !important; padding: 38px; color: var(--muted); text-align: center; }
.custom-field-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.inline-location-creator { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--green2); border-radius: 12px; background: var(--soft); }
.inline-location-creator .row-action { min-height: 44px; }
.custom-fields-admin { margin-top: 18px; }
.custom-fields-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.custom-fields-heading h2 { margin-bottom: 7px; }
.custom-fields-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.custom-field-form { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr auto auto; gap: 12px; align-items: end; margin-top: 22px; padding: 18px; border-radius: 14px; background: #f7f7f2; }
.inline-check { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; }
.inline-check input { width: 17px; height: 17px; }
.inline-check span { letter-spacing: 0; text-transform: none; }
.custom-field-list { display: grid; gap: 8px; margin-top: 18px; }
.custom-field-item { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 0; border-bottom: 1px solid #e8eae6; }
.custom-field-item > div { display: flex; flex-direction: column; gap: 4px; }
.custom-field-item span { color: var(--muted); font-size: 10px; }
.register-columns-admin { margin-top: 18px; }
.register-column-list { display: grid; gap: 8px; margin: 20px 0; }
.register-column-item { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(180px, 1fr) minmax(160px, .8fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafaf6; }
.register-column-visible { flex-direction: row; align-items: center; }
.register-column-visible input { width: auto; height: auto; }
.register-column-visible span { font-size: 12px; letter-spacing: 0; text-transform: none; }
.register-column-label { height: 38px; }
.register-column-item small { color: var(--muted); font-size: 10px; }
.register-column-controls { display: flex; gap: 2px; }

@media (max-width: 1000px) {
  .module-form { grid-template-columns: 1fr 1fr; }
  .csv-import-panel { grid-template-columns: 1fr 1fr; }
  .csv-import-panel > div:first-child { grid-column: 1 / -1; }
  .custodian-form, .status-form, .custom-field-form { grid-template-columns: 1fr 1fr; }
  .register-column-item { grid-template-columns: 1fr 1fr; }
  .custom-field-inputs { grid-template-columns: 1fr 1fr; }
  .asset-custom-value-inputs { grid-template-columns: 1fr 1fr; }
  .main-nav { justify-content: flex-start; overflow-x: auto; padding: 0 18px; }
  .main-nav button { flex: 0 0 auto; }
  .asset-gallery, .asset-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .page-content { width: calc(100% - 28px); }
  .module-heading { align-items: flex-start; flex-direction: column; }
  .module-heading-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .asset-card-heading, .asset-trash-heading, .asset-bulk-toolbar { align-items: flex-start; flex-direction: column; }
  .module-form, .csv-import-panel, .custodian-form, .status-form, .custom-field-form, .custom-field-inputs, .inline-location-creator { grid-template-columns: 1fr; }
  .asset-custom-value-inputs { grid-template-columns: 1fr; }
  .csv-import-panel > div:first-child { grid-column: auto; }
  .custom-fields-heading { align-items: flex-start; flex-direction: column; }
  .asset-gallery-heading, .asset-image-upload { align-items: flex-start; flex-direction: column; }
  .asset-gallery, .asset-detail-grid { grid-template-columns: 1fr; }
  .register-column-item { grid-template-columns: 1fr; }
}

.movement-heading { align-items: center; }
.movement-help { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; min-width: 220px; padding: 15px 18px; border: 1px solid #9bbde2; border-radius: 14px; background: #eef6ff; color: #084c91; }
.movement-help > span { grid-row: 1 / 3; align-self: center; font-size: 26px; }
.movement-help strong { font-size: 12px; }
.movement-help small { color: #41617f; }
.movement-board { display: grid; grid-template-columns: minmax(330px, .9fr) minmax(480px, 1.35fr); gap: 18px; align-items: start; }
.movement-assets-panel, .movement-destinations { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.movement-assets-panel { position: sticky; top: 92px; }
.movement-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.movement-panel-heading h2 { margin: 2px 0 0; font-size: 25px; letter-spacing: -.04em; }
.movement-panel-heading > strong { display: grid; place-items: center; min-width: 48px; height: 38px; border-radius: 99px; background: var(--green); color: var(--lime); font-size: 12px; }
.movement-panel-heading > small { color: var(--muted); }
.movement-search, .movement-filter { display: flex; flex-direction: column; gap: 7px; margin-top: 11px; }
.movement-search span, .movement-filter span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.movement-search input, .movement-filter select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #cbd1cb; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.movement-search input:focus-visible, .movement-filter select:focus-visible { outline: 3px solid #80c92f; outline-offset: 2px; }
.movement-view-note { margin: 13px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.movement-asset-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: min(58vh, 690px); overflow-y: auto; padding: 2px 4px 2px 2px; }
.movement-asset { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 13px; border: 1px solid #d7dcd5; border-radius: 11px; background: #fafaf6; box-shadow: 0 5px 14px rgba(18,60,47,.05); }
.movement-asset[draggable="true"] { cursor: grab; }
.movement-asset[draggable="true"]:active { cursor: grabbing; }
.movement-asset.dragging { opacity: .45; transform: rotate(1.5deg) scale(.98); }
.movement-asset > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.movement-asset code { color: var(--green2); font-size: 9px; font-weight: 800; }
.movement-grip { color: #9ca7a1; font-size: 18px; line-height: 1; }
.movement-asset > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.movement-inventory { overflow: hidden; color: #0b5cab; font-family: Consolas, monospace; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.movement-asset > small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.movement-card-action { align-self: flex-start; padding: 3px 0; border: 0; background: transparent; color: var(--green2); font-size: 9px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.movement-card-action:hover { color: #0b5cab; }
.custodian-drop-grid { display: grid; gap: 10px; }
.custodian-drop-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fafaf6; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.custodian-drop-card > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; }
.custodian-drop-card > header > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.custodian-drop-card > header strong, .custodian-drop-card > header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custodian-drop-card > header strong { font-size: 13px; }
.custodian-drop-card > header small { color: var(--muted); font-size: 10px; }
.custodian-drop-card > header b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--green2); font-size: 11px; }
.custodian-board-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--green); color: var(--lime); font-size: 11px; font-weight: 900; }
.custodian-location-drops { display: grid; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .28s ease, opacity .18s ease, padding .22s ease; padding: 0 12px; }
.custodian-drop-card:hover, .custodian-drop-card:focus-within, .asset-dragging .custodian-drop-card { border-color: #8bbf4e; background: #fbfff5; box-shadow: 0 10px 25px rgba(18,60,47,.08); }
.custodian-drop-card:hover .custodian-location-drops, .custodian-drop-card:focus-within .custodian-location-drops, .asset-dragging .custodian-location-drops { max-height: 900px; opacity: 1; padding: 0 12px 12px; }
.location-drop-target { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 7px; padding: 11px 13px; border: 1px dashed #aeb8ae; border-radius: 10px; background: #fff; color: var(--ink); text-align: left; cursor: default; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.location-drop-target strong { font-size: 11px; }
.location-drop-target span { color: var(--muted); font-size: 9px; text-align: right; }
.asset-dragging .location-drop-target { cursor: copy; }
.location-drop-target.drag-over { border-color: var(--green2); border-style: solid; background: var(--lime); transform: scale(1.015); }
.custodian-no-locations { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 7px; padding: 13px; border: 1px dashed #cbd1cb; border-radius: 10px; background: #fff; }
.custodian-no-locations > span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.custodian-no-locations .movement-card-action { flex: 0 0 auto; }
.movement-empty { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px dashed #cbd1cb; border-radius: 11px; color: var(--muted); font-size: 11px; text-align: center; }
.destination-empty { padding: 40px 20px; }
.movement-dialog-card textarea { width: 100%; padding: 12px; resize: vertical; border: 1px solid #cbd1cb; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; line-height: 1.5; }
.movement-dialog-asset { display: flex; flex-direction: column; gap: 5px; padding: 13px; border-radius: 10px; background: #eef6ff; }
.movement-dialog-asset strong { color: #084c91; }
.movement-dialog-asset span, .movement-dialog-note { color: var(--muted); font-size: 10px; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.asset-movement-history { display: grid; gap: 10px; }
.asset-movement-history article { display: grid; gap: 6px; padding: 15px; border-left: 3px solid var(--green2); border-radius: 0 10px 10px 0; background: #f7f9f4; }
.asset-movement-history article strong { font-size: 12px; }
.asset-movement-history article p { margin: 0; line-height: 1.5; white-space: pre-wrap; }
.asset-movement-history article small, .movement-history-empty { color: var(--muted); font-size: 10px; }
.movement-history-empty { margin: 0; }

@media (max-width: 1050px) {
  .movement-board { grid-template-columns: 1fr; }
  .movement-assets-panel { position: static; }
  .movement-asset-list { max-height: 430px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .movement-heading { align-items: flex-start; }
  .movement-help { width: 100%; }
  .movement-assets-panel, .movement-destinations { padding: 16px; }
  .movement-asset-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  .movement-asset-list { grid-template-columns: 1fr; }
}
