/* LS Noter · native-inspired presentation. App logic and Ionic remain unchanged. */
:root {
  --primary: #007aff;
  --primary-soft: rgba(0, 122, 255, .1);
  --native-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --native-shadow: 0 2px 8px rgba(20, 20, 35, .035), 0 1px 1px rgba(20, 20, 35, .035);
}
html.ion-palette-dark { --primary: #0a84ff; }
.ios27-app, .ios27-auth { font-family: var(--native-font); -webkit-font-smoothing: antialiased; }
.ios27-app button, .ios27-app input, .ios27-app textarea, .ios27-app select,
.ios27-auth button, .ios27-auth input { font-family: inherit; }
.ios27-app [hidden], .ios27-auth [hidden] { display: none !important; }
.ios27-app .btn, .ios27-auth .btn { font-size: 15px; font-weight: 600; box-shadow: none; min-height: 44px; }
.ios27-app .btn i, .ios27-auth .btn i { line-height: 1; }
.ios27-app button:focus-visible, .ios27-app summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* A single background through the iPhone status area and header. */
.ios27-app .app-header { box-shadow: none; background: var(--bg); }
.ios27-app .app-header ion-toolbar { --min-height: calc(42px + var(--safe-top)); --padding-top: var(--safe-top); --padding-bottom: 0; }
.ios27-app .app-header-inner { min-height: 42px; max-width: 880px; padding: 4px 20px; }
.ios27-app .brand-copy strong { font-size: 16px; font-weight: 650; letter-spacing: -.25px; }
.ios27-app .sync-button { min-height: 36px; padding: 4px 0 4px 12px; gap: 6px; font-size: 12px; font-weight: 400; border: 0; background: transparent; box-shadow: none; }
.ios27-app .sync-button > i { display: none; }
.ios27-app .sync-dot { width: 6px; height: 6px; box-shadow: none; }
.ios27-app .app-main { max-width: 880px; padding: 16px 20px 28px; }
.ios27-app .app-content { --padding-bottom: 12px; }
.ios27-app .app-content::part(scroll) { scroll-padding-top: 12px; scroll-padding-bottom: 24px; }
.ios27-app:has(.bulk-action-footer:not([hidden])) .app-content { --padding-bottom: calc(90px + var(--safe-bottom)); }
.ios27-app .view-heading { align-items: center; margin-bottom: 20px; gap: 12px; }
.ios27-app .view-heading h1 { font-family: var(--native-font); font-size: 36px; font-weight: 750; line-height: 1.12; letter-spacing: -1.4px; }
.ios27-app .view-heading p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--text-soft); }
.ios27-app .view-heading-actions { gap: 8px; }
.ios27-app .icon-button, .ios27-app .heading-add { width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.ios27-app .view-heading-actions .icon-button { color: var(--primary); background: transparent; border: 1.5px solid color-mix(in srgb, var(--primary) 25%, transparent); box-shadow: none; font-size: 21px; }
.ios27-app .heading-add { font-size: 21px; box-shadow: none; }
.ios27-app .note-search { margin-bottom: 24px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--surface-raised); box-shadow: var(--native-shadow); }
.ios27-app .note-search input { min-height: 46px; font-size: 16px; }
.ios27-app .note-search:focus-within { box-shadow: 0 0 0 3px var(--primary-soft); }
.notes-menu-anchor { position: relative; z-index: 20; }
.notes-menu { position: absolute; top: 52px; right: 0; width: 230px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 40px rgba(0,0,0,.16); overflow: hidden; }
.notes-menu button { display: flex; align-items: center; width: 100%; gap: 12px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; font-size: 15px; }
.notes-menu button:last-child { border-bottom: 0; }
.notes-menu button:hover, .notes-menu button:focus-visible { background: var(--surface-soft); outline-offset: -3px; }
.notes-menu button > i { width: 20px; color: var(--primary); font-size: 18px; }

