:root {
  --bg-1: #f7f7f5;
  --bg-2: #efefec;
  --header-1: #ffffff;
  --header-2: #f5f5f2;
  --ink-1: #1f1f1d;
  --ink-2: #6b6b66;
  --primary: #30302c;
  --stroke: #e1e1dc;
  --card: #ffffff;
  --ui-r-soft: 14px;
  --search-r: var(--ui-r-soft);
  --card-r: 22px;
  --accent-eitaa-strong: #f18f2d;
  --accent-eitaa-soft: #ffe7d2;
  --home-logo-gap: 28px;
  --hero-padding: var(--home-logo-gap) 16px 26px;
  --hero-min-height: 174px;
  --didban-webapp-title-row-top: 46px;
  --didban-webapp-title-row-bottom: 16px;
  --didban-webapp-title-row-min-height: 38px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

body,
body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select,
option,
[contenteditable='true'] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(900px 420px at 80% -170px, rgba(241, 143, 45, 0.12) 0%, transparent 64%),
    radial-gradient(880px 420px at 18% -190px, rgba(241, 143, 45, 0.05) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 56%, #f9f9f8 100%);
  color: var(--ink-1);
}

button,
input,
select,
textarea,
option {
  font-family: inherit;
}

.page-shell {
  width: min(760px, 100% - 28px);
  margin: 0 auto;
  padding-bottom: 24px;
}

.has-floating-nav .page-shell {
  padding-bottom: 118px;
}

.hero-card {
  background: linear-gradient(170deg, var(--header-1) 0%, var(--header-2) 100%);
  border: 1px solid var(--stroke);
  border-top: 0;
  border-radius: 0 0 var(--card-r) var(--card-r);
  box-shadow: 0 14px 28px rgba(28, 28, 26, 0.08);
  padding: var(--hero-padding);
}

.hero-card.inline-header-morph {
  will-change: height;
  transition: height 240ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.inline-view-enter {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
}

.inline-view-enter.inline-view-enter-still {
  transform: translateY(0);
}

.inline-view-enter.inline-view-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 210ms ease,
    transform 230ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.inline-view-exit {
  opacity: 1;
  transform: translateY(0);
  will-change: opacity, transform;
}

.inline-view-exit.inline-view-exit-active {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 110ms ease,
    transform 120ms cubic-bezier(0.4, 0, 0.2, 1);
}

.home-hero {
  width: 100%;
  min-height: var(--hero-min-height);
  position: relative;
  overflow: hidden;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  opacity: 1;
  display: grid;
  gap: var(--home-logo-gap);
}

.home-compact-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 44px 0 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.home-preview-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #272723;
}

.logo-box {
  width: min(340px, 96%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 18px;
  border: 0;
  background: transparent;
  color: #272724;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.logo-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: inherit;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.home-dashboard-entry {
  appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #dad9d3;
  background: rgba(255, 255, 255, 0.9);
  color: #44443f;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(19, 20, 24, 0.08);
  cursor: pointer;
  padding: 0;
}

.home-dashboard-entry svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-wrap {
  margin-top: 0;
  position: relative;
  width: 100%;
  min-height: 40px;
  border-radius: var(--search-r);
  border: 1px solid #d4d4cf;
  background: #ffffff;
  display: flex;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.search-input {
  width: 100%;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-1);
  font-size: 0.95rem;
  padding: 0 16px;
  text-align: right;
  transition: padding-left 420ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.search-input:placeholder-shown {
  text-align: center;
}

.search-input::placeholder {
  color: #7b7b76;
}

.search-wrap.has-search-action .search-input {
  padding-left: 56px;
}

.search-button {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0.74);
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--search-r);
  background: linear-gradient(145deg, #fff2e5 0%, #ffe8d3 100%);
  color: #7a4615;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 0.8, 0.2, 1),
    transform 420ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.search-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 22px;
  height: 22px;
  line-height: 1;
}

.search-button-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.search-button.is-loading {
  cursor: wait;
  opacity: 0.96;
}

.search-button.is-loading .search-button-icon {
  animation: didban-search-orbit 900ms linear infinite;
}

.search-button:hover {
  background: linear-gradient(145deg, #ffeedc 0%, #ffe1c7 100%);
}

@keyframes didban-search-orbit {
  0% {
    transform: rotate(0deg) translateX(2px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(2px) rotate(-360deg);
  }
}

input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

input[type='search']::-ms-clear,
input[type='search']::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.home-content {
  margin-top: 30px;
}

.cards-stack {
  display: grid;
  gap: 14px;
}

.entity-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.entity-card {
  width: 100%;
  border-radius: var(--card-r);
  border: 1px solid var(--stroke);
  background: var(--card);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 6px 16px rgba(28, 28, 26, 0.07);
}

.entity-card-link:hover .entity-card {
  border-color: #d6d6d1;
  box-shadow: 0 8px 18px rgba(28, 28, 26, 0.09);
}

.entity-avatar {
  width: 65px;
  height: 65px;
  border-radius: var(--card-r);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4b3219;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fff0e2 68%);
  border: 1px solid #f0c89f;
  overflow: hidden;
  position: relative;
}

.entity-avatar.has-image {
  background: #ffffff;
  border-color: #e7e7e0;
}

.entity-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.entity-avatar.has-image.is-loaded .entity-avatar-image {
  opacity: 1;
}

.entity-avatar.has-image.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(241, 143, 45, 0.08) 8%,
    rgba(241, 143, 45, 0.32) 22%,
    rgba(241, 143, 45, 0.08) 38%
  );
  background-size: 220% 100%;
  animation: didban-avatar-shimmer 1.05s ease-in-out infinite;
}

.entity-avatar.has-image.is-loading::after {
  content: '';
  position: absolute;
  inset: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(241, 143, 45, 0.24);
  border-top-color: rgba(241, 143, 45, 0.88);
  animation: didban-avatar-spin 0.9s linear infinite;
}

@keyframes didban-avatar-shimmer {
  to {
    background-position: -160% 0;
  }
}

@keyframes didban-avatar-spin {
  to {
    transform: rotate(360deg);
  }
}

.entity-meta {
  min-width: 0;
  flex: 1;
}

.entity-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #232320;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-category {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-type-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(242px, calc(100% - 38px));
  border-radius: 14px;
  border: 1px solid #dddcd6;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: repeat(var(--didban-nav-cols, 3), minmax(0, 1fr));
  box-shadow: 0 11px 24px rgba(29, 29, 26, 0.14);
  overflow: hidden;
  z-index: 50;
  transition: transform 220ms ease, opacity 220ms ease;
}

