@font-face { font-family: "ServerMono"; src: url("/fonts/ServerMono-Regular.woff2") format("woff2"); font-weight: normal; font-style: normal; } @font-face { font-family: "ServerMono"; src: url("/fonts/ServerMono-Regular-Italic.woff2") format("woff2"); font-weight: normal; font-style: italic; } :root { color-scheme: light; font-family: "ServerMono", monospace; font-size: 16px; line-height: 1.5; font-weight: 400; color: #0f0f0f; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body.dark { color-scheme: dark; } * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; } input, textarea { -webkit-user-select: text; user-select: text; color: inherit; } html, body { margin: 0; padding: 0; height: 100vh; background-color: var(--dev-bg-light, #f6f6f6); overflow: hidden; } /* Prevent iOS from scrolling viewport when editor inputs are focused */ body.editor-open .app { position: fixed; top: 0; left: 0; right: 0; bottom: 0; } /* Disable iOS input behaviors that cause viewport shifting */ input, textarea { /* Prevent iOS from adding padding for input accessory view */ -webkit-touch-callout: none; } /* Force inputs to not trigger iOS scroll-into-view behavior */ .edit-overlay input, .edit-overlay textarea { /* Tell iOS these elements handle their own visibility */ scroll-margin: 0; scroll-padding: 0; } #root { height: 100vh; } .app { height: 100vh; display: flex; flex-direction: column; } /* Main content area - scrollable */ main.saved-view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: 0.5rem; background-color: var(--dev-bg-light, #f6f6f6); } /* Auto-sync status indicator */ .auto-sync-indicator { position: fixed; bottom: 1rem; right: 1rem; width: 8px; height: 8px; border-radius: 50%; background: #007aff; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 100; } .auto-sync-indicator.syncing { opacity: 1; animation: auto-sync-pulse 1s ease-in-out infinite; } @keyframes auto-sync-pulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } } body.dark .auto-sync-indicator { background: #0a84ff; } header { background: #ffffff; padding: 0.25rem 0.75rem; /* Safe area: --safe-area-top is set by JS on mount (env() probe for iOS, Kotlin bridge for Android). Fallback to env(safe-area-inset-top) so iOS gets the correct notch inset even before JS runs; Android WebView returns 0 for env() and the Kotlin bridge sets the real value, so no hard-coded iOS offset leaks onto Android. */ padding-top: calc(var(--safe-area-top, env(safe-area-inset-top, 0px)) + 0.4rem); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 100; flex-shrink: 0; /* Force GPU layer to prevent reflow jank */ transform: translateZ(0); -webkit-transform: translateZ(0); } header h1 { font-size: 1.1rem; margin: 0; color: #333; display: flex; align-items: center; gap: 0.5rem; } header h1 .url-count { font-weight: 400; opacity: 0.6; } nav { display: flex; gap: 0.5rem; } nav button { flex: 1; padding: 0.5rem 1rem; background: transparent; border: 1px solid #ddd; border-radius: 12px; cursor: pointer; font-weight: 500; transition: all 0.2s; } nav button.active { background: #007aff; color: white; border-color: #007aff; } main { flex: 1; padding: 1rem; max-width: 600px; width: 100%; margin: 0 auto; } .url-input { margin-bottom: 1.5rem; } .url-input label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #333; } .url-input input { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 12px; font-size: 1rem; } .tags-section h2 { font-size: 1.25rem; margin-bottom: 1rem; color: #333; } .tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; } .tag { padding: 0.5rem 1rem; background: #fff; border: 2px solid #e0e0e0; border-radius: 12px; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; } .tag:hover { border-color: #007aff; } .tag.selected { background: #007aff; color: white; border-color: #007aff; } .tag-stats { font-size: 0.75rem; opacity: 0.7; } .tag.selected .tag-stats { opacity: 0.9; } .new-tag { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; } .new-tag input { flex: 1; padding: 0.75rem; border: 1px solid #ddd; border-radius: 12px; font-size: 1rem; } .new-tag button { padding: 0.75rem 1.5rem; background: #34c759; color: white; border: none; border-radius: 12px; font-weight: 500; cursor: pointer; } .selected-tags { margin-bottom: 1.5rem; } .selected-tags h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #666; } .selected-tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 2rem; } .selected-tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: #007aff; color: white; border-radius: 12px; font-size: 0.9rem; } .selected-tag button { background: none; border: none; color: white; font-size: 1.25rem; cursor: pointer; padding: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; } .save-button { width: 100%; padding: 1rem; background: #007aff; color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 600; cursor: pointer; margin-bottom: 1rem; } .save-button:active { background: #0051d5; } .message { padding: 1rem; background: #34c759; color: white; border-radius: 12px; text-align: center; } .saved-view h2 { font-size: 1.25rem; margin-bottom: 1rem; color: #333; } .saved-urls-list { display: flex; flex-direction: column; gap: 1rem; width: 100%; } /* Compact card layout */ .saved-item-card { padding: 0.3rem 0.75rem 0.6rem; background: white; border-radius: 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); width: 100%; box-sizing: border-box; cursor: pointer; } .saved-item-card:active { background: #f5f5f5; } .card-header { display: flex; align-items: center; gap: 0.15rem; padding-bottom: 0.3rem; } .card-type-icon { flex-shrink: 0; color: #888; display: flex; align-items: center; } .card-thumbnail { flex-shrink: 0; width: 32px; height: 32px; border-radius: 6px; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #999; } .card-thumbnail img { width: 100%; height: 100%; object-fit: cover; } .card-title { flex: 1; min-width: 0; margin-left: 0.35rem; font-size: 0.9rem; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; } a.card-title { color: #007aff; } /* Tag chips in card header (tagset items) */ .card-title-tags { flex: 1; min-width: 0; margin-left: 0.35rem; } .card-delete-btn { flex-shrink: 0; background: transparent; border: none; padding: 0.25rem; color: #999; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 6px; margin-left: auto; } .card-delete-btn:active { background: rgba(255, 59, 48, 0.1); color: #ff3b30; } .card-action-btn { -webkit-appearance: none; appearance: none; flex-shrink: 0; background: transparent; border: none; padding: 0.25rem; color: #999; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 6px; } .card-action-btn:active { background: rgba(0, 122, 255, 0.1); color: #007aff; } /* Offline content icon: solid/ready state — content downloaded and ready to read */ .card-action-btn.offline-ready { color: #007aff; } /* Offline content icon: hollow/pending state — tag present but content not yet downloaded */ .card-action-btn.offline-pending { color: #ccc; opacity: 0.6; } body.dark .card-action-btn.offline-pending { color: #555; opacity: 0.5; } /* Offline content icon: currently fetching */ .card-action-btn.offline-fetching { color: #ccc; opacity: 0.6; animation: offline-pulse 1.2s ease-in-out infinite; } body.dark .card-action-btn.offline-fetching { color: #555; } @keyframes offline-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } } .card-actions { display: flex; gap: 0.15rem; flex-shrink: 0; } .card-footer { display: flex; align-items: flex-start; margin-top: 0.35rem; gap: 0.5rem; } .card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; flex: 1; min-width: 0; align-items: center; } .card-tag { padding: 0.15rem 0.5rem; background: #e8e8e8; border-radius: 10px; font-size: 0.75rem; color: #555; } .card-date { font-size: 0.7rem; color: #aaa; margin-left: auto; flex-shrink: 0; } /* Todo checkbox - shown for items with "todo" or "done" tag */ .todo-checkbox { background: none; border: none; padding: 2px; cursor: pointer; color: #007aff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; } .todo-checkbox.checked { color: #34c759; /* Green for completed */ } .todo-checkbox:active { opacity: 0.6; } .todo-checkbox svg { display: block; } /* Reading list checkbox variant - uses book icon, distinct color */ .todo-checkbox.reading-checkbox { color: #5856d6; /* Purple for reading list */ } .todo-checkbox.reading-checkbox.checked { color: #34c759; /* Green for read/completed */ } .todo-checkbox.today-checkbox { font-size: 16px; line-height: 1; } /* Legacy styles for edit mode - keep for now */ .saved-url-item { padding: 1.15rem; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); width: 100%; box-sizing: border-box; overflow: hidden; } .saved-url-item a { color: #007aff; text-decoration: none; font-weight: 500; word-break: break-all; } .saved-url-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; } .saved-url-tag { padding: 0.3rem 0.8rem; background: #e0e0e0; border-radius: 12px; font-size: 0.85rem; color: #333; } .saved-url-date { margin-top: 0.5rem; font-size: 0.85rem; color: #999; } /* URL row with edit button */ .url-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; width: 100%; overflow: hidden; } .url-info { flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0.25rem; } .url-title { font-weight: 500; color: var(--text-color, #333); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .url-row a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .url-row a.url-with-title { font-size: 0.85rem; color: #666; } .dark .url-row a.url-with-title { color: #999; } /* Item action icons (Edit, Delete on cards) */ .item-actions { display: flex; gap: 0.25rem; flex-shrink: 0; } .icon-btn { padding: 0.4rem; background: transparent; border: none; border-radius: 12px; cursor: pointer; color: #888; display: flex; align-items: center; justify-content: center; } .icon-btn:hover { background: #f0f0f0; color: #555; } .icon-btn.delete:hover { background: #f0f0f0; color: #555; } /* Small inline buttons (Edit, Delete on items) - legacy */ .edit-btn, .delete-btn.small { padding: 0.25rem 0.75rem; background: #e0e0e0; border: none; border-radius: 12px; font-size: 0.85rem; font-weight: 500; color: #333; cursor: pointer; flex-shrink: 0; } /* Editing mode */ .saved-url-item.editing, .saved-text-item.editing, .saved-tagset-item.editing, .saved-image-item.editing { border: 2px solid #007aff; max-width: 100%; box-sizing: border-box; display: flex; flex-direction: column; max-height: 70vh; } .edit-content-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; } .edit-url-display { color: #007aff; font-weight: 500; font-size: 1rem; line-height: 1.4; word-break: break-word; overflow-wrap: break-word; margin-bottom: 1rem; padding-bottom: 0.75rem; } .edit-url-input { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 12px; font-size: 1rem; color: #007aff; box-sizing: border-box; border-bottom: 1px solid #e0e0e0; } .edit-section { margin-bottom: 0.75rem; } .editing-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 2rem; } .editing-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.5rem 0.35rem 0.75rem; background: #007aff; color: white; border-radius: 12px; font-size: 0.85rem; } .editing-tag button { background: none; border: none; color: white; font-size: 1.1rem; cursor: pointer; padding: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; opacity: 0.8; } .editing-tag button:hover { opacity: 1; } .no-tags { color: #999; font-style: italic; font-size: 0.85rem; } .new-tag-input { display: flex; gap: 0.5rem; max-width: 100%; } .new-tagset-form .new-tag-input { margin-bottom: 0.75rem; } .new-tag-input input { flex: 1; min-width: 0; padding: 0.5rem 0.75rem; border: 1px solid #ddd; border-radius: 12px; font-size: 16px; /* Prevents iOS auto-zoom on focus */ } .new-tag-input > button { padding: 0.5rem 1rem; background: #007aff; color: white; border: none; border-radius: 12px; font-size: 0.85rem; font-weight: 500; cursor: pointer; } .new-tag-input > button:disabled { background: #ccc; cursor: not-allowed; } .all-tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; } .tag-chip { padding: 0.35rem 0.7rem; background: #f5f5f5; border: 1px solid #ddd; border-radius: 12px; font-size: 0.85rem; color: #555; cursor: pointer; transition: all 0.15s; } .tag-chip:hover { background: #e8e8e8; border-color: #ccc; } .tag-chip:active { background: #007aff; border-color: #007aff; color: white; } .tag-chip.selected { background: #007aff; border-color: #007aff; color: white; } .edit-buttons { display: flex; gap: 0.5rem; margin-top: 0.25rem; padding-top: 0.25rem; } .edit-buttons button { flex: 1; padding: 0.6rem 0.75rem; border: none; border-radius: 12px; font-size: 0.9rem; font-weight: 500; cursor: pointer; } .delete-btn { background: #e0e0e0; color: #333; } .cancel-btn { background: #e0e0e0; color: #333; } .save-btn { background: #007aff; color: white; } body.dark { color: #f6f6f6; background-color: var(--dev-bg-dark, #1c1c1e); } body.dark main.saved-view { background-color: var(--dev-bg-dark, #1c1c1e); } body.dark header { background: #2c2c2e; } body.dark header h1 { color: #f6f6f6; } body.dark header h1 .url-count { opacity: 0.5; } body.dark nav button { color: #f6f6f6; border-color: #444; } body.dark nav button.active { background: #0a84ff; border-color: #0a84ff; } body.dark .url-input label, body.dark .tags-section h2, body.dark .saved-view h2 { color: #f6f6f6; } body.dark .url-input input, body.dark .new-tag input { background: #2c2c2e; border-color: #444; color: #f6f6f6; } body.dark .tag { background: #2c2c2e; border-color: #444; color: #f6f6f6; } body.dark .tag:hover { border-color: #0a84ff; } body.dark .tag.selected { background: #0a84ff; border-color: #0a84ff; } body.dark .selected-tag { background: #0a84ff; } body.dark .save-button { background: #0a84ff; } body.dark .save-button:active { background: #0066cc; } body.dark main.saved-view { background-color: var(--dev-bg-dark, #1c1c1e); } body.dark .saved-url-item { background: #2c2c2e; } body.dark .saved-item-card { background: #2c2c2e; } body.dark .card-type-icon { color: #666; } body.dark .card-thumbnail { background: #3a3a3c; color: #666; } body.dark .card-title { color: #f6f6f6; } body.dark a.card-title { color: #0a84ff; } body.dark .card-tag { background: #3a3a3c; color: #ccc; } body.dark .card-date { color: #666; } body.dark .todo-checkbox { color: #0a84ff; } body.dark .todo-checkbox.checked { color: #30d158; /* Green for completed in dark mode */ } body.dark .todo-checkbox.reading-checkbox { color: #7d7aff; /* Purple for reading list in dark mode */ } body.dark .todo-checkbox.reading-checkbox.checked { color: #30d158; /* Green for read/completed in dark mode */ } body.dark .card-delete-btn { color: #666; } body.dark .card-delete-btn:active { background: rgba(255, 69, 58, 0.2); color: #ff453a; } body.dark .card-action-btn { color: #666; } body.dark .card-action-btn:active { background: rgba(10, 132, 255, 0.2); color: #0a84ff; } body.dark .saved-url-tag { background: #3a3a3c; color: #f6f6f6; } body.dark .icon-btn { color: #777; } body.dark .icon-btn:hover { background: #3a3a3c; color: #ccc; } body.dark .icon-btn.delete:hover { background: #3a3a3c; color: #ccc; } body.dark .edit-btn, body.dark .delete-btn.small { background: #3a3a3c; color: #f6f6f6; } body.dark .saved-url-item.editing, body.dark .saved-text-item.editing, body.dark .saved-tagset-item.editing, body.dark .saved-image-item.editing { border-color: #0a84ff; } body.dark .edit-url-display { color: #0a84ff; border-bottom-color: #444; } body.dark .edit-url-input { background: #1c1c1e; border-color: #444; color: #0a84ff; } body.dark .editing-tag { background: #0a84ff; } body.dark .new-tag-input input { background: #2c2c2e; border-color: #444; color: #f6f6f6; } body.dark .new-tag-input > button { background: #0a84ff; } body.dark .new-tag-input > button:disabled { background: #555; } body.dark .tag-chip { background: #3a3a3c; border-color: #555; color: #ccc; } body.dark .tag-chip:hover { background: #4a4a4c; border-color: #666; } body.dark .tag-chip:active { background: #0a84ff; border-color: #0a84ff; color: white; } body.dark .tag-chip.selected { background: #0a84ff; border-color: #0a84ff; color: white; } body.dark .edit-buttons { } body.dark .delete-btn { background: #3a3a3c; color: #f6f6f6; } body.dark .cancel-btn { background: #3a3a3c; color: #f6f6f6; } body.dark .save-btn { background: #0a84ff; } body.dark .no-tags { color: #666; } /* Header layout with buttons */ header { display: flex; align-items: center; gap: 0.25rem; } header h1 { flex-shrink: 0; } .header-btn { background: transparent; border: none; padding: 0.35rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #007aff; font-size: 1rem; flex-shrink: 0; } .header-spacer { width: 44px; } .settings-btn svg { color: #666; } body.dark .settings-btn svg { color: #999; } /* Spinning animation when syncing */ .settings-btn.syncing svg { animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } body.dark .header-btn { color: #0a84ff; } /* Settings view */ .settings-view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: 1rem; padding-bottom: calc(var(--safe-area-bottom, 0px) + 1rem); max-width: 600px; width: 100%; margin: 0 auto; box-sizing: border-box; } .settings-section { background: white; border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .settings-section:last-child { margin-bottom: 0; } .settings-section h2 { font-size: 1.1rem; margin: 0 0 0.5rem 0; color: #333; } .settings-description { font-size: 0.9rem; color: #666; margin: 0 0 1rem 0; line-height: 1.4; } .settings-label { display: block; font-size: 0.8rem; color: #888; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px; } body.dark .settings-label { color: #666; } /* Profile banner shown in main view when not on default profile */ .profile-banner { background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%); color: white; text-align: center; padding: 0.35rem 1rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; } /* Profile warning in settings */ .profile-warning-banner { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; border-radius: 8px; padding: 0.75rem; margin-bottom: 1rem; font-size: 0.85rem; line-height: 1.4; } body.dark .profile-warning-banner { background: #473a14; color: #ffc107; border-color: #5c4a1a; } /* Profile selector */ .profile-selector { margin-bottom: 1rem; } .profile-selector label { display: block; font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; } body.dark .profile-selector label { color: #999; } .profile-input-row { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; } .profile-input-row input { flex: 1; padding: 0.75rem; border: 1px solid #ddd; border-radius: 12px; font-size: 16px; } body.dark .profile-input-row input { background: #2a2a2a; border-color: #444; color: #f0f0f0; } .profile-quick-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; } .profile-btn { padding: 0.5rem 1rem; border: 1px solid #ddd; border-radius: 20px; background: #f0f0f0; color: #333; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; } .profile-btn:active { transform: scale(0.95); } .profile-btn.active { background: #007aff; border-color: #007aff; color: white; } .profile-btn.reset { background: transparent; border-color: #999; color: #666; font-style: italic; } body.dark .profile-btn { background: #2a2a2a; border-color: #444; color: #ccc; } body.dark .profile-btn.active { background: #0a84ff; border-color: #0a84ff; color: white; } body.dark .profile-btn.reset { background: transparent; border-color: #666; color: #999; } /* Profile List (desktop-style) */ .profile-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; } .profile-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: #f8f8f8; border: 1px solid #e0e0e0; border-radius: 10px; transition: all 0.2s ease; } .profile-item.active { background: #e8f4ff; border-color: #007aff; } body.dark .profile-item { background: #2a2a2a; border-color: #444; } body.dark .profile-item.active { background: #1a3a5c; border-color: #0a84ff; } .profile-radio-label { display: flex; align-items: center; gap: 0.75rem; flex: 1; cursor: pointer; } .profile-radio-label input[type="radio"] { width: 20px; height: 20px; cursor: pointer; } .profile-name { font-weight: 500; color: #333; } body.dark .profile-name { color: #f0f0f0; } .profile-badge { font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; font-weight: 600; } .profile-badge.builtin { background: #e0e0e0; color: #666; } .profile-badge.current { background: #22c55e; color: white; } body.dark .profile-badge.builtin { background: #3a3a3a; color: #999; } .profile-delete-btn { padding: 4px 10px; font-size: 0.8rem; background: transparent; border: 1px solid #ef4444; border-radius: 6px; color: #ef4444; cursor: pointer; } .profile-delete-btn:active { background: #ef4444; color: white; } .profile-add-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e0e0e0; } body.dark .profile-add-section { border-top-color: #444; } .webhook-input { display: flex; gap: 0.5rem; margin-bottom: 1rem; } .webhook-input input { flex: 1; padding: 0.75rem; border: 1px solid #ddd; border-radius: 12px; font-size: 16px; } .api-key-field { position: relative; } .api-key-field input { padding-right: 3rem; } .toggle-visibility-btn { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 0.25rem; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; } .toggle-visibility-btn:hover { color: #333; } body.dark .toggle-visibility-btn { color: #999; } body.dark .toggle-visibility-btn:hover { color: #ccc; } .save-webhook-btn { padding: 0.75rem 1rem; background: #007aff; color: white; border: none; border-radius: 12px; font-weight: 500; cursor: pointer; } .save-webhook-btn:disabled { background: #ccc; cursor: not-allowed; } .save-settings-btn { width: 100%; padding: 1rem; margin-top: 1rem; background: #007aff; color: white; border: none; border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; } .save-settings-btn:disabled { background: #ccc; cursor: not-allowed; } .last-sync-info { margin: 1rem 0; font-size: 0.85rem; color: #666; text-align: center; } .sync-btn { width: 100%; padding: 1rem; margin-top: 1rem; background: #34c759; color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; } .sync-btn:disabled { background: #ccc; cursor: not-allowed; } .sync-btn.primary { background: #007aff; } .sync-btn.secondary { background: #666; flex: 1; } .sync-btn-row { display: flex; gap: 0.75rem; margin-top: 0.75rem; } .sync-pending-info { margin-top: 0.5rem; font-size: 0.85rem; color: #ff9500; text-align: center; } .sync-message { margin-top: 1rem; padding: 0.75rem; border-radius: 12px; text-align: center; font-size: 0.9rem; } .sync-message.success { background: #d4edda; color: #155724; } .sync-message.error { background: #f8d7da; color: #721c24; } /* Dark mode for settings */ body.dark .settings-section { background: #2c2c2e; } body.dark .settings-section h2 { color: #f6f6f6; } body.dark .settings-description { color: #999; } body.dark .webhook-input input { background: #1c1c1e; border-color: #444; color: #f6f6f6; } body.dark .save-webhook-btn { background: #0a84ff; } body.dark .save-webhook-btn:disabled { background: #555; } body.dark .save-settings-btn { background: #0a84ff; } body.dark .save-settings-btn:disabled { background: #555; } body.dark .sync-btn { background: #30d158; } body.dark .sync-btn.primary { background: #0a84ff; } body.dark .sync-btn.secondary { background: #555; } body.dark .sync-btn:disabled { background: #444; } body.dark .sync-pending-info { color: #ff9f0a; } body.dark .last-sync-info { color: #999; } body.dark .sync-message.success { background: #1e3a29; color: #30d158; } body.dark .sync-message.error { background: #3a1e1e; color: #ff6b6b; } /* Filter Icons in Header */ .filter-icons { display: flex; gap: 0.35rem; align-items: center; } .filter-btn { display: flex; align-items: center; gap: 0.15rem; padding: 0.3rem 0.3rem; background: transparent; border: none; border-radius: 12px; cursor: pointer; color: #aaa; transition: all 0.15s; } .filter-btn svg { flex-shrink: 0; opacity: 0.7; } .filter-btn .filter-count { font-size: 0.7rem; font-weight: 400; min-width: 0.8rem; text-align: center; opacity: 0.8; } .filter-btn.active { color: #007aff; } .filter-btn.active svg { opacity: 1; } .filter-btn.active .filter-count { opacity: 1; } .filter-btn:not(.active):hover { color: #888; } body.dark .filter-btn { color: #666; } body.dark .filter-btn.active { color: #0a84ff; } body.dark .filter-btn:not(.active):hover { color: #888; } /* Unified Add Input */ .unified-add-input { margin-bottom: 1rem; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .add-input-collapsed-row { display: flex; align-items: center; gap: 0.25rem; padding-right: 0.5rem; } .add-input-collapsed { flex: 1; padding: 0.75rem 1rem; border: none; border-radius: 12px; font-size: 16px; font-family: inherit; background: transparent; box-sizing: border-box; } .add-input-collapsed:focus { outline: none; } .camera-btn { padding: 0.5rem; background: transparent; border: none; border-radius: 12px; cursor: pointer; color: #007aff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .camera-btn:active { background: #f0f0f0; } .unified-add-input.expanded { padding: 0 1rem 1rem 1rem; } .add-input-expanded { width: 100%; padding: 0.75rem 0; border: none; border-bottom: 1px solid #e0e0e0; border-radius: 0; font-size: 16px; font-family: inherit; resize: none; min-height: 60px; box-sizing: border-box; background: transparent; } .add-input-expanded:focus { outline: none; } .add-input-selected-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; } .add-input-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.5rem 0.35rem 0.75rem; background: #007aff; color: white; border-radius: 12px; font-size: 0.85rem; } .add-input-tag button { background: none; border: none; color: white; font-size: 1.1rem; cursor: pointer; padding: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; opacity: 0.8; } .add-input-tag button:hover { opacity: 1; } .add-input-available-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; } .add-input-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; } .add-input-cancel { flex: 1; padding: 0.6rem 0.75rem; background: #e0e0e0; color: #333; border: none; border-radius: 12px; font-size: 0.9rem; font-weight: 500; cursor: pointer; } .add-input-save { flex: 2; padding: 0.6rem 0.75rem; background: #007aff; color: white; border: none; border-radius: 12px; font-size: 0.9rem; font-weight: 500; cursor: pointer; } .add-input-save:disabled { background: #ccc; cursor: not-allowed; } /* Dark mode for unified add input */ body.dark .unified-add-input { background: #2c2c2e; } body.dark .add-input-collapsed { color: #f6f6f6; } body.dark .camera-btn { color: #0a84ff; } body.dark .camera-btn:active { background: #3a3a3c; } body.dark .add-input-expanded { border-bottom-color: #444; color: #f6f6f6; } body.dark .add-input-tag { background: #0a84ff; } body.dark .add-input-cancel { background: #3a3a3c; color: #f6f6f6; } body.dark .add-input-save { background: #0a84ff; } body.dark .add-input-save:disabled { background: #555; } /* Input Row: search + add side by side */ .input-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; } .input-row-card { flex: 1; min-width: 0; display: flex; align-items: center; background: white; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); padding-right: 0.25rem; } .input-row-card .input-with-clear { min-width: 0; } .input-row-input { flex: 1; min-width: 0; padding: 0.6rem 0.85rem; border: none; border-radius: 12px; font-size: 16px; font-family: inherit; background: transparent; box-sizing: border-box; text-overflow: ellipsis; overflow: hidden; } .input-row-input:focus { outline: none; } body.dark .input-row-card { background: #2c2c2e; } body.dark .input-row-input { color: #f6f6f6; } /* Filter Tags Container */ .filter-tags-container { min-height: 71px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); padding: 0.5rem 0.75rem; overflow-y: auto; -webkit-overflow-scrolling: touch; flex-shrink: 0; } .filter-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; } .filter-tags-empty { color: #999; font-style: italic; font-size: 0.85rem; text-align: center; padding: 0.25rem; } body.dark .filter-tags-container { background: #2c2c2e; } body.dark .filter-tags-empty { color: #666; } /* Unified List */ .unified-list { display: flex; flex-direction: column; gap: 0.65rem; width: 100%; } /* Type indicator on items */ .item-type-indicator { display: flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; color: #888; margin-bottom: 0.5rem; } .item-type-indicator svg { width: 12px; height: 12px; } body.dark .item-type-indicator { color: #666; } /* Text items */ .saved-texts-list { display: flex; flex-direction: column; gap: 1rem; width: 100%; } .new-text-form { background: white; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin-bottom: 0.5rem; } .new-text-input { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 12px; font-size: 16px; font-family: inherit; resize: vertical; min-height: 80px; box-sizing: border-box; } .save-text-btn { width: 100%; margin-top: 0.75rem; padding: 0.75rem; background: #007aff; color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; } .save-text-btn:disabled { background: #ccc; cursor: not-allowed; } .saved-text-item { padding: 1.15rem; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .text-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; } .text-content { flex: 1; white-space: pre-wrap; word-break: break-word; line-height: 1.5; } .edit-text-input { width: 100%; padding: 0.75rem; border: 1px solid #ddd; border-radius: 12px; font-size: 16px; font-family: inherit; resize: vertical; min-height: 80px; box-sizing: border-box; } .hashtag-hint { font-size: 0.85rem; color: #666; margin: 0; } .saved-text-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; } .saved-text-tag { padding: 0.25rem 0.75rem; background: #e0e0e0; border-radius: 12px; font-size: 0.85rem; color: #333; } .saved-text-date { margin-top: 0.5rem; font-size: 0.85rem; color: #999; } body.dark .new-text-form { background: #2c2c2e; } body.dark .new-text-input { background: #1c1c1e; border-color: #444; color: #f6f6f6; } body.dark .save-text-btn { background: #0a84ff; } body.dark .save-text-btn:disabled { background: #555; } body.dark .saved-text-item { background: #2c2c2e; } body.dark .text-content { color: #f6f6f6; } body.dark .edit-text-input { background: #1c1c1e; border-color: #444; color: #f6f6f6; } body.dark .hashtag-hint { color: #999; } body.dark .saved-text-tag { background: #3a3a3c; color: #f6f6f6; } /* Tagset items */ .saved-tagsets-list { display: flex; flex-direction: column; gap: 1rem; width: 100%; } .new-tagset-form { background: white; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin-bottom: 1rem; position: sticky; top: 0; z-index: 10; } .tagset-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 0; margin-bottom: 1rem; } .selected-new-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 2.5rem; padding: 0.5rem; background: #f0f0f0; border-radius: 12px; margin-bottom: 0.75rem; } .no-tags-hint { color: #999; font-style: italic; font-size: 0.85rem; align-self: center; } .new-tagset-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.5rem 0.35rem 0.75rem; background: #007aff; color: white; border-radius: 12px; font-size: 0.85rem; } .new-tagset-tag button { background: none; border: none; color: white; font-size: 1.1rem; cursor: pointer; padding: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; opacity: 0.8; } .new-tagset-tag button:hover { opacity: 1; } .save-tagset-btn { width: 100%; margin-top: 0.75rem; padding: 0.75rem; background: #007aff; color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; } .save-tagset-btn:disabled { background: #ccc; cursor: not-allowed; } .saved-tagset-item { padding: 1.15rem; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .tagset-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; } .tagset-tags { flex: 1; display: flex; flex-wrap: wrap; gap: 0.6rem; } .saved-tagset-tag { padding: 0.4rem 0.8rem; background: #007aff; color: white; border-radius: 12px; font-size: 0.9rem; } .saved-tagset-date { margin-top: 0.75rem; font-size: 0.85rem; color: #999; } body.dark .new-tagset-form { background: #2c2c2e; } body.dark .tagset-tag-cloud { background: #1c1c1e; } body.dark .selected-new-tags { background: #3a3a3c; } body.dark .no-tags-hint { color: #666; } body.dark .new-tagset-tag { background: #0a84ff; } body.dark .save-tagset-btn { background: #0a84ff; } body.dark .save-tagset-btn:disabled { background: #555; } body.dark .saved-tagset-item { background: #2c2c2e; } body.dark .saved-tagset-tag { background: #0a84ff; } /* Empty state */ .empty-state { text-align: center; padding: 2rem 1rem; color: #666; } .empty-state p { margin: 0.25rem 0; } body.dark .empty-state { color: #999; } /* Image items */ .saved-image-item { padding: 1.15rem; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .image-row { display: flex; gap: 0.85rem; align-items: flex-start; } .image-preview { flex-shrink: 0; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: #f0f0f0; display: flex; align-items: center; justify-content: center; } .image-thumbnail { width: 100%; height: 100%; object-fit: cover; } .image-placeholder { color: #999; } .image-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; } .image-title { font-weight: 500; color: var(--text-color, #333); font-size: 0.95rem; line-height: 1.3; } .image-source { color: #007aff; text-decoration: none; font-size: 0.85rem; word-break: break-all; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .image-source.with-title { font-size: 0.8rem; color: #666; -webkit-line-clamp: 1; } .image-dimensions { font-size: 0.8rem; color: #999; } .saved-image-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; } .saved-image-tag { padding: 0.3rem 0.8rem; background: #e0e0e0; border-radius: 12px; font-size: 0.85rem; color: #333; } .saved-image-date { margin-top: 0.5rem; font-size: 0.85rem; color: #999; } body.dark .saved-image-item { background: #2c2c2e; } body.dark .image-preview { background: #3a3a3c; } body.dark .image-placeholder { color: #666; } body.dark .image-title { color: #f6f6f6; } body.dark .image-source { color: #0a84ff; } body.dark .image-source.with-title { color: #999; } body.dark .image-dimensions { color: #666; } body.dark .saved-image-tag { background: #3a3a3c; color: #f6f6f6; } /* Captured image view */ .captured-image-view { padding: 1rem; } .captured-image-preview { width: 100%; margin-bottom: 1rem; border-radius: 12px; overflow: hidden; background: #f0f0f0; } .captured-image-preview img { width: 100%; height: auto; display: block; } body.dark .captured-image-preview { background: #2c2c2e; } /* Edit Overlay - for editing existing items */ .edit-overlay { position: fixed; top: 0; left: 0; right: 0; /* height is set dynamically via visualViewport — no bottom: 0 */ height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 1000; display: flex; flex-direction: column; align-items: center; padding: 0.5rem; padding-top: var(--safe-area-top, env(safe-area-inset-top, 0px)); /* Bottom padding handled by .editor-segment-buttons safe-area padding */ padding-bottom: 0; /* Prevent iOS from scrolling the viewport when keyboard appears */ overflow: hidden; overscroll-behavior: contain; box-sizing: border-box; } /* When keyboard is open, no bottom safe-area padding needed — keyboard covers it */ .edit-overlay.keyboard-open { padding-bottom: 0; } .edit-overlay.transition-padding { transition: padding-bottom 0.3s ease-out; } .edit-overlay .expandable-card { width: 100%; max-width: 600px; margin: 0; flex: 1; min-height: 0; } body.dark .edit-overlay { background: rgba(0, 0, 0, 0.6); } /* Expandable Card - in-place expansion for quick-add and edit */ .expandable-card { background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin-bottom: 0.65rem; display: flex; flex-direction: column; overflow: hidden; /* Force GPU layer to prevent reflow jank */ transform: translateZ(0); -webkit-transform: translateZ(0); } /* Input row - stays in place */ .expandable-card-input-row { display: flex; align-items: flex-start; gap: 0.25rem; padding-right: 0.5rem; } /* Collapsed state: input element */ .expandable-card-input { flex: 1; padding: 0.85rem 1.15rem; border: none; border-radius: 12px; font-size: 16px; font-family: inherit; background: transparent; box-sizing: border-box; color: #0f0f0f; } .expandable-card-input:focus { outline: none; } /* Expanded state: textarea element */ textarea.expandable-card-input.expanded-input { width: 100%; padding: 0.85rem 1.15rem; border: none; border-bottom: 1px solid #e0e0e0; border-radius: 12px 12px 0 0; font-size: 16px; font-family: inherit; resize: none; min-height: 60px; box-sizing: border-box; background: transparent; } /* Scrollable content area */ .expandable-card-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0.65rem 1.15rem; max-height: 40vh; min-height: 0; } .expandable-card-section { margin-bottom: 0.85rem; } .expandable-card-section:last-child { margin-bottom: 0; } /* Action buttons - always visible at bottom */ .expandable-card-buttons { display: flex; gap: 0.85rem; padding: 0.5rem 1.15rem; background: white; flex-shrink: 0; } .expandable-card-buttons button { flex: 1; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.95rem; font-weight: 500; cursor: pointer; border: none; } .expandable-card-buttons .cancel-btn { background: #e8e8e8; color: #333; } .expandable-card-buttons .save-btn { background: #007aff; color: white; } .expandable-card-buttons .save-btn:disabled { background: #ccc; color: #888; } /* Dark mode */ body.dark .expandable-card { background: #2c2c2e; } body.dark .expandable-card-input { color: #f6f6f6; } body.dark textarea.expandable-card-input.expanded-input { border-bottom-color: #444; } body.dark .expandable-card-buttons { background: #2c2c2e; } body.dark .expandable-card-buttons .cancel-btn { background: #3a3a3c; color: #f6f6f6; } body.dark .expandable-card-buttons .save-btn { background: #0a84ff; } /* ============================================================================ Shared Editor Components ============================================================================ */ /* Clear button for inputs */ .clear-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; padding: 4px; cursor: pointer; color: #999; display: flex; align-items: center; justify-content: center; z-index: 1; } .clear-btn:active { opacity: 0.7; } .clear-btn svg { display: block; } /* Textarea clear button - top right */ .clear-btn.textarea-clear { top: 8px; right: 8px; transform: none; } /* Input wrapper for clear button positioning */ .input-with-clear { position: relative; display: flex; align-items: center; } .input-with-clear input { flex: 1; padding-right: 32px; } /* URL editor content wrapper - fixed size, does not flex-grow. Tags section fills remaining space below. */ .editor-url-content-wrapper { flex-shrink: 0; align-items: stretch; } /* URL editor wrapper - inner row with input + clear button */ .editor-url-wrapper { flex-shrink: 0; } body.dark .editor-url-wrapper { } body.dark .clear-btn { color: #666; } /* Editor Card - base layout for all editors */ .editor-card { position: relative; display: flex; flex-direction: column; max-height: 100%; flex: 1; height: 0; min-height: 0; } /* Three-segment editor layout: content, tags, buttons The drag handle on ResizableInput sets --segment-content-height on the .editor-card ancestor. When set, content uses that fixed height and tags grow into the remaining space. When unset, content flexes to fill. */ .editor-segment-content { flex: var(--segment-content-flex, 1 1 0); height: var(--segment-content-height, auto); min-height: 60px; display: flex; flex-direction: column; overflow: hidden; } .editor-segment-separator { flex: none; display: flex; justify-content: center; align-items: center; padding: 4px 0; cursor: row-resize; touch-action: none; } .editor-segment-separator-handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(128, 128, 128, 0.3); } .editor-segment-tags { flex: 0 0 auto; min-height: 60px; max-height: 40%; overflow-y: auto; -webkit-overflow-scrolling: touch; } /* Hide ResizableInput's internal drag handle when inside EditorLayout — the shared segment separator replaces it */ .editor-segment-content .resizable-input-wrapper .drag-handle { display: none; } /* body.dark .editor-segment-tags — no dark overrides needed */ .editor-segment-buttons { flex: none; padding-bottom: env(safe-area-inset-bottom, 0px); } .keyboard-open .editor-segment-buttons { padding-bottom: 0; } /* Resizable Input Component */ .resizable-input-wrapper { position: relative; display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; } .resizable-input-textarea { flex: 1; width: 100%; height: 100%; padding: 0.85rem 1.15rem; border: none; border-radius: 12px 12px 0 0; font-size: 16px; font-family: inherit; resize: none; min-height: 0; box-sizing: border-box; background: transparent; color: #0f0f0f; } .resizable-input-textarea:focus { outline: none; } /* Drag handle wrapper — wraps a container + its drag handle. The handle is positioned centered on the container's bottom edge. */ .drag-handle-wrapper { position: relative; margin-bottom: 0.5rem; flex-shrink: 0; overflow: visible; } .drag-handle { position: absolute; bottom: 0; left: 0; right: 0; height: 44px; transform: translateY(calc(50% + 0.5px)); cursor: ns-resize; display: flex; align-items: center; justify-content: center; touch-action: none; } .drag-handle-bar { width: 32px; height: 3px; background: #c0c0c0; border-radius: 1.5px; } /* Editor drag handle: in-flow (not absolute) to avoid overflow:hidden clipping */ .resizable-input-wrapper .drag-handle { position: relative; bottom: auto; transform: none; height: auto; padding: 12px 0; flex-shrink: 0; } body.dark .resizable-input-textarea { color: #f6f6f6; } body.dark .drag-handle-bar { background: #555; } /* Tags Section - just padding, parent segment handles flex/overflow */ .editor-tags-section { padding: 0.25rem 1.15rem; } /* Editor Buttons - always visible at bottom */ .editor-buttons { flex-shrink: 0; position: relative; z-index: 1; } /* URL Input for editor (non-resizable) */ .editor-url-input { width: 100%; padding: 0.85rem 1.15rem; border: none; border-radius: 12px 12px 0 0; font-size: 16px; font-family: inherit; box-sizing: border-box; background: transparent; } .editor-url-input:focus { outline: none; } body.dark .editor-url-input { color: #f6f6f6; } /* Image preview for editor */ .editor-image-preview { padding: 0.75rem 1.15rem; text-align: center; flex-shrink: 0; } .editor-image-preview .edit-modal-image { max-width: 100%; max-height: 150px; object-fit: contain; border-radius: 8px; } .editor-image-preview .image-placeholder { display: flex; align-items: center; justify-content: center; height: 100px; color: #999; } body.dark .editor-image-preview { } /* Legacy text editor classes - keep for backwards compatibility */ .text-editor-overlay { align-items: stretch; } .text-editor-card { display: flex; flex-direction: column; max-height: calc(100% - 1rem); height: auto; } .text-editor-wrapper { position: relative; flex-shrink: 0; display: flex; flex-direction: column; border-bottom: 1px solid #e0e0e0; } .text-editor-textarea { flex: 1; width: 100%; height: 100%; border: none !important; border-radius: 12px 12px 0 0; resize: none; min-height: 0; color: #0f0f0f; } .text-editor-drag-handle { position: absolute; bottom: 0; left: 0; right: 0; height: 24px; cursor: ns-resize; display: flex; align-items: center; justify-content: center; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.03)); touch-action: none; } body.dark .text-editor-wrapper { border-bottom-color: #444; } body.dark .text-editor-drag-handle { background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.03)); } /* Tag area scrollable with flex */ .text-editor-tags-scroll { flex: 1; min-height: 60px; max-height: none; overflow-y: auto; } /* Buttons always visible at bottom */ .text-editor-buttons { flex-shrink: 0; position: relative; z-index: 1; } /* Edit Modal Overlay */ .edit-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: flex-end; justify-content: center; z-index: 1000; padding: 1rem; padding-top: 10vh; } .edit-modal { background: white; border-radius: 16px 16px 0 0; width: 100%; max-width: 600px; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15); } .edit-modal-header { padding: 1rem; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; } .edit-modal-header h3 { margin: 0; font-size: 1.1rem; font-weight: 600; color: #333; } .edit-modal-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1rem; } .edit-label { font-size: 0.85rem; font-weight: 500; color: #666; margin-bottom: 0.5rem; display: block; } .edit-modal-image { width: 100%; max-height: 200px; object-fit: contain; border-radius: 12px; background: #f0f0f0; margin-bottom: 0.5rem; } .edit-modal-buttons { display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid #e0e0e0; flex-shrink: 0; background: white; } .edit-modal-buttons button { flex: 1; padding: 0.75rem; border: none; border-radius: 12px; font-size: 1rem; font-weight: 500; cursor: pointer; } .edit-modal-buttons .delete-btn { background: #e0e0e0; color: #333; } .edit-modal-buttons .cancel-btn { background: #e0e0e0; color: #333; } .edit-modal-buttons .save-btn { background: #007aff; color: white; } /* Dark mode for edit modal */ body.dark .edit-modal-overlay { background: rgba(0, 0, 0, 0.7); } body.dark .edit-modal { background: #2c2c2e; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4); } body.dark .edit-modal-header { border-bottom-color: #444; } body.dark .edit-modal-header h3 { color: #f6f6f6; } body.dark .edit-label { color: #999; } body.dark .edit-modal-image { background: #1c1c1e; } body.dark .edit-modal-buttons { border-top-color: #444; background: #2c2c2e; } body.dark .edit-modal-buttons .delete-btn { background: #3a3a3c; color: #f6f6f6; } body.dark .edit-modal-buttons .cancel-btn { background: #3a3a3c; color: #f6f6f6; } body.dark .edit-modal-buttons .save-btn { background: #0a84ff; } /* Delete confirmation modal */ .confirm-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 1rem; } .confirm-modal { background: white; border-radius: 16px; padding: 1.5rem; width: 100%; max-width: 300px; text-align: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); } .confirm-modal p { font-size: 1rem; margin-bottom: 1.25rem; color: #333; } .confirm-modal-buttons { display: flex; gap: 0.75rem; } .confirm-modal-buttons button { flex: 1; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.95rem; font-weight: 500; cursor: pointer; border: none; } .confirm-modal-buttons .cancel-btn { background: #e8e8e8; color: #333; } .confirm-modal-buttons .delete-btn { background: #ff3b30; color: white; } body.dark .confirm-modal-overlay { background: rgba(0, 0, 0, 0.7); } body.dark .confirm-modal { background: #2c2c2e; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); } body.dark .confirm-modal p { color: #f6f6f6; } body.dark .confirm-modal-buttons .cancel-btn { background: #3a3a3c; color: #f6f6f6; } body.dark .confirm-modal-buttons .delete-btn { background: #ff453a; } /* (View mode CSS removed - merged into unified view) /* Toast notifications */ .toast { position: fixed; bottom: calc(var(--safe-area-bottom, 0px) + 80px); left: 50%; transform: translateX(-50%); padding: 0.75rem 1.25rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500; z-index: 10000; animation: toast-in 0.2s ease-out; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } @keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } } .toast-success { background: #34c759; color: white; } .toast-error { background: #ff3b30; color: white; } body.dark .toast-success { background: #30d158; } body.dark .toast-error { background: #ff453a; } /* Modal overlay and content */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 20px; } .modal-content { background: white; border-radius: 16px; padding: 24px; max-width: 320px; width: 100%; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); } body.dark .modal-content { background: #2a2a2a; color: #f0f0f0; } .modal-content h3 { margin: 0 0 12px 0; font-size: 1.2rem; } .modal-content p { margin: 0 0 16px 0; font-size: 0.95rem; color: #666; line-height: 1.5; } body.dark .modal-content p { color: #aaa; } .modal-buttons { display: flex; gap: 12px; justify-content: center; margin-top: 20px; } .modal-btn { padding: 12px 24px; border-radius: 10px; font-size: 1rem; font-weight: 500; cursor: pointer; border: none; min-width: 100px; } .modal-btn.primary { background: #007aff; color: white; } .modal-btn.secondary { background: #e5e5e5; color: #333; } body.dark .modal-btn.secondary { background: #3a3a3a; color: #ccc; } .modal-btn:active { transform: scale(0.95); } /* Auto-sync toggle */ .auto-sync-toggle { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; margin: 0.5rem 0; cursor: pointer; font-size: 0.9rem; color: #333; } body.dark .auto-sync-toggle { color: #ccc; } .auto-sync-toggle.disabled { opacity: 0.5; cursor: default; } .auto-sync-toggle input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; } .auto-sync-toggle input[type="checkbox"]:disabled { cursor: default; } /* Sync interval setting */ .sync-interval-setting { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.5rem 0; margin: 0.25rem 0 0.5rem; font-size: 0.9rem; color: #333; } body.dark .sync-interval-setting { color: #ccc; } .sync-interval-setting input[type="number"] { padding: 0.4rem 0.6rem; border-radius: 8px; border: 1px solid #ccc; background: #fff; color: #333; font-size: 0.85rem; width: 70px; } .sync-interval-setting input[type="number"]:disabled { opacity: 0.5; cursor: default; } body.dark .sync-interval-setting input[type="number"] { background: #2a2a2a; color: #ccc; border-color: #555; } .sync-interval-hint { flex-basis: 100%; font-size: 0.8rem; opacity: 0.6; } /* Editor drag handle for swipe-to-close */ .editor-drag-handle { width: 100%; padding: 6px 0; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; } .editor-drag-handle:active { cursor: grabbing; } .editor-drag-handle .drag-handle-bar { width: 36px; height: 5px; background: rgba(0, 0, 0, 0.2); border-radius: 2.5px; } body.dark .editor-drag-handle .drag-handle-bar { background: rgba(255, 255, 255, 0.3); } /* Empty tags message */ .tags-empty-message { color: #888; font-size: 0.85rem; font-style: italic; padding: 0.25rem 0; } body.dark .tags-empty-message { color: #666; } /* Collapsed tag section when no tags exist */ .editor-tags-section.collapsed .expandable-card-section:last-child { min-height: 32px; padding: 0.5rem; } /* Undo/Redo buttons for editor — positioned at top-right of editor card, level with swipe indicator */ .undo-redo-buttons { position: absolute; top: 6px; right: 12px; z-index: 10; display: flex; gap: 4px; } .undo-redo-buttons button { background: none; border: 1px solid #ddd; border-radius: 6px; padding: 4px 8px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; } .undo-redo-buttons button:disabled { opacity: 0.3; cursor: default; } .undo-redo-buttons button:active:not(:disabled) { background: rgba(0, 0, 0, 0.05); } body.dark .undo-redo-buttons button { border-color: #444; color: #aaa; } body.dark .undo-redo-buttons button:active:not(:disabled) { background: rgba(255, 255, 255, 0.1); } /* URL open button for text items */ .card-open-url-btn { background: none; border: none; color: #007AFF; cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .card-open-url-btn:active { opacity: 0.5; } body.dark .card-open-url-btn { color: #5AC8FA; } /* Sort button in header */ .sort-btn { background: none; border: none; color: #666; cursor: pointer; padding: 6px; display: flex; align-items: center; justify-content: center; border-radius: 8px; } .sort-btn:active { background: rgba(0, 0, 0, 0.05); } body.dark .sort-btn { color: #aaa; } body.dark .sort-btn:active { background: rgba(255, 255, 255, 0.1); } /* === Inline Webview (card expansion) === */ /* Single source of truth for webview animation duration */ :root { --webview-anim: 0.2s; --webview-ease: cubic-bezier(0.32, 0.72, 0, 1); --webview-ease-in: cubic-bezier(0.85, 0, 1, 1); /* snap open: strong acceleration */ --webview-ease-out: cubic-bezier(0.32, 0.72, 0, 1); /* ease out close: decelerate */ } /* When webview active: slide entire app up, clip overflow */ .app { transition: transform var(--webview-anim) var(--webview-ease), height var(--webview-anim) var(--webview-ease); } .app.webview-active { transform: translateY(calc(-1 * var(--slide-offset, 0px))); overflow: hidden; /* Must be taller than 100vh to compensate for the upward transform, otherwise the bottom (offset) pixels of the viewport are empty */ height: calc(100vh + var(--slide-offset, 0px)); } /* Let main overflow so webview-inline isn't clipped at main's bottom edge */ .app.webview-active main.saved-view { overflow: visible; } /* Expanded card: full width */ .saved-item-card.card-webview-expanded { box-shadow: none; } .saved-item-card.card-webview-expanded .card-header { border-bottom: 1px solid #e0e0e0; } /* Back button: collapsed by default, slides in when visible */ .webview-back-btn { width: 0; min-width: 0; opacity: 0; overflow: hidden; padding: 0; margin-left: -0.15rem; /* cancel the gap from .card-header */ transition: width var(--webview-anim) var(--webview-ease), opacity var(--webview-anim) var(--webview-ease), margin var(--webview-anim) var(--webview-ease), padding var(--webview-anim) var(--webview-ease); } .webview-back-btn.visible { width: 20px; opacity: 1; padding: 0.25rem 0.25rem 0.25rem 0; margin-left: 0; } /* The inline webview container — height drives push-down */ .webview-inline { height: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: height var(--webview-anim) var(--webview-ease); } .webview-inline.webview-expanded { height: 100vh; } .webview-iframe { flex: 1; border: none; width: 100%; background: white; } .webview-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #999; font-size: 0.9rem; } .webview-error { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #666; } .webview-error button { padding: 0.5rem 1rem; background: #007aff; color: white; border: none; border-radius: 8px; font-size: 0.9rem; } body.dark .saved-item-card.card-webview-expanded .card-header { border-bottom-color: #3a3a3c; } body.dark .saved-item-card.card-webview-expanded { background: #2c2c2e; } body.dark .webview-iframe { background: #1c1c1e; } body.dark .webview-error { color: #999; } .image-fullscreen-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.95); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--safe-area-top, 0px) var(--safe-area-right, 0px) var(--safe-area-bottom, 0px) var(--safe-area-left, 0px); } .image-fullscreen-img { max-width: 100%; max-height: 100%; object-fit: contain; } /* Note reader mode - rendered markdown */ .note-reader-content { padding: 0.75rem 1rem; font-size: 14px; line-height: 1.6; color: var(--base05, #333); overflow-y: auto; flex: 1 1 0; min-height: 100px; } .note-reader-content h1, .note-reader-content h2, .note-reader-content h3 { margin: 0.5em 0 0.3em; line-height: 1.3; } .note-reader-content h1 { font-size: 1.4em; } .note-reader-content h2 { font-size: 1.2em; } .note-reader-content h3 { font-size: 1.1em; } .note-reader-content p { margin: 0.4em 0; } .note-reader-content code { background: var(--base01, #f0f0f0); padding: 0.15em 0.3em; border-radius: 3px; font-size: 0.9em; } .note-reader-content pre { background: var(--base01, #f0f0f0); padding: 0.75rem; border-radius: 6px; overflow-x: auto; } .note-reader-content pre code { background: none; padding: 0; } .note-reader-content blockquote { border-left: 3px solid var(--base03, #ccc); margin: 0.5em 0; padding: 0.25em 0.75em; color: var(--base04, #666); } .note-reader-content ul, .note-reader-content ol { padding-left: 1.5em; margin: 0.4em 0; } .note-reader-content a { color: var(--base0D, #007aff); } .note-reader-content img { max-width: 100%; border-radius: 6px; } /* Checkbox list items in reader mode */ .note-reader-content li.checkbox-item { list-style: none; margin-left: -1.5em; } .note-reader-content li.checkbox-item input[type="checkbox"] { margin-right: 0.4em; vertical-align: middle; pointer-events: none; } .note-reader-content li.checkbox-checked { color: var(--base04, #888); text-decoration: line-through; } /* Active eye icon for reader mode */ .card-action-btn.reader-active { color: var(--base0D, #007aff); } /* Dark mode styles for note reader content */ body.dark .note-reader-content { color: #e0e0e0; } body.dark .note-reader-content code { background: #3a3a3c; color: #f0f0f0; } body.dark .note-reader-content pre { background: #3a3a3c; color: #f0f0f0; } body.dark .note-reader-content blockquote { border-left-color: #555; color: #aaa; } body.dark .note-reader-content a { color: #0a84ff; } body.dark .note-reader-content li.checkbox-checked { color: #777; } /* Editor header row — unified drag handle + back button + action buttons */ .editor-header { display: flex; align-items: center; gap: 8px; padding: 12px 12px 4px; flex-shrink: 0; position: relative; touch-action: none; } .editor-header > .drag-handle-bar { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 36px; height: 5px; background: rgba(0, 0, 0, 0.2); border-radius: 2.5px; } body.dark .editor-header > .drag-handle-bar { background: rgba(255, 255, 255, 0.3); } .editor-header-back { margin-right: auto; } .editor-header .card-action-btn { padding: 6px; } .editor-header .card-action-btn:disabled { opacity: 0.3; cursor: default; } .editor-header .editor-header-delete:active { background: rgba(255, 59, 48, 0.1); color: #ff3b30; } /* body.dark .editor-header — no dark overrides needed */ /* Editor header buttons use .card-action-btn styling from editor-header */