/* Compact, full-width previews. The full text and images remain in the note sheet. */
.ios27-app .priority-section { margin-bottom: 24px; }
.ios27-app .section-heading { gap: 8px; margin: 0 4px 10px; }
.ios27-app .section-heading h2 { font-size: 17px; font-weight: 650; text-transform: none; letter-spacing: -.25px; color: var(--text); }
.ios27-app .priority-symbol { width: 22px; height: 22px; background: none; font-size: 16px; border-radius: 0; }
.ios27-app .priority-normal .priority-symbol, .ios27-app .priority-low .priority-symbol { display: none; }
.ios27-app .section-count { margin-left: auto; background: none; font-size: 14px; font-weight: 400; color: var(--text-soft); padding: 0; min-width: 18px; }
.ios27-app .note-list { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 0; }
.ios27-app .priority-section .note-list:empty { min-height: 64px; border: 1px dashed var(--line); border-radius: 16px; align-items: center; justify-content: center; }
.ios27-app .priority-section .note-list:empty::before { content: 'Træk en opgave hertil'; color: var(--text-soft); font-size: 13px; pointer-events: none; }
.ios27-app .note-card { width: 100%; display: grid; grid-template-columns: 26px minmax(0,1fr) 28px; align-items: start; gap: 12px; padding: 18px 14px 18px 16px; margin: 0; border: 0; border-radius: 21px; background: var(--surface); box-shadow: var(--native-shadow); overflow: visible; cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.ios27-app .note-card::before, .ios27-app .note-card::after { display: none; }
.ios27-app .note-card:hover, .ios27-app .note-card:active { transform: none; }
.ios27-app .note-card { box-sizing: border-box; height: 140px; padding-top: 12px; padding-bottom: 12px; flex-shrink: 0; }
.ios27-app .note-card .note-content { display: grid; grid-template-rows: 25px 53px minmax(0,1fr); height: 100%; min-height: 0; }
.ios27-app .note-title-row { gap: 7px; margin: 0; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.ios27-app .note-card .note-title { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1; overflow: hidden; }
.ios27-app .note-title-row .priority-badge, .ios27-app .note-title-row .conflict-chip { flex-shrink: 0; }
.ios27-app .note-card .note-text { grid-row: 2; }
.ios27-app .note-card .note-meta { grid-row: 3; align-self: end; margin-top: 0; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.ios27-app .note-title { font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: -.35px; overflow-wrap: anywhere; }
.ios27-app .note-card:not(.completed):not(.archived) .priority-badge { display: none; }
.ios27-app .priority-badge { font-size: 10px; font-weight: 500; }
.ios27-app .note-card .note-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-height: 2.94em; margin: 6px 0 0; font-size: 16px; line-height: 1.47; color: var(--text-soft); overflow: hidden; }
.ios27-app .note-card .note-text ul, .ios27-app .note-card .note-text ol { margin-top: 0; margin-bottom: 0; }
.ios27-app .note-card .card-image-grid { display: none; }
.ios27-app .note-meta { margin-top: 10px; gap: 12px; }
.ios27-app .deadline-chip, .ios27-app .comment-count-chip, .ios27-app .image-count-chip { padding: 0; background: none; border: 0; border-radius: 0; font-size: 12px; font-weight: 500; }
.ios27-app .complete-toggle, .ios27-app .selection-toggle { position: relative; width: 26px; height: 26px; min-width: 26px; margin-top: 0; border-width: 1.7px; background: transparent; box-shadow: none; }
.ios27-app .complete-toggle::after { content: ''; position: absolute; inset: -9px; }
.ios27-app .note-card.completed .complete-toggle, .ios27-app .note-card.selected .selection-toggle { background: var(--primary); border-color: var(--primary); color: white; }
.ios27-app .note-card.selection-mode { grid-template-columns: 26px minmax(0,1fr); }
.ios27-app .note-card.selected { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--primary); }
.ios27-app .drag-handle, .ios27-app .archive-card-action { width: 28px; height: 32px; padding: 0; margin: -3px 0 0; border: 0; background: none; box-shadow: none; opacity: .5; font-size: 19px; }
.ios27-app #archiveView .note-card { opacity: 1; background: var(--surface); box-shadow: var(--native-shadow); }
.ios27-app #archiveView .note-title { text-decoration: none; }
.ios27-app .archive-card-chevron { display: grid; place-items: center; height: 26px; font-size: 14px; color: var(--text-soft); opacity: .55; }
.ios27-app #archiveView .note-card.selected { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--primary); }
.ios27-app #toggleArchiveSelect[aria-pressed="true"] { background: var(--primary-soft); }

/* Real Sortable placeholder: neighbors move around the lifted card, without tilt. */
.ios27-app .note-card.sortable-chosen:not(.sortable-ghost) { scale: 1.02; translate: 0 -4px; rotate: 0deg; box-shadow: 0 14px 32px rgba(0,0,0,.16); z-index: 5; }
.ios27-app .note-card.sortable-ghost { min-height: auto; background: color-mix(in srgb, var(--primary) 5%, var(--bg)); border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent); border-radius: 21px; box-shadow: inset 0 1px 5px rgba(0,0,0,.035); opacity: 1; scale: 1; translate: none; rotate: 0deg; animation: none; }
.ios27-app .note-card.sortable-ghost > * { visibility: hidden; opacity: 0; }
.ios27-app .note-card.sortable-ghost::after, .ios27-app .note-card.sortable-ghost::before { display: none; }
.ios27-app .note-card.sortable-fallback, .ios27-app .note-card.sortable-drag { border: 0; opacity: .98 !important; background: var(--surface); scale: 1.035; translate: 0 -8px; rotate: 0deg; box-shadow: 0 24px 50px rgba(0,0,0,.22), 0 6px 14px rgba(0,0,0,.1); animation: none; transition: none; pointer-events: none; }
.ios27-app .note-list.sortable-target { background: none; box-shadow: none; outline: 0; }
.ios27-app .note-card.sortable-landed { animation: native-note-land .3s cubic-bezier(.2,.8,.2,1); }
@keyframes native-note-land { from { scale: 1.025; translate: 0 -5px; box-shadow: 0 12px 26px rgba(0,0,0,.12); } to { scale: 1; translate: none; box-shadow: var(--native-shadow); } }

