.am-ownership {
  width: 100%;
  margin: 16px 0 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.am-ownership > summary {
  min-height: 64px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.am-ownership > summary::-webkit-details-marker { display: none; }

.am-ownership > summary > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.am-ownership > summary strong {
  color: var(--ink);
  font-size: 16px;
}

.am-ownership > summary small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.am-ownership-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.am-ownership-status.is-modified {
  border-color: rgb(from var(--brand-primary) r g b / .32);
  color: var(--teal);
  background: rgb(from var(--brand-primary) r g b / .06);
}

.am-ownership-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.am-ownership-grid {
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.am-ownership-field {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.am-ownership-field small {
  min-height: 32px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.am-ownership-input {
  height: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(from var(--brand-primary) r g b / .28);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.am-ownership-input:hover {
  border-color: rgb(from var(--brand-primary) r g b / .48);
}

.am-ownership-input:focus-within {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(from var(--brand-primary) r g b / .13);
}

.am-ownership-input input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  cursor: text;
}

.am-ownership-input:active {
  border-color: var(--teal);
}

.am-ownership-input em {
  padding-right: 12px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.am-ownership-result {
  margin-top: 4px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 16px;
  border-top: 1px solid var(--line);
}

.am-ownership-result span,
.am-ownership-result small {
  color: var(--muted);
  font-size: 12px;
}

.am-ownership-result strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--teal);
  font-size: 22px;
}

.am-ownership-error {
  margin: 0 0 12px;
  color: #a33131;
  font-size: 13px;
}

.am-ownership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.am-ownership-actions .res-btn {
  min-height: 44px;
}

.am-ownership-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .am-ownership-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .am-ownership > summary { align-items: flex-start; }
  .am-ownership-grid { grid-template-columns: 1fr; }
  .am-ownership-field small { min-height: 0; }
  .am-ownership-result { grid-template-columns: 1fr; }
  .am-ownership-result strong { grid-row: auto; grid-column: auto; }
  .am-ownership-actions { display: grid; }
  .am-ownership-actions .res-btn { width: 100%; }
}
