/* Hábitat: cristal con bordes ópticos, profundidad y contraste legible. */
:root {
  --ink: #123d35;
  --muted: #49685f;
  --rim: rgba(255, 255, 255, 0.9);
  --glass: linear-gradient(135deg, #ffffffb8, #ffffff80 55%, #f2fff9a6);
  --glass-shadow:
    0 12px 36px #164c3f12, 0 2px 5px #164c3f06, inset 0 1px 0 #ffffff,
    inset 0 -1px 0 #ffffff80;
}
html {
  background: #ddebe8;
  scrollbar-color: #89b3a3 #e8f2ee;
}
body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 2% 12%, #86cbb17a 0, transparent 45%),
    radial-gradient(ellipse at 94% 5%, #91bfe95c 0, transparent 48%),
    radial-gradient(ellipse at 88% 94%, #c9bce66b 0, transparent 45%), #e8f0ec;
  background-attachment: fixed;
  font-family: "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 32% 0, #ffffffa8, transparent 65%);
  z-index: 0;
}
.shell,
.auth,
#app > .empty,
.loading {
  position: relative;
  z-index: 1;
}
::selection {
  color: #fff;
  background: #19735b;
}
:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #19735b;
  outline-offset: 3px;
}
.shell {
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 12px;
}
.sidebar {
  margin: 16px 0 16px 16px;
  height: calc(100vh - 32px);
  top: 16px;
  padding: 18px 13px;
  border: 1px solid var(--rim);
  border-radius: 30px;
  color: var(--ink);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.74),
    rgba(224, 249, 239, 0.49)
  );
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.brand img.company-logo {
  background: rgba(255, 255, 255, 0.67);
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 12px;
  max-width: 164px;
  box-shadow: 0 4px 18px #3d746b0b;
  margin: auto;
  display: block;
}
.nav-label {
  color: #627d77;
  padding: 19px 13px 10px;
  letter-spacing: 1.25px;
  font-size: 9px;
}
.nav {
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a4c5b79c transparent;
}
.nav button {
  flex-shrink: 0;
}
.sidebar .brand,
.sidebar .nav-label,
.side-bottom {
  flex-shrink: 0;
}
.nav button {
  color: #31594d;
  padding: 9px 12px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 12px;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.nav button .icon {
  width: 18px;
  height: 18px;
}
.nav button:hover {
  background: #ffffff8a;
  border-color: #ffffffb3;
  color: #143f35;
}
.nav button.active {
  color: #fff;
  background: linear-gradient(135deg, #197a5f, #10513f);
  box-shadow:
    0 6px 16px #14553f28,
    inset 0 1px 1px #ffffff70,
    inset 0 -1px 1px #082f2540;
  border-color: #ffffff4d;
}
.nav button.active .icon {
  color: #ccefe6;
}
.side-bottom {
  margin-top: auto;
  padding-top: 8px;
}
.connection {
  color: #406c60;
  border-color: #ffffff90;
  margin: 10px 0;
  padding: 10px;
  font-size: 10px;
}
.connection .hint,
.profile small {
  color: #627a74;
}
.profile {
  border-color: #ffffff8a;
  padding-top: 12px;
}
.avatar {
  color: #16594b;
  background: #ffffffa6;
  border: 1px solid #fff;
  box-shadow: 0 5px 12px #226f6410;
}
.logout {
  color: #416d63;
}
.main {
  padding: 0 32px 30px;
  min-width: 0;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid #ffffffbd;
  color: #496b5e;
}
.topbar strong {
  color: #30594f;
}
.pill {
  background: #ffffff70;
  border: 1px solid #fff;
  box-shadow: inset 0 1px 0 #fff;
  color: #2b604b;
}
.pill .dot {
  background: #328d65;
  box-shadow: 0 0 0 3px #328d6514;
}
.heading {
  margin: 30px 0 26px;
}
#view > .heading {
  animation: reveal-view 0.22s ease-out both;
}
@keyframes reveal-view {
  from {
    opacity: 0.55;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.heading h1 {
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 700;
  letter-spacing: -1.6px;
  text-wrap: balance;
}
.eyebrow {
  color: #4d7b6e;
  font-size: 10px;
  font-weight: 650;
}
p,
.hint {
  color: var(--muted);
}
.heading p {
  max-width: 680px;
  color: #42665a;
}
.btn {
  border: 1px solid #ffffffd9;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffffd1, #ffffff75);
  box-shadow:
    0 4px 12px #416e6510,
    inset 0 1px 0 #fff;
  color: #254e43;
  min-height: 43px;
  transition:
    box-shadow 0.2s,
    background 0.2s,
    transform 0.2s;
}
.btn:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 8px 20px #2c6b5920;
  transform: translateY(-1px);
}
.btn.primary {
  background: linear-gradient(135deg, #177b5c, #10513f);
  border-color: #246c5d;
  color: #fff;
  box-shadow:
    0 7px 18px #175e472b,
    inset 0 1px 1px #ffffff70,
    inset 0 -1px 1px #082f2540;
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2b8973, #185c4e);
}
.btn.soft {
  background: #e1f2e8bd;
  border-color: #fff;
}
.btn.danger {
  background: #fff4f1a3;
  color: #9e4037;
}
.stats {
  gap: 16px;
}
.stat,
.panel,
.report-card,
.office-card {
  border: 1px solid var(--rim);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  border-radius: 25px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.stat {
  padding: 22px;
  background: linear-gradient(140deg, #ffffffc7, #ffffff70);
  min-height: 162px;
  text-align: left;
  color: var(--ink);
}
.stat.featured {
  background:
    radial-gradient(ellipse at 90% 100%, #55bd9354, transparent 60%),
    linear-gradient(140deg, #15694f, #104736);
  border-color: #ffffff70;
  box-shadow:
    0 14px 34px #12553f28,
    inset 0 1px 0 #ffffff70;
}
.stat.featured label,
.stat.featured .caption {
  color: #d4eee1;
}
.stat.featured .number {
  color: #fff;
}
.stat.featured .stat-icon {
  color: #d5f7bd;
}
.stat label {
  color: #4a6b62;
}
.stat .number {
  font-size: clamp(23px, 2.1vw, 33px);
  letter-spacing: -1.15px;
  margin-top: 23px;
  color: #123d35;
  font-variant-numeric: tabular-nums;
}
.stat .caption {
  color: #48665b;
  line-height: 1.5;
}
.stat .stat-icon {
  color: #487f6c;
  top: 22px;
  right: 19px;
}
.action-stat {
  border-color: #e5cbaaa6;
  background: linear-gradient(140deg, #fff8eaba, #ffffff85);
}
.action-stat .stat-icon {
  color: #946c28;
}
.action-stat {
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.action-stat:hover {
  transform: translateY(-3px);
  box-shadow:
    0 17px 36px #22776920,
    inset 0 1px 0 #fff;
  border-color: #8ccabb;
}
.action-stat:focus-visible {
  outline: 3px solid #267e6b;
}
.card-arrow {
  float: right;
  color: #227e67;
  font-size: 17px;
}
.panel-head {
  padding: 25px 27px 21px;
}
.panel-head h2 {
  letter-spacing: -0.4px;
  color: #143f32;
  font-size: 18px;
}
.panel-head p {
  color: #5f7972;
}
.report-card.feature {
  background:
    radial-gradient(ellipse at 88% 100%, #98d5a044, transparent 60%),
    linear-gradient(125deg, #f8ffdaaf, #ffffff91 65%);
  border-color: #ffffff;
  box-shadow:
    var(--glass-shadow),
    inset 0 0 0 1px #ecffd7b0;
}
.report-card h2,
.office-card h2 {
  color: #123f31;
  line-height: 1.35;
}
.report-card p,
.office-card p {
  color: #456657;
}
.office-card > .icon {
  padding: 10px;
  width: 42px;
  height: 42px;
  color: #216e4d;
  background: #ffffff99;
  border: 1px solid #fff;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 #fff;
}
.office-card .text-link {
  min-height: 36px;
  padding: 5px 6px 5px 0;
}
.office-card .text-link + .text-link {
  display: block;
}
.office-row {
  border-color: #d5e4df6b;
  padding: 17px 27px;
}
.office-row small {
  color: #627b75;
}
.office-row strong {
  font-size: 13px;
}
.bar {
  background: #bddacc80;
  border-radius: 20px;
  overflow: hidden;
}
.bar i {
  background: linear-gradient(90deg, #7fb681, #167453);
  border-radius: 20px;
}
.category label {
  color: #476b5d;
}
.note-card {
  background: linear-gradient(120deg, #dceee580, #ffffff8c);
  border: 1px solid #fff;
  border-radius: 17px;
}
.text-link {
  color: #277759;
  font-weight: 600;
}
.filters {
  background: linear-gradient(120deg, #ffffff52, #ffffff24);
  border-bottom: 1px solid #ffffffbd;
  gap: 11px;
}
input,
select,
textarea {
  color: #1e4837;
  border: 1px solid #9cbcafb5 !important;
  border-radius: 12px !important;
  background: #ffffffe0 !important;
  box-shadow: inset 0 1px 2px #446f6207;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #267c66 !important;
  outline: 3px solid #50b49825;
}
input::placeholder,
textarea::placeholder {
  color: #6b8179;
}
input.check {
  accent-color: #227864;
  box-shadow: none;
}
.field label {
  color: #40665b;
  font-weight: 550;
}
.table-wrap {
  overflow-x: auto;
}
table {
  font-variant-numeric: tabular-nums;
}
thead {
  background: #edf5f1b5;
}
th {
  color: #506f63;
  background: #edf5f1b5 !important;
  letter-spacing: 0.55px;
  font-size: 10px;
}
td {
  border-color: #d7e4dd88 !important;
  color: #416452;
  line-height: 1.5;
}
tr:hover td {
  background: #ffffff66;
}
td.name {
  color: #244c3f;
}
td small,
td.name small {
  color: #4c7162;
}
.row-action {
  color: #1a674a;
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff65;
  border: 1px solid #fff;
  white-space: nowrap;
}
.row-action:hover {
  background: #dff3e9;
}
.badge {
  background: #d6eee0b0;
  color: #286149;
  border: 1px solid #b9d8c5a1;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 10px;
  white-space: nowrap;
}
.badge.warn {
  background: #fff0cea8;
  color: #856019;
  border-color: #e8d4a7;
}
.badge.gray {
  background: #e6eeebc4;
  color: #61736a;
  border-color: #d3ded8;
}
.table-footer {
  border-color: #ffffffc4;
  color: #547267;
  background: #ffffff25;
}
.selection-info {
  background: #d9efe58c;
  border: 1px solid #fff;
  border-radius: 15px;
  margin: 0 20px 16px;
}
.module-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  background: #ffffff7d;
  border: 1px solid #fff;
  box-shadow: var(--glass-shadow);
  border-radius: 21px;
  backdrop-filter: blur(18px) saturate(150%);
}
.module-tabs button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #46695b;
  border-radius: 13px;
  padding: 12px 19px;
  font-weight: 550;
  font-size: 12px;
  transition: background 0.18s;
}
.module-tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, #fff, #edf9f1);
  color: #174e37;
  border-color: #fff;
  box-shadow:
    0 4px 12px #34705a20,
    inset 0 -2px 0 #2c956647;
}
.module-tabs button:hover {
  background: #ffffff9c;
}
.module-filter {
  padding: 12px 22px 0;
  max-width: 350px;
}
.module-filter .field {
  margin-bottom: 12px;
}
.review-guide {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #ffffffdc;
  background: linear-gradient(130deg, #fff1d7ac, #ffffff96);
  padding: 19px 23px;
  border-radius: 19px;
  margin: 0 0 22px;
  box-shadow: 0 5px 20px #95773708;
}
.review-guide > .icon {
  color: #9b7d34;
  margin-top: 3px;
  flex-shrink: 0;
}
.review-guide strong {
  font-size: 13px;
  color: #5c552f;
}
.review-guide p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #716743;
  max-width: 850px;
}
.review-reason {
  color: #806025;
  font-weight: 550;
  margin-bottom: 8px;
  font-size: 12px;
}
.review-reason small {
  display: block;
  white-space: nowrap;
  color: #7c7856;
  font-size: 10px;
  margin-top: 4px;
}
.asset-tag {
  display: inline-block;
  margin-top: 7px;
  color: #367457;
  font-weight: 500;
  font-size: 10px;
  background: #e2f2e8aa;
  padding: 4px 8px;
  border-radius: 8px;
}
.line-cost {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.tech-editor,
.line-editor {
  border-top: 1px solid #cadbd3;
  margin-top: 24px;
  padding-top: 19px;
}
.tech-editor h3,
.line-editor h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.tech-editor p,
.line-editor p {
  font-size: 12px;
  margin: 6px 0 16px;
}
dialog {
  background: linear-gradient(140deg, #fafff4f2, #f0faf7ed);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid #fff !important;
  border-radius: 26px !important;
  box-shadow:
    0 35px 100px #153d3440,
    inset 0 1px 0 #fff;
  max-height: min(90dvh, 940px);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #123d3445;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-head {
  background: #f4faf3f0;
  border-color: #ffffffd6;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
}
.modal-head h2 {
  color: #224d3e;
}
.close {
  border-radius: 50%;
  background: #ffffff85;
  border: 1px solid #fff;
}
.modal-footer {
  border-color: #ccdcd1;
}
.modal-content .form-grid {
  gap: 18px;
}
.modal-content .field input,
.modal-content .field select,
.modal-content .field textarea {
  min-height: 44px;
}
.error:not(:empty) {
  background: #fff1edf0;
  border: 1px solid #d77e6859;
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 16px;
}
.detail-grid {
  gap: 12px;
}
.detail-grid > div {
  padding: 14px;
  background: #ffffff65;
  border: 1px solid #fff;
  border-radius: 14px;
}
.detail-grid label {
  color: #5c796b;
}
.detail-grid strong {
  overflow-wrap: anywhere;
}
.source-note {
  background: #e2eee7ad;
  border-radius: 12px;
  color: #58765f;
}
.auth {
  margin: 24px;
  min-height: calc(100vh - 48px);
  border: 1px solid #fff;
  border-radius: 32px;
  overflow: hidden;
  background: #ffffff7d;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px);
}
.auth-story {
  background:
    radial-gradient(ellipse at 85% 85%, #78a99775, transparent 55%),
    linear-gradient(135deg, #174d40ef, #2a7162e6);
}
.auth-story {
  position: relative;
  isolation: isolate;
}
.auth-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid #ffffff30;
  box-shadow:
    0 0 0 55px #ffffff08,
    0 0 0 110px #ffffff06;
  right: -160px;
  bottom: -80px;
  pointer-events: none;
}
.auth-story .eyebrow,
.auth-story p,
.auth-story .foot {
  color: #ceeadf;
}
.auth-story h1 {
  color: #fff;
  letter-spacing: -2px;
}
.auth-story .brand img.company-logo {
  border-radius: 22px;
  background: #fffffff0;
  padding: 17px;
}
.auth-form {
  background: linear-gradient(160deg, #ffffff99, #ffffff25);
}
.auth-form h2 {
  letter-spacing: -0.8px;
  font-size: 30px;
}
.auth-form .btn {
  width: 100%;
  min-height: 48px;
}
.footer-note {
  color: #496c5d;
  font-size: 10px;
}
.empty {
  color: #52786b;
  padding: 36px 24px;
}
#toast {
  background: #1c574de8;
  border: 1px solid #ffffff80;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 35px #1b514432;
  backdrop-filter: blur(20px);
}
[hidden] {
  display: none !important;
}
@supports not (backdrop-filter: blur(1px)) {
  .sidebar,
  .panel,
  .stat,
  .report-card,
  .office-card {
    background: #f9fcfa;
  }
  dialog {
    background: #f5faf7;
  }
}
@media (max-height: 760px) and (min-width: 751px) {
  .sidebar {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .sidebar .brand img.company-logo {
    max-width: 145px;
    padding: 9px;
  }
  .nav-label {
    padding-top: 14px;
    padding-bottom: 8px;
  }
  .nav {
    gap: 2px;
  }
  .nav button {
    min-height: 35px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .connection {
    padding: 8px 10px;
    margin: 8px 0;
  }
  .profile {
    padding-top: 10px;
  }
}
@media (min-width: 1500px) {
  .main {
    padding-left: 44px;
    padding-right: 44px;
  }
  .sidebar {
    padding-top: 30px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 226px minmax(0, 1fr);
    gap: 0;
  }
  .main {
    padding: 0 22px 25px;
  }
  .sidebar {
    padding: 20px 13px;
  }
  .nav button {
    font-size: 11px;
    gap: 9px;
    padding: 11px 10px;
  }
  .heading h1 {
    font-size: 30px;
  }
  .stat .number {
    font-size: 24px;
  }
}
@media (max-width: 750px) {
  .shell {
    display: block;
  }
  .sidebar {
    margin: 10px;
    height: auto;
    top: 10px;
    padding: 8px;
    border-radius: 19px;
    position: sticky;
    z-index: 5;
    overflow: visible;
  }
  .sidebar .brand:has(.company-logo) {
    display: none;
  }
  .nav {
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .nav button {
    white-space: nowrap;
    padding: 11px 13px;
    flex-shrink: 0;
  }
  .nav button .icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
  }
  .nav {
    scroll-padding-inline: 8px;
  }
  .side-bottom {
    display: flex;
    padding: 6px 4px 0;
    margin: 0;
  }
  .side-bottom .connection,
  .profile .avatar,
  .profile > div {
    display: none;
  }
  .side-bottom .profile {
    display: flex;
    width: 100%;
    padding: 0;
    border: 0;
  }
  .logout {
    padding: 7px 10px;
    border-radius: 9px;
    min-height: 32px;
    background: #ffffff8a;
  }
  .logout::before {
    content: "Cerrar sesión ";
    font-size: 10px;
  }
  .main {
    padding: 0 16px 24px;
  }
  .heading h1 {
    font-size: 29px;
  }
  .topbar {
    height: 54px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
    min-height: 137px;
    border-radius: 19px;
  }
  .stat .number {
    font-size: 22px;
    white-space: normal;
    overflow-wrap: anywhere;
    margin-top: 16px;
  }
  .stat.featured .number {
    font-size: 20px;
  }
  .stat {
    padding-right: 13px;
  }
  .stat .number {
    font-size: clamp(18px, 5.6vw, 23px);
    letter-spacing: -0.8px;
  }
  .stat label {
    font-size: 10px;
  }
  .stat .caption {
    font-size: 10px;
  }
  .module-tabs {
    display: flex;
    width: 100%;
  }
  .module-tabs button {
    flex: 1;
    justify-content: center;
    padding: 11px 9px;
    font-size: 11px;
  }
  .panel {
    border-radius: 20px;
  }
  .panel-head {
    padding: 20px;
  }
  .review-guide {
    padding: 17px;
  }
  .auth {
    margin: 10px;
    border-radius: 24px;
    min-height: calc(100vh - 20px);
  }
  .auth-story {
    min-height: 210px;
    padding: 25px;
  }
  .auth-story .outline,
  .auth-story::after {
    display: none;
  }
  .auth-story h1 {
    font-size: 32px;
  }
  .auth-form {
    padding: 32px 23px;
  }
  dialog {
    width: calc(100vw - 20px);
    padding: 0;
    max-height: 92vh;
  }
  .topbar {
    font-size: 10px;
    gap: 10px;
  }
  .filters .search {
    flex-basis: 100%;
    min-width: 0;
  }
  .filters select {
    flex: 1;
    min-width: 120px;
  }
  .module-tabs button {
    min-height: 44px;
  }
  .row-action {
    min-height: 40px;
  }
  .close {
    min-width: 40px;
    min-height: 40px;
  }
  .modal-head,
  .modal-content {
    padding: 20px;
  }
  .report-card,
  .office-card {
    padding: 23px;
  }
  .report-card .actions .btn {
    flex: 1;
    white-space: normal;
  }
  .btn {
    min-height: 42px;
  }
  .footer-note {
    line-height: 1.8;
  }
  .module-filter {
    padding-left: 14px;
    max-width: 100%;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .sidebar,
  .panel,
  .stat,
  .report-card,
  .office-card,
  .module-tabs,
  dialog {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #f8fcf9;
  }
  .stat.featured {
    background: #145d46;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .action-stat:hover,
  .btn:hover:not(:disabled) {
    transform: none;
  }
}

/* Request search and the private collaborator workspace. */
.workspace-name strong { font-weight: 500; }
.assignment-note { flex-basis: 100%; line-height: 1.7; margin: 8px 0 0; }
.request-search { padding: 25px 27px 10px; }
.request-search > label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 12px; }
.request-input { display: flex; align-items: center; gap: 10px; }
.request-input input { flex: 1; min-width: 0; padding: 15px 18px; font-size: 14px; border-radius: 16px; background: #ffffffb3; }
.request-input .btn { flex-shrink: 0; min-height: 47px; }
.request-search .hint { font-size: 11px; line-height: 1.7; margin: 11px 0 0; max-width: 760px; }
#request-summary { padding: 0 27px; }
.request-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 0; }
.filter-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 6px 11px; border: 1px solid #17684c24; border-radius: 999px; color: #155d46; font: inherit; font-size: 11px; background: #d9eee57a; cursor: pointer; }
.filter-chip.fixed { color: #485e55; background: #edf4f18a; cursor: default; }
.filter-chip:hover:not(.fixed) { background: #ccebdde0; }
.request-notice, .request-explanation { font-size: 11px; line-height: 1.7; margin: 0 0 10px; color: #63746c; }
.request-notice { color: #855d13; padding: 10px 12px; border: 1px solid #a17a2233; border-radius: 11px; background: #fff4d880; }
.advanced-filters { margin: 8px 27px 20px; border: 1px solid #ffffffa6; border-radius: 15px; background: #ffffff35; }
.advanced-filters summary { cursor: pointer; padding: 14px 16px; font-weight: 550; font-size: 12px; }
.advanced-filters summary span { color: #728178; font-weight: 400; margin-left: 12px; font-size: 10px; }
.advanced-filters .filters { padding: 4px 16px 17px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.advanced-filters .field { margin: 0; min-width: 0; }
.advanced-filters .field input, .advanced-filters .field select { width: 100%; min-width: 0; }
.check-filter { display: flex; align-items: center; gap: 9px; font-size: 12px; padding-top: 23px; }
.check-filter input { accent-color: #147750; width: 17px; height: 17px; }
.portal-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 27px; margin-bottom: 24px; border: 1px solid #ffffffc7; border-radius: 24px; background: linear-gradient(135deg,#e2f4eac9,#f8fcfa8f); box-shadow: 0 9px 30px #123d2910; }
.portal-welcome strong { font-size: 15px; vertical-align: middle; }
.portal-welcome .icon { color: #167650; margin-right: 12px; }
.portal-welcome p { color: #687970; margin: 9px 0 0; font-size: 12px; max-width: 630px; line-height: 1.7; }
.portal-welcome .pill { white-space: nowrap; }
.asset-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,280px),1fr)); gap: 20px; }
.personal-asset { padding: 25px; border: 1px solid #ffffffd4; border-radius: 26px; background: linear-gradient(135deg,#ffffffca,#f3f8f59f); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 10px 32px #143c2810, inset 0 1px #fff; display: flex; flex-direction: column; min-width: 0; }
.personal-asset-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.personal-asset-top > .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #196c50; background: #dfeee8b2; }
.personal-asset-top .icon svg { width: 23px; height: 23px; }
.personal-asset h2 { font-size: 19px; margin: 10px 0 5px; overflow-wrap: anywhere; }
.personal-asset > p { font-size: 11px; color: #75837c; margin: 0 0 18px; }
.personal-asset-meta { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #697b71; margin-bottom: 25px; line-height: 1.5; }
.personal-asset .actions { margin-top: auto; flex-wrap: wrap; }
.personal-asset .btn { font-size: 11px; flex: 1; justify-content: center; white-space: normal; }
.incident-equipment { display: flex; flex-direction: column; gap: 7px; padding: 17px 19px; margin: 0 0 24px; background: #e7f2ec99; border: 1px solid #ffffffa8; border-radius: 17px; }
.incident-equipment > strong { font-size: 16px; }
.incident-equipment > span:not(.badge) { color: #6c7c73; font-size: 12px; }
.incident-equipment .badge { align-self: flex-start; }
.form-note { background: #edf5f099; border: 1px solid #fff; border-radius: 14px; padding: 15px; margin: 18px 0; font-size: 12px; line-height: 1.7; color: #64766c; }
.form-grid input[readonly] { color: #75827b; background: #eaf1ed77; }
.incident-list { padding: 0 26px 12px; }
.incident-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 23px 0; border-top: 1px solid #25483511; }
.incident-row > div { min-width: 0; }
.incident-row .btn { flex-shrink: 0; }
.incident-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.incident-row h3 { font-size: 15px; margin: 14px 0 8px; }
.incident-row p { font-size: 12px; color: #65776d; line-height: 1.7; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.incident-filters { padding-top: 0; gap: 16px; }
.incident-filters .field { margin: 0; }
.incident-description, .incident-response, .external-form-note, .incident-request-details, .incident-history { margin-top: 25px; }
.incident-description h3, .incident-response h3, .incident-history h3, .incident-request-details h3 { font-size: 14px; margin: 0 0 12px; }
.incident-description p, .incident-response p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; color: #5b7062; }
.incident-response { padding: 19px; border: 1px solid #fff; background: #e5f1e9a0; border-radius: 17px; }
.external-form-note { padding: 19px; border: 1px solid #99762229; background: #fff6dd7d; border-radius: 17px; }
.external-form-note strong { font-size: 13px; color: #8c6823; }
.external-form-note p { font-size: 12px; line-height: 1.8; color: #817458; }
.external-form-note .btn { margin: 5px 8px 0 0; font-size: 11px; text-decoration: none; display: inline-flex; }
.incident-history article { display: flex; gap: 15px; padding: 5px 0 21px; position: relative; }
.history-dot { flex-shrink: 0; width: 10px; height: 10px; border: 2px solid #26875e; background: #e5f1ea; border-radius: 50%; margin-top: 6px; }
.incident-history article::before { content: ""; position: absolute; left: 4px; top: 24px; bottom: 0; width: 1px; background: #24835926; }
.incident-history article:last-child::before { display: none; }
.incident-history strong { font-size: 12px; }
.incident-history p { font-size: 12px; line-height: 1.7; color: #697a70; margin: 7px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.incident-history small { font-size: 10px; color: #839087; }
.portal-pager { margin-top: 22px; border: 1px solid #ffffff90; border-radius: 18px; background: #ffffff52; }
.attachment-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.attachment-file { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px; min-width: 0; border: 1px solid #ffffffa6; background: #edf5f0a0; border-radius: 13px; color: #3e6250; font: inherit; cursor: pointer; }
.attachment-file > span:last-child { min-width: 0; }
.attachment-file strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.attachment-file small { font-size: 10px; color: #7f8f85; display: block; margin-top: 5px; }
#attachment-selection { font-size: 11px; line-height: 1.7; color: #69796f; overflow-wrap: anywhere; }
input[type="file"] { max-width: 100%; min-width: 0; }
.prepared-request { width: 100%; padding: 15px; line-height: 1.7; font-size: 12px; }
@media (max-width: 750px) {
  .request-search { padding: 20px 18px 9px; }
  #request-summary { padding: 0 18px; }
  .request-input { flex-direction: column; align-items: stretch; }
  .request-input input { width: 100%; font-size: 12px; }
  .request-input .btn { justify-content: center; min-height: 42px; }
  .advanced-filters { margin: 7px 18px 18px; }
  .advanced-filters summary span { display: none; }
  .advanced-filters .filters { grid-template-columns: minmax(0,1fr); }
  .check-filter { padding-top: 0; }
  .portal-welcome { flex-direction: column; align-items: flex-start; padding: 21px; gap: 16px; }
  .portal-welcome strong { font-size: 13px; }
  .portal-welcome .icon { margin-right: 7px; }
  .personal-asset { padding: 22px; }
  .incident-list { padding: 0 20px 12px; }
  .incident-row { flex-direction: column; align-items: stretch; gap: 15px; }
  .incident-row .btn { justify-content: center; }
  .incident-filters { display: grid; grid-template-columns: minmax(0,1fr); }
  .incident-filters select { width: 100%; }
  .attachment-list { grid-template-columns: minmax(0,1fr); }
  .external-form-note .btn { width: 100%; justify-content: center; margin-right: 0; white-space: normal; }
  .portal-pager { flex-direction: column; align-items: stretch; gap: 14px; }
  .portal-pager .actions .btn { flex: 1; }
}
@media (prefers-reduced-transparency: reduce) {
  .personal-asset { backdrop-filter: none; -webkit-backdrop-filter: none; background: #f8fcf9; }
}
/* Remote access belongs to the administrator's local control panel. */
.remote-panel { margin-bottom: 24px; overflow: hidden; }
.remote-panel .panel-head { align-items: center; gap: 20px; }
.remote-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #52665d; margin-bottom: 8px; }
.remote-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #93a39b; }
.remote-dot.online { background: #00853c; box-shadow: 0 0 0 5px #00853c14; }
.remote-dot.connecting { background: #c88b20; }
.remote-switch { width: 62px; height: 36px; padding: 4px; flex: 0 0 62px; border: 1px solid #ffffffb3; border-radius: 99px; background: #a8b6ae; box-shadow: inset 0 2px 5px #14281d20, 0 3px 10px #14281d12; cursor: pointer; transition: background .2s, box-shadow .2s; }
.remote-switch span { display: block; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(145deg, #fff, #eef5f0); box-shadow: 0 2px 6px #14281d35; transition: transform .2s; }
.remote-switch[aria-checked="true"] { background: linear-gradient(120deg, #009447, #00682f); }
.remote-switch[aria-checked="true"] span { transform: translateX(26px); }
.remote-switch:focus-visible { outline: 3px solid #00853c; outline-offset: 4px; }
.remote-switch:disabled { cursor: not-allowed; opacity: .55; }
.remote-content { padding: 0 24px 20px; }
.remote-link { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 10px; padding: 14px 16px; border: 1px solid #ffffffba; border-radius: 16px; background: #ffffff6e; }
.remote-link a { color: #006d32; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; flex: 1; }
.remote-link .btn { flex-shrink: 0; }
.remote-empty { font-size: 14px; color: #52665d; margin: 16px 0 0; }
.remote-feedback { font-size: 13px; color: #52665d; margin-top: 12px; }
@media (max-width: 600px) { .remote-content { padding: 0 16px 16px; } .remote-link { align-items: stretch; flex-direction: column; } }