/* The home indicator gets one safe-area inset, not a second toolbar spacer. */
.ios27-app .app-tab-footer { position: relative; inset: auto; z-index: 50; padding: 0 16px max(8px, var(--safe-bottom)); background: var(--bg); }
.ios27-app .app-tab-footer ion-toolbar { --min-height: 66px; --padding-top: 0; --padding-bottom: 0; }
.ios27-app .ios-tabbar, .ios27-app .ios-tabbar.admin-tabs { box-sizing: border-box; position: relative; inset: auto; width: min(500px,100%); height: 66px; min-height: 66px; margin: 0 auto; padding: 5px; transform: none; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--surface) 83%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 85%, transparent), 0 4px 20px rgba(0,0,0,.09); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); overflow: hidden; }
.ios27-app .ios-tabbar::after { display: none; }
.ios27-app .ios-tabbar, .ios27-app .ios-tabbar.admin-tabs { display: flex; flex-wrap: nowrap; }
/* Ionic uses content-box inside this component: 54 + padding 10 + border 2 = 66. */
.ios27-app ion-tab-bar.ios-tabbar, .ios27-app ion-tab-bar.ios-tabbar.admin-tabs { box-sizing: content-box; height: 54px; min-height: 54px; }
.ios27-app ion-tab-button.tab-item { flex: 1 1 0; min-width: 0; max-width: none; height: 54px; --padding-top: 0; --padding-bottom: 0; box-shadow: none; }
.ios27-app ion-tab-button.tab-item::part(native) { min-height: 54px; padding: 4px 8px; background: transparent; box-shadow: none; }
.ios27-app ion-tab-button.tab-item.active::part(native) { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); box-shadow: none; color: var(--primary); }
.ios27-app ion-tab-button.tab-item > i { margin: 0 0 3px; font-size: 24px; line-height: 1; }
.ios27-app ion-tab-button.tab-item > span:last-child { font-size: 11px; line-height: 1; font-weight: 600; }
.ios27-app .bulk-action-footer { padding: 0 12px max(8px, var(--safe-bottom)); }
.ios27-app .bulk-action-bar { grid-template-columns: repeat(4,minmax(0,1fr)); height: 66px; width: min(540px,100%); padding: 5px; box-shadow: 0 4px 20px rgba(0,0,0,.09); }
.ios27-app .bulk-action-footer[data-view="archive"] .bulk-action-bar { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ios27-app .bulk-action-item { height: 54px; font-size: 10px; gap: 5px; }
.ios27-app .bulk-action-item i { font-size: 21px; }
.ios27-app .bulk-action-item:first-child { box-shadow: none; }
.ios27-app .app-update-prompt { bottom: calc(82px + max(8px, var(--safe-bottom))); }
.ios27-app .app-update-prompt { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border-radius: 19px; width: min(540px,calc(100vw - 24px)); }
.ios27-app .app-update-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 18px; }
.ios27-app .app-update-copy strong { font-size: 14px; }
.ios27-app .app-update-copy small { font-size: 11px; }
.ios27-app .app-update-actions { display: flex; gap: 6px; grid-column: auto; }
.ios27-app .app-update-actions .btn { min-height: 36px; padding: 6px 9px; font-size: 12px; }

