
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            background: #ffffff;
            max-width: 800px;
            margin: 0 auto;
            height: 100vh;
            display: flex;
            flex-direction: column;
            color: #2c3e50;
        }

        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.875rem 1rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            background: rgba(255, 255, 255, 0.98);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .actions {
            display: flex;
            gap: 1.25rem;
            align-items: center;
        }

        .share-icon, .more-options {
            font-size: 1.25rem;
            color: #2c3e50;
            cursor: pointer;
            opacity: 0.8;
            transition: opacity 0.2s ease;
        }

        .share-icon:hover, .more-options:hover {
            opacity: 1;
        }

        .main-content {
            flex: 1;
            padding: 1rem 1.25rem;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            gap: 0.5rem;
        }

        .title-area {
            display: block;
            font-size: 1.75rem;
            color: #2c3e50;
            border: none;
            width: 100%;
            resize: none;
            outline: none;
            background: transparent;
            font-weight: 500;
            padding: 0.5rem;
            min-height: 3rem;
            line-height: 1.3;
            height: 40px;
        }

        .title-area::placeholder {
            color: #bdc3c7;
            font-weight: 400;
        }

        .body-area {
            display: block;
            flex: 1;
            border: none;
            width: 100%;
            min-height: 200px;
            resize: none;
            outline: none;
            font-size: 1rem;
            line-height: 1.6;
            background: transparent;
            color: #34495e;
            padding: 0.5rem;
        }

        .body-area::placeholder {
            color: #95a5a6;
        }

        .share-section {
            padding: 0.875rem 1rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            background: white;
        }

        .share-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .share-toggle-label {
            font-size: 1rem;
            color: #2c3e50;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 51px;
            height: 31px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #e4e4e4;
            transition: .4s;
            border-radius: 34px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 27px;
            width: 27px;
            left: 2px;
            bottom: 2px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background-color: #34C759;
        }

        input:checked + .toggle-slider:before {
            transform: translateX(20px);
        }

        .shared-folder-select {
            display: none;
            padding: 0.875rem 1rem;
            background: white;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }

        .shared-folder-select.visible {
            display: block;
        }

        .select-wrapper {
            position: relative;
            width: 100%;
        }

        .ios-select {
            width: 100%;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            color: #2c3e50;
            background-color: #f2f2f7;
            border: none;
            border-radius: 12px;
            appearance: none;
            cursor: pointer;
        }

        .select-arrow {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            color: #8e8e93;
        }

        .share-status {
            display: none;
            color: #34C759;
            font-size: 0.95rem;
            align-items: center;
            gap: 0.5rem;
            padding: 0.875rem 1rem;
            justify-content: space-between;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            background: white;
        }

        .share-status.visible {
            display: flex;
        }

        .share-status-text {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .change-journal {
            color: #007AFF;
            cursor: pointer;
            font-size: 0.9rem;
            padding: 4px 8px;
            border-radius: 4px;
            background: rgba(0, 122, 255, 0.1);
            border: none;
        }

        .media-section {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 1rem 0;
        }

        .media-container {
            position: relative;
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
        }

        .media-container img {
            width: 100%;
            height: auto;
            max-height: 300px;
            object-fit: cover;
            border-radius: 12px;
            display: block;
        }

        .delete-media {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: background-color 0.2s ease;
        }

        .delete-media:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        .bottom-bar {
            padding: 1rem;
            background: white;
            border-top: 1px solid rgba(0, 0, 0, 0.06);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            bottom: 0;
        }

        .image-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #007AFF;
            cursor: pointer;
            background: none;
            border: none;
            font-size: 1rem;
            padding: 0.5rem;
        }

        .image-btn:disabled {
            color: #999;
            cursor: not-allowed;
        }

        .done-btn {
            background: #007AFF;
            border: none;
            padding: 0.625rem 1.5rem;
            border-radius: 1.5rem;
            font-size: 1rem;
            color: white;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .done-btn:hover {
            background: #0056b3;
        }

        #imageInput {
            display: none;
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: #dfe6e9;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #b2bec3;
        }
    