:root {
  color-scheme: light;
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(194, 128, 42, .14), transparent 30%),
    linear-gradient(135deg, #fbf6e8 0%, #fffaf0 46%, #f6efe0 100%);
}

.demo-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
}

.role-panel {
  width: 230px;
  border-radius: 20px;
  border: 1px solid #eadfca;
  background: rgba(255, 252, 245, .86);
  padding: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  backdrop-filter: blur(16px);
}

.role-option {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475569;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.role-option.active {
  color: #a16207;
  background: #fef3c7;
}

.role-option.active::after {
  content: "当前";
  color: #a16207;
  font-size: 11px;
  font-weight: 700;
}

.organization-option {
  min-height: 58px;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7c2d12;
  background: linear-gradient(135deg, #fff7df, #fef3c7);
  border: 1px solid #efd389;
}

.organization-option b,
.organization-option small {
  display: block;
}

.organization-option b {
  font-size: 13px;
}

.organization-option small {
  margin-top: 3px;
  color: #92400e;
  font-size: 10px;
}

.organization-option em {
  flex: 0 0 auto;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #b7791f;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.role-note {
  display: none;
}

.role-note.active {
  display: block;
}

.role-hidden {
  display: none !important;
}

.iphone-frame {
  width: 390px;
  height: 844px;
  border-radius: 42px;
  padding: 12px;
  background: #111827;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .25), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.iphone-screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fbf7ef;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.iphone-screen.home-screen {
  grid-template-rows: auto 1fr auto;
}

.status-bar {
  height: 36px;
  padding: 10px 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.app-nav {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eadfca;
  background: rgba(255, 252, 245, .9);
  backdrop-filter: blur(14px);
}

.app-content {
  overflow: auto;
  padding: 12px 14px 16px;
}

.app-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.bottom-tabs {
  height: 72px;
  padding: 8px 14px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid #eadfca;
  background: rgba(255, 252, 245, .96);
}

.tab-link {
  position: relative;
  border-radius: 12px;
  color: #64748b;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.tab-link::before {
  width: 22px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
}

.tab-link[href="index.html"]::before {
  content: "⌂";
}

.tab-link[href="approval-list.html"]::before {
  content: "✓";
}

.tab-link.tab-alert::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px #fffdf7;
}

.tab-link[href="asset-list.html"]::before,
.tab-link[href="asset-detail.html"]::before {
  content: "□";
}

.tab-link[href="profile.html"]::before {
  content: "○";
}

.tab-link.active {
  color: #a16207;
  background: #fef3c7;
  font-weight: 700;
}

.card {
  background: #fffdf7;
  border: 1px solid #eadfca;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(92, 64, 28, .05);
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn {
  min-height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}

.primary-btn {
  background: #b7791f;
  color: #fff;
}

.secondary-btn {
  background: #fef3c7;
  color: #92400e;
}

.danger-btn {
  background: #fee2e2;
  color: #dc2626;
}

.ghost-btn {
  background: #fffaf0;
  color: #6b5b45;
  border: 1px solid #eadfca;
}

.status-amber {
  color: #a16207;
  background: #fef3c7;
}

.status-green {
  color: #16a34a;
  background: #ecfdf5;
}

.status-orange {
  color: #ea580c;
  background: #fff7ed;
}

.status-red {
  color: #dc2626;
  background: #fef2f2;
}

.status-gray {
  color: #64748b;
  background: #f1f5f9;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.field {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #eadfca;
  background: #fffaf0;
  padding: 10px 12px;
  color: #0f172a;
  font-size: 13px;
}

.upload-tile {
  min-height: 58px;
  border-radius: 12px;
  border: 1px dashed #d6b878;
  background: #fffaf0;
  display: grid;
  place-items: center;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

.upload-tile::before {
  content: "+";
  display: block;
  margin-bottom: 2px;
  color: #d6a02a;
  font-size: 18px;
  line-height: 1;
}

.category-row {
  border-radius: 12px;
  background: #fffaf0;
  border: 1px solid #f0e6d4;
  padding: 9px 10px;
}

.category-row b {
  display: block;
  color: #292524;
  font-size: 12px;
}

.category-row span {
  display: block;
  margin-top: 4px;
  color: #78716c;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 50;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(80, 56, 24, .94);
  box-shadow: 0 12px 28px rgba(92, 64, 28, .22);
  font-size: 13px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.qr-grid {
  background:
    linear-gradient(90deg, #0f172a 8px, transparent 8px) 0 0 / 20px 20px,
    linear-gradient(#0f172a 8px, transparent 8px) 0 0 / 20px 20px,
    #fff;
}

.work-card {
  background: #fffdf7;
  border: 1px solid #eadfca;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(92, 64, 28, .05);
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .96), rgba(255, 247, 226, .96)),
    radial-gradient(circle at 88% 0%, rgba(217, 164, 65, .24), transparent 34%);
  border: 1px solid #eadfca;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(92, 64, 28, .07);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 18px solid rgba(217, 164, 65, .12);
}

.hero-action {
  border: 1px solid #efd9a8;
  background: rgba(255, 250, 240, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

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

.section-head h2 {
  color: #292524;
  font-size: 15px;
  font-weight: 800;
}

.home-dashboard {
  background:
    linear-gradient(180deg, rgba(254, 243, 199, .82), transparent 132px),
    #fbf7ef;
}

.user-strip {
  min-height: 56px;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 247, .76);
  border: 1px solid rgba(234, 223, 202, .82);
  box-shadow: 0 8px 20px rgba(92, 64, 28, .05);
  backdrop-filter: blur(10px);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #7c2d12;
  background: linear-gradient(135deg, #fef3c7, #f8d77a);
  font-size: 15px;
  font-weight: 900;
}

.user-role {
  flex: 0 0 auto;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  color: #92400e;
  background: #fef3c7;
  font-size: 10px;
  font-weight: 800;
}

.organization-badge {
  flex: 0 0 auto;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 10px;
  font-weight: 800;
}

.user-scan {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d6a02a;
  box-shadow: 0 8px 16px rgba(214, 160, 42, .22);
  font-size: 18px;
  font-weight: 900;
}

.notice-banner {
  border-radius: 14px;
  overflow: hidden;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  box-shadow: 0 8px 20px rgba(194, 93, 20, .07);
}

.notice-banner a {
  min-height: 58px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7c2d12;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .1);
}

.notice-banner b,
.notice-banner small,
.notice-banner em {
  display: block;
}

.notice-banner b {
  color: #292524;
  font-size: 13px;
  line-height: 1.2;
}

.notice-banner small {
  margin-top: 3px;
  color: #9a3412;
  font-size: 11px;
  line-height: 1.25;
}

.notice-banner em {
  flex: 0 0 auto;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.quick-scan-bar {
  min-height: 48px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
}

.quick-search,
.quick-scan {
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-search {
  padding: 0 13px;
  color: #78716c;
  background: #fffdf7;
  border: 1px solid #eadfca;
  box-shadow: 0 8px 20px rgba(92, 64, 28, .04);
}

.quick-search span {
  color: #d6a02a;
  font-size: 17px;
  font-weight: 900;
}

.quick-search b {
  min-width: 0;
  color: #78716c;
  font-size: 12px;
  font-weight: 700;
}

.quick-scan {
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f6c85f, #c8861c);
  box-shadow: 0 10px 20px rgba(200, 134, 28, .2), inset 0 -4px 0 rgba(113, 63, 18, .1);
}

.quick-scan span {
  font-size: 18px;
  font-weight: 900;
}

.quick-scan .scan-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .94);
  border-radius: 5px;
}

.quick-scan .scan-mark::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  transform: translateY(-50%);
}

.quick-scan .scan-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, .54);
}

.quick-scan b {
  font-size: 13px;
  font-weight: 900;
}

.scan-panel {
  border-radius: 22px;
  padding: 28px;
  background: #292524;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.scan-frame {
  position: relative;
  aspect-ratio: 1;
  border: 3px solid #f8d77a;
  border-radius: 22px;
  display: grid;
  place-items: end center;
  padding: 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, .86);
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 24px 24px;
  font-size: 12px;
}

.scan-line {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 48%;
  height: 2px;
  border-radius: 999px;
  background: #f8d77a;
  box-shadow: 0 0 12px rgba(248, 215, 122, .8);
}

.asset-overview-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 253, 247, .96);
  border: 1px solid #eadfca;
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 10px 28px rgba(92, 64, 28, .07);
}

