*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html.is-static *,
html.is-static *::before,
html.is-static *::after {
  animation: none !important;
  transition: none !important;
}

:root {
  --accent-blue: #4169e1;
  --white-pure: #ffffff;
  --black-pure: #000000;
  --grey-light: #e0e0e0;
  --grey-medium: #999999;
  --grey-dark: #666666;
  --card-bg: #fafafa;
  --border-color: rgba(0, 0, 0, 0.1);
  --border-radius: 0.5rem;
  --navbar-height: 4rem;
  --card-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  --danger: #d64545;
  --danger-soft: rgba(214, 69, 69, 0.12);
  --warn: #d9822b;
  --warn-soft: #fff4e6;
  --blue-soft: rgba(65, 105, 225, 0.12);
  --canvas: #fafafa;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--white-pure);
  color: var(--black-pure);
  min-height: 100dvh;
}

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

button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.hs::-webkit-scrollbar {
  display: none;
}

.hs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes growY {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes growX {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ── App shell: full-bleed mobile, desktop sidebar at 801px+ ── */

.stage {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  background: var(--white-pure);
}

.app {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background: var(--canvas);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.island,
.status-bar {
  display: none;
}

.app-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.app-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── Fake iPhone status (kept in DOM, never shown — no phone-in-phone) ── */

.status-bar {
  display: none;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Navbar: 4rem, stube.li left, Powered by Concrete right ── */

.navbar {
  height: var(--navbar-height);
  min-height: var(--navbar-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--white-pure);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 20;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.navbar-logo {
  display: block;
  height: 26px;
  width: auto;
}

.navbar-brand-text {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black-pure);
}

.navbar-powered {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-powered-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--grey-medium);
  white-space: nowrap;
}

.navbar-powered-logo {
  display: block;
  height: 16px;
  width: auto;
  max-width: 128px;
}

/* ── Canvas ── */

.canvas {
  flex: 1;
  min-height: 0;
  position: relative;
  background: var(--white-pure);
  overflow: hidden;
}

.scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ── Type / page chrome ── */

.page-title {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black-pure);
}

.page-sub {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--grey-dark);
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
  flex-shrink: 0;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-medium);
  margin: 0 0 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  color: var(--grey-dark);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: none;
}

.section {
  padding: 20px;
}

.section--tight {
  padding: 0 20px 20px;
}

/* ── Dashboard ── */

.dash-metrics {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 0 20px;
}

.stat-value {
  margin: 0;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--accent-blue);
}

.stat-label {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-dark);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
}

.bar {
  width: 28px;
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
}

.bar--you {
  height: 18px;
  background: var(--accent-blue);
  animation: growY 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bar--market {
  height: 72px;
  background: var(--grey-light);
  animation: growY 0.85s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bar-labels {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.bar-labels > div {
  width: 28px;
  text-align: center;
}

.bar-labels strong {
  display: block;
  color: var(--black-pure);
  font-size: 12px;
  font-weight: 700;
}

.bar-labels .is-muted strong {
  color: var(--grey-dark);
  font-weight: 600;
}

.bar-labels span {
  display: block;
  color: var(--grey-medium);
  font-size: 12px;
  margin-top: 2px;
}

.saldo-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.micro {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-medium);
  margin: 0;
}

.saldo {
  color: var(--black-pure);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-soft);
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--border-radius);
  margin-top: 4px;
}

.spark {
  display: block;
  margin: 16px 0 4px;
  overflow: visible;
}

.spark-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--grey-medium);
  margin-bottom: 12px;
}

.split {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.split__col {
  flex: 1;
}

.split__col p:first-child {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-medium);
  margin: 0 0 4px;
}

.split__col p:last-child {
  font-size: 16px;
  font-weight: 700;
  color: var(--black-pure);
  margin: 0;
}

.split__rule {
  width: 1px;
  background: var(--border-color);
}

.rent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rent-head p {
  font-size: 14px;
  font-weight: 600;
  color: var(--black-pure);
  margin: 0;
}

.rent-head span {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-blue);
}

.track {
  height: 8px;
  background: var(--grey-light);
  border-radius: 2px;
  overflow: hidden;
}

.track__fill {
  height: 100%;
  background: var(--accent-blue);
  border-radius: 2px;
  transform-origin: left;
  animation: growX 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.rent-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--grey-dark);
}