.floating-type-nav[data-nav-count="1"] {
  --didban-nav-cols: 1;
}

.floating-type-nav[data-nav-count="2"] {
  --didban-nav-cols: 3;
}

.floating-type-nav[data-nav-count="3"] {
  --didban-nav-cols: 3;
}

.floating-type-nav[data-nav-count="4"] {
  --didban-nav-cols: 4;
}

.inline-category-page[hidden] {
  display: none;
}

.inline-subcategory-page[hidden] {
  display: none;
}

.inline-dashboard-page[hidden] {
  display: none;
}

.inline-search-page[hidden] {
  display: none;
}

.inline-category-page {
  display: block;
  contain: layout paint;
}

.inline-subcategory-page {
  display: block;
  contain: layout paint;
}

.inline-dashboard-page {
  display: block;
  contain: layout paint;
}

.inline-search-page {
  display: block;
  contain: layout paint;
}

body.is-inline-search-active .home-content,
body.is-inline-search-active .inline-category-page,
body.is-inline-search-active .inline-subcategory-page,
body.is-inline-search-active .inline-dashboard-page {
  display: none;
}

body.is-inline-category-active .home-hero,
body.is-inline-category-active .home-content,
body.is-inline-category-active .search-content,
body.is-inline-category-active .inline-search-page,
body.is-inline-category-active .floating-type-nav {
  display: none;
}

body.is-inline-subcategory-active .home-hero,
body.is-inline-subcategory-active .home-content,
body.is-inline-subcategory-active .search-content,
body.is-inline-subcategory-active .inline-search-page,
body.is-inline-subcategory-active .floating-type-nav,
body.is-inline-subcategory-active .inline-category-page {
  display: none;
}

