body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f4f6f8;
}
body header h1 {
  text-align: center;
  color: #333;
  font-size: 24px;
  margin: 0;
}
body header {
  padding: 24px 0;
}
body main {
  flex-grow: 1;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
body main .share-id-section {
  display: flex;
  align-items: center;
  gap: 12px;
}
body main .share-id-section input {
  font-size: 16px;
  padding: 4px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  outline: none;
}
body main .share-id-section input:focus {
  border-color: #007bff;
}
body main .share-id-section button {
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: box-shadow 0.3s;
}
body main .share-id-section button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
body main .share-id-section button:active {
  box-shadow: inset 2px 2px rgba(0, 0, 0, 0.03);
}
body main .shop-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body main .shop-list li {
  background: white;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef0f2;
  gap: 16px;
}
body main .shop-list li.is-purchased {
  background-color: #f9fafb;
  border-color: #e5e7eb;
}
body main .shop-list li.is-purchased .item-edit-inputs input {
  background-color: #f3f4f6;
  color: #9ca3af;
}
body main .shop-list li .item-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
body main .shop-list li .item-edit-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
  flex-wrap: wrap;
}
body main .shop-list li .item-edit-inputs input[type=text],
body main .shop-list li .item-edit-inputs input[type=number] {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  height: 36px;
}
body main .shop-list li .item-edit-inputs input[type=text]:focus,
body main .shop-list li .item-edit-inputs input[type=number]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}
body main .shop-list li .item-edit-inputs .edit-name {
  flex: 2;
  min-width: 120px;
}
body main .shop-list li .item-edit-inputs .edit-price {
  flex: 1;
  min-width: 80px;
}
body main .shop-list li .item-edit-inputs .edit-size {
  flex: 1;
  min-width: 80px;
}
body main .shop-list li .item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  body main .shop-list li .item-actions {
    flex-direction: column;
    gap: 4px;
  }
}
body main .shop-list li .item-actions button {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.2s ease;
}
body main .shop-list li .item-actions button.btn-save {
  color: #10b981;
}
body main .shop-list li .item-actions button.btn-save:hover:not(:disabled) {
  background-color: #ecfdf5;
}
body main .shop-list li .item-actions button.btn-cancel {
  color: #6b7280;
}
body main .shop-list li .item-actions button.btn-cancel:hover:not(:disabled) {
  background-color: #f3f4f6;
}
body main .shop-list li .item-actions button.btn-delete {
  color: #ef4444;
}
body main .shop-list li .item-actions button.btn-delete:hover {
  background-color: #fef2f2;
}
body main .shop-list li .item-actions button:disabled {
  cursor: default;
}
body main .shop-list li .item-actions .edit-controls {
  display: flex;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
@media (max-width: 480px) {
  body main .shop-list li .item-actions .edit-controls {
    flex-direction: column;
    gap: 4px;
  }
}
body main .shop-list li .item-actions.has-changes .edit-controls {
  opacity: 1;
  visibility: visible;
}
body main .shop-list li .item-actions.has-changes .btn-delete {
  opacity: 0.2;
  pointer-events: none;
}
body main .combo-input {
  position: relative;
  display: flex;
  flex-direction: column;
}
body main .combo-input .shop-combo-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  box-sizing: border-box;
}
body main .combo-input .shop-combo-container.is-focused {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}
body main .combo-input .shop-combo-container.is-open .shop-combo-arrow {
  transform: rotate(180deg);
}
body main .combo-input .shop-combo-container .shop-combo-text {
  width: 100%;
  height: 34px;
  padding: 0 30px 0 12px;
  font-size: 14px;
  color: #1f2937;
  border: none;
  background: transparent;
  outline: none;
  box-sizing: border-box;
}
body main .combo-input .shop-combo-container .shop-combo-arrow {
  position: absolute;
  right: 8px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transition: transform 0.2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
body main .combo-input .shop-combo-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}
body main .combo-input .shop-combo-dropdown.is-active {
  display: block;
}
body main .combo-input .shop-combo-dropdown .shop-combo-item {
  padding: 8px 12px;
  font-size: 14px;
  color: #1f2937;
  cursor: pointer;
}
body main .combo-input .shop-combo-dropdown .shop-combo-item:hover {
  background-color: #f3f4f6;
}
body main .combo-input .shop-combo-dropdown .shop-combo-no-match {
  padding: 8px 12px;
  font-size: 14px;
  color: #9ca3af;
  font-style: italic;
}
body main form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 24px;
  border-radius: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
body main form .text-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body main form .text-input label {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}
body main form .text-input input {
  height: 40px;
  padding: 0 12px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
}
body main form .text-input input:focus {
  border-color: #007bff;
}
body main form .combo-input {
  gap: 6px;
}
body main form .combo-input label {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}
body main form .combo-input .shop-combo-container {
  height: 40px;
}
body main form .combo-input .shop-combo-container .shop-combo-text {
  height: 38px;
}
body main form .checkbox-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
body main form .checkbox-input label {
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}
body main form .checkbox-input input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
body main form .submit-btn {
  background-color: #007bff;
  color: white;
  border: none;
  height: 44px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}
body main form .submit-btn:hover {
  background-color: #0056b3;
}