.rent-foot .is-open {
  font-weight: 700;
  color: var(--danger);
}

.kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  overflow: hidden;
}

.kpi {
  padding: 12px;
  text-align: left;
  background: transparent;
  border-right: 1px solid var(--border-color);
}

.kpi:last-child {
  border-right: 0;
}

.kpi strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--black-pure);
}

.kpi span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--grey-dark);
}

.data-table {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--white-pure);
}

.data-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 0;
  text-align: left;
  background: var(--white-pure);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row__strip {
  width: 3px;
  align-self: stretch;
  flex-shrink: 0;
}

.data-row__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 2px;
}

.data-row__copy {
  flex: 1;
  min-width: 0;
}

.data-row__copy p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--black-pure);
}

.data-row__copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--grey-dark);
}

.data-row__count {
  font-size: 16px;
  font-weight: 700;
  color: var(--black-pure);
}

.data-row .chev {
  color: var(--grey-medium);
  flex-shrink: 0;
}

/* ── Tabs (underline, not pills) ── */

.tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
  margin: 0;
  flex-shrink: 0;
  overflow-x: auto;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-dark);
  background: var(--white-pure);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.tab em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-medium);
}

.tab.is-on {
  color: var(--white-pure);
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.tab.is-on em {
  color: var(--white-pure);
}

/* ── Todos as table rows ── */

.todo-list {
  padding: 16px 20px 28px;
}

.todo-wrap {
  margin-bottom: 0;
}

.todo-wrap.is-removing {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.todo-slide {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.todo-list .todo-wrap:first-child .todo-slide {
  border-top: 1px solid var(--border-color);
}

.todo-reveal {
  position: absolute;
  inset: 0 auto 0 0;
  width: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue);
  color: var(--white-pure);
  font-size: 12px;
  font-weight: 700;
}

.todo-reveal span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.todo-card {
  position: relative;
  background: var(--white-pure);
  display: flex;
  touch-action: pan-y;
}

.todo-card__strip {
  width: 3px;
  flex-shrink: 0;
}

.todo-card__body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px 12px 12px;
  min-width: 0;
}

.todo-card__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 2px;
}

.todo-card__copy {
  flex: 1;
  min-width: 0;
}

.todo-card__copy h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--black-pure);
}

.todo-card__copy p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--grey-dark);
}

.todo-meta,
.todo-due {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.todo-meta {
  color: var(--grey-dark);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.proc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-medium);
}

.proc-label p {
  margin: 0;
}

.hint {
  margin: 20px 0 8px;
  text-align: center;
  font-size: 12px;
  color: var(--grey-medium);
}

.empty {
  padding: 40px 20px;
  text-align: center;
}

.empty__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--accent-blue);
}

.empty p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.empty span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--grey-dark);
}

/* ── Portfolio rows ── */

.port-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
  flex-shrink: 0;
}

.btn-neu,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  background: var(--accent-blue);
  color: var(--white-pure);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.prop-list {
  padding: 0 20px 28px;
  border-top: 1px solid var(--border-color);
}

.prop-card {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  background: transparent;
}

.prop-card__img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.prop-card__shade {
  display: none;
}

.prop-card__status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
}

.prop-card__status.is-ok {
  background: var(--accent-blue);
}

.prop-card__status.is-attention {
  background: var(--warn);
}

.prop-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prop-card__body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--black-pure);
}

.prop-card__city {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--grey-dark);
}

.prop-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--grey-dark);
}

.prop-card__rent {
  margin-left: auto;
  font-weight: 700;
  color: var(--black-pure);
}

.prop-card__per {
  color: var(--grey-medium);
}

/* ── Profile ── */

.profile-card {
  margin: 16px 20px 0;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.profile-card__glow {
  display: none;
}

.profile-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  background: var(--black-pure);
  color: var(--white-pure);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.email {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--grey-dark);
}

.pro-badge {
  padding: 4px 8px;
  background: var(--accent-blue);
  color: var(--white-pure);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: var(--border-radius);
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.profile-stats div {
  text-align: left;
}

.profile-stats i {
  display: none;
}

.profile-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.profile-stats span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--grey-dark);
}

.menu-wrap {
  padding: 20px 20px 28px;
}

.menu {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--white-pure);
}