/* Grouped settings and focused account sheets. */
.ios27-app .account-person { display: flex; align-items: center; gap: 16px; padding: 6px 2px 26px; }
.account-avatar { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); font-size: 29px; }
.account-person h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.account-person p { margin: 4px 0 2px; font-size: 14px; color: var(--text-soft); overflow-wrap: anywhere; }
.account-person small { color: var(--text-soft); font-size: 12px; }
.ios27-app .settings-grid { display: flex; flex-direction: column; gap: 24px; }
.settings-rows { overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: var(--native-shadow); }
.setting-row { display: flex; align-items: center; width: 100%; min-height: 59px; gap: 13px; padding: 10px 16px; border: 0; background: transparent; color: var(--text); text-align: left; }
.setting-row + .setting-row { border-top: 1px solid var(--line); }
.setting-row:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.setting-row-label { flex: 1; font-size: 16px; font-weight: 400; }
.setting-row > .bi-chevron-right { color: var(--text-soft); opacity: .55; font-size: 13px; }
.ios27-app .settings-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; font-size: 16px; }
.ios27-app .settings-card { padding: 18px; border: 0; border-radius: 20px; box-shadow: var(--native-shadow); }
.ios27-app .settings-card-heading { gap: 12px; margin-bottom: 16px; }
.ios27-app .settings-card-heading h2 { font-size: 16px; font-weight: 600; }
.ios27-app .settings-card-heading p { font-size: 12px; }
.ios27-app .theme-picker { display: flex; align-items: stretch; gap: 3px; padding: 4px; border: 0; border-radius: 12px; background: var(--surface-soft); box-shadow: none; }
.ios27-app .theme-choice { position: relative; display: flex; flex: 1; flex-direction: row; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; height: 44px; padding: 5px; border: 0; border-radius: 9px; background: transparent; box-shadow: none; color: var(--text-soft); }
.ios27-app .theme-choice.active { background: var(--surface-raised); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.ios27-app .theme-choice-check, .ios27-app .theme-choice-label small { display: none; }
.ios27-app .theme-choice-icon { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 20px; border-radius: 0; background: none; font-size: 16px; line-height: 1; }
.ios27-app .theme-choice.active .theme-choice-icon { background: none; box-shadow: none; color: var(--text); }
.ios27-app .theme-choice-label { flex: 0 1 auto; }
.ios27-app .theme-choice-label strong { font-size: 13px; line-height: 20px; font-weight: 600; }
.ios27-app .logout-button { width: 100%; margin-top: 24px; background: var(--surface); border: 0; border-radius: 16px; }
.ios27-app .settings-panel-card { padding: 0; border-radius: 0; box-shadow: none; background: transparent; }
.ios27-app .admin-section { margin-top: 24px; }
.ios27-app .section-title-row h2 { font-size: 18px; letter-spacing: -.3px; }
.ios27-app .admin-section .eyebrow { display: none; }
.ios27-app .admin-list-item { padding: 14px 0; }
.ios27-app .admin-list-item strong { font-size: 16px; }

/* Opaque, legible sheets; translucent glass is reserved for navigation. */
.ios27-app ion-modal.ios26-sheet { --width: min(680px,calc(100vw - 40px)); --height: min(850px,calc(100dvh - 48px)); --border-radius: 28px; --background: var(--surface); --backdrop-opacity: .28; }
.ios27-app ion-modal.ios26-sheet::part(content) { border-radius: 28px; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ios27-app ion-modal.ios26-sheet::part(backdrop) { backdrop-filter: none; -webkit-backdrop-filter: none; }
.ios27-app ion-modal .modal-content { background: var(--surface); box-sizing: border-box; height: 100%; max-height: 100%; }
.ios27-app ion-modal .modal-header, .ios27-app ion-modal .modal-body, .ios27-app ion-modal .modal-footer { box-sizing: border-box; }
.ios27-app ion-modal .modal-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.ios27-app ion-modal .modal-header { padding: 16px 20px; min-height: 72px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ios27-app ion-modal .modal-title { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.ios27-app ion-modal .modal-body { padding: 20px; background: var(--surface); }
.ios27-app ion-modal .modal-footer { background: var(--surface); padding: 12px 20px max(14px,var(--safe-bottom)); }
.ios27-app ion-modal .form-label, .ios27-app .stacked-form label { font-size: 14px; }
.ios27-app ion-modal .form-control, .ios27-app ion-modal .form-select { font-size: 16px; border-radius: 12px; }
.ios27-app .note-sheet-header { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; gap: 12px; text-align: center; }
.sheet-circle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--text); font-size: 18px; }
.sheet-save { background: var(--primary); color: white; }
.ios27-app #noteTitle { font-size: 22px; font-weight: 600; padding: 10px 12px; letter-spacing: -.4px; }
.ios27-app .rich-editor-shell { display: flex; flex-direction: column; border-radius: 15px; background: var(--surface-raised); }
.ios27-app :is(#noteEditor, #commentEditor).ql-container { order: 1; height: auto; min-height: 72px; border: 0; font: inherit; }
.ios27-app :is(#noteEditor, #commentEditor) .ql-editor { height: auto; min-height: 72px; overflow-y: visible; font-size: 16px; color: var(--text); }
.ios27-app :is(#noteEditor, #commentEditor) .ql-editor.ql-blank::before { left: 12px; right: 12px; font-style: normal; color: var(--text-soft); }
.ios27-app .note-body-editor { order: 1; font-size: 16px; min-height: 72px; padding: 12px; border-radius: 0 0 14px 14px; }
.ios27-app .rich-text-toolbar { order: 0; padding: 3px 5px; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 14px 14px 0 0; }
.ios27-app .rich-format-button { width: 34px; height: 36px; min-width: 34px; font-size: 18px; border-radius: 8px; }
.ios27-app .rich-toolbar-scroll { gap: 1px; }
.ios27-app .rich-color-palette { top: calc(100% + 1px); bottom: auto; }
.ios27-app .rich-editor-meta { font-size: 11px; }
.ios27-app .priority-picker { padding: 4px; gap: 3px; border-radius: 12px; background: var(--surface-soft); }
.ios27-app .priority-option > span { display: flex; align-items: center; justify-content: center; flex-direction: row; min-height: 44px; padding: 7px; gap: 6px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; }
.ios27-app .priority-option > span > i { font-size: 16px; }
.ios27-app .priority-option input:checked + span { border: 0; background: var(--surface-raised); color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.ios27-app .image-field { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: transparent; }
.ios27-app .image-field-heading { min-height: 32px; }
.ios27-app .image-picker-button { min-height: 36px; background: var(--primary-soft); border: 0; border-radius: 10px; font-size: 13px; }
.ios27-app .deadline-panel { padding: 14px; background: transparent; border: 1px solid var(--line); border-radius: 15px; }
.ios27-app .deadline-heading { margin-bottom: 10px; }
.ios27-app .deadline-panel .ios-switch-row { border-top: 1px solid var(--line); padding-top: 12px; }
.ios27-app .ios-switch-row strong { font-size: 15px; }
.ios27-app .ios-switch-row small { font-size: 12px; }
.ios27-app .comments-panel { margin: 0; padding: 0; background: transparent; border: 0; }
.ios27-app .note-section-divider { margin: 28px 0; border: 0; border-top: 1px solid var(--line); opacity: 1; }
.ios27-app .comments-heading .eyebrow { display: none; }
.ios27-app .comments-heading h3 { font-size: 16px; margin: 0; }
.ios27-app .comment-composer { padding: 12px; border-radius: 14px; background: transparent; border: 1px solid var(--line); }
.ios27-app .comment-composer-footer { flex-wrap: wrap; gap: 8px; }
.ios27-app .note-sheet-footer { min-height: 68px; }
.ios27-app ion-modal.settings-modal { --height: min(640px,calc(100dvh - 48px)); }

/* The login, activation and password-reset screens belong to the same app. */
.ios27-auth { background: var(--bg); }
.ios27-auth::before, .ios27-auth::after { display: none; }
.ios27-auth .auth-card { border: 0; border-radius: 26px; background: var(--surface); box-shadow: var(--native-shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ios27-auth .auth-card h1 { font-family: var(--native-font); font-size: 30px; letter-spacing: -.9px; }
.ios27-auth .form-control { font-size: 16px; border-radius: 12px; }

@media (hover: none) and (pointer: coarse) {
  .ios27-app .note-card:not(.completed):not(.selection-mode) { grid-template-columns: 26px minmax(0,1fr); }
  .ios27-app .note-card:not(.completed) .drag-handle { display: none; }
  .ios27-app .note-card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}
@media (max-width: 575.98px) {
  .ios27-app .app-update-copy small { display: none; }
  .ios27-app .app-header-inner { padding: 4px 20px; }
  .ios27-app .app-main { padding: 12px 16px 24px; }
  .ios27-app .view-heading { margin-bottom: 18px; }
  .ios27-app .view-heading h1 { font-size: 36px; }
  .ios27-app .note-card { padding: 12px 15px; gap: 11px; }
  .ios27-app .note-title { font-size: 18px; }
  .ios27-app ion-modal.ios26-sheet, .ios27-app ion-modal.settings-modal { --width: 100%; --height: calc(100dvh - var(--safe-top) - 12px); --border-radius: 28px 28px 0 0; align-items: flex-end; }
  .ios27-app ion-modal.ios26-sheet::part(content) { border-radius: 28px 28px 0 0; }
  .ios27-app ion-modal .modal-body { padding: 18px 16px; }
  .ios27-app ion-modal .modal-header { padding: 14px 16px; }
  .ios27-app ion-modal .modal-footer { padding-left: 16px; padding-right: 16px; }
  .ios27-app .theme-choice-label strong { font-size: 12px; }
  .ios27-app .theme-choice { gap: 5px; }
  .ios27-auth .auth-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ios27-app *, .ios27-app *::before, .ios27-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ios27-app .note-card.sortable-chosen, .ios27-app .note-card.sortable-fallback { scale: 1; translate: none; }
}
