    .tools-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(260px, 1fr));
      gap: 16px;
    }

    .property-toolbar {
      margin-bottom: 16px;
      display: grid;
      grid-template-columns: minmax(260px, 1fr) auto 34px 176px;
      gap: 12px;
      align-items: center;
    }

    .import-object-button {
      min-height: 48px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      color: var(--ink);
      padding: 0 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      font-family: var(--font);
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(13, 38, 63, .035);
      transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .import-object-button svg {
      width: 17px;
      height: 17px;
      color: var(--gold);
    }

    .import-object-button:hover {
      border-color: var(--line-warm);
      box-shadow: 0 10px 24px rgba(13, 38, 63, .07);
      transform: translateY(-1px);
    }

    .import-panel {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 72;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(13, 38, 63, .44);
      backdrop-filter: blur(4px);
    }

    .import-panel.open {
      display: flex;
    }

    .import-panel-inner {
      width: min(680px, calc(100vw - 36px));
      max-height: min(92dvh, 900px);
      overflow-x: hidden;
      overflow-y: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: 0 28px 80px rgba(13, 38, 63, .26);
      padding: 24px;
      display: grid;
      gap: 18px;
      position: relative;
      scrollbar-width: thin;
      scrollbar-color: rgba(13, 38, 63, .22) transparent;
    }

    .import-panel-inner:has(.import-preview.ready) {
      width: min(980px, calc(100vw - 36px));
    }

    .import-panel-inner::-webkit-scrollbar {
      width: 7px;
    }

    .import-panel-inner::-webkit-scrollbar-track {
      background: transparent;
    }

    .import-panel-inner::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: rgba(13, 38, 63, .18);
      border: 2px solid rgba(255, 255, 255, .72);
    }

    .import-panel-head {
      padding-right: 54px;
    }

    .import-panel-close {
      position: absolute;
      top: 18px;
      right: 18px;
    }

    .import-panel h3 {
      margin: 0;
      color: var(--ink);
      font-family: var(--font);
      font-size: 1.18rem;
      line-height: 1.2;
      font-weight: 800;
      letter-spacing: 0;
    }

    .import-panel p {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .import-url-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
    }

    .import-url-row .search-field {
      min-height: 46px;
    }

    .import-url-field {
      position: relative;
      padding-right: 44px;
    }

    .import-url-clear {
      position: absolute;
      top: 50%;
      right: 10px;
      width: 24px;
      height: 24px;
      transform: translateY(-50%);
      font-size: 16px;
      line-height: 1;
    }

    .import-url-row .primary-button,
    .import-action-buttons .primary-button,
    .import-action-buttons .secondary-button {
      min-height: 46px;
    }

    .import-preview {
      display: none;
      grid-template-columns: 1fr;
      gap: 20px;
      align-items: start;
      padding-top: 20px;
      border-top: 1px solid var(--line);
    }

    .import-preview.ready {
      display: grid;
    }

    .import-image-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
      gap: 10px;
      grid-auto-rows: clamp(72px, 8vw, 96px);
      max-height: min(28dvh, 240px);
      overflow: auto;
      margin-top: 20px;
      padding: 14px 4px 2px 0;
      border-top: 1px solid rgba(13, 38, 63, .08);
      scrollbar-width: thin;
      scrollbar-color: rgba(13, 38, 63, .22) transparent;
    }

    .import-image-list::-webkit-scrollbar {
      width: 7px;
    }

    .import-image-list::-webkit-scrollbar-track {
      background: transparent;
    }

    .import-image-list::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: rgba(13, 38, 63, .18);
      border: 2px solid rgba(255, 255, 255, .72);
    }

    .import-image-item {
      width: 100%;
      height: 100%;
      border: 1px solid rgba(13, 38, 63, .12);
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(13, 38, 63, .045), rgba(13, 38, 63, .018)),
        #f8fafc;
      color: rgba(13, 38, 63, .52);
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }

    .import-image-item.has-image {
      background-image:
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(13,38,63,.06)),
        var(--import-image-url);
      background-size: cover;
      background-position: center;
    }

    .import-image-item.portrait {
      width: calc(100% * 2.6 / 4);
      justify-self: center;
    }

    .import-image-item::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(13, 38, 63, .035));
    }

    .import-image-remove,
    .field-clear {
      border: 0;
      border-radius: 999px;
      background: rgba(163, 61, 61, .10);
      color: #a33d3d;
      display: grid;
      place-items: center;
      cursor: pointer;
    }

    .import-image-remove {
      position: absolute;
      top: 7px;
      right: 7px;
      z-index: 2;
      width: 24px;
      height: 24px;
      font-size: 17px;
      line-height: 1;
    }

    .import-image-item.removed {
      opacity: .42;
      filter: grayscale(1);
    }

    .import-image-item.removed::after {
      content: "Tas inte med";
      position: absolute;
      inset: 0;
      z-index: 1;
      display: grid;
      place-items: center;
      background: rgba(248, 250, 252, .78);
      color: #a33d3d;
      font-size: 12px;
      font-weight: 800;
    }

    .import-fields {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .import-field-wide {
      grid-column: span 2;
    }

    .import-field-full {
      grid-column: 1 / -1;
    }

    .import-field label {
      display: block;
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .07em;
      text-transform: uppercase;
    }

    .import-input-wrap {
      position: relative;
    }

    .import-field input,
    .import-field textarea {
      width: 100%;
      min-height: 46px;
      box-sizing: border-box;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--ink);
      padding: 0 38px 0 12px;
      font: inherit;
      font-size: 14px;
    }

    .import-field input:disabled,
    .import-field textarea:disabled {
      background: rgba(13, 38, 63, .035);
      color: var(--muted);
      text-decoration: line-through;
    }

    .import-field textarea {
      min-height: 112px;
      padding-top: 11px;
      line-height: 1.5;
      resize: vertical;
    }

    .field-clear {
      position: absolute;
      top: 10px;
      right: 9px;
      width: 24px;
      height: 24px;
      font-size: 16px;
      line-height: 1;
      display: none;
    }

    .import-input-wrap.has-value .field-clear,
    .import-url-field.has-value .import-url-clear {
      display: grid;
    }

    .import-url-field .import-url-clear {
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
    }

    .import-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      padding-top: 16px;
    }

    .import-actions label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
    }

    .import-action-buttons {
      display: inline-flex;
      gap: 10px;
    }

    .imported-badge {
      margin-left: 8px;
      padding: 3px 7px;
      border-radius: 999px;
      background: rgba(80, 150, 190, .16);
      color: #2f6f91;
      font-size: 11px;
      line-height: 1;
      font-weight: 700;
      vertical-align: middle;
      white-space: nowrap;
    }

    .property-list {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .82);
      box-shadow: var(--shadow-soft);
      overflow-x: hidden;
      overflow-y: auto;
      display: grid;
      gap: 0;
      flex: 1 1 auto;
      min-height: 0;
      overscroll-behavior: contain;
      overflow-anchor: none;
      isolation: isolate;
      scrollbar-width: thin;
      scrollbar-color: rgba(13, 38, 63, .22) transparent;
    }

    .property-list.is-filtered {
      flex: 0 0 auto;
      max-height: min(360px, calc(100dvh - 300px));
    }

    .property-list.is-filtered.is-empty {
      max-height: none;
    }

    .property-list::-webkit-scrollbar {
      width: 7px;
    }

    .property-list::-webkit-scrollbar-track {
      background: transparent;
    }

    .property-list::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: rgba(13, 38, 63, .18);
      border: 2px solid rgba(255, 255, 255, .72);
    }

    .property-list::-webkit-scrollbar-thumb:hover {
      background: rgba(13, 38, 63, .28);
    }

    .property-table-head {
      box-sizing: border-box;
      width: 100%;
      position: sticky;
      top: 0;
      z-index: 50;
      min-height: 42px;
      border-bottom: 1px solid var(--line);
      background: #fff;
      box-shadow: 0 1px 0 var(--line), 0 8px 14px rgba(13, 38, 63, .035);
      display: grid;
      grid-template-columns: minmax(150px, 1fr) 104px 104px 90px 64px minmax(58px, .72fr) 42px;
      gap: 14px;
      align-items: center;
      padding: 0 14px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .property-table-head::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: #fff;
    }

    .property-table-head span:nth-child(6) {
      justify-self: center;
      text-align: center;
    }

    .property-row {
      box-sizing: border-box;
      width: 100%;
      background: rgba(255, 255, 255, .70);
      display: grid;
      grid-template-columns: minmax(150px, 1fr) 104px 104px 90px 64px minmax(58px, .72fr) 42px;
      position: relative;
      z-index: 1;
    }

    .property-row:has(.object-menu[open]) {
      z-index: 40;
    }

    .property-row + .property-row {
      border-top: 1px solid var(--line);
    }

    .property-main {
      box-sizing: border-box;
      grid-column: 1 / -1;
      width: 100%;
      border: 0;
      background: transparent;
      color: var(--ink);
      padding: 8px 14px;
      display: grid;
      grid-template-columns: minmax(150px, 1fr) 104px 104px 90px 64px minmax(58px, .72fr) 42px;
      gap: 0 14px;
      align-items: center;
      text-align: left;
      cursor: pointer;
    }

    .property-row[data-has-history="false"] > .property-main {
      cursor: default;
    }

    .property-row h2 {
      margin: 0;
      font-family: var(--font);
      font-size: 15px;
      line-height: 1.15;
      font-weight: 700;
    }

    .property-row.open h2 {
      color: var(--ink);
    }

    .property-row.open {
      background: rgba(13, 38, 63, .025);
      box-shadow: inset 3px 0 0 var(--gold);
    }

    .property-row.menu-active {
      background: rgba(13, 38, 63, .035);
    }

    .property-meta,
    .property-type {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
    }

    .property-status {
      color: var(--muted);
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
    }

    .property-city-row {
      display: contents;
      color: var(--muted);
      font-size: 13px;
      font-weight: 400;
    }

    .property-city {
      grid-column: 1;
      grid-row: 2;
      line-height: 1.1;
      margin-top: -1px;
    }

    .history-badge {
      grid-column: 6;
      grid-row: 1;
      justify-self: center;
      text-align: center;
      min-width: 24px;
      height: 22px;
      border-radius: 999px;
      background: rgba(168, 119, 66, .16);
      display: inline-grid;
      place-items: center;
      color: var(--gold);
      font-size: 12px;
      line-height: 1;
      font-weight: 700;
      white-space: nowrap;
    }

    .object-menu {
      position: relative;
      z-index: 30;
      justify-self: end;
      grid-column: 7;
    }

    .object-menu[open] {
      z-index: 60;
    }

    .object-menu[open] .object-menu-links {
      position: fixed;
      top: var(--object-menu-top);
      left: var(--object-menu-left);
      right: auto;
      bottom: auto;
    }

    .object-menu summary {
      width: 34px;
      height: 34px;
      min-width: 34px;
      min-height: 34px;
      box-sizing: border-box;
      aspect-ratio: 1 / 1;
      border: 1px solid var(--ink);
      border-radius: 999px;
      background: var(--ink);
      color: #fff;
      padding: 0;
      display: grid;
      place-items: center;
      cursor: pointer;
      list-style: none;
    }

    .object-menu summary svg {
      width: 17px;
      height: 17px;
    }

    .object-menu summary::-webkit-details-marker {
      display: none;
    }

    .object-menu-links {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      width: 188px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
      overflow: hidden;
      display: grid;
      z-index: 70;
    }

    .object-menu-links a,
    .object-menu-links button {
      min-height: 42px;
      padding: 10px 14px;
      color: var(--ink);
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 9px;
      font-size: 13px;
      font-weight: 500;
      line-height: 1.35;
      transition: background .16s ease;
    }

    .object-menu-links a svg,
    .object-menu-links button svg {
      width: 16px;
      height: 16px;
      color: var(--muted);
      flex: 0 0 auto;
    }

    .object-menu-links a + a,
    .object-menu-links button + a,
    .object-menu-links a + button,
    .object-menu-links button + button {
      border-top: 1px solid var(--line);
    }

    .object-menu-links a:hover,
    .object-menu-links button:hover {
      background: rgba(13, 38, 63, .04);
    }

    .object-menu-links button {
      border: 0;
      background: #fff;
      text-align: left;
      cursor: pointer;
    }

    .object-menu-links .object-menu-delete {
      color: #a33d3d;
    }

    .object-menu-links .object-menu-delete svg {
      color: #a33d3d;
    }

    .module-list {
      display: grid;
      grid-template-columns: 1fr;
      grid-column: 1 / 8;
      gap: 0;
      background: transparent;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      padding: 0 14px;
      transition: max-height .24s ease, opacity .18s ease, padding .24s ease;
    }

    .property-row.open .module-list {
      max-height: 260px;
      opacity: 1;
      padding-bottom: 10px;
    }

    .module-item {
      min-height: 40px;
      border-radius: 6px;
      background: transparent;
      border-bottom: 1px solid rgba(13, 38, 63, .08);
      padding: 5px 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 14px;
    }

    .module-item + .module-item {
      border-top: 0;
    }

    .module-item:last-child {
      border-bottom: 0;
    }

    .module-title-link,
    .module-item-title {
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      text-decoration: none;
    }

    .module-item small {
      display: inline;
      margin-left: 8px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 500;
    }

    .module-menu {
      display: inline-flex;
      align-items: center;
      gap: 14px;
    }

    .module-menu a,
    .module-menu button {
      min-height: 24px;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--ink);
      padding: 0;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .delete-backdrop {
      position: fixed;
      inset: 0;
      z-index: 70;
      background: rgba(13, 38, 63, .44);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .delete-backdrop.open {
      display: flex;
    }

    .delete-modal {
      width: min(420px, 100%);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: 0 28px 80px rgba(13, 38, 63, .26);
      padding: 22px;
    }

    .delete-modal h2 {
      margin: 0 0 8px;
      font-family: var(--serif);
      font-size: 28px;
      line-height: 1;
      font-weight: 600;
    }

    .delete-date {
      margin: -2px 0 14px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
      font-weight: 600;
    }

    .delete-modal p {
      margin: 0 0 16px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .delete-checkbox {
      display: flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 20px;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
    }

    .delete-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .delete-button {
      min-height: 46px;
      border: 1px solid #b43d3d;
      border-radius: 7px;
      background: #b43d3d;
      color: #fff;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: 0 12px 26px rgba(180, 61, 61, .20);
    }

    .module-menu button.danger {
      color: #a33d3d;
    }

    .sort-field {
      position: relative;
      min-height: 48px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .84);
      color: var(--ink);
      display: grid;
      grid-template-columns: 18px minmax(0, 1fr) 16px;
      gap: 9px;
      align-items: center;
      padding: 0 12px;
      box-shadow: 0 8px 20px rgba(13, 38, 63, .035);
    }

    .sort-field svg {
      width: 17px;
      height: 17px;
      color: var(--muted);
    }

    .sort-trigger {
      width: 100%;
      min-width: 0;
      border: 0;
      background: transparent;
      color: var(--ink);
      font-size: 13px;
      font-weight: 500;
      outline: none;
      cursor: pointer;
      text-align: left;
      padding: 0;
      font-family: var(--font);
    }

    .sort-options {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      z-index: 90;
      display: none;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
      overflow: hidden;
    }

    .sort-field.open .sort-options {
      display: grid;
    }

    .sort-options button {
      min-height: 42px;
      border: 0;
      background: #fff;
      color: var(--ink);
      padding: 10px 14px;
      font-family: var(--font);
      font-size: 13px;
      font-weight: 500;
      line-height: 1.35;
      text-align: left;
      cursor: pointer;
    }

    .sort-options button + button {
      border-top: 1px solid var(--line);
    }

    .sort-options button:hover,
    .sort-options button[aria-selected="true"] {
      background: rgba(13, 38, 63, .04);
    }

    .tool-card {
      min-height: 246px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 253, 249, .88)),
        #fff;
      box-shadow: var(--shadow-soft);
      color: inherit;
      text-decoration: none;
      padding: 24px;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .tool-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, var(--gold-2), transparent 76%);
      opacity: 0;
      transition: opacity .18s ease;
    }

    .tool-card:hover {
      transform: translateY(-4px);
      border-color: rgba(132, 113, 93, .32);
      box-shadow: var(--shadow);
    }

    .tool-card:hover::before { opacity: 1; }

    .tool-icon {
      width: 44px;
      height: 44px;
      border: 1px solid var(--line-warm);
      border-radius: 999px;
      display: grid;
      place-items: center;
      color: var(--ink);
      background: linear-gradient(135deg, #fff, var(--gold-soft));
      margin-bottom: 21px;
    }

    .tool-icon svg { width: 21px; height: 21px; }

    .tool-card h2 {
      margin: 0 0 12px;
      font-family: var(--serif);
      font-size: 28px;
      line-height: 1.06;
      font-weight: 600;
      letter-spacing: 0;
    }

    .tool-card p {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.65;
    }

    .card-foot {
      margin-top: auto;
      padding-top: 24px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 16px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .open-link {
      color: var(--gold);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 800;
    }

    .coming-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .64);
      box-shadow: 0 10px 28px rgba(13, 38, 63, .05);
      overflow: hidden;
    }

    .coming-card {
      min-height: 54px;
      border: 0;
      border-radius: 0;
      background: transparent;
      padding: 9px 12px 10px;
      color: var(--ink);
      text-decoration: none;
      cursor: pointer;
      text-align: left;
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr) auto;
      gap: 3px 9px;
      align-items: center;
      overflow: hidden;
      transition: background .28s ease, opacity .28s ease, box-shadow .28s ease;
    }

    .activity-panel .coming-card {
      color: var(--muted);
      opacity: .72;
    }

    .coming-card + .coming-card {
      border-top: 1px solid var(--line);
    }

    .coming-card:hover {
      background: rgba(13, 38, 63, .025);
      transform: none;
    }

    .activity-panel .coming-card:hover {
      opacity: .88;
    }

    .coming-head {
      grid-column: 1 / 4;
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      gap: 9px;
      align-items: center;
      margin: 0;
    }

    .coming-title {
      grid-column: 1 / 3;
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      align-items: center;
      justify-content: flex-start;
      gap: 9px;
      min-width: 0;
      max-width: 100%;
      color: var(--ink);
      font-weight: 800;
      font-size: 13px;
      line-height: 1.2;
      text-align: left;
    }

    .coming-title svg {
      width: 18px;
      height: 18px;
      color: var(--muted);
      flex: 0 0 auto;
      transform: translateX(-1px);
    }

    .soon {
      grid-column: 3;
      flex: 0 0 auto;
      border-radius: 999px;
      background: #f1ece5;
      color: var(--muted);
      padding: 3px 6px;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
    }

    .coming-card p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.25;
      grid-column: 2 / 3;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      transition: color .24s ease;
    }

    .coming-read-more {
      grid-column: 3;
      color: var(--gold);
      font-size: 12px;
      font-weight: 800;
      justify-self: end;
      white-space: nowrap;
      transition: color .24s ease, margin .24s ease;
    }

    .support-band {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 0;
      flex: 0 0 auto;
    }

    .support-item {
      min-height: 86px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .58);
      padding: 14px 16px;
      display: grid;
      grid-template-columns: 34px 1fr;
      gap: 12px;
      align-items: start;
      color: inherit;
      text-decoration: none;
    }

    .support-item + .support-item { border-left: 1px solid var(--line); }

    .support-icon {
      width: 34px;
      height: 34px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: var(--gold-soft);
      color: var(--ink);
    }

    .support-icon svg { width: 17px; height: 17px; }

    .support-item h2 {
      margin: 0 0 6px;
      font-family: var(--serif);
      font-size: 21px;
      line-height: 1;
      font-weight: 600;
    }

    .support-item p {
      margin: 0 0 8px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .primary-button, .text-button {
      border: 0;
      border-radius: 6px;
      min-height: 24px;
      padding: 0 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      font-size: 13px;
      font-weight: 800;
      text-decoration: none;
      cursor: pointer;
    }

    .primary-button {
      background: var(--ink);
      color: #fff;
      box-shadow: 0 12px 25px rgba(13, 38, 63, .18);
    }

    .text-button {
      color: var(--ink);
      background: transparent;
      padding: 0;
    }

    .mobile-activity-trigger {
      display: none;
      width: 100%;
      min-height: 52px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .76);
      color: var(--ink);
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 16px;
      font-weight: 800;
      cursor: pointer;
      box-shadow: var(--shadow-soft);
    }

    .mobile-activity-trigger span {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .mobile-activity-trigger svg {
      width: 20px;
      height: 20px;
    }

    .activity-mobile-backdrop {
      display: none;
    }

    .activity-panel {
      position: sticky;
      top: 110px;
      height: calc(100dvh - 134px);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: 0 4px 22px rgba(13, 38, 63, .07);
      overflow: hidden;
      display: grid;
      grid-template-rows: auto auto minmax(0, 1fr) auto;
    }

    .activity-head {
      padding: 16px 25px 4px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .activity-title {
      margin-top: 0.5em;
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: var(--serif);
      font-size: 26px;
      line-height: 1;
      font-weight: 600;
    }

    .activity-title svg { width: 24px; height: 24px; }

    .activity-close-mobile {
      display: none;
    }

    .activity-search {
      padding: 0 25px 22px;
      display: grid;
      grid-template-columns: 1fr 48px;
      gap: 10px;
    }

    .search-field {
      min-height: 48px;
      display: flex;
      align-items: center;
      gap: 11px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      padding: 0 14px;
    }

    .search-field svg { width: 19px; height: 19px; color: var(--muted); }

    .search-field input {
      width: 100%;
      min-width: 0;
      border: 0;
      outline: 0;
      background: transparent;
      color: var(--ink);
      font-size: 14px;
    }

    .search-field input::placeholder { color: var(--soft); }

    .filter-btn {
      width: 48px;
      min-height: 48px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
      display: grid;
      place-items: center;
      cursor: pointer;
    }

    .filter-btn svg { width: 21px; height: 21px; }

    .activity-list {
      padding: 0 25px 10px;
      display: grid;
      gap: 12px;
      align-content: start;
      overflow: auto;
    }

    .activity-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .86);
      overflow: hidden;
    }

    .activity-card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 16px 16px 10px;
    }

    .address {
      margin: 0;
      font-family: var(--serif);
      font-size: 17px;
      line-height: 1.2;
      font-weight: 600;
    }

    .activity-line {
      min-height: 36px;
      padding: 0 16px;
      display: grid;
      grid-template-columns: 1fr auto 18px;
      gap: 10px;
      align-items: center;
      border-top: 1px solid rgba(13, 38, 63, .07);
      color: var(--ink);
      text-decoration: none;
      font-size: 13px;
      font-weight: 700;
    }

    .activity-line span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .activity-line time {
      color: var(--muted);
      font-size: 13px;
      white-space: nowrap;
    }

    .activity-line svg { width: 16px; height: 16px; color: var(--ink); }

    .activity-foot {
      padding: 15px 25px 25px;
    }

    .activity-foot a {
      color: var(--gold);
      font-weight: 800;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      font-size: 14px;
    }

    .empty-state {
      border: 1px dashed var(--line-warm);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .62);
      padding: 24px;
      color: var(--muted);
      font-size: 14px;
    }

    .empty-state strong {
      display: block;
      color: var(--ink);
      font-family: var(--serif);
      font-size: 24px;
      margin-bottom: 6px;
    }

    .side-tool-list {
      padding: 0 25px 12px;
      display: grid;
      gap: 12px;
    }

    .side-tool-link {
      min-height: 96px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
      color: var(--ink);
      text-decoration: none;
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) 18px;
      gap: 12px;
      align-items: start;
      padding: 18px 14px 10px;
      position: relative;
      overflow: hidden;
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .side-tool-link::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, var(--gold-2), transparent 76%);
      opacity: .72;
    }

    .side-tool-link:hover {
      border-color: var(--line-warm);
      box-shadow: var(--shadow);
      transform: translateY(-2px);
    }

    .side-tool-icon {
      width: 40px;
      height: 40px;
      border: 1px solid var(--line-warm);
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #fff, var(--gold-soft));
    }

    .side-tool-icon svg,
    .side-tool-link > svg {
      width: 18px;
      height: 18px;
    }

    .side-tool-link > svg {
      align-self: end;
      margin-bottom: 2px;
      color: var(--gold);
    }

    .side-tool-link strong {
      display: block;
      font-family: var(--serif);
      font-size: 22px;
      line-height: 1.02;
      font-weight: 600;
    }

    .side-tool-link span span {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      font-weight: 400;
    }

    .workflow-note {
      margin: 0 25px 18px;
      border: 1px solid var(--line-warm);
      border-radius: var(--radius);
      background: rgba(244, 234, 223, .42);
      padding: 15px;
    }

    .workflow-note h3 {
      margin: 0 0 8px;
      font-family: var(--serif);
      font-size: 22px;
      line-height: 1;
      font-weight: 600;
    }

    .workflow-note p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .activity-panel .coming-grid {
      margin: 0 25px 18px;
    }

    .activity-panel .section-kicker {
      margin: 16px 25px 8px;
      font-size: 12px;
      letter-spacing: .14em;
      position: relative;
      z-index: 1;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 60;
      background: rgba(13, 38, 63, .44);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .modal-backdrop.open { display: flex; }

    .modal {
      width: min(520px, 100%);
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: #fff;
      box-shadow: 0 28px 80px rgba(13, 38, 63, .26);
      padding: 28px;
      position: relative;
    }

    .modal-close {
      position: absolute;
      top: 14px;
      right: 14px;
    }

    .modal-badge {
      display: inline-flex;
      border-radius: 999px;
      background: var(--gold-soft);
      color: var(--gold);
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      margin-bottom: 18px;
    }

    .modal h2 {
      margin: 0 0 12px;
      font-family: var(--serif);
      font-size: 38px;
      line-height: 1;
      font-weight: 600;
    }

    .modal p {
      margin: 0 0 20px;
      color: var(--muted);
      line-height: 1.65;
      font-size: 15px;
      white-space: pre-line;
    }

    .modal p strong {
      color: var(--ink);
      font-weight: 800;
    }

    .modal .primary-button {
      min-height: 42px;
      padding: 0 20px;
      font-size: 14px;
    }

    .settings-header {
      padding: 25px 28px 20px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      background: rgba(255, 253, 249, .96);
    }

    .settings-header h2 {
      margin: 0;
      font-family: var(--serif);
      font-size: 32px;
      line-height: 1;
      font-weight: 600;
    }

    .settings-header p {
      margin: 8px 0 0;
      color: var(--gold);
      font-family: var(--serif);
      font-style: italic;
      font-size: 17px;
    }

    .settings-header-lead {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      min-width: 0;
    }

    .settings-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px 7px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--ink);
      font-family: var(--font);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: border-color .15s, background .15s, color .15s;
    }

    .settings-back:hover {
      border-color: var(--gold);
      background: var(--surface-soft, #fdfaf3);
      color: var(--gold);
    }

    .settings-back svg {
      flex: 0 0 auto;
    }

    .settings-close {
      flex: 0 0 auto;
    }

    .modal-close,
    .settings-close,
    .activity-close-mobile {
      width: 40px;
      height: 40px;
      min-width: 40px;
      min-height: 40px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, .88);
      color: var(--ink);
      display: grid;
      place-items: center;
      padding: 0;
      font-family: var(--font);
      font-size: 22px;
      line-height: 1;
      font-weight: 400;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(13, 38, 63, .055);
      transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    .modal-close:hover,
    .settings-close:hover,
    .activity-close-mobile:hover {
      background: #fff;
      border-color: var(--line-warm);
      box-shadow: 0 10px 24px rgba(13, 38, 63, .08);
      transform: translateY(-1px);
    }

    .activity-close-mobile {
      display: none;
    }

    .settings-body {
      overflow: auto;
      padding: 22px 28px 28px;
      scrollbar-width: thin;
      scrollbar-color: rgba(13, 38, 63, .22) transparent;
    }

    .settings-body::-webkit-scrollbar {
      width: 7px;
    }

    .settings-body::-webkit-scrollbar-track {
      background: transparent;
    }

    .settings-body::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: rgba(13, 38, 63, .18);
      border: 2px solid rgba(255, 255, 255, .72);
    }

    .settings-body::-webkit-scrollbar-thumb:hover {
      background: rgba(13, 38, 63, .28);
    }

    .settings-section + .settings-section {
      margin-top: 28px;
    }

    .settings-kicker {
      margin: 0 0 14px;
      color: var(--gold);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .13em;
      text-transform: uppercase;
    }

    .settings-note {
      margin: 0 0 16px;
      border: 1px solid var(--line-warm);
      border-radius: var(--radius);
      background: rgba(244, 234, 223, .48);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      padding: 13px 14px;
    }

    .logo-settings-note {
      margin-top: 14px;
    }

    .settings-version {
      margin: 24px 0 0;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .68);
      color: var(--ink);
      padding: 12px 14px;
      font-size: 13px;
      line-height: 1.4;
      font-weight: 700;
      text-align: center;
    }

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

    .theme-option {
      min-height: 74px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .68);
      color: var(--ink);
      display: grid;
      grid-template-columns: 28px 1fr;
      gap: 10px;
      align-items: center;
      padding: 12px;
      text-align: left;
      cursor: pointer;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .theme-option svg {
      width: 22px;
      height: 22px;
      color: var(--gold);
    }

    .theme-option strong {
      display: block;
      font-size: 13px;
      line-height: 1.2;
    }

    .theme-option span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.25;
      font-weight: 700;
    }

    .theme-option.active {
      border-color: rgba(168, 119, 66, .48);
      background: rgba(244, 234, 223, .42);
      box-shadow: 0 0 0 3px rgba(201, 154, 95, .12);
    }

    .settings-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .field {
      display: grid;
      gap: 7px;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    .field label {
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
    }

    .field input,
    .field textarea {
      width: 100%;
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: rgba(255, 255, 255, .86);
      color: var(--ink);
      font-family: var(--font);
      font-size: 14px;
      padding: 0 13px;
      outline: none;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .field input::placeholder,
    .field textarea::placeholder {
      color: var(--soft);
      font-family: var(--font);
      font-size: 13px;
    }

    .field textarea {
      min-height: 118px;
      resize: vertical;
      padding: 12px 13px;
      line-height: 1.45;
    }

    .field input:focus,
    .field textarea:focus {
      border-color: rgba(168, 119, 66, .52);
      background: #fff;
      box-shadow: 0 0 0 3px rgba(201, 154, 95, .14);
    }

    .logo-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .logo-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .68);
      padding: 16px;
    }

    .logo-card h3 {
      margin: 0 0 11px;
      color: var(--ink);
      font-size: 12px;
      line-height: 1.25;
      font-weight: 800;
      text-transform: uppercase;
    }

    .logo-preview {
      min-height: 108px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #fff;
      display: grid;
      place-items: center;
      color: var(--soft);
      font-size: 12px;
      text-align: center;
      padding: 12px;
      margin-bottom: 10px;
    }

    .logo-preview.dark {
      background: var(--ink);
      color: rgba(255, 255, 255, .72);
      border-color: transparent;
    }

    .small-button {
      width: 100%;
      min-height: 36px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #fff;
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }

    .small-button.danger {
      margin-top: 8px;
      border-color: rgba(188, 71, 73, .28);
      color: #a33d3d;
      background: rgba(255, 255, 255, .68);
    }

    .color-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .color-field {
      min-height: 46px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: rgba(255, 255, 255, .86);
      display: grid;
      grid-template-columns: 36px 1fr;
      gap: 10px;
      align-items: center;
      padding: 8px;
      color: var(--ink);
      font-size: 13px;
      font-weight: 700;
    }

    .swatch {
      width: 30px;
      height: 30px;
      border-radius: 6px;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
    }

    .swatch-primary {
      background: #0d263f;
    }

    .swatch-accent {
      background: #a87742;
    }

    .color-field input[type="color"].swatch-input {
      width: 30px;
      height: 30px;
      padding: 0;
      border: none;
      border-radius: 6px;
      background: none;
      cursor: pointer;
    }

    .color-field input[type="color"].swatch-input::-webkit-color-swatch-wrapper {
      padding: 0;
    }

    .color-field input[type="color"].swatch-input::-webkit-color-swatch {
      border: none;
      border-radius: 6px;
    }

    .color-field .color-hex {
      border: none;
      background: none;
      width: 100%;
      padding: 0;
      color: var(--ink);
      font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .color-field .color-hex:focus {
      outline: none;
    }

    .logo-preview img {
      max-width: 100%;
      max-height: 84px;
      object-fit: contain;
    }

    .settings-page {
      display: none;
      width: 100%;
      height: calc(100dvh - 87px);
      margin: 0;
      overflow-y: auto;
      overflow-x: hidden;
      color: var(--ink);
    }

    body.settings-view main,
    body.settings-view .activity-mobile-backdrop {
      display: none;
    }

    body.settings-view .settings-page {
      display: block;
    }

    .settings-page-inner {
      width: min(1120px, calc(100vw - 48px));
      margin: 0 auto;
      padding: 12px 0 38px;
    }

    .settings-page .settings-header {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
      margin-bottom: 18px;
    }

    .settings-page .settings-header p {
      max-width: 660px;
      color: var(--muted);
      font-family: var(--font);
      font-style: normal;
      font-size: 14px;
      line-height: 1.55;
    }

    .settings-page .settings-body {
      overflow: visible;
      padding: 0;
    }

    .settings-page .settings-section {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-soft);
      padding: 26px;
      scroll-margin-top: 110px;
    }

    .settings-page .settings-section + .settings-section {
      margin-top: 16px;
    }




    .settings-section-head {
      margin-bottom: 18px;
    }

    .settings-section-head .settings-kicker {
      margin-bottom: 7px;
      color: var(--ink);
      letter-spacing: .08em;
    }

    .settings-section-intro {
      max-width: 720px;
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
      font-weight: 500;
    }
    .settings-autosave {
      flex: 0 0 auto;
      color: var(--muted);
      padding-top: 4px;
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      transition: color .18s ease;
    }

    .settings-autosave::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: var(--mg-status-saved, #1f6f45);
      opacity: .85;
    }

    .settings-autosave.is-saving {
      color: var(--gold);
    }

    .settings-autosave.is-saving::before {
      background: var(--mg-status-saving, var(--gold));
      opacity: 1;
    }

    .secondary-button {
      min-height: 46px;
      border-radius: 7px;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
    }

    .secondary-button {
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
    }

    @media (max-width: 1180px) {
      html {
        height: auto;
        max-height: none;
        overflow: auto;
        overscroll-behavior: auto;
      }

      body {
        height: auto;
        max-height: none;
        overflow: auto;
        overscroll-behavior: auto;
      }

      main {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        overflow: visible;
      }

      .content {
        height: auto;
        overflow: visible;
      }

      .property-list {
        max-height: none;
        overflow: visible;
      }

      #objectsTitle {
        overflow: visible;
      }

      .intro {
        min-height: 0;
        padding: 22px 4px 20px;
      }

      h1 {
        font-size: clamp(42px, 5.2vw, 62px);
      }

      .tagline {
        margin: 10px 0 10px;
        font-size: clamp(19px, 2.2vw, 23px);
      }

      .lead {
        max-width: 720px;
        font-size: 0.9rem;
        line-height: 1.55;
      }

      .mobile-activity-trigger {
        display: flex;
        margin-bottom: 16px;
      }

      .activity-mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 64;
        background: rgba(0, 0, 0, .34);
        backdrop-filter: blur(4px);
      }

      .activity-mobile-backdrop.open {
        display: block;
      }

      .activity-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 65;
        width: min(430px, 100vw);
        height: 100dvh;
        border-radius: 0;
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        display: block;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform .24s ease;
        scrollbar-width: thin;
        scrollbar-color: rgba(13, 38, 63, .22) transparent;
      }

      .activity-panel::-webkit-scrollbar {
        width: 7px;
      }

      .activity-panel::-webkit-scrollbar-track {
        background: transparent;
      }

      .activity-panel::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(13, 38, 63, .18);
        border: 2px solid rgba(255, 255, 255, .72);
      }

      .activity-panel.open {
        transform: translateX(0);
      }

      .activity-head {
        padding: 20px 18px 16px;
      }

      .activity-close-mobile {
        display: inline-flex;
      }

      .side-tool-list {
        padding: 0 18px 12px;
      }

      .workflow-note {
        margin: 0 18px 14px;
      }

      .activity-panel .coming-grid {
        margin: 0 18px 18px;
      }

      .activity-panel .section-kicker {
        margin-left: 18px;
        margin-right: 18px;
      }
    }

    @media (max-width: 1060px) {
      .intro {
        min-height: 0;
        padding: 18px 4px 18px;
      }

      h1 {
        font-size: clamp(38px, 6vw, 54px);
      }

      .tagline {
        margin: 10px 0 10px;
        font-size: 20px;
      }

      .lead {
        max-width: 680px;
        font-size: 0.9rem;
        line-height: 1.55;
      }

      .tools-grid {
        grid-template-columns: 1fr 1fr;
      }

      .coming-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 900px) {
      .property-toolbar {
        grid-template-columns: minmax(0, 1fr) auto 136px;
      }

      .property-toolbar > span[aria-hidden="true"] {
        display: none;
      }

      .sort-field {
        width: 136px;
        justify-self: end;
      }

      .import-image-list {
        grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
        max-height: min(28dvh, 240px);
      }

      .property-main,
      .property-row {
        grid-template-columns: minmax(0, 1fr) auto 42px;
      }

      .property-table-head {
        display: none;
      }

      .property-city {
        grid-column: 1;
      }

      .property-meta {
        white-space: normal;
      }

    .property-status,
    .property-type,
    .property-main .property-meta:nth-of-type(2),
    .property-main .property-meta:nth-of-type(3) {
      display: none;
    }

      .history-badge {
        grid-column: 2;
      }

      .object-menu {
        grid-column: 3;
        justify-self: end;
      }

      .module-list {
        grid-column: 1 / 4;
      }
    }

    @media (max-width: 760px) and (orientation: portrait) {
      body {
        background:
          radial-gradient(circle at 12% 38%, rgba(201, 154, 95, .16), transparent 34rem),
          radial-gradient(circle at 88% 2%, rgba(13, 38, 63, .08), transparent 28rem),
          linear-gradient(180deg, #fffdfa 0%, #f8f3ec 100%);
      }
    }

    @media (max-width: 760px) {
      .shell, main {
        width: min(100vw - 28px, 1820px);
      }

      .settings-page {
        width: 100%;
      }

      .settings-page-inner {
        width: min(100vw - 28px, 1120px);
      }

      main {
        padding-top: 8px;
      }

      .content {
        grid-template-rows: auto minmax(0, 1fr) auto;
      }

      h1 {
        font-size: 38px;
        line-height: 1;
      }

      .intro {
        height: auto;
        padding: 0 4px 16px;
      }

      .tagline {
        margin: 8px 0;
        font-size: 18px;
        line-height: 1.25;
      }

      .lead {
        font-size: 0.9rem;
        line-height: 1.45;
      }

      .tools-grid, .coming-grid, .support-band, .activity-list {
        grid-template-columns: 1fr;
      }

      .property-toolbar {
        grid-template-columns: minmax(0, 1fr) 136px;
        gap: 10px;
      }

      .property-toolbar .search-field {
        grid-column: 1 / -1;
      }

      .import-object-button {
        grid-column: 1;
        width: 100%;
      }

      .property-toolbar .sort-field {
        grid-column: 2;
      }

      .sort-field {
        width: 136px;
        min-width: 0;
        min-height: 46px;
        justify-self: end;
        padding: 0 10px;
        gap: 7px;
        border-radius: var(--radius);
        grid-template-columns: 16px minmax(0, 1fr) 13px;
      }

      .sort-trigger {
        position: static;
        font-size: 12px;
      }

      .sort-trigger span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .sort-field > svg:first-of-type {
        width: 16px;
        height: 16px;
        color: var(--muted);
      }

      .sort-field > svg:last-of-type {
        display: block;
        width: 13px;
        height: 13px;
      }

      .sort-options {
        left: auto;
        right: 0;
        width: 176px;
        padding: 6px;
        border-radius: 10px;
      }

      .sort-options button {
        min-height: 38px;
        border-radius: 7px;
        padding: 9px 10px;
      }

      .sort-options button + button {
        border-top: 0;
      }

      .import-panel-inner {
        padding: 14px;
      }

      .import-url-row,
      .import-preview,
      .import-fields {
        grid-template-columns: 1fr;
      }

      .import-image-list {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
        max-height: 220px;
      }

      .import-actions {
        align-items: stretch;
      }

      .import-action-buttons {
        width: 100%;
      }

      .import-action-buttons button {
        flex: 1 1 0;
      }

      .property-main,
      .property-row {
        grid-template-columns: minmax(0, 1fr) auto 42px;
      }

      .property-main .property-meta:nth-of-type(2) {
        display: none;
      }

      .history-badge {
        grid-column: 2;
      }

      .object-menu {
        grid-column: 3;
      }

      .module-item {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border: 0;
        border-bottom: 1px solid rgba(13, 38, 63, .08);
        border-radius: 0;
        background: transparent;
      }

      .module-list {
        grid-column: 1 / -1;
        gap: 0;
        margin: 0 10px 8px;
        padding: 2px 10px 0;
        border-radius: 8px;
        background: rgba(13, 38, 63, .028);
      }

      .property-row.open .module-list {
        padding-top: 2px;
        padding-bottom: 2px;
      }

      .module-item:last-child {
        border-bottom: 0;
      }

      .module-item > div:first-child {
        min-width: 0;
        display: block;
      }

      .module-item-title {
        display: inline;
        font-size: 13px;
        font-weight: 600;
      }

      .module-item small {
        display: inline;
        margin-left: 5px;
        color: var(--muted);
        font-size: 12px;
        white-space: nowrap;
      }

      .module-menu {
        display: flex;
        justify-content: flex-end;
        gap: 14px;
        white-space: nowrap;
      }

      .module-menu a,
      .module-menu button {
        justify-content: flex-end;
        font-size: 13px;
        font-weight: 600;
      }
    }

    @media (max-width: 520px) {
      .module-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 7px 0;
      }

      .module-item > div:first-child {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
      }

      .module-item small {
        margin-left: 0;
        font-size: 12px;
      }
    }

    @media (max-width: 760px) {
      .support-item + .support-item {
        border-left: 0;
        border-top: 1px solid var(--line);
      }

      .support-item {
        grid-template-columns: 48px 1fr;
        padding: 20px;
      }

      .support-icon {
        width: 48px;
        height: 48px;
      }

      .activity-search {
        padding: 0 18px 16px;
      }

      .activity-list {
        max-height: none;
        overflow: auto;
        padding: 0 18px 10px;
      }

      .activity-foot {
        padding: 14px 18px 20px;
      }

      .settings-header,
      .settings-body {
        padding-inline: 18px;
      }

      .settings-grid,
      .logo-grid,
      .color-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 520px) {
      .tool-card {
        min-height: 250px;
        padding: 21px;
      }

      .activity-search {
        grid-template-columns: 1fr;
      }

      .filter-btn {
        width: 100%;
      }

      .side-tool-list {
        margin: 0;
        padding: 0 14px 12px;
        gap: 10px;
      }

      .side-tool-link {
        padding: 16px 12px 10px;
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        gap: 10px;
      }

      .workflow-note {
        margin: 0 14px 14px;
        padding: 14px;
      }

      .activity-panel .coming-grid {
        margin: 0 14px 18px;
      }

      .activity-panel .section-kicker {
        margin: 16px 14px 8px;
        padding: 0;
      }

      .activity-head {
        padding: 16px 14px 12px;
      }

      .activity-close-mobile {
        width: 40px;
        height: 40px;
        min-height: 40px;
        font-size: 22px;
      }
    }


/* Test objects from text.html quick test data. */
.test-badge {
  background: var(--g-shine);
  color: #fff;
  box-shadow: 0 8px 18px rgba(182, 123, 59, .18);
}

body[data-theme="dark"] .test-badge {
  background: var(--g-shine);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}


/* Laptop height support for the index right panel. */
@media (min-width: 961px) {
  .activity-panel {
    min-height: 0;
  }

  .activity-scroll {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 38, 63, .22) transparent;
  }

  .activity-scroll::-webkit-scrollbar {
    width: 8px;
  }

  .activity-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .activity-scroll::-webkit-scrollbar-thumb {
    background: rgba(13, 38, 63, .22);
    border-radius: 999px;
  }

  .activity-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 38, 63, .32);
  }
}

body[data-theme="dark"] .activity-scroll {
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
}

body[data-theme="dark"] .activity-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .26);
}
