/* ===== Dasar: font, variabel warna, elemen umum ===== */

@font-face {
  font-family: Inter;
  src: local('Inter');
  font-display: swap;
}

:root {
  font-family: Inter,'Segoe UI',Arial,sans-serif;
  color: #241d33;
  background: #f7f6f9;
  font-synthesis: none;
  --purple: #48256b;
  --deep: #2e1750;
  --pink: #b552a5;
  --line: #e8e3ed;
  --muted: #81778e;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .5;
  cursor: wait;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c193db;
  outline-offset: 3px;
}

button {
  border: 0;
}

a {
  color: var(--purple);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: 40px;
  letter-spacing: -1.8px;
  line-height: 1.16;
  font-weight: 650;
  margin-bottom: 16px;
}

h2 {
  font-size: 27px;
  letter-spacing: -.8px;
}

h3 {
  font-size: 19px;
  letter-spacing: -.4px;
}

h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

p {
  line-height: 1.65;
}

/* ===== Utilitas teks ===== */

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

.small {
  font-size: 12px;
}

.wrap {
  overflow-wrap: anywhere;
}

.mono,
code {
  font-family: Consolas,monospace;
  font-size: 12px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 14px;
}

/* ===== Tombol ===== */

.primary,
.secondary,
.danger {
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 43px;
}

.primary {
  background: var(--purple);
  color: #fff;
}

.primary:hover {
  background: #613986;
}

.secondary {
  background: #f0ebf5;
  color: var(--purple);
}

.secondary:hover {
  background: #e6dcee;
}

.danger {
  background: #fff0ef;
  color: #ad4b41;
}

.full {
  width: 100%;
  justify-content: space-between;
}

.text-button {
  background: none;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px;
}

/* ===== Avatar dan logo ===== */

.avatar {
  width: 34px;
  height: 34px;
  background: #eae0f2;
  color: var(--purple);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.logo {
  display: flex;
  gap: 11px;
  align-items: center;
}

.logo-mark {
  background: var(--deep);
  width: 40px;
  height: 43px;
  border-radius: 12px 12px 12px 2px;
  color: white;
  font-size: 27px;
  font-weight: 650;
  position: relative;
  padding-left: 9px;
  line-height: 43px;
}

.logo-mark span {
  font-size: 11px;
  position: absolute;
  right: 6px;
  bottom: -3px;
  color: #dc96cd;
}

.brand {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.8px;
}

.brand small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
}

/* ===== Kerangka: sidebar, navigasi, header, konten ===== */

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

aside {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.workspace {
  font-size: 9px;
  color: #9b91a7;
  letter-spacing: 1.7px;
  margin-top: 45px;
  margin-bottom: 27px;
}

.workspace span {
  display: block;
  font-size: 13px;
  color: #473a56;
  letter-spacing: 0;
  margin-top: 12px;
  font-weight: 600;
}

.workspace small {
  display: block;
  font-size: 10px;
  color: #9b91a7;
  letter-spacing: 0;
  margin-top: 5px;
}

nav {
  display: grid;
  gap: 8px;
}

nav button {
  background: none;
  text-align: left;
  color: #81758e;
  font-size: 12px;
  padding: 14px 11px;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
}

nav button>span {
  font-size: 20px;
  line-height: 1;
}

nav button.active {
  background: #f0e9f6;
  color: var(--purple);
  font-weight: 600;
}

nav b {
  margin-left: auto;
  background: #e5d9ee;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  gap: 9px;
  font-size: 10px;
  color: #6b6079;
  align-items: center;
}

.side-bottom small {
  display: block;
  font-size: 9px;
  margin-top: 4px;
  color: #9a8fa6;
}

.chain-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #caa156;
}

.chain-dot.online {
  background: #69a88c;
}

.main {
  min-width: 0;
}

header {
  height: 94px;
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #ffffffa0;
}

.breadcrumb {
  font-size: 11px;
  color: #7f728d;
}

.breadcrumb span {
  color: #c2b6cb;
  margin: 0 12px;
}

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

.account strong {
  font-size: 11px;
  font-weight: 600;
}

.account small {
  display: block;
  font-size: 9px;
  color: #9a8da7;
  margin-top: 3px;
}

.demo-tag {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #8f739d;
  padding: 6px 8px;
  background: #f1eaf5;
  margin-right: 14px;
  border-radius: 4px;
}

.icon-button {
  background: none;
  color: #9c8ba7;
  font-size: 23px;
  padding: 8px;
}

#content {
  max-width: 1390px;
  margin: 0 auto;
  padding: 40px 42px 50px;
}

/* ===== Judul halaman dan statistik ===== */

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 32px;
}