body.is-inline-dashboard-active .home-hero,
body.is-inline-dashboard-active .home-content,
body.is-inline-dashboard-active .search-content,
body.is-inline-dashboard-active .inline-search-page,
body.is-inline-dashboard-active .floating-type-nav,
body.is-inline-dashboard-active .inline-category-page,
body.is-inline-dashboard-active .inline-subcategory-page {
  display: none;
}

html.didban-webapp body.is-inline-category-active .inline-category-page .category-hero .compact-back {
  display: none;
}

html.didban-webapp body.is-inline-category-active .inline-category-page .category-hero-content {
  padding-left: 0;
  justify-content: center;
  align-items: center;
  padding-top: var(--didban-webapp-title-row-top, 46px);
  padding-bottom: var(--didban-webapp-title-row-bottom, 16px);
  min-height: var(--didban-webapp-title-row-min-height, 38px);
}

html.didban-webapp body.is-inline-category-active .inline-category-page .compact-hero-text {
  flex: 0 1 auto;
}

html.didban-webapp body.is-inline-category-active .inline-category-page .compact-hero-title {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

html.didban-webapp body.is-inline-subcategory-active .inline-subcategory-page .subcategory-hero-top .compact-back {
  display: none;
}

html.didban-webapp body.is-inline-subcategory-active .inline-subcategory-page .subcategory-hero-top {
  padding-left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--didban-webapp-title-row-min-height, 38px);
  margin-top: var(--didban-webapp-title-row-top, 46px);
  padding-bottom: var(--didban-webapp-title-row-bottom, 16px);
}

html.didban-webapp body.is-inline-subcategory-active .inline-subcategory-page .subcategory-hero-title {
  margin: 0;
  text-align: center;
}

html.didban-webapp body.is-inline-dashboard-active .inline-dashboard-page .compact-logout {
  display: none;
}

html.didban-webapp body.is-inline-dashboard-active .inline-dashboard-page .dashboard-hero-content {
  padding-left: 0;
  justify-content: center;
  align-items: center;
  padding-top: var(--didban-webapp-title-row-top, 46px);
  padding-bottom: var(--didban-webapp-title-row-bottom, 16px);
  min-height: var(--didban-webapp-title-row-min-height, 38px);
}

html.didban-webapp body.is-inline-dashboard-active .inline-dashboard-page .compact-hero-text {
  flex: 0 1 auto;
}

html.didban-webapp body.is-inline-dashboard-active .inline-dashboard-page .compact-hero-title {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

html.didban-webapp body.is-inline-dashboard-active .modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 50px) 12px 14px;
  box-sizing: border-box;
}

html.didban-webapp body.is-inline-dashboard-active .modal-overlay[hidden] {
  display: none;
}

html.didban-webapp body.is-inline-dashboard-active .modal-overlay .modal-card {
  margin: 0;
  max-height: calc(100vh - (env(safe-area-inset-top, 0px) + 72px));
}

.user-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(20px);
  width: 75vw;
  min-width: 0;
  max-width: 75vw;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e5dacd;
  background: #fffaf4;
  color: #4e351d;
  font-size: 0.82rem;
  line-height: 1.75;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 10px 22px rgba(21, 20, 18, 0.14);
  opacity: 0;
  pointer-events: none;
  z-index: 1700;
  transition: opacity 170ms ease, transform 170ms ease;
}

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

.user-toast.is-error {
  border-color: #e8c4bf;
  background: #fff5f4;
  color: #9f2f25;
}

.user-toast.is-long {
  padding-block: 12px;
}

.didban-connectivity-strip {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(96vw, 540px);
  min-height: 44px;
  padding: 10px 14px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px 22px 0 0;
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  z-index: 2147483000;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, color 200ms ease;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.24);
}

.didban-connectivity-strip.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.didban-connectivity-strip.state-problem {
  background: #cb4a2b;
  color: #fff3ea;
}

