:root{--bg:#f6f7f9;--surface:#ffffff;--surface-muted:#f1f3f5;--border:#e6e8eb;--border-strong:#d5d8dd;--text:#111318;--text-secondary:#5c636e;--text-muted:#747c88;--accent:#111318;--accent-foreground:#ffffff;--success:#137a4d;--success-surface:#f0f7f3;--danger:#a72e22;--danger-surface:#fbf2f1;--warning:#8a5a06;--warning-surface:#fbf6ee;color-scheme:light}[data-theme=dark]{--bg:#101215;--surface:#17191d;--surface-muted:#1e2127;--border:#262a30;--border-strong:#363b44;--text:#f2f3f5;--text-secondary:#a2a9b4;--text-muted:#8d95a1;--accent:#f2f3f5;--accent-foreground:#101215;--success:#64c89a;--success-surface:rgba(19,122,77,0.16);--danger:#ef8d84;--danger-surface:rgba(167,46,34,0.16);--warning:#e4b55f;--warning-surface:rgba(138,90,6,0.16);color-scheme:dark}*{box-sizing:border-box}body,html{width:100%;min-height:100%;margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;-webkit-font-smoothing:antialiased}button,input,select,textarea{color:inherit;font:inherit}button{-webkit-tap-highlight-color:transparent}a{color:inherit}.app-frame{position:relative;width:100%;min-height:100dvh;max-width:460px;margin:0 auto;background:var(--bg)}.app-header{position:sticky;z-index:20;top:0;display:flex;min-height:calc(72px + env(safe-area-inset-top));align-items:flex-end;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;border-bottom:1px solid color-mix(in srgb,var(--border) 80%,transparent);background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:saturate(140%) blur(12px)}.header-copy{min-width:0}.eyebrow{margin:0 0 2px;color:var(--text-muted);font-size:11px;font-weight:500;letter-spacing:.12em;line-height:14px;text-transform:uppercase}.screen-title{overflow:hidden;margin:0;font-size:24px;font-weight:600;letter-spacing:-.03em;line-height:30px;text-overflow:ellipsis;white-space:nowrap}.avatar-button,.icon-button{display:inline-flex;flex:0 0 auto;padding:0;border:0;background:transparent;border-radius:14px;cursor:pointer;transition:opacity .15s ease}.avatar-button:hover{opacity:.85}.avatar-button .admin-avatar,.avatar-button .initials{width:44px;height:44px;border-radius:14px}.app-content{padding:24px 16px calc(104px + env(safe-area-inset-bottom))}.section{margin-bottom:32px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-title{margin:0;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:24px}.muted,.section-caption{color:var(--text-secondary)}.caption{color:var(--text-muted);font-size:11px;line-height:15px}.hero{padding:8px 0 24px}.hero-title{max-width:360px;margin:0 0 8px;font-size:28px;font-weight:600;letter-spacing:-.04em;line-height:34px}.hero-copy{max-width:360px;margin:0;color:var(--text-secondary)}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat{padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.stat-value{display:block;margin-bottom:2px;font-size:24px;font-variant-numeric:tabular-nums;font-weight:600;letter-spacing:-.03em;line-height:30px}.stat-label{color:var(--text-secondary);font-size:12px;line-height:16px}.list{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.list-row{display:flex;width:100%;min-height:68px;align-items:center;gap:12px;padding:12px 16px;border:0;border-bottom:1px solid var(--border);background:transparent;text-align:left;cursor:pointer}.list-row:last-child{border-bottom:0}.list-row:active{background:var(--surface-muted)}.row-content{min-width:0;flex:1}.row-title{margin:0;font-size:14px;font-weight:500;line-height:20px}.row-subtitle,.row-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-subtitle{margin:2px 0 0;line-height:16px}.initials,.row-subtitle{color:var(--text-secondary);font-size:12px}.initials{display:inline-flex;width:40px;height:40px;flex:0 0 auto;align-items:center;justify-content:center;border-radius:14px;background:var(--surface-muted);font-weight:600;letter-spacing:.02em}.initials.large{width:64px;height:64px;border-radius:24px;font-size:18px}.plain-action{min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--text-secondary);font-size:12px;font-weight:500;cursor:pointer}.danger-button,.primary-button,.secondary-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:12px;font-weight:500;cursor:pointer}.primary-button{border:1px solid var(--accent);background:var(--accent);color:var(--accent-foreground)}.secondary-button{border:1px solid var(--border-strong);background:var(--surface);color:var(--text)}.danger-button{border:1px solid color-mix(in srgb,var(--danger) 30%,var(--border));background:var(--danger-surface);color:var(--danger)}.danger-button:disabled,.primary-button:disabled,.secondary-button:disabled{cursor:default;opacity:.48}.full-width{width:100%}.bottom-nav{position:fixed;z-index:30;right:max(0px,calc((100vw - 460px) / 2));bottom:0;left:max(0px,calc((100vw - 460px) / 2));display:grid;height:calc(68px + env(safe-area-inset-bottom));grid-template-columns:repeat(5,1fr);align-items:start;padding:6px 8px env(safe-area-inset-bottom);border-top:1px solid var(--border);background:color-mix(in srgb,var(--surface) 96%,transparent);backdrop-filter:saturate(140%) blur(14px)}.nav-item{display:flex;min-width:0;height:56px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0;border:0;background:transparent;color:var(--text-muted);cursor:pointer;font-size:10px;line-height:13px}.nav-item.active{color:var(--text)}.nav-add{width:52px;height:52px;margin:-12px auto 0;border:0;border-radius:9999px;background:var(--accent);box-shadow:0 2px 8px rgba(17,19,24,.1);color:var(--accent-foreground)}.search-box{position:relative;margin-bottom:16px}.search-box svg{position:absolute;top:50%;left:14px;color:var(--text-muted);pointer-events:none;transform:translateY(-50%)}.search-input{width:100%;height:48px;padding:0 44px;border:1px solid transparent;border-radius:16px;outline:none;background:var(--surface);color:var(--text)}.input:focus,.search-input:focus,.select:focus,.textarea:focus{border-color:var(--border-strong);box-shadow:0 0 0 3px color-mix(in srgb,var(--text) 10%,transparent)}.search-clear{position:absolute;top:2px;right:2px;width:44px;height:44px;border:0;background:transparent;color:var(--text-muted)}.empty-state{min-height:220px;flex-direction:column;padding:32px;text-align:center}.empty-icon,.empty-state{display:flex;align-items:center;justify-content:center}.empty-icon{width:44px;height:44px;margin-bottom:12px;border-radius:16px;background:var(--surface-muted);color:var(--text-secondary)}.empty-title{margin:0 0 4px;font-weight:500}.empty-copy{max-width:280px;margin:0;color:var(--text-secondary);font-size:12px;line-height:17px}.alphabet{display:flex;overflow-x:auto;gap:4px;margin:0 -16px 12px;padding:0 16px 4px;scrollbar-width:none}.alphabet::-webkit-scrollbar{display:none}.alphabet button{min-width:36px;height:36px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text-secondary);font-size:12px}.alphabet button.active{border-color:var(--accent);background:var(--accent);color:var(--accent-foreground)}.settings-group{margin-bottom:24px}.settings-row{display:flex;min-height:58px;padding:8px 16px}.settings-icon{display:inline-flex;width:32px;height:32px;flex:0 0 auto;align-items:center;justify-content:center;border-radius:10px;background:var(--surface-muted);color:var(--text-secondary)}.sheet-overlay{position:fixed;z-index:50;inset:0;display:flex;align-items:flex-end;justify-content:center;background:rgba(10,12,16,.42);animation:overlay-in .2s ease both}.sheet{display:flex;width:min(100%,460px);max-height:92dvh;flex-direction:column;border:1px solid var(--border);border-bottom:0;border-radius:24px 24px 0 0;background:var(--surface);box-shadow:0 -8px 32px rgba(17,19,24,.1);animation:sheet-in .28s cubic-bezier(.2,.8,.2,1) both}.sheet-handle{width:36px;height:4px;flex:0 0 auto;margin:8px auto 4px;border-radius:9999px;background:var(--border-strong)}.sheet-header{display:flex;min-height:60px;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;border-bottom:1px solid var(--border)}.sheet-title{overflow:hidden;margin:0;font-size:18px;font-weight:600;letter-spacing:-.02em;line-height:24px;text-overflow:ellipsis;white-space:nowrap}.sheet-close{width:44px;height:44px;flex:0 0 auto;border:0;border-radius:9999px;color:var(--text-secondary)}.sheet-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 16px 32px}.sheet-footer{display:flex;flex:0 0 auto;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface)}.profile-head{display:flex;align-items:center;gap:16px;margin-bottom:24px}.profile-name{margin:0 0 2px;font-size:20px;font-weight:600;letter-spacing:-.02em;line-height:26px}.detail-section{margin-top:28px}.detail-section:first-child{margin-top:0}.detail-heading{margin:0 0 8px;color:var(--text-muted);font-size:11px;font-weight:500;letter-spacing:.12em;line-height:14px;text-transform:uppercase}.field-row{display:flex;min-height:58px;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.field-row:last-child{border-bottom:0}.field-icon{display:inline-flex;width:32px;height:32px;flex:0 0 auto;align-items:center;justify-content:center;border-radius:10px;background:var(--surface-muted);color:var(--text-secondary)}.field-label{margin:0 0 2px;color:var(--text-muted);font-size:11px;line-height:15px}.field-value{overflow-wrap:anywhere;margin:0;font-size:14px;font-variant-numeric:tabular-nums;font-weight:500;line-height:20px}.history-item{padding:14px 0;border-bottom:1px solid var(--border)}.history-item:last-child{border-bottom:0}.history-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;color:var(--text-muted);font-size:11px;line-height:15px}.history-title{margin:0 0 4px;font-weight:500}.history-copy{margin:0;color:var(--text-secondary);white-space:pre-wrap}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.gallery-item{position:relative;overflow:hidden;aspect-ratio:1;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted)}.gallery-item img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.document-item{grid-column:1/-1;display:flex;min-height:52px;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:12px}.form-grid{display:grid;gap:16px}.field-group{display:grid;gap:6px}.label{color:var(--text-secondary);font-size:12px;font-weight:500;line-height:16px}.input,.select,.textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:12px;outline:none;background:var(--surface-muted)}.textarea{min-height:104px;resize:vertical}.form-error{margin:0;color:var(--danger);font-size:12px;line-height:16px}.field-editor{border:1px solid var(--border);border-radius:12px}.field-editor-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.field-editor-head .select{flex:1}.remove-button{background:var(--danger-surface)}.notice{padding:12px;border-radius:12px;background:var(--warning-surface);color:var(--warning);font-size:12px;line-height:17px}.success-notice{background:var(--success-surface);color:var(--success)}.audit-item{padding:14px 0;border-bottom:1px solid var(--border)}.audit-item:last-child{border-bottom:0}.audit-head{margin-bottom:4px}.audit-title{font-weight:500}.diff-new,.diff-old{padding:8px 10px;border-radius:8px;font-size:12px;line-height:17px}.skeleton{position:relative;overflow:hidden;background:var(--surface-muted)}.skeleton:after{position:absolute;inset:0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--surface) 72%,transparent),transparent);content:"";transform:translateX(-100%);animation:shimmer 1.4s ease infinite}.skeleton-row{height:68px;border-bottom:1px solid var(--border)}.launch-screen{display:flex;min-height:100dvh;align-items:center;justify-content:center;padding:32px 20px;background:var(--bg)}.launch-card{width:min(100%,400px);padding:32px 24px;border:1px solid var(--border);border-radius:24px;background:var(--surface);text-align:center}.launch-mark{display:flex;width:56px;height:56px;align-items:center;justify-content:center;margin:0 auto 20px;border-radius:20px;background:var(--surface-muted);color:var(--text-secondary)}.launch-title{margin:0 0 8px;font-size:22px;font-weight:600;letter-spacing:-.03em;line-height:28px}.launch-copy{margin:0;color:var(--text-secondary)}.telegram-id{margin-top:20px;padding:12px;border-radius:12px;background:var(--surface-muted);font-variant-numeric:tabular-nums;font-weight:500}.toast{position:fixed;z-index:80;right:max(16px,calc((100vw - 460px) / 2 + 16px));bottom:calc(80px + env(safe-area-inset-bottom));left:max(16px,calc((100vw - 460px) / 2 + 16px));padding:12px 14px;border-radius:12px;background:var(--accent);color:var(--accent-foreground);font-size:12px;animation:toast-in .18s ease both}@keyframes sheet-in{0%{transform:translateY(24px);opacity:0}}@keyframes overlay-in{0%{opacity:0}}@keyframes shimmer{to{transform:translateX(100%)}}@keyframes toast-in{0%{transform:translateY(8px);opacity:0}}@media (min-width:500px){body{background:#e9ebee}[data-theme=dark] body{background:#0b0c0f}.app-frame{border-right:1px solid var(--border);border-left:1px solid var(--border)}}@media (max-width:340px){.app-content,.app-header{padding-right:12px;padding-left:12px}.nav-item{font-size:9px}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.compact{margin:0}.form-section-heading{margin-top:8px;margin-bottom:0}.input-spaced{margin-bottom:8px}.notice{display:flex;align-items:flex-start;gap:8px}.admin-list{overflow:hidden;border:1px solid var(--border);background:var(--surface)}.admin-row{display:flex;min-height:80px;gap:12px;padding:12px}.admin-row:last-child{border-bottom:0}.admin-actions{display:flex;flex:0 0 auto;align-items:center;gap:4px}.admin-role{width:104px;padding-right:6px;padding-left:8px;font-size:11px}.token-skeleton{height:84px;border-radius:16px}.token-meta{margin-top:6px}@media (max-width:380px){.admin-row{flex-wrap:wrap}.admin-actions{width:100%;justify-content:flex-end}.admin-role{width:132px}}.initials{overflow:hidden}.file-thumb img,.initials img,.photo-editor-button img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.hero{margin-bottom:22px}.hero-title{max-width:100%;overflow-wrap:anywhere}.home-actions{margin-bottom:30px}.search-launch{display:grid;width:100%;min-height:84px;grid-template-columns:44px minmax(0,1fr) 20px;align-items:center;gap:14px;padding:16px;border:1px solid var(--border);border-radius:18px;background:var(--surface);color:var(--text);text-align:left;box-shadow:0 1px 0 color-mix(in srgb,var(--text) 4%,transparent)}.search-launch:active{background:var(--surface-muted)}.search-launch-icon{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:14px;background:var(--accent);color:var(--accent-foreground)}.search-launch>span:nth-child(2){display:grid;min-width:0;gap:3px}.search-launch strong{font-size:15px;line-height:20px}.search-launch small{color:var(--text-secondary);font-size:12px}.person-row{min-height:76px;align-items:flex-start;padding-top:14px;padding-bottom:14px}.row-subtitle-wrap,.settings-subtitle{display:-webkit-box;overflow:hidden;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.row-chevron{color:var(--text-muted)}.history-count,.row-chevron{flex:0 0 auto;align-self:center}.history-count{display:inline-flex;min-width:24px;height:24px;align-items:center;justify-content:center;padding:0 7px;border-radius:999px;background:var(--surface-muted);color:var(--text-secondary);font-size:11px;font-variant-numeric:tabular-nums}.search-panel{min-height:52dvh}.search-results{display:grid;overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.search-result{display:grid;width:100%;min-height:84px;grid-template-columns:40px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:13px 14px;border:0;border-bottom:1px solid var(--border);background:transparent;color:inherit;text-align:left}.search-result:last-child{border-bottom:0}.search-result:active{background:var(--surface-muted)}.match-label{display:block;margin-top:4px;color:var(--text-muted);font-size:10px;font-weight:600;letter-spacing:.08em;line-height:14px;text-transform:uppercase}.match-value{display:-webkit-box;overflow:hidden;margin-top:1px;color:var(--text-secondary);font-size:12px;line-height:16px;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.sheet-overlay{padding-top:env(safe-area-inset-top);overflow:hidden}.sheet{max-height:min(92dvh,calc(100dvh - env(safe-area-inset-top)))}.sheet-header{align-items:flex-start;padding-top:10px;padding-bottom:10px}.sheet-heading{min-width:0;flex:1;padding-top:3px}.sheet-subtitle{display:-webkit-box;overflow:hidden;margin:2px 0 0;color:var(--text-secondary);font-size:12px;line-height:16px;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.sheet-back{display:inline-flex;width:44px;height:44px;flex:0 0 auto;align-items:center;justify-content:center;border:0;border-radius:999px;background:var(--surface-muted);color:var(--text-secondary)}.profile-head-card{align-items:flex-start}.profile-photo-button{position:relative;display:inline-flex;flex:0 0 auto;padding:0;border:0;border-radius:24px;background:transparent}.profile-photo-button:disabled{cursor:default}.photo-edit-mark{position:absolute;right:-3px;bottom:-3px;display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border:3px solid var(--surface);border-radius:999px;background:var(--accent);color:var(--accent-foreground)}.card-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:8px;margin:0 0 26px}.card-actions button{display:flex;min-width:0;min-height:58px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 4px;border:1px solid var(--border);border-radius:13px;background:var(--surface);color:var(--text-secondary);font-size:10px}.card-actions button:active{background:var(--surface-muted)}.history-list{display:grid;gap:12px}.history-card{display:block;width:100%;padding:15px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:inherit;text-align:left}button.history-card:active{background:var(--surface-muted)}.history-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.history-card-head>div{min-width:0}.history-card-head h4{margin:2px 0 0;font-size:15px;font-weight:600;line-height:20px;overflow-wrap:anywhere}.history-card-head>strong{flex:0 0 auto;font-size:14px;font-variant-numeric:tabular-nums}.history-company{display:block;font-weight:600;letter-spacing:.06em;line-height:15px;text-transform:uppercase;overflow-wrap:anywhere}.history-company,.history-meta-line{color:var(--text-muted);font-size:11px}.history-meta-line{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:9px}.history-card>p{margin:10px 0 0;color:var(--text-secondary);line-height:19px;white-space:pre-wrap;overflow-wrap:anywhere}.history-attachments,.history-fields{display:grid;gap:6px;margin-top:10px}.history-attachments button,.history-attachments span,.history-fields span{display:flex;min-width:0;align-items:flex-start;gap:7px;color:var(--text-secondary);font-size:12px;line-height:17px;overflow-wrap:anywhere}.history-author{display:flex;justify-content:space-between;gap:12px;margin-top:13px;padding-top:10px;border-top:1px solid var(--border);color:var(--text-muted);font-size:10px}.field-list{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.field-list .field-row{padding-right:13px;padding-left:13px}.field-value{white-space:pre-wrap}.upload-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.upload-actions .secondary-button{min-width:0;padding-right:8px;padding-left:8px}.file-list{display:grid;gap:8px}.file-card{display:grid;width:100%;min-height:62px;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:11px;padding:9px 11px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:inherit;text-align:left}.file-thumb{display:inline-flex;width:42px;height:42px;border-radius:10px;color:var(--text-secondary)}.file-thumb,.file-viewer{overflow:hidden;align-items:center;justify-content:center;background:var(--surface-muted)}.file-viewer{display:flex;min-height:48dvh;border:1px solid var(--border);border-radius:16px}.file-viewer>img{display:block;width:100%;max-height:66dvh;-o-object-fit:contain;object-fit:contain}.file-viewer iframe{width:100%;height:66dvh;border:0;background:#fff}.file-viewer-skeleton{width:100%;height:48dvh}.file-generic{display:grid;max-width:280px;justify-items:center;gap:8px;padding:24px;text-align:center;overflow-wrap:anywhere}.file-generic p{margin:0;font-weight:600}.form-section{display:grid;gap:12px;padding:16px;border:1px solid var(--border);border-radius:18px;background:color-mix(in srgb,var(--surface) 86%,var(--surface-muted))}.form-section .detail-heading{margin-bottom:0}.photo-editor{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:14px;padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.photo-editor-button{position:relative;display:inline-flex;width:72px;height:72px;overflow:visible;align-items:center;justify-content:center;padding:0;border:0;border-radius:24px;background:transparent}.photo-editor-button>img{overflow:hidden;border-radius:24px}.photo-editor-button>span:not(.initials){position:absolute;right:-2px;bottom:-2px;display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border:3px solid var(--surface);border-radius:999px;background:var(--accent);color:var(--accent-foreground)}.photo-editor strong{display:block;font-size:14px}.photo-editor p{margin:3px 0 7px;color:var(--text-secondary);font-size:11px;line-height:15px}.inline-actions{display:flex;flex-wrap:wrap;gap:3px 12px}.inline-actions button{min-height:30px;padding:0;border:0;background:transparent;color:var(--text-secondary);font-size:11px;font-weight:600}.field-editors{display:grid;gap:10px}.field-editor{padding:12px;border-radius:14px;background:var(--surface)}.remove-button{display:inline-flex;width:44px;height:44px;flex:0 0 auto;align-items:center;justify-content:center;border:0;border-radius:12px;background:transparent;color:var(--danger)}.companion-field{display:grid;gap:6px;margin-top:9px;padding-top:10px;border-top:1px solid var(--border)}.field-help{color:var(--text-muted);font-size:11px;line-height:15px}.queued-files{display:grid;gap:7px;margin-top:10px}.queued-files>div{display:grid;min-height:54px;grid-template-columns:18px minmax(0,1fr) 40px;align-items:center;gap:10px;padding:8px 8px 8px 12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.queued-files span{min-width:0;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.queued-files small{display:block;color:var(--text-muted)}.queued-files button{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;border:0;border-radius:10px;background:transparent;color:var(--text-muted)}.date-trigger{display:grid;width:100%;min-height:48px;grid-template-columns:20px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:10px 12px;border:1px solid transparent;border-radius:12px;background:var(--surface-muted);color:var(--text);text-align:left}.date-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-overlay{position:fixed;z-index:90;inset:0;display:flex;align-items:flex-end;justify-content:center;padding-top:env(safe-area-inset-top);background:transparent;animation:overlay-in .2s ease both}.calendar-sheet{width:min(100%,460px);padding:0 16px calc(16px + env(safe-area-inset-bottom));border:1px solid var(--border);border-bottom:0;border-radius:24px 24px 0 0;background:var(--surface);box-shadow:0 -12px 38px rgba(0,0,0,.18);animation:sheet-in .28s cubic-bezier(.2,.8,.2,1) both}.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.calendar-head h3{margin:2px 0 0;font-size:20px}.date-selects{display:grid;grid-template-columns:1fr 1.6fr 1.25fr;gap:7px;margin-bottom:10px}.date-selects input,.date-selects select{width:100%;height:42px;min-width:0;padding:0 8px;border:1px solid var(--border);border-radius:11px;outline:none;background:var(--surface-muted);color:var(--text)}.calendar-nav{display:flex;justify-content:flex-end;gap:4px;margin-bottom:6px}.calendar-nav button{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;border:0;border-radius:10px;background:var(--surface-muted);color:var(--text-secondary)}.calendar-grid,.calendar-week{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.calendar-week{margin-bottom:3px}.calendar-week span{padding:6px 0;color:var(--text-muted);font-size:10px;text-align:center}.calendar-grid button,.calendar-grid>span{aspect-ratio:1}.calendar-grid button{min-width:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--text);font-size:12px}.calendar-grid button.selected{background:var(--accent);color:var(--accent-foreground)}.calendar-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.service-info dl{display:grid;gap:8px;margin:0}.service-info dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px}.service-info dt{color:var(--text-muted);font-size:11px}.service-info dd{margin:0;font-size:12px;overflow-wrap:anywhere}.danger-zone{margin-top:18px;padding-top:12px;border-top:1px solid var(--border)}.danger-zone summary{min-height:44px;color:var(--text-muted);font-size:12px;cursor:pointer}.settings-profile{padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.settings-group{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.settings-row{display:grid;width:100%;min-height:72px;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:11px 13px;border:0;border-bottom:1px solid var(--border);background:transparent;color:inherit;text-align:left}.settings-row:last-child{border-bottom:0}.settings-subtitle{margin-top:3px;color:var(--text-secondary);font-size:11px;line-height:15px}.readonly-card{display:grid;gap:3px;padding:13px;border:1px solid var(--border);border-radius:13px;background:var(--surface-muted)}.readonly-card span{color:var(--text-muted);font-size:11px}.role-choice-list{display:grid;gap:8px;min-width:0;margin:0;padding:0;border:0}.role-choice-list legend{margin-bottom:6px}.role-choice{position:relative;display:grid;min-height:64px;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--border);border-radius:13px;background:var(--surface)}.role-choice.selected{border-color:var(--text-secondary);box-shadow:inset 0 0 0 1px var(--text-secondary)}.role-choice input{accent-color:var(--accent)}.role-choice span{display:grid;gap:2px}.role-choice small{color:var(--text-secondary);font-size:11px;line-height:15px}.access-toggle{display:flex;width:100%;min-height:72px;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:inherit;text-align:left}.access-toggle>span:first-child{display:grid;gap:3px}.access-toggle small{color:var(--text-secondary);font-size:11px;line-height:15px}.switch{position:relative;width:44px;height:26px;flex:0 0 auto;border-radius:999px;background:var(--border-strong)}.switch i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .18s ease}.access-toggle.is-active .switch{background:var(--success)}.access-toggle.is-active .switch i{transform:translateX(18px)}.add-team-button{margin-bottom:22px}.admin-list{border-radius:16px}.admin-row{width:100%;min-height:82px;border:0;border-bottom:1px solid var(--border);background:transparent;color:inherit;text-align:left}.admin-name-line{justify-content:space-between;gap:8px}.status-pill{display:inline-flex;flex:0 0 auto;align-items:center;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.status-pill.active{background:var(--success-surface);color:var(--success)}.status-pill.disabled{background:var(--danger-surface);color:var(--danger)}.row-meta{display:block;margin-top:3px;color:var(--text-muted);font-size:10px;line-height:14px}.audit-list{display:grid;gap:10px}.audit-item{padding:14px;border:1px solid var(--border);border-radius:15px;background:var(--surface)}.audit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.audit-title{margin:0;font-size:14px;line-height:19px}.audit-head time{flex:0 0 auto;color:var(--text-muted);font-size:10px;line-height:15px}.audit-context{display:flex;flex-wrap:wrap;gap:3px 8px;margin:7px 0 0;color:var(--text-secondary);font-size:11px}.audit-context span:before{margin-right:8px;color:var(--border-strong);content:"·"}.audit-field{margin:8px 0 0;color:var(--text-muted);font-size:11px}.diff{display:grid;gap:6px;margin-top:10px}.diff-new,.diff-old{display:grid;gap:2px;padding:9px 10px;border-radius:10px;font-size:11px;line-height:16px;overflow-wrap:anywhere}.diff-old{background:var(--danger-surface);color:var(--danger)}.diff-new{background:var(--success-surface);color:var(--success)}.diff span{font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.token-current{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;margin-bottom:16px;padding:14px;border:1px solid var(--border);border-radius:15px;background:var(--surface)}.token-current-icon{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:13px;background:var(--surface-muted);color:var(--text-secondary)}.token-current>div:last-child{display:grid;gap:2px}.token-current small,.token-current span{color:var(--text-muted);font-size:10px}.token-current strong{overflow-wrap:anywhere;font-size:14px;font-variant-numeric:tabular-nums}.photo-history-list{display:grid;gap:9px}.photo-history-list>article{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;padding:11px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.photo-history-list .initials{width:58px;height:58px;border-radius:16px}.photo-history-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 8px}.photo-history-copy{margin-top:0;margin-bottom:16px}@media (max-width:360px){.app-content,.sheet-footer,.sheet-header,.sheet-scroll{padding-right:12px;padding-left:12px}.card-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.upload-actions{grid-template-columns:1fr}.photo-editor{grid-template-columns:64px minmax(0,1fr);padding:12px}.photo-editor-button{width:62px;height:62px}.history-card-head{display:grid}.history-author{display:grid;gap:2px}.date-selects{grid-template-columns:.8fr 1.5fr 1fr}.admin-name-line{align-items:flex-start}.status-pill{margin-top:1px}}.date-selects{grid-template-columns:repeat(2,minmax(0,1fr))}.date-selects label{display:grid;gap:4px}.date-selects label>span{color:var(--text-muted);font-size:10px}.calendar-months{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:5px;margin-bottom:8px}.calendar-months button{min-width:0;min-height:34px;padding:5px 3px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text-secondary);font-size:10px;text-transform:uppercase}.calendar-months button.selected{border-color:var(--accent);background:var(--accent);color:var(--accent-foreground)}@media (max-width:360px){.date-selects{grid-template-columns:repeat(2,minmax(0,1fr))}}.history-card-main{outline:none}.history-card-main[role=button]{cursor:pointer}.history-card-main[role=button]:focus-visible{border-radius:10px;box-shadow:0 0 0 3px color-mix(in srgb,var(--text) 12%,transparent)}.history-card-main>p{margin:10px 0 0;color:var(--text-secondary);line-height:19px;white-space:pre-wrap;overflow-wrap:anywhere}.history-attachments{padding-top:10px;border-top:1px solid var(--border)}.history-attachments button{width:100%;min-height:38px;padding:7px 9px;border:0;border-radius:9px;background:var(--surface-muted);color:var(--text-secondary);text-align:left}.history-attachments button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:15px}.field-editor-head .select{min-width:0}.field-add-bottom{margin-top:10px}.person-row,.search-result{min-height:64px;align-items:center;padding-top:10px;padding-bottom:10px}.person-row .row-title,.search-result .row-title{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:19px}.cards-screen{padding-right:18px}.alphabet-rail{position:fixed;z-index:18;top:166px;right:max(3px,calc((100vw - 430px) / 2 + 3px));bottom:calc(88px + env(safe-area-inset-bottom));display:flex;width:25px;flex-direction:column;align-items:center;justify-content:center;overflow-y:auto;padding:4px 2px;scrollbar-width:none}.alphabet-rail::-webkit-scrollbar{display:none}.alphabet-rail button{width:23px;min-height:20px;flex:0 0 auto;padding:0;border:0;border-radius:8px;background:transparent;color:var(--text-muted);font-size:10px;font-weight:700;line-height:20px}.alphabet-rail button:first-child{font-size:8px}.alphabet-rail button.active{background:var(--accent);color:var(--accent-foreground)}.detail-section,.file-card,.file-list,.form-section,.history-attachments,.history-card,.sheet,.sheet-scroll{min-width:0;max-width:100%}.sheet-scroll{overflow-x:hidden}.file-card .row-content,.file-card .row-title{min-width:0}.file-card .row-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-attachments .file-card{min-height:60px;padding:8px 10px;border:1px solid var(--border);background:var(--surface-muted)}.history-attachments .file-thumb{width:42px;height:42px}.timeline-section+.timeline-section{margin-top:24px;padding-top:22px;border-top:1px solid var(--border)}.audit-value{margin:8px 0 0;padding:9px 10px;border-radius:10px;background:var(--surface-muted);color:var(--text-secondary);font-size:12px;overflow-wrap:anywhere}.archive-notice{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:start;gap:10px;margin-bottom:18px}.archive-list{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.archive-row{display:grid;min-height:74px;grid-template-columns:44px minmax(0,1fr) 38px;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border)}.archive-row:last-child{border-bottom:0}.access-state-icon,.restore-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent}.restore-button{width:38px;height:38px;border-radius:12px;color:var(--success)}.restore-button:disabled{opacity:.45}.admin-row{min-height:76px;align-items:center}.admin-name-line{display:flex;min-width:0;align-items:center;gap:7px}.admin-name-line .row-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.access-state-icon{width:26px;height:26px;flex:0 0 auto;border-radius:9px}.access-state-icon svg{width:15px;height:15px}.access-state-icon.active{background:var(--success-surface);color:var(--success)}.access-state-icon.disabled{background:var(--danger-surface);color:var(--danger)}.date-wheels{position:relative;display:grid;grid-template-columns:.8fr 1.5fr 1fr;gap:8px;margin:8px 0 2px}.date-wheels:after,.date-wheels:before{position:absolute;z-index:2;right:0;left:0;height:54px;pointer-events:none;content:""}.date-wheels:before{top:20px;background:linear-gradient(var(--surface),transparent)}.date-wheels:after{bottom:0;background:linear-gradient(transparent,var(--surface))}.wheel-field{display:grid;min-width:0;gap:5px}.wheel-field>span{color:var(--text-muted);font-size:10px;text-align:center}.date-wheel{height:176px;overflow-y:auto;padding:68px 0;scroll-behavior:smooth;scroll-snap-type:y mandatory;scrollbar-width:none}.date-wheel::-webkit-scrollbar{display:none}.date-wheel button{display:block;width:100%;height:40px;overflow:hidden;padding:0 6px;border:0;border-radius:11px;background:transparent;color:var(--text-muted);font-size:13px;text-overflow:ellipsis;white-space:nowrap;scroll-snap-align:center}.date-wheel button[aria-selected=true]{background:var(--surface-muted);color:var(--text);font-weight:700}.calendar-sheet{max-height:min(560px,86dvh)}@media (max-width:360px){.cards-screen{padding-right:15px}.date-wheels{grid-template-columns:.75fr 1.45fr .95fr;gap:5px}.date-wheel button{font-size:12px}}.file-card{overflow:hidden;padding-right:14px}.file-card-content{display:grid;min-width:0;gap:4px;overflow:hidden}.file-card-content .row-title{display:block;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta{display:flex;min-width:0;flex-wrap:wrap;gap:2px 10px;color:var(--text-muted);font-size:10px;line-height:14px}.file-meta span{position:relative;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta span+span:before{position:absolute;left:-7px;color:var(--border-strong);content:"·"}.file-card>svg:last-child{flex:0 0 auto;justify-self:end}.photo-version-content{align-self:stretch}.photo-restore-button{display:inline-flex;width:-moz-fit-content;width:fit-content;min-height:34px;align-items:center;justify-content:center;gap:7px;margin-top:9px;padding:7px 11px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted);color:var(--text-secondary);font-size:11px;font-weight:600;line-height:16px}.photo-restore-button span,.photo-restore-button svg{flex:0 0 auto}.photo-restore-button:disabled{opacity:.45}.audit-group-count{margin:7px 0 0;color:var(--text-muted);font-size:11px}.audit-group-items{display:grid}.audit-group-item+.audit-group-item{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.audit-context-label{margin:7px 0 0;color:var(--text-secondary);font-size:11px;line-height:16px}.audit-detail{display:grid;min-width:0;gap:4px;margin-top:10px;padding:9px 10px;border-radius:10px;background:var(--surface-muted)}.audit-detail span{color:var(--text-muted);font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.audit-detail strong{min-width:0;overflow:hidden;color:var(--text);font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.audit-file-preview{margin-top:10px}.audit-file-preview .file-card{background:var(--surface-muted)}.diff-new,.diff-old{word-break:break-word}.archive-section+.archive-section{margin-top:24px;padding-top:22px;border-top:1px solid var(--border)}.archive-file-list{display:grid;gap:10px}.archive-file-row{min-width:0;padding:10px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.archive-file-row .file-card{border:0;background:var(--surface-muted)}.archive-file-footer{display:grid;min-width:0;gap:3px;padding:9px 2px 0;color:var(--text-muted);font-size:10px;line-height:15px}.archive-file-footer>span{overflow-wrap:anywhere}.archive-file-footer .photo-restore-button{margin-top:7px}.date-entry{display:grid;grid-template-columns:64px 74px minmax(86px,1fr) 48px;align-items:end;gap:7px}.date-entry label{display:grid;min-width:0;gap:4px}.date-entry label>span{color:var(--text-muted);font-size:10px}.date-entry input{width:100%;height:48px;min-width:0;padding:0 10px;border:1px solid transparent;border-radius:12px;outline:none;background:var(--surface-muted);color:var(--text);font:inherit;font-variant-numeric:tabular-nums;text-align:center}.date-entry input:focus{border-color:color-mix(in srgb,var(--text) 28%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--text) 8%,transparent)}.date-calendar-button{display:inline-flex;width:48px;height:48px;align-items:center;justify-content:center;padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text-secondary)}.date-wheels{overflow:hidden;padding:0 5px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.date-wheels:before{border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent)}.date-wheels:after{border-top:1px solid color-mix(in srgb,var(--border) 70%,transparent)}.photo-action-list{display:grid;overflow:hidden;border:1px solid var(--border);border-radius:17px;background:var(--surface)}.photo-action-list>button{display:grid;width:100%;min-height:68px;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:11px;padding:10px 13px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);text-align:left}.photo-action-list>button:last-child{border-bottom:0}.photo-action-list>button:active{background:var(--surface-muted)}.photo-action-list>button:disabled{opacity:.55}.photo-action-list>button.danger{color:var(--danger)}.photo-action-icon{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:13px;background:var(--surface-muted)}.photo-action-list>button>span:last-child{display:grid;min-width:0;gap:3px}.photo-action-list strong{font-size:14px;font-weight:650}.photo-action-list small{color:var(--text-muted);font-size:11px;line-height:15px}.field-type-trigger{display:grid;min-width:0;min-height:46px;flex:1;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:8px;padding:9px 12px 9px 14px;border:1px solid transparent;border-radius:12px;background:var(--surface-muted);color:var(--text);text-align:left}.field-type-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.field-type-trigger:disabled{opacity:.78}.field-type-sheet{max-height:min(670px,84dvh)}.field-type-options{display:grid;max-height:min(520px,68dvh);overflow-y:auto;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.field-type-options>button{display:grid;min-height:54px;grid-template-columns:36px minmax(0,1fr) 20px;align-items:center;gap:9px;padding:7px 12px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);text-align:left}.field-type-options>button:last-child{border-bottom:0}.field-type-options>button.selected{background:var(--surface-muted)}.history-form-files{margin:10px 0 14px}@media (max-width:350px){.date-entry{grid-template-columns:58px 66px minmax(78px,1fr) 44px;gap:5px}.date-calendar-button{width:44px}}.date-wheel button{opacity:.28;transition:opacity .16s ease,background-color .16s ease,color .16s ease}.date-wheel button[aria-selected=true]{opacity:1}.date-wheel button[data-distance="1"]{opacity:.62}.date-wheel button[data-distance="2"]{opacity:.36}.date-wheel button[data-distance="3"]{opacity:.2}.cards-heading-actions{flex-wrap:wrap;justify-content:flex-end}.cards-heading-actions button{display:inline-flex;align-items:center;gap:6px}.name-suggestions{display:flex;flex-wrap:wrap;gap:6px}.name-suggestions button{padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:var(--surface-muted);color:var(--text-secondary);font-size:12px}.duplicate-warning{display:grid;gap:7px;padding:13px;border:1px solid color-mix(in srgb,#d6a94b 48%,var(--border));border-radius:14px;background:color-mix(in srgb,#d6a94b 10%,var(--surface))}.duplicate-warning>p{margin:0;color:var(--text-secondary);font-size:12px;line-height:17px}.duplicate-warning>button{display:flex;width:100%;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);text-align:left}.duplicate-warning>button>span:nth-child(2){flex:1;font-weight:650}.auto-textarea{min-height:48px;field-sizing:content;resize:none;overflow:hidden}.access-request-list{display:grid;gap:10px}.access-request-card{display:grid;gap:12px;padding:13px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.access-request-head{display:flex;align-items:flex-start;gap:10px}.access-request-head .row-content{display:grid;gap:2px;min-width:0}.access-request-head small,.access-request-head span{color:var(--text-secondary);font-size:11px;line-height:16px;overflow-wrap:anywhere}.request-role-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.request-role-choice button{min-width:0;padding:8px 4px;border:1px solid var(--border);border-radius:10px;background:var(--surface-muted);color:var(--text-secondary);font-size:10px}.request-role-choice button.selected{border-color:var(--text);background:var(--text);color:var(--background)}.request-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.request-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px;border:1px solid var(--border);border-radius:11px;background:var(--surface-muted);color:var(--text);font-weight:650}.request-actions button.danger{color:var(--danger)}.admin-avatar{display:inline-flex;width:44px;height:44px;flex:0 0 44px;border-radius:14px;overflow:hidden;background:var(--surface-strong,#20242c)}.admin-avatar.large{width:68px;height:68px;flex-basis:68px;border-radius:22px}.admin-avatar img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.profile-open-button{width:100%;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.profile-open-button .row-content{display:flex;flex-direction:column}.admin-profile-hero{display:flex;align-items:center;gap:16px;padding:8px 2px 20px}.admin-profile-hero .row-content{display:flex;flex-direction:column;gap:4px}.admin-profile-hero strong{font-size:20px}.admin-profile-hero span{color:var(--muted)}.profile-photo-actions{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:20px}.profile-name-grid{display:grid;gap:12px}.profile-bio{min-height:110px;resize:vertical}.profile-facts{display:grid;gap:10px}.profile-fact{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.profile-fact>span{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--surface-strong)}.profile-fact div{display:flex;flex-direction:column;gap:3px}.profile-fact small{color:var(--muted)}.profile-bio-copy{white-space:pre-wrap;line-height:1.55;padding:16px;border-radius:16px;background:var(--surface)}.author-link{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;background:none;color:inherit;font:inherit;font-weight:600;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}.author-link:active,.author-link:hover{text-decoration-color:currentColor}.danger-text{color:var(--danger,#e56b6f)}.sheet-close{display:inline-flex;width:48px;height:38px;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:12px;background:var(--surface-muted);line-height:0}.sheet-close svg{display:block}.request-role-choice button.selected{border-color:var(--accent);background:var(--accent);color:var(--accent-foreground);font-weight:700}.cards-screen>.section-heading{align-items:center;gap:14px}.cards-heading-actions{display:flex;flex-wrap:nowrap;gap:9px}.cards-heading-actions button{min-height:38px;justify-content:center;padding:8px 12px;border:1px solid var(--border-strong);border-radius:11px;background:var(--surface);color:var(--text-secondary);font-weight:650;white-space:nowrap}.cards-heading-actions .cards-add-button{border-color:var(--accent);background:var(--accent);color:var(--accent-foreground)}.settings-row{grid-template-columns:36px minmax(0,1fr) auto 18px}.settings-badge{display:inline-grid;min-width:22px;height:22px;place-items:center;padding:0 6px;border-radius:999px;background:#d83a34;color:#fff;font-size:11px;font-weight:750;line-height:1}.audit-target-meta{margin:6px 0 0;color:var(--text-secondary);font-size:11px;line-height:16px}@media (max-width:370px){.cards-screen>.section-heading{align-items:flex-start;flex-direction:column}.cards-heading-actions{width:100%}.cards-heading-actions button{flex:1}}.browser-auth-screen{display:grid;gap:24px;background:radial-gradient(circle at 15% 0,color-mix(in srgb,var(--text) 7%,transparent),transparent 32rem),var(--bg)}.browser-auth-brand{display:none}.browser-auth-card{margin:0 auto;padding:30px 24px 24px;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:0 18px 60px color-mix(in srgb,#000 10%,transparent)}.browser-auth-card>h2{margin:6px 0 8px;font-size:25px;line-height:31px;letter-spacing:-.035em}.browser-auth-card>p:not(.eyebrow){margin:0;color:var(--text-secondary)}.browser-auth-logo,.browser-auth-status{display:inline-grid;place-items:center;width:54px;height:54px;margin-bottom:24px;border-radius:17px;background:var(--accent);color:var(--accent-foreground)}.browser-auth-status.blocked,.browser-auth-status.error{background:var(--danger-surface);color:var(--danger)}.browser-auth-status.waiting_approval{background:var(--warning-surface);color:var(--warning)}.browser-auth-button{margin-top:24px;min-height:50px}.browser-auth-security,.pwa-ios-hint{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid var(--border);color:var(--text-muted);font-size:11px;line-height:16px}.browser-auth-security svg,.pwa-ios-hint svg{margin-top:1px}.pwa-install-button,.settings-action-button{display:inline-flex;width:100%;min-height:48px;align-items:center;justify-content:center;gap:9px;margin-top:12px;padding:10px 14px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface);color:var(--text);font-weight:600}.device-actions{display:grid;gap:8px}.device-actions .pwa-install-button,.device-actions .settings-action-button{margin-top:0}.settings-action-button.danger-text{border-color:color-mix(in srgb,var(--danger) 30%,var(--border));background:var(--danger-surface)}.spin{animation:pwa-spin .9s linear infinite}@keyframes pwa-spin{to{transform:rotate(1turn)}}@media (min-width:900px){.browser-auth-screen{grid-template-columns:minmax(300px,1fr) minmax(380px,480px);gap:clamp(54px,9vw,140px);padding:48px max(48px,calc((100vw - 1180px) / 2))}.browser-auth-brand{display:block;max-width:520px}.browser-auth-logo{width:66px;height:66px;margin-bottom:42px;border-radius:20px;font-size:25px;font-weight:750}.browser-auth-brand>p{margin:0 0 12px;color:var(--text-muted);font-size:12px;font-weight:650;letter-spacing:.12em;text-transform:uppercase}.browser-auth-brand>h1{max-width:520px;margin:0 0 18px;font-size:clamp(42px,5vw,66px);line-height:1.02;letter-spacing:-.055em}.browser-auth-brand>span:last-child{display:block;max-width:450px;color:var(--text-secondary);font-size:17px;line-height:26px}.browser-auth-card{padding:36px}.app-frame{max-width:1180px;display:grid;grid-template-columns:236px minmax(0,1fr);grid-template-rows:auto 1fr;border-right:1px solid var(--border);border-left:1px solid var(--border)}.app-header{grid-column:2;grid-row:1;min-height:86px;padding:18px 32px 16px}.app-content{width:min(100%,920px);grid-column:2;grid-row:2;margin:0 auto;padding:34px 32px 60px}.bottom-nav{position:sticky;inset:0 auto auto 0;width:236px;height:100vh;grid-column:1;grid-row:1/3;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:92px 16px 24px;border-top:0;border-right:1px solid var(--border);background:var(--surface)}.nav-item{width:100%;height:50px;flex-direction:row;justify-content:flex-start;gap:12px;padding:0 14px;border-radius:12px;font-size:13px}.nav-item.active{background:var(--surface-muted)}.nav-add{width:100%;height:50px;margin:10px 0;border-radius:12px;box-shadow:none}.nav-add:after{content:"Добавить карточку";font-size:13px;font-weight:650}.alphabet-rail{right:max(12px,calc((100vw - 1180px) / 2 + 12px))}.sheet{width:min(680px,calc(100vw - 64px));max-height:min(88dvh,900px)}.sheet-overlay{padding:32px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-title{font-size:34px;line-height:40px}.hero-copy,.hero-title{max-width:620px}}.browser-auth-screen{display:flex;min-height:100dvh;align-items:center;justify-content:center;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom))}.browser-auth-card{width:min(100%,430px);margin:0}.browser-auth-card>h1{margin:6px 0 8px;font-size:25px;line-height:31px;letter-spacing:-.035em}.browser-auth-logo{margin:0 0 24px;background:transparent;color:inherit;overflow:hidden}.browser-auth-logo,.browser-auth-logo img{display:block;width:52px;height:52px;border-radius:13px}@media (min-width:900px){.browser-auth-screen{display:flex;padding:48px}.browser-auth-card{width:min(100%,430px);padding:36px}}.sidebar-brand,.sidebar-profile{display:none}@media (min-width:900px){.bottom-nav{padding-top:20px}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:4px 6px 18px}.sidebar-brand-mark{display:flex;flex:0 0 auto}.sidebar-brand-mark img{width:34px;height:34px;border-radius:10px;filter:drop-shadow(0 2px 5px rgb(16 18 21/14%))}.sidebar-brand-name{color:var(--text);font-size:17px;font-weight:600;letter-spacing:-.015em}.sidebar-profile{display:flex;align-items:center;gap:4px;margin-top:auto;padding-top:14px;border-top:1px solid var(--border)}.sidebar-profile-card{display:flex;min-width:0;flex:1 1 auto;align-items:center;gap:10px;padding:8px;border:0;border-radius:12px;background:transparent;cursor:pointer;text-align:left;transition:background .15s ease}.sidebar-profile-card:hover{background:var(--surface-muted)}.sidebar-profile-avatar{display:flex;flex:0 0 auto}.sidebar-profile-avatar .admin-avatar,.sidebar-profile-avatar .initials{flex:0 0 34px;width:34px;height:34px;border-radius:10px;font-size:12px}.sidebar-profile-copy{display:flex;min-width:0;flex-direction:column}.sidebar-profile-name{overflow:hidden;color:var(--text);font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.sidebar-profile-role{color:var(--text-muted);font-size:11px}.sidebar-logout{display:flex;width:34px;height:34px;flex:0 0 auto;align-items:center;justify-content:center;border:0;border-radius:10px;background:transparent;color:var(--danger);cursor:pointer;transition:background .15s ease}.sidebar-logout:hover{background:var(--danger-surface)}.alphabet-rail{position:static;display:flex;width:auto;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:3px;margin:0 0 14px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.alphabet-rail button{width:26px;min-height:26px;border-radius:8px;font-size:11.5px;line-height:26px;transition:background .12s ease,color .12s ease}.alphabet-rail button:hover:not(.active){background:var(--surface-muted);color:var(--text)}.alphabet-rail button:first-child{font-size:10px}.detail-section .field-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.settings-name-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.settings-identity-grid{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);align-items:stretch;gap:20px}.settings-identity-grid .settings-profile{align-items:center;margin-bottom:0;padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-muted)}.settings-identity-grid .settings-name-form{align-content:center;padding:14px 16px;border:1px solid var(--border);border-radius:14px}.device-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bottom-nav .nav-item.nav-search-item{display:none}.bottom-nav .nav-add{order:2}.sidebar-profile{order:3}.cards-heading-actions{display:flex;width:100%;align-items:center;gap:10px}.cards-heading-actions .cards-search{display:flex;min-width:0;flex:1 1 auto;align-items:center;gap:9px;height:44px;padding:0 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text-muted);transition:border-color .15s ease}.cards-search:focus-within{border-color:var(--border-strong)}.cards-search input{width:100%;border:0;background:transparent;color:var(--text);font-size:13.5px;outline:none}.cards-search input::-webkit-search-cancel-button{-webkit-appearance:none}.cards-heading-actions>button{height:44px;flex:0 0 auto}.cards-screen .section-heading{display:flex;flex-direction:column;align-items:stretch;gap:12px}}.cards-search{display:none}.theme-toggle{display:flex;width:38px;height:38px;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--text-secondary);cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.theme-toggle:hover{border-color:var(--border-strong);background:var(--surface-muted);color:var(--text)}.header-actions{display:flex;align-items:center;gap:10px}