.page-heading p {
  font-size: 12px;
  margin-bottom: 0;
}

.page-heading.compact h1 {
  font-size: 34px;
}

.hero-note {
  position: relative;
  background: linear-gradient(120deg,#e9dfef,#f4edf7);
  width: 255px;
  height: 145px;
  border: 1px solid #e7dbee;
  border-radius: 17px;
  padding: 25px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  color: #715780;
}

.big-symbol {
  font-size: 54px;
  color: #9464a1;
}

.hero-note span:nth-child(2) {
  font-size: 12px;
  line-height: 1.7;
}

.hero-note small {
  position: absolute;
  bottom: 15px;
  right: 23px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #a08aab;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 21px 7px;
  margin-bottom: 34px;
}

.stats>div {
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.stats>div:last-child {
  border: 0;
}

.stats span {
  display: block;
  font-size: 10px;
  color: #8c8199;
}

.stats strong {
  display: flex;
  align-items: baseline;
  gap: 11px;
  font-size: 30px;
  font-weight: 550;
  margin-top: 9px;
}

.stats small {
  font-size: 9px;
  color: #aca1b7;
  font-weight: 400;
}

/* ===== Tab, pencarian, dan filter ===== */

.list-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}

.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tabs button {
  padding: 9px 12px;
  background: none;
  font-size: 11px;
  color: #9b8ca6;
  border-radius: 7px;
}

.tabs button.selected {
  background: #eae0f2;
  color: var(--purple);
  font-weight: 600;
}

.search {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  width: 215px;
  color: #9d8ea8;
}

.search input {
  border: 0;
  padding: 0;
  min-height: 20px;
  font-size: 10px;
  outline: none;
  background: none;
}

.search span {
  font-size: 21px;
  line-height: 1;
}

/* ===== Kartu alat dan badge status ===== */

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 21px;
}

.asset-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s,transform .2s;
}

.asset-card:hover {
  box-shadow: 0 8px 26px #3c1c5210;
  transform: translateY(-2px);
}