.didban-connectivity-strip.state-ok {
  background: #2f8f4d;
  color: #ecfff3;
}

.didban-connectivity-strip__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  direction: ltr;
}

.didban-connectivity-strip__text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.9;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.didban-connectivity-strip__icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.didban-connectivity-strip__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.didban-nav-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147482500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms linear;
}

.didban-nav-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.didban-nav-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 24, 0.56);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  opacity: 0;
  transition: opacity 200ms ease;
}

.didban-nav-loader.is-visible .didban-nav-loader__backdrop {
  opacity: 1;
}

.didban-nav-loader__dots {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.didban-nav-loader.is-visible .didban-nav-loader__dots {
  opacity: 1;
  transform: translateY(0);
}

.didban-nav-loader__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(160deg, #ffcf68, #f29a2f);
  box-shadow: 0 0 0 1px rgba(247, 176, 79, 0.18);
}

.didban-nav-loader__dot:nth-child(1) {
  animation: didbanLoaderDots 700ms ease-in-out infinite 0ms;
}

.didban-nav-loader__dot:nth-child(2) {
  animation: didbanLoaderDots 700ms ease-in-out infinite 120ms;
}

.didban-nav-loader__dot:nth-child(3) {
  animation: didbanLoaderDots 700ms ease-in-out infinite 240ms;
}

.didban-inline-route-loader {
  position: fixed;
  inset: 0;
  z-index: 2147482600;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--didban-page-bg, #f5efe6);
  transition: opacity 180ms ease, visibility 180ms linear;
}

.didban-inline-route-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.didban-inline-route-loader__snapshot {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.didban-inline-route-snapshot-shell {
  min-height: 100%;
  pointer-events: none;
}

.didban-inline-route-snapshot-shell .inline-dashboard-page {
  display: block;
  contain: none;
}

.didban-inline-route-loader__veil {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 24, 0.16);
  backdrop-filter: blur(0.8px);
  -webkit-backdrop-filter: blur(0.8px);
}

.didban-inline-route-loader__dots {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 6px;
  transform: translate(-50%, calc(-50% + 4px));
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.didban-inline-route-loader.is-visible .didban-inline-route-loader__dots {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.didban-inline-route-loader__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(160deg, #ffcf68, #f29a2f);
  box-shadow: 0 0 0 1px rgba(247, 176, 79, 0.18);
}

.didban-inline-route-loader__dot:nth-child(1) {
  animation: didbanLoaderDots 700ms ease-in-out infinite 0ms;
}

.didban-inline-route-loader__dot:nth-child(2) {
  animation: didbanLoaderDots 700ms ease-in-out infinite 120ms;
}

.didban-inline-route-loader__dot:nth-child(3) {
  animation: didbanLoaderDots 700ms ease-in-out infinite 240ms;
}

@keyframes didbanLoaderDots {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.motd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1750;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 44px) 12px calc(env(safe-area-inset-bottom, 0px) + 14px);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.motd-modal-overlay[hidden] {
  display: none;
}

.motd-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.motd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 17, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.motd-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 24px));
  min-height: 220px;
  max-height: min(70vh, 560px);
  border-radius: 24px;
  border: 1px solid #e2e1dc;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(16, 18, 23, 0.22);
  padding: 16px 14px 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.motd-modal-overlay.is-open .motd-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.motd-modal-close {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #f5f2ec;
  color: #4b4a44;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.motd-modal-close[hidden] {
  display: none;
}

.motd-modal-close:hover {
  background: #ece6dc;
}

.motd-modal-body {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 12px 10px 6px;
}

.motd-modal-title {
  margin: 0;
  color: #2f2f2b;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.motd-modal-text {
  margin: 0;
  color: #424039;
  font-size: 0.9rem;
  line-height: 2;
  text-align: center;
  white-space: pre-line;
}

.motd-modal-text p,
.motd-modal-text div {
  margin: 0 0 8px;
}

.motd-modal-text p:last-child,
.motd-modal-text div:last-child {
  margin-bottom: 0;
}

.violation-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  align-items: end;
}

.violation-sheet-overlay[hidden] {
  display: none;
}