.menu > button,
.row-btn,
.unit {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
  background: var(--white-pure);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.menu > button:last-child,
.row-btn:last-child,
.unit:last-child {
  border-bottom: 0;
}

.menu > button span,
.row-btn h3,
.unit h3 {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--black-pure);
}

.menu aside,
.menu em,
.floor {
  font-size: 12px;
  font-style: normal;
  color: var(--grey-dark);
}

.menu .aktiv {
  color: var(--accent-blue);
  font-weight: 700;
}

.menu__ico,
.row-btn__ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  flex-shrink: 0;
}

.menu__ico--ink { background: #f0f0f0; color: var(--black-pure); }
.menu__ico--blue { background: var(--blue-soft); color: var(--accent-blue); }
.menu__ico--warn { background: var(--warn-soft); color: var(--warn); }
.menu__ico--mute { background: #f0f0f0; color: var(--grey-dark); }
.menu__ico--danger { background: var(--danger-soft); color: var(--danger); }

.logout {
  width: 100%;
  margin-top: 16px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--white-pure);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Dock: compact SaaS nav, no consumer FAB ── */

.dock {
  flex-shrink: 0;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  padding: 0 8px;
  background: var(--white-pure);
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 25;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  color: var(--grey-dark);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.nav-item.is-on {
  color: var(--accent-blue);
  font-weight: 700;
}

.nav-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  margin: 0 4px;
  background: var(--accent-blue);
  color: var(--white-pure);
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nav-create-plus {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.sidebar {
  display: none;
  width: 232px;
  flex-shrink: 0;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  background: var(--white-pure);
  border-right: 1px solid var(--border-color);
}

.sidebar .nav-item {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  width: 100%;
  font-size: 14px;
  border-radius: var(--border-radius);
}

.sidebar .nav-create {
  width: 100%;
  margin: auto 0 0;
  min-height: 40px;
  font-size: 14px;
}

/* ── Sheet ── */

.sheet-host,
.detail-host {
  position: absolute;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}

.sheet-host:not(:empty),
.detail-host:not(:empty) {
  pointer-events: auto;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.sheet {
  position: relative;
  background: var(--white-pure);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  max-height: 92%;
  display: flex;
  flex-direction: column;
  animation: sheetUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: var(--card-shadow);
}

.sheet__handle {
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
}

.sheet__handle i {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--grey-light);
}

.sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px;
  border-bottom: 1px solid var(--border-color);
}

.sheet__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sheet__head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--grey-dark);
}

.ico-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  cursor: pointer;
}

.sheet__body {
  padding: 16px 20px 28px;
  overflow-y: auto;
}

.create-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-medium);
  margin: 0 0 8px;
}

.create-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  cursor: pointer;
  background: transparent;
}

.create-item h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.create-item p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--grey-dark);
}

.create-item__ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}

.create-item__ico--ink { background: #f0f0f0; color: var(--black-pure); }
.create-item__ico--danger { background: var(--danger-soft); color: var(--danger); }
.create-item__ico--blue { background: var(--blue-soft); color: var(--accent-blue); }
.create-item__ico--warn { background: var(--warn-soft); color: var(--warn); }

.create-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accent-line {
  height: 3px;
  border-radius: 2px;
}

.field p {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-dark);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--white-pure);
  font-size: 16px;
  color: var(--black-pure);
  outline: none;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.prio-row {
  display: flex;
  gap: 8px;
}

.prio {
  flex: 1;
  min-height: 50px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--white-pure);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.prio.is-on {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--blue-soft);
}

.prio--urgent.is-on {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.submit {
  min-height: 50px;
  border-radius: var(--border-radius);
  background: var(--accent-blue);
  color: var(--white-pure);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.submit:disabled {
  background: var(--grey-light);
  color: var(--grey-medium);
  cursor: default;
}

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 12px 12px;
  gap: 16px;
}

.success__circle {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: var(--border-radius);
}

.success h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.success p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--grey-dark);
}

/* ── Details ── */

.detail {
  position: absolute;
  inset: 0;
  background: var(--white-pure);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.detail__hero,
.pd-hero {
  position: relative;
  padding: 16px 20px 20px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
}

.pd-hero {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white-pure);
}

.pd-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.15));
}

.back-light,
.pd-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--white-pure);
  cursor: pointer;
  margin-bottom: 16px;
}