.asset-overview-card::before {
  content: "";
  position: absolute;
  inset: -80px -50px auto auto;
  width: 170px;
  height: 150px;
  border-radius: 0 0 90px 90px;
  background: linear-gradient(135deg, rgba(252, 211, 77, .34), rgba(254, 243, 199, .08));
  pointer-events: none;
}

.asset-overview-card > * {
  position: relative;
  z-index: 1;
}

.overview-scan {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d6a02a;
  box-shadow: 0 8px 16px rgba(214, 160, 42, .24);
  font-size: 18px;
  font-weight: 900;
}

.asset-board-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 10px;
}

.board-primary,
.board-alert {
  min-height: 112px;
  border-radius: 16px;
  padding: 14px;
  display: grid;
  align-content: center;
}

.board-primary {
  background: linear-gradient(135deg, #fffaf0, #fef3c7);
  border: 1px solid #f4d98f;
}

.board-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.board-primary span,
.board-alert span {
  color: #78716c;
  font-size: 11px;
  font-weight: 800;
}

.board-primary b,
.board-alert b {
  margin-top: 5px;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.board-primary b {
  color: #7c2d12;
}

.board-alert b {
  color: #dc2626;
}

.board-primary small,
.board-alert small {
  margin-top: 7px;
  color: #78716c;
  font-size: 10px;
  line-height: 1.3;
}

.board-alert small,
.board-alert span {
  color: #991b1b;
}

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

.asset-board-sub a {
  min-height: 54px;
  border-radius: 13px;
  display: grid;
  align-content: center;
  text-align: center;
  background: #fffaf0;
  border: 1px solid #f0e6d4;
}

.asset-board-sub b {
  color: #292524;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.asset-board-sub span {
  margin-top: 5px;
  color: #78716c;
  font-size: 10px;
  font-weight: 700;
}

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

.asset-state {
  min-height: 56px;
  border-radius: 10px;
  display: grid;
  align-content: center;
  text-align: center;
}

.asset-state b {
  color: #111827;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 800;
}

.asset-state span {
  margin-top: 7px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.asset-state.danger b,
.asset-state.danger span {
  color: #dc2626;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 10px;
}

.core-grid {
  gap: 12px 8px;
}

.module-tile {
  width: 100%;
  min-width: 0;
  min-height: 72px;
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  color: #334155;
  text-align: center;
  font: inherit;
  cursor: pointer;
}

.module-tile b {
  max-width: 100%;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.module-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #8fa0b7, #475569);
  box-shadow: 0 8px 16px rgba(71, 85, 105, .18), inset 0 -4px 0 rgba(15, 23, 42, .12);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.module-icon.green {
  background: linear-gradient(135deg, #6ee7b7, #10b981);
  box-shadow: 0 8px 16px rgba(16, 185, 129, .2), inset 0 -4px 0 rgba(4, 120, 87, .12);
}

.module-icon.amber {
  background: linear-gradient(135deg, #fcd77d, #f59e0b);
  box-shadow: 0 8px 16px rgba(245, 158, 11, .2), inset 0 -4px 0 rgba(146, 64, 14, .12);
}

.module-icon.cyan {
  background: linear-gradient(135deg, #67e8f9, #06b6d4);
  box-shadow: 0 8px 16px rgba(6, 182, 212, .2), inset 0 -4px 0 rgba(14, 116, 144, .12);
}

.module-icon.red {
  background: linear-gradient(135deg, #fca5a5, #ef4444);
  box-shadow: 0 8px 16px rgba(239, 68, 68, .2), inset 0 -4px 0 rgba(153, 27, 27, .12);
}

.module-icon.blue {
  background: linear-gradient(135deg, #93c5fd, #4f7cff);
  box-shadow: 0 8px 16px rgba(79, 124, 255, .2), inset 0 -4px 0 rgba(30, 64, 175, .12);
}

.module-icon.pink {
  background: linear-gradient(135deg, #fb7aa4, #ec407a);
  box-shadow: 0 8px 16px rgba(236, 64, 122, .2), inset 0 -4px 0 rgba(157, 23, 77, .12);
}

.module-icon.purple {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  box-shadow: 0 8px 16px rgba(124, 58, 237, .2), inset 0 -4px 0 rgba(91, 33, 182, .12);
}

.module-icon.teal {
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  box-shadow: 0 8px 16px rgba(20, 184, 166, .2), inset 0 -4px 0 rgba(15, 118, 110, .12);
}

.module-icon.slate {
  background: linear-gradient(135deg, #94a3b8, #475569);
}

.more-actions {
  padding-top: 8px;
}

.more-business {
  border-top: 1px solid #f0e6d4;
  padding-top: 8px;
}

.more-business-title {
  min-height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: #78716c;
  font-size: 12px;
  font-weight: 800;
}

.more-actions a,
.more-actions button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  color: #292524;
  font: inherit;
  text-align: left;
}

.more-actions a + a,
.more-actions a + button,
.more-actions button + a {
  margin-top: 2px;
}

.more-actions span {
  flex: 0 0 auto;
  color: #292524;
  font-size: 13px;
  font-weight: 800;
}

.more-actions b {
  min-width: 0;
  color: #78716c;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #eadfca;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .62), transparent 31%),
    linear-gradient(135deg, #fff7df 0%, #f6d98d 52%, #d1a04f 100%);
  box-shadow: 0 14px 30px rgba(92, 64, 28, .1);
}

.workbench-hero::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -46px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 20px solid rgba(255, 255, 255, .18);
}

.workbench-hero > * {
  position: relative;
  z-index: 1;
}

.role-badge {
  flex: 0 0 auto;
  min-height: 28px;
  max-width: 88px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c2d12;
  background: rgba(255, 250, 240, .74);
  border: 1px solid rgba(146, 64, 14, .16);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-metric {
  min-height: 62px;
  border-radius: 14px;
  padding: 9px 6px;
  display: grid;
  align-content: center;
  gap: 4px;
  text-align: center;
  color: #14532d;
  background: rgba(236, 253, 245, .76);
  border: 1px solid rgba(22, 163, 74, .12);
}

.hero-metric.warning {
  color: #92400e;
  background: rgba(255, 247, 237, .82);
  border-color: rgba(234, 88, 12, .14);
}

.hero-metric.danger {
  color: #991b1b;
  background: rgba(254, 242, 242, .8);
  border-color: rgba(220, 38, 38, .13);
}

.hero-metric b {
  display: block;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
}

.hero-metric span {
  display: block;
  color: #57534e;
  font-size: 10px;
  font-weight: 700;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 0;
  border-top: 1px solid #f0e6d4;
}

.task-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.task-title {
  min-width: 0;
  color: #292524;
  font-size: 14px;
  font-weight: 700;
}

.task-sub {
  margin-top: 2px;
  color: #78716c;
  font-size: 11px;
}

.action-group {
  border-radius: 14px;
  background: #fffaf0;
  border: 1px solid #f0e6d4;
  padding: 10px;
}

.action-group-title {
  margin-bottom: 8px;
  color: #78716c;
  font-size: 11px;
  font-weight: 800;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.action-tile {
  min-height: 70px;
  border-radius: 12px;
  border: 1px solid #f0e6d4;
  background: #fffdf7;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 10px;
  text-align: left;
  box-shadow: 0 6px 16px rgba(92, 64, 28, .04);
}

.action-tile b {
  color: #292524;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.action-tile small {
  color: #78716c;
  font-size: 10px;
  line-height: 1.2;
}

.tile-icon {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f8c96a, #c98725);
  box-shadow: 0 8px 18px rgba(180, 121, 31, .12), inset 0 -3px 0 rgba(113, 63, 18, .1);
  font-size: 16px;
  font-weight: 800;
}

.tile-icon.green {
  background: linear-gradient(135deg, #70d9a9, #2fa97d);
}

.tile-icon.red {
  background: linear-gradient(135deg, #ff8b7e, #d9463e);
}

.tile-icon.mint {
  background: linear-gradient(135deg, #9be6bf, #4cab78);
}

.tile-icon.teal {
  background: linear-gradient(135deg, #62cfbd, #1f8f82);
}

.tile-icon.amber {
  background: linear-gradient(135deg, #f8c96a, #c98725);
}

.tile-icon.slate {
  background: linear-gradient(135deg, #8fa0b7, #475569);
}

.miniapp-hero {
  margin: -12px -14px 0;
  padding: 18px 18px 68px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, .36), transparent 28%),
    linear-gradient(135deg, #f8df9c 0%, #efd082 48%, #cfa154 100%);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.login-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-disc {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .28);
  border: 2px solid rgba(255, 255, 255, .48);
  box-shadow: inset 0 -8px 16px rgba(121, 76, 21, .1);
}

.asset-summary {
  position: relative;
  margin-top: -52px;
  background: rgba(255, 253, 247, .96);
  border: 1px solid rgba(234, 223, 202, .9);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(92, 64, 28, .12);
}

.asset-summary.compact {
  margin-top: 0;
  box-shadow: 0 8px 22px rgba(92, 64, 28, .05);
}

.summary-scan {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #35a58b;
  box-shadow: 0 8px 16px rgba(53, 165, 139, .22);
}

.scan-link {
  flex: 0 0 auto;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.summary-grid a {
  min-height: 58px;
  border-radius: 12px;
  display: grid;
  align-content: center;
  background: #fffaf0;
}

.summary-grid b {
  display: block;
  color: #292524;
  font-size: 18px;
  line-height: 1.1;
}

.summary-grid span {
  display: block;
  margin-top: 5px;
  color: #78716c;
  font-size: 11px;
}

.quiet-link {
  color: #a16207 !important;
}

.onboarding-screen {
  grid-template-rows: auto 1fr auto;
}

.enterprise-manage-link {
  flex: 0 0 auto;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  color: #92400e;
  background: #fef3c7;
  font-size: 10px;
  font-weight: 800;
}

.invitation-qr {
  width: 164px;
  height: 164px;
  border: 10px solid #fff;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #292524 9px, transparent 9px) 0 0 / 22px 22px,
    linear-gradient(#292524 9px, transparent 9px) 0 0 / 22px 22px,
    linear-gradient(135deg, transparent 42%, #292524 42% 58%, transparent 58%) 0 0 / 28px 28px,
    #fffaf0;
  box-shadow: 0 10px 28px rgba(92, 64, 28, .12);
}

.role-permission {
  min-height: 66px;
  border-radius: 14px;
  border: 1px solid #eadfca;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #292524;
  background: #fffaf0;
  text-align: left;
}

.role-permission span {
  min-width: 0;
}

.role-permission b,
.role-permission small {
  display: block;
}

.role-permission b {
  font-size: 13px;
}

.role-permission small {
  margin-top: 4px;
  color: #78716c;
  font-size: 10px;
  line-height: 1.4;
}

.role-permission i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid #d6b878;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.role-permission.selected {
  border-color: #e5b94f;
  background: #fffbeb;
}

.role-permission.selected i {
  border-color: #b7791f;
  background: #b7791f;
}

@media (max-width: 700px) {
  .demo-layout {
    padding: 10px;
  }

  .role-panel {
    display: none;
  }

  .iphone-frame {
    width: min(100vw - 20px, 390px);
    height: min(100vh - 20px, 844px);
  }
}