.violation-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 17, 0.34);
  cursor: pointer;
}

.violation-sheet {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  border: 1px solid #e9ddd0;
  border-bottom: 0;
  background: #fffefc;
  padding: 14px 14px 18px;
  transform: translateY(108%);
  transition: transform 200ms ease;
}

.violation-sheet-overlay.is-open .violation-sheet {
  transform: translateY(0);
}

.violation-sheet-title {
  margin: 0 0 12px;
  color: #292824;
  font-size: 0.9rem;
  font-weight: 700;
}

.violation-sheet-reasons {
  display: grid;
  gap: 8px;
}

.violation-sheet-option {
  width: 100%;
  text-align: right;
  border: 1px solid #e3ddd4;
  border-radius: 12px;
  background: #ffffff;
  color: #3c3a34;
  padding: 10px 12px;
  font-size: 0.82rem;
  cursor: pointer;
}

.violation-sheet-option.is-active {
  border-color: #f0b07b;
  background: #fff4e7;
  color: #5c3a18;
}

.violation-sheet-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.violation-sheet-submit,
.violation-sheet-cancel {
  flex: 1;
  min-height: 38px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.violation-sheet-submit {
  border: 1px solid #e2d2bf;
  background: #fff1e1;
  color: #69401a;
}

.violation-sheet-cancel {
  border: 1px solid #dfddd6;
  background: #ffffff;
  color: #57564f;
}

.ownership-claim-sheet .violation-sheet-title {
  margin-bottom: 10px;
}

.ownership-claim-label {
  display: block;
  margin: 0 0 6px;
  color: #5a4b36;
  font-size: 0.8rem;
  font-weight: 700;
}

.ownership-claim-input {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #e1dfd7;
  background: #ffffff;
  color: #2f2f2b;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.ownership-claim-input:focus {
  border-color: #f2b272;
  outline: none;
  box-shadow: 0 0 0 3px rgba(241, 143, 45, 0.15);
}

.ownership-claim-hint {
  margin: 8px 0 0;
  color: #6a5a45;
  font-size: 0.76rem;
  line-height: 1.7;
}

.type-nav-button {
  appearance: none;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: #2f2f2b;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 240ms ease, color 240ms ease;
}

.type-nav-button,
.join-link,
.home-dashboard-entry {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.type-nav-button + .type-nav-button {
  border-right: 1px solid #e8e7e1;
}

.type-nav-button:hover {
  background: linear-gradient(180deg, rgba(241, 143, 45, 0.18) 0%, rgba(241, 143, 45, 0.07) 100%);
  color: #4f2f12;
}

.type-nav-icon {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  line-height: 1;
  margin-bottom: 1px;
}

.type-nav-icon i {
  width: 14px;
  height: 14px;
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.type-nav-home-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.type-nav-dashboard-button {
  display: none;
}

.type-nav-icon .bi-people-fill {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8.2' cy='8.2' r='3.1'/%3E%3Ccircle cx='16.6' cy='9.1' r='2.5'/%3E%3Crect x='2.5' y='14.2' width='12.2' height='6.8' rx='3.3'/%3E%3Crect x='13.3' y='15.2' width='8.2' height='5.8' rx='2.8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8.2' cy='8.2' r='3.1'/%3E%3Ccircle cx='16.6' cy='9.1' r='2.5'/%3E%3Crect x='2.5' y='14.2' width='12.2' height='6.8' rx='3.3'/%3E%3Crect x='13.3' y='15.2' width='8.2' height='5.8' rx='2.8'/%3E%3C/svg%3E");
}

.type-nav-icon .fa-bullhorn {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='4,10 8.3,10 15.7,6 15.7,18 8.3,14 4,14'/%3E%3Crect x='8.8' y='14' width='2.1' height='4.7' rx='1'/%3E%3Crect x='18.2' y='9.2' width='2.1' height='5.6' rx='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='4,10 8.3,10 15.7,6 15.7,18 8.3,14 4,14'/%3E%3Crect x='8.8' y='14' width='2.1' height='4.7' rx='1'/%3E%3Crect x='18.2' y='9.2' width='2.1' height='5.6' rx='1'/%3E%3C/svg%3E");
}

.type-nav-icon .fa-robot {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='8' width='14' height='10' rx='2.6'/%3E%3Crect x='11.2' y='5' width='1.6' height='2.5' rx='0.8'/%3E%3Ccircle cx='9.5' cy='12.9' r='1.1'/%3E%3Ccircle cx='14.5' cy='12.9' r='1.1'/%3E%3Crect x='9' y='15.8' width='6' height='1.4' rx='0.7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='8' width='14' height='10' rx='2.6'/%3E%3Crect x='11.2' y='5' width='1.6' height='2.5' rx='0.8'/%3E%3Ccircle cx='9.5' cy='12.9' r='1.1'/%3E%3Ccircle cx='14.5' cy='12.9' r='1.1'/%3E%3Crect x='9' y='15.8' width='6' height='1.4' rx='0.7'/%3E%3C/svg%3E");
}

.type-nav-label {
  line-height: 1.1;
  margin-top: 0;
}

body.keyboard-open .floating-type-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-card.inline-header-morph,
  .inline-view-enter.inline-view-enter-active,
  .inline-view-exit.inline-view-exit-active,
  .motd-modal-overlay,
  .motd-modal-card {
    transition: none;
  }

  .inline-view-enter,
  .inline-view-exit {
    opacity: 1;
    transform: none;
  }
}

html.didban-webapp {
  --didban-webapp-title-row-top: clamp(42px, calc(env(safe-area-inset-top, 0px) + 28px), 78px);
  --didban-webapp-title-row-bottom: clamp(12px, calc(env(safe-area-inset-top, 0px) * 0.15 + 12px), 18px);
  --didban-webapp-title-row-min-height: clamp(34px, calc(env(safe-area-inset-top, 0px) * 0.2 + 34px), 44px);
}

html.didban-webapp body.page-home .home-hero,
html.didban-webapp body.page-search .home-hero {
  padding-top: calc(var(--home-logo-gap) * 3.5);
}

html.didban-webapp body.page-home .home-dashboard-entry,
html.didban-webapp body.page-search .home-dashboard-entry {
  display: none;
}

html.didban-webapp body.page-subcategory .user-toast {
  bottom: 46px;
}

html.didban-webapp body.page-home .floating-type-nav[data-nav-count='2'],
html.didban-webapp body.page-search .floating-type-nav[data-nav-count='2'] {
  grid-template-columns: 2fr 1fr 2fr;
  width: min(292px, calc(100% - 38px));
}

html.didban-webapp body.page-home .floating-type-nav[data-nav-count='2'] .type-nav-dashboard-button,
html.didban-webapp body.page-search .floating-type-nav[data-nav-count='2'] .type-nav-dashboard-button {
  display: flex;
  min-height: 44px;
}

@media (min-width: 720px) {
  :root {
    --home-logo-gap: 34px;
    --hero-padding: var(--home-logo-gap) 22px 28px;
  }

  .page-shell {
    width: min(880px, 100% - 40px);
  }

  body.page-home .page-shell,
  body.page-categories .page-shell,
  body.page-subcategory .page-shell,
  body.page-dashboard .page-shell,
  body.page-search .page-shell,
  body.page-entity .page-shell {
    width: min(760px, 100% - 28px);
  }

  .logo-box {
    width: min(400px, 74%);
  }

  .entity-card {
    padding: 14px 16px;
  }

  .floating-type-nav {
    width: 252px;
  }
}

@media (max-width: 720px) {
  body.page-home .page-shell,
  body.page-categories .page-shell,
  body.page-subcategory .page-shell,
  body.page-dashboard .page-shell,
  body.page-search .page-shell,
  body.page-entity .page-shell {
    width: calc(100% - 20px);
  }
}

@media (max-width: 560px) {
  :root {
    --home-logo-gap: 22px;
    --hero-padding: var(--home-logo-gap) 16px 24px;
  }

  .type-nav-icon i {
    width: 13px;
    height: 13px;
  }

  .logo-box {
    width: min(320px, 96%);
  }
}