.pd-back {
  position: relative;
  z-index: 1;
  margin: 12px 0 auto;
}

.detail__type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

.urgent-tag {
  padding: 2px 6px;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 2px;
}

.detail__hero h2,
.pd-hero__copy h2 {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.pd-hero__copy {
  position: relative;
  z-index: 1;
  padding-bottom: 4px;
}

.pd-hero__copy p {
  margin: 4px 0 0;
  font-size: 14px;
}

.detail__where {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--grey-dark);
}

.detail__body,
.pd-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-dark);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  background: var(--accent-blue);
  color: var(--white-pure);
  border-radius: var(--border-radius);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--grey-dark);
}

.info-row p {
  margin: 0;
  font-size: 12px;
  color: var(--grey-medium);
}

.info-row strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--black-pure);
}

.photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.photo {
  width: 120px;
  height: 88px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--black-pure);
}

.loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--grey-dark);
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.btn-call,
.btn-msg,
.btn-done {
  flex: 1;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-call {
  background: var(--accent-blue);
  color: var(--white-pure);
}

.btn-msg {
  background: var(--white-pure);
  color: var(--black-pure);
  border: 1px solid var(--border-color);
}

.btn-done {
  width: 100%;
  background: var(--accent-blue);
  color: var(--white-pure);
}

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

.contractor__ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--accent-blue);
  border-radius: var(--border-radius);
}

.contractor p {
  margin: 0;
  font-size: 12px;
  color: var(--grey-medium);
}

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

.contractor .ok {
  color: var(--accent-blue);
}

.tl-item {
  display: flex;
  gap: 12px;
}

.tl-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12px;
}

.tl-rail b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tl-rail i {
  flex: 1;
  width: 1px;
  background: var(--border-color);
  min-height: 16px;
}

.tl-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.tl-item span {
  font-size: 12px;
  color: var(--grey-medium);
}

.pd-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.pd-stat {
  padding: 12px;
  border-right: 1px solid var(--border-color);
}

.pd-stat:last-child {
  border-right: 0;
}

.pd-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.pd-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--grey-dark);
}

.pd-stat .is-warn { color: var(--warn); }
.pd-stat .is-bal { color: var(--accent-blue); }

.row-btn h3,
.unit h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.row-btn p,
.unit p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--grey-dark);
}

.unit__av,
.contact-av {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--white-pure);
  flex-shrink: 0;
}

.unit__av.is-on { background: var(--black-pure); }
.unit__av.is-off { background: var(--grey-light); color: var(--grey-dark); }

.unit__right {
  text-align: right;
}

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

.unit__st {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--grey-dark);
}

.unit__st i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.floor {
  margin-left: 8px;
}

/* ── Toast ── */

.toast {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 45;
  padding: 12px 16px;
  background: var(--black-pure);
  color: var(--white-pure);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.toast.is-on {
  opacity: 1;
  transform: none;
}

.toast[hidden] {
  display: block;
}

/* ── Desktop app shell (wider than a phone) ── */

@media (min-width: 801px) {
  .sidebar {
    display: flex;
  }

  .dock {
    display: none;
  }

  .navbar {
    padding: 0 28px;
  }

  .toast {
    bottom: 24px;
    left: 28px;
    right: 28px;
  }

  .page-head,
  .port-head {
    padding: 28px 32px 0;
  }

  .dash-metrics {
    padding: 0 32px;
    margin-top: 24px;
  }

  .section {
    padding: 24px 32px;
  }

  .section--tight {
    padding: 0 32px 24px;
  }

  .tabs {
    padding: 16px 32px 0;
  }

  .todo-list {
    padding: 16px 32px 32px;
  }

  .prop-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    padding: 0 32px 32px;
  }

  .profile-card {
    margin: 20px 32px 0;
  }

  .menu-wrap {
    padding: 24px 32px 32px;
  }

  .canvas .scroll:has(.dash-metrics) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-content: start;
    column-gap: 8px;
  }

  .canvas .scroll:has(.dash-metrics) .page-head,
  .canvas .scroll:has(.dash-metrics) .dash-metrics {
    grid-column: 1 / -1;
  }

  .canvas .scroll:has(.dash-metrics) .section {
    grid-column: 1;
    grid-row: 3 / 5;
  }

  .canvas .scroll:has(.dash-metrics) .section--tight {
    grid-column: 2;
  }
}
