#sheet {
  display: block;
  max-width: 60rem;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e0e4ef;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.08); }
  #sheet h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827; }
  #sheet > div {
    display: flex;
    gap: 0.5rem;
    margin: 1rem; }
    #sheet > div button {
      min-width: 6rem;
      padding: 0.25rem 0.75rem;
      font-size: 0.9rem;
      border-radius: 999rem;
      border: 1px solid #d1d5db;
      background-color: #ffffff;
      color: #111827;
      cursor: pointer;
      transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease; }
      #sheet > div button:hover {
        background-color: #f3f4ff;
        border-color: #4f46e5;
        box-shadow: 0 0.25rem 0.75rem rgba(79, 70, 229, 0.15); }
      #sheet > div button:active {
        transform: translateY(0.05rem);
        box-shadow: 0 0.1rem 0.3rem rgba(79, 70, 229, 0.2); }
  #sheet > div:nth-of-type(2) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem; }
    #sheet > div:nth-of-type(2) span {
      min-width: 3rem;
      font-size: 0.9rem;
      color: #6b7280;
      text-align: center;
      padding: 0.25rem 0.5rem;
      border-radius: 0.5rem;
      background-color: #f3f4f6; }
    #sheet > div:nth-of-type(2) input[type="text"] {
      flex: 1;
      padding: 0.35rem 0.75rem;
      font-size: 0.9rem;
      border-radius: 0.5rem;
      border: 1px solid #d1d5db;
      background-color: #ffffff;
      outline: none; }
      #sheet > div:nth-of-type(2) input[type="text"]:focus {
        border-color: #4f46e5;
        box-shadow: 0 0 0 0.1rem rgba(79, 70, 229, 0.25); }
      #sheet > div:nth-of-type(2) input[type="text"]::placeholder {
        color: #9ca3af; }
  #sheet table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #ffffff;
    table-layout: fixed;
    font-size: 0.9rem; }
    #sheet table thead {
      background-color: #f3f4f6; }
      #sheet table thead th {
        padding: 0.25rem 0.5rem;
        font-weight: 600;
        text-align: center;
        color: #4b5563;
        border: 1px solid #d1d5db; }
    #sheet table tbody th {
      padding: 0.25rem 0.5rem;
      font-weight: 500;
      text-align: center;
      color: #6b7280;
      border: 1px solid #e5e7eb;
      background-color: #f9fafb;
      width: 3rem; }
    #sheet table tbody td {
      border: 1px solid #e5e7eb;
      padding: 0;
      height: 2rem;
      vertical-align: middle;
      background-color: #ffffff;
      cursor: pointer;
      position: relative; }
      #sheet table tbody td:hover {
        background-color: #f9fafb; }
      #sheet table tbody td > div:not(:has(textarea)) {
        padding: 0.1rem 0.35rem;
        text-align: right;
        color: #111827;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; }
        #sheet table tbody td > div:not(:has(textarea)) span {
          display: inline-block;
          max-width: 100%; }
      #sheet table tbody td textarea {
        width: 100%;
        height: 100%;
        min-height: 2rem;
        padding: 0.25rem 0.35rem;
        border: 0;
        outline: none;
        resize: none;
        font: inherit;
        color: #111827;
        background-color: #eef2ff;
        box-sizing: border-box; }
      #sheet table tbody td:has(textarea:focus) {
        background-color: #e0e7ff;
        box-shadow: inset 0 0 0 0.1rem #4f46e5; }
