      @media (prefers-reduced-motion: reduce) {
        .celebration-message,
        .celebration-badge,
        .confetti-wrapper,
        .sakura-wrapper {
          animation: none !important;
        }
      }

      .title-with-btn {
        display: flex;
        align-items: center;
        gap: 16px;
      }

      .sms-link-btn {
        background: linear-gradient(135deg, rgba(0, 102, 204, 0.06) 0%, rgba(0, 102, 204, 0.02) 100%);
        border: 1px solid rgba(0, 102, 204, 0.25);
        color: #0066cc;
        font-size: 13px;
        padding: 6px 14px;
        cursor: pointer;
        transition: all 200ms ease;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
      }

      .sms-link-btn:hover {
        color: #0052a3;
        background: linear-gradient(135deg, rgba(0, 102, 204, 0.12) 0%, rgba(0, 102, 204, 0.06) 100%);
        border-color: rgba(0, 102, 204, 0.4);
        box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
        transform: translateY(-1px);
      }

      .sms-link-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(0, 102, 204, 0.1);
      }

      .sms-link-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
      }

      .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
      }

      .modal-overlay:not(.hidden) {
        opacity: 1;
        pointer-events: auto;
      }

      .sms-modal {
        width: min(820px, 94vw);
        max-height: 92vh;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
        overflow: hidden;
        transform: scale(0.97) translateY(8px);
        opacity: 0;
        transition: transform 180ms ease, opacity 180ms ease;
        display: flex;
        flex-direction: column;
        border: 1px solid #eef0f3;
        will-change: transform, opacity;
      }

      .modal-overlay:not(.hidden) .sms-modal {
        transform: scale(1) translateY(0);
        opacity: 1;
      }

      .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 24px;
        border-bottom: 1px solid #f1f3f5;
        background: #ffffff;
        position: relative;
      }

      .modal-header::after {
        display: none;
      }

      .modal-header h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 600;
        color: #1f2937;
        letter-spacing: 0;
      }

      .modal-header-stats {
        font-size: 12px;
        color: #9ca3af;
        margin-top: 3px;
        font-weight: 400;
        padding: 0;
        background: transparent;
        border-radius: 0;
        display: inline-block;
      }

      .modal-close-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: transparent;
        border: 1px solid #e5e7eb;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 80ms linear, color 80ms linear, border-color 80ms linear;
        color: #6b7280;
        font-weight: 400;
        position: relative;
        overflow: hidden;
      }

      .modal-close-btn::before {
        display: none;
      }

      .modal-close-btn:hover {
        background: #f3f4f6;
        color: #1f2937;
        border-color: #d1d5db;
        transform: none;
        box-shadow: none;
      }

      .modal-close-btn:hover::before {
        opacity: 0;
      }

      .sms-search-wrapper {
        padding: 14px 24px;
        background: #ffffff;
        border-bottom: 1px solid #f1f3f5;
        position: relative;
      }

      .sms-search-input {
        width: 100%;
        padding: 10px 14px 10px 38px;
        font-size: 14px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #f9fafb;
        transition: border-color 80ms linear, background-color 80ms linear;
        position: relative;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: 14px center;
        background-size: 15px;
      }

      .sms-search-input:focus {
        outline: none;
        border-color: #d1d5db;
        box-shadow: none;
        background-color: #ffffff;
        transform: none;
      }

      .sms-search-input::placeholder {
        color: #9ca3af;
      }

      .sms-list {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px 24px;
        min-height: 320px;
        max-height: 70vh;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
      }

      .sms-list::-webkit-scrollbar {
        width: 4px;
      }

      .sms-list::-webkit-scrollbar-track {
        background: transparent;
      }

      .sms-list::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 4px;
      }

      .sms-list::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
      }

      .sms-add-section {
        border-top: 1px solid #f1f3f5;
        background: #ffffff;
      }

      .sms-add-toggle {
        padding: 12px 24px;
        cursor: pointer;
        text-align: center;
        color: #6b7280;
        font-size: 14px;
        font-weight: 400;
        transition: color 80ms linear, background-color 80ms linear;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
      }

      .sms-add-toggle:hover {
        color: #1f2937;
        background: #f9fafb;
      }

      .sms-add-toggle::before {
        content: "+";
        font-size: 16px;
        font-weight: 400;
      }

      .sms-add-form {
        padding: 16px 24px 20px;
        display: grid;
        gap: 12px;
        background: #fafbfc;
      }

      .sms-add-form input,
      .sms-add-form textarea {
        width: 100%;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 14px;
        resize: vertical;
        transition: border-color 80ms linear;
      }

      .sms-add-form input:focus,
      .sms-add-form textarea:focus {
        outline: none;
        border-color: #9ca3af;
        box-shadow: none;
      }

      .sms-add-form textarea {
        min-height: 100px;
      }

      .sms-add-actions {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
      }

      .sms-add-actions button {
        padding: 12px 24px;
        font-size: 15px;
        font-weight: 600;
      }

      .sms-item {
        background: #ffffff;
        border: 1px solid #eef0f3;
        border-radius: 8px;
        padding: 12px 14px;
        margin-bottom: 8px;
        transition: background-color 80ms linear, border-color 80ms linear;
        position: relative;
        box-shadow: none;
        contain: content;
      }

      .sms-item::before {
        display: none;
      }

      .sms-item:hover {
        border-color: #d1d5db;
        background: #fafbfc;
        box-shadow: none;
        transform: none;
      }

      .sms-item:hover::before {
        opacity: 0;
      }

      .sms-item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        gap: 8px;
      }

      .sms-item-title {
        font-weight: 500;
        font-size: 14px;
        color: #1f2937;
        display: flex;
        align-items: center;
        gap: 0;
        min-width: 0;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .sms-item-title::before {
        display: none;
      }

      .link-item-title {
        font-weight: 500;
        font-size: 14px;
        color: #4b5563;
        display: flex;
        align-items: center;
        gap: 0;
        min-width: 0;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .link-item-title::before {
        display: none;
      }

      #favoriteModal .sms-item {
        padding: 8px 10px;
        margin-bottom: 6px;
      }

      #favoriteModal .sms-item-title,
      #favoriteModal .link-item-title {
        font-size: 14px;
        font-weight: 600;
        color: #ff4d4f;
        letter-spacing: 0;
        padding: 3px 8px;
        background: linear-gradient(135deg, #fff5f5 0%, #fff0e6 100%);
        border: 1px solid #ffccc7;
        border-radius: 6px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        line-height: 1.35;
      }