.asset-visual {
  height: 150px;
  background: linear-gradient(140deg,#e9e8ef,#f4f1f7);
  position: relative;
  display: grid;
  place-items: center;
  color: #a18cac;
}

.asset-visual.board {
  background: linear-gradient(140deg,#e2e5ed,#f0eef6);
}

.asset-visual.radio {
  background: linear-gradient(140deg,#ede0eb,#f5eff5);
}

.equipment-symbol {
  font-size: 85px;
  font-family: Georgia,serif;
  font-weight: 400;
  color: #7c6a95;
  opacity: .7;
  text-shadow: 8px 8px 0 #fff6;
}

.unit-id {
  position: absolute;
  bottom: 13px;
  left: 16px;
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #8c7d9a;
}

.asset-visual .badge {
  position: absolute;
  top: 13px;
  right: 12px;
}

.badge {
  font-size: 9px;
  background: #eee7f6;
  color: #795896;
  border-radius: 5px;
  padding: 6px 8px;
  display: inline-block;
  white-space: nowrap;
  font-weight: 600;
}

.badge.good {
  background: #e9f4ed;
  color: #4c8863;
}

.badge.warn {
  background: #fbefdd;
  color: #a07735;
}

.asset-body {
  padding: 20px;
}

.asset-body>small {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #ad9cba;
}

.asset-body h3 {
  font-size: 17px;
  margin-top: 8px;
  margin-bottom: 8px;
  font-weight: 600;
}

.asset-body p {
  font-size: 10px;
  line-height: 1.6;
  color: #9c8fa7;
  min-height: 32px;
  margin-bottom: 15px;
}

.asset-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: #9a8aa5;
  border-top: 1px solid #f0ebf3;
  padding-top: 13px;
  margin-bottom: 16px;
}

.asset-body button {
  font-size: 10px;
  min-height: 36px;
  padding: 10px 12px;
}

.asset-body button span {
  font-size: 15px;
}

/* ===== Footer dan panel informasi ===== */

footer {
  padding: 0 42px 24px;
  color: #9f94ab;
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.surface {
  border: 1px solid var(--line);
  background: white;
  padding: 25px;
  border-radius: 13px;
  margin-bottom: 23px;
}

.surface p,
.surface li {
  font-size: 12px;
  line-height: 1.75;
  color: #82738e;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.info-grid .surface {
  min-width: 0;
}

/* ===== Daftar peminjaman ===== */

.loan-list {
  display: grid;
  gap: 12px;
}

.loan-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.loan-icon {
  width: 44px;
  height: 44px;
  background: #f0e8f6;
  color: var(--purple);
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 25px;
  flex-shrink: 0;
}

.loan-main {
  flex: 1;
  min-width: 0;
}

.loan-main strong {
  font-size: 14px;
  display: block;
}

.loan-main small {
  display: block;
  font-size: 9px;
  color: #a598af;
  margin-top: 6px;
}

.loan-main>span {
  display: block;
  font-size: 11px;
  color: #8c7c98;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loan-date {
  font-size: 11px;
  color: #776783;
}

.loan-date small {
  display: block;
  font-size: 9px;
  color: #a69aaf;
  margin-bottom: 8px;
}

.chevron {
  color: #a893b2;
  font-size: 18px;
}

.empty {
  text-align: center;
  padding: 50px 25px;
  background: #fff;
  border: 1px dashed #d9cce2;
  border-radius: 14px;
  grid-column: 1/-1;
  color: #8f7a9e;
}

.empty p {
  font-size: 12px;
}

.empty h3 {
  color: #544060;
}

/* ===== Detail peminjaman: judul, tindakan, checklist, foto ===== */

.back {
  background: none;
  padding: 0;
  color: #a18bac;
  font-size: 11px;
  margin-bottom: 25px;
}

.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-title h1 {
  font-size: 32px;
}

.detail-title p {
  font-size: 11px;
}

.action-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 17px 20px;
  background: #eee7f4;
  border: 1px solid #e5d8ed;
  border-radius: 12px;
  margin-bottom: 25px;
}

.action-bar p {
  font-size: 12px;
  color: #8a739a;
  margin: 0;
}

dl {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 13px 15px;
  font-size: 12px;
  line-height: 1.55;
}

dt {
  color: #97879f;
}

dd {
  margin: 0;
  color: #5f4e6d;
}

.check-summary {
  background: #f8f5fa;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.check-summary>strong {
  font-size: 12px;
}

.check-summary p {
  font-size: 11px;
  margin: 5px 0 10px;
}

.check-chip {
  display: inline-block;
  padding: 5px 7px;
  margin: 3px;
  background: #ede6f2;
  color: #795c88;
  font-size: 10px;
  border-radius: 4px;
}

.check-chip.missing {
  color: #b2683e;
  background: #fff0e1;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-heading h3 {
  margin-bottom: 0;
}

.upload-button {
  background: #efe8f5;
  color: var(--purple);
  font-size: 11px;
  font-weight: 600;
  padding: 10px 13px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.upload-button input {
  display: none;
}

.photos {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.photos a {
  width: 110px;
  text-decoration: none;
  overflow: hidden;
}

.photos img {
  height: 85px;
  width: 110px;
  object-fit: cover;
  border-radius: 7px;
}

.photos small {
  font-size: 9px;
  display: block;
  overflow-wrap: anywhere;
}

/* ===== Linimasa kejadian dan bukti ===== */

.timeline {
  margin-top: 27px;
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 15px minmax(0,1fr);
  gap: 12px;
  padding-bottom: 28px;
}

.event:not(:last-child):before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 0;
  width: 1px;
  background: #e4d9ec;
}

.event-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ae83be;
  margin-top: 4px;
  z-index: 1;
}

.event-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.event-head h4 {
  font-size: 12px;
  margin-bottom: 6px;
}

.event time {
  font-size: 9px;
  color: #afa0b8;
}

.event p {
  margin-bottom: 5px;
  font-size: 11px;
}

.event small {
  font-size: 9px;
  color: #a494af;
}

.proof-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.proof-row code {
  font-size: 10px;
  color: #a493af;
}

.warn-text {
  color: #b0782e!important;
}

.good-text {
  color: #4c8863;
}

/* ===== Bukti & jaringan, notice ===== */

.network-banner {
  border-radius: 16px;
  background: linear-gradient(110deg,#352044,#774587);
  color: #fff;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.network-banner .eyebrow {
  color: #d7acd9;
}

.network-banner p {
  font-size: 12px;
  color: #d7bfe0;
  margin: 0;
}

.network-icon {
  font-size: 80px;
  color: #c792ce;
  padding: 0 15px;
}

.network-banner h2 {
  margin-bottom: 12px;
}

.notice {
  background: #f8f3ea;
  border-left: 3px solid #d3b175;
  padding: 12px 14px;
  font-size: 11px;
  color: #9b7a4c;
  line-height: 1.6;
  margin: 18px 0;
}

/* ===== Loading dan halaman login ===== */

.loading {
  padding: 80px;
  text-align: center;
  color: var(--purple);
}

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-story {
  background: linear-gradient(145deg,#251234 0%,#513064 65%,#9f659d 140%);
  color: #fff;
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-story .logo {
  position: absolute;
  top: 45px;
  left: 65px;
}

.login-story .logo-mark {
  background: #ffffff1a;
}

.login-story .brand small {
  color: #bda3c8;
}

.login-story .eyebrow {
  color: #c79acb;
}

.login-story h1 {
  font-size: 67px;
  letter-spacing: -3px;
  line-height: 1.12;
}

.login-story em {
  font-style: normal;
  color: #d299cf;
}

.login-story>p {
  color: #c0a8cc;
  max-width: 350px;
  font-size: 14px;
}

.login-trail {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  padding-top: 25px;
  border-top: 1px solid #ffffff25;
  font-size: 10px;
  color: #d3b7db;
}

.dummy-stamp {
  position: absolute;
  bottom: 38px;
  left: 65px;
  color: #aa87b8;
  font-size: 8px;
  letter-spacing: 2px;
}

.login-form {
  max-width: 560px;
  width: 100%;
  padding: 60px 55px;
  margin: auto;
}

.login-form h2 {
  font-size: 29px;
  margin-bottom: 12px;
}

.login-form>p {
  font-size: 12px;
}

.demo-accounts {
  display: grid;
  gap: 8px;
  margin: 25px 0;
}

.demo-account {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
}

.demo-account:hover {
  border-color: #b18bc2;
  background: #fbf8fd;
}

.demo-account strong {
  font-size: 11px;
}

.demo-account small {
  font-size: 9px;
  display: block;
  color: #a18dab;
  margin-top: 4px;
}

.demo-account .chevron {
  margin-left: auto;
}

.demo-account .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.login-note {
  margin-top: 25px;
  font-size: 10px;
  color: #a38eae;
  line-height: 1.7;
}

.login-form details {
  font-size: 11px;
  color: #8c739c;
}

.login-form summary {
  cursor: pointer;
  padding: 8px 0;
}

.login-form form {
  margin-top: 18px;
}

/* ===== Form ===== */

label {
  display: block;
  font-size: 12px;
  color: #766280;
  font-weight: 500;
  margin: 14px 0;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #e0d6e6;
  background: #fff;
  border-radius: 8px;
  color: #4e3b5e;
  padding: 11px 12px;
  min-height: 40px;
  margin-top: 7px;
  font-size: 13px;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-row label {
  min-width: 0;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 15px;
  margin: 20px 0;
}

legend {
  font-size: 11px;
  color: #90769f;
  padding: 0 6px;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.check-row input {
  width: 70px;
  margin: 0;
}

.check-row span {
  font-size: 12px;
}

/* ===== Verifikasi dan modal ===== */

.verify-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}

.verify-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.verify-actions label {
  margin: 0;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #a18eaa;
  background: none;
  font-size: 28px;
  padding: 5px;
}

dialog {
  width: min(600px,calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  color: #4f3b5f;
  max-height: 90vh;
  box-shadow: 0 25px 90px #29133630;
}

dialog::backdrop {
  background: #21102f70;
  backdrop-filter: blur(4px);
}

dialog h2 {
  padding-right: 20px;
}

dialog>p {
  font-size: 12px;
}

/* ===== Toast ===== */

#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%,20px);
  padding: 13px 20px;
  border-radius: 10px;
  background: #342144;
  color: #fff;
  font-size: 12px;
  max-width: calc(100% - 30px);
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 10;
  box-shadow: 0 8px 30px #0002;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}

#toast.error {
  background: #9d4a47;
}

/* ===== Responsif dan aksesibilitas ===== */

@media (min-width:1500px) {
  #content {
    padding-top: 50px;
  }
  .asset-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}

@media (max-width:1100px) {
  .layout {
    grid-template-columns: 205px minmax(0,1fr);
  }
  aside {
    padding: 30px 18px;
  }
  header {
    padding: 0 28px;
  }
  #content {
    padding: 32px 28px;
  }
  .asset-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats>div {
    padding: 0 14px;
  }
  .stats strong {
    font-size: 26px;
    gap: 5px;
  }
  .stats small {
    font-size: 8px;
  }
  .hero-note {
    width: 210px;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .login-story {
    padding: 55px 40px;
  }
  .login-story .logo,
  .dummy-stamp {
    left: 40px;
  }
  .login-story h1 {
    font-size: 53px;
  }
  .login-form {
    padding: 45px 35px;
  }
}

@media (max-width:760px) {
  .layout {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside .logo {
    margin-bottom: 16px;
  }
  .workspace,
  .side-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 5px;
  }
  nav button {
    font-size: 10px;
    padding: 10px;
    flex: 1;
    justify-content: center;
  }
  nav button>span {
    font-size: 17px;
  }
  nav b {
    display: none;
  }
  header {
    height: 70px;
    padding: 0 20px;
  }
  .breadcrumb {
    display: none;
  }
  .account {
    width: 100%;
  }
  .account .demo-tag {
    margin-right: auto;
  }
  .account .icon-button {
    margin-left: 5px;
  }
  #content {
    padding: 25px 20px 35px;
  }
  h1,
  .page-heading h1 {
    font-size: 32px;
  }
  .hero-note {
    display: none;
  }
  .desktop {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2,1fr);
    gap: 20px 0;
    padding: 20px 0;
    margin-bottom: 24px;
  }
  .stats>div:nth-child(2) {
    border: 0;
  }
  .stats>div {
    padding: 0 20px;
  }
  .stats strong {
    font-size: 28px;
  }
  .stats small {
    font-size: 9px;
  }
  .list-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .search {
    width: 100%;
    margin: 0;
  }
  .search input {
    font-size: 12px;
  }
  .tabs {
    justify-content: space-between;
  }
  .tabs button {
    font-size: 10px;
    padding: 9px;
  }
  .asset-grid {
    gap: 14px;
  }
  .asset-body {
    padding: 15px;
  }
  .asset-body h3 {
    font-size: 15px;
  }
  .asset-body p {
    font-size: 10px;
  }
  .asset-meta {
    flex-direction: column;
  }
  .asset-visual {
    height: 125px;
  }
  .equipment-symbol {
    font-size: 67px;
  }
  .unit-id {
    font-size: 7px;
    left: 10px;
  }
  .asset-visual .badge {
    font-size: 7px;
    padding: 5px 6px;
    right: 8px;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .surface {
    padding: 20px;
  }
  .loan-row {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .loan-main {
    flex-basis: calc(100% - 65px);
  }
  .loan-row .badge {
    margin-left: auto;
  }
  .loan-date {
    margin-left: 56px;
  }
  .loan-row .chevron {
    display: none;
  }
  .detail-title h1 {
    font-size: 27px;
  }
  .detail-title {
    align-items: flex-start;
  }
  .event-head {
    flex-direction: column;
    gap: 0;
  }
  .event time {
    margin-bottom: 7px;
  }
  .network-banner {
    padding: 25px;
  }
  .network-icon {
    display: none;
  }
  .network-banner h2 {
    font-size: 23px;
  }
  .page-heading.compact {
    align-items: flex-start;
  }
  footer {
    padding: 0 20px 20px;
    font-size: 8px;
    flex-direction: column;
    gap: 8px;
  }
  .login {
    display: block;
  }
  .login-story {
    padding: 100px 28px 40px;
    min-height: 350px;
  }
  .login-story .logo {
    top: 25px;
    left: 28px;
  }
  .login-story h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .login-story>p {
    font-size: 12px;
  }
  .login-trail {
    margin-top: 13px;
    font-size: 9px;
  }
  .dummy-stamp {
    display: none;
  }
  .login-form {
    padding: 35px 25px;
  }
  .login-form h2 {
    font-size: 26px;
  }
  dialog {
    padding: 27px 20px;
  }
  dl {
    grid-template-columns: 105px minmax(0,1fr);
    gap: 12px;
    font-size: 11px;
  }
  .primary,
  .secondary,
  .danger {
    font-size: 12px;
  }
  .form-row {
    gap: 10px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

/* ===== Tambahan: error form, toolbar detail, kelompok foto, receipt ===== */

.loan-form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff0ef;
  color: #782e2c;
  font-size: 13px;
}

.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-toolbar .back {
  margin: 0;
}

.photo-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
  gap: 22px;
  margin-top: 22px;
}

.photo-groups h4 {
  margin-bottom: 8px;
}

.receipt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  font-size: 11px;
  color: #766280;
}

.receipt code {
  flex-basis: 100%;
  overflow-wrap: anywhere;
  font-size: 11px;
}

.receipt .text-button {
  padding-left: 0;
}

@media (max-width:500px) {
  .detail-toolbar {
    align-items: flex-start;
  }
  .detail-toolbar .secondary {
    padding: 10px;
    font-size: 11px;
  }
}

/* Kontrak v2: tabel wallet, paspor alat, dan tombol uji penolakan */
.wallet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wallet-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .6px;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

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

.wallet-table td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.wallet-table .text-button {
  padding: 0;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 12px;
}

.test-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 6px;
}

.test-buttons .secondary {
  text-align: left;
}

.chain-link-title {
  font-size: 13px;
  margin: 18px 0 0;
}

/* ===== Foto profil (registrasi) ===== */

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
